Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datagrok-api

Package Overview
Dependencies
Maintainers
5
Versions
475
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datagrok-api - npm Package Compare versions

Comparing version 1.20.2 to 1.21.0-rc.6c7419cbeae.48f8c09aa0

src/user_settings_storage.d.ts

4

dg.js

@@ -37,2 +37,4 @@ import $ from 'cash-dom';

export * from './src/ui/tree-view';
import * as grok from './grok';
import * as ui from './ui';
$(function () {

@@ -42,2 +44,4 @@ window.$ = $;

window.wu = wu;
window.grok = grok;
window.ui = ui;
window.addEventListener('error', function (e) {

@@ -44,0 +48,0 @@ var _a, _b, _c, _d, _e, _f, _g, _h;

@@ -7,2 +7,3 @@ import { Dapi } from './src/dapi';

import { Logger } from './src/logger';
import { UserSettingsStorage } from "./src/user_settings_storage";
export declare const functions: Functions;

@@ -14,2 +15,3 @@ export declare const events: Events;

export declare const data: Data;
export declare const userSettings: UserSettingsStorage;
export * from './src/chem';

@@ -16,0 +18,0 @@ export * from './src/ml';

@@ -7,2 +7,3 @@ import { Dapi } from './src/dapi';

import { Logger } from './src/logger';
import { UserSettingsStorage } from './src/user_settings_storage';
export const functions = new Functions();

@@ -14,2 +15,3 @@ export const events = new Events();

export const data = new Data();
export const userSettings = new UserSettingsStorage();
export * from './src/chem';

@@ -16,0 +18,0 @@ export * from './src/ml';

6

package.json
{
"name": "datagrok-api",
"version": "1.20.2",
"version": "1.21.0-rc.6c7419cbeae.48f8c09aa0",
"description": "",

@@ -14,7 +14,7 @@ "dependencies": {

"rxjs": "^6.5.5",
"typescript": "^4.2.3",
"wu": "latest",
"typeahead-standalone": "^4.14.1"
"typeahead-standalone": "4.14.1"
},
"devDependencies": {
"typescript": "^4.2.3",
"@types/node": "^18.11.18",

@@ -21,0 +21,0 @@ "@typescript-eslint/eslint-plugin": "^4.20.0",

@@ -107,2 +107,3 @@ export declare function histogram(col: any, bitset: any, flag: boolean, options?: {

static DbPropertyReferenceType: string;
static CalculatedColumnsSubscribed: string;
}

@@ -109,0 +110,0 @@ export declare class FuncOptions {

@@ -106,2 +106,4 @@ /// this file was generated automatically from ddt classes declarations

Tags.ValueValidators = '.value-validators';
/// Applies to default filters for string columns only.
/// When specified, treats the split strings as separate values in the filter
Tags.MultiValueSeparator = '.multi-value-separator';

@@ -134,2 +136,4 @@ /// Name to be shown in the UI

Tags.DbPropertyReferenceType = 'dbPropertyReferenceType';
/// Specifies if calculated columns are subscribed
Tags.CalculatedColumnsSubscribed = '.calculatedColumnsSubscribed';
export class FuncOptions {

@@ -136,0 +140,0 @@ }

@@ -144,7 +144,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

this.alighInput = this.createAlignHighlightInputs(chem.CHEM_FILTER_ALIGN, 'Align', () => {
grok.dapi.userDataStorage.postValue(chem.FILTER_KEY, chem.CHEM_FILTER_ALIGN, this.alighInput.value ? 'true' : 'false', true);
grok.userSettings.add(chem.FILTER_KEY, chem.CHEM_FILTER_ALIGN, this.alighInput.value ? 'true' : 'false');
this.onAlignedChanged.next(this.alighInput.value);
});
this.highlightInput = this.createAlignHighlightInputs(chem.CHEM_FILTER_HIGHLIGHT, 'Highlight', () => {
grok.dapi.userDataStorage.postValue(chem.FILTER_KEY, chem.CHEM_FILTER_HIGHLIGHT, this.highlightInput.value ? 'true' : 'false', true);
grok.userSettings.add(chem.FILTER_KEY, chem.CHEM_FILTER_HIGHLIGHT, this.highlightInput.value ? 'true' : 'false');
this.onHighlightChanged.next(this.highlightInput.value);

@@ -308,7 +308,4 @@ });

createAlignHighlightInputs(key, inputName, callback) {
grok.dapi.userDataStorage.getValue(chem.FILTER_KEY, key, true).then((value) => {
input.value = !value || value === 'true' ? true : false;
});
const input = ui.input.bool(inputName, { value: true, onValueChanged: callback });
return input;
const value = grok.userSettings.getValue(chem.FILTER_KEY, key);
return ui.input.bool(inputName, { value: !value || value === 'true', onValueChanged: callback });
}

@@ -488,3 +485,3 @@ /** In case sketcher is opened in filter panel use EXTERNAL mode*/

chem.currentSketcherType = friendlyName;
grok.dapi.userDataStorage.postValue(chem.STORAGE_NAME, chem.KEY, friendlyName, true);
grok.userSettings.add(chem.STORAGE_NAME, chem.KEY, friendlyName);
this.sketcherType = chem.currentSketcherType;

@@ -491,0 +488,0 @@ if (!this.resized)

@@ -149,3 +149,31 @@ /** @enum {AGG} */

export declare enum VIEW_TYPE {
TABLE_VIEW = "TableView"
TABLE_VIEW = "TableView",
APPS = "apps",
SETTINGS = "settings",
WELCOME = "welcome",
SCRIPT = "script",
SKETCH = "sketch",
FORUM = "forum",
PROJECTS = "projects",
NOTEBOOKS = "notebooks",
HELP = "help",
OPEN_TEXT = "text",
DATABASES = "databases",
WEB_SERVICES = "webservices",
VIEW_LAYOUTS = "layouts",
FUNCTIONS = "functions",
DATA_CONNECTIONS = "connections",
DATA_JOB_RUNS = "jobs",
FILES = "files",
DATA_QUERY_RUNS = "queryruns",
EMAILS = "emails",
GROUPS = "groups",
MODELS = "models",
QUERIES = "queries",
SCRIPTS = "scripts",
USERS = "users",
PACKAGES = "packages",
PACKAGE_REPOSITORIES = "repositories",
JS_EDITOR = "js",
BROWSE = "browse"
}

@@ -497,2 +525,3 @@ /** @enum {SEMTYPE} */

export declare type ViewerType = `${VIEWER}` | string;
export declare type ViewType = `${VIEW_TYPE}` | string;
export declare type ObjectType = string;

@@ -523,2 +552,3 @@ export declare type ViewerPropertyType = string;

maxRows?: number;
doublePrecision?: boolean;
rowFilterTop?: number;

@@ -525,0 +555,0 @@ rowFilterProb?: number;

@@ -165,2 +165,30 @@ /** @enum {AGG} */

VIEW_TYPE['TABLE_VIEW'] = 'TableView';
VIEW_TYPE['APPS'] = 'apps';
VIEW_TYPE['SETTINGS'] = 'settings';
VIEW_TYPE['WELCOME'] = 'welcome';
VIEW_TYPE['SCRIPT'] = 'script';
VIEW_TYPE['SKETCH'] = 'sketch';
VIEW_TYPE['FORUM'] = 'forum';
VIEW_TYPE['PROJECTS'] = 'projects';
VIEW_TYPE['NOTEBOOKS'] = 'notebooks';
VIEW_TYPE['HELP'] = 'help';
VIEW_TYPE['OPEN_TEXT'] = 'text';
VIEW_TYPE['DATABASES'] = 'databases';
VIEW_TYPE['WEB_SERVICES'] = 'webservices';
VIEW_TYPE['VIEW_LAYOUTS'] = 'layouts';
VIEW_TYPE['FUNCTIONS'] = 'functions';
VIEW_TYPE['DATA_CONNECTIONS'] = 'connections';
VIEW_TYPE['DATA_JOB_RUNS'] = 'jobs';
VIEW_TYPE['FILES'] = 'files';
VIEW_TYPE['DATA_QUERY_RUNS'] = 'queryruns';
VIEW_TYPE['EMAILS'] = 'emails';
VIEW_TYPE['GROUPS'] = 'groups';
VIEW_TYPE['MODELS'] = 'models';
VIEW_TYPE['QUERIES'] = 'queries';
VIEW_TYPE['SCRIPTS'] = 'scripts';
VIEW_TYPE['USERS'] = 'users';
VIEW_TYPE['PACKAGES'] = 'packages';
VIEW_TYPE['PACKAGE_REPOSITORIES'] = 'repositories';
VIEW_TYPE['JS_EDITOR'] = 'js';
VIEW_TYPE['BROWSE'] = 'browse';
})(VIEW_TYPE || (VIEW_TYPE = {}));

@@ -167,0 +195,0 @@ ///////

@@ -79,4 +79,5 @@ import { DataFrame } from "./dataframe";

docker: DockerDataSource;
/** Users Data Storage API endpoint
* @type {UserDataStorage} */
/**
* @deprecated The UserDataStorage should not be used. Use {@link UserSettingsStorage} instead
*/
get userDataStorage(): UserDataStorage;

@@ -99,4 +100,5 @@ /** Users Files management API endpoint

* @param {Object} params
* @param {number} maxAge - forces server to send Cache-Control in response with configured max-age directive
* @returns `{Promise<Object>}` */
fetchProxy(url: string, params?: RequestInit): Promise<Response>;
fetchProxy(url: string, params?: RequestInit, maxAge?: number): Promise<Response>;
/** Administering API endpoint

@@ -329,2 +331,4 @@ * @type {AdminDataSource} */

shareFolder(e: DataConnection, path: string): Promise<DataConnection>;
getSchemas(e: DataConnection): Promise<string[]>;
getSchema(e: DataConnection, schemaName?: string | null): Promise<TableInfo[]>;
}

@@ -410,2 +414,3 @@ /**

/**
* @deprecated The UserDataStorage should not be used. Use {@link UserSettingsStorage} instead
* Functionality for working with remote Users Data Storage

@@ -621,3 +626,3 @@ * Remote storage allows to save key-value pairs on the Datagrok server for further use

* @returns {Promise} */
write(file: FileInfo | string, blob: number[]): Promise<void>;
write(file: FileInfo | string, blob?: number[]): Promise<void>;
/** Writes a text file.

@@ -624,0 +629,0 @@ * Sample: {@link https://public.datagrok.ai/js/samples/dapi/files}

@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { DataFrame } from './dataframe';
import { Group } from './entities';
import { Group, FileInfo } from './entities';
import { toJs, toDart } from './wrappers';

@@ -132,4 +132,5 @@ import { _propsToDart } from './utils';

}
/** Users Data Storage API endpoint
* @type {UserDataStorage} */
/**
* @deprecated The UserDataStorage should not be used. Use {@link UserSettingsStorage} instead
*/
get userDataStorage() {

@@ -172,11 +173,10 @@ return new UserDataStorage();

* @param {Object} params
* @param {number} maxAge - forces server to send Cache-Control in response with configured max-age directive
* @returns `{Promise<Object>}` */
fetchProxy(url, params) {
fetchProxy(url, params, maxAge) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
if (params == null)
params = {};
if (params.headers == null)
params.headers = {};
if (params.method == null)
params.method = 'GET';
params !== null && params !== void 0 ? params : (params = {});
(_a = params.headers) !== null && _a !== void 0 ? _a : (params.headers = {});
(_b = params.method) !== null && _b !== void 0 ? _b : (params.method = 'GET');
// @ts-ignore

@@ -186,3 +186,9 @@ params.headers['original-url'] = `${url}`;

params.headers['original-method'] = params.method;
params.method = 'POST';
if (maxAge) {
// @ts-ignore
params.headers['dg-cache-control'] = `max-age=${maxAge}`;
params.cache = 'default';
}
if (params.method !== 'GET')
params.method = 'POST';
return fetch(`${this.root}/connectors/proxy`, params);

@@ -510,2 +516,12 @@ });

}
getSchemas(e) {
return __awaiter(this, void 0, void 0, function* () {
return toJs(yield api.grok_DataConnectionsDataSource_Get_Schemas(this.dart, e.dart));
});
}
getSchema(e, schemaName = null) {
return __awaiter(this, void 0, void 0, function* () {
return toJs(yield api.grok_DataConnectionsDataSource_Get_Schema(this.dart, e.dart, schemaName !== null && schemaName !== void 0 ? schemaName : null));
});
}
}

@@ -623,2 +639,3 @@ /**

/**
* @deprecated The UserDataStorage should not be used. Use {@link UserSettingsStorage} instead
* Functionality for working with remote Users Data Storage

@@ -951,3 +968,5 @@ * Remote storage allows to save key-value pairs on the Datagrok server for further use

write(file, blob) {
return api.grok_Dapi_UserFiles_Write(file, blob);
if (!blob && ((file instanceof FileInfo && !file.data) || typeof file === 'string'))
throw new Error('blob parameter should be presented');
return api.grok_Dapi_UserFiles_Write(toDart(file), blob !== null && blob !== void 0 ? blob : file.data);
}

@@ -954,0 +973,0 @@ /** Writes a text file.

@@ -274,3 +274,3 @@ import { ColumnType, ScriptLanguage, SemType, Type, TYPE, USER_STATUS } from "./const";

export declare class TableQuery extends DataQuery {
/** @constructs TableQeury */
/** @constructs TableQuery */
constructor(dart: any);

@@ -437,5 +437,13 @@ /** Creates a TableQuery

export declare class ColumnInfo extends Entity {
tags: {
[key: string]: any;
};
/** @constructs ColumnInfo */
constructor(dart: any);
get type(): string;
/** Returns reference information if the column is referencing another column in another table */
get referenceInfo(): {
table: string;
column: string;
} | null;
}

@@ -728,4 +736,7 @@ /** @extends Entity

valueValidators?: ValueValidator<any>[];
/** Custom field caption shown in [PropertyGrid] */
/** Custom field caption shown in [PropertyGrid]
* @deprecated The property will be removed soon. Use {@link friendlyName} instead */
caption?: string;
/** Custom field friendly name shown in [PropertyGrid] */
friendlyName?: string;
/** Field postfix shown in [PropertyGrid]. [units] take precedence over the [postfix] value. */

@@ -736,2 +747,4 @@ postfix?: string;

tags?: any;
/** Filter for columns, can be numerical, categorical or directly a column type (string, int...) */
columnTypeFilter?: ColumnType | 'numerical' | 'categorical';
}

@@ -761,2 +774,3 @@ /**

get caption(): string;
set caption(s: string);
/** Property category */

@@ -768,2 +782,5 @@ get category(): string;

set propertyType(s: TYPE);
/** Applies to viewers properties whether to include the property in the layout or not. */
get includeInLayout(): boolean;
set includeInLayout(s: boolean);
/** Semantic type */

@@ -770,0 +787,0 @@ get semType(): SemType | string;

@@ -18,2 +18,3 @@ // noinspection JSUnusedGlobalSymbols

import dayjs from 'dayjs';
import { Tags } from '../dg';
const api = window;

@@ -302,3 +303,3 @@ /** @class

export class TableQuery extends DataQuery {
/** @constructs TableQeury */
/** @constructs TableQuery */
constructor(dart) { super(dart); }

@@ -501,4 +502,12 @@ /** Creates a TableQuery

super(dart);
this.tags = new MapProxy(api.grok_ColumnInfo_Get_Tags(this.dart), 'tags');
}
get type() { return toJs(api.grok_ColumnInfo_Get_Type(this.dart)); }
/** Returns reference information if the column is referencing another column in another table */
get referenceInfo() {
return this.tags[Tags.ReferencesTable] && this.tags[Tags.ReferencesColumn] ? {
table: this.tags[Tags.ReferencesTable],
column: this.tags[Tags.ReferencesColumn]
} : null;
}
}

