@angular-wave/angular.ts 0.0.15 → 0.0.17

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 (294) hide show
  1. package/README.md +5 -3
  2. package/dist/angular-ts.esm.js +1 -1
  3. package/dist/angular-ts.umd.js +1 -1
  4. package/index.html +66 -57
  5. package/package.json +1 -1
  6. package/src/animations/animate-children-directive.js +1 -1
  7. package/src/animations/animate-css-driver.js +1 -1
  8. package/src/animations/animate-css.js +2 -2
  9. package/src/animations/animate-js-driver.js +1 -1
  10. package/src/animations/animate-js.js +2 -2
  11. package/src/animations/animate-queue.js +3 -4
  12. package/src/animations/animation.js +1 -1
  13. package/src/animations/shared.js +4 -4
  14. package/src/core/animate-runner.js +1 -1
  15. package/src/core/animate.js +4 -5
  16. package/src/core/compile.js +5 -6
  17. package/src/core/controller.js +4 -3
  18. package/src/core/filter.js +1 -1
  19. package/src/core/interpolate.js +1 -1
  20. package/src/core/interval-factory.js +1 -1
  21. package/src/core/interval.js +1 -1
  22. package/src/core/location.js +1 -1
  23. package/src/core/parser/parse.js +1 -1
  24. package/src/core/q.js +2 -3
  25. package/src/core/root-scope.js +1 -1
  26. package/src/core/sanitize-uri.js +1 -1
  27. package/src/core/sce.js +1 -1
  28. package/src/core/task-tracker-factory.js +1 -1
  29. package/src/core/timeout.js +1 -1
  30. package/src/core/urlUtils.js +1 -1
  31. package/src/directive/attrs.js +1 -1
  32. package/src/directive/bind.js +1 -1
  33. package/src/directive/class.js +2 -2
  34. package/src/directive/events.js +1 -1
  35. package/src/directive/form.js +1 -1
  36. package/src/directive/include.js +1 -1
  37. package/src/directive/input.js +1 -1
  38. package/src/directive/list.js +2 -2
  39. package/src/directive/model-options.js +1 -1
  40. package/src/directive/model.js +1 -1
  41. package/src/directive/options.js +2 -3
  42. package/src/directive/ref.js +1 -1
  43. package/src/directive/repeat.js +1 -1
  44. package/src/directive/select.js +1 -1
  45. package/src/directive/switch.js +1 -1
  46. package/src/directive/transclude.js +1 -1
  47. package/src/directive/validators.js +1 -1
  48. package/src/exts/aria.js +1 -1
  49. package/src/exts/messages.js +3 -3
  50. package/src/exts/messages.md +28 -31
  51. package/src/filters/filter.js +2 -3
  52. package/src/filters/filters.js +1 -1
  53. package/src/filters/limit-to.js +1 -1
  54. package/src/filters/order-by.js +2 -3
  55. package/src/injector.js +8 -9
  56. package/src/jqLite.js +3 -4
  57. package/src/loader.js +1 -3
  58. package/src/public.js +1 -1
  59. package/src/router/common/coreservices.js +5 -0
  60. package/src/router/{core/common → common}/queue.js +1 -1
  61. package/src/router/{core/common → common}/trace.js +21 -19
  62. package/src/router/{adapter/directives → directives}/stateDirectives.js +24 -28
  63. package/src/router/{adapter/directives → directives}/viewDirective.js +9 -9
  64. package/src/router/{core/globals.js → globals.js} +13 -3
  65. package/src/router/{core/hooks → hooks}/coreResolvables.js +6 -4
  66. package/src/router/{core/hooks → hooks}/lazyLoad.js +5 -2
  67. package/src/router/{core/hooks → hooks}/redirectTo.js +1 -1
  68. package/src/router/{core/hooks → hooks}/resolve.js +2 -2
  69. package/src/router/{core/hooks → hooks}/updateGlobals.js +1 -1
  70. package/src/router/{core/hooks → hooks}/views.js +1 -1
  71. package/src/router/index.js +60 -0
  72. package/src/router/{adapter/injectables.js → injectables.js} +9 -9
  73. package/src/router/{adapter/locationServices.js → locationServices.js} +19 -12
  74. package/src/router/{core/params → params}/param.js +5 -10
  75. package/src/router/{core/params → params}/paramType.js +4 -4
  76. package/src/router/{core/params → params}/paramTypes.js +4 -3
  77. package/src/router/{core/params → params}/stateParams.js +1 -1
  78. package/src/router/{core/path → path}/pathNode.js +2 -2
  79. package/src/router/{core/path → path}/pathUtils.js +13 -7
  80. package/src/router/{core/resolve → resolve}/resolvable.js +5 -5
  81. package/src/router/{core/resolve → resolve}/resolveContext.js +16 -6
  82. package/src/router/router.js +172 -72
  83. package/src/router/{adapter/services.js → services.js} +47 -27
  84. package/src/router/{core/state → state}/stateBuilder.js +14 -10
  85. package/src/router/{core/state → state}/stateMatcher.js +2 -3
  86. package/src/router/{core/state → state}/stateObject.js +8 -6
  87. package/src/router/{core/state → state}/stateQueueManager.js +3 -3
  88. package/src/router/{core/state → state}/stateRegistry.js +6 -7
  89. package/src/router/{core/state → state}/stateService.js +12 -15
  90. package/src/router/{core/state → state}/targetState.js +2 -2
  91. package/src/router/{adapter/statebuilders → state}/views.js +17 -15
  92. package/src/router/{adapter/stateProvider.js → stateProvider.js} +52 -9
  93. package/src/router/{adapter/templateFactory.js → templateFactory.js} +10 -19
  94. package/src/router/{core/transition → transition}/hookBuilder.js +4 -3
  95. package/src/router/{core/transition → transition}/hookRegistry.js +3 -6
  96. package/src/router/{core/transition → transition}/rejectFactory.js +4 -5
  97. package/src/router/{core/transition → transition}/transition.js +10 -12
  98. package/src/router/{core/transition → transition}/transitionHook.js +4 -4
  99. package/src/router/{core/transition → transition}/transitionService.js +13 -13
  100. package/src/router/{core/url → url}/urlConfig.js +28 -19
  101. package/src/router/{core/url → url}/urlMatcher.js +14 -16
  102. package/src/router/{core/url → url}/urlMatcherFactory.js +7 -6
  103. package/src/router/{core/url → url}/urlRouter.js +6 -30
  104. package/src/router/{core/url → url}/urlRule.js +3 -3
  105. package/src/router/{core/url → url}/urlRules.js +10 -11
  106. package/src/router/{core/url → url}/urlService.js +12 -6
  107. package/src/router/{core/view → view}/view.js +32 -27
  108. package/src/router/{adapter/viewScroll.js → viewScroll.js} +3 -0
  109. package/src/services/anchor-scroll.js +1 -1
  110. package/src/services/browser.js +1 -1
  111. package/src/services/cache-factory.js +7 -1
  112. package/src/services/cookie-reader.js +1 -1
  113. package/src/services/http-backend.js +6 -1
  114. package/src/services/http.js +4 -5
  115. package/src/services/log.js +1 -1
  116. package/src/services/template-request.js +2 -2
  117. package/src/{router/core/common → shared}/common.js +35 -16
  118. package/src/{router/core/common → shared}/predicates.js +2 -12
  119. package/src/{router/core/common → shared}/strings.js +5 -13
  120. package/src/{core → shared}/utils.js +13 -29
  121. package/test/angular.spec.js +1 -31
  122. package/test/{ng → core}/animate.spec.js +1 -1
  123. package/test/{ng → core}/compile.spec.js +2 -3
  124. package/test/{ng → core}/http.spec.js +2 -2
  125. package/test/{ng → core}/on.spec.js +1 -1
  126. package/test/{ng → core}/parse.spec.js +1 -1
  127. package/test/{ng → core}/prop.spec.js +1 -1
  128. package/test/{ng → core}/scope.spec.js +1 -1
  129. package/test/{ng/directive → directive}/a.spec.js +4 -4
  130. package/test/{ng/directive → directive}/bind.spec.js +3 -3
  131. package/test/{ng/directive → directive}/boolean.spec.js +2 -2
  132. package/test/{ng/directive → directive}/change.spec.js +3 -3
  133. package/test/{ng/directive → directive}/class.spec.js +4 -4
  134. package/test/{ng/directive → directive}/click.spec.js +3 -3
  135. package/test/{ng/directive → directive}/cloak.spec.js +4 -4
  136. package/test/{ng/directive → directive}/constoller.spec.js +5 -5
  137. package/test/{ng/directive → directive}/element-style.spec.js +3 -3
  138. package/test/{ng/directive → directive}/event.spec.js +4 -4
  139. package/test/{ng/directive → directive}/form.spec.js +5 -5
  140. package/test/{ng/directive → directive}/href.spec.js +4 -4
  141. package/test/{ng/directive → directive}/if.spec.js +5 -5
  142. package/test/{ng/directive → directive}/include.spec.js +5 -5
  143. package/test/{ng/directive → directive}/init.spec.js +4 -4
  144. package/test/{ng/directive → directive}/input.spec.js +5 -5
  145. package/test/{ng/directive → directive}/list.spec.js +3 -3
  146. package/test/{ng/directive → directive}/model-options.spec.js +6 -6
  147. package/test/{ng/directive → directive}/model.spec.js +8 -8
  148. package/test/{ng/directive → directive}/non-bindable.spec.js +3 -3
  149. package/test/{ng/directive → directive}/options.spec.js +5 -5
  150. package/test/{ng/directive → directive}/ref.spec.js +2 -2
  151. package/test/{ng/directive → directive}/repeat.spec.js +5 -5
  152. package/test/{ng/directive → directive}/script.spec.js +3 -3
  153. package/test/{ng/directive → directive}/scrset.spec.js +3 -3
  154. package/test/{ng/directive → directive}/select.spec.js +5 -5
  155. package/test/{ng/directive → directive}/show-hide.spec.js +3 -3
  156. package/test/{ng/directive → directive}/src.spec.js +3 -3
  157. package/test/{ng/directive → directive}/style.spec.js +3 -3
  158. package/test/{ng/directive → directive}/switch.spec.js +3 -3
  159. package/test/{ng/directive → directive}/validators.spec.js +3 -3
  160. package/test/{ng/filter → filter}/filter.spec.js +4 -4
  161. package/test/{ng/filter → filter}/filters.spec.js +3 -3
  162. package/test/{ng/filter → filter}/limit-to.spec.js +3 -3
  163. package/test/{ng/filter → filter}/order-by.spec.js +2 -2
  164. package/test/injector.spec.js +1 -1
  165. package/test/jqlite.spec.js +1 -1
  166. package/test/messages/messages.spec.js +1 -1
  167. package/test/min-err.spec.js +1 -1
  168. package/test/original-test.html +4 -4
  169. package/test/router/glob.spec.js +78 -0
  170. package/test/router/state.spec.js +931 -0
  171. package/test/sanitize/bing-html.spec.js +1 -1
  172. package/test/shared/common.spec.js +283 -0
  173. package/test/shared/hof.spec.js +60 -0
  174. package/test/shared/strings.spec.js +40 -0
  175. package/test/{ng → shared}/utils.spec.js +1 -1
  176. package/types/router/angular.d.ts +1 -0
  177. package/types/router/core/common/common.d.ts +370 -0
  178. package/types/router/core/common/coreservices.d.ts +80 -0
  179. package/types/router/core/common/glob.d.ts +60 -0
  180. package/types/router/core/common/hof.d.ts +160 -0
  181. package/types/router/core/common/index.d.ts +8 -0
  182. package/types/router/core/common/predicates.d.ts +25 -0
  183. package/types/router/core/common/queue.d.ts +15 -0
  184. package/types/router/core/common/safeConsole.d.ts +5 -0
  185. package/types/router/core/common/strings.d.ts +64 -0
  186. package/types/router/core/common/trace.d.ts +114 -0
  187. package/types/router/core/globals.d.ts +45 -0
  188. package/types/router/core/hooks/coreResolvables.d.ts +4 -0
  189. package/types/router/core/hooks/ignoredTransition.d.ts +2 -0
  190. package/types/router/core/hooks/invalidTransition.d.ts +2 -0
  191. package/types/router/core/hooks/lazyLoad.d.ts +12 -0
  192. package/types/router/core/hooks/onEnterExitRetain.d.ts +4 -0
  193. package/types/router/core/hooks/redirectTo.d.ts +2 -0
  194. package/types/router/core/hooks/resolve.d.ts +5 -0
  195. package/types/router/core/hooks/updateGlobals.d.ts +2 -0
  196. package/types/router/core/hooks/url.d.ts +2 -0
  197. package/types/router/core/hooks/views.d.ts +3 -0
  198. package/types/router/core/index.d.ts +12 -0
  199. package/types/router/core/interface.d.ts +102 -0
  200. package/types/router/core/params/index.d.ts +12 -0
  201. package/types/router/core/params/interface.d.ts +606 -0
  202. package/types/router/core/params/param.d.ts +65 -0
  203. package/types/router/core/params/paramType.d.ts +65 -0
  204. package/types/router/core/params/paramTypes.d.ts +190 -0
  205. package/types/router/core/params/stateParams.d.ts +15 -0
  206. package/types/router/core/path/index.d.ts +2 -0
  207. package/types/router/core/path/pathNode.d.ts +60 -0
  208. package/types/router/core/path/pathUtils.d.ts +79 -0
  209. package/types/router/core/resolve/index.d.ts +3 -0
  210. package/types/router/core/resolve/interface.d.ts +210 -0
  211. package/types/router/core/resolve/resolvable.d.ts +69 -0
  212. package/types/router/core/resolve/resolveContext.d.ts +92 -0
  213. package/types/router/core/router.d.ts +95 -0
  214. package/types/router/core/state/index.d.ts +28 -0
  215. package/types/router/core/state/interface.d.ts +708 -0
  216. package/types/router/core/state/stateBuilder.d.ts +104 -0
  217. package/types/router/core/state/stateMatcher.d.ts +11 -0
  218. package/types/router/core/state/stateObject.d.ts +155 -0
  219. package/types/router/core/state/stateQueueManager.d.ts +24 -0
  220. package/types/router/core/state/stateRegistry.d.ts +136 -0
  221. package/types/router/core/state/stateService.d.ts +350 -0
  222. package/types/router/core/state/targetState.d.ts +100 -0
  223. package/types/router/core/transition/hookBuilder.d.ts +45 -0
  224. package/types/router/core/transition/hookRegistry.d.ts +93 -0
  225. package/types/router/core/transition/index.d.ts +20 -0
  226. package/types/router/core/transition/interface.d.ts +819 -0
  227. package/types/router/core/transition/rejectFactory.d.ts +103 -0
  228. package/types/router/core/transition/transition.d.ts +527 -0
  229. package/types/router/core/transition/transitionEventType.d.ts +17 -0
  230. package/types/router/core/transition/transitionHook.d.ts +88 -0
  231. package/types/router/core/transition/transitionService.d.ts +187 -0
  232. package/types/router/core/url/index.d.ts +8 -0
  233. package/types/router/core/url/interface.d.ts +156 -0
  234. package/types/router/core/url/urlConfig.d.ts +141 -0
  235. package/types/router/core/url/urlMatcher.d.ts +180 -0
  236. package/types/router/core/url/urlMatcherFactory.d.ts +52 -0
  237. package/types/router/core/url/urlRouter.d.ts +85 -0
  238. package/types/router/core/url/urlRule.d.ts +120 -0
  239. package/types/router/core/url/urlRules.d.ts +244 -0
  240. package/types/router/core/url/urlService.d.ts +206 -0
  241. package/types/router/core/vanilla.d.ts +1 -0
  242. package/types/router/core/view/index.d.ts +2 -0
  243. package/types/router/core/view/interface.d.ts +46 -0
  244. package/types/router/core/view/view.d.ts +167 -0
  245. package/types/router/directives/stateDirectives.d.ts +3 -0
  246. package/types/router/directives/viewDirective.d.ts +143 -0
  247. package/types/router/index.d.ts +19 -0
  248. package/types/router/interface.d.ts +491 -0
  249. package/types/router/legacy/resolveService.d.ts +44 -0
  250. package/types/router/legacy/stateEvents.d.ts +123 -0
  251. package/types/router/locationServices.d.ts +43 -0
  252. package/types/router/services.d.ts +15 -0
  253. package/types/router/stateFilters.d.ts +11 -0
  254. package/types/router/stateProvider.d.ts +254 -0
  255. package/types/router/statebuilders/onEnterExitRetain.d.ts +12 -0
  256. package/types/router/statebuilders/views.d.ts +41 -0
  257. package/types/router/templateFactory.d.ts +84 -0
  258. package/types/router/viewScroll.d.ts +9 -0
  259. package/src/router/adapter/statebuilders/onEnterExitRetain.js +0 -29
  260. package/src/router/core/common/coreservices.js +0 -15
  261. package/src/router/core/common/safeConsole.js +0 -38
  262. package/src/router/core/interface.js +0 -3
  263. package/src/router/core/resolve/interface.js +0 -10
  264. package/src/router/core/router.js +0 -203
  265. package/src/router/core/url/interface.js +0 -1
  266. package/src/router/core/view/interface.js +0 -1
  267. /package/src/router/{core/common → common}/glob.js +0 -0
  268. /package/src/router/{core/hooks → hooks}/ignoredTransition.js +0 -0
  269. /package/src/router/{core/hooks → hooks}/invalidTransition.js +0 -0
  270. /package/src/router/{core/hooks → hooks}/onEnterExitRetain.js +0 -0
  271. /package/src/router/{core/hooks → hooks}/url.js +0 -0
  272. /package/src/router/{core/params → params}/README.md +0 -0
  273. /package/src/router/{core/state → state}/README.md +0 -0
  274. /package/src/router/{adapter/stateFilters.js → stateFilters.js} +0 -0
  275. /package/src/router/{core/transition → transition}/interface.js +0 -0
  276. /package/src/router/{core/transition → transition}/transitionEventType.js +0 -0
  277. /package/src/{router/core/common → shared}/hof.js +0 -0
  278. /package/test/{ng → core}/cache-factor.spec.js +0 -0
  279. /package/test/{ng → core}/controller-provider.spec.js +0 -0
  280. /package/test/{ng → core}/cookie-reader.spec.js +0 -0
  281. /package/test/{ng → core}/document.spec.js +0 -0
  282. /package/test/{ng → core}/filter.spec.js +0 -0
  283. /package/test/{ng → core}/http-backend.spec.js +0 -0
  284. /package/test/{ng → core}/interpolate.spec.js +0 -0
  285. /package/test/{ng → core}/interval.spec.js +0 -0
  286. /package/test/{ng → core}/location.spec.js +0 -0
  287. /package/test/{ng → core}/q.spec.js +0 -0
  288. /package/test/{ng → core}/root-element.spec.js +0 -0
  289. /package/test/{ng → core}/sanitize-uri.spec.js +0 -0
  290. /package/test/{ng → core}/sce.spec.js +0 -0
  291. /package/test/{ng → core}/template-request.spec.js +0 -0
  292. /package/test/{ng → core}/timeout.spec.js +0 -0
  293. /package/test/{ng → core}/url-utils.spec.js +0 -0
  294. /package/{src/router/adapter/interface.js → types/router/injectables.d.ts} +0 -0
