datagrok-api
Advanced tools
Comparing version 1.20.0 to 1.20.1-rc.0f668ab549.24713f912ecb
{ | ||
"name": "datagrok-api", | ||
"version": "1.20.0", | ||
"version": "1.20.1-rc.0f668ab549.24713f912ecb", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -24,2 +24,3 @@ import { DataFrame } from "./dataframe"; | ||
build: AppBuildInfo; | ||
isInDemo: boolean; | ||
testError(s: String): void; | ||
@@ -26,0 +27,0 @@ reportTest(type: String, params: object): Promise<void>; |
@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { DataFrame } from './dataframe'; | ||
import { View, ViewBase } from './views/view'; | ||
import { TableView, View, ViewBase } from './views/view'; | ||
import { toDart, toJs } from './wrappers'; | ||
@@ -35,2 +35,3 @@ import { DockManager } from './docking'; | ||
this.build = new AppBuildInfo(); | ||
this.isInDemo = false; | ||
} | ||
@@ -157,3 +158,8 @@ testError(s) { | ||
v.parentCall = context; | ||
api.grok_AddView(v.dart, dockType, width); | ||
if (this.isInDemo && grok.shell.view('Browse') !== null) { | ||
const bv = grok.shell.view('Browse'); | ||
bv.preview = v; | ||
} | ||
else | ||
api.grok_AddView(v.dart, dockType, width); | ||
} | ||
@@ -184,3 +190,10 @@ return v; | ||
addTableView(table, dockType = DOCK_TYPE.FILL, width = null) { | ||
return toJs(api.grok_AddTableView(table.dart, dockType, width)); | ||
if (this.isInDemo && grok.shell.view('Browse') !== null) { | ||
const tv = TableView.create(table, false); | ||
const bv = grok.shell.view('Browse'); | ||
bv.preview = tv; | ||
return tv; | ||
} | ||
else | ||
return toJs(api.grok_AddTableView(table.dart, dockType, width)); | ||
} | ||
@@ -187,0 +200,0 @@ /** |
@@ -338,2 +338,3 @@ import { ViewerType } from '../const'; | ||
set preview(preview: View | null); | ||
get dockManager(): DockManager; | ||
} | ||
@@ -340,0 +341,0 @@ export declare class ViewLayout extends Entity { |
@@ -521,4 +521,5 @@ import { VIEW_TYPE, VIEWER } from '../const'; | ||
get mainTree() { return api.grok_BrowseView_Get_MainTree(this.dart); } | ||
get preview() { return api.grok_BrowseView_Get_Preview(this.dart); } | ||
get preview() { return toJs(api.grok_BrowseView_Get_Preview(this.dart)); } | ||
set preview(preview) { api.grok_BrowseView_Set_Preview(this.dart, preview === null || preview === void 0 ? void 0 : preview.dart); } | ||
get dockManager() { return new DockManager(api.grok_BrowseView_Get_DockManager(this.dart)); } | ||
} | ||
@@ -525,0 +526,0 @@ export class ViewLayout extends Entity { |
@@ -799,2 +799,4 @@ import { EventData, InputArgs, StreamSubscription } from "./events"; | ||
set autoCheckChildren(auto: boolean); | ||
get currentItem(): TreeViewNode; | ||
set currentItem(node: TreeViewNode); | ||
/** Adds new group */ | ||
@@ -801,0 +803,0 @@ group(text: string | Element, value?: object | null, expanded?: boolean): TreeViewGroup; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1915969
27116
2