@adaptabletools/adaptable 18.1.11 → 18.1.12
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/AdaptableOptions.d.ts +37 -37
- package/src/PredefinedConfig/PredefinedConfig.d.ts +8 -8
- package/src/agGrid/AdaptableAgGrid.js +10 -2
- package/src/agGrid/AgGridAdapter.d.ts +1 -0
- package/src/agGrid/AgGridAdapter.js +16 -7
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.12",
|
|
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",
|
|
@@ -94,11 +94,6 @@ export interface AdaptableOptions<TData = any> {
|
|
|
94
94
|
* Options for managing Action Rows
|
|
95
95
|
*/
|
|
96
96
|
actionRowOptions?: ActionRowOptions<TData>;
|
|
97
|
-
/**
|
|
98
|
-
* Options for managing AdapTableQL Expressions
|
|
99
|
-
* @noCodeContainer
|
|
100
|
-
*/
|
|
101
|
-
expressionOptions?: ExpressionOptions<TData>;
|
|
102
97
|
/**
|
|
103
98
|
* Options for managing Alerts in AdapTable
|
|
104
99
|
*
|
|
@@ -125,17 +120,33 @@ export interface AdaptableOptions<TData = any> {
|
|
|
125
120
|
*/
|
|
126
121
|
columnOptions?: ColumnOptions;
|
|
127
122
|
/**
|
|
128
|
-
* Options for
|
|
123
|
+
* Options for managing Column Filters in AdapTable
|
|
124
|
+
*
|
|
125
|
+
* @gridInfoContainer
|
|
126
|
+
* @noCodeContainer
|
|
127
|
+
*
|
|
129
128
|
*/
|
|
130
|
-
|
|
129
|
+
columnFilterOptions?: ColumnFilterOptions<TData>;
|
|
131
130
|
/**
|
|
132
|
-
* Options for managing
|
|
131
|
+
* Options for managing AdapTable Column Menu
|
|
132
|
+
*
|
|
133
|
+
* @gridInfoContainer
|
|
133
134
|
*/
|
|
134
|
-
|
|
135
|
+
columnMenuOptions?: ColumnMenuOptions<TData>;
|
|
135
136
|
/**
|
|
136
137
|
* Options for managing collaborative Comments
|
|
137
138
|
*/
|
|
138
139
|
commentOptions?: CommentOptions<TData>;
|
|
140
|
+
/**
|
|
141
|
+
* Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
|
|
142
|
+
*/
|
|
143
|
+
containerOptions?: ContainerOptions;
|
|
144
|
+
/**
|
|
145
|
+
* Options for managing AdapTable Context Menu
|
|
146
|
+
*
|
|
147
|
+
* @gridInfoContainer
|
|
148
|
+
*/
|
|
149
|
+
contextMenuOptions?: ContextMenuOptions<TData>;
|
|
139
150
|
/**
|
|
140
151
|
* Options for using Custom Sort
|
|
141
152
|
*/
|
|
@@ -154,6 +165,10 @@ export interface AdaptableOptions<TData = any> {
|
|
|
154
165
|
* @noCodeContainer
|
|
155
166
|
*/
|
|
156
167
|
dataChangeHistoryOptions?: DataChangeHistoryOptions<TData>;
|
|
168
|
+
/**
|
|
169
|
+
* Options for managing the Data Import function
|
|
170
|
+
*/
|
|
171
|
+
dataImportOptions?: DataImportOptions;
|
|
157
172
|
/**
|
|
158
173
|
* Options to manage Data Sets
|
|
159
174
|
*/
|
|
@@ -176,18 +191,25 @@ export interface AdaptableOptions<TData = any> {
|
|
|
176
191
|
* @gridInfoContainer
|
|
177
192
|
*/
|
|
178
193
|
exportOptions?: ExportOptions;
|
|
194
|
+
/**
|
|
195
|
+
* Options for managing AdapTableQL Expressions
|
|
196
|
+
* @noCodeContainer
|
|
197
|
+
*/
|
|
198
|
+
expressionOptions?: ExpressionOptions<TData>;
|
|
179
199
|
/**
|
|
180
200
|
* Options for managing FDC3 in AdapTable
|
|
181
201
|
*/
|
|
182
202
|
fdc3Options?: Fdc3Options;
|
|
183
203
|
/**
|
|
184
|
-
* Options for managing
|
|
204
|
+
* Options for managing Flashing Cells - primarily default values
|
|
185
205
|
*
|
|
186
206
|
* @gridInfoContainer
|
|
187
|
-
* @noCodeContainer
|
|
188
|
-
*
|
|
189
207
|
*/
|
|
190
|
-
|
|
208
|
+
flashingCellOptions?: FlashingCellOptions;
|
|
209
|
+
/**
|
|
210
|
+
* Options for providing Custom Display Formats
|
|
211
|
+
*/
|
|
212
|
+
formatColumnOptions?: FormatColumnOptions;
|
|
191
213
|
/**
|
|
192
214
|
* Options for managing the Grid Filter in AdapTable
|
|
193
215
|
*
|
|
@@ -196,16 +218,6 @@ export interface AdaptableOptions<TData = any> {
|
|
|
196
218
|
*
|
|
197
219
|
*/
|
|
198
220
|
gridFilterOptions?: GridFilterOptions<TData>;
|
|
199
|
-
/**
|
|
200
|
-
* Options for managing Flashing Cells - primarily default values
|
|
201
|
-
*
|
|
202
|
-
* @gridInfoContainer
|
|
203
|
-
*/
|
|
204
|
-
flashingCellOptions?: FlashingCellOptions;
|
|
205
|
-
/**
|
|
206
|
-
* Options for providing Custom Display Formats
|
|
207
|
-
*/
|
|
208
|
-
formatColumnOptions?: FormatColumnOptions;
|
|
209
221
|
/**
|
|
210
222
|
* Options related to Row Grouping
|
|
211
223
|
*
|
|
@@ -221,17 +233,9 @@ export interface AdaptableOptions<TData = any> {
|
|
|
221
233
|
*/
|
|
222
234
|
layoutOptions?: LayoutOptions;
|
|
223
235
|
/**
|
|
224
|
-
* Options for managing
|
|
225
|
-
*
|
|
226
|
-
* @gridInfoContainer
|
|
227
|
-
*/
|
|
228
|
-
columnMenuOptions?: ColumnMenuOptions<TData>;
|
|
229
|
-
/**
|
|
230
|
-
* Options for managing AdapTable Context Menu
|
|
231
|
-
*
|
|
232
|
-
* @gridInfoContainer
|
|
236
|
+
* Options for managing personal Notes
|
|
233
237
|
*/
|
|
234
|
-
|
|
238
|
+
noteOptions?: NoteOptions;
|
|
235
239
|
/**
|
|
236
240
|
* Options for managing Notifications in AdapTable
|
|
237
241
|
*
|
|
@@ -280,10 +284,6 @@ export interface AdaptableOptions<TData = any> {
|
|
|
280
284
|
* @gridInfoContainer
|
|
281
285
|
*/
|
|
282
286
|
userInterfaceOptions?: UserInterfaceOptions<TData>;
|
|
283
|
-
/**
|
|
284
|
-
* Options for managing the Data Import function
|
|
285
|
-
*/
|
|
286
|
-
dataImportOptions?: DataImportOptions;
|
|
287
287
|
/**
|
|
288
288
|
* Used for managing the AdapTable Plugins
|
|
289
289
|
*/
|
|
@@ -43,10 +43,6 @@ export interface PredefinedConfig {
|
|
|
43
43
|
* Supplies a collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways
|
|
44
44
|
*/
|
|
45
45
|
CustomSort?: CustomSortState;
|
|
46
|
-
/**
|
|
47
|
-
* Collection of personal Notes that are edited at Cell level
|
|
48
|
-
*/
|
|
49
|
-
Note?: NoteState;
|
|
50
46
|
/**
|
|
51
47
|
* Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
|
|
52
48
|
*/
|
|
@@ -71,14 +67,18 @@ export interface PredefinedConfig {
|
|
|
71
67
|
* Supplies a collection of *Layout* objects to name and manage groups of column visibility, order and sorts.
|
|
72
68
|
*/
|
|
73
69
|
Layout?: LayoutState;
|
|
74
|
-
/**
|
|
75
|
-
* Supplies a collection of *PlusMinus* rule objects to stipulate what happens when the user clicks '+' or '-' in a numeric cell
|
|
76
|
-
*/
|
|
77
|
-
PlusMinus?: PlusMinusState;
|
|
78
70
|
/**
|
|
79
71
|
* Named Queries available for use across multiple AdapTable Modules; and `CurrentQuery` - an Expression to run at start-up
|
|
80
72
|
*/
|
|
81
73
|
NamedQuery?: NamedQueryState;
|
|
74
|
+
/**
|
|
75
|
+
* Collection of personal Notes that are edited at Cell level
|
|
76
|
+
*/
|
|
77
|
+
Note?: NoteState;
|
|
78
|
+
/**
|
|
79
|
+
* Supplies a collection of *PlusMinus* rule objects to stipulate what happens when the user clicks '+' or '-' in a numeric cell
|
|
80
|
+
*/
|
|
81
|
+
PlusMinus?: PlusMinusState;
|
|
82
82
|
/**
|
|
83
83
|
* Configues how Quick Search will run i.e. how and whether to highlight matching cells and to filter out non-matching rows
|
|
84
84
|
*/
|
|
@@ -3778,13 +3778,11 @@ export class AdaptableAgGrid {
|
|
|
3778
3778
|
const expandedState = agGridApi.getState().rowGroupExpansion || { expandedRowGroupIds: [] };
|
|
3779
3779
|
const currentLayoutState = { columnState, expandedState };
|
|
3780
3780
|
try {
|
|
3781
|
-
// TODO
|
|
3782
3781
|
const stringifiedLayoutState = JSON.stringify(currentLayoutState);
|
|
3783
3782
|
if (stringifiedLayoutState === this.previousAgGridLayoutState) {
|
|
3784
3783
|
// same grid column state as a previous,
|
|
3785
3784
|
// so no need to update, as the layout has already been updated
|
|
3786
3785
|
// for this grid column state
|
|
3787
|
-
// console.log('same state as before');
|
|
3788
3786
|
return;
|
|
3789
3787
|
}
|
|
3790
3788
|
this.previousAgGridLayoutState = stringifiedLayoutState;
|
|
@@ -4005,6 +4003,16 @@ export class AdaptableAgGrid {
|
|
|
4005
4003
|
const passedColumnDefs = options.columnDefs;
|
|
4006
4004
|
if (passedColumnDefs) {
|
|
4007
4005
|
const colDefsWithSpecialColumns = self.getColumnDefinitionsInclSpecialColumns(passedColumnDefs);
|
|
4006
|
+
const allDisplayedColIds = self.agGridAdapter
|
|
4007
|
+
.getAgGridApi()
|
|
4008
|
+
.getAllDisplayedColumns()
|
|
4009
|
+
.map((col) => col.getColId());
|
|
4010
|
+
// mark as hidden the colDefs of special columns which are not visible
|
|
4011
|
+
self.agGridAdapter.patchColDefs(colDefsWithSpecialColumns, (colDef) => {
|
|
4012
|
+
if (self.api.columnApi.isSpecialColumn(colDef.colId)) {
|
|
4013
|
+
colDef.hide = !allDisplayedColIds.includes(colDef.colId);
|
|
4014
|
+
}
|
|
4015
|
+
});
|
|
4008
4016
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
4009
4017
|
self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
|
|
4010
4018
|
}
|
|
@@ -60,6 +60,7 @@ export declare class AgGridAdapter {
|
|
|
60
60
|
* Mutates the colDefs to ensure that each column has a colId
|
|
61
61
|
*/
|
|
62
62
|
assignColumnIdsToColDefs(colDefs?: (ColDef | ColGroupDef)[]): void;
|
|
63
|
+
patchColDefs(colDefs: (ColDef | ColGroupDef)[], patchFn: (colDef: ColDef) => void): void;
|
|
63
64
|
getDefaultColumnDefinition(): GridOptions['defaultColDef'];
|
|
64
65
|
_agGridApi_getValue(colKey: string | Column, rowNode: IRowNode, gridApi?: GridApi): any;
|
|
65
66
|
}
|
|
@@ -570,16 +570,25 @@ export class AgGridAdapter {
|
|
|
570
570
|
if (colDef.field && !colDef.colId) {
|
|
571
571
|
colDef.colId = colDef.field;
|
|
572
572
|
}
|
|
573
|
-
if (colDef.
|
|
574
|
-
|
|
573
|
+
if (!colDef.colId) {
|
|
574
|
+
this.logger.warn('A column is missing the colId - please check ', colDef, 'Either pass a "field" property or a "colId" property.');
|
|
575
575
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
576
|
+
};
|
|
577
|
+
this.patchColDefs(colDefs, assignColId);
|
|
578
|
+
}
|
|
579
|
+
patchColDefs(colDefs = [], patchFn) {
|
|
580
|
+
const applyPatch = (colDef) => {
|
|
581
|
+
if (!colDef) {
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
if (!colDef.children) {
|
|
585
|
+
patchFn(colDef);
|
|
586
|
+
}
|
|
587
|
+
if (colDef.children) {
|
|
588
|
+
colDef.children.forEach((childColDef) => applyPatch(childColDef));
|
|
580
589
|
}
|
|
581
590
|
};
|
|
582
|
-
colDefs.forEach((colDef) =>
|
|
591
|
+
colDefs.forEach((colDef) => applyPatch(colDef));
|
|
583
592
|
}
|
|
584
593
|
getDefaultColumnDefinition() {
|
|
585
594
|
var _a, _b;
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "18.1.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1721914534022 || Date.now(),
|
|
4
|
+
VERSION: "18.1.12" || '--current-version--',
|
|
5
5
|
};
|