@devtable/dashboard 13.16.0 → 13.17.1
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 +2196 -37
- package/dist/dashboard-editor/model/views/view.d.ts +83 -2
- package/dist/dashboard-render/dashboard-render.d.ts +4 -2
- package/dist/dashboard.es.js +509 -480
- package/dist/dashboard.umd.js +21 -21
- 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 -3
- package/dist/model/render-model/dashboard/content/views/views.d.ts +2226 -309
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -273,7 +273,88 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
273
273
|
appendPanelIDs(ids: string[]): void;
|
|
274
274
|
removePanelID(id: string): void;
|
|
275
275
|
} & {
|
|
276
|
-
readonly
|
|
276
|
+
readonly tabs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
277
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
278
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
279
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
280
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
281
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
282
|
+
}, {
|
|
283
|
+
readonly json: {
|
|
284
|
+
id: string;
|
|
285
|
+
name: string;
|
|
286
|
+
color: string;
|
|
287
|
+
order: number;
|
|
288
|
+
view_id: string;
|
|
289
|
+
};
|
|
290
|
+
} & {
|
|
291
|
+
setName(v: string): void;
|
|
292
|
+
setViewID(v: string): void;
|
|
293
|
+
setColor(v: string): void;
|
|
294
|
+
setOrder(v: number): void;
|
|
295
|
+
}, 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<{
|
|
296
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
297
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
298
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
299
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
300
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
301
|
+
}, {
|
|
302
|
+
readonly json: {
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
color: string;
|
|
306
|
+
order: number;
|
|
307
|
+
view_id: string;
|
|
308
|
+
};
|
|
309
|
+
} & {
|
|
310
|
+
setName(v: string): void;
|
|
311
|
+
setViewID(v: string): void;
|
|
312
|
+
setColor(v: string): void;
|
|
313
|
+
setOrder(v: number): void;
|
|
314
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>>;
|
|
315
|
+
readonly tabInfo: {
|
|
316
|
+
id: string;
|
|
317
|
+
name: string;
|
|
318
|
+
} | null;
|
|
319
|
+
readonly tabView: ({
|
|
320
|
+
id: string;
|
|
321
|
+
name: string;
|
|
322
|
+
view_id: string;
|
|
323
|
+
color: string;
|
|
324
|
+
order: number;
|
|
325
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
326
|
+
readonly json: {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
color: string;
|
|
330
|
+
order: number;
|
|
331
|
+
view_id: string;
|
|
332
|
+
};
|
|
333
|
+
} & {
|
|
334
|
+
setName(v: string): void;
|
|
335
|
+
setViewID(v: string): void;
|
|
336
|
+
setColor(v: string): void;
|
|
337
|
+
setOrder(v: number): void;
|
|
338
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
339
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
340
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
341
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
342
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
343
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
344
|
+
}, {
|
|
345
|
+
readonly json: {
|
|
346
|
+
id: string;
|
|
347
|
+
name: string;
|
|
348
|
+
color: string;
|
|
349
|
+
order: number;
|
|
350
|
+
view_id: string;
|
|
351
|
+
};
|
|
352
|
+
} & {
|
|
353
|
+
setName(v: string): void;
|
|
354
|
+
setViewID(v: string): void;
|
|
355
|
+
setColor(v: string): void;
|
|
356
|
+
setOrder(v: number): void;
|
|
357
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null | undefined;
|
|
277
358
|
readonly tabViewID: string;
|
|
278
359
|
readonly contentModel: any;
|
|
279
360
|
readonly panels: any;
|
|
@@ -281,7 +362,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
281
362
|
downloadScreenshot(dom: HTMLElement): Promise<void>;
|
|
282
363
|
} & {
|
|
283
364
|
setTab(tab: string | null): void;
|
|
284
|
-
|
|
365
|
+
setTabByTabInfo(tabInfo: import('../../../model').TabInfo): void;
|
|
285
366
|
} & {
|
|
286
367
|
getSchema(): {
|
|
287
368
|
views: {
|
|
@@ -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 {};
|