package/index.html CHANGED
@@ -17,71 +17,70 @@
17
17
  <!-- <script src="dist/angular-ts.umd.js"></script> -->
18
18
  <!-- include spec files here... -->
19
19
 
20
- <script type="module" src="test/ng/directive/a.spec.js"></script>
21
- <script type="module" src="test/ng/directive/boolean.spec.js"></script>
22
- <script type="module" src="test/ng/directive/form.spec.js"></script>
23
- <script type="module" src="test/ng/directive/input.spec.js"></script>
24
- <script type="module" src="test/ng/directive/bind.spec.js"></script>
25
- <script type="module" src="test/ng/directive/change.spec.js"></script>
26
- <script type="module" src="test/ng/directive/class.spec.js"></script>
27
- <script type="module" src="test/ng/directive/click.spec.js"></script>
28
- <script type="module" src="test/ng/directive/cloak.spec.js"></script>
29
- <script type="module" src="test/ng/directive/constoller.spec.js"></script>
30
- <script type="module" src="test/ng/directive/event.spec.js"></script>
31
- <script type="module" src="test/ng/directive/href.spec.js"></script>
32
- <script type="module" src="test/ng/directive/if.spec.js"></script>
33
- <script type="module" src="test/ng/directive/include.spec.js"></script>
34
- <script type="module" src="test/ng/directive/init.spec.js"></script>
20
+ <script type="module" src="test/directive/a.spec.js"></script>
21
+ <script type="module" src="test/directive/boolean.spec.js"></script>
22
+ <script type="module" src="test/directive/form.spec.js"></script>
23
+ <script type="module" src="test/directive/input.spec.js"></script>
24
+ <script type="module" src="test/directive/bind.spec.js"></script>
25
+ <script type="module" src="test/directive/change.spec.js"></script>
26
+ <script type="module" src="test/directive/class.spec.js"></script>
27
+ <script type="module" src="test/directive/click.spec.js"></script>
28
+ <script type="module" src="test/directive/cloak.spec.js"></script>
29
+ <script type="module" src="test/directive/constoller.spec.js"></script>
30
+ <script type="module" src="test/directive/event.spec.js"></script>
31
+ <script type="module" src="test/directive/href.spec.js"></script>
32
+ <script type="module" src="test/directive/if.spec.js"></script>
33
+ <script type="module" src="test/directive/include.spec.js"></script>
34
+ <script type="module" src="test/directive/init.spec.js"></script>
35
35
 
