@cds/angular
Version:
Core component modules for Clarity Angular
1 lines • 12.9 kB
Source Map (JSON)
{"version":3,"file":"button.mjs","sources":["../../../projects/cds-angular/button/cds-button.directive.ts","../../../projects/cds-angular/button/cds-icon-button.directive.ts","../../../projects/cds-angular/button/button.module.ts","../../../projects/cds-angular/button/index.ts","../../../projects/cds-angular/button/public-api.ts","../../../projects/cds-angular/button/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 { CdsButton } from '@cds/core/button';\n\n@Directive({ selector: 'cds-button' })\nexport class CdsButtonDirective {\n protected element: CdsButton;\n\n get action() {\n return this.element.action;\n }\n @Input() set action(value) {\n this.element.action = value;\n };\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n get size() {\n return this.element.size;\n }\n @Input() set size(value) {\n this.element.size = value;\n };\n get block() {\n return this.element.block;\n }\n @Input() set block(value: boolean | '') {\n this.element.block = value === '' ? true : value;\n };\n get loadingState() {\n return this.element.loadingState;\n }\n @Input() set loadingState(value) {\n this.element.loadingState = 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 isDefaultLoadingState() {\n return this.element.isDefaultLoadingState;\n }\n @Input() set isDefaultLoadingState(value) {\n this.element.isDefaultLoadingState = 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 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 { Directive, ElementRef , Input } from '@angular/core';\nimport { CdsIconButton } from '@cds/core/button';\n\n@Directive({ selector: 'cds-icon-button' })\nexport class CdsIconButtonDirective {\n protected element: CdsIconButton;\n\n get size() {\n return this.element.size;\n }\n @Input() set size(value) {\n this.element.size = value;\n };\n get action() {\n return this.element.action;\n }\n @Input() set action(value) {\n this.element.action = value;\n };\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n get block() {\n return this.element.block;\n }\n @Input() set block(value: boolean | '') {\n this.element.block = value === '' ? true : value;\n };\n get loadingState() {\n return this.element.loadingState;\n }\n @Input() set loadingState(value) {\n this.element.loadingState = 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 isDefaultLoadingState() {\n return this.element.isDefaultLoadingState;\n }\n @Input() set isDefaultLoadingState(value) {\n this.element.isDefaultLoadingState = 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 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/button/register.js';\n\nimport { CdsButtonDirective } from './cds-button.directive';\nimport { CdsIconButtonDirective } from './cds-icon-button.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsButtonDirective,\n CdsIconButtonDirective,\n ],\n exports: [\n CdsButtonDirective,\n CdsIconButtonDirective,\n ],\n})\nexport class CdsButtonModule {}\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-button.directive';\nexport * from './cds-icon-button.directive';\nexport * from './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,kBAAkB;IAyF7B,YAAY,UAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IAxFD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;KAC5B;IACD,IAAa,MAAM,CAAC,KAAK;QACvB,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,K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