ng-zorro-antd-core-element-patch.mjs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import * as i0 from '@angular/core';
  2. import { Directive, NgModule } from '@angular/core';
  3. /**
  4. * Use of this source code is governed by an MIT-style license that can be
  5. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  6. */
  7. /**
  8. * A patch directive to select the element of a component.
  9. */
  10. class NzElementPatchDirective {
  11. elementRef;
  12. get nativeElement() {
  13. return this.elementRef.nativeElement;
  14. }
  15. constructor(elementRef) {
  16. this.elementRef = elementRef;
  17. }
  18. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
  19. static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: NzElementPatchDirective, isStandalone: true, selector: "[nzElement], [nz-element]", exportAs: ["nzElement"], ngImport: i0 });
  20. }
  21. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchDirective, decorators: [{
  22. type: Directive,
  23. args: [{
  24. selector: '[nzElement], [nz-element]',
  25. exportAs: 'nzElement'
  26. }]
  27. }], ctorParameters: () => [{ type: i0.ElementRef }] });
  28. /**
  29. * Use of this source code is governed by an MIT-style license that can be
  30. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  31. */
  32. class NzElementPatchModule {
  33. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  34. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchModule, imports: [NzElementPatchDirective], exports: [NzElementPatchDirective] });
  35. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchModule });
  36. }
  37. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: NzElementPatchModule, decorators: [{
  38. type: NgModule,
  39. args: [{
  40. imports: [NzElementPatchDirective],
  41. exports: [NzElementPatchDirective]
  42. }]
  43. }] });
  44. /**
  45. * Use of this source code is governed by an MIT-style license that can be
  46. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  47. */
  48. /**
  49. * Generated bundle index. Do not edit.
  50. */
  51. export { NzElementPatchDirective, NzElementPatchModule };
  52. //# sourceMappingURL=ng-zorro-antd-core-element-patch.mjs.map