@angular-wave/angular.ts 0.0.27 → 0.0.29

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 (103) hide show
  1. package/README.md +1 -2
  2. package/dist/angular-ts.esm.js +1 -1
  3. package/dist/angular-ts.umd.js +1 -1
  4. package/e2e/unit.spec.ts +2 -1
  5. package/index.html +6 -6
  6. package/package.json +1 -1
  7. package/src/core/pubsub.js +329 -0
  8. package/src/router/common/trace.js +6 -6
  9. package/src/router/directives/state-directives.js +74 -74
  10. package/src/router/directives/view-directive.js +21 -21
  11. package/src/router/hooks/core-resolvables.js +12 -11
  12. package/src/router/hooks/ignored-transition.js +1 -1
  13. package/src/router/hooks/lazy-load.js +40 -41
  14. package/src/router/hooks/redirect-to.js +32 -29
  15. package/src/router/hooks/update-globals.js +1 -1
  16. package/src/router/hooks/url.js +33 -24
  17. package/src/router/hooks/views.js +21 -20
  18. package/src/router/index.js +12 -12
  19. package/src/router/injectables.js +3 -3
  20. package/src/router/params/param-factory.js +17 -0
  21. package/src/router/router.js +75 -10
  22. package/src/router/services.js +4 -8
  23. package/src/router/state/state-builder.js +1 -0
  24. package/src/router/state/state-queue-manager.js +5 -4
  25. package/src/router/state/state-registry.js +63 -7
  26. package/src/router/state/state-service.js +47 -51
  27. package/src/router/state/views.js +4 -4
  28. package/src/router/state-filters.js +0 -2
  29. package/src/router/state-provider.js +0 -2
  30. package/src/router/template-factory.js +4 -4
  31. package/src/router/transition/hook-builder.js +2 -2
  32. package/src/router/transition/transition-hook.js +2 -1
  33. package/src/router/transition/transition-service.js +11 -18
  34. package/src/router/transition/transition.js +28 -25
  35. package/src/router/url/url-config.js +1 -49
  36. package/src/router/url/url-matcher-factory.js +10 -51
  37. package/src/router/url/url-router.js +31 -17
  38. package/src/router/url/url-rule.js +9 -13
  39. package/src/router/url/url-rules.js +3 -3
  40. package/src/router/url/url-service.js +22 -18
  41. package/src/router/view/view.js +67 -67
  42. package/src/services/browser.js +1 -5
  43. package/src/shared/hof.js +1 -1
  44. package/test/angular.spec.js +1 -0
  45. package/test/aria/aria.spec.js +2 -1
  46. package/test/core/pubsub.spec.js +387 -0
  47. package/test/directive/bind.spec.js +2 -1
  48. package/test/directive/boolean.spec.js +4 -2
  49. package/test/directive/change.spec.js +1 -1
  50. package/test/directive/class.spec.js +1 -0
  51. package/test/directive/click.spec.js +2 -1
  52. package/test/directive/cloak.spec.js +1 -2
  53. package/test/directive/{constoller.spec.js → controller.spec.js} +1 -0
  54. package/test/directive/element-style.spec.js +1 -0
  55. package/test/directive/event.spec.js +1 -1
  56. package/test/directive/href.spec.js +2 -1
  57. package/test/directive/init.spec.js +1 -0
  58. package/test/directive/input.spec.js +200 -285
  59. package/test/directive/list.spec.js +2 -1
  60. package/test/directive/model.spec.js +1 -0
  61. package/test/directive/non-bindable.spec.js +2 -1
  62. package/test/directive/script.spec.js +1 -0
  63. package/test/directive/scrset.spec.js +2 -1
  64. package/test/directive/show-hide.spec.js +1 -0
  65. package/test/directive/src.spec.js +2 -1
  66. package/test/directive/style.spec.js +1 -0
  67. package/test/directive/switch.spec.js +2 -1
  68. package/test/directive/validators.spec.js +1 -1
  69. package/test/module-test.html +5 -5
  70. package/test/original-test.html +3 -3
  71. package/test/router/services.spec.js +1 -1
  72. package/test/router/state-directives.spec.js +72 -80
  73. package/test/router/state-filter.spec.js +6 -4
  74. package/test/router/state.spec.js +15 -13
  75. package/test/router/template-factory.spec.js +4 -4
  76. package/test/router/url-matcher-factory.spec.js +2 -2
  77. package/test/router/view-directive.spec.js +165 -163
  78. package/test/router/view-hook.spec.js +4 -4
  79. package/test/router/view-scroll.spec.js +15 -15
  80. package/test/router/view.spec.js +3 -3
  81. package/types/router/core/common/coreservices.d.ts +2 -3
  82. package/types/router/core/globals.d.ts +1 -4
  83. package/types/router/core/interface.d.ts +2 -8
  84. package/types/router/core/params/paramTypes.d.ts +0 -1
  85. package/types/router/core/router.d.ts +2 -3
  86. package/types/router/core/state/interface.d.ts +6 -6
  87. package/types/router/core/state/stateQueueManager.d.ts +1 -3
  88. package/types/router/core/state/stateRegistry.d.ts +1 -2
  89. package/types/router/core/state/stateService.d.ts +5 -6
  90. package/types/router/core/transition/interface.d.ts +4 -4
  91. package/types/router/core/transition/transitionService.d.ts +1 -2
  92. package/types/router/core/url/urlConfig.d.ts +1 -2
  93. package/types/router/core/url/urlRules.d.ts +1 -2
  94. package/types/router/core/url/urlService.d.ts +1 -2
  95. package/types/router/core/view/interface.d.ts +2 -2
  96. package/types/router/core/view/view.d.ts +16 -16
  97. package/types/router/directives/viewDirective.d.ts +3 -3
  98. package/types/router/interface.d.ts +4 -4
  99. package/types/router/locationServices.d.ts +0 -1
  100. package/types/router/stateProvider.d.ts +3 -3
  101. package/types/router/statebuilders/views.d.ts +1 -1
  102. package/types/router/templateFactory.d.ts +2 -2
  103. package/types/router/viewScroll.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../src/jqLite";