36
- <script type="module" src="test/ng/directive/list.spec.js"></script>
37
- <script type="module" src="test/ng/directive/model-options.spec.js"></script>
38
- <script type="module" src="test/ng/directive/model.spec.js"></script>
39
- <script type="module" src="test/ng/directive/non-bindable.spec.js"></script>
36
+ <script type="module" src="test/directive/list.spec.js"></script>
37
+ <script type="module" src="test/directive/model-options.spec.js"></script>
38
+ <script type="module" src="test/directive/model.spec.js"></script>
39
+ <script type="module" src="test/directive/non-bindable.spec.js"></script>
40
40
 
41
- <script type="module" src="test/ng/directive/ref.spec.js"></script>
41
+ <script type="module" src="test/directive/ref.spec.js"></script>
42
42
 
43
- <script type="module" src="test/ng/directive/repeat.spec.js"></script>
44
- <script type="module" src="test/ng/directive/show-hide.spec.js"></script>
45
- <script type="module" src="test/ng/directive/scrset.spec.js"></script>
46
- <script type="module" src="test/ng/directive/src.spec.js"></script>
47
- <script type="module" src="test/ng/directive/style.spec.js"></script>
48
- <script type="module" src="test/ng/directive/switch.spec.js"></script>
49
- <script type="module" src="test/ng/directive/script.spec.js"></script>
50
- <script type="module" src="test/ng/directive/select.spec.js"></script>
51
- <script type="module" src="test/ng/directive/style.spec.js"></script>
52
- <script type="module" src="test/ng/directive/validators.spec.js"></script>
43
+ <script type="module" src="test/directive/repeat.spec.js"></script>
44
+ <script type="module" src="test/directive/show-hide.spec.js"></script>
45
+ <script type="module" src="test/directive/scrset.spec.js"></script>
46
+ <script type="module" src="test/directive/src.spec.js"></script>
47
+ <script type="module" src="test/directive/style.spec.js"></script>
48
+ <script type="module" src="test/directive/switch.spec.js"></script>
49
+ <script type="module" src="test/directive/script.spec.js"></script>
50
+ <script type="module" src="test/directive/select.spec.js"></script>
51
+ <script type="module" src="test/directive/style.spec.js"></script>
52
+ <script type="module" src="test/directive/validators.spec.js"></script>
53
53
 
