import { EventEmitter } from '../../stencil-public-runtime'; import { ButtonCurrentType, ButtonSizeType, ButtonTargetType, ButtonType, ButtonDropdownVariantType } from "../../type/button"; import { ToneMinimalVariantType } from "../../type/tone"; import { TypographyTruncateType } from "../../type/text"; /** * @slot - Add `text string`, `HTML elements` or `components` to this slot. * @part dropdown - The `mds-dropdown` that the arrow opens, with the default slot inside * @category actions */ export declare class MdsButtonDropdown { private t; host: HTMLMdsButtonDropdownElement; internals: ElementInternals; private formDisabled; /** * Specifies le text label of the component */ readonly label: string; /** * The accessible name of the chevron, the button that opens the menu, in place of the one the * component builds in the language of the page: "More actions for" and `label`, or "More * actions" without a label. Two split buttons of one page then name their chevrons apart */ readonly dropdownLabel?: string; /** * Focuses the primary action once the component is loaded */ readonly autoFocus: boolean; /** * The icon displayed in the button; `iconCurrent` and `iconHover` take its place in their * states */ icon?: string; /** * The icon of the primary action when it is current, in place of `icon`, as `iconCurrent` does * on `mds-button`: under the pointer too, unless `iconHover` says otherwise. Without `icon` it * shows nothing */ readonly iconCurrent?: string; /** * The icon of the primary action under the pointer, in place of `icon`, and `iconCurrent` when * it is not set, as `iconHover` does on `mds-button`. Without `icon` it shows nothing */ readonly iconHover?: string; /** * The type of the primary action: with `'submit'` or `'reset'` it submits or resets the form * the component is in, the chevron never does. Unlike `mds-button` it defaults to `'button'` */ readonly type?: ButtonType; /** * The name sent with `value` to the form the primary action submits, as a native submit * button does */ readonly name?: string; /** * The value sent under `name` to the form the primary action submits */ readonly value?: string; /** * Specifies the color variant for the button */ readonly variant?: ButtonDropdownVariantType; /** * Specifies the tone variant for the button */ readonly tone?: ToneMinimalVariantType; /** * Specifies the size for the button */ readonly size: ButtonSizeType; /** * Specifies if the button is active or not */ active: boolean; /** * Specifies if the component is disabled or not */ disabled?: boolean; /** * Specifies if the button is awaiting for a response */ await?: boolean; /** * The URL the primary action navigates to, instead of submitting; the chevron only opens the * menu */ readonly href?: string; /** * Where the primary action opens `href`, `'self'` or `'blank'` */ readonly target: ButtonTargetType; /** * Marks the primary action as the one that leads to the view you are in, as `current` does on * `mds-button`: `current` (or `current="page"`) is that view, and the primary action neither * navigates nor submits nor emits `mdsButtonDropdownClick`; `current="section"` is a view inside * it, and the primary action stays a link back. Both halves take the look; only the primary * action is announced with `aria-current`, the chevron keeps opening the menu */ readonly current?: ButtonCurrentType; /** * Specifies if the text shoud be truncated or should behave as a normal text */ readonly truncate?: TypographyTruncateType; /** * Emits when the primary action is clicked or activated from the keyboard, unless the * component is disabled or awaiting. The chevron and the menu items do not emit it, while a * native `click` on the component also comes from the menu items */ clickEvent: EventEmitter; formDisabledCallback(disabled: boolean): void; private isDisabled; private chevronName; componentDidLoad(): void; private primaryActionClick; render(): any; }