UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

1 lines 3.42 kB
{"version":3,"file":"badge.mjs","sources":["../../../projects/cds-angular/badge/cds-badge.directive.ts","../../../projects/cds-angular/badge/badge.module.ts","../../../projects/cds-angular/badge/index.ts","../../../projects/cds-angular/badge/public-api.ts","../../../projects/cds-angular/badge/badge.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef , Input } from '@angular/core';\nimport { CdsBadge } from '@cds/core/badge';\n\n@Directive({ selector: 'cds-badge' })\nexport class CdsBadgeDirective {\n protected element: CdsBadge;\n\n get color() {\n return this.element.color;\n }\n @Input() set color(value) {\n this.element.color = value;\n };\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n\n\n constructor(elementRef: ElementRef) {\n this.element = elementRef.nativeElement;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport '@cds/core/badge/register.js';\n\nimport { CdsBadgeDirective } from './cds-badge.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsBadgeDirective,\n ],\n exports: [\n CdsBadgeDirective,\n ],\n})\nexport class CdsBadgeModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport * from './cds-badge.directive';\nexport * from './badge.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\n/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\n/*\n * Public API Surface of cds-angular\n */\n\nexport * from './index';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA;;;;;MAUa,iBAAiB;IAiB5B,YAAY,UAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IAhBD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC3B;IACD,IAAa,KAAK,CAAC,KAAK;QACtB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;KAC5B;;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;KAC5B;IACD,IAAa,MAAM,CAAC,KAAK;QACvB,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;KAC7B;;;+GAdU,iBAAiB;mGAAjB,iBAAiB;4FAAjB,iBAAiB;kBAD7B,SAAS;mBAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;iGAOrB,KAAK;sBAAjB,KAAK;gBAMO,MAAM;sBAAlB,KAAK;;;ACtBR;;;;;MAqBa,cAAc;;4GAAd,cAAc;6GAAd,cAAc,iBANvB,iBAAiB,aAFT,YAAY,aAKpB,iBAAiB;6GAGR,cAAc,YARhB,CAAC,YAAY,CAAC;4FAQZ,cAAc;kBAT1B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE;wBACZ,iBAAiB;qBAClB;oBACD,OAAO,EAAE;wBACP,iBAAiB;qBAClB;iBACF;;;ACpBD;;;;;;ACAA;;;;;;ACAA;;;;;;"}