@@ -891,2 +900,3 @@ /** @extends Entity

get caption() { return api.grok_Property_Get_Caption(this.dart); }
set caption(s) { api.grok_Property_Set_Caption(this.dart, s); }
/** Property category */

@@ -898,2 +908,5 @@ get category() { return api.grok_Property_Get_Category(this.dart); }

set propertyType(s) { api.grok_Property_Set_PropertyType(this.dart, s); }
/** Applies to viewers properties whether to include the property in the layout or not. */
get includeInLayout() { return api.grok_Property_Get_IncludeInLayout(this.dart); }
set includeInLayout(s) { api.grok_Property_Set_IncludeInLayout(this.dart, s); }
/** Semantic type */

@@ -983,6 +996,3 @@ get semType() { return api.grok_Property_Get_SemType(this.dart); }

static registerAttachedProperty(typeName, property) {
throw 'Not implemented';
// Andrew: looks like my commit got lost somewhere :(
// Will need to bring it back, it was a nice feature
// api.grok_Property_RegisterAttachedProperty(typeName, property.dart);
api.grok_Property_RegisterAttachedProperty(typeName, property.dart);
}

@@ -989,0 +999,0 @@ }

@@ -6,2 +6,3 @@ import { Type } from "./const";

import dayjs from "dayjs";
import { ViewBase } from "./views/view";
export interface IFunctionRegistrationData {

@@ -153,2 +154,4 @@ signature: string;

}): Promise<InputBase[]>;
/** Returns views with result. Should be called on succeeded FuncCall **/
getResultViews(): ViewBase[];
/** Makes a shallow copy. */

