datagrok-api
Advanced tools
Comparing version 1.22.2 to 1.23.0-rc.14ac408f21b.e37758f38e0d
{ | ||
"name": "datagrok-api", | ||
"version": "1.22.2", | ||
"version": "1.23.0-rc.14ac408f21b.e37758f38e0d", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -108,2 +108,3 @@ export declare function histogram(col: any, bitset: any, flag: boolean, options?: { | ||
static CalculatedColumnsSubscribed: string; | ||
static ShowPropPanels: string; | ||
} | ||
@@ -121,2 +122,3 @@ export declare class FuncOptions { | ||
static DemoPath: string; | ||
static BrowseOnly: string; | ||
static BrowsePath: string; | ||
@@ -123,0 +125,0 @@ static ViewerPath: string; |
@@ -137,2 +137,4 @@ /// this file was generated automatically from ddt classes declarations | ||
Tags.CalculatedColumnsSubscribed = '.calculatedColumnsSubscribed'; | ||
/// Boolean flag that allows not to show property panel for the cell/column | ||
Tags.ShowPropPanels = '.show-prop-panels'; | ||
export class FuncOptions { | ||
@@ -162,2 +164,5 @@ } | ||
FuncOptions.DemoPath = 'demoPath'; | ||
/// When set to 'true', the app operates in 'browseOnly' mode, using the browse tree for navigation | ||
/// and displaying results only within the browse view | ||
FuncOptions.BrowseOnly = 'browseOnly'; | ||
/// Path in the browse tree, such as 'Oligo' | ||
@@ -164,0 +169,0 @@ FuncOptions.BrowsePath = 'browsePath'; |
@@ -40,4 +40,4 @@ export interface SettingsInterface { | ||
allowEventScripts: boolean; | ||
autoReportExtendedLogs: boolean; | ||
enableConnectionIndexFiles: boolean; | ||
enableScatterPlotWebGPUAcceleration: boolean; | ||
dateFormat: string; | ||
@@ -56,3 +56,4 @@ integerNumberFormat: string; | ||
dataFrameBatchSize: number; | ||
autoReportErrors: boolean; | ||
} | ||
//# sourceMappingURL=xamgle.api.g.d.ts.map |
@@ -436,9 +436,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (extractors == null) { | ||
grok.dapi.functions.filter('options.role="converter"').list() | ||
.then((res) => { | ||
extractors = res.filter(it => it.outputs.filter(o => o.semType == SEMTYPE.MOLECULE).length); | ||
}) | ||
.catch((_) => { | ||
extractors = []; | ||
}); | ||
try { | ||
extractors = Func.find({ meta: { role: 'converter' } }).filter(it => it.outputs.filter(o => o.semType == SEMTYPE.MOLECULE).length); | ||
} | ||
catch (_a) { | ||
extractors = []; | ||
} | ||
} | ||
@@ -459,4 +458,5 @@ const applyInput = (e) => { | ||
const text = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/plain'); | ||
if (text != null && isMolBlock(text)) { | ||
e.preventDefault(); | ||
if (text != null && (isMolBlock(text) || checkSmiles(text))) { | ||
if (isMolBlock(text)) | ||
e.preventDefault(); | ||
this.setValue(text); | ||
@@ -467,3 +467,3 @@ } | ||
var _a, _b, _c; | ||
const menuHost = ui.div([], { style: { position: 'fixed', 'z-index': 100 } }); | ||
const menuHost = ui.div([], { style: { position: 'fixed', zIndex: '100' } }); | ||
(_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.prepend(menuHost); | ||
@@ -470,0 +470,0 @@ Menu.popup() |
@@ -178,3 +178,4 @@ /** @enum {AGG} */ | ||
JS_EDITOR = "js", | ||
BROWSE = "browse" | ||
BROWSE = "browse", | ||
HOME = "datagrok" | ||
} | ||
@@ -563,6 +564,7 @@ /** @enum {SEMTYPE} */ | ||
export declare type ScriptingLanguage = `${SCRIPT_LANGUAGE}`; | ||
declare type CSSProperties = Partial<Record<keyof CSSStyleDeclaration, string>>; | ||
export declare type ElementOptions = { | ||
id?: string; | ||
classes?: string; | ||
style?: object; | ||
style?: CSSProperties; | ||
processNode?: (node: HTMLElement) => void; | ||
@@ -588,2 +590,3 @@ onClick?: (event: PointerEvent) => void; | ||
} | ||
export {}; | ||
//# sourceMappingURL=const.d.ts.map |
@@ -194,2 +194,3 @@ /** @enum {AGG} */ | ||
VIEW_TYPE['BROWSE'] = 'browse'; | ||
VIEW_TYPE['HOME'] = 'datagrok'; | ||
})(VIEW_TYPE || (VIEW_TYPE = {})); | ||
@@ -196,0 +197,0 @@ /////// |
@@ -721,3 +721,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.first() | ||
.then(p => p.open(options)); | ||
.then(p => { | ||
if (p) | ||
return p.open(options); | ||
return Promise.reject(`Project ${name} not found`); | ||
}); | ||
} | ||
@@ -724,0 +728,0 @@ /** Saves the Project */ |
import { Column, DataFrame } from "./dataframe"; | ||
import { FuncCall } from "./functions"; | ||
import { CsvImportOptions, DemoDatasetName, JoinType, StringPredicate, SyncType } from "./const"; | ||
import { TableQueryBuilder } from "./entities"; | ||
/** Provides convenient file shares access **/ | ||
@@ -69,2 +70,8 @@ export declare class Files { | ||
query(connectionId: string, sql: string): Promise<DataFrame>; | ||
/** | ||
* Creates {@link TableQueryBuilder} that can be used to construct sql queries. | ||
* @param connectionId - fully-qualified connection name (see [nqName]) | ||
* @param tableName - database table name | ||
*/ | ||
buildQuery(connectionId: string, tableName: string): TableQueryBuilder; | ||
} | ||
@@ -71,0 +78,0 @@ /** |
@@ -14,2 +14,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { JOIN_TYPE, TYPE } from './const'; | ||
import { TableQueryBuilder } from './entities'; | ||
const api = window; | ||
@@ -107,2 +108,10 @@ /** Provides convenient file shares access **/ | ||
} | ||
/** | ||
* Creates {@link TableQueryBuilder} that can be used to construct sql queries. | ||
* @param connectionId - fully-qualified connection name (see [nqName]) | ||
* @param tableName - database table name | ||
*/ | ||
buildQuery(connectionId, tableName) { | ||
return TableQueryBuilder.from(tableName, connectionId); | ||
} | ||
} | ||
@@ -109,0 +118,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ColumnType, ScriptingLanguage, SemType, Type, TYPE, USER_STATUS } from "./const"; | ||
import { AggregationType, ColumnType, JoinType, ScriptingLanguage, SemType, Type, TYPE, USER_STATUS } from "./const"; | ||
import { FuncCall } from "./functions"; | ||
@@ -318,4 +318,5 @@ import { FileSource } from "./dapi"; | ||
* @param {string} table - Table name | ||
* @param connection - {@link DataConnection} that {@link TableQuery} will use after the build. Can be passed lately directly to {@link TableQuery}. | ||
* @returns {TableQueryBuilder} */ | ||
static from(table: string): TableQueryBuilder; | ||
static from(table: string, connection?: DataConnection | string): TableQueryBuilder; | ||
/** Creates {@link TableQueryBuilder} from {@link TableInfo} | ||
@@ -328,6 +329,101 @@ * @param {TableInfo} table - TableInfo object | ||
selectAll(): TableQueryBuilder; | ||
/** Selects specified fields of the table | ||
/** Selects specified fields of the table. All fields will be selected if not provided. | ||
* @param {string[]} fields - Array of fields to select | ||
* @returns {TableQueryBuilder} */ | ||
select(fields: string[]): TableQueryBuilder; | ||
/** | ||
* Performs aggregation | ||
* @param {AggregationType} type - Aggregation type. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
selectAggr(type: AggregationType, field: string | null, fieldAlias: string | null): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that calculates average value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
avg(field: string, fieldAlias?: string | null): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that calculates minimum value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
min(field: string, fieldAlias?: string | null): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that calculates maximum value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
max(field: string, fieldAlias?: string | null): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that calculates sum of the values for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
sum(field: string, fieldAlias?: string | null): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that counts rows. Equivalent to count(*). | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is count. | ||
*/ | ||
count(fieldAlias?: string): TableQueryBuilder; | ||
/** Adds an aggregation that counts rows for the specified column. Equivalent to count(field). | ||
* @param field - Column name. | ||
* @param fieldAlias Name of the resulting column. Default value is count. | ||
* @returns {GroupByBuilder} */ | ||
valueCount(field: string, fieldAlias?: string): TableQueryBuilder; | ||
/** | ||
* Adds an aggregation that counts rows with null values | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
nulls(field: string, fieldAlias?: string | null): TableQueryBuilder; | ||
/** | ||
* Performs join operation of main table or table specified in {@link leftTable} to table specified in {@link rightTable}. | ||
* Specify joining fields of the main table (or table specified in {@link leftTable}) in {@link leftTableKeys} and joining fields of {@link rightTable} | ||
* in {@Link rightTableKeys}. | ||
* @param rightTable {string} | ||
* @param joinType {JoinType} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param rightTableAlias {string} - use to specify desired alias for the joining table and apply this alias to fields specified in {@link select}. | ||
* @param leftTable {string} | ||
*/ | ||
join(rightTable: string, joinType: JoinType, leftTableKeys: string[], rightTableKeys: string[], rightTableAlias?: string, leftTable?: string): TableQueryBuilder; | ||
/** | ||
* Performs left join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
leftJoin(rightTable: string, leftTableKeys: string[], rightTableKeys: string[], rightTableAlias?: string, leftTable?: string): TableQueryBuilder; | ||
/** | ||
* Performs right join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
rightJoin(rightTable: string, leftTableKeys: string[], rightTableKeys: string[], rightTableAlias?: string, leftTable?: string): TableQueryBuilder; | ||
/** | ||
* Performs inner join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
innerJoin(rightTable: string, leftTableKeys: string[], rightTableKeys: string[], rightTableAlias?: string, leftTable?: string): TableQueryBuilder; | ||
/** | ||
* Performs outer join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
outerJoin(rightTable: string, leftTableKeys: string[], rightTableKeys: string[], rightTableAlias?: string, leftTable?: string): TableQueryBuilder; | ||
/** Groups rows that have the same values into summary values | ||
@@ -342,7 +438,14 @@ * @param {string[]} fields - Array of fields to group by | ||
pivotOn(fields: string[]): TableQueryBuilder; | ||
/** Adds a where clause to the query | ||
* @param {string} field - Field name | ||
/** Adds a where clause to the query. | ||
* @param {string} field - Field name. If you join to other tables use correct alias or table name as prefix, e.g. <table alias>.<field> | ||
* @param {string} pattern - Pattern to test field values against | ||
* @param columnType Should be provided, if this builder wasn't created from {@link TableInfo} or alias is used. Defaults to {@link TYPE.STRING} | ||
* @returns {TableQueryBuilder} */ | ||
where(field: string, pattern: string): TableQueryBuilder; | ||
where(field: string, pattern: string, columnType?: Type): TableQueryBuilder; | ||
/** Adds a having clause to the query. Use only with {@link groupBy} | ||
* @param {string} field - Field name. If you join to other tables use correct alias or table name as prefix, e.g. <table alias>.<field> | ||
* @param {string} pattern - Pattern to test field values against | ||
* @param columnType Should be provided, if this builder wasn't created from {@link TableInfo} or alias is used. Defaults to {@link TYPE.STRING} | ||
* @returns {TableQueryBuilder} */ | ||
having(field: string, pattern: string, columnType?: Type): TableQueryBuilder; | ||
/** Sorts results in ascending or descending order | ||
@@ -378,2 +481,3 @@ * @param {string} field - Field to sort based on | ||
get credentials(): Credentials; | ||
get dataSource(): string; | ||
/** Collection of parameters: server, database, endpoint, etc. */ | ||
@@ -389,2 +493,4 @@ /** Tests the connection, returns "ok" on success or an error message on error | ||
query(name: string, sql: string): DataQuery; | ||
buildQuery(table: string): TableQueryBuilder; | ||
tableQuery(tableName: string): TableQuery; | ||
/** Creates a data connection. Note that in order to be used, it has to be saved first using {@link DataConnectionsDataSource} | ||
@@ -690,11 +796,15 @@ * @param {string} name - Connection name | ||
/** | ||
* Deprecated. Use getSettings instead. | ||
* Returns properties for a package. | ||
*/ | ||
* @deprecated The {@link getProperties} should not be used. Use {@link settings} instead | ||
*/ | ||
getProperties(): Promise<any>; | ||
/** | ||
* @deprecated The {@link getSettings} should not be used. Use {@link settings} instead | ||
*/ | ||
getSettings(): Promise<Map<string, any>>; | ||
/** Returns settings for a package. */ | ||
getSettings(): Promise<Map<string, any>>; | ||
get settings(): { | ||
[index: string]: any; | ||
}; | ||
/** Updates settings for a package. */ | ||
setSettings(props: Map<string, any>, group: Group): Promise<void>; | ||
private _files; | ||
/** Global application data */ | ||
@@ -701,0 +811,0 @@ get files(): FileSource; |
@@ -11,3 +11,3 @@ // noinspection JSUnusedGlobalSymbols | ||
}; | ||
import { TYPE } from './const'; | ||
import { AGG, JOIN_TYPE, TYPE } from './const'; | ||
import { toDart, toJs } from './wrappers'; | ||
@@ -350,4 +350,8 @@ import { FileSource } from './dapi'; | ||
* @param {string} table - Table name | ||
* @param connection - {@link DataConnection} that {@link TableQuery} will use after the build. Can be passed lately directly to {@link TableQuery}. | ||
* @returns {TableQueryBuilder} */ | ||
static from(table) { return toJs(api.grok_DbTableQueryBuilder_From(table)); } | ||
static from(table, connection) { | ||
let conn = connection === undefined ? connection : connection instanceof DataConnection ? connection.dart : connection; | ||
return toJs(api.grok_DbTableQueryBuilder_From(table, conn)); | ||
} | ||
/** Creates {@link TableQueryBuilder} from {@link TableInfo} | ||
@@ -362,6 +366,127 @@ * @param {TableInfo} table - TableInfo object | ||
selectAll() { return toJs(api.grok_DbTableQueryBuilder_SelectAll(this.dart)); } | ||
/** Selects specified fields of the table | ||
/** Selects specified fields of the table. All fields will be selected if not provided. | ||
* @param {string[]} fields - Array of fields to select | ||
* @returns {TableQueryBuilder} */ | ||
select(fields) { return toJs(api.grok_DbTableQueryBuilder_Select(this.dart, fields)); } | ||
/** | ||
* Performs aggregation | ||
* @param {AggregationType} type - Aggregation type. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
selectAggr(type, field, fieldAlias) { | ||
return toJs(api.grok_DbTableQueryBuilder_SelectAggr(this.dart, type, field, fieldAlias)); | ||
} | ||
/** | ||
* Adds an aggregation that calculates average value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
avg(field, fieldAlias = 'avg') { | ||
return this.selectAggr(AGG.AVG, field, fieldAlias); | ||
} | ||
/** | ||
* Adds an aggregation that calculates minimum value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
min(field, fieldAlias = 'min') { | ||
return this.selectAggr(AGG.MIN, field, fieldAlias); | ||
} | ||
/** | ||
* Adds an aggregation that calculates maximum value for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
max(field, fieldAlias = 'max') { | ||
return this.selectAggr(AGG.MAX, field, fieldAlias); | ||
} | ||
/** | ||
* Adds an aggregation that calculates sum of the values for the specified column. | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
sum(field, fieldAlias = 'sum') { | ||
return this.selectAggr(AGG.SUM, field, fieldAlias); | ||
} | ||
/** | ||
* Adds an aggregation that counts rows. Equivalent to count(*). | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is count. | ||
*/ | ||
count(fieldAlias = 'count') { | ||
return this.selectAggr(AGG.TOTAL_COUNT, null, fieldAlias); | ||
} | ||
/** Adds an aggregation that counts rows for the specified column. Equivalent to count(field). | ||
* @param field - Column name. | ||
* @param fieldAlias Name of the resulting column. Default value is count. | ||
* @returns {GroupByBuilder} */ | ||
valueCount(field, fieldAlias = 'count') { | ||
return this.selectAggr(AGG.VALUE_COUNT, field, fieldAlias); | ||
} | ||
/** | ||
* Adds an aggregation that counts rows with null values | ||
* @param {string} field - Column name. | ||
* @param {string} fieldAlias - Name of the resulting column. Default value is agg(colName). | ||
*/ | ||
nulls(field, fieldAlias = 'nulls') { | ||
return this.selectAggr(AGG.MISSING_VALUE_COUNT, field, fieldAlias); | ||
} | ||
/** | ||
* Performs join operation of main table or table specified in {@link leftTable} to table specified in {@link rightTable}. | ||
* Specify joining fields of the main table (or table specified in {@link leftTable}) in {@link leftTableKeys} and joining fields of {@link rightTable} | ||
* in {@Link rightTableKeys}. | ||
* @param rightTable {string} | ||
* @param joinType {JoinType} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param rightTableAlias {string} - use to specify desired alias for the joining table and apply this alias to fields specified in {@link select}. | ||
* @param leftTable {string} | ||
*/ | ||
join(rightTable, joinType, leftTableKeys, rightTableKeys, rightTableAlias, leftTable) { | ||
return toJs(api.grok_DbTableQueryBuilder_Join(this.dart, rightTable, joinType, leftTableKeys, rightTableKeys, rightTableAlias !== null && rightTableAlias !== void 0 ? rightTableAlias : null, leftTable !== null && leftTable !== void 0 ? leftTable : null)); | ||
} | ||
/** | ||
* Performs left join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
leftJoin(rightTable, leftTableKeys, rightTableKeys, rightTableAlias, leftTable) { | ||
return this.join(rightTable, JOIN_TYPE.LEFT, leftTableKeys, rightTableKeys, leftTable); | ||
} | ||
/** | ||
* Performs right join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
rightJoin(rightTable, leftTableKeys, rightTableKeys, rightTableAlias, leftTable) { | ||
return this.join(rightTable, JOIN_TYPE.RIGHT, leftTableKeys, rightTableKeys, leftTable); | ||
} | ||
/** | ||
* Performs inner join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
innerJoin(rightTable, leftTableKeys, rightTableKeys, rightTableAlias, leftTable) { | ||
return this.join(rightTable, JOIN_TYPE.INNER, leftTableKeys, rightTableKeys, leftTable); | ||
} | ||
/** | ||
* Performs outer join operation. | ||
* @param rightTable {string} | ||
* @param rightTableAlias {string} | ||
* @param leftTableKeys {string[]} | ||
* @param rightTableKeys {string[]} | ||
* @param leftTable {string} | ||
*/ | ||
outerJoin(rightTable, leftTableKeys, rightTableKeys, rightTableAlias, leftTable) { | ||
return this.join(rightTable, JOIN_TYPE.OUTER, leftTableKeys, rightTableKeys, leftTable); | ||
} | ||
/** Groups rows that have the same values into summary values | ||
@@ -380,9 +505,18 @@ * @param {string[]} fields - Array of fields to group by | ||
} | ||
/** Adds a where clause to the query | ||
* @param {string} field - Field name | ||
/** Adds a where clause to the query. | ||
* @param {string} field - Field name. If you join to other tables use correct alias or table name as prefix, e.g. <table alias>.<field> | ||
* @param {string} pattern - Pattern to test field values against | ||
* @param columnType Should be provided, if this builder wasn't created from {@link TableInfo} or alias is used. Defaults to {@link TYPE.STRING} | ||
* @returns {TableQueryBuilder} */ | ||
where(field, pattern) { | ||
return toJs(api.grok_DbTableQueryBuilder_Where(this.dart, field, pattern)); | ||
where(field, pattern, columnType) { | ||
return toJs(api.grok_DbTableQueryBuilder_Where(this.dart, field, pattern, columnType !== null && columnType !== void 0 ? columnType : null)); | ||
} | ||
/** Adds a having clause to the query. Use only with {@link groupBy} | ||
* @param {string} field - Field name. If you join to other tables use correct alias or table name as prefix, e.g. <table alias>.<field> | ||
* @param {string} pattern - Pattern to test field values against | ||
* @param columnType Should be provided, if this builder wasn't created from {@link TableInfo} or alias is used. Defaults to {@link TYPE.STRING} | ||
* @returns {TableQueryBuilder} */ | ||
having(field, pattern, columnType) { | ||
return toJs(api.grok_DbTableQueryBuilder_Having(this.dart, field, pattern, columnType !== null && columnType !== void 0 ? columnType : null)); | ||
} | ||
/** Sorts results in ascending or descending order | ||
@@ -426,2 +560,5 @@ * @param {string} field - Field to sort based on | ||
} | ||
get dataSource() { | ||
return api.grok_DataConnection_Get_DataSource(this.dart); | ||
} | ||
/** Collection of parameters: server, database, endpoint, etc. */ | ||
@@ -442,2 +579,8 @@ // get parameters(): DataConnectionParams { return api.grok_DataConnection_Parameters(this.dart); } | ||
} | ||
buildQuery(table) { | ||
return TableQueryBuilder.from(table, this); | ||
} | ||
tableQuery(tableName) { | ||
return toJs(api.grok_TableQuery_Create(this.dart)); | ||
} | ||
/** Creates a data connection. Note that in order to be used, it has to be saved first using {@link DataConnectionsDataSource} | ||
@@ -766,3 +909,2 @@ * @param {string} name - Connection name | ||
this._name = ''; | ||
this._files = null; | ||
if (typeof dart === 'string') { | ||
@@ -850,12 +992,17 @@ this._webRoot = dart; | ||
/** | ||
* Deprecated. Use getSettings instead. | ||
* Returns properties for a package. | ||
*/ | ||
* @deprecated The {@link getProperties} should not be used. Use {@link settings} instead | ||
*/ | ||
getProperties() { | ||
return this.getSettings(); | ||
} | ||
/** Returns settings for a package. */ | ||
/** | ||
* @deprecated The {@link getSettings} should not be used. Use {@link settings} instead | ||
*/ | ||
getSettings() { | ||
return api.grok_Package_Get_Settings(this.name); | ||
} | ||
/** Returns settings for a package. */ | ||
get settings() { | ||
return api.grok_Package_Get_Settings_Sync(this.name); | ||
} | ||
/** Updates settings for a package. */ | ||
@@ -867,5 +1014,3 @@ setSettings(props, group) { | ||
get files() { | ||
if (this._files == null) | ||
this._files = new FileSource(`System:AppData/${this.name}`); | ||
return this._files; | ||
return new FileSource(`System:AppData/${this.name}`); | ||
} | ||
@@ -948,4 +1093,4 @@ getTests(core = false) { | ||
/** Default value */ | ||
get defaultValue() { return api.grok_Property_Get_DefaultValue(this.dart); } | ||
set defaultValue(s) { api.grok_Property_Set_DefaultValue(this.dart, s); } | ||
get defaultValue() { return toJs(api.grok_Property_Get_DefaultValue(this.dart)); } | ||
set defaultValue(s) { api.grok_Property_Set_DefaultValue(this.dart, toDart(s)); } | ||
/** Property editor */ | ||
@@ -989,3 +1134,3 @@ get editor() { return api.grok_Property_Get(this.dart, 'editor'); } | ||
static create(name, type, getter, setter, defaultValue = null) { | ||
return new Property(api.grok_Property(name, type, getter, setter, defaultValue)); | ||
return new Property(api.grok_Property(name, type, getter, setter, toDart(defaultValue))); | ||
} | ||
@@ -992,0 +1137,0 @@ /** Creates an integer property */ |
@@ -253,2 +253,3 @@ import { Cell, Column, DataFrame, Row } from './dataframe'; | ||
static fromValue(value: any): GridCell; | ||
static createColHeader(gridColumn: GridColumn): GridCell; | ||
/** @returns {string} Cell type */ | ||
@@ -255,0 +256,0 @@ get cellType(): string; |
@@ -395,2 +395,5 @@ import { Cell, Column, DataFrame, Row } from './dataframe'; | ||
} | ||
static createColHeader(gridColumn) { | ||
return new GridCell(api.grok_GridCell_CreateColHeader(gridColumn.dart)); | ||
} | ||
/** @returns {string} Cell type */ | ||
@@ -397,0 +400,0 @@ get cellType() { |
@@ -55,3 +55,8 @@ /** | ||
static hashCode(s: string): number; | ||
static camelCaseToSentence(s: string, o?: { | ||
capitalizeFirst?: boolean; | ||
capitalizeNext?: boolean; | ||
capitalizeConjunctions?: boolean; | ||
}): any; | ||
} | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -62,3 +62,7 @@ import { toJs } from './wrappers'; | ||
} | ||
static camelCaseToSentence(s, o) { | ||
var _a, _b, _c; | ||
return api.grok_StringUtils_CamelCaseToSentence(s, (_a = o === null || o === void 0 ? void 0 : o.capitalizeFirst) !== null && _a !== void 0 ? _a : true, (_b = o === null || o === void 0 ? void 0 : o.capitalizeNext) !== null && _b !== void 0 ? _b : false, (_c = o === null || o === void 0 ? void 0 : o.capitalizeConjunctions) !== null && _c !== void 0 ? _c : false); | ||
} | ||
} | ||
//# sourceMappingURL=helpers.js.map |
@@ -152,3 +152,3 @@ export interface IScatterPlot3dSettings { | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
marginLeft: number; | ||
@@ -174,2 +174,13 @@ marginTop: number; | ||
} | ||
export declare enum FlexAutoPosition { | ||
Auto = "Auto", | ||
Left = "Left", | ||
Right = "Right", | ||
Top = "Top", | ||
Bottom = "Bottom", | ||
LeftTop = "LeftTop", | ||
LeftBottom = "LeftBottom", | ||
RightTop = "RightTop", | ||
RightBottom = "RightBottom" | ||
} | ||
export interface IFiltersSettings { | ||
@@ -228,2 +239,14 @@ active: boolean; | ||
showYSelector: boolean; | ||
xWhiskerMin: string; | ||
xWhiskerMinColumnName: string; | ||
xWhiskerMax: string; | ||
xWhiskerMaxColumnName: string; | ||
xWhiskerRange: string; | ||
xWhiskerRangeColumnName: string; | ||
yWhiskerMin: string; | ||
yWhiskerMinColumnName: string; | ||
yWhiskerMax: string; | ||
yWhiskerMaxColumnName: string; | ||
yWhiskerRange: string; | ||
yWhiskerRangeColumnName: string; | ||
xAxisLabelOrientation: string; | ||
@@ -253,9 +276,10 @@ color: string; | ||
linesWidth: number; | ||
labelFormColumnNames: Array<string>; | ||
labelColumnNames: Array<string>; | ||
showLabelsFor: keyof typeof RowSet; | ||
displayLabels: keyof typeof VisibilityMode; | ||
showLabelNamedColumns: keyof typeof VisibilityMode; | ||
useLabelAsMarker: boolean; | ||
labelColorAsMarker: boolean; | ||
showLabelsMode: keyof typeof VisibilityMode; | ||
useLabelAsMarker: boolean; | ||
labelCircleRadius: number; | ||
labelCircleContentSize: number; | ||
labelAsMarkerSize: number; | ||
labelContentSize: number; | ||
showRegressionLine: boolean; | ||
@@ -274,3 +298,2 @@ showRegressionLineEquation: boolean; | ||
allowZoom: boolean; | ||
useGPUComputing: boolean; | ||
autoLayout: boolean; | ||
@@ -289,2 +312,3 @@ backColor: number; | ||
regressionLineColor: number; | ||
whiskerColor: number; | ||
regressionLineTransparency: number; | ||
@@ -303,3 +327,3 @@ axesUseColumnFormat: boolean; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
axisFont: string; | ||
@@ -360,3 +384,3 @@ labelFont: string; | ||
markerSize: number; | ||
showMarkers: string; | ||
showMarkers: keyof typeof VisibilityMode; | ||
showCurrentRowLine: boolean; | ||
@@ -403,3 +427,3 @@ showMouseOverCategory: boolean; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
addLinesToLegend: boolean; | ||
@@ -506,3 +530,3 @@ autoAdjustMultiAxisLegendPosition: boolean; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
outerMarginLeft: number; | ||
@@ -606,3 +630,3 @@ outerMarginRight: number; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
showMeanCross: boolean; | ||
@@ -668,3 +692,3 @@ showLowerDash: boolean; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
segmentAngle: string; | ||
@@ -932,3 +956,3 @@ segmentAngleColumnName: string; | ||
legendVisibility: keyof typeof VisibilityMode; | ||
legendPosition: keyof typeof FlexPosition; | ||
legendPosition: keyof typeof FlexAutoPosition; | ||
showXSelectors: boolean; | ||
@@ -1096,2 +1120,21 @@ showYSelectors: boolean; | ||
} | ||
export interface IRocCurveSettings { | ||
predictionColumnNames: Array<string>; | ||
targetColumn: string; | ||
positiveClass: string; | ||
showThreshold: boolean; | ||
rowSource: keyof typeof RowSet; | ||
filter: string; | ||
allowDynamicMenus: boolean; | ||
showContextMenu: boolean; | ||
title: string; | ||
showTitle: boolean; | ||
table: string; | ||
description: string; | ||
help: string; | ||
initializationFunction: string; | ||
onInitializedScript: string; | ||
descriptionPosition: keyof typeof FlexPosition; | ||
descriptionVisibilityMode: keyof typeof VisibilityMode; | ||
} | ||
export interface IFormSettings { | ||
@@ -1098,0 +1141,0 @@ syncMode: string; |
@@ -32,2 +32,14 @@ /// this file was generated automatically from d4 classes declarations | ||
})(VisibilityMode || (VisibilityMode = {})); | ||
export var FlexAutoPosition; | ||
(function (FlexAutoPosition) { | ||
FlexAutoPosition["Auto"] = "Auto"; | ||
FlexAutoPosition["Left"] = "Left"; | ||
FlexAutoPosition["Right"] = "Right"; | ||
FlexAutoPosition["Top"] = "Top"; | ||
FlexAutoPosition["Bottom"] = "Bottom"; | ||
FlexAutoPosition["LeftTop"] = "LeftTop"; | ||
FlexAutoPosition["LeftBottom"] = "LeftBottom"; | ||
FlexAutoPosition["RightTop"] = "RightTop"; | ||
FlexAutoPosition["RightBottom"] = "RightBottom"; | ||
})(FlexAutoPosition || (FlexAutoPosition = {})); | ||
export var AxisTickmarksMode; | ||
@@ -34,0 +46,0 @@ (function (AxisTickmarksMode) { |
@@ -15,2 +15,8 @@ import { DataFrame } from "./dataframe"; | ||
} | ||
export interface BalloonOptions { | ||
oneTimeKey?: string; | ||
copyText?: string; | ||
autoHide?: boolean; | ||
timeout?: number; | ||
} | ||
/** | ||
@@ -63,10 +69,13 @@ * Grok visual shell, use it to get access to top-level views, tables, methods, etc. | ||
/** Shows information message (green background) | ||
* @param {string} x - message */ | ||
info(x: any): void; | ||
* @param {string} x - message | ||
* @param options */ | ||
info(x: any, options?: BalloonOptions): void; | ||
/** Shows information message (red background) | ||
* @param options | ||
* @param {string} s - message */ | ||
error(s: string | HTMLElement): void; | ||
error(s: string | HTMLElement, options?: BalloonOptions): void; | ||
/** Shows warning message (yellow background) | ||
* @param options | ||
* @param {string} s - message */ | ||
warning(s: string | HTMLElement): void; | ||
warning(s: string | HTMLElement, options?: BalloonOptions): void; | ||
/** Docks element in a separate window. | ||
@@ -108,2 +117,4 @@ * Sample: {@link https://public.datagrok.ai/js/samples/ui/docking/docking} | ||
getTableView(tableName: string): TableView; | ||
/** Opens a dialog for opening a file with tabular data (CSV, XSLS, etc) */ | ||
openFileOpenDialog(): void; | ||
/** Closes everything (views, tables, projects) and returns the platform to the initial state. */ | ||
@@ -110,0 +121,0 @@ closeAll(): void; |
@@ -104,15 +104,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
/** Shows information message (green background) | ||
* @param {string} x - message */ | ||
info(x) { | ||
api.grok_Balloon(typeof x == 'string' || x instanceof HTMLElement ? x : JSON.stringify(x), 'info'); | ||
* @param {string} x - message | ||
* @param options */ | ||
info(x, options) { | ||
api.grok_Balloon(typeof x == 'string' || x instanceof HTMLElement ? x : JSON.stringify(x), 'info', toDart(options !== null && options !== void 0 ? options : {})); | ||
} | ||
/** Shows information message (red background) | ||
* @param options | ||
* @param {string} s - message */ | ||
error(s) { | ||
api.grok_Balloon(s, 'error'); | ||
error(s, options) { | ||
api.grok_Balloon(s, 'error', toDart(options !== null && options !== void 0 ? options : {})); | ||
} | ||
/** Shows warning message (yellow background) | ||
* @param options | ||
* @param {string} s - message */ | ||
warning(s) { | ||
api.grok_Balloon(s, 'warning'); | ||
warning(s, options) { | ||
api.grok_Balloon(s, 'warning', toDart(options !== null && options !== void 0 ? options : {})); | ||
} | ||
@@ -206,2 +209,6 @@ /** Docks element in a separate window. | ||
} | ||
/** Opens a dialog for opening a file with tabular data (CSV, XSLS, etc) */ | ||
openFileOpenDialog() { | ||
api.grok_Shell_OpenFileDialog(); | ||
} | ||
/** Closes everything (views, tables, projects) and returns the platform to the initial state. */ | ||
@@ -208,0 +215,0 @@ closeAll() { |
@@ -28,2 +28,6 @@ import { MARKER_TYPE, ViewerType } from './const'; | ||
function marker(g: CanvasRenderingContext2D, markerType: MARKER_TYPE, x: number, y: number, color: number | string, size: number): void; | ||
function markerTypes(): string[]; | ||
function markerTypeIndexes(): { | ||
[key: string]: number; | ||
}; | ||
/** Renders a PNG image from bytes */ | ||
@@ -61,3 +65,3 @@ function pngImage(g: CanvasRenderingContext2D, bounds: Rect, imageBytes: Uint8Array): void; | ||
params: any; | ||
}[], stopOnTimeout?: boolean): Promise<any>; | ||
}[], stopOnFail?: boolean): Promise<any>; | ||
} | ||
@@ -194,7 +198,2 @@ /** A proxy to a Dart `List<T>`. */ | ||
} | ||
/** | ||
* @param {HTMLElement} element | ||
* @param {string | ElementOptions | null} options | ||
* @returns {HTMLElement} | ||
* */ | ||
export declare function _options(element: HTMLElement, options: any): HTMLElement; | ||
@@ -223,2 +222,3 @@ /** | ||
let isInBenchmark: boolean; | ||
let isReproducing: boolean; | ||
function getTestDataGeneratorByType(type: string): any; | ||
@@ -225,0 +225,0 @@ function getInputTestDataGeneratorByType(inputType: string): any; |
@@ -97,2 +97,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
Paint.marker = marker; | ||
function markerTypes() { | ||
return api.grok_Marker_Types(); | ||
} | ||
Paint.markerTypes = markerTypes; | ||
function markerTypeIndexes() { | ||
return new MapProxy(api.grok_Marker_Type_Indexes()); | ||
} | ||
Paint.markerTypeIndexes = markerTypeIndexes; | ||
/** Renders a PNG image from bytes */ | ||
@@ -187,3 +195,3 @@ function pngImage(g, bounds, imageBytes) { | ||
} | ||
static executeTests(testsParams, stopOnTimeout) { | ||
static executeTests(testsParams, stopOnFail) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -199,4 +207,9 @@ let failed = false; | ||
let resultDF = undefined; | ||
DG.Test.isReproducing = true; | ||
for (let testParam of testsParams) { | ||
let df = yield grok.functions.call(testParam.package + ':test', testParam.params); | ||
let flakingCol = DG.Column.fromType(DG.COLUMN_TYPE.BOOL, 'flaking', df.rowCount); | ||
df.columns.add(flakingCol); | ||
let packageNameCol = DG.Column.fromList(DG.COLUMN_TYPE.STRING, 'package', Array(df.rowCount).fill(testParam.package)); | ||
df.columns.add(packageNameCol); | ||
if (df.rowCount === 0) { | ||
@@ -221,2 +234,5 @@ verboseFailed += `Test result : Invocation Fail : ${testParam.params.category}: ${testParam.params.test}\n`; | ||
const result = row.get('result'); | ||
const success = row.get('success'); | ||
const skipped = row.get('skipped'); | ||
row['flaking'] = success && DG.Test.isReproducing; | ||
if (resultDF === undefined) { | ||
@@ -243,3 +259,3 @@ df.changeColumnType('result', COLUMN_TYPE.STRING); | ||
} | ||
if (result.toString().trim() === 'EXECUTION TIMEOUT' && stopOnTimeout) | ||
if ((success !== true && skipped !== true) && stopOnFail) | ||
break; | ||
@@ -613,7 +629,2 @@ } | ||
} | ||
/** | ||
* @param {HTMLElement} element | ||
* @param {string | ElementOptions | null} options | ||
* @returns {HTMLElement} | ||
* */ | ||
export function _options(element, options) { | ||
@@ -711,2 +722,3 @@ if (options == null) | ||
Test.isInBenchmark = false; | ||
Test.isReproducing = false; | ||
function getTestDataGeneratorByType(type) { | ||
@@ -713,0 +725,0 @@ return api.grok_Test_GetTestDataGeneratorByType(type); |
@@ -269,2 +269,3 @@ /** A viewer that is typically docked inside a [TableView]. */ | ||
getMarkerType(rowIdx: number): string; | ||
getMarkerTypes(): Uint32Array; | ||
getMarkerColor(rowIdx: number): number; | ||
@@ -318,2 +319,5 @@ getMarkerColors(): Uint32Array; | ||
} | ||
export declare class RocCurve extends Viewer<interfaces.IRocCurveSettings> { | ||
constructor(dart: any); | ||
} | ||
export declare class CalendarViewer extends Viewer<interfaces.ICalendarSettings> { | ||
@@ -320,0 +324,0 @@ constructor(dart: any); |
@@ -404,2 +404,3 @@ /** A viewer that is typically docked inside a [TableView]. */ | ||
getMarkerType(rowIdx) { return api.grok_ScatterPlotViewer_GetMarkerType(this.dart, rowIdx); } | ||
getMarkerTypes() { return api.grok_ScatterPlotViewer_GetMarkerTypes(this.dart); } | ||
getMarkerColor(rowIdx) { return api.grok_ScatterPlotViewer_GetMarkerColor(this.dart, rowIdx); } | ||
@@ -471,2 +472,7 @@ getMarkerColors() { return api.grok_ScatterPlotViewer_GetMarkerColors(this.dart); } | ||
} | ||
export class RocCurve extends Viewer { | ||
constructor(dart) { | ||
super(dart); | ||
} | ||
} | ||
export class CalendarViewer extends Viewer { | ||
@@ -473,0 +479,0 @@ constructor(dart) { |
@@ -343,2 +343,3 @@ import { ViewerType, ViewType } from '../const'; | ||
set showTree(x: boolean); | ||
setHomeView(): Promise<void>; | ||
} | ||
@@ -345,0 +346,0 @@ export declare class ViewLayout extends Entity { |
@@ -0,1 +1,10 @@ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
import { VIEW_TYPE, VIEWER } from '../const'; | ||
@@ -244,4 +253,4 @@ import * as ui from '../../ui'; | ||
View.SETTINGS = 'settings'; | ||
View.WELCOME = 'welcome'; | ||
View.SCRIPT = 'script'; | ||
View.WELCOME = 'welcome'; // no any viewer like that | ||
View.SCRIPT = 'script'; // no any viewer like that | ||
View.SKETCH = 'sketch'; | ||
@@ -260,3 +269,3 @@ View.FORUM = 'forum'; | ||
View.FILES = 'files'; | ||
View.DATA_QUERY_RUNS = 'queryruns'; | ||
View.DATA_QUERY_RUNS = 'queryruns'; // no any viewer like that | ||
View.EMAILS = 'emails'; | ||
@@ -272,6 +281,6 @@ View.GROUPS = 'groups'; | ||
View.BROWSE = 'browse'; | ||
View.ALL_VIEW_TYPES = [View.APPS, View.SETTINGS, View.WELCOME, View.SCRIPT, View.SKETCH, | ||
View.ALL_VIEW_TYPES = [View.APPS, View.SETTINGS, View.SKETCH, | ||
View.FORUM, View.PROJECTS, View.NOTEBOOKS, View.HELP, View.OPEN_TEXT, View.DATABASES, | ||
View.WEB_SERVICES, View.VIEW_LAYOUTS, View.FUNCTIONS, View.DATA_CONNECTIONS, View.DATA_JOB_RUNS, | ||
View.FILES, View.DATA_QUERY_RUNS, View.EMAILS, View.GROUPS, View.MODELS, View.QUERIES, | ||
View.FILES, View.EMAILS, View.GROUPS, View.MODELS, View.QUERIES, | ||
View.SCRIPTS, View.USERS, View.PACKAGES, View.PACKAGE_REPOSITORIES, View.JS_EDITOR, View.BROWSE]; | ||
@@ -534,2 +543,7 @@ /** | ||
set showTree(x) { api.grok_BrowseView_Set_ShowTree(this.dart, x); } | ||
setHomeView() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield api.grok_BrowseView_SetHomeView(this.dart); | ||
}); | ||
} | ||
} | ||
@@ -536,0 +550,0 @@ export class ViewLayout extends Entity { |
@@ -491,2 +491,3 @@ import { EventData, InputArgs, StreamSubscription } from "./events"; | ||
error(s: string | HTMLElement): void; | ||
warning(s: string | HTMLElement): void; | ||
/** Closes all balloons currently shown */ | ||
@@ -493,0 +494,0 @@ static closeAll(): void; |
@@ -56,2 +56,4 @@ import { Property } from './entities'; | ||
} | ||
else if (type === TYPE.BIG_INT) | ||
return BigInt(window.grok_BigInt_To_BigIntJs(dart)); | ||
let wrapper = window.grok_GetWrapper(dart); | ||
@@ -81,4 +83,6 @@ if (wrapper != null) | ||
return window.grok_JS_To_Map(x); | ||
if (typeof x === 'bigint') | ||
return window.grok_BigIntJs_To_BigInt(x.toString()); | ||
return x; | ||
} | ||
//# sourceMappingURL=wrappers_impl.js.map |
@@ -441,2 +441,3 @@ /** | ||
private static getLabelsWidths; | ||
private static getOptionsWidth; | ||
private static getLabelWidth; | ||
@@ -452,3 +453,3 @@ static scrollIntoViewIfNeeded(e: HTMLElement): void; | ||
*/ | ||
bind(element: HTMLElement, tooltip?: string | null | (() => string | HTMLElement | null)): HTMLElement; | ||
bind(element: HTMLElement, tooltip?: string | null | (() => string | HTMLElement | null), tooltipPosition?: 'left' | 'right' | 'top' | 'bottom' | undefined | null): HTMLElement; | ||
/** Shows the tooltip at the specified position */ | ||
@@ -455,0 +456,0 @@ show(content: HTMLElement | string, x: number, y: number): void; |
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 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 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
2005114
28295
2