54
- <script type="module" src="test/ng/filter/filter.spec.js"></script>
55
- <script type="module" src="test/ng/filter/filters.spec.js"></script>
56
- <script type="module" src="test/ng/filter/limit-to.spec.js"></script>
57
- <script type="module" src="test/ng/filter/order-by.spec.js"></script>
54
+ <script type="module" src="test/filter/filter.spec.js"></script>
55
+ <script type="module" src="test/filter/filters.spec.js"></script>
56
+ <script type="module" src="test/filter/limit-to.spec.js"></script>
57
+ <script type="module" src="test/filter/order-by.spec.js"></script>
58
58
 
59
- <script type="module" src="test/ng/cache-factor.spec.js"></script>
60
- <script type="module" src="test/ng/compile.spec.js"></script>
61
- <script type="module" src="test/ng/controller-provider.spec.js"></script>
62
- <script type="module" src="test/ng/cookie-reader.spec.js"></script>
63
- <script type="module" src="test/ng/document.spec.js"></script>
64
- <script type="module" src="test/ng/filter.spec.js"></script>
65
- <script type="module" src="test/ng/http-backend.spec.js"></script>
66
- <script type="module" src="test/ng/http.spec.js"></script>
59
+ <script type="module" src="test/core/cache-factor.spec.js"></script>
60
+ <script type="module" src="test/core/compile.spec.js"></script>
61
+ <script type="module" src="test/core/controller-provider.spec.js"></script>
62
+ <script type="module" src="test/core/cookie-reader.spec.js"></script>
63
+ <script type="module" src="test/core/document.spec.js"></script>
64
+ <script type="module" src="test/core/filter.spec.js"></script>
65
+ <script type="module" src="test/core/http-backend.spec.js"></script>
66
+ <script type="module" src="test/core/http.spec.js"></script>
67
67
 
