cnhis-design-vue 3.4.0-beta.9 → 3.4.0-release.7

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 (239) hide show
  1. package/es/_virtual/_virtual_i18n-methods.js +5 -1
  2. package/es/components/audio-sdk/index.d.ts +4 -4
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
  4. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
  5. package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
  6. package/es/components/base-search/index.d.ts +34 -0
  7. package/es/components/base-search/src/index.vue.d.ts +34 -0
  8. package/es/components/base-search/src/index.vue2.js +9 -1
  9. package/es/components/button-print/index.d.ts +32 -0
  10. package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
  11. package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
  12. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  13. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +77 -50
  14. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
  15. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
  16. package/es/components/button-print/src/utils/print.d.ts +2 -1
  17. package/es/components/button-print/src/utils/print.js +13 -8
  18. package/es/components/callback/src/components/render/popupMaps.d.ts +110 -222
  19. package/es/components/classification/index.d.ts +123 -0
  20. package/es/components/classification/src/components/search-filter/index.vue.d.ts +123 -0
  21. package/es/components/classification/src/components/set-classification/index.vue.d.ts +123 -0
  22. package/es/components/classification/src/index.vue.d.ts +123 -0
  23. package/es/components/classification/src/index.vue2.js +7 -0
  24. package/es/components/date-picker/index.d.ts +41 -0
  25. package/es/components/date-picker/src/DatePicker.vue.d.ts +41 -0
  26. package/es/components/date-picker/src/DatePicker.vue2.js +34 -4
  27. package/es/components/expand-field/index.d.ts +31 -0
  28. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
  29. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
  30. package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
  31. package/es/components/expand-field/src/index.vue.d.ts +31 -0
  32. package/es/components/fabric-chart/index.d.ts +3 -3
  33. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
  34. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  35. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
  36. package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
  37. package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
  38. package/es/components/fabric-chart/src/constants/index.js +26 -11
  39. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
  40. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
  41. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
  42. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +18 -12
  43. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
  44. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +61 -33
  45. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
  46. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -120
  47. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
  48. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
  49. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
  50. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
  51. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
  52. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
  53. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +21 -14
  54. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
  55. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
  56. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
  57. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  58. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
  59. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
  60. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +16 -14
  61. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
  62. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  63. package/es/components/fabric-chart/src/interface.d.ts +15 -1
  64. package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
  65. package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
  66. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  67. package/es/components/fabric-chart/src/utils/index.js +2 -10
  68. package/es/components/fabric-chart/style/index.css +1 -1
  69. package/es/components/field-editor/index.d.ts +1 -0
  70. package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
  71. package/es/components/field-set/src/FieldColor.vue.d.ts +83 -1
  72. package/es/components/field-set/src/FieldColor.vue2.js +2 -1
  73. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  74. package/es/components/field-set/src/FieldFilter.vue2.js +2 -1
  75. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  76. package/es/components/field-set/src/FieldSet.vue2.js +4 -1
  77. package/es/components/field-set/src/components/condition.vue.d.ts +41 -0
  78. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +82 -0
  79. package/es/components/field-set/src/components/edit-filter.vue.d.ts +41 -0
  80. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  81. package/es/components/field-set/src/components/table-row.vue2.js +1 -0
  82. package/es/components/form-config/index.d.ts +24 -0
  83. package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
  84. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
  85. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
  86. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
  87. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
  88. package/es/components/form-config/src/constants/index.d.ts +2 -0
  89. package/es/components/form-config/src/constants/index.js +2 -0
  90. package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
  91. package/es/components/form-render/index.d.ts +1 -0
  92. package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
  93. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
  94. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  95. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
  96. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  97. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  98. package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -2
  99. package/es/components/form-render/src/components/renderer/textarea.d.ts +2 -2
  100. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  101. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  102. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  103. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
  104. package/es/components/form-render/src/types/index.d.ts +1 -0
  105. package/es/components/form-render/src/utils/index.d.ts +1 -1
  106. package/es/components/form-render/src/utils/index.js +5 -2
  107. package/es/components/iho-chat/index.d.ts +2785 -302
  108. package/es/components/iho-chat/src/Index.vue.d.ts +2785 -302
  109. package/es/components/iho-chat/src/Index.vue2.js +5 -3
  110. package/es/components/iho-chat/src/api/index.d.ts +89 -16
  111. package/es/components/iho-chat/src/api/index.js +8 -1
  112. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
  113. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
  114. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
  115. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
  116. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +796 -101
  117. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
  118. package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
  119. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +217 -14
  120. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
  121. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
  122. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
  123. package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
  124. package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
  125. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
  126. package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
  127. package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
  128. package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
  129. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
  130. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
  131. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
  132. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
  133. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +134 -11
  134. package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
  135. package/es/components/iho-chat/src/components/userItemRender.js +2 -1
  136. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  137. package/es/components/iho-chat/src/constants/index.js +1 -0
  138. package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
  139. package/es/components/iho-chat/src/hooks/useData.js +31 -10
  140. package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
  141. package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
  142. package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
  143. package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
  144. package/es/components/iho-chat/src/types/index.d.ts +39 -7
  145. package/es/components/iho-chat/src/utils/index.d.ts +2 -1
  146. package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
  147. package/es/components/iho-chat/src/utils/sseClient.js +97 -0
  148. package/es/components/iho-chat/style/index.css +1 -1
  149. package/es/components/iho-table/index.d.ts +109 -222
  150. package/es/components/iho-table/src/IhoTable.vue.d.ts +109 -222
  151. package/es/components/iho-table/src/IhoTable.vue2.js +23 -14
  152. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  153. package/es/components/iho-table/src/constants/index.js +0 -21
  154. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +39 -60
  155. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  156. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  157. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +43 -4
  158. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
  159. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
  160. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
  161. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +41 -0
  162. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  163. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +25 -0
  164. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  165. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  166. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
  167. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  168. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  169. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
  170. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  171. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  172. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
  173. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
  174. package/es/components/iho-table/src/types/index.d.ts +3 -1
  175. package/es/components/index.css +1 -1
  176. package/es/components/info-header/index.d.ts +46 -2
  177. package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
  178. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
  179. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
  180. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
  181. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
  182. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
  183. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
  184. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
  185. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
  186. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
  187. package/es/components/scale-view/index.d.ts +1 -1
  188. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
  189. package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
  190. package/es/components/scale-view/src/hooks/use-event.js +56 -22
  191. package/es/components/select-person/index.d.ts +31 -0
  192. package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
  193. package/es/components/select-person/src/SelectPerson.vue2.js +38 -9
  194. package/es/components/select-person/src/index.vue.d.ts +31 -0
  195. package/es/components/select-person/src/index.vue2.js +4 -0
  196. package/es/components/select-person/src/utils/index.js +11 -9
  197. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +3 -0
  198. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +9 -3
  199. package/es/components/shortcut-setter/index.d.ts +2 -0
  200. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
  201. package/es/components/table-export-field/index.d.ts +6 -0
  202. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  203. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +2 -0
  204. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +49 -18
  205. package/es/components/table-export-field/src/index.vue.d.ts +6 -0
  206. package/es/components/table-export-field/src/types/index.d.ts +1 -0
  207. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +41 -0
  208. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +41 -0
  209. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +41 -0
  210. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +41 -0
  211. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +82 -0
  212. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +41 -0
  213. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +41 -0
  214. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +82 -0
  215. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +82 -0
  216. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +41 -0
  217. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +43 -0
  218. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
  219. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +41 -0
  220. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +43 -0
  221. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
  222. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +168 -0
  223. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
  224. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +168 -0
  225. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  226. package/es/components/table-filter/src/constants/index.js +4 -1
  227. package/es/shared/components/CancelRadio/CancelRadio.js +3 -1
  228. package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
  229. package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
  230. package/es/shared/components/Ellipsis/index.d.ts +2 -0
  231. package/es/shared/components/Ellipsis/index.js +2 -0
  232. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
  233. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
  234. package/es/shared/package.json.js +1 -1
  235. package/es/shared/types/business.d.ts +3 -2
  236. package/es/shared/utils/business.js +16 -0
  237. package/es/shared/utils/ho-edge.d.ts +12 -0
  238. package/es/shared/utils/ho-edge.js +58 -0
  239. package/package.json +3 -3
