@cds/angular
Version:
Core component modules for Clarity Angular
121 lines (114 loc) • 4.5 kB
JavaScript
import * as i0 from '@angular/core';
import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import '@cds/core/file/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 CdsFileDirective {
constructor(elementRef) {
this.layoutChange = new EventEmitter();
this.element = elementRef.nativeElement;
}
get i18n() {
return this.element.i18n;
}
set i18n(value) {
this.element.i18n = value;
}
;
get status() {
return this.element.status;
}
set status(value) {
this.element.status = value;
}
;
get controlWidth() {
return this.element.controlWidth;
}
set controlWidth(value) {
this.element.controlWidth = value;
}
;
get validate() {
return this.element.validate;
}
set validate(value) {
this.element.validate = value === '' ? true : value;
}
;
get responsive() {
return this.element.responsive;
}
set responsive(value) {
this.element.responsive = value === '' ? true : value;
}
;
get layout() {
return this.element.layout;
}
set layout(value) {
this.element.layout = value;
}
;
}
CdsFileDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
CdsFileDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsFileDirective, selector: "cds-file", inputs: { i18n: "i18n", status: "status", controlWidth: "controlWidth", validate: "validate", responsive: "responsive", layout: "layout" }, outputs: { layoutChange: "layoutChange" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileDirective, decorators: [{
type: Directive,
args: [{ selector: 'cds-file' }]
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { i18n: [{
type: Input
}], status: [{
type: Input
}], controlWidth: [{
type: Input
}], validate: [{
type: Input
}], responsive: [{
type: Input
}], layout: [{
type: Input
}], layoutChange: [{
type: Output
}] } });
/*
* 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 CdsFileModule {
}
CdsFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
CdsFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileModule, declarations: [CdsFileDirective], imports: [CommonModule], exports: [CdsFileDirective] });
CdsFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileModule, imports: [[CommonModule]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsFileModule, decorators: [{
type: NgModule,
args: [{
imports: [CommonModule],
declarations: [
CdsFileDirective,
],
exports: [
CdsFileDirective,
],
}]
}] });
/*
* 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 { CdsFileDirective, CdsFileModule };
//# sourceMappingURL=file.mjs.map