UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

1 lines 7.07 kB
{"version":3,"file":"internal-components-close-button.mjs","sources":["../../../projects/cds-angular/internal-components/close-button/cds-internal-close-button.directive.ts","../../../projects/cds-angular/internal-components/close-button/internal-components-close-button.module.ts","../../../projects/cds-angular/internal-components/close-button/index.ts","../../../projects/cds-angular/internal-components/close-button/public-api.ts","../../../projects/cds-angular/internal-components/close-button/internal-components-close-button.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 } from '@angular/core';\nimport { CdsInternalCloseButton } from '@cds/core/internal-components/close-button';\n\n@Directive({ selector: 'cds-internal-close-button' })\nexport class CdsInternalCloseButtonDirective {\n protected element: CdsInternalCloseButton;\n\n get shape() {\n return this.element.shape;\n }\n @Input() set shape(value) {\n this.element.shape = value;\n };\n get action() {\n return this.element.action;\n }\n @Input() set action(value) {\n this.element.action = value;\n };\n get iconSize() {\n return this.element.iconSize;\n }\n @Input() set iconSize(value) {\n this.element.iconSize = value;\n };\n get i18n() {\n return this.element.i18n;\n }\n @Input() set i18n(value) {\n this.element.i18n = value;\n };\n get pressed() {\n return this.element.pressed;\n }\n @Input() set pressed(value: boolean | '') {\n this.element.pressed = value === '' ? true : value;\n };\n get expanded() {\n return this.element.expanded;\n }\n @Input() set expanded(value: boolean | '') {\n this.element.expanded = value === '' ? true : value;\n };\n get readonly() {\n return this.element.readonly;\n }\n @Input() set readonly(value: boolean | '') {\n this.element.readonly = value === '' ? true : value;\n };\n get type() {\n return this.element.type;\n }\n @Input() set type(value) {\n this.element.type = value;\n };\n get name() {\n return this.element.name;\n }\n @Input() set name(value) {\n this.element.name = value;\n };\n get value() {\n return this.element.value;\n }\n @Input() set value(value) {\n this.element.value = value;\n };\n get disabled() {\n return this.element.disabled;\n }\n @Input() set disabled(value: boolean | '') {\n this.element.disabled = value === '' ? true : value;\n };\n get popup() {\n return this.element.popup;\n }\n @Input() set popup(value) {\n this.element.popup = 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/internal-components/close-button/register.js';\n\nimport { CdsInternalCloseButtonDirective } from './cds-internal-close-button.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsInternalCloseButtonDirective,\n ],\n exports: [\n CdsInternalCloseButtonDirective,\n ],\n})\nexport class CdsInternalComponentsCloseButtonModule {}\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-close-button.directive';\nexport * from './internal-components-close-button.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,+BAA+B;IA6E1C,YAAY,UAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IA5ED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;KAC3B;IACD,IAAa,KAAK,CAAC,KAAK;QACtB,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;KAC5B;;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,C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