@adaptabletools/adaptable 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 +1 -96
- 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.esm.tsbuildinfo +1 -1
|
@@ -12,14 +12,9 @@ export class GridInternalApi extends ApiBase {
|
|
|
12
12
|
*/
|
|
13
13
|
fireGridSortedEvent() {
|
|
14
14
|
if (this.adaptable.isReady) {
|
|
15
|
-
const adaptableSortState = this.
|
|
15
|
+
const adaptableSortState = this.getAdaptableApi().configApi.getAdaptableSortState();
|
|
16
16
|
const adaptableApi = this.getAdaptableApi();
|
|
17
|
-
const gridSortedInfo = {
|
|
18
|
-
adaptableSortState: adaptableSortState,
|
|
19
|
-
adaptableApi: adaptableApi,
|
|
20
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
21
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
22
|
-
};
|
|
17
|
+
const gridSortedInfo = Object.assign({ adaptableSortState: adaptableSortState }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
23
18
|
adaptableApi.eventApi.emit('GridSorted', gridSortedInfo);
|
|
24
19
|
}
|
|
25
20
|
}
|
|
@@ -28,13 +23,8 @@ export class GridInternalApi extends ApiBase {
|
|
|
28
23
|
*/
|
|
29
24
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
30
25
|
if (this.adaptable.isReady) {
|
|
31
|
-
const cellChangedInfo = {
|
|
32
|
-
|
|
33
|
-
cellChange: cellDataChangedInfo,
|
|
34
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
35
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
36
|
-
};
|
|
37
|
-
this.adaptable.api.eventApi.emit('CellChanged', cellChangedInfo);
|
|
26
|
+
const cellChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { cellChange: cellDataChangedInfo });
|
|
27
|
+
this.getAdaptableApi().eventApi.emit('CellChanged', cellChangedInfo);
|
|
38
28
|
}
|
|
39
29
|
}
|
|
40
30
|
/**
|
|
@@ -42,16 +32,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
42
32
|
*/
|
|
43
33
|
fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger) {
|
|
44
34
|
if (this.adaptable.isReady) {
|
|
45
|
-
const gridDataChangedInfo = {
|
|
46
|
-
changedAt: Date.now(),
|
|
47
|
-
adaptableApi: this.adaptable.api,
|
|
48
|
-
rowTrigger,
|
|
35
|
+
const gridDataChangedInfo = Object.assign({ changedAt: Date.now(), rowTrigger,
|
|
49
36
|
dataRows,
|
|
50
|
-
rowNodes,
|
|
51
|
-
|
|
52
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
53
|
-
};
|
|
54
|
-
this.adaptable.api.eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
37
|
+
rowNodes }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
38
|
+
this.getAdaptableApi().eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
55
39
|
this.adaptable.DataService.CreateGridChangedEvent(gridDataChangedInfo);
|
|
56
40
|
}
|
|
57
41
|
}
|
|
@@ -96,12 +80,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
96
80
|
let shouldShowValuesCount = false;
|
|
97
81
|
const showValuesCountFunction = this.getColumnFilterOptions().valuesFilterOptions.showValuesCount;
|
|
98
82
|
if (showValuesCountFunction) {
|
|
99
|
-
const columnFilterContext = {
|
|
100
|
-
column: abColumn,
|
|
101
|
-
adaptableApi: this.adaptable.api,
|
|
102
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
103
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
104
|
-
};
|
|
83
|
+
const columnFilterContext = Object.assign({ column: abColumn }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
105
84
|
shouldShowValuesCount = showValuesCountFunction(columnFilterContext);
|
|
106
85
|
}
|
|
107
86
|
if (shouldShowValuesCount) {
|
|
@@ -139,7 +118,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
139
118
|
};
|
|
140
119
|
let preparedPermittedValues = undefined;
|
|
141
120
|
try {
|
|
142
|
-
const filterPermittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.
|
|
121
|
+
const filterPermittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.getAdaptableApi())), { column: column, searchFilter: filter });
|
|
143
122
|
preparedPermittedValues = await (filterPermittedValues === null || filterPermittedValues === void 0 ? void 0 : filterPermittedValues.values(filterPermittedValuesParams));
|
|
144
123
|
}
|
|
145
124
|
catch (error) {
|
|
@@ -172,7 +151,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
172
151
|
const customSortPermittedValues = await this.getUserInterfaceApi().getCustomSortPermittedValuesForColumn(column);
|
|
173
152
|
let preparedPermittedValues = undefined;
|
|
174
153
|
try {
|
|
175
|
-
const permittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.
|
|
154
|
+
const permittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.getAdaptableApi())), { column: column });
|
|
176
155
|
preparedPermittedValues = await (customSortPermittedValues === null || customSortPermittedValues === void 0 ? void 0 : customSortPermittedValues.values(permittedValuesParams));
|
|
177
156
|
}
|
|
178
157
|
catch (error) {
|
|
@@ -203,7 +182,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
203
182
|
const bulkUpdatePermittedValues = await this.getUserInterfaceApi().getBulkUpdatePermittedValuesForColumn(column);
|
|
204
183
|
let preparedPermittedValues = undefined;
|
|
205
184
|
try {
|
|
206
|
-
const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.
|
|
185
|
+
const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, createBaseContext(this.getAdaptableApi())), { column: column, gridCells: selectedGridCells });
|
|
207
186
|
preparedPermittedValues = await (bulkUpdatePermittedValues === null || bulkUpdatePermittedValues === void 0 ? void 0 : bulkUpdatePermittedValues.values(bulkUpdatePermittedValuesParams));
|
|
208
187
|
}
|
|
209
188
|
catch (error) {
|
|
@@ -280,7 +259,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
280
259
|
// this does NOT into account Custom Sort - far too hard for now...
|
|
281
260
|
let sortOrder = SortOrder.Asc;
|
|
282
261
|
if (this.getColumnFilterOptions().valuesFilterOptions.sortValuesFilter) {
|
|
283
|
-
let columnSort = this.
|
|
262
|
+
let columnSort = this.getAdaptableApi().gridApi.getColumnSortForColumn(column.columnId);
|
|
284
263
|
if (columnSort && columnSort.SortOrder == 'Desc') {
|
|
285
264
|
sortOrder = SortOrder.Desc;
|
|
286
265
|
}
|
|
@@ -315,13 +294,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
315
294
|
let editLookUpValues = editLookUpItem.values;
|
|
316
295
|
// first do the function then get hardcoded items
|
|
317
296
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
318
|
-
const editLookUpContext = {
|
|
319
|
-
adaptableApi: this.adaptable.api,
|
|
320
|
-
userName: this.getOptions().userName,
|
|
321
|
-
adaptableId: this.getOptions().adaptableId,
|
|
322
|
-
column: column,
|
|
323
|
-
gridCell,
|
|
324
|
-
};
|
|
297
|
+
const editLookUpContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column, gridCell });
|
|
325
298
|
return editLookUpValues(editLookUpContext);
|
|
326
299
|
}
|
|
327
300
|
else {
|
|
@@ -13,19 +13,11 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
13
13
|
* @param newState Layout State after change
|
|
14
14
|
*/
|
|
15
15
|
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
16
|
-
const
|
|
17
|
-
const layoutChangedInfo = {
|
|
18
|
-
adaptableApi: adaptableApi,
|
|
19
|
-
actionName: trigger,
|
|
20
|
-
oldLayoutState: oldSate,
|
|
21
|
-
newLayoutState: newState,
|
|
22
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
23
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
24
|
-
};
|
|
16
|
+
const layoutChangedInfo = Object.assign({ actionName: trigger, oldLayoutState: oldSate, newLayoutState: newState }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
25
17
|
if (!skipEqualityCheck && isEqual(oldSate, newState)) {
|
|
26
18
|
return;
|
|
27
19
|
}
|
|
28
|
-
this.
|
|
20
|
+
this.getAdaptableApi().eventApi.emit('LayoutChanged', layoutChangedInfo);
|
|
29
21
|
}
|
|
30
22
|
/**
|
|
31
23
|
* Compares 2 Layouts for equality
|
|
@@ -66,7 +58,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
66
58
|
if (!layoutState.Layouts || !isLayoutDefined(DEFAULT_LAYOUT)) {
|
|
67
59
|
// augogroup columns are not in columns list
|
|
68
60
|
// the code that adds column ok grid state explicitly ignores autoColumns
|
|
69
|
-
const allGridColumns = this.
|
|
61
|
+
const allGridColumns = this.getAdaptableApi().gridApi.getAllGridColumns();
|
|
70
62
|
let defaultLayout = ObjectFactory.CreateEmptyLayout({
|
|
71
63
|
Name: DEFAULT_LAYOUT,
|
|
72
64
|
Columns: defaultLayoutColumns.map((c) => c.columnId),
|
|
@@ -110,6 +102,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
110
102
|
* This takes into account the data-source.
|
|
111
103
|
*/
|
|
112
104
|
getLayoutSupportedFeatures() {
|
|
105
|
+
var _a, _b;
|
|
113
106
|
const layoutSupportedFeatures = {
|
|
114
107
|
RowGroupedColumns: true,
|
|
115
108
|
AggregationColumns: true,
|
|
@@ -117,6 +110,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
117
110
|
ColumnFilters: true,
|
|
118
111
|
ColumnSorts: true,
|
|
119
112
|
GridFilter: true,
|
|
113
|
+
RowSummaries: true,
|
|
120
114
|
};
|
|
121
115
|
if (this.getGridApi().getAgGridRowModelType() === 'viewport') {
|
|
122
116
|
layoutSupportedFeatures.RowGroupedColumns = false;
|
|
@@ -130,6 +124,9 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
130
124
|
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(GridFilterModuleId) == 'Hidden') {
|
|
131
125
|
layoutSupportedFeatures.GridFilter = false;
|
|
132
126
|
}
|
|
127
|
+
if (((_b = (_a = this.adaptable) === null || _a === void 0 ? void 0 : _a.getAgGridRowModelType) === null || _b === void 0 ? void 0 : _b.call(_a)) !== 'clientSide') {
|
|
128
|
+
layoutSupportedFeatures.RowSummaries = false;
|
|
129
|
+
}
|
|
133
130
|
return layoutSupportedFeatures;
|
|
134
131
|
}
|
|
135
132
|
updateCurrentDraftLayout(layout) {
|
|
@@ -155,14 +152,8 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
155
152
|
if ((layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.autoCheckTagsForLayouts) == true) {
|
|
156
153
|
return ArrayExtensions.IsNullOrEmpty(object.Tags) ? true : (_a = object.Tags) === null || _a === void 0 ? void 0 : _a.includes(layout.Name);
|
|
157
154
|
}
|
|
158
|
-
const context = {
|
|
159
|
-
|
|
160
|
-
module,
|
|
161
|
-
layout,
|
|
162
|
-
adaptableApi: this.getAdaptableApi(),
|
|
163
|
-
userName: this.getOptions().userName,
|
|
164
|
-
adaptableId: this.getOptions().adaptableId,
|
|
165
|
-
};
|
|
155
|
+
const context = Object.assign({ adaptableObject: object, module,
|
|
156
|
+
layout }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
166
157
|
return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
|
|
167
158
|
}
|
|
168
159
|
showLayoutNotAssociatedObjects() {
|
|
@@ -18,14 +18,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
18
18
|
getSystemFilterPredicateIds(scope) {
|
|
19
19
|
const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
|
|
20
20
|
if (typeof systemFilterPredicates === 'function') {
|
|
21
|
-
const systemPredicateContext = {
|
|
22
|
-
adaptableApi: this.adaptable.api,
|
|
23
|
-
userName: this.getOptions().userName,
|
|
24
|
-
adaptableId: this.getOptions().adaptableId,
|
|
25
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'),
|
|
26
|
-
moduleScope: 'columnFilter',
|
|
27
|
-
columnScope: scope,
|
|
28
|
-
};
|
|
21
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
|
|
29
22
|
return systemFilterPredicates(systemPredicateContext);
|
|
30
23
|
}
|
|
31
24
|
return systemFilterPredicates;
|
|
@@ -40,14 +33,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
40
33
|
getSystemAlertPredicateIds(scope) {
|
|
41
34
|
const systemAlertPredicates = this.getPredicateOptions().systemAlertPredicates;
|
|
42
35
|
if (typeof systemAlertPredicates === 'function') {
|
|
43
|
-
const systemPredicateContext = {
|
|
44
|
-
adaptableApi: this.adaptable.api,
|
|
45
|
-
userName: this.getOptions().userName,
|
|
46
|
-
adaptableId: this.getOptions().adaptableId,
|
|
47
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'),
|
|
48
|
-
moduleScope: 'alert',
|
|
49
|
-
columnScope: scope,
|
|
50
|
-
};
|
|
36
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
|
|
51
37
|
return systemAlertPredicates(systemPredicateContext);
|
|
52
38
|
}
|
|
53
39
|
return systemAlertPredicates;
|
|
@@ -55,14 +41,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
55
41
|
getSystemBadgeStylePredicateIds(scope) {
|
|
56
42
|
const systemBadgeStylePredicates = this.getPredicateOptions().systemBadgeStylePredicates;
|
|
57
43
|
if (typeof systemBadgeStylePredicates === 'function') {
|
|
58
|
-
const systemPredicateContext = {
|
|
59
|
-
adaptableApi: this.adaptable.api,
|
|
60
|
-
userName: this.getOptions().userName,
|
|
61
|
-
adaptableId: this.getOptions().adaptableId,
|
|
62
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'),
|
|
63
|
-
moduleScope: 'badgeStyle',
|
|
64
|
-
columnScope: scope,
|
|
65
|
-
};
|
|
44
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
|
|
66
45
|
return systemBadgeStylePredicates(systemPredicateContext);
|
|
67
46
|
}
|
|
68
47
|
return systemBadgeStylePredicates;
|
|
@@ -77,14 +56,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
77
56
|
getSystemFormatColumnPredicateIds(scope) {
|
|
78
57
|
const systemFormatColumnPredicates = this.getPredicateOptions().systemFormatColumnPredicates;
|
|
79
58
|
if (typeof systemFormatColumnPredicates === 'function') {
|
|
80
|
-
const systemPredicateContext = {
|
|
81
|
-
adaptableApi: this.adaptable.api,
|
|
82
|
-
userName: this.getOptions().userName,
|
|
83
|
-
adaptableId: this.getOptions().adaptableId,
|
|
84
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'),
|
|
85
|
-
moduleScope: 'formatColumn',
|
|
86
|
-
columnScope: scope,
|
|
87
|
-
};
|
|
59
|
+
const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
|
|
88
60
|
return systemFormatColumnPredicates(systemPredicateContext);
|
|
89
61
|
}
|
|
90
62
|
return systemFormatColumnPredicates;
|
|
@@ -99,14 +71,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
99
71
|
getSystemFlashingCellPredicateIds(scope) {
|
|
100
72
|
const systemFlashingCellPredicates = this.getPredicateOptions().systemFlashingCellPredicates;
|
|
101
73
|
if (typeof systemFlashingCellPredicates === 'function') {
|
|
102
|
-
const systemPredicateContext = {
|
|
103
|
-
adaptableApi: this.adaptable.api,
|
|
104
|
-
userName: this.getOptions().userName,
|
|
105
|
-
adaptableId: this.getOptions().adaptableId,
|
|
106
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'),
|
|
107
|
-
moduleScope: 'flashingcell',
|
|
108
|
-
columnScope: scope,
|
|
109
|
-
};
|
|
74
|
+
const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
110
75
|
return systemFlashingCellPredicates(systemPredicateContext);
|
|
111
76
|
}
|
|
112
77
|
return systemFlashingCellPredicates;
|
|
@@ -5,12 +5,7 @@ export class ScheduleInternalApi extends ApiBase {
|
|
|
5
5
|
*/
|
|
6
6
|
fireScheduleTriggeredEvent(schedule) {
|
|
7
7
|
const adaptableApi = this.getAdaptableApi();
|
|
8
|
-
const scheduleTriggeredInfo = {
|
|
9
|
-
adaptableApi: adaptableApi,
|
|
10
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
11
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
12
|
-
schedule: schedule,
|
|
13
|
-
};
|
|
8
|
+
const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { schedule: schedule });
|
|
14
9
|
adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
|
|
15
10
|
}
|
|
16
11
|
}
|
|
@@ -30,11 +30,11 @@ export class StyledColumnInternalApi extends ApiBase {
|
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
let columnId = columnComparison.MinValue;
|
|
33
|
-
if (!this.
|
|
33
|
+
if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
|
|
34
34
|
return 0;
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
|
-
return this.
|
|
37
|
+
return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -93,11 +93,11 @@ export class StyledColumnInternalApi extends ApiBase {
|
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
95
|
let columnId = columnComparison.MaxValue;
|
|
96
|
-
if (!this.
|
|
96
|
+
if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
|
-
return this.
|
|
100
|
+
return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -275,6 +275,6 @@ export class StyledColumnInternalApi extends ApiBase {
|
|
|
275
275
|
};
|
|
276
276
|
return this.getAdaptableApi()
|
|
277
277
|
.predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
|
|
278
|
-
.filter((predicate) => this.
|
|
278
|
+
.filter((predicate) => this.getAdaptableApi().scopeApi.isColumnInScope(column, predicate.columnScope));
|
|
279
279
|
}
|
|
280
280
|
}
|
|
@@ -6,13 +6,7 @@ export class SystemStatusInternalApi extends ApiBase {
|
|
|
6
6
|
* @param systemStatusMessageInfo Info about new System Status Message
|
|
7
7
|
*/
|
|
8
8
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
9
|
-
const
|
|
10
|
-
const systemStatusMessageDisplayedInfo = {
|
|
11
|
-
adaptableApi,
|
|
12
|
-
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
13
|
-
userName: adaptableApi.optionsApi.getUserName(),
|
|
14
|
-
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
15
|
-
};
|
|
9
|
+
const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableApi().internalApi.buildBaseContext());
|
|
16
10
|
this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
17
11
|
}
|
|
18
12
|
addSystemStatusMessageInfo(systemStatusMessageInfo) {
|
|
@@ -6,12 +6,7 @@ export class TeamSharingInternalApi extends ApiBase {
|
|
|
6
6
|
*/
|
|
7
7
|
fireTeamSharingEntityChangedEvent(sharedEntity) {
|
|
8
8
|
if (this.adaptable.isReady) {
|
|
9
|
-
const teamSharingEntityChangedInfo = {
|
|
10
|
-
adaptableApi: this.adaptable.api,
|
|
11
|
-
sharedEntity: sharedEntity,
|
|
12
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
13
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
14
|
-
};
|
|
9
|
+
const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { sharedEntity: sharedEntity });
|
|
15
10
|
this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
|
|
16
11
|
}
|
|
17
12
|
}
|
|
@@ -38,7 +33,7 @@ export class TeamSharingInternalApi extends ApiBase {
|
|
|
38
33
|
reject(false);
|
|
39
34
|
}, waitThreshold);
|
|
40
35
|
// poll state for changes:
|
|
41
|
-
const unsubscribe = this.
|
|
36
|
+
const unsubscribe = this.getAdaptableApi().eventApi.on('AdaptableStateChanged', () => {
|
|
42
37
|
clearTimeout(pollTimer);
|
|
43
38
|
pollTimer = setTimeout(() => {
|
|
44
39
|
// state is stable, cleanup all subscriptions before returning
|
|
@@ -10,7 +10,7 @@ export class ThemeInternalApi extends ApiBase {
|
|
|
10
10
|
return `ab--theme-${theme}`;
|
|
11
11
|
}
|
|
12
12
|
openInWindow() {
|
|
13
|
-
this.
|
|
13
|
+
this.getAdaptableApi().internalApi.showPopupWindow({
|
|
14
14
|
id: SHOW_THEME_EDITOR,
|
|
15
15
|
title: 'Theme',
|
|
16
16
|
icon: 'theme',
|
|
@@ -3,7 +3,7 @@ export class UserInterfaceInternalApi extends ApiBase {
|
|
|
3
3
|
prepareAdaptableIconDef(icon) {
|
|
4
4
|
if (icon && 'name' in icon) {
|
|
5
5
|
let customIcon = icon && 'name' in icon
|
|
6
|
-
? this.
|
|
6
|
+
? this.getAdaptableApi().userInterfaceApi.getCustomIconDefinition(icon.name)
|
|
7
7
|
: null;
|
|
8
8
|
if (customIcon) {
|
|
9
9
|
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
|
}
|
|
@@ -73,6 +73,8 @@ export var SummaryOperation;
|
|
|
73
73
|
SummaryOperation["Max"] = "Max";
|
|
74
74
|
SummaryOperation["Min"] = "Min";
|
|
75
75
|
SummaryOperation["Count"] = "Count";
|
|
76
|
+
SummaryOperation["Newest"] = "Newest";
|
|
77
|
+
SummaryOperation["Oldest"] = "Oldest";
|
|
76
78
|
SummaryOperation["Std_Deviation"] = "Std Deviation";
|
|
77
79
|
SummaryOperation["Only"] = "Only";
|
|
78
80
|
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
|
*/
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
export const ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
5
5
|
'calculated-column-edit',
|
|
6
6
|
'cell-summary-show',
|
|
7
|
-
'column-filter-parent',
|
|
8
7
|
'column-filter-bar-hide',
|
|
9
8
|
'column-filter-bar-show',
|
|
10
9
|
'column-filter-clear',
|
|
@@ -14,7 +13,6 @@ export const ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
14
13
|
'column-info-show',
|
|
15
14
|
'custom-sort-add',
|
|
16
15
|
'custom-sort-edit',
|
|
17
|
-
'dashboard-parent',
|
|
18
16
|
'dashboard-collapse',
|
|
19
17
|
'dashboard-configure',
|
|
20
18
|
'dashboard-dock',
|
|
@@ -25,23 +23,20 @@ export const ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
25
23
|
'data-import',
|
|
26
24
|
'flashing-cell-add',
|
|
27
25
|
'flashing-cell-delete',
|
|
28
|
-
'format-column-parent',
|
|
29
26
|
'format-column-add',
|
|
30
27
|
'format-column-edit',
|
|
31
28
|
'free-text-column-edit',
|
|
32
29
|
'grid-info-show',
|
|
33
30
|
'layout-column-caption-change',
|
|
34
31
|
'layout-column-hide',
|
|
32
|
+
'layout-edit',
|
|
33
|
+
'layout-select-actions',
|
|
35
34
|
'layout-column-select',
|
|
36
35
|
'layout-column-select-preserve',
|
|
37
36
|
'layout-column-select-reset',
|
|
38
|
-
'layout-edit',
|
|
39
|
-
'layout-grid-parent',
|
|
40
|
-
'layout-select-parent',
|
|
41
37
|
'layout-select-all',
|
|
42
38
|
'plus-minus-add',
|
|
43
39
|
'settings-panel-open',
|
|
44
|
-
'styled-column-parent',
|
|
45
40
|
'styled-column-badge-add',
|
|
46
41
|
'styled-column-badge-edit',
|
|
47
42
|
'styled-column-gradient-add',
|
|
@@ -51,17 +46,17 @@ export const ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
51
46
|
'styled-column-sparkline-add',
|
|
52
47
|
'styled-column-sparkline-edit',
|
|
53
48
|
'system-status-show',
|
|
54
|
-
'
|
|
49
|
+
'_navbar', // used in SettingsPanel navigation bar and in Dashboard Module buttons
|
|
55
50
|
];
|
|
56
51
|
/**
|
|
57
52
|
* List of Shipped Adaptable Context Menu Items
|
|
58
53
|
*/
|
|
59
54
|
export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
55
|
+
'menu-group-parent',
|
|
60
56
|
'alert-clear',
|
|
61
57
|
'bulk-update-apply',
|
|
62
58
|
'calculated-column-edit',
|
|
63
59
|
'cell-summary-show',
|
|
64
|
-
'column-filter-parent',
|
|
65
60
|
'column-filter-on-cell-value',
|
|
66
61
|
'column-filter-clear',
|
|
67
62
|
'column-filter-suspend',
|
|
@@ -69,7 +64,6 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
69
64
|
'column-info-show',
|
|
70
65
|
'comment-add',
|
|
71
66
|
'comment-remove',
|
|
72
|
-
'dashboard-parent',
|
|
73
67
|
'dashboard-collapse',
|
|
74
68
|
'dashboard-configure',
|
|
75
69
|
'dashboard-dock',
|
|
@@ -78,14 +72,18 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
78
72
|
'dashboard-hide',
|
|
79
73
|
'dashboard-show',
|
|
80
74
|
'data-import',
|
|
81
|
-
'export-
|
|
82
|
-
'export-
|
|
83
|
-
'export-
|
|
84
|
-
'export-
|
|
85
|
-
'export-
|
|
86
|
-
'export-
|
|
87
|
-
'export-
|
|
88
|
-
'
|
|
75
|
+
'export-cells-clipboard',
|
|
76
|
+
'export-cells-csv',
|
|
77
|
+
'export-cells-excel',
|
|
78
|
+
'export-cells-json',
|
|
79
|
+
'export-cells-table',
|
|
80
|
+
'export-cells-custom-destination',
|
|
81
|
+
'export-rows-clipboard',
|
|
82
|
+
'export-rows-csv',
|
|
83
|
+
'export-rows-excel',
|
|
84
|
+
'export-rows-json',
|
|
85
|
+
'export-rows-table',
|
|
86
|
+
'export-rows-custom-destination',
|
|
89
87
|
'fdc3-broadcast',
|
|
90
88
|
'fdc3-raise-intent',
|
|
91
89
|
'flashing-cell-clear',
|
|
@@ -96,6 +94,7 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
96
94
|
'layout-clear-selection',
|
|
97
95
|
'layout-edit',
|
|
98
96
|
'layout-select-all',
|
|
97
|
+
'layout-grid-actions',
|
|
99
98
|
'note-add',
|
|
100
99
|
'note-remove',
|
|
101
100
|
'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'
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export const ROW_SUMMARY_ROW_ID = '__ROW_SUMMARY_ROW_ID';
|
|
2
2
|
export const WEIGHTED_AVERAGE_AGGREATED_FUNCTION = 'WEIGHTED_AVERAGE';
|
|
3
3
|
export const summarySupportedExpressions = [
|
|
4
|
-
'SUM',
|
|
5
|
-
'AVG',
|
|
6
4
|
'MIN',
|
|
7
5
|
'MAX',
|
|
6
|
+
'SUM',
|
|
7
|
+
'AVG',
|
|
8
8
|
'COUNT',
|
|
9
9
|
'MEDIAN',
|
|
10
10
|
'MODE',
|
|
11
11
|
'DISTINCT',
|
|
12
12
|
'ONLY',
|
|
13
|
-
'STD_DEVIATION',
|
|
14
13
|
'OLDEST',
|
|
15
|
-
'
|
|
14
|
+
'NEWEST',
|
|
15
|
+
'STD_DEVIATION',
|
|
16
16
|
WEIGHTED_AVERAGE_AGGREATED_FUNCTION,
|
|
17
17
|
];
|