@angular-wave/angular.ts 0.0.15 → 0.0.16
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/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +6 -2
- package/src/animations/animate-css.js +13 -218
- package/src/animations/animate.css.md +263 -0
- package/src/animations/animate.md +933 -0
- package/src/animations/module.js +0 -750
- package/src/animations/shared.js +0 -11
- package/src/core/compile.js +1 -1
- package/src/exts/messages.md +30 -30
- package/src/router/adapter/directives/viewDirective.js +1 -2
- package/src/router/core/common/safeConsole.js +1 -2
- package/src/router/core/hooks/resolve.js +3 -4
- package/src/router/core/hooks/views.js +3 -2
- package/src/router/router.js +11 -10
package/src/animations/shared.js
CHANGED
|
@@ -365,14 +365,3 @@ export function concatWithSpace(a, b) {
|
|
|
365
365
|
if (!b) return a;
|
|
366
366
|
return `${a} ${b}`;
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
export const helpers = {
|
|
370
|
-
blockTransitions(node, duration) {
|
|
371
|
-
// we use a negative delay value since it performs blocking
|
|
372
|
-
// yet it doesn't kill any existing transitions running on the
|
|
373
|
-
// same element which makes this safe for class-based animations
|
|
374
|
-
const value = duration ? `-${duration}s` : "";
|
|
375
|
-
applyInlineStyle(node, [TRANSITION_DELAY_PROP, value]);
|
|
376
|
-
return [TRANSITION_DELAY_PROP, value];
|
|
377
|
-
},
|
|
378
|
-
};
|
package/src/core/compile.js
CHANGED
|
@@ -2147,7 +2147,7 @@ export function $CompileProvider($provide, $$sanitizeUriProvider) {
|
|
|
2147
2147
|
!isArray(require) &&
|
|
2148
2148
|
isObject(require)
|
|
2149
2149
|
) {
|
|
2150
|
-
|
|
2150
|
+
Object.assign(
|
|
2151
2151
|
elementControllers[name].instance,
|
|
2152
2152
|
getControllers(name, require, $element, elementControllers),
|
|
2153
2153
|
);
|
package/src/exts/messages.md
CHANGED
|
@@ -518,33 +518,33 @@ _ {@link module:ngMessages Click here} to learn more about`ngMessages`and`ngMess
|
|
|
518
518
|
_ @param {string} ngMessageExp|whenExp an expression value corresponding to the message key.
|
|
519
519
|
_/
|
|
520
520
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
521
|
+
/**
|
|
522
|
+
* @ngdoc directive
|
|
523
|
+
* @name ngMessageDefault
|
|
524
|
+
* @restrict AE
|
|
525
|
+
* @scope
|
|
526
|
+
*
|
|
527
|
+
* @description
|
|
528
|
+
* `ngMessageDefault` is a directive with the purpose to show and hide a default message for
|
|
529
|
+
* {@link directive:ngMessages}, when none of provided messages matches.
|
|
530
|
+
*
|
|
531
|
+
* More information about using `ngMessageDefault` can be found in the
|
|
532
|
+
* {@link module:ngMessages `ngMessages` module documentation}.
|
|
533
|
+
*
|
|
534
|
+
* @usage
|
|
535
|
+
* ```html
|
|
536
|
+
* <!-- using attribute directives -->
|
|
537
|
+
* <ANY ng-messages="expression" role="alert">
|
|
538
|
+
* <ANY ng-message="stringValue">...</ANY>
|
|
539
|
+
* <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
|
|
540
|
+
* <ANY ng-message-default>...</ANY>
|
|
541
|
+
* </ANY>
|
|
542
|
+
*
|
|
543
|
+
* <!-- or by using element directives -->
|
|
544
|
+
* <ng-messages for="expression" role="alert">
|
|
545
|
+
* <ng-message when="stringValue">...</ng-message>
|
|
546
|
+
* <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
|
|
547
|
+
* <ng-message-default>...</ng-message-default>
|
|
548
|
+
* </ng-messages>
|
|
549
|
+
*
|
|
550
|
+
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { filter, tail, unnestR } from "../../core/common/common";
|
|
2
2
|
import { isDefined, isFunction, isString } from "../../core/common/predicates";
|
|
3
3
|
import { kebobString } from "../../core/common/strings";
|
|
4
|
-
import { noop } from "../../core/common/common";
|
|
5
4
|
import { parse } from "../../core/common/hof";
|
|
6
5
|
import { ResolveContext } from "../../core/resolve/resolveContext";
|
|
7
6
|
import { trace } from "../../core/common/trace";
|
|
@@ -338,7 +337,7 @@ export function $ViewDirectiveFill(
|
|
|
338
337
|
);
|
|
339
338
|
return;
|
|
340
339
|
}
|
|
341
|
-
const cfg = data.$cfg || { viewDecl: {}, getTemplate:
|
|
340
|
+
const cfg = data.$cfg || { viewDecl: {}, getTemplate: () => {} };
|
|
342
341
|
const resolveCtx = cfg.path && new ResolveContext(cfg.path);
|
|
343
342
|
$element.html(cfg.getTemplate($element, resolveCtx) || initial);
|
|
344
343
|
trace.traceUIViewFill(data.$uiView, $element.html());
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
5
|
/* tslint:disable:no-console */
|
|
6
|
-
|
|
7
|
-
const noopConsoleStub = { log: noop, error: noop, table: noop };
|
|
6
|
+
const noopConsoleStub = { log: () => {}, error: () => {}, table: () => {} };
|
|
8
7
|
function ie9Console(console) {
|
|
9
8
|
const bound = (fn) => Function.prototype.bind.call(fn, console);
|
|
10
9
|
return {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { noop } from "../common/common";
|
|
2
1
|
import { ResolveContext } from "../resolve/resolveContext";
|
|
3
2
|
import { val } from "../common/hof";
|
|
4
3
|
export const RESOLVE_HOOK_PRIORITY = 1000;
|
|
@@ -14,7 +13,7 @@ export const RESOLVE_HOOK_PRIORITY = 1000;
|
|
|
14
13
|
const eagerResolvePath = (trans) =>
|
|
15
14
|
new ResolveContext(trans.treeChanges().to)
|
|
16
15
|
.resolvePath("EAGER", trans)
|
|
17
|
-
.then(
|
|
16
|
+
.then(() => {});
|
|
18
17
|
export const registerEagerResolvePath = (transitionService) =>
|
|
19
18
|
transitionService.onStart({}, eagerResolvePath, {
|
|
20
19
|
priority: RESOLVE_HOOK_PRIORITY,
|
|
@@ -32,7 +31,7 @@ const lazyResolveState = (trans, state) =>
|
|
|
32
31
|
new ResolveContext(trans.treeChanges().to)
|
|
33
32
|
.subContext(state.$$state())
|
|
34
33
|
.resolvePath("LAZY", trans)
|
|
35
|
-
.then(
|
|
34
|
+
.then(() => {});
|
|
36
35
|
export const registerLazyResolveState = (transitionService) =>
|
|
37
36
|
transitionService.onEnter({ entering: val(true) }, lazyResolveState, {
|
|
38
37
|
priority: RESOLVE_HOOK_PRIORITY,
|
|
@@ -50,7 +49,7 @@ export const registerLazyResolveState = (transitionService) =>
|
|
|
50
49
|
const resolveRemaining = (trans) =>
|
|
51
50
|
new ResolveContext(trans.treeChanges().to)
|
|
52
51
|
.resolvePath("LAZY", trans)
|
|
53
|
-
.then(
|
|
52
|
+
.then(() => {});
|
|
54
53
|
export const registerResolveRemaining = (transitionService) =>
|
|
55
54
|
transitionService.onFinish({}, resolveRemaining, {
|
|
56
55
|
priority: RESOLVE_HOOK_PRIORITY,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { noop } from "../common/common";
|
|
2
1
|
import { services } from "../common/coreservices";
|
|
3
2
|
/**
|
|
4
3
|
* A [[TransitionHookFn]] which waits for the views to load
|
|
@@ -12,7 +11,9 @@ const loadEnteringViews = (transition) => {
|
|
|
12
11
|
const $q = services.$q;
|
|
13
12
|
const enteringViews = transition.views("entering");
|
|
14
13
|
if (!enteringViews.length) return;
|
|
15
|
-
return $q
|
|
14
|
+
return $q
|
|
15
|
+
.all(enteringViews.map((view) => $q.when(view.load())))
|
|
16
|
+
.then(() => {});
|
|
16
17
|
};
|
|
17
18
|
export const registerLoadEnteringViews = (transitionService) =>
|
|
18
19
|
transitionService.onFinish({}, loadEnteringViews);
|
package/src/router/router.js
CHANGED
|
@@ -36,7 +36,7 @@ export function initRouter() {
|
|
|
36
36
|
mod_util.provider("$urlService", getProviderFor("urlService"));
|
|
37
37
|
mod_util.provider("$urlMatcherFactory", [
|
|
38
38
|
"$uiRouterProvider",
|
|
39
|
-
function
|
|
39
|
+
function () {
|
|
40
40
|
return router.urlMatcherFactory;
|
|
41
41
|
},
|
|
42
42
|
]);
|
|
@@ -51,7 +51,7 @@ export function initRouter() {
|
|
|
51
51
|
.provider("$uiViewScroll", $ViewScrollProvider)
|
|
52
52
|
.factory("$stateParams", [
|
|
53
53
|
"$uiRouter",
|
|
54
|
-
function
|
|
54
|
+
function ($uiRouter) {
|
|
55
55
|
return $uiRouter.globals.params;
|
|
56
56
|
},
|
|
57
57
|
])
|
|
@@ -62,15 +62,16 @@ export function initRouter() {
|
|
|
62
62
|
.directive("uiSrefActiveEq", uiSrefActiveDirective)
|
|
63
63
|
.directive("uiState", uiStateDirective)
|
|
64
64
|
.directive("uiView", uiView)
|
|
65
|
-
.directive("uiView", $ViewDirectiveFill)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
.directive("uiView", $ViewDirectiveFill)
|
|
66
|
+
.run(["$state", function () {}]);
|
|
67
|
+
mod_main
|
|
68
|
+
.factory("$view", function View() {
|
|
69
|
+
return router.viewService;
|
|
70
|
+
})
|
|
71
|
+
.service("$trace", function Trace() {
|
|
72
|
+
return trace;
|
|
73
|
+
});
|
|
72
74
|
mod_main.run(watchDigests);
|
|
73
75
|
mod_util.run(["$urlMatcherFactory", function MatcherFac() {}]);
|
|
74
|
-
mod_state.run(["$state", function State() {}]);
|
|
75
76
|
mod_init.run(runBlock);
|
|
76
77
|
}
|