-
Notifications
You must be signed in to change notification settings - Fork 47
/
env.ts
33 lines (29 loc) · 1.06 KB
/
env.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Model } from "..";
import { ClipboardInterface } from "../helpers/clipboard/navigator_clipboard_wrapper";
import { Get } from "../store_engine";
import { NotificationStoreMethods } from "../stores/notification_store";
import { Currency } from "./currency";
import { ImageProviderInterface } from "./files";
import { Locale } from "./locale";
export interface EditTextOptions {
error?: string;
placeholder?: string;
}
export type NotificationType = "danger" | "info" | "success" | "warning";
export interface InformationNotification {
text: string;
type: NotificationType;
sticky: boolean;
}
export interface SpreadsheetChildEnv extends NotificationStoreMethods {
model: Model;
imageProvider?: ImageProviderInterface;
isDashboard: () => boolean;
openSidePanel: (panel: string, panelProps?: any) => void;
toggleSidePanel: (panel: string, panelProps?: any) => void;
clipboard: ClipboardInterface;
startCellEdition: (content?: string) => void;
loadCurrencies?: () => Promise<Currency[]>;
loadLocales: () => Promise<Locale[]>;
getStore: Get;
}