cnhis-design-vue 3.1.41-beta.4 → 3.1.41-beta.40

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 (312) hide show
  1. package/es/components/base-search/index.d.ts +293 -0
  2. package/es/components/base-search/index.js +1 -0
  3. package/es/components/base-search/src/index.vue.d.ts +294 -0
  4. package/es/components/base-search/src/index.vue.js +1 -0
  5. package/es/components/base-search/style/iconfont.ttf +0 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/big-table/index.d.ts +1 -0
  8. package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
  9. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  10. package/es/components/big-table/style/index.css +1 -1
  11. package/es/components/button-print/index.d.ts +3 -2
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -2
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  14. package/es/components/button-print/src/api.d.ts +3 -0
  15. package/es/components/button-print/src/api.js +1 -0
  16. package/es/components/button-print/src/utils/print.d.ts +1 -1
  17. package/es/components/button-print/src/utils/print.js +1 -1
  18. package/es/components/classification/index.d.ts +995 -0
  19. package/es/components/classification/index.js +1 -0
  20. package/es/components/classification/src/components/search-filter/index.vue.d.ts +373 -0
  21. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  22. package/es/components/classification/src/components/set-classification/index.vue.d.ts +718 -0
  23. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  24. package/es/components/{table-filter/src/components/table-modal/TableModal.vue.d.ts → classification/src/components/table-modal/index.vue.d.ts} +0 -42
  25. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  26. package/es/components/classification/src/const/index.d.ts +2 -0
  27. package/es/components/classification/src/const/index.js +1 -0
  28. package/es/components/classification/src/index.vue.d.ts +996 -0
  29. package/es/components/classification/src/index.vue.js +1 -0
  30. package/es/components/classification/style/iconfont.ttf +0 -0
  31. package/es/components/classification/style/index.css +1 -0
  32. package/es/components/config-provider/index.d.ts +14 -0
  33. package/es/components/config-provider/index.js +1 -0
  34. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  35. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  36. package/es/components/config-provider/src/interface.d.ts +18 -0
  37. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  38. package/es/components/config-provider/src/utils/index.js +1 -0
  39. package/es/components/date-picker/index.d.ts +20 -0
  40. package/es/components/date-picker/index.js +1 -0
  41. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
  42. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
  46. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
  50. package/es/components/field-set/index.d.ts +8 -0
  51. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
  52. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  53. package/es/components/field-set/style/index.css +1 -1
  54. package/es/components/form-config/index.d.ts +6780 -69
  55. package/es/components/form-config/src/FormConfig.vue.d.ts +6918 -206
  56. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  57. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -13
  58. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  59. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
  60. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  61. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3423 -71
  62. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  63. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
  64. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  65. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
  66. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  67. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
  68. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  69. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
  70. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  71. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
  72. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  73. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
  74. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  75. package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
  76. package/es/components/form-config/src/types/index.d.ts +8 -2
  77. package/es/components/form-config/src/utils/index.d.ts +4 -1
  78. package/es/components/form-config/src/utils/index.js +1 -1
  79. package/es/components/form-config/style/index.css +1 -1
  80. package/es/components/form-render/index.d.ts +13 -13
  81. package/es/components/form-render/index.js +1 -1
  82. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  83. package/es/components/form-render/src/FormRender.vue.js +1 -1
  84. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +33 -32
  85. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  86. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  87. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  88. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  89. package/es/components/form-render/src/components/renderer/select.js +1 -1
  90. package/es/components/form-render/src/constants/index.d.ts +0 -12
  91. package/es/components/form-render/src/constants/index.js +1 -1
  92. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
  93. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  94. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  95. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  96. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  97. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  98. package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
  99. package/es/components/form-render/src/hooks/useFormField.js +1 -1
  100. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  101. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  102. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  103. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  104. package/es/components/form-render/src/types/index.d.ts +5 -3
  105. package/es/components/form-render/src/utils/dom.d.ts +2 -1
  106. package/es/components/form-render/src/utils/dom.js +1 -1
  107. package/es/components/iho-table/index.d.ts +6 -5
  108. package/es/components/iho-table/index.js +1 -1
  109. package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -5
  110. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  111. package/es/components/iho-table/src/constants/index.d.ts +4 -4
  112. package/es/components/iho-table/src/constants/index.js +1 -1
  113. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  114. package/es/components/iho-table/src/hooks/useTableTheme.d.ts +4 -0
  115. package/es/components/iho-table/src/hooks/useTableTheme.js +1 -0
  116. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  117. package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
  118. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
  119. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
  120. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
  121. package/es/components/iho-table/src/plugins/index.js +1 -1
  122. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
  123. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  124. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +102 -0
  125. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
  126. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
  127. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
  128. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
  129. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  130. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  131. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  132. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  133. package/es/components/iho-table/src/types/index.d.ts +20 -11
  134. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  135. package/es/components/iho-table/src/utils/index.js +1 -1
  136. package/es/components/iho-table/style/index.css +1 -1
  137. package/es/components/index.css +1 -1
  138. package/es/components/index.d.ts +8 -2
  139. package/es/components/index.js +1 -1
  140. package/es/components/info-header/index.d.ts +3967 -190
  141. package/es/components/info-header/src/InfoHeader.vue.d.ts +3969 -192
  142. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  143. package/es/components/info-header/src/components/index.d.ts +3 -0
  144. package/es/components/info-header/src/components/index.js +1 -0
  145. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  146. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  147. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  148. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  149. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
  150. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
  151. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2796 -0
  152. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
  153. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +783 -0
  154. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
  155. package/es/components/info-header/src/constants/index.d.ts +4 -0
  156. package/es/components/info-header/src/constants/index.js +1 -0
  157. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  158. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  159. package/es/components/info-header/src/types/index.d.ts +43 -0
  160. package/es/components/info-header/src/types/index.js +1 -0
  161. package/es/components/info-header/style/index.css +1 -1
  162. package/es/components/keyboard/index.d.ts +3 -1
  163. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
  164. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  165. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  166. package/es/components/keyboard/src/constants/index.js +1 -0
  167. package/es/components/keyboard/style/index.css +1 -1
  168. package/es/components/quick-search/index.d.ts +713 -0
  169. package/es/components/quick-search/index.js +1 -0
  170. package/es/components/quick-search/src/index.vue.d.ts +715 -0
  171. package/es/components/quick-search/src/index.vue.js +1 -0
  172. package/es/components/quick-search/style/index.css +1 -0
  173. package/es/components/recommend-search/index.d.ts +12 -12
  174. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +12 -12
  175. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
  176. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
  177. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +5 -5
  178. package/es/components/scale-view/index.d.ts +1 -2
  179. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -5
  180. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  181. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  182. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  183. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  184. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  185. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  186. package/es/components/scale-view/src/hooks/use-component.d.ts +82 -116
  187. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  188. package/es/components/scale-view/style/index.css +1 -1
  189. package/es/components/search-cascader/index.d.ts +2 -2
  190. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  191. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  192. package/es/components/select-label/index.d.ts +83 -169
  193. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  194. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  195. package/es/components/select-label/src/SelectLabel.vue.d.ts +83 -116
  196. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  197. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  198. package/es/components/select-label/style/iconfont.ttf +0 -0
  199. package/es/components/select-label/style/index.css +1 -1
  200. package/es/components/shortcut-setter/index.d.ts +14 -14
  201. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -14
  202. package/es/components/steps-wheel/index.d.ts +2 -1
  203. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +2 -1
  204. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  205. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  206. package/es/components/steps-wheel/src/constants/index.js +1 -0
  207. package/es/components/steps-wheel/style/index.css +1 -1
  208. package/es/components/table-filter/index.d.ts +0 -9098
  209. package/es/components/table-filter/index.js +1 -1
  210. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -2
  211. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  212. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
  213. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  214. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +21 -49
  215. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  216. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  217. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  218. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  219. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  220. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  221. package/es/components/table-filter/src/hooks/export.js +1 -1
  222. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -3
  223. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  224. package/es/components/table-filter/src/hooks/useMixins.d.ts +2 -55
  225. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  226. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  227. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  228. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  229. package/es/components/table-filter/src/tool/transformData.js +1 -1
  230. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  231. package/es/components/table-filter/src/types/enums.js +1 -1
  232. package/es/components/table-filter/src/types/index.d.ts +12 -178
  233. package/es/components/time-picker/index.d.ts +18 -0
  234. package/es/components/time-picker/index.js +1 -0
  235. package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
  236. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  237. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  238. package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
  239. package/es/shared/components/no-data/NoData.vue.js +1 -1
  240. package/es/shared/mixins/index.d.ts +1 -0
  241. package/es/shared/mixins/index.js +1 -0
  242. package/es/shared/mixins/useTheme.d.ts +3 -0
  243. package/es/shared/mixins/useTheme.js +1 -0
  244. package/es/shared/utils/index.d.ts +17 -0
  245. package/es/shared/utils/index.js +1 -1
  246. package/package.json +2 -2
  247. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  248. package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
  249. package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
  250. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
  251. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
  252. package/es/components/info-header/src/HiddenContent.vue.js +0 -1
  253. package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
  254. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +0 -3630
  255. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  256. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +0 -3582
  257. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  258. package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -90
  259. package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  260. package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1472
  261. package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  262. package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
  263. package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
  264. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
  265. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  266. package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
  267. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
  268. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
  269. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  270. package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
  271. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  272. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
  273. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  274. package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
  275. package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
  276. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
  277. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  278. package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
  279. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
  280. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1244
  281. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  282. package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +0 -1651
  283. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  284. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  285. package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
  286. package/es/components/table-filter/src/const/dataOptions.js +0 -1
  287. package/es/components/table-filter/src/const/index.d.ts +0 -5
  288. package/es/components/table-filter/src/const/index.js +0 -1
  289. package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
  290. package/es/components/table-filter/src/directive/preventReClick.js +0 -1
  291. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  292. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  293. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  294. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  295. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +0 -1942
  296. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  297. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  298. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  299. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  300. package/es/components/table-filter/src/tool/utils.js +0 -1
  301. package/es/components/table-filter/style/index.css +0 -1
  302. package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  303. package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  304. package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  305. package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  306. package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  307. package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  308. package/es/components/{iho-table/src/plugins/filterPlugin/types.js → config-provider/src/interface.js} +0 -0
  309. package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
  310. package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
  311. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  312. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -1,23 +1,4 @@
1
1
  export declare type funcVoid = () => void;
2
- export declare type IrelationType = {
3
- fieldList?: any;
4
- valueField?: any;
5
- primaryField?: any;
6
- relationField?: any;
7
- tableId: any;
8
- parameterConversionId: any;
9
- converFun: any;
10
- preConObj: any;
11
- relationOrgId: any;
12
- preSqlExpression: any;
13
- tableName?: string;
14
- quote_con?: {
15
- conObj: ISearchConfigType;
16
- sqlExpression: string;
17
- };
18
- field_key?: string;
19
- con?: string;
20
- };
21
2
  export declare type ISearchType = {
22
3
  columnName: string;
23
4
  title: string;
@@ -28,8 +9,6 @@ export declare type ISearchType = {
28
9
  settingObj?: any;
29
10
  placeholder?: string;
30
11
  AGEAttr?: boolean;
31
- BIRTHDAY?: IDateType;
32
- DATE?: IDateType;
33
12
  CL?: string;
34
13
  CONVERT?: any;
35
14
  EVALUATEAttr?: boolean;
@@ -53,7 +32,6 @@ export declare type ISearchType = {
53
32
  comAttr?: string;
54
33
  con?: string;
55
34
  dataSource?: any;
56
- dateTeam?: ITeamType[];
57
35
  dictionarieObj?: any;
58
36
  explicitRequired?: number;
59
37
  explicitDefaultVal?: string;
@@ -105,14 +83,6 @@ export declare type ISearchType = {
105
83
  hasFieldList?: any;
106
84
  search_DefaultValue?: any;
107
85
  };
108
- export declare type IDateType = {
109
- con: any;
110
- limit_date?: any;
111
- start_val: any;
112
- end_val: any;
113
- unit?: string;
114
- units?: ITeamType[];
115
- };
116
86
  export declare type IlabelType = {
117
87
  labelId?: string;
118
88
  change_text: string;
@@ -131,50 +101,12 @@ export declare type IFilterItemType = {
131
101
  key?: string;
132
102
  value: string;
133
103
  };
134
- export declare type IsettingType = {
135
- acrossTable?: string;
136
- attr?: string;
137
- colorAndIcon?: any;
138
- colorSetting?: any;
139
- fontContentCopy?: string;
140
- format?: string;
141
- isHide?: string;
142
- isSystemField?: string;
143
- labelType?: any;
144
- notParticipatingSearch?: string;
145
- notParticipatingSort?: string;
146
- relationTable?: any;
147
- showSetting?: IlabelType[];
148
- wordbook?: IwordbookType;
149
- isPreciseSearch?: number;
150
- };
151
- export declare type IwordbookType = {
152
- id?: string;
153
- showType?: string;
154
- params?: any;
155
- autograph?: any;
156
- field_key?: string;
157
- showKeys?: any;
158
- filterKeys?: any;
159
- wordbookType?: any;
160
- };
161
104
  export declare type IParentNamesType = {
162
105
  disabled: boolean;
163
106
  isAdd?: boolean;
164
107
  selected: boolean;
165
108
  value: string;
166
109
  };
167
- export declare type ITeamType = {
168
- con: string;
169
- title: string;
170
- name: string;
171
- units?: number;
172
- };
173
- export declare type IEvaluateType = {
174
- label: string;
175
- value: string;
176
- isSelect?: boolean;
177
- };
178
110
  export declare type ISaveType = {
179
111
  id?: string;
180
112
  tableId: string;
@@ -194,26 +126,15 @@ export declare type ILabelItemListType = {
194
126
  typeId: string;
195
127
  typeName: string;
196
128
  };
197
- export declare type ILabelType = {
198
- addVal: string;
199
- isShowBtn: boolean;
200
- isUnfold: boolean;
201
- itemList: ILabelItemListType[];
202
- showAdd: boolean;
203
- typeId: string;
204
- typeName: string;
205
- change_text?: string;
206
- filter?: any;
207
- };
208
129
  export declare type IClassifyListType = {
209
- classifyId: string;
210
130
  displayCategory: string;
211
131
  isDefault: boolean;
212
132
  isEdit: boolean;
213
- isPublic: string;
214
133
  isShow: boolean;
215
134
  name: string;
216
135
  sid: string;
136
+ isPublic?: string;
137
+ classifyId?: string;
217
138
  conObj?: any;
218
139
  digital?: number;
219
140
  checked?: boolean;
@@ -246,31 +167,6 @@ export declare type ITreeDataType = {
246
167
  open?: boolean;
247
168
  selected?: boolean;
248
169
  };
249
- export declare type IActionType = {
250
- curKey: number;
251
- field_key: string;
252
- fieldId: any;
253
- fieldType: string;
254
- con: string;
255
- searchList: any;
256
- searchChildList: any;
257
- dateList: any;
258
- wordbookData: any;
259
- relationData: any;
260
- relationField: string;
261
- relationFieldList: any;
262
- quote_con: any;
263
- title: string;
264
- unit: string;
265
- setting: string;
266
- settingObj: any;
267
- wordbookValueList: string[];
268
- isIllegalField: boolean;
269
- is_compare_field: boolean;
270
- selectList: any;
271
- customInput: boolean;
272
- compare_field: any;
273
- };
274
170
  export declare type IConditionMapType = {
275
171
  conditionList: IClassifyListType[];
276
172
  displayCategoryList: string[];
@@ -278,39 +174,6 @@ export declare type IConditionMapType = {
278
174
  countTabCondition: string;
279
175
  settingId: string;
280
176
  };
281
- export declare type ILocalObjType = {
282
- autograph?: string;
283
- extendParams?: any;
284
- id?: string;
285
- menuId?: string;
286
- name?: string;
287
- params?: any;
288
- preConObj?: any;
289
- preSqlExpression?: any;
290
- primaryKeyValue?: any;
291
- reportType?: any;
292
- triggerObjContentObj?: ITriggerObjType;
293
- type?: string;
294
- };
295
- export declare type ITriggerObjType = Record<'id' | 'name' | 'type', string>;
296
- export declare type ISelectAllType = Record<'name' | 'sid', string>;
297
- export declare type IOriginConditionType = {
298
- checked?: boolean;
299
- classifyId?: string;
300
- conObj: ISearchConfigType;
301
- createdByName: string;
302
- digital: number;
303
- displayCategory: string;
304
- from?: string;
305
- isDefault: boolean;
306
- isEdit: boolean;
307
- isPublic: string;
308
- isShow: boolean;
309
- name: string;
310
- selected?: boolean;
311
- sid: string;
312
- sqlExpression?: string;
313
- };
314
177
  export declare type IbtnType = {
315
178
  buttonType: string;
316
179
  color: string;
@@ -366,20 +229,7 @@ export declare type IsettingObjType = {
366
229
  };
367
230
  export declare type IparamsType = Record<'p_name' | 'p_value', string>;
368
231
  export declare type IsettingsType = {
369
- isDownload: string;
370
- asyncCount: number;
371
- hideCondition: number;
372
- hideSearch: number;
373
232
  hideQuickSearch: number;
374
- hideOutSearch: number;
375
- hideBottom: number;
376
- hideExportBtn: number;
377
- hideSettingBtn: number;
378
- buttonAdaption: number;
379
- openOnly: number;
380
- };
381
- export declare type InjectisShowResetButton = {
382
- from: '';
383
233
  };
384
234
  export declare type IeditTableWrapperItem = {
385
235
  options?: IeditTableWrapperDetail;
@@ -388,28 +238,6 @@ export declare type IeditTableWrapperDetail = {
388
238
  isButtonFolding?: boolean;
389
239
  extendParams?: any;
390
240
  };
391
- export declare type IrowBtnListObj = {
392
- ADD: {
393
- name: string;
394
- children: IbtnType[];
395
- };
396
- INLINE: {
397
- name: string;
398
- children: IbtnType[];
399
- };
400
- BATCH: {
401
- name: string;
402
- children: IbtnType[];
403
- };
404
- };
405
- export declare type IPrintType = {
406
- number: number;
407
- authorizationKey: string;
408
- versionType: any;
409
- port: number;
410
- id: string;
411
- };
412
- export declare type IPrintAboutType = Record<'templateId' | 'formatId' | 'type', string>;
413
241
  export declare type ICheckboxType = Record<'label' | 'value', string>;
414
242
  export declare type IApiServerType = {
415
243
  name: string;
@@ -421,10 +249,10 @@ export declare type IApiServerType = {
421
249
  filterExplicit: boolean;
422
250
  explicitRequired: boolean;
423
251
  width?: number | null;
424
- optionType: string;
252
+ optionType?: string;
425
253
  defaultValue?: {
426
- valueList: any[];
427
- unit: string | null;
254
+ valueList?: any[];
255
+ unit?: string | null;
428
256
  };
429
257
  optionInfo?: {
430
258
  manualMapping?: boolean | null;
@@ -433,7 +261,7 @@ export declare type IApiServerType = {
433
261
  value: any;
434
262
  }[];
435
263
  };
436
- remark: string;
264
+ remark?: string;
437
265
  keyword?: boolean;
438
266
  };
439
267
  export declare type ICategoryItemType = {
@@ -481,3 +309,9 @@ export declare type IFormStateType = {
481
309
  displayCategory: string;
482
310
  filterConditions: Record<'condition' | 'key' | 'presetVal' | 'value', string>[];
483
311
  };
312
+ export declare type ISearchParamsType = {
313
+ field_key: string;
314
+ con: string;
315
+ value: any;
316
+ unit: string | null;
317
+ };
@@ -0,0 +1,18 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ emits: (event: "update:formattedValue", ...args: any[]) => void;
7
+ timePickerRef: import("vue").Ref<null>;
8
+ __formattedValue: import("vue").Ref<any>;
9
+ keyupValue: import("vue").Ref<string>;
10
+ formatRef: import("vue").ComputedRef<string>;
11
+ updateFormattedValue: (value: any) => void;
12
+ onBlur: () => void;
13
+ onKeyUp: (event: import("../../../es/shared/types").AnyObject) => any;
14
+ NTimePicker: any;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
16
+ "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
17
+ }, {}>>;
18
+ export default TimePicker;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as i}from"../../shared/utils/index.js";import e from"./src/TimePicker.vue.js";const o=e;o.install=function(e){i(e,o,r+"TimePicker")};export{o as default};
@@ -0,0 +1,18 @@
1
+ import { AnyObject } from '../../../../es/shared/types';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ emits: (event: "update:formattedValue", ...args: any[]) => void;
7
+ timePickerRef: import("vue").Ref<null>;
8
+ __formattedValue: import("vue").Ref<any>;
9
+ keyupValue: import("vue").Ref<string>;
10
+ formatRef: import("vue").ComputedRef<string>;
11
+ updateFormattedValue: (value: any) => void;
12
+ onBlur: () => void;
13
+ onKeyUp: (event: AnyObject) => any;
14
+ NTimePicker: any;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
16
+ "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
17
+ }, {}>;
18
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as u,computed as l,watch as a,openBlock as r,createBlock as o,unref as i,mergeProps as n,createSlots as v,renderList as m,withCtx as f,renderSlot as d}from"vue";import{NTimePicker as s}from"naive-ui";import{parse as c,isValid as p,format as _}from"date-fns";import k from"../../../_virtual/plugin-vue_export-helper.js";var P=k(e({__name:"TimePicker",emits:["update:formattedValue"],setup(e,{expose:k,emit:P}){const $=t(),b=u(null),x=u(),y=u(""),V=l((()=>$.format?$.format:"HH:mm:ss"));function g(e){P("update:formattedValue",e)}function H(){const e=c(y.value,V.value.replace(/:/,""),new Date);p(e)&&(x.value=_(e,V.value),g(x.value))}function T(e){var t,u;const{keyCode:l=0}=e;if(13==l)return null==(t=b.value)?void 0:t.blur();y.value=(null==(u=e.target)?void 0:u.value)||""}return a((()=>$["formatted-value"]),(e=>{x.value=e}),{immediate:!0}),k({$timePicker:b,focus:()=>{var e,t;return null==(t=null==(e=b.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=b.value)?void 0:e.blur)?void 0:t.call(e)}}),(e,t)=>(r(),o(i(s),n({ref_key:"timePickerRef",ref:b},e.$attrs,{"formatted-value":x.value,"onUpdate:formattedValue":g,onBlur:H,onKeyup:T}),v({_:2},[m(e.$slots,((t,u)=>({name:u,fn:f((()=>[d(e.$slots,u)]))})))]),1040,["formatted-value"]))}}),[["__file","TimePicker.vue"]]);export{P as default};
@@ -79,8 +79,8 @@ declare const _default: import("vue").DefineComponent<{
79
79
  required: false;
80
80
  };
81
81
  }>>, {
82
- effect: string;
83
82
  placement: string;
83
+ effect: string;
84
84
  tooltipTitle: string | number;
85
85
  isAlias: boolean;
86
86
  }>;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'vue';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  noDataTip: {
3
4
  type: StringConstructor;
@@ -12,6 +13,10 @@ declare const _default: import("vue").DefineComponent<{
12
13
  default: boolean;
13
14
  };
14
15
  }, {
16
+ wrapperStyle: CSSProperties;
17
+ imgStyle: CSSProperties;
18
+ paragraphStyle: CSSProperties;
19
+ textStyle: CSSProperties;
15
20
  imgStr: import("vue").ComputedRef<null>;
16
21
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
22
  noDataTip: {
@@ -1 +1 @@
1
- import{defineComponent as a,computed as t,openBlock as e,createElementBlock as s,unref as o,createCommentVNode as r,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../assets/img/nodata.png.js";import m from"../../assets/img/no-permission.png.js";import l from"../../assets/img/failure.png.js";import u from"../../assets/img/notfound.png.js";import f from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},c=["src"],d={key:1};var v=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,v=t((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),D=t((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(t,p)=>(e(),s("div",g,[a.showImg?(e(),s("img",{key:0,src:o(v),alt:""},null,8,c)):r("v-if",!0),n("p",null,i(a.noDataTip),1),o(D)?(e(),s("span",d,i(o(D)),1)):r("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{v as default};
1
+ import{defineComponent as t,computed as e,openBlock as o,createElementBlock as a,unref as r,createCommentVNode as i,createElementVNode as s,toDisplayString as n}from"vue";import p from"../../assets/img/nodata.png.js";import m from"../../assets/img/no-permission.png.js";import l from"../../assets/img/failure.png.js";import f from"../../assets/img/notfound.png.js";import g from"../../../_virtual/plugin-vue_export-helper.js";const u=["src"];var c=g(t({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(t){const g=t,c={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"22px",color:"#333"},d={width:"260px",maxWidth:"70%"},x={marginTop:"12px",marginBottom:"0",fontSize:"16px",color:"rgb(0 0 0 / 80%)"},y={marginTop:"6px",fontSize:"14px",color:"rgb(0 0 0 / 40%)"},h=e((()=>{let t=null;switch(g.noDataImg){case"no-permission":t=m;break;case"failure":t=l;break;case"nodata":t=p;break;default:t=f}return t})),v=e((()=>{let t="";switch(g.noDataImg){case"no-permission":t="请联系管理员";break;case"failure":t="请稍后再试"}return t}));return(e,p)=>(o(),a("div",{style:c},[t.showImg?(o(),a("img",{key:0,style:d,src:r(h),alt:""},null,8,u)):i("v-if",!0),s("p",{style:x},n(t.noDataTip),1),r(v)?(o(),a("span",{key:1,style:y},n(r(v)),1)):i("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{c as default};
@@ -0,0 +1 @@
1
+ export * from './useTheme';
@@ -0,0 +1 @@
1
+ export{useTheme}from"./useTheme.js";
@@ -0,0 +1,3 @@
1
+ import { CSSProperties, ComputedRef } from 'vue';
2
+ import { CGlobalThemeOverrides } from '../../components/config-provider/src/interface';
3
+ export declare function useTheme(defaultCssVars: CSSProperties, componentKey: keyof CGlobalThemeOverrides): ComputedRef<CSSProperties>;
@@ -0,0 +1 @@
1
+ import{inject as e,computed as n}from"vue";function r(r,t){const o=e("themeOverridesInjectRef",null);return n((()=>{var e;const n=(null==(e=null==o?void 0:o.value)?void 0:e[t])||{};return{...r,...n}}))}export{r as useTheme};
@@ -15,3 +15,20 @@ export declare function targetStringIncludes(arr: string[], target: string): boo
15
15
  export declare const jsonParse: import("@vueuse/core").UseMemoizedFn<any, [value: string]>;
16
16
  export declare function shallowOmit<T, K extends Array<keyof T>>(target: T, keys: K): Omit<T, K[number]>;
17
17
  export declare function checkInSetupEnv(message?: string): void;
18
+ export declare enum LOW_CODE_VALUE_RELATION {
19
+ EQ = "EQ",
20
+ NEQ = "NEQ",
21
+ CL = "CL",
22
+ NC = "NC",
23
+ NULL = "NULL",
24
+ NOT_NULL = "NOT_NULL",
25
+ BIG = "BIG",
26
+ BIGEQ = "BIGEQ",
27
+ LESS = "LESS",
28
+ LESSEQ = "LESSEQ"
29
+ }
30
+ export declare function isMatchLowCodeCondition(value: unknown, condition: {
31
+ con: LOW_CODE_VALUE_RELATION & string;
32
+ value: unknown;
33
+ }): boolean;
34
+ export declare function hex2rgba(hex: string): number[];
@@ -1 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as r,isNumber as n,isObject as o,isFunction as u}from"lodash-es";import{getCurrentInstance as c}from"vue";function i(t,r,n="children",o){function u(){throw"silence break traverse"}try{a(t).forEach((t=>{r(t,u,o),a(n).forEach((o=>{e(t[o])&&i(t[o],r,n,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function s(t,e,r=e.name,n){if(!r)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[r]||(n?n():t.component(r,e))}function f(t){if(!r(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function a(t){return Array.isArray(t)?t:[t]}function x(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const l=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),m=Object.seal(Object.create(null));function d(t,r){return function t(r,n){return o(r)?e(r)?r.map((e=>t(e,n))):Object.entries(r).reduce(((e,[r,c])=>(n.includes(r)||(o(c)&&!u(c)?e[r]=t(c,n):e[r]=c),e)),{}):r}(t,r)}function h(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function p(t,e){if(!t)return t;if(e(t))return t;let r=t.parentElement;for(;r&&!e(r);)r=r.parentElement;return r}function w(t,e="px"){if(n(t))return`${t}${e}`;if(r(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function y(t,e){return t.some((t=>e.includes(t)))}const v=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function b(t,e){if(!o(t))return t;const r={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(r,e[t]);return r}function $(t){if(!c())throw new Error(t||"can't use this hook out of setup environment")}export{m as DMZ,a as arrayed,$ as checkInSetupEnv,d as deepOmit,p as findAncestor,f as generateTimeFormat,l as getStringWidth,v as jsonParse,s as safeComponentRegister,h as separateMetaModule,b as shallowOmit,y as targetStringIncludes,i as traverse,x as uuidGenerator,w as widthAppend};
1
+ import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as c,gt as u,gte as i,lt as s,lte as a,isNumber as f,isObject as x,isFunction as d}from"lodash-es";import{getCurrentInstance as E}from"vue";function l(t,n,r="children",o){function c(){throw"silence break traverse"}try{L(t).forEach((t=>{n(t,c,o),L(r).forEach((o=>{e(t[o])&&l(t[o],n,r,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function m(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(r?r():t.component(n,e))}function p(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function L(t){return Array.isArray(t)?t:[t]}function h(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const N=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),w=Object.seal(Object.create(null));function S(t,n){return function t(n,r){return x(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(x(o)&&!d(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function v(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function y(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function I(t,e="px"){if(f(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function Q(t,e){return t.some((t=>e.includes(t)))}const $=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function b(t,e){if(!x(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function O(t){if(!E())throw new Error(t||"can't use this hook out of setup environment")}var U=(t=>(t.EQ="EQ",t.NEQ="NEQ",t.CL="CL",t.NC="NC",t.NULL="NULL",t.NOT_NULL="NOT_NULL",t.BIG="BIG",t.BIGEQ="BIGEQ",t.LESS="LESS",t.LESSEQ="LESSEQ",t))(U||{});const C={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:c(o),BIG:u,BIGEQ:i,LESS:s,LESSEQ:a};function g(t,e){return(C[e.con]||(()=>!1))(t,`${e.value}`)}function B(t){const[e,n,r,o,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[0,0,0];const u=(c?parseInt(c,16):255)/255;return[parseInt(n,16),parseInt(r,16),parseInt(o,16),+(f(u)?u.toFixed(2):1)]}export{w as DMZ,U as LOW_CODE_VALUE_RELATION,L as arrayed,O as checkInSetupEnv,S as deepOmit,y as findAncestor,p as generateTimeFormat,N as getStringWidth,B as hex2rgba,g as isMatchLowCodeCondition,$ as jsonParse,m as safeComponentRegister,v as separateMetaModule,b as shallowOmit,Q as targetStringIncludes,l as traverse,h as uuidGenerator,I as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.41-beta.4",
3
+ "version": "3.1.41-beta.40",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "3babf9efc7209fcd6709ef4cb17523bd14554067"
64
+ "gitHead": "3a173f73d3f4ea4d684f65694843d3b6c0b400f3"
65
65
  }
@@ -1 +0,0 @@
1
- import{defineComponent as e,inject as t,ref as l,onDeactivated as a,watch as o,computed as i,openBlock as s,createElementBlock as n,normalizeStyle as u,unref as r,createElementVNode as c,renderSlot as v,createVNode as p,withCtx as d,createTextVNode as f,toDisplayString as h,normalizeClass as m,createCommentVNode as _,Fragment as y,renderList as k,createBlock as b,isRef as g}from"vue";import{widthAppend as x}from"../../../../../shared/utils/index.js";import{FunnelSharp as C}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as j}from"@vueuse/core";import{NEllipsis as w,NPopover as A,NIcon as $,NInput as B,NCheckbox as I,NCheckboxGroup as L,NButtonGroup as U,NButton as q}from"naive-ui";import{InjectionIhoTableUUID as P,InjectionIhoTableConfig as W}from"../../constants/index.js";import{IhoTableRenderHelper as Z}from"../../utils/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"iho-table__filterWrapper"},F={key:0},H=["onClick"],O={class:"iho-table__filterListItem"},D={class:"iho-table__filterFooter"};var G=z(e({__name:"filter",props:{payload:{type:Object,required:!0},sortable:{type:Boolean},options:{type:Array,default:()=>[]},checked:{type:Array,required:!0},sortStatus:{type:String}},emits:["update:checked","update:sortStatus"],setup(e,{emit:z}){const G=e,J=t(P),K=t(W),M=S(G,"checked",z),N=S(G,"sortStatus",z),Q=l([]),R=l(!1),T=l("");function V(){R.value=!R.value}function X(){R.value=!1}a(X),o(R,(e=>{e&&(Q.value=[...M.value],T.value="")}));const{list:Y,containerProps:ee,wrapperProps:te}=j(i((()=>T.value?G.options.filter((e=>e.key.includes(T.value))):G.options)),{itemHeight:32,overscan:3}),le=i((()=>!!Q.value.length&&Q.value.length!==G.options.length)),ae=i({get:()=>Q.value.length===G.options.length,set:e=>{Q.value=e?G.options.map((e=>e.value)):[]}}),oe=i((()=>({...ee.style,height:x(320)})));function ie(){X(),z("update:checked",Q.value)}const se=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];const ne=i((()=>M.value.length||N.value)),ue=i((()=>{var e;return Z.isEditableColumn(K.value,null==(e=G.payload)?void 0:e.column)})),re=i((()=>({display:"inline-flex","align-items":"center",justifyContent:"start",width:`calc(100% - ${ue.value?19:0}px)`})));return(t,l)=>(s(),n("section",{style:u(r(re))},[c("section",null,[v(t.$slots,"header",{},(()=>[p(r(w),null,{default:d((()=>[f(h(e.payload.column.title),1)])),_:1})]))]),p(r(A),{to:`#${r(J)}`,show:R.value},{trigger:d((()=>[p(r($),{class:m(["iho-table__filterIcon",{"is-active":r(ne)}]),component:r(C),onClick:V},null,8,["class","component"])])),default:d((()=>[c("section",E,[_(' 判断是否显示升序降序模块的组件 v-if="sortable"'),e.sortable?(s(),n("div",F,[(s(),n(y,null,k(se,(e=>c("div",{key:e.status,class:m(["iho-table__filterButton",{"iho-table__filterButton--active":r(N)===e.status}]),onClick:t=>{return l=e.status,X(),void z("update:sortStatus",l);var l}},h(e.text),11,H))),64))])):_("v-if",!0),e.options.length>5?(s(),b(r(B),{key:1,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e)},null,8,["value"])):_("v-if",!0),c("div",O,[p(r(I),{label:"全选",checked:r(ae),"onUpdate:checked":l[1]||(l[1]=e=>g(ae)?ae.value=e:null),indeterminate:r(le)},null,8,["checked","indeterminate"])]),p(r(L),{value:Q.value,"onUpdate:value":l[3]||(l[3]=e=>Q.value=e)},{default:d((()=>[c("section",{ref:r(ee).ref,style:u(r(oe)),onScroll:l[2]||(l[2]=(...e)=>r(ee).onScroll&&r(ee).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:u(r(te).style)},[(s(!0),n(y,null,k(r(Y),(e=>(s(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[p(r(I),{value:e.data.value,label:e.data.key},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",D,[c("section",null,h(`已选择${Q.value.length}项`),1),p(r(U),{size:"tiny"},{default:d((()=>[p(r(q),{onClick:l[4]||(l[4]=e=>Q.value=[])},{default:d((()=>[f("清空")])),_:1}),p(r(q),{onClick:X},{default:d((()=>[f("取消")])),_:1}),p(r(q),{type:"primary",onClick:ie},{default:d((()=>[f("确定")])),_:1})])),_:1})])])])),_:1},8,["to","show"])],4))}}),[["__file","filter.vue"]]);export{G as default};
@@ -1 +0,0 @@
1
- export declare function filterPlugin(): import("../../../../../../es/components/iho-table").TablePlugin;
@@ -1 +0,0 @@
1
- import{computed as e,createVNode as t,onBeforeUnmount as l,reactive as o}from"vue";import{jsonParse as s}from"../../../../../shared/utils/index.js";import{isObject as i,isFunction as r,isArray as a}from"lodash-es";import"../../../index.js";import{IHO_TABLE_NUMBER_STATUS as n}from"../../constants/index.js";import{useUUIDMap as u,IhoTableRenderHelper as d,IhoTableUtils as c}from"../../utils/index.js";import f from"./filter.vue.js";import{defineTablePlugin as p}from"../../hooks/useTablePlugin.js";function m(){const m="filterPlugin",{getItemFromUUID:v,removeItemFromUUID:h}=u((()=>{const e=o(new Map),t=o(new Set);return{stateMap:e,filterSet:t,setChecked:function({value:l,field:o,$table:s,emits:i}){const r=e.get(o);if(!r)return;const a=s.getColumnByField(o);function n(e,t){var l,o;const i=s.getColumnByField(e);return{column:i,field:i.field,datas:[],property:i.field,values:[...null!=(o=null==(l=t.get(e))?void 0:l.checked)?o:[]]}}a&&(l.length?t.add(a.field):t.delete(a.field),r.checked=l,i("filterChange",{$event:new PointerEvent("click"),$table:s,...n(a.field,e),filterList:[...t.values()].map((t=>n(t,e)))}))},setSort:function({value:t,field:l,$table:o,emits:s}){const i=e.get(l);if(!i)return;const r=o.getColumnByField(l);if(!r)return;if(!i.sortStatus&&!t)return;i.sortStatus=t===i.sortStatus?null:t,e.forEach(((e,t)=>{t!==r.field&&(e.sortStatus=null)}));const a={column:r,field:r.field,order:t,property:r.field,sortTime:Date.now()};s("sortChange",{$table:o,$event:new PointerEvent("click"),...a,sortList:[a]})}}}));return p({name:m,apply(o){o.fieldHooks.fieldList.tap(m,((l,{uuid:o},{$table:u,emits:p})=>(l.forEach((l=>{var m,h,S,g,k,b,C;const $=null==(m=l.editRender)?void 0:m.props;if(!i($))return;const y=s($.fieldSetting||"");if(!d.hasFilter(y))return;const E=l.sortable;l.sortable=!1;let F=null!=(g=null==(S=null==(h=y.mapping)?void 0:h.mappingFiled)?void 0:S.map((e=>e.value[0])))?g:[];(function(e){const t=["SEARCH","SELECT","RADIO","CHECKBOX"];return(e.notParticipatingSearch||"")!==n.POSITIVE&&t.includes(c.getCellType(e))&&a(e.options)&&e.options.length})($)&&(F=null!=(b=null==(k=$.options)?void 0:k.map((e=>({...e,key:e.label}))))?b:[]);const{filterState:x,setChecked:I,setSort:j}=function(e,t,l={}){const{stateMap:o,setChecked:s,setSort:i}=v(e);return{filterState:o.set(t,o.get(t)||{options:[],checked:l.checked||[],sortStatus:l.sortStatus||null}).get(t),setChecked:s,setSort:i}}(o,l.field,$.filterDefaultValue);x.options=F;const P=null==(C=l.slots)?void 0:C.header,U=e({get:()=>x.sortStatus,set:e=>j({field:l.field,value:e,$table:u.value,emits:p})}),w=e({get:()=>x.checked,set:e=>I({field:l.field,value:e,$table:u.value,emits:p})}),D=e((()=>x.options));l.slots={...l.slots,header:e=>t(f,{payload:e,options:D.value,sortable:E,checked:w.value,"onUpdate:checked":e=>w.value=e,sortStatus:U.value,"onUpdate:sortStatus":e=>U.value=e},{header:()=>r(P)?P(e):P})}})),l))),o.setupHooks.setup.tap(m,(e=>{l((()=>e.value.uuid&&h(e.value.uuid)))})),o.exposeHooks.expose.tap(m,((e,t,{$table:l,emits:o})=>({...e,getFilterState(e){if(!t.value.uuid)return;const{stateMap:l}=v(t.value.uuid),o=l.get(e);return o&&{checked:[...o.checked],sortStatus:o.sortStatus}},setFilterState(e,s){if(!t.value.uuid)return;const{setChecked:i,setSort:r}=v(t.value.uuid);Reflect.has(s,"sortStatus")&&r({field:e,value:s.sortStatus,$table:l.value,emits:o}),a(s.checked)&&i({field:e,value:s.checked,$table:l.value,emits:o})}})))}})}export{m as filterPlugin};
@@ -1,7 +0,0 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
2
- import { VxeTablePropTypes } from 'vxe-table';
3
- export declare type FilterState = {
4
- options: AnyObject[];
5
- checked: string[];
6
- sortStatus: VxeTablePropTypes.SortOrder;
7
- };
@@ -1 +0,0 @@
1
- import{createVNode as e,mergeProps as r}from"vue";import"../../../../index.js";import{EDITABLE_WIDGET_TYPE as t}from"../../../constants/index.js";import{NTimePicker as o}from"naive-ui";import{createIhoTableClearActivedInterceptor as n,IhoTableRenderHelper as i}from"../../../utils/index.js";import{defineTablePlugin as l}from"../../../hooks/useTablePlugin.js";function m(){return l({name:"timeRendererPlugin",vxe(l){l.interceptor.add("event.clearActived",n(t.TIME,(e=>e.classList.contains("n-time-picker-panel")))),l.renderer.add(t.TIME,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:t,row:n,column:i,emitFormChangeWithParams:l,emitFormClick:m})=>{const{placeholder:a="请选择",valueFormat:d="HH:mm"}=t.componentProps||{},s={placeholder:a,valueFormat:d,format:d||"yyyy-MM-dd HH:mm:ss",onUpdateFormattedValue:e=>{const r=n[i.field];n[i.field]=e,l({oldValue:r})},onClick:m};return[e(o,r({formattedValue:n[i.field],"onUpdate:formattedValue":e=>n[i.field]=e},s,t.componentProps),null)]}))})}})}export{m as timeRendererPlugin};
@@ -1 +0,0 @@
1
- import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
@@ -1 +0,0 @@
1
- import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};