annil 1.7.4 → 1.7.5-beta.4

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 (311) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +11 -7
  3. package/dist/api/DefineComponent/NameOrPage/NameOrPathOption.d.ts +9 -0
  4. package/dist/api/DefineComponent/ReturnType/ComponentDoc.d.ts +9 -0
  5. package/dist/api/DefineComponent/ReturnType/GetCustomEventDocOfSubDoc.d.ts +8 -0
  6. package/dist/api/DefineComponent/ReturnType/PageDoc.d.ts +9 -0
  7. package/dist/api/DefineComponent/RootComponent/RootComponentOption.d.ts +6 -0
  8. package/dist/api/DefineComponent/SubComponents/SubComponentsOption.d.ts +6 -0
  9. package/dist/api/DefineComponent/index.d.ts +5 -4
  10. package/dist/api/DefineComponent/index.js +8 -2
  11. package/dist/api/DefineComponent/index.js.map +1 -1
  12. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/computedUpdater.d.ts +1 -1
  13. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/computedUpdater.js +5 -0
  14. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/computedUpdater.js.map +1 -0
  15. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/data-tracer.d.ts +3 -1
  16. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/data-tracer.js +4 -1
  17. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/data-tracer.js.map +1 -0
  18. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/dependencesOptimize.js +5 -0
  19. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/dependencesOptimize.js.map +1 -0
  20. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/getPathsValue.d.ts +7 -0
  21. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/getPathsValue.js +30 -0
  22. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/getPathsValue.js.map +1 -0
  23. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/getPropertiesValue.js +3 -0
  24. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/getPropertiesValue.js.map +1 -0
  25. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/index.js +13 -3
  26. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/index.js.map +1 -0
  27. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/initComputedAndGetCache.d.ts +9 -0
  28. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/initComputedAndGetCache.js +21 -0
  29. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/initComputedAndGetCache.js.map +1 -0
  30. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/isEqual.d.ts +7 -0
  31. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/isEqual.js +69 -0
  32. package/dist/api/DefineComponent/normalizeOptions/computedWatchHandle/isEqual.js.map +1 -0
  33. package/dist/api/DefineComponent/normalizeOptions/customEventsHandle.d.ts +6 -0
  34. package/dist/api/DefineComponent/normalizeOptions/customEventsHandle.js +23 -0
  35. package/dist/api/DefineComponent/normalizeOptions/customEventsHandle.js.map +1 -0
  36. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/index.d.ts +6 -0
  37. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/index.js +16 -0
  38. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/index.js.map +1 -0
  39. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/isPageCheck.d.ts +5 -0
  40. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/isPageCheck.js +17 -0
  41. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/isPageCheck.js.map +1 -0
  42. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/loadReceivedDataHandle.d.ts +7 -0
  43. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/loadReceivedDataHandle.js +20 -0
  44. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/loadReceivedDataHandle.js.map +1 -0
  45. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/onLoadReceivedDataHandle.d.ts +10 -0
  46. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/onLoadReceivedDataHandle.js +26 -0
  47. package/dist/api/DefineComponent/normalizeOptions/hijackHandle/onLoadReceivedDataHandle.js.map +1 -0
  48. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/index.d.ts +20 -18
  49. package/dist/api/DefineComponent/normalizeOptions/index.js +77 -0
  50. package/dist/api/DefineComponent/normalizeOptions/index.js.map +1 -0
  51. package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/initStore/index.js +2 -0
  52. package/dist/api/DefineComponent/normalizeOptions/initStore/index.js.map +1 -0
  53. package/dist/api/DefineComponent/normalizeOptions/injectInfoHandler.d.ts +3 -0
  54. package/dist/api/DefineComponent/normalizeOptions/injectInfoHandler.js +43 -0
  55. package/dist/api/DefineComponent/normalizeOptions/injectInfoHandler.js.map +1 -0
  56. package/dist/api/DefineComponent/normalizeOptions/internalFieldProtection.d.ts +5 -0
  57. package/dist/api/DefineComponent/normalizeOptions/internalFieldProtection.js +23 -0
  58. package/dist/api/DefineComponent/normalizeOptions/internalFieldProtection.js.map +1 -0
  59. package/dist/api/DefineComponent/normalizeOptions/otherFieldsHandle.d.ts +6 -0
  60. package/dist/api/DefineComponent/normalizeOptions/otherFieldsHandle.js +24 -0
  61. package/dist/api/DefineComponent/normalizeOptions/otherFieldsHandle.js.map +1 -0
  62. package/dist/api/DefineComponent/normalizeOptions/rootComponentOptionHandle.d.ts +9 -0
  63. package/dist/api/DefineComponent/normalizeOptions/rootComponentOptionHandle.js +18 -0
  64. package/dist/api/DefineComponent/normalizeOptions/rootComponentOptionHandle.js.map +1 -0
  65. package/dist/api/DefineComponent/normalizeOptions/sameFuncFieldsCollect.d.ts +7 -0
  66. package/dist/api/DefineComponent/normalizeOptions/sameFuncFieldsCollect.js +17 -0
  67. package/dist/api/DefineComponent/normalizeOptions/sameFuncFieldsCollect.js.map +1 -0
  68. package/dist/api/DefineComponent/normalizeOptions/sameFuncOptionsHandle.d.ts +5 -0
  69. package/dist/api/DefineComponent/normalizeOptions/sameFuncOptionsHandle.js +34 -0
  70. package/dist/api/DefineComponent/normalizeOptions/sameFuncOptionsHandle.js.map +1 -0
  71. package/dist/api/DefineComponent/normalizeOptions/subComponentsOptionHandle.d.ts +3 -0
  72. package/dist/api/DefineComponent/normalizeOptions/subComponentsOptionHandle.js +11 -0
  73. package/dist/api/DefineComponent/normalizeOptions/subComponentsOptionHandle.js.map +1 -0
  74. package/dist/api/InstanceInject/instanceConfig.d.ts +4 -0
  75. package/dist/api/InstanceInject/instanceConfig.js +5 -1
  76. package/dist/api/InstanceInject/instanceConfig.js.map +1 -1
  77. package/dist/api/RootComponent/Computed/ComputedConstraint.d.ts +4 -1
  78. package/dist/api/RootComponent/Computed/ComputedOption.d.ts +23 -0
  79. package/dist/api/RootComponent/Computed/GetComputedDoc.d.ts +5 -0
  80. package/dist/api/RootComponent/CustomEvents/CustomEventConstraint.d.ts +3 -0
  81. package/dist/api/RootComponent/CustomEvents/CustomEventsOption.d.ts +29 -0
  82. package/dist/api/RootComponent/CustomEvents/GetCustomEventDoc.d.ts +13 -0
  83. package/dist/api/RootComponent/Data/DataOption.d.ts +14 -0
  84. package/dist/api/RootComponent/Events/EventsConstraint.d.ts +4 -1
  85. package/dist/api/RootComponent/Events/EventsOption.d.ts +52 -0
  86. package/dist/api/RootComponent/Instance/CustomSetData.d.ts +6 -0
  87. package/dist/api/RootComponent/Instance/RootComponentInstance.d.ts +9 -0
  88. package/dist/api/RootComponent/IsPage/IsPageOption.d.ts +3 -0
  89. package/dist/api/RootComponent/Lifetimes/LifetimesConstraint.d.ts +5 -2
  90. package/dist/api/RootComponent/Lifetimes/LifetimesOption.d.ts +26 -0
  91. package/dist/api/RootComponent/Methods/MethodsOption.d.ts +3 -0
  92. package/dist/api/RootComponent/Observers/ObserversOption.d.ts +4 -0
  93. package/dist/api/RootComponent/PageLifetimes/PageLifetimesOption.d.ts +11 -0
  94. package/dist/api/RootComponent/Properties/GetOptionalDoc.d.ts +3 -0
  95. package/dist/api/RootComponent/Properties/GetPropertiesDoc.d.ts +3 -0
  96. package/dist/api/RootComponent/Properties/GetRequiredDoc.d.ts +4 -0
  97. package/dist/api/RootComponent/Properties/PropertiesConstraint.d.ts +18 -0
  98. package/dist/api/RootComponent/Properties/PropertiesOption.d.ts +10 -0
  99. package/dist/api/RootComponent/Properties/PropertiesValueValidator.d.ts +4 -0
  100. package/dist/api/RootComponent/RootComponentDoc.d.ts +19 -0
  101. package/dist/api/RootComponent/Store/StoreOption.d.ts +12 -0
  102. package/dist/api/RootComponent/Watch/WatchOption.d.ts +4 -0
  103. package/dist/api/RootComponent/index.d.ts +17 -19
  104. package/dist/api/RootComponent/index.js +1 -0
  105. package/dist/api/RootComponent/index.js.map +1 -1
  106. package/dist/api/SubComponent/SubComponentDoc.d.ts +9 -0
  107. package/dist/api/SubComponent/SubData/SubDataConstraint.d.ts +4 -0
  108. package/dist/api/SubComponent/SubData/SubDataOption.d.ts +4 -0
  109. package/dist/api/SubComponent/SubEvents/SubEventsConstraint.d.ts +3 -0
  110. package/dist/api/SubComponent/SubEvents/SubEventsOptions.d.ts +5 -0
  111. package/dist/api/SubComponent/SubInherit/SubInheritConstraint.d.ts +4 -0
  112. package/dist/api/SubComponent/SubInherit/SubInheritOption.d.ts +6 -1
  113. package/dist/api/SubComponent/SubMethods/SubMethodsConstraint.d.ts +1 -3
  114. package/dist/api/SubComponent/SubMethods/SubMethodsOption.d.ts +3 -0
  115. package/dist/api/SubComponent/SubStore/SubStoreConstraint.d.ts +4 -0
  116. package/dist/api/SubComponent/SubStore/SubStoreOption.d.ts +14 -0
  117. package/dist/api/SubComponent/index.d.ts +10 -8
  118. package/dist/api/SubComponent/index.js +5 -0
  119. package/dist/api/SubComponent/index.js.map +1 -1
  120. package/dist/api/navigateTo.d.ts +5 -0
  121. package/dist/api/navigateTo.js +10 -1
  122. package/dist/api/navigateTo.js.map +1 -1
  123. package/dist/behaviors/BStore.d.ts +4 -0
  124. package/dist/behaviors/BStore.js +9 -0
  125. package/dist/behaviors/BStore.js.map +1 -1
  126. package/dist/behaviors/BbeforeCreated.d.ts +3 -0
  127. package/dist/behaviors/BbeforeCreated.js +8 -1
  128. package/dist/behaviors/BbeforeCreated.js.map +1 -1
  129. package/dist/index.d.ts +2 -2
  130. package/dist/index.js.map +1 -1
  131. package/dist/thirdLib/vant/Button.d.ts +14 -2
  132. package/dist/thirdLib/vant/NoticeBar.d.ts +2 -2
  133. package/dist/thirdLib/vant/Popup.d.ts +42 -2
  134. package/dist/thirdLib/wm/Textarea.d.ts +11 -2
  135. package/dist/thirdLib/wm/baseEvents.d.ts +39 -2
  136. package/dist/thirdLib/wm/scrollView.d.ts +4 -2
  137. package/dist/thirdLib/wm/scrollView.js +6 -0
  138. package/dist/thirdLib/wm/scrollView.js.map +1 -1
  139. package/dist/thirdLib/wm/swiper.d.ts +75 -5
  140. package/dist/thirdLib/wm/view.d.ts +20 -2
  141. package/dist/types/AddNullForObject.d.ts +3 -0
  142. package/dist/types/AddPrefix.d.ts +7 -0
  143. package/dist/types/{GenerateDoc.d.ts → CreateComponentType.d.ts} +3 -3
  144. package/dist/types/CreateComponentType.js +2 -0
  145. package/dist/types/CreateComponentType.js.map +1 -0
  146. package/dist/types/DetailedType.d.ts +15 -5
  147. package/dist/types/DocAssign.d.ts +3 -0
  148. package/dist/types/DocAssign.js +4 -0
  149. package/dist/types/DocAssign.js.map +1 -1
  150. package/dist/types/GetComponentPrefix.d.ts +3 -0
  151. package/dist/types/GetComponentPrefix.js +10 -0
  152. package/dist/types/GetComponentPrefix.js.map +1 -1
  153. package/dist/types/InferDetailedType.d.ts +3 -0
  154. package/dist/types/OfficialTypeAlias.d.ts +15 -9
  155. package/dist/types/OfficialTypeAlias.js +30 -0
  156. package/dist/types/OfficialTypeAlias.js.map +1 -1
  157. package/dist/types/RemoveInnerData.d.ts +3 -0
  158. package/dist/types/Replace.d.ts +11 -0
  159. package/dist/types/ReplacePrefix.d.ts +5 -0
  160. package/dist/types/ReplacePrefix.js +9 -0
  161. package/dist/types/ReplacePrefix.js.map +1 -1
  162. package/dist/types/RequiredKeys.d.ts +4 -0
  163. package/dist/types/Validators.js +7 -0
  164. package/dist/types/Validators.js.map +1 -1
  165. package/dist/utils/InnerMarker.js +1 -1
  166. package/dist/utils/InnerMarker.js.map +1 -1
  167. package/dist/utils/assertNonNullable.d.ts +2 -0
  168. package/dist/utils/assertNonNullable.js +7 -0
  169. package/dist/utils/assertNonNullable.js.map +1 -0
  170. package/dist/utils/deepClone.d.ts +3 -0
  171. package/dist/utils/deepClone.js +3 -0
  172. package/dist/utils/deepClone.js.map +1 -1
  173. package/dist/utils/isEmptyObject.d.ts +3 -0
  174. package/dist/utils/isEmptyObject.js +3 -0
  175. package/dist/utils/isEmptyObject.js.map +1 -1
  176. package/package.json +6 -6
  177. package/src/api/DefineComponent/ReturnType/ComponentDoc.ts +1 -0
  178. package/src/api/DefineComponent/ReturnType/test/normalComponentDoc.test.ts +2 -0
  179. package/src/api/DefineComponent/ReturnType/test/normalPageDoc.test.ts +3 -2
  180. package/src/api/DefineComponent/SubComponents/SubComponentsOption.ts +0 -5
  181. package/src/api/DefineComponent/SubComponents/test/normal.test.ts +2 -2
  182. package/src/api/DefineComponent/index.ts +21 -23
  183. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/computedUpdater.ts +1 -1
  184. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/data-tracer.ts +2 -3
  185. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/getPathsValue.ts +2 -1
  186. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/index.ts +7 -9
  187. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/isEqual.ts +2 -2
  188. package/src/api/DefineComponent/normalizeOptions/customEventsHandle.ts +34 -0
  189. package/src/api/DefineComponent/normalizeOptions/hijackHandle/index.ts +26 -0
  190. package/src/api/DefineComponent/normalizeOptions/hijackHandle/isPageCheck.ts +22 -0
  191. package/src/api/DefineComponent/normalizeOptions/hijackHandle/loadReceivedDataHandle.ts +25 -0
  192. package/src/api/DefineComponent/normalizeOptions/hijackHandle/onLoadReceivedDataHandle.ts +33 -0
  193. package/src/api/DefineComponent/normalizeOptions/index.ts +142 -0
  194. package/src/api/DefineComponent/{assignOptions → normalizeOptions}/initStore/index.ts +1 -0
  195. package/src/api/DefineComponent/normalizeOptions/injectInfoHandler.ts +51 -0
  196. package/src/api/DefineComponent/normalizeOptions/internalFieldProtection.ts +26 -0
  197. package/src/api/DefineComponent/normalizeOptions/otherFieldsHandle.ts +27 -0
  198. package/src/api/DefineComponent/normalizeOptions/rootComponentOptionHandle.ts +25 -0
  199. package/src/api/DefineComponent/normalizeOptions/sameFuncFieldsCollect.ts +22 -0
  200. package/src/api/DefineComponent/normalizeOptions/sameFuncOptionsHandle.ts +37 -0
  201. package/src/api/DefineComponent/normalizeOptions/subComponentsOptionHandle.ts +18 -0
  202. package/src/api/InstanceInject/inject.ts +2 -0
  203. package/src/api/InstanceInject/instanceConfig.ts +2 -4
  204. package/src/api/InstanceInject/test/normal.test.ts +1 -0
  205. package/src/api/RootComponent/Computed/ComputedConstraint.ts +1 -1
  206. package/src/api/RootComponent/Computed/test/GetComputedDoc.test.ts +1 -0
  207. package/src/api/RootComponent/Computed/test/normal.test.ts +2 -0
  208. package/src/api/RootComponent/CustomEvents/test/GetCustomEventDoc.test.ts +2 -2
  209. package/src/api/RootComponent/CustomEvents/test/GetFullEventDoc.test.ts +2 -1
  210. package/src/api/RootComponent/CustomEvents/test/GetShortEventDoc.test.ts +2 -1
  211. package/src/api/RootComponent/CustomEvents/test/error.test.ts +2 -2
  212. package/src/api/RootComponent/CustomEvents/test/normal.test.ts +2 -0
  213. package/src/api/RootComponent/Data/test/GetDataDoc.test.ts +2 -2
  214. package/src/api/RootComponent/Data/test/normal.test.ts +3 -2
  215. package/src/api/RootComponent/Events/EventsConstraint.ts +1 -1
  216. package/src/api/RootComponent/Events/test/normal.test.ts +5 -2
  217. package/src/api/RootComponent/Instance/RootComponentInstance.ts +9 -0
  218. package/src/api/RootComponent/Instance/test/CustomEventsDoc.test.ts +1 -0
  219. package/src/api/RootComponent/Instance/test/customEvents/normal.test.ts +1 -0
  220. package/src/api/RootComponent/Instance/test/methods/mormal.test.ts +2 -2
  221. package/src/api/RootComponent/Instance/test/properties/mormal.test.ts +2 -0
  222. package/src/api/RootComponent/Instance/test/setData/error.test.ts +1 -1
  223. package/src/api/RootComponent/Instance/test/setData/normal.test.ts +1 -1
  224. package/src/api/RootComponent/IsPage/test/normal.test.ts +2 -0
  225. package/src/api/RootComponent/Lifetimes/LifetimesConstraint.ts +2 -2
  226. package/src/api/RootComponent/Lifetimes/test/error.test.ts +22 -8
  227. package/src/api/RootComponent/Lifetimes/test/normal.test.ts +8 -3
  228. package/src/api/RootComponent/Methods/test/error.test.ts +4 -4
  229. package/src/api/RootComponent/Methods/test/mormal.test.ts +2 -2
  230. package/src/api/RootComponent/Observers/test/normal.test.ts +8 -4
  231. package/src/api/RootComponent/PageLifetimes/test/error.test.ts +17 -7
  232. package/src/api/RootComponent/PageLifetimes/test/normal.test.ts +12 -5
  233. package/src/api/RootComponent/Properties/test/normalEmpty.test.ts +6 -6
  234. package/src/api/RootComponent/Properties/test/normalOptional.test.ts +4 -4
  235. package/src/api/RootComponent/Properties/test/normalRequired.test.ts +3 -3
  236. package/src/api/RootComponent/Store/test/normal.test.ts +4 -4
  237. package/src/api/RootComponent/Watch/test/WatchComputed.test.ts +6 -4
  238. package/src/api/RootComponent/Watch/test/WatchData.test.ts +16 -12
  239. package/src/api/RootComponent/Watch/test/WatchProperties.test.ts +58 -40
  240. package/src/api/RootComponent/Watch/test/WtachInject.test.ts +3 -2
  241. package/src/api/RootComponent/Watch/test/error.test.ts +4 -2
  242. package/src/api/RootComponent/index.ts +47 -48
  243. package/src/api/SubComponent/SubComputed/test/error.test.ts +6 -2
  244. package/src/api/SubComponent/SubComputed/test/normal.test.ts +8 -7
  245. package/src/api/SubComponent/SubData/test/normal.test.ts +2 -2
  246. package/src/api/SubComponent/SubEvents/test/error.test.ts +4 -2
  247. package/src/api/SubComponent/SubEvents/test/normal.test.ts +4 -2
  248. package/src/api/SubComponent/SubInherit/SubInheritOption.ts +1 -3
  249. package/src/api/SubComponent/SubInherit/test/error.test.ts +2 -2
  250. package/src/api/SubComponent/SubInstance/test/error.test.ts +1 -1
  251. package/src/api/SubComponent/SubInstance/test/normal.test.ts +10 -6
  252. package/src/api/SubComponent/SubMethods/SubMethodsConstraint.ts +1 -3
  253. package/src/api/SubComponent/SubMethods/test/error.test.ts +8 -2
  254. package/src/api/SubComponent/SubMethods/test/normarl.test.ts +6 -2
  255. package/src/api/SubComponent/SubReturnType/test/error.test.ts +2 -2
  256. package/src/api/SubComponent/SubReturnType/test/normal.test.ts +2 -2
  257. package/src/api/SubComponent/SubWatch/test/WatchComputed.test.ts +21 -14
  258. package/src/api/SubComponent/SubWatch/test/WatchProperties.test.ts +58 -58
  259. package/src/api/SubComponent/SubWatch/test/WatchRootData.test.ts +43 -31
  260. package/src/api/SubComponent/SubWatch/test/WatchSubData.test.ts +9 -6
  261. package/src/api/SubComponent/SubWatch/test/WtachInject.test.ts +3 -2
  262. package/src/api/SubComponent/SubWatch/test/error.test.ts +5 -4
  263. package/src/api/SubComponent/index.ts +92 -95
  264. package/src/api/navigateTo.ts +1 -1
  265. package/src/behaviors/BStore.ts +7 -3
  266. package/src/behaviors/BbeforeCreated.ts +8 -3
  267. package/src/index.ts +2 -2
  268. package/src/thirdLib/vant/Button.ts +2 -2
  269. package/src/thirdLib/vant/NoticeBar.ts +2 -2
  270. package/src/thirdLib/vant/Popup.ts +2 -2
  271. package/src/thirdLib/wm/Textarea.ts +2 -2
  272. package/src/thirdLib/wm/baseEvents.ts +3 -2
  273. package/src/thirdLib/wm/scrollView.ts +4 -2
  274. package/src/thirdLib/wm/swiper.ts +10 -5
  275. package/src/thirdLib/wm/view.ts +4 -2
  276. package/src/types/{GenerateDoc.ts → CreateComponentType.ts} +3 -6
  277. package/src/types/DetailedType.ts +1 -1
  278. package/src/types/InferDetailedType.test.ts +8 -13
  279. package/src/types/OfficialTypeAlias.ts +31 -31
  280. package/src/utils/assertNonNullable.ts +11 -0
  281. package/src/utils/isEmptyObject.ts +1 -1
  282. package/tsconfig.json +11 -16
  283. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/computedUpdater.js.map +0 -1
  284. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/data-tracer.js.map +0 -1
  285. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/dependencesOptimize.js.map +0 -1
  286. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/getPathsValue.d.ts +0 -1
  287. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/getPathsValue.js +0 -19
  288. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/getPathsValue.js.map +0 -1
  289. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/getPropertiesValue.js.map +0 -1
  290. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/index.js.map +0 -1
  291. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/initComputedAndGetCache.js.map +0 -1
  292. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/isEqual.d.ts +0 -1
  293. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/isEqual.js +0 -48
  294. package/dist/api/DefineComponent/assignOptions/computedWatchHandle/isEqual.js.map +0 -1
  295. package/dist/api/DefineComponent/assignOptions/index.js +0 -203
  296. package/dist/api/DefineComponent/assignOptions/index.js.map +0 -1
  297. package/dist/api/DefineComponent/assignOptions/initStore/index.js.map +0 -1
  298. package/dist/types/CreateComponentDoc.d.ts +0 -10
  299. package/dist/types/CreateComponentDoc.js +0 -2
  300. package/dist/types/CreateComponentDoc.js.map +0 -1
  301. package/dist/types/GenerateDoc.js +0 -2
  302. package/dist/types/GenerateDoc.js.map +0 -1
  303. package/src/api/DefineComponent/assignOptions/index.ts +0 -469
  304. package/src/types/CreateComponentDoc.ts +0 -17
  305. /package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/dependencesOptimize.d.ts +0 -0
  306. /package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/getPropertiesValue.d.ts +0 -0
  307. /package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/index.d.ts +0 -0
  308. /package/dist/api/DefineComponent/{assignOptions → normalizeOptions}/initStore/index.d.ts +0 -0
  309. /package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/dependencesOptimize.ts +0 -0
  310. /package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/getPropertiesValue.ts +0 -0
  311. /package/src/api/DefineComponent/{assignOptions → normalizeOptions}/computedWatchHandle/initComputedAndGetCache.ts +0 -0
