1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { ViewEncapsulation, Injectable, RendererFactory2, Inject, NgZone, InjectionToken, NgModule } from '@angular/core';
|
8 | import { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';
|
9 | import { AnimationBuilder, sequence, AnimationFactory } from '@angular/animations';
|
10 | import { ɵAnimationEngine, AnimationDriver, ɵAnimationStyleNormalizer, ɵsupportsWebAnimations, ɵWebAnimationsDriver, ɵCssKeyframesDriver, ɵWebAnimationsStyleNormalizer, ɵNoopAnimationDriver } from '@angular/animations/browser';
|
11 | import { DOCUMENT } from '@angular/common';
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | class BrowserAnimationBuilder extends AnimationBuilder {
|
19 | |
20 |
|
21 |
|
22 |
|
23 | constructor(rootRenderer, doc) {
|
24 | super();
|
25 | this._nextAnimationId = 0;
|
26 |
|
27 | const typeData = ( ({ id: '0', encapsulation: ViewEncapsulation.None, styles: [], data: { animation: [] } }));
|
28 | this._renderer = ( (rootRenderer.createRenderer(doc.body, typeData)));
|
29 | }
|
30 | |
31 |
|
32 |
|
33 |
|
34 | build(animation) {
|
35 |
|
36 | const id = this._nextAnimationId.toString();
|
37 | this._nextAnimationId++;
|
38 |
|
39 | const entry = Array.isArray(animation) ? sequence(animation) : animation;
|
40 | issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
|
41 | return new BrowserAnimationFactory(id, this._renderer);
|
42 | }
|
43 | }
|
44 | BrowserAnimationBuilder.decorators = [
|
45 | { type: Injectable }
|
46 | ];
|
47 |
|
48 | BrowserAnimationBuilder.ctorParameters = () => [
|
49 | { type: RendererFactory2 },
|
50 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
51 | ];
|
52 | if (false) {
|
53 | |
54 |
|
55 |
|
56 |
|
57 | BrowserAnimationBuilder.prototype._nextAnimationId;
|
58 | |
59 |
|
60 |
|
61 |
|
62 | BrowserAnimationBuilder.prototype._renderer;
|
63 | }
|
64 | class BrowserAnimationFactory extends AnimationFactory {
|
65 | |
66 |
|
67 |
|
68 |
|
69 | constructor(_id, _renderer) {
|
70 | super();
|
71 | this._id = _id;
|
72 | this._renderer = _renderer;
|
73 | }
|
74 | |
75 |
|
76 |
|
77 |
|
78 |
|
79 | create(element, options) {
|
80 | return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
|
81 | }
|
82 | }
|
83 | if (false) {
|
84 | |
85 |
|
86 |
|
87 |
|
88 | BrowserAnimationFactory.prototype._id;
|
89 | |
90 |
|
91 |
|
92 |
|
93 | BrowserAnimationFactory.prototype._renderer;
|
94 | }
|
95 | class RendererAnimationPlayer {
|
96 | |
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 | constructor(id, element, options, _renderer) {
|
103 | this.id = id;
|
104 | this.element = element;
|
105 | this._renderer = _renderer;
|
106 | this.parentPlayer = null;
|
107 | this._started = false;
|
108 | this.totalTime = 0;
|
109 | this._command('create', options);
|
110 | }
|
111 | |
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 | _listen(eventName, callback) {
|
118 | return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);
|
119 | }
|
120 | |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | _command(command, ...args) {
|
127 | return issueAnimationCommand(this._renderer, this.element, this.id, command, args);
|
128 | }
|
129 | |
130 |
|
131 |
|
132 |
|
133 | onDone(fn) {
|
134 | this._listen('done', fn);
|
135 | }
|
136 | |
137 |
|
138 |
|
139 |
|
140 | onStart(fn) {
|
141 | this._listen('start', fn);
|
142 | }
|
143 | |
144 |
|
145 |
|
146 |
|
147 | onDestroy(fn) {
|
148 | this._listen('destroy', fn);
|
149 | }
|
150 | |
151 |
|
152 |
|
153 | init() {
|
154 | this._command('init');
|
155 | }
|
156 | |
157 |
|
158 |
|
159 | hasStarted() {
|
160 | return this._started;
|
161 | }
|
162 | |
163 |
|
164 |
|
165 | play() {
|
166 | this._command('play');
|
167 | this._started = true;
|
168 | }
|
169 | |
170 |
|
171 |
|
172 | pause() {
|
173 | this._command('pause');
|
174 | }
|
175 | |
176 |
|
177 |
|
178 | restart() {
|
179 | this._command('restart');
|
180 | }
|
181 | |
182 |
|
183 |
|
184 | finish() {
|
185 | this._command('finish');
|
186 | }
|
187 | |
188 |
|
189 |
|
190 | destroy() {
|
191 | this._command('destroy');
|
192 | }
|
193 | |
194 |
|
195 |
|
196 | reset() {
|
197 | this._command('reset');
|
198 | }
|
199 | |
200 |
|
201 |
|
202 |
|
203 | setPosition(p) {
|
204 | this._command('setPosition', p);
|
205 | }
|
206 | |
207 |
|
208 |
|
209 | getPosition() {
|
210 | return 0;
|
211 | }
|
212 | }
|
213 | if (false) {
|
214 |
|
215 | RendererAnimationPlayer.prototype.parentPlayer;
|
216 | |
217 |
|
218 |
|
219 |
|
220 | RendererAnimationPlayer.prototype._started;
|
221 |
|
222 | RendererAnimationPlayer.prototype.totalTime;
|
223 |
|
224 | RendererAnimationPlayer.prototype.id;
|
225 |
|
226 | RendererAnimationPlayer.prototype.element;
|
227 | |
228 |
|
229 |
|
230 |
|
231 | RendererAnimationPlayer.prototype._renderer;
|
232 | }
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 |
|
240 |
|
241 | function issueAnimationCommand(renderer, element, id, command, args) {
|
242 | return renderer.setProperty(element, `@@${id}:${command}`, args);
|
243 | }
|
244 |
|
245 |
|
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 | const ANIMATION_PREFIX = '@';
|
252 |
|
253 | const DISABLE_ANIMATIONS_FLAG = '@.disabled';
|
254 |
|
255 |
|
256 |
|
257 | function RecursiveAnimationTriggerMetadata() { }
|
258 | class AnimationRendererFactory {
|
259 | |
260 |
|
261 |
|
262 |
|
263 |
|
264 | constructor(delegate, engine, _zone) {
|
265 | this.delegate = delegate;
|
266 | this.engine = engine;
|
267 | this._zone = _zone;
|
268 | this._currentId = 0;
|
269 | this._microtaskId = 1;
|
270 | this._animationCallbacksBuffer = [];
|
271 | this._rendererCache = new Map();
|
272 | this._cdRecurDepth = 0;
|
273 | this.promise = Promise.resolve(0);
|
274 | engine.onRemovalComplete = ( |
275 |
|
276 |
|
277 |
|
278 |
|
279 | (element, delegate) => {
|
280 |
|
281 |
|
282 |
|
283 |
|
284 | if (delegate && delegate.parentNode(element)) {
|
285 | delegate.removeChild(element.parentNode, element);
|
286 | }
|
287 | });
|
288 | }
|
289 | |
290 |
|
291 |
|
292 |
|
293 |
|
294 | createRenderer(hostElement, type) {
|
295 |
|
296 | const EMPTY_NAMESPACE_ID = '';
|
297 |
|
298 |
|
299 |
|
300 | const delegate = this.delegate.createRenderer(hostElement, type);
|
301 | if (!hostElement || !type || !type.data || !type.data['animation']) {
|
302 |
|
303 | let renderer = this._rendererCache.get(delegate);
|
304 | if (!renderer) {
|
305 | renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine);
|
306 |
|
307 | this._rendererCache.set(delegate, renderer);
|
308 | }
|
309 | return renderer;
|
310 | }
|
311 |
|
312 | const componentId = type.id;
|
313 |
|
314 | const namespaceId = type.id + '-' + this._currentId;
|
315 | this._currentId++;
|
316 | this.engine.register(namespaceId, hostElement);
|
317 |
|
318 | const registerTrigger = ( |
319 |
|
320 |
|
321 |
|
322 | (trigger) => {
|
323 | if (Array.isArray(trigger)) {
|
324 | trigger.forEach(registerTrigger);
|
325 | }
|
326 | else {
|
327 | this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);
|
328 | }
|
329 | });
|
330 |
|
331 | const animationTriggers = ( (type.data['animation']));
|
332 | animationTriggers.forEach(registerTrigger);
|
333 | return new AnimationRenderer(this, namespaceId, delegate, this.engine);
|
334 | }
|
335 | |
336 |
|
337 |
|
338 | begin() {
|
339 | this._cdRecurDepth++;
|
340 | if (this.delegate.begin) {
|
341 | this.delegate.begin();
|
342 | }
|
343 | }
|
344 | |
345 |
|
346 |
|
347 |
|
348 | _scheduleCountTask() {
|
349 |
|
350 | this.promise.then(( |
351 |
|
352 |
|
353 | () => {
|
354 | this._microtaskId++;
|
355 | }));
|
356 | }
|
357 | |
358 |
|
359 |
|
360 |
|
361 |
|
362 |
|
363 |
|
364 | scheduleListenerCallback(count, fn, data) {
|
365 | if (count >= 0 && count < this._microtaskId) {
|
366 | this._zone.run(( |
367 |
|
368 |
|
369 | () => fn(data)));
|
370 | return;
|
371 | }
|
372 | if (this._animationCallbacksBuffer.length == 0) {
|
373 | Promise.resolve(null).then(( |
374 |
|
375 |
|
376 | () => {
|
377 | this._zone.run(( |
378 |
|
379 |
|
380 | () => {
|
381 | this._animationCallbacksBuffer.forEach(( |
382 |
|
383 |
|
384 |
|
385 | tuple => {
|
386 | const [fn, data] = tuple;
|
387 | fn(data);
|
388 | }));
|
389 | this._animationCallbacksBuffer = [];
|
390 | }));
|
391 | }));
|
392 | }
|
393 | this._animationCallbacksBuffer.push([fn, data]);
|
394 | }
|
395 | |
396 |
|
397 |
|
398 | end() {
|
399 | this._cdRecurDepth--;
|
400 |
|
401 |
|
402 | if (this._cdRecurDepth == 0) {
|
403 | this._zone.runOutsideAngular(( |
404 |
|
405 |
|
406 | () => {
|
407 | this._scheduleCountTask();
|
408 | this.engine.flush(this._microtaskId);
|
409 | }));
|
410 | }
|
411 | if (this.delegate.end) {
|
412 | this.delegate.end();
|
413 | }
|
414 | }
|
415 | |
416 |
|
417 |
|
418 | whenRenderingDone() {
|
419 | return this.engine.whenRenderingDone();
|
420 | }
|
421 | }
|
422 | AnimationRendererFactory.decorators = [
|
423 | { type: Injectable }
|
424 | ];
|
425 |
|
426 | AnimationRendererFactory.ctorParameters = () => [
|
427 | { type: RendererFactory2 },
|
428 | { type: ɵAnimationEngine },
|
429 | { type: NgZone }
|
430 | ];
|
431 | if (false) {
|
432 | |
433 |
|
434 |
|
435 |
|
436 | AnimationRendererFactory.prototype._currentId;
|
437 | |
438 |
|
439 |
|
440 |
|
441 | AnimationRendererFactory.prototype._microtaskId;
|
442 | |
443 |
|
444 |
|
445 |
|
446 | AnimationRendererFactory.prototype._animationCallbacksBuffer;
|
447 | |
448 |
|
449 |
|
450 |
|
451 | AnimationRendererFactory.prototype._rendererCache;
|
452 | |
453 |
|
454 |
|
455 |
|
456 | AnimationRendererFactory.prototype._cdRecurDepth;
|
457 | |
458 |
|
459 |
|
460 |
|
461 | AnimationRendererFactory.prototype.promise;
|
462 | |
463 |
|
464 |
|
465 |
|
466 | AnimationRendererFactory.prototype.delegate;
|
467 | |
468 |
|
469 |
|
470 |
|
471 | AnimationRendererFactory.prototype.engine;
|
472 | |
473 |
|
474 |
|
475 |
|
476 | AnimationRendererFactory.prototype._zone;
|
477 | }
|
478 | class BaseAnimationRenderer {
|
479 | |
480 |
|
481 |
|
482 |
|
483 |
|
484 | constructor(namespaceId, delegate, engine) {
|
485 | this.namespaceId = namespaceId;
|
486 | this.delegate = delegate;
|
487 | this.engine = engine;
|
488 | this.destroyNode = this.delegate.destroyNode ? ( |
489 |
|
490 |
|
491 |
|
492 | (n) => ( (delegate.destroyNode))(n)) : null;
|
493 | }
|
494 | |
495 |
|
496 |
|
497 | get data() {
|
498 | return this.delegate.data;
|
499 | }
|
500 | |
501 |
|
502 |
|
503 | destroy() {
|
504 | this.engine.destroy(this.namespaceId, this.delegate);
|
505 | this.delegate.destroy();
|
506 | }
|
507 | |
508 |
|
509 |
|
510 |
|
511 |
|
512 | createElement(name, namespace) {
|
513 | return this.delegate.createElement(name, namespace);
|
514 | }
|
515 | |
516 |
|
517 |
|
518 |
|
519 | createComment(value) {
|
520 | return this.delegate.createComment(value);
|
521 | }
|
522 | |
523 |
|
524 |
|
525 |
|
526 | createText(value) {
|
527 | return this.delegate.createText(value);
|
528 | }
|
529 | |
530 |
|
531 |
|
532 |
|
533 |
|
534 | appendChild(parent, newChild) {
|
535 | this.delegate.appendChild(parent, newChild);
|
536 | this.engine.onInsert(this.namespaceId, newChild, parent, false);
|
537 | }
|
538 | |
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 | insertBefore(parent, newChild, refChild) {
|
545 | this.delegate.insertBefore(parent, newChild, refChild);
|
546 | this.engine.onInsert(this.namespaceId, newChild, parent, true);
|
547 | }
|
548 | |
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 | removeChild(parent, oldChild, isHostElement) {
|
555 | this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);
|
556 | }
|
557 | |
558 |
|
559 |
|
560 |
|
561 |
|
562 | selectRootElement(selectorOrNode, preserveContent) {
|
563 | return this.delegate.selectRootElement(selectorOrNode, preserveContent);
|
564 | }
|
565 | |
566 |
|
567 |
|
568 |
|
569 | parentNode(node) {
|
570 | return this.delegate.parentNode(node);
|
571 | }
|
572 | |
573 |
|
574 |
|
575 |
|
576 | nextSibling(node) {
|
577 | return this.delegate.nextSibling(node);
|
578 | }
|
579 | |
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 | setAttribute(el, name, value, namespace) {
|
587 | this.delegate.setAttribute(el, name, value, namespace);
|
588 | }
|
589 | |
590 |
|
591 |
|
592 |
|
593 |
|
594 |
|
595 | removeAttribute(el, name, namespace) {
|
596 | this.delegate.removeAttribute(el, name, namespace);
|
597 | }
|
598 | |
599 |
|
600 |
|
601 |
|
602 |
|
603 | addClass(el, name) {
|
604 | this.delegate.addClass(el, name);
|
605 | }
|
606 | |
607 |
|
608 |
|
609 |
|
610 |
|
611 | removeClass(el, name) {
|
612 | this.delegate.removeClass(el, name);
|
613 | }
|
614 | |
615 |
|
616 |
|
617 |
|
618 |
|
619 |
|
620 |
|
621 | setStyle(el, style, value, flags) {
|
622 | this.delegate.setStyle(el, style, value, flags);
|
623 | }
|
624 | |
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 | removeStyle(el, style, flags) {
|
631 | this.delegate.removeStyle(el, style, flags);
|
632 | }
|
633 | |
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 | setProperty(el, name, value) {
|
640 | if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
|
641 | this.disableAnimations(el, !!value);
|
642 | }
|
643 | else {
|
644 | this.delegate.setProperty(el, name, value);
|
645 | }
|
646 | }
|
647 | |
648 |
|
649 |
|
650 |
|
651 |
|
652 | setValue(node, value) {
|
653 | this.delegate.setValue(node, value);
|
654 | }
|
655 | |
656 |
|
657 |
|
658 |
|
659 |
|
660 |
|
661 | listen(target, eventName, callback) {
|
662 | return this.delegate.listen(target, eventName, callback);
|
663 | }
|
664 | |
665 |
|
666 |
|
667 |
|
668 |
|
669 |
|
670 | disableAnimations(element, value) {
|
671 | this.engine.disableAnimations(element, value);
|
672 | }
|
673 | }
|
674 | if (false) {
|
675 |
|
676 | BaseAnimationRenderer.prototype.destroyNode;
|
677 | |
678 |
|
679 |
|
680 |
|
681 | BaseAnimationRenderer.prototype.namespaceId;
|
682 |
|
683 | BaseAnimationRenderer.prototype.delegate;
|
684 |
|
685 | BaseAnimationRenderer.prototype.engine;
|
686 | }
|
687 | class AnimationRenderer extends BaseAnimationRenderer {
|
688 | |
689 |
|
690 |
|
691 |
|
692 |
|
693 |
|
694 | constructor(factory, namespaceId, delegate, engine) {
|
695 | super(namespaceId, delegate, engine);
|
696 | this.factory = factory;
|
697 | this.namespaceId = namespaceId;
|
698 | }
|
699 | |
700 |
|
701 |
|
702 |
|
703 |
|
704 |
|
705 | setProperty(el, name, value) {
|
706 | if (name.charAt(0) == ANIMATION_PREFIX) {
|
707 | if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
|
708 | value = value === undefined ? true : !!value;
|
709 | this.disableAnimations(el, ( (value)));
|
710 | }
|
711 | else {
|
712 | this.engine.process(this.namespaceId, el, name.substr(1), value);
|
713 | }
|
714 | }
|
715 | else {
|
716 | this.delegate.setProperty(el, name, value);
|
717 | }
|
718 | }
|
719 | |
720 |
|
721 |
|
722 |
|
723 |
|
724 |
|
725 | listen(target, eventName, callback) {
|
726 | if (eventName.charAt(0) == ANIMATION_PREFIX) {
|
727 |
|
728 | const element = resolveElementFromTarget(target);
|
729 |
|
730 | let name = eventName.substr(1);
|
731 |
|
732 | let phase = '';
|
733 |
|
734 |
|
735 | if (name.charAt(0) != ANIMATION_PREFIX) {
|
736 | [name, phase] = parseTriggerCallbackName(name);
|
737 | }
|
738 | return this.engine.listen(this.namespaceId, element, name, phase, ( |
739 |
|
740 |
|
741 |
|
742 | event => {
|
743 |
|
744 | const countId = (( (event)))['_data'] || -1;
|
745 | this.factory.scheduleListenerCallback(countId, callback, event);
|
746 | }));
|
747 | }
|
748 | return this.delegate.listen(target, eventName, callback);
|
749 | }
|
750 | }
|
751 | if (false) {
|
752 |
|
753 | AnimationRenderer.prototype.factory;
|
754 | }
|
755 |
|
756 |
|
757 |
|
758 |
|
759 | function resolveElementFromTarget(target) {
|
760 | switch (target) {
|
761 | case 'body':
|
762 | return document.body;
|
763 | case 'document':
|
764 | return document;
|
765 | case 'window':
|
766 | return window;
|
767 | default:
|
768 | return target;
|
769 | }
|
770 | }
|
771 |
|
772 |
|
773 |
|
774 |
|
775 | function parseTriggerCallbackName(triggerName) {
|
776 |
|
777 | const dotIndex = triggerName.indexOf('.');
|
778 |
|
779 | const trigger = triggerName.substring(0, dotIndex);
|
780 |
|
781 | const phase = triggerName.substr(dotIndex + 1);
|
782 | return [trigger, phase];
|
783 | }
|
784 |
|
785 |
|
786 |
|
787 |
|
788 |
|
789 |
|
790 | class InjectableAnimationEngine extends ɵAnimationEngine {
|
791 | |
792 |
|
793 |
|
794 |
|
795 |
|
796 | constructor(doc, driver, normalizer) {
|
797 | super(doc.body, driver, normalizer);
|
798 | }
|
799 | }
|
800 | InjectableAnimationEngine.decorators = [
|
801 | { type: Injectable }
|
802 | ];
|
803 |
|
804 | InjectableAnimationEngine.ctorParameters = () => [
|
805 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
806 | { type: AnimationDriver },
|
807 | { type: ɵAnimationStyleNormalizer }
|
808 | ];
|
809 |
|
810 |
|
811 |
|
812 | function instantiateSupportedAnimationDriver() {
|
813 | return ɵsupportsWebAnimations() ? new ɵWebAnimationsDriver() : new ɵCssKeyframesDriver();
|
814 | }
|
815 |
|
816 |
|
817 |
|
818 | function instantiateDefaultStyleNormalizer() {
|
819 | return new ɵWebAnimationsStyleNormalizer();
|
820 | }
|
821 |
|
822 |
|
823 |
|
824 |
|
825 |
|
826 |
|
827 | function instantiateRendererFactory(renderer, engine, zone) {
|
828 | return new AnimationRendererFactory(renderer, engine, zone);
|
829 | }
|
830 |
|
831 |
|
832 |
|
833 |
|
834 | const ANIMATION_MODULE_TYPE = new InjectionToken('AnimationModuleType');
|
835 |
|
836 | const SHARED_ANIMATION_PROVIDERS = [
|
837 | { provide: AnimationBuilder, useClass: BrowserAnimationBuilder },
|
838 | { provide: ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },
|
839 | { provide: ɵAnimationEngine, useClass: InjectableAnimationEngine }, {
|
840 | provide: RendererFactory2,
|
841 | useFactory: instantiateRendererFactory,
|
842 | deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]
|
843 | }
|
844 | ];
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 | const BROWSER_ANIMATIONS_PROVIDERS = [
|
851 | { provide: AnimationDriver, useFactory: instantiateSupportedAnimationDriver },
|
852 | { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS
|
853 | ];
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 | const BROWSER_NOOP_ANIMATIONS_PROVIDERS = [
|
860 | { provide: AnimationDriver, useClass: ɵNoopAnimationDriver },
|
861 | { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS
|
862 | ];
|
863 |
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 | class BrowserAnimationsModule {
|
875 | }
|
876 | BrowserAnimationsModule.decorators = [
|
877 | { type: NgModule, args: [{
|
878 | exports: [BrowserModule],
|
879 | providers: BROWSER_ANIMATIONS_PROVIDERS,
|
880 | },] }
|
881 | ];
|
882 |
|
883 |
|
884 |
|
885 |
|
886 | class NoopAnimationsModule {
|
887 | }
|
888 | NoopAnimationsModule.decorators = [
|
889 | { type: NgModule, args: [{
|
890 | exports: [BrowserModule],
|
891 | providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
|
892 | },] }
|
893 | ];
|
894 |
|
895 |
|
896 |
|
897 |
|
898 |
|
899 |
|
900 |
|
901 |
|
902 |
|
903 |
|
904 |
|
905 |
|
906 |
|
907 |
|
908 |
|
909 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 |
|
916 |
|
917 |
|
918 |
|
919 |
|
920 |
|
921 |
|
922 |
|
923 | export { ANIMATION_MODULE_TYPE, BrowserAnimationsModule, NoopAnimationsModule, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, BrowserAnimationFactory as ɵBrowserAnimationFactory, InjectableAnimationEngine as ɵInjectableAnimationEngine, instantiateSupportedAnimationDriver as ɵangular_packages_platform_browser_animations_animations_a, instantiateDefaultStyleNormalizer as ɵangular_packages_platform_browser_animations_animations_b, instantiateRendererFactory as ɵangular_packages_platform_browser_animations_animations_c, BROWSER_ANIMATIONS_PROVIDERS as ɵangular_packages_platform_browser_animations_animations_d, BROWSER_NOOP_ANIMATIONS_PROVIDERS as ɵangular_packages_platform_browser_animations_animations_e, BaseAnimationRenderer as ɵangular_packages_platform_browser_animations_animations_f };
|
924 |
|