@cds/angular
Version:
Core component modules for Clarity Angular
115 lines (108 loc) • 4.82 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/internal-components/overlay/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 CdsInternalOverlayDirective {
constructor(elementRef) {
this.cdsMotionChange = new EventEmitter();
this.closeChange = new EventEmitter();
this.element = elementRef.nativeElement;
}
get cdsMotion() {
return this.element.cdsMotion;
}
set cdsMotion(value) {
this.element.cdsMotion = value;
}
;
get closable() {
return this.element.closable;
}
set closable(value) {
this.element.closable = value === '' ? true : value;
}
;
get hidden() {
return this.element.hidden;
}
set hidden(value) {
this.element.hidden = value === '' ? true : value;
}
;
get i18n() {
return this.element.i18n;
}
set i18n(value) {
this.element.i18n = value;
}
;
get closeOverlay() {
return this.element.closeOverlay;
}
set closeOverlay(value) {
this.element.closeOverlay = value;
}
;
}
CdsInternalOverlayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalOverlayDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
CdsInternalOverlayDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsInternalOverlayDirective, selector: "cds-internal-overlay", inputs: { cdsMotion: "cdsMotion", closable: "closable", hidden: "hidden", i18n: "i18n", closeOverlay: "closeOverlay" }, outputs: { cdsMotionChange: "cdsMotionChange", closeChange: "closeChange" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalOverlayDirective, decorators: [{
type: Directive,
args: [{ selector: 'cds-internal-overlay' }]
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { cdsMotion: [{
type: Input
}], closable: [{
type: Input
}], hidden: [{
type: Input
}], i18n: [{
type: Input
}], closeOverlay: [{
type: Input
}], cdsMotionChange: [{
type: Output
}], closeChange: [{
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 CdsInternalComponentsOverlayModule {
}
CdsInternalComponentsOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsOverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
CdsInternalComponentsOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsOverlayModule, declarations: [CdsInternalOverlayDirective], imports: [CommonModule], exports: [CdsInternalOverlayDirective] });
CdsInternalComponentsOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsOverlayModule, imports: [[CommonModule]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsOverlayModule, decorators: [{
type: NgModule,
args: [{
imports: [CommonModule],
declarations: [
CdsInternalOverlayDirective,
],
exports: [
CdsInternalOverlayDirective,
],
}]
}] });
/*
* 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 { CdsInternalComponentsOverlayModule, CdsInternalOverlayDirective };
//# sourceMappingURL=internal-components-overlay.mjs.map