import * as i0 from '@angular/core'; import { AfterContentInit, OnDestroy, EventEmitter } from '@angular/core'; import * as i3 from '@skyux/modals'; import { SkyModalInstance, SkyModalService } from '@skyux/modals'; import * as i2 from '@angular/common'; import * as i1 from '@skyux/i18n'; import * as i5 from '@skyux/list-builder'; import { ListViewComponent, ListState, ListStateDispatcher, SkyListSecondaryActionsComponent } from '@skyux/list-builder'; import * as i6 from '@skyux/list-builder-view-checklist'; import { Observable, Subject } from 'rxjs'; import { SkyLogService } from '@skyux/core'; import * as i4 from '@skyux/grids'; import { SkyGridColumnModel, SkyGridComponent, SkyGridMessage, SkyGridSelectedRowsModelChange } from '@skyux/grids'; import { StateDispatcher, StateOrchestrator, AsyncList, StateNode, ListItemModel, ListSortFieldSelectorModel } from '@skyux/list-builder-common'; import * as i7 from '@skyux/icon'; import * as i3$1 from '@skyux/indicators'; /** * @deprecated */ declare class SkyColumnSelectorContext { columns: SkyColumnSelectorModel[]; selectedColumnIds: string[]; } /** * @deprecated */ declare class SkyColumnSelectorModel { id: string; heading: string; description: string; } declare class SkyColumnSelectorComponent { context: SkyColumnSelectorContext; instance: SkyModalInstance; newSelectedColumnIds: string[]; constructor(context: SkyColumnSelectorContext, instance: SkyModalInstance); selectedColumnsChange(selectedMap: Map): void; cancelChanges(): void; applyChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Import into any component library module that needs to use resource strings. */ declare class SkyListBuilderViewGridsResourcesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated List builder view grid and its features are deprecated. Use data entry grid instead. For more information, see https://developer.blackbaud.com/skyux/components/data-entry-grid. */ declare class SkyColumnSelectorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @internal * @deprecated */ declare class ListViewGridColumnsLoadAction { columns: SkyGridColumnModel[]; refresh: boolean; constructor(columns: SkyGridColumnModel[], refresh?: boolean); } /** * @internal * @deprecated */ type GridStateAction = ListViewGridColumnsLoadAction; /** * @internal * @deprecated */ declare class GridStateDispatcher extends StateDispatcher { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * @internal */ declare class GridStateOrchestrator extends StateOrchestrator { } /** * @internal * @deprecated */ declare class GridStateModel { columns: AsyncList; displayedColumns: AsyncList; } /** * @internal * @deprecated */ declare class GridState extends StateNode { constructor(initialState: GridStateModel, dispatcher: GridStateDispatcher); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * The command for the list view grid to respond to. * @deprecated */ declare enum SkyListViewGridMessageType { /** * Deletes of a row in the list view grid. */ PromptDeleteRow = 0, /** * Cancels the deletion of a row in the list view grid. */ AbortDeleteRow = 1 } /** * Communicates commands to the list view grid. * @deprecated */ interface SkyListViewGridMessage { /** * The type of message to send. */ type: SkyListViewGridMessageType; /** * The data required to carry out the command. */ data?: { abortDeleteRow?: { id: string; }; promptDeleteRow?: { id: string; }; }; } /** * @deprecated */ interface SkyListViewGridRowDeleteCancelArgs { /** * The ID of the row where the Cancel button was clicked to cancel deleting the row. */ id: string; } /** * @deprecated */ interface SkyListViewGridRowDeleteConfirmArgs { /** * The ID of the row where the Confirm button was clicked to delete the row. */ id: string; } /** * Displays a grid for a * [SKY UX-themed list of data](https://developer.blackbaud.com/skyux/components/list-overview) * using the [grid component](https://developer.blackbaud.com/skyux/components/grid). * You must install `SkyListModule` as a dependency. * @deprecated List builder view grid and its features are deprecated. Use data entry grid instead. For more information, see https://developer.blackbaud.com/skyux/components/data-entry-grid. */ declare class SkyListViewGridComponent extends ListViewComponent implements AfterContentInit, OnDestroy { private dispatcher; gridState: GridState; gridDispatcher: GridStateDispatcher; /** * The name of the view. * @required */ set name(value: string); /** * The columns to display by default based on the ID or field of the item. */ displayedColumns: string[] | Observable; /** * The columns to hide by default based on the ID or field of the item. */ hiddenColumns: string[] | Observable; /** * How the grid fits to its parent. `"width"` fits the grid to the parent's full * width, and `"scroll"` allows the grid to exceed the parent's width. If the grid does not have * enough columns to fill the parent's width, it always stretches to the parent's full width. * @default "width" */ fit: string; /** * The width of the grid. */ width: number | Observable; /** * The height of the grid. */ height: number | Observable; /** * Whether to highlight search text within the grid. * @default true */ highlightSearchText: boolean; /** * The observable to send commands to the grid. * The commands should respect the `SkyListViewGridMessage` type. */ set messageStream(stream: Subject); get messageStream(): Subject; /** * The ID of the row to highlight. The ID matches the `id` property of * the `data` object. Typically, this property is used in conjunction with the * [flyout component](https://developer.blackbaud.com/skyux/components/flyout) to * indicate the currently selected row. */ rowHighlightedId: string; /** * Whether to enable the multiselect feature to display a column of checkboxes * on the left side of the grid. Multiselect also displays an action bar with buttons to * select and clear all checkboxes. Multiselect defaults to the `id` property on the list's * `data` object. * @default false */ enableMultiselect: boolean; /** * The unique key for the UI Config Service that retrieves stored settings from * a database. The service saves configuration settings for users and returns `selectedColumnIds` * for the columns to display and the preferred column order. For more information, see the * [sticky settings documentation](https://developer.blackbaud.com/skyux/learn/develop/sticky-settings/overview). */ settingsKey: string; /** * Fires when users cancel the deletion of a row. */ rowDeleteCancel: EventEmitter; /** * Fires when users confirm the deletion of a row. */ rowDeleteConfirm: EventEmitter; /** * Fires when columns change. This includes changes to the displayed columns and changes * to the order of columns. The event emits an array of IDs for the displayed columns that * reflects the column order. */ selectedColumnIdsChange: EventEmitter; gridComponent: SkyGridComponent; get gridHeight(): Observable; get gridWidth(): Observable; columns: Observable; selectedColumnIds: Observable; items: Observable; /** * Message stream for communicating with the internal grid instance * @internal */ gridMessageStream: Subject; loading: Observable; sortField: Observable; currentSearchText: Observable; multiselectSelectedIds: string[]; /** * The search function to apply on the view data. * @param data Specifies the data to search. * @param searchText Specifies a text string to search for. */ searchFunction: (data: any, searchText: string) => boolean; private columnComponents; private ngUnsubscribe; private _messageStream; constructor(state: ListState, dispatcher: ListStateDispatcher, gridState: GridState, gridDispatcher: GridStateDispatcher, logger: SkyLogService); ngAfterContentInit(): void; ngOnDestroy(): void; /** * If user makes selection, tell list-builder to update the list state. * This logic should only run on user interaction - NOT programmatic updates. */ onMultiselectSelectionChange(event: SkyGridSelectedRowsModelChange): void; columnIdsChanged(selectedColumnIds: string[]): void; cancelRowDelete(args: SkyListViewGridRowDeleteCancelArgs): void; confirmRowDelete(args: SkyListViewGridRowDeleteConfirmArgs): void; sortFieldChanged(sortField: ListSortFieldSelectorModel): void; onViewActive(): void; private initInlineDeleteMessages; private handleColumnChange; private getGridItems; private getSelectedIds; private haveColumnIdsChanged; private selectedMapEqual; private arrayDiff; private arrayIntersection; private arraysEqual; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Provides a column selector modal for a list grid view when placed in a * [list toolbar](https://developer.blackbaud.com/skyux/components/list-toolbar). */ declare class SkyListColumnSelectorActionComponent implements AfterContentInit { listState: ListState; private modalService; private dispatcher; secondaryActions: SkyListSecondaryActionsComponent; /** * Enables the column selector in the list toolbar. Set this attribute to the instance of * the `sky-grid-view` component using the component's template reference variable. */ gridView: SkyListViewGridComponent; /** * The `helpKey` string to associate with a help button in the grid header. When users select * the button, the `helpOpened` event broadcasts the `helpKey` parameter. */ helpKey: string; /** * Fires when users click the help button and broadcasts the `helpKey`. */ helpOpened: EventEmitter; private columnChooserTemplate; private columnSelectorActionItemToolbarIndex; constructor(listState: ListState, modalService: SkyModalService, dispatcher: ListStateDispatcher, secondaryActions: SkyListSecondaryActionsComponent); ngAfterContentInit(): void; get isInGridView(): Observable; get isInGridViewAndSecondary(): Observable; openColumnSelector(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SkyListColumnSelectorButtonComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated List builder view grid and its features are deprecated. Use data entry grid instead. For more information, see https://developer.blackbaud.com/skyux/components/data-entry-grid. */ declare class SkyListColumnSelectorActionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @deprecated List builder view grid and its features are deprecated. Use data entry grid instead. For more information, see https://developer.blackbaud.com/skyux/components/data-entry-grid. */ declare class SkyListViewGridModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * @internal * @deprecated */ declare class ListViewGridColumnsOrchestrator extends GridStateOrchestrator> { constructor(); private load; } /** * @internal * @deprecated */ declare class ListViewDisplayedGridColumnsOrchestrator extends GridStateOrchestrator> { constructor(); private load; } /** * @internal * @deprecated */ declare class ListViewDisplayedGridColumnsLoadAction { columns: SkyGridColumnModel[]; refresh: boolean; constructor(columns: SkyGridColumnModel[], refresh?: boolean); } export { GridState, GridStateDispatcher, GridStateModel, GridStateOrchestrator, ListViewDisplayedGridColumnsLoadAction, ListViewDisplayedGridColumnsOrchestrator, ListViewGridColumnsLoadAction, ListViewGridColumnsOrchestrator, SkyColumnSelectorContext, SkyColumnSelectorModel, SkyColumnSelectorModule, SkyListColumnSelectorActionModule, SkyListViewGridComponent, SkyListViewGridMessageType, SkyListViewGridModule, SkyListColumnSelectorActionComponent as λ1 }; export type { GridStateAction, SkyListViewGridMessage, SkyListViewGridRowDeleteCancelArgs, SkyListViewGridRowDeleteConfirmArgs };