@adaptabletools/adaptable-cjs 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.cjs.tsbuildinfo +1 -1
|
@@ -10,9 +10,9 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
10
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
11
11
|
const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
|
|
12
12
|
class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
-
constructor(
|
|
14
|
-
super(
|
|
15
|
-
this.internalApi = new ExportInternalApi_1.ExportInternalApi(
|
|
13
|
+
constructor(_adaptable) {
|
|
14
|
+
super(_adaptable);
|
|
15
|
+
this.internalApi = new ExportInternalApi_1.ExportInternalApi(_adaptable);
|
|
16
16
|
}
|
|
17
17
|
getExportState() {
|
|
18
18
|
return this.getAdaptableState().Export;
|
|
@@ -101,10 +101,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
101
101
|
return (_a = this.getCustomDestinations().find((destination) => destination.name === destinationName)) === null || _a === void 0 ? void 0 : _a.form;
|
|
102
102
|
}
|
|
103
103
|
canExportToExcel() {
|
|
104
|
-
return this.
|
|
104
|
+
return this._adaptable.canExportToExcel();
|
|
105
105
|
}
|
|
106
106
|
exportDataToExcel(reportData, fileName) {
|
|
107
|
-
this.
|
|
107
|
+
this._adaptable.exportToExcel(reportData, fileName);
|
|
108
108
|
}
|
|
109
109
|
openExportSettingsPanel() {
|
|
110
110
|
this.showModulePopup(ModuleConstants.ExportModuleId);
|
|
@@ -120,7 +120,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
120
120
|
return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
|
|
121
121
|
}
|
|
122
122
|
exportVisualDataToExcel() {
|
|
123
|
-
this.
|
|
123
|
+
this._adaptable.exportVisualDataToExcel();
|
|
124
124
|
}
|
|
125
125
|
getExternalReports() {
|
|
126
126
|
var _a;
|
|
@@ -150,7 +150,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
150
150
|
isColumnExportable(adaptableColumn) {
|
|
151
151
|
const isExportableFn = this.getExportOptions().isColumnExportable;
|
|
152
152
|
if (typeof isExportableFn === 'function') {
|
|
153
|
-
return isExportableFn(Object.assign(Object.assign({}, this.
|
|
153
|
+
return isExportableFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn }));
|
|
154
154
|
}
|
|
155
155
|
return true;
|
|
156
156
|
}
|
|
@@ -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;
|
|
@@ -6,9 +6,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const parser = tslib_1.__importStar(require("../../parser/src"));
|
|
7
7
|
const ExpressionInternalApi_1 = require("../Internal/ExpressionInternalApi");
|
|
8
8
|
class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(
|
|
9
|
+
constructor(_adaptable) {
|
|
10
|
+
super(_adaptable);
|
|
11
|
+
this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(_adaptable);
|
|
12
12
|
}
|
|
13
13
|
isValidBooleanExpression(query, module, validationErrorMessage) {
|
|
14
14
|
const { isValid, errorMessage } = this.getAdaptableApi()
|
|
@@ -73,7 +73,7 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
73
73
|
isColumnQueryable(adaptableColumnBase) {
|
|
74
74
|
let queryableColumnFn = this.getExpressionOptions().isColumnQueryable;
|
|
75
75
|
if (queryableColumnFn) {
|
|
76
|
-
const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.
|
|
76
|
+
const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.getAdaptableInternalApi().buildBaseContext());
|
|
77
77
|
return queryableColumnFn(queryableColumnContext);
|
|
78
78
|
}
|
|
79
79
|
return true;
|
|
@@ -88,7 +88,7 @@ class ExpressionApiImpl extends ApiBase_1.ApiBase {
|
|
|
88
88
|
.getExpressionWithColumnFriendlyNames(this.getAdaptableQueryExpression(query));
|
|
89
89
|
}
|
|
90
90
|
useCaseSensitivity() {
|
|
91
|
-
return this.
|
|
91
|
+
return this.getExpressionOptions().caseSensitiveExpressions;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
exports.ExpressionApiImpl = ExpressionApiImpl;
|
|
@@ -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;
|
|
@@ -5,9 +5,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
5
5
|
const Fdc3InternalApi_1 = require("../Internal/Fdc3InternalApi");
|
|
6
6
|
const Fdc3Context_1 = require("../../PredefinedConfig/Common/Fdc3Context");
|
|
7
7
|
class Fdc3ApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
this.internalApi = new Fdc3InternalApi_1.Fdc3InternalApi(
|
|
8
|
+
constructor(_adaptable) {
|
|
9
|
+
super(_adaptable);
|
|
10
|
+
this.internalApi = new Fdc3InternalApi_1.Fdc3InternalApi(_adaptable);
|
|
11
11
|
}
|
|
12
12
|
getDesktopAgent() {
|
|
13
13
|
return this.getFdc3Service().getDesktopAgent();
|
|
@@ -72,7 +72,7 @@ class Fdc3ApiImpl extends ApiBase_1.ApiBase {
|
|
|
72
72
|
return this.internalApi.isStandardIntentType(intentType);
|
|
73
73
|
}
|
|
74
74
|
getFdc3Service() {
|
|
75
|
-
return this.
|
|
75
|
+
return this.getAdaptableInternalApi().getFdc3Service();
|
|
76
76
|
}
|
|
77
77
|
getPossibleContextTypes(intent) {
|
|
78
78
|
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;
|
|
@@ -6,9 +6,9 @@ const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
|
|
8
8
|
class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(
|
|
9
|
+
constructor(_adaptable) {
|
|
10
|
+
super(_adaptable);
|
|
11
|
+
this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(_adaptable);
|
|
12
12
|
}
|
|
13
13
|
getFlashingCellState() {
|
|
14
14
|
return this.getAdaptableState().FlashingCell;
|
|
@@ -36,7 +36,7 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
36
36
|
}
|
|
37
37
|
showFlashingCell(flashingCellToShow) {
|
|
38
38
|
this.addUidToAdaptableObject(flashingCellToShow);
|
|
39
|
-
const flashingCellFiredInfo = Object.assign(Object.assign({}, this.
|
|
39
|
+
const flashingCellFiredInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { flashingCell: flashingCellToShow });
|
|
40
40
|
const results = this.getAdaptableApi().eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
|
|
41
41
|
const shouldShow = results.reduce((endResult, aResult) => {
|
|
42
42
|
return endResult && aResult !== false;
|
|
@@ -98,13 +98,13 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
98
98
|
.filter((predicateDef) => this.getAdaptableApi().columnScopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
99
99
|
}
|
|
100
100
|
clearAllFlashingCells() {
|
|
101
|
-
this.
|
|
101
|
+
this.getAdaptableInternalApi().getFlashingCellService().clearAllGridCellFlashes();
|
|
102
102
|
}
|
|
103
103
|
isAnyFlashingCellActive() {
|
|
104
|
-
return this.
|
|
104
|
+
return this.getAdaptableInternalApi().getFlashingCellService().isAnyFlashingCellActive();
|
|
105
105
|
}
|
|
106
106
|
findFlashingCellDefinitions(criteria) {
|
|
107
|
-
return this.
|
|
107
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
|
|
108
108
|
includeLayoutNotAssociatedObjects: true,
|
|
109
109
|
}));
|
|
110
110
|
}
|
|
@@ -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;
|
|
@@ -7,9 +7,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
|
|
9
9
|
class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getFormatColumnState() {
|
|
15
15
|
return this.getAdaptableState().FormatColumn;
|
|
@@ -112,7 +112,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
112
112
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
113
113
|
}
|
|
114
114
|
findFormatColumns(criteria) {
|
|
115
|
-
return this.
|
|
115
|
+
return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFormatColumns({
|
|
116
116
|
includeLayoutNotAssociatedObjects: true,
|
|
117
117
|
}));
|
|
118
118
|
}
|
|
@@ -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;
|
|
@@ -8,9 +8,9 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
10
10
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
13
|
-
this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(
|
|
11
|
+
constructor(_adaptable) {
|
|
12
|
+
super(_adaptable);
|
|
13
|
+
this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(_adaptable);
|
|
14
14
|
}
|
|
15
15
|
getFreeTextColumnState() {
|
|
16
16
|
return this.getAdaptableState().FreeTextColumn;
|
|
@@ -93,7 +93,7 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
95
|
if (ArrayExtensions_1.default.IsNotNullOrEmpty(freeTextColumn.FreeTextStoredValues)) {
|
|
96
|
-
let pkValue = this.
|
|
96
|
+
let pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
|
|
97
97
|
let freeTextStoredValue = freeTextColumn.FreeTextStoredValues.find((fdx) => fdx.PrimaryKey == pkValue);
|
|
98
98
|
if (freeTextStoredValue) {
|
|
99
99
|
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;
|