@adaptabletools/adaptable 19.1.0-canary.0 → 19.1.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/package.json +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +4 -4
- package/src/Api/GridApi.d.ts +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +16 -15
- package/src/Api/Implementation/ApiBase.d.ts +12 -3
- package/src/Api/Implementation/ApiBase.js +39 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
- package/src/Api/Implementation/CalendarApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +9 -9
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -18
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CommentsApiImpl.js +6 -4
- package/src/Api/Implementation/ConfigApiImpl.js +23 -24
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
- package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DashboardApiImpl.js +5 -5
- package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataImportApiImpl.js +3 -3
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +5 -5
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EventApiImpl.js +2 -2
- package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +7 -7
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
- package/src/Api/Implementation/GridApiImpl.js +106 -103
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/LayoutApiImpl.js +3 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +3 -3
- package/src/Api/Implementation/OptionsApiImpl.js +7 -7
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +4 -4
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +8 -8
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
- package/src/Api/Internal/ActionRowInternalApi.js +8 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +55 -50
- package/src/Api/Internal/AlertInternalApi.js +9 -9
- package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
- package/src/Api/Internal/ChartingInternalApi.js +1 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
- package/src/Api/Internal/ColumnInternalApi.js +3 -3
- package/src/Api/Internal/CustomSortInternalApi.js +3 -3
- package/src/Api/Internal/DashboardInternalApi.js +4 -3
- package/src/Api/Internal/DataImportInternalApi.js +2 -2
- package/src/Api/Internal/DataSetInternalApi.js +2 -2
- package/src/Api/Internal/ExportInternalApi.js +21 -22
- package/src/Api/Internal/ExpressionInternalApi.js +4 -4
- package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
- package/src/Api/Internal/Fdc3InternalApi.js +9 -12
- package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
- package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
- package/src/Api/Internal/GridFilterInternalApi.js +2 -2
- package/src/Api/Internal/GridInternalApi.js +26 -26
- package/src/Api/Internal/LayoutInternalApi.js +6 -5
- package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
- package/src/Api/Internal/PredicateInternalApi.js +5 -5
- package/src/Api/Internal/ScheduleInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Strategy/NoteModule.d.ts +0 -1
- package/src/Strategy/NoteModule.js +4 -5
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/Fdc3Service.js +1 -3
- package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
- package/src/Utilities/Services/FlashingCellService.js +2 -3
- package/src/Utilities/Services/RowEditService.js +3 -5
- package/src/View/Alert/AlertStatusSubPanel.js +4 -4
- package/src/View/Charting/ShowChartButton.js +4 -4
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -75,7 +75,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
75
75
|
}
|
|
76
76
|
return false;
|
|
77
77
|
case 'VisibleRows':
|
|
78
|
-
return this.
|
|
78
|
+
return this._adaptable.isRowNodeVisible(cellDataChangedInfo.rowNode);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
getExcelDataType(adaptableColumnType) {
|
|
@@ -115,7 +115,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
115
115
|
const exportFormatType = exportOptions.exportFormatType;
|
|
116
116
|
// First check if a function was provided and return the result
|
|
117
117
|
if (exportFormatType != null && typeof exportFormatType === 'function') {
|
|
118
|
-
const context = Object.assign(Object.assign({}, this.
|
|
118
|
+
const context = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { column: column });
|
|
119
119
|
return exportFormatType(context);
|
|
120
120
|
}
|
|
121
121
|
// Next Check if a "hard-coded" value has been provided and return that
|
|
@@ -299,7 +299,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
299
299
|
case 'SelectedRows':
|
|
300
300
|
return '[Selected Rows]';
|
|
301
301
|
case 'ExpressionRows':
|
|
302
|
-
return this.
|
|
302
|
+
return this.getAdaptableInternalApi().getAdaptableQueryExpressionText(report.Query);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -360,17 +360,17 @@ export class ExportInternalApi extends ApiBase {
|
|
|
360
360
|
const resultRowData = [];
|
|
361
361
|
switch (report.ReportRowScope) {
|
|
362
362
|
case 'AllRows':
|
|
363
|
-
this.
|
|
363
|
+
this.getAdaptableInternalApi().forAllRowNodesDo((rowNode) => {
|
|
364
364
|
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
365
365
|
});
|
|
366
366
|
break;
|
|
367
367
|
case 'VisibleRows':
|
|
368
|
-
this.
|
|
368
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
|
|
369
369
|
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
370
370
|
});
|
|
371
371
|
break;
|
|
372
372
|
case 'ExpressionRows':
|
|
373
|
-
this.
|
|
373
|
+
this.getAdaptableInternalApi().forAllRowNodesDo((rowNode) => {
|
|
374
374
|
var _a;
|
|
375
375
|
if (this.getAdaptableApi()
|
|
376
376
|
.internalApi.getQueryLanguageService()
|
|
@@ -384,7 +384,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
384
384
|
const { gridCells: GridCells } = selectedCellInfo;
|
|
385
385
|
let selectedCellsByPrimaryKey = groupBy(GridCells, 'primaryKeyValue');
|
|
386
386
|
// we iterate over all visibleRowNodes to preserve the current order
|
|
387
|
-
this.
|
|
387
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
|
|
388
388
|
const rowPrimaryKeyValue = this.getAdaptableApi().gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
389
389
|
const selectedRowCells = selectedCellsByPrimaryKey[rowPrimaryKeyValue];
|
|
390
390
|
if (selectedRowCells) {
|
|
@@ -402,7 +402,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
402
402
|
const selectedRowInfo = this.getAdaptableApi().gridApi.getSelectedRowInfo();
|
|
403
403
|
const selectedGridRowPrimaryKeys = (_b = (_a = selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows) === null || _a === void 0 ? void 0 : _a.filter((gr) => gr.rowInfo.isGroup == false).map((gridRow) => gridRow.primaryKeyValue)) !== null && _b !== void 0 ? _b : [];
|
|
404
404
|
if (selectedGridRowPrimaryKeys.length) {
|
|
405
|
-
this.
|
|
405
|
+
this.getAdaptableInternalApi().forAllRowNodesDo((rowNode) => {
|
|
406
406
|
const rowPrimaryKeyValue = this.getAdaptableApi().gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
407
407
|
if (selectedGridRowPrimaryKeys.includes(rowPrimaryKeyValue)) {
|
|
408
408
|
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
@@ -438,7 +438,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
438
438
|
}, {});
|
|
439
439
|
}
|
|
440
440
|
publishLiveLiveDataChangedEvent(reportDestination, liveDataTrigger, liveReport) {
|
|
441
|
-
const liveDataChangedInfo = Object.assign(Object.assign({}, this.
|
|
441
|
+
const liveDataChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { reportDestination: reportDestination, liveDataTrigger: liveDataTrigger, liveReport: liveReport });
|
|
442
442
|
this.getAdaptableApi().eventApi.emit('LiveDataChanged', liveDataChangedInfo);
|
|
443
443
|
}
|
|
444
444
|
getCellExportValueFromRowNode(rowNode, columnId, reportName) {
|
|
@@ -525,14 +525,15 @@ export class ExportInternalApi extends ApiBase {
|
|
|
525
525
|
formatColumnsWithDisplayFormatForColumn[columnId] = formatColumns;
|
|
526
526
|
return formatColumns;
|
|
527
527
|
};
|
|
528
|
-
const
|
|
529
|
-
const colDefs =
|
|
528
|
+
const agGridDisplayedColumns = this.getAgGridApi().getAllDisplayedColumns();
|
|
529
|
+
const colDefs = agGridDisplayedColumns.map((column) => {
|
|
530
530
|
return column.getColDef();
|
|
531
531
|
});
|
|
532
532
|
const forAllVisibleRowNodesDoConfig = { includeGroupRows: true };
|
|
533
|
-
const agGridApi = this.
|
|
534
|
-
const userExcelStyles = this.
|
|
535
|
-
|
|
533
|
+
const agGridApi = this.getAgGridApi();
|
|
534
|
+
const userExcelStyles = this.getAdaptableInternalApi().getAgGridAdapter().getUserGridOptionsProperty('excelStyles') ||
|
|
535
|
+
[];
|
|
536
|
+
this.getAdaptableInternalApi().forAllVisibleRowNodesDo((node, rowIndex) => {
|
|
536
537
|
const rowParams = {
|
|
537
538
|
node,
|
|
538
539
|
data: node.data,
|
|
@@ -542,7 +543,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
542
543
|
};
|
|
543
544
|
const getRowStyleFn = agGridApi.getGridOption('getRowStyle');
|
|
544
545
|
const rowStyle = getRowStyleFn ? getRowStyleFn(rowParams) : {};
|
|
545
|
-
|
|
546
|
+
agGridDisplayedColumns.forEach((column, columnIndex) => {
|
|
546
547
|
var _a, _b, _c;
|
|
547
548
|
const colDef = colDefs[columnIndex];
|
|
548
549
|
const columnId = column.getId();
|
|
@@ -564,12 +565,10 @@ export class ExportInternalApi extends ApiBase {
|
|
|
564
565
|
}
|
|
565
566
|
return cellClassParams;
|
|
566
567
|
};
|
|
567
|
-
const cellStyle = typeof colDef.cellStyle === 'function'
|
|
568
|
-
? colDef.cellStyle(getLazyCellClassParams())
|
|
569
|
-
: {};
|
|
568
|
+
const cellStyle = typeof colDef.cellStyle === 'function' ? colDef.cellStyle(getLazyCellClassParams()) : {};
|
|
570
569
|
const excelStyles = [];
|
|
571
570
|
// add user defined excel styles
|
|
572
|
-
let userColDefCellClass = this.
|
|
571
|
+
let userColDefCellClass = this._adaptable.agGridColumnAdapter.getUserColDefProperty(column.getColId(), 'cellClass');
|
|
573
572
|
const userDefinedCellClass = typeof userColDefCellClass === 'function'
|
|
574
573
|
? userColDefCellClass(getLazyCellClassParams())
|
|
575
574
|
: userColDefCellClass;
|
|
@@ -602,7 +601,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
602
601
|
!(excelDataType === 'DateTime' && isDateCellExportedAsFormattedValue)) {
|
|
603
602
|
return;
|
|
604
603
|
}
|
|
605
|
-
const cellClassId = this.
|
|
604
|
+
const cellClassId = this._adaptable.agGridColumnAdapter.getExcelClassNameForCell(column.getId(), this._adaptable.getPrimaryKeyValueFromRowNode(node), userDefinedCellClass);
|
|
606
605
|
const finalCellExcelStyle = Object.assign({}, ...excelStyles);
|
|
607
606
|
if (excelDataType === 'DateTime' && isDateCellExportedAsFormattedValue) {
|
|
608
607
|
let dateFormatPattern = this.getAdaptableApi().optionsApi.getExportOptions().exportDateFormat;
|
|
@@ -614,7 +613,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
614
613
|
((_c = (_b = mostRelevantFormatColumn === null || mostRelevantFormatColumn === void 0 ? void 0 : mostRelevantFormatColumn.DisplayFormat) === null || _b === void 0 ? void 0 : _b.Options) === null || _c === void 0 ? void 0 : _c.Pattern);
|
|
615
614
|
}
|
|
616
615
|
if (dateFormatPattern) {
|
|
617
|
-
const normalisedValue = this.
|
|
616
|
+
const normalisedValue = this._adaptable.getNormalisedValueFromRawValue(rawValue, abColumn);
|
|
618
617
|
if (normalisedValue) {
|
|
619
618
|
// we have to pass the date in the ISO format to Excel
|
|
620
619
|
// see https://www.ag-grid.com/javascript-data-grid/excel-export-data-types/#dates
|
|
@@ -626,7 +625,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
626
625
|
finalCellExcelStyle.dataType = 'DateTime';
|
|
627
626
|
finalCellExcelStyle.numberFormat = { format: dateFormatPattern };
|
|
628
627
|
// create a new cell key to ensure any user provided className does not interfere
|
|
629
|
-
const cellKey = this.
|
|
628
|
+
const cellKey = this._adaptable.agGridColumnAdapter.getExcelClassNameForCell(column.getColId(), this._adaptable.getPrimaryKeyValueFromRowNode(node));
|
|
630
629
|
// we need to register so that later the cellProcessor will put the isoFormattedValue through (thus giving the formatting responsability to Excel)
|
|
631
630
|
this.registerExcelStyleWithFormattedDate(cellKey, isoFormattedValue);
|
|
632
631
|
}
|
|
@@ -16,7 +16,7 @@ export class ExpressionInternalApi extends ApiBase {
|
|
|
16
16
|
if (typeof evaluateExpressionExternallyFn !== 'function') {
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
|
-
const context = Object.assign(Object.assign({}, this.
|
|
19
|
+
const context = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { module });
|
|
20
20
|
if (object) {
|
|
21
21
|
context.object = object;
|
|
22
22
|
}
|
|
@@ -34,7 +34,7 @@ export class ExpressionInternalApi extends ApiBase {
|
|
|
34
34
|
if (typeof evaluateExpressionExternallyFn !== 'function') {
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
|
-
const context = Object.assign(Object.assign({}, this.
|
|
37
|
+
const context = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { module });
|
|
38
38
|
if (object) {
|
|
39
39
|
context.object = object;
|
|
40
40
|
}
|
|
@@ -78,9 +78,9 @@ export class ExpressionInternalApi extends ApiBase {
|
|
|
78
78
|
// return keys;
|
|
79
79
|
// }
|
|
80
80
|
getFieldsFromOptions() {
|
|
81
|
-
const fields = this.
|
|
81
|
+
const fields = this.getExpressionOptions().fields;
|
|
82
82
|
if (fields != null && typeof fields === 'function') {
|
|
83
|
-
return fields(this.
|
|
83
|
+
return fields(this.getAdaptableInternalApi().buildBaseContext());
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
86
86
|
let arr = fields;
|
|
@@ -15,7 +15,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
15
15
|
const contextMappedFromGridData = Object.assign({ type: contextType }, mappedContextData);
|
|
16
16
|
const resolveContextDataFn = this.getFdc3Options().resolveContextData;
|
|
17
17
|
if (typeof resolveContextDataFn === 'function') {
|
|
18
|
-
return resolveContextDataFn(Object.assign(Object.assign({}, this.
|
|
18
|
+
return resolveContextDataFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { contextType,
|
|
19
19
|
contextMappedFromGridData,
|
|
20
20
|
rowNode, rowData: rowNode.data, primaryKeyValue: this.getGridApi().getPrimaryKeyValueForRowNode(rowNode) }));
|
|
21
21
|
}
|
|
@@ -42,7 +42,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
42
42
|
filter: false,
|
|
43
43
|
sortable: false,
|
|
44
44
|
enableRowGroup: false,
|
|
45
|
-
cellRenderer: this.
|
|
45
|
+
cellRenderer: this.getAdaptableVariant() === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
46
46
|
type: [AB_SPECIAL_COLUMN, AB_FDC3_COLUMN, 'abColDefObject'],
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -62,7 +62,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
62
62
|
filter: false,
|
|
63
63
|
sortable: false,
|
|
64
64
|
enableRowGroup: false,
|
|
65
|
-
cellRenderer: this.
|
|
65
|
+
cellRenderer: this.getAdaptableVariant() === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
66
66
|
type: [AB_SPECIAL_COLUMN, AB_FDC3_COLUMN, 'abColDefObject'],
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -144,11 +144,11 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
144
144
|
const relevantRaiseIntentConfig = this.getAllRaiseIntentConfigs().find((config) => config.intentType === raisedIntent && config.contextType === context.type);
|
|
145
145
|
if (typeof (relevantRaiseIntentConfig === null || relevantRaiseIntentConfig === void 0 ? void 0 : relevantRaiseIntentConfig.handleIntentResolution) === 'function') {
|
|
146
146
|
// call intent specific resolution handler
|
|
147
|
-
relevantRaiseIntentConfig.handleIntentResolution(Object.assign(Object.assign({}, this.
|
|
147
|
+
relevantRaiseIntentConfig.handleIntentResolution(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { intentResolution }));
|
|
148
148
|
}
|
|
149
149
|
else {
|
|
150
150
|
// call global resolution handler (if any)
|
|
151
|
-
(_b = (_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.handleIntentResolution) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.
|
|
151
|
+
(_b = (_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.handleIntentResolution) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { intentResolution }));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
isStandardContextType(contextType) {
|
|
@@ -197,7 +197,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
197
197
|
}
|
|
198
198
|
getDefaultIconForIntent(intentType) {
|
|
199
199
|
var _a, _b;
|
|
200
|
-
const defaultConfig = this.getFdc3Service().getUiControlsDefaultConfiguration();
|
|
200
|
+
const defaultConfig = this.getAdaptableInternalApi().getFdc3Service().getUiControlsDefaultConfiguration();
|
|
201
201
|
// @ts-ignore
|
|
202
202
|
const intentIcon = (_b = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.intents[intentType]) === null || _a === void 0 ? void 0 : _a.icon) !== null && _b !== void 0 ? _b : {
|
|
203
203
|
name: 'fdc3',
|
|
@@ -206,7 +206,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
206
206
|
}
|
|
207
207
|
getDefaultIconForContext(contextType) {
|
|
208
208
|
var _a, _b;
|
|
209
|
-
const defaultConfig = this.getFdc3Service().getUiControlsDefaultConfiguration();
|
|
209
|
+
const defaultConfig = this.getAdaptableInternalApi().getFdc3Service().getUiControlsDefaultConfiguration();
|
|
210
210
|
// @ts-ignore
|
|
211
211
|
const contextIcon = (_b = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.contexts[contextType]) === null || _a === void 0 ? void 0 : _a.icon) !== null && _b !== void 0 ? _b : {
|
|
212
212
|
name: 'fdc3',
|
|
@@ -241,7 +241,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
241
241
|
// '_field.fieldName'
|
|
242
242
|
if (valueReference.startsWith(FieldRefTypePrefix)) {
|
|
243
243
|
const fieldId = valueReference.replace(FieldRefTypePrefix, '');
|
|
244
|
-
mappedData[contextKey] = this.
|
|
244
|
+
mappedData[contextKey] = this.getAdaptableInternalApi().getValueUsingField(rowNode.data, fieldId);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
return mappedData;
|
|
@@ -261,7 +261,7 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
261
261
|
}
|
|
262
262
|
mapFdc3ButtonConfigToAdaptableButton(fdc3AdaptableButton, fdcInfo) {
|
|
263
263
|
const buildFdc3Context = (context) => {
|
|
264
|
-
return Object.assign({ context: this.mapRowToContextData(fdcInfo.contextType, context.rowNode), intent: fdcInfo.action === 'raiseIntent' ? fdcInfo.intent : null, rowNode: context.rowNode, rowData: context.data, primaryKeyValue: context.primaryKeyValue }, this.
|
|
264
|
+
return Object.assign({ context: this.mapRowToContextData(fdcInfo.contextType, context.rowNode), intent: fdcInfo.action === 'raiseIntent' ? fdcInfo.intent : null, rowNode: context.rowNode, rowData: context.data, primaryKeyValue: context.primaryKeyValue }, this.getAdaptableInternalApi().buildBaseContext());
|
|
265
265
|
};
|
|
266
266
|
return {
|
|
267
267
|
onClick: (_button, context) => {
|
|
@@ -351,7 +351,4 @@ export class Fdc3InternalApi extends ApiBase {
|
|
|
351
351
|
tone: 'neutral',
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
getFdc3Service() {
|
|
355
|
-
return this.adaptable.Fdc3Service;
|
|
356
|
-
}
|
|
357
354
|
}
|
|
@@ -8,7 +8,7 @@ export class FlashingCellInternalApi extends ApiBase {
|
|
|
8
8
|
* @param flashingCellDefinition Flashing Cell Definition to Merge
|
|
9
9
|
*/
|
|
10
10
|
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
|
|
11
|
-
let flashingDefaults = this.
|
|
11
|
+
let flashingDefaults = this.getFlashingCellOptions();
|
|
12
12
|
if (!flashingDefaults) {
|
|
13
13
|
return flashingCellDefinition;
|
|
14
14
|
}
|
|
@@ -33,7 +33,7 @@ export class FlashingCellInternalApi extends ApiBase {
|
|
|
33
33
|
}
|
|
34
34
|
getAdaptableFlashingCellFor(primaryKey, columnId) {
|
|
35
35
|
var _a;
|
|
36
|
-
const flashingCellService = this.
|
|
36
|
+
const flashingCellService = this.getAdaptableInternalApi().getFlashingCellService();
|
|
37
37
|
const AdaptableFlashingAlerts = flashingCellService.gridCellsCurrentlyFlashing;
|
|
38
38
|
const AdaptableFlashingAlertsMap = flashingCellService.flashingCellsMapping;
|
|
39
39
|
const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
|
|
@@ -125,8 +125,7 @@ export class FormatColumnInternalApi extends ApiBase {
|
|
|
125
125
|
if (!(columnCustomFormatters === null || columnCustomFormatters === void 0 ? void 0 : columnCustomFormatters.length)) {
|
|
126
126
|
return value;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
const customFormattersFromOptions = (_c = (_b = adaptableOptions === null || adaptableOptions === void 0 ? void 0 : adaptableOptions.formatColumnOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
|
|
128
|
+
const customFormattersFromOptions = (_c = (_b = this.getFormatColumnOptions()) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
|
|
130
129
|
// formatters are applied in the order they are defined in the options
|
|
131
130
|
const customFormatters = customFormattersFromOptions.filter((customFormatterOption) => columnCustomFormatters.includes(customFormatterOption.id));
|
|
132
131
|
const customDisplayFormatterContext = ObjectFactory.CreateCustomDisplayFormatterContext(value, node, abColumn, this.getAdaptableApi());
|
|
@@ -182,7 +181,7 @@ export class FormatColumnInternalApi extends ApiBase {
|
|
|
182
181
|
}
|
|
183
182
|
// first run the predicate
|
|
184
183
|
if (formatColumn.Rule.Predicates && ((_e = (_d = formatColumn.Rule) === null || _d === void 0 ? void 0 : _d.Predicates) === null || _e === void 0 ? void 0 : _e.length)) {
|
|
185
|
-
const predicateDefHandlerContext = Object.assign({ value: cellValue, oldValue: null, displayValue: cellValue, node: rowNode, column: column }, this.
|
|
184
|
+
const predicateDefHandlerContext = Object.assign({ value: cellValue, oldValue: null, displayValue: cellValue, node: rowNode, column: column }, this.getAdaptableInternalApi().buildBaseContext());
|
|
186
185
|
return this.evaluatePredicate(formatColumn, predicateDefHandlerContext);
|
|
187
186
|
} // then run the Expression
|
|
188
187
|
else if (formatColumn.Rule.BooleanExpression) {
|
|
@@ -24,7 +24,8 @@ export class FreeTextColumnInternalApi extends ApiBase {
|
|
|
24
24
|
refencedCalcColumns.forEach((calculatedColumn) => {
|
|
25
25
|
colsToRefresh.push(calculatedColumn.ColumnId);
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
const suppressFlash = false;
|
|
28
|
+
this.getGridApi().refreshCells([cellDataChangedInfo.rowNode], colsToRefresh, suppressFlash);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
@@ -33,7 +34,9 @@ export class FreeTextColumnInternalApi extends ApiBase {
|
|
|
33
34
|
*/
|
|
34
35
|
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
35
36
|
const references = [];
|
|
36
|
-
this.
|
|
37
|
+
this.getAdaptableInternalApi()
|
|
38
|
+
.getModules()
|
|
39
|
+
.forEach((module) => {
|
|
37
40
|
if (module
|
|
38
41
|
.getModuleFreeTextColumnReferences()
|
|
39
42
|
.some((moduleReference) => moduleReference.Uuid === freeTextColumn.Uuid)) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
export class GridFilterInternalApi extends ApiBase {
|
|
3
3
|
fireGridFilterAppliedEvent() {
|
|
4
|
-
if (this.
|
|
4
|
+
if (this.isAdapTableReady()) {
|
|
5
5
|
const currentGridFilter = this.getGridFilterApi().getCurrentGridFilter();
|
|
6
6
|
const adaptableApi = this.getAdaptableApi();
|
|
7
7
|
const gridFilterAppliedInfo = Object.assign({ gridFilter: currentGridFilter, gridFilterExpressionAST: currentGridFilter
|
|
8
8
|
? adaptableApi.expressionApi.getASTForExpression(currentGridFilter === null || currentGridFilter === void 0 ? void 0 : currentGridFilter.Expression)
|
|
9
|
-
: null }, this.
|
|
9
|
+
: null }, this.getAdaptableInternalApi().buildBaseContext());
|
|
10
10
|
adaptableApi.eventApi.emit('GridFilterApplied', gridFilterAppliedInfo);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -11,10 +11,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
11
11
|
* Fires Grid Sorted Event
|
|
12
12
|
*/
|
|
13
13
|
fireGridSortedEvent() {
|
|
14
|
-
if (this.
|
|
14
|
+
if (this.isAdapTableReady()) {
|
|
15
15
|
const adaptableSortState = this.getAdaptableApi().configApi.getAdaptableSortState();
|
|
16
16
|
const adaptableApi = this.getAdaptableApi();
|
|
17
|
-
const gridSortedInfo = Object.assign({ adaptableSortState: adaptableSortState }, this.
|
|
17
|
+
const gridSortedInfo = Object.assign({ adaptableSortState: adaptableSortState }, this.getAdaptableInternalApi().buildBaseContext());
|
|
18
18
|
adaptableApi.eventApi.emit('GridSorted', gridSortedInfo);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -22,8 +22,8 @@ export class GridInternalApi extends ApiBase {
|
|
|
22
22
|
* Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
|
|
23
23
|
*/
|
|
24
24
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
25
|
-
if (this.
|
|
26
|
-
const cellChangedInfo = Object.assign(Object.assign({}, this.
|
|
25
|
+
if (this.isAdapTableReady()) {
|
|
26
|
+
const cellChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { cellChange: cellDataChangedInfo });
|
|
27
27
|
this.getAdaptableApi().eventApi.emit('CellChanged', cellChangedInfo);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -31,12 +31,12 @@ export class GridInternalApi extends ApiBase {
|
|
|
31
31
|
* Fires Grid Data Changed Event - when a row has changed in AG Grid
|
|
32
32
|
*/
|
|
33
33
|
fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger) {
|
|
34
|
-
if (this.
|
|
34
|
+
if (this.isAdapTableReady()) {
|
|
35
35
|
const gridDataChangedInfo = Object.assign({ changedAt: Date.now(), rowTrigger,
|
|
36
36
|
dataRows,
|
|
37
|
-
rowNodes }, this.
|
|
37
|
+
rowNodes }, this.getAdaptableInternalApi().buildBaseContext());
|
|
38
38
|
this.getAdaptableApi().eventApi.emit('GridDataChanged', gridDataChangedInfo);
|
|
39
|
-
this.
|
|
39
|
+
this.getAdaptableInternalApi().getDataService().CreateGridChangedEvent(gridDataChangedInfo);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
@@ -51,7 +51,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
51
51
|
const distinctValuesParams = {
|
|
52
52
|
visibleRowsOnly: false,
|
|
53
53
|
};
|
|
54
|
-
const returnValues = this.
|
|
54
|
+
const returnValues = this._adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
55
55
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
56
56
|
return cv.normalisedValue;
|
|
57
57
|
});
|
|
@@ -84,7 +84,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
84
84
|
const shouldShowValuesCount = this.shouldShowValuesCount(abColumn);
|
|
85
85
|
let valueOptions = [];
|
|
86
86
|
if (shouldShowValuesCount) {
|
|
87
|
-
const allGridCells = this.
|
|
87
|
+
const allGridCells = this._adaptable.getGridCellsForColumn(columnId, this.getColumnFilterOptions().valuesFilterOptions.showCurrentlyFilteredValuesCount);
|
|
88
88
|
const allGridValues = allGridCells.map((gc) => gc.displayValue);
|
|
89
89
|
const newsortedDistinctValues = sortedDistinctValues.filter((gc) => gc.displayValue != undefined && gc.displayValue != '' && gc.displayValue != null);
|
|
90
90
|
valueOptions = newsortedDistinctValues.map((cv) => {
|
|
@@ -114,7 +114,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
114
114
|
let returnValue = false;
|
|
115
115
|
if (showValuesCount) {
|
|
116
116
|
if (typeof showValuesCount === 'function') {
|
|
117
|
-
const columnFilterContext = Object.assign({ column }, this.
|
|
117
|
+
const columnFilterContext = Object.assign({ column }, this.getAdaptableInternalApi().buildBaseContext());
|
|
118
118
|
returnValue = showValuesCount(columnFilterContext);
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
@@ -144,12 +144,12 @@ export class GridInternalApi extends ApiBase {
|
|
|
144
144
|
addPredicateValues(params) {
|
|
145
145
|
var _a, _b, _c, _d;
|
|
146
146
|
const { valueOptions, column, shouldShowValuesCount, visibleRowsOnly } = params;
|
|
147
|
-
const visibleGridCells = this.
|
|
147
|
+
const visibleGridCells = this._adaptable.getGridCellsForColumnTemp(column.columnId, visibleRowsOnly);
|
|
148
148
|
let allGridCells;
|
|
149
149
|
if (shouldShowValuesCount) {
|
|
150
150
|
allGridCells = visibleRowsOnly
|
|
151
151
|
? visibleGridCells
|
|
152
|
-
: this.
|
|
152
|
+
: this._adaptable.getGridCellsForColumnTemp(column.columnId, this.getColumnFilterOptions().valuesFilterOptions.showCurrentlyFilteredValuesCount);
|
|
153
153
|
}
|
|
154
154
|
const adaptableApi = this.getAdaptableApi();
|
|
155
155
|
const predicateIds = adaptableApi.columnFilterApi.internalApi.getValuesFitlerPredicateIds(column);
|
|
@@ -228,12 +228,12 @@ export class GridInternalApi extends ApiBase {
|
|
|
228
228
|
preparedPermittedValues = await (filterPermittedValues === null || filterPermittedValues === void 0 ? void 0 : filterPermittedValues.values(filterPermittedValuesParams));
|
|
229
229
|
}
|
|
230
230
|
catch (error) {
|
|
231
|
-
this.
|
|
231
|
+
this._adaptable.logger.consoleError(`Failed to load filter permitted values`, column, filter, error);
|
|
232
232
|
}
|
|
233
233
|
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
234
234
|
return {
|
|
235
235
|
suppressClientSideFilter: filterPermittedValues.suppressFilterSearchBar,
|
|
236
|
-
gridCells: this.
|
|
236
|
+
gridCells: this._adaptable.getDistinctValuesForColumn(column, distinctValuesParams),
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
@@ -261,10 +261,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
261
261
|
preparedPermittedValues = await (customSortPermittedValues === null || customSortPermittedValues === void 0 ? void 0 : customSortPermittedValues.values(permittedValuesParams));
|
|
262
262
|
}
|
|
263
263
|
catch (error) {
|
|
264
|
-
this.
|
|
264
|
+
this._adaptable.logger.consoleError(`Failed to load custom sort permitted values`, column, error);
|
|
265
265
|
}
|
|
266
266
|
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
267
|
-
return this.
|
|
267
|
+
return this._adaptable.getDistinctValuesForColumn(column, distinctValuesParams);
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* Gets all distinct Bulk Update values for the Column with the given ColumnId
|
|
@@ -292,10 +292,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
292
292
|
preparedPermittedValues = await (bulkUpdatePermittedValues === null || bulkUpdatePermittedValues === void 0 ? void 0 : bulkUpdatePermittedValues.values(bulkUpdatePermittedValuesParams));
|
|
293
293
|
}
|
|
294
294
|
catch (error) {
|
|
295
|
-
this.
|
|
295
|
+
this._adaptable.logger.consoleError(`Failed to load bulk permitted values`, error, column, selectedGridCells);
|
|
296
296
|
}
|
|
297
297
|
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
298
|
-
return this.
|
|
298
|
+
return this._adaptable.getDistinctValuesForColumn(column, distinctValuesParams);
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
301
|
* Gets all distinct visible (after current filters are applied) display values in the Column with the given ColumnId
|
|
@@ -309,7 +309,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
309
309
|
const distinctValuesParams = {
|
|
310
310
|
visibleRowsOnly: true,
|
|
311
311
|
};
|
|
312
|
-
const returnValues = this.
|
|
312
|
+
const returnValues = this._adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
313
313
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
314
314
|
return cv.normalisedValue;
|
|
315
315
|
});
|
|
@@ -342,7 +342,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
342
342
|
visibleRowsOnly: false,
|
|
343
343
|
skipRowNode: skipRowNode,
|
|
344
344
|
};
|
|
345
|
-
return this.
|
|
345
|
+
return this._adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
348
|
* Gets all distinct visible raw values in the Column
|
|
@@ -356,7 +356,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
356
356
|
const distinctValuesParams = {
|
|
357
357
|
visibleRowsOnly: true,
|
|
358
358
|
};
|
|
359
|
-
const returnValues = this.
|
|
359
|
+
const returnValues = this._adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
360
360
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
361
361
|
return cv.rawValue;
|
|
362
362
|
});
|
|
@@ -391,7 +391,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
391
391
|
this.dispatchAction(GridRedux.GridSetSelectedRows(selectedRowInfo));
|
|
392
392
|
}
|
|
393
393
|
buildStandaloneColumnHeader(column) {
|
|
394
|
-
return this.
|
|
394
|
+
return this._adaptable.agGridMenuAdapter.buildStandaloneColumnHeader(column);
|
|
395
395
|
}
|
|
396
396
|
getEditLookUpValuesForColumn(editLookUpItem, column, gridCell) {
|
|
397
397
|
if (!editLookUpItem || !column) {
|
|
@@ -400,7 +400,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
400
400
|
let editLookUpValues = editLookUpItem.values;
|
|
401
401
|
// first do the function then get hardcoded items
|
|
402
402
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
403
|
-
const editLookUpContext = Object.assign(Object.assign({}, this.
|
|
403
|
+
const editLookUpContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { column: column, gridCell });
|
|
404
404
|
return editLookUpValues(editLookUpContext);
|
|
405
405
|
}
|
|
406
406
|
else {
|
|
@@ -440,7 +440,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
440
440
|
}
|
|
441
441
|
getRowHighlightStyle(params) {
|
|
442
442
|
var _a;
|
|
443
|
-
const primaryKeyValue = this.
|
|
443
|
+
const primaryKeyValue = this._adaptable.getPrimaryKeyValueFromRowNode(params.node, params.api);
|
|
444
444
|
const highlightRow = (_a = this.getAdaptableApi()
|
|
445
445
|
.internalApi.getSystemState()
|
|
446
446
|
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
@@ -473,7 +473,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
473
473
|
}
|
|
474
474
|
getRowHighlightClass(params) {
|
|
475
475
|
var _a;
|
|
476
|
-
const primaryKeyValue = this.
|
|
476
|
+
const primaryKeyValue = this._adaptable.getPrimaryKeyValueFromRowNode(params.node, params.api);
|
|
477
477
|
const highlightRow = (_a = this.getAdaptableApi()
|
|
478
478
|
.internalApi.getSystemState()
|
|
479
479
|
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
@@ -484,7 +484,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
484
484
|
: null;
|
|
485
485
|
}
|
|
486
486
|
deriveSpecialColumnSettingsFromAgGridDefaultColDef() {
|
|
487
|
-
const defaultColumnDefinition = this.
|
|
487
|
+
const defaultColumnDefinition = this._adaptable.agGridAdapter.getDefaultColumnDefinition();
|
|
488
488
|
return {
|
|
489
489
|
Filterable: defaultColumnDefinition.filter,
|
|
490
490
|
Resizable: defaultColumnDefinition.resizable,
|
|
@@ -13,7 +13,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
13
13
|
* @param newState Layout State after change
|
|
14
14
|
*/
|
|
15
15
|
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
16
|
-
const layoutChangedInfo = Object.assign({ actionName: trigger, oldLayoutState: oldSate, newLayoutState: newState }, this.
|
|
16
|
+
const layoutChangedInfo = Object.assign({ actionName: trigger, oldLayoutState: oldSate, newLayoutState: newState }, this.getAdaptableInternalApi().buildBaseContext());
|
|
17
17
|
if (!skipEqualityCheck && isEqual(oldSate, newState)) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
@@ -124,7 +124,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
124
124
|
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(GridFilterModuleId) == 'Hidden') {
|
|
125
125
|
layoutSupportedFeatures.GridFilter = false;
|
|
126
126
|
}
|
|
127
|
-
if (((_b = (_a = this.
|
|
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
128
|
layoutSupportedFeatures.RowSummaries = false;
|
|
129
129
|
}
|
|
130
130
|
return layoutSupportedFeatures;
|
|
@@ -153,7 +153,7 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
153
153
|
return ArrayExtensions.IsNullOrEmpty(object.Tags) ? true : (_a = object.Tags) === null || _a === void 0 ? void 0 : _a.includes(layout.Name);
|
|
154
154
|
}
|
|
155
155
|
const context = Object.assign({ adaptableObject: object, module,
|
|
156
|
-
layout }, this.
|
|
156
|
+
layout }, this.getAdaptableInternalApi().buildBaseContext());
|
|
157
157
|
return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
|
|
158
158
|
}
|
|
159
159
|
showLayoutNotAssociatedObjects() {
|
|
@@ -179,7 +179,8 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
179
179
|
}
|
|
180
180
|
return acc;
|
|
181
181
|
}, { top: [], bottom: [] });
|
|
182
|
-
this.
|
|
183
|
-
|
|
182
|
+
const agGridAdapter = this.getAdaptableInternalApi().getAgGridAdapter();
|
|
183
|
+
agGridAdapter.setGridOption('pinnedTopRowData', top);
|
|
184
|
+
agGridAdapter.setGridOption('pinnedBottomRowData', bottom);
|
|
184
185
|
}
|
|
185
186
|
}
|
|
@@ -12,7 +12,7 @@ export class NamedQueryInternalApi extends ApiBase {
|
|
|
12
12
|
}
|
|
13
13
|
catch (error) {
|
|
14
14
|
// defensive programing, this should happen only if someone botched the predefined configs
|
|
15
|
-
this.
|
|
15
|
+
this.logWarn(`QueryApi.getReferencedNamedQueryNames received an invalid expression: ${expression}
|
|
16
16
|
Error: ${error}`);
|
|
17
17
|
return [];
|
|
18
18
|
}
|
|
@@ -23,7 +23,7 @@ export class NamedQueryInternalApi extends ApiBase {
|
|
|
23
23
|
*/
|
|
24
24
|
getNamedQueryModuleReferences(namedQueryName) {
|
|
25
25
|
const references = [];
|
|
26
|
-
this.
|
|
26
|
+
this.getAdaptableInternalApi().getModules().forEach((module) => {
|
|
27
27
|
if (module
|
|
28
28
|
.getModuleNamedQueryReferences()
|
|
29
29
|
.some((moduleReference) => moduleReference === namedQueryName)) {
|