ng-zorro-antd-core-no-animation.mjs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import * as i0 from '@angular/core';
  2. import { inject, booleanAttribute, Input, Directive, NgModule } from '@angular/core';
  3. import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
  4. /**
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  7. */
  8. class NzNoAnimationDirective {
  9. animationType = inject(ANIMATION_MODULE_TYPE, { optional: true });
  10. nzNoAnimation = false;
  11. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
  12. static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.2", type: NzNoAnimationDirective, isStandalone: true, selector: "[nzNoAnimation]", inputs: { nzNoAnimation: ["nzNoAnimation", "nzNoAnimation", booleanAttribute] }, host: { properties: { "class.nz-animate-disabled": "nzNoAnimation || animationType === 'NoopAnimations'" } }, exportAs: ["nzNoAnimation"], ngImport: i0 });
  13. }
  14. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationDirective, decorators: [{
  15. type: Directive,
  16. args: [{
  17. selector: '[nzNoAnimation]',
  18. exportAs: 'nzNoAnimation',
  19. host: {
  20. '[class.nz-animate-disabled]': `nzNoAnimation || animationType === 'NoopAnimations'`
  21. }
  22. }]
  23. }], propDecorators: { nzNoAnimation: [{
  24. type: Input,
  25. args: [{ transform: booleanAttribute }]
  26. }] } });
  27. /**
  28. * Use of this source code is governed by an MIT-style license that can be
  29. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  30. */
  31. class NzNoAnimationModule {
  32. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  33. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationModule, imports: [NzNoAnimationDirective], exports: [NzNoAnimationDirective] });
  34. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationModule });
  35. }
  36. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzNoAnimationModule, decorators: [{
  37. type: NgModule,
  38. args: [{
  39. imports: [NzNoAnimationDirective],
  40. exports: [NzNoAnimationDirective]
  41. }]
  42. }] });
  43. /**
  44. * Use of this source code is governed by an MIT-style license that can be
  45. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  46. */
  47. /**
  48. * Generated bundle index. Do not edit.
  49. */
  50. export { NzNoAnimationDirective, NzNoAnimationModule };
  51. //# sourceMappingURL=ng-zorro-antd-core-no-animation.mjs.map