import type { RallyModelName, RallyStore } from '../../utils/rallySDKTypes.js'; import type { GridView, Column, AdditionalGridData, Props, HierarchyConfig } from './types.js'; declare class __sveltets_Render> { props(): Props>; events(): {}; slots(): {}; bindings(): "data" | "store" | "storeConfig" | "columnConfig" | "filterConfig" | "artifactType" | "hierarchyConfig" | "collectionPopupConfig" | "pageSizeConfig" | "exportConfig" | "savedViewConfig" | "updateButtonConfig" | "displayPreferenceConfig" | "selectedRows" | "editable"; exports(): { isReady: () => boolean; rerenderGrid: (preserveExpandedRows?: boolean) => void; reloadData: () => void; enableUpdateButton: () => void; setData: (newData: (T & AdditionalGridData)[] | Promise<(T & AdditionalGridData)[]>) => void; setViewModified: (isModified: boolean) => void; getCurrentView: () => GridView; setCurrentView: (view: Record | undefined) => Promise; setStore: (newStore: RallyStore>, additionalFilters?: any[], reloadData?: boolean) => void; setHierarchyConfig: (newHierarchyConfig: HierarchyConfig, reloadData?: boolean) => Promise; setAdditionalFilters: (newFilters: any[]) => void; resetInitialColumns: (silent?: boolean) => void; getSelectedColumns: () => Column, Record>[]; setSelectedColumns: (newSelectedColumns: Column, Record>[], silent?: boolean) => Promise; loadColumnAttributesFromWSAPI: (modelName: RallyModelName | RallyModelName[]) => Promise, Record>[]>; exportData: () => Promise; getCSVArray: () => Promise<(string | number)[][]>; initGrid: () => Promise; }; } interface $$IsomorphicComponent { new >(options: import('svelte').ComponentConstructorOptions['props']>>): import('svelte').SvelteComponent['props']>, ReturnType<__sveltets_Render['events']>, ReturnType<__sveltets_Render['slots']>> & { $$bindings?: ReturnType<__sveltets_Render['bindings']>; } & ReturnType<__sveltets_Render['exports']>; >(internal: unknown, props: ReturnType<__sveltets_Render['props']> & {}): ReturnType<__sveltets_Render['exports']>; z_$$bindings?: ReturnType<__sveltets_Render['bindings']>; } /** * ## Grid * A grid for displaying data in rows and columns. * * ### Props * | Name | Required | Type | Default | * | --- | --- | --- | --- | * | `additionalFilters` | `false` | `any[]` | `--` | * | `columnConfig` | `false` | `ColumnConfig` | `{}` | * | `filterConfig` | `false` | `FilterConfig` | `{}` | * | `data` | `false` | `any[]` | `--` | * | `store` | `false` | `any` | `--` | * | `storeConfig` | `false` | `RallyWSAPIStoreConfig` | `--` | * | `artifactType` | `false` | RallyModelName | RallyModelName[] | `--` | * | `stateId` | `false` | `string` | `--` | * | `enableBulkSelection` | `false` | `boolean` | `false` | * | `hierarchyConfig` | `false` | `HierarchyConfig` | `{}` | * | `collectionPopupConfig` | `false` | `CollectionPopupConfig` | `{}` | * | `showSummaryRow` | `false` | `boolean` | `false` | * | `pageSizeConfig` | `false` | `PageSizeConfig` | `{ enable: false, pageSize: 25, pageSizes: [10, 25, 50, 100, 200]}` | * | `exportConfig` | `false` | `ExportConfig` | `{}` | * | `savedViewConfig` | `false` | `SavedViewConfig` | `{}` | * | `updateButtonConfig` | `false` | `UpdateButtonConfig` | `{}` | * | `displayPreferenceConfig` | `false` | `DisplayPreferenceConfig` | `{}` | * | `selectedRows` | `false` | `GridItem[]` | `[]` | * | `editable` | `false` | `boolean` | `false` | * | `uniqueIdField` | `false` | `string` | `--` | * | `onSelectedColumnsChange` | `false` | `(selectedColumns) => void` | `--` | * | `onRowClick` | `false` | `(item, rowIndex, event) => void` | `--` | * | `onCellUpdated` | `false` | `(item, rowIndex, dataIndex) => void` | `--` | * | `onDataLoaded` | `false` | `(data) => void` | `--` | * | `onHierarchyDataLoaded` | `false` | `(data) => void` | `--` | * | `onViewModified` | `false` | `(view) => void` | `--` | * * * ### Snippets * - `headerLeft`: The left side of the header * - `headerCenter`: The center of the header * - `headerRight`: The right side of the header * - `footerLeft`: The left side of the footer * - `footerCenter`: The center of the footer * - `footerRight`: The right side of the footer * - `inlineFilterContainer`: An optional container for the inline filter if it needs to be rendered elsewhere * * ### Exported Functions * - `rerenderGrid`: Forces Grid to rerender. Will collapse any expanded rows. Pass `true` to preserve expanded rows * - `reloadData`: Resets page to first page, reloads data * - `enableUpdateButton`: Enables the update button, if shown * - `setData`: Sets/updates the data for the grid * - `setViewModified`: Sets the view modified state to true. Useful if other components on the page affect the saved view * - `getCurrentView`: Returns the current view of the Grid. Useful if managing saved views from outside of Grid component * - `setCurrentView`: Sets the current view of the Grid. Useful if managing saved views from outside of Grid component * - `setAdditionalFilters`: Sets additional filters to be applied to the grid * - `resetInitialColumns`: Resets the initial columns to be shown in the grid if an initial list of columns was provided upon initialization * - `setSelectedColumns`: Sets the selected columns in the grid * - `loadColumnAttributesFromWSAPI`: Loads column attributes for a given model name(s). Useful if needing to change the artifact type of the grid externally * * * @example * ```svelte * * ``` */ declare const Grid: $$IsomorphicComponent; type Grid> = InstanceType>; export default Grid;