@@ -155,0 +158,0 @@ clone(): FuncCall;

@@ -284,2 +284,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
/** Returns views with result. Should be called on succeeded FuncCall **/
getResultViews() {
return toJs(api.grok_FuncCall_GetOutputViews(this.dart));
}
/** Makes a shallow copy. */

@@ -286,0 +290,0 @@ clone() { return api.grok_FuncCall_Clone(this.dart); }

@@ -251,2 +251,6 @@ export interface IScatterPlot3dSettings {

labelColorAsMarker: boolean;
showMarkerLabels: keyof typeof VisibilityMode;
labelCircleRadius: number;
extraLabels: string;
extraLabelsColumnName: string;
showRegressionLine: boolean;

@@ -522,2 +526,3 @@ showRegressionLineEquation: boolean;

export interface IDensityPlotSettings {
binShape: string;
x: string;

@@ -529,2 +534,6 @@ xColumnName: string;

axisFont: string;
showNumericalLegend: boolean;
invertColorScheme: boolean;
colorTransformType: keyof typeof AxisType;
linearColorScheme: Array<number>;
showXAxis: boolean;

@@ -556,8 +565,8 @@ showYAxis: boolean;

export interface IBoxPlotSettings {
categoryColumnNames: Array<string>;
showStatistics: boolean;
category: string;
categoryColumnName: string;
showCategoryAxis: boolean;
showCategorySelector: boolean;
labelOrientation: keyof typeof TextOrientation;
showMinorCategories: boolean;
value: string;

@@ -569,2 +578,3 @@ valueColumnName: string;

showValueSelector: boolean;
showEmptyCategories: boolean;
binColor: string;

@@ -606,3 +616,2 @@ binColorColumnName: string;

whiskerWidthRatio: number;
maxBinWidth: number;
axisUseColumnFormat: boolean;

@@ -1036,2 +1045,3 @@ bins: number;

showTooltip: boolean;
ignoreDoubleClick: boolean;
backColor: number;

@@ -1038,0 +1048,0 @@ rowSource: keyof typeof RowSet;

@@ -55,6 +55,8 @@ /** EXPERIMENTAL - USE AT YOUR OWN RISK - API might change */

next() {
this.currentPage = this.pages[this.pageIndex + 1];
this._updateButtonStates();
if (this.pageIndex + 1 < this.pages.length) {
this.currentPage = this.pages[this.pageIndex + 1];
this._updateButtonStates();
}
}
}
//# sourceMappingURL=wizard.js.map

@@ -1,4 +0,6 @@

import { MARKER_TYPE } from "./const";
import { Point, Rect } from "./grid";
import * as rxjs from "rxjs";
import { MARKER_TYPE, ViewerType } from './const';
import { Point, Rect } from './grid';
import * as rxjs from 'rxjs';
import { DataFrame } from './dataframe';
import { TableView } from './views/view';
declare global {

@@ -198,2 +200,3 @@ interface CanvasRenderingContext2D {

export declare function format(x: number, format?: string): string;
export declare function delay(ms: number): Promise<void>;
/** Autotest-related helpers */

@@ -216,3 +219,13 @@ export declare namespace Test {

function getInputTestDataGeneratorByType(inputType: string): any;
function testViewerProperties(df: DataFrame, viewerType: ViewerType, properties: {
[key: string]: any;
}): Promise<TableView>;
function testViewer(viewerType: ViewerType): Promise<void>;
}
export declare class Completer<T> {
readonly promise: Promise<T>;
complete: (value: (PromiseLike<T> | T)) => void;
reject: (reason?: any) => void;
constructor();
}
//# sourceMappingURL=utils.d.ts.map

@@ -15,2 +15,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { StreamSubscription } from './events';
import { TableView } from './views/view';
const api = window;

@@ -602,2 +603,8 @@ HTMLCanvasElement.prototype.g2 = function () { return this.getContext('2d'); };

}
/* Waits [ms] milliseconds */
export function delay(ms) {
return __awaiter(this, void 0, void 0, function* () {
yield new Promise((r) => setTimeout(r, ms));
});
}
/** Autotest-related helpers */

@@ -627,3 +634,30 @@ export var Test;

Test.getInputTestDataGeneratorByType = getInputTestDataGeneratorByType;
function testViewerProperties(df, viewerType, properties) {
return __awaiter(this, void 0, void 0, function* () {
const tv = TableView.create(df, true);
const viewer = tv.addViewer(viewerType);
viewer.setOptions(properties);
yield delay(1000);
return tv;
});
}
Test.testViewerProperties = testViewerProperties;
function testViewer(viewerType) {
return __awaiter(this, void 0, void 0, function* () {
yield api.grok_Test_RunViewerTest(viewerType);
});
}
Test.testViewer = testViewer;
})(Test || (Test = {}));
// Completer class based on https://stackoverflow.com/a/67007151
export class Completer {
constructor() {
this.complete = (_) => { };
this.reject = (_) => { };
this.promise = new Promise((resolve, reject) => {
this.complete = resolve;
this.reject = reject;
});
}
}
//# sourceMappingURL=utils.js.map

@@ -263,2 +263,4 @@ /** A viewer that is typically docked inside a [TableView]. */

getRowTooltip(rowIdx: number): HTMLDivElement;
getMarkerSize(rowIdx: number): number;
getMarkerType(rowIdx: number): string;
get onZoomed(): rxjs.Observable<Rect>;

@@ -270,2 +272,3 @@ get onResetView(): rxjs.Observable<null>;

get onPointClicked(): rxjs.Observable<EventData<RowDataArgs>>;
get onPointDoubleClicked(): rxjs.Observable<EventData<RowDataArgs>>;
}

