UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

1 lines 5.14 kB
{"version":3,"file":"internal-components-overlay.mjs","sources":["../../../projects/cds-angular/internal-components/overlay/cds-internal-overlay.directive.ts","../../../projects/cds-angular/internal-components/overlay/internal-components-overlay.module.ts","../../../projects/cds-angular/internal-components/overlay/index.ts","../../../projects/cds-angular/internal-components/overlay/public-api.ts","../../../projects/cds-angular/internal-components/overlay/internal-components-overlay.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef , Input , Output, EventEmitter } from '@angular/core';\nimport { CdsInternalOverlay } from '@cds/core/internal-components/overlay';\n\n@Directive({ selector: 'cds-internal-overlay' })\nexport class CdsInternalOverlayDirective {\n protected element: CdsInternalOverlay;\n\n get cdsMotion() {\n return this.element.cdsMotion;\n }\n @Input() set cdsMotion(value) {\n this.element.cdsMotion = value;\n };\n get closable() {\n return this.element.closable;\n }\n @Input() set closable(value: boolean | '') {\n this.element.closable = value === '' ? true : value;\n };\n get hidden() {\n return this.element.hidden;\n }\n @Input() set hidden(value: boolean | '') {\n this.element.hidden = value === '' ? true : value;\n };\n get i18n() {\n return this.element.i18n;\n }\n @Input() set i18n(value) {\n this.element.i18n = value;\n };\n get closeOverlay() {\n return this.element.closeOverlay;\n }\n @Input() set closeOverlay(value) {\n this.element.closeOverlay = value;\n };\n\n @Output() cdsMotionChange: EventEmitter<CustomEvent> = new EventEmitter();\n @Output() closeChange: EventEmitter<CustomEvent> = new EventEmitter();\n\n constructor(elementRef: ElementRef) {\n this.element = elementRef.nativeElement;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport '@cds/core/internal-components/overlay/register.js';\n\nimport { CdsInternalOverlayDirective } from './cds-internal-overlay.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsInternalOverlayDirective,\n ],\n exports: [\n CdsInternalOverlayDirective,\n ],\n})\nexport class CdsInternalComponentsOverlayModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport * from './cds-internal-overlay.directive';\nexport * from './internal-components-overlay.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\n/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\n/*\n * Public API Surface of cds-angular\n */\n\nexport * from './index';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA;;;;;MAUa,2BAA2B;IAqCtC,YAAY,UAAsB;QAHxB,oBAAe,GAA8B,IAAI,YAAY,EAAE,CAAC;QAChE,gBAAW,GAA8B,IAAI,YAAY,EAAE,CAAC;QAGpE,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IApCD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;KAC/B;IACD,IAAa,SAAS,CAAC,KAAK;QAC1B,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC;KAChC;;IACD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC9B;IACD,IAAa,QAAQ,CAAC,KAAmB;QACvC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,KAAK,KAAK,EAAE,GAAG,IAAI,GAAG,KAAK,CAAC;KACrD;;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;K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