@@ -1,203 +0,0 @@
1
- import { BBeforeCreate } from "../../../behaviors/BbeforeCreated";
2
- import { deepClone } from "../../../utils/deepClone";
3
- import { INNERMARKER } from "../../../utils/InnerMarker";
4
- import { isEmptyObject } from "../../../utils/isEmptyObject";
5
- import { instanceConfig } from "../../InstanceInject/instanceConfig";
6
- import { BStore } from "../../../behaviors/BStore";
7
- import { computedWatchHandle } from "./computedWatchHandle";
8
- import { initStore } from "./initStore";
9
- export function isPageCheck(isPage) {
10
- return function () {
11
- const route = this.route;
12
- if (route && isPage !== true) {
13
- throw Error(`页面 /${route} 中, RootComponent构建页面时,isPage字段值应为 true`);
14
- }
15
- if (!route && isPage !== false && isPage !== undefined) {
16
- throw Error(`组件 ${this.is} 中 RootComponent构建组件时,可不写isPage字段或值为 false`);
17
- }
18
- };
19
- }
20
- function onLoadReceivedDataHandle(option) {
21
- const innerData = option[INNERMARKER.url];
22
- if (innerData === undefined)
23
- return;
24
- if (innerData !== INNERMARKER.url) {
25
- const decodeOption = JSON.parse(decodeURIComponent(innerData));
26
- for (const key in decodeOption) {
27
- option[key] = decodeOption[key];
28
- }
29
- }
30
- delete option[INNERMARKER.url];
31
- this.setData(option);
32
- }
33
- function loadReceivedDataHandle(option) {
34
- const innerData = option[INNERMARKER.url];
35
- if (innerData === undefined)
36
- return;
37
- const decodeOption = JSON.parse(decodeURIComponent(innerData));
38
- for (const key in decodeOption) {
39
- option[key] = decodeOption[key];
40
- }
41
- option[INNERMARKER.url] = INNERMARKER.url;
42
- }
43
- function hijack(config, field, before) {
44
- const originalFunc = config[field];
45
- config[field] = function (...args) {
46
- before.forEach(func => func.call(this, ...args));
47
- originalFunc && originalFunc.apply(this, args);
48
- };
49
- return;
50
- }
51
- function InternalFieldProtection(config, keys) {
52
- const methodsConfigKeys = Object.keys(config);
53
- for (const key of keys) {
54
- if (methodsConfigKeys.includes(key)) {
55
- throw Error(`${key}已被内部字段占用`);
56
- }
57
- }
58
- }
59
- function _funcOptionsHandle(config, configList) {
60
- for (const key in configList) {
61
- config[key] = function (...args) {
62
- configList[key].forEach(ele => ele.call(this, ...args));
63
- };
64
- }
65
- }
66
- function assignFuncOptions(finalOptionsForComponent, isPage, funcOptions) {
67
- if (isPage) {
68
- !(isEmptyObject(funcOptions.pageLifetimes))
69
- && _funcOptionsHandle(finalOptionsForComponent.methods, funcOptions.pageLifetimes);
70
- }
71
- else {
72
- !(isEmptyObject(funcOptions.pageLifetimes))
73
- && _funcOptionsHandle(finalOptionsForComponent.pageLifetimes, funcOptions.pageLifetimes);
74
- }
75
- funcOptions.lifetimes && _funcOptionsHandle(finalOptionsForComponent.lifetimes || (finalOptionsForComponent.lifetimes = {}), funcOptions.lifetimes);
76
- funcOptions.watch && _funcOptionsHandle(finalOptionsForComponent.watch || (finalOptionsForComponent.watch = {}), funcOptions.watch);
77
- }
78
- function funcFieldsCollect(options, funcOptions) {
79
- var _a;
80
- let key;
81
- for (key in funcOptions) {
82
- const optionsKeyConfig = options[key];
83
- if (optionsKeyConfig) {
84
- for (const _key in optionsKeyConfig) {
85
- ((_a = funcOptions[key])[_key] || (_a[_key] = [])).push(optionsKeyConfig[_key]);
86
- }
87
- }
88
- }
89
- }
90
- function otherFieldsHandle(finalOptions, rootComponentOptions) {
91
- for (const key in rootComponentOptions) {
92
- const config = rootComponentOptions[key];
93
- if (Array.isArray(config) === true) {
94
- finalOptions[key].push(...config);
95
- }
96
- else if (typeof config === "object") {
97
- Object.assign(finalOptions[key] || (finalOptions[key] = {}), config);
98
- }
99
- else {
100
- finalOptions[key] = config;
101
- }
102
- }
103
- }
104
- function eventsHandle(methods, eventsConfig) {
105
- Object.assign(methods, eventsConfig);
106
- }
107
- function assignSubComponentsOption(componentOptions, subComponents, funcOptions) {
108
- subComponents.forEach((subOption) => {
109
- subOption.events && eventsHandle(componentOptions.methods, subOption.events);
110
- funcFieldsCollect(subOption, funcOptions);
111
- otherFieldsHandle(componentOptions, subOption);
112
- });
113
- }
114
- function IsFullCustomEvents(customEventOptions) {
115
- return Object.prototype.toString.call(customEventOptions) === "[object Object]";
116
- }
117
- function customEventsHandle(methods, customEventsConfig) {
118
- for (const key in customEventsConfig) {
119
- const customEventOptions = customEventsConfig[key];
120
- if (IsFullCustomEvents(customEventOptions)) {
121
- methods[key] = function (detail) {
122
- this.triggerEvent(key, detail, customEventOptions.options);
123
- };
124
- }
125
- else {
126
- methods[key] = function (detail) {
127
- this.triggerEvent(key, detail);
128
- };
129
- }
130
- }
131
- }
132
- function assignRootComponentOption(finalOptions, funcOptions, rootComponentOptions) {
133
- rootComponentOptions.customEvents && customEventsHandle(finalOptions.methods, rootComponentOptions.customEvents);
134
- rootComponentOptions.events && eventsHandle(finalOptions.methods, rootComponentOptions.events);
135
- funcFieldsCollect(rootComponentOptions, funcOptions);
136
- otherFieldsHandle(finalOptions, rootComponentOptions);
137
- }
138
- function merge(target, source) {
139
- for (const key in source) {
140
- const sourceVal = source[key];
141
- if (key in target) {
142
- const targetVal = target[key];
143
- switch (key) {
144
- case "behaviors":
145
- {
146
- target[key] = [...sourceVal, ...targetVal];
147
- }
148
- break;
149
- default:
150
- {
151
- target[key] = Object.assign(targetVal, sourceVal);
152
- }
153
- break;
154
- }
155
- }
156
- else {
157
- target[key] = sourceVal;
158
- }
159
- }
160
- return target;
161
- }
162
- export function assignOptions(defineComponentOption) {
163
- const rootComponentOption = defineComponentOption.rootComponent;
164
- const subComponentsOption = defineComponentOption.subComponents;
165
- const finalOptionsForComponent = merge(Object.assign({}, deepClone(instanceConfig.injectInfo)), {
166
- observers: {},
167
- data: {},
168
- methods: {},
169
- behaviors: [BStore],
170
- externalClasses: [],
171
- pageLifetimes: {},
172
- });
173
- const funcOptions = {
174
- pageLifetimes: {},
175
- lifetimes: {},
176
- watch: {},
177
- observers: {},
178
- };
179
- if (rootComponentOption && !isEmptyObject(rootComponentOption)) {
180
- assignRootComponentOption(finalOptionsForComponent, funcOptions, rootComponentOption);
181
- }
182
- if (subComponentsOption && !isEmptyObject(subComponentsOption)) {
183
- assignSubComponentsOption(finalOptionsForComponent, subComponentsOption, funcOptions);
184
- }
185
- assignFuncOptions(finalOptionsForComponent, rootComponentOption === null || rootComponentOption === void 0 ? void 0 : rootComponentOption.isPage, funcOptions);
186
- InternalFieldProtection(finalOptionsForComponent.methods, ["disposer", "__computedUpdater__"]);
187
- InternalFieldProtection(finalOptionsForComponent.data, [
188
- "__computedCache__",
189
- "__storeConfig__",
190
- "__watchOldValue__",
191
- ]);
192
- finalOptionsForComponent.isPage
193
- && hijack(finalOptionsForComponent.pageLifetimes, "load", [loadReceivedDataHandle]);
194
- hijack(finalOptionsForComponent.methods, "onLoad", [onLoadReceivedDataHandle]);
195
- hijack(finalOptionsForComponent.lifetimes, "attached", [isPageCheck(rootComponentOption === null || rootComponentOption === void 0 ? void 0 : rootComponentOption.isPage)]);
196
- finalOptionsForComponent.isPage
197
- && finalOptionsForComponent.options && Reflect.deleteProperty(finalOptionsForComponent.options, "virtualHost");
198
- initStore(finalOptionsForComponent);
199
- computedWatchHandle(finalOptionsForComponent);
200
- finalOptionsForComponent.behaviors.push(BBeforeCreate);
201
- return finalOptionsForComponent;
202
- }
203
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/DefineComponent/assignOptions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAmBrE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAuDxC,MAAM,UAAU,WAAW,CAAC,MAA2B;IACrD,OAAO;QACL,MAAM,KAAK,GAAI,IAAqB,CAAC,KAA2B,CAAC;QACjE,IAAI,KAAK,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAE7B,MAAM,KAAK,CACT,OAAO,KAAK,yCAAyC,CACtD,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,KAAK,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YAEvD,MAAM,KAAK,CACT,MAAM,IAAI,CAAC,EAAE,6CAA6C,CAC3D,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAiBD,SAAS,wBAAwB,CAE/B,MAA8C;IAE9C,MAAM,SAAS,GAAuB,MAAM,CAAC,WAAW,CAAC,GAAG,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AAC,CAAC,CAC3C,CAAC;IASF,wBAAwB,CAAC,MAAM;WAC1B,wBAAwB,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,wBAAwB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAGjH,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAGpC,mBAAmB,CAAC,wBAAwB,CAAC,CAAC;IAG9C,wBAAwB,CAAC,SAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAExD,OAAO,wBAAwB,CAAC;AAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/DefineComponent/assignOptions/initStore/index.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,SAAS,CAAC,wBAAiD;IACzE,MAAM,WAAW,GAAG,wBAAwB,CAAC,KAAK,CAAC;IACnD,IAAI,WAAW,EAAE,CAAC;QAChB,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAAM,CAAgB,CAAC;QAChD,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;YAC9B,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAGhE,CAAC;QACD,wBAAwB,CAAC,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC;QAE5D,OAAO,wBAAwB,CAAC,KAAK,CAAC;IACxC,CAAC;AACH,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { IfEquals } from "hry-types/src/Any/IfEquals";
2
- import type { ComputeIntersectionDeep } from "hry-types/src/Object/ComputeIntersectionDeep";
3
- import type { ComponentDoc } from "../api/DefineComponent/ReturnType/ComponentDoc";
4
- import type { BaseEvents } from "../thirdLib/wm/baseEvents";
5
- import type { AddPrefix } from "./AddPrefix";
6
- export type CreateComponentDoc<TName extends string, T extends ComponentDoc> = ComputeIntersectionDeep<IfEquals<T["properties"], unknown, {}, {
7
- properties: AddPrefix<T["properties"] & {}, TName>;
8
- }> & {
9
- customEvents: AddPrefix<T["customEvents"] & BaseEvents, TName>;
10
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CreateComponentDoc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateComponentDoc.js","sourceRoot":"","sources":["../../src/types/CreateComponentDoc.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=GenerateDoc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenerateDoc.js","sourceRoot":"","sources":["../../src/types/GenerateDoc.ts"],"names":[],"mappings":""}