UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

1 lines 2.76 kB
{"version":3,"file":"ng-zorro-antd-core-element-patch.mjs","sources":["../../components/core/element-patch/element-patch.directive.ts","../../components/core/element-patch/element-patch.module.ts","../../components/core/element-patch/public-api.ts","../../components/core/element-patch/ng-zorro-antd-core-element-patch.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Directive, ElementRef } from '@angular/core';\n\nimport { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * A patch directive to select the element of a component.\n */\n@Directive({\n selector: '[nzElement], [nz-element]',\n exportAs: 'nzElement'\n})\nexport class NzElementPatchDirective {\n get nativeElement(): NzSafeAny {\n return this.elementRef.nativeElement;\n }\n\n constructor(public elementRef: ElementRef) {}\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { NzElementPatchDirective } from './element-patch.directive';\n\n@NgModule({\n imports: [NzElementPatchDirective],\n exports: [NzElementPatchDirective]\n})\nexport class NzElementPatchModule {}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nexport * from './element-patch.directive';\nexport * from './element-patch.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AAMH;;AAEG;MAKU,uBAAuB,CAAA;AAKf,IAAA,UAAA;AAJnB,IAAA,IAAI,aAAa,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa;;AAGtC,IAAA,WAAA,CAAmB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU;;uGALlB,uBAAuB,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