sideBar.d.ts 862 B

123456789101112131415161718192021222324252627
  1. import { IToolPanelComp } from "../interfaces/iToolPanel";
  2. export interface ToolPanelDef {
  3. id: string;
  4. labelDefault: string;
  5. labelKey: string;
  6. iconKey: string;
  7. toolPanel?: {
  8. new (): IToolPanelComp;
  9. } | string;
  10. toolPanelFramework?: any;
  11. toolPanelParams?: any;
  12. }
  13. export interface SideBarDef {
  14. toolPanels?: (ToolPanelDef | string)[];
  15. defaultToolPanel?: string;
  16. hiddenByDefault?: boolean;
  17. position?: 'left' | 'right';
  18. }
  19. export declare class SideBarDefParser {
  20. static readonly DEFAULT_COLUMN_COMP: ToolPanelDef;
  21. static readonly DEFAULT_FILTER_COMP: ToolPanelDef;
  22. static readonly DEFAULT_BY_KEY: {
  23. [p: string]: ToolPanelDef;
  24. };
  25. static parse(toParse: SideBarDef | string | string[] | boolean): SideBarDef;
  26. static parseComponents(from: (ToolPanelDef | string)[]): ToolPanelDef[];
  27. }