@adaptabletools/adaptable 16.0.10-canary.0 → 16.1.0-canary.0

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.
Files changed (103) hide show
  1. package/agGrid.d.ts +4 -0
  2. package/agGrid.js +4 -0
  3. package/base.css +2 -0
  4. package/base.css.map +1 -1
  5. package/bundle.cjs.js +162 -161
  6. package/index.css +4 -0
  7. package/index.css.map +1 -1
  8. package/package.json +1 -1
  9. package/publishTimestamp.d.ts +1 -1
  10. package/publishTimestamp.js +1 -1
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +12 -1
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
  13. package/src/AdaptableOptions/ChartingOptions.d.ts +44 -39
  14. package/src/AdaptableOptions/DataImportOptions.d.ts +57 -0
  15. package/src/AdaptableOptions/DataImportOptions.js +2 -0
  16. package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
  17. package/src/AdaptableOptions/MenuOptions.js +75 -0
  18. package/src/Api/AdaptableApi.d.ts +5 -0
  19. package/src/Api/DataImportApi.d.ts +9 -0
  20. package/src/Api/DataImportApi.js +2 -0
  21. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  22. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  23. package/src/Api/Implementation/DataImportApiImpl.d.ts +10 -0
  24. package/src/Api/Implementation/DataImportApiImpl.js +14 -0
  25. package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
  26. package/src/Api/Implementation/OptionsApiImpl.d.ts +1 -0
  27. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  28. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -1
  29. package/src/Api/Implementation/UserInterfaceApiImpl.js +22 -0
  30. package/src/Api/Internal/ChartingInternalApi.js +15 -15
  31. package/src/Api/Internal/DataImportInternalApi.d.ts +4 -0
  32. package/src/Api/Internal/DataImportInternalApi.js +49 -0
  33. package/src/Api/OptionsApi.d.ts +5 -0
  34. package/src/Api/UserInterfaceApi.d.ts +14 -0
  35. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  36. package/src/PredefinedConfig/Common/Menu.d.ts +1 -6
  37. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  38. package/src/PredefinedConfig/Common/Types.js +2 -0
  39. package/src/Strategy/ChartingModule.js +1 -1
  40. package/src/Strategy/DataImportModule.d.ts +11 -0
  41. package/src/Strategy/DataImportModule.js +36 -0
  42. package/src/Strategy/Fdc3Module.js +3 -2
  43. package/src/Strategy/LayoutModule.js +1 -0
  44. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
  45. package/src/Utilities/Constants/ModuleConstants.js +4 -1
  46. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -0
  47. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
  48. package/src/Utilities/Helpers/AdaptableHelper.js +2 -0
  49. package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
  50. package/src/Utilities/Services/ModuleService.js +2 -0
  51. package/src/View/AdaptableViewFactory.js +2 -0
  52. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +1 -1
  53. package/src/View/Components/ExternalRenderer.d.ts +1 -0
  54. package/src/View/Components/ExternalRenderer.js +2 -1
  55. package/src/View/Components/Panels/PanelWithImage.js +3 -3
  56. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
  57. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
  58. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
  59. package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
  60. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +12 -2
  61. package/src/View/DataImport/DataImportPopup.d.ts +6 -0
  62. package/src/View/DataImport/DataImportPopup.js +32 -0
  63. package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
  64. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
  65. package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
  66. package/src/View/DataImport/DataImportWizard/index.js +4 -0
  67. package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
  68. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
  69. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
  70. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
  71. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
  72. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
  73. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
  74. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
  75. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
  76. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
  77. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
  78. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
  79. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
  80. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
  81. package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
  82. package/src/View/DataImport/systemFileHandlers.js +44 -0
  83. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  84. package/src/View/Wizard/OnePageWizards.d.ts +1 -0
  85. package/src/View/Wizard/OnePageWizards.js +2 -2
  86. package/src/agGrid/agGridHelper.js +2 -0
  87. package/src/agGrid/agGridMenuHelper.d.ts +20 -9
  88. package/src/agGrid/agGridMenuHelper.js +288 -133
  89. package/src/components/FileDroppable/index.d.ts +2 -1
  90. package/src/components/FileDroppable/index.js +8 -7
  91. package/src/components/icons/import.d.ts +3 -0
  92. package/src/components/icons/import.js +7 -0
  93. package/src/components/icons/index.js +2 -0
  94. package/src/metamodel/adaptable.metamodel.d.ts +171 -2
  95. package/src/metamodel/adaptable.metamodel.js +1 -1
  96. package/src/parser/src/index.d.ts +2 -2
  97. package/src/parser/src/index.js +4 -4
  98. package/src/parser/src/tokenizer.d.ts +1 -1
  99. package/src/parser/src/tokenizer.js +14 -6
  100. package/src/parser/src/types.d.ts +2 -2
  101. package/src/types.d.ts +5 -4
  102. package/version.d.ts +1 -1
  103. 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 getAST(input: string): any;
8
+ export declare function getAbstractSyntaxTree(expression: string): AST;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAST = exports.evaluate = exports.parse = exports.findPathTo = void 0;
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 getAST(input) {
27
- const { ast } = parse(input);
26
+ function getAbstractSyntaxTree(expression) {
27
+ const { ast } = parse(expression);
28
28
  return ast;
29
29
  }
30
- exports.getAST = getAST;
30
+ exports.getAbstractSyntaxTree = getAbstractSyntaxTree;
@@ -1,2 +1,2 @@
1
1
  import { Token } from './types';
2
- export declare function tokenize(parser: any, input: string): Token[];
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.tokenize = void 0;
4
- function tokenize(parser, input) {
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 = parser.lexer;
7
- lexer.setInput(input);
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: parser.terminals_[id],
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.tokenize = tokenize;
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 = AST_Expression[] | AST_Function | boolean | number | string;
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: (functionName: string, args?: any[]) => any;
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.10-canary.0";
1
+ declare const _default: "16.1.0-canary.0";
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.10-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '16.1.0-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version