import { EventEmitter } from "../../stencil-public-runtime"; import { StzhActionsetItem, StzhCardClickEvent, StzhCardCollapseEvent, StzhCardHeaderAction, StzhCardHeaderActionClickEvent, StzhCardSelectionChangeEvent, StzhCardStarClickEvent, StzhCardSubtitleClickEvent } from "../../index"; import { StzhCardLocalizedText } from "./stzh-card.localization"; /** * @slot heading - Slot for the heading * @slot badge - Slot for `stzh-badge` element * @slot image - Slot for an optional image element * @slot content - Slot for content for any elements * @slot meta - Slot for meta elements (status or chip) * @slot footer - Slot to replace footer content (`footerActions` are not shown anymore) */ export declare class StzhCard { /** Translation strings */ localization: StzhCardLocalizedText; /** Whether background should be grey (default) or white */ backgroundColor: "grey" | "white"; /** Variant */ variant: "default" | "service"; /** Whether card is collapsed or not */ collapsed: boolean; /** Whether card was starred */ starred: boolean; /** * Whether card star is displayed (with tooltip and menu-item in mobile popover). * The tooltip / menu-item text can be adjusted in the translations file (`actionAdd` & `actionRemove`). */ starrable: boolean; /** Whether card is selectable. This is intended for cards in a list of cards. */ selectable: boolean; /** Allow selecting multiple cards. This takes precedence over `selectable` and is intended for cards in a list of cards. */ selectableMultiple: boolean; /** Whether card is checked (if card is selectable) */ checked: boolean; /** The name of the input element (if card is selectable) */ name: string; /** Renders the heading as a link. It's not recommended to use it in combination with `selectable` or `selectable-multiple`. Place the link somewhere in the card's footer or content slot then. */ href: string; /** target if the button is used as link (if href used) */ target: string; /** The value of the input element (if card is selectable) */ value: string; /** Whether the element is disabled or not (if card is selectable) */ disabled: boolean; /** Automatic Hyphens */ hyphensEnabled: boolean; /** Heading (or use heading slot instead) */ heading: string; /** Heading level */ headingLevel: "1" | "2" | "3" | "4"; /** Subtitle */ subtitle: string | string[]; private _subtitles; /** Card header actions */ headerActions: string | StzhCardHeaderAction[]; private _headerActions; /** * Set a badge text if header action badge exists (see headerActionsBadgeType for more info). */ headerActionsBadge: string; /** * If a header action with a badge exists inside `headerActions`, the more actions popover will automatically have a empty badge. * By default, it takes the badge type from the first one. With this property you can overwrite it. */ headerActionsBadgeType: "default" | "success" | "warning" | "error" | "info"; /** * Card footer actions. * The [`stzh-actionset`](?path=/story/components-actionset) component is used internally. * You can listen to clicks with the `stzhActionClick` event. */ footerActions: string | StzhActionsetItem[]; private _footerActions; /** Whether subtitle should be rendered as button and event `stzhSubtitleClick` executed on click */ subtitleInteractive: boolean; /** * Whether sorting should be disabled. * Has no effect if card is not inside a `cardlist` element, which has `sortableEnabled` property set to true. */ sortableDisabled: boolean; /** Whether card is collapsible (only effective if href is not set) */ collapsible: boolean; /** * Whether movement menu items should be shown. * Has no effect if card is not inside a `cardlist` element, which has `sortableEnabled` property set to true. */ hideMovementActions: boolean; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute to the link elements. * Default value will be taken from `heading` prop/slot. */ analyticsId: string; element: HTMLStzhCardElement; /** Click event */ stzhClick: EventEmitter; /** Collapse event */ stzhCollapse: EventEmitter; /** Subtitle click event */ stzhSubtitleClick: EventEmitter; /** Star click event */ stzhStarClick: EventEmitter; /** Header action click event */ stzhHeaderActionClick: EventEmitter; /** Selection change event */ stzhChange: EventEmitter; subtitleWatcher(newValue: string[] | string): void; headerActionsWatcher(newValue: StzhCardHeaderAction[] | string): void; footerActionsWatcher(newValue: StzhActionsetItem[] | string): void; private observer; private nodeChange; private imageLinkElement; private titleLinkElement; private headingTextElement; private sortable; private headerClick; private subtitleClick; private starToggleClick; private actionClick; private arrowUpClick; private arrowDownClick; private updateElementInsideSortable; private init; private handleMutation; private handleSelectionChange; private selectByTitle; private selectByTitleKeyDown; private handleCardClick; private findSortableChildElement; componentWillLoad(): Promise; componentDidLoad(): void; componentDidRender(): void; connectedCallback(): void; disconnectedCallback(): void; render(): any; }