ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1 lines • 2.41 kB
Source Map (JSON)
{"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 { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzElementPatchDirective } from './element-patch.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [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;;;;AASA;;;MAOa,uBAAuB;IAKlC,YAAmB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;KAAI;IAJ7C,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;KACtC;;oHAHU,uBAAuB;wGAAvB,uBAAuB;2FAAvB,uBAAuB;kBAJnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE,WAAW;iBACtB;;;ACfD;;;;MAea,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAHhB,uBAAuB,aAD5B,YAAY,aAEZ,uBAAuB;kHAEtB,oBAAoB,YAJtB,CAAC,YAAY,CAAC;2FAIZ,oBAAoB;kBALhC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC;;;ACdD;;;;;ACAA;;;;;;"}