cnhis-design-vue 3.1.55-release.1 → 3.1.56-release.0

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 (386) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/index.d.ts +1 -1
  3. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +1 -1
  5. package/es/components/base-search/index.d.ts +1 -1
  6. package/es/components/base-search/src/index.vue.d.ts +4 -4
  7. package/es/components/big-table/index.d.ts +22 -22
  8. package/es/components/big-table/index.js +1 -1
  9. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  10. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  11. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  12. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  13. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  14. package/es/components/big-table/src/constants/index.d.ts +1 -1
  15. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  16. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  17. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  18. package/es/components/big-table/src/utils.d.ts +1 -1
  19. package/es/components/biunique-chat/index.d.ts +14 -14
  20. package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
  21. package/es/components/biunique-chat/src/api/index.d.ts +1 -1
  22. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
  23. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
  24. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
  25. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  26. package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
  27. package/es/components/body-select/index.d.ts +5 -5
  28. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  29. package/es/components/body-select/src/index.vue.d.ts +1 -1
  30. package/es/components/bpmn-workflow/index.d.ts +1 -1
  31. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  32. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  33. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  34. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  35. package/es/components/button-print/index.d.ts +21 -21
  36. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  37. package/es/components/button-print/src/api.d.ts +1 -1
  38. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  39. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  40. package/es/components/button-print/src/utils/print.d.ts +2 -2
  41. package/es/components/callback/index.d.ts +1 -1
  42. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  43. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  44. package/es/components/callback/src/components/render/popupMaps.d.ts +48 -162
  45. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  46. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  47. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  48. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  49. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  50. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  51. package/es/components/classification/index.d.ts +20 -20
  52. package/es/components/classification/src/components/set-classification/index.vue.d.ts +13 -13
  53. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  54. package/es/components/classification/src/index.vue.d.ts +13 -13
  55. package/es/components/config-provider/index.d.ts +1 -1
  56. package/es/components/date-picker/index.d.ts +2 -2
  57. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  58. package/es/components/editor/index.d.ts +1 -1
  59. package/es/components/expand-field/index.d.ts +29 -29
  60. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  61. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  62. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  63. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  64. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  65. package/es/components/fabric-chart/index.d.ts +6 -6
  66. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -1
  67. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  68. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  69. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  70. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  71. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  72. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +4 -4
  73. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  74. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  75. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  76. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  77. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  78. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  79. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  80. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
  81. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  82. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  83. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  84. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  85. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  86. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  87. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
  89. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  90. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  91. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  92. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  93. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  94. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  95. package/es/components/field-set/index.d.ts +15 -15
  96. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  97. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  98. package/es/components/field-set/src/types/index.d.ts +1 -1
  99. package/es/components/field-set/src/utils/index.d.ts +3 -3
  100. package/es/components/form-config/index.d.ts +254 -475
  101. package/es/components/form-config/src/FormConfig.vue.d.ts +380 -601
  102. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -128
  103. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
  104. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  105. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +180 -291
  106. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  107. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
  108. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  109. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  110. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  111. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  112. package/es/components/form-config/src/constants/index.d.ts +2 -2
  113. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  114. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  115. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  116. package/es/components/form-config/src/types/index.d.ts +2 -2
  117. package/es/components/form-config/src/utils/index.d.ts +3 -3
  118. package/es/components/form-render/index.d.ts +47 -161
  119. package/es/components/form-render/src/FormRender.vue.d.ts +12 -127
  120. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  121. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +70 -184
  122. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  123. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  124. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  125. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  126. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  127. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  128. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  129. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  130. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  131. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  132. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  133. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  134. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  135. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  136. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  137. package/es/components/form-render/src/components/renderer/select.js +1 -1
  138. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  139. package/es/components/form-render/src/constants/index.d.ts +5 -5
  140. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  141. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  142. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  143. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
  144. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  145. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
  146. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  147. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  148. package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
  149. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  150. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  151. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  152. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  153. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -4
  154. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  155. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  156. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  157. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  158. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
  159. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  160. package/es/components/form-render/src/types/index.d.ts +15 -15
  161. package/es/components/form-render/src/utils/business.d.ts +2 -2
  162. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  163. package/es/components/form-render/src/utils/index.d.ts +1 -1
  164. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  165. package/es/components/form-render/src/utils/schema.js +1 -1
  166. package/es/components/grid/index.d.ts +1 -1
  167. package/es/components/guide/src/renderer.d.ts +1 -1
  168. package/es/components/guide/src/types/index.d.ts +1 -1
  169. package/es/components/guide/src/useGuide.d.ts +1 -1
  170. package/es/components/guide/src/utils/index.d.ts +1 -1
  171. package/es/components/iho-table/index.d.ts +39 -39
  172. package/es/components/iho-table/index.js +1 -1
  173. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  174. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  175. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  176. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  177. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  178. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  179. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  180. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  181. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -1
  182. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  183. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
  184. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  185. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  186. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  187. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -1
  188. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  189. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  190. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  191. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  192. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  193. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  194. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  195. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
  196. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  197. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  198. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  199. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  200. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  201. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  202. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  203. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  204. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  205. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  206. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  207. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  208. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  209. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  210. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  211. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  212. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  213. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  214. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  215. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  216. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  217. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  218. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  219. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  220. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  221. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  222. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  223. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  225. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
  229. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  232. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  234. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  237. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  240. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  241. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  244. package/es/components/iho-table/src/types/index.d.ts +3 -3
  245. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  246. package/es/components/iho-table/src/utils/index.d.ts +3 -3
  247. package/es/components/iho-table/src/utils/index.js +1 -1
  248. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  249. package/es/components/index.d.ts +3 -3
  250. package/es/components/index.js +1 -1
  251. package/es/components/info-header/index.d.ts +149 -377
  252. package/es/components/info-header/src/InfoHeader.vue.d.ts +165 -393
  253. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
  254. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
  255. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +93 -207
  256. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -129
  257. package/es/components/info-header/src/constants/index.d.ts +1 -1
  258. package/es/components/info-header/src/types/index.d.ts +1 -1
  259. package/es/components/keyboard/index.d.ts +1 -1
  260. package/es/components/map/index.d.ts +1 -1
  261. package/es/components/map/src/Map.vue.d.ts +1 -1
  262. package/es/components/picture-clipper/index.d.ts +1 -1
  263. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  264. package/es/components/quick-search/index.d.ts +1 -1
  265. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  266. package/es/components/recommend-search/index.d.ts +25 -25
  267. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
  268. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  269. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
  270. package/es/components/scale-view/index.d.ts +1 -1
  271. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  272. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  273. package/es/components/scale-view/src/types/index.d.ts +1 -1
  274. package/es/components/search-cascader/index.d.ts +34 -34
  275. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  276. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  277. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  278. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  279. package/es/components/select-label/index.d.ts +1 -1
  280. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  281. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  282. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  283. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  284. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  285. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  286. package/es/components/select-label/src/index.vue.d.ts +19 -19
  287. package/es/components/select-person/index.d.ts +22 -22
  288. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  289. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  290. package/es/components/shortcut-provider/index.d.ts +1 -1
  291. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  292. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  293. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  294. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  295. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  296. package/es/components/shortcut-setter/index.d.ts +63 -176
  297. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +96 -209
  298. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  299. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  300. package/es/components/slider-tree/index.d.ts +1 -1
  301. package/es/components/steps-wheel/index.d.ts +1 -1
  302. package/es/components/table-export-field/index.d.ts +3 -3
  303. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +4 -1
  304. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  305. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  306. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  307. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
  308. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  309. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  310. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  311. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  312. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  313. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  314. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  315. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  316. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  317. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  318. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  319. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  320. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  321. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -0
  322. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  323. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  324. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -0
  325. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  326. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +13 -9
  327. package/es/components/table-filter/src/constants/index.d.ts +1 -1
  328. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  329. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  330. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  331. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  332. package/es/components/table-filter/src/types/index.d.ts +1 -0
  333. package/es/components/time-line/index.d.ts +1 -1
  334. package/es/components/time-picker/index.d.ts +2 -2
  335. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  336. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  337. package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -1
  338. package/es/env.d.ts +25 -25
  339. package/es/shared/assets/img/failure.png.js +1 -1
  340. package/es/shared/assets/img/no-permission.png.js +1 -1
  341. package/es/shared/assets/img/nodata.png.js +1 -1
  342. package/es/shared/assets/img/notfound.png.js +1 -1
  343. package/es/shared/assets/img/qr.png.js +1 -1
  344. package/es/shared/assets/img/success.png.js +1 -1
  345. package/es/shared/assets/img/video.png.js +1 -1
  346. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  347. package/es/shared/assets/img/xb_big.png.js +1 -1
  348. package/es/shared/assets/img/xb_small.png.js +1 -1
  349. package/es/shared/components/CancelRadio/index.js +1 -1
  350. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  351. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  352. package/es/shared/components/InputNumberSlash/index.js +1 -1
  353. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  354. package/es/shared/components/SelectPage/index.js +1 -1
  355. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  356. package/es/shared/components/SlotRender/index.js +1 -1
  357. package/es/shared/components/SvgIcon/index.js +1 -1
  358. package/es/shared/components/TextOverTooltip/index.js +1 -1
  359. package/es/shared/components/VueDraggable/index.js +1 -1
  360. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  361. package/es/shared/components/no-data/index.js +1 -1
  362. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  363. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  364. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  365. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  366. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  367. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  368. package/es/shared/hooks/useDateTime.d.ts +1 -1
  369. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  370. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  371. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  372. package/es/shared/hooks/useTheme.d.ts +1 -1
  373. package/es/shared/package.json.js +1 -1
  374. package/es/shared/types/business.d.ts +1 -1
  375. package/es/shared/utils/business.d.ts +1 -1
  376. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  377. package/es/shared/utils/index.d.ts +1 -1
  378. package/es/shared/utils/tapable/index.d.ts +139 -0
  379. package/es/shared/utils/vexutils.js +1 -1
  380. package/package.json +2 -2
  381. package/es/shared/utils/tapable/AsyncParallelBailHook.js +0 -1
  382. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +0 -1
  383. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +0 -1
  384. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +0 -1
  385. package/es/shared/utils/tapable/SyncBailHook.js +0 -1
  386. package/es/shared/utils/tapable/SyncLoopHook.js +0 -1
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,inject as l,watch as o,createVNode as r,nextTick as n}from"vue";import{connect as u,mapProps as i}from"@formily/vue";import{isEqual as s,isArray as c,isString as p}from"lodash-es";import{NCascader as d}from"naive-ui";import"../../../index.js";import{useCommonInjection as m}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as v,InjectionFormUUID as f}from"../../constants/index.js";import"@formily/path";import"@vueuse/core";import"../../../../../shared/utils/index.js";import"@formily/core";import"@vicons/ionicons5";import"@vue/shared";import"date-fns";import{assignUpdateValue as y,createVisitedSetter as h,traverseDependKey as k}from"../../utils/schema.js";import"@formily/reactive";import"../../hooks/useComplexOptions.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"@vueuse/shared";import"../../../../../shared/hooks/selectHooks/useSearchContent.js";import"./index.js";import{useFormField as j}from"../../hooks/useFormField.js";import"../../hooks/useFormValidator.js";const g=u(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},checkStrategy:{type:String,default:"child"},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:u,emit:i}){const y=t(),{field:g,title:b}=j(),C=t(1),S=t(!0);const w=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.nameKey)?a:e.labelField)?l:"text"})),F=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.valueKey)?a:e.valueField)?l:"value"})),A=a((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");if(!Array.isArray(t)||!t.length)return null;const a=t.map((e=>e[F.value])).slice(-1).join(""),l=t.map((e=>e[w.value])).join(" / ");return a||l}catch(e){return null}}));function H(e,t,a){i("update:value",c(a)?a.map((function(e){return{...e,label:e[w.value],children:void 0,parent:void 0,mergeItemValue:void 0}})):null)}const x=l(v);async function q(t){e.filterable?await async function(){if(!e.urlConfig||y.value&&e.requestCache)return;const t=await x.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:b.value,cache:e.requestCache,payload:{field:g.value,labelKey:w.value,valueKey:F.value}});function a(e,t,o){const r=[...o,...l(e)],n={[w.value]:e[w.value],[F.value]:e[F.value],depth:t+1,isLeaf:!0,keyword:e.keyword,mergeItemValue:r};return c(e.children)&&(n.children=e.children.map((e=>a(e,t+1,r))),n.isLeaf=!e.children.length),C.value=Math.max(C.value,t+1),n}function l(e){let t=[];if(p(e[w.value])&&(t=[...t,e[w.value]]),p(e.keyword)&&e.keyword.length>0){const a=e.keyword.split(",");t=[...t,...a]}return t}y.value=t.map((e=>a(e,0,[])))}():await async function(t){if(o(e,t))return;const a=await x.addAsync(r(s(t),i(e),b.value,t));if(!a.length&&t)return t.isLeaf=!0,H(0,0,n(t)),void(O.value=!1);const l=a.map((e=>u(e,s(t))));function o(e,t){return!i(e)||!t&&y.value&&e.requestCache||s(t)>=s(e)-1}function r(t,a,l,o){const r={lvlnr:t+1+""};return o&&a.dependKey&&k(a.dependKey,((e,t)=>{r[t]=o[e]})),{params:r,...a,key:l,cache:e.requestCache}}function n(e){let t=e;const a=[e];for(;t.parent;)a.unshift(t.parent),t=t.parent;return a}function u(a,l){return{[w.value]:a[w.value],[F.value]:a[F.value],depth:l+1,parent:t,isLeaf:l+2>=s(e)}}function i(e){return e.urlConfig}function s(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=l:y.value=l}(t),await B()}const V=`form-render__cascade--menu-${l(f)}`;async function B(){await n();const e=document.querySelector(`.${V} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}function K(t,a){if(!t||!a)return!1;const{mergeItemValue:l}=a;return!(e.checkStrategy.includes("child")&&a.depth<C.value)&&(l.length>0&&l.some((e=>e.includes(t.trim()))))}const{injectValueValidate:L,injectValueWatchFromEmpty:I,injectValueBindKey:E}=m();I((()=>e.value),q),L((()=>e.value)),o((()=>e.urlConfig),(async(t,a)=>{s(t,a)||(y.value=null,S.value?e.lazyRequest||(q(),S.value=!S.value):await q())}),{immediate:!0});const O=t(!1);function W(e){O.value=!!e,e&&q()}const z=a((()=>y.value||e.options||[])),N=a((()=>!e.filterable)),P=E(A);return()=>r(d,{key:P.value,remote:N.value,filterable:e.filterable,"menu-props":{class:V,onClick:B},"check-strategy":e.checkStrategy,show:!!O.value,"onUpdate:show":W,value:A.value,filter:K,"onUpdate:value":H,labelField:w.value,valueField:F.value,options:z.value,onLoad:q,onFocus:h(g)},u)}}),i({dataSource:"options"},y));export{g as SEARCH_CASCADER};
1
+ import{defineComponent as e,ref as t,computed as a,inject as l,watch as r,createVNode as n,nextTick as o}from"vue";import{connect as u,mapProps as i}from"@formily/vue";import{isEqual as s,isArray as c,isString as p}from"lodash-es";import{NCascader as d}from"naive-ui";import"../../../index.js";import{useCommonInjection as v}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as m,InjectionFormUUID as f}from"../../constants/index.js";import"@formily/path";import"@vueuse/core";import"../../../../../shared/utils/index.js";import"@formily/core";import"@vicons/ionicons5";import"@vue/shared";import"date-fns";import{assignUpdateValue as h,createVisitedSetter as y,traverseDependKey as g}from"../../utils/schema.js";import"@formily/reactive";import"../../hooks/useComplexOptions.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/Hook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"@vueuse/shared";import"../../../../../shared/hooks/selectHooks/useSearchContent.js";import"./index.js";import{useFormField as k}from"../../hooks/useFormField.js";import"../../hooks/useFormValidator.js";const j=u(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},checkStrategy:{type:String,default:"child"},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:u,emit:i}){const h=t(),{field:j,title:C}=k(),b=t(1),w=t(!0);const F=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.nameKey)?a:e.labelField)?l:"text"})),S=a((()=>{var t,a,l;return null!=(l=null!=(a=null==(t=e.urlConfig)?void 0:t.valueKey)?a:e.valueField)?l:"value"})),x=a((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");if(!Array.isArray(t)||!t.length)return null;const a=t.map((e=>e[S.value])).slice(-1).join(""),l=t.map((e=>e[F.value])).join(" / ");return a||l}catch(e){return null}}));function A(e,t,a){i("update:value",c(a)?a.map((function(e){return{...e,label:e[F.value],children:void 0,parent:void 0,mergeItemValue:void 0}})):null)}const q=l(m);async function V(t){e.filterable?await async function(){if(!e.urlConfig||h.value&&e.requestCache)return;const t=await q.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:C.value,cache:e.requestCache,payload:{field:j.value,labelKey:F.value,valueKey:S.value}});function a(e,t,r){const n=[...r,...l(e)],o={[F.value]:e[F.value],[S.value]:e[S.value],depth:t+1,isLeaf:!0,keyword:e.keyword,mergeItemValue:n};return c(e.children)&&(o.children=e.children.map((e=>a(e,t+1,n))),o.isLeaf=!e.children.length),b.value=Math.max(b.value,t+1),o}function l(e){let t=[];if(p(e[F.value])&&(t=[...t,e[F.value]]),p(e.keyword)&&e.keyword.length>0){const a=e.keyword.split(",");t=[...t,...a]}return t}h.value=t.map((e=>a(e,0,[])))}():await async function(t){if(r(e,t))return;const a=await q.addAsync(n(s(t),i(e),C.value,t));if(!a.length&&t)return t.isLeaf=!0,A(0,0,o(t)),void(O.value=!1);const l=a.map((e=>u(e,s(t))));function r(e,t){return!i(e)||!t&&h.value&&e.requestCache||s(t)>=s(e)-1}function n(t,a,l,r){const n={lvlnr:t+1+""};return r&&a.dependKey&&g(a.dependKey,((e,t)=>{n[t]=r[e]})),{params:n,...a,key:l,cache:e.requestCache}}function o(e){let t=e;const a=[e];for(;t.parent;)a.unshift(t.parent),t=t.parent;return a}function u(a,l){return{[F.value]:a[F.value],[S.value]:a[S.value],depth:l+1,parent:t,isLeaf:l+2>=s(e)}}function i(e){return e.urlConfig}function s(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=l:h.value=l}(t),await H()}const K=`form-render__cascade--menu-${l(f)}`;async function H(){await o();const e=document.querySelector(`.${K} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}function L(t,a){if(!t||!a)return!1;const{mergeItemValue:l}=a;return!(e.checkStrategy.includes("child")&&a.depth<b.value)&&(l.length>0&&l.some((e=>e.includes(t.trim()))))}const{injectValueValidate:B,injectValueWatchFromEmpty:I,injectValueBindKey:E}=v();I((()=>e.value),V),B((()=>e.value)),r((()=>e.urlConfig),(async(t,a)=>{s(t,a)||(h.value=null,w.value?e.lazyRequest||(V(),w.value=!w.value):await V())}),{immediate:!0});const O=t(!1);function z(e){O.value=!!e,e&&V()}const N=a((()=>h.value||e.options||[])),R=a((()=>!e.filterable)),U=E(x);return()=>n(d,{key:U.value,remote:R.value,filterable:e.filterable,"menu-props":{class:K,onClick:H},"check-strategy":e.checkStrategy,show:!!O.value,"onUpdate:show":z,value:x.value,filter:L,"onUpdate:value":A,labelField:F.value,valueField:S.value,options:N.value,onLoad:V,onFocus:y(j)},u)}}),i({dataSource:"options"},h));export{j as SEARCH_CASCADER};
@@ -1,7 +1,7 @@
1
- import { FormRequestDefine } from '../../../../../../es/shared/hooks';
2
- import { AnyObject, ArrayAble } from '../../../../../../es/shared/types';
1
+ import { FormRequestDefine } from '../../../../../shared/hooks';
2
+ import { AnyObject, ArrayAble } from '../../../../../shared/types';
3
3
  import { PropType } from 'vue';
