cnhis-design-vue 3.1.57-beta.3 → 3.1.57-beta.32

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 (259) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/index.d.ts +8 -8
  7. package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
  8. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  9. package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
  10. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
  11. package/es/components/button-print/style/index.css +1 -1
  12. package/es/components/calendar/index.d.ts +277 -0
  13. package/es/components/calendar/index.js +1 -0
  14. package/es/components/calendar/src/Calendar.vue.d.ts +266 -0
  15. package/es/components/calendar/src/Calendar.vue.js +1 -0
  16. package/es/components/calendar/src/Calendar.vue2.js +1 -0
  17. package/es/components/calendar/src/types/index.d.ts +6 -0
  18. package/es/components/calendar/src/types/index.js +1 -0
  19. package/es/components/calendar/style/index.css +1 -0
  20. package/es/components/callback/src/components/render/popupMaps.d.ts +259 -224
  21. package/es/components/classification/index.d.ts +3 -3
  22. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -3
  23. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -3
  24. package/es/components/classification/src/index.vue.d.ts +6 -3
  25. package/es/components/date-picker/index.d.ts +1 -1
  26. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  27. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  28. package/es/components/drag-scroll/index.d.ts +2 -0
  29. package/es/components/drag-scroll/index.js +1 -0
  30. package/es/components/drag-scroll/src/index.d.ts +4 -0
  31. package/es/components/drag-scroll/src/index.js +1 -0
  32. package/es/components/drag-scroll/src/types.d.ts +19 -0
  33. package/es/components/drag-scroll/src/types.js +1 -0
  34. package/es/components/expand-field/index.d.ts +3 -3
  35. package/es/components/expand-field/src/components/form.vue.d.ts +3 -3
  36. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  37. package/es/components/expand-field/src/index.vue.d.ts +3 -3
  38. package/es/components/fabric-chart/index.d.ts +4 -2
  39. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  40. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  41. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  42. package/es/components/fabric-chart/src/constants/index.d.ts +2 -1
  43. package/es/components/fabric-chart/src/constants/index.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  50. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  51. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  52. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  53. package/es/components/fabric-chart/src/interface.d.ts +4 -3
  54. package/es/components/field-set/index.d.ts +107 -616
  55. package/es/components/field-set/index.js +1 -1
  56. package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
  57. package/es/components/field-set/src/FieldColor.vue.js +1 -0
  58. package/es/components/field-set/src/FieldColor.vue2.js +1 -0
  59. package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
  60. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  61. package/es/components/field-set/src/Index.vue.d.ts +141 -0
  62. package/es/components/field-set/src/Index.vue.js +1 -0
  63. package/es/components/field-set/src/Index.vue2.js +1 -0
  64. package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
  65. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  66. package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
  67. package/es/components/field-set/src/components/condition.vue.js +1 -0
  68. package/es/components/field-set/src/components/condition.vue2.js +1 -0
  69. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
  70. package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
  71. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
  72. package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
  73. package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
  74. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
  75. package/es/components/field-set/src/constants/index.d.ts +55 -0
  76. package/es/components/field-set/src/constants/index.js +1 -0
  77. package/es/components/field-set/src/types/index.d.ts +31 -1
  78. package/es/components/field-set/src/utils/index.d.ts +2 -1
  79. package/es/components/field-set/src/utils/index.js +1 -1
  80. package/es/components/field-set/style/index.css +1 -1
  81. package/es/components/form-config/index.d.ts +89 -30
  82. package/es/components/form-config/src/FormConfig.vue.d.ts +89 -30
  83. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -8
  84. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +40 -11
  85. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  86. package/es/components/form-config/src/constants/index.d.ts +1 -1
  87. package/es/components/form-config/src/types/index.d.ts +2 -2
  88. package/es/components/form-render/index.d.ts +31 -8
  89. package/es/components/form-render/index.js +1 -1
  90. package/es/components/form-render/src/FormRender.vue.d.ts +31 -8
  91. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  92. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -8
  93. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
  94. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  95. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  96. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  97. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
  98. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  99. package/es/components/form-render/src/components/renderer/select.d.ts +2 -0
  100. package/es/components/form-render/src/components/renderer/select.js +1 -1
  101. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  102. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  103. package/es/components/form-render/src/hooks/index.js +1 -1
  104. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  105. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -2
  106. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  107. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  108. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  109. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  110. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  111. package/es/components/form-render/src/types/index.d.ts +2 -1
  112. package/es/components/guide/src/renderer.d.ts +2 -2
  113. package/es/components/iho-table/index.d.ts +228 -216
  114. package/es/components/iho-table/src/IhoTable.vue.d.ts +228 -216
  115. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  116. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -5
  117. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  118. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -1
  119. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  120. package/es/components/iho-table/src/plugins/{bindEventSettingPlugin/index.d.ts → bindEventSettingPlugin.d.ts} +1 -1
  121. package/es/components/iho-table/src/plugins/bindEventSettingPlugin.js +1 -0
  122. package/es/components/iho-table/src/plugins/{defaultConfigPlugin/index.d.ts → defaultConfigPlugin.d.ts} +1 -1
  123. package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +1 -0
  124. package/es/components/iho-table/src/plugins/dragScrollPlugin.d.ts +1 -0
  125. package/es/components/iho-table/src/plugins/dragScrollPlugin.js +1 -0
  126. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
  127. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +4 -2
  128. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  129. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  130. package/es/components/iho-table/src/plugins/index.js +1 -1
  131. package/es/components/iho-table/src/plugins/{keyboardEventPlugin/index.d.ts → keyboardEventPlugin.d.ts} +1 -1
  132. package/es/components/iho-table/src/plugins/keyboardEventPlugin.js +1 -0
  133. package/es/components/iho-table/src/plugins/{lowCodeFieldAdaptorPlugin/index.d.ts → lowCodeFieldAdaptorPlugin.d.ts} +1 -1
  134. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -0
  135. package/es/components/iho-table/src/plugins/{operationalFormPlugin/index.d.ts → operationalFormPlugin.d.ts} +1 -1
  136. package/es/components/iho-table/src/plugins/operationalFormPlugin.js +1 -0
  137. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +32 -2
  138. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  139. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  140. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  141. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  147. package/es/components/iho-table/src/plugins/rowClickPlugin.d.ts +1 -0
  148. package/es/components/iho-table/src/plugins/rowClickPlugin.js +1 -0
  149. package/es/components/iho-table/src/plugins/rowDragPlugin.d.ts +1 -0
  150. package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -0
  151. package/es/components/iho-table/src/plugins/{varialbleHeightPlugin/index.d.ts → varialbleHeightPlugin.d.ts} +1 -1
  152. package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -0
  153. package/es/components/iho-table/src/plugins/verticalTablePlugin/constants.d.ts +1 -0
  154. package/es/components/iho-table/src/plugins/verticalTablePlugin/constants.js +1 -0
  155. package/es/components/iho-table/src/plugins/verticalTablePlugin/index.d.ts +1 -0
  156. package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -0
  157. package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.d.ts +3 -0
  158. package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.js +1 -0
  159. package/es/components/iho-table/src/plugins/verticalTablePlugin/types.d.ts +8 -0
  160. package/es/components/iho-table/src/plugins/verticalTablePlugin/types.js +1 -0
  161. package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.d.ts +15 -0
  162. package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.js +1 -0
  163. package/es/components/iho-table/src/plugins/{virtualTreePlugin/index.d.ts → virtualTreePlugin.d.ts} +1 -1
  164. package/es/components/iho-table/src/plugins/virtualTreePlugin.js +1 -0
  165. package/es/components/iho-table/src/types/index.d.ts +10 -1
  166. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  167. package/es/components/iho-table/src/utils/index.d.ts +4 -7
  168. package/es/components/iho-table/src/utils/index.js +1 -1
  169. package/es/components/index.css +1 -1
  170. package/es/components/index.d.ts +3 -1
  171. package/es/components/index.js +1 -1
  172. package/es/components/info-header/index.d.ts +74 -23
  173. package/es/components/info-header/src/InfoHeader.vue.d.ts +74 -23
  174. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -1
  175. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -1
  176. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +33 -9
  177. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +31 -8
  178. package/es/components/keyboard/index.d.ts +1 -1
  179. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  180. package/es/components/quick-search/index.d.ts +3 -3
  181. package/es/components/quick-search/src/index.vue.d.ts +3 -3
  182. package/es/components/recommend-search/index.d.ts +6 -6
  183. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
  184. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  185. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  186. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  187. package/es/components/scale-view/index.d.ts +3 -3
  188. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
  189. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  190. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  191. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  192. package/es/components/select-label/index.d.ts +2 -2
  193. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  194. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  195. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  196. package/es/components/select-label/src/index.vue.d.ts +1 -1
  197. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  198. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  199. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  200. package/es/components/shortcut-setter/index.d.ts +32 -8
  201. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -8
  202. package/es/components/table-export-field/index.d.ts +3 -3
  203. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  204. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
  205. package/es/components/table-export-field/src/index.vue.d.ts +3 -3
  206. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -1
  207. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +1 -1
  208. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -1
  209. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -1
  210. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
  211. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
  212. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  213. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -2
  214. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  215. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  216. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  217. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  218. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
  219. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -4
  220. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  221. package/es/components/time-line/index.d.ts +7 -7
  222. package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
  223. package/es/env.d.ts +25 -25
  224. package/es/shared/assets/img/failure.png.js +1 -1
  225. package/es/shared/assets/img/no-permission.png.js +1 -1
  226. package/es/shared/assets/img/nodata.png.js +1 -1
  227. package/es/shared/assets/img/notfound.png.js +1 -1
  228. package/es/shared/assets/img/qr.png.js +1 -1
  229. package/es/shared/assets/img/success.png.js +1 -1
  230. package/es/shared/assets/img/video.png.js +1 -1
  231. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  232. package/es/shared/assets/img/xb_big.png.js +1 -1
  233. package/es/shared/assets/img/xb_small.png.js +1 -1
  234. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  235. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  236. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +3 -1
  237. package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
  238. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  239. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  240. package/es/shared/package.json.js +1 -1
  241. package/es/shared/types/business.d.ts +23 -3
  242. package/es/shared/utils/business.d.ts +2 -1
  243. package/es/shared/utils/business.js +1 -1
  244. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  245. package/es/shared/utils/index.d.ts +2 -1
  246. package/es/shared/utils/index.js +1 -1
  247. package/es/shared/utils/tapable/index.d.ts +139 -0
  248. package/package.json +8 -2
  249. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +0 -1
  250. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -1
  251. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -1
  252. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -1
  253. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +0 -1
  254. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +0 -1
  255. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +0 -1
  256. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +0 -1
  257. package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +0 -1
  258. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +0 -1
  259. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +0 -1
