@adaptabletools/adaptable 19.1.0 → 19.1.2-canary.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 +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +3 -0
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
- package/src/AdaptableOptions/NoteOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +21 -11
- package/src/Api/Events/GridDataChanged.d.ts +3 -0
- package/src/Api/GridApi.d.ts +8 -3
- 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 +5 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -1
- 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 +108 -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/CommentsInternalApi.d.ts +1 -0
- package/src/Api/Internal/CommentsInternalApi.js +4 -0
- 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/NoteInternalApi.d.ts +1 -0
- package/src/Api/Internal/NoteInternalApi.js +4 -0
- 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/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +3 -0
- 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/Comments/CommentsEditor.js +2 -2
- package/src/View/Comments/CommentsPopup.js +1 -4
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Note/NotePopup.js +1 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -5
- package/src/agGrid/AdaptableAgGrid.js +47 -26
- package/src/agGrid/AgGridAdapter.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/agGrid/defaultAdaptableOptions.js +100 -96
- 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.d.ts +32 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -6,9 +6,9 @@ import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
|
6
6
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
7
7
|
import { ExportInternalApi } from '../Internal/ExportInternalApi';
|
|
8
8
|
export class ExportApiImpl extends ApiBase {
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
this.internalApi = new ExportInternalApi(
|
|
9
|
+
constructor(_adaptable) {
|
|
10
|
+
super(_adaptable);
|
|
11
|
+
this.internalApi = new ExportInternalApi(_adaptable);
|
|
12
12
|
}
|
|
13
13
|
getExportState() {
|
|
14
14
|
return this.getAdaptableState().Export;
|
|
@@ -97,10 +97,10 @@ export class ExportApiImpl extends ApiBase {
|
|
|
97
97
|
return (_a = this.getCustomDestinations().find((destination) => destination.name === destinationName)) === null || _a === void 0 ? void 0 : _a.form;
|
|
98
98
|
}
|
|
99
99
|
canExportToExcel() {
|
|
100
|
-
return this.
|
|
100
|
+
return this._adaptable.canExportToExcel();
|
|
101
101
|
}
|
|
102
102
|
exportDataToExcel(reportData, fileName) {
|
|
103
|
-
this.
|
|
103
|
+
this._adaptable.exportToExcel(reportData, fileName);
|
|
104
104
|
}
|
|
105
105
|
openExportSettingsPanel() {
|
|
106
106
|
this.showModulePopup(ModuleConstants.ExportModuleId);
|
|
@@ -116,7 +116,7 @@ export class ExportApiImpl extends ApiBase {
|
|
|
116
116
|
return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
|
|
117
117
|
}
|
|
118
118
|
exportVisualDataToExcel() {
|
|
119
|
-
this.
|
|
119
|
+
this._adaptable.exportVisualDataToExcel();
|
|
120
120
|
}
|
|
121
121
|
getExternalReports() {
|
|
122
122
|
var _a;
|
|
@@ -146,7 +146,7 @@ export class ExportApiImpl extends ApiBase {
|
|
|
146
146
|
isColumnExportable(adaptableColumn) {
|
|
147
147
|
const isExportableFn = this.getExportOptions().isColumnExportable;
|
|
148
148
|
if (typeof isExportableFn === 'function') {
|
|
149
|
-
return isExportableFn(Object.assign(Object.assign({}, this.
|
|
149
|
+
return isExportableFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn }));
|
|
150
150
|
}
|
|
151
151
|
return true;
|
|
152
152
|
}
|
|
@@ -7,7 +7,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
7
7
|
import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
|
|
8
8
|
export declare class ExpressionApiImpl extends ApiBase implements ExpressionApi {
|
|
9
9
|
internalApi: ExpressionInternalApi;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(_adaptable: IAdaptable);
|
|
11
11
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
12
12
|
isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
13
13
|
isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import * as parser from '../../parser/src';
|
|
3
3
|
import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
|
|
4
4
|
export class ExpressionApiImpl extends ApiBase {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
7
|
-
this.internalApi = new ExpressionInternalApi(
|
|
5
|
+
constructor(_adaptable) {
|
|
6
|
+
super(_adaptable);
|
|
7
|
+
this.internalApi = new ExpressionInternalApi(_adaptable);
|
|
8
8
|
}
|
|
9
9
|
isValidBooleanExpression(query, module, validationErrorMessage) {
|
|
10
10
|
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
@@ -69,7 +69,7 @@ export class ExpressionApiImpl extends ApiBase {
|
|
|
69
69
|
isColumnQueryable(adaptableColumnBase) {
|
|
70
70
|
let queryableColumnFn = this.getExpressionOptions().isColumnQueryable;
|
|
71
71
|
if (queryableColumnFn) {
|
|
72
|
-
const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.
|
|
72
|
+
const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.getAdaptableInternalApi().buildBaseContext());
|
|
73
73
|
return queryableColumnFn(queryableColumnContext);
|
|
74
74
|
}
|
|
75
75
|
return true;
|
|
@@ -84,6 +84,6 @@ export class ExpressionApiImpl extends ApiBase {
|
|
|
84
84
|
.getExpressionWithColumnFriendlyNames(this.getAdaptableQueryExpression(query));
|
|
85
85
|
}
|
|
86
86
|
useCaseSensitivity() {
|
|
87
|
-
return this.
|
|
87
|
+
return this.getExpressionOptions().caseSensitiveExpressions;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -7,7 +7,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
7
7
|
import { AppIdentifier } from '@finos/fdc3/dist/api/AppIdentifier';
|
|
8
8
|
export declare class Fdc3ApiImpl extends ApiBase implements Fdc3Api {
|
|
9
9
|
internalApi: Fdc3InternalApi;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(_adaptable: IAdaptable);
|
|
11
11
|
getDesktopAgent(): DesktopAgent;
|
|
12
12
|
buildContextDataFromRow(contextType: ContextType, rowNode: IRowNode): Context;
|
|
13
13
|
buildContextDataForPrimaryKey(contextType: ContextType, primaryKeyValue: string | number): Context | undefined;
|
|
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { Fdc3InternalApi } from '../Internal/Fdc3InternalApi';
|
|
3
3
|
import { ContextConfiguration } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
4
4
|
export class Fdc3ApiImpl extends ApiBase {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
7
|
-
this.internalApi = new Fdc3InternalApi(
|
|
5
|
+
constructor(_adaptable) {
|
|
6
|
+
super(_adaptable);
|
|
7
|
+
this.internalApi = new Fdc3InternalApi(_adaptable);
|
|
8
8
|
}
|
|
9
9
|
getDesktopAgent() {
|
|
10
10
|
return this.getFdc3Service().getDesktopAgent();
|
|
@@ -69,7 +69,7 @@ export class Fdc3ApiImpl extends ApiBase {
|
|
|
69
69
|
return this.internalApi.isStandardIntentType(intentType);
|
|
70
70
|
}
|
|
71
71
|
getFdc3Service() {
|
|
72
|
-
return this.
|
|
72
|
+
return this.getAdaptableInternalApi().getFdc3Service();
|
|
73
73
|
}
|
|
74
74
|
getPossibleContextTypes(intent) {
|
|
75
75
|
this.logWarn('Fdc3Api.getPossibleContextTypes is NO longer relevant as of FDC3 v1.2 and will be removed in a future version');
|
|
@@ -9,7 +9,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
9
9
|
import { AdaptableObjectLookupCriteria } from '../../types';
|
|
10
10
|
export declare class FlashingCellApiImpl extends ApiBase implements FlashingCellApi {
|
|
11
11
|
internalApi: FlashingCellInternalApi;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(_adaptable: IAdaptable);
|
|
13
13
|
getFlashingCellState(): FlashingCellState;
|
|
14
14
|
getFlashingCellDefinitions(config?: LayoutAssociatedObjectLoadConfig): FlashingCellDefinition[];
|
|
15
15
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
@@ -2,9 +2,9 @@ import * as FlashingCellRedux from '../../Redux/ActionsReducers/FlashingCellRedu
|
|
|
2
2
|
import { ApiBase } from './ApiBase';
|
|
3
3
|
import { FlashingCellInternalApi } from '../Internal/FlashingCellInternalApi';
|
|
4
4
|
export class FlashingCellApiImpl extends ApiBase {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
7
|
-
this.internalApi = new FlashingCellInternalApi(
|
|
5
|
+
constructor(_adaptable) {
|
|
6
|
+
super(_adaptable);
|
|
7
|
+
this.internalApi = new FlashingCellInternalApi(_adaptable);
|
|
8
8
|
}
|
|
9
9
|
getFlashingCellState() {
|
|
10
10
|
return this.getAdaptableState().FlashingCell;
|
|
@@ -32,7 +32,7 @@ export class FlashingCellApiImpl extends ApiBase {
|
|
|
32
32
|
}
|
|
33
33
|
showFlashingCell(flashingCellToShow) {
|
|
34
34
|
this.addUidToAdaptableObject(flashingCellToShow);
|
|
35
|
-
const flashingCellFiredInfo = Object.assign(Object.assign({}, this.
|
|
35
|
+
const flashingCellFiredInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { flashingCell: flashingCellToShow });
|
|
36
36
|
const results = this.getAdaptableApi().eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
|
|
37
37
|
const shouldShow = results.reduce((endResult, aResult) => {
|
|
38
38
|
return endResult && aResult !== false;
|
|
@@ -94,13 +94,13 @@ export class FlashingCellApiImpl extends ApiBase {
|
|
|
94
94
|
.filter((predicateDef) => this.getAdaptableApi().columnScopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
95
95
|
}
|
|
96
96
|
clearAllFlashingCells() {
|
|
97
|
-
this.
|
|
97
|
+
this.getAdaptableInternalApi().getFlashingCellService().clearAllGridCellFlashes();
|
|
98
98
|
}
|
|
99
99
|
isAnyFlashingCellActive() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.getAdaptableInternalApi().getFlashingCellService().isAnyFlashingCellActive();
|
|
101
101
|
}
|
|
102
102
|
findFlashingCellDefinitions(criteria) {
|
|
103
|
-
return this.
|
|
103
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
|
|
104
104
|
includeLayoutNotAssociatedObjects: true,
|
|
105
105
|
}));
|
|
106
106
|
}
|
|
@@ -8,7 +8,7 @@ import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
|
|
|
8
8
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
9
9
|
export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
|
|
10
10
|
internalApi: FormatColumnInternalApi;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(_adaptable: IAdaptable);
|
|
12
12
|
getFormatColumnState(): FormatColumnState;
|
|
13
13
|
getFormatColumns(config?: {
|
|
14
14
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
@@ -3,9 +3,9 @@ import { ApiBase } from './ApiBase';
|
|
|
3
3
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
4
4
|
import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
|
|
5
5
|
export class FormatColumnApiImpl extends ApiBase {
|
|
6
|
-
constructor(
|
|
7
|
-
super(
|
|
8
|
-
this.internalApi = new FormatColumnInternalApi(
|
|
6
|
+
constructor(_adaptable) {
|
|
7
|
+
super(_adaptable);
|
|
8
|
+
this.internalApi = new FormatColumnInternalApi(_adaptable);
|
|
9
9
|
}
|
|
10
10
|
getFormatColumnState() {
|
|
11
11
|
return this.getAdaptableState().FormatColumn;
|
|
@@ -108,7 +108,7 @@ export class FormatColumnApiImpl extends ApiBase {
|
|
|
108
108
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
109
109
|
}
|
|
110
110
|
findFormatColumns(criteria) {
|
|
111
|
-
return this.
|
|
111
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFormatColumns({
|
|
112
112
|
includeLayoutNotAssociatedObjects: true,
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
@@ -6,7 +6,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
6
6
|
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
7
7
|
export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
|
|
8
8
|
internalApi: FreeTextColumnInternalApi;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(_adaptable: IAdaptable);
|
|
10
10
|
getFreeTextColumnState(): FreeTextColumnState;
|
|
11
11
|
getFreeTextColumns(): FreeTextColumn[];
|
|
12
12
|
getFreeTextColumnById(technicalId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
|
|
@@ -4,9 +4,9 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
4
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
5
5
|
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
6
6
|
export class FreeTextColumnApiImpl extends ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new FreeTextColumnInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new FreeTextColumnInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
getFreeTextColumnState() {
|
|
12
12
|
return this.getAdaptableState().FreeTextColumn;
|
|
@@ -89,7 +89,7 @@ export class FreeTextColumnApiImpl extends ApiBase {
|
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
91
|
if (ArrayExtensions.IsNotNullOrEmpty(freeTextColumn.FreeTextStoredValues)) {
|
|
92
|
-
let pkValue = this.
|
|
92
|
+
let pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
|
|
93
93
|
let freeTextStoredValue = freeTextColumn.FreeTextStoredValues.find((fdx) => fdx.PrimaryKey == pkValue);
|
|
94
94
|
if (freeTextStoredValue) {
|
|
95
95
|
return freeTextStoredValue.FreeText;
|
|
@@ -17,7 +17,7 @@ import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
|
17
17
|
import { TransposeConfig } from '../../PredefinedConfig/Common/TransposeConfig';
|
|
18
18
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
19
19
|
internalApi: GridInternalApi;
|
|
20
|
-
constructor(
|
|
20
|
+
constructor(_adaptable: IAdaptable);
|
|
21
21
|
getVariant(): AdaptableVariant;
|
|
22
22
|
getGridState(): GridState;
|
|
23
23
|
loadGridData(dataSource: any): void;
|
|
@@ -114,7 +114,8 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
114
114
|
unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
|
|
115
115
|
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
|
|
116
116
|
unHighlightAllRows(): void;
|
|
117
|
-
refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
|
|
117
|
+
refreshCells(rowNodes: IRowNode[], columnIds: string[], suppressFlash?: boolean): void;
|
|
118
|
+
refreshAllCells(forceUpdate?: boolean): void;
|
|
118
119
|
refreshGridCell(gridCell: GridCell): void;
|
|
119
120
|
refreshGridCells(gridCells: GridCell[]): void;
|
|
120
121
|
refreshColumn(columnId: string): void;
|