import { UiElement } from '../shared/element.js'; /** * Carbon `cds-table-batch-actions`: the brand-coloured bar that slides over the toolbar while rows are chosen * (`active`, the table sets it with `selected-rows-count`): "3 items selected", the ``s you put in it, * and Cancel, which releases every row. With `total-rows-count` it offers "Select all (N)" for rows the table * doesn't hold (server paging): it fires `ui-table-batch-actions-select-all-clicked`, choose them yourself. * * @slot - The actions (``s; the bar sizes them to the toolbar) * @slot cancel-button-content - Cancel's text (default: the translation) * @slot select-all-button-content - "Select all (N)"'s text * @csspart batch-summary - The selected-count text * @csspart select-all-button - "Select all (N)" * @csspart cancel-button - Cancel * @fires ui-table-batch-actions-cancel-clicked - Cancel was clicked (the table releases every row) * @fires ui-table-batch-actions-select-all-clicked - "Select all (N)" was clicked * @cssprop --ui-batch-background / --ui-batch-ink / --ui-batch-divider - The bar's fill, text and the rule before Cancel (default Carbon's brand bar: background-brand, text-on-color) * @cssprop --ui-batch-button / --ui-batch-button-ink / --ui-batch-button-hover / --ui-batch-button-active / --ui-batch-focus - Its buttons and their focus ring (default the primary button's colours, a layer-coloured ring) */ export declare class UiTableBatchActions extends UiElement { static readonly styles: import("lit").CSSResult; /** Showing over the toolbar (rows are chosen). */ active: boolean; /** How many rows are chosen (the table sets it; set it yourself for a selection kept across pages). */ selectedRowsCount: number; /** Every row there is (server paging): above the count, "Select all (N)" shows. */ totalRowsCount: number; /** The table's size, normalized to xs / sm / lg (the table sets it): sizes the action buttons. */ size: 'xs' | 'sm' | 'lg'; /** The count text (Carbon `formatSelectedItemsCount`); default: the translation. */ formatSelectedItemsCount?: (options: { count: number; }) => string; private readonly localize; protected updated(changed: Map): void; /** The actions take the toolbar's height (Carbon sets each `cds-button`'s size). */ private readonly sizeButtons; /** The last action hovered: the divider before Cancel goes (Carbon). */ private readonly onSlotPointer; private readonly onCancel; private readonly onSelectAll; render(): import("lit-html").TemplateResult<1>; } export interface UiTableBatchActionsEventMap extends HTMLElementEventMap { 'ui-table-batch-actions-cancel-clicked': CustomEvent; 'ui-table-batch-actions-select-all-clicked': CustomEvent; } declare global { interface HTMLElementTagNameMap { 'ui-table-batch-actions': UiTableBatchActions; } }