cnhis-design-vue 3.3.3-beta.7 → 3.3.3-beta.72

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 (306) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/index.d.ts +18 -16
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
  4. package/es/components/audio-sdk/src/Index.vue2.js +40 -5
  5. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
  6. package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
  7. package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
  8. package/es/components/base-search/index.d.ts +3 -0
  9. package/es/components/base-search/src/index.vue.d.ts +3 -0
  10. package/es/components/big-table/src/components/NoData.vue2.js +8 -1
  11. package/es/components/big-table/src/hooks/useTableParse.js +8 -1
  12. package/es/components/button-print/index.d.ts +67 -2
  13. package/es/components/button-print/src/ButtonPrint.vue.d.ts +67 -2
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
  15. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +28 -3
  16. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +138 -15
  17. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
  18. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -6
  19. package/es/components/button-print/src/utils/print.d.ts +7 -5
  20. package/es/components/button-print/src/utils/print.js +183 -7
  21. package/es/components/button-print/style/index.css +1 -1
  22. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  23. package/es/components/callback/src/components/render/popupMaps.d.ts +18 -0
  24. package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
  25. package/es/components/classification/index.d.ts +555 -10
  26. package/es/components/classification/src/components/search-filter/index.vue.d.ts +555 -10
  27. package/es/components/classification/src/components/set-classification/index.vue.d.ts +555 -10
  28. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  29. package/es/components/classification/src/index.vue.d.ts +555 -10
  30. package/es/components/date-picker/src/DatePicker.vue2.js +8 -1
  31. package/es/components/expand-field/index.d.ts +792 -1
  32. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
  33. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
  34. package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
  35. package/es/components/expand-field/src/components/form.vue2.js +8 -1
  36. package/es/components/expand-field/src/index.vue.d.ts +792 -1
  37. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  39. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  40. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  41. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  42. package/es/components/field-editor/index.d.ts +18 -0
  43. package/es/components/field-editor/src/FieldEditor.vue.d.ts +18 -0
  44. package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
  45. package/es/components/field-editor/src/fields.d.ts +1 -0
  46. package/es/components/field-editor/src/fields.js +6 -0
  47. package/es/components/field-set/src/FieldColor.vue.d.ts +10 -5
  48. package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -5
  49. package/es/components/field-set/src/FieldSet.vue.d.ts +43 -6
  50. package/es/components/field-set/src/FieldSet.vue2.js +118 -69
  51. package/es/components/field-set/src/Index.vue2.js +8 -3
  52. package/es/components/field-set/src/TableStyle.vue2.js +2 -2
  53. package/es/components/field-set/src/components/table-row.vue.d.ts +6 -5
  54. package/es/components/field-set/src/components/table-row.vue2.js +21 -6
  55. package/es/components/field-set/src/constants/index.d.ts +1 -1
  56. package/es/components/field-set/src/types/index.d.ts +3 -1
  57. package/es/components/field-set/style/index.css +1 -1
  58. package/es/components/form-config/index.d.ts +102 -0
  59. package/es/components/form-config/src/FormConfig.vue.d.ts +102 -0
  60. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -0
  61. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +63 -0
  62. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
  63. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +18 -0
  64. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +9 -2
  65. package/es/components/form-config/src/constants/index.d.ts +31 -1
  66. package/es/components/form-config/src/constants/index.js +150 -1
  67. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
  68. package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
  69. package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
  70. package/es/components/form-config/src/hooks/useLocale.js +34 -0
  71. package/es/components/form-config/src/types/index.d.ts +12 -0
  72. package/es/components/form-render/index.d.ts +18 -0
  73. package/es/components/form-render/src/FormRender.vue.d.ts +18 -0
  74. package/es/components/form-render/src/FormRender.vue2.js +5 -0
  75. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -0
  76. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  77. package/es/components/form-render/src/components/renderer/date.js +12 -10
  78. package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
  79. package/es/components/form-render/src/components/renderer/formItem.js +17 -3
  80. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
  81. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  82. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  83. package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
  84. package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
  85. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
  86. package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
  87. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
  88. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  89. package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
  90. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  91. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  92. package/es/components/form-render/src/hooks/useLowCodeReactions.js +2 -1
  93. package/es/components/form-render/src/types/index.d.ts +1 -0
  94. package/es/components/form-render/src/utils/business.d.ts +3 -1
  95. package/es/components/form-render/src/utils/business.js +7 -1
  96. package/es/components/form-render/style/index.css +1 -1
  97. package/es/components/iho-chat/index.d.ts +902 -99
  98. package/es/components/iho-chat/src/Index.vue.d.ts +902 -99
  99. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
  100. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +181 -8
  101. package/es/components/iho-chat/src/components/ChatFile.vue2.js +51 -41
  102. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +66 -6
  103. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +158 -57
  104. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +329 -15
  105. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +21 -19
  106. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +235 -20
  107. package/es/components/iho-chat/src/components/ChatMain.vue2.js +298 -279
  108. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +51 -5
  109. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +3 -3
  110. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
  111. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
  112. package/es/components/iho-chat/src/components/ContextMenu.js +34 -27
  113. package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
  114. package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
  115. package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
  116. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
  117. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +53 -6
  118. package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +3 -3
  119. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +93 -30
  120. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +348 -144
  121. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
  122. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  123. package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
  124. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
  125. package/es/components/iho-chat/src/components/Video.vue.d.ts +38 -25
  126. package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
  127. package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
  128. package/es/components/iho-chat/src/hooks/index.js +1 -0
  129. package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
  130. package/es/components/iho-chat/src/hooks/useData.js +2 -7
  131. package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
  132. package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
  133. package/es/components/iho-chat/src/hooks/useVideo.d.ts +78 -11
  134. package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
  135. package/es/components/iho-chat/src/types/index.d.ts +37 -1
  136. package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
  137. package/es/components/iho-chat/src/utils/emoji.js +1 -1
  138. package/es/components/iho-chat/src/utils/index.d.ts +4 -3
  139. package/es/components/iho-chat/src/utils/index.js +33 -39
  140. package/es/components/iho-chat/style/index.css +1 -1
  141. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
  142. package/es/components/iho-table/src/plugins/headerPlugin/index.js +5 -2
  143. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +2 -1
  144. package/es/components/index.css +1 -1
  145. package/es/components/index.d.ts +2 -0
  146. package/es/components/index.js +2 -1
  147. package/es/components/info-header/index.d.ts +41 -0
  148. package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -0
  149. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
  150. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
  151. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
  152. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -0
  153. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -0
  154. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  155. package/es/components/keyboard/index.d.ts +9 -0
  156. package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
  157. package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
  158. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
  159. package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
  160. package/es/components/keyboard/src/types.d.ts +17 -0
  161. package/es/components/keyboard/src/types.js +1 -0
  162. package/es/components/quick-search/index.d.ts +2 -0
  163. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  164. package/es/components/scale-view/index.d.ts +66 -3
  165. package/es/components/scale-view/src/ScaleView.vue.d.ts +69 -5
  166. package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
  167. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  168. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  169. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
  170. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
  171. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
  172. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
  173. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  174. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  175. package/es/components/scale-view/src/components/ScaleScore.js +45 -3
  176. package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
  177. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  178. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  179. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  180. package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -4
  181. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  182. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  183. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +12 -0
  184. package/es/components/scale-view/src/hooks/scaleview-props.js +12 -0
  185. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
  186. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  187. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  188. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  189. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  190. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  191. package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
  192. package/es/components/scale-view/src/utils/judge-types.js +10 -10
  193. package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
  194. package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
  195. package/es/components/select-person/index.d.ts +792 -1
  196. package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
  197. package/es/components/select-person/src/SelectPerson.vue.js +6 -0
  198. package/es/components/select-person/src/SelectPerson.vue2.js +795 -0
  199. package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
  200. package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
  201. package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
  202. package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
  203. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
  204. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  205. package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
  206. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  207. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  208. package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
  209. package/es/components/select-person/src/components/TagItem.vue.js +6 -0
  210. package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
  211. package/es/components/select-person/src/index.vue.d.ts +793 -1
  212. package/es/components/select-person/src/index.vue2.js +21 -4
  213. package/es/components/select-person/src/types/index.d.ts +35 -0
  214. package/es/components/select-person/src/types/index.js +1 -0
  215. package/es/components/select-person/src/utils/index.d.ts +3 -0
  216. package/es/components/select-person/src/utils/index.js +25 -2
  217. package/es/components/select-person/style/index.css +1 -1
  218. package/es/components/shortcut-setter/index.d.ts +18 -0
  219. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -0
  220. package/es/components/table-filter/index.js +1 -1
  221. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  222. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
  223. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
  224. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  225. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +543 -6
  226. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +32 -10
  227. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
  228. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  229. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
  230. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +255 -2
  231. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +79 -5
  232. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +256 -2
  233. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +92 -6
  234. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
  235. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +512 -4
  236. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  237. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
  238. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
  239. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +554 -10
  240. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +17 -7
  241. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  242. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  243. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
  244. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  245. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
  246. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  247. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
  248. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -5
  249. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
  250. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  251. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
  252. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -5
  253. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  254. package/es/components/table-filter/src/hooks/useAdvanced.js +25 -7
  255. package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
  256. package/es/components/table-filter/src/tool/baseOptions.js +8 -1
  257. package/es/components/table-filter/src/tool/date.d.ts +3 -0
  258. package/es/components/table-filter/src/tool/date.js +139 -0
  259. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  260. package/es/components/table-filter/src/tool/transformData.js +11 -8
  261. package/es/components/table-filter/src/types/enums.d.ts +5 -0
  262. package/es/components/table-filter/src/types/enums.js +7 -2
  263. package/es/components/table-filter/src/types/index.d.ts +12 -0
  264. package/es/components/vertify/index.d.ts +1 -0
  265. package/es/components/vertify/index.js +1 -0
  266. package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
  267. package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
  268. package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
  269. package/es/components/vertify/src/utils/dialog.d.ts +7 -0
  270. package/es/components/vertify/src/utils/dialog.js +73 -0
  271. package/es/components/vertify/src/utils/index.d.ts +11 -0
  272. package/es/components/vertify/src/utils/index.js +24 -0
  273. package/es/components/vod-chunk-upload/index.d.ts +16 -0
  274. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +20 -31
  275. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +205 -78
  276. package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
  277. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +35 -4
  278. package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
  279. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +78 -11
  280. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +16 -0
  281. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +81 -10
  282. package/es/components/vod-chunk-upload/style/index.css +1 -1
  283. package/es/env.d.ts +25 -25
  284. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  285. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  286. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  287. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  288. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  289. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  290. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  291. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  292. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  293. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  294. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  295. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  296. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  297. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  298. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  299. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  300. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  301. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  302. package/es/shared/hooks/useDateTime.js +1 -1
  303. package/es/shared/hooks/useLevelSearchCascader.js +3 -3
  304. package/es/shared/package.json.js +2 -2
  305. package/es/shared/utils/fabricjs/index.js +1 -1
  306. package/package.json +6 -5
