UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

70 lines (68 loc) 2.57 kB
/// <reference types="../../index.d.ts" /> import { PropertyValues } from 'lit'; import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina'; import { Layout, Position, Scale } from '../interfaces'; import { OverlayPositioning } from '../../utils/floating-ui'; import { Tooltip } from '../calcite-tooltip/customElement.js'; /** * @deprecated Use the `calcite-action-pad` component instead. * @slot - A slot for adding `calcite-action`s to the component. * @slot [expand-tooltip] - A slot to set the `calcite-tooltip` for the expand toggle. */ export declare class ActionPad extends LitElement { /** Specifies the accessible label for the last `calcite-action-group`. */ actionsEndGroupLabel: string; /** * When `true`, the expand-toggling behavior is disabled. * * @default false */ expandDisabled: boolean; /** * When `true`, the component is expanded. * * @default false */ expanded: boolean; /** * Indicates the layout of the component. * * @default "vertical" */ layout: Extract<"horizontal" | "vertical" | "grid", Layout>; /** Use this property to override individual strings used by the component. */ messageOverrides?: typeof this.messages._overrides; /** * Determines the type of positioning to use for the overlaid content. * * Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout. * * `"fixed"` should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`. * * @default "absolute" */ overlayPositioning: OverlayPositioning; /** Arranges the component depending on the element's `dir` property. */ position: Extract<"start" | "end", Position>; /** * Specifies the size of the expand `calcite-action`. * * @default "m" */ scale: Scale; /** Sets focus on the component's first focusable element. */ setFocus(): Promise<void>; /** Fires when the `expanded` property is toggled. */ readonly calciteActionPadToggle: TargetedEvent<this, void>; private messages: Partial<{ expand: string; collapse: string; expandLabel: string; collapseLabel: string; }> & import('@arcgis/lumina/controllers').T9nMeta<{ expand: string; collapse: string; expandLabel: string; collapseLabel: string; }>; }