@adaptabletools/adaptable-cjs 18.0.0-canary.25 → 18.0.0-canary.27
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/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
- package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +11 -23
- package/src/AdaptableOptions/MenuOptions.js +0 -98
- package/src/Api/GridApi.d.ts +2 -1
- package/src/Api/Implementation/ActionRowApiImpl.js +3 -7
- package/src/Api/Implementation/AlertApiImpl.js +5 -10
- package/src/Api/Implementation/CalendarApiImpl.js +1 -6
- package/src/Api/Implementation/ChartingApiImpl.js +3 -3
- package/src/Api/Implementation/ColumnApiImpl.js +6 -6
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/CommentsApiImpl.js +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +11 -17
- package/src/Api/Implementation/DashboardApiImpl.js +1 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +8 -13
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -8
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -1
- package/src/Api/Implementation/GridApiImpl.js +11 -8
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -7
- package/src/Api/Implementation/LayoutApiImpl.js +0 -15
- package/src/Api/Implementation/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/ScopeApiImpl.js +10 -10
- package/src/Api/Implementation/TeamSharingApiImpl.js +3 -15
- package/src/Api/Implementation/ThemeApiImpl.js +2 -7
- package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -13
- package/src/Api/Internal/ActionRowInternalApi.js +7 -45
- package/src/Api/Internal/AdaptableInternalApi.js +2 -12
- package/src/Api/Internal/AlertInternalApi.js +4 -17
- package/src/Api/Internal/CalculatedColumnInternalApi.js +7 -14
- package/src/Api/Internal/ChartingInternalApi.js +13 -13
- package/src/Api/Internal/ColumnFilterInternalApi.js +18 -36
- package/src/Api/Internal/CommentsInternalApi.d.ts +1 -1
- package/src/Api/Internal/CommentsInternalApi.js +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +4 -10
- package/src/Api/Internal/DataImportInternalApi.js +3 -9
- package/src/Api/Internal/DataSetInternalApi.js +2 -7
- package/src/Api/Internal/ExportInternalApi.js +4 -4
- package/src/Api/Internal/ExpressionInternalApi.js +2 -12
- package/src/Api/Internal/Fdc3InternalApi.js +1 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +11 -20
- package/src/Api/Internal/FreeTextColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridFilterInternalApi.js +2 -8
- package/src/Api/Internal/GridInternalApi.js +13 -40
- package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
- package/src/Api/Internal/LayoutInternalApi.js +10 -19
- package/src/Api/Internal/NoteInternalApi.d.ts +1 -1
- package/src/Api/Internal/NoteInternalApi.js +1 -1
- package/src/Api/Internal/PredicateInternalApi.js +5 -40
- package/src/Api/Internal/ScheduleInternalApi.js +1 -6
- package/src/Api/Internal/StyledColumnInternalApi.js +5 -5
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -7
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -7
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
- package/src/Api/LayoutApi.d.ts +0 -11
- package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -0
- package/src/PredefinedConfig/Common/Enums.js +2 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +4 -4
- package/src/PredefinedConfig/Common/Menu.js +17 -18
- package/src/PredefinedConfig/Common/RowSummary.d.ts +1 -1
- package/src/PredefinedConfig/Common/RowSummary.js +4 -4
- 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 +56 -96
- 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 +2 -2
- 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 +2 -2
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.d.ts +4 -4
- package/src/Strategy/LayoutModule.js +51 -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 +10 -9
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/SystemStatusModule.js +4 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +19 -19
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/ObjectFactory.js +2 -0
- package/src/Utilities/Services/ModuleService.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -0
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +17 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +1 -1
- package/src/agGrid/AgGridAdapter.d.ts +1 -2
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridMenuAdapter.d.ts +18 -8
- package/src/agGrid/AgGridMenuAdapter.js +240 -51
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +8 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -16,14 +16,9 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
16
16
|
*/
|
|
17
17
|
fireGridSortedEvent() {
|
|
18
18
|
if (this.adaptable.isReady) {
|
|
19
|
-
const adaptableSortState = this.
|
|
19
|
+
const adaptableSortState = this.getAdaptableApi().configApi.getAdaptableSortState();
|
|
20
20
|
const adaptableApi = this.getAdaptableApi();
|
|
21
|
-
const gridSortedInfo = {
|
|
22
|
-
adaptableSortState: adaptableSortState,
|
|
23
|
-
adaptableApi: adaptableApi,
|
|
24
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
25
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
26
|
-
};
|
|
21
|
+
const gridSortedInfo = Object.assign({ adaptableSortState: adaptableSortState }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
27
22
|
adaptableApi.eventApi.emit('GridSorted', gridSortedInfo);
|
|
28
23
|
}
|
|
29
24
|
}
|
|
@@ -32,13 +27,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
32
27
|
*/
|
|
33
28
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
34
29
|
if (this.adaptable.isReady) {
|
|
35
|
-
const cellChangedInfo = {
|
|
36
|
-
|
|
37
|
-
cellChange: cellDataChangedInfo,
|
|
38
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
39
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
40
|
-
};
|
|
41
|
-
this.adaptable.api.eventApi.emit('CellChanged', cellChangedInfo);
|
|
30
|
+
const cellChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { cellChange: cellDataChangedInfo });
|
|
31
|
+
this.getAdaptableApi().eventApi.emit('CellChanged', cellChangedInfo);
|
|
42
32
|
}
|
|
43
33
|
}
|
|
44
34
|
/**
|
|
@@ -46,16 +36,10 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
46
36
|
*/
|
|
47
37
|
fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger) {
|
|
48
38
|
if (this.adaptable.isReady) {
|
|
49
|
-
const gridDataChangedInfo = {
|
|
50
|
-
changedAt: Date.now(),
|
|
51
|
-
adaptableApi: this.adaptable.api,
|
|
52
|
-
rowTrigger,
|
|
39
|
+
const gridDataChangedInfo = Object.assign({ changedAt: Date.now(), rowTrigger,
|
|
53
40
|
dataRows,
|
|
54
|
-
rowNodes,
|
|
55
|
-
|
|
56
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
57
|
-
};
|
|
58
|
-
this.adaptable.api.eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
41
|
+
rowNodes }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
42
|
+
this.getAdaptableApi().eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
59
43
|
this.adaptable.DataService.CreateGridChangedEvent(gridDataChangedInfo);
|
|
60
44
|
}
|
|
61
45
|
}
|
|
@@ -100,12 +84,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
100
84
|
let shouldShowValuesCount = false;
|
|
101
85
|
const showValuesCountFunction = this.getColumnFilterOptions().valuesFilterOptions.showValuesCount;
|
|
102
86
|
if (showValuesCountFunction) {
|
|
103
|
-
const columnFilterContext = {
|
|
104
|
-
column: abColumn,
|
|
105
|
-
adaptableApi: this.adaptable.api,
|
|
106
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
107
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
108
|
-
};
|
|
87
|
+
const columnFilterContext = Object.assign({ column: abColumn }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
109
88
|
shouldShowValuesCount = showValuesCountFunction(columnFilterContext);
|
|
110
89
|
}
|
|
111
90
|
if (shouldShowValuesCount) {
|
|
@@ -143,7 +122,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
143
122
|
};
|
|
144
123
|
let preparedPermittedValues = undefined;
|
|
145
124
|
try {
|
|
146
|
-
const filterPermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.
|
|
125
|
+
const filterPermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column, searchFilter: filter });
|
|
147
126
|
preparedPermittedValues = await (filterPermittedValues === null || filterPermittedValues === void 0 ? void 0 : filterPermittedValues.values(filterPermittedValuesParams));
|
|
148
127
|
}
|
|
149
128
|
catch (error) {
|
|
@@ -176,7 +155,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
176
155
|
const customSortPermittedValues = await this.getUserInterfaceApi().getCustomSortPermittedValuesForColumn(column);
|
|
177
156
|
let preparedPermittedValues = undefined;
|
|
178
157
|
try {
|
|
179
|
-
const permittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.
|
|
158
|
+
const permittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column });
|
|
180
159
|
preparedPermittedValues = await (customSortPermittedValues === null || customSortPermittedValues === void 0 ? void 0 : customSortPermittedValues.values(permittedValuesParams));
|
|
181
160
|
}
|
|
182
161
|
catch (error) {
|
|
@@ -207,7 +186,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
207
186
|
const bulkUpdatePermittedValues = await this.getUserInterfaceApi().getBulkUpdatePermittedValuesForColumn(column);
|
|
208
187
|
let preparedPermittedValues = undefined;
|
|
209
188
|
try {
|
|
210
|
-
const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.
|
|
189
|
+
const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column, gridCells: selectedGridCells });
|
|
211
190
|
preparedPermittedValues = await (bulkUpdatePermittedValues === null || bulkUpdatePermittedValues === void 0 ? void 0 : bulkUpdatePermittedValues.values(bulkUpdatePermittedValuesParams));
|
|
212
191
|
}
|
|
213
192
|
catch (error) {
|
|
@@ -284,7 +263,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
284
263
|
// this does NOT into account Custom Sort - far too hard for now...
|
|
285
264
|
let sortOrder = Enums_1.SortOrder.Asc;
|
|
286
265
|
if (this.getColumnFilterOptions().valuesFilterOptions.sortValuesFilter) {
|
|
287
|
-
let columnSort = this.
|
|
266
|
+
let columnSort = this.getAdaptableApi().gridApi.getColumnSortForColumn(column.columnId);
|
|
288
267
|
if (columnSort && columnSort.SortOrder == 'Desc') {
|
|
289
268
|
sortOrder = Enums_1.SortOrder.Desc;
|
|
290
269
|
}
|
|
@@ -319,13 +298,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
319
298
|
let editLookUpValues = editLookUpItem.values;
|
|
320
299
|
// first do the function then get hardcoded items
|
|
321
300
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
322
|
-
const editLookUpContext = {
|
|
323
|
-
adaptableApi: this.adaptable.api,
|
|
324
|
-
userName: this.getOptions().userName,
|
|
325
|
-
adaptableId: this.getOptions().adaptableId,
|
|
326
|
-
column: column,
|
|
327
|
-
gridCell,
|
|
328
|
-
};
|
|
301
|
+
const editLookUpContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column, gridCell });
|
|
329
302
|
return editLookUpValues(editLookUpContext);
|
|
330
303
|
}
|
|
331
304
|
else {
|
|
@@ -17,19 +17,11 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
17
17
|
* @param newState Layout State after change
|
|
18
18
|
*/
|
|
19
19
|
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
20
|
-
const
|
|
21
|
-
const layoutChangedInfo = {
|
|
22
|
-
adaptableApi: adaptableApi,
|
|
23
|
-
actionName: trigger,
|
|
24
|
-
oldLayoutState: oldSate,
|
|
25
|
-
newLayoutState: newState,
|
|
26
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
27
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
28
|
-
};
|
|
20
|
+
const layoutChangedInfo = Object.assign({ actionName: trigger, oldLayoutState: oldSate, newLayoutState: newState }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
29
21
|
if (!skipEqualityCheck && (0, isEqual_1.default)(oldSate, newState)) {
|
|
30
22
|
return;
|
|
31
23
|
}
|
|
32
|
-
this.
|
|
24
|
+
this.getAdaptableApi().eventApi.emit('LayoutChanged', layoutChangedInfo);
|
|
33
25
|
}
|
|
34
26
|
/**
|
|
35
27
|
* Compares 2 Layouts for equality
|
|
@@ -70,7 +62,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
70
62
|
if (!layoutState.Layouts || !isLayoutDefined(GeneralConstants_1.DEFAULT_LAYOUT)) {
|
|
71
63
|
// augogroup columns are not in columns list
|
|
72
64
|
// the code that adds column ok grid state explicitly ignores autoColumns
|
|
73
|
-
const allGridColumns = this.
|
|
65
|
+
const allGridColumns = this.getAdaptableApi().gridApi.getAllGridColumns();
|
|
74
66
|
let defaultLayout = ObjectFactory_1.default.CreateEmptyLayout({
|
|
75
67
|
Name: GeneralConstants_1.DEFAULT_LAYOUT,
|
|
76
68
|
Columns: defaultLayoutColumns.map((c) => c.columnId),
|
|
@@ -114,6 +106,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
114
106
|
* This takes into account the data-source.
|
|
115
107
|
*/
|
|
116
108
|
getLayoutSupportedFeatures() {
|
|
109
|
+
var _a, _b;
|
|
117
110
|
const layoutSupportedFeatures = {
|
|
118
111
|
RowGroupedColumns: true,
|
|
119
112
|
AggregationColumns: true,
|
|
@@ -121,6 +114,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
121
114
|
ColumnFilters: true,
|
|
122
115
|
ColumnSorts: true,
|
|
123
116
|
GridFilter: true,
|
|
117
|
+
RowSummaries: true,
|
|
124
118
|
};
|
|
125
119
|
if (this.getGridApi().getAgGridRowModelType() === 'viewport') {
|
|
126
120
|
layoutSupportedFeatures.RowGroupedColumns = false;
|
|
@@ -134,6 +128,9 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
134
128
|
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.GridFilterModuleId) == 'Hidden') {
|
|
135
129
|
layoutSupportedFeatures.GridFilter = false;
|
|
136
130
|
}
|
|
131
|
+
if (((_b = (_a = this.adaptable) === null || _a === void 0 ? void 0 : _a.getAgGridRowModelType) === null || _b === void 0 ? void 0 : _b.call(_a)) !== 'clientSide') {
|
|
132
|
+
layoutSupportedFeatures.RowSummaries = false;
|
|
133
|
+
}
|
|
137
134
|
return layoutSupportedFeatures;
|
|
138
135
|
}
|
|
139
136
|
updateCurrentDraftLayout(layout) {
|
|
@@ -159,14 +156,8 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
|
|
|
159
156
|
if ((layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.autoCheckTagsForLayouts) == true) {
|
|
160
157
|
return ArrayExtensions_1.default.IsNullOrEmpty(object.Tags) ? true : (_a = object.Tags) === null || _a === void 0 ? void 0 : _a.includes(layout.Name);
|
|
161
158
|
}
|
|
162
|
-
const context = {
|
|
163
|
-
|
|
164
|
-
module,
|
|
165
|
-
layout,
|
|
166
|
-
adaptableApi: this.getAdaptableApi(),
|
|
167
|
-
userName: this.getOptions().userName,
|
|
168
|
-
adaptableId: this.getOptions().adaptableId,
|
|
169
|
-
};
|
|
159
|
+
const context = Object.assign({ adaptableObject: object, module,
|
|
160
|
+
layout }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
170
161
|
return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
|
|
171
162
|
}
|
|
172
163
|
showLayoutNotAssociatedObjects() {
|
|
@@ -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) {
|
|
@@ -21,14 +21,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
21
21
|
getSystemFilterPredicateIds(scope) {
|
|
22
22
|
const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
|
|
23
23
|
if (typeof systemFilterPredicates === 'function') {
|
|
24
|
-
const systemPredicateContext = {
|
|
25
|
-
adaptableApi: this.adaptable.api,
|
|
26
|
-
userName: this.getOptions().userName,
|
|
27
|
-
adaptableId: this.getOptions().adaptableId,
|
|
28
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'),
|
|
29
|
-
moduleScope: 'columnFilter',
|
|
30
|
-
columnScope: scope,
|
|
31
|
-
};
|
|
24
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
|
|
32
25
|
return systemFilterPredicates(systemPredicateContext);
|
|
33
26
|
}
|
|
34
27
|
return systemFilterPredicates;
|
|
@@ -43,14 +36,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
43
36
|
getSystemAlertPredicateIds(scope) {
|
|
44
37
|
const systemAlertPredicates = this.getPredicateOptions().systemAlertPredicates;
|
|
45
38
|
if (typeof systemAlertPredicates === 'function') {
|
|
46
|
-
const systemPredicateContext = {
|
|
47
|
-
adaptableApi: this.adaptable.api,
|
|
48
|
-
userName: this.getOptions().userName,
|
|
49
|
-
adaptableId: this.getOptions().adaptableId,
|
|
50
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'),
|
|
51
|
-
moduleScope: 'alert',
|
|
52
|
-
columnScope: scope,
|
|
53
|
-
};
|
|
39
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
|
|
54
40
|
return systemAlertPredicates(systemPredicateContext);
|
|
55
41
|
}
|
|
56
42
|
return systemAlertPredicates;
|
|
@@ -58,14 +44,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
58
44
|
getSystemBadgeStylePredicateIds(scope) {
|
|
59
45
|
const systemBadgeStylePredicates = this.getPredicateOptions().systemBadgeStylePredicates;
|
|
60
46
|
if (typeof systemBadgeStylePredicates === 'function') {
|
|
61
|
-
const systemPredicateContext = {
|
|
62
|
-
adaptableApi: this.adaptable.api,
|
|
63
|
-
userName: this.getOptions().userName,
|
|
64
|
-
adaptableId: this.getOptions().adaptableId,
|
|
65
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'),
|
|
66
|
-
moduleScope: 'badgeStyle',
|
|
67
|
-
columnScope: scope,
|
|
68
|
-
};
|
|
47
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
|
|
69
48
|
return systemBadgeStylePredicates(systemPredicateContext);
|
|
70
49
|
}
|
|
71
50
|
return systemBadgeStylePredicates;
|
|
@@ -80,14 +59,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
80
59
|
getSystemFormatColumnPredicateIds(scope) {
|
|
81
60
|
const systemFormatColumnPredicates = this.getPredicateOptions().systemFormatColumnPredicates;
|
|
82
61
|
if (typeof systemFormatColumnPredicates === 'function') {
|
|
83
|
-
const systemPredicateContext = {
|
|
84
|
-
adaptableApi: this.adaptable.api,
|
|
85
|
-
userName: this.getOptions().userName,
|
|
86
|
-
adaptableId: this.getOptions().adaptableId,
|
|
87
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'),
|
|
88
|
-
moduleScope: 'formatColumn',
|
|
89
|
-
columnScope: scope,
|
|
90
|
-
};
|
|
62
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
|
|
91
63
|
return systemFormatColumnPredicates(systemPredicateContext);
|
|
92
64
|
}
|
|
93
65
|
return systemFormatColumnPredicates;
|
|
@@ -102,14 +74,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
|
|
|
102
74
|
getSystemFlashingCellPredicateIds(scope) {
|
|
103
75
|
const systemFlashingCellPredicates = this.getPredicateOptions().systemFlashingCellPredicates;
|
|
104
76
|
if (typeof systemFlashingCellPredicates === 'function') {
|
|
105
|
-
const systemPredicateContext = {
|
|
106
|
-
adaptableApi: this.adaptable.api,
|
|
107
|
-
userName: this.getOptions().userName,
|
|
108
|
-
adaptableId: this.getOptions().adaptableId,
|
|
109
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'),
|
|
110
|
-
moduleScope: 'flashingcell',
|
|
111
|
-
columnScope: scope,
|
|
112
|
-
};
|
|
77
|
+
const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
113
78
|
return systemFlashingCellPredicates(systemPredicateContext);
|
|
114
79
|
}
|
|
115
80
|
return systemFlashingCellPredicates;
|
|
@@ -8,12 +8,7 @@ class ScheduleInternalApi extends ApiBase_1.ApiBase {
|
|
|
8
8
|
*/
|
|
9
9
|
fireScheduleTriggeredEvent(schedule) {
|
|
10
10
|
const adaptableApi = this.getAdaptableApi();
|
|
11
|
-
const scheduleTriggeredInfo = {
|
|
12
|
-
adaptableApi: adaptableApi,
|
|
13
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
14
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
15
|
-
schedule: schedule,
|
|
16
|
-
};
|
|
11
|
+
const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { schedule: schedule });
|
|
17
12
|
adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
|
|
18
13
|
}
|
|
19
14
|
}
|
|
@@ -34,11 +34,11 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
let columnId = columnComparison.MinValue;
|
|
37
|
-
if (!this.
|
|
37
|
+
if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
|
|
38
38
|
return 0;
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
return this.
|
|
41
|
+
return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -97,11 +97,11 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
99
|
let columnId = columnComparison.MaxValue;
|
|
100
|
-
if (!this.
|
|
100
|
+
if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
else {
|
|
104
|
-
return this.
|
|
104
|
+
return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -279,7 +279,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
279
279
|
};
|
|
280
280
|
return this.getAdaptableApi()
|
|
281
281
|
.predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
|
|
282
|
-
.filter((predicate) => this.
|
|
282
|
+
.filter((predicate) => this.getAdaptableApi().scopeApi.isColumnInScope(column, predicate.columnScope));
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
exports.StyledColumnInternalApi = StyledColumnInternalApi;
|
|
@@ -10,13 +10,7 @@ class SystemStatusInternalApi extends ApiBase_1.ApiBase {
|
|
|
10
10
|
* @param systemStatusMessageInfo Info about new System Status Message
|
|
11
11
|
*/
|
|
12
12
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
13
|
-
const
|
|
14
|
-
const systemStatusMessageDisplayedInfo = {
|
|
15
|
-
adaptableApi,
|
|
16
|
-
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
17
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
18
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
19
|
-
};
|
|
13
|
+
const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
20
14
|
this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
21
15
|
}
|
|
22
16
|
addSystemStatusMessageInfo(systemStatusMessageInfo) {
|
|
@@ -9,12 +9,7 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
|
|
|
9
9
|
*/
|
|
10
10
|
fireTeamSharingEntityChangedEvent(sharedEntity) {
|
|
11
11
|
if (this.adaptable.isReady) {
|
|
12
|
-
const teamSharingEntityChangedInfo = {
|
|
13
|
-
adaptableApi: this.adaptable.api,
|
|
14
|
-
sharedEntity: sharedEntity,
|
|
15
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
16
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
17
|
-
};
|
|
12
|
+
const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { sharedEntity: sharedEntity });
|
|
18
13
|
this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
|
|
19
14
|
}
|
|
20
15
|
}
|
|
@@ -41,7 +36,7 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
|
|
|
41
36
|
reject(false);
|
|
42
37
|
}, waitThreshold);
|
|
43
38
|
// poll state for changes:
|
|
44
|
-
const unsubscribe = this.
|
|
39
|
+
const unsubscribe = this.getAdaptableApi().eventApi.on('AdaptableStateChanged', () => {
|
|
45
40
|
clearTimeout(pollTimer);
|
|
46
41
|
pollTimer = setTimeout(() => {
|
|
47
42
|
// state is stable, cleanup all subscriptions before returning
|
|
@@ -13,7 +13,7 @@ class ThemeInternalApi extends ApiBase_1.ApiBase {
|
|
|
13
13
|
return `ab--theme-${theme}`;
|
|
14
14
|
}
|
|
15
15
|
openInWindow() {
|
|
16
|
-
this.
|
|
16
|
+
this.getAdaptableApi().internalApi.showPopupWindow({
|
|
17
17
|
id: windowFactory_1.SHOW_THEME_EDITOR,
|
|
18
18
|
title: 'Theme',
|
|
19
19
|
icon: 'theme',
|
|
@@ -6,7 +6,7 @@ class UserInterfaceInternalApi extends ApiBase_1.ApiBase {
|
|
|
6
6
|
prepareAdaptableIconDef(icon) {
|
|
7
7
|
if (icon && 'name' in icon) {
|
|
8
8
|
let customIcon = icon && 'name' in icon
|
|
9
|
-
? this.
|
|
9
|
+
? this.getAdaptableApi().userInterfaceApi.getCustomIconDefinition(icon.name)
|
|
10
10
|
: null;
|
|
11
11
|
if (customIcon) {
|
|
12
12
|
icon = customIcon;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -182,15 +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
|
-
};
|
|
196
185
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseContext } from '../../../types';
|
|
2
|
+
import { AdaptableColumn } from '../../types';
|
|
2
3
|
import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
3
4
|
/**
|
|
4
5
|
* Defines the Summary operations provides for Selected Cells
|
|
@@ -14,6 +15,8 @@ export interface CellSummmary {
|
|
|
14
15
|
Count: number | undefined;
|
|
15
16
|
Only: string | undefined;
|
|
16
17
|
Std_Deviation: number | undefined;
|
|
18
|
+
Oldest: Date | undefined;
|
|
19
|
+
Newest: Date | undefined;
|
|
17
20
|
[key: string]: any;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
@@ -38,19 +41,7 @@ export interface CellSummaryOperationContext<TData = any> extends BaseContext {
|
|
|
38
41
|
*/
|
|
39
42
|
selectedCellInfo: SelectedCellInfo<TData>;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
44
|
+
* Currently selected Column
|
|
42
45
|
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Any numeric columns in current selection
|
|
46
|
-
*/
|
|
47
|
-
numericColumns: string[];
|
|
48
|
-
/**
|
|
49
|
-
* Any numeric values in current selection
|
|
50
|
-
*/
|
|
51
|
-
numericValues: number[];
|
|
52
|
-
/**
|
|
53
|
-
* Count of currently selected cells
|
|
54
|
-
*/
|
|
55
|
-
distinctCount: number;
|
|
46
|
+
selectedColumn: AdaptableColumn;
|
|
56
47
|
}
|
|
@@ -76,6 +76,8 @@ var SummaryOperation;
|
|
|
76
76
|
SummaryOperation["Max"] = "Max";
|
|
77
77
|
SummaryOperation["Min"] = "Min";
|
|
78
78
|
SummaryOperation["Count"] = "Count";
|
|
79
|
+
SummaryOperation["Newest"] = "Newest";
|
|
80
|
+
SummaryOperation["Oldest"] = "Oldest";
|
|
79
81
|
SummaryOperation["Std_Deviation"] = "Std Deviation";
|
|
80
82
|
SummaryOperation["Only"] = "Only";
|
|
81
83
|
SummaryOperation["Weighted_Average"] = "Weighted Avg";
|
|
@@ -5,16 +5,16 @@ import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
|
5
5
|
import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
|
|
6
6
|
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
7
7
|
import { AdaptableIcon, BaseContext } from '../../types';
|
|
8
|
-
export type AdaptableColumnMenuItemName =
|
|
9
|
-
export type AdaptableContextMenuItemName =
|
|
8
|
+
export type AdaptableColumnMenuItemName = typeof ADAPTABLE_COLUMN_MENU_ITEMS[number];
|
|
9
|
+
export type AdaptableContextMenuItemName = typeof ADAPTABLE_CONTEXT_MENU_ITEMS[number];
|
|
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-filter-
|
|
13
|
+
export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-on-cell-value", "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-info-show", "layout-column-caption-change", "layout-column-hide", "layout-edit", "layout-select-actions", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-select-all", "plus-minus-add", "settings-panel-open", "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-filter-
|
|
17
|
+
export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group-parent", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "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-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "layout-grid-actions", "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,7 +7,6 @@ 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-filter-parent',
|
|
11
10
|
'column-filter-bar-hide',
|
|
12
11
|
'column-filter-bar-show',
|
|
13
12
|
'column-filter-clear',
|
|
@@ -17,7 +16,6 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
17
16
|
'column-info-show',
|
|
18
17
|
'custom-sort-add',
|
|
19
18
|
'custom-sort-edit',
|
|
20
|
-
'dashboard-parent',
|
|
21
19
|
'dashboard-collapse',
|
|
22
20
|
'dashboard-configure',
|
|
23
21
|
'dashboard-dock',
|
|
@@ -28,23 +26,20 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
28
26
|
'data-import',
|
|
29
27
|
'flashing-cell-add',
|
|
30
28
|
'flashing-cell-delete',
|
|
31
|
-
'format-column-parent',
|
|
32
29
|
'format-column-add',
|
|
33
30
|
'format-column-edit',
|
|
34
31
|
'free-text-column-edit',
|
|
35
32
|
'grid-info-show',
|
|
36
33
|
'layout-column-caption-change',
|
|
37
34
|
'layout-column-hide',
|
|
35
|
+
'layout-edit',
|
|
36
|
+
'layout-select-actions',
|
|
38
37
|
'layout-column-select',
|
|
39
38
|
'layout-column-select-preserve',
|
|
40
39
|
'layout-column-select-reset',
|
|
41
|
-
'layout-edit',
|
|
42
|
-
'layout-grid-parent',
|
|
43
|
-
'layout-select-parent',
|
|
44
40
|
'layout-select-all',
|
|
45
41
|
'plus-minus-add',
|
|
46
42
|
'settings-panel-open',
|
|
47
|
-
'styled-column-parent',
|
|
48
43
|
'styled-column-badge-add',
|
|
49
44
|
'styled-column-badge-edit',
|
|
50
45
|
'styled-column-gradient-add',
|
|
@@ -54,17 +49,17 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
54
49
|
'styled-column-sparkline-add',
|
|
55
50
|
'styled-column-sparkline-edit',
|
|
56
51
|
'system-status-show',
|
|
57
|
-
'
|
|
52
|
+
'_navbar', // used in SettingsPanel navigation bar and in Dashboard Module buttons
|
|
58
53
|
];
|
|
59
54
|
/**
|
|
60
55
|
* List of Shipped Adaptable Context Menu Items
|
|
61
56
|
*/
|
|
62
57
|
exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
58
|
+
'menu-group-parent',
|
|
63
59
|
'alert-clear',
|
|
64
60
|
'bulk-update-apply',
|
|
65
61
|
'calculated-column-edit',
|
|
66
62
|
'cell-summary-show',
|
|
67
|
-
'column-filter-parent',
|
|
68
63
|
'column-filter-on-cell-value',
|
|
69
64
|
'column-filter-clear',
|
|
70
65
|
'column-filter-suspend',
|
|
@@ -72,7 +67,6 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
72
67
|
'column-info-show',
|
|
73
68
|
'comment-add',
|
|
74
69
|
'comment-remove',
|
|
75
|
-
'dashboard-parent',
|
|
76
70
|
'dashboard-collapse',
|
|
77
71
|
'dashboard-configure',
|
|
78
72
|
'dashboard-dock',
|
|
@@ -81,14 +75,18 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
81
75
|
'dashboard-hide',
|
|
82
76
|
'dashboard-show',
|
|
83
77
|
'data-import',
|
|
84
|
-
'export-
|
|
85
|
-
'export-
|
|
86
|
-
'export-
|
|
87
|
-
'export-
|
|
88
|
-
'export-
|
|
89
|
-
'export-
|
|
90
|
-
'export-
|
|
91
|
-
'
|
|
78
|
+
'export-cells-clipboard',
|
|
79
|
+
'export-cells-csv',
|
|
80
|
+
'export-cells-excel',
|
|
81
|
+
'export-cells-json',
|
|
82
|
+
'export-cells-table',
|
|
83
|
+
'export-cells-custom-destination',
|
|
84
|
+
'export-rows-clipboard',
|
|
85
|
+
'export-rows-csv',
|
|
86
|
+
'export-rows-excel',
|
|
87
|
+
'export-rows-json',
|
|
88
|
+
'export-rows-table',
|
|
89
|
+
'export-rows-custom-destination',
|
|
92
90
|
'fdc3-broadcast',
|
|
93
91
|
'fdc3-raise-intent',
|
|
94
92
|
'flashing-cell-clear',
|
|
@@ -99,6 +97,7 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
99
97
|
'layout-clear-selection',
|
|
100
98
|
'layout-edit',
|
|
101
99
|
'layout-select-all',
|
|
100
|
+
'layout-grid-actions',
|
|
102
101
|
'note-add',
|
|
103
102
|
'note-remove',
|
|
104
103
|
'settings-panel-open',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ROW_SUMMARY_ROW_ID = "__ROW_SUMMARY_ROW_ID";
|
|
2
2
|
export declare const WEIGHTED_AVERAGE_AGGREATED_FUNCTION = "WEIGHTED_AVERAGE";
|
|
3
|
-
export declare const summarySupportedExpressions: readonly ["
|
|
3
|
+
export declare const summarySupportedExpressions: readonly ["MIN", "MAX", "SUM", "AVG", "COUNT", "MEDIAN", "MODE", "DISTINCT", "ONLY", "OLDEST", "NEWEST", "STD_DEVIATION", "WEIGHTED_AVERAGE"];
|
|
4
4
|
export type SummarySupportedExpression = (typeof summarySupportedExpressions)[number];
|
|
5
5
|
/**
|
|
6
6
|
* Position of Row Summary - 'Top' or 'Bottom'
|