@adaptabletools/adaptable-cjs 19.0.6 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +3 -3
- package/src/View/AdaptableWizardView/helper.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +20 -17
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-toastify": "9.1.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"ag-grid-community": ">=32.
|
|
66
|
+
"ag-grid-community": ">=32.3.0"
|
|
67
67
|
},
|
|
68
68
|
"publishTimestamp": 0
|
|
69
69
|
}
|
|
@@ -16,19 +16,19 @@ export interface FormatColumnOptions {
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CustomDisplayFormatter {
|
|
18
18
|
/**
|
|
19
|
-
* Format Id
|
|
19
|
+
* Custom Format Id
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
/**
|
|
23
|
-
* Format Description
|
|
23
|
+
* Custom Format Description
|
|
24
24
|
*/
|
|
25
25
|
label?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Function used to render Custom Display Format
|
|
27
|
+
* Function used to render the Custom Display Format
|
|
28
28
|
*/
|
|
29
29
|
handler: (customDisplayFormatterContext: CustomDisplayFormatterContext) => any;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Used by Format Columns wizard to show where Custom Display Format can be applied
|
|
32
32
|
*/
|
|
33
33
|
scope: ColumnScope;
|
|
34
34
|
}
|
|
@@ -12,9 +12,9 @@ const GridOptionsForm = (props) => {
|
|
|
12
12
|
return (React.createElement(rebass_1.Box, { p: 2 },
|
|
13
13
|
React.createElement(HelpBlock_1.default, null, "Grid Options"),
|
|
14
14
|
React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
|
|
15
|
-
React.createElement(FormLayout_1.FormRow, { label: "Enable
|
|
16
|
-
React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.
|
|
17
|
-
gridOptions = Object.assign(Object.assign({}, gridOptions), {
|
|
15
|
+
React.createElement(FormLayout_1.FormRow, { label: "Enable Cell Selection" },
|
|
16
|
+
React.createElement(CheckBox_1.CheckBox, { checked: !!gridOptions.cellSelection, onChange: (enableCellSelection) => {
|
|
17
|
+
gridOptions = Object.assign(Object.assign({}, gridOptions), { cellSelection: enableCellSelection });
|
|
18
18
|
props.onChangedGridOptions(gridOptions);
|
|
19
19
|
} })),
|
|
20
20
|
React.createElement(FormLayout_1.FormRow, { label: "Show Filter Bar" },
|
|
@@ -83,7 +83,7 @@ const prepareGridOptions = (dataSourceInfo, defaultGridOptions) => {
|
|
|
83
83
|
});
|
|
84
84
|
const gridOptions = Object.assign(Object.assign({}, defaultGridOptions), { defaultColDef: {
|
|
85
85
|
floatingFilter: true,
|
|
86
|
-
}, rowData: dataSourceInfo.data, columnDefs,
|
|
86
|
+
}, rowData: dataSourceInfo.data, columnDefs, cellSelection: true, rowSelection: 'multiple', rowHeight: 30 });
|
|
87
87
|
return gridOptions;
|
|
88
88
|
};
|
|
89
89
|
exports.prepareGridOptions = prepareGridOptions;
|
|
@@ -273,7 +273,7 @@ const buildGridOptions = (mainAdaptableInstance, changeHistoryLog) => {
|
|
|
273
273
|
},
|
|
274
274
|
],
|
|
275
275
|
rowData: mapChangeHistoryRowData(changeHistoryLog, mainAdaptableInstance),
|
|
276
|
-
|
|
276
|
+
cellSelection: true,
|
|
277
277
|
suppressColumnVirtualisation: false,
|
|
278
278
|
sideBar: false,
|
|
279
279
|
rowSelection: 'multiple',
|
|
@@ -108,7 +108,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
108
108
|
private listenerPivotChanged;
|
|
109
109
|
private listenerColumnRowGroupChanged;
|
|
110
110
|
private listenerColumnResized;
|
|
111
|
-
private
|
|
111
|
+
private listenerCellSelectionChanged;
|
|
112
112
|
private listenerSortChanged;
|
|
113
113
|
private listenerModelUpdated;
|
|
114
114
|
private columnMinMaxValuesCache;
|
|
@@ -1242,11 +1242,21 @@ class AdaptableAgGrid {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
isGridRowSelectable() {
|
|
1244
1244
|
const rowSelection = this.agGridAdapter.getAgGridApi().getGridOption('rowSelection');
|
|
1245
|
-
|
|
1245
|
+
if (rowSelection == undefined) {
|
|
1246
|
+
return false;
|
|
1247
|
+
}
|
|
1248
|
+
if (rowSelection === 'single' || rowSelection === 'multiple') {
|
|
1249
|
+
return true;
|
|
1250
|
+
}
|
|
1251
|
+
if (rowSelection.mode === 'singleRow' || rowSelection.mode === 'multiRow') {
|
|
1252
|
+
return true;
|
|
1253
|
+
}
|
|
1254
|
+
return false;
|
|
1246
1255
|
}
|
|
1247
1256
|
isGridRangeSelectable() {
|
|
1248
1257
|
return (this.agGridAdapter.isModulePresent(core_1.ModuleNames.RangeSelectionModule) &&
|
|
1249
|
-
this.agGridAdapter.getGridOption('enableRangeSelection')
|
|
1258
|
+
(this.agGridAdapter.getGridOption('enableRangeSelection') ||
|
|
1259
|
+
!!this.agGridAdapter.getGridOption('cellSelection')));
|
|
1250
1260
|
}
|
|
1251
1261
|
initAdaptableStore() {
|
|
1252
1262
|
const perfNewAdaptableStore = this.logger.beginPerf(`initAdaptableStore()`);
|
|
@@ -1395,7 +1405,6 @@ class AdaptableAgGrid {
|
|
|
1395
1405
|
const columnEventsThatTriggersStateChange = [
|
|
1396
1406
|
'columnMoved',
|
|
1397
1407
|
'gridColumnsChanged',
|
|
1398
|
-
'columnEverythingChanged',
|
|
1399
1408
|
'displayedColumnsChanged',
|
|
1400
1409
|
'columnVisible',
|
|
1401
1410
|
'newColumnsLoaded',
|
|
@@ -1554,7 +1563,7 @@ class AdaptableAgGrid {
|
|
|
1554
1563
|
}
|
|
1555
1564
|
this.refreshSelectedCellsState();
|
|
1556
1565
|
}, 250);
|
|
1557
|
-
this.agGridAdapter.getAgGridApi().addEventListener('
|
|
1566
|
+
this.agGridAdapter.getAgGridApi().addEventListener('cellSelectionChanged', (this.listenerCellSelectionChanged = (params) => {
|
|
1558
1567
|
if (params.finished == true) {
|
|
1559
1568
|
this.debouncedSetSelectedCells();
|
|
1560
1569
|
}
|
|
@@ -2014,7 +2023,7 @@ class AdaptableAgGrid {
|
|
|
2014
2023
|
}
|
|
2015
2024
|
selectColumn(columnId, config) {
|
|
2016
2025
|
if (!(config === null || config === void 0 ? void 0 : config.keepExistingSelection)) {
|
|
2017
|
-
this.agGridAdapter.getAgGridApi().
|
|
2026
|
+
this.agGridAdapter.getAgGridApi().clearCellSelection();
|
|
2018
2027
|
}
|
|
2019
2028
|
const cellRangeParams = {
|
|
2020
2029
|
rowStartIndex: 0,
|
|
@@ -2026,7 +2035,7 @@ class AdaptableAgGrid {
|
|
|
2026
2035
|
}
|
|
2027
2036
|
selectColumns(columnIds, config) {
|
|
2028
2037
|
if (!(config === null || config === void 0 ? void 0 : config.keepExistingSelection)) {
|
|
2029
|
-
this.agGridAdapter.getAgGridApi().
|
|
2038
|
+
this.agGridAdapter.getAgGridApi().clearCellSelection();
|
|
2030
2039
|
}
|
|
2031
2040
|
const rowCount = this.agGridAdapter.getAgGridApi().getDisplayedRowCount();
|
|
2032
2041
|
columnIds.forEach((colId) => {
|
|
@@ -2045,7 +2054,7 @@ class AdaptableAgGrid {
|
|
|
2045
2054
|
deselectAll() {
|
|
2046
2055
|
// need to do both as first just clears selected rows and second clears ranges
|
|
2047
2056
|
this.agGridAdapter.getAgGridApi().deselectAll();
|
|
2048
|
-
this.agGridAdapter.getAgGridApi().
|
|
2057
|
+
this.agGridAdapter.getAgGridApi().clearCellSelection();
|
|
2049
2058
|
}
|
|
2050
2059
|
setGridData(dataSource) {
|
|
2051
2060
|
if (!this.isReady) {
|
|
@@ -2114,13 +2123,7 @@ class AdaptableAgGrid {
|
|
|
2114
2123
|
if (!rowNode) {
|
|
2115
2124
|
return false;
|
|
2116
2125
|
}
|
|
2117
|
-
if (rowNode.
|
|
2118
|
-
return true;
|
|
2119
|
-
}
|
|
2120
|
-
if (rowNode.group && rowNode.group === true) {
|
|
2121
|
-
return true;
|
|
2122
|
-
}
|
|
2123
|
-
if (rowNode.leafGroup && rowNode.leafGroup === true) {
|
|
2126
|
+
if (rowNode.group === true || rowNode.leafGroup === true) {
|
|
2124
2127
|
return true;
|
|
2125
2128
|
}
|
|
2126
2129
|
return false;
|
|
@@ -2592,7 +2595,7 @@ class AdaptableAgGrid {
|
|
|
2592
2595
|
}
|
|
2593
2596
|
selectCells(columnIds, startNode, endNode, clearSelection) {
|
|
2594
2597
|
if (clearSelection) {
|
|
2595
|
-
this.agGridAdapter.getAgGridApi().
|
|
2598
|
+
this.agGridAdapter.getAgGridApi().clearCellSelection();
|
|
2596
2599
|
}
|
|
2597
2600
|
const cellRangeParams = {
|
|
2598
2601
|
rowStartIndex: startNode.rowIndex,
|
|
@@ -2994,7 +2997,7 @@ class AdaptableAgGrid {
|
|
|
2994
2997
|
.removeEventListener('columnRowGroupChanged', this.listenerColumnRowGroupChanged);
|
|
2995
2998
|
this.agGridAdapter
|
|
2996
2999
|
.getAgGridApi()
|
|
2997
|
-
.removeEventListener('
|
|
3000
|
+
.removeEventListener('cellSelectionChanged', this.listenerCellSelectionChanged);
|
|
2998
3001
|
this.agGridAdapter
|
|
2999
3002
|
.getAgGridApi()
|
|
3000
3003
|
.removeEventListener('columnResized', this.listenerColumnResized);
|
|
@@ -3019,7 +3022,7 @@ class AdaptableAgGrid {
|
|
|
3019
3022
|
this.listenerPivotChanged = null;
|
|
3020
3023
|
this.listenerCellEditingStarted = null;
|
|
3021
3024
|
this.listenerColumnRowGroupChanged = null;
|
|
3022
|
-
this.
|
|
3025
|
+
this.listenerCellSelectionChanged = null;
|
|
3023
3026
|
this.listenerColumnResized = null;
|
|
3024
3027
|
this.listenerGlobalSetRowSelection = null;
|
|
3025
3028
|
this.listenerSortChanged = null;
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "19.0
|
|
5
|
+
PUBLISH_TIMESTAMP: 1730745793747 || Date.now(),
|
|
6
|
+
VERSION: "19.1.0" || '--current-version--',
|
|
7
7
|
};
|