@adaptabletools/adaptable 13.0.0-canary.1 → 13.0.0-canary.10
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 +23 -1
- package/agGrid.js +23 -1
- package/base.css +1 -0
- package/bundle.cjs.js +169 -169
- package/index.css +1 -0
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +108 -23
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +5 -0
- package/src/Api/ConditionalStyleApi.d.ts +20 -42
- package/src/Api/ConfigApi.d.ts +1 -2
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/Api/FinsembleApi.js +2 -0
- package/src/Api/FormatColumnApi.d.ts +47 -3
- package/src/Api/Implementation/ColumnApiImpl.js +3 -3
- package/src/Api/Implementation/DashboardApiImpl.js +2 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +18 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +97 -14
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -0
- package/src/Api/Implementation/InternalApiImpl.js +4 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +0 -2
- package/src/Api/Implementation/QueryLanguageApiImpl.js +0 -3
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
- package/src/Api/InternalApi.d.ts +1 -0
- package/src/Api/PluginsApi.d.ts +5 -0
- package/src/Api/QueryLanguageApi.d.ts +0 -5
- package/src/Api/ToolPanelApi.d.ts +10 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
- package/src/PredefinedConfig/FormatColumnState.d.ts +19 -6
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/Store/AdaptableStore.js +2 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -0
- package/src/Strategy/ConditionalStyleModule.js +6 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +12 -0
- package/src/Strategy/FormatColumnModule.d.ts +4 -9
- package/src/Strategy/FormatColumnModule.js +52 -2
- package/src/Strategy/Interface/IModule.d.ts +11 -10
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -10
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/ObjectFactory.js +0 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
- package/src/Utilities/Services/LicenseService/index.js +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +88 -39
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.d.ts +2 -2
- package/src/View/AdaptableView.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/index.d.ts +1 -1
- package/src/View/ColorPicker.d.ts +1 -5
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +29 -19
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +4 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -2
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +29 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +20 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -22
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +13 -0
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/SettingsSection.d.ts +2 -2
- package/src/View/License/LicenseWatermark.d.ts +1 -1
- package/src/View/StateManagement/components/ClearButton.d.ts +1 -1
- package/src/View/StateManagement/components/LoadButton.d.ts +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +4 -4
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +3 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/View/Wizard/OnePageWizards.d.ts +3 -3
- package/src/View/Wizard/OnePageWizards.js +2 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -0
- package/src/agGrid/ActionColumnRenderer.js +5 -5
- package/src/agGrid/Adaptable.d.ts +13 -2
- package/src/agGrid/Adaptable.js +142 -85
- package/src/agGrid/FilterWrapper.js +5 -5
- package/src/agGrid/FloatingFilterWrapper.js +3 -4
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -0
- package/src/agGrid/createAgStatusPanelComponent.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +3 -3
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -2
- package/src/components/Dialog/index.js +2 -2
- package/src/components/DropdownButton/index.d.ts +21 -4
- package/src/components/DropdownButton/index.js +5 -6
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +4 -2
- package/src/components/Loader/Loader.d.ts +2 -2
- package/src/components/Logo/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +2 -2
- package/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/src/components/SelectList.d.ts +1 -1
- package/src/components/SimpleButton/index.d.ts +4 -5
- package/src/components/SimpleButton/index.js +3 -2
- package/src/components/StylePreview.d.ts +1 -1
- package/src/components/Tag/Tag.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +6 -4
- package/src/components/ToggleButton/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.d.ts +1 -1
- package/src/components/icons/index.d.ts +3 -2
- package/src/components/icons/layout.d.ts +2 -1
- package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +100 -64
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +3 -0
- package/src/renderReactRoot.js +54 -0
- package/src/types.d.ts +4 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Utilities/Services/LicenseService.js +0 -1
|
@@ -110,6 +110,18 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
110
110
|
const formatColumns = this.getAllActiveFormatColumn();
|
|
111
111
|
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
112
112
|
}
|
|
113
|
+
getColumnFormatColumnsWithStyle(column) {
|
|
114
|
+
const formatColumns = this.getAllFormatColumnWithStyle();
|
|
115
|
+
return this.getFormatColumnInColumnScope(formatColumns, column).filter((scopedFormatColumn) => {
|
|
116
|
+
return (!this.adaptable.api.scopeApi.scopeIsAll(scopedFormatColumn.Scope) &&
|
|
117
|
+
this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
getRowFormatColumnsWithStyle() {
|
|
121
|
+
return this.getAllFormatColumnWithStyle().filter((formatColumn) => {
|
|
122
|
+
return this.adaptable.api.scopeApi.scopeIsAll(formatColumn.Scope);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
113
125
|
getFormatColumnForColumn(column) {
|
|
114
126
|
const formatColumns = this.getAllFormatColumn();
|
|
115
127
|
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
@@ -126,8 +138,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
126
138
|
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
127
139
|
}
|
|
128
140
|
getFormatColumnWithStyleClassNameForColumn(column) {
|
|
129
|
-
|
|
130
|
-
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
141
|
+
return this.getColumnFormatColumnsWithStyle(column).filter((fc) => StringExtensions_1.default.IsNotNullOrEmpty(fc.Style.ClassName));
|
|
131
142
|
}
|
|
132
143
|
getFormatColumnWithDisplayFormatForColumn(column) {
|
|
133
144
|
const formatColumns = this.getAllFormatColumnWithDisplayFormat().concat(this.getAllFormatColumnWithCellAlignment());
|
|
@@ -150,20 +161,14 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
150
161
|
});
|
|
151
162
|
return returnFormatColumn;
|
|
152
163
|
}
|
|
153
|
-
|
|
154
|
-
|
|
164
|
+
getFormatColumnInColumnScope(formatColumns, column) {
|
|
165
|
+
return this.getFormatColumnsWithColumnScope(formatColumns)
|
|
155
166
|
.concat(this.getFormatColumnsWithDataTypeScope(formatColumns))
|
|
156
167
|
.concat(this.getFormatColumnsWithAllScope(formatColumns));
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (this.adaptable.api.scopeApi.isColumnInScope(column, fc.Scope)) {
|
|
162
|
-
returnFormatColumn = fc;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
return returnFormatColumn;
|
|
168
|
+
}
|
|
169
|
+
getAppropriateFormatColumn(formatColumns, column) {
|
|
170
|
+
return this.getFormatColumnInColumnScope(formatColumns, column).find((scopedFormatColumn) => !this.adaptable.api.scopeApi.scopeIsAll(scopedFormatColumn.Scope) &&
|
|
171
|
+
this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
|
|
167
172
|
}
|
|
168
173
|
hasStyleFormatColumns() {
|
|
169
174
|
return ArrayExtensions_1.default.IsNotNullOrEmpty(this.getAllFormatColumnWithStyle());
|
|
@@ -355,5 +360,83 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
355
360
|
}
|
|
356
361
|
return true;
|
|
357
362
|
}
|
|
363
|
+
getFormatColumnPredicateDefs() {
|
|
364
|
+
return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('formatColumn');
|
|
365
|
+
}
|
|
366
|
+
getFormatColumnDefsForScope(scope) {
|
|
367
|
+
return this.getFormatColumnPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
368
|
+
}
|
|
369
|
+
isFormatColumnActiveForRow(formatColumn, params) {
|
|
370
|
+
// suspedned is important to be first
|
|
371
|
+
if (formatColumn.IsSuspended) {
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
if (!formatColumn.Rule) {
|
|
375
|
+
return true;
|
|
376
|
+
}
|
|
377
|
+
if (this.shouldRunStyle(formatColumn, params.node) &&
|
|
378
|
+
formatColumn.Rule.BooleanExpression &&
|
|
379
|
+
this.evaluateExpression(formatColumn, params.node)) {
|
|
380
|
+
return true;
|
|
381
|
+
}
|
|
382
|
+
// nothing has passed then return false
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
isFormatColumnActiveForColumn(formatColumn, column, params) {
|
|
386
|
+
// suspedned is important to be first
|
|
387
|
+
if (formatColumn.IsSuspended) {
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
390
|
+
if (!formatColumn.Rule) {
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
if (this.shouldRunStyle(formatColumn, params.node)) {
|
|
394
|
+
// first run the predicate
|
|
395
|
+
if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
|
|
396
|
+
if (this.evaluatePredicate({
|
|
397
|
+
formatColumn,
|
|
398
|
+
column,
|
|
399
|
+
value: params.value,
|
|
400
|
+
node: params.node,
|
|
401
|
+
})) {
|
|
402
|
+
return true;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
else if (formatColumn.Rule.BooleanExpression) {
|
|
406
|
+
if (this.evaluateExpression(formatColumn, params.node)) {
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
// nothing has passed then return false
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
evaluatePredicate({ formatColumn, column, value, node, }) {
|
|
415
|
+
const params = {
|
|
416
|
+
value: value,
|
|
417
|
+
oldValue: null,
|
|
418
|
+
displayValue: value,
|
|
419
|
+
node: node,
|
|
420
|
+
column: column,
|
|
421
|
+
};
|
|
422
|
+
const result = this.adaptable.api.predicateApi.handlePredicate(formatColumn.Rule.Predicate, params, false);
|
|
423
|
+
return result;
|
|
424
|
+
}
|
|
425
|
+
shouldRunStyle(formatColumn, node) {
|
|
426
|
+
if (!formatColumn.IncludeGroupedRows && this.adaptable.api.gridApi.isGroupRowNode(node)) {
|
|
427
|
+
return false;
|
|
428
|
+
}
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
evaluateExpression(formatColumn, node) {
|
|
432
|
+
const isValidExpression = this.adaptable.api.queryLanguageApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
|
|
433
|
+
return (isValidExpression &&
|
|
434
|
+
this.adaptable.api.internalApi
|
|
435
|
+
.getQueryLanguageService()
|
|
436
|
+
.evaluateBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, node));
|
|
437
|
+
}
|
|
438
|
+
getFormatColumnsWithExpression() {
|
|
439
|
+
return this.getAllFormatColumn().filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
|
|
440
|
+
}
|
|
358
441
|
}
|
|
359
442
|
exports.FormatColumnApiImpl = FormatColumnApiImpl;
|
|
@@ -142,4 +142,5 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
142
142
|
getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
|
|
143
143
|
getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
|
|
144
144
|
getAdaptableQueryExpressionText(query: Partial<AdaptableQuery>): string;
|
|
145
|
+
shouldKeepDeprecatedConditionalStyles(): boolean;
|
|
145
146
|
}
|
|
@@ -650,5 +650,9 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
650
650
|
? this.adaptable.api.queryLanguageApi.getAdaptableQueryExpressionWithColumnFriendlyNames(query)
|
|
651
651
|
: this.adaptable.api.queryLanguageApi.getAdaptableQueryExpression(query);
|
|
652
652
|
}
|
|
653
|
+
shouldKeepDeprecatedConditionalStyles() {
|
|
654
|
+
var _a, _b;
|
|
655
|
+
return (_b = (_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.keepDeprecatedConditionalStyles;
|
|
656
|
+
}
|
|
653
657
|
}
|
|
654
658
|
exports.InternalApiImpl = InternalApiImpl;
|
|
@@ -5,6 +5,7 @@ import { IPushPullApi } from '../IPushPullApi';
|
|
|
5
5
|
import { Glue42Api } from '../Glue42Api';
|
|
6
6
|
import { OpenFinApi } from '../OpenFinApi';
|
|
7
7
|
import { FinanceApi } from '../FinanceApi';
|
|
8
|
+
import { FinsembleApi } from '../FinsembleApi';
|
|
8
9
|
export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
|
|
9
10
|
getPluginsState(): PluginsState;
|
|
10
11
|
getPluginState(pluginId: string): any;
|
|
@@ -15,4 +16,5 @@ export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
|
|
|
15
16
|
getGlue42PluginApi(): Glue42Api;
|
|
16
17
|
getOpenFinPluginApi(): OpenFinApi;
|
|
17
18
|
getFinancePluginApi(): FinanceApi;
|
|
19
|
+
getFinsemblePluginApi(): FinsembleApi;
|
|
18
20
|
}
|
|
@@ -32,6 +32,9 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
|
|
|
32
32
|
if (pluginId === 'openfin') {
|
|
33
33
|
return api;
|
|
34
34
|
}
|
|
35
|
+
if (pluginId === 'finsemble') {
|
|
36
|
+
return api;
|
|
37
|
+
}
|
|
35
38
|
return api;
|
|
36
39
|
}
|
|
37
40
|
catch (ex) {
|
|
@@ -50,5 +53,8 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
|
|
|
50
53
|
getFinancePluginApi() {
|
|
51
54
|
return this.getPluginApi('finance');
|
|
52
55
|
}
|
|
56
|
+
getFinsemblePluginApi() {
|
|
57
|
+
return this.getPluginApi('finsemble');
|
|
58
|
+
}
|
|
53
59
|
}
|
|
54
60
|
exports.PluginsApiImpl = PluginsApiImpl;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
3
3
|
import { QueryLanguageApi } from '../QueryLanguageApi';
|
|
4
|
-
import { ExpressionFunctionMap } from '../../types';
|
|
5
4
|
import { AdaptableQuery } from '../../PredefinedConfig/Common/AdaptableQuery';
|
|
6
5
|
export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
|
|
7
6
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
@@ -11,7 +10,6 @@ export declare class QueryLanguageApiImpl extends ApiBase implements QueryLangua
|
|
|
11
10
|
getASTForExpression(query: string): any;
|
|
12
11
|
getColumnsFromExpression(expression: string): string[];
|
|
13
12
|
getQueryableColumnIds(): string[] | undefined;
|
|
14
|
-
getModuleExpressionFunctionMap(): ExpressionFunctionMap;
|
|
15
13
|
getAdaptableQueryExpression(query: Partial<AdaptableQuery>): string | undefined;
|
|
16
14
|
getAdaptableQueryExpressionWithColumnFriendlyNames(query: Partial<AdaptableQuery>): string | undefined;
|
|
17
15
|
}
|
|
@@ -83,9 +83,6 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
getModuleExpressionFunctionMap() {
|
|
87
|
-
return this.getExpressionOptions().moduleExpressionFunctions;
|
|
88
|
-
}
|
|
89
86
|
getAdaptableQueryExpression(query) {
|
|
90
87
|
var _a, _b, _c, _d;
|
|
91
88
|
return ((_d = (_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregatedBooleanExpression) !== null && _d !== void 0 ? _d : query.AggregatedScalarExpression);
|
|
@@ -7,7 +7,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
9
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
10
|
-
const react_dom_1 = require("react-dom");
|
|
11
10
|
const react_1 = require("react");
|
|
12
11
|
const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
|
|
13
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
@@ -57,7 +56,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
56
|
statusMessage += statusFurtherInformation;
|
|
58
57
|
}
|
|
59
58
|
const foreColor = messageType ? UIHelper_1.default.getColorByMessageType(messageType) : 'black';
|
|
60
|
-
|
|
59
|
+
this.adaptable.renderReactRoot((0, react_1.createElement)('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
setErrorSystemStatus(statusMessage, statusFurtherInformation) {
|
|
@@ -3,7 +3,7 @@ import { ToolPanelApi } from '../ToolPanelApi';
|
|
|
3
3
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../../PredefinedConfig/ToolPanelState';
|
|
4
4
|
import { CustomToolPanel, ToolPanelButtonContext } from '../../AdaptableOptions/ToolPanelOptions';
|
|
5
5
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
6
|
-
import { AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
|
|
6
|
+
import { AdaptableModuleButtons, AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
|
|
7
7
|
export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
|
|
8
8
|
getToolPanelState(): ToolPanelState;
|
|
9
9
|
showToolPanelPopup(): void;
|
|
@@ -14,6 +14,8 @@ export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
|
|
|
14
14
|
getCustomToolPanelByName(name: string): CustomToolPanel | undefined;
|
|
15
15
|
setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;
|
|
16
16
|
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
|
|
17
|
+
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
18
|
+
getModuleButtons(): AdaptableModuleButtons;
|
|
17
19
|
private setExpandedToolPanelVisibility;
|
|
18
20
|
private setCollapsedToolPanelVisibility;
|
|
19
21
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ToolPanelRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ToolPanelRedux"));
|
|
8
|
+
const ToolPanelRedux_1 = require("../../Redux/ActionsReducers/ToolPanelRedux");
|
|
8
9
|
class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
getToolPanelState() {
|
|
10
11
|
return this.getAdaptableState().ToolPanel;
|
|
@@ -51,6 +52,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
52
|
this.setCollapsedToolPanelVisibility(customToolPanelName);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
55
|
+
setModuleButtons(moduleButtons) {
|
|
56
|
+
this.dispatchAction((0, ToolPanelRedux_1.ToolPanelSetModuleButtons)(moduleButtons));
|
|
57
|
+
}
|
|
58
|
+
getModuleButtons() {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return (_b = (_a = this.getToolPanelState()) === null || _a === void 0 ? void 0 : _a.ModuleButtons) !== null && _b !== void 0 ? _b : [];
|
|
61
|
+
}
|
|
54
62
|
setExpandedToolPanelVisibility(toolPanelName) {
|
|
55
63
|
this.dispatchAction(ToolPanelRedux.ToolPanelExpandToolPanel(toolPanelName));
|
|
56
64
|
}
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -144,4 +144,5 @@ export interface InternalApi {
|
|
|
144
144
|
getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
|
|
145
145
|
getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
|
|
146
146
|
getAdaptableQueryExpressionText(query: Partial<AdaptableQuery>): string;
|
|
147
|
+
shouldKeepDeprecatedConditionalStyles(): boolean;
|
|
147
148
|
}
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IPushPullApi } from './IPushPullApi';
|
|
|
3
3
|
import { Glue42Api } from './Glue42Api';
|
|
4
4
|
import { OpenFinApi } from './OpenFinApi';
|
|
5
5
|
import { FinanceApi } from './FinanceApi';
|
|
6
|
+
import { FinsembleApi } from './FinsembleApi';
|
|
6
7
|
/**
|
|
7
8
|
* API methods dealing with AdapTable plugins
|
|
8
9
|
*/
|
|
@@ -44,4 +45,8 @@ export interface PluginsApi {
|
|
|
44
45
|
* Returns Finance API class in Adaptable API
|
|
45
46
|
*/
|
|
46
47
|
getFinancePluginApi(): FinanceApi;
|
|
48
|
+
/**
|
|
49
|
+
* Returns Finsemble API class in Adaptable API
|
|
50
|
+
*/
|
|
51
|
+
getFinsemblePluginApi(): FinsembleApi;
|
|
47
52
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
2
|
-
import { ExpressionFunctionMap } from '../types';
|
|
3
2
|
import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
|
|
4
3
|
/**
|
|
5
4
|
* Functions related to AdapTableQL (the Adaptable Query Language)
|
|
@@ -42,10 +41,6 @@ export interface QueryLanguageApi {
|
|
|
42
41
|
* Returns all columns that can be used in an Expression
|
|
43
42
|
*/
|
|
44
43
|
getQueryableColumnIds(): string[];
|
|
45
|
-
/**
|
|
46
|
-
* Returns the current Module Expression Map
|
|
47
|
-
*/
|
|
48
|
-
getModuleExpressionFunctionMap(): ExpressionFunctionMap;
|
|
49
44
|
/**
|
|
50
45
|
* Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
|
|
51
46
|
* @param expression expression to be run
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../PredefinedConfig/ToolPanelState';
|
|
2
2
|
import { CustomToolPanel, ToolPanelButtonContext } from '../AdaptableOptions/ToolPanelOptions';
|
|
3
3
|
import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
-
import { AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
|
|
4
|
+
import { AdaptableModuleButtons, AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
|
|
5
5
|
/**
|
|
6
6
|
* Functions for managing the AdapTable ToolPanel Component (at side of grid)
|
|
7
7
|
*/
|
|
@@ -47,4 +47,13 @@ export interface ToolPanelApi {
|
|
|
47
47
|
* @param visibilityMode
|
|
48
48
|
*/
|
|
49
49
|
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the Module buttons in the Adaptable ToolPanel
|
|
52
|
+
* @param moduleButtons the module buttons
|
|
53
|
+
*/
|
|
54
|
+
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the Module buttons from the Adaptable ToolPanel
|
|
57
|
+
*/
|
|
58
|
+
getModuleButtons(): AdaptableModuleButtons;
|
|
50
59
|
}
|
|
@@ -103,7 +103,7 @@ export interface PredicateDefHandlerParams {
|
|
|
103
103
|
export interface PredicateDefToStringParams {
|
|
104
104
|
inputs: any[];
|
|
105
105
|
}
|
|
106
|
-
export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell';
|
|
106
|
+
export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell' | 'formatColumn';
|
|
107
107
|
/**
|
|
108
108
|
* Array of Predicate Defs which are shipped by AdapTable
|
|
109
109
|
*/
|