@@ -1,5 +1,5 @@
1
1
  import 'xe-utils';
2
- import 'moment';
2
+ import moment from 'moment';
3
3
  import vexutilsExpand from '../../../../shared/utils/vexutilsExpand.js';
4
4
  import { ScaleViewComputed } from './scaleview-computed.js';
5
5
 
@@ -16,11 +16,11 @@ const ScaleViewValidate = (props, state, config) => {
16
16
  } else {
17
17
  setObj = item.setting;
18
18
  }
19
- let isAdress = setObj.addressType.includes("address");
19
+ const isAdress = setObj.addressType.includes("address");
20
20
  return isAdress;
21
21
  };
22
22
  const checkAdress = (rule, value) => {
23
- let {
23
+ const {
24
24
  address
25
25
  } = value || {};
26
26
  if (!address) {
@@ -46,7 +46,7 @@ const ScaleViewValidate = (props, state, config) => {
46
46
  }
47
47
  }());
48
48
  }
49
- let {
49
+ const {
50
50
  labelStr,
51
51
  labels = []
52
52
  } = value;
@@ -69,19 +69,104 @@ const ScaleViewValidate = (props, state, config) => {
69
69
  }
70
70
  return setObj.dateMaxType;
71
71
  };
72
+ const checkDateMaxCur = (rule, value, item) => {
73
+ if (!value)
74
+ return true;
75
+ const {
76
+ dateType
77
+ } = item.setting;
78
+ if (!dateType)
79
+ return true;
80
+ let dateMaxValue = state.currentTime;
81
+ if (dateType == "time") {
82
+ dateMaxValue = state.currentTime.format("HH:mm:ss");
83
+ }
84
+ const isMax = handleMax(dateType, value, dateMaxValue);
85
+ if (!isMax) {
86
+ return new Error(function() {
87
+ var _a, _b, _c;
88
+ try {
89
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.586")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.586")) || "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7\u5F53\u524D\u65E5\u671F\u65F6\u95F4";
90
+ } catch (e) {
91
+ return "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7\u5F53\u524D\u65E5\u671F\u65F6\u95F4";
92
+ }
93
+ }());
94
+ }
95
+ return true;
96
+ };
97
+ const checkDateMaxSet = (rule, value, item) => {
98
+ if (!value)
99
+ return true;
100
+ const {
101
+ dateMaxValue,
102
+ dateType
103
+ } = item.setting;
104
+ if (!dateMaxValue || !dateType)
105
+ return true;
106
+ const isMax = handleMax(dateType, value, dateMaxValue);
107
+ if (!isMax) {
108
+ return new Error(function() {
109
+ var _a, _b, _c;
110
+ try {
111
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.585")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.585")) || "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7\u6307\u5B9A\u65E5\u671F\u65F6\u95F4";
112
+ } catch (e) {
113
+ return "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7\u6307\u5B9A\u65E5\u671F\u65F6\u95F4";
114
+ }
115
+ }());
116
+ }
117
+ return true;
118
+ };
119
+ const checkDateMaxOther = (rule, value, item) => {
120
+ if (!value)
121
+ return true;
122
+ const {
123
+ outDateMaxValue,
124
+ dateType
125
+ } = item.setting;
126
+ if (!outDateMaxValue || !dateType)
127
+ return true;
128
+ const matchDateItem = state.formArray.find((v) => v.seq === outDateMaxValue);
129
+ if (!matchDateItem || matchDateItem.hide)
130
+ return true;
131
+ const matchValue = state.form[formKey(matchDateItem)];
132
+ if (!matchValue)
133
+ return;
134
+ const isMax = handleMax(dateType, value, matchValue);
135
+ const title = matchDateItem.title;
136
+ const str1 = function() {
137
+ var _a, _b, _c;
138
+ try {
139
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.584")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.584")) || "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7";
140
+ } catch (e) {
141
+ return "\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7";
142
+ }
143
+ }();
144
+ const str2 = function() {
145
+ var _a, _b, _c;
146
+ try {
147
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.583")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.583")) || "\u65E5\u671F\u65F6\u95F4";
148
+ } catch (e) {
149
+ return "\u65E5\u671F\u65F6\u95F4";
150
+ }
151
+ }();
152
+ if (!isMax) {
153
+ return new Error(`${str1}\u3010${title}\u3011${str2}`);
154
+ }
155
+ return true;
156
+ };
72
157
  const checkRadio = (rule, value, item) => {
73
158
  if (!value)
74
159
  return true;
75
- let {
160
+ const {
76
161
  options
77
162
  } = item;
78
163
  if (!options.length || value === "other")
79
164
  return true;
80
165
  const key = formKey(item);
81
- let {
166
+ const {
82
167
  optionsPreSuffixObj = {}
83
168
  } = state.choiceComObj[key] || {};
84
- let matchItem = options.find((o, i) => {
169
+ const matchItem = options.find((o, i) => {
85
170
  if (i + 1 === value) {
86
171
  return true;
87
172
  }
@@ -90,9 +175,16 @@ const ScaleViewValidate = (props, state, config) => {
90
175
  if (!matchItem || matchItem.importability)
91
176
  return true;
92
177
  if (matchItem.prefix || matchItem.suffix) {
93
- let inputValue = optionsPreSuffixObj[value];
178
+ const inputValue = optionsPreSuffixObj[value];
94
179
  if (!inputValue) {
95
- return new Error(`\u8BF7\u5B8C\u5584\u9009\u9879`);
180
+ return new Error(function() {
181
+ var _a, _b, _c;
182
+ try {
183
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.582")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.582")) || "\u8BF7\u5B8C\u5584\u9009\u9879";
184
+ } catch (e) {
185
+ return "\u8BF7\u5B8C\u5584\u9009\u9879";
186
+ }
187
+ }());
96
188
  }
97
189
  }
98
190
  return true;
@@ -100,21 +192,22 @@ const ScaleViewValidate = (props, state, config) => {
100
192
  const checkCheckbox = (rule, value, item) => {
101
193
  if (!value || !value.length)
102
194
  return true;
103
- let {
195
+ const {
104
196
  options
105
197
  } = item;
106
198
  if (!options.length)
107
199
  return true;
108
- let i = 0, len = value.length, v;
200
+ let i = 0, v;
201
+ const len = value.length;
109
202
  const key = formKey(item);
110
- let {
203
+ const {
111
204
  optionsPreSuffixObj = {}
112
205
  } = state.choiceComObj[key] || {};
113
206
  for (; i < len; i++) {
114
207
  v = value[i];
115
208
  if (v === "other")
116
209
  continue;
117
- let matchItem = options.find((o, j) => {
210
+ const matchItem = options.find((o, j) => {
118
211
  if (j + 1 === v) {
119
212
  return true;
120
213
  }
@@ -123,19 +216,45 @@ const ScaleViewValidate = (props, state, config) => {
123
216
  if (!matchItem || matchItem.importability)
124
217
  continue;
125
218
  if (matchItem.prefix || matchItem.suffix) {
126
- let inputValue = optionsPreSuffixObj[v];
219
+ const inputValue = optionsPreSuffixObj[v];
127
220
  if (!inputValue) {
128
- return new Error(`\u8BF7\u5B8C\u5584\u9009\u9879`);
221
+ return new Error(function() {
222
+ var _a, _b, _c;
223
+ try {
224
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.582")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.582")) || "\u8BF7\u5B8C\u5584\u9009\u9879";
225
+ } catch (e) {
226
+ return "\u8BF7\u5B8C\u5584\u9009\u9879";
227
+ }
228
+ }());
129
229
  }
130
230
  }
131
231
  }
132
232
  return true;
133
233
  };
234
+ const handleMax = (dateType, value, dateMaxValue) => {
235
+ let curValue = "";
236
+ let tempValue = "";
237
+ if (dateType == "time") {
238
+ const curYMD = state.currentTime.format("YYYY MM DD ");
239
+ curValue = moment(curYMD + dateMaxValue).valueOf();
240
+ tempValue = moment(curYMD + value).valueOf();
241
+ } else if (dateType == "date") {
242
+ curValue = moment(dateMaxValue).valueOf();
243
+ tempValue = moment(value).valueOf();
244
+ } else {
245
+ curValue = moment(dateMaxValue).valueOf();
246
+ tempValue = moment(value).valueOf();
247
+ }
248
+ if (tempValue > curValue) {
249
+ return false;
250
+ }
251
+ return true;
252
+ };
134
253
  const checkType = (val) => {
135
254
  return Object.prototype.toString.call(val);
136
255
  };
137
256
  const validateRequired = (rule, value) => {
138
- let type = checkType(value);
257
+ const type = checkType(value);
139
258
  if (type == "[object Object]") {
140
259
  if (value && Object.keys(value).length)
141
260
  return true;
@@ -162,7 +281,7 @@ const ScaleViewValidate = (props, state, config) => {
162
281
  const formatRules = (formArray) => {
163
282
  const rules = {};
164
283
  formArray.forEach((item) => {
165
- let newTitle = item.val_key;
284
+ const newTitle = item.val_key;
166
285
  rules[newTitle] = [];
167
286
  if (item.required && !filterArr.includes(item.type)) {
168
287
  rules[newTitle].push({
@@ -182,13 +301,27 @@ const ScaleViewValidate = (props, state, config) => {
182
301
  if (item.type == "MOBILE" && item.validation) {
183
302
  rules[newTitle].push({
184
303
  pattern: /^1[3456789]\d{9}$/,
185
- message: "\u683C\u5F0F\u9519\u8BEF",
304
+ message: function() {
305
+ var _a, _b, _c;
306
+ try {
307
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.581")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.581")) || "\u683C\u5F0F\u9519\u8BEF";
308
+ } catch (e) {
309
+ return "\u683C\u5F0F\u9519\u8BEF";
310
+ }
311
+ }(),
186
312
  trigger: "blur"
187
313
  });
188
314
  } else if (item.type == "ID_CARD" && item.validation) {
189
315
  rules[newTitle].push({
190
316
  pattern: /^\d{6}(((19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|x|X))|(\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}))$/,
191
- message: "\u683C\u5F0F\u9519\u8BEF",
317
+ message: function() {
318
+ var _a, _b, _c;
319
+ try {
320
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.581")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.581")) || "\u683C\u5F0F\u9519\u8BEF";
321
+ } catch (e) {
322
+ return "\u683C\u5F0F\u9519\u8BEF";
323
+ }
324
+ }(),
192
325
  trigger: "blur"
193
326
  });
194
327
  } else if (item.type == "ADDRESS" && item.required) {
@@ -204,13 +337,13 @@ const ScaleViewValidate = (props, state, config) => {
204
337
  trigger: "change"
205
338
  });
206
339
  } else if (item.type == "DATETIME" && props.type == "customList") {
207
- let dateMaxType = handleDateMaxType(item);
340
+ const dateMaxType = handleDateMaxType(item);
208
341
  if (!dateMaxType)
209
342
  return;
210
- let obj = {
211
- 1: "checkDateMaxCur",
212
- 2: "checkDateMaxSet",
213
- 3: "checkDateMaxOther"
343
+ const obj = {
344
+ 1: checkDateMaxCur,
345
+ 2: checkDateMaxSet,
346
+ 3: checkDateMaxOther
214
347
  };
215
348
  rules[newTitle].push({
216
349
  validator: (rule, value) => obj[dateMaxType](rule, value, item),
@@ -44,9 +44,23 @@ const useEvaluate = (props, state, config) => {
44
44
  });
45
45
  const getEvaluateText = computed(() => {
46
46
  if (getEvaluateEnd.value || state.banStart) {
47
- return "\u6D4B\u8BC4\u5DF2\u7ED3\u675F";
47
+ return function() {
48
+ var _a, _b, _c;
49
+ try {
50
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.580")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.580")) || "\u6D4B\u8BC4\u5DF2\u7ED3\u675F";
51
+ } catch (e) {
52
+ return "\u6D4B\u8BC4\u5DF2\u7ED3\u675F";
53
+ }
54
+ }();
48
55
  }
49
- return "\u5F00\u59CB\u6D4B\u8BC4";
56
+ return function() {
57
+ var _a, _b, _c;
58
+ try {
59
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.579")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.579")) || "\u5F00\u59CB\u6D4B\u8BC4";
60
+ } catch (e) {
61
+ return "\u5F00\u59CB\u6D4B\u8BC4";
62
+ }
63
+ }();
50
64
  });
51
65
  const disabledEvaluate = computed(() => {
52
66
  const res = getEvaluateStartTime.value && !evaluateState.isTimeOut || getEvaluateEnd.value;
@@ -1,19 +1,47 @@
1
1
  import { reactive } from 'vue';
2
2
 
3
3
  function useNoData() {
4
- let state = reactive({
4
+ const state = reactive({
5
5
  noData: false,
6
- noDataTip: "1.1.6.11",
6
+ noDataTip: function() {
7
+ var _a, _b, _c;
8
+ try {
9
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
10
+ } catch (e) {
11
+ return "\u6682\u65E0\u6570\u636E";
12
+ }
13
+ }(),
7
14
  noDataImg: "nodata"
8
15
  });
9
- const setNoData = (noData, noDataTip = "1.1.6.11", noDataImg = "nodata") => {
16
+ const setNoData = (noData, noDataTip = function() {
17
+ var _a, _b, _c;
18
+ try {
19
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
20
+ } catch (e) {
21
+ return "\u6682\u65E0\u6570\u636E";
22
+ }
23
+ }(), noDataImg = "nodata") => {
10
24
  state.noData = noData;
11
- state.noDataTip = noDataTip || "1.1.6.11";
25
+ state.noDataTip = noDataTip || function() {
26
+ var _a, _b, _c;
27
+ try {
28
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
29
+ } catch (e) {
30
+ return "\u6682\u65E0\u6570\u636E";
31
+ }
32
+ }();
12
33
  state.noDataImg = errResult(noDataImg) || "nodata";
13
34
  };
14
35
  const resetNodata = () => {
15
36
  state.noData = false;
16
- state.noDataTip = "1.1.6.11";
37
+ state.noDataTip = function() {
38
+ var _a, _b, _c;
39
+ try {
40
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E";
41
+ } catch (e) {
42
+ return "\u6682\u65E0\u6570\u636E";
43
+ }
44
+ }();
17
45
  state.noDataImg = "nodata";
18
46
  };
19
47
  const errResult = (result) => {
@@ -1,8 +1,9 @@
1
+ import { AnyObject } from '../../../../shared/types';
1
2
  export declare const isOnlyOptions: (e: string) => boolean;
2
3
  export declare const isSortItem: (item: any) => any;
3
4
  export declare const isCollection: (e: string) => boolean;
4
5
  export declare const isEvaluation: (e: string) => boolean;
5
- export declare const handleQueryParams: () => {};
6
+ export declare const handleQueryParams: () => AnyObject;
6
7
  export declare const getQueryVariable: (variable: any, state: any, params: any) => any;
7
8
  export declare const formatMap: {
8
9
  datetime: string;
@@ -49,18 +49,18 @@ const getQueryVariable = (variable, state, params) => {
49
49
  return query[variable] || false;
50
50
  };
51
51
  const formatMap = {
52
- "datetime": "yyyy-MM-dd HH:mm:ss",
53
- "datehour": "yyyy-MM-dd HH:mm",
54
- "date": "yyyy-MM-dd",
55
- "time": "HH:mm:ss",
56
- "hour": "HH:mm"
52
+ datetime: "yyyy-MM-dd HH:mm:ss",
53
+ datehour: "yyyy-MM-dd HH:mm",
54
+ date: "yyyy-MM-dd",
55
+ time: "HH:mm:ss",
56
+ hour: "HH:mm"
57
57
  };
58
58
  const valueReg = {
59
- "datetime": /^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,
60
- "datehour": /^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2})$/,
61
- "date": /^(\d{4})-(\d{2})-(\d{2})$/,
62
- "time": /^(\d{2}):(\d{2}):(\d{2})$/,
63
- "hour": /^(\d{2}):(\d{2})$/
59
+ datetime: /^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,
60
+ datehour: /^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2})$/,
61
+ date: /^(\d{4})-(\d{2})-(\d{2})$/,
62
+ time: /^(\d{2}):(\d{2}):(\d{2})$/,
63
+ hour: /^(\d{2}):(\d{2})$/
64
64
  };
65
65
  const transDbvalueFormat = /* @__PURE__ */ new Map([["datetime", ["datetime", "datehour", "date", "time", "hour"]], ["datehour", ["datetime", "datehour", "date", "time", "hour"]], ["date", ["date"]], ["time", ["time", "hour"]], ["hour", ["time", "hour"]]]);
66
66
 
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 表单变更检查器
3
+ * 用于手动检查表单对象是否发生实际变更
4
+ */
5
+ export declare function useFormChangeWatcher<T extends Record<string, any>>(): {
6
+ setInitialSnapshot: (formData: T) => void;
7
+ checkFormChange: (newFormData?: T | null) => boolean;
8
+ getInitialSnapshot: () => T | null;
9
+ getFormDiff: (newFormData?: T | null) => Record<string, {
10
+ old: any;
11
+ new: any;
12
+ }> | null;
13
+ };
@@ -0,0 +1,71 @@
1
+ import { cloneDeep, isEqual } from 'lodash-es';
2
+
3
+ function customIsEqual(newValue, oldValue) {
4
+ if (isArrayEmpty(newValue) && (isArrayEmpty(oldValue) || oldValue === "")) {
5
+ return true;
6
+ }
7
+ if (typeof newValue === "object" && typeof oldValue === "object" && newValue !== null && oldValue !== null) {
8
+ if (Array.isArray(newValue) && Array.isArray(oldValue)) {
9
+ return isEqual(newValue, oldValue);
10
+ } else if (!Array.isArray(newValue) && !Array.isArray(oldValue)) {
11
+ const newKeys = Object.keys(newValue);
12
+ const oldKeys = Object.keys(oldValue);
13
+ if (newKeys.length !== oldKeys.length) {
14
+ return false;
15
+ }
16
+ for (const key of newKeys) {
17
+ if (!oldKeys.includes(key) || !customIsEqual(newValue[key], oldValue[key])) {
18
+ return false;
19
+ }
20
+ }
21
+ return true;
22
+ }
23
+ }
24
+ return isEqual(newValue, oldValue);
25
+ }
26
+ function isArrayEmpty(value) {
27
+ return value === null || Array.isArray(value) && value.length === 0;
28
+ }
29
+ function useFormChangeWatcher() {
30
+ let initialSnapshot = null;
31
+ const setInitialSnapshot = (formData) => {
32
+ initialSnapshot = cloneDeep(formData);
33
+ };
34
+ const checkFormChange = (newFormData = null) => {
35
+ if (!initialSnapshot) {
36
+ return false;
37
+ }
38
+ return !customIsEqual(newFormData, initialSnapshot);
39
+ };
40
+ const getInitialSnapshot = () => {
41
+ return initialSnapshot ? cloneDeep(initialSnapshot) : null;
42
+ };
43
+ const getFormDiff = (newFormData = null) => {
44
+ if (!initialSnapshot)
45
+ return null;
46
+ if (!newFormData)
47
+ return null;
48
+ const current = newFormData;
49
+ const diff = {};
50
+ const allKeys = /* @__PURE__ */ new Set([...Object.keys(initialSnapshot), ...Object.keys(current)]);
51
+ allKeys.forEach((key) => {
52
+ const oldValue = initialSnapshot[key];
53
+ const newValue = current[key];
54
+ if (!customIsEqual(oldValue, newValue)) {
55
+ diff[key] = {
56
+ old: oldValue,
57
+ new: newValue
58
+ };
59
+ }
60
+ });
61
+ return Object.keys(diff).length > 0 ? diff : null;
62
+ };
63
+ return {
64
+ setInitialSnapshot,
65
+ checkFormChange,
66
+ getInitialSnapshot,
67
+ getFormDiff
68
+ };
69
+ }
70
+
71
+ export { useFormChangeWatcher };