@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.
- package/README.md +1 -2
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/e2e/unit.spec.ts +2 -1
- package/index.html +6 -6
- package/package.json +1 -1
- package/src/core/pubsub.js +329 -0
- package/src/router/common/trace.js +6 -6
- package/src/router/directives/state-directives.js +74 -74
- package/src/router/directives/view-directive.js +21 -21
- package/src/router/hooks/core-resolvables.js +12 -11
- package/src/router/hooks/ignored-transition.js +1 -1
- package/src/router/hooks/lazy-load.js +40 -41
- package/src/router/hooks/redirect-to.js +32 -29
- package/src/router/hooks/update-globals.js +1 -1
- package/src/router/hooks/url.js +33 -24
- package/src/router/hooks/views.js +21 -20
- package/src/router/index.js +12 -12
- package/src/router/injectables.js +3 -3
- package/src/router/params/param-factory.js +17 -0
- package/src/router/router.js +75 -10
- package/src/router/services.js +4 -8
- package/src/router/state/state-builder.js +1 -0
- package/src/router/state/state-queue-manager.js +5 -4
- package/src/router/state/state-registry.js +63 -7
- package/src/router/state/state-service.js +47 -51
- package/src/router/state/views.js +4 -4
- package/src/router/state-filters.js +0 -2
- package/src/router/state-provider.js +0 -2
- package/src/router/template-factory.js +4 -4
- package/src/router/transition/hook-builder.js +2 -2
- package/src/router/transition/transition-hook.js +2 -1
- package/src/router/transition/transition-service.js +11 -18
- package/src/router/transition/transition.js +28 -25
- package/src/router/url/url-config.js +1 -49
- package/src/router/url/url-matcher-factory.js +10 -51
- package/src/router/url/url-router.js +31 -17
- package/src/router/url/url-rule.js +9 -13
- package/src/router/url/url-rules.js +3 -3
- package/src/router/url/url-service.js +22 -18
- package/src/router/view/view.js +67 -67
- package/src/services/browser.js +1 -5
- package/src/shared/hof.js +1 -1
- package/test/angular.spec.js +1 -0
- package/test/aria/aria.spec.js +2 -1
- package/test/core/pubsub.spec.js +387 -0
- package/test/directive/bind.spec.js +2 -1
- package/test/directive/boolean.spec.js +4 -2
- package/test/directive/change.spec.js +1 -1
- package/test/directive/class.spec.js +1 -0
- package/test/directive/click.spec.js +2 -1
- package/test/directive/cloak.spec.js +1 -2
- package/test/directive/{constoller.spec.js → controller.spec.js} +1 -0
- package/test/directive/element-style.spec.js +1 -0
- package/test/directive/event.spec.js +1 -1
- package/test/directive/href.spec.js +2 -1
- package/test/directive/init.spec.js +1 -0
- package/test/directive/input.spec.js +200 -285
- package/test/directive/list.spec.js +2 -1
- package/test/directive/model.spec.js +1 -0
- package/test/directive/non-bindable.spec.js +2 -1
- package/test/directive/script.spec.js +1 -0
- package/test/directive/scrset.spec.js +2 -1
- package/test/directive/show-hide.spec.js +1 -0
- package/test/directive/src.spec.js +2 -1
- package/test/directive/style.spec.js +1 -0
- package/test/directive/switch.spec.js +2 -1
- package/test/directive/validators.spec.js +1 -1
- package/test/module-test.html +5 -5
- package/test/original-test.html +3 -3
- package/test/router/services.spec.js +1 -1
- package/test/router/state-directives.spec.js +72 -80
- package/test/router/state-filter.spec.js +6 -4
- package/test/router/state.spec.js +15 -13
- package/test/router/template-factory.spec.js +4 -4
- package/test/router/url-matcher-factory.spec.js +2 -2
- package/test/router/view-directive.spec.js +165 -163
- package/test/router/view-hook.spec.js +4 -4
- package/test/router/view-scroll.spec.js +15 -15
- package/test/router/view.spec.js +3 -3
- package/types/router/core/common/coreservices.d.ts +2 -3
- package/types/router/core/globals.d.ts +1 -4
- package/types/router/core/interface.d.ts +2 -8
- package/types/router/core/params/paramTypes.d.ts +0 -1
- package/types/router/core/router.d.ts +2 -3
- package/types/router/core/state/interface.d.ts +6 -6
- package/types/router/core/state/stateQueueManager.d.ts +1 -3
- package/types/router/core/state/stateRegistry.d.ts +1 -2
- package/types/router/core/state/stateService.d.ts +5 -6
- package/types/router/core/transition/interface.d.ts +4 -4
- package/types/router/core/transition/transitionService.d.ts +1 -2
- package/types/router/core/url/urlConfig.d.ts +1 -2
- package/types/router/core/url/urlRules.d.ts +1 -2
- package/types/router/core/url/urlService.d.ts +1 -2
- package/types/router/core/view/interface.d.ts +2 -2
- package/types/router/core/view/view.d.ts +16 -16
- package/types/router/directives/viewDirective.d.ts +3 -3
- package/types/router/interface.d.ts +4 -4
- package/types/router/locationServices.d.ts +0 -1
- package/types/router/stateProvider.d.ts +3 -3
- package/types/router/statebuilders/views.d.ts +1 -1
- package/types/router/templateFactory.d.ts +2 -2
- 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) {
|
|
@@ -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", () => {
|
|
@@ -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", () => {
|
|
@@ -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]", () => {
|
|
@@ -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", () => {
|
package/test/module-test.html
CHANGED
|
@@ -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", ["
|
|
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
|
|
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
|
|
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
|
|
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
|
|
55
|
+
<a ng-sref="contacts.item.detail({ id: contact.id })">Details</a>
|
|
56
56
|
</div>
|
|
57
57
|
</body>
|
|
58
58
|
</html>
|
package/test/original-test.html
CHANGED
|
@@ -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", ["
|
|
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
|
|
30
|
-
<
|
|
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", ["
|
|
12
|
+
let module = window.angular.module("defaultModule", ["ng.router"]);
|
|
13
13
|
module.config(
|
|
14
14
|
(
|
|
15
15
|
_$routerProvider_,
|