@cds/angular
Version:
Core component modules for Clarity Angular
82 lines (75 loc) • 3.4 kB
JavaScript
import * as i0 from '@angular/core';
import { Directive, Input, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import '@cds/core/badge/register.js';
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
class CdsBadgeDirective {
constructor(elementRef) {
this.element = elementRef.nativeElement;
}
get color() {
return this.element.color;
}
set color(value) {
this.element.color = value;
}
;
get status() {
return this.element.status;
}
set status(value) {
this.element.status = value;
}
;
}
CdsBadgeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
CdsBadgeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsBadgeDirective, selector: "cds-badge", inputs: { color: "color", status: "status" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeDirective, decorators: [{
type: Directive,
args: [{ selector: 'cds-badge' }]
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { color: [{
type: Input
}], status: [{
type: Input
}] } });
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
class CdsBadgeModule {
}
CdsBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
CdsBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeModule, declarations: [CdsBadgeDirective], imports: [CommonModule], exports: [CdsBadgeDirective] });
CdsBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeModule, imports: [[CommonModule]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsBadgeModule, decorators: [{
type: NgModule,
args: [{
imports: [CommonModule],
declarations: [
CdsBadgeDirective,
],
exports: [
CdsBadgeDirective,
],
}]
}] });
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
/**
* Generated bundle index. Do not edit.
*/
export { CdsBadgeDirective, CdsBadgeModule };
//# sourceMappingURL=badge.mjs.map