@angular-wave/angular.ts 0.0.51 → 0.0.53

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 (42) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/animations/animate-children-directive.js +19 -99
  5. package/src/animations/animate-children-directive.md +80 -0
  6. package/src/animations/animate-css-driver.js +250 -256
  7. package/src/animations/animate-css.js +646 -875
  8. package/src/animations/animate-css.md +263 -0
  9. package/src/animations/animate-js-driver.js +54 -56
  10. package/src/animations/animate-js.js +303 -306
  11. package/src/animations/animate-queue.js +707 -716
  12. package/src/animations/animate-swap.js +30 -119
  13. package/src/animations/animate-swap.md +88 -0
  14. package/src/animations/animation.js +3 -3
  15. package/src/core/animate/animate-css.js +21 -6
  16. package/src/core/animate/animate-runner.js +147 -145
  17. package/src/core/animate/animate.js +572 -585
  18. package/src/core/animate/animate.spec.js +194 -286
  19. package/src/core/animate/anomate.md +13 -0
  20. package/src/core/animate/helpers.js +10 -0
  21. package/src/core/compile/compile.spec.js +5 -6
  22. package/src/core/core.html +0 -1
  23. package/src/directive/select/select.js +301 -305
  24. package/src/public.js +0 -1
  25. package/src/router/directives/state-directives.js +256 -574
  26. package/src/router/directives/state-directives.md +435 -0
  27. package/src/router/directives/view-directive.js +3 -3
  28. package/src/router/index.js +7 -7
  29. package/types/animations/animate-children-directive.d.ts +5 -80
  30. package/types/animations/animate-css-driver.d.ts +11 -0
  31. package/types/animations/animate-css.d.ts +8 -0
  32. package/types/animations/animate-js-driver.d.ts +8 -0
  33. package/types/animations/animate-js.d.ts +12 -0
  34. package/types/animations/animate-queue.d.ts +19 -0
  35. package/types/animations/animate-swap.d.ts +5 -89
  36. package/types/core/animate/animate-css.d.ts +1 -1
  37. package/types/core/animate/animate-runner.d.ts +32 -0
  38. package/types/core/animate/animate.d.ts +509 -0
  39. package/types/core/animate/helpers.d.ts +8 -0
  40. package/types/directive/select/select.d.ts +79 -0
  41. package/types/router/directives/state-directives.d.ts +31 -0
  42. package/src/core/document.spec.js +0 -52
@@ -4995,37 +4995,36 @@ describe("$compile", () => {
4995
4995
  // We compile the contents of element (i.e. not element itself)
4996
4996
  // Then delete these contents and check the cache has been reset to zero
4997
4997
  // Clear cache
4998
- // Update: THIS TEST IS IRRELEVANT IF WE DONT POLLUTE THE CACHE
4999
4998
  CACHE.clear();
5000
4999
  window.angular.module("test1", ["ng"]);
5001
5000
  createInjector(["test1"]).invoke(($compile) => {
5002
- expect(CACHE.size).toEqual(1);
5001
+ expect(CACHE.size).toEqual(0);
5003
5002
  // First with only elements at the top level
5004
5003
  element = JQLite("<div><div></div></div>");
5005
5004
  $compile(element[0].childNodes)($rootScope);
5006
5005
  // expect(CACHE.size).toEqual(2);
5007
5006
  element.empty();
5008
- expect(CACHE.size).toEqual(1);
5007
+ expect(CACHE.size).toEqual(0);
5009
5008
 
5010
5009
  // Next with non-empty text nodes at the top level
5011
5010
  // (in this case the compiler will wrap them in a <span>)
5012
5011
  element = JQLite("<div>xxx</div>");
5013
5012
  $compile(element[0].childNodes)($rootScope);
5014
5013
  element.empty();
5015
- expect(CACHE.size).toEqual(1);
5014
+ expect(CACHE.size).toEqual(0);
5016
5015
 
5017
5016
  // Next with comment nodes at the top level
5018
5017
  element = JQLite("<div><!-- comment --></div>");
5019
5018
  $compile(element[0].childNodes)($rootScope);
5020
5019
  element.empty();
5021
- expect(CACHE.size).toEqual(1);
5020
+ expect(CACHE.size).toEqual(0);
5022
5021
 
5023
5022
  // Finally with empty text nodes at the top level
5024
5023
  element = JQLite("<div> \n<div></div> </div>");
5025
5024
  $compile(element[0].childNodes)($rootScope);
5026
5025
  //expect(CACHE.size).toEqual(2);
5027
5026
  element.empty();
5028
- expect(CACHE.size).toEqual(1);
5027
+ expect(CACHE.size).toEqual(0);
5029
5028
  });
5030
5029
  });
5031
5030
 
@@ -11,7 +11,6 @@
11
11
  <script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
12
12
  <script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
13
13
  <script type="module" src="/src/core/cookie-reader.spec.js"></script>
14
- <script type="module" src="/src/core/document.spec.js"></script>
15
14
  <script type="module" src="/src/core/on.spec.js"></script>
16
15
  <script type="module" src="/src/core/prop.spec.js"></script>
17
16
  <script type="module" src="/src/core/root-element.spec.js"></script>