1
+ import { dealoc, jqLite } from "../../src/jqLite";
2
2
  import { publishExternalAPI } from "../../src/public";
3
3
  import { createInjector } from "../../src/injector";
4
4
 
@@ -18,6 +18,7 @@ describe("ngList", () => {
18
18
 
19
19
  afterEach(() => {
20
20
  dealoc(element);
21
+ jqLite.CACHE.clear();
21
22
  });
22
23
 
23
24
  function changeInputValue(val) {
@@ -52,6 +52,7 @@ describe("ngModel", () => {
52
52
 
53
53
  afterEach(() => {
54
54
  dealoc(element);
55
+ jqLite.CACHE.clear();
55
56
  });
56
57
 
57
58
  describe("NgModelController", () => {
@@ -1,4 +1,4 @@
1
- import { dealoc } from "../../src/jqLite";
1
+ import { dealoc, jqLite } from "../../src/jqLite";
2
2
  import { publishExternalAPI } from "../../src/public";
3
3
  import { createInjector } from "../../src/injector";
4
4
 
@@ -21,6 +21,7 @@ describe("ngNonBindable", () => {
21
21
 
22
22
  afterEach(() => {
23
23
  dealoc(element);
24
+ jqLite.CACHE.clear();
24
25
  });
25
26
 
26
27
  it("should prevent compilation of the owning element and its children", () => {
@@ -21,6 +21,7 @@ describe("scriptDirective", () => {
21
21
 
22
22
  afterEach(() => {
23
23
  dealoc(element);
24
+ jqLite.CACHE.clear();
24
25
  });
25
26
 
26
27
  it("should populate $templateCache with contents of a ng-template script element", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
 
5
5
  describe("ngSrcset", () => {
6
6
  let $scope;
@@ -17,6 +17,7 @@ describe("ngSrcset", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  it("should not result empty string in img srcset", () => {
@@ -17,6 +17,7 @@ describe("ngShow / ngHide", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  describe("ngShow", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
 
5
5
  describe("ngSrc", () => {
6
6
  let $scope;
@@ -17,6 +17,7 @@ describe("ngSrc", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  describe("img[ng-src]", () => {
@@ -17,6 +17,7 @@ describe("ng-style", () => {
17
17
 
18
18
  afterEach(() => {
19
19
  dealoc(element);
20
+ jqLite.CACHE.clear();
20
21
  });
21
22
 
22
23
  it("should set", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
 
5
5
  describe("ngSwitch", () => {
6
6
  let $scope;
@@ -19,6 +19,7 @@ describe("ngSwitch", () => {
19
19
 
20
20
  afterEach(() => {
21
21
  dealoc(element);
22
+ jqLite.CACHE.clear();
22
23
  });
23
24
 
24
25
  it("should switch on value change", () => {
@@ -1,6 +1,6 @@
1
1
  import { publishExternalAPI } from "../../src/public";
2
2
  import { createInjector } from "../../src/injector";
3
- import { dealoc } from "../../src/jqLite";
3
+ import { dealoc, jqLite } from "../../src/jqLite";
4
4
 
5
5
  describe("validators", () => {
6
6
  let $rootScope;
@@ -5,7 +5,7 @@
5
5
  <script type="module" src="../src/index.js"></script>
6
6
  <script>
7
7
  document.addEventListener("DOMContentLoaded", () => {
8
- var myApp = window.angular.module("test", ["ui.router"]);
8
+ var myApp = window.angular.module("test", ["ng.router"]);
9
9
  myApp
10
10
  .config(function ($stateProvider) {
11
11
  $stateProvider
@@ -20,19 +20,19 @@
20
20
  name: "contacts",
21
21
  url: "/contacts",
22
22
  template:
23
- '<a ui-sref=".item({ id: 5 })" class="item">Person</a> <ui-view></ui-view>',
23
+ '<a ng-sref=".item({ id: 5 })" class="item">Person</a> <ng-view></ng-view>',
24
24
  })
25
25
  .state({
26
26
  name: "contacts.item",
27
27
  url: "/{id:int}",
28
28
  template:
29
- '<a ui-sref=".detail" class="item-detail">Detail</a> | <a ui-sref="^" class="item-parent">Parent</a> | <ui-view></ui-view>',
29
+ '<a ng-sref=".detail" class="item-detail">Detail</a> | <a ng-sref="^" class="item-parent">Parent</a> | <ng-view></ng-view>',
30
30
  })
31
31
  .state({
32
32
  name: "contacts.item.detail",
33
33
  url: "/{id}",
34
34
  template:
35
- '<div class="title">Detail</div> | <a ui-sref="^" class="item-parent2">Item</a>',
35
+ '<div class="title">Detail</div> | <a ng-sref="^" class="item-parent2">Item</a>',
36
36
  });
37
37
  })
38
38
  .controller(
@@ -52,7 +52,7 @@
52
52
  <body ng-app="test">
53
53
  <div ng-controller="TestController as $ctrl">
54
54
  {{$ctrl.test}}
55
- <a ui-sref="contacts.item.detail({ id: contact.id })">Details</a>
55
+ <a ng-sref="contacts.item.detail({ id: contact.id })">Details</a>
56
56
  </div>
57
57
  </body>
58
58
  </html>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <script src="//unpkg.com/@uirouter/angularjs/release/angular-ui-router.js"></script>
7
7
  <script>
8
- var myApp = angular.module("test", ["ui.router"]);
8
+ var myApp = angular.module("test", ["ng.router"]);
9
9
 
10
10
  myApp.config(function ($stateProvider) {
11
11
  var helloState = {
@@ -26,8 +26,8 @@
26
26
  </script>
27
27
  </head>
28
28
  <body ng-app="test">
29
- <a ui-sref="hello" ui-sref-active="active">Hello</a>
30
- <ui-view></ui-view>
29
+ <a ng-sref="hello" ng-sref-active="active">Hello</a>
30
+ <ng-view></ng-view>
31
31
  {{ 2 + 2}}
32
32
  </body>
33
33
  </html>
@@ -9,7 +9,7 @@ describe("router services", () => {
9
9
  beforeEach(() => {
10
10
  window.angular = new Angular();
11
11
  publishExternalAPI();
12
- let module = window.angular.module("defaultModule", ["ui.router"]);
12
+ let module = window.angular.module("defaultModule", ["ng.router"]);
13
13
  module.config(
14
14
  (
15
15
  _$routerProvider_,