cnhis-design-vue 3.1.40-beta.4 → 3.1.40-beta.5

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 (378) hide show
  1. package/es/{packages/components → components}/big-table/src/BigTable.vue.js +1 -1
  2. package/es/{packages/components/scale-view → components/big-table}/src/components/NoData.vue.js +1 -1
  3. package/es/{packages/components → components}/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  4. package/es/{packages/components → components}/big-table/src/components/input-button.vue.js +1 -1
  5. package/es/{packages/components → components}/big-table/src/components/separate.vue.js +1 -1
  6. package/es/{packages/components → components}/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  7. package/es/{packages/components → components}/button-print/src/ButtonPrint.vue.js +1 -1
  8. package/es/{packages/components → components}/button-print/src/components/EditFormat.vue.js +1 -1
  9. package/es/{packages/components → components}/button-print/src/components/IdentityVerification.vue.js +1 -1
  10. package/es/{packages/components → components}/button-print/src/components/Preview.vue.js +1 -1
  11. package/es/{packages/components → components}/fabric-chart/src/FabricChart.vue.js +1 -1
  12. package/es/{packages/components → components}/fabric-chart/src/components/PopupTip.vue.js +1 -1
  13. package/es/{packages/components → components}/field-set/src/FieldSet.vue.js +1 -1
  14. package/es/{packages/components → components}/form-config/src/FormConfig.vue.js +1 -1
  15. package/es/{packages/components → components}/form-config/src/components/FormConfigCreator.vue.js +1 -1
  16. package/es/{packages/components → components}/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  17. package/es/{packages/components → components}/form-config/src/components/FormConfigEdit.vue.js +1 -1
  18. package/es/{packages/components → components}/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  19. package/es/{packages/components → components}/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  20. package/es/{packages/components → components}/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  21. package/es/{packages/components → components}/form-render/src/FormRender.vue.js +1 -1
  22. package/es/{packages/components → components}/form-render/src/FormRenderWrapper.vue.js +1 -1
  23. package/es/{packages/components → components}/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  24. package/es/{packages/components → components}/form-render/src/components/tooltipMessage.vue.js +1 -1
  25. package/es/{packages/components → components}/form-render/src/hooks/useAutoHidden.js +1 -9
  26. package/es/{packages/components → components}/iho-table/src/IhoTable.vue.js +1 -1
  27. package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -1
  28. package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  29. package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  30. package/es/{packages/components → components}/info-header/src/HiddenContent.vue.js +1 -1
  31. package/es/{packages/components → components}/info-header/src/InfoEllipsis.vue.js +1 -1
  32. package/es/{packages/components → components}/info-header/src/InfoHeader.vue.js +1 -1
  33. package/es/{packages/components → components}/keyboard/src/Keyboard.vue.js +1 -1
  34. package/es/{packages/components → components}/keyboard/src/components/InputNumber.vue.js +1 -1
  35. package/es/{packages/components → components}/keyboard/src/components/NumberPanel.vue.js +1 -1
  36. package/es/{packages/components → components}/map/src/Map.vue.js +1 -1
  37. package/es/{packages/components → components}/recommend-search/src/RecommendSearch.vue.js +1 -1
  38. package/es/{packages/components → components}/recommend-search/src/components/BaseSearch.vue.js +1 -1
  39. package/es/{packages/components → components}/recommend-search/src/components/RecommendInput.vue.js +1 -1
  40. package/es/{packages/components → components}/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  41. package/es/{packages/components → components}/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  42. package/es/{packages/components → components}/scale-view/src/ScaleView.vue.js +1 -1
  43. package/es/{packages/components → components}/scale-view/src/components/AnswerParse.vue.js +1 -1
  44. package/es/{packages/components → components}/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  45. package/es/{packages/components → components}/scale-view/src/components/EvaluatePage.vue.js +1 -1
  46. package/es/{packages/components → components}/scale-view/src/components/LoadingCom.vue.js +1 -1
  47. package/es/{packages/components/big-table → components/scale-view}/src/components/NoData.vue.js +1 -1
  48. package/es/{packages/components → components}/search-cascader/src/SearchCascader.vue.js +1 -1
  49. package/es/{packages/components → components}/select-label/src/LabelFormContent.vue.js +1 -1
  50. package/es/{packages/components → components}/select-label/src/SelectLabel.vue.js +1 -1
  51. package/es/{packages/components → components}/select-label/src/components/label-classify.vue.js +1 -1
  52. package/es/{packages/components → components}/select-person/src/SelectPerson.vue.js +1 -1
  53. package/es/{packages/components → components}/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  54. package/es/{packages/components → components}/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  55. package/es/{packages/components → components}/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  56. package/es/{packages/components → components}/steps-wheel/src/StepsWheel.vue.js +1 -1
  57. package/es/{packages/components → components}/time-line/src/TimeLine.vue.js +1 -1
  58. package/es/{packages/components → components}/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  59. package/es/{packages/components → components}/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  60. package/es/{packages/shared → shared}/components/SelectPage/SelectPage.vue.js +1 -1
  61. package/es/{packages/shared → shared}/components/SvgIcon/SvgIcon.vue.js +1 -1
  62. package/es/{packages/shared → shared}/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  63. package/es/{packages/shared → shared}/components/no-data/NoData.vue.js +1 -1
  64. package/package.json +3 -2
  65. package/es/node_modules/@formily/reactive/esm/action.js +0 -19
  66. package/es/node_modules/@formily/reactive/esm/annotations/box.js +0 -51
  67. package/es/node_modules/@formily/reactive/esm/annotations/computed.js +0 -134
  68. package/es/node_modules/@formily/reactive/esm/annotations/observable.js +0 -43
  69. package/es/node_modules/@formily/reactive/esm/annotations/ref.js +0 -55
  70. package/es/node_modules/@formily/reactive/esm/annotations/shallow.js +0 -43
  71. package/es/node_modules/@formily/reactive/esm/array.js +0 -49
  72. package/es/node_modules/@formily/reactive/esm/autorun.js +0 -14
  73. package/es/node_modules/@formily/reactive/esm/batch.js +0 -19
  74. package/es/node_modules/@formily/reactive/esm/checkers.js +0 -25
  75. package/es/node_modules/@formily/reactive/esm/environment.js +0 -18
  76. package/es/node_modules/@formily/reactive/esm/externals.js +0 -44
  77. package/es/node_modules/@formily/reactive/esm/handlers.js +0 -265
  78. package/es/node_modules/@formily/reactive/esm/internals.js +0 -114
  79. package/es/node_modules/@formily/reactive/esm/observable.js +0 -19
  80. package/es/node_modules/@formily/reactive/esm/reaction.js +0 -193
  81. package/es/node_modules/@formily/reactive/esm/tree.js +0 -67
  82. package/es/node_modules/@formily/reactive/esm/untracked.js +0 -6
  83. /package/es/{packages/components → components}/annotation-edit/index.js +0 -0
  84. /package/es/{packages/components → components}/annotation-edit/src/AnnotationEdit.js +0 -0
  85. /package/es/{packages/components → components}/annotation-edit/src/type.js +0 -0
  86. /package/es/{packages/components → components}/big-table/index.js +0 -0
  87. /package/es/{packages/components → components}/big-table/src/BigTable.vue2.js +0 -0
  88. /package/es/{packages/components → components}/big-table/src/bigTableEmits.js +0 -0
  89. /package/es/{packages/components → components}/big-table/src/bigTableProps.js +0 -0
  90. /package/es/{packages/components → components}/big-table/src/bigTableState.js +0 -0
  91. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-date.js +0 -0
  92. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-input.js +0 -0
  93. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-select.js +0 -0
  94. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-time.js +0 -0
  95. /package/es/{packages/components → components}/big-table/src/components/edit-form/useCommon.js +0 -0
  96. /package/es/{packages/components → components}/big-table/src/constants/index.js +0 -0
  97. /package/es/{packages/components → components}/big-table/src/hooks/index.js +0 -0
  98. /package/es/{packages/components → components}/big-table/src/hooks/useAnchor.js +0 -0
  99. /package/es/{packages/components → components}/big-table/src/hooks/useAnnotation.js +0 -0
  100. /package/es/{packages/components → components}/big-table/src/hooks/useBatchEditing.js +0 -0
  101. /package/es/{packages/components → components}/big-table/src/hooks/useEdit.js +0 -0
  102. /package/es/{packages/components → components}/big-table/src/hooks/useEvent.js +0 -0
  103. /package/es/{packages/components → components}/big-table/src/hooks/useFormat.js +0 -0
  104. /package/es/{packages/components → components}/big-table/src/hooks/useNestTable.js +0 -0
  105. /package/es/{packages/components → components}/big-table/src/hooks/useSeparateRow.js +0 -0
  106. /package/es/{packages/components → components}/big-table/src/hooks/useTableParse.js +0 -0
  107. /package/es/{packages/components → components}/big-table/src/utils.js +0 -0
  108. /package/es/{packages/components → components}/bpmn-workflow/index.js +0 -0
  109. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +0 -0
  110. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +0 -0
  111. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +0 -0
  112. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +0 -0
  113. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +0 -0
  114. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +0 -0
  115. /package/es/{packages/components → components}/button-print/index.js +0 -0
  116. /package/es/{packages/components → components}/button-print/src/ButtonPrint.vue2.js +0 -0
  117. /package/es/{packages/components → components}/button-print/src/components/Preview.vue2.js +0 -0
  118. /package/es/{packages/components → components}/button-print/src/utils/browserPrint.js +0 -0
  119. /package/es/{packages/components → components}/button-print/src/utils/dialog.js +0 -0
  120. /package/es/{packages/components → components}/button-print/src/utils/index.js +0 -0
  121. /package/es/{packages/components → components}/button-print/src/utils/print.js +0 -0
  122. /package/es/{packages/components → components}/editor/index.js +0 -0
  123. /package/es/{packages/components → components}/editor/src/Editor.js +0 -0
  124. /package/es/{packages/components → components}/fabric-chart/index.js +0 -0
  125. /package/es/{packages/components → components}/fabric-chart/src/components/PopupMenu.js +0 -0
  126. /package/es/{packages/components → components}/fabric-chart/src/components/useStyle.js +0 -0
  127. /package/es/{packages/components → components}/fabric-chart/src/hooks/constant.js +0 -0
  128. /package/es/{packages/components → components}/fabric-chart/src/hooks/index.js +0 -0
  129. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcess.js +0 -0
  130. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcessChart.js +0 -0
  131. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBottom.js +0 -0
  132. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCenter.js +0 -0
  133. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCommon.js +0 -0
  134. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCumputedPoint.js +0 -0
  135. /package/es/{packages/components → components}/fabric-chart/src/hooks/useDraw.js +0 -0
  136. /package/es/{packages/components → components}/fabric-chart/src/hooks/useEvent.js +0 -0
  137. /package/es/{packages/components → components}/fabric-chart/src/hooks/useGrid.js +0 -0
  138. /package/es/{packages/components → components}/fabric-chart/src/hooks/useLeft.js +0 -0
  139. /package/es/{packages/components → components}/fabric-chart/src/hooks/useOther.js +0 -0
  140. /package/es/{packages/components → components}/fabric-chart/src/hooks/useRight.js +0 -0
  141. /package/es/{packages/components → components}/fabric-chart/src/hooks/useShadow.js +0 -0
  142. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTemperatureChart.js +0 -0
  143. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTop.js +0 -0
  144. /package/es/{packages/components → components}/fabric-chart/src/interface.js +0 -0
  145. /package/es/{packages/components → components}/fabric-chart/src/utils/index.js +0 -0
  146. /package/es/{packages/components → components}/fabric-chart/src/utils/utils.js +0 -0
  147. /package/es/{packages/components → components}/field-set/index.js +0 -0
  148. /package/es/{packages/components → components}/form-config/index.js +0 -0
  149. /package/es/{packages/components → components}/form-config/src/components/FormConfigMaterialItem.js +0 -0
  150. /package/es/{packages/components → components}/form-config/src/components/index.js +0 -0
  151. /package/es/{packages/components → components}/form-config/src/components/renderer/index.js +0 -0
  152. /package/es/{packages/components → components}/form-config/src/constants/index.js +0 -0
  153. /package/es/{packages/components → components}/form-config/src/hooks/index.js +0 -0
  154. /package/es/{packages/components → components}/form-config/src/hooks/useConfigurationField.js +0 -0
  155. /package/es/{packages/components → components}/form-config/src/hooks/useDataNormalize.js +0 -0
  156. /package/es/{packages/components → components}/form-config/src/hooks/usePresetRenderer.js +0 -0
  157. /package/es/{packages/components → components}/form-config/src/hooks/useSortalbeConfig.js +0 -0
  158. /package/es/{packages/components → components}/form-config/src/types/index.js +0 -0
  159. /package/es/{packages/components → components}/form-config/src/utils/index.js +0 -0
  160. /package/es/{packages/components → components}/form-render/index.js +0 -0
  161. /package/es/{packages/components → components}/form-render/src/components/renderer/combination.js +0 -0
  162. /package/es/{packages/components → components}/form-render/src/components/renderer/complex.js +0 -0
  163. /package/es/{packages/components → components}/form-render/src/components/renderer/date.js +0 -0
  164. /package/es/{packages/components → components}/form-render/src/components/renderer/formItem.js +0 -0
  165. /package/es/{packages/components → components}/form-render/src/components/renderer/index.js +0 -0
  166. /package/es/{packages/components → components}/form-render/src/components/renderer/input.js +0 -0
  167. /package/es/{packages/components → components}/form-render/src/components/renderer/inputGroup.js +0 -0
  168. /package/es/{packages/components → components}/form-render/src/components/renderer/inputNumber.js +0 -0
  169. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +0 -0
  170. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/index.js +0 -0
  171. /package/es/{packages/components → components}/form-render/src/components/renderer/levelSearchCascader.js +0 -0
  172. /package/es/{packages/components → components}/form-render/src/components/renderer/lineBar/index.js +0 -0
  173. /package/es/{packages/components → components}/form-render/src/components/renderer/radio_checkbox.js +0 -0
  174. /package/es/{packages/components → components}/form-render/src/components/renderer/remoteSearch.js +0 -0
  175. /package/es/{packages/components → components}/form-render/src/components/renderer/searchCascade.js +0 -0
  176. /package/es/{packages/components → components}/form-render/src/components/renderer/select.js +0 -0
  177. /package/es/{packages/components → components}/form-render/src/components/renderer/simpleComponent.js +0 -0
  178. /package/es/{packages/components → components}/form-render/src/components/renderer/slider.js +0 -0
  179. /package/es/{packages/components → components}/form-render/src/components/renderer/switch.js +0 -0
  180. /package/es/{packages/components → components}/form-render/src/components/renderer/textarea.js +0 -0
  181. /package/es/{packages/components → components}/form-render/src/constants/index.js +0 -0
  182. /package/es/{packages/components → components}/form-render/src/hooks/index.js +0 -0
  183. /package/es/{packages/components → components}/form-render/src/hooks/useAnchor.js +0 -0
  184. /package/es/{packages/components → components}/form-render/src/hooks/useAsyncQueue.js +0 -0
  185. /package/es/{packages/components → components}/form-render/src/hooks/useBusinessBinding.js +0 -0
  186. /package/es/{packages/components → components}/form-render/src/hooks/useChangeContext.js +0 -0
  187. /package/es/{packages/components → components}/form-render/src/hooks/useCommonInjection.js +0 -0
  188. /package/es/{packages/components → components}/form-render/src/hooks/useCommonLog.js +0 -0
  189. /package/es/{packages/components → components}/form-render/src/hooks/useComplexOptions.js +0 -0
  190. /package/es/{packages/components → components}/form-render/src/hooks/useFieldListAdaptor.js +0 -0
  191. /package/es/{packages/components → components}/form-render/src/hooks/useFieldNormalize.js +0 -0
  192. /package/es/{packages/components → components}/form-render/src/hooks/useFieldVisitor.js +0 -0
  193. /package/es/{packages/components → components}/form-render/src/hooks/useFormContext.js +0 -0
  194. /package/es/{packages/components → components}/form-render/src/hooks/useFormEvent.js +0 -0
  195. /package/es/{packages/components → components}/form-render/src/hooks/useFormField.js +0 -0
  196. /package/es/{packages/components → components}/form-render/src/hooks/useFormItemDeps.js +0 -0
  197. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderLifeCycle.js +0 -0
  198. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderOptions.js +0 -0
  199. /package/es/{packages/components → components}/form-render/src/hooks/useFormRequest.js +0 -0
  200. /package/es/{packages/components → components}/form-render/src/hooks/useFormValidator.js +0 -0
  201. /package/es/{packages/components → components}/form-render/src/hooks/useLowCodeReactions.js +0 -0
  202. /package/es/{packages/components → components}/form-render/src/hooks/useNuiThemeOverrides.js +0 -0
  203. /package/es/{packages/components → components}/form-render/src/hooks/usePresetScope.js +0 -0
  204. /package/es/{packages/components → components}/form-render/src/types/fieldItem.js +0 -0
  205. /package/es/{packages/components → components}/form-render/src/types/index.js +0 -0
  206. /package/es/{packages/components → components}/form-render/src/utils/business.js +0 -0
  207. /package/es/{packages/components → components}/form-render/src/utils/dom.js +0 -0
  208. /package/es/{packages/components → components}/form-render/src/utils/index.js +0 -0
  209. /package/es/{packages/components → components}/form-render/src/utils/schema.js +0 -0
  210. /package/es/{packages/components → components}/grid/index.js +0 -0
  211. /package/es/{packages/components → components}/grid/src/Grid.js +0 -0
  212. /package/es/{packages/components → components}/grid/src/hooks.js +0 -0
  213. /package/es/{packages/components → components}/iho-table/index.js +0 -0
  214. /package/es/{packages/components → components}/iho-table/src/constants/index.js +0 -0
  215. /package/es/{packages/components → components}/iho-table/src/hooks/export.js +0 -0
  216. /package/es/{packages/components → components}/iho-table/src/hooks/index.js +0 -0
  217. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/index.js +0 -0
  218. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useConfigHooks.js +0 -0
  219. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDataHooks.js +0 -0
  220. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +0 -0
  221. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useEventHooks.js +0 -0
  222. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useExposeHooks.js +0 -0
  223. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useFieldHooks.js +0 -0
  224. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useSetupHooks.js +0 -0
  225. /package/es/{packages/components → components}/iho-table/src/hooks/useColumnConfigAdaptor.js +0 -0
  226. /package/es/{packages/components → components}/iho-table/src/hooks/useTableContext.js +0 -0
  227. /package/es/{packages/components → components}/iho-table/src/hooks/useTablePlugin.js +0 -0
  228. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/index.js +0 -0
  229. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/tableAnchor.js +0 -0
  230. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/useAnchor.js +0 -0
  231. /package/es/{packages/components → components}/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -0
  232. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/index.js +0 -0
  233. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/types.js +0 -0
  234. /package/es/{packages/components → components}/iho-table/src/plugins/index.js +0 -0
  235. /package/es/{packages/components → components}/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -0
  236. /package/es/{packages/components → components}/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -0
  237. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +0 -0
  238. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -0
  239. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +0 -0
  240. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +0 -0
  241. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +0 -0
  242. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +0 -0
  243. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +0 -0
  244. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +0 -0
  245. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +0 -0
  246. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -0
  247. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +0 -0
  248. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +0 -0
  249. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +0 -0
  250. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +0 -0
  251. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +0 -0
  252. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +0 -0
  253. /package/es/{packages/components → components}/iho-table/src/plugins/rowClickPlugin/index.js +0 -0
  254. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/index.js +0 -0
  255. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +0 -0
  256. /package/es/{packages/components → components}/iho-table/src/plugins/virtualTreePlugin/index.js +0 -0
  257. /package/es/{packages/components → components}/iho-table/src/types/index.js +0 -0
  258. /package/es/{packages/components → components}/iho-table/src/types/pluginType.js +0 -0
  259. /package/es/{packages/components → components}/iho-table/src/utils/index.js +0 -0
  260. /package/es/{packages/components → components}/index.js +0 -0
  261. /package/es/{packages/components → components}/info-header/index.js +0 -0
  262. /package/es/{packages/components → components}/insurance-sdk/index.js +0 -0
  263. /package/es/{packages/components → components}/insurance-sdk/src/constants/index.js +0 -0
  264. /package/es/{packages/components → components}/insurance-sdk/src/utils/index.js +0 -0
  265. /package/es/{packages/components → components}/insurance-sdk/src/utils/insurance.js +0 -0
  266. /package/es/{packages/components → components}/keyboard/index.js +0 -0
  267. /package/es/{packages/components → components}/keyboard/src/utils/index.js +0 -0
  268. /package/es/{packages/components → components}/map/index.js +0 -0
  269. /package/es/{packages/components → components}/recommend-search/index.js +0 -0
  270. /package/es/{packages/components → components}/recommend-search/src/constant/index.js +0 -0
  271. /package/es/{packages/components → components}/recommend-search/src/types/index.js +0 -0
  272. /package/es/{packages/components → components}/scale-view/index.js +0 -0
  273. /package/es/{packages/components → components}/scale-view/src/components/ScaleScore.js +0 -0
  274. /package/es/{packages/components → components}/scale-view/src/components/composables/choose-common.js +0 -0
  275. /package/es/{packages/components → components}/scale-view/src/components/formitem/address.js +0 -0
  276. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-address.js +0 -0
  277. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-cascader.js +0 -0
  278. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-checkbox.js +0 -0
  279. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-collection.js +0 -0
  280. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-datetime.js +0 -0
  281. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-input.js +0 -0
  282. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-map.js +0 -0
  283. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-radio.js +0 -0
  284. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-select.js +0 -0
  285. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-sign.js +0 -0
  286. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-upload.js +0 -0
  287. /package/es/{packages/components → components}/scale-view/src/components/formitem/sign-com.js +0 -0
  288. /package/es/{packages/components → components}/scale-view/src/components/formitem/standard-modal.js +0 -0
  289. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-computed.js +0 -0
  290. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-init.js +0 -0
  291. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-props.js +0 -0
  292. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-state.js +0 -0
  293. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-submit.js +0 -0
  294. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-validate.js +0 -0
  295. /package/es/{packages/components → components}/scale-view/src/hooks/use-component.js +0 -0
  296. /package/es/{packages/components → components}/scale-view/src/hooks/use-evaluate.js +0 -0
  297. /package/es/{packages/components → components}/scale-view/src/hooks/use-event.js +0 -0
  298. /package/es/{packages/components → components}/scale-view/src/hooks/use-noData.js +0 -0
  299. /package/es/{packages/components → components}/scale-view/src/utils/judge-types.js +0 -0
  300. /package/es/{packages/components → components}/search-cascader/index.js +0 -0
  301. /package/es/{packages/components → components}/search-cascader/src/components/SearchMenu.js +0 -0
  302. /package/es/{packages/components → components}/search-cascader/src/components/index.js +0 -0
  303. /package/es/{packages/components → components}/search-cascader/src/constants/index.js +0 -0
  304. /package/es/{packages/components → components}/search-cascader/src/hooks/index.js +0 -0
  305. /package/es/{packages/components → components}/search-cascader/src/hooks/useCssVariable.js +0 -0
  306. /package/es/{packages/components → components}/search-cascader/src/utils/index.js +0 -0
  307. /package/es/{packages/components → components}/select-label/index.js +0 -0
  308. /package/es/{packages/components → components}/select-label/src/SelectLabel.vue2.js +0 -0
  309. /package/es/{packages/components → components}/select-person/index.js +0 -0
  310. /package/es/{packages/components → components}/select-person/src/SelectPerson.vue2.js +0 -0
  311. /package/es/{packages/components → components}/select-person/src/utils/index.js +0 -0
  312. /package/es/{packages/components → components}/shortcut-provider/index.js +0 -0
  313. /package/es/{packages/components → components}/shortcut-provider/src/constants/index.js +0 -0
  314. /package/es/{packages/components → components}/shortcut-provider/src/hooks/index.js +0 -0
  315. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcutSignature.js +0 -0
  316. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcuts.js +0 -0
  317. /package/es/{packages/components → components}/shortcut-provider/src/types/index.js +0 -0
  318. /package/es/{packages/components → components}/shortcut-provider/src/utils/index.js +0 -0
  319. /package/es/{packages/components → components}/shortcut-setter/index.js +0 -0
  320. /package/es/{packages/components → components}/shortcut-setter/src/types/index.js +0 -0
  321. /package/es/{packages/components → components}/steps-wheel/index.js +0 -0
  322. /package/es/{packages/components → components}/time-line/index.js +0 -0
  323. /package/es/{packages/components → components}/vod-chunk-upload/index.js +0 -0
  324. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-computed.js +0 -0
  325. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-data.js +0 -0
  326. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-computed.js +0 -0
  327. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-data.js +0 -0
  328. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-chunk-upload/index.js +0 -0
  329. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-upload-modal.js +0 -0
  330. /package/es/{packages/shared → shared}/assets/img/failure.png.js +0 -0
  331. /package/es/{packages/shared → shared}/assets/img/no-permission.png.js +0 -0
  332. /package/es/{packages/shared → shared}/assets/img/nodata.png.js +0 -0
  333. /package/es/{packages/shared → shared}/assets/img/notfound.png.js +0 -0
  334. /package/es/{packages/shared → shared}/assets/img/qr.png.js +0 -0
  335. /package/es/{packages/shared → shared}/assets/img/success.png.js +0 -0
  336. /package/es/{packages/shared → shared}/assets/img/video.png.js +0 -0
  337. /package/es/{packages/shared → shared}/assets/img/video_default_cover.png.js +0 -0
  338. /package/es/{packages/shared → shared}/assets/img/xb_big.png.js +0 -0
  339. /package/es/{packages/shared → shared}/assets/img/xb_small.png.js +0 -0
  340. /package/es/{packages/shared → shared}/components/SelectPage/index.js +0 -0
  341. /package/es/{packages/shared → shared}/components/SlotRender/SlotRender.js +0 -0
  342. /package/es/{packages/shared → shared}/components/SlotRender/index.js +0 -0
  343. /package/es/{packages/shared → shared}/components/SvgIcon/index.js +0 -0
  344. /package/es/{packages/shared → shared}/components/TextOverTooltip/index.js +0 -0
  345. /package/es/{packages/shared → shared}/components/VueDraggable/index.js +0 -0
  346. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentBuilderHelper.js +0 -0
  347. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentStructure.js +0 -0
  348. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/renderHelper.js +0 -0
  349. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/sortableEvents.js +0 -0
  350. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/console.js +0 -0
  351. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/htmlHelper.js +0 -0
  352. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/string.js +0 -0
  353. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/tags.js +0 -0
  354. /package/es/{packages/shared → shared}/components/VueDraggable/src/vuedraggable.js +0 -0
  355. /package/es/{packages/shared → shared}/components/no-data/index.js +0 -0
  356. /package/es/{packages/shared → shared}/components/player-vod/player.js +0 -0
  357. /package/es/{packages/shared → shared}/components/player-vod/video-modal.js +0 -0
  358. /package/es/{packages/shared → shared}/global/variable.js +0 -0
  359. /package/es/{packages/shared → shared}/index.js +0 -0
  360. /package/es/{packages/shared → shared}/types/index.js +0 -0
  361. /package/es/{packages/shared → shared}/utils/anime.js +0 -0
  362. /package/es/{packages/shared → shared}/utils/colorLog.js +0 -0
  363. /package/es/{packages/shared → shared}/utils/index.js +0 -0
  364. /package/es/{packages/shared → shared}/utils/loadViewer.js +0 -0
  365. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelBailHook.js +0 -0
  366. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelHook.js +0 -0
  367. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesBailHook.js +0 -0
  368. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesHook.js +0 -0
  369. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesLoopHook.js +0 -0
  370. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesWaterfallHook.js +0 -0
  371. /package/es/{packages/shared → shared}/utils/tapable/Hook.js +0 -0
  372. /package/es/{packages/shared → shared}/utils/tapable/HookCodeFactory.js +0 -0
  373. /package/es/{packages/shared → shared}/utils/tapable/SyncBailHook.js +0 -0
  374. /package/es/{packages/shared → shared}/utils/tapable/SyncHook.js +0 -0
  375. /package/es/{packages/shared → shared}/utils/tapable/SyncLoopHook.js +0 -0
  376. /package/es/{packages/shared → shared}/utils/tapable/SyncWaterfallHook.js +0 -0
  377. /package/es/{packages/shared → shared}/utils/utilExpand.js +0 -0
  378. /package/es/{packages/shared → shared}/utils/vexutils.js +0 -0