4
- import { RecommendItem } from '../../../../../../es/components/recommend-search/src/types';
4
+ import { RecommendItem } from '../../../../../components/recommend-search/src/types';
5
5
  import { UrlConfig } from '../../types';
6
6
  export declare const SELECT: import("vue").DefineComponent<{
7
7
  value: {
@@ -1 +1 @@
1
- import{defineComponent as e,computed as o,inject as t,useAttrs as l,ref as a,createVNode as r,mergeProps as s,toRaw as n}from"vue";import{arrayed as u}from"../../../../../shared/utils/index.js";import{cloneDeep as i,isArray as p,isObject as m,omit as d,xor as c}from"lodash-es";import{NSelect as y}from"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import{useSelectAllowModify as f}from"../../../../../shared/hooks/selectHooks/useSelectAllowModify.js";import"../../../../../shared/hooks/selectHooks/useSearchContent.js";import{useSelectRenders as v}from"../../../../../shared/hooks/selectHooks/useSelectRenders.js";import{connect as h,mapProps as b}from"@formily/vue";import{useCommonInjection as j,useSelectOptionProps as S}from"../../hooks/useCommonInjection.js";import{useComplexOptions as k,useComplexOptionsSpan as g}from"../../hooks/useComplexOptions.js";import{InjectionChangeContextCollector as C,InjectionFormUUID as B}from"../../constants/index.js";import"@formily/path";import"@formily/core";import"@vicons/ionicons5";import{assignUpdateValue as F,assignClearBindVisited as A,createVisitedSetter as w}from"../../utils/schema.js";import"@formily/reactive";import"../../../index.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"./index.js";import"@vueuse/shared";import{useFormField as H}from"../../hooks/useFormField.js";import{useUrlConfigOptions as O,useAutographOptions as K,useRecommendOptions as R}from"../../hooks/useFormRenderOptions.js";import"../../hooks/useFormValidator.js";const x=h(e({name:"FormSelect",props:{value:{type:[String,Array,Number]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},showField:{type:String},allowCreate:Boolean,shouldSave:Boolean,allowModify:Boolean,showCustomValue:Boolean,cursorPlacement:{type:String,default:"end"},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},commonNum:{type:Number,default:10},recentNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1},useLoading:{type:Boolean,default:!0},multiple:{type:Boolean},deletable:{type:Boolean,default:!0},selectAll:{type:Boolean},searchByValue:{type:Boolean}},emits:["update:value","postRecommend"],setup(e,{slots:h,emit:b}){const F=o({get:()=>e.value,async set(e){b("update:value",e),D(e)}}),{labelKey:A,valueKey:x,showKey:V,fetchData:L,searchContent:P,fullOptions:_,filterOptions:N,remoteOptions:I,loading:W}=e.urlConfig?O(e,F):K(e,F),{modifyEvent:q,modifyAbleRef:E,getOptionsWithCreated:z}=f(e,{searchContent:P,labelKey:A,valueKey:x,valueRef:F,fullOptions:_}),{renderComplexOption:M,hasComplexOption:T}=k(e,F),{getRecommend:U,postRecommend:D,sortedOptions:G}=R(e,N,b,A,x),{field:J,fieldKey:Q}=H();t(C).setContext(Q.value,(e=>({currentOption:i(function(e){const o=z(_.value);return p(e)?function(e){const t=o.reduce(((e,o)=>(e[o[x.value]]=o,e)),{});return e.map((e=>t[e]))}(e):(t=e,o.find((e=>e[x.value]===t)));var t}(e))})));const X=async e=>(P.value=e,Promise.allSettled([L(e),U(e)])),{injectValueValidate:Y,injectValueWatchFromEmpty:Z,injectValueBindKey:$}=j();Z(F,(()=>e.lazyRequest&&X())),Y(F);const ee=$(F),{menuProps:oe,nodeProps:te}=S(),{renderTag:le,renderLabel:ae,renderSelectAll:re,titleRef:se}=v(e,{labelKey:A,valueKey:x,valueRef:F,showKey:V,searchContent:P}),ne=o((()=>z(E.value?_.value:G.value))),ue=l(),ie=o((()=>{if(e.allowCreate||e.showCustomValue)return F.value;const o=e.multiple&&p(F.value);return _.value.find((e=>o?F.value.includes(e[x.value]):e[x.value]===F.value))?F.value:null})),pe=a(!1);async function me(e){e&&await X(),pe.value=e}async function de(e,o){await q.updateValue(e,o),I.value&&o&&u(o).forEach((e=>{if(!m(e))return;const o=e;o.created&&o.shouldSave&&I.value.push(d(n(o),["created","shouldSave"]))}))}const ce=t(B),{getSpan:ye}=g(),fe=w(J,q.focus);function ve(o){if(!e.multiple)return;const t=o?ne.value.map((e=>e[x.value])):[];c(t,e.value).length&&(F.value=t)}function he(o){let t=h;return e.multiple&&e.selectAll&&(t={action:()=>re(ve),...h}),r(y,s({title:se.value,key:ee.value,multiple:e.multiple,remote:!0,filterable:!0,loading:W.value,value:ie.value,onUpdateValue:de,"menu-props":oe,"node-props":te,labelField:A.value,valueField:x.value,options:ne.value,onSearch:X,show:pe.value,"onUpdate:show":me,onFocus:fe,onBlur:q.blur,renderLabel:ae,renderTag:le},o,ue),t)}return()=>{var e,o;if(!T.value)return he();const t=null!=(o=null==(e=J.value.decoratorProps)?void 0:e.span)?o:6,l=ye(ce,J.value.address);return r("section",{class:"form-render__selectChildField",style:{"--column":l+t}},[he({class:"form-render__selectChildFieldItem",style:{"--form-item-column":t}}),_.value.map((e=>M({option:e,value:F.value,valueKey:x.value,labelKey:A.value,childFieldStrategy:"checked",renderLabel:!1,attrs:{class:"form-render__selectChildFieldItem",style:{"--form-item-column":l}}})))])}}}),b({dataSource:"options"},F,A));export{x as SELECT};
1
+ import{defineComponent as e,computed as o,inject as t,useAttrs as l,ref as a,createVNode as r,mergeProps as n,toRaw as s}from"vue";import{arrayed as u}from"../../../../../shared/utils/index.js";import{cloneDeep as i,isArray as m,isObject as p,omit as d,xor as c}from"lodash-es";import{NSelect as f}from"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import{useSelectAllowModify as v}from"../../../../../shared/hooks/selectHooks/useSelectAllowModify.js";import"../../../../../shared/hooks/selectHooks/useSearchContent.js";import{useSelectRenders as y}from"../../../../../shared/hooks/selectHooks/useSelectRenders.js";import{connect as h,mapProps as b}from"@formily/vue";import{useCommonInjection as j,useSelectOptionProps as g}from"../../hooks/useCommonInjection.js";import{useComplexOptions as C,useComplexOptionsSpan as S}from"../../hooks/useComplexOptions.js";import{InjectionChangeContextCollector as k,InjectionFormUUID as F}from"../../constants/index.js";import"@formily/path";import"@formily/core";import"@vicons/ionicons5";import{assignUpdateValue as B,assignClearBindVisited as w,createVisitedSetter as O}from"../../utils/schema.js";import"@formily/reactive";import"../../../index.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/Hook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"./index.js";import"@vueuse/shared";import{useFormField as K}from"../../hooks/useFormField.js";import{useUrlConfigOptions as R,useAutographOptions as A,useRecommendOptions as x}from"../../hooks/useFormRenderOptions.js";import"../../hooks/useFormValidator.js";const V=h(e({name:"FormSelect",props:{value:{type:[String,Array,Number]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},showField:{type:String},allowCreate:Boolean,shouldSave:Boolean,allowModify:Boolean,showCustomValue:Boolean,cursorPlacement:{type:String,default:"end"},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},commonNum:{type:Number,default:10},recentNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1},useLoading:{type:Boolean,default:!0},multiple:{type:Boolean},deletable:{type:Boolean,default:!0},selectAll:{type:Boolean},searchByValue:{type:Boolean}},emits:["update:value","postRecommend"],setup(e,{slots:h,emit:b}){const B=o({get:()=>e.value,async set(e){b("update:value",e),D(e)}}),{labelKey:w,valueKey:V,showKey:H,fetchData:L,searchContent:P,fullOptions:_,filterOptions:N,remoteOptions:I,loading:q}=e.urlConfig?R(e,B):A(e,B),{modifyEvent:E,modifyAbleRef:W,getOptionsWithCreated:z}=v(e,{searchContent:P,labelKey:w,valueKey:V,valueRef:B,fullOptions:_}),{renderComplexOption:M,hasComplexOption:T}=C(e,B),{getRecommend:U,postRecommend:D,sortedOptions:G}=x(e,N,b,w,V),{field:J,fieldKey:Q}=K();t(k).setContext(Q.value,(e=>({currentOption:i(function(e){const o=z(_.value);return m(e)?function(e){const t=o.reduce(((e,o)=>(e[o[V.value]]=o,e)),{});return e.map((e=>t[e]))}(e):(t=e,o.find((e=>e[V.value]===t)));var t}(e))})));const X=async e=>(P.value=e,Promise.allSettled([L(e),U(e)])),{injectValueValidate:Y,injectValueWatchFromEmpty:Z,injectValueBindKey:$}=j();Z(B,(()=>e.lazyRequest&&X())),Y(B);const ee=$(B),{menuProps:oe,nodeProps:te}=g(),{renderTag:le,renderLabel:ae,renderSelectAll:re,titleRef:ne}=y(e,{labelKey:w,valueKey:V,valueRef:B,showKey:H,searchContent:P}),se=o((()=>z(W.value?_.value:G.value))),ue=l(),ie=o((()=>{if(e.allowCreate||e.showCustomValue)return B.value;const o=e.multiple&&m(B.value);return _.value.find((e=>o?B.value.includes(e[V.value]):e[V.value]===B.value))?B.value:null})),me=a(!1);async function pe(e){e&&await X(),me.value=e}async function de(e,o){await E.updateValue(e,o),I.value&&o&&u(o).forEach((e=>{if(!p(e))return;const o=e;o.created&&o.shouldSave&&I.value.push(d(s(o),["created","shouldSave"]))}))}const ce=t(F),{getSpan:fe}=S(),ve=O(J,E.focus);function ye(o){if(!e.multiple)return;const t=o?se.value.map((e=>e[V.value])):[];c(t,e.value).length&&(B.value=t)}function he(o){let t=h;return e.multiple&&e.selectAll&&(t={action:()=>re(ye),...h}),r(f,n({title:ne.value,key:ee.value,multiple:e.multiple,remote:!0,filterable:!0,loading:q.value,value:ie.value,onUpdateValue:de,"menu-props":oe,"node-props":te,labelField:w.value,valueField:V.value,options:se.value,onSearch:X,show:me.value,"onUpdate:show":pe,onFocus:ve,onBlur:E.blur,renderLabel:ae,renderTag:le},o,ue),t)}return()=>{var e,o;if(!T.value)return he();const t=null!=(o=null==(e=J.value.decoratorProps)?void 0:e.span)?o:6,l=fe(ce,J.value.address);return r("section",{class:"form-render__selectChildField",style:{"--column":l+t}},[he({class:"form-render__selectChildFieldItem",style:{"--form-item-column":t}}),_.value.map((e=>M({option:e,value:B.value,valueKey:V.value,labelKey:w.value,childFieldStrategy:"checked",renderLabel:!1,attrs:{class:"form-render__selectChildFieldItem",style:{"--form-item-column":l}}})))])}}}),b({dataSource:"options"},B,w));export{V as SELECT};
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../../shared/types';
2
2
  export declare const TEXT: {
3
3
  (props: AnyObject): JSX.Element;
4
4
  props: {
@@ -1,9 +1,9 @@
1
- import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { Nullable } from '../../../../../es/shared/types';
1
+ import { FormRequestDefine } from '../../../../shared/hooks';
2
+ import { Nullable } from '../../../../shared/types';
3
3
  import { GeneralField } from '@formily/core';
4
- import { AnnotationItem } from '../../../../../es/components/annotation-edit/src/type';
5
- import { ContextCollector } from '../../../../../es/components/form-render/src/hooks/useChangeContext';
6
- import { useFormRenderLifeCycle } from '../../../../../es/components/form-render/src/hooks/useFormRenderLifeCycle';
4
+ import { AnnotationItem } from '../../../../components/annotation-edit/src/type';
5
+ import { ContextCollector } from '../../../../components/form-render/src/hooks/useChangeContext';
6
+ import { useFormRenderLifeCycle } from '../../../../components/form-render/src/hooks/useFormRenderLifeCycle';
7
7
  import { BusinessCollector, FormItemDepsCollector } from '../hooks';
8
8
  import { FormRenderProps } from '../types';
9
9
  import { Component, InjectionKey, WritableComputedRef } from 'vue';
@@ -1,7 +1,7 @@
1
- import { AnyFn, UndefinedAble } from '../../../../../es/shared/types';
1
+ import { AnyFn, UndefinedAble } from '../../../../shared/types';
2
2
  import { Form, GeneralField } from '@formily/core';
3
3
  import { Ref } from 'vue';
4
- import { FormItemDepsCollector, FormRenderProps } from '../../../../../es/components/form-render';
4
+ import { FormItemDepsCollector, FormRenderProps } from '../../../../components/form-render';
5
5
  export declare function useAnchor(props: Readonly<FormRenderProps>, emit: AnyFn, scrollbarRef: Ref<UndefinedAble<HTMLElement>>, collector: FormItemDepsCollector): {
6
6
  currentAnchor: import("vue").WritableComputedRef<string>;
7
7
  onScroll: (scrollEvent: Event) => void;
@@ -1,5 +1,5 @@
1
1
  import { Form } from '@formily/core';
2
- import { FieldItem, FormBusinessFormatter } from '../../../../../es/components/form-render';
2
+ import { FieldItem, FormBusinessFormatter } from '../../../../components/form-render';
3
3
  import { FIELD_BUSINESS_TYPE } from '../constants';
4
4
  export declare class BusinessCollector {
5
5
  private businessFormatter?;
@@ -1,4 +1,4 @@
1
- import { AnyFn } from '../../../../../es/shared/types';
1
+ import { AnyFn } from '../../../../shared/types';
2
2
  import { WatchSource } from '@vue/runtime-core';
3
3
  export declare function useCommonInjection(): {
4
4
  injectValueValidate: (traverser: WatchSource) => void;
@@ -1,7 +1,7 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { Path } from '@formily/path';
3
3
  import { Ref } from 'vue';
4
- import { FormOptionItem } from '../../../../../es/components/form-render';
4
+ import { FormOptionItem } from '../../../../components/form-render';
5
5
  declare function setSpan(uuid: string, address: Path | string, span?: number): void;
6
6
  declare function getSpan(uuid: string, address: Path | string, withSelf?: boolean): number;
7
7
  declare function deleteSpan(uuid: string, address: Path | string): void;
@@ -1,4 +1,4 @@
1
- import { BusinessCollector, FormRenderProps, FormRenderLifeCycle } from '../../../../../es/components/form-render';
1
+ import { BusinessCollector, FormRenderProps, FormRenderLifeCycle } from '../../../../components/form-render';
2
2
  import { FieldItem } from '../types';
3
3
  /**
4
4
  * @description 胶水层, 将低代码平台中的fieldList转换为JSONSchema
@@ -1,9 +1,9 @@
1
- import { SyncWaterfallHook } from '../../../../../es/shared/utils/tapable';
1
+ import { SyncWaterfallHook } from '../../../../shared/utils/tapable';
2
2
  import { FieldItem } from '../types';
3
3
  export declare function useFieldNormalize(): {
4
4
  FieldNormalizeWaterfallHook: SyncWaterfallHook<[FieldItem, Partial<{
5
5
  fieldList: FieldItem[];
6
- initialData: import("../../../../../es/shared/types").AnyObject;
6
+ initialData: import("../../../../shared/types").AnyObject;
7
7
  fieldVisitor: import("../types").FieldVisitor;
8
8
  column: number;
9
9
  maxHeight: string | number;
@@ -67,8 +67,8 @@ export declare function useFieldNormalize(): {
67
67
  "x-compile-omitted"?: string[] | undefined;
68
68
  }>;
69
69
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
70
- scope: import("../../../../../es/shared/types").AnyObject;
71
- annotation: import("../../../../../es/shared/types").AnyObject;
70
+ scope: import("../../../../shared/types").AnyObject;
71
+ annotation: import("../../../../shared/types").AnyObject;
72
72
  consumer: boolean;
73
73
  uuid: string;
74
74
  lifeCycle: Partial<{
@@ -77,24 +77,24 @@ export declare function useFieldNormalize(): {
77
77
  field: import("@formily/core").GeneralField;
78
78
  oldValue: unknown;
79
79
  }): any;
80
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
81
- afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
82
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
80
+ beforeRequest(fieldKey: string, params?: import("../../../../shared/types").AnyObject | undefined, payload?: import("../../../../shared/types").AnyObject | undefined): void | import("../../../../shared/types").UndefinedAble<import("../../../../shared/types").AnyObject>;
81
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../shared/types").AnyObject | undefined): import("../../../../shared/types").AnyObject[];
82
+ afterOptionInit(fieldKey: string, options: import("../../../../shared/types").AnyObject[], payload?: import("../../../../shared/types").AnyObject | undefined): void;
83
83
  }>;
84
84
  businessFormatter: import("../types").FormBusinessFormatter;
85
85
  requestInstance: import("../../..").FormRequestDefine.RequestInstance;
86
86
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
87
- lowCodeReactions: import("../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
87
+ lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionsConfig[];
88
88
  linebarAutoHidden: boolean;
89
89
  bordered: string | boolean;
90
90
  uniqueCacheData: boolean;
91
- operationalForm: import("../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
91
+ operationalForm: import("../../../../shared/types").LowCodeTypes.operationalConfig[];
92
92
  outBordered: boolean;
93
93
  forceClearable: boolean;
94
- }>], import("../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
94
+ }>], import("../../../../shared/utils/tapable").UnsetAdditionalOptions>;
95
95
  FieldListNormalizeWaterfallHook: SyncWaterfallHook<[FieldItem[], Partial<{
96
96
  fieldList: FieldItem[];
97
- initialData: import("../../../../../es/shared/types").AnyObject;
97
+ initialData: import("../../../../shared/types").AnyObject;
98
98
  fieldVisitor: import("../types").FieldVisitor;
99
99
  column: number;
100
100
  maxHeight: string | number;
@@ -158,8 +158,8 @@ export declare function useFieldNormalize(): {
158
158
  "x-compile-omitted"?: string[] | undefined;
159
159
  }>;
160
160
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
161
- scope: import("../../../../../es/shared/types").AnyObject;
162
- annotation: import("../../../../../es/shared/types").AnyObject;
161
+ scope: import("../../../../shared/types").AnyObject;
162
+ annotation: import("../../../../shared/types").AnyObject;
163
163
  consumer: boolean;
164
164
  uuid: string;
165
165
  lifeCycle: Partial<{
@@ -168,19 +168,19 @@ export declare function useFieldNormalize(): {
168
168
  field: import("@formily/core").GeneralField;
169
169
  oldValue: unknown;
170
170
  }): any;
171
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
172
- afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
173
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
171
+ beforeRequest(fieldKey: string, params?: import("../../../../shared/types").AnyObject | undefined, payload?: import("../../../../shared/types").AnyObject | undefined): void | import("../../../../shared/types").UndefinedAble<import("../../../../shared/types").AnyObject>;
172
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../shared/types").AnyObject | undefined): import("../../../../shared/types").AnyObject[];
173
+ afterOptionInit(fieldKey: string, options: import("../../../../shared/types").AnyObject[], payload?: import("../../../../shared/types").AnyObject | undefined): void;
174
174
  }>;
175
175
  businessFormatter: import("../types").FormBusinessFormatter;
176
176
  requestInstance: import("../../..").FormRequestDefine.RequestInstance;
177
177
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
178
- lowCodeReactions: import("../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
178
+ lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionsConfig[];
179
179
  linebarAutoHidden: boolean;
180
180
  bordered: string | boolean;
181
181
  uniqueCacheData: boolean;
182
- operationalForm: import("../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
182
+ operationalForm: import("../../../../shared/types").LowCodeTypes.operationalConfig[];
183
183
  outBordered: boolean;
184
184
  forceClearable: boolean;
185
- }>], import("../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
185
+ }>], import("../../../../shared/utils/tapable").UnsetAdditionalOptions>;
186
186
  };
@@ -1 +1 @@
1
- import{arrayed as e,uuidGenerator as t,traverse as r}from"../../../../shared/utils/index.js";import"../../../../shared/utils/tapable/SyncHook.js";import"../../../../shared/utils/tapable/SyncBailHook.js";import l from"../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{last as o,isString as s}from"lodash-es";import{FIELD_BUSINESS_TYPE as i}from"../constants/index.js";function a(){const a=new l(["fieldList","props"]),p=new l(["fieldItem","props"]);p.tap("__forceClearable",((e,t)=>(t.forceClearable&&(e.componentProps={...e.componentProps,clearable:!0}),e))),p.tap("__block",(e=>(["CHECKBOX_BLOCK","RADIO_BLOCK"].includes(e.html_type)&&(e.__vertical=!0),e))),p.tap("__age",(t=>("AGE"===t.html_type&&(t.html_type="INPUT_NUMBER",t.reactions=t.reactions?e(t.reactions):[],t.reactions.push({target:t.val_key_unit,fulfill:{state:{disabled:"{{$self.disabled}}"}}}),t.suffixConfig=[{validate:{obj_type:i.AGE_UNIT},val_key:t.val_key_unit,html_type:"SELECT",option:t.option,urlConfig:t.urlConfig}]),t))),p.tap("__multiple_select",(e=>{const{html_type:t,multi_select:r,__multiple:l}=e;return e.__multiple="SEARCH"!==t&&("SEARCH_MORE"===t||("SELECT"===t?"0"===r:l)),e}));const _=[[["SEARCH","PHONE_TYPE","IDCARD_TYPE","SEARCH_MORE"],"SELECT"],["DIGITAL","INPUT_NUMBER"],["CHECKBOX_BLOCK","CHECKBOX"],["RADIO_BLOCK","RADIO"],[["DATE-INPUT","DATETIME-INPUT"],"DATE"],["SWITCH_COMPONENT","SWITCH"],["SLIDER_COMPONENT","SLIDER"],["LEVEL_SEARCH_CASCADE","LEVEL_SEARCH_CASCADER"],["SEARCH_CASCADE","SEARCH_CASCADER"]];p.tap("__normalize",(e=>(_.some((([t,r])=>(Array.isArray(t)?t.includes(e.html_type):t===e.html_type)&&(e.html_type=r))),e)));const n=new Map([[["SELECT","SEARCH","SEARCH_MORE"],new Map([["H_TILE",e=>e.html_type=e.__multiple?"CHECKBOX":"RADIO"],["V_TILE",e=>{e.html_type=e.__multiple?"CHECKBOX":"RADIO",e.__vertical=!0}]])],["RADIO",new Map([["DROPDOWN",e=>e.html_type="SELECT"]])],["CHECKBOX",new Map([["DROPDOWN",e=>{e.__multiple=!0,e.html_type="SELECT"}]])]]);return p.tap({stage:9999,name:"__show_mode"},(t=>t.show_mode?([...n].some((([r,l])=>{if(!e(r).includes(t.html_type))return;const o=l.get(t.show_mode);return o&&o(t),!0})),t):t)),a.tap("__out_bordered",((e,{column:r,outBordered:l})=>{if(!l)return e;let s=0;return e.reduce(((l,i,a)=>{const p=2*(i.elem_width||3);return s+=p,s===r&&a<e.length-1?(s=0,l.push(i),l.push({val_key:`${t()}`,html_type:"LINE_BREAKS",lineBreaksBorder:!0})):s>r?(s=p,l.push({val_key:`${t()}`,html_type:"LINE_BREAKS",lineBreaksBorder:!0}),l.push(i)):(o(l)&&(o(l).fieldItemBorder=!0),l.push(i)),l}),[])})),a.tap("__prefix/suffix",(e=>{const t=[];return r(e,(l=>{["prefix","suffix"].forEach((o=>{const i=l[o];if(!s(i))return;const a=i.match("#{(.+)}");if(!a)return;const p=s(a[1])&&function(t){let l=null;return r(e,((e,r)=>{e.val_key===t&&(l=e,r())}),["children","properties"]),l}(a[1].trim());p&&(Reflect.deleteProperty(l,o),l[`${o}Config`]=l[`${o}Config`]||[],l[`${o}Config`].push(p),t.push(p))}))}),["children","properties"]),t.length?function e(r){return r.reduce(((r,l)=>(t.includes(l)||(r.push(l),l.properties&&(l.properties=e(l.properties)),l.children&&(l.children=e(l.children))),r)),[])}(e):e})),{FieldNormalizeWaterfallHook:p,FieldListNormalizeWaterfallHook:a}}export{a as useFieldNormalize};
1
+ import{arrayed as e,uuidGenerator as t,traverse as r}from"../../../../shared/utils/index.js";import"../../../../shared/utils/tapable/SyncHook.js";import"../../../../shared/utils/tapable/Hook.js";import l from"../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../shared/utils/tapable/AsyncSeriesHook.js";import{last as o,isString as i}from"lodash-es";import{FIELD_BUSINESS_TYPE as _}from"../constants/index.js";function s(){const s=new l(["fieldList","props"]),p=new l(["fieldItem","props"]);p.tap("__forceClearable",((e,t)=>(t.forceClearable&&(e.componentProps={...e.componentProps,clearable:!0}),e))),p.tap("__block",(e=>(["CHECKBOX_BLOCK","RADIO_BLOCK"].includes(e.html_type)&&(e.__vertical=!0),e))),p.tap("__age",(t=>("AGE"===t.html_type&&(t.html_type="INPUT_NUMBER",t.reactions=t.reactions?e(t.reactions):[],t.reactions.push({target:t.val_key_unit,fulfill:{state:{disabled:"{{$self.disabled}}"}}}),t.suffixConfig=[{validate:{obj_type:_.AGE_UNIT},val_key:t.val_key_unit,html_type:"SELECT",option:t.option,urlConfig:t.urlConfig}]),t))),p.tap("__multiple_select",(e=>{const{html_type:t,multi_select:r,__multiple:l}=e;return e.__multiple="SEARCH"!==t&&("SEARCH_MORE"===t||("SELECT"===t?"0"===r:l)),e}));const n=[[["SEARCH","PHONE_TYPE","IDCARD_TYPE","SEARCH_MORE"],"SELECT"],["DIGITAL","INPUT_NUMBER"],["CHECKBOX_BLOCK","CHECKBOX"],["RADIO_BLOCK","RADIO"],[["DATE-INPUT","DATETIME-INPUT"],"DATE"],["SWITCH_COMPONENT","SWITCH"],["SLIDER_COMPONENT","SLIDER"],["LEVEL_SEARCH_CASCADE","LEVEL_SEARCH_CASCADER"],["SEARCH_CASCADE","SEARCH_CASCADER"]];p.tap("__normalize",(e=>(n.some((([t,r])=>(Array.isArray(t)?t.includes(e.html_type):t===e.html_type)&&(e.html_type=r))),e)));const a=new Map([[["SELECT","SEARCH","SEARCH_MORE"],new Map([["H_TILE",e=>e.html_type=e.__multiple?"CHECKBOX":"RADIO"],["V_TILE",e=>{e.html_type=e.__multiple?"CHECKBOX":"RADIO",e.__vertical=!0}]])],["RADIO",new Map([["DROPDOWN",e=>e.html_type="SELECT"]])],["CHECKBOX",new Map([["DROPDOWN",e=>{e.__multiple=!0,e.html_type="SELECT"}]])]]);return p.tap({stage:9999,name:"__show_mode"},(t=>t.show_mode?([...a].some((([r,l])=>{if(!e(r).includes(t.html_type))return;const o=l.get(t.show_mode);return o&&o(t),!0})),t):t)),s.tap("__out_bordered",((e,{column:r,outBordered:l})=>{if(!l)return e;let i=0;return e.reduce(((l,_,s)=>{const p=2*(_.elem_width||3);return i+=p,i===r&&s<e.length-1?(i=0,l.push(_),l.push({val_key:`${t()}`,html_type:"LINE_BREAKS",lineBreaksBorder:!0})):i>r?(i=p,l.push({val_key:`${t()}`,html_type:"LINE_BREAKS",lineBreaksBorder:!0}),l.push(_)):(o(l)&&(o(l).fieldItemBorder=!0),l.push(_)),l}),[])})),s.tap("__prefix/suffix",(e=>{const t=[];return r(e,(l=>{["prefix","suffix"].forEach((o=>{const _=l[o];if(!i(_))return;const s=_.match("#{(.+)}");if(!s)return;const p=i(s[1])&&function(t){let l=null;return r(e,((e,r)=>{e.val_key===t&&(l=e,r())}),["children","properties"]),l}(s[1].trim());p&&(Reflect.deleteProperty(l,o),l[`${o}Config`]=l[`${o}Config`]||[],l[`${o}Config`].push(p),t.push(p))}))}),["children","properties"]),t.length?function e(r){return r.reduce(((r,l)=>(t.includes(l)||(r.push(l),l.properties&&(l.properties=e(l.properties)),l.children&&(l.children=e(l.children))),r)),[])}(e):e})),{FieldNormalizeWaterfallHook:p,FieldListNormalizeWaterfallHook:s}}export{s as useFieldNormalize};
@@ -1,8 +1,8 @@
1
- import { AnyFn } from '../../../../../es/shared/types';
1
+ import { AnyFn } from '../../../../shared/types';
2
2
  import { ShallowReactive } from 'vue';
3
- import { FormRenderProps } from '../../../../../es/components/form-render';
3
+ import { FormRenderProps } from '../../../../components/form-render';
4
4
  export declare function useFormContext(props: ShallowReactive<FormRenderProps>, emit: AnyFn): {
5
- asyncQueue: import("../../../../../es/shared/hooks").AsyncQueue<import("../../../../../es/shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
5
+ asyncQueue: import("../../../../shared/hooks").AsyncQueue<import("../../../../shared/hooks").FormRequestDefine.AsyncQueueItem, any, {
6
6
  label: string;
7
7
  value: unknown;
8
8
  }[]>;
@@ -17,8 +17,8 @@ export declare function useFormContext(props: ShallowReactive<FormRenderProps>,
17
17
  mapProperties: any;
18
18
  filterProperties: any;
19
19
  }>;
20
- businessCollector: import("../../../../../es/components/form-render").BusinessCollector;
21
- changeContextCollector: import("../../../../../es/components/form-render").ContextCollector;
22
- formItemDepsCollector: import("../../../../../es/components/form-render").FormItemDepsCollector;
20
+ businessCollector: import("../../../../components/form-render").BusinessCollector;
21
+ changeContextCollector: import("../../../../components/form-render").ContextCollector;
22
+ formItemDepsCollector: import("../../../../components/form-render").FormItemDepsCollector;
23
23
  formUUID: string;
24
24
  };
@@ -1,8 +1,7 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
2
- import { Field, Form, IFieldState } from '@formily/core';
1
+ import { Form } from '@formily/core';
3
2
  import { Ref } from 'vue';
4
- import { BusinessCollector, FieldItem, FormItemDepsCollector, FormRenderProps, useOperationalForm } from '../../../../../es/components/form-render';
5
- import { wordbookSettingHandler } from '../../../../../es/components/form-render/src/hooks';
3
+ import { BusinessCollector, FieldItem, FormItemDepsCollector, FormRenderExpose, FormRenderProps, useOperationalForm } from '../../../../components/form-render';
4
+ import { wordbookSettingHandler } from '../../../../components/form-render/src/hooks';
6
5
  export declare function useFormExposeEvent({ formModel, formRenderRef, formUUID, getFieldList, formItemDepsCollector, businessCollector, wordbookSettingHandler, operationalFormHandler }: {
7
6
  formModel: Form;
8
7
  formRenderRef: Ref<HTMLElement | undefined>;
@@ -12,27 +11,7 @@ export declare function useFormExposeEvent({ formModel, formRenderRef, formUUID,
12
11
  businessCollector: BusinessCollector;
13
12
  wordbookSettingHandler: wordbookSettingHandler;
14
13
  operationalFormHandler: ReturnType<typeof useOperationalForm>;
15
- }): {
16
- validate(path?: string | ((field: Field) => boolean), { force }?: {
17
- force?: boolean | undefined;
18
- }): Promise<void>;
19
- getFormValues(needCombineExtendKey?: boolean): any;
20
- setFormValues(values: AnyObject, options?: boolean | {
21
- needSplitExtendKey?: boolean | undefined;
22
- avoidBusinessConnection?: string | boolean | undefined;
23
- avoidDependKeyConnection?: string | boolean | undefined;
24
- avoidWordbookSettingConnection?: string | boolean | undefined;
25
- avoidOperationalFormConnection?: string | boolean | undefined;
26
- overwrite?: boolean | undefined;
27
- }, avoidBusinessConnection?: string | boolean, overwrite?: boolean): Promise<void>;
28
- setFieldState(path: string, setter: (field: IFieldState) => void): void;
29
- resetFields(path?: string): Promise<void>;
30
- queryWidget(key: string): Promise<{
31
- widgetElement: HTMLInputElement | null | undefined;
32
- widgetElementList: HTMLInputElement[];
33
- decoratorElement: HTMLElement | null | undefined;
34
- } | null>;
35
- };
14
+ }): Omit<FormRenderExpose, 'formModel' | 'reload' | 'getFieldList'>;
36
15
  export declare function useFormDomEvent({ props, formRenderRef, formModel }: {
37
16
  props: FormRenderProps;
38
17
  formRenderRef: Ref<HTMLElement | undefined>;
@@ -1 +1 @@
1
- import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{isFunction as a,isArray as s,isString as l,isBoolean as d}from"lodash-es";import{nextTick as u}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as m}from"../constants/index.js";import{queryDecoratorByAddress as f,queryInput as c,queryDecoratorByFieldKey as g,findNextWidget as p}from"../utils/dom.js";import{validateMessageParser as v,combineExtendKey as y,splitExtendKey as h}from"../utils/index.js";import{getParentLinebar as b}from"../utils/schema.js";function x({formModel:t,formRenderRef:n,formUUID:m,getFieldList:p,formItemDepsCollector:x,businessCollector:D,wordbookSettingHandler:F,operationalFormHandler:I}){return{validate(o="*",{force:d}={}){if(a(o)){const e=Object.entries(t.fields).reduce(((e,[t,r])=>(o(r)&&e.push(t),e)),[]);if(!e.length)return Promise.resolve();o=e.length?`*(${e.join(",")})`:"*"}const u=[];d&&t.setFieldState(o,(e=>{"visible"===e.display&&"editable"!==e.pattern&&r(e)&&(u.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const g=t.validate(o).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(p,[]):e)));return d&&u.forEach((({pattern:e,state:t})=>t.pattern=e)),g;function p(t,r){if(!i(r))return t;let o=!1;return s(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 r=t.query(e.path),o=r.get("title"),a=e.messages.map((e=>function(e,t){if(!t||!i(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return v(r&&l(r)?r:e,t.fieldItem)}(e,r.get("decoratorProps")))),s=f(e.address,n.value,m);return{...e,messages:a,title:o,decoratorElement:s,...c(s)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=y(p(),r)),r},async setFormValues(e,n={},a=!1,s=!0){var l,m,f,c,g,v;let y=!0,b=!0,j=!0,w=!0;i(n)?(b=null==(l=n.needSplitExtendKey)||l,y=null==(m=n.avoidDependKeyConnection)||m,a=null!=(f=n.avoidBusinessConnection)&&f,j=null==(c=n.avoidWordbookSettingConnection)||c,w=null==(g=n.avoidOperationalFormConnection)||g,s=null==(v=n.overwrite)||v):d(n)&&(b=n),D.triggerDisabled=a,x.triggerDisabled=y,F.triggerDisabled=j,I.triggerDisabled=w,b&&(e=h(p(),e)),t.setFieldState("*",(t=>{r(t)&&(s||o.existIn(e,t.path))&&(t.value=o.getIn(e,t.path))})),await u(),D.triggerDisabled=!1,x.triggerDisabled=!1,F.triggerDisabled=!1,I.triggerDisabled=!1},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:async e=>n.value?await async function(e,t,r){if(!n.value)return s();const i=g(e,t,m);if(i)return s(i);const a=b(e,r);return a?(x.trigger(o.parse(a),!0),await u(),s(g(e,t,m))):s();function s(e){return{decoratorElement:e,...c(e)}}}(e,n.value,p()):null}}function D({props:e,formRenderRef:r,formModel:o}){return{onKeydown:async function i(s){var l;if(e.enterToNextWidget&&s.target){if("TEXTAREA"===s.target.tagName&&!s.ctrlKey)return;s.preventDefault()}if(await n(0),Reflect.get(s,"stopCapture")||!e.enterToNextWidget||!r.value)return;const d=t(s.target,(e=>e.classList.contains("form-render__formItem")));if(!d)return;const u=`.form-render__formItem${m.map((e=>`:not([widget-type=${e}])`)).join("")}`,f=Array.from(r.value.querySelectorAll(u)),c=f.findIndex((e=>e.id===d.id));if(!~c)return;const{widget:g,field:v}=p(f,c,s.target);if(g)if(a(e.enterToNextWidget)){const t=v&&o.query(v).take();!t||e.enterToNextWidget(null==(l=t.decoratorProps)?void 0:l.fieldItem)?y():i({target:g})}else y();async function y(){await n(0),g.focus()}}}}export{D as useFormDomEvent,x as useFormExposeEvent};
1
+ import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{isFunction as a,isArray as s,isString as d}from"lodash-es";import{nextTick as l}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as u}from"../constants/index.js";import{queryDecoratorByAddress as m,queryInput as f,queryDecoratorByFieldKey as c,findNextWidget as p}from"../utils/dom.js";import{validateMessageParser as g,combineExtendKey as v,splitExtendKey as y}from"../utils/index.js";import{getParentLinebar as h}from"../utils/schema.js";function b({formModel:t,formRenderRef:n,formUUID:u,getFieldList:p,formItemDepsCollector:b,businessCollector:x,wordbookSettingHandler:D,operationalFormHandler:F}){return{validate(o,{force:l}={}){if(null==o&&(o="*"),a(o)){const e=Object.entries(t.fields).reduce(((e,[t,r])=>(o(r)&&e.push(t),e)),[]);if(!e.length)return Promise.resolve();o=e.length?`*(${e.join(",")})`:"*"}const c=[];l&&t.setFieldState(o,(e=>{"visible"===e.display&&"editable"!==e.pattern&&r(e)&&(c.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const p=t.validate(o).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(v,[]):e)));return l&&c.forEach((({pattern:e,state:t})=>t.pattern=e)),p;function v(t,r){if(!i(r))return t;let o=!1;return s(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 r=t.query(e.path),o=r.get("title"),a=e.messages.map((e=>function(e,t){if(!t||!i(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return g(r&&d(r)?r:e,t.fieldItem)}(e,r.get("decoratorProps")))),s=m(e.address,n.value,u);return{...e,messages:a,title:o,decoratorElement:s,...f(s)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=v(p(),r)),r},async setFormValues(e,i){i=Object.assign({avoidDependKeyConnection:!0,needSplitExtendKey:!0,avoidWordbookSettingConnection:!0,avoidOperationalFormConnection:!0,dependKeyKeepValue:!1,avoidBusinessConnection:!1,overwrite:!0},i),x.triggerDisabled=i.avoidBusinessConnection,b.triggerDisabled=i.avoidDependKeyConnection,b.keepValue=i.dependKeyKeepValue,D.triggerDisabled=i.avoidWordbookSettingConnection,F.triggerDisabled=i.avoidOperationalFormConnection,i.needSplitExtendKey&&(e=y(p(),e)),t.setFieldState("*",(t=>{r(t)&&(i.overwrite||o.existIn(e,t.path))&&(t.value=o.getIn(e,t.path))})),await l(),x.triggerDisabled=!1,b.triggerDisabled=!1,D.triggerDisabled=!1,F.triggerDisabled=!1,b.keepValue=!1},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:e=>async function(e,t,r){if(!n.value)return s();const i=c(e,t,u);if(i)return s(i);const a=h(e,r);return a?(b.trigger(o.parse(a),!0),await l(),s(c(e,t,u))):s();function s(e){return{decoratorElement:e,...f(e)}}}(e,n.value,p())}}function x({props:e,formRenderRef:r,formModel:o}){return{onKeydown:async function i(s){var d;if(e.enterToNextWidget&&s.target){if("TEXTAREA"===s.target.tagName&&!s.ctrlKey)return;s.preventDefault()}if(await n(0),Reflect.get(s,"stopCapture")||!e.enterToNextWidget||!r.value)return;const l=t(s.target,(e=>e.classList.contains("form-render__formItem")));if(!l)return;const m=`.form-render__formItem${u.map((e=>`:not([widget-type=${e}])`)).join("")}`,f=Array.from(r.value.querySelectorAll(m)),c=f.findIndex((e=>e.id===l.id));if(!~c)return;const{widget:g,field:v}=p(f,c,s.target);if(g)if(a(e.enterToNextWidget)){const t=v&&o.query(v).take();!t||e.enterToNextWidget(null==(d=t.decoratorProps)?void 0:d.fieldItem)?y():i({target:g})}else y();async function y(){await n(0),g.focus()}}}}export{x as useFormDomEvent,b as useFormExposeEvent};
@@ -1,10 +1,10 @@
1
- import { AnyFn } from '../../../../../es/shared/types';
2
1
  import { Path } from '@formily/path';
3
- import { DependKeyType } from '../../../../../es/components/form-render';
2
+ import { DependKeyType, ObjectDependKey } from '../../../../components/form-render';
4
3
  export declare class FormItemDepsCollector {
5
4
  triggerDisabled: string | boolean;
5
+ keepValue: string | boolean;
6
6
  private readonly collector;
7
- setDeps(fieldPath: Path, dependKeys: DependKeyType, callback: AnyFn): void;
7
+ setDeps(fieldPath: Path, dependKeys: DependKeyType, callback: (dependKey?: ObjectDependKey, payload?: any) => void): void;
8
8
  trigger(dependPath: Path, payload?: unknown): void;
9
9
  }
10
10
  export declare function useFormItemDeps(): {
@@ -1 +1 @@
1
- import{Path as t}from"@formily/path";import{isFunction as r,isString as e}from"lodash-es";import"../../index.js";import{getAbsoluteKey as i}from"../utils/index.js";import{traverseDependKey as s}from"../utils/schema.js";class o{constructor(){this.triggerDisabled=!1,this.collector=new Map}setDeps(t,r,e){s(r,(r=>{const s=i(r,t),o=this.collector.get(s)||new Map;o.set(t,e),this.collector.set(s,o)}))}trigger(i,s){if(!0===this.triggerDisabled)return;const o=this.collector.get(i.toString());o&&[...o.entries()].forEach((([i,o])=>{!r(o)||this.triggerDisabled&&e(this.triggerDisabled)&&t.parse(this.triggerDisabled).match(i)||o(s)}))}}function c(){return{create:function(){return new o}}}export{o as FormItemDepsCollector,c as useFormItemDeps};
1
+ import{Path as e}from"@formily/path";import{isFunction as t,isString as r}from"lodash-es";import"../../index.js";import{getAbsoluteKey as i}from"../utils/index.js";import{traverseDependKey as s}from"../utils/schema.js";class o{constructor(){this.triggerDisabled=!1,this.keepValue=!1,this.collector=new Map}setDeps(e,t,r){s(t,((t,s,o)=>{const l=i(t,e),a=this.collector.get(l)||new Map;a.set(e,{dependKey:o,callback:r}),this.collector.set(l,a)}))}trigger(i,s){if(!0===this.triggerDisabled)return;const o=this.collector.get(i.toString());o&&[...o.entries()].forEach((([i,{dependKey:o,callback:l}])=>{if(!t(l)||this.triggerDisabled&&r(this.triggerDisabled)&&e.parse(this.triggerDisabled).match(i))return;l({keepValue:r(this.keepValue)?e.parse(this.keepValue).match(i):this.keepValue,...o},s)}))}}function l(){return{create:function(){return new o}}}export{o as FormItemDepsCollector,l as useFormItemDeps};
@@ -1,5 +1,5 @@
1
- import { UndefinedAble } from '../../../../../es/shared/types';
2
- import { FormRenderLifeCycle, FormRenderProps } from '../../../../../es/components/form-render';
1
+ import { UndefinedAble } from '../../../../shared/types';
2
+ import { FormRenderLifeCycle, FormRenderProps } from '../../../../components/form-render';
3
3
  export declare function useFormRenderLifeCycle(props: FormRenderProps): {
4
4
  callLifeCycle: <T extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
5
5
  onSetup(): void;
@@ -7,17 +7,17 @@ export declare function useFormRenderLifeCycle(props: FormRenderProps): {
7
7
  field: import("@formily/core").GeneralField;
8
8
  oldValue: unknown;
9
9
  }): any;
10
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
11
- afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
12
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
10
+ beforeRequest(fieldKey: string, params?: import("../../../../shared/types").AnyObject | undefined, payload?: import("../../../../shared/types").AnyObject | undefined): void | UndefinedAble<import("../../../../shared/types").AnyObject>;
11
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../shared/types").AnyObject | undefined): import("../../../../shared/types").AnyObject[];
12
+ afterOptionInit(fieldKey: string, options: import("../../../../shared/types").AnyObject[], payload?: import("../../../../shared/types").AnyObject | undefined): void;
13
13
  }>>[T]> | undefined) => UndefinedAble<ReturnType<Required<Partial<{
14
14
  onSetup(): void;
15
15
  beforeSetValue(fieldKey: string, value: unknown, payload: {
16
16
  field: import("@formily/core").GeneralField;
17
17
  oldValue: unknown;
18
18
  }): any;
19
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
20
- afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
21
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
19
+ beforeRequest(fieldKey: string, params?: import("../../../../shared/types").AnyObject | undefined, payload?: import("../../../../shared/types").AnyObject | undefined): void | UndefinedAble<import("../../../../shared/types").AnyObject>;
20
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../shared/types").AnyObject | undefined): import("../../../../shared/types").AnyObject[];
21
+ afterOptionInit(fieldKey: string, options: import("../../../../shared/types").AnyObject[], payload?: import("../../../../shared/types").AnyObject | undefined): void;
22
22
  }>>[T]>>;
23
23
  };
@@ -1,8 +1,8 @@
1
- import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { AnyObject, AnyFn, LowCodeTypes } from '../../../../../es/shared/types';
1
+ import { FormRequestDefine } from '../../../../shared/hooks';
2
+ import { AnyObject, AnyFn, LowCodeTypes } from '../../../../shared/types';
3
3
  import { Ref } from 'vue';
4
- import { UrlConfig } from '../../../../../es/components/form-render';
5
- import { RecommendItem } from '../../../../../es/components/recommend-search/src/types';
4
+ import { UrlConfig } from '../../../../components/form-render';
5
+ import { RecommendItem } from '../../../../components/recommend-search/src/types';
6
6
  declare type UseOptionHooks = Partial<Record<'onRequestConfigChange' | 'onDepsChange', (payload: {
7
7
  fetchData: (content?: string, otherParams?: AnyObject) => any;
8
8
  labelKey: string;
@@ -1 +1 @@
1
- import{arrayed as e,checkInSetupEnv as l,jsonParse as n}from"../../../../shared/utils/index.js";import{uniqBy as o,isString as r,isEqual as t,omit as u,isFunction as a}from"lodash-es";import"naive-ui";import{computed as s,inject as i,ref as c,watch as v,toRaw as m}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as d}from"../../../../shared/hooks/useFormRequest/index.js";import"@vueuse/shared";import{useOptionFiltered as f}from"../../../../shared/hooks/selectHooks/useOptionFiltered.js";import{useSearchContent as y}from"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../index.js";import{InjectionAsyncQueue as p,InjectionFormLifeCycleCaller as h,InjectionFormItemDepsCollector as g}from"../constants/index.js";import{useFormField as K}from"./useFormField.js";import{traverseDependKey as k}from"../utils/schema.js";import{getAbsoluteKey as w,formRenderLog as C}from"../utils/index.js";function b(e,l){const n=c();return s({get:()=>n.value?n.value:e[l],set(e){n.value=e}})}function R(e,l,r,t,c){const v=b(e,"commonList"),m=b(e,"recentList"),{searchContent:f,optionSearchFilter:h}=y();function g(e){return n(e.itemObj)}const k=s((()=>{var e,l;return null!=(l=null==(e=v.value)?void 0:e.map(g))?l:[]})),w=s((()=>{var e,l;return null!=(l=null==(e=m.value)?void 0:e.map(g))?l:[]})),C=s((()=>{if(!e.recommend||!k.value.length&&!w.value.length)return l.value;const n=o(k.value.concat(w.value),(e=>e[c.value])),r=l.value.filter((e=>n.every((function(l){return l[c.value]!==e[c.value]}))));return[...h(n,t.value),...r]})),{getRecommendRequestInfo:R,getHttpInstance:O}=d();function j(l){const{url:n,getRecommendIds:o}=R(),r=a(o)?o():{},t=a(e.getRecommendInfo)?e.getRecommendInfo():{};return{url:n[l],info:Object.assign({},r,t)}}const{fieldKey:F,field:I}=K(),q=i(p);return{postRecommend:async function(l){if(!e.recommend)return;const n=O();if(!n)return;const{url:o,info:t}=j("post"),u=C.value.find((e=>e[c.value]===l));u&&r("postRecommend",await n.post(o,{...t,keyword:"",itemId:c.value,itemObj:JSON.stringify(u)}))},getRecommend:async function(l){if(!e.recommend)return;if(f.value=l,v.value&&m.value&&e.recommendCache)return;const n=await q.addAsync(function(l,n){const{url:o,info:r}=j("get");return{url:o,method:"get",key:l,cache:n,params:{...r,recNum:Math.max(e.commonNum,e.recentNum),keyword:""},payload:{field:I.value,labelKey:t.value,valueKey:c.value}}}(F.value,e.recommendCache)),{commonly:o,recently:r}=n.reduce(((e,l)=>("commonly"===l.type?e.commonly.push(u(l,["type"])):"recently"===l.type&&e.recently.push(u(l,["type"])),e)),{commonly:[],recently:[]});v.value=o.slice(0,e.commonNum),m.value=r.slice(0,e.recentNum)},sortedOptions:C}}function O(e,l,n){const o=s((()=>{var l,n,o;return null!=(o=null!=(n=null==(l=e.urlConfig)?void 0:l.nameKey)?n:e.labelField)?o:"text"})),r=s((()=>{var l,n,o;return null!=(o=null!=(n=null==(l=e.urlConfig)?void 0:l.valueKey)?n:e.valueField)?o:"value"})),t=s((()=>{var l,n;return null!=(n=null==(l=e.urlConfig)?void 0:l.showKey)?n:e.showField})),u=s((()=>{var l,n;return null!=(n=null==(l=e.urlConfig)?void 0:l.searchKey)?n:e.searchField})),{field:a}=K();return I({props:e,labelKey:o,valueKey:r,searchKey:u,showKey:t,hooks:n,valueRef:l,getConfig:()=>e.urlConfig,getParams:()=>{var l,n;const o=F(a.value,null==(l=e.urlConfig)?void 0:l.params,null==(n=e.urlConfig)?void 0:n.dependKey);return{...e.urlConfig,params:o}},getDependKeys:()=>{var l;return null==(l=e.urlConfig)?void 0:l.dependKey}})}function j(l,n,o){const t=s((()=>{var n;const o=e(null==(n=l.wordbook)?void 0:n.show_key)[0];return r(o)?o:null})),u=s((()=>{var e,n,o,u;const a=null==(n=null==(e=l.wordbook)?void 0:e.render_key)?void 0:n[0];return r(a)?a:null!=(u=null!=(o=t.value)?o:l.labelField)?u:"text"})),a=s((()=>{var e,n,o;return null!=(o=null!=(n=null==(e=l.wordbook)?void 0:e.value_key)?n:l.valueField)?o:"value"})),i=s((()=>{var e;return(null==(e=l.wordbook)?void 0:e.search_key)||[]})),c=s((()=>{var e;return null!=(e=t.value)?e:l.showField})),{field:v}=K(),{getSearchRequestInfo:m}=d();return I({props:l,labelKey:u,valueKey:a,searchKey:i,showKey:c,hooks:o,valueRef:n,getConfig:()=>l.wordbook,getParams:()=>{const{wordbook:e,autograph:n}=l,o=F(v.value,{autograph:n,wordbookId:e.id,wordbookType:e.type,fieldKeys:e.search_key,keyword:"",page:1},e.queryParams);return{...m(),params:o}},getDependKeys:()=>{var e;return null==(e=l.wordbook)?void 0:e.queryParams}})}function F(e,l,n){const o={...l};return n&&k(n,((l,n,r)=>{const t=w(l,e.path),u=e.form.getValuesIn(t);if(r&&null==u)throw`缺少必须的参数=>${t}`;o[n]=u})),o}function I({labelKey:e,valueKey:n,searchKey:o,showKey:u,props:a,getConfig:s,getParams:d,getDependKeys:y,hooks:k,valueRef:w}){l();const b=i(p),R=i(h),{remoteOptions:O,filterOptions:j,fullOptions:F,searchContent:I}=f(a,{labelKey:e,valueKey:n,searchKey:o}),{field:q,fieldKey:x}=K(),D=c(!1),N=async function(l,o,t={avoidSearchContent:!0}){if(I.value=l,!s())return O.value=null;if(!t.avoidSearchContent||null==I.value)try{D.value=!0;const l={field:q.value,labelKey:e.value,valueKey:n.value},r={params:{...d().params,...o},key:x.value,cache:a.requestCache,payload:l},t=await b.addAsync(Object.assign({},d(),r));m(O.value)!==t&&(O.value=t,R("afterOptionInit",[x.value,O.value,l]))}catch(e){r(e)&&C(e)}finally{D.value=!1}},S=i(g);return v(s,((l,o)=>{if(t(l,o))return;if(O.value=null,!l)return O.value=null;const r={fetchData:N,labelKey:e.value,valueKey:n.value},{onRequestConfigChange:u,onDepsChange:s}=k||{};S.setDeps(q.value.path,y()||[],(async()=>{O.value=null,w.value=null,a.lazyRequest||(s?s(r):N())})),!w.value&&a.lazyRequest||(u?u(r):N())}),{immediate:!0}),{labelKey:e,loading:D,showKey:u,valueKey:n,remoteOptions:O,filterOptions:j,fullOptions:F,fetchData:N,searchContent:I}}export{j as useAutographOptions,R as useRecommendOptions,O as useUrlConfigOptions};
1
+ import{arrayed as e,checkInSetupEnv as l,jsonParse as n}from"../../../../shared/utils/index.js";import{uniqBy as o,isString as r,isEqual as t,omit as u,isFunction as a}from"lodash-es";import"naive-ui";import{computed as s,inject as i,ref as c,watch as v,toRaw as d}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as m}from"../../../../shared/hooks/useFormRequest/index.js";import"@vueuse/shared";import{useOptionFiltered as f}from"../../../../shared/hooks/selectHooks/useOptionFiltered.js";import{useSearchContent as y}from"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../index.js";import{InjectionAsyncQueue as p,InjectionFormLifeCycleCaller as h,InjectionFormItemDepsCollector as g}from"../constants/index.js";import{useFormField as K}from"./useFormField.js";import{traverseDependKey as k}from"../utils/schema.js";import{getAbsoluteKey as w,formRenderLog as C}from"../utils/index.js";function b(e,l){const n=c();return s({get:()=>n.value?n.value:e[l],set(e){n.value=e}})}function R(e,l,r,t,c){const v=b(e,"commonList"),d=b(e,"recentList"),{searchContent:f,optionSearchFilter:h}=y();function g(e){return n(e.itemObj)}const k=s((()=>{var e,l;return null!=(l=null==(e=v.value)?void 0:e.map(g))?l:[]})),w=s((()=>{var e,l;return null!=(l=null==(e=d.value)?void 0:e.map(g))?l:[]})),C=s((()=>{if(!e.recommend||!k.value.length&&!w.value.length)return l.value;const n=o(k.value.concat(w.value),(e=>e[c.value])),r=l.value.filter((e=>n.every((function(l){return l[c.value]!==e[c.value]}))));return[...h(n,t.value),...r]})),{getRecommendRequestInfo:R,getHttpInstance:O}=m();function j(l){const{url:n,getRecommendIds:o}=R(),r=a(o)?o():{},t=a(e.getRecommendInfo)?e.getRecommendInfo():{};return{url:n[l],info:Object.assign({},r,t)}}const{fieldKey:F,field:q}=K(),I=i(p);return{postRecommend:async function(l){if(!e.recommend)return;const n=O();if(!n)return;const{url:o,info:t}=j("post"),u=C.value.find((e=>e[c.value]===l));u&&r("postRecommend",await n.post(o,{...t,keyword:"",itemId:c.value,itemObj:JSON.stringify(u)}))},getRecommend:async function(l){if(!e.recommend)return;if(f.value=l,v.value&&d.value&&e.recommendCache)return;const n=await I.addAsync(function(l,n){const{url:o,info:r}=j("get");return{url:o,method:"get",key:l,cache:n,params:{...r,recNum:Math.max(e.commonNum,e.recentNum),keyword:""},payload:{field:q.value,labelKey:t.value,valueKey:c.value}}}(F.value,e.recommendCache)),{commonly:o,recently:r}=n.reduce(((e,l)=>("commonly"===l.type?e.commonly.push(u(l,["type"])):"recently"===l.type&&e.recently.push(u(l,["type"])),e)),{commonly:[],recently:[]});v.value=o.slice(0,e.commonNum),d.value=r.slice(0,e.recentNum)},sortedOptions:C}}function O(e,l,n){const o=s((()=>{var l,n,o;return null!=(o=null!=(n=null==(l=e.urlConfig)?void 0:l.nameKey)?n:e.labelField)?o:"text"})),r=s((()=>{var l,n,o;return null!=(o=null!=(n=null==(l=e.urlConfig)?void 0:l.valueKey)?n:e.valueField)?o:"value"})),t=s((()=>{var l,n;return null!=(n=null==(l=e.urlConfig)?void 0:l.showKey)?n:e.showField})),u=s((()=>{var l,n;return null!=(n=null==(l=e.urlConfig)?void 0:l.searchKey)?n:e.searchField})),{field:a}=K();return q({props:e,labelKey:o,valueKey:r,searchKey:u,showKey:t,hooks:n,valueRef:l,getConfig:()=>e.urlConfig,getParams:()=>{var l,n;const o=F(a.value,null==(l=e.urlConfig)?void 0:l.params,null==(n=e.urlConfig)?void 0:n.dependKey);return{...e.urlConfig,params:o}},getDependKeys:()=>{var l;return null==(l=e.urlConfig)?void 0:l.dependKey}})}function j(l,n,o){const t=s((()=>{var n;const o=e(null==(n=l.wordbook)?void 0:n.show_key)[0];return r(o)?o:null})),u=s((()=>{var e,n,o,u;const a=null==(n=null==(e=l.wordbook)?void 0:e.render_key)?void 0:n[0];return r(a)?a:null!=(u=null!=(o=t.value)?o:l.labelField)?u:"text"})),a=s((()=>{var e,n,o;return null!=(o=null!=(n=null==(e=l.wordbook)?void 0:e.value_key)?n:l.valueField)?o:"value"})),i=s((()=>{var e;return(null==(e=l.wordbook)?void 0:e.search_key)||[]})),c=s((()=>{var e;return null!=(e=t.value)?e:l.showField})),{field:v}=K(),{getSearchRequestInfo:d}=m();return q({props:l,labelKey:u,valueKey:a,searchKey:i,showKey:c,hooks:o,valueRef:n,getConfig:()=>l.wordbook,getParams:()=>{const{wordbook:e,autograph:n}=l,o=F(v.value,{autograph:n,wordbookId:e.id,wordbookType:e.type,fieldKeys:e.search_key,keyword:"",page:1},e.queryParams);return{...d(),params:o}},getDependKeys:()=>{var e;return null==(e=l.wordbook)?void 0:e.queryParams}})}function F(e,l,n){const o={...l};return n&&k(n,((l,n,r)=>{const t=w(l,e.path),u=e.form.getValuesIn(t);if((null==r?void 0:r.required)&&null==u)throw`缺少必须的参数=>${t}`;o[n]=u})),o}function q({labelKey:e,valueKey:n,searchKey:o,showKey:u,props:a,getConfig:s,getParams:m,getDependKeys:y,hooks:k,valueRef:w}){l();const b=i(p),R=i(h),{remoteOptions:O,filterOptions:j,fullOptions:F,searchContent:q}=f(a,{labelKey:e,valueKey:n,searchKey:o}),{field:I,fieldKey:x}=K(),D=c(!1),N=async function(l,o,t={avoidSearchContent:!0}){if(q.value=l,!s())return O.value=null;if(!t.avoidSearchContent||null==q.value)try{D.value=!0;const l={field:I.value,labelKey:e.value,valueKey:n.value},r={params:{...m().params,...o},key:x.value,cache:a.requestCache,payload:l},t=await b.addAsync(Object.assign({},m(),r));d(O.value)!==t&&(O.value=t,R("afterOptionInit",[x.value,O.value,l]))}catch(e){r(e)&&C(e)}finally{D.value=!1}},S=i(g);return v(s,((l,o)=>{if(t(l,o))return;if(O.value=null,!l)return O.value=null;const r={fetchData:N,labelKey:e.value,valueKey:n.value},{onRequestConfigChange:u,onDepsChange:s}=k||{};S.setDeps(I.value.path,y()||[],(async e=>{O.value=null,(null==e?void 0:e.keepValue)||(w.value=null),a.lazyRequest||(s?s(r):N())})),!w.value&&a.lazyRequest||(u?u(r):N())}),{immediate:!0}),{labelKey:e,loading:D,showKey:u,valueKey:n,remoteOptions:O,filterOptions:j,fullOptions:F,fetchData:N,searchContent:q}}export{j as useAutographOptions,R as useRecommendOptions,O as useUrlConfigOptions};
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { FieldItem } from '../types';
3
3
  export declare function useFormValidator(): {
4
4
  createValidatorSchema: (fieldItem: FieldItem) => AnyObject[];
@@ -1,4 +1,4 @@
1
- import { LowCodeTypes } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../shared/types';
2
2
  import { Form } from '@formily/core';
3
3
  import { MaybeRef } from '@vueuse/core';
4
4
  export declare function useLowCodeReactions(configListRef: MaybeRef<LowCodeTypes.reactionsConfig[] | undefined>, formModel: Form): {
@@ -1,4 +1,4 @@
1
- import { LowCodeTypes } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../shared/types';
2
2
  import { Form } from '@formily/core';
3
3
  export declare function useOperationalForm(props: {
4
4
  operationalForm?: LowCodeTypes.operationalConfig[];
@@ -1,6 +1,6 @@
1
- import { LowCodeTypes } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../shared/types';
2
2
  import { Field, Form } from '@formily/core';
3
- import { ContextCollector } from '../../../../../es/components/form-render';
3
+ import { ContextCollector } from '../../../../components/form-render';
4
4
  export declare class wordbookSettingHandler {
5
5
  private formModel;
6
6
  private changeContextCollector;
@@ -1,8 +1,8 @@
1
- import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { AnyObject, ArrayAble, LowCodeTypes } from '../../../../../es/shared/types';
1
+ import { FormRequestDefine } from '../../../../shared/hooks';
2
+ import { AnyObject, ArrayAble, LowCodeTypes } from '../../../../shared/types';
3
3
  import { SchemaEffectTypes, SchemaTypes } from '@formily/vue';
4
4
  import { CSSProperties, VNode } from 'vue';
5
- import { DependKeyType, FormCommonState } from '../../../../../es/components/form-render';
5
+ import { DependKeyType, FormCommonState } from '../../../../components/form-render';
6
6
  declare type FieldBusinessType = 'password' | 'id_card' | 'age' | 'age_unit' | 'mobile' | 'telephone' | 'email' | 'sex' | 'birthday' | 'bank_card' | 'website' | 'gestational_weeks' | 'gestational_stage' | 'customer_name';
7
7
  declare type HtmlType = 'INPUT' | 'TEXTAREA' | 'SELECT' | 'LINEBAR' | 'LINE_BREAKS' | 'INPUT_NUMBER' | 'REMOTE_SEARCH' | 'DATE' | 'LEVEL_SEARCH_CASCADER' | 'SEARCH_CASCADER' | 'COMBINATION' | 'RADIO' | 'CHECKBOX' | 'SWITCH' | 'SLIDER' | 'COMPLEX' | 'SEARCH' | 'PHONE_TYPE' | 'IDCARD_TYPE' | 'SEARCH_MORE' | 'DIGITAL' | 'CHECKBOX_BLOCK' | 'RADIO_BLOCK' | 'DATE-INPUT' | 'DATETIME-INPUT' | 'SWITCH_COMPONENT' | 'SLIDER_COMPONENT' | 'LEVEL_SEARCH_CASCADE' | 'SEARCH_CASCADE' | ({} & string);
8
8
  declare type ValidateType = 'mobile' | 'integer' | 'number' | 'id_card' | 'regular' | string;