@adaptabletools/adaptable-cjs 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.cjs.tsbuildinfo +1 -1
|
@@ -6,9 +6,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
|
|
7
7
|
const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
|
|
8
8
|
class NoteApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
this.internalApi = new NoteInternalApi_1.NoteInternalApi(
|
|
9
|
+
constructor(_adaptable) {
|
|
10
|
+
super(_adaptable);
|
|
11
|
+
this.internalApi = new NoteInternalApi_1.NoteInternalApi(_adaptable);
|
|
12
12
|
}
|
|
13
13
|
addNote(noteStr, primaryKeyValue, columnId) {
|
|
14
14
|
const note = {
|
|
@@ -4,22 +4,22 @@ exports.OptionsApiImpl = void 0;
|
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
6
6
|
getAdaptableId() {
|
|
7
|
-
return this.
|
|
7
|
+
return this.getAdaptableOptions().adaptableId;
|
|
8
8
|
}
|
|
9
9
|
getAdaptableStateKey() {
|
|
10
|
-
return this.
|
|
10
|
+
return this.getAdaptableOptions().adaptableStateKey;
|
|
11
11
|
}
|
|
12
12
|
getAutogeneratePrimaryKey() {
|
|
13
|
-
return this.
|
|
13
|
+
return this.getAdaptableOptions().autogeneratePrimaryKey;
|
|
14
14
|
}
|
|
15
15
|
getLicenseKey() {
|
|
16
|
-
return this.
|
|
16
|
+
return this.getAdaptableOptions().licenseKey;
|
|
17
17
|
}
|
|
18
18
|
getPrimaryKey() {
|
|
19
|
-
return this.
|
|
19
|
+
return this.getAdaptableOptions().primaryKey;
|
|
20
20
|
}
|
|
21
21
|
getUserName() {
|
|
22
|
-
return this.
|
|
22
|
+
return this.getAdaptableOptions().userName;
|
|
23
23
|
}
|
|
24
24
|
getAdaptableOptions() {
|
|
25
25
|
return this.getOptions();
|
|
@@ -124,7 +124,7 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
124
124
|
return this.getOptions().settingsPanelOptions;
|
|
125
125
|
}
|
|
126
126
|
getFdc3Options() {
|
|
127
|
-
return this.
|
|
127
|
+
return this.getOptions().fdc3Options;
|
|
128
128
|
}
|
|
129
129
|
getDataImportOptions() {
|
|
130
130
|
return this.getOptions().dataImportOptions;
|
|
@@ -19,7 +19,7 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
|
|
|
19
19
|
}
|
|
20
20
|
getPluginApi(pluginId) {
|
|
21
21
|
try {
|
|
22
|
-
const api = this.
|
|
22
|
+
const api = this._adaptable.getPluginProperty(pluginId, 'api');
|
|
23
23
|
if (pluginId === 'ipushpull') {
|
|
24
24
|
return api;
|
|
25
25
|
}
|
|
@@ -24,7 +24,7 @@ class PlusMinusApiImpl extends ApiBase_1.ApiBase {
|
|
|
24
24
|
return this.getAllPlusMinus().filter((plusMinusNudge) => plusMinusNudge.IsSuspended);
|
|
25
25
|
}
|
|
26
26
|
runPlusMinusNudge(plusMinusNudge, cellsToUpdate, direction) {
|
|
27
|
-
let plusMinusModule = (this.
|
|
27
|
+
let plusMinusModule = (this.getAdaptableInternalApi().getModules().get(ModuleConstants.PlusMinusModuleId));
|
|
28
28
|
plusMinusModule.applyPlusMinus([plusMinusNudge], cellsToUpdate, direction);
|
|
29
29
|
}
|
|
30
30
|
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>[];
|
|
@@ -8,9 +8,9 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exte
|
|
|
8
8
|
const PredicateInternalApi_1 = require("../Internal/PredicateInternalApi");
|
|
9
9
|
const AdaptablePredicate_1 = require("../../PredefinedConfig/Common/AdaptablePredicate");
|
|
10
10
|
class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
13
|
-
this.internalApi = new PredicateInternalApi_1.PredicateInternalApi(
|
|
11
|
+
constructor(_adaptable) {
|
|
12
|
+
super(_adaptable);
|
|
13
|
+
this.internalApi = new PredicateInternalApi_1.PredicateInternalApi(_adaptable);
|
|
14
14
|
}
|
|
15
15
|
getPredicateDefs() {
|
|
16
16
|
return this.internalApi.mergeSystemAndCustomPredicates(this.getSystemPredicateDefs(), this.getCustomPredicateDefs());
|
|
@@ -113,7 +113,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
113
113
|
return predicates === null || predicates === void 0 ? void 0 : predicates.every((p) => this.handlePredicate(p, params, defaultReturn));
|
|
114
114
|
}
|
|
115
115
|
useCaseSensitivity() {
|
|
116
|
-
return this.
|
|
116
|
+
return this.getPredicateOptions().caseSensitivePredicates;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
exports.PredicateApiImpl = PredicateApiImpl;
|
|
@@ -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?: {
|
|
@@ -7,9 +7,9 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
7
7
|
const ScheduleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ScheduleRedux"));
|
|
8
8
|
const ScheduleInternalApi_1 = require("../Internal/ScheduleInternalApi");
|
|
9
9
|
class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new ScheduleInternalApi_1.ScheduleInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new ScheduleInternalApi_1.ScheduleInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getScheduleState() {
|
|
15
15
|
return this.getAdaptableState().Schedule;
|
|
@@ -6,7 +6,7 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
7
|
class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
8
8
|
openSettingsPanel(moduleName) {
|
|
9
|
-
const moduleInfo = this.
|
|
9
|
+
const moduleInfo = this.getAdaptableInternalApi().getModuleService().getModuleInfoByModule(moduleName);
|
|
10
10
|
if (!moduleInfo) {
|
|
11
11
|
this.logError(`${moduleName} module does not exist`);
|
|
12
12
|
return;
|
|
@@ -8,7 +8,7 @@ class StatusBarApiImpl extends ApiBase_1.ApiBase {
|
|
|
8
8
|
return (0, StatusBarRedux_1.getStatusPanelsSelector)(this.getAdaptableState());
|
|
9
9
|
}
|
|
10
10
|
getAgGridStatusPanels() {
|
|
11
|
-
return this.
|
|
11
|
+
return this._adaptable.getAgGridStatusPanels();
|
|
12
12
|
}
|
|
13
13
|
setStatusBarPanels(statusPanels) {
|
|
14
14
|
this.dispatchAction((0, StatusBarRedux_1.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;
|
|
@@ -7,9 +7,9 @@ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
|
|
|
7
7
|
const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
9
|
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(
|
|
10
|
+
constructor(_adaptable) {
|
|
11
|
+
super(_adaptable);
|
|
12
|
+
this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(_adaptable);
|
|
13
13
|
}
|
|
14
14
|
getStyledColumnState() {
|
|
15
15
|
return this.getAdaptableState().StyledColumn;
|
|
@@ -59,7 +59,7 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
59
59
|
return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.GradientStyle && styledColumn.ColumnId === columnId);
|
|
60
60
|
}
|
|
61
61
|
canDisplaySparklines() {
|
|
62
|
-
return this.
|
|
62
|
+
return this._adaptable.canDisplaySparklines();
|
|
63
63
|
}
|
|
64
64
|
suspendStyledColumn(styledColumn) {
|
|
65
65
|
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;
|
|
@@ -12,9 +12,9 @@ const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
|
|
|
12
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
13
|
const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
|
|
14
14
|
class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
15
|
-
constructor(
|
|
16
|
-
super(
|
|
17
|
-
this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(
|
|
15
|
+
constructor(_adaptable) {
|
|
16
|
+
super(_adaptable);
|
|
17
|
+
this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(_adaptable);
|
|
18
18
|
}
|
|
19
19
|
setSystemStatus(statusMessage, messageType, statusFurtherInformation) {
|
|
20
20
|
let systemStatusMessageInfo = ObjectFactory_1.default.CreateSystemStatusMessageInfo(statusMessage, messageType, statusFurtherInformation ? statusFurtherInformation : '');
|
|
@@ -60,7 +60,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
60
60
|
statusMessage += statusFurtherInformation;
|
|
61
61
|
}
|
|
62
62
|
const foreColor = messageType ? UIHelper_1.default.getColorByMessageType(messageType) : 'black';
|
|
63
|
-
this.
|
|
63
|
+
this._adaptable.renderReactRoot((0, react_1.createElement)('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
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;
|
|
@@ -9,17 +9,17 @@ const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux
|
|
|
9
9
|
const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
|
|
10
10
|
const TeamSharingState_1 = require("../../PredefinedConfig/TeamSharingState");
|
|
11
11
|
class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
this.internalApi = new TeamSharingInternalApi_1.TeamSharingInternalApi(
|
|
12
|
+
constructor(_adaptable) {
|
|
13
|
+
super(_adaptable);
|
|
14
|
+
this.internalApi = new TeamSharingInternalApi_1.TeamSharingInternalApi(_adaptable);
|
|
15
15
|
}
|
|
16
16
|
async loadSharedEntities() {
|
|
17
17
|
if (!this.isTeamSharingAvailable()) {
|
|
18
18
|
this.logWarn('Team Sharing is not Activated so Entities cannot be loaded');
|
|
19
19
|
return [];
|
|
20
20
|
}
|
|
21
|
-
const teamSharingOptions = this.
|
|
22
|
-
const sharedEntitiesContext = this.
|
|
21
|
+
const teamSharingOptions = this.getTeamSharingOptions();
|
|
22
|
+
const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
|
|
23
23
|
let loadedSharedEntities = await teamSharingOptions.loadSharedEntities(sharedEntitiesContext);
|
|
24
24
|
// with v15 we introduced 2 types of SharedEntity: AdaptableSharedEntity (basically the old one) and the new CustomSharedEntity
|
|
25
25
|
// for backwards compatibility, we add default the 'EntityType' property to 'adaptableEntity'
|
|
@@ -39,8 +39,8 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
39
|
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
|
-
const teamSharingOptions = this.
|
|
43
|
-
const sharedEntitiesContext = this.
|
|
42
|
+
const teamSharingOptions = this.getTeamSharingOptions();
|
|
43
|
+
const sharedEntitiesContext = this.getAdaptableInternalApi().buildBaseContext();
|
|
44
44
|
const sharedEntitiesAfterCustomisation = teamSharingOptions.saveSharedEntities(sharedEntities, sharedEntitiesContext);
|
|
45
45
|
await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
|
|
46
46
|
return true;
|
|
@@ -48,9 +48,9 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
48
48
|
isTeamSharingAvailable() {
|
|
49
49
|
var _a, _b, _c;
|
|
50
50
|
return (!this.getAdaptableApi().entitlementApi.isModuleHiddenEntitlement(ModuleConstants.TeamSharingModuleId) &&
|
|
51
|
-
((_a = this.
|
|
52
|
-
!!((_b = this.
|
|
53
|
-
!!((_c = this.
|
|
51
|
+
((_a = this.getTeamSharingOptions()) === null || _a === void 0 ? void 0 : _a.enableTeamSharing) &&
|
|
52
|
+
!!((_b = this.getTeamSharingOptions()) === null || _b === void 0 ? void 0 : _b.loadSharedEntities) &&
|
|
53
|
+
!!((_c = this.getTeamSharingOptions()) === null || _c === void 0 ? void 0 : _c.persistSharedEntities));
|
|
54
54
|
}
|
|
55
55
|
hasTeamSharingFullRights() {
|
|
56
56
|
return this.getAdaptableApi().entitlementApi.isModuleFullEntitlement(ModuleConstants.TeamSharingModuleId);
|
|
@@ -92,7 +92,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
92
92
|
this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
customSharedEntityImportHandler(sharedEntity, this.
|
|
95
|
+
customSharedEntityImportHandler(sharedEntity, this.getAdaptableInternalApi().buildBaseContext());
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
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;
|
|
@@ -9,9 +9,9 @@ const themes_1 = require("../../themes");
|
|
|
9
9
|
const ThemeInternalApi_1 = require("../Internal/ThemeInternalApi");
|
|
10
10
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
11
11
|
class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
this.internalApi = new ThemeInternalApi_1.ThemeInternalApi(
|
|
12
|
+
constructor(_adaptable) {
|
|
13
|
+
super(_adaptable);
|
|
14
|
+
this.internalApi = new ThemeInternalApi_1.ThemeInternalApi(_adaptable);
|
|
15
15
|
}
|
|
16
16
|
getThemeState() {
|
|
17
17
|
return this.getAdaptableState().Theme;
|
|
@@ -60,8 +60,8 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
60
60
|
if (!currentTheme) {
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
this.
|
|
64
|
-
let themeChangedInfo = Object.assign(Object.assign({}, this.
|
|
63
|
+
this._adaptable.applyAdaptableTheme(currentTheme);
|
|
64
|
+
let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeSelected', theme: currentTheme });
|
|
65
65
|
this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
66
66
|
}
|
|
67
67
|
getUserThemes() {
|
|
@@ -78,15 +78,15 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
78
78
|
this.showModulePopup(ModuleConstants.ThemeModuleId);
|
|
79
79
|
}
|
|
80
80
|
getAgGridCurrentThemeName() {
|
|
81
|
-
return this.
|
|
81
|
+
return this._adaptable.getAgGridCurrentThemeName();
|
|
82
82
|
}
|
|
83
83
|
editTheme(theme) {
|
|
84
84
|
this.dispatchAction(ThemeRedux.ThemeEdit(theme));
|
|
85
|
-
let themeChangedInfo = Object.assign(Object.assign({}, this.
|
|
85
|
+
let themeChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { trigger: 'ThemeEdited', theme: theme });
|
|
86
86
|
this.getAdaptableApi().eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
87
87
|
const currentTheme = this.getCurrentTheme();
|
|
88
88
|
if (currentTheme === theme.Name) {
|
|
89
|
-
this.
|
|
89
|
+
this._adaptable.applyAdaptableTheme(theme);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
addUserTheme(theme) {
|
|
@@ -14,13 +14,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
14
14
|
this.showModulePopup(ModuleConstants.ToolPanelModuleId);
|
|
15
15
|
}
|
|
16
16
|
openAdapTableToolPanel() {
|
|
17
|
-
const agGridApi = this.
|
|
17
|
+
const agGridApi = this.getAgGridApi();
|
|
18
18
|
if (agGridApi) {
|
|
19
19
|
agGridApi.openToolPanel('adaptable');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
closeAdapTableToolPanel() {
|
|
23
|
-
const agGridApi = this.
|
|
23
|
+
const agGridApi = this.getAgGridApi();
|
|
24
24
|
if (agGridApi) {
|
|
25
25
|
agGridApi.closeToolPanel();
|
|
26
26
|
}
|
|
@@ -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[];
|
|
@@ -9,10 +9,10 @@ const WindowPopups_1 = require("../../View/Components/Popups/WindowPopups/Window
|
|
|
9
9
|
const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
|
|
10
10
|
const ApiBase_1 = require("./ApiBase");
|
|
11
11
|
class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
12
|
+
constructor(_adaptable) {
|
|
13
|
+
super(_adaptable);
|
|
14
14
|
this.showProgressIndicatorTimeout = null;
|
|
15
|
-
this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(
|
|
15
|
+
this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(_adaptable);
|
|
16
16
|
}
|
|
17
17
|
getColorPalette() {
|
|
18
18
|
let colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
@@ -79,7 +79,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
79
|
// first do the function then get hardcoded items
|
|
80
80
|
if (permittedValues != null && typeof permittedValues === 'function') {
|
|
81
81
|
if (column) {
|
|
82
|
-
const permittedValuesParams = Object.assign(Object.assign({}, this.
|
|
82
|
+
const permittedValuesParams = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { column: column });
|
|
83
83
|
return permittedValues(permittedValuesParams);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -155,7 +155,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
155
155
|
getAdaptableObjectTags() {
|
|
156
156
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
157
157
|
if (objectTags != null && typeof objectTags === 'function') {
|
|
158
|
-
return objectTags(this.
|
|
158
|
+
return objectTags(this.getAdaptableInternalApi().buildBaseContext());
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
161
|
let arr = objectTags;
|
|
@@ -17,7 +17,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
17
17
|
return this.getActionRowOptions().actionRowFormOptions;
|
|
18
18
|
}
|
|
19
19
|
get adaptableInstance() {
|
|
20
|
-
return this.
|
|
20
|
+
return this.getAdaptableInternalApi().getAdaptableInstance();
|
|
21
21
|
}
|
|
22
22
|
buildActionRow(type, rowNode) {
|
|
23
23
|
const formFields = this.buildActionRowFields(type, rowNode);
|
|
@@ -46,7 +46,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
46
46
|
: this.actionRowFormOptions.formDescription;
|
|
47
47
|
}
|
|
48
48
|
buildFormParamContext(type, rowNode) {
|
|
49
|
-
return Object.assign(Object.assign({ rowNode }, this.
|
|
49
|
+
return Object.assign(Object.assign({ rowNode }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
|
|
50
50
|
}
|
|
51
51
|
buildActionRowFields(actionRowType, rowNode) {
|
|
52
52
|
const relevantColumns = this.getAdaptableApi()
|
|
@@ -62,7 +62,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
62
62
|
showColumnInActionRowForm(adaptableColumn, actionRowType) {
|
|
63
63
|
const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
|
|
64
64
|
if (typeof showColumnFn === 'function') {
|
|
65
|
-
return showColumnFn(Object.assign(Object.assign({}, this.
|
|
65
|
+
return showColumnFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn,
|
|
66
66
|
actionRowType }));
|
|
67
67
|
}
|
|
68
68
|
return true;
|
|
@@ -91,7 +91,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
91
91
|
// textOutput should not be saved, their values are set to display values
|
|
92
92
|
// we need to filter out the textOutput fields and add the primaryKey
|
|
93
93
|
const eventInfo = type === 'rowCreated'
|
|
94
|
-
? Object.assign(Object.assign({ type: 'rowCreated', formData: this.prepareCreateData(formFields, context) }, this.
|
|
94
|
+
? 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());
|
|
95
95
|
this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
96
96
|
(_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
97
97
|
},
|
|
@@ -116,7 +116,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
116
116
|
delete dataToSave[formField.name];
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
const pkValue = this.
|
|
119
|
+
const pkValue = this._adaptable.getPrimaryKeyValueFromRowNode(context.rowNode);
|
|
120
120
|
dataToSave[this.getOptions().primaryKey] = pkValue;
|
|
121
121
|
return dataToSave;
|
|
122
122
|
}
|
|
@@ -156,7 +156,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
156
156
|
}
|
|
157
157
|
buildFormFieldLabelContext(type, column, rowNode) {
|
|
158
158
|
return Object.assign(Object.assign({ rowNode,
|
|
159
|
-
column }, this.
|
|
159
|
+
column }, this.getAdaptableInternalApi().buildBaseContext()), { type: type });
|
|
160
160
|
}
|
|
161
161
|
getFieldTypeFromColumnType(column) {
|
|
162
162
|
switch (column.dataType) {
|
|
@@ -259,7 +259,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
259
259
|
tooltip: 'Delete',
|
|
260
260
|
onClick: (button, context) => {
|
|
261
261
|
var _a, _b;
|
|
262
|
-
const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.
|
|
262
|
+
const eventInfo = Object.assign({ type: 'rowDeleted', rowNode: context.rowNode }, this.getAdaptableInternalApi().buildBaseContext());
|
|
263
263
|
this.getEventApi().emit('ActionRowSubmitted', eventInfo);
|
|
264
264
|
(_b = (_a = this.getActionRowOptions().actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
265
265
|
},
|
|
@@ -273,7 +273,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
273
273
|
// should NOT happen unless the user sent some invalid button type in the predefined config
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
|
-
const customButtonConfig = (_b = (_a = this.getActionRowOptions().actionRowButtonOptions).customConfiguration) === null || _b === void 0 ? void 0 : _b.call(_a, Object.assign(Object.assign({}, this.
|
|
276
|
+
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 }));
|
|
277
277
|
if (!customButtonConfig) {
|
|
278
278
|
return defaultButtonConfig;
|
|
279
279
|
}
|
|
@@ -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;
|