@@ -0,0 +1,8 @@
1
+ import { AnyObject } from '../../../../../shared/types';
2
+ import { IhoTableFieldItem } from '../../../../../components/iho-table';
3
+ export declare type IhoTableVerticalState = {
4
+ originalFieldList?: IhoTableFieldItem[];
5
+ verticalFieldList?: IhoTableFieldItem[];
6
+ verticalData?: AnyObject[];
7
+ headerDepth?: number;
8
+ };
@@ -0,0 +1,15 @@
1
+ import { AnyObject } from '../../../../../shared/types';
2
+ import { VxeTableDefines } from 'vxe-table';
3
+ import { IhoTableConfig, IhoTableFieldItem } from '../../../../../components/iho-table';
4
+ export declare function isVerticalTable(tableConfig: IhoTableConfig): boolean;
5
+ export declare function getFieldListDepth(fieldList: IhoTableFieldItem[]): number;
6
+ export declare function isVerticalHeader({ field }: IhoTableFieldItem): boolean;
7
+ export declare function isVerticalBody({ field }: IhoTableFieldItem): boolean;
8
+ export declare function getHeaderDepthByField({ field }: IhoTableFieldItem): number;
9
+ export declare function bindHeaderInfoAndFlatten(fieldList: IhoTableFieldItem[], depth: number): IhoTableFieldItem[];
10
+ export declare function pickHeaderInfo(fieldItem: IhoTableFieldItem): Pick<IhoTableFieldItem, string>;
11
+ export declare function getSpanInfo(row: AnyObject, column: VxeTableDefines.ColumnInfo): {
12
+ rowspan: any;
13
+ colspan: any;
14
+ };
15
+ export declare function createVerticalFieldList(tableData: AnyObject[], headerDepth: number): IhoTableFieldItem[];
@@ -0,0 +1 @@
1
+ import{traverse as e}from"../../../../../shared/utils/index.js";import{isString as n,pick as r,range as t}from"lodash-es";import{VERTICAL_CELL_TYPE as i}from"./constants.js";function o(e){var n;return!!(null==(n=e.verticalConfig)?void 0:n.enable)}function a(e){let n=0;return function e(r,t=0){r.forEach((r=>{r.children?e(r.children,t+1):n=Math.max(n,t)}))}(e),n}function l({field:e}){return!!n(e)&&(null==e?void 0:e.startsWith("header_"))}function d({field:e}){return!!n(e)&&(null==e?void 0:e.startsWith("body_"))}function c({field:e}){var r;return n(e)?+(null!=(r=e.split("_")[1])?r:0):0}function f(n,r){const i=[];return e(n,((e,n,a)=>{e.parent=a,e.children||(!function(e,n){let r=e,i=n;if(!e.parent)return e[`header_${n}`]=e.title,void t(n+1).forEach((r=>{e[`header_${r}_colspan`]=r===n?n+1:0,e[`header_${r}_rowspan`]=r===n?1:0}));for(;r;)e[`header_${i}`]=r.title,e[`header_${i}_rowspan`]=o(r),e[`header_${i}_colspan`]=1,i--,r=r.parent}(e,r),i.push(e))})),i.forEach(((e,n)=>{const r=i[n-1];r&&Object.entries(e).forEach((([n,t])=>{n.match(/^header_(\d+)$/)&&t===r[n]&&(e[`${n}_colspan`]=0,e[`${n}_rowspan`]=0)}))})),i;function o(n){if(!n.children)return 1;let r=0;return e(n.children,(e=>{e.children||r++})),r}}function s(e){return r(e,Object.keys(e).filter((e=>e.startsWith("header_"))))}function u(e,n){var r,t;return l(n)?{rowspan:null!=(r=e[n.field+"_rowspan"])?r:1,colspan:null!=(t=e[n.field+"_colspan"])?t:1}:{colspan:1,rowspan:1}}function h(e,n){return[...t(n+1).map((e=>({field:`header_${e}`,title:`header_${e}`,minWidth:100,fixed:"left"}))),...e.map(((e,n)=>({field:`body_${n}`,title:`body_${n}`,minWidth:100,editRender:{name:i,props:{},enable:!0}})))]}export{f as bindHeaderInfoAndFlatten,h as createVerticalFieldList,a as getFieldListDepth,c as getHeaderDepthByField,u as getSpanInfo,d as isVerticalBody,l as isVerticalHeader,o as isVerticalTable,s as pickHeaderInfo};
@@ -1 +1 @@
1
- export declare function virtualTreePlugin(): import("../../../../../components/iho-table").TablePlugin;
1
+ export declare function virtualTreePlugin(): import("../../../../components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import{traverse as e,uuidGenerator as t,DMZ as r}from"../../../../shared/utils/index.js";import{isArray as i,sortBy as n,isFunction as o,isEmpty as s}from"lodash-es";import{onBeforeUnmount as d}from"vue";import"../../index.js";import{HIGHEST_PRIORITY as a,IHO_TABLE_TREE_TYPE as f}from"../constants/index.js";import{isTransformTreeType as l}from"../utils/index.js";import{defineTablePlugin as u}from"../hooks/useTablePlugin.js";function p(){const p="virtualTreePlugin",c=new Map;return u({name:p,apply(u){u.configHooks.treeConfig.tap({name:p,stage:a},((e,t)=>l(t)?Object.assign({transform:!0,expandAll:!0,reserve:!0,children:"childrenList",rowField:"__id"},e):e)),u.dataHooks.data.tap(p,((r,n,o)=>{if(!n.treeConfig)return;const{transform:s,rowField:d="__id",parentField:a="parentId",children:f="childrenList"}=n.treeConfig;function u(e){e[d]=e[d]||e.theUniqueKey||t()}l(n)&&s&&(u(r),i(r[f])&&e(r[f],((e,t,r)=>{r&&(e[a]=r[d]),o.insertAfter(e),u(e)}),f,r))})),u.fieldHooks.fieldList.tap(p,((e,t)=>{if(!t.treeConfig)return e;const{transform:i}=t.treeConfig||r;if(!l(t)||!i||!t.uuid)return e;const o=e.filter((e=>!1!==e.visible));let s=o.findIndex((e=>e.treeNode));if(~s&&o[s].fixed){const e=n(o,(e=>"left"===e.fixed?-1:"right"===e.fixed?1:0));s=e.findIndex((e=>e.treeNode))}~s||o.some(((e,t)=>{if(!e.type)return s=t,e.treeNode=!0}));const d=o.length-s-o.filter((e=>"right"===e.fixed)).length;return c.set(t.uuid,{index:s,colspan:d}),e})),u.configHooks.treeConfig.tap(p,((e,t)=>{if(!e)return e;const{transform:r,parentField:i="parentId",hasChild:n="hasChild",children:d="childrenList"}=e;if(o(t.spanMethod)||!r||`${t.isTree}`!==f.TRANSFORM_WITH_SPAN_METHOD)return e;const a=Object.freeze({rowspan:0,colspan:0});return t.spanMethod=({row:e,column:r,$columnIndex:o})=>{const f=c.get(t.uuid);if(f&&(Reflect.has(e,n)?e[n]:!e[i])&&!s(e[d]))return r.treeNode?{rowspan:1,colspan:f.colspan}:"right"!==r.fixed&&o>=f.index?a:void 0},e})),u.setupHooks.setup.tap(p,(e=>{d((()=>{var t;(null==(t=e.value)?void 0:t.uuid)&&c.delete(e.value.uuid)}))}))}})}export{p as virtualTreePlugin};
@@ -1,11 +1,12 @@
1
1
  import { AnyObject, ArrayAble, AnyFn, MaybeString, LowCodeTypes, TupleToUnion } from '../../../../shared/types';
2
- import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes, VxeTableConstructor } from 'vxe-table';
2
+ import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes, VxeTableConstructor, VxeTableMethods } from 'vxe-table';
3
3
  import { VxePagerEventProps } from 'vxe-table/types/pager';