@@ -272,0 +275,0 @@ export declare class HistogramViewer extends Viewer<interfaces.IHistogramSettings> {

@@ -393,2 +393,4 @@ /** A viewer that is typically docked inside a [TableView]. */

getRowTooltip(rowIdx) { return api.grok_ScatterPlotViewer_GetRowTooltip(this.dart, rowIdx); }
getMarkerSize(rowIdx) { return api.grok_ScatterPlotViewer_GetMarkerSize(this.dart, rowIdx); }
getMarkerType(rowIdx) { return api.grok_ScatterPlotViewer_GetMarkerType(this.dart, rowIdx); }
get onZoomed() { return this.onEvent('d4-scatterplot-zoomed'); }

@@ -400,2 +402,3 @@ get onResetView() { return this.onEvent('d4-scatterplot-reset-view'); }

get onPointClicked() { return this.onEvent('d4-scatterplot-point-click'); }
get onPointDoubleClicked() { return this.onEvent('d4-scatterplot-point-double-click'); }
}

@@ -402,0 +405,0 @@ export class HistogramViewer extends Viewer {

@@ -1,2 +0,2 @@

import { ViewerType } from '../const';
import { ViewerType, ViewType } from '../const';
import { DataFrame } from '../dataframe.js';

@@ -117,3 +117,3 @@ import { FilterGroup, ScatterPlotViewer, Viewer } from '../viewer';

/** Creates one of the standard views based on the view type (such as 'functions') */
static createByType(viewType: string, options?: any): View;
static createByType(viewType: ViewType | string, options?: any): View;
get root(): HTMLElement;

@@ -172,2 +172,3 @@ get type(): string;

static readonly JS_EDITOR = "js";
static readonly BROWSE = "browse";
static readonly ALL_VIEW_TYPES: string[];

@@ -174,0 +175,0 @@ }

