cnhis-design-vue 3.2.14-release.0 → 3.2.15-beta.2

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 (337) hide show
  1. package/README.md +87 -87
  2. package/es/components/ai-chat/index.d.ts +1 -0
  3. package/es/components/ai-chat/src/Index.vue.d.ts +1 -0
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -0
  6. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  7. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  8. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  9. package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -1
  10. package/es/components/ai-chat/style/index.css +1 -1
  11. package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
  12. package/es/components/base-search/index.d.ts +8 -3
  13. package/es/components/base-search/src/index.vue.d.ts +8 -3
  14. package/es/components/base-search/src/index.vue2.js +1 -1
  15. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  16. package/es/components/big-table/src/components/NoData.vue2.js +1 -1
  17. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -1
  18. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  20. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
  21. package/es/components/big-table/src/components/input-button.vue2.js +1 -1
  22. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  23. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  24. package/es/components/body-select/src/index.vue2.js +1 -1
  25. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  26. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  27. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  28. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  29. package/es/components/branch-notice/index.d.ts +63 -0
  30. package/es/components/branch-notice/index.js +1 -0
  31. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +64 -0
  32. package/es/components/branch-notice/src/BranchNotice.vue.js +1 -0
  33. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -0
  34. package/es/components/branch-notice/src/canstants.d.ts +7 -0
  35. package/es/components/branch-notice/src/canstants.js +1 -0
  36. package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +151 -0
  37. package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +35 -0
  38. package/es/components/branch-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
  39. package/es/components/branch-notice/src/drawLine.d.ts +2 -0
  40. package/es/components/branch-notice/src/drawLine.js +1 -0
  41. package/es/components/branch-notice/src/types.d.ts +14 -0
  42. package/es/components/branch-notice/src/types.js +1 -0
  43. package/es/components/branch-notice/style/index.css +1 -0
  44. package/es/components/button-print/index.d.ts +4 -0
  45. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
  46. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  47. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -1
  48. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
  49. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
  50. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  51. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  52. package/es/components/button-print/src/components/Preview.vue2.js +1 -1
  53. package/es/components/button-print/src/utils/dialog.js +1 -1
  54. package/es/components/button-print/src/utils/print.js +1 -1
  55. package/es/components/calendar/index.d.ts +4 -4
  56. package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
  57. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
  58. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
  59. package/es/components/classification/index.d.ts +1 -0
  60. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  61. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  62. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  63. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  64. package/es/components/classification/src/index.vue.d.ts +1 -0
  65. package/es/components/classification/src/index.vue2.js +1 -1
  66. package/es/components/classification/style/index.css +1 -1
  67. package/es/components/default-page/src/constants/index.js +1 -1
  68. package/es/components/default-page/src/index.vue2.js +1 -1
  69. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
  70. package/es/components/expand-field/src/components/FormItemPerson.vue2.js +1 -1
  71. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  72. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  73. package/es/components/expand-field/src/index.vue2.js +1 -1
  74. package/es/components/expand-field/src/utils/constant.js +1 -1
  75. package/es/components/fabric-chart/index.d.ts +23 -4
  76. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +23 -4
  77. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  78. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  79. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +13 -0
  80. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
  81. package/es/components/fabric-chart/src/components/useStyle.js +1 -1
  82. package/es/components/fabric-chart/src/constants/index.d.ts +1 -1
  83. package/es/components/fabric-chart/src/constants/index.js +1 -1
  84. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  85. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +1 -0
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +1 -0
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  92. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -1
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +1 -0
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  100. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +7 -1
  101. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  102. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  103. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  104. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  105. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +1 -0
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  109. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  110. package/es/components/fabric-chart/src/interface.d.ts +3 -0
  111. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  112. package/es/components/fabric-chart/src/utils/index.js +1 -1
  113. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  114. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  115. package/es/components/field-set/src/FieldFilter.vue.d.ts +6 -5
  116. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  117. package/es/components/field-set/src/FieldSet.vue.d.ts +3 -3
  118. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  119. package/es/components/field-set/src/Index.vue2.js +1 -1
  120. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  121. package/es/components/field-set/src/components/condition.vue2.js +1 -1
  122. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
  123. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  124. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
  125. package/es/components/field-set/src/components/table-row.vue.d.ts +3 -3
  126. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  127. package/es/components/field-set/src/constants/filter.d.ts +21 -12
  128. package/es/components/field-set/src/constants/filter.js +1 -1
  129. package/es/components/field-set/src/constants/index.js +1 -1
  130. package/es/components/field-set/src/types/index.d.ts +1 -1
  131. package/es/components/form-config/index.d.ts +108 -3
  132. package/es/components/form-config/src/FormConfig.vue.d.ts +108 -3
  133. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  134. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
  135. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
  136. package/es/components/form-config/src/constants/index.js +1 -1
  137. package/es/components/form-config/src/hooks/useLocale.js +1 -1
  138. package/es/components/form-render/index.js +1 -1
  139. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  140. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  141. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  142. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  143. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  144. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  145. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  146. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  147. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  148. package/es/components/form-render/src/hooks/usePresetScope.d.ts +1 -1
  149. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  150. package/es/components/form-render/src/utils/index.d.ts +1 -0
  151. package/es/components/form-render/src/utils/index.js +1 -1
  152. package/es/components/iho-chat/index.d.ts +635 -54
  153. package/es/components/iho-chat/src/Index.vue.d.ts +638 -61
  154. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  155. package/es/components/iho-chat/src/api/index.d.ts +1 -0
  156. package/es/components/iho-chat/src/api/index.js +1 -1
  157. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +32 -1
  158. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  159. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +52 -3
  160. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  161. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +52 -2
  162. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  163. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +221 -11
  164. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  165. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +82 -6
  166. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  167. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +19 -1
  168. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  169. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +49 -10
  170. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  171. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +71 -4
  172. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  173. package/es/components/iho-chat/src/components/ContextMenu.d.ts +11 -2
  174. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  175. package/es/components/iho-chat/src/components/MessageTemplate.vue.d.ts +1 -1
  176. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -1
  177. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +51 -2
  178. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  179. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +19 -1
  180. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  181. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +69 -1
  182. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  183. package/es/components/iho-chat/src/components/Video.vue.d.ts +19 -1
  184. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  185. package/es/components/iho-chat/src/constants/index.d.ts +12 -3
  186. package/es/components/iho-chat/src/constants/index.js +1 -1
  187. package/es/components/iho-chat/src/hooks/index.d.ts +2 -2
  188. package/es/components/iho-chat/src/hooks/index.js +1 -1
  189. package/es/components/iho-chat/src/hooks/useData.d.ts +94 -0
  190. package/es/components/iho-chat/src/hooks/useData.js +1 -0
  191. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  192. package/es/components/iho-chat/src/hooks/useVideo.d.ts +19 -1
  193. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  194. package/es/components/iho-chat/src/hooks/useWebSocket.d.ts +3 -0
  195. package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -0
  196. package/es/components/iho-chat/src/types/index.d.ts +0 -6
  197. package/es/components/iho-chat/src/types/index.js +1 -1
  198. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  199. package/es/components/iho-chat/src/utils/index.d.ts +2 -0
  200. package/es/components/iho-chat/src/utils/index.js +1 -1
  201. package/es/components/iho-chat/style/index.css +1 -1
  202. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  203. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
  204. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  205. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  206. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  207. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  208. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  209. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  210. package/es/components/iho-table/src/utils/index.js +1 -1
  211. package/es/components/index.css +1 -1
  212. package/es/components/index.d.ts +2 -1
  213. package/es/components/index.js +1 -1
  214. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
  215. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  216. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
  217. package/es/components/map/src/Map.vue2.js +1 -1
  218. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -1
  219. package/es/components/quick-search/index.d.ts +3 -1
  220. package/es/components/quick-search/src/index.vue.d.ts +3 -1
  221. package/es/components/quick-search/src/index.vue2.js +1 -1
  222. package/es/components/quick-search/style/index.css +1 -1
  223. package/es/components/recommend-search/src/components/BaseSearch.js +1 -1
  224. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -1
  225. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -1
  226. package/es/components/scale-view/index.d.ts +31 -0
  227. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  228. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  229. package/es/components/scale-view/src/components/NoData.vue2.js +1 -1
  230. package/es/components/scale-view/src/components/composables/choose-common.js +1 -1
  231. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
  232. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
  233. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  234. package/es/components/scale-view/src/components/formitem/r-input.d.ts +9 -0
  235. package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
  236. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  237. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +9 -0
  238. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  239. package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
  240. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  241. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  242. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  243. package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
  244. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  245. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -1
  246. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  247. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  248. package/es/components/scale-view/src/hooks/use-component.d.ts +72 -0
  249. package/es/components/scale-view/style/index.css +1 -1
  250. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  251. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  252. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  253. package/es/components/select-label/src/components/label-classify.vue2.js +1 -1
  254. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  255. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  256. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
  257. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  258. package/es/components/select-person/src/SelectPersonType.vue2.js +1 -1
  259. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +1 -1
  260. package/es/components/select-person/src/index.vue2.js +1 -1
  261. package/es/components/slider-tree/src/index.vue2.js +1 -1
  262. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  263. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  264. package/es/components/table-export-field/src/index.vue2.js +1 -1
  265. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
  266. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
  267. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
  268. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  269. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  270. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  271. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
  272. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -1
  273. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -1
  274. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  275. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  276. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
  277. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -1
  278. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  279. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  280. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -1
  281. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -1
  282. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  283. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -7
  284. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  285. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  286. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -7
  287. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
  288. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -1
  289. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -1
  290. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  291. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -7
  292. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  293. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  294. package/es/components/template-render/src/components/index.d.ts +23 -23
  295. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
  296. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -1
  297. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
  298. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
  299. package/es/env.d.ts +25 -25
  300. package/es/shared/assets/img/ai__avatar.png.js +1 -1
  301. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  302. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  303. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  304. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  305. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  306. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  307. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  308. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  309. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  310. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  311. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  312. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  313. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  314. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  315. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  316. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  317. package/es/shared/assets/img/failure.png.js +1 -1
  318. package/es/shared/assets/img/logo.png.js +1 -1
  319. package/es/shared/assets/img/no-permission.png.js +1 -1
  320. package/es/shared/assets/img/nodata.png.js +1 -1
  321. package/es/shared/assets/img/notfound.png.js +1 -1
  322. package/es/shared/assets/img/qr.png.js +1 -1
  323. package/es/shared/assets/img/success.png.js +1 -1
  324. package/es/shared/assets/img/table_style_2.png.js +1 -1
  325. package/es/shared/assets/img/video.png.js +1 -1
  326. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  327. package/es/shared/assets/img/xb_big.png.js +1 -1
  328. package/es/shared/assets/img/xb_small.png.js +1 -1
  329. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  330. package/es/shared/package.json.js +1 -1
  331. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  332. package/es/shared/utils/tapable/index.d.ts +139 -0
  333. package/package.json +2 -2
  334. package/es/components/iho-chat/src/hooks/useSession.d.ts +0 -12
  335. package/es/components/iho-chat/src/hooks/useSession.js +0 -1
  336. package/es/components/iho-chat/src/hooks/useState.d.ts +0 -18
  337. package/es/components/iho-chat/src/hooks/useState.js +0 -1