4
4
  import { VxeTableEventProps, VxeTableListeners, VxeTablePrivateMethods } from 'vxe-table/types/table';
5
5
  import { AnnotationItem } from '../../../../components/annotation-edit/src/type';
6
6
  import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../components/iho-table/src/constants';
7
7
  import Sortable from 'sortablejs';
8
8
  export * from './pluginType';
9
+ export declare type $VxeTable = VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods;
9
10
  export interface IhoTableRowGroupItem {
10
11
  groupName?: string;
11
12
  title: string;
@@ -18,6 +19,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
18
19
  isTree: MaybeString<0 | 1 | 2 | 3>;
19
20
  isBatchSelect: MaybeString<0 | 1>;
20
21
  isSingleSelect: MaybeString<0 | 1>;
22
+ dragScroll: boolean;
21
23
  selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
22
24
  rowDraggable: boolean;
23
25
  showSeq: boolean;
@@ -54,12 +56,18 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
54
56
  radioConfig: Partial<VxeTableProps['radioConfig'] & {
55
57
  slots: VxeColumnPropTypes.Slots;
56
58
  }>;
59
+ verticalConfig: {
60
+ enable?: boolean;
61
+ };
57
62
  [K: string]: unknown;
58
63
  }>;
59
64
  export declare type IhoTableFieldItem = {
60
65
  [K in keyof VxeTableDefines.ColumnInfo]?: K extends 'children' ? IhoTableFieldItem[] : K extends keyof VxeTableDefines.ColumnInfo ? VxeTableDefines.ColumnInfo[K] : never;
61
66
  } & Partial<{
62
67
  annotation: boolean;
68
+ depth: number;
69
+ parent: IhoTableFieldItem;
70
+ [key: string]: any;
63
71
  }>;