68
- <script type="module" src="test/ng/interpolate.spec.js"></script>
68
+ <script type="module" src="test/core/interpolate.spec.js"></script>
69
69
 
70
- <script type="module" src="test/ng/location.spec.js"></script>
71
- <script type="module" src="test/ng/on.spec.js"></script>
72
- <script type="module" src="test/ng/prop.spec.js"></script>
73
- <script type="module" src="test/ng/parse.spec.js"></script>
74
- <script type="module" src="test/ng/q.spec.js"></script>
75
- <script type="module" src="test/ng/root-element.spec.js"></script>
70
+ <script type="module" src="test/core/location.spec.js"></script>
71
+ <script type="module" src="test/core/on.spec.js"></script>
72
+ <script type="module" src="test/core/prop.spec.js"></script>
73
+ <script type="module" src="test/core/parse.spec.js"></script>
74
+ <script type="module" src="test/core/q.spec.js"></script>
75
+ <script type="module" src="test/core/root-element.spec.js"></script>
76
76
 
77
- <script type="module" src="test/ng/sce.spec.js"></script>
78
- <script type="module" src="test/ng/sanitize-uri.spec.js"></script>
79
- <script type="module" src="test/ng/scope.spec.js"></script>
77
+ <script type="module" src="test/core/sce.spec.js"></script>
78
+ <script type="module" src="test/core/sanitize-uri.spec.js"></script>
79
+ <script type="module" src="test/core/scope.spec.js"></script>
80
80
 
81
- <script type="module" src="test/ng/template-request.spec.js"></script>
81
+ <script type="module" src="test/core/template-request.spec.js"></script>
82
82
 
83
- <script type="module" src="test/ng/utils.spec.js"></script>
84
- <script type="module" src="test/ng/url-utils.spec.js"></script>
83
+ <script type="module" src="test/core/url-utils.spec.js"></script>
85
84
 
86
85
  <script type="module" src="test/aria/aria.spec.js"></script>
87
86
  <script type="module" src="test/messages/messages.spec.js"></script>
@@ -94,9 +93,19 @@
94
93
  <script type="module" src="test/min-err.spec.js"></script>
95
94
  <script type="module" src="test/public.spec.js"></script>
96
95
 
96
+ <script type="module" src="test/shared/common.spec.js"></script>
97
+ <script type="module" src="test/shared/hof.spec.js"></script>
98
+ <script type="module" src="test/shared/strings.spec.js"></script>
99
+ <script type="module" src="test/shared/utils.spec.js"></script>
100
+
101
+ <!-- Router specs-->
102
+ <script type="module" src="test/router/glob.spec.js"></script>
103
+ <script type="module" src="test/router/state.spec.js"></script>
104
+
105
+
97
106
  <!-- Run asyncs last to prevent digest polution-->
98
- <script type="module" src="test/ng/interval.spec.js"></script>
99
- <script type="module" src="test/ng/timeout.spec.js"></script>
107
+ <script type="module" src="test/core/interval.spec.js"></script>
108
+ <script type="module" src="test/core/timeout.spec.js"></script>
100
109
  </head>
101
110
  <body>
102
111
  <div id="dummy"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@angular-wave/angular.ts",
