@adaptabletools/adaptable 15.2.0 → 15.2.1
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/bundle.cjs.js +43 -43
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +5 -8
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -3
- package/src/AdaptableOptions/SearchOptions.d.ts +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.1",
|
|
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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1681828646082;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -60,28 +60,25 @@ export interface ExportOptions {
|
|
|
60
60
|
*/
|
|
61
61
|
isColumnExportable?: (exportableColumnContext: ExportableColumnContext) => boolean;
|
|
62
62
|
/**
|
|
63
|
-
* Function invoked when a Report is run, enabling
|
|
64
|
-
* If the function returns a `ReportData` object, that will be used as the data for the Report;
|
|
65
|
-
* if it returns `TRUE`, the Report will be run as normal, using the data from the grid;
|
|
66
|
-
* if it returns `FALSE`, the Report will be cancelled.
|
|
63
|
+
* Function invoked when a Report is run, enabling users to preload the data before it is exported
|
|
67
64
|
*/
|
|
68
65
|
preProcessExport?: (context: PreProcessExportContext) => boolean | Promise<ReportData | boolean>;
|
|
69
66
|
}
|
|
70
67
|
/**
|
|
71
|
-
* Context provided to `ExportOptions.processExport()` callback
|
|
68
|
+
* Context provided to `ExportOptions.processExport()` callback used when pre-processing Export
|
|
72
69
|
*/
|
|
73
70
|
export interface PreProcessExportContext extends BaseContext {
|
|
74
71
|
/**
|
|
75
|
-
*
|
|
72
|
+
* Report being exported
|
|
76
73
|
*/
|
|
77
74
|
report: Report;
|
|
78
75
|
/**
|
|
79
|
-
* Returns
|
|
76
|
+
* Returns Columns to export based on Report's `ReportColumnScope`
|
|
80
77
|
* @param includePrimaryKey - whether to include the primary key column (defaults to `false`)
|
|
81
78
|
*/
|
|
82
79
|
getReportColumns: (includePrimaryKey?: boolean) => AdaptableReportColumn[];
|
|
83
80
|
/**
|
|
84
|
-
* Returns
|
|
81
|
+
* Returns row data which would typically be exported based on the Report's `ReportRowScope`
|
|
85
82
|
* @param reportColumns - the columns to include in the report
|
|
86
83
|
* @param includePrimaryKey - whether to include the primary key column (defaults to `false`)
|
|
87
84
|
*/
|
|
@@ -194,9 +194,7 @@ export interface FilterOptions<TData = any> {
|
|
|
194
194
|
*/
|
|
195
195
|
showValuesCount?: (column: AdaptableColumn<TData>) => boolean;
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
198
|
-
* - 'auto' will use the column width
|
|
199
|
-
* - number will use the number of pixels
|
|
197
|
+
* Width of Values popup in Filter Bar - can be set width or same size as Column
|
|
200
198
|
* @defaultValue '180'
|
|
201
199
|
*/
|
|
202
200
|
quickFilterValuesWidth?: 'auto' | number;
|
|
@@ -32,7 +32,7 @@ export interface SearchOptions<TData = any> {
|
|
|
32
32
|
*/
|
|
33
33
|
filterResultsAfterQuickSearch?: boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Include
|
|
35
|
+
* Include Aggregrated Columns in Grouped Rows when Quick Searching (highlight only)
|
|
36
36
|
*
|
|
37
37
|
* @defaultValue false
|
|
38
38
|
* @gridInfoItem
|
|
@@ -8,6 +8,7 @@ const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
|
|
|
8
8
|
const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
|
|
9
9
|
const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
10
10
|
const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
|
|
11
|
+
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
11
12
|
function customizer(objValue, srcValue) {
|
|
12
13
|
if ((0, isArray_1.default)(objValue)) {
|
|
13
14
|
if (!Array.isArray(srcValue)) {
|
|
@@ -86,7 +87,7 @@ function MergeStateFunction(oldState, newState) {
|
|
|
86
87
|
let state = newState;
|
|
87
88
|
if (!state || typeof state !== 'object') {
|
|
88
89
|
// in case loadState returns something different than an empty object
|
|
89
|
-
|
|
90
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase('State is something different that expected, expected object, received: ', state);
|
|
90
91
|
state = {};
|
|
91
92
|
}
|
|
92
93
|
// any Module in config that doesn't exist in state will be added
|