/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core'; import { BaseToolbarAction, GridAction, GridRowActionsScreenThreshold, RowAction } from './grid-toolbar.types'; import { DatoGridControllerComponent } from '../grid-controller/grid-controller.component'; import { DatoPopover } from '../../popover/popover.service'; import { GridQuery } from '../grid-store/grid.query'; import { GridService } from '../grid-store/grid.service'; import { DatoTranslateService } from '../../services/translate.service'; declare type TableAction = 'Autofit to Content' | 'Autofit to Page' | 'Show Hide Column' | 'Reset Settings' | 'Reset Filters' | 'Group from Settings' | 'Group from Toolbar' | 'Export' | 'Collapse Expand'; export declare class DatoGridV2ToolbarComponent implements OnInit, OnDestroy { gridController: DatoGridControllerComponent; private cdr; private translate; private popover; private gridQuery; private gridService; private readonly MAX_VISIBLE_ROW_ACTIONS; private readonly MAX_VISIBLE_GRID_ACTIONS; private destroy$; private _maxRowActions; groupTrigger: ElementRef; settingsTrigger: ElementRef; displayExport: boolean; createAction: GridAction; rowActions: { mainList: RowAction[]; moreMenu: RowAction[]; }; gridActions: { mainList: GridAction[]; moreMenu: GridAction[]; }; set maxRowActions(maxRowActions: number); hideGrouping: boolean; searchPlaceholder: string; rowActionsShortLabelThreshold: GridRowActionsScreenThreshold; displayCustomGridActionsSeparator: boolean; openMenus: { group: boolean; settings: boolean; }; rowGroupsCollapsed: boolean; groupsAllowed: boolean; isSelectedRow: boolean; isTreeMode: boolean; totalRowsCount: number; selectedRowsCount: number; allPageRowsSelected: boolean; widthToHideActionsLabels: GridRowActionsScreenThreshold; get enableV2_1(): boolean; get enableSearch(): boolean; get enableBackground(): boolean; get isRowActionsVisible(): boolean; get hasRowActions(): boolean; constructor(gridController: DatoGridControllerComponent, cdr: ChangeDetectorRef, translate: DatoTranslateService, popover: DatoPopover, gridQuery: GridQuery, gridService: GridService); get hiddenColumns(): string; get hasActiveMoreActions(): boolean; private get api(); ngOnInit(): void; onActionClick(action: BaseToolbarAction): void; resolveVisibleActions(): void; private initWidthToHideActionsLabels; private initGridActions; private initCreateAction; private initExportAction; /** * @internal * @param action */ executeTableAction(action: TableAction): void; toggleExpanded(): void; get hasGroups(): boolean; exportTable(): void; resetSettings(): void; openColumnMenu(): void; resetFilters(): void; openGroupMenu(): void; isActionDisabled(rowAction: RowAction): boolean; isRowActionHidden(rowAction: RowAction): boolean; clearSelectedRows(): void; ngOnDestroy(): void; private getCollapseState; private registerGroupListeners; private subscribeRowsSelectionData; private subscribeReloadGridActions; selectAllPages(): void; } export {};