@@ -266,2 +266,3 @@ import { VIEW_TYPE, VIEWER } from '../const';

View.JS_EDITOR = 'js';
View.BROWSE = 'browse';
View.ALL_VIEW_TYPES = [View.APPS, View.SETTINGS, View.WELCOME, View.SCRIPT, View.SKETCH,

@@ -271,3 +272,3 @@ View.FORUM, View.PROJECTS, View.NOTEBOOKS, View.HELP, View.OPEN_TEXT, View.DATABASES,

View.FILES, View.DATA_QUERY_RUNS, View.EMAILS, View.GROUPS, View.MODELS, View.QUERIES,
View.SCRIPTS, View.USERS, View.PACKAGES, View.PACKAGE_REPOSITORIES, View.JS_EDITOR];
View.SCRIPTS, View.USERS, View.PACKAGES, View.PACKAGE_REPOSITORIES, View.JS_EDITOR, View.BROWSE];
/**

@@ -274,0 +275,0 @@ * A {@link View} that is associated with a {@link DataFrame} and exposes

@@ -329,2 +329,7 @@ import { EventData, InputArgs, StreamSubscription } from "./events";

/**
* Sets the OK button handler and returns a promise of the handler callback.
* @param {Function} handler
* @returns {Promise} */
awaitOnOK<T = any>(handler: () => Promise<T>): Promise<T>;
/**
* Sets the CANCEL button handler

@@ -550,5 +555,5 @@ * @param {Function} handler

/** Occurs when [value] is changed, either by user or programmatically. */
onChanged(callback: Function): StreamSubscription;
get onChanged(): Observable<T>;
/** Occurs when [value] is changed by user. */
onInput(callback: Function): StreamSubscription;
get onInput(): Observable<Event>;
/** Saves the value. Used in dialog history. See also {@link load} */

