@angular/animations 15.1.0-next.2 → 15.1.0-rc.0
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/browser/index.d.ts +1 -1
- package/browser/testing/index.d.ts +1 -1
- package/esm2020/browser/src/dsl/animation_transition_factory.mjs +2 -2
- package/esm2020/browser/src/render/animation_driver.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/animations.mjs +8 -53
- package/fesm2015/animations.mjs.map +1 -1
- package/fesm2015/browser/testing.mjs +5 -56
- package/fesm2015/browser/testing.mjs.map +1 -1
- package/fesm2015/browser.mjs +12 -128
- package/fesm2015/browser.mjs.map +1 -1
- package/fesm2020/animations.mjs +8 -53
- package/fesm2020/animations.mjs.map +1 -1
- package/fesm2020/browser/testing.mjs +5 -56
- package/fesm2020/browser/testing.mjs.map +1 -1
- package/fesm2020/browser.mjs +12 -128
- package/fesm2020/browser.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/fesm2015/browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-
|
|
2
|
+
* @license Angular v15.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8,13 +8,6 @@ import { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, s
|
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
9
|
import { ɵRuntimeError, Injectable } from '@angular/core';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright Google LLC All Rights Reserved.
|
|
14
|
-
*
|
|
15
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
16
|
-
* found in the LICENSE file at https://angular.io/license
|
|
17
|
-
*/
|
|
18
11
|
const LINE_START = '\n - ';
|
|
19
12
|
function invalidTimingValue(exp) {
|
|
20
13
|
return new ɵRuntimeError(3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, ngDevMode && `The provided timing value "${exp}" is invalid.`);
|
|
@@ -140,13 +133,6 @@ function transitionFailed(name, errors) {
|
|
|
140
133
|
return new ɵRuntimeError(3505 /* RuntimeErrorCode.TRANSITION_FAILED */, ngDevMode && `@${name} has failed due to:\n ${errors.map(err => err.message).join('\n- ')}`);
|
|
141
134
|
}
|
|
142
135
|
|
|
143
|
-
/**
|
|
144
|
-
* @license
|
|
145
|
-
* Copyright Google LLC All Rights Reserved.
|
|
146
|
-
*
|
|
147
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
148
|
-
* found in the LICENSE file at https://angular.io/license
|
|
149
|
-
*/
|
|
150
136
|
/**
|
|
151
137
|
* Set of all animatable CSS properties
|
|
152
138
|
*
|
|
@@ -354,13 +340,6 @@ const ANIMATABLE_PROP_SET = new Set([
|
|
|
354
340
|
'zoom',
|
|
355
341
|
]);
|
|
356
342
|
|
|
357
|
-
/**
|
|
358
|
-
* @license
|
|
359
|
-
* Copyright Google LLC All Rights Reserved.
|
|
360
|
-
*
|
|
361
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
362
|
-
* found in the LICENSE file at https://angular.io/license
|
|
363
|
-
*/
|
|
364
343
|
function isBrowser() {
|
|
365
344
|
return (typeof window !== 'undefined' && typeof window.document !== 'undefined');
|
|
366
345
|
}
|
|
@@ -544,13 +523,6 @@ function hypenatePropsKeys(original) {
|
|
|
544
523
|
return newMap;
|
|
545
524
|
}
|
|
546
525
|
|
|
547
|
-
/**
|
|
548
|
-
* @license
|
|
549
|
-
* Copyright Google LLC All Rights Reserved.
|
|
550
|
-
*
|
|
551
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
552
|
-
* found in the LICENSE file at https://angular.io/license
|
|
553
|
-
*/
|
|
554
526
|
/**
|
|
555
527
|
* @publicApi
|
|
556
528
|
*/
|
|
@@ -578,9 +550,9 @@ class NoopAnimationDriver {
|
|
|
578
550
|
return new NoopAnimationPlayer(duration, delay);
|
|
579
551
|
}
|
|
580
552
|
}
|
|
581
|
-
NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
582
|
-
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
553
|
+
NoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
554
|
+
NoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NoopAnimationDriver });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NoopAnimationDriver, decorators: [{
|
|
584
556
|
type: Injectable
|
|
585
557
|
}] });
|
|
586
558
|
/**
|
|
@@ -590,13 +562,6 @@ class AnimationDriver {
|
|
|
590
562
|
}
|
|
591
563
|
AnimationDriver.NOOP = ( /* @__PURE__ */new NoopAnimationDriver());
|
|
592
564
|
|
|
593
|
-
/**
|
|
594
|
-
* @license
|
|
595
|
-
* Copyright Google LLC All Rights Reserved.
|
|
596
|
-
*
|
|
597
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
598
|
-
* found in the LICENSE file at https://angular.io/license
|
|
599
|
-
*/
|
|
600
565
|
const ONE_SECOND = 1000;
|
|
601
566
|
const SUBSTITUTION_EXPR_START = '{{';
|
|
602
567
|
const SUBSTITUTION_EXPR_END = '}}';
|
|
@@ -888,13 +853,6 @@ function computeStyle(element, prop) {
|
|
|
888
853
|
return window.getComputedStyle(element)[prop];
|
|
889
854
|
}
|
|
890
855
|
|
|
891
|
-
/**
|
|
892
|
-
* @license
|
|
893
|
-
* Copyright Google LLC All Rights Reserved.
|
|
894
|
-
*
|
|
895
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
896
|
-
* found in the LICENSE file at https://angular.io/license
|
|
897
|
-
*/
|
|
898
856
|
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
899
857
|
function createListOfWarnings(warnings) {
|
|
900
858
|
const LINE_START = '\n - ';
|
|
@@ -921,13 +879,6 @@ function pushUnrecognizedPropertiesWarning(warnings, props) {
|
|
|
921
879
|
}
|
|
922
880
|
}
|
|
923
881
|
|
|
924
|
-
/**
|
|
925
|
-
* @license
|
|
926
|
-
* Copyright Google LLC All Rights Reserved.
|
|
927
|
-
*
|
|
928
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
929
|
-
* found in the LICENSE file at https://angular.io/license
|
|
930
|
-
*/
|
|
931
882
|
const ANY_STATE = '*';
|
|
932
883
|
function parseTransitionExpr(transitionValue, errors) {
|
|
933
884
|
const expressions = [];
|
|
@@ -999,13 +950,6 @@ function makeLambdaFromStates(lhs, rhs) {
|
|
|
999
950
|
};
|
|
1000
951
|
}
|
|
1001
952
|
|
|
1002
|
-
/**
|
|
1003
|
-
* @license
|
|
1004
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1005
|
-
*
|
|
1006
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1007
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1008
|
-
*/
|
|
1009
953
|
const SELF_TOKEN = ':self';
|
|
1010
954
|
const SELF_TOKEN_REGEX = new RegExp(`\s*${SELF_TOKEN}\s*,?`, 'g');
|
|
1011
955
|
/*
|
|
@@ -1533,13 +1477,6 @@ class ElementInstructionMap {
|
|
|
1533
1477
|
}
|
|
1534
1478
|
}
|
|
1535
1479
|
|
|
1536
|
-
/**
|
|
1537
|
-
* @license
|
|
1538
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1539
|
-
*
|
|
1540
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1541
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1542
|
-
*/
|
|
1543
1480
|
const ONE_FRAME_IN_MILLISECONDS = 1;
|
|
1544
1481
|
const ENTER_TOKEN = ':enter';
|
|
1545
1482
|
const ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');
|
|
@@ -2333,13 +2270,6 @@ class Animation {
|
|
|
2333
2270
|
}
|
|
2334
2271
|
}
|
|
2335
2272
|
|
|
2336
|
-
/**
|
|
2337
|
-
* @license
|
|
2338
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2339
|
-
*
|
|
2340
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2341
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2342
|
-
*/
|
|
2343
2273
|
/**
|
|
2344
2274
|
* @publicApi
|
|
2345
2275
|
*/
|
|
@@ -2357,13 +2287,6 @@ class NoopAnimationStyleNormalizer {
|
|
|
2357
2287
|
}
|
|
2358
2288
|
}
|
|
2359
2289
|
|
|
2360
|
-
/**
|
|
2361
|
-
* @license
|
|
2362
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2363
|
-
*
|
|
2364
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2365
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2366
|
-
*/
|
|
2367
2290
|
const DIMENSIONAL_PROP_SET = new Set([
|
|
2368
2291
|
'width',
|
|
2369
2292
|
'height',
|
|
@@ -2417,13 +2340,6 @@ class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {
|
|
|
2417
2340
|
}
|
|
2418
2341
|
}
|
|
2419
2342
|
|
|
2420
|
-
/**
|
|
2421
|
-
* @license
|
|
2422
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2423
|
-
*
|
|
2424
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2425
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2426
|
-
*/
|
|
2427
2343
|
function createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {
|
|
2428
2344
|
return {
|
|
2429
2345
|
type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */,
|
|
@@ -2581,7 +2497,7 @@ class AnimationStateStyles {
|
|
|
2581
2497
|
}
|
|
2582
2498
|
const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);
|
|
2583
2499
|
val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);
|
|
2584
|
-
finalStyles.set(
|
|
2500
|
+
finalStyles.set(prop, val);
|
|
2585
2501
|
});
|
|
2586
2502
|
}
|
|
2587
2503
|
});
|
|
@@ -2645,13 +2561,6 @@ function balanceProperties(stateMap, key1, key2) {
|
|
|
2645
2561
|
}
|
|
2646
2562
|
}
|
|
2647
2563
|
|
|
2648
|
-
/**
|
|
2649
|
-
* @license
|
|
2650
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2651
|
-
*
|
|
2652
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2653
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2654
|
-
*/
|
|
2655
2564
|
const EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();
|
|
2656
2565
|
class TimelineAnimationEngine {
|
|
2657
2566
|
constructor(bodyNode, _driver, _normalizer) {
|
|
@@ -2777,13 +2686,6 @@ class TimelineAnimationEngine {
|
|
|
2777
2686
|
}
|
|
2778
2687
|
}
|
|
2779
2688
|
|
|
2780
|
-
/**
|
|
2781
|
-
* @license
|
|
2782
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2783
|
-
*
|
|
2784
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2785
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2786
|
-
*/
|
|
2787
2689
|
const QUEUED_CLASSNAME = 'ng-animate-queued';
|
|
2788
2690
|
const QUEUED_SELECTOR = '.ng-animate-queued';
|
|
2789
2691
|
const DISABLED_CLASSNAME = 'ng-animate-disabled';
|
|
@@ -4693,36 +4595,18 @@ class WebAnimationsDriver {
|
|
|
4693
4595
|
}
|
|
4694
4596
|
|
|
4695
4597
|
/**
|
|
4696
|
-
* @
|
|
4697
|
-
*
|
|
4698
|
-
*
|
|
4699
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4700
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4701
|
-
*/
|
|
4702
|
-
|
|
4703
|
-
/**
|
|
4704
|
-
* @license
|
|
4705
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4706
|
-
*
|
|
4707
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4708
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4598
|
+
* @module
|
|
4599
|
+
* @description
|
|
4600
|
+
* Entry point for all animation APIs of the animation browser package.
|
|
4709
4601
|
*/
|
|
4710
4602
|
|
|
4711
4603
|
/**
|
|
4712
|
-
* @
|
|
4713
|
-
*
|
|
4714
|
-
*
|
|
4715
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4716
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4604
|
+
* @module
|
|
4605
|
+
* @description
|
|
4606
|
+
* Entry point for all public APIs of this package.
|
|
4717
4607
|
*/
|
|
4718
4608
|
|
|
4719
|
-
|
|
4720
|
-
* @license
|
|
4721
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4722
|
-
*
|
|
4723
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4724
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4725
|
-
*/
|
|
4609
|
+
// This file is not used to build this module. It is only used during editing
|
|
4726
4610
|
|
|
4727
4611
|
/**
|
|
4728
4612
|
* Generated bundle index. Do not edit.
|