@@ -1 +1 @@
1
- import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,castArray as n,pick as i}from"lodash-es";import"../../index.js";import{isPositive as r,isNegative as s,parseNumberFromMaybeString as l,formRenderLog as a}from"../utils/index.js";import{useFieldNormalize as p}from"./useFieldNormalize.js";import{traverseSchema as c,fieldKeyEscape as d,createLinebarId as m}from"../utils/schema.js";import{useFormValidator as u}from"./useFormValidator.js";import{transformDateFormat as f}from"../utils/business.js";function x(e,o){Object.assign(e["x-component-props"],{...i(o,["wordbook","autograph"])})}function _(e,o){Object.assign(e["x-component-props"],{...i(o,["urlConfig","wordbook"])})}function h(n,h){const{createValidatorSchema:g}=u(),v=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:s(e.is_empty),...e.componentProps||{}},"x-content":e.slots,"x-display":s(e.is_show)?"hidden":"visible","x-pattern":s(e.is_edit)?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,beforeSetValue:null==h?void 0:h.beforeSetValue,span:2*(e.elem_width||3),showLabel:!r(e.hide_title),remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=g(e);return n&&(t["x-validator"]=n),s(e.is_null)&&(t.required=!0),t},y=e=>{var o,t,n,s,a,p,c,d,m,u,f,h,b,g;const y=v(e);e.urlConfig?_(y,e):e.autograph&&x(y,e);const w=!!e.__multiple,C=r(null!=(t=null==(o=e.componentProps)?void 0:o.allowModify)?t:e.allowModify),O=r(null!=(s=null==(n=e.componentProps)?void 0:n.selectAll)?s:e.selectAll),A=r(null!=(p=null==(a=e.componentProps)?void 0:a.shouldSave)?p:e.save_free_entry),E=r(null!=(d=null==(c=e.componentProps)?void 0:c.allowCreate)?d:e.free_entry),j=null!=(u=null==(m=e.componentProps)?void 0:m.showField)?u:e.show_key,k=null!=(h=null==(f=e.componentProps)?void 0:f.options)?h:e.option,N=null!=(g=l(e.multi_select_value))?g:null==(b=e.componentProps)?void 0:b.maxTagCount;return Object.assign(y["x-component-props"],{multiple:w,options:k,allowModify:C,allowCreate:E||C,shouldSave:A,showField:j,maxTagCount:N,selectAll:O,...i(e,["lazyRequest","requestCache"])}),w&&(y.type="array"),y},w=e=>{var o,t;const n=v(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:r(i)}),e.urlConfig?_(n,e):e.autograph&&x(n,e),n},C=e=>{const t=v(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},O=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{linebarTextDirection:e.linebarTextDirection,linebarDirection:e.linebarDirection,linebarWidth:e.linebarWidth,disabled:r(e.is_not_fold),id:m(e.val_key),show:!s(e.is_show),remark:e.remark},"x-content":e.slots}),A=new Map([["LINEBAR",O],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":s(e.is_show)?"hidden":"visible"})],["INPUT",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=v(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=v(e),{decimal_length:t,validate:n,allowSlash:i}=e;return r(i)&&(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:l(null!=t?t:null==n?void 0:n.decimal_length),whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",y],["REMOTE_SEARCH",y],["DATE",e=>{const o=v(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["TIME",e=>{const o=v(e);return Object.assign(o["x-component-props"],{format:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["wordbook","lazyRequest","autograph"])}),r(e.is_allow_check_mid)&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=v(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=v(e);return o.type="array","table"===e.displayMode?o["x-component"]="TABLE_COMBINATION":!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,minGroupNum:e.minGroupNum,showLabel:!r(e.hide_title),properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",w],["CHECKBOX",w],["SWITCH",e=>{const o=v(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close,showMode:e.show_mode}),o}],["SLIDER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{step:l(e.step_length),max:l(e.max_length),min:l(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=v(e);Array.isArray(e.properties)&&a("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?I(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],i(e,["wrapperStyle","display"])),o}]]),E=e=>{if(e.suffixConfig||e.prefixConfig)return j(e);return(A.get(e.html_type)||C)(e)},j=o=>{if(!o.suffixConfig&&!o.prefixConfig)return E(o);const t=v(o),n=o.suffixConfig?e(o.suffixConfig):[],i=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show}))),{...o,hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...n.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show})))],r=i.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(t,{type:"void",name:d(i),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...t["x-decorator-props"],showFeedback:!1,suffixFields:i.map((e=>e.val_key))},properties:I(i)}),t},{FieldNormalizeWaterfallHook:k,FieldListNormalizeWaterfallHook:N}=p();function I(o,i={column:9999}){let r=null;const s=N.call(t(o),i).reduce(((e,o,s)=>{var p;const c=null==(p=(o=k.call(o,i)).validate)?void 0:p.obj_type;return c&&n&&n.collect(c,t(o)),"LINEBAR"===o.html_type?(e[a(o)]=l(O(o),s),r=e[a(o)].properties={}):r?r[a(o)]=l(E(o),s):(r=null,e[a(o)]=l(E(o),s)),e}),{});return i.linebarAutoHidden&&Object.values(s).forEach((e=>{"LINEBAR"===e["x-component"]&&b(e)})),c({properties:s,"x-root":!0},((e,o)=>{"INPUT_GROUP"===e["x-component"]&&b(e,!!o&&!o["x-root"])})),s;function l(e,o){return e["x-index"]=o,e["x-decorator-props"]={_index:o,...e["x-decorator-props"]},e}function a(o){if(o.suffixConfig||o.prefixConfig){const t=[...e(o.prefixConfig),o,...e(o.suffixConfig)].filter(Boolean);return d(t)}return o.val_key}}return{schemaAdaptor:I}}function b(e,o=!1){e["x-reactions"]?e["x-reactions"]=n(e["x-reactions"]):e["x-reactions"]=[];const t=Object.keys(e.properties||{}).map((t=>`${o?"*.":"."}${e.name}.${t}#selfDisplay`));e["x-reactions"].push({dependencies:t,fulfill:{state:{visible:"{{hasVisible($deps)}}"}}})}export{h as useFieldListAdaptor};
1
+ import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,castArray as n,pick as i}from"lodash-es";import"../../index.js";import{isPositive as r,isNegative as s,parseNumberFromMaybeString as l,formRenderLog as a}from"../utils/index.js";import{useFieldNormalize as p}from"./useFieldNormalize.js";import{traverseSchema as c,fieldKeyEscape as d,createLinebarId as m}from"../utils/schema.js";import{useFormValidator as u}from"./useFormValidator.js";import{transformDateFormat as f}from"../utils/business.js";function x(e,o){Object.assign(e["x-component-props"],{...i(o,["wordbook","autograph"])})}function _(e,o){Object.assign(e["x-component-props"],{...i(o,["urlConfig","wordbook"])})}function h(n,h){const{createValidatorSchema:g}=u(),v=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:s(e.is_empty),...e.componentProps||{}},"x-content":e.slots,"x-display":s(e.is_show)?"hidden":"visible","x-pattern":s(e.is_edit)?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,beforeSetValue:null==h?void 0:h.beforeSetValue,span:2*(e.elem_width||3),showLabel:!r(e.hide_title),remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=g(e);return n&&(t["x-validator"]=n),s(e.is_null)&&(t.required=!0),t},y=e=>{var o,t,n,s,a,p,c,d,m,u,f,h,b,g;const y=v(e);e.urlConfig?_(y,e):e.autograph&&x(y,e);const w=!!e.__multiple,C=r(null!=(t=null==(o=e.componentProps)?void 0:o.allowModify)?t:e.allowModify),O=r(null!=(s=null==(n=e.componentProps)?void 0:n.selectAll)?s:e.selectAll),A=r(null!=(p=null==(a=e.componentProps)?void 0:a.shouldSave)?p:e.save_free_entry),j=r(null!=(d=null==(c=e.componentProps)?void 0:c.allowCreate)?d:e.free_entry),E=null!=(u=null==(m=e.componentProps)?void 0:m.showField)?u:e.show_key,k=null!=(h=null==(f=e.componentProps)?void 0:f.options)?h:e.option,N=null!=(g=l(e.multi_select_value))?g:null==(b=e.componentProps)?void 0:b.maxTagCount;return Object.assign(y["x-component-props"],{multiple:w,options:k,allowModify:C,allowCreate:j||C,shouldSave:A,showField:E,maxTagCount:N,selectAll:O,...i(e,["lazyRequest","requestCache"])}),w&&(y.type="array"),y},w=e=>{var o,t;const n=v(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:r(i)}),e.urlConfig?_(n,e):e.autograph&&x(n,e),n},C=e=>{const t=v(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},O=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{linebarTextDirection:e.linebarTextDirection,linebarDirection:e.linebarDirection,linebarWidth:e.linebarWidth,disabled:r(e.is_not_fold),id:m(e.val_key),show:!s(e.is_show),remark:e.remark},"x-content":e.slots}),A=new Map([["LINEBAR",O],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":s(e.is_show)?"hidden":"visible"})],["INPUT",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=v(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=v(e),{decimal_length:t,validate:n,allowSlash:i}=e;return r(i)&&(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:l(null!=t?t:null==n?void 0:n.decimal_length),whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",y],["REMOTE_SEARCH",y],["DATE",e=>{const o=v(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["TIME",e=>{const o=v(e);return Object.assign(o["x-component-props"],{format:e.date_format,type:f(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{...i(e,["wordbook","lazyRequest","autograph"])}),r(e.is_allow_check_mid)&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=v(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=v(e);return o.type="array","table"===e.displayMode?o["x-component"]="TABLE_COMBINATION":!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,minGroupNum:e.minGroupNum,showLabel:!r(e.hide_title),properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",w],["CHECKBOX",w],["SWITCH",e=>{const o=v(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close,showMode:e.show_mode}),o}],["SLIDER",e=>{const o=v(e);return Object.assign(o["x-component-props"],{step:l(e.step_length),max:l(e.max_length),min:l(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=v(e);Array.isArray(e.properties)&&a("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?I(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],i(e,["wrapperStyle","display"])),o}]]),j=e=>{if(e.suffixConfig||e.prefixConfig)return E(e);return(A.get(e.html_type)||C)(e)},E=o=>{if(!o.suffixConfig&&!o.prefixConfig)return j(o);const t=v(o),n=o.suffixConfig?e(o.suffixConfig):[],i=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show}))),{...o,hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...n.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:s(e.is_show)?"0":o.is_show})))],r=i.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(t,{type:"void",name:d(i),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...t["x-decorator-props"],showFeedback:!1,suffixFields:i.map((e=>e.val_key))},properties:I(i)}),t},{FieldNormalizeWaterfallHook:k,FieldListNormalizeWaterfallHook:N}=p();function I(o,i={column:9999}){let r=null;const s=N.call(t(o),i).reduce(((e,o,s)=>{var p;const c=null==(p=(o=k.call(o,i)).validate)?void 0:p.obj_type;return c&&n&&n.collect(c,t(o)),"LINEBAR"===o.html_type?(e[a(o)]=l(O(o),s),r=e[a(o)].properties={}):r?r[a(o)]=l(j(o),s):(r=null,e[a(o)]=l(j(o),s)),e}),{});return i.linebarAutoHidden&&Object.values(s).forEach((e=>{"LINEBAR"===e["x-component"]&&b(e)})),c({properties:s,"x-root":!0},((e,o)=>{"INPUT_GROUP"===e["x-component"]&&b(e,!!o&&!o["x-root"])})),s;function l(e,o){return e["x-index"]=o,e["x-decorator-props"]={_index:o,...e["x-decorator-props"]},e}function a(o){if(o.suffixConfig||o.prefixConfig){const t=[...e(o.prefixConfig),o,...e(o.suffixConfig)].filter(Boolean);return d(t)}return o.val_key}}return{schemaAdaptor:I}}function b(e,o=!1){e["x-reactions"]?e["x-reactions"]=n(e["x-reactions"]):e["x-reactions"]=[];const t=Object.keys(e.properties||{}).map((t=>`${o?"*.":"."}${e.name}.${t}#selfDisplay`)).concat(Object.keys(e.properties||{}).map((t=>`${o?"*.":"."}${e.name}.${t}#component`)));e["x-reactions"].push({dependencies:t,fulfill:{state:{visible:"{{hasVisible($deps)}}"}}})}export{h as useFieldListAdaptor};
@@ -1 +1 @@
1
- import{arrayed as e,findAncestor as t,targetStringIncludes as r}from"../../../../shared/utils/index.js";import{isField as o}from"@formily/core";import{Path as i}from"@formily/path";import{isObject as n}from"@vue/shared";import{promiseTimeout as a}from"@vueuse/shared";import{isFunction as s,isArray as l,castArray as d,isString as u}from"lodash-es";import{nextTick as c}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as m}from"../constants/index.js";import{formValueFormatter as f}from"../utils/valueFormatter.js";import{queryDecoratorByAddress as p,queryInput as g,queryDecoratorByFieldKey as v,findNextWidget as y}from"../utils/dom.js";import{validateMessageParser as h,combineExtendKey as S,splitExtendKey as b,isEnter as x}from"../utils/index.js";import{getParentLinebar as F}from"../utils/schema.js";import{useSelectedSetting as C}from"./useSelectedSetting.js";function E({formModel:t,formRenderRef:r,formUUID:a,getFieldList:m,formItemDepsCollector:y,businessCollector:x,wordbookSettingHandler:E,operationalFormHandler:D,changeContextCollector:I,emitFormChange:j}){const{applySelectedSetting:w}=C();return{validate(i,{force:c}={}){if(null==i&&(i="*"),s(i)){const e=Object.entries(t.fields).reduce(((e,[t,r])=>(i(r)&&e.push(t),e)),[]);if(!e.length)return Promise.resolve();i=e.length?`*(${e.join(",")})`:"*"}const m=[];c&&t.setFieldState(i,(e=>{"visible"===e.display&&"editable"!==e.pattern&&o(e)&&(m.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const f=t.validate(i).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(v,[]):e)));return c&&m.forEach((({pattern:e,state:t})=>t.pattern=e)),f;function v(t,r){if(!n(r))return t;let o=!1;return l(r.messages)&&r.messages.forEach((r=>{n(r)&&(t.push(...e(r).map(y)),o=!0)})),!o&&t.push(y(r)),t}function y(e){if(e.decoratorElement)return e;const o=t.query(e.path),i=o.get("title"),s=d(e.messages).map((e=>function(e,t){if(!t||!n(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return h(r&&u(r)?r:e,t.fieldItem)}(e,o.get("decoratorProps")))),l=p(e.address,r.value,a);return{...e,messages:s,title:i,decoratorElement:l,...g(l)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=S(m(),r)),r},async setFormValues(e,r){r=Object.assign({avoidDependKeyConnection:!0,needSplitExtendKey:!0,avoidWordbookSettingConnection:!0,avoidOperationalFormConnection:!0,dependKeyKeepValue:!1,avoidBusinessConnection:!1,avoidFormChangeEvent:!1,overwrite:!0},r),x.triggerDisabled=r.avoidBusinessConnection,y.triggerDisabled=r.avoidDependKeyConnection,y.keepValue=r.dependKeyKeepValue,E.triggerDisabled=r.avoidWordbookSettingConnection,D.triggerDisabled=r.avoidOperationalFormConnection,r.needSplitExtendKey&&(e=b(m(),e)),r.avoidFormChangeEvent&&(j.value=!1),t.setFieldState("*",(t=>{o(t)&&(r.overwrite||i.existIn(e,t.path))&&(t.value=i.getIn(e,t.path))})),await c(),j.value=!0,x.triggerDisabled=!1,y.triggerDisabled=!1,E.triggerDisabled=!1,D.triggerDisabled=!1,y.keepValue=!1},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:e=>async function(e,t,o){if(!r.value)return l();const n=v(e,t,a);if(n)return l(n);const s=F(e,o);return s?(y.trigger(i.parse(s),!0),await c(),l(v(e,t,a))):l();function l(e){return{decoratorElement:e,...g(e)}}}(e,r.value,m()),applySelectedSetting(e){const r=t.getFormState().values;w(r,e,((e,r)=>{t.setFieldState(e,(e=>{o(e)&&e.setValue(r)}))}))},getTextFormValues:()=>f(t,I)}}function D({props:e,formRenderRef:o,formModel:i,formUUID:n}){return{onKeydown:async function l(d){var u;if(!d.isComposing)if(x(d)){if(e.enterToNextWidget&&d.target){if("TEXTAREA"===d.target.tagName&&!d.ctrlKey)return;d.preventDefault()}if(await a(0),Reflect.get(d,"stopCapture")||!e.enterToNextWidget||!o.value)return;const r=t(d.target,(e=>e.classList.contains("form-render__formItem")));if(!r)return;const n=`.form-render__formItem${m.map((e=>`:not([widget-type=${e}])`)).join("")}`,f=Array.from(o.value.querySelectorAll(n)),p=f.findIndex((e=>e.id===r.id));if(!~p)return;const{widget:g,field:v}=y(f,p,d.target);if(!g)return;if(s(e.enterToNextWidget)){const t=v&&i.query(v).take();!t||e.enterToNextWidget(null==(u=t.decoratorProps)?void 0:u.fieldItem)?c(g,e.autoExpand):l({target:g,code:"Enter"})}else c(g,e.autoExpand)}else if("Tab"===d.code){if(!e.autoExpand)return;await a(0);const t=document.querySelector(":focus");if(!t)return;c(t,!0)}async function c(e,o){if(await a(0),e.focus(),!o)return;if(!t(e,(e=>e.getAttribute("uuid")===n)))return;if(!r(["radio","checkbox"],e.className))if(e.click(),"INPUT"!==e.tagName){const t=e.querySelector("input");if(!t)return;t.focus(),i(t)}else i(e);function i(e){if("INPUT"!==e.tagName)return;const t=e.value;t&&t.match(/^\d{4}-\d{2}/)&&e.setSelectionRange(0,4)}}}}}export{D as useFormDomEvent,E as useFormExposeEvent};
1
+ import{arrayed as e,findAncestor as t,targetStringIncludes as r}from"../../../../shared/utils/index.js";import{isField as o}from"@formily/core";import{Path as n}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as a}from"@vueuse/shared";import{isFunction as s,isArray as l,castArray as d,isString as u}from"lodash-es";import{nextTick as c}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as m}from"../constants/index.js";import{formValueFormatter as f}from"../utils/valueFormatter.js";import{queryDecoratorByAddress as p,queryInput as g,queryDecoratorByFieldKey as v,findNextWidget as y}from"../utils/dom.js";import{validateMessageParser as h,combineExtendKey as S,splitExtendKey as b,isEnter as x}from"../utils/index.js";import{getParentLinebar as F}from"../utils/schema.js";import{useSelectedSetting as C}from"./useSelectedSetting.js";function E({formModel:t,formRenderRef:r,formUUID:a,getFieldList:m,formItemDepsCollector:y,businessCollector:x,wordbookSettingHandler:E,operationalFormHandler:D,changeContextCollector:I,emitFormChange:j}){const{applySelectedSetting:w}=C();return{validate(n,{force:c}={}){if(null==n&&(n="*"),s(n)){const e=Object.entries(t.fields).reduce(((e,[t,r])=>(n(r)&&e.push(t),e)),[]);if(!e.length)return Promise.resolve();n=e.length?`*(${e.join(",")})`:"*"}const m=[];c&&t.setFieldState(n,(e=>{"visible"===e.display&&"editable"!==e.pattern&&o(e)&&(m.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const f=t.validate(n).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(v,[]):e)));return c&&m.forEach((({pattern:e,state:t})=>t.pattern=e)),f;function v(t,r){if(!i(r))return t;let o=!1;return l(r.messages)&&r.messages.forEach((r=>{i(r)&&(t.push(...e(r).map(y)),o=!0)})),!o&&t.push(y(r)),t}function y(e){if(e.decoratorElement)return e;const o=t.query(e.path),n=o.get("title"),s=d(e.messages).map((e=>function(e,t){if(!t||!i(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return h(r&&u(r)?r:e,t.fieldItem)}(e,o.get("decoratorProps")))),l=p(e.address,r.value,a);return{...e,messages:s,title:n,decoratorElement:l,...g(l)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=S(m(),r)),r},async setFormValues(e,r){r=Object.assign({avoidDependKeyConnection:!0,needSplitExtendKey:!0,avoidWordbookSettingConnection:!0,avoidOperationalFormConnection:!0,dependKeyKeepValue:!1,avoidBusinessConnection:!1,avoidFormChangeEvent:!1,overwrite:!0},r),x.triggerDisabled=r.avoidBusinessConnection,y.triggerDisabled=r.avoidDependKeyConnection,y.keepValue=r.dependKeyKeepValue,E.triggerDisabled=r.avoidWordbookSettingConnection,D.triggerDisabled=r.avoidOperationalFormConnection,r.needSplitExtendKey&&(e=b(m(),e)),r.avoidFormChangeEvent&&(j.value=!1),t.setFieldState("*",(t=>{o(t)&&(r.overwrite||n.existIn(e,t.path))&&(t.value=n.getIn(e,t.path))})),await c(),j.value=!0,x.triggerDisabled=!1,y.triggerDisabled=!1,E.triggerDisabled=!1,D.triggerDisabled=!1,y.keepValue=!1},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:e=>async function(e,t,o){if(!r.value)return l();const i=v(e,t,a);if(i)return l(i);const s=F(e,o);return s?(y.trigger(n.parse(s),!0),await c(),l(v(e,t,a))):l();function l(e){return{decoratorElement:e,...g(e)}}}(e,r.value,m()),applySelectedSetting(e){const r=t.getFormState().values;w(r,e,((e,r)=>{t.setFieldState(e,(e=>{o(e)&&e.setValue(r)}))}))},getTextFormValues:()=>f(t,I)}}function D({props:e,formRenderRef:o,formModel:n,formUUID:i}){return{onKeydown:async function l(d){var u,c;if(!d.isComposing)if(x(d)){if(e.enterToNextWidget&&d.target){if("TEXTAREA"===d.target.tagName&&!d.ctrlKey)return;null==(u=d.preventDefault)||u.call(d)}if(await a(0),Reflect.get(d,"stopCapture")||!e.enterToNextWidget||!o.value)return;const r=t(d.target,(e=>e.classList.contains("form-render__formItem")));if(!r)return;const i=`.form-render__formItem${m.map((e=>`:not([widget-type=${e}])`)).join("")}`,p=Array.from(o.value.querySelectorAll(i)),g=p.findIndex((e=>e.id===r.id));if(!~g)return;const{widget:v,field:h}=y(p,g,d.target);if(!v)return;if(s(e.enterToNextWidget)){const t=h&&n.query(h).take();!t||e.enterToNextWidget(null==(c=t.decoratorProps)?void 0:c.fieldItem)?f(v,e.autoExpand):l({target:v,code:"Enter"})}else f(v,e.autoExpand)}else if("Tab"===d.code){if(!e.autoExpand)return;await a(0);const t=document.querySelector(":focus");if(!t)return;f(t,!0)}async function f(e,o){if(await a(0),e.focus(),!o)return;if(!t(e,(e=>e.getAttribute("uuid")===i)))return;if(!r(["radio","checkbox"],e.className))if(e.click(),"INPUT"!==e.tagName){const t=e.querySelector("input");if(!t)return;t.focus(),n(t)}else n(e);function n(e){if("INPUT"!==e.tagName)return;const t=e.value;t&&t.match(/^\d{4}-\d{2}/)&&e.setSelectionRange(0,4)}}}}}export{D as useFormDomEvent,E as useFormExposeEvent};
@@ -3,5 +3,5 @@ export declare function usePresetScope(): {
3
3
  isMobile(value: unknown): boolean;
4
4
  isEmail(value: unknown): boolean;
5
5
  isNumber(value: unknown): boolean;
6
- hasVisible(visibleStates: string[]): boolean;
6
+ hasVisible(linebarStates: string[]): boolean;
7
7
  };
@@ -1 +1 @@
1
- import{isString as i,isEmpty as o}from"lodash-es";import"vue";import"../../../../shared/utils/index.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"@vueuse/core";import"naive-ui";import{isIdCard as s,isMobile as r}from"../utils/business.js";function e(){return{isIdCard:o=>i(o)&&s(o),isMobile:o=>i(o)&&r(o),isEmail:o=>i(o)&&/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(o),isNumber:o=>i(o)&&/\d+/.test(o),hasVisible:i=>!o(i)&&i.some((i=>!i||"visible"===i))}}export{e as usePresetScope};
1
+ import{isString as i,isEmpty as e}from"lodash-es";import"vue";import"../../../../shared/utils/index.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"@vueuse/core";import"naive-ui";import{isIdCard as r,isMobile as s}from"../utils/business.js";function o(){return{isIdCard:e=>i(e)&&r(e),isMobile:e=>i(e)&&s(e),isEmail:e=>i(e)&&/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e),isNumber:e=>i(e)&&/\d+/.test(e),hasVisible(i){if(e(i))return!1;const r=i.slice(0,i.length/2),s=i.slice(i.length/2).map((i=>null==i?void 0:i[0]));return r.some(((i,e)=>(!i||"visible"===i)&&"LINE_BREAKS"!==s[e]))}}}export{o as usePresetScope};
@@ -21,6 +21,7 @@ export declare function combineExtendKey(fieldList: FieldItem[], values: AnyObje
21
21
  export declare function splitExtendKey(fieldList: FieldItem[], values: AnyObject): AnyObject;
22
22
  export declare function isNestedType(type?: string): boolean | "" | undefined;
23
23
  export declare function isNestedFieldType(field: FieldItem | GeneralField): boolean | "" | undefined;
24
+ export declare function renderOptionLabel(option: AnyObject, labelKey: string): JSX.Element;
24
25
  export declare function renderDescOption(labelNode: any, option: AnyObject): JSX.Element;
25
26
  export declare function getAbsoluteKey(fieldKey: string, field: Pattern): string;
26
27
  export declare function editorUnescape(content: string): string;
@@ -1 +1 @@
1
- import{inject as e,provide as t,computed as n,createVNode as r,Fragment as o}from"vue";import{traverse as i,arrayed as u}from"../../../../shared/utils/index.js";import{isGeneralField as c}from"@formily/core";import{Path as s}from"@formily/path";import{HelpCircleSharp as f}from"@vicons/ionicons5";import{isObject as l}from"@vue/shared";import{useMemoize as a}from"@vueuse/core";import{isString as p,isFunction as d,omit as E,castArray as T,flattenDeep as h}from"lodash-es";import{NTooltip as m,NIcon as x}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as g}from"../constants/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./business.js";function y(e){console.warn(`[FormRender]: ${e}`)}function R(e){return"1"===e||!0===e||1===e}function v(e){return"0"===e||!1===e||0===e}function I(e,t,n=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function e(t,r){r.forEach((r=>{l(r)&&(null!=c(r)&&null==t[i(r)]&&s.setIn(t,i(r),c(r)),n.forEach((n=>{r[n]&&(t[i(r)]||(t[i(r)]={}),e(t[i(r)],u(r[n])))})))}))}(e,t),e;function i(e){return e[r]}function c(e){return e[o]}}function A(n,r){let o=e(n,null);return o||(o=r(),t(n,o)),o}function D(e){return e&&p(e)?+e:e}function P(e,t,n){if(l(e)&&!d(e)){const n={};return Object.entries(e).forEach((([e,r])=>{d(r)&&(n[e]=()=>r(t))})),n}return{default:()=>d(e)?e(t):n?n(e):[e]}}function W(e,t){return n((()=>{const n={};return e.prefix&&(n.prefix=()=>r(o,null,[P(e.prefix,e,t).default()])),e.suffix&&(n.suffix=()=>r(o,null,[P(e.suffix,e,t).default()])),n}))}function _(e,t){return p(e)&&e?e.replace(/\$\{([^}]*)}/g,(function(e,n){const r=n.split("||");for(const e of r){const n=t[e.trim()];if(n)return n}return""})):""}function G(e){return e.reduce(((e,t)=>(p(t.extendKey)&&t.extendKey&&e.push(t),j(t)&&e.push(...G(t.children||[])),e)),[])}function S(e,t){const n=G(e);if(!n.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([e,i])=>{const u=n.find((t=>t.val_key===e));if(!u)return r[e]=i;const{val_key:c,extendKey:f}=u,l=o.get(f)||{};o.set(f,l);const a=s.getIn(t,e);null!=a&&s.setIn(l,c,a)})),[...o.entries()].forEach((([e,t])=>{r[e]=JSON.stringify(t)})),r}function $(e,t){const n=G(e);if(!n.length)return t;const r=a((e=>{try{return l(t[e])?t[e]:JSON.parse(t[e])||{}}catch(e){return{}}})),o=E(t,n.map((e=>e.extendKey)));return n.forEach((({val_key:e,extendKey:t})=>{Reflect.has(o,e)||(o[e]=r(t)[e])})),o}function b(e){return e&&g.includes(e)}function j(e){return b(c(e)?e.componentType:e.html_type)}function w(e,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[e,t.desc?r(m,null,{trigger:()=>r(x,{component:f},null),default:()=>t.desc}):null])}function K(e,t){return s.parse(e.startsWith(".")?e:`.${e}`,t).toString()}function X(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">")}function k(e,t){return e.reduce(((e,n)=>(t(n)||(e.push(n),n.properties&&(n.properties=k(n.properties,t)),n.children&&(n.children=k(n.children,t))),e)),[])}function C(e,t){let n=null;return i(e,((e,r)=>{t(e)&&(n=e,r())}),["children","properties"]),n}var F=function(e){return e[e.PREPARE=0]="PREPARE",e[e.TEXT=1]="TEXT",e[e.WIDGET_START=2]="WIDGET_START",e[e.WIDGET=3]="WIDGET",e}(F||{});function O(e){const t=[...e],n=[];let r=F.PREPARE,o="";function i(e){switch(r=e,r){case F.PREPARE:case F.WIDGET_START:case F.WIDGET:o=""}}function u(e="text",t=o){n.push({type:e,content:t})}function c(){const e=n.pop();e&&("text"===e.type?o=e.content:n.push(e))}return t.forEach(((e,n)=>{const s=n===t.length-1;switch(r){case F.PREPARE:return"#"===e?(i(F.WIDGET_START),void(s&&u())):(i(F.TEXT),o=e,void(s&&u()));case F.TEXT:return"#"===e?void(s?(o+=e,u()):(u(),i(F.WIDGET_START))):(o+=e,void(s&&u()));case F.WIDGET_START:return"{"!==e||s?(c(),i(F.TEXT),o+=`#${e}`,void(s&&u())):void i(F.WIDGET);case F.WIDGET:return"}"===e?(u("widget"),void i(F.PREPARE)):"#"===e?(c(),u(),i(F.WIDGET_START),o+=`#${e}`,void(s&&u())):(o+=e,void(s&&u("text",`#{${o}`)))}})),n}function N(e,t){let n=T(e);return t.forEach((({from:e,to:t})=>{n.forEach(((r,o)=>{p(r)&&(n[o]=r.split(e).map(((e,n,r)=>[e,n<r.length-1?t:null])))})),n=h(n)})),n}function B(e){return"Enter"===e.code||"NumpadEnter"===e.code}export{k as FieldListFilter,S as combineExtendKey,W as createInputSlot,P as createSlot,X as editorUnescape,C as findItemByValCondition,y as formRenderLog,K as getAbsoluteKey,A as injectOrProvide,B as isEnter,v as isNegative,j as isNestedFieldType,b as isNestedType,R as isPositive,I as mergeDeepProperties,O as parseEnhanceText,D as parseNumberFromMaybeString,w as renderDescOption,N as replace2Any,$ as splitExtendKey,_ as validateMessageParser};
1
+ import{inject as e,provide as t,computed as n,createVNode as r,Fragment as o}from"vue";import{widthAppend as i,traverse as u,arrayed as c}from"../../../../shared/utils/index.js";import{isGeneralField as s}from"@formily/core";import{Path as f}from"@formily/path";import{HelpCircleSharp as l}from"@vicons/ionicons5";import{isObject as a}from"@vue/shared";import{useMemoize as p}from"@vueuse/core";import{isString as d,isFunction as m,omit as h,castArray as E,flattenDeep as T}from"lodash-es";import{NTooltip as g,NIcon as x}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as y}from"../constants/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./business.js";function v(e){console.warn(`[FormRender]: ${e}`)}function R(e){return"1"===e||!0===e||1===e}function I(e){return"0"===e||!1===e||0===e}function D(e,t,n=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function e(t,r){r.forEach((r=>{a(r)&&(null!=u(r)&&null==t[i(r)]&&f.setIn(t,i(r),u(r)),n.forEach((n=>{r[n]&&(t[i(r)]||(t[i(r)]={}),e(t[i(r)],c(r[n])))})))}))}(e,t),e;function i(e){return e[r]}function u(e){return e[o]}}function A(n,r){let o=e(n,null);return o||(o=r(),t(n,o)),o}function W(e){return e&&d(e)?+e:e}function P(e,t,n){if(a(e)&&!m(e)){const n={};return Object.entries(e).forEach((([e,r])=>{m(r)&&(n[e]=()=>r(t))})),n}return{default:()=>m(e)?e(t):n?n(e):[e]}}function _(e,t){return n((()=>{const n={};return e.prefix&&(n.prefix=()=>r(o,null,[P(e.prefix,e,t).default()])),e.suffix&&(n.suffix=()=>r(o,null,[P(e.suffix,e,t).default()])),n}))}function G(e,t){return d(e)&&e?e.replace(/\$\{([^}]*)}/g,(function(e,n){const r=n.split("||");for(const e of r){const n=t[e.trim()];if(n)return n}return""})):""}function S(e){return e.reduce(((e,t)=>(d(t.extendKey)&&t.extendKey&&e.push(t),b(t)&&e.push(...S(t.children||[])),e)),[])}function j(e,t){const n=S(e);if(!n.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([e,i])=>{const u=n.find((t=>t.val_key===e));if(!u)return r[e]=i;const{val_key:c,extendKey:s}=u,l=o.get(s)||{};o.set(s,l);const a=f.getIn(t,e);null!=a&&f.setIn(l,c,a)})),[...o.entries()].forEach((([e,t])=>{r[e]=JSON.stringify(t)})),r}function w(e,t){const n=S(e);if(!n.length)return t;const r=p((e=>{try{return a(t[e])?t[e]:JSON.parse(t[e])||{}}catch(e){return{}}})),o=h(t,n.map((e=>e.extendKey)));return n.forEach((({val_key:e,extendKey:t})=>{Reflect.has(o,e)||(o[e]=r(t)[e])})),o}function $(e){return e&&y.includes(e)}function b(e){return $(s(e)?e.componentType:e.html_type)}function B(e,t){var n;const o=null!=(n=e.title)?n:e[t];return r("span",{title:o,style:{display:"inline-flex",flexDirection:"column",alignItems:"center","justify-content":"center"}},[e.imageBase64?r("img",{src:e.imageBase64,style:{width:i(e.imageWidth||80),height:i(e.imageHeight||80),marginBottom:"4px"}},null):null,e[t]])}function K(e,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[e,t.desc?r(g,null,{trigger:()=>r(x,{component:l},null),default:()=>t.desc}):null])}function X(e,t){return f.parse(e.startsWith(".")?e:`.${e}`,t).toString()}function k(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">")}function C(e,t){return e.reduce(((e,n)=>(t(n)||(e.push(n),n.properties&&(n.properties=C(n.properties,t)),n.children&&(n.children=C(n.children,t))),e)),[])}function F(e,t){let n=null;return u(e,((e,r)=>{t(e)&&(n=e,r())}),["children","properties"]),n}var O=function(e){return e[e.PREPARE=0]="PREPARE",e[e.TEXT=1]="TEXT",e[e.WIDGET_START=2]="WIDGET_START",e[e.WIDGET=3]="WIDGET",e}(O||{});function N(e){const t=[...e],n=[];let r=O.PREPARE,o="";function i(e){switch(r=e,r){case O.PREPARE:case O.WIDGET_START:case O.WIDGET:o=""}}function u(e="text",t=o){n.push({type:e,content:t})}function c(){const e=n.pop();e&&("text"===e.type?o=e.content:n.push(e))}return t.forEach(((e,n)=>{const s=n===t.length-1;switch(r){case O.PREPARE:return"#"===e?(i(O.WIDGET_START),void(s&&u())):(i(O.TEXT),o=e,void(s&&u()));case O.TEXT:return"#"===e?void(s?(o+=e,u()):(u(),i(O.WIDGET_START))):(o+=e,void(s&&u()));case O.WIDGET_START:return"{"!==e||s?(c(),i(O.TEXT),o+=`#${e}`,void(s&&u())):void i(O.WIDGET);case O.WIDGET:return"}"===e?(u("widget"),void i(O.PREPARE)):"#"===e?(c(),u(),i(O.WIDGET_START),o+=`#${e}`,void(s&&u())):(o+=e,void(s&&u("text",`#{${o}`)))}})),n}function J(e,t){let n=E(e);return t.forEach((({from:e,to:t})=>{n.forEach(((r,o)=>{d(r)&&(n[o]=r.split(e).map(((e,n,r)=>[e,n<r.length-1?t:null])))})),n=T(n)})),n}function M(e){return"Enter"===e.code||"NumpadEnter"===e.code}export{C as FieldListFilter,j as combineExtendKey,_ as createInputSlot,P as createSlot,k as editorUnescape,F as findItemByValCondition,v as formRenderLog,X as getAbsoluteKey,A as injectOrProvide,M as isEnter,I as isNegative,b as isNestedFieldType,$ as isNestedType,R as isPositive,D as mergeDeepProperties,N as parseEnhanceText,W as parseNumberFromMaybeString,K as renderDescOption,B as renderOptionLabel,J as replace2Any,w as splitExtendKey,G as validateMessageParser};