@adaptabletools/adaptable 15.4.2 → 16.0.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.
- package/base.css +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +232 -226
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -0
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -7
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +24 -0
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +3 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +3 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +36 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +10 -34
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +20 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +6 -35
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +11 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +13 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +4 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -0
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -22
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +6 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/FilterForm/QuickFilterValues.js +8 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +14 -3
- package/src/agGrid/Adaptable.js +138 -38
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +360 -143
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +3 -0
- package/src/types.d.ts +13 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserInterfaceApiImpl = void 0;
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
6
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
7
6
|
class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
8
7
|
getColorPalette() {
|
|
9
8
|
let colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
@@ -24,10 +23,6 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
24
23
|
getStyleClassNames() {
|
|
25
24
|
return this.getUserInterfaceOptions().styleClassNames;
|
|
26
25
|
}
|
|
27
|
-
getAllPermittedValuesItems() {
|
|
28
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllPermittedValuesItems', 'getPermittedValuesItems');
|
|
29
|
-
return this.getPermittedValuesItems();
|
|
30
|
-
}
|
|
31
26
|
getPermittedValuesItems() {
|
|
32
27
|
var _a, _b;
|
|
33
28
|
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.permittedValues) !== null && _b !== void 0 ? _b : [];
|
|
@@ -76,6 +71,8 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
71
|
if (column) {
|
|
77
72
|
const permittedValuesParams = {
|
|
78
73
|
adaptableApi: this.getAdaptableApi(),
|
|
74
|
+
userName: this.getOptions().userName,
|
|
75
|
+
adaptableId: this.getOptions().adaptableId,
|
|
79
76
|
column: column,
|
|
80
77
|
};
|
|
81
78
|
return permittedValues(permittedValuesParams);
|
|
@@ -122,10 +119,6 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
122
119
|
}
|
|
123
120
|
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
124
121
|
}
|
|
125
|
-
getAllEditLookUpItems() {
|
|
126
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllEditLookUpItems', 'getEditLookUpItems');
|
|
127
|
-
return this.getEditLookUpItems();
|
|
128
|
-
}
|
|
129
122
|
getEditLookUpItems() {
|
|
130
123
|
return this.getUserInterfaceOptions().editLookUpItems || [];
|
|
131
124
|
}
|
|
@@ -162,7 +155,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
162
155
|
getAdaptableObjectTags() {
|
|
163
156
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
164
157
|
if (objectTags != null && typeof objectTags === 'function') {
|
|
165
|
-
return objectTags({
|
|
158
|
+
return objectTags({
|
|
159
|
+
adaptableApi: this.adaptable.api,
|
|
160
|
+
userName: this.getOptions().userName,
|
|
161
|
+
adaptableId: this.getOptions().adaptableId,
|
|
162
|
+
});
|
|
166
163
|
}
|
|
167
164
|
else {
|
|
168
165
|
let arr = objectTags;
|
|
@@ -171,5 +168,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
171
168
|
}
|
|
172
169
|
}
|
|
173
170
|
}
|
|
171
|
+
getCustomIconDefinition(iconName) {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
let customIcon = undefined;
|
|
174
|
+
const customIcons = (_b = (_a = this.getAdaptableApi().optionsApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.customIcons) !== null && _b !== void 0 ? _b : [];
|
|
175
|
+
customIcon = customIcons.find((icon) => icon.name === iconName);
|
|
176
|
+
if (customIcon) {
|
|
177
|
+
return customIcon.icon;
|
|
178
|
+
}
|
|
179
|
+
return customIcon;
|
|
180
|
+
}
|
|
174
181
|
}
|
|
175
182
|
exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
3
|
-
import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/
|
|
3
|
+
import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/ActionRowOptions';
|
|
4
4
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ActionRowInternalApi extends ApiBase {
|
|
6
6
|
buildRowEditForm(rowNode: IRowNode): AdaptableForm<EditActionRowFormContext>;
|
|
7
7
|
buildRowCreateForm(clonedRowNode?: IRowNode): AdaptableForm<CreateActionRowFormContext>;
|
|
8
8
|
private get actionRowFormOptions();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ActionRowInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
class
|
|
5
|
+
class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
buildRowEditForm(rowNode) {
|
|
7
7
|
return this.buildActionRow('rowEdited', rowNode);
|
|
8
8
|
}
|
|
@@ -10,8 +10,7 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
10
10
|
return this.buildActionRow('rowCreated', clonedRowNode);
|
|
11
11
|
}
|
|
12
12
|
get actionRowFormOptions() {
|
|
13
|
-
|
|
14
|
-
return (_a = this.getActionOptions().actionRowButtonOptions) === null || _a === void 0 ? void 0 : _a.actionRowFormOptions;
|
|
13
|
+
return this.getActionRowOptions().actionRowFormOptions;
|
|
15
14
|
}
|
|
16
15
|
get adaptableInstance() {
|
|
17
16
|
return this.getAdaptableApi().internalApi.getAdaptableInstance();
|
|
@@ -46,6 +45,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
46
45
|
return {
|
|
47
46
|
rowNode,
|
|
48
47
|
adaptableApi: this.getAdaptableApi(),
|
|
48
|
+
userName: this.getOptions().userName,
|
|
49
|
+
adaptableId: this.getOptions().adaptableId,
|
|
49
50
|
type: type,
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -85,6 +86,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
85
86
|
type: 'rowCreated',
|
|
86
87
|
formData: context.formData,
|
|
87
88
|
adaptableApi: context.adaptableApi,
|
|
89
|
+
userName: this.getOptions().userName,
|
|
90
|
+
adaptableId: this.getOptions().adaptableId,
|
|
88
91
|
clonedRowNode: rowNode,
|
|
89
92
|
}
|
|
90
93
|
: {
|
|
@@ -92,6 +95,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
92
95
|
formData: context.formData,
|
|
93
96
|
rowNode: rowNode,
|
|
94
97
|
adaptableApi: context.adaptableApi,
|
|
98
|
+
userName: this.getOptions().userName,
|
|
99
|
+
adaptableId: this.getOptions().adaptableId,
|
|
95
100
|
};
|
|
96
101
|
this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
97
102
|
(_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
@@ -136,6 +141,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
136
141
|
rowNode,
|
|
137
142
|
column,
|
|
138
143
|
adaptableApi: this.getAdaptableApi(),
|
|
144
|
+
userName: this.getOptions().userName,
|
|
145
|
+
adaptableId: this.getOptions().adaptableId,
|
|
139
146
|
type: type,
|
|
140
147
|
};
|
|
141
148
|
}
|
|
@@ -167,4 +174,4 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
167
174
|
}));
|
|
168
175
|
}
|
|
169
176
|
}
|
|
170
|
-
exports.
|
|
177
|
+
exports.ActionRowInternalApi = ActionRowInternalApi;
|
|
@@ -7,7 +7,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
|
7
7
|
import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
8
8
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
9
9
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
10
|
-
import { AdaptableIcon, AdaptableObjectLookupCriteria,
|
|
10
|
+
import { AdaptableIcon, AdaptableObjectLookupCriteria, AdaptableQuery, AdaptableState, BaseContext } from '../../types';
|
|
11
11
|
import { IValidationService } from '../../Utilities/Services/Interface/IValidationService';
|
|
12
12
|
import { IModuleService } from '../../Utilities/Services/Interface/IModuleService';
|
|
13
13
|
import { IReportService } from '../../Utilities/Services/Interface/IReportService';
|
|
@@ -52,18 +52,9 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
52
52
|
isGridInTreeMode(): boolean;
|
|
53
53
|
getToolbarTitle(): string;
|
|
54
54
|
buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
57
|
-
*/
|
|
58
|
-
getPrimaryKey(): any;
|
|
59
55
|
getAdaptableInstance(): IAdaptable;
|
|
60
|
-
getAgGridInstance(): any;
|
|
61
56
|
getPredefinedConfig(): any;
|
|
62
57
|
getState(): AdaptableState;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
65
|
-
*/
|
|
66
|
-
getAdaptableOptions(): AdaptableOptions;
|
|
67
58
|
getValidationService(): IValidationService;
|
|
68
59
|
getModuleService(): IModuleService;
|
|
69
60
|
getDataService(): IDataService;
|
|
@@ -79,30 +79,15 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
79
79
|
var _a;
|
|
80
80
|
return Object.assign(Object.assign({}, config), { rowData: (_a = config.rowNode) === null || _a === void 0 ? void 0 : _a.data, changedAt: Date.now() });
|
|
81
81
|
}
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
84
|
-
*/
|
|
85
|
-
getPrimaryKey() {
|
|
86
|
-
return this.adaptable.adaptableOptions.primaryKey;
|
|
87
|
-
}
|
|
88
82
|
getAdaptableInstance() {
|
|
89
83
|
return this.adaptable;
|
|
90
84
|
}
|
|
91
|
-
getAgGridInstance() {
|
|
92
|
-
return this.adaptable.adaptableOptions.gridOptions;
|
|
93
|
-
}
|
|
94
85
|
getPredefinedConfig() {
|
|
95
86
|
return this.adaptable.adaptableOptions.predefinedConfig;
|
|
96
87
|
}
|
|
97
88
|
getState() {
|
|
98
89
|
return this.getAdaptableState();
|
|
99
90
|
}
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
102
|
-
*/
|
|
103
|
-
getAdaptableOptions() {
|
|
104
|
-
return this.getOptions();
|
|
105
|
-
}
|
|
106
91
|
getValidationService() {
|
|
107
92
|
return this.adaptable.ValidationService;
|
|
108
93
|
}
|
|
@@ -286,7 +271,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
286
271
|
}
|
|
287
272
|
getCorrectEnglishVariant(wordToSpell) {
|
|
288
273
|
if (wordToSpell.includes('our')) {
|
|
289
|
-
return this.
|
|
274
|
+
return this.getUserInterfaceOptions().englishVariant == 'GB'
|
|
290
275
|
? wordToSpell
|
|
291
276
|
: wordToSpell.replace('our', 'or');
|
|
292
277
|
}
|
|
@@ -315,6 +300,8 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
315
300
|
return this.adaptable.adaptableOptions.userInterfaceOptions
|
|
316
301
|
.objectTags({
|
|
317
302
|
adaptableApi: this.adaptable.api,
|
|
303
|
+
userName: this.getOptions().userName,
|
|
304
|
+
adaptableId: this.getOptions().adaptableId,
|
|
318
305
|
})
|
|
319
306
|
.filter((tag) => typeof tag === 'string');
|
|
320
307
|
}
|
|
@@ -336,6 +323,8 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
336
323
|
layouts: this.adaptable.api.layoutApi.getLayouts(),
|
|
337
324
|
objectTags: this.getAdaptableApi().userInterfaceApi.getAdaptableObjectTags(),
|
|
338
325
|
adaptableApi: this.adaptable.api,
|
|
326
|
+
userName: this.getOptions().userName,
|
|
327
|
+
adaptableId: this.getOptions().adaptableId,
|
|
339
328
|
};
|
|
340
329
|
const customGeneratedTags = this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions.autoGenerateTagsForLayouts(autoGenerateTagsForLayoutsContext);
|
|
341
330
|
// sanitize the provided tags, just to be sure that the user does NOT break the UI
|
|
@@ -359,14 +348,14 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
359
348
|
return adaptableObjectTag;
|
|
360
349
|
}
|
|
361
350
|
getAdaptableQueryExpressionText(query) {
|
|
362
|
-
var _a;
|
|
351
|
+
var _a, _b;
|
|
363
352
|
if (!query) {
|
|
364
353
|
return '';
|
|
365
354
|
}
|
|
366
|
-
const displayColumnFriendlyNames = (_a = this.adaptable.adaptableOptions.adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.displayColumnFriendlyNamesForExpressions;
|
|
355
|
+
const displayColumnFriendlyNames = (_b = (_a = this.adaptable.adaptableOptions.adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.displayColumnFriendlyNamesForExpressions;
|
|
367
356
|
return displayColumnFriendlyNames
|
|
368
|
-
? this.adaptable.api.
|
|
369
|
-
: this.adaptable.api.
|
|
357
|
+
? this.adaptable.api.expressionApi.getAdaptableQueryExpressionWithColumnFriendlyNames(query)
|
|
358
|
+
: this.adaptable.api.expressionApi.getAdaptableQueryExpression(query);
|
|
370
359
|
}
|
|
371
360
|
deleteConditionalStyles(conditionalStyles) {
|
|
372
361
|
conditionalStyles.forEach((cs) => {
|
|
@@ -82,9 +82,12 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
82
82
|
* @param alertToFire Alerts which has just triggered
|
|
83
83
|
*/
|
|
84
84
|
publishAlertFiredEvent(alertToFire) {
|
|
85
|
+
const adaptableApi = this.getAdaptableApi();
|
|
85
86
|
const alertFiredInfo = {
|
|
86
|
-
adaptableApi:
|
|
87
|
+
adaptableApi: adaptableApi,
|
|
87
88
|
alert: alertToFire,
|
|
89
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
90
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
88
91
|
};
|
|
89
92
|
this.getEventApi().emit('AlertFired', alertFiredInfo);
|
|
90
93
|
}
|
|
@@ -431,7 +434,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
431
434
|
if (!rowNode) {
|
|
432
435
|
rowNode = this.getAdaptableApi().gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
|
|
433
436
|
}
|
|
434
|
-
const isValidExpression = this.getAdaptableApi().
|
|
437
|
+
const isValidExpression = this.getAdaptableApi().expressionApi.isValidBooleanExpression(expression, 'Alert', `Invalid Alert boolean expression '${expression}'`);
|
|
435
438
|
const isSatisfiedExpression = isValidExpression &&
|
|
436
439
|
this.getAdaptableApi()
|
|
437
440
|
.internalApi.getQueryLanguageService()
|
|
@@ -441,7 +444,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
441
444
|
}
|
|
442
445
|
}
|
|
443
446
|
else if (alertDefinition.Rule.AggregatedBooleanExpression) {
|
|
444
|
-
const isValidExpression = this.getAdaptableApi().
|
|
447
|
+
const isValidExpression = this.getAdaptableApi().expressionApi.isValidAggregatedBooleanExpression(alertDefinition.Rule.AggregatedBooleanExpression, 'Alert', `Invalid Alert boolean expression '${alertDefinition.Rule.AggregatedBooleanExpression}'`);
|
|
445
448
|
const isSatisfiedExpression = isValidExpression &&
|
|
446
449
|
this.isAggregationAlertTriggered(alertDefinition, dataChangedEvent);
|
|
447
450
|
if (isSatisfiedExpression) {
|
|
@@ -460,7 +463,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
460
463
|
}
|
|
461
464
|
isAggregationAlertTriggered(alertDefinition, dataChangedEvent) {
|
|
462
465
|
const changedColumn = dataChangedEvent.column.columnId;
|
|
463
|
-
const aggregationColumns = this.getAdaptableApi().
|
|
466
|
+
const aggregationColumns = this.getAdaptableApi().expressionApi.getColumnsFromExpression(alertDefinition.Rule.AggregatedBooleanExpression);
|
|
464
467
|
if (!aggregationColumns.includes(changedColumn)) {
|
|
465
468
|
return false;
|
|
466
469
|
}
|
|
@@ -496,11 +499,11 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
496
499
|
const rule = alertDefinition.Rule;
|
|
497
500
|
if (rule) {
|
|
498
501
|
if (rule.Predicates) {
|
|
499
|
-
return this.getAdaptableApi().
|
|
502
|
+
return this.getAdaptableApi().expressionApi.internalApi.evaluatePredicatesInAdaptableQL('Alert', alertDefinition, alertDefinition.Rule.Predicates);
|
|
500
503
|
}
|
|
501
504
|
else {
|
|
502
505
|
var expression = this.getExpressionForAlertRule(rule);
|
|
503
|
-
return this.getAdaptableApi().
|
|
506
|
+
return this.getAdaptableApi().expressionApi.internalApi.evaluateExpressionInAdaptableQL('Alert', alertDefinition, expression);
|
|
504
507
|
}
|
|
505
508
|
}
|
|
506
509
|
return true;
|
|
@@ -27,7 +27,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
27
27
|
this.getCalculatedColumnApi()
|
|
28
28
|
.getCalculatedColumns()
|
|
29
29
|
.forEach((calculatedColumn) => {
|
|
30
|
-
if (this.
|
|
30
|
+
if (this.getExpressionApi().internalApi.isColumnReferencedInExpression(columnId, this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) {
|
|
31
31
|
calcColumns.push(calculatedColumn);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -38,7 +38,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
38
38
|
* @param calculatedColumn Calculated Column to check
|
|
39
39
|
*/
|
|
40
40
|
getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
|
|
41
|
-
const columnIds = this.adaptable.api.
|
|
41
|
+
const columnIds = this.adaptable.api.expressionApi.getColumnsFromExpression(this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
42
42
|
return columnIds;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { ColumnValuesComparer } from '../../AdaptableOptions/
|
|
3
|
+
import { ColumnValuesComparer } from '../../AdaptableOptions/CustomSortOptions';
|
|
4
4
|
export declare class CustomSortInternalApi extends ApiBase {
|
|
5
5
|
getCustomSortComparer(column: AdaptableColumn): ColumnValuesComparer | undefined;
|
|
6
6
|
}
|
|
@@ -5,7 +5,7 @@ const ApiBase_1 = require("../Implementation/ApiBase");
|
|
|
5
5
|
class CustomSortInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
getCustomSortComparer(column) {
|
|
7
7
|
var _a;
|
|
8
|
-
return (_a = this.
|
|
8
|
+
return (_a = this.getCustomSortOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.adaptable.api.scopeApi.isColumnInScope(column, csc.scope));
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.CustomSortInternalApi = CustomSortInternalApi;
|
|
@@ -26,6 +26,8 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
|
|
|
26
26
|
newDashboardState,
|
|
27
27
|
isToolbarStateChangedToVisible,
|
|
28
28
|
isToolbarStateChangedToHidden,
|
|
29
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
30
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
29
31
|
};
|
|
30
32
|
if (!(0, isEqual_1.default)(oldDashboardState, newDashboardState)) {
|
|
31
33
|
this.adaptable.api.eventApi.emitSync('DashboardChanged', dashboardChangedInfo);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { DataSet } from '../../AdaptableOptions/
|
|
2
|
+
import { DataSet } from '../../AdaptableOptions/DataSetOptions';
|
|
3
3
|
export declare class DataSetInternalApi extends ApiBase {
|
|
4
4
|
/**
|
|
5
5
|
* Fires the DataSet Selected Event
|
|
@@ -11,7 +11,8 @@ class DataSetInternalApi extends ApiBase_1.ApiBase {
|
|
|
11
11
|
if (this.adaptable.isLive) {
|
|
12
12
|
const dataSetSelectedInfo = {
|
|
13
13
|
adaptableApi: this.adaptable.api,
|
|
14
|
-
dataSet,
|
|
14
|
+
dataSet, userName: this.adaptable.api.optionsApi.getUserName(),
|
|
15
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
15
16
|
};
|
|
16
17
|
this.adaptable.api.eventApi.emit('DataSetSelected', dataSetSelectedInfo);
|
|
17
18
|
}
|
|
@@ -14,7 +14,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
14
14
|
return true;
|
|
15
15
|
}
|
|
16
16
|
// if its a Custom Report then the User has to run it so we just ignore completely
|
|
17
|
-
if (this.getExportApi().
|
|
17
|
+
if (this.getExportApi().isExternalReport(report)) {
|
|
18
18
|
return false;
|
|
19
19
|
}
|
|
20
20
|
// Start with the DataChanged Column and go through all possibilities
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { AdaptableQLModule } from '../../PredefinedConfig/Common/Types';
|
|
3
3
|
import { AdaptableObject, AdaptablePredicate } from '../../types';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ExpressionInternalApi extends ApiBase {
|
|
5
5
|
/**
|
|
6
6
|
* Checks if a column is referenced in a given Expression
|
|
7
7
|
* @param columnId Column to Check
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ExpressionInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
class
|
|
5
|
+
class ExpressionInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
/**
|
|
7
7
|
* Checks if a column is referenced in a given Expression
|
|
8
8
|
* @param columnId Column to Check
|
|
9
9
|
* @param expression Expression to Lookup
|
|
10
10
|
*/
|
|
11
11
|
isColumnReferencedInExpression(columnId, expression) {
|
|
12
|
-
const colIds = this.
|
|
12
|
+
const colIds = this.getExpressionApi().getColumnsFromExpression(expression);
|
|
13
13
|
return colIds.some((c) => c === columnId);
|
|
14
14
|
}
|
|
15
15
|
evaluateExpressionInAdaptableQL(module, object, expression) {
|
|
@@ -20,6 +20,8 @@ class QueryLanguageInternalApi extends ApiBase_1.ApiBase {
|
|
|
20
20
|
}
|
|
21
21
|
const context = {
|
|
22
22
|
adaptableApi: this.getAdaptableApi(),
|
|
23
|
+
userName: this.getOptions().userName,
|
|
24
|
+
adaptableId: this.getOptions().adaptableId,
|
|
23
25
|
module,
|
|
24
26
|
};
|
|
25
27
|
if (object) {
|
|
@@ -28,7 +30,7 @@ class QueryLanguageInternalApi extends ApiBase_1.ApiBase {
|
|
|
28
30
|
if (expression) {
|
|
29
31
|
context.expression = expression;
|
|
30
32
|
context.referencedColumns = this.getAdaptableApi()
|
|
31
|
-
.
|
|
33
|
+
.expressionApi.getColumnsFromExpression(expression)
|
|
32
34
|
.map((columnId) => this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId));
|
|
33
35
|
}
|
|
34
36
|
return !evaluateExpressionExternallyFn(context);
|
|
@@ -41,6 +43,8 @@ class QueryLanguageInternalApi extends ApiBase_1.ApiBase {
|
|
|
41
43
|
}
|
|
42
44
|
const context = {
|
|
43
45
|
adaptableApi: this.getAdaptableApi(),
|
|
46
|
+
userName: this.getAdaptableApi().optionsApi.getUserName(),
|
|
47
|
+
adaptableId: this.getAdaptableApi().optionsApi.getAdaptableId(),
|
|
44
48
|
module,
|
|
45
49
|
};
|
|
46
50
|
if (object) {
|
|
@@ -55,4 +59,4 @@ class QueryLanguageInternalApi extends ApiBase_1.ApiBase {
|
|
|
55
59
|
return !evaluateExpressionExternallyFn(context);
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
|
-
exports.
|
|
62
|
+
exports.ExpressionInternalApi = ExpressionInternalApi;
|
|
@@ -172,9 +172,12 @@ class FilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
172
172
|
*/
|
|
173
173
|
fireFilterAppliedEvent() {
|
|
174
174
|
if (this.adaptable.isLive) {
|
|
175
|
+
const adaptableApi = this.getAdaptableApi();
|
|
175
176
|
const filterAppliedInfo = {
|
|
176
177
|
columnFilters: this.getFilterApi().getColumnFilters(),
|
|
177
|
-
adaptableApi:
|
|
178
|
+
adaptableApi: adaptableApi,
|
|
179
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
180
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
178
181
|
};
|
|
179
182
|
this.adaptable.api.eventApi.emit('FilterApplied', filterAppliedInfo);
|
|
180
183
|
}
|
|
@@ -196,7 +196,7 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
196
196
|
return this.adaptable.api.predicateApi.handleColumnPredicates((_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, params, false);
|
|
197
197
|
}
|
|
198
198
|
evaluateExpression(formatColumn, node) {
|
|
199
|
-
const isValidExpression = this.adaptable.api.
|
|
199
|
+
const isValidExpression = this.adaptable.api.expressionApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
|
|
200
200
|
return (isValidExpression &&
|
|
201
201
|
this.adaptable.api.internalApi
|
|
202
202
|
.getQueryLanguageService()
|
|
@@ -18,6 +18,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
18
18
|
const gridSortedInfo = {
|
|
19
19
|
adaptableSortState: adaptableSortState,
|
|
20
20
|
adaptableApi: adaptableApi,
|
|
21
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
22
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
21
23
|
};
|
|
22
24
|
adaptableApi.eventApi.emit('GridSorted', gridSortedInfo);
|
|
23
25
|
}
|
|
@@ -30,6 +32,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
30
32
|
const cellChangedInfo = {
|
|
31
33
|
adaptableApi: this.adaptable.api,
|
|
32
34
|
cellChange: cellDataChangedInfo,
|
|
35
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
36
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
33
37
|
};
|
|
34
38
|
this.adaptable.api.eventApi.emit('CellChanged', cellChangedInfo);
|
|
35
39
|
}
|
|
@@ -45,6 +49,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
45
49
|
rowTrigger,
|
|
46
50
|
dataRows,
|
|
47
51
|
rowNodes,
|
|
52
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
53
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
48
54
|
};
|
|
49
55
|
this.adaptable.api.eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
50
56
|
}
|
|
@@ -220,6 +226,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
220
226
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
221
227
|
const editLookUpContext = {
|
|
222
228
|
adaptableApi: this.adaptable.api,
|
|
229
|
+
userName: this.getOptions().userName,
|
|
230
|
+
adaptableId: this.getOptions().adaptableId,
|
|
223
231
|
column: column,
|
|
224
232
|
gridCell,
|
|
225
233
|
};
|
|
@@ -16,11 +16,14 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
16
16
|
* @param newState Layout State after change
|
|
17
17
|
*/
|
|
18
18
|
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
19
|
+
const adaptableApi = this.getAdaptableApi();
|
|
19
20
|
const layoutChangedInfo = {
|
|
20
|
-
adaptableApi:
|
|
21
|
+
adaptableApi: adaptableApi,
|
|
21
22
|
actionName: trigger,
|
|
22
23
|
oldLayoutState: oldSate,
|
|
23
24
|
newLayoutState: newState,
|
|
25
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
26
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
24
27
|
};
|
|
25
28
|
if (!skipEqualityCheck && (0, isEqual_1.default)(oldSate, newState)) {
|
|
26
29
|
return;
|
|
@@ -152,6 +155,8 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
152
155
|
module,
|
|
153
156
|
layout,
|
|
154
157
|
adaptableApi: this.getAdaptableApi(),
|
|
158
|
+
userName: this.getOptions().userName,
|
|
159
|
+
adaptableId: this.getOptions().adaptableId,
|
|
155
160
|
};
|
|
156
161
|
return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
|
|
157
162
|
}
|
|
@@ -26,6 +26,8 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
26
26
|
if (typeof systemFilterPredicates === 'function') {
|
|
27
27
|
const systemPredicateContext = {
|
|
28
28
|
adaptableApi: this.adaptable.api,
|
|
29
|
+
userName: this.getOptions().userName,
|
|
30
|
+
adaptableId: this.getOptions().adaptableId,
|
|
29
31
|
systemPredicateDefs: this.getPredicateApi()
|
|
30
32
|
.getSystemPredicateDefs()
|
|
31
33
|
.filter((p) => p.moduleScope.includes('filter')),
|
|
@@ -51,6 +53,8 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
51
53
|
if (typeof systemAlertPredicates === 'function') {
|
|
52
54
|
const systemPredicateContext = {
|
|
53
55
|
adaptableApi: this.adaptable.api,
|
|
56
|
+
userName: this.getOptions().userName,
|
|
57
|
+
adaptableId: this.getOptions().adaptableId,
|
|
54
58
|
systemPredicateDefs: this.getPredicateApi()
|
|
55
59
|
.getSystemPredicateDefs()
|
|
56
60
|
.filter((p) => p.moduleScope.includes('alert')),
|
|
@@ -66,6 +70,8 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
66
70
|
if (typeof systemBadgeStylePredicates === 'function') {
|
|
67
71
|
const systemPredicateContext = {
|
|
68
72
|
adaptableApi: this.adaptable.api,
|
|
73
|
+
userName: this.getOptions().userName,
|
|
74
|
+
adaptableId: this.getOptions().adaptableId,
|
|
69
75
|
systemPredicateDefs: this.getPredicateApi()
|
|
70
76
|
.getSystemPredicateDefs()
|
|
71
77
|
.filter((p) => p.moduleScope.includes('badgeStyle')),
|
|
@@ -91,6 +97,8 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
91
97
|
if (typeof systemFormatColumnPredicates === 'function') {
|
|
92
98
|
const systemPredicateContext = {
|
|
93
99
|
adaptableApi: this.adaptable.api,
|
|
100
|
+
userName: this.getOptions().userName,
|
|
101
|
+
adaptableId: this.getOptions().adaptableId,
|
|
94
102
|
systemPredicateDefs: this.getPredicateApi()
|
|
95
103
|
.getSystemPredicateDefs()
|
|
96
104
|
.filter((p) => p.moduleScope.includes('formatColumn')),
|
|
@@ -116,6 +124,8 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
116
124
|
if (typeof systemFlashingCellPredicates === 'function') {
|
|
117
125
|
const systemPredicateContext = {
|
|
118
126
|
adaptableApi: this.adaptable.api,
|
|
127
|
+
userName: this.getOptions().userName,
|
|
128
|
+
adaptableId: this.getOptions().adaptableId,
|
|
119
129
|
systemPredicateDefs: this.getPredicateApi()
|
|
120
130
|
.getSystemPredicateDefs()
|
|
121
131
|
.filter((p) => p.moduleScope.includes('flashingcell')),
|
|
@@ -45,9 +45,11 @@ class QueryInternalApi extends ApiBase_1.ApiBase {
|
|
|
45
45
|
const queryRunInfo = {
|
|
46
46
|
currentQuery,
|
|
47
47
|
queryAST: currentQuery
|
|
48
|
-
? adaptableApi.
|
|
48
|
+
? adaptableApi.expressionApi.getASTForExpression(currentQuery)
|
|
49
49
|
: null,
|
|
50
50
|
adaptableApi: adaptableApi,
|
|
51
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
52
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
51
53
|
};
|
|
52
54
|
adaptableApi.eventApi.emit('QueryRun', queryRunInfo);
|
|
53
55
|
}
|
|
@@ -10,9 +10,12 @@ class SystemStatusInternalApi extends ApiBase_1.ApiBase {
|
|
|
10
10
|
* @param systemStatusMessageInfo Info about new System Status Message
|
|
11
11
|
*/
|
|
12
12
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
13
|
+
const adaptableApi = this.getAdaptableApi();
|
|
13
14
|
const systemStatusMessageDisplayedInfo = {
|
|
14
|
-
adaptableApi
|
|
15
|
+
adaptableApi,
|
|
15
16
|
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
17
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
18
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
16
19
|
};
|
|
17
20
|
this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
18
21
|
}
|
|
@@ -12,6 +12,8 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
|
|
|
12
12
|
const teamSharingEntityChangedInfo = {
|
|
13
13
|
adaptableApi: this.adaptable.api,
|
|
14
14
|
sharedEntity: sharedEntity,
|
|
15
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
16
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
15
17
|
};
|
|
16
18
|
this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
|
|
17
19
|
}
|