@@ -1,265 +0,0 @@
1
- import { bindTargetKeyWithCurrentReaction, runReactionsFromTargetKey } from './reaction.js';
2
- import { ProxyRaw, RawProxy } from './environment.js';
3
- import { isObservable, isSupportObservable } from './externals.js';
4
- import { createObservable } from './internals.js';
5
-
6
- var __read = (undefined && undefined.__read) || function (o, n) {
7
- var m = typeof Symbol === "function" && o[Symbol.iterator];
8
- if (!m) return o;
9
- var i = m.call(o), r, ar = [], e;
10
- try {
11
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
- }
13
- catch (error) { e = { error: error }; }
14
- finally {
15
- try {
16
- if (r && !r.done && (m = i["return"])) m.call(i);
17
- }
18
- finally { if (e) throw e.error; }
19
- }
20
- return ar;
21
- };
22
- var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
23
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
24
- if (ar || !(i in from)) {
25
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
26
- ar[i] = from[i];
27
- }
28
- }
29
- return to.concat(ar || Array.prototype.slice.call(from));
30
- };
31
- var _a;
32
- var wellKnownSymbols = new Set(Object.getOwnPropertyNames(Symbol)
33
- .map(function (key) { return Symbol[key]; })
34
- .filter(function (value) { return typeof value === 'symbol'; }));
35
- var hasOwnProperty = Object.prototype.hasOwnProperty;
36
- function findObservable(target, key, value) {
37
- var observableObj = RawProxy.get(value);
38
- if (observableObj) {
39
- return observableObj;
40
- }
41
- if (!isObservable(value) && isSupportObservable(value)) {
42
- return createObservable(target, key, value);
43
- }
44
- return value;
45
- }
46
- function patchIterator(target, key, iterator, isEntries) {
47
- var originalNext = iterator.next;
48
- iterator.next = function () {
49
- var _a = originalNext.call(iterator), done = _a.done, value = _a.value;
50
- if (!done) {
51
- if (isEntries) {
52
- value[1] = findObservable(target, key, value[1]);
53
- }
54
- else {
55
- value = findObservable(target, key, value);
56
- }
57
- }
58
- return { done: done, value: value };
59
- };
60
- return iterator;
61
- }
62
- var instrumentations = (_a = {
63
- has: function (key) {
64
- var target = ProxyRaw.get(this);
65
- var proto = Reflect.getPrototypeOf(this);
66
- bindTargetKeyWithCurrentReaction({ target: target, key: key, type: 'has' });
67
- return proto.has.apply(target, arguments);
68
- },
69
- get: function (key) {
70
- var target = ProxyRaw.get(this);
71
- var proto = Reflect.getPrototypeOf(this);
72
- bindTargetKeyWithCurrentReaction({ target: target, key: key, type: 'get' });
73
- return findObservable(target, key, proto.get.apply(target, arguments));
74
- },
75
- add: function (key) {
76
- var target = ProxyRaw.get(this);
77
- var proto = Reflect.getPrototypeOf(this);
78
- var hadKey = proto.has.call(target, key);
79
- // forward the operation before queueing reactions
80
- var result = proto.add.apply(target, arguments);
81
- if (!hadKey) {
82
- runReactionsFromTargetKey({ target: target, key: key, value: key, type: 'add' });
83
- }
84
- return result;
85
- },
86
- set: function (key, value) {
87
- var target = ProxyRaw.get(this);
88
- var proto = Reflect.getPrototypeOf(this);
89
- var hadKey = proto.has.call(target, key);
90
- var oldValue = proto.get.call(target, key);
91
- // forward the operation before queueing reactions
92
- var result = proto.set.apply(target, arguments);
93
- if (!hadKey) {
94
- runReactionsFromTargetKey({ target: target, key: key, value: value, type: 'add' });
95
- }
96
- else if (value !== oldValue) {
97
- runReactionsFromTargetKey({ target: target, key: key, value: value, oldValue: oldValue, type: 'set' });
98
- }
99
- return result;
100
- },
101
- delete: function (key) {
102
- var target = ProxyRaw.get(this);
103
- var proto = Reflect.getPrototypeOf(this);
104
- var hadKey = proto.has.call(target, key);
105
- var oldValue = proto.get ? proto.get.call(target, key) : undefined;
106
- // forward the operation before queueing reactions
107
- var result = proto.delete.apply(target, arguments);
108
- if (hadKey) {
109
- runReactionsFromTargetKey({ target: target, key: key, oldValue: oldValue, type: 'delete' });
110
- }
111
- return result;
112
- },
113
- clear: function () {
114
- var target = ProxyRaw.get(this);
115
- var proto = Reflect.getPrototypeOf(this);
116
- var hadItems = target.size !== 0;
117
- var oldTarget = target instanceof Map ? new Map(target) : new Set(target);
118
- // forward the operation before queueing reactions
119
- var result = proto.clear.apply(target, arguments);
120
- if (hadItems) {
121
- runReactionsFromTargetKey({ target: target, oldTarget: oldTarget, type: 'clear' });
122
- }
123
- return result;
124
- },
125
- forEach: function (cb) {
126
- var _a;
127
- var args = [];
128
- for (var _i = 1; _i < arguments.length; _i++) {
129
- args[_i - 1] = arguments[_i];
130
- }
131
- var target = ProxyRaw.get(this);
132
- var proto = Reflect.getPrototypeOf(this);
133
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
134
- // swap out the raw values with their observable pairs
135
- // before passing them to the callback
136
- var wrappedCb = function (value, key) {
137
- var args = [];
138
- for (var _i = 2; _i < arguments.length; _i++) {
139
- args[_i - 2] = arguments[_i];
140
- }
141
- return cb.apply(void 0, __spreadArray([findObservable(target, key, value), key], __read(args), false));
142
- };
143
- return (_a = proto.forEach).call.apply(_a, __spreadArray([target, wrappedCb], __read(args), false));
144
- },
145
- keys: function () {
146
- var target = ProxyRaw.get(this);
147
- var proto = Reflect.getPrototypeOf(this);
148
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
149
- return proto.keys.apply(target, arguments);
150
- },
151
- values: function () {
152
- var target = ProxyRaw.get(this);
153
- var proto = Reflect.getPrototypeOf(this);
154
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
155
- var iterator = proto.values.apply(target, arguments);
156
- return patchIterator(target, '', iterator, false);
157
- },
158
- entries: function () {
159
- var target = ProxyRaw.get(this);
160
- var proto = Reflect.getPrototypeOf(this);
161
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
162
- var iterator = proto.entries.apply(target, arguments);
163
- return patchIterator(target, '', iterator, true);
164
- }
165
- },
166
- _a[Symbol.iterator] = function () {
167
- var target = ProxyRaw.get(this);
168
- var proto = Reflect.getPrototypeOf(this);
169
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
170
- var iterator = proto[Symbol.iterator].apply(target, arguments);
171
- return patchIterator(target, '', iterator, target instanceof Map);
172
- },
173
- Object.defineProperty(_a, "size", {
174
- get: function () {
175
- var target = ProxyRaw.get(this);
176
- var proto = Reflect.getPrototypeOf(this);
177
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
178
- return Reflect.get(proto, 'size', target);
179
- },
180
- enumerable: false,
181
- configurable: true
182
- }),
183
- _a);
184
- var collectionHandlers = {
185
- get: function (target, key, receiver) {
186
- // instrument methods and property accessors to be reactive
187
- target = hasOwnProperty.call(instrumentations, key)
188
- ? instrumentations
189
- : target;
190
- return Reflect.get(target, key, receiver);
191
- },
192
- };
193
- var baseHandlers = {
194
- get: function (target, key, receiver) {
195
- if (!key)
196
- return;
197
- var result = target[key]; // use Reflect.get is too slow
198
- if (typeof key === 'symbol' && wellKnownSymbols.has(key)) {
199
- return result;
200
- }
201
- bindTargetKeyWithCurrentReaction({ target: target, key: key, receiver: receiver, type: 'get' });
202
- var observableResult = RawProxy.get(result);
203
- if (observableResult) {
204
- return observableResult;
205
- }
206
- if (!isObservable(result) && isSupportObservable(result)) {
207
- var descriptor = Reflect.getOwnPropertyDescriptor(target, key);
208
- if (!descriptor ||
209
- !(descriptor.writable === false && descriptor.configurable === false)) {
210
- return createObservable(target, key, result);
211
- }
212
- }
213
- return result;
214
- },
215
- has: function (target, key) {
216
- var result = Reflect.has(target, key);
217
- bindTargetKeyWithCurrentReaction({ target: target, key: key, type: 'has' });
218
- return result;
219
- },
220
- ownKeys: function (target) {
221
- var keys = Reflect.ownKeys(target);
222
- bindTargetKeyWithCurrentReaction({ target: target, type: 'iterate' });
223
- return keys;
224
- },
225
- set: function (target, key, value, receiver) {
226
- var hadKey = hasOwnProperty.call(target, key);
227
- var newValue = createObservable(target, key, value);
228
- var oldValue = target[key];
229
- target[key] = newValue; // use Reflect.set is too slow
230
- if (!hadKey) {
231
- runReactionsFromTargetKey({
232
- target: target,
233
- key: key,
234
- value: newValue,
235
- oldValue: oldValue,
236
- receiver: receiver,
237
- type: 'add',
238
- });
239
- }
240
- else if (value !== oldValue) {
241
- runReactionsFromTargetKey({
242
- target: target,
243
- key: key,
244
- value: newValue,
245
- oldValue: oldValue,
246
- receiver: receiver,
247
- type: 'set',
248
- });
249
- }
250
- return true;
251
- },
252
- deleteProperty: function (target, key) {
253
- var oldValue = target[key];
254
- delete target[key];
255
- runReactionsFromTargetKey({
256
- target: target,
257
- key: key,
258
- oldValue: oldValue,
259
- type: 'delete',
260
- });
261
- return true;
262
- },
263
- };
264
-
265
- export { baseHandlers, collectionHandlers };
@@ -1,114 +0,0 @@
1
- import { isNormalType, isCollectionType, isFn } from './checkers.js';
2
- import { MakeObservableSymbol, ProxyRaw, RawShallowProxy, RawProxy } from './environment.js';
3
- import { baseHandlers, collectionHandlers } from './handlers.js';
4
- import { getDataNode, buildDataTree } from './tree.js';
5
- import { isSupportObservable } from './externals.js';
6
-
7
- var createNormalProxy = function (target, shallow) {
8
- var proxy = new Proxy(target, baseHandlers);
9
- ProxyRaw.set(proxy, target);
10
- if (shallow) {
11
- RawShallowProxy.set(target, proxy);
12
- }
13
- else {
14
- RawProxy.set(target, proxy);
15
- }
16
- return proxy;
17
- };
18
- var createCollectionProxy = function (target, shallow) {
19
- var proxy = new Proxy(target, collectionHandlers);
20
- ProxyRaw.set(proxy, target);
21
- if (shallow) {
22
- RawShallowProxy.set(target, proxy);
23
- }
24
- else {
25
- RawProxy.set(target, proxy);
26
- }
27
- return proxy;
28
- };
29
- var createShallowProxy = function (target) {
30
- if (isNormalType(target))
31
- return createNormalProxy(target, true);
32
- if (isCollectionType(target))
33
- return createCollectionProxy(target, true);
34
- return target;
35
- };
36
- var createObservable = function (target, key, value, shallow) {
37
- if (typeof value !== 'object')
38
- return value;
39
- var raw = ProxyRaw.get(value);
40
- if (!!raw) {
41
- var node = getDataNode(raw);
42
- if (!node.target)
43
- node.target = target;
44
- node.key = key;
45
- return value;
46
- }
47
- if (!isSupportObservable(value))
48
- return value;
49
- if (target) {
50
- var parentRaw = ProxyRaw.get(target) || target;
51
- var isShallowParent = RawShallowProxy.get(parentRaw);
52
- if (isShallowParent)
53
- return value;
54
- }
55
- buildDataTree(target, key, value);
56
- if (shallow)
57
- return createShallowProxy(value);
58
- if (isNormalType(value))
59
- return createNormalProxy(value);
60
- if (isCollectionType(value))
61
- return createCollectionProxy(value);
62
- return value;
63
- };
64
- var createAnnotation = function (maker) {
65
- var annotation = function (target) {
66
- return maker({ value: target });
67
- };
68
- if (isFn(maker)) {
69
- annotation[MakeObservableSymbol] = maker;
70
- }
71
- return annotation;
72
- };
73
- var createBoundaryFunction = function (start, end) {
74
- function boundary(fn) {
75
- var results;
76
- try {
77
- start();
78
- if (isFn(fn)) {
79
- results = fn();
80
- }
81
- }
82
- finally {
83
- end();
84
- }
85
- return results;
86
- }
87
- boundary.bound = createBindFunction(boundary);
88
- return boundary;
89
- };
90
- var createBindFunction = function (boundary) {
91
- function bind(callback, context) {
92
- return (function () {
93
- var args = [];
94
- for (var _i = 0; _i < arguments.length; _i++) {
95
- args[_i] = arguments[_i];
96
- }
97
- return boundary(function () { return callback.apply(context, args); });
98
- });
99
- }
100
- return bind;
101
- };
102
- var createBoundaryAnnotation = function (start, end) {
103
- var boundary = createBoundaryFunction(start, end);
104
- var annotation = createAnnotation(function (_a) {
105
- var target = _a.target, key = _a.key;
106
- target[key] = boundary.bound(target[key], target);
107
- return target;
108
- });
109
- boundary[MakeObservableSymbol] = annotation;
110
- boundary.bound[MakeObservableSymbol] = annotation;
111
- return boundary;
112
- };
113
-
114
- export { createAnnotation, createBindFunction, createBoundaryAnnotation, createBoundaryFunction, createObservable };
@@ -1,19 +0,0 @@
1
- import { observable as observable$1 } from './annotations/observable.js';
2
- import { box } from './annotations/box.js';
3
- import { ref } from './annotations/ref.js';
4
- import { shallow } from './annotations/shallow.js';
5
- import { computed } from './annotations/computed.js';
6
- import { MakeObservableSymbol } from './environment.js';
7
- import { createObservable } from './internals.js';
8
-
9
- function observable(target) {
10
- return createObservable(null, null, target);
11
- }
12
- observable.box = box;
13
- observable.ref = ref;
14
- observable.deep = observable$1;
15
- observable.shallow = shallow;
16
- observable.computed = computed;
17
- observable[MakeObservableSymbol] = observable$1;
18
-
19
- export { observable };
@@ -1,193 +0,0 @@
1
- import { isFn } from './checkers.js';
2
- import { ArraySet } from './array.js';
3
- import { RawReactionsMap, ReactionStack, BatchCount, PendingReactions, BatchEndpoints, PendingScopeReactions, ObserverListeners, BatchScope, UntrackCount } from './environment.js';
4
-
5
- var ITERATION_KEY = Symbol('iteration key');
6
- var addRawReactionsMap = function (target, key, reaction) {
7
- var reactionsMap = RawReactionsMap.get(target);
8
- if (reactionsMap) {
9
- var reactions = reactionsMap.get(key);
10
- if (reactions) {
11
- reactions.add(reaction);
12
- }
13
- else {
14
- reactionsMap.set(key, new ArraySet([reaction]));
15
- }
16
- return reactionsMap;
17
- }
18
- else {
19
- var reactionsMap_1 = new Map([
20
- [key, new ArraySet([reaction])],
21
- ]);
22
- RawReactionsMap.set(target, reactionsMap_1);
23
- return reactionsMap_1;
24
- }
25
- };
26
- var addReactionsMapToReaction = function (reaction, reactionsMap) {
27
- var bindSet = reaction._reactionsSet;
28
- if (bindSet) {
29
- bindSet.add(reactionsMap);
30
- }
31
- else {
32
- reaction._reactionsSet = new ArraySet([reactionsMap]);
33
- }
34
- return bindSet;
35
- };
36
- var getReactionsFromTargetKey = function (target, key) {
37
- var reactionsMap = RawReactionsMap.get(target);
38
- var reactions = [];
39
- if (reactionsMap) {
40
- var map = reactionsMap.get(key);
41
- if (map) {
42
- map.forEach(function (reaction) {
43
- if (reactions.indexOf(reaction) === -1) {
44
- reactions.push(reaction);
45
- }
46
- });
47
- }
48
- }
49
- return reactions;
50
- };
51
- var runReactions = function (target, key) {
52
- var reactions = getReactionsFromTargetKey(target, key);
53
- var prevUntrackCount = UntrackCount.value;
54
- UntrackCount.value = 0;
55
- for (var i = 0, len = reactions.length; i < len; i++) {
56
- var reaction = reactions[i];
57
- if (reaction._isComputed) {
58
- reaction._scheduler(reaction);
59
- }
60
- else if (isScopeBatching()) {
61
- PendingScopeReactions.add(reaction);
62
- }
63
- else if (isBatching()) {
64
- PendingReactions.add(reaction);
65
- }
66
- else {
67
- if (isFn(reaction._scheduler)) {
68
- reaction._scheduler(reaction);
69
- }
70
- else {
71
- reaction();
72
- }
73
- }
74
- }
75
- UntrackCount.value = prevUntrackCount;
76
- };
77
- var notifyObservers = function (operation) {
78
- ObserverListeners.forEach(function (fn) { return fn(operation); });
79
- };
80
- var bindTargetKeyWithCurrentReaction = function (operation) {
81
- var key = operation.key, type = operation.type, target = operation.target;
82
- if (type === 'iterate') {
83
- key = ITERATION_KEY;
84
- }
85
- var current = ReactionStack[ReactionStack.length - 1];
86
- if (isUntracking())
87
- return;
88
- if (current) {
89
- addReactionsMapToReaction(current, addRawReactionsMap(target, key, current));
90
- }
91
- };
92
- var bindComputedReactions = function (reaction) {
93
- if (isFn(reaction)) {
94
- var current = ReactionStack[ReactionStack.length - 1];
95
- if (current) {
96
- var computes = current._computesSet;
97
- if (computes) {
98
- computes.add(reaction);
99
- }
100
- else {
101
- current._computesSet = new ArraySet([reaction]);
102
- }
103
- }
104
- }
105
- };
106
- var runReactionsFromTargetKey = function (operation) {
107
- var key = operation.key, type = operation.type, target = operation.target, oldTarget = operation.oldTarget;
108
- batchStart();
109
- notifyObservers(operation);
110
- if (type === 'clear') {
111
- oldTarget.forEach(function (_, key) {
112
- runReactions(target, key);
113
- });
114
- }
115
- else {
116
- runReactions(target, key);
117
- }
118
- if (type === 'add' || type === 'delete' || type === 'clear') {
119
- var newKey = Array.isArray(target) ? 'length' : ITERATION_KEY;
120
- runReactions(target, newKey);
121
- }
122
- batchEnd();
123
- };
124
- var hasRunningReaction = function () {
125
- return ReactionStack.length > 0;
126
- };
127
- var releaseBindingReactions = function (reaction) {
128
- var _a;
129
- (_a = reaction._reactionsSet) === null || _a === void 0 ? void 0 : _a.forEach(function (reactionsMap) {
130
- reactionsMap.forEach(function (reactions) {
131
- reactions.delete(reaction);
132
- });
133
- });
134
- PendingReactions.delete(reaction);
135
- PendingScopeReactions.delete(reaction);
136
- delete reaction._reactionsSet;
137
- };
138
- var batchStart = function () {
139
- BatchCount.value++;
140
- };
141
- var batchEnd = function () {
142
- BatchCount.value--;
143
- if (BatchCount.value === 0) {
144
- var prevUntrackCount = UntrackCount.value;
145
- UntrackCount.value = 0;
146
- executePendingReactions();
147
- executeBatchEndpoints();
148
- UntrackCount.value = prevUntrackCount;
149
- }
150
- };
151
- var batchScopeStart = function () {
152
- BatchScope.value = true;
153
- };
154
- var batchScopeEnd = function () {
155
- var prevUntrackCount = UntrackCount.value;
156
- BatchScope.value = false;
157
- UntrackCount.value = 0;
158
- PendingScopeReactions.batchDelete(function (reaction) {
159
- if (isFn(reaction._scheduler)) {
160
- reaction._scheduler(reaction);
161
- }
162
- else {
163
- reaction();
164
- }
165
- });
166
- UntrackCount.value = prevUntrackCount;
167
- };
168
- var untrackStart = function () {
169
- UntrackCount.value++;
170
- };
171
- var untrackEnd = function () {
172
- UntrackCount.value--;
173
- };
174
- var isBatching = function () { return BatchCount.value > 0; };
175
- var isScopeBatching = function () { return BatchScope.value; };
176
- var isUntracking = function () { return UntrackCount.value > 0; };
177
- var executePendingReactions = function () {
178
- PendingReactions.batchDelete(function (reaction) {
179
- if (isFn(reaction._scheduler)) {
180
- reaction._scheduler(reaction);
181
- }
182
- else {
183
- reaction();
184
- }
185
- });
186
- };
187
- var executeBatchEndpoints = function () {
188
- BatchEndpoints.batchDelete(function (callback) {
189
- callback();
190
- });
191
- };
192
-
193
- export { batchEnd, batchScopeEnd, batchScopeStart, batchStart, bindComputedReactions, bindTargetKeyWithCurrentReaction, executeBatchEndpoints, executePendingReactions, hasRunningReaction, isBatching, isScopeBatching, isUntracking, releaseBindingReactions, runReactionsFromTargetKey, untrackEnd, untrackStart };
@@ -1,67 +0,0 @@
1
- import { ProxyRaw, RawNode } from './environment.js';
2
-
3
- var DataNode = /** @class */ (function () {
4
- function DataNode(target, key, value) {
5
- this.target = target;
6
- this.key = key;
7
- this.value = value;
8
- }
9
- Object.defineProperty(DataNode.prototype, "path", {
10
- get: function () {
11
- if (!this.parent)
12
- return this.key ? [this.key] : [];
13
- return this.parent.path.concat(this.key);
14
- },
15
- enumerable: false,
16
- configurable: true
17
- });
18
- Object.defineProperty(DataNode.prototype, "targetRaw", {
19
- get: function () {
20
- return ProxyRaw.get(this.target) || this.target;
21
- },
22
- enumerable: false,
23
- configurable: true
24
- });
25
- Object.defineProperty(DataNode.prototype, "parent", {
26
- get: function () {
27
- if (!this.target)
28
- return;
29
- return getDataNode(this.targetRaw);
30
- },
31
- enumerable: false,
32
- configurable: true
33
- });
34
- DataNode.prototype.isEqual = function (node) {
35
- if (this.key) {
36
- return node.targetRaw === this.targetRaw && node.key === this.key;
37
- }
38
- return node.value === this.value;
39
- };
40
- DataNode.prototype.contains = function (node) {
41
- if (node === this)
42
- return true;
43
- var parent = node.parent;
44
- while (!!parent) {
45
- if (this.isEqual(parent))
46
- return true;
47
- parent = parent.parent;
48
- }
49
- return false;
50
- };
51
- return DataNode;
52
- }());
53
- var getDataNode = function (raw) {
54
- return RawNode.get(raw);
55
- };
56
- var setDataNode = function (raw, node) {
57
- RawNode.set(raw, node);
58
- };
59
- var buildDataTree = function (target, key, value) {
60
- var raw = ProxyRaw.get(value) || value;
61
- var currentNode = getDataNode(raw);
62
- if (currentNode)
63
- return currentNode;
64
- setDataNode(raw, new DataNode(target, key, value));
65
- };
66
-
67
- export { DataNode, buildDataTree, getDataNode, setDataNode };
@@ -1,6 +0,0 @@
1
- import { createBoundaryFunction } from './internals.js';
2
- import { untrackEnd, untrackStart } from './reaction.js';
3
-
4
- var untracked = createBoundaryFunction(untrackStart, untrackEnd);
5
-
6
- export { untracked };