@cds/angular
Version:
Core component modules for Clarity Angular
1 lines • 7.16 kB
Source Map (JSON)
{"version":3,"file":"alert.mjs","sources":["../../../projects/cds-angular/alert/cds-alert-actions.directive.ts","../../../projects/cds-angular/alert/cds-alert.directive.ts","../../../projects/cds-angular/alert/cds-alert-group.directive.ts","../../../projects/cds-angular/alert/alert.module.ts","../../../projects/cds-angular/alert/index.ts","../../../projects/cds-angular/alert/public-api.ts","../../../projects/cds-angular/alert/alert.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 } from '@angular/core';\nimport { CdsAlertActions } from '@cds/core/alert';\n\n@Directive({ selector: 'cds-alert-actions' })\nexport class CdsAlertActionsDirective {\n protected element: CdsAlertActions;\n\n\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 { Directive, ElementRef , Input , Output, EventEmitter } from '@angular/core';\nimport { CdsAlert } from '@cds/core/alert';\n\n@Directive({ selector: 'cds-alert' })\nexport class CdsAlertDirective {\n protected element: CdsAlert;\n\n get size() {\n return this.element.size;\n }\n @Input() set size(value) {\n this.element.size = 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 status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n get i18n() {\n return this.element.i18n;\n }\n @Input() set i18n(value) {\n this.element.i18n = value;\n };\n\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 { Directive, ElementRef , Input } from '@angular/core';\nimport { CdsAlertGroup } from '@cds/core/alert';\n\n@Directive({ selector: 'cds-alert-group' })\nexport class CdsAlertGroupDirective {\n protected element: CdsAlertGroup;\n\n get size() {\n return this.element.size;\n }\n @Input() set size(value) {\n this.element.size = value;\n };\n get type() {\n return this.element.type;\n }\n @Input() set type(value) {\n this.element.type = value;\n };\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n\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/alert/register.js';\n\nimport { CdsAlertActionsDirective } from './cds-alert-actions.directive';\nimport { CdsAlertDirective } from './cds-alert.directive';\nimport { CdsAlertGroupDirective } from './cds-alert-group.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsAlertActionsDirective,\n CdsAlertDirective,\n CdsAlertGroupDirective,\n ],\n exports: [\n CdsAlertActionsDirective,\n CdsAlertDirective,\n CdsAlertGroupDirective,\n ],\n})\nexport class CdsAlertModule {}\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-alert-actions.directive';\nexport * from './cds-alert.directive';\nexport * from './cds-alert-group.directive';\nexport * from './alert.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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