@cds/angular
Version:
Core component modules for Clarity Angular
1 lines • 8.05 kB
Source Map (JSON)
{"version":3,"file":"checkbox.mjs","sources":["../../../projects/cds-angular/checkbox/cds-checkbox.directive.ts","../../../projects/cds-angular/checkbox/cds-checkbox-group.directive.ts","../../../projects/cds-angular/checkbox/checkbox.module.ts","../../../projects/cds-angular/checkbox/index.ts","../../../projects/cds-angular/checkbox/public-api.ts","../../../projects/cds-angular/checkbox/checkbox.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 { CdsCheckbox } from '@cds/core/checkbox';\n\n@Directive({ selector: 'cds-checkbox' })\nexport class CdsCheckboxDirective {\n protected element: CdsCheckbox;\n\n get controlAlign() {\n return this.element.controlAlign;\n }\n @Input() set controlAlign(value) {\n this.element.controlAlign = value;\n };\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n get controlWidth() {\n return this.element.controlWidth;\n }\n @Input() set controlWidth(value) {\n this.element.controlWidth = value;\n };\n get validate() {\n return this.element.validate;\n }\n @Input() set validate(value: boolean | '') {\n this.element.validate = value === '' ? true : value;\n };\n get responsive() {\n return this.element.responsive;\n }\n @Input() set responsive(value: boolean | '') {\n this.element.responsive = value === '' ? true : value;\n };\n get layout() {\n return this.element.layout;\n }\n @Input() set layout(value) {\n this.element.layout = value;\n };\n\n @Output() layoutChange: 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 { CdsCheckboxGroup } from '@cds/core/checkbox';\n\n@Directive({ selector: 'cds-checkbox-group' })\nexport class CdsCheckboxGroupDirective {\n protected element: CdsCheckboxGroup;\n\n get status() {\n return this.element.status;\n }\n @Input() set status(value) {\n this.element.status = value;\n };\n get layout() {\n return this.element.layout;\n }\n @Input() set layout(value) {\n this.element.layout = value;\n };\n get controlAlign() {\n return this.element.controlAlign;\n }\n @Input() set controlAlign(value) {\n this.element.controlAlign = 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 controlWidth() {\n return this.element.controlWidth;\n }\n @Input() set controlWidth(value) {\n this.element.controlWidth = value;\n };\n get responsive() {\n return this.element.responsive;\n }\n @Input() set responsive(value: boolean | '') {\n this.element.responsive = value === '' ? true : 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/checkbox/register.js';\n\nimport { CdsCheckboxDirective } from './cds-checkbox.directive';\nimport { CdsCheckboxGroupDirective } from './cds-checkbox-group.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsCheckboxDirective,\n CdsCheckboxGroupDirective,\n ],\n exports: [\n CdsCheckboxDirective,\n CdsCheckboxGroupDirective,\n ],\n})\nexport class CdsCheckboxModule {}\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-checkbox.directive';\nexport * from './cds-checkbox-group.directive';\nexport * from './checkbox.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,oBAAoB;IA0C/B,YAAY,UAAsB;QAFxB,iBAAY,GAA8B,IAAI,YAAY,EAAE,CAAC;QAGrE,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IAzCD,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;KAClC;IACD,IAAa,YAAY,CAAC,KAAK;QAC7B,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC;KACnC;;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;KAC5B;IACD,IAAa,MAAM,CAAC,KAAK;QACvB,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;KAC7B;;IACD,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;KAClC;IACD,IAAa,YAAY,CAAC,KAAK;QAC7B,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC;KACnC;;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,UAAU;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;KAChC;IACD,IAAa,UAAU,CAAC,KAAmB;QACzC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,KAAK,KAAK,EAAE,GAAG,IAAI,GAAG,KAAK,CAAC;KACvD;;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,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