UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

40 lines (39 loc) 2.38 kB
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models"; import { RecentCardsDashboardWidgetParams } from "@docsvision/webclient/Platform/RecentCardsDashboardWidget"; import { PanelImpl, IPanelState } from "@docsvision/webclient/Platform/PanelImpl"; import { $GridOptions, IGridOptions } from '@docsvision/webclient/Platform/$GridOptions'; import { RequestHelper } from "@docsvision/webclient/System/RequestHelper"; import React from "react"; import { $ExperimentalFeature } from "@docsvision/webclient/System/$ExperimentalFeature"; import { $FolderGrid } from '@docsvision/webclient/Platform/$FolderGrid'; import { $ApplicationSettings, $IsIE } from "@docsvision/webclient/StandardServices"; import { $FolderDataLoading } from '@docsvision/webclient/Platform/$FolderDataLoading'; import { $Router } from '@docsvision/webclient/System/$Router'; import { $Domain } from '@docsvision/web/core/state-management'; import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder'; export declare const TABLE_BLOCK_SCROLL_CLASS = "table-scroll-block"; export declare type RecentCardsDashboardWidgetServices = RecentCardsDashboardWidgetParams["services"] & $GridOptions & $FolderGrid & $IsIE & $ExperimentalFeature & $FolderDataLoading & $Router & $CurrentFolder & $Domain & $ApplicationSettings; /** @internal */ export interface IRecentCardsDashboardWidgetState extends RecentCardsDashboardWidgetParams, IPanelState { gridModel: GenModels.CardListViewModel; loader: RequestHelper; gridContainer: HTMLElement; locationName: string; gridOptions: IGridOptions; opacity: number; gridLayoutServices: RecentCardsDashboardWidgetServices; } export interface RecentCardsDashboardWidgetState extends IRecentCardsDashboardWidgetState { } /** @internal */ export declare class RecentCardsDashboardWidgetImpl<PropsT extends RecentCardsDashboardWidgetParams, StateT extends IRecentCardsDashboardWidgetState> extends PanelImpl<PropsT, StateT> { static readonly size = 5; constructor(props: PropsT, state: StateT); componentDidMount(): void; loadGridModel(): Promise<void>; prepareServices(gridLayoutServices: RecentCardsDashboardWidgetParams["services"]): void; handleWrapperScroll(): void; getBlockWrapper(): HTMLElement; getCssStyle(): React.CSSProperties; renderControl(): JSX.Element; }