@angular-wave/angular.ts 0.0.38 → 0.0.40

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 (263) hide show
  1. package/Makefile +8 -5
  2. package/README.md +1 -1
  3. package/dist/angular-ts.esm.js +2 -1
  4. package/dist/angular-ts.umd.js +2 -1
  5. package/package.json +2 -4
  6. package/rollup.config.js +11 -2
  7. package/src/angular.spec.js +25 -26
  8. package/src/animations/animate-css-driver.js +3 -3
  9. package/src/animations/animate-queue.js +7 -7
  10. package/src/animations/animation.js +2 -2
  11. package/src/animations/shared.js +6 -6
  12. package/src/binding.spec.js +7 -7
  13. package/src/core/animate/animate.js +5 -5
  14. package/src/core/animate/animate.spec.js +31 -31
  15. package/src/core/cache/cache-factory.html +18 -0
  16. package/src/core/cache/{cache-factor.test.js → cache-factory.test.js} +1 -1
  17. package/src/core/compile/compile.js +31 -25
  18. package/src/core/compile/compile.md +2 -2
  19. package/src/core/cookie-reader.spec.js +2 -2
  20. package/src/core/core.html +22 -0
  21. package/src/core/core.test.js +12 -0
  22. package/src/core/document.spec.js +4 -4
  23. package/src/core/exception-handler.js +30 -23
  24. package/src/core/interpolate/interpolate.js +7 -0
  25. package/src/core/{cache/cache-factor.html → location/location.html} +1 -1
  26. package/src/core/location/location.js +2 -2
  27. package/src/core/location/location.spec.js +17 -17
  28. package/src/core/location/location.test.js +12 -0
  29. package/src/core/on.spec.js +3 -3
  30. package/src/core/parser/parse.html +18 -0
  31. package/src/core/parser/parse.spec.js +1 -1
  32. package/src/core/parser/parse.test.js +12 -0
  33. package/src/core/prop.spec.js +3 -4
  34. package/src/core/pubsub/pubsub.html +18 -0
  35. package/src/core/pubsub/pubsub.spec.js +1 -1
  36. package/src/core/pubsub/pubsub.test.js +12 -0
  37. package/src/core/q/q.html +18 -0
  38. package/src/core/q/q.js +33 -0
  39. package/src/core/q/q.test.js +0 -0
  40. package/src/core/root-element.spec.js +4 -4
  41. package/src/core/sanitize/sanitize-uri.spec.js +1 -1
  42. package/src/core/sanitize/sanitize-uri.test.js +12 -0
  43. package/src/core/sanitize/sanitize.html +21 -0
  44. package/src/core/sce/sce.html +18 -0
  45. package/src/core/sce/sce.spec.js +2 -1
  46. package/src/core/sce/sce.test.js +12 -0
  47. package/src/core/scope/scope.html +18 -0
  48. package/src/core/scope/scope.js +5 -8
  49. package/src/core/scope/scope.spec.js +1 -1
  50. package/src/core/scope/scope.test.js +12 -0
  51. package/src/core/task-tracker-factory.js +9 -11
  52. package/src/core/timeout/timeout.html +18 -0
  53. package/src/core/timeout/timeout.js +9 -0
  54. package/src/core/timeout/timeout.spec.js +2 -2
  55. package/src/core/timeout/timout.test.js +12 -0
  56. package/src/core/url-utils/url-utils.html +18 -0
  57. package/src/core/url-utils/url-utils.spec.js +4 -2
  58. package/src/core/url-utils/url-utils.test.js +12 -0
  59. package/src/directive/attrs/attrs.spec.js +1 -2
  60. package/src/directive/attrs/boolean.spec.js +1 -2
  61. package/src/directive/attrs/element-style.spec.js +6 -7
  62. package/src/directive/attrs/src.spec.js +1 -2
  63. package/src/directive/bind/bind.spec.js +1 -2
  64. package/src/directive/class/class.spec.js +15 -16
  65. package/src/directive/cloak/cloak.spec.js +3 -4
  66. package/src/directive/controller/controller.spec.js +4 -5
  67. package/src/directive/events/click.spec.js +1 -2
  68. package/src/directive/events/event.spec.js +1 -1
  69. package/src/directive/events/events.js +7 -0
  70. package/src/directive/form/form.spec.js +17 -17
  71. package/src/directive/if/if.spec.js +2 -2
  72. package/src/directive/include/include.js +2 -2
  73. package/src/directive/include/include.spec.js +32 -32
  74. package/src/directive/init/init.spec.js +2 -3
  75. package/src/directive/input/input.spec.js +3 -3
  76. package/src/directive/list/list.spec.js +1 -2
  77. package/src/directive/model/model.js +13 -0
  78. package/src/directive/model/model.spec.js +4 -5
  79. package/src/directive/model-options/model-options.spec.js +3 -3
  80. package/src/directive/non-bindable/non-bindable.spec.js +1 -2
  81. package/src/directive/options/options.js +5 -5
  82. package/src/directive/options/options.spec.js +13 -13
  83. package/src/directive/ref/href.spec.js +1 -2
  84. package/src/directive/repeat/repeat.spec.js +12 -12
  85. package/src/directive/script/script.spec.js +2 -3
  86. package/src/directive/select/select.js +6 -6
  87. package/src/directive/select/select.spec.js +5 -5
  88. package/src/directive/show-hide/show-hide.spec.js +12 -13
  89. package/src/directive/style/style.spec.js +3 -4
  90. package/src/directive/switch/switch.spec.js +2 -3
  91. package/src/directive/validators/validators.spec.js +1 -1
  92. package/src/exts/aria/aria.spec.js +1 -2
  93. package/src/exts/messages/messages.spec.js +5 -5
  94. package/src/filters/filter.spec.js +5 -5
  95. package/src/filters/filters.html +21 -0
  96. package/src/filters/filters.spec.js +3 -3
  97. package/src/filters/filters.test.js +12 -0
  98. package/src/filters/limit-to.md +1 -1
  99. package/src/filters/limit-to.spec.js +4 -4
  100. package/src/filters/order-by.spec.js +2 -2
  101. package/src/index.js +462 -1
  102. package/src/loader.js +62 -17
  103. package/src/public.js +6 -2
  104. package/src/router/directives/state-directives.spec.js +90 -90
  105. package/src/router/directives/view-directive.js +2 -2
  106. package/src/router/directives/view-directive.spec.js +9 -9
  107. package/src/router/state/state.spec.js +2 -4
  108. package/src/router/template-factory.spec.js +2 -2
  109. package/src/router/transition/hook-registry.js +2 -2
  110. package/src/router/view/view.spec.js +1 -1
  111. package/src/services/browser.js +56 -39
  112. package/src/services/document.js +16 -13
  113. package/src/services/log.js +39 -43
  114. package/src/services/template-request.js +9 -0
  115. package/src/shared/common.js +0 -3
  116. package/src/shared/jqlite/jqlite.js +83 -89
  117. package/src/shared/jqlite/jqlite.spec.js +218 -222
  118. package/src/shared/strings.js +2 -2
  119. package/src/shared/test-utils.js +2 -2
  120. package/src/shared/utils.js +8 -11
  121. package/src/src.test.js +10 -0
  122. package/tsconfig.json +1 -1
  123. package/tsconfig.types.json +11 -0
  124. package/types/animations/animate-cache.d.ts +7 -7
  125. package/types/animations/animate-children-directive.d.ts +3 -6
  126. package/types/animations/animate-swap.d.ts +7 -16
  127. package/types/animations/animation.d.ts +2 -11
  128. package/types/animations/raf-scheduler.d.ts +3 -3
  129. package/types/animations/shared.d.ts +9 -24
  130. package/types/core/{animate-css.d.ts → animate/animate-css.d.ts} +2 -8
  131. package/types/core/{cache.d.ts → cache/cache.d.ts} +5 -5
  132. package/types/core/compile/compile.d.ts +173 -0
  133. package/types/core/controller/controller.d.ts +32 -0
  134. package/types/core/exception-handler.d.ts +9 -42
  135. package/types/core/filter/filter.d.ts +9 -0
  136. package/types/core/{interpolate.d.ts → interpolate/interpolate.d.ts} +23 -39
  137. package/types/core/interval/interval-factory.d.ts +4 -0
  138. package/types/core/{interval.d.ts → interval/interval.d.ts} +1 -1
  139. package/types/core/location/location.d.ts +209 -0
  140. package/types/core/pubsub/pubsub.d.ts +156 -0
  141. package/types/core/q/q.d.ts +65 -0
  142. package/types/core/sanitize/sanitize-uri.d.ts +53 -0
  143. package/types/core/{sce.d.ts → sce/sce.d.ts} +80 -86
  144. package/types/core/scope/scope.d.ts +727 -0
  145. package/types/core/task-tracker-factory.d.ts +45 -38
  146. package/types/core/timeout/timeout.d.ts +29 -0
  147. package/types/core/{urlUtils.d.ts → url-utils/url-utils.d.ts} +2 -7
  148. package/types/directive/{bind.d.ts → bind/bind.d.ts} +4 -10
  149. package/types/directive/{class.d.ts → class/class.d.ts} +12 -21
  150. package/types/directive/controller/controller.d.ts +6 -0
  151. package/types/directive/events/events.d.ts +5 -0
  152. package/types/directive/form/form.d.ts +200 -0
  153. package/types/directive/if/if.d.ts +8 -0
  154. package/types/directive/include/include.d.ts +14 -0
  155. package/types/directive/{input.d.ts → input/input.d.ts} +20 -69
  156. package/types/directive/{model.d.ts → model/model.d.ts} +281 -280
  157. package/types/directive/options/options.d.ts +9 -0
  158. package/types/directive/ref/ref.d.ts +5 -0
  159. package/types/directive/repeat/repeat.d.ts +8 -0
  160. package/types/directive/{script.d.ts → script/script.d.ts} +5 -8
  161. package/types/directive/{show-hide.d.ts → show-hide/show-hide.d.ts} +10 -16
  162. package/types/directive/switch/switch.d.ts +17 -0
  163. package/types/directive/transclude/transclude.d.ts +4 -0
  164. package/types/directive/{validators.d.ts → validators/validators.d.ts} +20 -35
  165. package/types/filters/filters.d.ts +10 -16
  166. package/types/filters/order-by.d.ts +2 -4
  167. package/types/index.d.ts +702 -0
  168. package/types/injector.d.ts +12 -0
  169. package/types/public.d.ts +5 -0
  170. package/types/router/common/coreservices.d.ts +2 -2
  171. package/types/router/common/glob.d.ts +9 -9
  172. package/types/router/common/queue.d.ts +13 -13
  173. package/types/router/common/trace.d.ts +43 -43
  174. package/types/router/directives/view-directive.d.ts +13 -32
  175. package/types/router/globals.d.ts +20 -20
  176. package/types/router/hooks/lazy-load.d.ts +2 -11
  177. package/types/router/hooks/redirect-to.d.ts +1 -4
  178. package/types/router/hooks/url.d.ts +1 -5
  179. package/types/router/hooks/views.d.ts +1 -4
  180. package/types/router/params/param-factory.d.ts +5 -5
  181. package/types/router/params/param-type.d.ts +35 -35
  182. package/types/router/params/param-types.d.ts +11 -11
  183. package/types/router/params/param.d.ts +38 -38
  184. package/types/router/params/state-params.d.ts +10 -10
  185. package/types/router/path/path-node.d.ts +34 -34
  186. package/types/router/path/path-utils.d.ts +73 -77
  187. package/types/router/resolve/resolvable.d.ts +32 -32
  188. package/types/router/resolve/resolve-context.d.ts +84 -84
  189. package/types/router/services.d.ts +4 -9
  190. package/types/router/state/state-builder.d.ts +27 -27
  191. package/types/router/state/state-matcher.d.ts +5 -5
  192. package/types/router/state/state-object.d.ts +58 -58
  193. package/types/router/state/state-queue-manager.d.ts +10 -16
  194. package/types/router/state/state-registry.d.ts +100 -107
  195. package/types/router/state/state-service.d.ts +411 -411
  196. package/types/router/state/target-state.d.ts +64 -69
  197. package/types/router/state/views.d.ts +31 -37
  198. package/types/router/state-filters.d.ts +7 -7
  199. package/types/router/state-provider.d.ts +105 -105
  200. package/types/router/template-factory.d.ts +83 -112
  201. package/types/router/transition/hook-builder.d.ts +25 -25
  202. package/types/router/transition/hook-registry.d.ts +68 -83
  203. package/types/router/transition/interface.d.ts +7 -7
  204. package/types/router/transition/reject-factory.d.ts +34 -34
  205. package/types/router/transition/transition-event-type.d.ts +9 -18
  206. package/types/router/transition/transition-hook.d.ts +77 -82
  207. package/types/router/transition/transition-service.d.ts +82 -99
  208. package/types/router/transition/transition.d.ts +369 -377
  209. package/types/router/url/url-config.d.ts +84 -84
  210. package/types/router/url/url-matcher.d.ts +115 -119
  211. package/types/router/url/url-rule.d.ts +114 -124
  212. package/types/router/url/url-rules.d.ts +217 -217
  213. package/types/router/url/url-service.d.ts +264 -269
  214. package/types/router/view/view.d.ts +114 -117
  215. package/types/router/view-scroll.d.ts +2 -2
  216. package/types/services/anchor-scroll.d.ts +2 -8
  217. package/types/services/browser.d.ts +157 -135
  218. package/types/services/cache-factory.d.ts +25 -25
  219. package/types/services/cookie-reader.d.ts +2 -2
  220. package/types/services/document.d.ts +13 -9
  221. package/types/services/http/http.d.ts +145 -0
  222. package/types/services/{http-backend.d.ts → http-backend/http-backend.d.ts} +3 -35
  223. package/types/services/log.d.ts +55 -52
  224. package/types/services/template-request.d.ts +44 -53
  225. package/types/shared/common.d.ts +4 -20
  226. package/types/{constants.d.ts → shared/constants.d.ts} +6 -6
  227. package/types/shared/hof.d.ts +1 -1
  228. package/types/{jqLite.d.ts → shared/jqlite/jqlite.d.ts} +16 -17
  229. package/types/shared/test-utils.d.ts +11 -0
  230. package/types/shared/utils.d.ts +29 -46
  231. package/types-back/global.d.ts +3 -1
  232. package/types-back/index.d.ts +3 -296
  233. package/types/core/compile.d.ts +0 -206
  234. package/types/core/controller.d.ts +0 -42
  235. package/types/core/filter.d.ts +0 -9
  236. package/types/core/interval-factory.d.ts +0 -21
  237. package/types/core/location.d.ts +0 -234
  238. package/types/core/pubsub.d.ts +0 -164
  239. package/types/core/q.d.ts +0 -33
  240. package/types/core/root-scope.d.ts +0 -754
  241. package/types/core/sanitize-uri.d.ts +0 -57
  242. package/types/core/timeout.d.ts +0 -31
  243. package/types/directive/controller.d.ts +0 -6
  244. package/types/directive/events.d.ts +0 -12
  245. package/types/directive/form.d.ts +0 -230
  246. package/types/directive/if.d.ts +0 -17
  247. package/types/directive/include.d.ts +0 -33
  248. package/types/directive/options.d.ts +0 -16
  249. package/types/directive/ref.d.ts +0 -11
  250. package/types/directive/repeat.d.ts +0 -23
  251. package/types/directive/switch.d.ts +0 -23
  252. package/types/directive/transclude.d.ts +0 -15
  253. package/types/services/http.d.ts +0 -157
  254. /package/src/core/cache/{cache-factor.spec.js → cache-factory.spec.js} +0 -0
  255. /package/types/directive/{attrs.d.ts → attrs/attrs.d.ts} +0 -0
  256. /package/types/directive/{change.d.ts → change/change.d.ts} +0 -0
  257. /package/types/directive/{cloak.d.ts → cloak/cloak.d.ts} +0 -0
  258. /package/types/directive/{init.d.ts → init/init.d.ts} +0 -0
  259. /package/types/directive/{list.d.ts → list/list.d.ts} +0 -0
  260. /package/types/directive/{non-bindable.d.ts → non-bindable/non-bindable.d.ts} +0 -0
  261. /package/types/directive/{style.d.ts → style/style.d.ts} +0 -0
  262. /package/types/exts/{aria.d.ts → aria/aria.d.ts} +0 -0
  263. /package/types/exts/{messages.d.ts → messages/messages.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
2
  import { Angular } from "../../loader";
3
3
  import { createInjector } from "../../injector";
4
4
  import { publishExternalAPI } from "../../public";
@@ -35,7 +35,7 @@ describe("ngInclude", () => {
35
35
  });
36
36
 
37
37
  it("should trust and use literal urls", (done) => {
38
- const element = jqLite(
38
+ const element = JQLite(
39
39
  "<div><div ng-include=\"'/public/test.html'\"></div></div>",
40
40
  );
41
41
  const injector = angular.bootstrap(element);
@@ -49,7 +49,7 @@ describe("ngInclude", () => {
49
49
  });
50
50
 
51
51
  it("should trust and use trusted urls", async () => {
52
- const element = jqLite('<div><div ng-include="fooUrl">test</div></div>');
52
+ const element = JQLite('<div><div ng-include="fooUrl">test</div></div>');
53
53
  const injector = angular.bootstrap(element);
54
54
  let $sce = injector.get("$sce");
55
55
  $rootScope = injector.get("$rootScope");
@@ -63,8 +63,8 @@ describe("ngInclude", () => {
63
63
  });
64
64
 
65
65
  it("should include an external file", async () => {
66
- element = jqLite('<div><ng-include src="url"></ng-include></div>');
67
- const body = jqLite(document.getElementById("dummy"));
66
+ element = JQLite('<div><ng-include src="url"></ng-include></div>');
67
+ const body = JQLite(document.getElementById("dummy"));
68
68
  body.append(element);
69
69
  const injector = angular.bootstrap(element);
70
70
  $rootScope = injector.get("$rootScope");
@@ -79,7 +79,7 @@ describe("ngInclude", () => {
79
79
  });
80
80
 
81
81
  it('should support ng-include="src" syntax', (done) => {
82
- element = jqLite('<div><div ng-include="url"></div></div>');
82
+ element = JQLite('<div><div ng-include="url"></div></div>');
83
83
  const injector = angular.bootstrap(element);
84
84
  $rootScope = injector.get("$rootScope");
85
85
  $rootScope.expr = "Alibaba";
@@ -93,7 +93,7 @@ describe("ngInclude", () => {
93
93
  });
94
94
 
95
95
  it("should NOT use untrusted URL expressions ", () => {
96
- element = jqLite('<ng:include src="url"></ng:include>');
96
+ element = JQLite('<ng:include src="url"></ng:include>');
97
97
  const injector = angular.bootstrap(element);
98
98
  $rootScope = injector.get("$rootScope");
99
99
  $rootScope.url = "http://example.com/myUrl";
@@ -103,7 +103,7 @@ describe("ngInclude", () => {
103
103
  });
104
104
 
105
105
  it("should NOT use mistyped expressions ", () => {
106
- element = jqLite('<ng:include src="url"></ng:include>');
106
+ element = JQLite('<ng:include src="url"></ng:include>');
107
107
  const injector = angular.bootstrap(element);
108
108
  $rootScope = injector.get("$rootScope");
109
109
  $rootScope.name = "chirayu";
@@ -115,7 +115,7 @@ describe("ngInclude", () => {
115
115
  });
116
116
 
117
117
  it("should remove previously included text if a falsy value is bound to src", (done) => {
118
- element = jqLite('<div><ng:include src="url"></ng:include></div>');
118
+ element = JQLite('<div><ng:include src="url"></ng:include></div>');
119
119
  const injector = angular.bootstrap(element);
120
120
  $rootScope = injector.get("$rootScope");
121
121
  $rootScope.expr = "igor";
@@ -141,7 +141,7 @@ describe("ngInclude", () => {
141
141
  called = true;
142
142
  });
143
143
  });
144
- element = jqLite(
144
+ element = JQLite(
145
145
  '<div><div><ng:include src="url"></ng:include></div></div>',
146
146
  );
147
147
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -164,7 +164,7 @@ describe("ngInclude", () => {
164
164
  called = true;
165
165
  });
166
166
  });
167
- element = jqLite(
167
+ element = JQLite(
168
168
  '<div><div><ng:include src="url"></ng:include></div></div>',
169
169
  );
170
170
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -188,7 +188,7 @@ describe("ngInclude", () => {
188
188
  $rootScope.$on("$includeContentError", contentErrorSpy);
189
189
  });
190
190
 
191
- element = jqLite(
191
+ element = JQLite(
192
192
  '<div><div><ng:include src="url"></ng:include></div></div>',
193
193
  );
194
194
 
@@ -206,7 +206,7 @@ describe("ngInclude", () => {
206
206
  it("should evaluate onload expression when a partial is loaded", (done) => {
207
207
  window.angular.module("myModule", []);
208
208
 
209
- element = jqLite(
209
+ element = JQLite(
210
210
  '<div><div><ng:include src="url" onload="loaded = true"></ng:include></div></div>',
211
211
  );
212
212
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -227,7 +227,7 @@ describe("ngInclude", () => {
227
227
  it("should create child scope and destroy old one", (done) => {
228
228
  window.angular.module("myModule", []);
229
229
 
230
- element = jqLite('<div><ng:include src="url"></ng:include></div>');
230
+ element = JQLite('<div><ng:include src="url"></ng:include></div>');
231
231
  const injector = angular.bootstrap(element, ["myModule"]);
232
232
  $rootScope = injector.get("$rootScope");
233
233
  $rootScope.$digest();
@@ -267,7 +267,7 @@ describe("ngInclude", () => {
267
267
 
268
268
  it("should do xhr request and cache it", async () => {
269
269
  window.angular.module("myModule", []);
270
- element = jqLite('<div><ng:include src="url"></ng:include></div>');
270
+ element = JQLite('<div><ng:include src="url"></ng:include></div>');
271
271
  const injector = angular.bootstrap(element, ["myModule"]);
272
272
  $rootScope = injector.get("$rootScope");
273
273
  $rootScope.url = "/mock/hello";
@@ -287,7 +287,7 @@ describe("ngInclude", () => {
287
287
 
288
288
  it("should clear content when error during xhr request", () => {
289
289
  window.angular.module("myModule", []);
290
- element = jqLite('<div><ng:include src="url">content</ng:include></div>');
290
+ element = JQLite('<div><ng:include src="url">content</ng:include></div>');
291
291
  const injector = angular.bootstrap(element, ["myModule"]);
292
292
  $rootScope = injector.get("$rootScope");
293
293
  $rootScope.url = "/mock/401";
@@ -297,7 +297,7 @@ describe("ngInclude", () => {
297
297
 
298
298
  it("should be async even if served from cache", (done) => {
299
299
  window.angular.module("myModule", []);
300
- element = jqLite('<div><ng:include src="url"></ng:include></div>');
300
+ element = JQLite('<div><ng:include src="url"></ng:include></div>');
301
301
  const injector = angular.bootstrap(element, ["myModule"]);
302
302
  $rootScope = injector.get("$rootScope");
303
303
  $rootScope.url = "/mock/hello";
@@ -318,7 +318,7 @@ describe("ngInclude", () => {
318
318
 
319
319
  it("should discard pending xhr callbacks if a new template is requested before the current finished loading", (done) => {
320
320
  window.angular.module("myModule", []);
321
- element = jqLite(
321
+ element = JQLite(
322
322
  "<div><ng:include src='templateUrl'></ng:include></div>",
323
323
  );
324
324
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -338,7 +338,7 @@ describe("ngInclude", () => {
338
338
 
339
339
  it("should not break attribute bindings on the same element", async () => {
340
340
  window.angular.module("myModule", []);
341
- element = jqLite(
341
+ element = JQLite(
342
342
  '<div><span foo="#/{{hrefUrl}}" ng:include="includeUrl"></span></div>',
343
343
  );
344
344
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -374,7 +374,7 @@ describe("ngInclude", () => {
374
374
  replace: true,
375
375
  }),
376
376
  );
377
- element = jqLite("<svg><test></test></svg>");
377
+ element = JQLite("<svg><test></test></svg>");
378
378
  const injector = angular.bootstrap(element, ["myModule"]);
379
379
  $rootScope = injector.get("$rootScope");
380
380
  $rootScope.$digest();
@@ -394,7 +394,7 @@ describe("ngInclude", () => {
394
394
  replace: true,
395
395
  }),
396
396
  );
397
- element = jqLite("<svg><test></test></svg>");
397
+ element = JQLite("<svg><test></test></svg>");
398
398
  const injector = angular.bootstrap(element, ["myModule"]);
399
399
  $rootScope = injector.get("$rootScope");
400
400
  $rootScope.$digest();
@@ -404,7 +404,7 @@ describe("ngInclude", () => {
404
404
 
405
405
  it("should not compile template if original scope is destroyed", (done) => {
406
406
  window.angular.module("myModule", []);
407
- element = jqLite(
407
+ element = JQLite(
408
408
  '<div ng-if="show"><div ng-include="\'/mock/hello\'"></div></div>',
409
409
  );
410
410
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -422,7 +422,7 @@ describe("ngInclude", () => {
422
422
 
423
423
  it("should not trigger a digest when the include is changed", (done) => {
424
424
  window.angular.module("myModule", []);
425
- element = jqLite('<div><ng-include src="url"></ng-include></div>');
425
+ element = JQLite('<div><ng-include src="url"></ng-include></div>');
426
426
  const injector = angular.bootstrap(element, ["myModule"]);
427
427
  $rootScope = injector.get("$rootScope");
428
428
  const spy = spyOn($rootScope, "$digest").and.callThrough();
@@ -457,7 +457,7 @@ describe("ngInclude", () => {
457
457
  $provide.value("$anchorScroll", autoScrollSpy);
458
458
  },
459
459
  ]);
460
- element = jqLite(
460
+ element = JQLite(
461
461
  '<div><ng:include src="tpl" autoscroll></ng:include></div>',
462
462
  );
463
463
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -480,7 +480,7 @@ describe("ngInclude", () => {
480
480
  $provide.value("$anchorScroll", autoScrollSpy);
481
481
  },
482
482
  ]);
483
- element = jqLite(
483
+ element = JQLite(
484
484
  '<div><ng:include src="tpl" autoscroll="value"></ng:include></div>',
485
485
  );
486
486
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -507,7 +507,7 @@ describe("ngInclude", () => {
507
507
  },
508
508
  ]);
509
509
 
510
- element = jqLite('<div><ng:include src="tpl"></ng:include></div>');
510
+ element = JQLite('<div><ng:include src="tpl"></ng:include></div>');
511
511
  const injector = angular.bootstrap(element, ["myModule"]);
512
512
  $rootScope = injector.get("$rootScope");
513
513
 
@@ -530,7 +530,7 @@ describe("ngInclude", () => {
530
530
  },
531
531
  ]);
532
532
 
533
- element = jqLite(
533
+ element = JQLite(
534
534
  '<div><ng:include src="tpl" autoscroll="value"></ng:include></div>',
535
535
  );
536
536
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -607,7 +607,7 @@ describe("ngInclude", () => {
607
607
  },
608
608
  }),
609
609
  );
610
- element = jqLite("<div><div template></div></div>");
610
+ element = JQLite("<div><div template></div></div>");
611
611
  const injector = angular.bootstrap(element, ["myModule"]);
612
612
  $rootScope = injector.get("$rootScope");
613
613
 
@@ -626,7 +626,7 @@ describe("ngInclude", () => {
626
626
  },
627
627
  }));
628
628
 
629
- element = jqLite(
629
+ element = JQLite(
630
630
  "<div><div ng-include=\"'/mock/empty'\"><div test></div></div></div>",
631
631
  );
632
632
  const injector = angular.bootstrap(element, ["myModule"]);
@@ -645,7 +645,7 @@ describe("ngInclude", () => {
645
645
  contentOnLink = element.text();
646
646
  },
647
647
  }));
648
- element = jqLite("<div><div ng-include=\"'/mock/hello'\" test></div>");
648
+ element = JQLite("<div><div ng-include=\"'/mock/hello'\" test></div>");
649
649
  const injector = angular.bootstrap(element, ["myModule"]);
650
650
  $rootScope = injector.get("$rootScope");
651
651
  $rootScope.$apply();
@@ -663,7 +663,7 @@ describe("ngInclude", () => {
663
663
  root = el.parent().parent().parent();
664
664
  },
665
665
  }));
666
- element = jqLite("<div><div ng-include=\"'/mock/directive'\"></div>");
666
+ element = JQLite("<div><div ng-include=\"'/mock/directive'\"></div>");
667
667
  const injector = angular.bootstrap(element, ["myModule"]);
668
668
  $rootScope = injector.get("$rootScope");
669
669
  $rootScope.$apply();
@@ -689,7 +689,7 @@ describe("ngInclude", () => {
689
689
  // // // we need to run animation on attached elements;
690
690
  // // function (_$rootElement_) {
691
691
  // // $rootElement = _$rootElement_;
692
- // // body = jqLite(window.document.body);
692
+ // // body = JQLite(window.document.body);
693
693
  // // body.append($rootElement);
694
694
  // // },
695
695
  // // ),
@@ -1,4 +1,4 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
2
  import { publishExternalAPI } from "../../public";
3
3
  import { createInjector } from "../../injector";
4
4
  import { Angular } from "../../loader";
@@ -22,7 +22,6 @@ describe("ngInit", () => {
22
22
 
23
23
  afterEach(() => {
24
24
  dealoc(element);
25
- jqLite.CACHE.clear();
26
25
  });
27
26
 
28
27
  it("should init model", () => {
@@ -31,7 +30,7 @@ describe("ngInit", () => {
31
30
  });
32
31
 
33
32
  it("should be evaluated before ngInclude", (done) => {
34
- element = jqLite(
33
+ element = JQLite(
35
34
  '<div><div ng-include="template" ' +
36
35
  "ng-init=\"template='template2.tpl'\"></div></div>",
37
36
  );
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../public";
2
2
  import { createInjector } from "../../injector";
3
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
3
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
4
4
  import { EMAIL_REGEXP, ISO_DATE_REGEXP, URL_REGEXP } from "./input";
5
5
  import { forEach } from "../../shared/utils";
6
6
 
@@ -52,7 +52,7 @@ describe("input", () => {
52
52
 
53
53
  it("should not set the `val` property when the value is equal to the current value", () => {
54
54
  // This is a workaround for Firefox validation. Look at #12102.
55
- const input = jqLite('<input type="text" ng-model="foo" required/>');
55
+ const input = JQLite('<input type="text" ng-model="foo" required/>');
56
56
  let setterCalls = 0;
57
57
  scope.foo = "";
58
58
  Object.defineProperty(input[0], "value", {
@@ -2591,7 +2591,7 @@ describe("input", () => {
2591
2591
  });
2592
2592
 
2593
2593
  describe("range", () => {
2594
- const rangeTestEl = jqLite('<input type="range">');
2594
+ const rangeTestEl = JQLite('<input type="range">');
2595
2595
  const supportsRange = rangeTestEl[0].type === "range";
2596
2596
 
2597
2597
  it("should render as 50 if null", () => {
@@ -1,4 +1,4 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
2
  import { publishExternalAPI } from "../../public";
3
3
  import { createInjector } from "../../injector";
4
4
 
@@ -18,7 +18,6 @@ describe("ngList", () => {
18
18
 
19
19
  afterEach(() => {
20
20
  dealoc(element);
21
- jqLite.CACHE.clear();
22
21
  });
23
22
 
24
23
  function changeInputValue(val) {
@@ -185,6 +185,19 @@ NgModelController.$inject = [
185
185
  "$q",
186
186
  "$interpolate",
187
187
  ];
188
+
189
+ /**
190
+ *
191
+ * @param {*} $scope
192
+ * @param {import('../../core/exception-handler').angular.ErrorHandler} $exceptionHandler
193
+ * @param {*} $attr
194
+ * @param {*} $element
195
+ * @param {*} $parse
196
+ * @param {*} $animate
197
+ * @param {*} $timeout
198
+ * @param {*} $q
199
+ * @param {*} $interpolate
200
+ */
188
201
  export function NgModelController(
189
202
  $scope,
190
203
  $exceptionHandler,
@@ -1,4 +1,4 @@
1
- import { jqLite, dealoc } from "../../shared/jqlite/jqlite";
1
+ import { JQLite, dealoc } from "../../shared/jqlite/jqlite";
2
2
  import { publishExternalAPI } from "../../public";
3
3
  import { createInjector } from "../../injector";
4
4
  import { NgModelController } from "./model";
@@ -35,7 +35,7 @@ describe("ngModel", () => {
35
35
  $$clearControlValidity: () => {},
36
36
  };
37
37
 
38
- element = jqLite("<form><input></form>");
38
+ element = JQLite("<form><input></form>");
39
39
  let $controller = injector.get("$controller");
40
40
  scope = injector.get("$rootScope");
41
41
  $q = injector.get("$q");
@@ -52,7 +52,6 @@ describe("ngModel", () => {
52
52
 
53
53
  afterEach(() => {
54
54
  dealoc(element);
55
- jqLite.CACHE.clear();
56
55
  });
57
56
 
58
57
  describe("NgModelController", () => {
@@ -1563,7 +1562,7 @@ describe("ngModel", () => {
1563
1562
  });
1564
1563
 
1565
1564
  function createInput(type) {
1566
- inputElm = jqLite(`<input type="${type}" ng-model="val" custom-format/>`);
1565
+ inputElm = JQLite(`<input type="${type}" ng-model="val" custom-format/>`);
1567
1566
  const injector = angular.bootstrap(inputElm, ["myModule"]);
1568
1567
  scope = injector.get("$rootScope");
1569
1568
  }
@@ -1798,7 +1797,7 @@ describe("ngModel", () => {
1798
1797
 
1799
1798
  // beforeEach(() => {
1800
1799
  // scope = $rootScope.$new();
1801
- // doc = jqLite(
1800
+ // doc = JQLite(
1802
1801
  // '<form name="myForm">' +
1803
1802
  // ' <input type="text" ng-model="input" name="myInput" />' +
1804
1803
  // "</form>",
@@ -1,5 +1,5 @@
1
1
  import { defaultModelOptions } from "../../directive/model-options/model-options";
2
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
2
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import { createInjector } from "../../injector";
5
5
  import { valueFn } from "../../shared/utils";
@@ -439,7 +439,7 @@ describe("ngModelOptions", () => {
439
439
  // )($rootScope);
440
440
 
441
441
  // $rootScope.$apply("color = 'white'");
442
- // browserTrigger(jqLite(inputElm[2]), "click");
442
+ // browserTrigger(JQLite(inputElm[2]), "click");
443
443
  // expect($rootScope.color).toBe("blue");
444
444
  // });
445
445
 
@@ -996,7 +996,7 @@ describe("ngModelOptions", () => {
996
996
  });
997
997
 
998
998
  it("should get initialized in time for `ngModel` on the original element", () => {
999
- inputElm = jqLite('<foo ng-model="value"></foo>');
999
+ inputElm = JQLite('<foo ng-model="value"></foo>');
1000
1000
  const injector = angular.bootstrap(inputElm, ["myModule"]);
1001
1001
  $rootScope = injector.get("$rootScope");
1002
1002
  const ngModelCtrl = inputElm.controller("ngModel");
@@ -1,4 +1,4 @@
1
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
1
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
2
2
  import { publishExternalAPI } from "../../public";
3
3
  import { createInjector } from "../../injector";
4
4
 
@@ -21,7 +21,6 @@ describe("ngNonBindable", () => {
21
21
 
22
22
  afterEach(() => {
23
23
  dealoc(element);
24
- jqLite.CACHE.clear();
25
24
  });
26
25
 
27
26
  it("should prevent compilation of the owning element and its children", () => {
@@ -1,4 +1,4 @@
1
- import { jqLite, jqLiteRemove, startingTag } from "../../shared/jqlite/jqlite";
1
+ import { JQLite, JQLiteRemove, startingTag } from "../../shared/jqlite/jqlite";
2
2
  import {
3
3
  equals,
4
4
  forEach,
@@ -363,7 +363,7 @@ export const ngOptionsDirective = [
363
363
  }
364
364
 
365
365
  // Support: IE 9 only
366
- // We can't just jqLite('<option>') since jqLite is not smart enough
366
+ // We can't just JQLite('<option>') since JQLite is not smart enough
367
367
  // to create it in <select> and IE barfs otherwise.
368
368
  const optionTemplate = window.document.createElement("option");
369
369
  const optGroupTemplate = window.document.createElement("optgroup");
@@ -392,7 +392,7 @@ export const ngOptionsDirective = [
392
392
 
393
393
  const providedEmptyOption = !!selectCtrl.emptyOption;
394
394
 
395
- const unknownOption = jqLite(optionTemplate.cloneNode(false));
395
+ const unknownOption = JQLite(optionTemplate.cloneNode(false));
396
396
  unknownOption.val("?");
397
397
 
398
398
  let options;
@@ -594,9 +594,9 @@ export const ngOptionsDirective = [
594
594
  for (let i = options.items.length - 1; i >= 0; i--) {
595
595
  const option = options.items[i];
596
596
  if (isDefined(option.group)) {
597
- jqLiteRemove(option.element.parentNode);
597
+ JQLiteRemove(option.element.parentNode);
598
598
  } else {
599
- jqLiteRemove(option.element);
599
+ JQLiteRemove(option.element);
600
600
  }
601
601
  }
602
602
  }
@@ -1,5 +1,5 @@
1
1
  import { createInjector } from "../../injector";
2
- import { jqLite, dealoc } from "../../shared/jqlite/jqlite";
2
+ import { JQLite, dealoc } from "../../shared/jqlite/jqlite";
3
3
  import { publishExternalAPI } from "../../public";
4
4
  import {
5
5
  forEach,
@@ -22,7 +22,7 @@ describe("ngOptions", () => {
22
22
  let injector;
23
23
 
24
24
  function compile(html) {
25
- formElement = jqLite(`<form name="form">${html}</form>`);
25
+ formElement = JQLite(`<form name="form">${html}</form>`);
26
26
  element = formElement.find("select");
27
27
  $compile(formElement)(scope);
28
28
  ngModelCtrl = element.controller("ngModel");
@@ -185,7 +185,7 @@ describe("ngOptions", () => {
185
185
  .directive("oCompileContents", () => ({
186
186
  link(scope, element) {
187
187
  linkLog.push("linkCompileContents");
188
- $compile(jqLite(element[0].childNodes))(scope);
188
+ $compile(JQLite(element[0].childNodes))(scope);
189
189
  },
190
190
  }))
191
191
 
@@ -564,8 +564,8 @@ describe("ngOptions", () => {
564
564
  });
565
565
 
566
566
  expect(element.find("option").length).toEqual(2);
567
- expect(jqLite(element.find("option")[0]).text()).toEqual("blank");
568
- expect(jqLite(element.find("option")[1]).text()).toEqual("A");
567
+ expect(JQLite(element.find("option")[0]).text()).toEqual("blank");
568
+ expect(JQLite(element.find("option")[1]).text()).toEqual("A");
569
569
 
570
570
  scope.$apply(() => {
571
571
  scope.values = [];
@@ -573,7 +573,7 @@ describe("ngOptions", () => {
573
573
  });
574
574
 
575
575
  expect(element.find("option").length).toEqual(1);
576
- expect(jqLite(element.find("option")[0]).text()).toEqual("blank");
576
+ expect(JQLite(element.find("option")[0]).text()).toEqual("blank");
577
577
  });
578
578
 
579
579
  it("should ignore $ and $$ properties", () => {
@@ -2057,10 +2057,10 @@ describe("ngOptions", () => {
2057
2057
 
2058
2058
  expect(element.val()).toEqual("2");
2059
2059
 
2060
- const first = jqLite(element.find("option")[0]);
2060
+ const first = JQLite(element.find("option")[0]);
2061
2061
  expect(first.text()).toEqual("first");
2062
2062
  expect(first.attr("value")).toEqual("1");
2063
- const forth = jqLite(element.find("option")[3]);
2063
+ const forth = JQLite(element.find("option")[3]);
2064
2064
  expect(forth.text()).toEqual("forth");
2065
2065
  expect(forth.attr("value")).toEqual("4");
2066
2066
 
@@ -2216,7 +2216,7 @@ describe("ngOptions", () => {
2216
2216
 
2217
2217
  expect(element.find("option").length).toEqual(2);
2218
2218
  expect(element.val()).toEqual("?");
2219
- expect(jqLite(element.find("option")[0]).val()).toEqual("?");
2219
+ expect(JQLite(element.find("option")[0]).val()).toEqual("?");
2220
2220
 
2221
2221
  scope.$apply(() => {
2222
2222
  scope.selected = scope.values[0];
@@ -2236,14 +2236,14 @@ describe("ngOptions", () => {
2236
2236
 
2237
2237
  expect(element.find("option").length).toEqual(2);
2238
2238
  expect(element.val()).toEqual("");
2239
- expect(jqLite(element.find("option")[0]).val()).toEqual("");
2239
+ expect(JQLite(element.find("option")[0]).val()).toEqual("");
2240
2240
 
2241
2241
  scope.$apply(() => {
2242
2242
  scope.selected = scope.values[0];
2243
2243
  });
2244
2244
 
2245
2245
  expect(element).toEqualSelectValue(scope.selected);
2246
- expect(jqLite(element.find("option")[0]).val()).toEqual("");
2246
+ expect(JQLite(element.find("option")[0]).val()).toEqual("");
2247
2247
  expect(element.find("option").length).toEqual(2);
2248
2248
  });
2249
2249
 
@@ -2257,7 +2257,7 @@ describe("ngOptions", () => {
2257
2257
 
2258
2258
  expect(element.find("option").length).toEqual(2);
2259
2259
  expect(element.val()).toEqual("");
2260
- expect(jqLite(element.find("option")[0]).val()).toEqual("");
2260
+ expect(JQLite(element.find("option")[0]).val()).toEqual("");
2261
2261
 
2262
2262
  scope.$apply(() => {
2263
2263
  scope.selected = scope.values[0];
@@ -2605,7 +2605,7 @@ describe("ngOptions", () => {
2605
2605
  });
2606
2606
 
2607
2607
  it("should be selected, if it is available and no other option is selected", () => {
2608
- // selectedIndex is used here because jqLite incorrectly reports element.val()
2608
+ // selectedIndex is used here because JQLite incorrectly reports element.val()
2609
2609
  scope.$apply(() => {
2610
2610
  scope.values = [{ name: "A" }];
2611
2611
  });
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../public";
2
2
  import { createInjector } from "../../injector";
3
- import { dealoc, jqLite } from "../../shared/jqlite/jqlite";
3
+ import { dealoc, JQLite } from "../../shared/jqlite/jqlite";
4
4
  import { isDefined } from "../../shared/utils";
5
5
 
6
6
  describe("ngHref", () => {
@@ -22,7 +22,6 @@ describe("ngHref", () => {
22
22
 
23
23
  afterEach(() => {
24
24
  dealoc(element);
25
- jqLite.CACHE.clear();
26
25
  });
27
26
 
28
27
  it("should interpolate the expression and bind to href", () => {