@@ -537,9 +537,22 @@ export declare const WidgetCfgMaps: Map<string, {
537
537
  type: StringConstructor;
538
538
  default: string;
539
539
  };
540
+ updateValueOnClose: {
541
+ type: BooleanConstructor;
542
+ default: boolean;
543
+ };
540
544
  isDateDisabled: {
541
545
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
542
546
  };
547
+ propKey: {
548
+ type: StringConstructor;
549
+ };
550
+ shortcutListenerConfig: {
551
+ type: import("vue").PropType<{
552
+ enable: boolean;
553
+ callback: (value: string, propKey?: string | undefined) => void;
554
+ }>;
555
+ };
543
556
  }>, {
544
557
  attrs: {
545
558
  [x: string]: unknown;
@@ -572,9 +585,22 @@ export declare const WidgetCfgMaps: Map<string, {
572
585
  type: StringConstructor;
573
586
  default: string;
574
587
  };
588
+ updateValueOnClose: {
589
+ type: BooleanConstructor;
590
+ default: boolean;
591
+ };
575
592
  isDateDisabled: {
576
593
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
577
594
  };
595
+ propKey: {
596
+ type: StringConstructor;
597
+ };
598
+ shortcutListenerConfig: {
599
+ type: import("vue").PropType<{
600
+ enable: boolean;
601
+ callback: (value: string, propKey?: string | undefined) => void;
602
+ }>;
603
+ };
578
604
  }>> & Readonly<{
579
605
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
580
606
  }> & {}>;
@@ -591,6 +617,7 @@ export declare const WidgetCfgMaps: Map<string, {
591
617
  focus: () => any;
592
618
  blur: () => any;
593
619
  handleConfirm: (target: HTMLInputElement) => void;
620
+ handleShortcutClick: (event: MouseEvent) => void;
594
621
  onUpdateShow: (show: boolean) => Promise<void>;
595
622
  watchers: import("../../../../../shared/types").AnyFn[];
596
623
  stopWatcher: () => void;
@@ -627,9 +654,22 @@ export declare const WidgetCfgMaps: Map<string, {
627
654
  type: StringConstructor;
628
655
  default: string;
629
656
  };
657
+ updateValueOnClose: {
658
+ type: BooleanConstructor;
659
+ default: boolean;
660
+ };
630
661
  isDateDisabled: {
631
662
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
632
663
  };
664
+ propKey: {
665
+ type: StringConstructor;
666
+ };
667
+ shortcutListenerConfig: {
668
+ type: import("vue").PropType<{
669
+ enable: boolean;
670
+ callback: (value: string, propKey?: string | undefined) => void;
671
+ }>;
672
+ };
633
673
  }>> & Readonly<{
634
674
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
635
675
  }>, {
@@ -637,6 +677,7 @@ export declare const WidgetCfgMaps: Map<string, {
637
677
  updateUnchangedValue: boolean;
638
678
  to: string | false | HTMLElement;
639
679
  holidays: Date[];
680
+ updateValueOnClose: boolean;
640
681
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
641
682
  DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
642
683
  componentCfg: {
@@ -813,8 +854,10 @@ export declare const WidgetCfgMaps: Map<string, {
813
854
  emit: (event: "update:value", ...args: any[]) => void;
814
855
  valueCp: import("vue").Ref<any, any>;
815
856
  rangeShortcuts: import("vue").Ref<any, any>;
857
+ shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
816
858
  dateFormat: import("vue").ComputedRef<string>;
817
859
  optionSetting: import("vue").ComputedRef<any>;
860
+ compName: import("vue").ComputedRef<any>;
818
861
  handleChange: (val: any) => void;
819
862
  isDateDisabled: (ts: number) => boolean;
820
863
  timeDisabled: (ts: number) => {
@@ -851,9 +894,22 @@ export declare const WidgetCfgMaps: Map<string, {
851
894
  type: StringConstructor;
852
895
  default: string;
853
896
  };
897
+ updateValueOnClose: {
898
+ type: BooleanConstructor;
899
+ default: boolean;
900
+ };
854
901
  isDateDisabled: {
855
902
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
856
903
  };
904
+ propKey: {
905
+ type: StringConstructor;
906
+ };
907
+ shortcutListenerConfig: {
908
+ type: import("vue").PropType<{
909
+ enable: boolean;
910
+ callback: (value: string, propKey?: string | undefined) => void;
911
+ }>;
912
+ };
857
913
  }>, {
858
914
  attrs: {
859
915
  [x: string]: unknown;
@@ -886,9 +942,22 @@ export declare const WidgetCfgMaps: Map<string, {
886
942
  type: StringConstructor;
887
943
  default: string;
888
944
  };
945
+ updateValueOnClose: {
946
+ type: BooleanConstructor;
947
+ default: boolean;
948
+ };
889
949
  isDateDisabled: {
890
950
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
891
951
  };
952
+ propKey: {
953
+ type: StringConstructor;
954
+ };
955
+ shortcutListenerConfig: {
956
+ type: import("vue").PropType<{
957
+ enable: boolean;
958
+ callback: (value: string, propKey?: string | undefined) => void;
959
+ }>;
960
+ };
892
961
  }>> & Readonly<{
893
962
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
894
963
  }> & {}>;
@@ -905,6 +974,7 @@ export declare const WidgetCfgMaps: Map<string, {
905
974
  focus: () => any;
906
975
  blur: () => any;
907
976
  handleConfirm: (target: HTMLInputElement) => void;
977
+ handleShortcutClick: (event: MouseEvent) => void;
908
978
  onUpdateShow: (show: boolean) => Promise<void>;
909
979
  watchers: import("../../../../../shared/types").AnyFn[];
910
980
  stopWatcher: () => void;
@@ -941,9 +1011,22 @@ export declare const WidgetCfgMaps: Map<string, {
941
1011
  type: StringConstructor;
942
1012
  default: string;
943
1013
  };
1014
+ updateValueOnClose: {
1015
+ type: BooleanConstructor;
1016
+ default: boolean;
1017
+ };
944
1018
  isDateDisabled: {
945
1019
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
946
1020
  };
1021
+ propKey: {
1022
+ type: StringConstructor;
1023
+ };
1024
+ shortcutListenerConfig: {
1025
+ type: import("vue").PropType<{
1026
+ enable: boolean;
1027
+ callback: (value: string, propKey?: string | undefined) => void;
1028
+ }>;
1029
+ };
947
1030
  }>> & Readonly<{
948
1031
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
949
1032
  }>, {
@@ -951,6 +1034,7 @@ export declare const WidgetCfgMaps: Map<string, {
951
1034
  updateUnchangedValue: boolean;
952
1035
  to: string | false | HTMLElement;
953
1036
  holidays: Date[];
1037
+ updateValueOnClose: boolean;
954
1038
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
955
1039
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
956
1040
  componentCfg: {
@@ -1127,9 +1211,22 @@ export declare const WidgetCfgMaps: Map<string, {
1127
1211
  type: StringConstructor;
1128
1212
  default: string;
1129
1213
  };
1214
+ updateValueOnClose: {
1215
+ type: BooleanConstructor;
1216
+ default: boolean;
1217
+ };
1130
1218
  isDateDisabled: {
1131
1219
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1132
1220
  };
1221
+ propKey: {
1222
+ type: StringConstructor;
1223
+ };
1224
+ shortcutListenerConfig: {
1225
+ type: import("vue").PropType<{
1226
+ enable: boolean;
1227
+ callback: (value: string, propKey?: string | undefined) => void;
1228
+ }>;
1229
+ };
1133
1230
  }>, {
1134
1231
  attrs: {
1135
1232
  [x: string]: unknown;
@@ -1162,9 +1259,22 @@ export declare const WidgetCfgMaps: Map<string, {
1162
1259
  type: StringConstructor;
1163
1260
  default: string;
1164
1261
  };
1262
+ updateValueOnClose: {
1263
+ type: BooleanConstructor;
1264
+ default: boolean;
1265
+ };
1165
1266
  isDateDisabled: {
1166
1267
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1167
1268
  };
1269
+ propKey: {
1270
+ type: StringConstructor;
1271
+ };
1272
+ shortcutListenerConfig: {
1273
+ type: import("vue").PropType<{
1274
+ enable: boolean;
1275
+ callback: (value: string, propKey?: string | undefined) => void;
1276
+ }>;
1277
+ };
1168
1278
  }>> & Readonly<{
1169
1279
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1170
1280
  }> & {}>;
@@ -1181,6 +1291,7 @@ export declare const WidgetCfgMaps: Map<string, {
1181
1291
  focus: () => any;
1182
1292
  blur: () => any;
1183
1293
  handleConfirm: (target: HTMLInputElement) => void;
1294
+ handleShortcutClick: (event: MouseEvent) => void;
1184
1295
  onUpdateShow: (show: boolean) => Promise<void>;
1185
1296
  watchers: import("../../../../../shared/types").AnyFn[];
1186
1297
  stopWatcher: () => void;
@@ -1217,9 +1328,22 @@ export declare const WidgetCfgMaps: Map<string, {
1217
1328
  type: StringConstructor;
1218
1329
  default: string;
1219
1330
  };
1331
+ updateValueOnClose: {
1332
+ type: BooleanConstructor;
1333
+ default: boolean;
1334
+ };
1220
1335
  isDateDisabled: {
1221
1336
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1222
1337
  };
1338
+ propKey: {
1339
+ type: StringConstructor;
1340
+ };
1341
+ shortcutListenerConfig: {
1342
+ type: import("vue").PropType<{
1343
+ enable: boolean;
1344
+ callback: (value: string, propKey?: string | undefined) => void;
1345
+ }>;
1346
+ };
1223
1347
  }>> & Readonly<{
1224
1348
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1225
1349
  }>, {
@@ -1227,6 +1351,7 @@ export declare const WidgetCfgMaps: Map<string, {
1227
1351
  updateUnchangedValue: boolean;
1228
1352
  to: string | false | HTMLElement;
1229
1353
  holidays: Date[];
1354
+ updateValueOnClose: boolean;
1230
1355
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
1231
1356
  DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1232
1357
  componentCfg: {
@@ -1410,8 +1535,10 @@ export declare const WidgetCfgMaps: Map<string, {
1410
1535
  emit: (event: "update:value", ...args: any[]) => void;
1411
1536
  valueCp: import("vue").Ref<any, any>;
1412
1537
  rangeShortcuts: import("vue").Ref<any, any>;
1538
+ shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
1413
1539
  dateFormat: import("vue").ComputedRef<string>;
1414
1540
  optionSetting: import("vue").ComputedRef<any>;
1541
+ compName: import("vue").ComputedRef<any>;
1415
1542
  handleChange: (val: any) => void;
1416
1543
  isDateDisabled: (ts: number) => boolean;
1417
1544
  timeDisabled: (ts: number) => {
@@ -1448,9 +1575,22 @@ export declare const WidgetCfgMaps: Map<string, {
1448
1575
  type: StringConstructor;
1449
1576
  default: string;
1450
1577
  };
1578
+ updateValueOnClose: {
1579
+ type: BooleanConstructor;
1580
+ default: boolean;
1581
+ };
1451
1582
  isDateDisabled: {
1452
1583
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1453
1584
  };
1585
+ propKey: {
1586
+ type: StringConstructor;
1587
+ };
1588
+ shortcutListenerConfig: {
1589
+ type: import("vue").PropType<{
1590
+ enable: boolean;
1591
+ callback: (value: string, propKey?: string | undefined) => void;
1592
+ }>;
1593
+ };
1454
1594
  }>, {
1455
1595
  attrs: {
1456
1596
  [x: string]: unknown;
@@ -1483,9 +1623,22 @@ export declare const WidgetCfgMaps: Map<string, {
1483
1623
  type: StringConstructor;
1484
1624
  default: string;
1485
1625
  };
1626
+ updateValueOnClose: {
1627
+ type: BooleanConstructor;
1628
+ default: boolean;
1629
+ };
1486
1630
  isDateDisabled: {
1487
1631
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1488
1632
  };
1633
+ propKey: {
1634
+ type: StringConstructor;
1635
+ };
1636
+ shortcutListenerConfig: {
1637
+ type: import("vue").PropType<{
1638
+ enable: boolean;
1639
+ callback: (value: string, propKey?: string | undefined) => void;
1640
+ }>;
1641
+ };
1489
1642
  }>> & Readonly<{
1490
1643
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1491
1644
  }> & {}>;
@@ -1502,6 +1655,7 @@ export declare const WidgetCfgMaps: Map<string, {
1502
1655
  focus: () => any;
1503
1656
  blur: () => any;
1504
1657
  handleConfirm: (target: HTMLInputElement) => void;
1658
+ handleShortcutClick: (event: MouseEvent) => void;
1505
1659
  onUpdateShow: (show: boolean) => Promise<void>;
1506
1660
  watchers: import("../../../../../shared/types").AnyFn[];
1507
1661
  stopWatcher: () => void;
@@ -1538,9 +1692,22 @@ export declare const WidgetCfgMaps: Map<string, {
1538
1692
  type: StringConstructor;
1539
1693
  default: string;
1540
1694
  };
1695
+ updateValueOnClose: {
1696
+ type: BooleanConstructor;
1697
+ default: boolean;
1698
+ };
1541
1699
  isDateDisabled: {
1542
1700
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1543
1701
  };
1702
+ propKey: {
1703
+ type: StringConstructor;
1704
+ };
1705
+ shortcutListenerConfig: {
1706
+ type: import("vue").PropType<{
1707
+ enable: boolean;
1708
+ callback: (value: string, propKey?: string | undefined) => void;
1709
+ }>;
1710
+ };
1544
1711
  }>> & Readonly<{
1545
1712
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1546
1713
  }>, {
@@ -1548,6 +1715,7 @@ export declare const WidgetCfgMaps: Map<string, {
1548
1715
  updateUnchangedValue: boolean;
1549
1716
  to: string | false | HTMLElement;
1550
1717
  holidays: Date[];
1718
+ updateValueOnClose: boolean;
1551
1719
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
1552
1720
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1553
1721
  type: {
@@ -2,5 +2,6 @@ import { AnyObject } from '../../../../shared/types';
2
2
  import { InjectionKey, Ref } from 'vue';
3
3
  export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
4
4
  export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
5
+ export declare const InjectionShortcutListenerConfig: InjectionKey<AnyObject | undefined>;
5
6
  export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
6
7
  export declare const InjectionClassifyfilterType: InjectionKey<String>;
@@ -4,6 +4,9 @@ const InjectionFilterApiConfig = Symbol(
4
4
  const InjectionFilterSearchConfig = Symbol(
5
5
  "InjectionFilterSearchConfig"
6
6
  );
7
+ const InjectionShortcutListenerConfig = Symbol(
8
+ "InjectionShortcutListenerConfig"
9
+ );
7
10
  const InjectionClassifyFilterList = Symbol(
8
11
  "InjectionClassifyFilterList"
9
12
  );
@@ -11,4 +14,4 @@ const InjectionClassifyfilterType = Symbol(
11
14
  "InjectionClassifyfilterType"
12
15
  );
13
16
 
14
- export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig };
17
+ export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig, InjectionShortcutListenerConfig };
@@ -24,7 +24,9 @@ var script = /* @__PURE__ */ defineComponent({
24
24
  const mergedDisabled = computed(() => {
25
25
  return !!attrs.disabled || !!(NRadioGroup == null ? void 0 : NRadioGroup.disabledRef.value) || !!(NFormItem == null ? void 0 : NFormItem.disabled.value);
26
26
  });
27
- async function onItemClick() {
27
+ async function onItemClick(event) {
28
+ if (Reflect.get(event, "pointerType") !== "mouse")
29
+ return;
28
30
  if (!props.cancelable || mergedDisabled.value)
29
31
  return;
30
32
  const oldValue = props.currentValue;
@@ -0,0 +1,12 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ style: ObjectConstructor;
3
+ tooltip: ObjectConstructor;
4
+ keepShow: BooleanConstructor;
5
+ }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
+ style: ObjectConstructor;
7
+ tooltip: ObjectConstructor;
8
+ keepShow: BooleanConstructor;
9
+ }>> & Readonly<{}>, {
10
+ keepShow: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ export default _default;
@@ -0,0 +1,86 @@
1
+ import { defineComponent, ref, computed, createVNode, mergeProps } from 'vue';
2
+ import { CloseCircle } from '@vicons/ionicons5';
3
+ import { useElementSize } from '@vueuse/core';
4
+ import { NTooltip } from 'naive-ui';
5
+
6
+ var script = /* @__PURE__ */ defineComponent({
7
+ props: {
8
+ style: Object,
9
+ tooltip: Object,
10
+ keepShow: Boolean
11
+ },
12
+ setup(props, {
13
+ slots
14
+ }) {
15
+ const ellipsisRef = ref();
16
+ const ellipsisStyle = computed(() => ({
17
+ overflow: "hidden",
18
+ textOverflow: "ellipsis",
19
+ whiteSpace: "nowrap",
20
+ ...props.style
21
+ }));
22
+ const {
23
+ width: ellipsisWidth
24
+ } = useElementSize(ellipsisRef);
25
+ const innerRef = ref();
26
+ const innerStyle = {
27
+ position: "absolute",
28
+ opacity: 0,
29
+ visibility: "hidden"
30
+ };
31
+ const {
32
+ width: innerWidth
33
+ } = useElementSize(innerRef);
34
+ const disabled = computed(() => {
35
+ return innerWidth.value <= ellipsisWidth.value;
36
+ });
37
+ const show = ref(!!props.keepShow);
38
+ function onUpdateShow(v) {
39
+ if (!props.keepShow)
40
+ return;
41
+ show.value = v;
42
+ }
43
+ const operationStyle = {
44
+ position: "absolute",
45
+ right: "-4px",
46
+ top: "-4px",
47
+ cursor: "pointer",
48
+ width: "16px",
49
+ borderRadius: "50%",
50
+ boxShadow: "0 0 4px 0 rgba(0, 0, 0, 0.4)"
51
+ };
52
+ return () => {
53
+ return createVNode(NTooltip, mergeProps(props.tooltip, {
54
+ "disabled": disabled.value,
55
+ "trigger": props.keepShow ? "manual" : "hover",
56
+ "show": props.keepShow ? show.value : void 0
57
+ }), {
58
+ trigger: () => {
59
+ var _a, _b;
60
+ return createVNode("div", {
61
+ "onClick": () => onUpdateShow(true)
62
+ }, [createVNode("div", {
63
+ "style": ellipsisStyle.value,
64
+ "ref": ellipsisRef
65
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), createVNode("div", {
66
+ "style": innerStyle,
67
+ "ref": innerRef
68
+ }, [(_b = slots.default) == null ? void 0 : _b.call(slots)])]);
69
+ },
70
+ default: () => {
71
+ var _a;
72
+ return createVNode("div", {
73
+ "style": {
74
+ maxWidth: "300px"
75
+ }
76
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots), props.keepShow ? createVNode(CloseCircle, {
77
+ "style": operationStyle,
78
+ "onClick": () => onUpdateShow(false)
79
+ }, null) : null]);
80
+ }
81
+ });
82
+ };
83
+ }
84
+ });
85
+
86
+ export { script as default };
@@ -0,0 +1,2 @@
1
+ import script from './Ellipsis';
2
+ export default script;
@@ -0,0 +1,2 @@
1
+ import script from './Ellipsis.js';
2
+ export { default } from './Ellipsis.js';
@@ -17,6 +17,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  precision: {
18
18
  type: NumberConstructor;
19
19
  };
20
+ parse: {
21
+ type: PropType<(v: string) => string>;
22
+ default: {
23
+ <T>(value: T): T;
24
+ (): undefined;
25
+ };
26
+ };
20
27
  whiteList: {
21
28
  type: PropType<string[]>;
22
29
  };
@@ -47,6 +54,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
54
  precision: {
48
55
  type: NumberConstructor;
49
56
  };
57
+ parse: {
58
+ type: PropType<(v: string) => string>;
59
+ default: {
60
+ <T>(value: T): T;
61
+ (): undefined;
62
+ };
63
+ };
50
64
  whiteList: {
51
65
  type: PropType<string[]>;
52
66
  };
@@ -64,6 +78,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
78
  onSelect?: ((...args: any[]) => any) | undefined;
65
79
  }>, {
66
80
  onChange: AnyFn;
81
+ parse: (v: string) => string;
67
82
  slashSymbol: string;
68
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
84
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, watch, createVNode, mergeProps } from 'vue';
2
2
  import { findAncestor } from '../../utils/index.js';
3
- import { isArray, isString, isNumber, isObject } from 'lodash-es';
3
+ import { identity, isArray, isString, isNumber, isObject } from 'lodash-es';
4
4
  import { NInput, NDropdown } from 'naive-ui';
5
5
  import '../../../components/form-render/index.js';
6
6
  import { createInputSlot } from '../../../components/form-render/src/utils/index.js';
@@ -23,6 +23,10 @@ var script = /* @__PURE__ */ defineComponent({
23
23
  precision: {
24
24
  type: Number
25
25
  },
26
+ parse: {
27
+ type: Function,
28
+ default: identity
29
+ },
26
30
  whiteList: {
27
31
  type: Array
28
32
  },
@@ -73,15 +77,25 @@ var script = /* @__PURE__ */ defineComponent({
73
77
  return tempValue.value;
74
78
  },
75
79
  set(v) {
76
- if (v == null)
77
- return tempValue.value = "";
78
- if (isNumber(v))
79
- return tempValue.value = v + "";
80
- if (!isString(v))
81
- return;
82
- if (v.endsWith(props.slashSymbol))
83
- return tempValue.value = props.slashSymbol;
84
- tempValue.value = whiteListOptions.value.some((option) => option.label === v) || validNumberReg.test(v) ? v : "";
80
+ let res = "";
81
+ switch (true) {
82
+ case v == null:
83
+ res = "";
84
+ break;
85
+ case isNumber(v):
86
+ res = props.parse(v + "");
87
+ break;
88
+ case !isString(v):
89
+ return;
90
+ default: {
91
+ if (v.endsWith(props.slashSymbol)) {
92
+ res = props.slashSymbol;
93
+ } else {
94
+ res = whiteListOptions.value.some((option) => option.label === v) || validNumberReg.test(v) ? props.parse(v) : "";
95
+ }
96
+ }
97
+ }
98
+ tempValue.value = res;
85
99
  }
86
100
  });
87
101
  watch(() => props.value, (v) => valueRef.value = v, {
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.9";
2
+ var version = "3.4.0-release.7";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
@@ -88,19 +88,20 @@ export declare namespace LowCodeTypes {
88
88
  __oppositeBindField: reactionConfig;
89
89
  __oppositeTargetField: reactionConfig;
90
90
  }>;
91
- type reactionActionType = 'show' | 'hide' | 'required' | 'notRequired' | 'enabled' | 'disabled';
91
+ type reactionActionType = 'show' | 'hide' | 'required' | 'notRequired' | 'enabled' | 'disabled' | 'setValue';
92
92
  type reactionAction = {
93
93
  action: reactionActionType;
94
94
  fields: string[];
95
95
  actionConfig?: Partial<{
96
96
  restoreDefault: boolean;
97
97
  restoreEmpty: boolean;
98
+ value: unknown;
98
99
  }>;
99
100
  };
100
101
  type LowCodeConditions = {
101
102
  field: string;
102
103
  type: VALUE_RELATION;
103
- valueType?: 'const' | 'field';
104
+ valueType?: 'const' | 'field' | 'range';
104
105
  value?: any;
105
106
  };
106
107
  type newReactionConfig = {
@@ -66,10 +66,26 @@ function isMatchNewLowCodeConditionsWithSqlExpression(formData, config) {
66
66
  config.compareMap
67
67
  );
68
68
  }
69
+ if (condition.valueType === "range") {
70
+ return isInRange(value, condition.value);
71
+ }
69
72
  return isMatchLowCodeCondition(value, { con: condition.type, value: condition.value }, config.compareMap);
70
73
  });
71
74
  return isConditionsMatchSqlExpression(conditions, config.sqlExpression);
72
75
  }
76
+ function isInRange(value, range) {
77
+ if (!isArray(range) || range.length !== 2)
78
+ return false;
79
+ const [min, max] = range.map((v) => +v);
80
+ if (Number.isNaN(min) || Number.isNaN(max))
81
+ return false;
82
+ if (!isNumber(value) && !isString(value))
83
+ return false;
84
+ const numberValue = +value;
85
+ if (Number.isNaN(numberValue))
86
+ return false;
87
+ return numberValue >= min && numberValue <= max;
88
+ }
73
89
  function handleFieldTriggerSetValue(bindEventSetting, {
74
90
  getter,
75
91
  setter
@@ -0,0 +1,12 @@
1
+ declare class HoEdge {
2
+ private readonly webview;
3
+ private msgHandleQueue;
4
+ constructor();
5
+ /** 发送消息 */
6
+ postMsg(data: any): Promise<unknown> | undefined;
7
+ /** 接收消息 */
8
+ msgHandle(evt: any): any;
9
+ destory(): void;
10
+ }
11
+ export declare const hoEdge: HoEdge;
12
+ export {};