3
3
  "license": "MIT",
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "type": "module",
6
6
  "main": "dist/angular-ts.esm.js",
7
7
  "browser": "dist/angular-ts.umd.js",
@@ -1,4 +1,4 @@
1
- import { isString } from "../core/utils";
1
+ import { isString } from "../shared/utils";
2
2
  import { NG_ANIMATE_CHILDREN_DATA } from "./shared";
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { jqLite } from "../jqLite";
2
- import { forEach, isString } from "../core/utils";
2
+ import { forEach, isString } from "../shared/utils";
3
3
  import { concatWithSpace, getDomNode } from "./shared";
4
4
 
5
5
  export const $$AnimateCssDriverProvider = [
@@ -1,4 +1,4 @@
1
- import { forEach, isDefined, isArray } from "../core/utils";
1
+ import { forEach, isDefined } from "../shared/utils";
2
2
  import {
3
3
  TRANSITION_DURATION_PROP,
4
4
  TRANSITION_DELAY_PROP,
@@ -520,7 +520,7 @@ export const $AnimateCssProvider = [
520
520
  }
521
521
 
522
522
  const method =
523
- options.event && isArray(options.event)
523
+ options.event && Array.isArray(options.event)
524
524
  ? options.event.join(" ")
525
525
  : options.event;
526
526
 
@@ -1,4 +1,4 @@
1
- import { forEach } from "../core/utils";
1
+ import { forEach } from "../shared/utils";
2
2
 
3
3
  export const $$AnimateJsDriverProvider = [
4
4
  "$$animationProvider",
@@ -1,4 +1,4 @@
1
- import { forEach, isArray, isObject, isFunction } from "../core/utils";
1
+ import { forEach, isObject, isFunction } from "../shared/utils";
2
2
  import {
3
3
  applyAnimationClassesFactory,
4
4
  applyAnimationStyles,
@@ -347,7 +347,7 @@ export const $$AnimateJsProvider = [
347
347
  };
348
348
 
349
349
  function lookupAnimations(classes) {
350
- classes = isArray(classes) ? classes : classes.split(" ");
350
+ classes = Array.isArray(classes) ? classes : classes.split(" ");
351
351
  const matches = [];
352
352
  const flagMap = {};
353
353
  for (let i = 0; i < classes.length; i++) {
@@ -3,12 +3,11 @@ import {
3
3
  isUndefined,
4
4
  forEach,
5
5
  isObject,
6
- isArray,
7
6
  isString,
8
7
  isElement,
9
8
  isDefined,
10
9
  extend,
11
- } from "../core/utils";
10
+ } from "../shared/utils";
12
11
  import {
13
12
  NG_ANIMATE_CHILDREN_DATA,
14
13
  applyAnimationClassesFactory,
@@ -413,7 +412,7 @@ export const $$AnimateQueueProvider = [
413
412
  // this is used to trigger callbacks in postDigest mode
414
413
  const runInNextPostDigestOrNow = postDigestTaskFactory();
415
414
 
416
- if (isArray(options.addClass)) {
415
+ if (Array.isArray(options.addClass)) {
417
416
  options.addClass = options.addClass.join(" ");
418
417
  }
419
418
 
@@ -421,7 +420,7 @@ export const $$AnimateQueueProvider = [
421
420
  options.addClass = null;
422
421
  }
423
422
 
424
- if (isArray(options.removeClass)) {
423
+ if (Array.isArray(options.removeClass)) {
425
424
  options.removeClass = options.removeClass.join(" ");
426
425
  }
427
426
 
@@ -1,5 +1,5 @@
1
1
  import { jqLite } from "../jqLite";
2
- import { forEach, mergeClasses } from "../core/utils";
2
+ import { forEach, mergeClasses } from "../shared/utils";
3
3
  import {
4
4
  NG_ANIMATE_CLASSNAME,
5
5
  PREPARE_CLASS_SUFFIX,
@@ -1,4 +1,4 @@
1
- import { forEach, isArray, isString, minErr, extend } from "../core/utils";
1
+ import { forEach, isString, minErr, extend } from "../shared/utils";
2
2
  import { jqLite } from "../jqLite";
3
3
 
4
4
  export const ADD_CLASS_SUFFIX = "-add";
@@ -83,8 +83,8 @@ export function mergeClasses(a, b) {
83
83
  if (!a && !b) return "";
84
84
  if (!a) return b;
85
85
  if (!b) return a;
86
- if (isArray(a)) a = a.join(" ");
87
- if (isArray(b)) b = b.join(" ");
86
+ if (Array.isArray(a)) a = a.join(" ");
87
+ if (Array.isArray(b)) b = b.join(" ");
88
88
  return `${a} ${b}`;
89
89
  }
90
90
 
@@ -100,7 +100,7 @@ export function packageStyles(options) {
100
100
  export function pendClasses(classes, fix, isPrefix) {
101
101
  let className = "";
102
102
  // eslint-disable-next-line no-nested-ternary
103
- classes = isArray(classes)
103
+ classes = Array.isArray(classes)
104
104
  ? classes
105
105
  : classes && isString(classes) && classes.length
106
106
  ? classes.split(/\s+/)
@@ -1,4 +1,4 @@
1
- import { forEach } from "./utils";
1
+ import { forEach } from "../shared/utils";
2
2
 
3
3
  export function AnimateAsyncRunFactoryProvider() {
4
4
  this.$get = [
@@ -1,13 +1,12 @@
1
1
  import {
2
2
  createMap,
3
3
  forEach,
4
- isArray,
5
4
  isFunction,
6
5
  isObject,
7
6
  isString,
8
7
  minErr,
9
8
  extend,
10
- } from "./utils";
9
+ } from "../shared/utils";
11
10
  import { jqLite } from "../jqLite";
12
11
 
13
12
  const $animateMinErr = minErr("$animate");
@@ -17,8 +16,8 @@ function mergeClasses(a, b) {
17
16
  if (!a && !b) return "";
18
17
  if (!a) return b;
19
18
  if (!b) return a;
20
- if (isArray(a)) a = a.join(" ");
21
- if (isArray(b)) b = b.join(" ");
19
+ if (Array.isArray(a)) a = a.join(" ");
20
+ if (Array.isArray(b)) b = b.join(" ");
22
21
  return `${a} ${b}`;
23
22
  }
24
23
 
@@ -117,7 +116,7 @@ export function CoreAnimateQueueProvider() {
117
116
  if (classes) {
118
117
  classes = isString(classes)
119
118
  ? classes.split(" ")
120
- : isArray(classes)
119
+ : Array.isArray(classes)
121
120
  ? classes
122
121
  : [];
123
122
  forEach(classes, (className) => {
@@ -7,7 +7,6 @@ import {
7
7
  createMap,
8
8
  forEach,
9
9
  identity,
10
- isArray,
11
10
  isDefined,
12
11
  isFunction,
13
12
  isObject,
@@ -30,7 +29,7 @@ import {
30
29
  simpleCompare,
31
30
  isError,
32
31
  directiveNormalize,
33
- } from "./utils";
32
+ } from "../shared/utils";
34
33
 
35
34
  import { SCE_CONTEXTS } from "./sce";
36
35
  import { PREFIX_REGEXP, ALIASED_ATTR } from "../constants";
@@ -175,7 +174,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
175
174
  const require =
176
175
  directive.require || (directive.controller && directive.name);
177
176
 
178
- if (!isArray(require) && isObject(require)) {
177
+ if (!Array.isArray(require) && isObject(require)) {
179
178
  forEach(require, (value, key) => {
180
179
  const match = value.match(REQUIRE_PREFIX_REGEXP);
181
180
  const name = value.substring(match[0].length);
@@ -357,7 +356,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
357
356
 
358
357
  function factory($injector) {
359
358
  function makeInjectable(fn) {
360
- if (isFunction(fn) || isArray(fn)) {
359
+ if (isFunction(fn) || Array.isArray(fn)) {
361
360
  return function (tElement, tAttrs) {
362
361
  return $injector.invoke(fn, this, {
363
362
  $element: tElement,
@@ -2144,7 +2143,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
2144
2143
  const { require } = controllerDirective;
2145
2144
  if (
2146
2145
  controllerDirective.bindToController &&
2147
- !isArray(require) &&
2146
+ !Array.isArray(require) &&
2148
2147
  isObject(require)
2149
2148
  ) {
2150
2149
  extend(
@@ -2364,7 +2363,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
2364
2363
  directiveName,
2365
2364
  );
2366
2365
  }
2367
- } else if (isArray(require)) {
2366
+ } else if (Array.isArray(require)) {
2368
2367
  value = [];
2369
2368
  for (let i = 0, ii = require.length; i < ii; i++) {
2370
2369
  value[i] = getControllers(
@@ -3,12 +3,11 @@ import {
3
3
  assertNotHasOwnProperty,
4
4
  minErr,
5
5
  extend,
6
- isArray,
7
6
  isObject,
8
7
  isString,
9
8
  getter,
10
9
  isFunction,
11
- } from "./utils";
10
+ } from "../shared/utils";
12
11
 
13
12
  const $controllerMinErr = minErr("$controller");
14
13
 
@@ -149,7 +148,9 @@ export function $ControllerProvider() {
149
148
  // publicly.
150
149
  // Object creation: http://jsperf.com/create-constructor/2
151
150
  const controllerPrototype = (
152
- isArray(expression) ? expression[expression.length - 1] : expression
151
+ Array.isArray(expression)
152
+ ? expression[expression.length - 1]
153
+ : expression
153
154
  ).prototype;
154
155
  instance = Object.create(controllerPrototype || null);
155
156
 
@@ -1,4 +1,4 @@
1
- import { forEach, isObject } from "./utils";
1
+ import { forEach, isObject } from "../shared/utils";
2
2
  import { filterFilter } from "../filters/filter";
3
3
  import { jsonFilter } from "../filters/filters";
4
4
  import { limitToFilter } from "../filters/limit-to";
@@ -5,7 +5,7 @@ import {
5
5
  stringify,
6
6
  valueFn,
7
7
  extend,
8
- } from "./utils";
8
+ } from "../shared/utils";
9
9
 
10
10
  const $interpolateMinErr = minErr("$interpolate");
11
11
  $interpolateMinErr.throwNoconcat = function (text) {
@@ -1,4 +1,4 @@
1
- import { isDefined, sliceArgs } from "./utils";
1
+ import { isDefined, sliceArgs } from "../shared/utils";
2
2
 
3
3
  export function $$IntervalFactoryProvider() {
4
4
  this.$get = [
@@ -1,5 +1,5 @@
1
1
  import { markQExceptionHandled } from "./q";
2
- import { minErr } from "./utils";
2
+ import { minErr } from "../shared/utils";
3
3
 
4
4
  const $intervalMinErr = minErr("$interval");
5
5
 
@@ -13,7 +13,7 @@ import {
13
13
  parseKeyValue,
14
14
  toInt,
15
15
  toKeyValue,
16
- } from "./utils";
16
+ } from "../shared/utils";
17
17
 
18
18
  export const PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/;
19
19
  const DEFAULT_PORTS = { http: 80, https: 443, ftp: 21 };
@@ -9,7 +9,7 @@ import {
9
9
  isString,
10
10
  lowercase,
11
11
  isNumber,
12
- } from "../utils";
12
+ } from "../../shared/utils";
13
13
 
14
14
  const $parseMinErr = minErr("$parse");
15
15
 
package/src/core/q.js CHANGED
@@ -218,7 +218,6 @@
218
218
 
219
219
  import {
220
220
  forEach,
221
- isArray,
222
221
  minErr,
223
222
  extend,
224
223
  isUndefined,
@@ -228,7 +227,7 @@ import {
228
227
  isError,
229
228
  toDebugString,
230
229
  isPromiseLike,
231
- } from "./utils";
230
+ } from "../shared/utils";
232
231
 
233
232
  /**
234
233
  * @ngdoc provider
@@ -649,7 +648,7 @@ function qFactory(nextTick, exceptionHandler, errorOnUnhandledRejections) {
649
648
  function all(promises) {
650
649
  const result = new Promise();
651
650
  let counter = 0;
652
- const results = isArray(promises) ? [] : {};
651
+ const results = Array.isArray(promises) ? [] : {};
653
652
 
654
653
  forEach(promises, (promise, key) => {
655
654
  counter++;
@@ -10,7 +10,7 @@ import {
10
10
  isNumberNaN,
11
11
  arrayRemove,
12
12
  equals,
13
- } from "./utils";
13
+ } from "../shared/utils";
14
14
 
15
15
  /**
16
16
  * @typedef {"$apply" | "$digest"} ScopePhase
@@ -1,4 +1,4 @@
1
- import { isDefined } from "./utils";
1
+ import { isDefined } from "../shared/utils";
2
2
  import { urlResolve } from "./urlUtils";
3
3
 
4
4
  /**
package/src/core/sce.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  lowercase,
13
13
  minErr,
14
14
  shallowCopy,
15
- } from "./utils";
15
+ } from "../shared/utils";
16
16
 
17
17
  import { snakeToCamel } from "../jqLite";
18
18
 
@@ -1,4 +1,4 @@
1
- import { valueFn } from "./utils";
1
+ import { valueFn } from "../shared/utils";
2
2
 
3
3
  /**
4
4
  * ! This is a private undocumented service !
@@ -1,5 +1,5 @@
1
1
  import { markQExceptionHandled } from "./q";
2
- import { isDefined, isFunction, minErr, sliceArgs } from "./utils";
2
+ import { isDefined, isFunction, minErr, sliceArgs } from "../shared/utils";
3
3
 
4
4
  const $timeoutMinErr = minErr("$timeout");
5
5
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-use-before-define */
2
2
 
3
- import { isString } from "./utils";
3
+ import { isString } from "../shared/utils";
4
4
 
5
5
  // service.
6
6
  const urlParsingNode = window.document.createElement("a");
@@ -1,5 +1,5 @@
1
1
  import { BOOLEAN_ATTR } from "../jqLite";
2
- import { forEach, directiveNormalize } from "../core/utils";
2
+ import { forEach, directiveNormalize } from "../shared/utils";
3
3
  import { ALIASED_ATTR } from "../constants";
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { isUndefined, stringify } from "../core/utils";
1
+ import { isUndefined, stringify } from "../shared/utils";
2
2
 
3
3
  /**
4
4
  * @returns {angular.IDirective}
@@ -1,4 +1,4 @@
1
- import { createMap, forEach, isArray, isObject, isString } from "../core/utils";
1
+ import { createMap, forEach, isObject, isString } from "../shared/utils";
2
2
 
3
3
  function classDirective(name, selector) {
4
4
  // eslint-disable-next-line no-param-reassign
@@ -124,7 +124,7 @@ function classDirective(name, selector) {
124
124
 
125
125
  let classString = classValue;
126
126
 
127
- if (isArray(classValue)) {
127
+ if (Array.isArray(classValue)) {
128
128
  classString = classValue.map(toClassString).join(" ");
129
129
  } else if (isObject(classValue)) {
130
130
  classString = Object.keys(classValue)
@@ -1,4 +1,4 @@
1
- import { directiveNormalize } from "../core/utils";
1
+ import { directiveNormalize } from "../shared/utils";
2
2
 
3
3
  /*
4
4
  * A collection of directives that allows creation of custom event handlers that are defined as
@@ -8,7 +8,7 @@ import {
8
8
  forEach,
9
9
  extend,
10
10
  isUndefined,
11
- } from "../core/utils";
11
+ } from "../shared/utils";
12
12
  import {
13
13
  PRISTINE_CLASS,
14
14
  DIRTY_CLASS,
@@ -1,4 +1,4 @@
1
- import { isDefined } from "../core/utils";
1
+ import { isDefined } from "../shared/utils";
2
2
  import { jqLiteBuildFragment } from "../jqLite";
3
3
  /**
4
4
  * @ngdoc directive
@@ -14,7 +14,7 @@ import {
14
14
  timezoneToOffset,
15
15
  nextUid,
16
16
  equals,
17
- } from "../core/utils";
17
+ } from "../shared/utils";
18
18
  import { ngModelMinErr } from "./model";
19
19
 
20
20
  // Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
@@ -1,4 +1,4 @@
1
- import { forEach, isArray, isUndefined, trim } from "../core/utils";
1
+ import { forEach, isUndefined, trim } from "../shared/utils";
2
2
 
3
3
  /**
4
4
  * @returns {angular.IDirective}
@@ -30,7 +30,7 @@ export function ngListDirective() {
30
30
 
31
31
  ctrl.$parsers.push(parse);
32
32
  ctrl.$formatters.push((value) => {
33
- if (isArray(value)) {
33
+ if (Array.isArray(value)) {
34
34
  return value.join(ngList);
35
35
  }
36
36
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-use-before-define */
2
- import { extend, forEach, isDefined, trim } from "../core/utils";
2
+ import { extend, forEach, isDefined, trim } from "../shared/utils";
3
3
 
4
4
  /* exported defaultModelOptions */
5
5
  export let defaultModelOptions;
@@ -15,7 +15,7 @@ import {
15
15
  isPromiseLike,
16
16
  isUndefined,
17
17
  isFunction,
18
- } from "../core/utils";
18
+ } from "../shared/utils";
19
19
  import { addSetValidityMethod, nullFormCtrl, setupValidity } from "./form";
20
20
  import { defaultModelOptions } from "./model-options";
21
21
  import { startingTag } from "../jqLite";