UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

1 lines 7.54 kB
{"version":3,"file":"accordion.mjs","sources":["../../../projects/cds-angular/accordion/cds-accordion.directive.ts","../../../projects/cds-angular/accordion/cds-accordion-panel.directive.ts","../../../projects/cds-angular/accordion/cds-accordion-content.directive.ts","../../../projects/cds-angular/accordion/cds-accordion-header.directive.ts","../../../projects/cds-angular/accordion/accordion.module.ts","../../../projects/cds-angular/accordion/index.ts","../../../projects/cds-angular/accordion/public-api.ts","../../../projects/cds-angular/accordion/accordion.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 { CdsAccordion } from '@cds/core/accordion';\n\n@Directive({ selector: 'cds-accordion' })\nexport class CdsAccordionDirective {\n protected element: CdsAccordion;\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 { CdsAccordionPanel } from '@cds/core/accordion';\n\n@Directive({ selector: 'cds-accordion-panel' })\nexport class CdsAccordionPanelDirective {\n protected element: CdsAccordionPanel;\n\n get cdsMotion() {\n return this.element.cdsMotion;\n }\n @Input() set cdsMotion(value) {\n this.element.cdsMotion = 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 expanded() {\n return this.element.expanded;\n }\n @Input() set expanded(value: boolean | '') {\n this.element.expanded = value === '' ? true : value;\n };\n\n @Output() cdsMotionChange: EventEmitter<CustomEvent> = new EventEmitter();\n @Output() expandedChange: 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 } from '@angular/core';\nimport { CdsAccordionContent } from '@cds/core/accordion';\n\n@Directive({ selector: 'cds-accordion-content' })\nexport class CdsAccordionContentDirective {\n protected element: CdsAccordionContent;\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 } from '@angular/core';\nimport { CdsAccordionHeader } from '@cds/core/accordion';\n\n@Directive({ selector: 'cds-accordion-header' })\nexport class CdsAccordionHeaderDirective {\n protected element: CdsAccordionHeader;\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/accordion/register.js';\n\nimport { CdsAccordionDirective } from './cds-accordion.directive';\nimport { CdsAccordionPanelDirective } from './cds-accordion-panel.directive';\nimport { CdsAccordionContentDirective } from './cds-accordion-content.directive';\nimport { CdsAccordionHeaderDirective } from './cds-accordion-header.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n CdsAccordionDirective,\n CdsAccordionPanelDirective,\n CdsAccordionContentDirective,\n CdsAccordionHeaderDirective,\n ],\n exports: [\n CdsAccordionDirective,\n CdsAccordionPanelDirective,\n CdsAccordionContentDirective,\n CdsAccordionHeaderDirective,\n ],\n})\nexport class CdsAccordionModule {}\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-accordion.directive';\nexport * from './cds-accordion-panel.directive';\nexport * from './cds-accordion-content.directive';\nexport * from './cds-accordion-header.directive';\nexport * from './accordion.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,qBAAqB;IAKhC,YAAY,UAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;;mHAPU,qBAAqB;uGAArB,qBAAqB;4FAArB,qBAAqB;kBADjC,SAAS;mBAAC,EAAE,QAAQ,EAAE,eAAe,EAAE;;;ACTxC;;;;;MAUa,0BAA0B;IAyBrC,YAAY,UAAsB;QAHxB,oBAAe,GAA8B,IAAI,YAAY,EAAE,CAAC;QAChE,mBAAc,GAA8B,IAAI,YAAY,EAAE,CAAC;QAGvE,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;KACzC;IAxBD,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,QAAQ;QACV,OAAO,IAAI,CAAC,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