import { AfterContentInit, EventEmitter, OnChanges } from '@angular/core'; import * as i0 from "@angular/core"; /** Built-in corner buttons */ export type CardActionName = 'minimize' | 'close' | 'delete' | 'edit' | 'more' | 'expand'; /** A corner button of your own (or a built-in one with another id / label) */ export interface CardAction { /** What (action) emits */ id: string; /** Accessible name and tooltip */ label?: string; /** One of the built-in icons… */ icon?: CardActionName; /** …or a short text instead, e.g. 'Pin' */ text?: string; /** 'danger' turns it red on hover (delete is danger by default) */ tone?: 'default' | 'danger'; disabled?: boolean; } export type CardTagTone = 'neutral' | 'info' | 'success' | 'warning' | 'error'; export type CardCornerPosition = 'top-right' | 'top-left'; /** An action as the template uses it */ interface CornerButton { id: string; label: string; icon?: CardActionName; text?: string; danger: boolean; disabled: boolean; } export declare class CardComponent implements OnChanges, AfterContentInit { /** Kept for compatibility; empty sections are hidden with CSS (:empty) */ hasHeader: boolean; hasBody: boolean; hasFooter: boolean; pd: string; mg: string; height?: string; width?: string; textColor?: string; bgColor?: string; border?: string; borderRadius?: string; disabled: boolean; aspectRatio?: number; /** Title shown in the header, without writing header markup */ heading?: string; /** Muted line under the heading */ subheading?: string; /** 'plain' = no grey header / footer bars */ variant: 'default' | 'plain'; /** Hover and keyboard focus styles for clickable cards; bind (click) / (keydown.enter) as usual */ interactive: boolean; /** Accent strip on the left, e.g. the item whose details are open */ selected: boolean; /** A small chip in the top-right, e.g. 'New', 'Draft', 'Paid' */ tag?: string; /** Tag colours from the theme */ tagTone: CardTagTone; /** Your own tag colours (win over tagTone) */ tagBgColor?: string; tagTextColor?: string; /** * Corner buttons, in order: built-in names ('minimize', 'close', 'delete', * 'edit', 'more', 'expand') and / or your own { id, label, icon | text }. * Each click emits (action) with its id; 'minimize' also collapses the card. */ actions: (CardActionName | CardAction)[]; /** Which top corner: 'top-right' (default) or 'top-left' */ cornerPosition: CardCornerPosition; /** * The corner's buttons ([actions] and [card-actions] content) only show while * the card is hovered or something in it has keyboard focus. The tag stays. * On touch screens (no hover) they always show. */ actionsOnHover: boolean; /** Only the header is shown (what 'minimize' toggles); two-way: [(collapsed)] */ collapsed: boolean; collapsedChange: EventEmitter; /** The id of the corner button that was clicked */ action: EventEmitter; /** Which slots you filled (direct children of only, so nested cards don't count) */ private slotted?; private filled; private cdr; private destroyRef; buttons: CornerButton[]; readonly icons: Record; /** pd as sides, so card-media can stretch over the padding */ padTop: string; padRight: string; padLeft: string; ngOnChanges(): void; ngAfterContentInit(): void; /** The corner is only rendered when something is in it */ get hasCorner(): boolean; /** No header content and the card starts with media: the corner floats over the image */ get cornerOverlay(): boolean; /** minimize shows "restore" while collapsed */ iconOf(b: CornerButton): string | null; labelOf(b: CornerButton): string; press(b: CornerButton): void; trackButton(_: number, b: CornerButton): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_interactive: unknown; static ngAcceptInputType_selected: unknown; static ngAcceptInputType_actionsOnHover: unknown; static ngAcceptInputType_collapsed: unknown; } export {};