@cds/angular
Version:
Core component modules for Clarity Angular
163 lines (156 loc) • 5.35 kB
JavaScript
import * as i0 from '@angular/core';
import { Directive, Input, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import '@cds/core/tag/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 CdsTagDirective {
constructor(elementRef) {
this.element = elementRef.nativeElement;
}
get status() {
return this.element.status;
}
set status(value) {
this.element.status = value;
}
;
get color() {
return this.element.color;
}
set color(value) {
this.element.color = value;
}
;
get closable() {
return this.element.closable;
}
set closable(value) {
this.element.closable = value === '' ? true : value;
}
;
get pressed() {
return this.element.pressed;
}
set pressed(value) {
this.element.pressed = value === '' ? true : value;
}
;
get expanded() {
return this.element.expanded;
}
set expanded(value) {
this.element.expanded = value === '' ? true : value;
}
;
get readonly() {
return this.element.readonly;
}
set readonly(value) {
this.element.readonly = value === '' ? true : value;
}
;
get type() {
return this.element.type;
}
set type(value) {
this.element.type = value;
}
;
get name() {
return this.element.name;
}
set name(value) {
this.element.name = value;
}
;
get value() {
return this.element.value;
}
set value(value) {
this.element.value = value;
}
;
get disabled() {
return this.element.disabled;
}
set disabled(value) {
this.element.disabled = value === '' ? true : value;
}
;
get popup() {
return this.element.popup;
}
set popup(value) {
this.element.popup = value;
}
;
}
CdsTagDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
CdsTagDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsTagDirective, selector: "cds-tag", inputs: { status: "status", color: "color", closable: "closable", pressed: "pressed", expanded: "expanded", readonly: "readonly", type: "type", name: "name", value: "value", disabled: "disabled", popup: "popup" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagDirective, decorators: [{
type: Directive,
args: [{ selector: 'cds-tag' }]
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { status: [{
type: Input
}], color: [{
type: Input
}], closable: [{
type: Input
}], pressed: [{
type: Input
}], expanded: [{
type: Input
}], readonly: [{
type: Input
}], type: [{
type: Input
}], name: [{
type: Input
}], value: [{
type: Input
}], disabled: [{
type: Input
}], popup: [{
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 CdsTagModule {
}
CdsTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
CdsTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagModule, declarations: [CdsTagDirective], imports: [CommonModule], exports: [CdsTagDirective] });
CdsTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagModule, imports: [[CommonModule]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsTagModule, decorators: [{
type: NgModule,
args: [{
imports: [CommonModule],
declarations: [
CdsTagDirective,
],
exports: [
CdsTagDirective,
],
}]
}] });
/*
* 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 { CdsTagDirective, CdsTagModule };
//# sourceMappingURL=tag.mjs.map