@adaptabletools/adaptable 16.0.10-canary.0 → 16.1.0-canary.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/agGrid.d.ts +4 -0
- package/agGrid.js +4 -0
- package/base.css +2 -0
- package/base.css.map +1 -1
- package/bundle.cjs.js +162 -161
- package/index.css +4 -0
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +12 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/ChartingOptions.d.ts +44 -39
- package/src/AdaptableOptions/DataImportOptions.d.ts +67 -0
- package/src/AdaptableOptions/DataImportOptions.js +2 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
- package/src/AdaptableOptions/MenuOptions.js +75 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/DataImportApi.d.ts +9 -0
- package/src/Api/DataImportApi.js +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/DataImportApiImpl.d.ts +10 -0
- package/src/Api/Implementation/DataImportApiImpl.js +14 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
- package/src/Api/Implementation/OptionsApiImpl.d.ts +1 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +22 -0
- package/src/Api/Internal/ChartingInternalApi.js +15 -15
- package/src/Api/Internal/DataImportInternalApi.d.ts +4 -0
- package/src/Api/Internal/DataImportInternalApi.js +53 -0
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/UserInterfaceApi.d.ts +14 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -6
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +2 -0
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/DataImportModule.d.ts +11 -0
- package/src/Strategy/DataImportModule.js +36 -0
- package/src/Strategy/Fdc3Module.js +3 -2
- package/src/Strategy/LayoutModule.js +1 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +4 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
- package/src/Utilities/Services/ModuleService.js +2 -0
- package/src/View/AdaptableViewFactory.js +2 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.d.ts +1 -0
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +14 -4
- package/src/View/DataImport/DataImportPopup.d.ts +6 -0
- package/src/View/DataImport/DataImportPopup.js +32 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
- package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
- package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
- package/src/View/DataImport/systemFileHandlers.js +44 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.js +2 -2
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/agGridMenuHelper.d.ts +20 -9
- package/src/agGrid/agGridMenuHelper.js +288 -133
- package/src/components/FileDroppable/index.d.ts +2 -1
- package/src/components/FileDroppable/index.js +8 -7
- package/src/components/icons/import.d.ts +3 -0
- package/src/components/icons/import.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +171 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.d.ts +2 -2
- package/src/parser/src/index.js +4 -4
- package/src/parser/src/tokenizer.d.ts +1 -1
- package/src/parser/src/tokenizer.js +14 -6
- package/src/parser/src/types.d.ts +2 -2
- package/src/types.d.ts +5 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ExpressionContext } from './types';
|
|
1
|
+
import { AST, ExpressionContext } from './types';
|
|
2
2
|
export { findPathTo } from './utils';
|
|
3
3
|
export declare function parse(input: string): {
|
|
4
4
|
ast: any;
|
|
5
5
|
evaluate: (context: ExpressionContext) => any;
|
|
6
6
|
};
|
|
7
7
|
export declare function evaluate(input: string, context: ExpressionContext): any;
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function getAbstractSyntaxTree(expression: string): AST;
|
package/src/parser/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAbstractSyntaxTree = exports.evaluate = exports.parse = exports.findPathTo = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const evaluator_1 = require("./evaluator");
|
|
6
6
|
// @ts-ignore
|
|
@@ -23,8 +23,8 @@ function evaluate(input, context) {
|
|
|
23
23
|
return cache[input].evaluate(context);
|
|
24
24
|
}
|
|
25
25
|
exports.evaluate = evaluate;
|
|
26
|
-
function
|
|
27
|
-
const { ast } = parse(
|
|
26
|
+
function getAbstractSyntaxTree(expression) {
|
|
27
|
+
const { ast } = parse(expression);
|
|
28
28
|
return ast;
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
30
|
+
exports.getAbstractSyntaxTree = getAbstractSyntaxTree;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Token } from './types';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getTokens(expression: string): Token[];
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.getTokens = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
const parser_1 = tslib_1.__importDefault(require("./parser"));
|
|
7
|
+
const cache = {};
|
|
8
|
+
function getTokens(expression) {
|
|
9
|
+
if (cache[expression]) {
|
|
10
|
+
return cache[expression];
|
|
11
|
+
}
|
|
5
12
|
const tokens = [];
|
|
6
|
-
const lexer =
|
|
7
|
-
lexer.setInput(
|
|
13
|
+
const lexer = parser_1.default.lexer;
|
|
14
|
+
lexer.setInput(expression);
|
|
8
15
|
while (!lexer.done) {
|
|
9
16
|
const id = lexer.lex();
|
|
10
17
|
const location = lexer.matched.length;
|
|
11
18
|
tokens.push({
|
|
12
|
-
type:
|
|
19
|
+
type: parser_1.default.terminals_[id],
|
|
13
20
|
value: lexer.yytext,
|
|
14
21
|
range: [location - lexer.yytext.length, location],
|
|
15
22
|
});
|
|
16
23
|
}
|
|
17
24
|
// remove eof
|
|
18
25
|
tokens.pop();
|
|
26
|
+
cache[expression] = tokens;
|
|
19
27
|
return tokens;
|
|
20
28
|
}
|
|
21
|
-
exports.
|
|
29
|
+
exports.getTokens = getTokens;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseContext } from '../../../types';
|
|
2
2
|
export declare type AST = AST_Expression[];
|
|
3
|
-
export declare type AST_Expression =
|
|
3
|
+
export declare type AST_Expression = AST_Function | boolean | number | string;
|
|
4
4
|
export declare type AST_Function = {
|
|
5
5
|
type: string;
|
|
6
6
|
args: AST_Expression[];
|
|
@@ -38,7 +38,7 @@ export interface ExpressionContext extends BaseContext {
|
|
|
38
38
|
/**
|
|
39
39
|
* Evaluate custom variables
|
|
40
40
|
*/
|
|
41
|
-
evaluateCustomQueryVariable
|
|
41
|
+
evaluateCustomQueryVariable?: (functionName: string, args?: any[]) => any;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Key-Value map of Expression Names and their implementation
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, ExpressionCategory, } from './../src/parser/src/types';
|
|
1
|
+
export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, ExpressionCategory, AST, AST_Function, AST_Expression, Token, } from './../src/parser/src/types';
|
|
2
2
|
export type { AgGridConfig } from './AdaptableInterfaces/IAdaptable';
|
|
3
3
|
export type { AdaptableConfig } from './View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig';
|
|
4
4
|
export type { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard, } from './AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
@@ -18,6 +18,7 @@ export type { EditOptions, ValidationResult, SmartEditCustomOperation, SmartEdit
|
|
|
18
18
|
export type { ActionRowOptions, ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, ActionRowButtonsContext, SetPrimaryKeyValueContext, } from './AdaptableOptions/ActionRowOptions';
|
|
19
19
|
export type { ActionColumnContext, ActionColumn, ActionColumnSettings, ActionColumnOptions, } from './AdaptableOptions/ActionColumnOptions';
|
|
20
20
|
export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, ExternalReport, PreProcessExportContext, AdaptableReportColumn, DataFormatType, ExportFormContext, ReportContext, ExportableColumnContext, } from './AdaptableOptions/ExportOptions';
|
|
21
|
+
export type { DataImportValidationError, DataImportOptions, DataImportFileHandler, DataImportApplyImportContext, DataImportValidateContext, } from './AdaptableOptions/DataImportOptions';
|
|
21
22
|
export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOptions/DataSetOptions';
|
|
22
23
|
export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
|
|
23
24
|
export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
|
|
@@ -27,7 +28,7 @@ export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions
|
|
|
27
28
|
export type { Glue42WebPluginOptions } from './AdaptableOptions/Glue42WebPluginOptions';
|
|
28
29
|
export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
|
|
29
30
|
export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutAvailableContext, AutoGenerateTagsForLayoutsContext, LayoutAssociatedObject, PivotPreviewColumnsContext, } from './AdaptableOptions/LayoutOptions';
|
|
30
|
-
export type { ChartingOptions, ChartContainer } from './AdaptableOptions/ChartingOptions';
|
|
31
|
+
export type { ChartingOptions, ChartContainer, ExternalChartingContext, ExternalChartingOptions, } from './AdaptableOptions/ChartingOptions';
|
|
31
32
|
export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
|
|
32
33
|
export type { MasterDetailPluginOptions, DetailInitContext, } from './AdaptableOptions/MasterDetailPluginOptions';
|
|
33
34
|
export type { FinsemblePluginOptions, FinsemblePluginStateOptions, } from './AdaptableOptions/FinsemblePluginOptions';
|
|
@@ -45,7 +46,7 @@ export type { AdaptableNote, NotesState as NoteState, AdaptableNotes, NoteGridCe
|
|
|
45
46
|
export type { TeamSharingOptions, SharedEntitiesContext, } from './AdaptableOptions/TeamSharingOptions';
|
|
46
47
|
export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
|
|
47
48
|
export type { UserInterfaceOptions, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, CustomIcon, } from './AdaptableOptions/UserInterfaceOptions';
|
|
48
|
-
export type { MenuOptions, MenuOrderContext } from './AdaptableOptions/MenuOptions';
|
|
49
|
+
export type { MenuOptions, MenuOrderContext, CustomContextMenuContext, CustomContextMenuItem, UserContextMenuItem, CustomColumnMenuContext, CustomColumnMenuItem, UserColumnMenuItem, AdaptableSystemMenuItem, AgGridMenuItem, AgGridContextMenuItemType, AgGridColumnMenuItemType, } from './AdaptableOptions/MenuOptions';
|
|
49
50
|
export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
|
|
50
51
|
export type { EntitlementOptions, EntitlementContext, DefaultAccessLevelContext, } from './AdaptableOptions/EntitlementOptions';
|
|
51
52
|
export type { EvaluateExpressionExternallyContext, ExpressionOptions, ModuleExpressionFunctions, ModuleExpressionFunctionsMap, GlobalExpressionFunctionsContext, ModuleExpressionFunctionsContext, CustomQueryVariableContext, QueryableColumnContext, } from './AdaptableOptions/ExpressionOptions';
|
|
@@ -195,7 +196,7 @@ export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './Predefin
|
|
|
195
196
|
export type { SharedEntity, AdaptableSharedEntity, CustomSharedEntity, TeamSharingState, SharedEntityType, AdaptableSharedEntityConfig, CustomSharedEntityConfig, } from './PredefinedConfig/TeamSharingState';
|
|
196
197
|
export type { AdaptableTheme, ThemeState } from './PredefinedConfig/ThemeState';
|
|
197
198
|
export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './PredefinedConfig/ToolPanelState';
|
|
198
|
-
export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, CustomRenderContext, } from './AdaptableOptions/AdaptableFrameworkComponent';
|
|
199
|
+
export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, CustomRenderContext, CustomWindowConfig, } from './AdaptableOptions/AdaptableFrameworkComponent';
|
|
199
200
|
export type { Fdc3StandardContextType, Fdc3CustomContextType, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, Fdc3ContextType, Fdc3Context, ChartContextType, ChartContext, ChatInitSettingsContext, ChatInitSettingsContextType, ContactContextType, ContactListContextType, CurrencyContext, EmailContext, CountryContextType, CurrencyContextType, EmailContextType, InstrumentContextType, InstrumentListContextType, NothingContextType, OrganizationContextType, PortfolioContextType, PositionContextType, NothingContext, Fdc3CustomContext, ValuationContext, ValuationContextType, TimeRangeContextType, TimeRangeContext, } from './PredefinedConfig/Common/Fdc3Context';
|
|
200
201
|
export type { Fdc3IntentType, Fdc3StandardIntentType, Fdc3CustomIntentType, CompatibleContext, } from './PredefinedConfig/Common/Fdc3Intent';
|
|
201
202
|
export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "16.0
|
|
1
|
+
declare const _default: "16.1.0-canary.1";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '16.0
|
|
3
|
+
exports.default = '16.1.0-canary.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|