@adaptabletools/adaptable 18.0.0-canary.4 → 18.0.0-canary.6
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/agGrid.d.ts +4 -21
- package/agGrid.js +9 -26
- package/base.css +1 -1
- package/base.css.map +1 -1
- package/index.css +74 -68
- package/index.css.map +1 -1
- package/package.json +3 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +55 -109
- package/src/AdaptableOptions/AdaptableOptions.d.ts +6 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/ColumnFilterApi.d.ts +0 -5
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +14 -13
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -10
- package/src/Api/Implementation/CommentsApiImpl.js +2 -1
- package/src/Api/Implementation/ConfigApiImpl.js +8 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +20 -14
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
- package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
- package/src/Api/Internal/ActionRowInternalApi.js +106 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
- package/src/Api/Internal/AdaptableInternalApi.js +10 -8
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +70 -0
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
- package/src/Api/Internal/ColumnInternalApi.js +12 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
- package/src/Api/Internal/CustomSortInternalApi.js +32 -1
- package/src/Api/Internal/DataSetInternalApi.js +1 -1
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +59 -0
- package/src/Api/Internal/GridFilterInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.d.ts +21 -3
- package/src/Api/Internal/GridInternalApi.js +126 -7
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +4 -0
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +3 -0
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +22 -50
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +7 -1
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
- package/src/Strategy/AdaptableModuleBase.js +4 -7
- package/src/Strategy/AlertModule.d.ts +1 -2
- package/src/Strategy/AlertModule.js +2 -55
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
- package/src/Strategy/CalculatedColumnModule.js +5 -25
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +0 -21
- package/src/Strategy/ColumnFilterModule.d.ts +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -64
- package/src/Strategy/CommentsModule.d.ts +1 -0
- package/src/Strategy/CommentsModule.js +2 -1
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.js +1 -8
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +3 -1
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -2
- package/src/Strategy/FlashingCellModule.js +2 -15
- package/src/Strategy/FormatColumnModule.d.ts +0 -2
- package/src/Strategy/FormatColumnModule.js +0 -47
- package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
- package/src/Strategy/FreeTextColumnModule.js +0 -30
- package/src/Strategy/GridFilterModule.d.ts +0 -1
- package/src/Strategy/GridFilterModule.js +0 -37
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.d.ts +1 -3
- package/src/Strategy/LayoutModule.js +6 -50
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/ShortcutModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +0 -1
- package/src/Strategy/StyledColumnModule.js +0 -21
- package/src/Strategy/TeamSharingModule.d.ts +1 -0
- package/src/Strategy/TeamSharingModule.js +5 -5
- package/src/Strategy/ToolPanelModule.d.ts +0 -1
- package/src/Strategy/ToolPanelModule.js +0 -23
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +0 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -58
- package/src/Utilities/Services/CellPopupService.js +0 -1
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +10 -3
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/View/AdaptableView.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +4 -4
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +8 -5292
- package/src/agGrid/AdaptableAgGrid.d.ts +336 -0
- package/src/agGrid/AdaptableAgGrid.js +3810 -0
- package/src/agGrid/AdaptableLogger.js +77 -11
- package/src/agGrid/AgGridAdapter.d.ts +54 -0
- package/src/agGrid/AgGridAdapter.js +549 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +813 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +271 -0
- package/src/agGrid/AgGridOptionsService.d.ts +11 -0
- package/src/agGrid/AgGridOptionsService.js +50 -0
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.d.ts +2 -2
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
- package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
- package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +69 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +4 -3
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +9 -9
- package/src/metamodel/adaptable.metamodel.js +7 -0
- package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
- package/src/migration/AdaptableUpgradeHelper.js +48 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +11 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +342 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +6 -0
- package/src/types.d.ts +5 -4
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
- package/src/Utilities/Services/Interface/IRowEditService.js +0 -1
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -686
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -668
|
@@ -18,39 +18,8 @@ import { getGridFilterViewItems } from '../View/Layout/Wizard/getGridFilterPrevi
|
|
|
18
18
|
export class LayoutModule extends AdaptableModuleBase {
|
|
19
19
|
constructor(api) {
|
|
20
20
|
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
let needsUpdate = false;
|
|
24
|
-
const layoutToSave = Object.assign({}, layout);
|
|
25
|
-
if (!layoutSupportedFeatures.RowGroupedColumns && layout.RowGroupedColumns) {
|
|
26
|
-
delete layoutToSave.RowGroupedColumns;
|
|
27
|
-
needsUpdate = true;
|
|
28
|
-
}
|
|
29
|
-
if (!layoutSupportedFeatures.AggregationColumns && layout.AggregationColumns) {
|
|
30
|
-
delete layoutToSave.AggregationColumns;
|
|
31
|
-
needsUpdate = true;
|
|
32
|
-
}
|
|
33
|
-
if (!layoutSupportedFeatures.PivotColumns && layout.PivotColumns) {
|
|
34
|
-
delete layoutToSave.PivotColumns;
|
|
35
|
-
delete layoutToSave.EnablePivot;
|
|
36
|
-
needsUpdate = true;
|
|
37
|
-
}
|
|
38
|
-
if (!layoutSupportedFeatures.ColumnFilters && layout.ColumnFilters) {
|
|
39
|
-
delete layoutToSave.ColumnFilters;
|
|
40
|
-
needsUpdate = true;
|
|
41
|
-
}
|
|
42
|
-
if (!layoutSupportedFeatures.GridFilter && layout.GridFilter) {
|
|
43
|
-
delete layoutToSave.GridFilter;
|
|
44
|
-
needsUpdate = true;
|
|
45
|
-
}
|
|
46
|
-
if (!layoutSupportedFeatures.ColumnSorts && layout.ColumnSorts) {
|
|
47
|
-
delete layoutToSave.ColumnSorts;
|
|
48
|
-
needsUpdate = true;
|
|
49
|
-
}
|
|
50
|
-
if (needsUpdate) {
|
|
51
|
-
this.api.layoutApi.createOrUpdateLayout(layoutToSave);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
21
|
+
}
|
|
22
|
+
onAdaptableReady() {
|
|
54
23
|
this.api.eventApi.on('LayoutChanged', (layoutChangedInfo) => {
|
|
55
24
|
var _a;
|
|
56
25
|
if (layoutChangedInfo.newLayoutState.CurrentLayout !==
|
|
@@ -59,17 +28,9 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
59
28
|
this.handleLayoutChange();
|
|
60
29
|
}
|
|
61
30
|
});
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
* Viewport mode does not support a few
|
|
66
|
-
* features instead of complicating the
|
|
67
|
-
* logic where layout is applied, it is easier and
|
|
68
|
-
* less error prone to just remove it.
|
|
69
|
-
*/
|
|
70
|
-
if (this.api.gridApi.getAgGridRowModelType() === 'viewport') {
|
|
71
|
-
this.api.layoutApi.getLayouts().forEach(this.clearUnsuportedFeaturesFromLayout);
|
|
72
|
-
}
|
|
31
|
+
requestAnimationFrame(() => {
|
|
32
|
+
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
33
|
+
});
|
|
73
34
|
}
|
|
74
35
|
getModuleAdaptableObjects() {
|
|
75
36
|
return this.api.layoutApi.getLayouts();
|
|
@@ -137,11 +98,6 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
137
98
|
hasNamedQueryReferences() {
|
|
138
99
|
return true;
|
|
139
100
|
}
|
|
140
|
-
handleAdaptableReady() {
|
|
141
|
-
requestAnimationFrame(() => {
|
|
142
|
-
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
101
|
addColumnMenuItems(column) {
|
|
146
102
|
var _a, _b;
|
|
147
103
|
let returnColumnMenuItems = [];
|
|
@@ -435,7 +391,7 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
435
391
|
.setUpScheduleJobs();
|
|
436
392
|
// CustomSort, FlashingCell, FormatColumn
|
|
437
393
|
// we need to refresh the column defs, as some configs may have changed
|
|
438
|
-
this.api.internalApi.getAdaptableInstance().
|
|
394
|
+
this.api.internalApi.getAdaptableInstance().updateColumnModelAndRefreshGrid();
|
|
439
395
|
}
|
|
440
396
|
getReferencedNamedQueryNames(layout) {
|
|
441
397
|
var _a;
|
|
@@ -8,7 +8,6 @@ import { IModule } from './Interface/IModule';
|
|
|
8
8
|
export declare class NamedQueryModule extends AdaptableModuleBase implements IModule {
|
|
9
9
|
constructor(api: AdaptableApi);
|
|
10
10
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
11
|
-
updateOldConfig(): void;
|
|
12
11
|
getTeamSharingAction(): TeamSharingImportInfo<NamedQuery>;
|
|
13
12
|
getExplicitlyReferencedColumnIds(namedQuery: NamedQuery): string[];
|
|
14
13
|
getReferencedNamedQueryNames(namedQuery: NamedQuery): string[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as NamedQueryRedux from '../Redux/ActionsReducers/NamedQueryRedux';
|
|
2
2
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
3
|
-
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
4
3
|
import { EditGridFilterButton } from '../View/NamedQuery/EditCurrentQueryButton';
|
|
5
4
|
import { NamedQueryWizard } from '../View/NamedQuery/Wizard/NamedQueryWizard';
|
|
6
5
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
@@ -12,24 +11,6 @@ export class NamedQueryModule extends AdaptableModuleBase {
|
|
|
12
11
|
getModuleAdaptableObjects() {
|
|
13
12
|
return this.api.namedQueryApi.getNamedQueries();
|
|
14
13
|
}
|
|
15
|
-
updateOldConfig() {
|
|
16
|
-
// - move named queries from old Query State to this Module
|
|
17
|
-
// Note: GridFilter Module moves the "old" CurrentQuery into Layout
|
|
18
|
-
const oldQueryState = this.api.internalApi.getAdaptableState().Query;
|
|
19
|
-
const oldNamedQueries = oldQueryState.NamedQueries;
|
|
20
|
-
if (ArrayExtensions.IsNotNullOrEmpty(oldNamedQueries)) {
|
|
21
|
-
const currentNamedQueries = this.api.namedQueryApi.getNamedQueries();
|
|
22
|
-
oldNamedQueries.forEach((oldNamedQuery) => {
|
|
23
|
-
const currentQuery = currentNamedQueries.find((q) => q.Name === oldNamedQuery.Name);
|
|
24
|
-
if (!currentQuery) {
|
|
25
|
-
this.api.namedQueryApi.addNamedQuery(oldNamedQuery);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
if (oldQueryState) {
|
|
30
|
-
this.api.namedQueryApi.internalApi.cleanupQueryRedux();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
14
|
getTeamSharingAction() {
|
|
34
15
|
return {
|
|
35
16
|
ModuleEntities: this.api.namedQueryApi.getNamedQueries(),
|
|
@@ -17,7 +17,7 @@ export declare class PlusMinusModule extends AdaptableModuleBase implements IPlu
|
|
|
17
17
|
}): AdaptableObject[];
|
|
18
18
|
getExplicitlyReferencedColumnIds(plusMinusNudge: PlusMinusNudge): string[];
|
|
19
19
|
getReferencedNamedQueryNames(plusMinusNudge: PlusMinusNudge): string[];
|
|
20
|
-
|
|
20
|
+
onAdaptableReady(): void;
|
|
21
21
|
checkListenToKeyDown(): void;
|
|
22
22
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
23
23
|
private handleKeyDown;
|
|
@@ -33,7 +33,7 @@ export class PlusMinusModule extends AdaptableModuleBase {
|
|
|
33
33
|
}
|
|
34
34
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames((_b = plusMinusNudge.Rule) === null || _b === void 0 ? void 0 : _b.BooleanExpression);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
onAdaptableReady() {
|
|
37
37
|
let plusMinusNudges = this.api.plusMinusApi.getAllPlusMinus();
|
|
38
38
|
this.shouldHandleKeyDown = ArrayExtensions.IsNotNullOrEmpty(plusMinusNudges);
|
|
39
39
|
if (this.shouldHandleKeyDown) {
|
|
@@ -6,7 +6,7 @@ import { IScheduleModule } from './Interface/IScheduleModule';
|
|
|
6
6
|
export declare class ScheduleModule extends AdaptableModuleBase implements IScheduleModule {
|
|
7
7
|
private scheduleJobs;
|
|
8
8
|
constructor(api: AdaptableApi);
|
|
9
|
-
|
|
9
|
+
onAdaptableReady(): void;
|
|
10
10
|
setUpScheduleJobs(): void;
|
|
11
11
|
private addSchedule;
|
|
12
12
|
private addMidnightRefreshSchedule;
|
|
@@ -14,7 +14,7 @@ export declare class ShortcutModule extends AdaptableModuleBase implements IShor
|
|
|
14
14
|
}): AdaptableObject[];
|
|
15
15
|
hasNamedQueryReferences(): boolean;
|
|
16
16
|
getTeamSharingAction(): TeamSharingImportInfo<Shortcut>;
|
|
17
|
-
|
|
17
|
+
onAdaptableReady(): void;
|
|
18
18
|
checkListenToKeyDown(): void;
|
|
19
19
|
private handleKeyDown;
|
|
20
20
|
private calculateShortcut;
|
|
@@ -27,7 +27,7 @@ export class ShortcutModule extends AdaptableModuleBase {
|
|
|
27
27
|
EditAction: ShortcutRedux.ShortcutEdit,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
onAdaptableReady() {
|
|
31
31
|
this.checkListenToKeyDown();
|
|
32
32
|
this.adaptable._on('CellEditorKeyDown', (cellEditorKeyDownEvent) => {
|
|
33
33
|
this.handleKeyDown(cellEditorKeyDownEvent);
|
|
@@ -9,7 +9,6 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
|
9
9
|
import { StyledColumn } from '../PredefinedConfig/StyledColumnState';
|
|
10
10
|
export declare class StyledColumnModule extends AdaptableModuleBase implements IModule {
|
|
11
11
|
constructor(api: AdaptableApi);
|
|
12
|
-
updateOldConfig(): void;
|
|
13
12
|
getModuleAdaptableObjects(config?: {
|
|
14
13
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
15
14
|
}): AdaptableObject[];
|
|
@@ -11,27 +11,6 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
11
11
|
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', // to change
|
|
12
12
|
'Create a Special Column Style e.g Gradient or Percent Bar', api);
|
|
13
13
|
}
|
|
14
|
-
updateOldConfig() {
|
|
15
|
-
const formatColumnsWithColumnStyles = this.api.formatColumnApi
|
|
16
|
-
.getFormatColumns()
|
|
17
|
-
.filter((formatColumn) => formatColumn.ColumnStyle);
|
|
18
|
-
if (!formatColumnsWithColumnStyles.length) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
this.api.logInfo(`Converting ${formatColumnsWithColumnStyles.length} FormatColumns Styles to Styled Columns`, formatColumnsWithColumnStyles);
|
|
22
|
-
formatColumnsWithColumnStyles.forEach((formatColumn) => {
|
|
23
|
-
this.api.formatColumnApi.deleteFormatColumn(formatColumn);
|
|
24
|
-
});
|
|
25
|
-
const styledColumns = formatColumnsWithColumnStyles
|
|
26
|
-
.map((formatColumn) => {
|
|
27
|
-
if (!('ColumnIds' in formatColumn.Scope)) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return Object.assign(Object.assign(Object.assign({}, ObjectFactory.CreateEmptyStyledColumn()), { ColumnId: formatColumn.Scope.ColumnIds[0] }), formatColumn.ColumnStyle);
|
|
31
|
-
})
|
|
32
|
-
.filter(Boolean);
|
|
33
|
-
styledColumns.forEach((styledColumn) => this.api.styledColumnApi.addStyledColumn(styledColumn));
|
|
34
|
-
}
|
|
35
14
|
getModuleAdaptableObjects(config) {
|
|
36
15
|
return this.api.styledColumnApi.getStyledColumns(config);
|
|
37
16
|
}
|
|
@@ -5,6 +5,7 @@ import { AdaptableSharedEntity } from '../PredefinedConfig/TeamSharingState';
|
|
|
5
5
|
export declare class TeamSharingModule extends AdaptableModuleBase implements IModule {
|
|
6
6
|
private SKIP_TEAMSHARING_UPDATE_ACTIONS;
|
|
7
7
|
constructor(api: AdaptableApi);
|
|
8
|
+
onAdaptableReady(): void;
|
|
8
9
|
isModuleAvailable(): boolean;
|
|
9
10
|
isModuleObjectsShareable(): boolean;
|
|
10
11
|
getPopupMaxWidth(): number | undefined;
|
|
@@ -23,14 +23,14 @@ export class TeamSharingModule extends AdaptableModuleBase {
|
|
|
23
23
|
TEAMSHARING_LINK_ITEM,
|
|
24
24
|
TEAMSHARING_UPDATE_ITEM,
|
|
25
25
|
];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
26
|
+
}
|
|
27
|
+
onAdaptableReady() {
|
|
28
|
+
// make sure there is no zombie import process remaining (in case a previous import crashed)
|
|
29
|
+
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
31
30
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
32
31
|
this.api.teamSharingApi.refreshTeamSharing();
|
|
33
32
|
}
|
|
33
|
+
this.api.eventApi.on('AdaptableStateChanged', (adaptableStateChangedInfo) => this.handleStateChanged(adaptableStateChangedInfo));
|
|
34
34
|
}
|
|
35
35
|
isModuleAvailable() {
|
|
36
36
|
return super.isModuleAvailable() && this.api.teamSharingApi.isTeamSharingAvailable();
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
2
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
3
|
-
import { ALL_TOOL_PANELS } from '../PredefinedConfig/Common/Types';
|
|
4
|
-
import { ToolPanelSetToolPanels } from '../Redux/ActionsReducers/ToolPanelRedux';
|
|
5
3
|
export class ToolPanelModule extends AdaptableModuleBase {
|
|
6
4
|
constructor(api) {
|
|
7
5
|
super(ModuleConstants.ToolPanelModuleId, ModuleConstants.ToolPanelFriendlyName, 'clipboard', 'ToolPanelPopup', 'An alternative to using the Dashboard is the AdapTable Tool Panel, the Tool Panel is the collapsible area to the right of the Grid.', api);
|
|
@@ -12,25 +10,4 @@ export class ToolPanelModule extends AdaptableModuleBase {
|
|
|
12
10
|
}
|
|
13
11
|
return this.api.internalApi.getAdaptableInstance().hasAdaptableToolPanel;
|
|
14
12
|
}
|
|
15
|
-
updateOldConfig() {
|
|
16
|
-
const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
|
|
17
|
-
if (deprecatedToolPanelConfigs === null || deprecatedToolPanelConfigs === void 0 ? void 0 : deprecatedToolPanelConfigs.length) {
|
|
18
|
-
this.api.logWarn(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
|
|
19
|
-
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
20
|
-
Name: toolPanel,
|
|
21
|
-
State: 'collapsed',
|
|
22
|
-
}));
|
|
23
|
-
this.api.internalApi.dispatchReduxAction(ToolPanelSetToolPanels(migratedToolPanelConfigs));
|
|
24
|
-
}
|
|
25
|
-
else if (!this.api.toolPanelApi.getToolPanelState().ToolPanels) {
|
|
26
|
-
// no predefined config provided, we will display all the panels collapsed (custom & module)
|
|
27
|
-
this.api.logInfo(`No predefined ToolPanels provided, displaying all available ones (custom&system)`);
|
|
28
|
-
const defaultConfig = [];
|
|
29
|
-
this.api.toolPanelApi
|
|
30
|
-
.getCustomToolPanels()
|
|
31
|
-
.forEach((customToolPanel) => defaultConfig.push({ Name: customToolPanel.name }));
|
|
32
|
-
ALL_TOOL_PANELS.forEach((moduleToolPanel) => defaultConfig.push({ Name: moduleToolPanel }));
|
|
33
|
-
this.api.internalApi.dispatchReduxAction(ToolPanelSetToolPanels(defaultConfig));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
13
|
}
|
|
@@ -27,6 +27,7 @@ export declare const AB_SPECIAL_COLUMN: AdaptableColumnType;
|
|
|
27
27
|
export declare const AB_ROW_ACTIONS_COLUMN: AdaptableColumnType;
|
|
28
28
|
export declare const AB_FDC3_COLUMN: AdaptableColumnType;
|
|
29
29
|
export declare const HALF_SECOND: number;
|
|
30
|
+
export declare const GROUP_PATH_SEPARATOR: string;
|
|
30
31
|
export declare const AG_GRID_GROUPED_COLUMN: string;
|
|
31
32
|
export declare const AG_GRID_PIVOT_COLUMN: string;
|
|
32
33
|
export declare const AG_GRID_CHART_WINDOW = "AG Grid Window";
|
|
@@ -26,6 +26,7 @@ export const AB_SPECIAL_COLUMN = 'abSpecialColumn';
|
|
|
26
26
|
export const AB_ROW_ACTIONS_COLUMN = 'abRowActionsColumn';
|
|
27
27
|
export const AB_FDC3_COLUMN = 'abFdc3Column';
|
|
28
28
|
export const HALF_SECOND = 500;
|
|
29
|
+
export const GROUP_PATH_SEPARATOR = '/';
|
|
29
30
|
export const AG_GRID_GROUPED_COLUMN = 'ag-Grid-AutoColumn';
|
|
30
31
|
export const AG_GRID_PIVOT_COLUMN = 'pivot_';
|
|
31
32
|
export const AG_GRID_CHART_WINDOW = 'AG Grid Window';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
2
2
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
3
|
-
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
4
3
|
import { AdaptableComparerFunction } from '../../PredefinedConfig/Common/AdaptableComparerFunction';
|
|
5
4
|
import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
|
|
6
5
|
import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
|
|
7
|
-
export declare function assignAdaptableOptions(adaptableOptions: AdaptableOptions): AdaptableOptions;
|
|
8
6
|
export declare function initPredefinedConfigWithUuids(predefinedConfig: PredefinedConfig): PredefinedConfig;
|
|
9
7
|
export declare function checkValidPrimaryKey(adaptable: IAdaptable): boolean;
|
|
10
8
|
export declare function AdaptableObjectExistsInState(array: AdaptableObject[], itemToCheck: AdaptableObject): boolean;
|
|
@@ -12,7 +10,6 @@ export declare function getAppropriateAccessLevel(adaptableObject: AdaptableObje
|
|
|
12
10
|
export declare function runAdaptableComparerFunction(columnId: string, columnValues: any[], adaptable: IAdaptable): AdaptableComparerFunction;
|
|
13
11
|
export declare function addUuidAndSource(adaptableObject: AdaptableObject): AdaptableObject;
|
|
14
12
|
export declare const AdaptableHelper: {
|
|
15
|
-
assignAdaptableOptions: typeof assignAdaptableOptions;
|
|
16
13
|
initPredefinedConfigWithUuids: typeof initPredefinedConfigWithUuids;
|
|
17
14
|
checkValidPrimaryKey: typeof checkValidPrimaryKey;
|
|
18
15
|
AdaptableObjectExistsInState: typeof AdaptableObjectExistsInState;
|
|
@@ -1,63 +1,6 @@
|
|
|
1
1
|
import cloneDeepWith from 'lodash/cloneDeepWith';
|
|
2
2
|
import isPlainObject from 'lodash/isPlainObject';
|
|
3
3
|
import { createUuid } from '../../PredefinedConfig/Uuid';
|
|
4
|
-
import { DefaultAdaptableOptions } from '../Defaults/DefaultAdaptableOptions';
|
|
5
|
-
export function assignAdaptableOptions(adaptableOptions) {
|
|
6
|
-
var _a;
|
|
7
|
-
const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions, adaptableOptions);
|
|
8
|
-
returnedAdaptableOptions.adaptableStateKey =
|
|
9
|
-
(_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
|
|
10
|
-
returnedAdaptableOptions.dataImportOptions = Object.assign({}, DefaultAdaptableOptions.dataImportOptions, adaptableOptions.dataImportOptions);
|
|
11
|
-
returnedAdaptableOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions.expressionOptions, adaptableOptions.expressionOptions);
|
|
12
|
-
returnedAdaptableOptions.calendarOptions = Object.assign({}, DefaultAdaptableOptions.calendarOptions, adaptableOptions.calendarOptions);
|
|
13
|
-
returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
|
|
14
|
-
returnedAdaptableOptions.customSortOptions = Object.assign({}, DefaultAdaptableOptions.customSortOptions, adaptableOptions.customSortOptions);
|
|
15
|
-
returnedAdaptableOptions.dataSetOptions = Object.assign({}, DefaultAdaptableOptions.dataSetOptions, adaptableOptions.dataSetOptions);
|
|
16
|
-
returnedAdaptableOptions.cellSummaryOptions = Object.assign({}, DefaultAdaptableOptions.cellSummaryOptions, adaptableOptions.cellSummaryOptions);
|
|
17
|
-
returnedAdaptableOptions.predicateOptions = Object.assign({}, DefaultAdaptableOptions.predicateOptions, returnedAdaptableOptions.predicateOptions);
|
|
18
|
-
returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
|
|
19
|
-
returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
|
|
20
|
-
returnedAdaptableOptions.alertOptions = Object.assign({}, DefaultAdaptableOptions.alertOptions, adaptableOptions.alertOptions);
|
|
21
|
-
returnedAdaptableOptions.flashingCellOptions = Object.assign({}, DefaultAdaptableOptions.flashingCellOptions, adaptableOptions.flashingCellOptions);
|
|
22
|
-
returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
23
|
-
returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
|
|
24
|
-
returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
|
|
25
|
-
returnedAdaptableOptions.actionColumnOptions = Object.assign({}, DefaultAdaptableOptions.actionColumnOptions, adaptableOptions.actionColumnOptions);
|
|
26
|
-
// to do
|
|
27
|
-
returnedAdaptableOptions.actionRowOptions = Object.assign({}, DefaultAdaptableOptions.actionRowOptions, adaptableOptions.actionRowOptions);
|
|
28
|
-
returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions = Object.assign({}, DefaultAdaptableOptions.actionRowOptions.actionRowButtonOptions, returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions);
|
|
29
|
-
returnedAdaptableOptions.actionRowOptions.actionRowFormOptions = Object.assign({}, DefaultAdaptableOptions.actionRowOptions.actionRowFormOptions, returnedAdaptableOptions.actionRowOptions.actionRowFormOptions);
|
|
30
|
-
returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
|
|
31
|
-
returnedAdaptableOptions.groupingOptions = Object.assign({}, DefaultAdaptableOptions.groupingOptions, adaptableOptions.groupingOptions);
|
|
32
|
-
returnedAdaptableOptions.quickSearchOptions = Object.assign({}, DefaultAdaptableOptions.quickSearchOptions, adaptableOptions.quickSearchOptions);
|
|
33
|
-
returnedAdaptableOptions.columnFilterOptions = Object.assign({}, DefaultAdaptableOptions.columnFilterOptions, adaptableOptions.columnFilterOptions);
|
|
34
|
-
returnedAdaptableOptions.columnFilterOptions.quickFilterOptions = Object.assign({}, DefaultAdaptableOptions.columnFilterOptions.quickFilterOptions, returnedAdaptableOptions.columnFilterOptions.quickFilterOptions);
|
|
35
|
-
returnedAdaptableOptions.columnFilterOptions.filterFormOptions = Object.assign({}, DefaultAdaptableOptions.columnFilterOptions.filterFormOptions, returnedAdaptableOptions.columnFilterOptions.filterFormOptions);
|
|
36
|
-
returnedAdaptableOptions.columnFilterOptions.valuesFilterOptions = Object.assign({}, DefaultAdaptableOptions.columnFilterOptions.valuesFilterOptions, returnedAdaptableOptions.columnFilterOptions.valuesFilterOptions);
|
|
37
|
-
returnedAdaptableOptions.gridFilterOptions = Object.assign({}, DefaultAdaptableOptions.gridFilterOptions, adaptableOptions.gridFilterOptions);
|
|
38
|
-
returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
|
|
39
|
-
returnedAdaptableOptions.userInterfaceOptions.dateInputOptions = Object.assign({}, DefaultAdaptableOptions.userInterfaceOptions.dateInputOptions, returnedAdaptableOptions.userInterfaceOptions.dateInputOptions);
|
|
40
|
-
returnedAdaptableOptions.menuOptions = Object.assign({}, DefaultAdaptableOptions.menuOptions, adaptableOptions.menuOptions);
|
|
41
|
-
returnedAdaptableOptions.stateOptions = Object.assign({}, DefaultAdaptableOptions.stateOptions, adaptableOptions.stateOptions);
|
|
42
|
-
returnedAdaptableOptions.exportOptions = Object.assign({}, DefaultAdaptableOptions.exportOptions, adaptableOptions.exportOptions);
|
|
43
|
-
returnedAdaptableOptions.teamSharingOptions = Object.assign({}, DefaultAdaptableOptions.teamSharingOptions, adaptableOptions.teamSharingOptions);
|
|
44
|
-
returnedAdaptableOptions.toolPanelOptions = Object.assign({}, DefaultAdaptableOptions.toolPanelOptions, adaptableOptions.toolPanelOptions);
|
|
45
|
-
returnedAdaptableOptions.dataChangeHistoryOptions = Object.assign({}, DefaultAdaptableOptions.dataChangeHistoryOptions, adaptableOptions.dataChangeHistoryOptions);
|
|
46
|
-
returnedAdaptableOptions.chartingOptions = Object.assign({}, DefaultAdaptableOptions.chartingOptions, adaptableOptions.chartingOptions);
|
|
47
|
-
returnedAdaptableOptions.chartingOptions.externalChartingOptions = Object.assign({}, DefaultAdaptableOptions.chartingOptions.externalChartingOptions, returnedAdaptableOptions.chartingOptions.externalChartingOptions);
|
|
48
|
-
returnedAdaptableOptions.settingsPanelOptions = Object.assign({}, DefaultAdaptableOptions.settingsPanelOptions, adaptableOptions.settingsPanelOptions);
|
|
49
|
-
returnedAdaptableOptions.fdc3Options = Object.assign({}, DefaultAdaptableOptions.fdc3Options, adaptableOptions.fdc3Options);
|
|
50
|
-
returnedAdaptableOptions.fdc3Options.actionColumnDefaultConfiguration = Object.assign({}, DefaultAdaptableOptions.fdc3Options.actionColumnDefaultConfiguration, returnedAdaptableOptions.fdc3Options.actionColumnDefaultConfiguration);
|
|
51
|
-
returnedAdaptableOptions.fdc3Options.uiControlsDefaultConfiguration = Object.assign({}, DefaultAdaptableOptions.fdc3Options.uiControlsDefaultConfiguration, returnedAdaptableOptions.fdc3Options.uiControlsDefaultConfiguration);
|
|
52
|
-
const { predefinedConfig } = returnedAdaptableOptions;
|
|
53
|
-
if (predefinedConfig) {
|
|
54
|
-
returnedAdaptableOptions.predefinedConfig =
|
|
55
|
-
typeof predefinedConfig === 'string'
|
|
56
|
-
? predefinedConfig
|
|
57
|
-
: initPredefinedConfigWithUuids(predefinedConfig);
|
|
58
|
-
}
|
|
59
|
-
return returnedAdaptableOptions;
|
|
60
|
-
}
|
|
61
4
|
export function initPredefinedConfigWithUuids(predefinedConfig) {
|
|
62
5
|
const customizer = (value) => {
|
|
63
6
|
// so whenever we clone a plain object,
|
|
@@ -144,7 +87,6 @@ export function addUuidAndSource(adaptableObject) {
|
|
|
144
87
|
return adaptableObject;
|
|
145
88
|
}
|
|
146
89
|
export const AdaptableHelper = {
|
|
147
|
-
assignAdaptableOptions,
|
|
148
90
|
initPredefinedConfigWithUuids,
|
|
149
91
|
checkValidPrimaryKey,
|
|
150
92
|
AdaptableObjectExistsInState,
|
|
@@ -6,7 +6,6 @@ export class CellPopupService {
|
|
|
6
6
|
constructor(api) {
|
|
7
7
|
this.api = api;
|
|
8
8
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
9
|
-
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
10
9
|
this.adaptable.api.eventApi.on('AdaptableReady', () => this.handleAdaptableReady());
|
|
11
10
|
}
|
|
12
11
|
getAdaptableState() {
|
|
@@ -13,9 +13,12 @@ export declare enum LicenseValidityType {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class LicenseService implements ILicenseService {
|
|
15
15
|
private adaptable;
|
|
16
|
+
private licenseKey;
|
|
17
|
+
private packageDetails;
|
|
16
18
|
constructor(adaptable: IAdaptable, licenseKey: string | undefined, packageDetails: {
|
|
17
19
|
publishedAt: number | Date;
|
|
18
20
|
});
|
|
21
|
+
init(): void;
|
|
19
22
|
getValidityType(details: LicenseDetails | Error | null, packageDetails: {
|
|
20
23
|
publishedAt: number | Date;
|
|
21
24
|
}): LicenseValidityType;
|
|
@@ -38,18 +38,25 @@ const isDemoApp = () => {
|
|
|
38
38
|
export class LicenseService {
|
|
39
39
|
constructor(adaptable, licenseKey, packageDetails) {
|
|
40
40
|
this.adaptable = adaptable;
|
|
41
|
+
this.licenseKey = licenseKey;
|
|
42
|
+
this.packageDetails = packageDetails;
|
|
41
43
|
this.adaptable = adaptable;
|
|
44
|
+
this.adaptable.api.eventApi.on('AdaptableReady', () => {
|
|
45
|
+
this.init();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
init() {
|
|
42
49
|
let details = null;
|
|
43
|
-
if (licenseKey) {
|
|
50
|
+
if (this.licenseKey) {
|
|
44
51
|
try {
|
|
45
|
-
details = decodeLicense(licenseKey);
|
|
52
|
+
details = decodeLicense(this.licenseKey);
|
|
46
53
|
}
|
|
47
54
|
catch (error) {
|
|
48
55
|
details = error;
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
if (!isInsideSandpack() && !isInsideSandbox() && !isDemoApp()) {
|
|
52
|
-
this.handleLicenseValidation(details, this.getValidityType(details, packageDetails));
|
|
59
|
+
this.handleLicenseValidation(details, this.getValidityType(details, this.packageDetails));
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
getValidityType(details, packageDetails) {
|
|
@@ -3,7 +3,7 @@ import { AdaptableOptions } from '../../../types';
|
|
|
3
3
|
export declare class MetamodelService implements IMetamodelService {
|
|
4
4
|
private gridInfoOptions;
|
|
5
5
|
getAdaptableOptions: () => AdaptableOptions;
|
|
6
|
-
constructor(getAdaptableOptions: () => AdaptableOptions);
|
|
6
|
+
constructor(getAdaptableOptions: () => AdaptableOptions, validateOptions?: boolean);
|
|
7
7
|
getGridInfoOptions(): GridInfoOptions;
|
|
8
8
|
getGridInfoNoCodeOptions(): GridInfoOptions;
|
|
9
9
|
validateAdaptableOptionsValues(): void;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ADAPTABLE_METAMODEL } from '../../metamodel/adaptable.metamodel';
|
|
2
|
-
import { DefaultAdaptableOptions } from '../Defaults/DefaultAdaptableOptions';
|
|
3
2
|
import { AdaptableOptionsDocsLink } from '../Constants/DocumentationLinkConstants';
|
|
4
3
|
import StringExtensions from '../Extensions/StringExtensions';
|
|
5
4
|
import { AdaptableLogger } from '../../agGrid/AdaptableLogger';
|
|
5
|
+
import { getDefaultAdaptableOptions } from '../../agGrid/defaultAdaptableOptions';
|
|
6
6
|
const supportedMetamodelTypes = ['s', 'n', 'b', 'a', 'f', 'R'];
|
|
7
7
|
export class MetamodelService {
|
|
8
|
-
constructor(getAdaptableOptions) {
|
|
8
|
+
constructor(getAdaptableOptions, validateOptions) {
|
|
9
9
|
this.gridInfoOptions = new Map();
|
|
10
10
|
this.getAdaptableOptions = () => null;
|
|
11
11
|
this.getAdaptableOptions = getAdaptableOptions;
|
|
12
12
|
this.gridInfoOptions = this.buildGridInfoOptions();
|
|
13
|
+
if (validateOptions) {
|
|
14
|
+
this.validateAdaptableOptionsValues();
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
getGridInfoOptions() {
|
|
15
18
|
return this.gridInfoOptions;
|
|
@@ -140,7 +143,7 @@ export class MetamodelService {
|
|
|
140
143
|
});
|
|
141
144
|
}
|
|
142
145
|
getAdaptableOptionsDefaultValues() {
|
|
143
|
-
return
|
|
146
|
+
return getDefaultAdaptableOptions();
|
|
144
147
|
}
|
|
145
148
|
getAdaptableMetamodel() {
|
|
146
149
|
return ADAPTABLE_METAMODEL;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IRowEditService } from './Interface/IRowEditService';
|
|
2
1
|
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
3
|
-
|
|
2
|
+
import { IAdaptableService } from './Interface/IAdaptableService';
|
|
3
|
+
export declare class RowEditService implements IAdaptableService {
|
|
4
4
|
private adaptableApi;
|
|
5
5
|
constructor(adaptableApi: AdaptableApi);
|
|
6
6
|
private autoHandleActionRowButtons;
|
|
7
|
+
destroy(): void;
|
|
7
8
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
1
|
export class RowEditService {
|
|
3
2
|
constructor(adaptableApi) {
|
|
4
3
|
this.adaptableApi = adaptableApi;
|
|
@@ -37,4 +36,7 @@ export class RowEditService {
|
|
|
37
36
|
adaptableApi.gridApi.addGridData([newRowData], config);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
39
|
+
destroy() {
|
|
40
|
+
// nothing yet
|
|
41
|
+
}
|
|
40
42
|
}
|
|
@@ -3,7 +3,6 @@ import { connect } from 'react-redux';
|
|
|
3
3
|
import { ProgressIndicator } from '../components/ProgressIndicator/ProgressIndicator';
|
|
4
4
|
import { ToastContainer } from '../components/Toastify';
|
|
5
5
|
import * as PopupRedux from '../Redux/ActionsReducers/PopupRedux';
|
|
6
|
-
import { AdaptableLoadingScreen } from './Components/Popups/AdaptableLoadingScreen';
|
|
7
6
|
import { AdaptablePopup } from './Components/Popups/AdaptablePopup';
|
|
8
7
|
import { AdaptablePopupConfirmation } from './Components/Popups/AdaptablePopupConfirmation';
|
|
9
8
|
import { AdaptablePopupPrompt } from './Components/Popups/AdaptablePopupPrompt';
|
|
@@ -23,7 +22,6 @@ class AdaptableView extends React.Component {
|
|
|
23
22
|
React.createElement(GridCellPopup, null),
|
|
24
23
|
React.createElement(QuickSearchDrawer, null),
|
|
25
24
|
this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable('Dashboard') && (React.createElement(Dashboard, { api: this.props.AdaptableApi })),
|
|
26
|
-
this.props.AdaptableApi.optionsApi.getUserInterfaceOptions().showLoadingScreen && (React.createElement(AdaptableLoadingScreen, { onClose: this.props.onCloseLoadingPopup, showLoadingScreen: this.props.PopupState.LoadingPopup.ShowLoadingPopup })),
|
|
27
25
|
this.props.PopupState.PromptPopup.ShowPromptPopup && (React.createElement(AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, onConfirmActionCreator: this.props.PopupState.PromptPopup.ConfirmActionCreator, defaultValue: this.props.PopupState.PromptPopup.DefaultValue })),
|
|
28
26
|
Boolean(this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup) && (React.createElement(AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi })),
|
|
29
27
|
Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup) && (React.createElement(AdaptablePopup, { componentName: this.props.PopupState.ScreenPopup.ComponentName, componentModule: this.props.PopupState.ScreenPopup.ComponentModule, onHide: this.props.onCloseScreenPopup, api: this.props.AdaptableApi, onClearParams: () => this.props.onClearPopupParams(), moduleParams: this.props.PopupState.ScreenPopup.Params, moduleProps: this.props.PopupState.ScreenPopup.PopupProps })),
|
|
@@ -7,7 +7,7 @@ import GridOptionsForm from './GridOptionsForm';
|
|
|
7
7
|
import EntitlementsForm from './EntitlementsForm';
|
|
8
8
|
import { UIElementsForm } from './UIOptions/UiOptionsForm';
|
|
9
9
|
import { AdaptableOptionsForm } from './AdaptableOptionsForm';
|
|
10
|
-
import
|
|
10
|
+
import { applyDefaultAdaptableOptions } from '../../../agGrid/defaultAdaptableOptions';
|
|
11
11
|
export const ConfigurationWizard = (props) => {
|
|
12
12
|
const [isPrimaryKeySelected, setIsValid] = React.useState(true);
|
|
13
13
|
const [adaptableConfig, setAdaptableConfig] = useState(() => {
|
|
@@ -17,7 +17,7 @@ export const ConfigurationWizard = (props) => {
|
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
const gridOptions = Object.assign(Object.assign({}, gridOptionDefaults), props.adaptableConfig.gridOptions);
|
|
20
|
-
const adaptableOptions =
|
|
20
|
+
const adaptableOptions = applyDefaultAdaptableOptions(props.adaptableConfig.adaptableOptions);
|
|
21
21
|
return { gridOptions, adaptableOptions };
|
|
22
22
|
});
|
|
23
23
|
const [selectedColumns, setSelectedColumns] = useState(() => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AdaptableApi, CalculatedColumn } from '../../types';
|
|
2
|
-
export declare const getExpressionType: (calculatedColumn: CalculatedColumn, api: AdaptableApi) => "
|
|
2
|
+
export declare const getExpressionType: (calculatedColumn: CalculatedColumn, api: AdaptableApi) => "AggregatedScalarExpression" | "ScalarExpression" | "CumulativeAggregatedExpression" | "QuantileAggregatedExpression";
|
|
@@ -11,7 +11,7 @@ class CellSummaryPopupComponent extends React.Component {
|
|
|
11
11
|
// afterwards, we will go on with the cell summary logic, as that will evaluate the current(column) cell selection
|
|
12
12
|
this.props.api.columnApi.selectColumn((_c = this.props.popupParams) === null || _c === void 0 ? void 0 : _c.column.columnId);
|
|
13
13
|
// we also need to update the internal state of the selected cells
|
|
14
|
-
this.props.api.internalApi.getAdaptableInstance().
|
|
14
|
+
this.props.api.internalApi.getAdaptableInstance().refreshSelectedCellsState();
|
|
15
15
|
}
|
|
16
16
|
this.props.onCreateCellSummary();
|
|
17
17
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export interface IAdaptableLoadingScreenProps
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IAdaptableLoadingScreenProps {
|
|
3
3
|
showLoadingScreen: boolean;
|
|
4
|
+
loadingScreenDelay?: number;
|
|
5
|
+
loadingScreenTitle?: string;
|
|
6
|
+
loadingScreenText?: string;
|
|
4
7
|
onClose?: () => {};
|
|
5
8
|
}
|
|
6
|
-
export declare
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
}
|
|
9
|
+
export declare function AdaptableLoadingScreen(props: IAdaptableLoadingScreenProps): JSX.Element;
|