import TableCellBase from "./TableCellBase.js"; import SortOrder from "@ui5/webcomponents-base/dist/types/SortOrder.js"; import Icon from "./Icon.js"; import type TableHeaderCellActionBase from "./TableHeaderCellActionBase.js"; import type { Slot } from "@ui5/webcomponents-base/dist/UI5Element.js"; /** * @class * * ### Overview * * The `ui5-table-header-cell` component represents a column in the `ui5-table`. * * As it is tightly coupled to the `ui5-table`, it should only be used in the `ui5-table-header-row` * to ensure correct layout and design. * * ### Accessibility * * When the `header-click` event is used to open a menu or a dialog, set the `aria-haspopup` attribute * on the `ui5-table-header-cell` correspondingly. * This allows assistive technologies to properly announce the associated popup. * * ```html * Column Header * ``` * * ### ES6 Module Import * * `import "@ui5/webcomponents/dist/TableHeaderCell.js";` * * @constructor * @extends TableCellBase * @since 2.0.0 * @public */ declare class TableHeaderCell extends TableCellBase { eventDetails: TableCellBase["eventDetails"] & { "header-click": void; }; /** * Defines the width of the column. * * By default, the column will grow and shrink according to the available space. * This will distribute the space proportionally among all columns with no specific width set. * * See [\](https://developer.mozilla.org/en-US/docs/Web/CSS/length) and * [\](https://developer.mozilla.org/en-US/docs/Web/CSS/percentage) for possible width values. * * @default undefined * @public */ width?: string; /** * Defines the minimum width of the column. * * If the table is in `Popin` mode and the minimum width does not fit anymore, * the column will move into the popin. * * By default, the table prevents the column from becoming too small. * Changing this value to a small value might lead to accessibility issues. * * **Note:** This property only takes effect for columns with a [\](https://developer.mozilla.org/en-US/docs/Web/CSS/percentage) value * or the default width. * * @public * @default undefined */ minWidth?: string; /** * Defines the importance of the column. * * This property affects the popin behaviour. * Columns with higher importance will move into the popin area later then less important * columns. * * @default 0 * @public */ importance: number; /** * The text for the column when it pops in. * * @default undefined * @since 2.7.0 * @public */ popinText?: string; /** * Defines the sort indicator of the column. * * @default "None" * @since 2.8.0 * @public */ sortIndicator: `${SortOrder}`; /** * Defines if the column is hidden in the popin. * * **Note:** Please be aware that hiding the column in the popin might lead to accessibility issues as * users might not be able to access the content of the column on small screens. * * @default false * @since 2.8.0 * @public */ popinHidden: boolean; /** * Defines whether the column header is interactive. * * If set to `true`, the column header can be activated by a click, Enter or Space, * which fires the `header-click` event and can be used, for example, to open a column menu. * A hover effect is shown to signal the interactivity to the user. * * **Note:** If the click opens a menu or dialog, set the `aria-haspopup` attribute on the `ui5-table-header-cell` * correspondingly. This allows assistive technologies to properly announce the associated popup. * * @default false * @since 2.29.0 * @public */ interactive: boolean; /** * Defines the action of the column. * * **Note:** While multiple actions are technically possible, this is not supported. * * @public * @since 2.8.0 */ action: Slot; _defaultSlot: HTMLSlotElement; _actionSlot: HTMLSlotElement; ariaRole: string; _popinWidth: number; get _sortIconComponent(): typeof Icon | undefined; get _sortIcon(): string | undefined; onBeforeRendering(): void; _onclick(e: MouseEvent): Promise; _onkeydown(e: KeyboardEvent, eventOrigin: HTMLElement): void; _onkeyup(e: KeyboardEvent, eventOrigin: HTMLElement): void; _onpointerdown(e: PointerEvent): Promise; _setActive(deactivationEvent: string): void; get accessibilityInfo(): { children: HTMLSlotElement[]; }; } export default TableHeaderCell;