@angular/animations 16.1.4 → 16.1.6
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/esm2022/browser/src/render/animation_driver.mjs +3 -3
- package/esm2022/browser/src/render/transition_animation_engine.mjs +6 -26
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/animations.mjs +1 -1
- package/fesm2022/browser/testing.mjs +1 -1
- package/fesm2022/browser.mjs +9 -29
- package/fesm2022/browser.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/esm2022/src/version.mjs
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* Entry point for all public APIs of the animation package.
|
|
12
12
|
*/
|
|
13
13
|
import { Version } from '@angular/core';
|
|
14
|
-
export const VERSION = new Version('16.1.
|
|
14
|
+
export const VERSION = new Version('16.1.6');
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuaW1hdGlvbnMvc3JjL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7Ozs7R0FJRztBQUNILE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdEMsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuLyoqXG4gKiBAbW9kdWxlXG4gKiBAZGVzY3JpcHRpb25cbiAqIEVudHJ5IHBvaW50IGZvciBhbGwgcHVibGljIEFQSXMgb2YgdGhlIGFuaW1hdGlvbiBwYWNrYWdlLlxuICovXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19
|
package/fesm2022/animations.mjs
CHANGED
package/fesm2022/browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.6
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -520,10 +520,10 @@ class NoopAnimationDriver {
|
|
|
520
520
|
animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
|
|
521
521
|
return new NoopAnimationPlayer(duration, delay);
|
|
522
522
|
}
|
|
523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
524
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
524
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: NoopAnimationDriver }); }
|
|
525
525
|
}
|
|
526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: NoopAnimationDriver, decorators: [{
|
|
527
527
|
type: Injectable
|
|
528
528
|
}] });
|
|
529
529
|
/**
|
|
@@ -3024,14 +3024,6 @@ class AnimationTransitionNamespace {
|
|
|
3024
3024
|
this.players.forEach(p => p.destroy());
|
|
3025
3025
|
this._signalRemovalForInnerTriggers(this.hostElement, context);
|
|
3026
3026
|
}
|
|
3027
|
-
elementContainsData(element) {
|
|
3028
|
-
let containsData = false;
|
|
3029
|
-
if (this._elementListeners.has(element))
|
|
3030
|
-
containsData = true;
|
|
3031
|
-
containsData =
|
|
3032
|
-
(this._queue.find(entry => entry.element === element) ? true : false) || containsData;
|
|
3033
|
-
return containsData;
|
|
3034
|
-
}
|
|
3035
3027
|
}
|
|
3036
3028
|
class TransitionAnimationEngine {
|
|
3037
3029
|
/** @internal */
|
|
@@ -3140,16 +3132,17 @@ class TransitionAnimationEngine {
|
|
|
3140
3132
|
destroy(namespaceId, context) {
|
|
3141
3133
|
if (!namespaceId)
|
|
3142
3134
|
return;
|
|
3143
|
-
|
|
3144
|
-
this.
|
|
3135
|
+
this.afterFlush(() => { });
|
|
3136
|
+
this.afterFlushAnimationsDone(() => {
|
|
3137
|
+
const ns = this._fetchNamespace(namespaceId);
|
|
3145
3138
|
this.namespacesByHostElement.delete(ns.hostElement);
|
|
3146
|
-
delete this._namespaceLookup[namespaceId];
|
|
3147
3139
|
const index = this._namespaceList.indexOf(ns);
|
|
3148
3140
|
if (index >= 0) {
|
|
3149
3141
|
this._namespaceList.splice(index, 1);
|
|
3150
3142
|
}
|
|
3143
|
+
ns.destroy(context);
|
|
3144
|
+
delete this._namespaceLookup[namespaceId];
|
|
3151
3145
|
});
|
|
3152
|
-
this.afterFlushAnimationsDone(() => ns.destroy(context));
|
|
3153
3146
|
}
|
|
3154
3147
|
_fetchNamespace(id) {
|
|
3155
3148
|
return this._namespaceLookup[id];
|
|
@@ -3730,19 +3723,6 @@ class TransitionAnimationEngine {
|
|
|
3730
3723
|
});
|
|
3731
3724
|
return rootPlayers;
|
|
3732
3725
|
}
|
|
3733
|
-
elementContainsData(namespaceId, element) {
|
|
3734
|
-
let containsData = false;
|
|
3735
|
-
const details = element[REMOVAL_FLAG];
|
|
3736
|
-
if (details && details.setForRemoval)
|
|
3737
|
-
containsData = true;
|
|
3738
|
-
if (this.playersByElement.has(element))
|
|
3739
|
-
containsData = true;
|
|
3740
|
-
if (this.playersByQueriedElement.has(element))
|
|
3741
|
-
containsData = true;
|
|
3742
|
-
if (this.statesByElement.has(element))
|
|
3743
|
-
containsData = true;
|
|
3744
|
-
return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;
|
|
3745
|
-
}
|
|
3746
3726
|
afterFlush(callback) {
|
|
3747
3727
|
this._flushFns.push(callback);
|
|
3748
3728
|
}
|