64
72
  export declare namespace IhoTableLowCodeField {
65
73
  type FieldSetting = Partial<{
@@ -117,6 +125,7 @@ export declare type LowCodeTableFieldItem = {
117
125
  formType: string;
118
126
  fieldSetting: string | IhoTableLowCodeField.FieldSetting;
119
127
  filterCapacity: number;
128
+ onFilterShow: any;
120
129
  notParticipatingSearch: 0 | 1;
121
130
  componentProps: AnyObject;
122
131
  options: {
@@ -6,7 +6,7 @@ import { VxeGlobalCommands, VxeGlobalFormats, VxeGlobalHooks, VxeGlobalMenus, Vx
6
6
  import { VxeTableEvents } from 'vxe-table/types/table';
7
7
  import { VxePagerEvents } from 'vxe-table/types/pager';
8
8
  import { VxeGlobalInterceptor } from 'vxe-table/types/v-x-e-table';
9
- import { IhoTableConfig, IhoTableEmits, IhoTableEventTypes, IhoTableFieldItem, IhoTableHandler } from '.';
9
+ import { IhoTableConfig, IhoTableEmits, IhoTableEventTypes, IhoTableFieldItem, IhoTableHandler, IhoTableProps } from '.';
10
10
  export declare type IhoTableInstance = {
11
11
  interceptor: VxeGlobalInterceptor;
12
12
  renderer: VxeGlobalRenderer;
@@ -24,6 +24,7 @@ export declare type TablePlugin = {
24
24
  export declare type IhoTableHandlerContext<isRef extends boolean = true> = {
25
25
  $table: isRef extends true ? Ref<Nullable<VxeTableInstance>> : Nullable<VxeTableInstance>;
26
26
  emits: IhoTableEmits;
27
+ globProps: IhoTableProps;
27
28
  };
28
29
  export declare type TableHooks = Readonly<{
29
30
  configHooks: AbstractConfigHooks;
@@ -150,6 +151,7 @@ export declare abstract class AbstractDataHooks {
150
151
  abstract readonly dataStart: AsyncParallelHook<WithTableConfig>;
151
152
  abstract readonly data: AsyncSeriesHook<WithTableDataContext<[AnyObject]>>;
152
153
  abstract readonly dataEnd: AsyncParallelHook<WithTableConfig>;
154
+ abstract readonly dataList: SyncWaterfallHook<WithTableConfig<[AnyObject[]]>>;
153
155
  }
154
156
  export declare abstract class AbstractSetupHooks {
155
157
  abstract readonly setup: SyncHook<[Ref<IhoTableConfig>, Ref<IhoTableFieldItem[]>, IhoTableHandlerContext]>;
@@ -1,9 +1,8 @@
1
- import { AnyObject, ArrayAble, Nullable } from '../../../../shared/types';
1
+ import { AnyObject, Nullable } from '../../../../shared/types';
2
2
  import { MaybeRef } from '@vueuse/core';
3
3
  import { VxeTableDefines, VxeTableInstance } from 'vxe-table';
4
4
  import { VxeGlobalRendererHandles } from 'vxe-table/types/v-x-e-table/renderer';
5
- import { EventListenerToEventName, EventNameToEventListener, IhoTableConfig, IhoTableFieldItem, LowCodeTableFieldItem } from '../../../../components/iho-table';
6
- import { EDITABLE_WIDGET_TYPE } from '../../../../components/iho-table/src/constants';
5
+ import { $VxeTable, EventListenerToEventName, EventNameToEventListener, IhoTableConfig, IhoTableFieldItem, LowCodeTableFieldItem } from '../../../../components/iho-table';
7
6
  export * from './separateMap';
8
7
  export declare function IhoTableLog(message: string): void;
9
8
  export declare function IhoTableWarn(message: string): void;
@@ -45,10 +44,6 @@ export declare const IhoTableStatusHelper: Readonly<{
45
44
  notPositive(value: string | number | undefined | null): boolean;
46
45
  notNegative(value: string | number | undefined | null): boolean;
47
46
  }>;
48
- export declare const createIhoTableClearActivedInterceptor: (type: ArrayAble<EDITABLE_WIDGET_TYPE>, solution: (ele: HTMLElement) => boolean) => ({ $event, column }: {
49
- $event: Event;
50
- column: VxeTableDefines.ColumnInfo;
51
- }) => boolean;
52
47
  export declare function isTransformTreeType(config: IhoTableConfig): boolean;
53
48
  export declare function isRichContent(content: string): content is string;
54
49
  export declare function parseRichContent(richContent: string): any;
@@ -57,3 +52,5 @@ export declare function isCompatibleColumn(field: LowCodeTableFieldItem): number
57
52
  export declare function getTitle(column: VxeTableDefines.ColumnInfo, value?: unknown): string;
58
53
  export declare function isInvalidTime(column: VxeTableDefines.ColumnInfo, newValue: MaybeRef<any>): boolean;
59
54
  export declare function isInvalidDate(column: VxeTableDefines.ColumnInfo, row: AnyObject, newValue: MaybeRef<any>): any;
55
+ export declare function isVariableHeightColumn(field: AnyObject): boolean;
56
+ export declare function isVariableHeightTable($table: $VxeTable): boolean;
@@ -1 +1 @@
1
- import{reactive as e,inject as n,unref as t,toRaw as r,createVNode as o}from"vue";import{jsonParse as i,arrayed as l,findAncestor as u}from"../../../../shared/utils/index.js";import{promiseTimeout as a}from"@vueuse/shared";import{parse as c,isValid as d,compareDesc as s}from"date-fns";import{isNumber as f,isFunction as p,isString as m,isObject as v,isArray as I}from"lodash-es";import{InjectionIhoTableConfig as g,InjectionIhoTableEmits as h,IHO_TABLE_STRING_STATUS as E,IHO_TABLE_NUMBER_STATUS as w,IHO_TABLE_TREE_TYPE as T,InjectionIhoTableUUID as R}from"../constants/index.js";import{getSeparateInfo as S}from"./separateMap.js";export{deleteSeparateInfo,getSeparateInfo,setSeparateInfo}from"./separateMap.js";function C(e){return console.warn(`[IhoTable]: ${e}`)}const F=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function D(){var e,t,r;const o=n(g);return o||C("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(e=null==o?void 0:o.value)?void 0:e.rowConfig)?void 0:t.height)?r:32}function O(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function P(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function A(n,t=!0){const r=t?e(new Map):new Map;return{getItemFromUUID:function(e){return r.set(e,r.get(e)||n()).get(e)},setItemFromUUID:function(e,n){r.set(e,n)},removeItemFromUUID:function(e){r.delete(e)}}}async function b(e,n,r,o,i=2){const l=function(){var i;const l=null==(i=t(o))?void 0:i.getColumnByField(e.field);if(!l)return;const u=x(l);return u?p(u.separateWidth)?u.separateWidth({column:l,row:n,rowIndex:r,$table:t(o)}):f(u.separateWidth)?u.separateWidth:l.renderWidth:l.renderWidth}();return f(l)&&l>0?l:i<=0?function(){const n=+e.colWidth;return f(n)?n:64}():(await a(0),b(e,n,r,o,i-1))}function $(e){const o=n(h);function i(){var n;const r=t(e);return{$table:r.$table,value:r.row[r.column.field],row:r.row,column:{...r.column,...null==(n=r.column.editRender)?void 0:n.props},index:r.rowIndex>-1?r.rowIndex:r.$rowIndex}}function l(e={}){o("formChange",{...i(),...r(e)})}function u(e={}){o("formClick",{...i(),...r(e)})}return{emitFormChange:function(){l()},emitFormClick:function(){u()},emitFormChangeWithParams:l,emitFormClickWithParams:u}}function x(e){var n;return null==(n=e.editRender)?void 0:n.props}const N=Object.freeze({createDefaultRenderCell:function(){return function({props:e},{row:t,column:r}){if("bottom"!==(null==e?void 0:e.separatePlacement))return c(t[r.field]);const i=n(R),l=S(i,t);if(!l)return c(t[r.field]);const{originalData:u=t,isLastRow:a}=l;return c(a?u[r.field]:null);function c(e){return[o("span",{title:G(r,e),class:"iho-table__colorAndIcon"},[e])]}}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...$(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){if(M(e))return!0;let n=e.fieldSetting;return m(n)&&(n=i(n||"")),v(n)&&((t=n).notParticipatingSearch!==E.POSITIVE&&"manual"===(null==(r=t.mapping)?void 0:r.type));var t,r},hasDateFiler(e){var n;return null==(n=null==e?void 0:e.filterSetting)?void 0:n.daterange}}),V=Object.freeze({isPositive:e=>e===w.POSITIVE||e===E.POSITIVE,isNegative:e=>e===w.NEGATIVE||e===E.NEGATIVE,notPositive:e=>e!==w.POSITIVE&&e!==E.POSITIVE,notNegative:e=>e!==w.NEGATIVE&&e!==E.NEGATIVE}),W=(e,n)=>({$event:t,column:r})=>{var o;if(!l(e).includes(null==(o=r.editRender)?void 0:o.name))return!0;const i=null==t?void 0:t.target;return!v(i)||!u(i,n)};function _(e){return[T.TRANSFORM_WITH_SPAN_METHOD,T.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function U(e){return m(e)&&!!e.match(/^###\{[^{}]+}$/)}function j(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}function y(e,n){if(e.$__SEPARATE||!n.editRender||!n.editRender.props)return e[n.field];const{fieldSetting:t}=n.editRender.props;if(!m(t))return e[n.field];const{mergedFeildExpression:r}=i(t);return r&&m(r)?r.replace(/#{(.+?)}/g,(function(n,t){let r=t?e[t.trim()]:null;U(r)&&(r=j(r).change_text);return r||(null==r?"--":r)})):e[n.field]}const H=["SEARCH","SELECT","RADIO","CHECKBOX"];function M(e){return e.notParticipatingSearch===w.NEGATIVE&&H.includes(F.getCellType(e))&&I(e.options)&&e.options.length}function G(e,n=""){return"tooltip"!==e.showOverflow&&m(n)?n:""}function L(e,n){var r,o,i;n=t(n)||"";const l=null!=(o=null==(r=e.editRender)?void 0:r.props)?o:{},u=c(n,(null==(i=null==l?void 0:l.componentProps)?void 0:i.valueFormat)||"HH:mm",new Date);return!d(u)}function k(e,n,r){var o,i;const l=null!=(i=null==(o=e.editRender)?void 0:o.props)?i:{};return r=t(r)||"",!d(new Date(r))||m(l.connectField)&&n[l.connectField]&&(l.isStartDate&&s(new Date(r),new Date(n[l.connectField]))<0||l.isEndDate&&s(new Date(r),new Date(n[l.connectField]))>0)}export{N as IhoTableRenderHelper,V as IhoTableStatusHelper,F as IhoTableUtils,C as IhoTableWarn,W as createIhoTableClearActivedInterceptor,O as eventListener2EventName,P as eventName2EventListener,b as getColumnRenderWidth,x as getLowCodeFieldFromField,D as getRowHeight,G as getTitle,M as isCompatibleColumn,k as isInvalidDate,L as isInvalidTime,U as isRichContent,_ as isTransformTreeType,y as parseMergeField,j as parseRichContent,$ as useIhoTableFormEvent,A as useUUIDMap};
1
+ import{reactive as e,inject as n,unref as t,toRaw as r,createVNode as o}from"vue";import{jsonParse as i}from"../../../../shared/utils/index.js";import{promiseTimeout as l}from"@vueuse/shared";import{parse as u,isValid as a,compareDesc as c}from"date-fns";import{isNumber as d,isFunction as s,isString as f,isObject as p,isArray as m}from"lodash-es";import{InjectionIhoTableConfig as v,InjectionIhoTableEmits as I,IHO_TABLE_STRING_STATUS as g,IHO_TABLE_NUMBER_STATUS as h,IHO_TABLE_TREE_TYPE as E,EDITABLE_WIDGET_TYPE as w,InjectionIhoTableUUID as T}from"../constants/index.js";import{getSeparateInfo as R}from"./separateMap.js";export{deleteSeparateInfo,getSeparateInfo,setSeparateInfo}from"./separateMap.js";function C(e){return console.warn(`[IhoTable]: ${e}`)}const S=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function F(){var e,t,r;const o=n(v);return o||C("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(e=null==o?void 0:o.value)?void 0:e.rowConfig)?void 0:t.height)?r:32}function D(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function P(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function b(n,t=!0){const r=t?e(new Map):new Map;return{getItemFromUUID:function(e){return r.set(e,r.get(e)||n()).get(e)},setItemFromUUID:function(e,n){r.set(e,n)},removeItemFromUUID:function(e){r.delete(e)}}}async function A(e,n,r,o,i=2){const u=function(){var i;const l=null==(i=t(o))?void 0:i.getColumnByField(e.field);if(!l)return;const u=$(l);return u?s(u.separateWidth)?u.separateWidth({column:l,row:n,rowIndex:r,$table:t(o)}):d(u.separateWidth)?u.separateWidth:l.renderWidth:l.renderWidth}();return d(u)&&u>0?u:i<=0?function(){const n=+e.colWidth;return d(n)?n:64}():(await l(0),A(e,n,r,o,i-1))}function O(e){const o=n(I);function i(){var n;const r=t(e);return{$table:r.$table,value:r.row[r.column.field],row:r.row,column:{...r.column,...null==(n=r.column.editRender)?void 0:n.props},index:r.rowIndex>-1?r.rowIndex:r.$rowIndex}}function l(e={}){o("formChange",{...i(),...r(e)})}function u(e={}){o("formClick",{...i(),...r(e)})}return{emitFormChange:function(){l()},emitFormClick:function(){u()},emitFormChangeWithParams:l,emitFormClickWithParams:u}}function $(e){var n;return null==(n=e.editRender)?void 0:n.props}const x=Object.freeze({createDefaultRenderCell:function(){return function({props:e},{row:t,column:r}){if("bottom"!==(null==e?void 0:e.separatePlacement))return c(t[r.field]);const i=n(T),l=R(i,t);if(!l)return c(t[r.field]);const{originalData:u=t,isLastRow:a}=l;return c(a?u[r.field]:null);function c(e){return[o("span",{title:j(r,e),class:"iho-table__colorAndIcon"},[e])]}}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...O(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){if(U(e))return!0;let n=e.fieldSetting;return f(n)&&(n=i(n||"")),p(n)&&((t=n).notParticipatingSearch!==g.POSITIVE&&"manual"===(null==(r=t.mapping)?void 0:r.type));var t,r},hasDateFiler(e){var n;return null==(n=null==e?void 0:e.filterSetting)?void 0:n.daterange}}),N=Object.freeze({isPositive:e=>e===h.POSITIVE||e===g.POSITIVE,isNegative:e=>e===h.NEGATIVE||e===g.NEGATIVE,notPositive:e=>e!==h.POSITIVE&&e!==g.POSITIVE,notNegative:e=>e!==h.NEGATIVE&&e!==g.NEGATIVE});function V(e){return[E.TRANSFORM_WITH_SPAN_METHOD,E.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function W(e){return f(e)&&!!e.match(/^###\{[^{}]+}$/)}function _(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}function y(e,n){if(e.$__SEPARATE||!n.editRender||!n.editRender.props)return e[n.field];const{fieldSetting:t}=n.editRender.props;if(!f(t))return e[n.field];const{mergedFeildExpression:r}=i(t);return r&&f(r)?r.replace(/#{(.+?)}/g,(function(n,t){let r=t?e[t.trim()]:null;W(r)&&(r=_(r).change_text);return r||(null==r?"--":r)})):e[n.field]}const H=["SEARCH","SELECT","RADIO","CHECKBOX"];function U(e){return e.notParticipatingSearch===h.NEGATIVE&&H.includes(S.getCellType(e))&&m(e.options)&&e.options.length}function j(e,n=""){return"tooltip"!==e.showOverflow&&f(n)?n:""}function M(e,n){var r,o,i;n=t(n)||"";const l=null!=(o=null==(r=e.editRender)?void 0:r.props)?o:{},c=u(n,(null==(i=null==l?void 0:l.componentProps)?void 0:i.valueFormat)||"HH:mm",new Date);return!a(c)}function G(e,n,r){var o,i;const l=null!=(i=null==(o=e.editRender)?void 0:o.props)?i:{};return r=t(r)||"",!a(new Date(r))||f(l.connectField)&&n[l.connectField]&&(l.isStartDate&&c(new Date(r),new Date(n[l.connectField]))<0||l.isEndDate&&c(new Date(r),new Date(n[l.connectField]))>0)}function L(e){var n,t;return(!0===e.variableHeight||"1"===e.variableHeight)&&(null!=(t=null==(n=e.editRender)?void 0:n.name)?t:S.getCellType(e))!==w.SEPARATE}function k(e){const n=e.internalData.tableFullColumn;return!!m(n)&&n.some((e=>{var n,t;return L(null!=(t=null==(n=e.editRender)?void 0:n.props)?t:{})}))}export{x as IhoTableRenderHelper,N as IhoTableStatusHelper,S as IhoTableUtils,C as IhoTableWarn,D as eventListener2EventName,P as eventName2EventListener,A as getColumnRenderWidth,$ as getLowCodeFieldFromField,F as getRowHeight,j as getTitle,U as isCompatibleColumn,G as isInvalidDate,M as isInvalidTime,W as isRichContent,V as isTransformTreeType,L as isVariableHeightColumn,k as isVariableHeightTable,y as parseMergeField,_ as parseRichContent,O as useIhoTableFormEvent,b as useUUIDMap};