@adaptabletools/adaptable-cjs 18.0.0-canary.27 → 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 +2 -2
- 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/ScopeApiImpl.js +4 -4
- package/src/Api/Internal/ColumnFilterInternalApi.js +2 -2
- 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/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +4 -4
- package/src/PredefinedConfig/Common/Menu.js +8 -5
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +3 -3
- package/src/Strategy/ColumnFilterModule.js +1 -1
- package/src/Strategy/ColumnInfoModule.js +2 -2
- package/src/Strategy/GridInfoModule.js +1 -1
- package/src/Strategy/LayoutModule.js +8 -8
- package/src/Strategy/StyledColumnModule.js +9 -8
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +4 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +2 -1
- package/src/agGrid/AgGridMenuAdapter.d.ts +1 -0
- package/src/agGrid/AgGridMenuAdapter.js +144 -64
- 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/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
|
@@ -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);
|
|
@@ -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) {
|
|
@@ -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
|
}
|
|
@@ -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];
|
|
@@ -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 = typeof ADAPTABLE_COLUMN_MENU_ITEMS[number];
|
|
9
|
-
export type AdaptableContextMenuItemName = typeof ADAPTABLE_CONTEXT_MENU_ITEMS[number];
|
|
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-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 ["menu-group
|
|
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,10 +7,11 @@ 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-group',
|
|
11
|
+
'column-filter-group',
|
|
10
12
|
'column-filter-bar-hide',
|
|
11
13
|
'column-filter-bar-show',
|
|
12
14
|
'column-filter-clear',
|
|
13
|
-
'column-filter-on-cell-value',
|
|
14
15
|
'column-filter-suspend',
|
|
15
16
|
'column-filter-unsuspend',
|
|
16
17
|
'column-info-show',
|
|
@@ -29,17 +30,18 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
29
30
|
'format-column-add',
|
|
30
31
|
'format-column-edit',
|
|
31
32
|
'free-text-column-edit',
|
|
33
|
+
'grid-group',
|
|
32
34
|
'grid-info-show',
|
|
33
35
|
'layout-column-caption-change',
|
|
34
36
|
'layout-column-hide',
|
|
35
37
|
'layout-edit',
|
|
36
|
-
'layout-select-actions',
|
|
37
38
|
'layout-column-select',
|
|
38
39
|
'layout-column-select-preserve',
|
|
39
40
|
'layout-column-select-reset',
|
|
40
|
-
'layout-select
|
|
41
|
+
'layout-grid-select',
|
|
41
42
|
'plus-minus-add',
|
|
42
43
|
'settings-panel-open',
|
|
44
|
+
'styling-group',
|
|
43
45
|
'styled-column-badge-add',
|
|
44
46
|
'styled-column-badge-edit',
|
|
45
47
|
'styled-column-gradient-add',
|
|
@@ -55,11 +57,12 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
55
57
|
* List of Shipped Adaptable Context Menu Items
|
|
56
58
|
*/
|
|
57
59
|
exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
58
|
-
'menu-group
|
|
60
|
+
'menu-group',
|
|
59
61
|
'alert-clear',
|
|
60
62
|
'bulk-update-apply',
|
|
61
63
|
'calculated-column-edit',
|
|
62
64
|
'cell-summary-show',
|
|
65
|
+
'column-group',
|
|
63
66
|
'column-filter-on-cell-value',
|
|
64
67
|
'column-filter-clear',
|
|
65
68
|
'column-filter-suspend',
|
|
@@ -91,13 +94,13 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
91
94
|
'fdc3-raise-intent',
|
|
92
95
|
'flashing-cell-clear',
|
|
93
96
|
'flashing-row-clear',
|
|
97
|
+
'grid-group',
|
|
94
98
|
'grid-info-show',
|
|
95
99
|
'layout-aggregated-view',
|
|
96
100
|
'layout-auto-size',
|
|
97
101
|
'layout-clear-selection',
|
|
98
102
|
'layout-edit',
|
|
99
103
|
'layout-select-all',
|
|
100
|
-
'layout-grid-actions',
|
|
101
104
|
'note-add',
|
|
102
105
|
'note-remove',
|
|
103
106
|
'settings-panel-open',
|
|
@@ -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
|
|
@@ -51,7 +51,7 @@ class ColumnFilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
51
51
|
const isFilterVisible = this.api.columnFilterApi.isQuickFilterVisible();
|
|
52
52
|
if (this.isModuleEditable() &&
|
|
53
53
|
this.api.optionsApi.getColumnFilterOptions().useAdaptableColumnFiltering) {
|
|
54
|
-
columnFilterMenuItems.push(this.createMenuItemReduxAction(isFilterVisible ? 'column-filter-bar-hide' : 'column-filter-bar-show', isFilterVisible ? 'Hide Filter Bar' : 'Show Filter Bar', isFilterVisible ? '
|
|
54
|
+
columnFilterMenuItems.push(this.createMenuItemReduxAction(isFilterVisible ? 'column-filter-bar-hide' : 'column-filter-bar-show', isFilterVisible ? 'Hide Filter Bar' : 'Show Filter Bar', isFilterVisible ? 'filter-off' : 'filter', isFilterVisible
|
|
55
55
|
? SystemRedux.SystemQuickFilterBarHide()
|
|
56
56
|
: SystemRedux.SystemQuickFilterBarShow()));
|
|
57
57
|
}
|
|
@@ -22,7 +22,7 @@ class ColumnInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
22
22
|
Name: 'column-info-show',
|
|
23
23
|
Label: 'Column Info',
|
|
24
24
|
ComponentName: this.moduleInfo.Popup,
|
|
25
|
-
Icon:
|
|
25
|
+
Icon: 'info',
|
|
26
26
|
PopupParams: columnPopUpParams,
|
|
27
27
|
}),
|
|
28
28
|
];
|
|
@@ -39,7 +39,7 @@ class ColumnInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
39
39
|
Name: 'column-info-show',
|
|
40
40
|
Label: 'Column Info',
|
|
41
41
|
ComponentName: this.moduleInfo.Popup,
|
|
42
|
-
Icon:
|
|
42
|
+
Icon: 'info',
|
|
43
43
|
PopupParams: columnPopUpParams,
|
|
44
44
|
}),
|
|
45
45
|
];
|
|
@@ -6,7 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, '
|
|
9
|
+
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'grid-info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
|
|
10
10
|
}
|
|
11
11
|
getViewAccessLevel() {
|
|
12
12
|
return 'Full';
|
|
@@ -158,7 +158,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
158
158
|
let returnColumnMenuItems = [];
|
|
159
159
|
const isReadOnlyLayout = this.api.layoutApi.isCurrentLayoutReadOnly();
|
|
160
160
|
if (!isReadOnlyLayout) {
|
|
161
|
-
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup,
|
|
161
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup, 'edit-table', {
|
|
162
162
|
action: 'Edit',
|
|
163
163
|
source: 'ColumnMenu',
|
|
164
164
|
value: this.api.layoutApi.getCurrentLayout(),
|
|
@@ -175,20 +175,20 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
175
175
|
}
|
|
176
176
|
const hasExistingSelection = (_b = (_a = this.api.gridApi.getSelectedCellInfo()) === null || _a === void 0 ? void 0 : _a.gridCells) === null || _b === void 0 ? void 0 : _b.length;
|
|
177
177
|
if (hasExistingSelection) {
|
|
178
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select-preserve', 'Column (Preserve Selection)', '
|
|
178
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select-preserve', 'Select Column (Preserve Selection)', 'select-fwd', () => {
|
|
179
179
|
this.api.columnApi.addColumnToSelection(column.columnId);
|
|
180
180
|
}));
|
|
181
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select-reset', 'Column (Reset Selection)', '
|
|
181
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select-reset', 'Select Column (Reset Selection)', 'tab-unselected', () => {
|
|
182
182
|
this.api.columnApi.selectColumn(column.columnId);
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select', 'Column', '
|
|
186
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-select', 'Select Column', 'tab-unselected', () => {
|
|
187
187
|
this.api.columnApi.selectColumn(column.columnId);
|
|
188
188
|
}));
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-select
|
|
191
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-grid-select', 'Select Grid', 'select-all', () => {
|
|
192
192
|
this.api.gridApi.selectAll();
|
|
193
193
|
}));
|
|
194
194
|
return returnColumnMenuItems;
|
|
@@ -196,7 +196,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
196
196
|
createContextMenuItems(menuContext) {
|
|
197
197
|
let returnColumnMenuItems = [];
|
|
198
198
|
if (this.isModuleEditable() && !this.api.layoutApi.isCurrentLayoutReadOnly()) {
|
|
199
|
-
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup,
|
|
199
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup, 'edit-table', {
|
|
200
200
|
action: 'Edit',
|
|
201
201
|
source: 'ColumnMenu',
|
|
202
202
|
}));
|
|
@@ -205,11 +205,11 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
205
205
|
ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.columns)) ||
|
|
206
206
|
(menuContext.selectedRowInfo &&
|
|
207
207
|
ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedRowInfo.gridRows))) {
|
|
208
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-clear-selection', 'Clear Selected Cells', '
|
|
208
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-clear-selection', 'Clear Selected Cells', 'select-off', () => {
|
|
209
209
|
this.api.gridApi.deselectAll();
|
|
210
210
|
}));
|
|
211
211
|
}
|
|
212
|
-
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-select-all', 'Select', '
|
|
212
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-select-all', 'Select Grid', 'select-all', () => {
|
|
213
213
|
this.api.gridApi.selectAll();
|
|
214
214
|
}));
|
|
215
215
|
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-auto-size', 'Auto Size', 'arrow-expand', () => {
|
|
@@ -84,7 +84,8 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
84
84
|
},
|
|
85
85
|
};
|
|
86
86
|
const icon = this.getGlyphForStyledColumn(styledColumn);
|
|
87
|
-
const
|
|
87
|
+
const typeLabel = this.getTypeLabel(styledColumn);
|
|
88
|
+
const label = `Edit ${typeLabel}`;
|
|
88
89
|
const name = this.getTypeName(styledColumn);
|
|
89
90
|
returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label, this.moduleInfo.Popup, icon, popupParam));
|
|
90
91
|
}
|
|
@@ -97,7 +98,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
97
98
|
value: newStyledColumn,
|
|
98
99
|
config: {},
|
|
99
100
|
};
|
|
100
|
-
const badgeLabel =
|
|
101
|
+
const badgeLabel = 'Create Badge Style';
|
|
101
102
|
const newBadgeButton = this.createMenuItemShowPopup('styled-column-badge-add', badgeLabel, this.moduleInfo.Popup, 'badge', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { BadgeStyle: {
|
|
102
103
|
Badges: [ObjectFactory_1.default.CreateDefaultStyledColumnBadge()],
|
|
103
104
|
} }), config: {
|
|
@@ -110,12 +111,12 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
110
111
|
const emptyRanges = this.api.scopeApi.createCellColorRangesForScope({
|
|
111
112
|
ColumnIds: [column.columnId],
|
|
112
113
|
});
|
|
113
|
-
const newGrandientButton = this.createMenuItemShowPopup('styled-column-gradient-add', 'Gradient', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
|
|
114
|
+
const newGrandientButton = this.createMenuItemShowPopup('styled-column-gradient-add', 'Create Gradient Column', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
|
|
114
115
|
CellRanges: emptyRanges,
|
|
115
116
|
} }), config: {
|
|
116
117
|
defaultCurrentSectionName: 'Style',
|
|
117
118
|
} }));
|
|
118
|
-
const
|
|
119
|
+
const newPercentBarButton = this.createMenuItemShowPopup('styled-column-percent-bar-add', 'Create Percent Bar', this.moduleInfo.Popup, 'percent', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { PercentBarStyle: {
|
|
119
120
|
CellRanges: emptyRanges,
|
|
120
121
|
} }), config: {
|
|
121
122
|
defaultCurrentSectionName: 'Style',
|
|
@@ -126,9 +127,9 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
126
127
|
// module: this.moduleInfo.ModuleName,
|
|
127
128
|
// isVisible: true,
|
|
128
129
|
// icon: { name: this.moduleInfo.Glyph },
|
|
129
|
-
// subItems: [newGrandientButton,
|
|
130
|
+
// subItems: [newGrandientButton, newPercentBarButton, newBadgeButton],
|
|
130
131
|
// });
|
|
131
|
-
returnColumnMenuItems.push(...[newGrandientButton,
|
|
132
|
+
returnColumnMenuItems.push(...[newGrandientButton, newPercentBarButton, newBadgeButton]);
|
|
132
133
|
break;
|
|
133
134
|
case 'String':
|
|
134
135
|
returnColumnMenuItems.push(newBadgeButton);
|
|
@@ -227,7 +228,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
227
228
|
getTypeLabel(styledColumn) {
|
|
228
229
|
let type = null;
|
|
229
230
|
if (styledColumn.GradientStyle) {
|
|
230
|
-
type = 'Gradient';
|
|
231
|
+
type = 'Gradient Column';
|
|
231
232
|
}
|
|
232
233
|
else if (styledColumn.PercentBarStyle) {
|
|
233
234
|
type = 'Percent Bar';
|
|
@@ -236,7 +237,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
236
237
|
type = 'Spark Line';
|
|
237
238
|
}
|
|
238
239
|
else if (styledColumn.BadgeStyle) {
|
|
239
|
-
type = 'Badge';
|
|
240
|
+
type = 'Badge Style';
|
|
240
241
|
}
|
|
241
242
|
return type;
|
|
242
243
|
}
|
|
@@ -1104,13 +1104,15 @@ const mapAggregationToCumulation = (aggregationParameter, overColumnParameter, c
|
|
|
1104
1104
|
if ((_a = aggregationEvaluation.context) === null || _a === void 0 ? void 0 : _a.weightParam) {
|
|
1105
1105
|
// weighted average
|
|
1106
1106
|
const weightValue = (_b = context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, aggregationEvaluation.context.weightParam.value)) !== null && _b !== void 0 ? _b : 0;
|
|
1107
|
-
cumulationBag.currentValue =
|
|
1107
|
+
cumulationBag.currentValue =
|
|
1108
|
+
cumulationBag.currentValue + rowValue * weightValue;
|
|
1108
1109
|
cumulationBag.numberOfCumulatedValues =
|
|
1109
1110
|
cumulationBag.numberOfCumulatedValues + weightValue;
|
|
1110
1111
|
}
|
|
1111
1112
|
else {
|
|
1112
1113
|
cumulationBag.currentValue = cumulationBag.currentValue + rowValue;
|
|
1113
|
-
cumulationBag.numberOfCumulatedValues =
|
|
1114
|
+
cumulationBag.numberOfCumulatedValues =
|
|
1115
|
+
cumulationBag.numberOfCumulatedValues + 1;
|
|
1114
1116
|
}
|
|
1115
1117
|
}
|
|
1116
1118
|
if (cumulationBag.numberOfCumulatedValues !== 0) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CalculatedColumn } from '../../../types';
|
|
3
3
|
import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
4
|
export declare const calculatedColumnTypes: readonly ["ScalarExpression", "AggregatedScalarExpression", "CumulativeAggregatedExpression", "QuantileAggregatedExpression"];
|
|
5
|
-
export type ExpressionType = typeof calculatedColumnTypes[number];
|
|
5
|
+
export type ExpressionType = (typeof calculatedColumnTypes)[number];
|
|
6
6
|
export interface CalculatedColumnWizardProps extends AdaptableOnePageWizardProps<CalculatedColumn> {
|
|
7
7
|
}
|
|
8
8
|
export declare const CalculatedColumnWizard: (props: CalculatedColumnWizardProps) => JSX.Element;
|
|
@@ -1694,7 +1694,8 @@ class AdaptableAgGrid {
|
|
|
1694
1694
|
return acc;
|
|
1695
1695
|
}
|
|
1696
1696
|
const ColumnGroupId = columnGroup.getGroupId();
|
|
1697
|
-
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef()
|
|
1697
|
+
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef()
|
|
1698
|
+
.marryChildren;
|
|
1698
1699
|
const FriendlyName = (_c = columnGroup.getProvidedColumnGroup().getColGroupDef().headerName) !== null && _c !== void 0 ? _c : ColumnGroupId;
|
|
1699
1700
|
const columnsInGroup = columnGroup.getLeafColumns();
|
|
1700
1701
|
columnsInGroup.forEach((col) => {
|
|
@@ -25,6 +25,7 @@ export declare class AgGridMenuAdapter {
|
|
|
25
25
|
private getLayoutContextMenuStructure;
|
|
26
26
|
private buildMenuGroupParent;
|
|
27
27
|
private buildColumnMenuDefaultStructure;
|
|
28
|
+
private getColumnFilterColumnMenuStructure;
|
|
28
29
|
private getLayoutColumnMenuStructure;
|
|
29
30
|
private getStyledColumnColumnMenuStructure;
|
|
30
31
|
private mapAdaptableMenuItemToSystemMenuItems;
|