@adaptabletools/adaptable-cjs 18.0.0-canary.26 → 18.0.0-canary.28
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.map +1 -1
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +7 -19
- package/src/AdaptableOptions/MenuOptions.js +0 -98
- package/src/Api/Implementation/ColumnApiImpl.js +6 -6
- package/src/Api/Implementation/ExpressionApiImpl.js +12 -12
- package/src/Api/Implementation/GridApiImpl.js +2 -2
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -9
- package/src/Api/Implementation/LayoutApiImpl.js +0 -4
- package/src/Api/Implementation/ScopeApiImpl.js +4 -4
- package/src/Api/Internal/ColumnFilterInternalApi.js +2 -2
- package/src/Api/Internal/CommentsInternalApi.d.ts +1 -1
- package/src/Api/Internal/CommentsInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +5 -3
- package/src/Api/Internal/GridFilterInternalApi.d.ts +2 -2
- package/src/Api/Internal/GridFilterInternalApi.js +2 -2
- package/src/Api/Internal/NoteInternalApi.d.ts +1 -1
- package/src/Api/Internal/NoteInternalApi.js +1 -1
- package/src/Api/LayoutApi.d.ts +0 -12
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.js +22 -20
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +3 -3
- package/src/Strategy/AdaptableModuleBase.d.ts +3 -4
- package/src/Strategy/AdaptableModuleBase.js +5 -9
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/BulkUpdateModule.js +3 -2
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -2
- package/src/Strategy/ColumnFilterModule.d.ts +2 -2
- package/src/Strategy/ColumnFilterModule.js +17 -42
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/ColumnInfoModule.js +4 -4
- package/src/Strategy/CommentModule.d.ts +1 -2
- package/src/Strategy/CommentModule.js +29 -30
- package/src/Strategy/CustomSortModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.d.ts +2 -2
- package/src/Strategy/DashboardModule.js +3 -14
- package/src/Strategy/DataImportModule.d.ts +3 -3
- package/src/Strategy/DataImportModule.js +3 -3
- package/src/Strategy/ExportModule.d.ts +1 -2
- package/src/Strategy/ExportModule.js +12 -41
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/Fdc3Module.js +1 -14
- package/src/Strategy/FlashingCellModule.d.ts +2 -2
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +28 -47
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/GridInfoModule.js +3 -3
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.d.ts +4 -4
- package/src/Strategy/LayoutModule.js +47 -72
- package/src/Strategy/NoteModule.d.ts +1 -2
- package/src/Strategy/NoteModule.js +28 -30
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.d.ts +3 -3
- package/src/Strategy/SettingsPanelModule.js +3 -3
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +3 -2
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +17 -15
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/SystemStatusModule.js +4 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +4 -2
- package/src/Utilities/Services/ModuleService.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +2 -1
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridMenuAdapter.d.ts +19 -8
- package/src/agGrid/AgGridMenuAdapter.js +319 -50
- package/src/components/icons/filter-off.d.ts +3 -0
- package/src/components/icons/filter-off.js +7 -0
- package/src/components/icons/grid-info.d.ts +3 -0
- package/src/components/icons/grid-info.js +7 -0
- package/src/components/icons/index.js +10 -0
- package/src/components/icons/select-all.d.ts +3 -0
- package/src/components/icons/select-all.js +7 -0
- package/src/components/icons/select-fwd.d.ts +3 -0
- package/src/components/icons/select-fwd.js +7 -0
- package/src/components/icons/select-off.d.ts +3 -0
- package/src/components/icons/select-off.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/parser.js +1218 -55
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +1 -3
- package/src/parser/src/types.js +1 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -1,100 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = exports.DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
6
|
-
exports.DEFAULT_ADAPTABLE_COLUMN_MENU_STRUCTURE = [
|
|
7
|
-
ModuleConstants.CalculatedColumnModuleId,
|
|
8
|
-
ModuleConstants.CellSummaryModuleId,
|
|
9
|
-
ModuleConstants.ColumnFilterModuleId,
|
|
10
|
-
ModuleConstants.ColumnInfoModuleId,
|
|
11
|
-
ModuleConstants.CustomSortModuleId,
|
|
12
|
-
ModuleConstants.DashboardModuleId,
|
|
13
|
-
ModuleConstants.DataImportModuleId,
|
|
14
|
-
ModuleConstants.FlashingCellModuleId,
|
|
15
|
-
ModuleConstants.FormatColumnModuleId,
|
|
16
|
-
ModuleConstants.FreeTextColumnModuleId,
|
|
17
|
-
ModuleConstants.GridInfoModuleId,
|
|
18
|
-
ModuleConstants.LayoutModuleId,
|
|
19
|
-
ModuleConstants.PlusMinusModuleId,
|
|
20
|
-
ModuleConstants.SettingsPanelModuleId,
|
|
21
|
-
ModuleConstants.StyledColumnModuleId,
|
|
22
|
-
ModuleConstants.SystemStatusModuleId, // Single Item - Always present
|
|
23
|
-
/*
|
|
24
|
-
// Modules that dont provide a Column Menu
|
|
25
|
-
ModuleConstants.AlertModuleId,
|
|
26
|
-
ModuleConstants.BulkUpdateModuleId,
|
|
27
|
-
ModuleConstants.ChartingModuleId,
|
|
28
|
-
ModuleConstants.CommentModuleId,
|
|
29
|
-
ModuleConstants.DataChangeHistoryModuleId,
|
|
30
|
-
ModuleConstants.DataSetModuleId,
|
|
31
|
-
ModuleConstants.ExportModuleId,
|
|
32
|
-
ModuleConstants.Fdc3ModuleId,
|
|
33
|
-
ModuleConstants.GridFilterModuleId,
|
|
34
|
-
ModuleConstants.NamedQueryModuleId,
|
|
35
|
-
ModuleConstants.NoteModuleId,
|
|
36
|
-
ModuleConstants.QuickSearchModuleId,
|
|
37
|
-
ModuleConstants.ScheduleModuleId,
|
|
38
|
-
ModuleConstants.ShortcutModuleId,
|
|
39
|
-
ModuleConstants.SmartEditModuleId,
|
|
40
|
-
ModuleConstants.StateManagementModuleId,
|
|
41
|
-
ModuleConstants.StatusBarModuleId,
|
|
42
|
-
ModuleConstants.TeamSharingModuleId,
|
|
43
|
-
ModuleConstants.ThemeModuleId,
|
|
44
|
-
ModuleConstants.ToolPanelModuleId,
|
|
45
|
-
*/
|
|
46
|
-
];
|
|
47
|
-
/**
|
|
48
|
-
* Defines the order of Menu Items in the CONTEXT Menu
|
|
49
|
-
* The items commented out do not have a Context Menu Option
|
|
50
|
-
*/
|
|
51
|
-
exports.DEFAULT_ADAPTABLE_CONTEXT_MENU_STRUCTURE = [
|
|
52
|
-
ModuleConstants.AlertModuleId,
|
|
53
|
-
ModuleConstants.BulkUpdateModuleId,
|
|
54
|
-
ModuleConstants.CalculatedColumnModuleId,
|
|
55
|
-
ModuleConstants.CellSummaryModuleId,
|
|
56
|
-
ModuleConstants.ColumnFilterModuleId,
|
|
57
|
-
ModuleConstants.ColumnInfoModuleId,
|
|
58
|
-
ModuleConstants.CommentModuleId,
|
|
59
|
-
ModuleConstants.DashboardModuleId,
|
|
60
|
-
ModuleConstants.DataImportModuleId,
|
|
61
|
-
ModuleConstants.ExportModuleId,
|
|
62
|
-
ModuleConstants.Fdc3ModuleId,
|
|
63
|
-
ModuleConstants.FlashingCellModuleId,
|
|
64
|
-
ModuleConstants.GridInfoModuleId,
|
|
65
|
-
ModuleConstants.LayoutModuleId,
|
|
66
|
-
ModuleConstants.NoteModuleId,
|
|
67
|
-
ModuleConstants.SettingsPanelModuleId,
|
|
68
|
-
ModuleConstants.SmartEditModuleId,
|
|
69
|
-
ModuleConstants.SystemStatusModuleId, // Single Item - Always present
|
|
70
|
-
// this currently doesnt work
|
|
71
|
-
// {
|
|
72
|
-
// title: 'Edit',
|
|
73
|
-
// icon: {
|
|
74
|
-
// name: 'edit',
|
|
75
|
-
// },
|
|
76
|
-
// modules: [ModuleConstants.SmartEditModuleId, ModuleConstants.BulkUpdateModuleId],
|
|
77
|
-
// },
|
|
78
|
-
/*
|
|
79
|
-
// Modules that dont provide a Context Menu
|
|
80
|
-
ModuleConstants.ChartingModuleId,
|
|
81
|
-
ModuleConstants.CustomSortModuleId,
|
|
82
|
-
ModuleConstants.DataChangeHistoryModuleId,
|
|
83
|
-
ModuleConstants.DataSetModuleId,
|
|
84
|
-
ModuleConstants.FormatColumnModuleId,
|
|
85
|
-
ModuleConstants.FreeTextColumnModuleId,
|
|
86
|
-
ModuleConstants.GridFilterModuleId,
|
|
87
|
-
ModuleConstants.NamedQueryModuleId,
|
|
88
|
-
ModuleConstants.PlusMinusModuleId,
|
|
89
|
-
ModuleConstants.QuickSearchModuleId,
|
|
90
|
-
ModuleConstants.ScheduleModuleId,
|
|
91
|
-
ModuleConstants.ShortcutModuleId,
|
|
92
|
-
ModuleConstants.StateManagementModuleId,
|
|
93
|
-
ModuleConstants.StatusBarModuleId,
|
|
94
|
-
ModuleConstants.StyledColumnModuleId,
|
|
95
|
-
ModuleConstants.TeamSharingModuleId,
|
|
96
|
-
ModuleConstants.ThemeModuleId,
|
|
97
|
-
ModuleConstants.ToolPanelModuleId,
|
|
98
|
-
|
|
99
|
-
*/
|
|
100
|
-
];
|
|
@@ -74,19 +74,19 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
74
74
|
return isAutoPivotColumn(columnId);
|
|
75
75
|
}
|
|
76
76
|
isCalculatedColumn(columnId) {
|
|
77
|
-
return (this.getAdaptableApi()
|
|
78
|
-
.getCalculatedColumns()
|
|
77
|
+
return (this.getAdaptableApi()
|
|
78
|
+
.calculatedColumnApi.getCalculatedColumns()
|
|
79
79
|
.find((cc) => cc.ColumnId == columnId) != null);
|
|
80
80
|
}
|
|
81
81
|
isFreeTextColumn(columnId) {
|
|
82
|
-
return (this.getAdaptableApi()
|
|
83
|
-
.getFreeTextColumns()
|
|
82
|
+
return (this.getAdaptableApi()
|
|
83
|
+
.freeTextColumnApi.getFreeTextColumns()
|
|
84
84
|
.find((cc) => cc.ColumnId == columnId) != null);
|
|
85
85
|
}
|
|
86
86
|
isActionColumn(columnId) {
|
|
87
87
|
var _a;
|
|
88
|
-
return (((_a = this.getAdaptableApi()
|
|
89
|
-
.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
88
|
+
return (((_a = this.getAdaptableApi()
|
|
89
|
+
.actionColumnApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
90
90
|
}
|
|
91
91
|
getColumnWithColumnId(columnId, logWarning) {
|
|
92
92
|
if (columnId == undefined) {
|
|
@@ -11,8 +11,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(adaptable);
|
|
12
12
|
}
|
|
13
13
|
isValidBooleanExpression(query, module, validationErrorMessage) {
|
|
14
|
-
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
15
|
-
.getQueryLanguageService()
|
|
14
|
+
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
15
|
+
.internalApi.getQueryLanguageService()
|
|
16
16
|
.validateBoolean(query, module, { force: true });
|
|
17
17
|
if (!isValid && validationErrorMessage) {
|
|
18
18
|
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
@@ -20,8 +20,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
20
20
|
return isValid;
|
|
21
21
|
}
|
|
22
22
|
isValidObservableExpression(expression, module, validationErrorMessage) {
|
|
23
|
-
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
24
|
-
.getQueryLanguageService()
|
|
23
|
+
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
24
|
+
.internalApi.getQueryLanguageService()
|
|
25
25
|
.validateObservable(expression, module);
|
|
26
26
|
if (!isValid && validationErrorMessage) {
|
|
27
27
|
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
@@ -29,8 +29,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
29
29
|
return isValid;
|
|
30
30
|
}
|
|
31
31
|
isValidAggregatedBooleanExpression(expression, module, validationErrorMessage) {
|
|
32
|
-
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
33
|
-
.getQueryLanguageService()
|
|
32
|
+
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
33
|
+
.internalApi.getQueryLanguageService()
|
|
34
34
|
.validateAggregatedBoolean(expression, module);
|
|
35
35
|
if (!isValid && validationErrorMessage) {
|
|
36
36
|
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
@@ -38,8 +38,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
38
38
|
return isValid;
|
|
39
39
|
}
|
|
40
40
|
isValidAggregatedScalarExpression(expression, module, validationErrorMessage) {
|
|
41
|
-
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
42
|
-
.getQueryLanguageService()
|
|
41
|
+
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
42
|
+
.internalApi.getQueryLanguageService()
|
|
43
43
|
.validateAggregatedScalar(expression, module);
|
|
44
44
|
if (!isValid && validationErrorMessage) {
|
|
45
45
|
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
@@ -51,8 +51,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
51
|
}
|
|
52
52
|
getColumnsFromExpression(expression) {
|
|
53
53
|
try {
|
|
54
|
-
const columnIds = this.getAdaptableApi()
|
|
55
|
-
.getQueryLanguageService()
|
|
54
|
+
const columnIds = this.getAdaptableApi()
|
|
55
|
+
.internalApi.getQueryLanguageService()
|
|
56
56
|
.getColumnsFromExpression(expression);
|
|
57
57
|
columnIds.forEach((columnId) => {
|
|
58
58
|
const calculatedColumn = this.getAdaptableApi().calculatedColumnApi.getCalculatedColumnForColumnId(columnId);
|
|
@@ -83,8 +83,8 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
83
83
|
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);
|
|
84
84
|
}
|
|
85
85
|
getAdaptableQueryExpressionWithColumnFriendlyNames(query) {
|
|
86
|
-
return this.getAdaptableApi()
|
|
87
|
-
.getQueryLanguageService()
|
|
86
|
+
return this.getAdaptableApi()
|
|
87
|
+
.internalApi.getQueryLanguageService()
|
|
88
88
|
.getExpressionWithColumnFriendlyNames(this.getAdaptableQueryExpression(query));
|
|
89
89
|
}
|
|
90
90
|
useCaseSensitivity() {
|
|
@@ -219,8 +219,8 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
219
219
|
}
|
|
220
220
|
selectCellRangeByQuery(query, gridCellRange, clearSelection) {
|
|
221
221
|
const filteredRowNodes = [];
|
|
222
|
-
const isRowNodeInQuery = (rowNode) => this.getAdaptableApi()
|
|
223
|
-
.getQueryLanguageService()
|
|
222
|
+
const isRowNodeInQuery = (rowNode) => this.getAdaptableApi()
|
|
223
|
+
.internalApi.getQueryLanguageService()
|
|
224
224
|
.evaluateBooleanExpression(query, 'GridInfo', rowNode);
|
|
225
225
|
if (gridCellRange) {
|
|
226
226
|
const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
|
|
@@ -45,13 +45,4 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
45
45
|
removeColumnFromLayout(columnId: string, layoutName: string): void;
|
|
46
46
|
addColumnToLayout(columnId: string, layoutName: string): void;
|
|
47
47
|
addColumnToCurrentLayout(columnId: string): void;
|
|
48
|
-
getLayoutSupportedFeatures(): {
|
|
49
|
-
RowGroupedColumns: boolean;
|
|
50
|
-
AggregationColumns: boolean;
|
|
51
|
-
PivotColumns: boolean;
|
|
52
|
-
ColumnFilters: boolean;
|
|
53
|
-
GridFilter: boolean;
|
|
54
|
-
ColumnSorts: boolean;
|
|
55
|
-
RowSummaries: boolean;
|
|
56
|
-
};
|
|
57
48
|
}
|
|
@@ -246,9 +246,5 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
246
246
|
addColumnToCurrentLayout(columnId) {
|
|
247
247
|
this.addColumnToLayout(columnId, this.getCurrentLayoutName());
|
|
248
248
|
}
|
|
249
|
-
getLayoutSupportedFeatures() {
|
|
250
|
-
// TODO: is this deprecated?
|
|
251
|
-
return this.internalApi.getLayoutSupportedFeatures();
|
|
252
|
-
}
|
|
253
249
|
}
|
|
254
250
|
exports.LayoutApiImpl = LayoutApiImpl;
|
|
@@ -57,8 +57,8 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
57
|
if ('ColumnIds' in scope) {
|
|
58
58
|
return ((scope.ColumnIds.length > 1 ? 'Columns' : 'Column') +
|
|
59
59
|
': ' +
|
|
60
|
-
this.getAdaptableApi()
|
|
61
|
-
.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
60
|
+
this.getAdaptableApi()
|
|
61
|
+
.columnApi.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
62
62
|
.map((c) => {
|
|
63
63
|
return '"' + c + '"';
|
|
64
64
|
})
|
|
@@ -139,8 +139,8 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
139
139
|
if ('ColumnIds' in scope) {
|
|
140
140
|
let text = scope.ColumnIds.length == 1 ? 'Column: ' : 'Columns: ';
|
|
141
141
|
return (text +
|
|
142
|
-
this.getAdaptableApi()
|
|
143
|
-
.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
142
|
+
this.getAdaptableApi()
|
|
143
|
+
.columnApi.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
144
144
|
.map((c) => {
|
|
145
145
|
return '"' + c + '"';
|
|
146
146
|
})
|
|
@@ -128,8 +128,8 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
128
128
|
const isClearAndPreviousWasActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR &&
|
|
129
129
|
this.getAdaptableApi().columnFilterApi.isColumnFilterActive(action.columnFilter);
|
|
130
130
|
const isClearAllAtLeastOneActiveFilter = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL &&
|
|
131
|
-
this.getAdaptableApi()
|
|
132
|
-
.getColumnFilters()
|
|
131
|
+
this.getAdaptableApi()
|
|
132
|
+
.columnFilterApi.getColumnFilters()
|
|
133
133
|
.some((columnFilter) => this.getAdaptableApi().columnFilterApi.isColumnFilterActive(columnFilter));
|
|
134
134
|
let isEditTrigger = false;
|
|
135
135
|
if (action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT) {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CommentsInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
5
|
class CommentsInternalApi extends ApiBase_1.ApiBase {
|
|
6
|
-
|
|
6
|
+
areCommentsSupported() {
|
|
7
7
|
var _a;
|
|
8
8
|
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
9
9
|
if (currentLayout.EnablePivot) {
|
|
@@ -55,8 +55,8 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
|
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
isToolbarCustom(toolbarName) {
|
|
58
|
-
return this.getAdaptableApi()
|
|
59
|
-
.getCustomToolbars()
|
|
58
|
+
return this.getAdaptableApi()
|
|
59
|
+
.dashboardApi.getCustomToolbars()
|
|
60
60
|
.some((tb) => tb.name === toolbarName);
|
|
61
61
|
}
|
|
62
62
|
getCustomToolbarRenderContainerId(customToolbarName) {
|
|
@@ -188,8 +188,8 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
188
188
|
evaluateExpression(formatColumn, node) {
|
|
189
189
|
const isValidExpression = this.getAdaptableApi().expressionApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
|
|
190
190
|
return (isValidExpression &&
|
|
191
|
-
this.getAdaptableApi()
|
|
192
|
-
.getQueryLanguageService()
|
|
191
|
+
this.getAdaptableApi()
|
|
192
|
+
.internalApi.getQueryLanguageService()
|
|
193
193
|
.evaluateBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, node));
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
@@ -239,7 +239,9 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
239
239
|
});
|
|
240
240
|
const columnsThatNeedRefresh = new Set();
|
|
241
241
|
this.getFormatColumnsDependentOnColumns(impactedColumnIds).forEach((formatColumn) => {
|
|
242
|
-
this.getAdaptableApi()
|
|
242
|
+
this.getAdaptableApi()
|
|
243
|
+
.scopeApi.getColumnsForScope(formatColumn.Scope)
|
|
244
|
+
.forEach((col) => {
|
|
243
245
|
columnsThatNeedRefresh.add(col.columnId);
|
|
244
246
|
});
|
|
245
247
|
});
|
|
@@ -3,7 +3,7 @@ import { GridFilter } from '../../types';
|
|
|
3
3
|
export declare class GridFilterInternalApi extends ApiBase {
|
|
4
4
|
fireGridFilterAppliedEvent(): void;
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* Compares to Grid Filters to see if they are identical
|
|
7
|
+
*/
|
|
8
8
|
isGridFilterDifferent(oldFilter: GridFilter, newFilter: GridFilter): boolean;
|
|
9
9
|
}
|
|
@@ -14,8 +14,8 @@ class GridFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Compares to Grid Filters to see if they are identical
|
|
18
|
+
*/
|
|
19
19
|
isGridFilterDifferent(oldFilter, newFilter) {
|
|
20
20
|
return (oldFilter === null || oldFilter === void 0 ? void 0 : oldFilter.Expression) === (newFilter === null || newFilter === void 0 ? void 0 : newFilter.Expression);
|
|
21
21
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NoteInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
5
|
class NoteInternalApi extends ApiBase_1.ApiBase {
|
|
6
|
-
|
|
6
|
+
areNotesSupported() {
|
|
7
7
|
var _a;
|
|
8
8
|
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
9
9
|
if (currentLayout.EnablePivot) {
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -182,16 +182,4 @@ export interface LayoutApi {
|
|
|
182
182
|
* @param columnId Column to add
|
|
183
183
|
*/
|
|
184
184
|
addColumnToCurrentLayout(columnId: string): void;
|
|
185
|
-
/**
|
|
186
|
-
* Returns what the layout supports.
|
|
187
|
-
* This takes into account the data-source.
|
|
188
|
-
*/
|
|
189
|
-
getLayoutSupportedFeatures(): {
|
|
190
|
-
RowGroupedColumns: boolean;
|
|
191
|
-
AggregationColumns: boolean;
|
|
192
|
-
PivotColumns: boolean;
|
|
193
|
-
ColumnFilters: boolean;
|
|
194
|
-
ColumnSorts: boolean;
|
|
195
|
-
RowSummaries: boolean;
|
|
196
|
-
};
|
|
197
185
|
}
|
|
@@ -54,4 +54,4 @@ export interface AdaptableBaseIcon {
|
|
|
54
54
|
/**
|
|
55
55
|
* All AdapTable System Icon names
|
|
56
56
|
*/
|
|
57
|
-
export type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'comments' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold' | 'note' | 'import' | 'grid-filter' | 'rows';
|
|
57
|
+
export type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'comments' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'filter-off' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'select-all' | 'select-off' | 'select-fwd' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold' | 'note' | 'import' | 'grid-filter' | 'grid-info' | 'rows';
|
|
@@ -74,7 +74,7 @@ export declare const Fdc3StandardIntents: ("StartCall" | "StartChat" | "StartEma
|
|
|
74
74
|
/**
|
|
75
75
|
* All FDC3 standard intents
|
|
76
76
|
*/
|
|
77
|
-
export type Fdc3StandardIntentType = typeof Fdc3StandardIntents[number];
|
|
77
|
+
export type Fdc3StandardIntentType = (typeof Fdc3StandardIntents)[number];
|
|
78
78
|
/**
|
|
79
79
|
* Custom FDC3 intent
|
|
80
80
|
*/
|
|
@@ -86,4 +86,4 @@ export type Fdc3IntentType = Fdc3StandardIntentType | Fdc3CustomIntentType;
|
|
|
86
86
|
/**
|
|
87
87
|
* Valid context for a given FDC3 intent
|
|
88
88
|
*/
|
|
89
|
-
export type CompatibleContext<F extends Fdc3StandardIntentType> = typeof Fdc3IntentConfiguration[F]['contexts'][number];
|
|
89
|
+
export type CompatibleContext<F extends Fdc3StandardIntentType> = (typeof Fdc3IntentConfiguration)[F]['contexts'][number];
|
|
@@ -10,11 +10,11 @@ export type AdaptableContextMenuItemName = (typeof ADAPTABLE_CONTEXT_MENU_ITEMS)
|
|
|
10
10
|
/**
|
|
11
11
|
* List of Shipped Adaptable Column Menu Items
|
|
12
12
|
*/
|
|
13
|
-
export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-
|
|
13
|
+
export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-group", "column-filter-group", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "custom-sort-add", "custom-sort-edit", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "flashing-cell-add", "flashing-cell-delete", "format-column-add", "format-column-edit", "free-text-column-edit", "grid-group", "grid-info-show", "layout-column-caption-change", "layout-column-hide", "layout-edit", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-grid-select", "plus-minus-add", "settings-panel-open", "styling-group", "styled-column-badge-add", "styled-column-badge-edit", "styled-column-gradient-add", "styled-column-gradient-edit", "styled-column-percent-bar-add", "styled-column-percent-bar-edit", "styled-column-sparkline-add", "styled-column-sparkline-edit", "system-status-show", "_navbar"];
|
|
14
14
|
/**
|
|
15
15
|
* List of Shipped Adaptable Context Menu Items
|
|
16
16
|
*/
|
|
17
|
-
export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-
|
|
17
|
+
export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "export-cells-clipboard", "export-cells-csv", "export-cells-excel", "export-cells-json", "export-cells-table", "export-cells-custom-destination", "export-rows-clipboard", "export-rows-csv", "export-rows-excel", "export-rows-json", "export-rows-table", "export-rows-custom-destination", "fdc3-broadcast", "fdc3-raise-intent", "flashing-cell-clear", "flashing-row-clear", "grid-group", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
|
|
18
18
|
/**
|
|
19
19
|
* Menu item used by Adaptable in both Column and Context Menus
|
|
20
20
|
*/
|
|
@@ -7,17 +7,16 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = exports.ADAPTABLE_COLUMN_MENU_ITEMS = voi
|
|
|
7
7
|
exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
8
8
|
'calculated-column-edit',
|
|
9
9
|
'cell-summary-show',
|
|
10
|
-
'column-
|
|
10
|
+
'column-group',
|
|
11
|
+
'column-filter-group',
|
|
11
12
|
'column-filter-bar-hide',
|
|
12
13
|
'column-filter-bar-show',
|
|
13
14
|
'column-filter-clear',
|
|
14
|
-
'column-filter-on-cell-value',
|
|
15
15
|
'column-filter-suspend',
|
|
16
16
|
'column-filter-unsuspend',
|
|
17
17
|
'column-info-show',
|
|
18
18
|
'custom-sort-add',
|
|
19
19
|
'custom-sort-edit',
|
|
20
|
-
'dashboard-parent',
|
|
21
20
|
'dashboard-collapse',
|
|
22
21
|
'dashboard-configure',
|
|
23
22
|
'dashboard-dock',
|
|
@@ -28,23 +27,21 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
28
27
|
'data-import',
|
|
29
28
|
'flashing-cell-add',
|
|
30
29
|
'flashing-cell-delete',
|
|
31
|
-
'format-column-parent',
|
|
32
30
|
'format-column-add',
|
|
33
31
|
'format-column-edit',
|
|
34
32
|
'free-text-column-edit',
|
|
33
|
+
'grid-group',
|
|
35
34
|
'grid-info-show',
|
|
36
35
|
'layout-column-caption-change',
|
|
37
36
|
'layout-column-hide',
|
|
37
|
+
'layout-edit',
|
|
38
38
|
'layout-column-select',
|
|
39
39
|
'layout-column-select-preserve',
|
|
40
40
|
'layout-column-select-reset',
|
|
41
|
-
'layout-
|
|
42
|
-
'layout-grid-parent',
|
|
43
|
-
'layout-select-parent',
|
|
44
|
-
'layout-select-all',
|
|
41
|
+
'layout-grid-select',
|
|
45
42
|
'plus-minus-add',
|
|
46
43
|
'settings-panel-open',
|
|
47
|
-
'
|
|
44
|
+
'styling-group',
|
|
48
45
|
'styled-column-badge-add',
|
|
49
46
|
'styled-column-badge-edit',
|
|
50
47
|
'styled-column-gradient-add',
|
|
@@ -54,17 +51,18 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
54
51
|
'styled-column-sparkline-add',
|
|
55
52
|
'styled-column-sparkline-edit',
|
|
56
53
|
'system-status-show',
|
|
57
|
-
'
|
|
54
|
+
'_navbar', // used in SettingsPanel navigation bar and in Dashboard Module buttons
|
|
58
55
|
];
|
|
59
56
|
/**
|
|
60
57
|
* List of Shipped Adaptable Context Menu Items
|
|
61
58
|
*/
|
|
62
59
|
exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
60
|
+
'menu-group',
|
|
63
61
|
'alert-clear',
|
|
64
62
|
'bulk-update-apply',
|
|
65
63
|
'calculated-column-edit',
|
|
66
64
|
'cell-summary-show',
|
|
67
|
-
'column-
|
|
65
|
+
'column-group',
|
|
68
66
|
'column-filter-on-cell-value',
|
|
69
67
|
'column-filter-clear',
|
|
70
68
|
'column-filter-suspend',
|
|
@@ -72,7 +70,6 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
72
70
|
'column-info-show',
|
|
73
71
|
'comment-add',
|
|
74
72
|
'comment-remove',
|
|
75
|
-
'dashboard-parent',
|
|
76
73
|
'dashboard-collapse',
|
|
77
74
|
'dashboard-configure',
|
|
78
75
|
'dashboard-dock',
|
|
@@ -81,18 +78,23 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
81
78
|
'dashboard-hide',
|
|
82
79
|
'dashboard-show',
|
|
83
80
|
'data-import',
|
|
84
|
-
'export-
|
|
85
|
-
'export-
|
|
86
|
-
'export-
|
|
87
|
-
'export-
|
|
88
|
-
'export-
|
|
89
|
-
'export-
|
|
90
|
-
'export-
|
|
91
|
-
'
|
|
81
|
+
'export-cells-clipboard',
|
|
82
|
+
'export-cells-csv',
|
|
83
|
+
'export-cells-excel',
|
|
84
|
+
'export-cells-json',
|
|
85
|
+
'export-cells-table',
|
|
86
|
+
'export-cells-custom-destination',
|
|
87
|
+
'export-rows-clipboard',
|
|
88
|
+
'export-rows-csv',
|
|
89
|
+
'export-rows-excel',
|
|
90
|
+
'export-rows-json',
|
|
91
|
+
'export-rows-table',
|
|
92
|
+
'export-rows-custom-destination',
|
|
92
93
|
'fdc3-broadcast',
|
|
93
94
|
'fdc3-raise-intent',
|
|
94
95
|
'flashing-cell-clear',
|
|
95
96
|
'flashing-row-clear',
|
|
97
|
+
'grid-group',
|
|
96
98
|
'grid-info-show',
|
|
97
99
|
'layout-aggregated-view',
|
|
98
100
|
'layout-auto-size',
|
|
@@ -18,9 +18,9 @@ export interface TransposeConfig {
|
|
|
18
18
|
*/
|
|
19
19
|
visibleColumns?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* Only show curerntly visible Rows
|
|
22
|
+
* @defaultValue false
|
|
23
|
+
*/
|
|
24
24
|
visibleRows?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Autosize columns in transposed view
|
|
@@ -36,10 +36,9 @@ export declare abstract class AdaptableModuleBase implements IModule {
|
|
|
36
36
|
onAdaptableReady(): void;
|
|
37
37
|
onAdaptableStateReloaded(adaptableStateReloadedInfo: AdaptableStateReloadedInfo): void;
|
|
38
38
|
setModuleEntitlement(): void;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
39
|
+
createModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
|
|
40
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
41
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
43
42
|
createMainMenuItemShowPopup({ Name, Label, ComponentName, Icon, PopupParams, }: {
|
|
44
43
|
Name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
|
|
45
44
|
Label: string;
|
|
@@ -75,14 +75,14 @@ class AdaptableModuleBase {
|
|
|
75
75
|
.getEntitlementService()
|
|
76
76
|
.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
createModuleMenuItem(source) {
|
|
79
79
|
if (this.isModuleAvailable() && this.moduleInfo.Popup) {
|
|
80
80
|
const moduleParams = {
|
|
81
81
|
source: source,
|
|
82
82
|
maxWidth: this.getPopupMaxWidth(),
|
|
83
83
|
};
|
|
84
84
|
return this.createMainMenuItemShowPopup({
|
|
85
|
-
Name: '
|
|
85
|
+
Name: '_navbar',
|
|
86
86
|
Label: this.moduleInfo.FriendlyName,
|
|
87
87
|
ComponentName: this.moduleInfo.Popup,
|
|
88
88
|
Icon: this.moduleInfo.Glyph,
|
|
@@ -90,19 +90,15 @@ class AdaptableModuleBase {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
createColumnMenuItems(column) {
|
|
94
94
|
// base class implementation which is empty
|
|
95
95
|
return undefined;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
createContextMenuItems(menuContext) {
|
|
98
98
|
// base class implementation which is empty
|
|
99
99
|
return undefined;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
// base class implementation which is empty
|
|
103
|
-
return undefined;
|
|
104
|
-
}
|
|
105
|
-
// creates the menu items in the main dropdown
|
|
101
|
+
// creates the module menu items in the navbar
|
|
106
102
|
createMainMenuItemShowPopup({ Name, Label, ComponentName, Icon, PopupParams, }) {
|
|
107
103
|
return new MenuItem_1.MenuItemShowPopup(Name, Label, this.moduleInfo.ModuleName, ComponentName, Icon, true, PopupParams);
|
|
108
104
|
}
|
|
@@ -14,7 +14,7 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
14
14
|
}): AdaptableObject[];
|
|
15
15
|
getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
|
|
16
16
|
getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
|
|
17
|
-
|
|
17
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
18
18
|
private handleCellDataChanged;
|
|
19
19
|
private handleGridDataChanged;
|
|
20
20
|
private handleReactiveAlertTriggered;
|
|
@@ -75,7 +75,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
75
75
|
}
|
|
76
76
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(queryExpression);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
createContextMenuItems(menuContext) {
|
|
79
79
|
const items = [];
|
|
80
80
|
if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
|
|
81
81
|
if (menuContext.adaptableColumn && menuContext.rowNode) {
|