@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
|
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import * as NoteRedux from '../../Redux/ActionsReducers/NoteRedux';
|
|
3
3
|
import { NoteInternalApi } from '../Internal/NoteInternalApi';
|
|
4
4
|
export class NoteApiImpl extends ApiBase {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
7
|
-
this.internalApi = new NoteInternalApi(
|
|
5
|
+
constructor(_adaptable) {
|
|
6
|
+
super(_adaptable);
|
|
7
|
+
this.internalApi = new NoteInternalApi(_adaptable);
|
|
8
8
|
}
|
|
9
9
|
addNote(noteStr, primaryKeyValue, columnId) {
|
|
10
10
|
const note = {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
export class OptionsApiImpl extends ApiBase {
|
|
3
3
|
getAdaptableId() {
|
|
4
|
-
return this.
|
|
4
|
+
return this.getAdaptableOptions().adaptableId;
|
|
5
5
|
}
|
|
6
6
|
getAdaptableStateKey() {
|
|
7
|
-
return this.
|
|
7
|
+
return this.getAdaptableOptions().adaptableStateKey;
|
|
8
8
|
}
|
|
9
9
|
getAutogeneratePrimaryKey() {
|
|
10
|
-
return this.
|
|
10
|
+
return this.getAdaptableOptions().autogeneratePrimaryKey;
|
|
11
11
|
}
|
|
12
12
|
getLicenseKey() {
|
|
13
|
-
return this.
|
|
13
|
+
return this.getAdaptableOptions().licenseKey;
|
|
14
14
|
}
|
|
15
15
|
getPrimaryKey() {
|
|
16
|
-
return this.
|
|
16
|
+
return this.getAdaptableOptions().primaryKey;
|
|
17
17
|
}
|
|
18
18
|
getUserName() {
|
|
19
|
-
return this.
|
|
19
|
+
return this.getAdaptableOptions().userName;
|
|
20
20
|
}
|
|
21
21
|
getAdaptableOptions() {
|
|
22
22
|
return this.getOptions();
|
|
@@ -121,7 +121,7 @@ export class OptionsApiImpl extends ApiBase {
|
|
|
121
121
|
return this.getOptions().settingsPanelOptions;
|
|
122
122
|
}
|
|
123
123
|
getFdc3Options() {
|
|
124
|
-
return this.
|
|
124
|
+
return this.getOptions().fdc3Options;
|
|
125
125
|
}
|
|
126
126
|
getDataImportOptions() {
|
|
127
127
|
return this.getOptions().dataImportOptions;
|
|
@@ -15,7 +15,7 @@ export class PluginsApiImpl extends ApiBase {
|
|
|
15
15
|
}
|
|
16
16
|
getPluginApi(pluginId) {
|
|
17
17
|
try {
|
|
18
|
-
const api = this.
|
|
18
|
+
const api = this._adaptable.getPluginProperty(pluginId, 'api');
|
|
19
19
|
if (pluginId === 'ipushpull') {
|
|
20
20
|
return api;
|
|
21
21
|
}
|
|
@@ -20,7 +20,7 @@ export class PlusMinusApiImpl extends ApiBase {
|
|
|
20
20
|
return this.getAllPlusMinus().filter((plusMinusNudge) => plusMinusNudge.IsSuspended);
|
|
21
21
|
}
|
|
22
22
|
runPlusMinusNudge(plusMinusNudge, cellsToUpdate, direction) {
|
|
23
|
-
let plusMinusModule = (this.
|
|
23
|
+
let plusMinusModule = (this.getAdaptableInternalApi().getModules().get(ModuleConstants.PlusMinusModuleId));
|
|
24
24
|
plusMinusModule.applyPlusMinus([plusMinusNudge], cellsToUpdate, direction);
|
|
25
25
|
}
|
|
26
26
|
applyPlusMinus(cellUpdateRequests) {
|
|
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
5
5
|
import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
|
|
6
6
|
export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
|
|
7
7
|
internalApi: PredicateInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getPredicateDefs(): AdaptablePredicateDef<string>[];
|
|
10
10
|
getSystemPredicateDefs(): AdaptablePredicateDef<string>[];
|
|
11
11
|
getSystemPredicateDefsByModuleScope<PREDICATE_TYPE extends string = string>(moduleScope: PredicateModuleScope): AdaptablePredicateDef<PREDICATE_TYPE>[];
|
|
@@ -4,9 +4,9 @@ import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
|
4
4
|
import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
|
|
5
5
|
import { SystemPredicateDefs } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
6
6
|
export class PredicateApiImpl extends ApiBase {
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.internalApi = new PredicateInternalApi(
|
|
7
|
+
constructor(_adaptable) {
|
|
8
|
+
super(_adaptable);
|
|
9
|
+
this.internalApi = new PredicateInternalApi(_adaptable);
|
|
10
10
|
}
|
|
11
11
|
getPredicateDefs() {
|
|
12
12
|
return this.internalApi.mergeSystemAndCustomPredicates(this.getSystemPredicateDefs(), this.getCustomPredicateDefs());
|
|
@@ -109,6 +109,6 @@ export class PredicateApiImpl extends ApiBase {
|
|
|
109
109
|
return predicates === null || predicates === void 0 ? void 0 : predicates.every((p) => this.handlePredicate(p, params, defaultReturn));
|
|
110
110
|
}
|
|
111
111
|
useCaseSensitivity() {
|
|
112
|
-
return this.
|
|
112
|
+
return this.getPredicateOptions().caseSensitivePredicates;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -9,7 +9,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
9
9
|
import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
|
|
10
10
|
export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
|
|
11
11
|
internalApi: ScheduleInternalApi;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(_adaptable: IAdaptable);
|
|
13
13
|
getScheduleState(): ScheduleState;
|
|
14
14
|
getSchedules(): BaseSchedule[];
|
|
15
15
|
getReminderSchedules(config?: {
|
|
@@ -3,9 +3,9 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
3
3
|
import * as ScheduleRedux from '../../Redux/ActionsReducers/ScheduleRedux';
|
|
4
4
|
import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
|
|
5
5
|
export class ScheduleApiImpl extends ApiBase {
|
|
6
|
-
constructor(
|
|
7
|
-
super(
|
|
8
|
-
this.internalApi = new ScheduleInternalApi(
|
|
6
|
+
constructor(_adaptable) {
|
|
7
|
+
super(_adaptable);
|
|
8
|
+
this.internalApi = new ScheduleInternalApi(_adaptable);
|
|
9
9
|
}
|
|
10
10
|
getScheduleState() {
|
|
11
11
|
return this.getAdaptableState().Schedule;
|
|
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
3
3
|
export class SettingsPanelApiImpl extends ApiBase {
|
|
4
4
|
openSettingsPanel(moduleName) {
|
|
5
|
-
const moduleInfo = this.
|
|
5
|
+
const moduleInfo = this.getAdaptableInternalApi().getModuleService().getModuleInfoByModule(moduleName);
|
|
6
6
|
if (!moduleInfo) {
|
|
7
7
|
this.logError(`${moduleName} module does not exist`);
|
|
8
8
|
return;
|
|
@@ -5,7 +5,7 @@ export class StatusBarApiImpl extends ApiBase {
|
|
|
5
5
|
return getStatusPanelsSelector(this.getAdaptableState());
|
|
6
6
|
}
|
|
7
7
|
getAgGridStatusPanels() {
|
|
8
|
-
return this.
|
|
8
|
+
return this._adaptable.getAgGridStatusPanels();
|
|
9
9
|
}
|
|
10
10
|
setStatusBarPanels(statusPanels) {
|
|
11
11
|
this.dispatchAction(StatusBarSetPanels(statusPanels));
|
|
@@ -6,7 +6,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
6
6
|
import { StyledColumnInternalApi } from '../Internal/StyledColumnInternalApi';
|
|
7
7
|
export declare class StyledColumnApiImpl extends ApiBase implements StyledColumnApi {
|
|
8
8
|
internalApi: StyledColumnInternalApi;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(_adaptable: IAdaptable);
|
|
10
10
|
getStyledColumnState(): StyledColumnState;
|
|
11
11
|
getStyledColumns(config?: {
|
|
12
12
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
@@ -3,9 +3,9 @@ import * as StyledColumnRedux from '../../Redux/ActionsReducers/StyledColumnRedu
|
|
|
3
3
|
import { StyledColumnInternalApi } from '../Internal/StyledColumnInternalApi';
|
|
4
4
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
5
5
|
export class StyledColumnApiImpl extends ApiBase {
|
|
6
|
-
constructor(
|
|
7
|
-
super(
|
|
8
|
-
this.internalApi = new StyledColumnInternalApi(
|
|
6
|
+
constructor(_adaptable) {
|
|
7
|
+
super(_adaptable);
|
|
8
|
+
this.internalApi = new StyledColumnInternalApi(_adaptable);
|
|
9
9
|
}
|
|
10
10
|
getStyledColumnState() {
|
|
11
11
|
return this.getAdaptableState().StyledColumn;
|
|
@@ -55,7 +55,7 @@ export class StyledColumnApiImpl extends ApiBase {
|
|
|
55
55
|
return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.GradientStyle && styledColumn.ColumnId === columnId);
|
|
56
56
|
}
|
|
57
57
|
canDisplaySparklines() {
|
|
58
|
-
return this.
|
|
58
|
+
return this._adaptable.canDisplaySparklines();
|
|
59
59
|
}
|
|
60
60
|
suspendStyledColumn(styledColumn) {
|
|
61
61
|
this.dispatchAction(StyledColumnRedux.StyledColumnSuspend(styledColumn));
|
|
@@ -7,7 +7,7 @@ import { SystemStatusInternalApi } from '../Internal/SystemStatusInternalApi';
|
|
|
7
7
|
export declare class SystemStatusApiImpl extends ApiBase implements SystemStatusApi {
|
|
8
8
|
private systemStatusDiv;
|
|
9
9
|
internalApi: SystemStatusInternalApi;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(_adaptable: IAdaptable);
|
|
11
11
|
setSystemStatus(statusMessage: string, messageType: AdaptableMessageType, statusFurtherInformation?: string): void;
|
|
12
12
|
private displayMessageInDiv;
|
|
13
13
|
setErrorSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
|
|
@@ -8,9 +8,9 @@ import UIHelper from '../../View/UIHelper';
|
|
|
8
8
|
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
9
9
|
import { SystemStatusInternalApi } from '../Internal/SystemStatusInternalApi';
|
|
10
10
|
export class SystemStatusApiImpl extends ApiBase {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
13
|
-
this.internalApi = new SystemStatusInternalApi(
|
|
11
|
+
constructor(_adaptable) {
|
|
12
|
+
super(_adaptable);
|
|
13
|
+
this.internalApi = new SystemStatusInternalApi(_adaptable);
|
|
14
14
|
}
|
|
15
15
|
setSystemStatus(statusMessage, messageType, statusFurtherInformation) {
|
|
16
16
|
let systemStatusMessageInfo = ObjectFactory.CreateSystemStatusMessageInfo(statusMessage, messageType, statusFurtherInformation ? statusFurtherInformation : '');
|
|
@@ -56,7 +56,7 @@ export class SystemStatusApiImpl extends ApiBase {
|
|
|
56
56
|
statusMessage += statusFurtherInformation;
|
|
57
57
|
}
|
|
58
58
|
const foreColor = messageType ? UIHelper.getColorByMessageType(messageType) : 'black';
|
|
59
|
-
this.
|
|
59
|
+
this._adaptable.renderReactRoot(createElement('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
setErrorSystemStatus(statusMessage, statusFurtherInformation) {
|
|
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
5
5
|
import { TeamSharingInternalApi } from '../Internal/TeamSharingInternalApi';
|
|
6
6
|
export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingApi {
|
|
7
7
|
internalApi: TeamSharingInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
loadSharedEntities(): Promise<SharedEntity[]>;
|
|
10
10
|
persistSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
|
|
11
11
|
isTeamSharingAvailable(): boolean;
|
|
@@ -5,17 +5,17 @@ import { TeamSharingCheckForUpdates } from '../../Redux/ActionsReducers/TeamShar
|
|
|
5
5
|
import { TeamSharingInternalApi } from '../Internal/TeamSharingInternalApi';
|
|
6
6
|
import { isAdaptableSharedEntity, isCustomSharedEntity, } from '../../PredefinedConfig/TeamSharingState';
|
|
7
7
|
export class TeamSharingApiImpl extends ApiBase {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
this.internalApi = new TeamSharingInternalApi(
|
|
8
|
+
constructor(_adaptable) {
|
|
9
|
+
super(_adaptable);
|
|
10
|
+
this.internalApi = new TeamSharingInternalApi(_adaptable);
|
|
11
11
|
}
|
|
12
12
|
async loadSharedEntities() {
|
|
13
13
|
if (!this.isTeamSharingAvailable()) {
|
|
14
14
|
this.logWarn('Team Sharing is not Activated so Entities cannot be loaded');
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
|
-
const teamSharingOptions = this.
|
|
18
|
-
const sharedEntitiesContext = this.
|
|
17
|
+
const teamSharingOptions = this.getTeamSharingOptions();
|
|
18
|
+
const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
|
|
19
19
|
let loadedSharedEntities = await teamSharingOptions.loadSharedEntities(sharedEntitiesContext);
|
|
20
20
|
// with v15 we introduced 2 types of SharedEntity: AdaptableSharedEntity (basically the old one) and the new CustomSharedEntity
|
|
21
21
|
// for backwards compatibility, we add default the 'EntityType' property to 'adaptableEntity'
|
|
@@ -35,8 +35,8 @@ export class TeamSharingApiImpl extends ApiBase {
|
|
|
35
35
|
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
|
-
const teamSharingOptions = this.
|
|
39
|
-
const sharedEntitiesContext = this.
|
|
38
|
+
const teamSharingOptions = this.getTeamSharingOptions();
|
|
39
|
+
const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
|
|
40
40
|
const sharedEntitiesAfterCustomisation = teamSharingOptions.saveSharedEntities(sharedEntities, sharedEntitiesContext);
|
|
41
41
|
await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
|
|
42
42
|
return true;
|
|
@@ -44,9 +44,9 @@ export class TeamSharingApiImpl extends ApiBase {
|
|
|
44
44
|
isTeamSharingAvailable() {
|
|
45
45
|
var _a, _b, _c;
|
|
46
46
|
return (!this.getAdaptableApi().entitlementApi.isModuleHiddenEntitlement(ModuleConstants.TeamSharingModuleId) &&
|
|
47
|
-
((_a = this.
|
|
48
|
-
!!((_b = this.
|
|
49
|
-
!!((_c = this.
|
|
47
|
+
((_a = this.getTeamSharingOptions()) === null || _a === void 0 ? void 0 : _a.enableTeamSharing) &&
|
|
48
|
+
!!((_b = this.getTeamSharingOptions()) === null || _b === void 0 ? void 0 : _b.loadSharedEntities) &&
|
|
49
|
+
!!((_c = this.getTeamSharingOptions()) === null || _c === void 0 ? void 0 : _c.persistSharedEntities));
|
|
50
50
|
}
|
|
51
51
|
hasTeamSharingFullRights() {
|
|
52
52
|
return this.getAdaptableApi().entitlementApi.isModuleFullEntitlement(ModuleConstants.TeamSharingModuleId);
|
|
@@ -88,7 +88,7 @@ export class TeamSharingApiImpl extends ApiBase {
|
|
|
88
88
|
this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
-
customSharedEntityImportHandler(sharedEntity, this.
|
|
91
|
+
customSharedEntityImportHandler(sharedEntity, this.getAdaptableInternalApi().buildBaseContext());
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
getTeamSharingState() {
|
|
@@ -5,7 +5,7 @@ import { ThemeInternalApi } from '../Internal/ThemeInternalApi';
|
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
|
|
7
7
|
internalApi: ThemeInternalApi;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_adaptable: IAdaptable);
|
|
9
9
|
getThemeState(): ThemeState;
|
|
10
10
|
loadTheme(theme: string): void;
|
|
11
11
|
loadLightTheme(): void;
|
|
@@ -5,9 +5,9 @@ import { StaticThemes } from '../../themes';
|
|
|
5
5
|
import { ThemeInternalApi } from '../Internal/ThemeInternalApi';
|
|
6
6
|
import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
7
7
|
export class ThemeApiImpl extends ApiBase {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
this.internalApi = new ThemeInternalApi(
|
|
8
|
+
constructor(_adaptable) {
|
|
9
|
+
super(_adaptable);
|
|
10
|
+
this.internalApi = new ThemeInternalApi(_adaptable);
|
|
11
11
|
}
|
|
12
12
|
getThemeState() {
|
|
13
13
|
return this.getAdaptableState().Theme;
|
|
@@ -56,8 +56,8 @@ export class ThemeApiImpl extends ApiBase {
|
|
|
56
56
|
if (!currentTheme) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
this.
|
|
60
|
-
let themeChangedInfo = Object.assign(Object.assign({}, this.
|
|
59
|
+
this._adaptable.applyAdaptableTheme(currentTheme);
|
|
60
|
+
let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeSelected', theme: currentTheme });
|
|
61
61
|
this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
62
62
|
}
|
|
63
63
|
getUserThemes() {
|
|
@@ -74,15 +74,15 @@ export class ThemeApiImpl extends ApiBase {
|
|
|
74
74
|
this.showModulePopup(ModuleConstants.ThemeModuleId);
|
|
75
75
|
}
|
|
76
76
|
getAgGridCurrentThemeName() {
|
|
77
|
-
return this.
|
|
77
|
+
return this._adaptable.getAgGridCurrentThemeName();
|
|
78
78
|
}
|
|
79
79
|
editTheme(theme) {
|
|
80
80
|
this.dispatchAction(ThemeRedux.ThemeEdit(theme));
|
|
81
|
-
let themeChangedInfo = Object.assign(Object.assign({}, this.
|
|
81
|
+
let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeEdited', theme: theme });
|
|
82
82
|
this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
83
83
|
const currentTheme = this.getCurrentTheme();
|
|
84
84
|
if (currentTheme === theme.Name) {
|
|
85
|
-
this.
|
|
85
|
+
this._adaptable.applyAdaptableTheme(theme);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
addUserTheme(theme) {
|
|
@@ -10,13 +10,13 @@ export class ToolPanelApiImpl extends ApiBase {
|
|
|
10
10
|
this.showModulePopup(ModuleConstants.ToolPanelModuleId);
|
|
11
11
|
}
|
|
12
12
|
openAdapTableToolPanel() {
|
|
13
|
-
const agGridApi = this.
|
|
13
|
+
const agGridApi = this.getAgGridApi();
|
|
14
14
|
if (agGridApi) {
|
|
15
15
|
agGridApi.openToolPanel('adaptable');
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
closeAdapTableToolPanel() {
|
|
19
|
-
const agGridApi = this.
|
|
19
|
+
const agGridApi = this.getAgGridApi();
|
|
20
20
|
if (agGridApi) {
|
|
21
21
|
agGridApi.closeToolPanel();
|
|
22
22
|
}
|
|
@@ -10,7 +10,7 @@ import { ApiBase } from './ApiBase';
|
|
|
10
10
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
11
11
|
internalApi: UserInterfaceInternalApi;
|
|
12
12
|
private showProgressIndicatorTimeout;
|
|
13
|
-
constructor(
|
|
13
|
+
constructor(_adaptable: IAdaptable);
|
|
14
14
|
getColorPalette(): string[];
|
|
15
15
|
getStyleClassNames(): string[] | undefined;
|
|
16
16
|
getPermittedValuesItems(): PermittedValues[];
|
|
@@ -5,10 +5,10 @@ import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPop
|
|
|
5
5
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
6
6
|
import { ApiBase } from './ApiBase';
|
|
7
7
|
export class UserInterfaceApiImpl extends ApiBase {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
8
|
+
constructor(_adaptable) {
|
|
9
|
+
super(_adaptable);
|
|
10
10
|
this.showProgressIndicatorTimeout = null;
|
|
11
|
-
this.internalApi = new UserInterfaceInternalApi(
|
|
11
|
+
this.internalApi = new UserInterfaceInternalApi(_adaptable);
|
|
12
12
|
}
|
|
13
13
|
getColorPalette() {
|
|
14
14
|
let colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
@@ -75,7 +75,7 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
75
75
|
// first do the function then get hardcoded items
|
|
76
76
|
if (permittedValues != null && typeof permittedValues === 'function') {
|
|
77
77
|
if (column) {
|
|
78
|
-
const permittedValuesParams = Object.assign(Object.assign({}, this.
|
|
78
|
+
const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { column: column });
|
|
79
79
|
return permittedValues(permittedValuesParams);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -151,7 +151,7 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
151
151
|
getAdaptableObjectTags() {
|
|
152
152
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
153
153
|
if (objectTags != null && typeof objectTags === 'function') {
|
|
154
|
-
return objectTags(this.
|
|
154
|
+
return objectTags(this.getAdaptableInternalApi().buildBaseContext());
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
let arr = objectTags;
|
|
@@ -13,7 +13,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
13
13
|
return this.getActionRowOptions().actionRowFormOptions;
|
|
14
14
|
}
|
|
15
15
|
get adaptableInstance() {
|
|
16
|
-
return this.
|
|
16
|
+
return this.getAdaptableInternalApi().getAdaptableInstance();
|
|
17
17
|
}
|
|
18
18
|
buildActionRow(type, rowNode) {
|
|
19
19
|
const formFields = this.buildActionRowFields(type, rowNode);
|
|
@@ -42,7 +42,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
42
42
|
: this.actionRowFormOptions.formDescription;
|
|
43
43
|
}
|
|
44
44
|
buildFormParamContext(type, rowNode) {
|
|
45
|
-
return Object.assign(Object.assign({ rowNode }, this.
|
|
45
|
+
return Object.assign(Object.assign({ rowNode }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
|
|
46
46
|
}
|
|
47
47
|
buildActionRowFields(actionRowType, rowNode) {
|
|
48
48
|
const relevantColumns = this.getAdaptableApi()
|
|
@@ -58,7 +58,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
58
58
|
showColumnInActionRowForm(adaptableColumn, actionRowType) {
|
|
59
59
|
const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
|
|
60
60
|
if (typeof showColumnFn === 'function') {
|
|
61
|
-
return showColumnFn(Object.assign(Object.assign({}, this.
|
|
61
|
+
return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn,
|
|
62
62
|
actionRowType }));
|
|
63
63
|
}
|
|
64
64
|
return true;
|
|
@@ -87,7 +87,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
87
87
|
// textOutput should not be saved, their values are set to display values
|
|
88
88
|
// we need to filter out the textOutput fields and add the primaryKey
|
|
89
89
|
const eventInfo = type === 'rowCreated'
|
|
90
|
-
? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.
|
|
90
|
+
? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.getAdaptableInternalApi().buildBaseContext()), { clonedRowNode: rowNode }) : Object.assign({ type: 'rowEdited', formData: this.prepareEditData(formFields, context), rowNode: rowNode }, this.getAdaptableInternalApi().buildBaseContext());
|
|
91
91
|
this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
92
92
|
(_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
93
93
|
},
|
|
@@ -112,7 +112,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
112
112
|
delete dataToSave[formField.name];
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
const pkValue = this.
|
|
115
|
+
const pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(context.rowNode);
|
|
116
116
|
dataToSave[this.getOptions().primaryKey] = pkValue;
|
|
117
117
|
return dataToSave;
|
|
118
118
|
}
|
|
@@ -152,7 +152,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
152
152
|
}
|
|
153
153
|
buildFormFieldLabelContext(type, column, rowNode) {
|
|
154
154
|
return Object.assign(Object.assign({ rowNode,
|
|
155
|
-
column }, this.
|
|
155
|
+
column }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
|
|
156
156
|
}
|
|
157
157
|
getFieldTypeFromColumnType(column) {
|
|
158
158
|
switch (column.dataType) {
|
|
@@ -255,7 +255,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
255
255
|
tooltip: 'Delete',
|
|
256
256
|
onClick: (button, context) => {
|
|
257
257
|
var _a, _b;
|
|
258
|
-
const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.
|
|
258
|
+
const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableInternalApi().buildBaseContext());
|
|
259
259
|
this.getEventApi().emit('ActionRowSubmitted', eventInfo);
|
|
260
260
|
(_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
261
261
|
},
|
|
@@ -269,7 +269,7 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
269
269
|
// should NOT happen unless the user sent some invalid button type in the predefined config
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
const customButtonConfig = (_b = (_a = this.getActionRowOptions().actionRowButtonOptions).customConfiguration) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.
|
|
272
|
+
const customButtonConfig = (_b = (_a = this.getActionRowOptions().actionRowButtonOptions).customConfiguration) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { actionRowButtonType }));
|
|
273
273
|
if (!customButtonConfig) {
|
|
274
274
|
return defaultButtonConfig;
|
|
275
275
|
}
|
|
@@ -27,6 +27,7 @@ import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
|
|
|
27
27
|
import { CellPopupService } from '../../Utilities/Services/CellPopupService';
|
|
28
28
|
import { RowEditService } from '../../Utilities/Services/RowEditService';
|
|
29
29
|
import { FlashingCellService } from '../../Utilities/Services/FlashingCellService';
|
|
30
|
+
import { AgGridAdapter } from '../../agGrid/AgGridAdapter';
|
|
30
31
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
31
32
|
getSystemState(): SystemState;
|
|
32
33
|
getAdaptableJSXElement(): JSX.Element;
|
|
@@ -52,6 +53,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
52
53
|
getToolbarTitle(): string;
|
|
53
54
|
buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
|
|
54
55
|
getAdaptableInstance(): IAdaptable;
|
|
56
|
+
getAgGridAdapter(): AgGridAdapter;
|
|
55
57
|
getPredefinedConfig(): any;
|
|
56
58
|
getState(): AdaptableState;
|
|
57
59
|
getValidationService(): IValidationService;
|