@@ -771,2 +776,3 @@ save(): any;

get text(): string;
set text(value: string);
get tag(): any;

@@ -805,3 +811,3 @@ set tag(t: any);

/** Adds new group */
group(text: string | Element, value?: object | null, expanded?: boolean): TreeViewGroup;
group(text: string | Element, value?: object | null, expanded?: boolean, index?: number | null): TreeViewGroup;
/** Returns existing, or creates a new node group */

@@ -808,0 +814,0 @@ getOrCreateGroup(text: string, value?: object | null, expanded?: boolean): TreeViewGroup;

@@ -9,3 +9,2 @@ /**

import { Accordion, Dialog, InputBase, TabControl, TreeViewGroup, Widget, RangeSlider, RangeSliderStyle, DateInput, fileShares, SliderOptions, Breadcrumbs, DropDown, TypeAhead, TypeAheadConfig, TagsInput, ChoiceInput, CodeInput, CodeConfig, MarkdownInput, TagsInputConfig } from './src/widgets';
import { StreamSubscription } from './src/events';
import * as rxjs from 'rxjs';

@@ -266,3 +265,3 @@ import { CanvasRenderer, GridCellRenderer, SemanticValue } from './src/grid';

}): void;
export declare function bindInputs(inputs: InputBase[]): StreamSubscription[];
export declare function bindInputs(inputs: InputBase[]): rxjs.Subscription[];
export declare function inputs(inputs: Iterable<InputBase>, options?: any): HTMLElement;

@@ -285,3 +284,3 @@ /** Creates new nodes tree.

onCreated?: (input: InputBase<T>) => void;
onValueChanged?: (input: InputBase<T>) => void;
onValueChanged?: (value: T) => void;
}

@@ -318,2 +317,6 @@ export interface INumberInputInitOptions<T> extends IInputInitOptions<T> {

}
/** Set the table specifically for the column input */
export function setColumnInputTable(input: InputBase, table: DataFrame, filter?: Function): void;
/** Set the table specifically for the columns input */
export function setColumnsInputTable(input: InputBase, table: DataFrame, filter?: Function): void;
/** Creates input for the specified property, and optionally binds it to the specified object */

@@ -320,0 +323,0 @@ export function forProperty(property: Property, source?: any, options?: IInputInitOptions): InputBase;

@@ -5,3 +5,3 @@ const path = require('path');

mode: 'development',
entry: {'grok': './grok.ts', 'ui': './ui.ts', 'DG': './dg.ts'},
entry: {'DG': './dg.ts'},
devtool: 'source-map',

@@ -61,15 +61,4 @@ resolve: {

plugins: [],
optimization: {
splitChunks: {
cacheGroups: {
api: {
chunks: 'initial',
name: 'common',
enforce: true
}
}
}
},
output: {
filename: 'js-api-[name].js',
filename: 'js-api.js',
library: '[name]',

@@ -76,0 +65,0 @@ libraryTarget: 'var',

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

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

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 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 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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc