@adaptabletools/adaptable 14.0.0-canary.3 → 14.0.1-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.
- package/bundle.cjs.js +196 -191
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +5 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +16 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +4 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +1 -0
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +3 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +3 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +15 -15
- package/src/AdaptableOptions/FilterOptions.d.ts +9 -8
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -11
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -9
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -7
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -0
- package/src/AdaptableOptions/SearchOptions.d.ts +1 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +0 -4
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -0
- package/src/Api/AlertApi.d.ts +3 -3
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/GridApi.d.ts +5 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +2 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +7 -0
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -2
- package/src/Api/Internal/PredicateInternalApi.js +0 -7
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +0 -5
- package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
- package/src/Api/StyledColumnApi.d.ts +7 -2
- package/src/Api/TeamSharingApi.d.ts +8 -0
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +2 -6
- package/src/PredefinedConfig/Common/Menu.d.ts +5 -5
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +6 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +2 -3
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -6
- package/src/Strategy/FreeTextColumnModule.js +24 -5
- package/src/Strategy/StyledColumnModule.js +60 -28
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +0 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +11 -10
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -7
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +26 -52
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +13 -13
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +101 -44
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +18 -10
- package/src/agGrid/Adaptable.d.ts +0 -1
- package/src/agGrid/Adaptable.js +10 -21
- package/src/agGrid/agGridHelper.js +3 -0
- package/src/components/ExpressionEditor/BaseEditorInput.js +42 -7
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
- package/src/components/ExpressionEditor/editorButtonsSearch.js +8 -12
- package/src/metamodel/adaptable.metamodel.d.ts +106 -58
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +5 -9
- package/src/parser/src/utils.js +6 -3
- package/src/types.d.ts +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -56,11 +56,6 @@ export interface ExpressionFunction {
|
|
|
56
56
|
* Removes entry from Expression Editor's Functions dropdown
|
|
57
57
|
*/
|
|
58
58
|
isHiddenFromMenu?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the AdaptableQL Function returns true, if so can be used as Query
|
|
61
|
-
* @deprecated is equivalent with `returnType === 'boolean'`
|
|
62
|
-
*/
|
|
63
|
-
isPredicate?: boolean;
|
|
64
59
|
/**
|
|
65
60
|
* What the AdaptableQL Function does
|
|
66
61
|
*/
|
|
@@ -70,15 +65,15 @@ export interface ExpressionFunction {
|
|
|
70
65
|
*/
|
|
71
66
|
signatures?: string[];
|
|
72
67
|
/**
|
|
73
|
-
*
|
|
68
|
+
* Type returned by Function: boolean, number, string, date, any
|
|
74
69
|
*/
|
|
75
70
|
returnType?: 'boolean' | 'number' | 'string' | 'date' | 'any';
|
|
76
71
|
/**
|
|
77
|
-
* Used to group Functions
|
|
72
|
+
* Used to group Functions Expression Editor dropdown
|
|
78
73
|
*/
|
|
79
|
-
category?:
|
|
74
|
+
category?: ExpressionCategory;
|
|
80
75
|
/**
|
|
81
|
-
* Examples that
|
|
76
|
+
* Examples that demonstrate the AdaptableQL Function
|
|
82
77
|
*/
|
|
83
78
|
examples?: string[];
|
|
84
79
|
/**
|
|
@@ -86,6 +81,7 @@ export interface ExpressionFunction {
|
|
|
86
81
|
*/
|
|
87
82
|
hasEagerEvaluation?: boolean;
|
|
88
83
|
}
|
|
84
|
+
export declare type ExpressionCategory = 'logical' | 'comparison' | 'strings' | 'maths' | 'dates' | 'conditional' | 'special' | string;
|
|
89
85
|
/**
|
|
90
86
|
* Defines how an AdaptableQL Function is described in Expression Editor
|
|
91
87
|
*/
|
package/src/parser/src/utils.js
CHANGED
|
@@ -7,7 +7,8 @@ function getCurrentToken(tokens, offset) {
|
|
|
7
7
|
}
|
|
8
8
|
exports.getCurrentToken = getCurrentToken;
|
|
9
9
|
function walker(node, callback) {
|
|
10
|
-
if (
|
|
10
|
+
if (node == undefined ||
|
|
11
|
+
typeof node === 'boolean' ||
|
|
11
12
|
typeof node === 'number' ||
|
|
12
13
|
typeof node === 'string') {
|
|
13
14
|
return;
|
|
@@ -16,8 +17,10 @@ function walker(node, callback) {
|
|
|
16
17
|
return node.map((n) => walker(n, callback));
|
|
17
18
|
}
|
|
18
19
|
// isObject
|
|
19
|
-
node.args
|
|
20
|
-
|
|
20
|
+
if (node.args) {
|
|
21
|
+
node.args.map((n) => walker(n, callback));
|
|
22
|
+
callback(node);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
exports.walker = walker;
|
|
23
26
|
function findPathTo(node, offset) {
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, } from './../src/parser/src/types';
|
|
1
|
+
export type { ExpressionFunction, ExpressionFunctionDocBlock, ExpressionFunctionHandler, ExpressionContext, ExpressionFunctionMap, ExpressionCategory, } from './../src/parser/src/types';
|
|
2
2
|
export type { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard, } from './AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
3
3
|
export type { BooleanFunctionName } from './Utilities/ExpressionFunctions/booleanExpressionFunctions';
|
|
4
4
|
export type { ScalarFunctionName } from './Utilities/ExpressionFunctions/scalarExpressionFunctions';
|
|
@@ -13,7 +13,7 @@ export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/
|
|
|
13
13
|
export type { AlertOptions, ActionHandler, AlertForm, AlertFormContext, AlertMessageContext, } from './AdaptableOptions/AlertOptions';
|
|
14
14
|
export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
|
|
15
15
|
export type { EditOptions, ValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, } from './AdaptableOptions/EditOptions';
|
|
16
|
-
export type { ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionColumnContext, ActionColumn, ActionColumnSettings, ActionOptions, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, } from './AdaptableOptions/ActionOptions';
|
|
16
|
+
export type { ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionColumnContext, ActionColumn, ActionColumnSettings, ActionOptions, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, ActionRowButtonsContext, } from './AdaptableOptions/ActionOptions';
|
|
17
17
|
export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, ServerReport, DataFormatType, ExportFormContext, ReportContext, } from './AdaptableOptions/ExportOptions';
|
|
18
18
|
export type { GeneralOptions, ColumnValuesComparer, DataSet, DataSetFormContext, UnbalancedGroupsKeyContext, Holidays, HolidayContext, } from './AdaptableOptions/GeneralOptions';
|
|
19
19
|
export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
|
|
@@ -23,7 +23,7 @@ export type { ChartingOptions, ChartContainer } from './AdaptableOptions/Chartin
|
|
|
23
23
|
export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
|
|
24
24
|
export type { MasterDetailPluginOptions, DetailInitContext, } from './AdaptableOptions/MasterDetailPluginOptions';
|
|
25
25
|
export type { FinsemblePluginOptions, FinsemblePluginStateOptions, } from './AdaptableOptions/FinsemblePluginOptions';
|
|
26
|
-
export type { FinancePluginOptions,
|
|
26
|
+
export type { FinancePluginOptions, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, FDC3DesktopAgent, CustomFDC3Column, CustomFDC3Intent, } from './AdaptableOptions/FinancePluginOptions';
|
|
27
27
|
export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
|
|
28
28
|
export type { FilterOptions } from './AdaptableOptions/FilterOptions';
|
|
29
29
|
export type { SearchOptions } from './AdaptableOptions/SearchOptions';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "14.0.
|
|
1
|
+
declare const _default: "14.0.1-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 = '14.0.
|
|
3
|
+
exports.default = '14.0.1-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|