UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

55 lines (54 loc) 2.43 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ import { BooleanInput } from '@angular/cdk/coercion'; import { AfterContentInit, EventEmitter, QueryList } from '@angular/core'; import { ButtonDirective } from '../button/button.directive'; import * as i0 from "@angular/core"; export declare class AccordionHeadingDirective implements AfterContentInit { hostButton?: ButtonDirective | undefined; buttons: QueryList<ButtonDirective>; _subtle: import("@angular/core").WritableSignal<boolean>; _index: number; _buttonHeading: ButtonDirective; constructor(hostButton?: ButtonDirective | undefined); /** * Provides custom class&#40;es&#41; for custom styling. * @default .v-accordion-heading */ get class(): string; set class(value: string); _class: string; get hostClass(): string; /** * Sets expanded state of accordion heading. <br /> * <strong>This property is overriden when used with details/summary version of accordion. Instead, refer to the native <code>open</code> property of the details element.</strong> * @default false */ get expanded(): boolean; set expanded(value: BooleanInput); _expanded: boolean; /** * Emits item index when accordion item is toggled (collapsed and expanded). */ toggled: EventEmitter<number>; get hostBackground(): string | void; get hostGap(): string | void; get hostForeground(): string | void; ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<AccordionHeadingDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionHeadingDirective, "[v-accordion-heading]", never, { "class": { "alias": "class"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "toggled": "toggled"; }, ["buttons"], never, true, never>; }