UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

196 lines (189 loc) 6.73 kB
import * as i0 from '@angular/core'; import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/dropdown/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 CdsDropdownDirective { constructor(elementRef) { this.cdsMotionChange = new EventEmitter(); this.closeChange = new EventEmitter(); this.element = elementRef.nativeElement; } get anchor() { return this.element.anchor; } set anchor(value) { this.element.anchor = value; } ; get i18n() { return this.element.i18n; } set i18n(value) { this.element.i18n = value; } ; get cdsMotion() { return this.element.cdsMotion; } set cdsMotion(value) { this.element.cdsMotion = value; } ; get trigger() { return this.element.trigger; } set trigger(value) { this.element.trigger = value; } ; get anchorAlign() { return this.element.anchorAlign; } set anchorAlign(value) { this.element.anchorAlign = value; } ; get mainAxisOffset() { return this.element.mainAxisOffset; } set mainAxisOffset(value) { this.element.mainAxisOffset = value; } ; get crossAxisOffset() { return this.element.crossAxisOffset; } set crossAxisOffset(value) { this.element.crossAxisOffset = value; } ; get orientation() { return this.element.orientation; } set orientation(value) { this.element.orientation = value; } ; get closable() { return this.element.closable; } set closable(value) { this.element.closable = value === '' ? true : value; } ; get pointerAlign() { return this.element.pointerAlign; } set pointerAlign(value) { this.element.pointerAlign = value; } ; get defaultPointerType() { return this.element.defaultPointerType; } set defaultPointerType(value) { this.element.defaultPointerType = value; } ; get pointer() { return this.element.pointer; } set pointer(value) { this.element.pointer = value; } ; get hidden() { return this.element.hidden; } set hidden(value) { this.element.hidden = value === '' ? true : value; } ; get closeOverlay() { return this.element.closeOverlay; } set closeOverlay(value) { this.element.closeOverlay = value; } ; } CdsDropdownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsDropdownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsDropdownDirective, selector: "cds-dropdown", inputs: { anchor: "anchor", i18n: "i18n", cdsMotion: "cdsMotion", trigger: "trigger", anchorAlign: "anchorAlign", mainAxisOffset: "mainAxisOffset", crossAxisOffset: "crossAxisOffset", orientation: "orientation", closable: "closable", pointerAlign: "pointerAlign", defaultPointerType: "defaultPointerType", pointer: "pointer", hidden: "hidden", closeOverlay: "closeOverlay" }, outputs: { cdsMotionChange: "cdsMotionChange", closeChange: "closeChange" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-dropdown' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { anchor: [{ type: Input }], i18n: [{ type: Input }], cdsMotion: [{ type: Input }], trigger: [{ type: Input }], anchorAlign: [{ type: Input }], mainAxisOffset: [{ type: Input }], crossAxisOffset: [{ type: Input }], orientation: [{ type: Input }], closable: [{ type: Input }], pointerAlign: [{ type: Input }], defaultPointerType: [{ type: Input }], pointer: [{ type: Input }], hidden: [{ 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 CdsDropdownModule { } CdsDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownModule, declarations: [CdsDropdownDirective], imports: [CommonModule], exports: [CdsDropdownDirective] }); CdsDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsDropdownModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsDropdownDirective, ], exports: [ CdsDropdownDirective, ], }] }] }); /* * 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 { CdsDropdownDirective, CdsDropdownModule }; //# sourceMappingURL=dropdown.mjs.map