@adaptabletools/adaptable 18.0.0-canary.3 → 18.0.0-canary.5
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 +4 -1
- package/base.css.map +1 -1
- package/index.css +79 -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 +11 -5
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
- package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.js +1 -5
- package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/BulkUpdateApi.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 +4 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
- 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/LayoutApiImpl.d.ts +4 -0
- package/src/Api/Implementation/LayoutApiImpl.js +14 -0
- package/src/Api/Implementation/NotesApiImpl.d.ts +2 -4
- package/src/Api/Implementation/NotesApiImpl.js +4 -8
- package/src/Api/Implementation/OptionsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/OptionsApiImpl.js +2 -2
- 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/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +8 -0
- package/src/Api/OptionsApi.d.ts +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/NotesState.d.ts +10 -20
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
- package/src/Redux/ActionsReducers/NotesRedux.js +8 -7
- 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 +2 -22
- 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/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +0 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -58
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +4 -0
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -1
- 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/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Comments/CommentsPopup.js +12 -8
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +3 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
- 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/TransposedPopup.d.ts +3 -0
- package/src/View/Layout/TransposedPopup.js +193 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Notes/NotesPopup.js +9 -11
- package/src/View/Theme/ThemeSelector.js +3 -3
- 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 +3780 -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} +70 -9
- 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/components/Select/Select.d.ts +2 -0
- package/src/components/Select/Select.js +2 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +39 -11
- package/src/metamodel/adaptable.metamodel.js +73 -32
- 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 +7 -3
- 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
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
|
@@ -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
|
}
|
|
@@ -12,4 +12,4 @@ export const PredicateDocsLink = `${HOST_URL_DOCS}/guide/adaptable-predicate`;
|
|
|
12
12
|
export const PrimaryKeyDocsLink = `${HOST_URL_DOCS}/guide/getting-started-primary-key`;
|
|
13
13
|
export const LicenseDocsLink = `${HOST_URL_DOCS}/guide/licensing`;
|
|
14
14
|
export const AdaptableOptionsDocsLink = `${HOST_URL_DOCS}/guide/reference-options-overview`;
|
|
15
|
-
export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/
|
|
15
|
+
export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/guide/dev-guide-aggrid-modules-overview`;
|
|
@@ -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';
|
|
@@ -14,13 +14,15 @@ export const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
|
|
|
14
14
|
'StatusBar',
|
|
15
15
|
'-',
|
|
16
16
|
'Layout',
|
|
17
|
-
'Export',
|
|
18
17
|
'CalculatedColumn',
|
|
19
18
|
'FreeTextColumn',
|
|
20
19
|
'CustomSort',
|
|
21
20
|
'Alert',
|
|
22
21
|
'SystemStatus',
|
|
23
22
|
'-',
|
|
23
|
+
'Export',
|
|
24
|
+
'DataImport',
|
|
25
|
+
'-',
|
|
24
26
|
'FormatColumn',
|
|
25
27
|
'StyledColumn',
|
|
26
28
|
'FlashingCell',
|
|
@@ -30,17 +32,16 @@ export const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
|
|
|
30
32
|
'GridFilter',
|
|
31
33
|
'ColumnFilter',
|
|
32
34
|
'DataSet',
|
|
35
|
+
'NamedQuery',
|
|
33
36
|
'-',
|
|
34
37
|
'PlusMinus',
|
|
35
38
|
'Shortcut',
|
|
36
39
|
'DataChangeHistory',
|
|
37
40
|
'-',
|
|
38
41
|
'Charting',
|
|
39
|
-
'DataImport',
|
|
40
42
|
'Schedule',
|
|
41
|
-
'NamedQuery',
|
|
42
|
-
'StateManagement',
|
|
43
43
|
'TeamSharing',
|
|
44
44
|
'Notes',
|
|
45
45
|
'Comments',
|
|
46
|
+
'StateManagement',
|
|
46
47
|
];
|
|
@@ -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,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function objectExists(item: any): boolean;
|
|
2
2
|
export declare function objectNotExists(item: any): boolean;
|
|
3
|
+
export declare function objectHasKeys(item: any): boolean;
|
|
3
4
|
export declare function getStringRepresentionFromKey(event: KeyboardEvent | any): string;
|
|
4
5
|
export declare function cloneObject<T extends any>(obj: T): T;
|
|
5
6
|
export declare const arrayToKeyMap: <T extends string | number | symbol>(arr?: T[]) => Record<T, boolean>;
|
|
@@ -20,6 +21,7 @@ export declare function clamp(value: any, boundOne: number, boundTwo: number): n
|
|
|
20
21
|
export declare const Helper: {
|
|
21
22
|
objectExists: typeof objectExists;
|
|
22
23
|
objectNotExists: typeof objectNotExists;
|
|
24
|
+
objectHasKeys: typeof objectHasKeys;
|
|
23
25
|
getStringRepresentionFromKey: typeof getStringRepresentionFromKey;
|
|
24
26
|
cloneObject: typeof cloneObject;
|
|
25
27
|
convertArrayToCsv: typeof convertArrayToCsv;
|
|
@@ -6,6 +6,9 @@ export function objectExists(item) {
|
|
|
6
6
|
export function objectNotExists(item) {
|
|
7
7
|
return !objectExists(item);
|
|
8
8
|
}
|
|
9
|
+
export function objectHasKeys(item) {
|
|
10
|
+
return Object.keys(item).length > 0;
|
|
11
|
+
}
|
|
9
12
|
export function getStringRepresentionFromKey(event) {
|
|
10
13
|
if (event.key == null) {
|
|
11
14
|
return event.char; // IE
|
|
@@ -227,6 +230,7 @@ export function clamp(value, boundOne, boundTwo) {
|
|
|
227
230
|
export const Helper = {
|
|
228
231
|
objectExists,
|
|
229
232
|
objectNotExists,
|
|
233
|
+
objectHasKeys,
|
|
230
234
|
getStringRepresentionFromKey,
|
|
231
235
|
cloneObject,
|
|
232
236
|
convertArrayToCsv,
|
|
@@ -38,7 +38,9 @@ export class AggregatedScalarLiveValue {
|
|
|
38
38
|
getAggregatedValueForRow(rowNode) {
|
|
39
39
|
const aggregationValue = this.getAggregationValue(rowNode);
|
|
40
40
|
if (aggregationValue == undefined) {
|
|
41
|
-
logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available!`,
|
|
41
|
+
logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available!`, (message) => {
|
|
42
|
+
this.adaptableApi.internalApi.getAdaptableInstance().logger.warn(message);
|
|
43
|
+
});
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
44
46
|
if (this.expressionEvaluation.rowValueGetter) {
|
|
@@ -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(() => {
|
|
@@ -51,7 +51,7 @@ class BulkUpdatePopupComponent extends React.Component {
|
|
|
51
51
|
this.props.PreviewInfo.previewValidationSummary.validationResult == 'All', onClick: () => {
|
|
52
52
|
this.onApplyClick();
|
|
53
53
|
}, variant: "raised", tone: "accent" }, "Apply to Grid")))) : (React.createElement(React.Fragment, null,
|
|
54
|
-
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, "Select an existing
|
|
54
|
+
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, "Select an existing Column value from the dropdown, or enter a new value"),
|
|
55
55
|
React.createElement(Flex, { marginTop: 2, flexDirection: "row", alignItems: "center" },
|
|
56
56
|
React.createElement(Flex, { alignItems: "center", flexDirection: "row", flex: 1, marginRight: 2 },
|
|
57
57
|
React.createElement(ColumnValueSelector, { selectedGridCells: this.props.SelectedGridCells, selectedColumnValue: this.props.BulkUpdateValue, selectedColumn: col, api: this.props.api, onColumnValueChange: (columns) => this.onColumnValueSelectedChanged(columns), style: { width: '100%', maxWidth: 'inherit' } })),
|
|
@@ -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
|
}
|
|
@@ -29,8 +29,8 @@ const CellComments = (props) => {
|
|
|
29
29
|
return formatDate(params.data.Timestamp, 'MM.DD.YYYY HH:mm');
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
|
|
33
|
-
header: '
|
|
32
|
+
text: {
|
|
33
|
+
header: 'Text',
|
|
34
34
|
field: 'Value',
|
|
35
35
|
defaultFlex: 3,
|
|
36
36
|
},
|
|
@@ -38,15 +38,19 @@ const CellComments = (props) => {
|
|
|
38
38
|
return columns;
|
|
39
39
|
}, []);
|
|
40
40
|
const cellValue = adaptable.api.gridApi.getCellDisplayValue(props.commentThread.PrimaryKeyValue, props.commentThread.ColumnId);
|
|
41
|
+
const primaryKeyHeader = React.useMemo(() => {
|
|
42
|
+
const primaryKey = adaptable.api.optionsApi.getPrimaryKey();
|
|
43
|
+
return adaptable.api.columnApi.getFriendlyNameForColumnId(primaryKey);
|
|
44
|
+
}, []);
|
|
41
45
|
const columnFriendlyName = adaptable.api.columnApi.getFriendlyNameForColumnId(props.commentThread.ColumnId);
|
|
42
46
|
return (React.createElement(Panel, { mb: 2, header: React.createElement(Flex, { width: "100%", alignItems: "center" },
|
|
43
47
|
React.createElement(Box, { mr: 2 },
|
|
44
48
|
"Cell Value: ",
|
|
45
49
|
cellValue),
|
|
46
50
|
React.createElement(Box, { mr: 2 },
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
primaryKeyHeader,
|
|
52
|
+
": ",
|
|
53
|
+
props.commentThread.PrimaryKeyValue),
|
|
50
54
|
React.createElement(Box, null,
|
|
51
55
|
"Column: ",
|
|
52
56
|
columnFriendlyName),
|
|
@@ -72,11 +76,11 @@ const CellComments = (props) => {
|
|
|
72
76
|
}, rowHeight: 30, columnHeaderHeight: 30, domProps: tableDOMProps, columns: columnsMap }))));
|
|
73
77
|
};
|
|
74
78
|
export const CommentsPopup = (props) => {
|
|
75
|
-
const
|
|
79
|
+
const commentThreads = useSelector((state) => {
|
|
76
80
|
return state.Comment.CommentThreads;
|
|
77
81
|
});
|
|
78
|
-
return (React.createElement(PopupPanel, { headerText: 'Comments', glyphicon: 'comments', infoLink: props.moduleInfo.HelpPage }, (
|
|
82
|
+
return (React.createElement(PopupPanel, { headerText: 'Comments', glyphicon: 'comments', infoLink: props.moduleInfo.HelpPage }, (commentThreads !== null && commentThreads !== void 0 ? commentThreads : []).map((commentThread, index) => {
|
|
79
83
|
var _a;
|
|
80
|
-
return React.createElement(CellComments, { key: (_a =
|
|
84
|
+
return React.createElement(CellComments, { key: (_a = commentThread === null || commentThread === void 0 ? void 0 : commentThread.Uuid) !== null && _a !== void 0 ? _a : index, commentThread: commentThread });
|
|
81
85
|
})));
|
|
82
86
|
};
|
|
@@ -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;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Dialog from '../../../components/Dialog';
|
|
3
3
|
import { Box } from 'rebass';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
export function AdaptableLoadingScreen(props) {
|
|
5
|
+
const { showLoadingScreen, loadingScreenDelay, loadingScreenTitle, loadingScreenText } = props;
|
|
6
|
+
const [delayElapsed, setDelayElapsed] = React.useState(typeof loadingScreenDelay === 'number' ? false : showLoadingScreen);
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (typeof loadingScreenDelay === 'number') {
|
|
9
|
+
const timeoutId = setTimeout(() => {
|
|
10
|
+
setDelayElapsed(true);
|
|
11
|
+
}, loadingScreenDelay);
|
|
12
|
+
return () => {
|
|
13
|
+
clearTimeout(timeoutId);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}, [loadingScreenDelay]);
|
|
17
|
+
return (React.createElement(Dialog, { modal: true, isOpen: delayElapsed ? showLoadingScreen : false, onDismiss: props.onClose, showCloseButton: false, className: "ab-LoadingScreen", style: {
|
|
18
|
+
minHeight: 'auto',
|
|
19
|
+
} },
|
|
20
|
+
React.createElement(Box, { padding: 3 },
|
|
21
|
+
React.createElement("h4", null, loadingScreenTitle !== null && loadingScreenTitle !== void 0 ? loadingScreenTitle : 'Initialising Grid'),
|
|
22
|
+
React.createElement("p", null, loadingScreenText !== null && loadingScreenText !== void 0 ? loadingScreenText : 'Retrieving your settings and setting up the grid...'))));
|
|
13
23
|
}
|
|
@@ -23,7 +23,7 @@ const ConnectedNoteEditor = ({ enableEditMode }) => {
|
|
|
23
23
|
api.notesApi.updateNoteText(value, note);
|
|
24
24
|
}, [note]);
|
|
25
25
|
return (React.createElement(Flex, { onClick: () => enableEditMode(), flexDirection: "column", className: "ab-NotesPopup" },
|
|
26
|
-
React.createElement(NoteEditor, { isReadonly: isReadonly, editMode: editMode, key: note === null || note === void 0 ? void 0 : note.Uuid, onClose: () => cellPopupService.hidePopup(), note: note === null || note === void 0 ? void 0 : note.
|
|
26
|
+
React.createElement(NoteEditor, { isReadonly: isReadonly, editMode: editMode, key: note === null || note === void 0 ? void 0 : note.Uuid, onClose: () => cellPopupService.hidePopup(), note: note === null || note === void 0 ? void 0 : note.Text, onNoteChange: (value) => handleNoteChange(value) })));
|
|
27
27
|
};
|
|
28
28
|
export const GridCellPopup = (props) => {
|
|
29
29
|
const { api } = useAdaptable();
|
|
@@ -4,4 +4,5 @@ export declare const WINDOW_GRID_FILTER_EDITOR = "WINDOW_GRID_FILTER_EDITOR";
|
|
|
4
4
|
export declare const SHOW_PIVOT_COLUMN_DETAILS = "SHOW_PIVOT_COLUMN_DETAILS";
|
|
5
5
|
export declare const SHOW_EXPORT_TABLE = "SHOW_EXPORT_TABLE";
|
|
6
6
|
export declare const SHOW_THEME_EDITOR = "SHOW_THEME_EDITOR";
|
|
7
|
+
export declare const WINDOW_SHOW_TRANSPOSED_VIEW = "WINDOW_SHOW_TRANSPOSED_VIEW";
|
|
7
8
|
export declare const windowFactory: Record<string, React.FunctionComponent<WindowPopupChildProps>>;
|