@adaptabletools/adaptable-cjs 18.0.0-canary.1 → 18.0.0-canary.11
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 +5 -21
- package/base.css +11 -3
- package/base.css.map +1 -1
- package/index.css +88 -70
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +61 -108
- package/src/AdaptableOptions/AdaptableOptions.d.ts +12 -6
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -2
- package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.js +2 -6
- 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/ConfigApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +18 -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.d.ts +4 -0
- package/src/Api/Implementation/CommentsApiImpl.js +7 -1
- package/src/Api/Implementation/ConfigApiImpl.js +13 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -3
- package/src/Api/Implementation/GridApiImpl.js +33 -14
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +15 -0
- package/src/Api/Implementation/NotesApiImpl.d.ts +6 -4
- package/src/Api/Implementation/NotesApiImpl.js +9 -8
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +12 -2
- package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ScopeApiImpl.js +20 -7
- 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 +107 -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 +71 -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/CommentsInternalApi.d.ts +4 -0
- package/src/Api/Internal/CommentsInternalApi.js +18 -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/FormatColumnInternalApi.js +3 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +60 -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/NotesInternalApi.d.ts +4 -0
- package/src/Api/Internal/NotesInternalApi.js +18 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +11 -0
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/Api/ScopeApi.d.ts +10 -0
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +8 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -0
- package/src/PredefinedConfig/Common/RowSummary.js +4 -0
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/NotesState.d.ts +10 -20
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +7 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +22 -1
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
- package/src/Redux/ActionsReducers/NotesRedux.js +10 -8
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -3
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +33 -50
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
- 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/CellSummaryModule.d.ts +1 -0
- package/src/Strategy/CellSummaryModule.js +50 -21
- 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 +5 -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 +8 -3
- package/src/Strategy/LayoutModule.js +108 -53
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/NotesModule.js +3 -4
- 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 +3 -2
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +294 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +6 -1
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +20 -60
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +6 -1
- package/src/Utilities/ObjectFactory.js +6 -6
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +3 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +14 -9
- package/src/Utilities/Services/CellPopupService.js +0 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -186
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -1
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/Utilities/Services/SummaryService.d.ts +19 -0
- package/src/Utilities/Services/SummaryService.js +33 -0
- package/src/Utilities/license/decode.js +1 -70
- package/src/Utilities/license/hashing.js +1 -47
- package/src/View/AdaptableView.js +1 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- 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/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/NewScopeComponent.js +34 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- 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 +4 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +7 -3
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/TransposedPopup.d.ts +3 -0
- package/src/View/Layout/TransposedPopup.js +199 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/License/LicenseWatermark.js +1 -66
- package/src/View/Notes/NotesPopup.js +8 -10
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/Theme/ThemeSelector.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +7 -6
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +7 -5291
- package/src/agGrid/AdaptableAgGrid.d.ts +351 -0
- package/src/agGrid/AdaptableAgGrid.js +3941 -0
- package/src/agGrid/AdaptableLogger.js +78 -13
- package/src/agGrid/AgGridAdapter.d.ts +62 -0
- package/src/agGrid/AgGridAdapter.js +582 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +829 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +276 -0
- package/src/agGrid/AgGridOptionsService.d.ts +12 -0
- package/src/agGrid/AgGridOptionsService.js +58 -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} +73 -10
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +6 -4
- package/src/components/Select/Select.d.ts +2 -0
- package/src/components/Select/Select.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/rows.d.ts +3 -0
- package/src/components/icons/rows.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +74 -11
- package/src/metamodel/adaptable.metamodel.js +1 -9316
- package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
- package/src/migration/AdaptableUpgradeHelper.js +52 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +15 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +347 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +10 -0
- package/src/parser/src/types.d.ts +5 -0
- package/src/types.d.ts +7 -3
- package/tsconfig.cjs.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 -2
- package/src/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -138
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -691
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -673
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
|
@@ -19,42 +19,15 @@ const windowFactory_1 = require("../View/Components/Popups/WindowPopups/windowFa
|
|
|
19
19
|
const flattenDeep_1 = tslib_1.__importDefault(require("lodash/flattenDeep"));
|
|
20
20
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
21
21
|
const getGridFilterPreview_1 = require("../View/Layout/Wizard/getGridFilterPreview");
|
|
22
|
+
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
23
|
+
const RowSummary_1 = require("../PredefinedConfig/Common/RowSummary");
|
|
24
|
+
const Helper_1 = tslib_1.__importDefault(require("../Utilities/Helpers/Helper"));
|
|
22
25
|
class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
23
26
|
constructor(api) {
|
|
24
27
|
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
25
|
-
this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const layoutToSave = Object.assign({}, layout);
|
|
29
|
-
if (!layoutSupportedFeatures.RowGroupedColumns && layout.RowGroupedColumns) {
|
|
30
|
-
delete layoutToSave.RowGroupedColumns;
|
|
31
|
-
needsUpdate = true;
|
|
32
|
-
}
|
|
33
|
-
if (!layoutSupportedFeatures.AggregationColumns && layout.AggregationColumns) {
|
|
34
|
-
delete layoutToSave.AggregationColumns;
|
|
35
|
-
needsUpdate = true;
|
|
36
|
-
}
|
|
37
|
-
if (!layoutSupportedFeatures.PivotColumns && layout.PivotColumns) {
|
|
38
|
-
delete layoutToSave.PivotColumns;
|
|
39
|
-
delete layoutToSave.EnablePivot;
|
|
40
|
-
needsUpdate = true;
|
|
41
|
-
}
|
|
42
|
-
if (!layoutSupportedFeatures.ColumnFilters && layout.ColumnFilters) {
|
|
43
|
-
delete layoutToSave.ColumnFilters;
|
|
44
|
-
needsUpdate = true;
|
|
45
|
-
}
|
|
46
|
-
if (!layoutSupportedFeatures.GridFilter && layout.GridFilter) {
|
|
47
|
-
delete layoutToSave.GridFilter;
|
|
48
|
-
needsUpdate = true;
|
|
49
|
-
}
|
|
50
|
-
if (!layoutSupportedFeatures.ColumnSorts && layout.ColumnSorts) {
|
|
51
|
-
delete layoutToSave.ColumnSorts;
|
|
52
|
-
needsUpdate = true;
|
|
53
|
-
}
|
|
54
|
-
if (needsUpdate) {
|
|
55
|
-
this.api.layoutApi.createOrUpdateLayout(layoutToSave);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
28
|
+
this.cachedCellSummary = new Map();
|
|
29
|
+
}
|
|
30
|
+
onAdaptableReady() {
|
|
58
31
|
this.api.eventApi.on('LayoutChanged', (layoutChangedInfo) => {
|
|
59
32
|
var _a;
|
|
60
33
|
if (layoutChangedInfo.newLayoutState.CurrentLayout !==
|
|
@@ -63,17 +36,29 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
63
36
|
this.handleLayoutChange();
|
|
64
37
|
}
|
|
65
38
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
39
|
+
requestAnimationFrame(() => {
|
|
40
|
+
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
41
|
+
});
|
|
42
|
+
this.evaluateRowSummary();
|
|
43
|
+
this.api.eventApi.on('AdaptableStateReloaded', () => {
|
|
44
|
+
this.evaluateRowSummary();
|
|
45
|
+
});
|
|
46
|
+
this.api.eventApi.on('GridDataChanged', (event) => {
|
|
47
|
+
this.evaluateRowSummary();
|
|
48
|
+
});
|
|
49
|
+
this.api.eventApi.on('CellChanged', (event) => {
|
|
50
|
+
const columnId = event.cellChange.column.columnId;
|
|
51
|
+
this.evaluateRowSummary({
|
|
52
|
+
columnId,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
this.api.eventApi.on('LayoutChanged', (event) => {
|
|
56
|
+
this.evaluateRowSummary();
|
|
57
|
+
});
|
|
58
|
+
const adaptable = this.api.internalApi.getAdaptableInstance();
|
|
59
|
+
adaptable._on('FirstDataRendered', () => {
|
|
60
|
+
this.evaluateRowSummary();
|
|
61
|
+
});
|
|
77
62
|
}
|
|
78
63
|
getModuleAdaptableObjects() {
|
|
79
64
|
return this.api.layoutApi.getLayouts();
|
|
@@ -141,11 +126,6 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
141
126
|
hasNamedQueryReferences() {
|
|
142
127
|
return true;
|
|
143
128
|
}
|
|
144
|
-
handleAdaptableReady() {
|
|
145
|
-
requestAnimationFrame(() => {
|
|
146
|
-
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
129
|
addColumnMenuItems(column) {
|
|
150
130
|
var _a, _b;
|
|
151
131
|
let returnColumnMenuItems = [];
|
|
@@ -243,7 +223,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
243
223
|
}
|
|
244
224
|
createViewPivotItemsMenuItem(menuContext) {
|
|
245
225
|
// current group => menuContext.rowNode.field;
|
|
246
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
247
227
|
const selectedCellInfo = (_a = menuContext.selectedCellInfo) !== null && _a !== void 0 ? _a : this.api.gridApi.getSelectedCellInfo();
|
|
248
228
|
if (((_b = selectedCellInfo === null || selectedCellInfo === void 0 ? void 0 : selectedCellInfo.gridCells) === null || _b === void 0 ? void 0 : _b.length) !== 1) {
|
|
249
229
|
return;
|
|
@@ -284,7 +264,9 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
284
264
|
}
|
|
285
265
|
const data = (0, flattenDeep_1.default)(getData(menuContext.rowNode.childrenAfterFilter));
|
|
286
266
|
const rowGroups = currentLayout.RowGroupedColumns;
|
|
287
|
-
const cellValue = isPivotColumn
|
|
267
|
+
const cellValue = isPivotColumn
|
|
268
|
+
? (_o = (_m = menuContext.rowNode) === null || _m === void 0 ? void 0 : _m.aggData) === null || _o === void 0 ? void 0 : _o[columnId]
|
|
269
|
+
: gridCell.displayValue;
|
|
288
270
|
const popupProps = {
|
|
289
271
|
hasPivotValue: isPivotColumn,
|
|
290
272
|
columnId,
|
|
@@ -325,7 +307,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
325
307
|
return this.getModuleAdaptableObjects().map((layout) => this.toView(layout));
|
|
326
308
|
}
|
|
327
309
|
toView(layout) {
|
|
328
|
-
var _a, _b, _c, _d, _e, _f;
|
|
310
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
329
311
|
const maxColumnsToDisplay = (_b = (_a = this.api.optionsApi.getLayoutOptions().layoutViewOptions) === null || _a === void 0 ? void 0 : _a.maxColumnsToDisplay) !== null && _b !== void 0 ? _b : 10;
|
|
330
312
|
const columnIdToFriendlyName = (columnId) => {
|
|
331
313
|
return this.api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
@@ -394,6 +376,22 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
394
376
|
(layout === null || layout === void 0 ? void 0 : layout.GridFilter) &&
|
|
395
377
|
StringExtensions_1.default.IsNotNullOrEmpty(layout.GridFilter.Expression) &&
|
|
396
378
|
(0, getGridFilterPreview_1.getGridFilterViewItems)(layout),
|
|
379
|
+
((_g = layout === null || layout === void 0 ? void 0 : layout.RowSummaries) === null || _g === void 0 ? void 0 : _g.length) && {
|
|
380
|
+
name: 'Row Summaries',
|
|
381
|
+
values: layout === null || layout === void 0 ? void 0 : layout.RowSummaries.map((rowSummary) => {
|
|
382
|
+
var _a;
|
|
383
|
+
const columns = Object.entries((_a = rowSummary.ColumnsMap) !== null && _a !== void 0 ? _a : {})
|
|
384
|
+
.map(([columnId, expression]) => {
|
|
385
|
+
if (columnId === 'Source' || columnId === 'Uuid') {
|
|
386
|
+
return '';
|
|
387
|
+
}
|
|
388
|
+
return `${expression}(${columnIdToFriendlyName(columnId)})`;
|
|
389
|
+
})
|
|
390
|
+
.filter(Boolean)
|
|
391
|
+
.join(', ');
|
|
392
|
+
return `${rowSummary.Position}: ${columns}`;
|
|
393
|
+
}),
|
|
394
|
+
},
|
|
397
395
|
].filter(Boolean),
|
|
398
396
|
abObject: layout,
|
|
399
397
|
};
|
|
@@ -439,7 +437,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
439
437
|
.setUpScheduleJobs();
|
|
440
438
|
// CustomSort, FlashingCell, FormatColumn
|
|
441
439
|
// we need to refresh the column defs, as some configs may have changed
|
|
442
|
-
this.api.internalApi.getAdaptableInstance().
|
|
440
|
+
this.api.internalApi.getAdaptableInstance().updateColumnModelAndRefreshGrid();
|
|
443
441
|
}
|
|
444
442
|
getReferencedNamedQueryNames(layout) {
|
|
445
443
|
var _a;
|
|
@@ -448,5 +446,62 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
448
446
|
}
|
|
449
447
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(layout.GridFilter.Expression);
|
|
450
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @param colId optional to evaluate only one column
|
|
452
|
+
*/
|
|
453
|
+
evaluateRowSummary(reason) {
|
|
454
|
+
var _a;
|
|
455
|
+
const rowSummaries = (_a = this.api.layoutApi.getCurrentLayout().RowSummaries) !== null && _a !== void 0 ? _a : [];
|
|
456
|
+
const rowSummariesResults = rowSummaries.map(({ ColumnsMap, Position }) => {
|
|
457
|
+
return {
|
|
458
|
+
Position,
|
|
459
|
+
RowData: Object.entries(ColumnsMap !== null && ColumnsMap !== void 0 ? ColumnsMap : {}).reduce((acc, [columnId, expression]) => {
|
|
460
|
+
const key = `${columnId}-${expression}`;
|
|
461
|
+
let expressionLiveValue = this.cachedCellSummary.get(key);
|
|
462
|
+
if (expressionLiveValue) {
|
|
463
|
+
if (!reason) {
|
|
464
|
+
// refresh all of them
|
|
465
|
+
expressionLiveValue.refresh();
|
|
466
|
+
}
|
|
467
|
+
else if ('columnId' in reason && reason.columnId === columnId) {
|
|
468
|
+
expressionLiveValue.refresh();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (!expressionLiveValue) {
|
|
472
|
+
try {
|
|
473
|
+
expressionLiveValue = this.api.internalApi
|
|
474
|
+
.getAdaptableInstance()
|
|
475
|
+
.SummaryService.evaluateScalarLiveValue({
|
|
476
|
+
expression: {
|
|
477
|
+
function: expression,
|
|
478
|
+
},
|
|
479
|
+
columnId: columnId,
|
|
480
|
+
getRowNodes: () => {
|
|
481
|
+
return this.api.gridApi.getVisibleRowNodes();
|
|
482
|
+
},
|
|
483
|
+
}, ModuleConstants.LayoutModuleId);
|
|
484
|
+
}
|
|
485
|
+
catch (e) {
|
|
486
|
+
this.api.logError('Error evaluating row summary', e);
|
|
487
|
+
}
|
|
488
|
+
this.cachedCellSummary.set(key, expressionLiveValue);
|
|
489
|
+
}
|
|
490
|
+
let value = null;
|
|
491
|
+
if (expressionLiveValue) {
|
|
492
|
+
value = expressionLiveValue.getGlobalAggregatedValue();
|
|
493
|
+
if (typeof value === 'number' && !isNaN(value)) {
|
|
494
|
+
value = Helper_1.default.roundNumber(value, 2);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
acc[columnId] = value;
|
|
498
|
+
return acc;
|
|
499
|
+
}, {
|
|
500
|
+
[RowSummary_1.ROW_SUMMARY_ROW_ID]: true,
|
|
501
|
+
}),
|
|
502
|
+
};
|
|
503
|
+
});
|
|
504
|
+
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemRowSummartSet)(rowSummariesResults));
|
|
505
|
+
}
|
|
451
506
|
}
|
|
452
507
|
exports.LayoutModule = LayoutModule;
|
|
@@ -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[];
|
|
@@ -4,7 +4,6 @@ exports.NamedQueryModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const NamedQueryRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/NamedQueryRedux"));
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
8
7
|
const EditCurrentQueryButton_1 = require("../View/NamedQuery/EditCurrentQueryButton");
|
|
9
8
|
const NamedQueryWizard_1 = require("../View/NamedQuery/Wizard/NamedQueryWizard");
|
|
10
9
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
@@ -16,24 +15,6 @@ class NamedQueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
16
15
|
getModuleAdaptableObjects() {
|
|
17
16
|
return this.api.namedQueryApi.getNamedQueries();
|
|
18
17
|
}
|
|
19
|
-
updateOldConfig() {
|
|
20
|
-
// - move named queries from old Query State to this Module
|
|
21
|
-
// Note: GridFilter Module moves the "old" CurrentQuery into Layout
|
|
22
|
-
const oldQueryState = this.api.internalApi.getAdaptableState().Query;
|
|
23
|
-
const oldNamedQueries = oldQueryState.NamedQueries;
|
|
24
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(oldNamedQueries)) {
|
|
25
|
-
const currentNamedQueries = this.api.namedQueryApi.getNamedQueries();
|
|
26
|
-
oldNamedQueries.forEach((oldNamedQuery) => {
|
|
27
|
-
const currentQuery = currentNamedQueries.find((q) => q.Name === oldNamedQuery.Name);
|
|
28
|
-
if (!currentQuery) {
|
|
29
|
-
this.api.namedQueryApi.addNamedQuery(oldNamedQuery);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
if (oldQueryState) {
|
|
34
|
-
this.api.namedQueryApi.internalApi.cleanupQueryRedux();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
18
|
getTeamSharingAction() {
|
|
38
19
|
return {
|
|
39
20
|
ModuleEntities: this.api.namedQueryApi.getNamedQueries(),
|
|
@@ -9,10 +9,6 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
9
9
|
super(ModuleConstants.NotesModuleId, ModuleConstants.NotesFriendlyName, 'note', 'NotesPopup', 'Notes', api);
|
|
10
10
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
11
11
|
}
|
|
12
|
-
// isModuleAvailable(): boolean {
|
|
13
|
-
// // FIXME remove this once Notes feature is public
|
|
14
|
-
// return true;
|
|
15
|
-
// }
|
|
16
12
|
addContextMenuItems(menuContext) {
|
|
17
13
|
var _a, _b;
|
|
18
14
|
if (!this.isModuleAvailable()) {
|
|
@@ -36,6 +32,9 @@ class NotesModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
36
32
|
getAddRemoveNoteMenuItems(menuContext) {
|
|
37
33
|
var _a;
|
|
38
34
|
const items = [];
|
|
35
|
+
if (!this.api.notesApi.internalApi.areNotesAvailable()) {
|
|
36
|
+
return items;
|
|
37
|
+
}
|
|
39
38
|
// does not have note
|
|
40
39
|
const [note] = (_a = this.adaptable.api.notesApi.getCellNotes({
|
|
41
40
|
PrimaryKeyValue: menuContext.primaryKeyValue,
|
|
@@ -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;
|
|
@@ -37,7 +37,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
37
37
|
}
|
|
38
38
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames((_b = plusMinusNudge.Rule) === null || _b === void 0 ? void 0 : _b.BooleanExpression);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
onAdaptableReady() {
|
|
41
41
|
let plusMinusNudges = this.api.plusMinusApi.getAllPlusMinus();
|
|
42
42
|
this.shouldHandleKeyDown = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(plusMinusNudges);
|
|
43
43
|
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;
|
|
@@ -31,7 +31,7 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
31
31
|
EditAction: ShortcutRedux.ShortcutEdit,
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
onAdaptableReady() {
|
|
35
35
|
this.checkListenToKeyDown();
|
|
36
36
|
this.adaptable._on('CellEditorKeyDown', (cellEditorKeyDownEvent) => {
|
|
37
37
|
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[];
|
|
@@ -15,27 +15,6 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
15
15
|
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', // to change
|
|
16
16
|
'Create a Special Column Style e.g Gradient or Percent Bar', api);
|
|
17
17
|
}
|
|
18
|
-
updateOldConfig() {
|
|
19
|
-
const formatColumnsWithColumnStyles = this.api.formatColumnApi
|
|
20
|
-
.getFormatColumns()
|
|
21
|
-
.filter((formatColumn) => formatColumn.ColumnStyle);
|
|
22
|
-
if (!formatColumnsWithColumnStyles.length) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
this.api.logInfo(`Converting ${formatColumnsWithColumnStyles.length} FormatColumns Styles to Styled Columns`, formatColumnsWithColumnStyles);
|
|
26
|
-
formatColumnsWithColumnStyles.forEach((formatColumn) => {
|
|
27
|
-
this.api.formatColumnApi.deleteFormatColumn(formatColumn);
|
|
28
|
-
});
|
|
29
|
-
const styledColumns = formatColumnsWithColumnStyles
|
|
30
|
-
.map((formatColumn) => {
|
|
31
|
-
if (!('ColumnIds' in formatColumn.Scope)) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return Object.assign(Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyStyledColumn()), { ColumnId: formatColumn.Scope.ColumnIds[0] }), formatColumn.ColumnStyle);
|
|
35
|
-
})
|
|
36
|
-
.filter(Boolean);
|
|
37
|
-
styledColumns.forEach((styledColumn) => this.api.styledColumnApi.addStyledColumn(styledColumn));
|
|
38
|
-
}
|
|
39
18
|
getModuleAdaptableObjects(config) {
|
|
40
19
|
return this.api.styledColumnApi.getStyledColumns(config);
|
|
41
20
|
}
|
|
@@ -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;
|
|
@@ -27,14 +27,14 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
27
27
|
TeamSharingRedux_1.TEAMSHARING_LINK_ITEM,
|
|
28
28
|
TeamSharingRedux_1.TEAMSHARING_UPDATE_ITEM,
|
|
29
29
|
];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
30
|
+
}
|
|
31
|
+
onAdaptableReady() {
|
|
32
|
+
// make sure there is no zombie import process remaining (in case a previous import crashed)
|
|
33
|
+
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
35
34
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
36
35
|
this.api.teamSharingApi.refreshTeamSharing();
|
|
37
36
|
}
|
|
37
|
+
this.api.eventApi.on('AdaptableStateChanged', (adaptableStateChangedInfo) => this.handleStateChanged(adaptableStateChangedInfo));
|
|
38
38
|
}
|
|
39
39
|
isModuleAvailable() {
|
|
40
40
|
return super.isModuleAvailable() && this.api.teamSharingApi.isTeamSharingAvailable();
|
|
@@ -4,8 +4,6 @@ exports.ToolPanelModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
-
const Types_1 = require("../PredefinedConfig/Common/Types");
|
|
8
|
-
const ToolPanelRedux_1 = require("../Redux/ActionsReducers/ToolPanelRedux");
|
|
9
7
|
class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
8
|
constructor(api) {
|
|
11
9
|
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);
|
|
@@ -16,26 +14,5 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
16
14
|
}
|
|
17
15
|
return this.api.internalApi.getAdaptableInstance().hasAdaptableToolPanel;
|
|
18
16
|
}
|
|
19
|
-
updateOldConfig() {
|
|
20
|
-
const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
|
|
21
|
-
if (deprecatedToolPanelConfigs === null || deprecatedToolPanelConfigs === void 0 ? void 0 : deprecatedToolPanelConfigs.length) {
|
|
22
|
-
this.api.logWarn(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
|
|
23
|
-
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
24
|
-
Name: toolPanel,
|
|
25
|
-
State: 'collapsed',
|
|
26
|
-
}));
|
|
27
|
-
this.api.internalApi.dispatchReduxAction((0, ToolPanelRedux_1.ToolPanelSetToolPanels)(migratedToolPanelConfigs));
|
|
28
|
-
}
|
|
29
|
-
else if (!this.api.toolPanelApi.getToolPanelState().ToolPanels) {
|
|
30
|
-
// no predefined config provided, we will display all the panels collapsed (custom & module)
|
|
31
|
-
this.api.logInfo(`No predefined ToolPanels provided, displaying all available ones (custom&system)`);
|
|
32
|
-
const defaultConfig = [];
|
|
33
|
-
this.api.toolPanelApi
|
|
34
|
-
.getCustomToolPanels()
|
|
35
|
-
.forEach((customToolPanel) => defaultConfig.push({ Name: customToolPanel.name }));
|
|
36
|
-
Types_1.ALL_TOOL_PANELS.forEach((moduleToolPanel) => defaultConfig.push({ Name: moduleToolPanel }));
|
|
37
|
-
this.api.internalApi.dispatchReduxAction((0, ToolPanelRedux_1.ToolPanelSetToolPanels)(defaultConfig));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
17
|
}
|
|
41
18
|
exports.ToolPanelModule = ToolPanelModule;
|
|
@@ -15,4 +15,4 @@ exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-predicate`
|
|
|
15
15
|
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/getting-started-primary-key`;
|
|
16
16
|
exports.LicenseDocsLink = `${exports.HOST_URL_DOCS}/guide/licensing`;
|
|
17
17
|
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/guide/reference-options-overview`;
|
|
18
|
-
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/
|
|
18
|
+
exports.AgGridModulesDocsLink = `${exports.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = void 0;
|
|
3
|
+
exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.SERVER_VALIDATION_MESSAGE_TYPE = exports.SERVER_VALIDATION_HEADER = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.DEFAULT_DOUBLE_DISPLAY_VALUE = exports.DEFAULT_INTEGER_DISPLAY_VALUE = exports.DEFAULT_STRING_DISPLAY_VALUE = exports.BLANK_DISTINCT_COLUMN_VALUE = exports.DEFAULT_DATE_FORMAT_PATTERN = exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_CHART_WINDOW = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.GROUP_PATH_SEPARATOR = exports.HALF_SECOND = exports.AB_FDC3_COLUMN = exports.AB_ROW_ACTIONS_COLUMN = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.OS_THEME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
|
|
4
|
+
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = void 0;
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
7
7
|
exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
|
|
@@ -30,6 +30,7 @@ exports.AB_SPECIAL_COLUMN = 'abSpecialColumn';
|
|
|
30
30
|
exports.AB_ROW_ACTIONS_COLUMN = 'abRowActionsColumn';
|
|
31
31
|
exports.AB_FDC3_COLUMN = 'abFdc3Column';
|
|
32
32
|
exports.HALF_SECOND = 500;
|
|
33
|
+
exports.GROUP_PATH_SEPARATOR = '/';
|
|
33
34
|
exports.AG_GRID_GROUPED_COLUMN = 'ag-Grid-AutoColumn';
|
|
34
35
|
exports.AG_GRID_PIVOT_COLUMN = 'pivot_';
|
|
35
36
|
exports.AG_GRID_CHART_WINDOW = 'AG Grid Window';
|
|
@@ -17,13 +17,15 @@ exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
|
|
|
17
17
|
'StatusBar',
|
|
18
18
|
'-',
|
|
19
19
|
'Layout',
|
|
20
|
-
'Export',
|
|
21
20
|
'CalculatedColumn',
|
|
22
21
|
'FreeTextColumn',
|
|
23
22
|
'CustomSort',
|
|
24
23
|
'Alert',
|
|
25
24
|
'SystemStatus',
|
|
26
25
|
'-',
|
|
26
|
+
'Export',
|
|
27
|
+
'DataImport',
|
|
28
|
+
'-',
|
|
27
29
|
'FormatColumn',
|
|
28
30
|
'StyledColumn',
|
|
29
31
|
'FlashingCell',
|
|
@@ -33,17 +35,16 @@ exports.DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
|
|
|
33
35
|
'GridFilter',
|
|
34
36
|
'ColumnFilter',
|
|
35
37
|
'DataSet',
|
|
38
|
+
'NamedQuery',
|
|
36
39
|
'-',
|
|
37
40
|
'PlusMinus',
|
|
38
41
|
'Shortcut',
|
|
39
42
|
'DataChangeHistory',
|
|
40
43
|
'-',
|
|
41
44
|
'Charting',
|
|
42
|
-
'DataImport',
|
|
43
45
|
'Schedule',
|
|
44
|
-
'NamedQuery',
|
|
45
|
-
'StateManagement',
|
|
46
46
|
'TeamSharing',
|
|
47
47
|
'Notes',
|
|
48
48
|
'Comments',
|
|
49
|
+
'StateManagement',
|
|
49
50
|
];
|
|
@@ -6,7 +6,7 @@ import { AggregateParams } from './scalarAggregationHelper';
|
|
|
6
6
|
* List of all the AggregatedScalar Functions available in AdaptableQL
|
|
7
7
|
*/
|
|
8
8
|
export type AggregatedScalarFunctionName = ScalarAggregationFunction | OperandFunction;
|
|
9
|
-
export type ScalarAggregationFunction = 'SUM' | 'PERCENTAGE' | 'QUANT' | 'QUARTILE' | 'PERCENTILE' | 'AVG' | 'MIN' | 'MAX' | 'COUNT' | 'CUMUL';
|
|
9
|
+
export type ScalarAggregationFunction = 'SUM' | 'PERCENTAGE' | 'QUANT' | 'QUARTILE' | 'PERCENTILE' | 'AVG' | 'MIN' | 'MAX' | 'COUNT' | 'CUMUL' | 'MEDIAN' | 'MODE' | 'DISTINCT' | 'ONLY' | 'STD_DEVIATION';
|
|
10
10
|
type OperandFunction = 'COL' | 'OVER' | 'GROUP_BY' | 'WEIGHT';
|
|
11
11
|
export interface ScalarAggregationParameter extends BaseParameter<'aggregationScalar', ScalarAggregationFunction> {
|
|
12
12
|
value: AggregatedScalarExpressionEvaluation;
|
|
@@ -28,6 +28,7 @@ export interface AggregatedScalarExpressionEvaluation {
|
|
|
28
28
|
};
|
|
29
29
|
sortByColumn?: string;
|
|
30
30
|
rowFilterFn?: (rowNode: IRowNode) => boolean;
|
|
31
|
+
getRowNodes?: () => IRowNode[];
|
|
31
32
|
}
|
|
32
33
|
export interface CumulatedAggregationValue {
|
|
33
34
|
currentValue: number;
|