@devtable/dashboard 13.15.1 → 13.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-editor/model/views/index.d.ts +2200 -17
- package/dist/dashboard-editor/model/views/view.d.ts +83 -0
- package/dist/dashboard-render/dashboard-render.d.ts +4 -2
- package/dist/dashboard.es.js +4242 -4183
- package/dist/dashboard.umd.js +61 -61
- package/dist/model/meta-model/dashboard/content/view/widgets/tabs.d.ts +4 -0
- package/dist/model/render-model/dashboard/content/views/view.d.ts +84 -1
- package/dist/model/render-model/dashboard/content/views/views.d.ts +2231 -296
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -274,6 +274,88 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
274
274
|
removePanelID(id: string): void;
|
|
275
275
|
} & {
|
|
276
276
|
readonly defaultTab: string;
|
|
277
|
+
readonly tabs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
278
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
279
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
280
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
281
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
282
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
283
|
+
}, {
|
|
284
|
+
readonly json: {
|
|
285
|
+
id: string;
|
|
286
|
+
name: string;
|
|
287
|
+
color: string;
|
|
288
|
+
order: number;
|
|
289
|
+
view_id: string;
|
|
290
|
+
};
|
|
291
|
+
} & {
|
|
292
|
+
setName(v: string): void;
|
|
293
|
+
setViewID(v: string): void;
|
|
294
|
+
setColor(v: string): void;
|
|
295
|
+
setOrder(v: number): void;
|
|
296
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
297
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
298
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
299
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
300
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
301
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
302
|
+
}, {
|
|
303
|
+
readonly json: {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
color: string;
|
|
307
|
+
order: number;
|
|
308
|
+
view_id: string;
|
|
309
|
+
};
|
|
310
|
+
} & {
|
|
311
|
+
setName(v: string): void;
|
|
312
|
+
setViewID(v: string): void;
|
|
313
|
+
setColor(v: string): void;
|
|
314
|
+
setOrder(v: number): void;
|
|
315
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>>;
|
|
316
|
+
readonly tabInfo: {
|
|
317
|
+
id: string;
|
|
318
|
+
name: string;
|
|
319
|
+
} | null;
|
|
320
|
+
readonly tabView: ({
|
|
321
|
+
id: string;
|
|
322
|
+
name: string;
|
|
323
|
+
view_id: string;
|
|
324
|
+
color: string;
|
|
325
|
+
order: number;
|
|
326
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
327
|
+
readonly json: {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
color: string;
|
|
331
|
+
order: number;
|
|
332
|
+
view_id: string;
|
|
333
|
+
};
|
|
334
|
+
} & {
|
|
335
|
+
setName(v: string): void;
|
|
336
|
+
setViewID(v: string): void;
|
|
337
|
+
setColor(v: string): void;
|
|
338
|
+
setOrder(v: number): void;
|
|
339
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
340
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
341
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
342
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
343
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
344
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
345
|
+
}, {
|
|
346
|
+
readonly json: {
|
|
347
|
+
id: string;
|
|
348
|
+
name: string;
|
|
349
|
+
color: string;
|
|
350
|
+
order: number;
|
|
351
|
+
view_id: string;
|
|
352
|
+
};
|
|
353
|
+
} & {
|
|
354
|
+
setName(v: string): void;
|
|
355
|
+
setViewID(v: string): void;
|
|
356
|
+
setColor(v: string): void;
|
|
357
|
+
setOrder(v: number): void;
|
|
358
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null | undefined;
|
|
277
359
|
readonly tabViewID: string;
|
|
278
360
|
readonly contentModel: any;
|
|
279
361
|
readonly panels: any;
|
|
@@ -281,6 +363,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
281
363
|
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
282
364
|
} & {
|
|
283
365
|
setTab(tab: string | null): void;
|
|
366
|
+
setTabByTabInfo(tabInfo: import('../../../model').TabInfo): void;
|
|
284
367
|
afterCreate(): void;
|
|
285
368
|
} & {
|
|
286
369
|
getSchema(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContextRecordType } from '../model';
|
|
1
|
+
import { ContextRecordType, TabInfo } from '../model';
|
|
2
2
|
import { IDashboardConfig } from '..';
|
|
3
3
|
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
4
4
|
interface IReadOnlyDashboard {
|
|
@@ -11,9 +11,11 @@ interface IReadOnlyDashboard {
|
|
|
11
11
|
setFullScreenPanelID: (v: string) => void;
|
|
12
12
|
filterValues?: Record<string, any>;
|
|
13
13
|
onFilterValuesChange?: (filterValues: Record<string, any>) => void;
|
|
14
|
+
activeTab?: TabInfo | null;
|
|
15
|
+
onActiveTabChange?: (tab: TabInfo | null) => void;
|
|
14
16
|
lang: string;
|
|
15
17
|
}
|
|
16
|
-
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, filterValues, onFilterValuesChange, lang, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
18
|
+
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, filterValues, onFilterValuesChange, activeTab, onActiveTabChange, lang, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
17
19
|
displayName: string;
|
|
18
20
|
};
|
|
19
21
|
export {};
|