@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.0
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/base.css +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +234 -228
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -7
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +7 -31
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +0 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +3 -32
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -22
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +6 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +14 -3
- package/src/agGrid/Adaptable.js +129 -30
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +230 -145
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +13 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
const CalculatedColumnInternalApi_1 = require("../Internal/CalculatedColumnInternalApi");
|
|
10
9
|
class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
10
|
constructor(adaptable) {
|
|
@@ -19,10 +18,6 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
19
18
|
var _a;
|
|
20
19
|
return (_a = this.getCalculatedColumnState().CalculatedColumns) !== null && _a !== void 0 ? _a : [];
|
|
21
20
|
}
|
|
22
|
-
getAllCalculatedColumn() {
|
|
23
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'getAllCalculatedColumn', 'getCalculatedColumns');
|
|
24
|
-
return this.getCalculatedColumns();
|
|
25
|
-
}
|
|
26
21
|
getCalculatedColumnById(id) {
|
|
27
22
|
return this.getCalculatedColumns().find((column) => (column === null || column === void 0 ? void 0 : column.Uuid) === id);
|
|
28
23
|
}
|
|
@@ -38,13 +33,6 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
38
33
|
this.dispatchAction(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn));
|
|
39
34
|
return this.getCalculatedColumnById(calculatedColumn.Uuid);
|
|
40
35
|
}
|
|
41
|
-
editCalculatedColumns(calculatedColumns) {
|
|
42
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'editCalculatedColumns');
|
|
43
|
-
calculatedColumns.forEach((cc) => {
|
|
44
|
-
this.editCalculatedColumn(cc);
|
|
45
|
-
});
|
|
46
|
-
return calculatedColumns === null || calculatedColumns === void 0 ? void 0 : calculatedColumns.map((column) => this.getCalculatedColumnById(column === null || column === void 0 ? void 0 : column.Uuid));
|
|
47
|
-
}
|
|
48
36
|
deleteCalculatedColumn(column) {
|
|
49
37
|
let calcColumn = this.getCalculatedColumns().find((cc) => cc.ColumnId == column);
|
|
50
38
|
this.dispatchAction(CalculatedColumnRedux.CalculatedColumnDelete(calcColumn));
|
|
@@ -86,25 +74,5 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
86
74
|
this.getGridApi().refreshCells(null, [columnId]);
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
|
-
showCalculatedColumnPopup() {
|
|
90
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'showCalculatedColumnPopup', 'openCalculatedColumnSettingsPanel');
|
|
91
|
-
this.showModulePopup(ModuleConstants.CalculatedColumnModuleId);
|
|
92
|
-
}
|
|
93
|
-
getCalculatedColumnModuleReferences(calculatedColumn) {
|
|
94
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnModuleReferences');
|
|
95
|
-
return this.internalApi.getCalculatedColumnModuleReferences(calculatedColumn);
|
|
96
|
-
}
|
|
97
|
-
getCalculatedColumnsReferencingColumnId(columnId) {
|
|
98
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnsReferencingColumnId');
|
|
99
|
-
return this.internalApi.getCalculatedColumnsReferencingColumnId(columnId);
|
|
100
|
-
}
|
|
101
|
-
getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
|
|
102
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumn');
|
|
103
|
-
return this.internalApi.getReferencedColumnIdsForCalculatedColumn(calculatedColumn);
|
|
104
|
-
}
|
|
105
|
-
getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId) {
|
|
106
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumnId');
|
|
107
|
-
return this.internalApi.getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId);
|
|
108
|
-
}
|
|
109
77
|
}
|
|
110
78
|
exports.CalculatedColumnApiImpl = CalculatedColumnApiImpl;
|
|
@@ -22,29 +22,16 @@ class CalendarApiImpl extends ApiBase_1.ApiBase {
|
|
|
22
22
|
return counterDate;
|
|
23
23
|
}
|
|
24
24
|
isWorkingDay(dateToCheck) {
|
|
25
|
-
const holidays = this.
|
|
25
|
+
const holidays = this.getHolidays();
|
|
26
26
|
if (!holidays) {
|
|
27
27
|
return dateToCheck.getDay() != 0 && dateToCheck.getDay() != 6;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
userName: this.getOptions().userName,
|
|
33
|
-
adaptableId: this.getOptions().adaptableId,
|
|
34
|
-
adaptableApi: this.getAdaptableApi(),
|
|
35
|
-
};
|
|
36
|
-
if (holidays.isHoliday(context)) {
|
|
29
|
+
for (let holiday of holidays) {
|
|
30
|
+
let holidayDate = new Date(holiday);
|
|
31
|
+
if (holidayDate.setHours(0, 0, 0, 0) == dateToCheck.setHours(0, 0, 0, 0)) {
|
|
37
32
|
return false;
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
|
-
if (Array.isArray(holidays.list)) {
|
|
41
|
-
for (let holiday of holidays.list) {
|
|
42
|
-
let holidayDate = new Date(holiday);
|
|
43
|
-
if (holidayDate.setHours(0, 0, 0, 0) == dateToCheck.setHours(0, 0, 0, 0)) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
35
|
return dateToCheck.getDay() != 0 && dateToCheck.getDay() != 6;
|
|
49
36
|
}
|
|
50
37
|
isHoliday(dateToCheck) {
|
|
@@ -55,5 +42,21 @@ class CalendarApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
42
|
firstDateToCheck.getMonth() === secondDateToCheck.getMonth() &&
|
|
56
43
|
firstDateToCheck.getDate() === secondDateToCheck.getDate());
|
|
57
44
|
}
|
|
45
|
+
getHolidays() {
|
|
46
|
+
const holidays = this.getCalendarOptions().holidays;
|
|
47
|
+
if (holidays) {
|
|
48
|
+
if (typeof holidays === 'function') {
|
|
49
|
+
const baseContext = {
|
|
50
|
+
userName: this.getOptions().userName,
|
|
51
|
+
adaptableId: this.getOptions().adaptableId,
|
|
52
|
+
adaptableApi: this.getAdaptableApi(),
|
|
53
|
+
};
|
|
54
|
+
return holidays(baseContext);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return holidays;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
exports.CalendarApiImpl = CalendarApiImpl;
|
|
@@ -6,7 +6,6 @@ export declare class CellSummaryApiImpl extends ApiBase implements CellSummaryAp
|
|
|
6
6
|
openCellSummaryPopupSettingsPanel(): void;
|
|
7
7
|
getCurrentCellSummaryOperation(): CellSummaryOperation | string;
|
|
8
8
|
getCellSummaryOperationDefinitions(): CellSummaryOperation[];
|
|
9
|
-
showCellSummaryPopup(): void;
|
|
10
9
|
setCurrentCellSummaryOperation(operation: SummaryOperation | string): void;
|
|
11
10
|
getCellSummaryOperationValue(operation: SummaryOperation | string): any;
|
|
12
11
|
getCurrentCellSummaryOperationValue(): any;
|
|
@@ -7,7 +7,6 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
7
7
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
8
8
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
9
9
|
const weightedAverage_1 = require("../../agGrid/weightedAverage");
|
|
10
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
12
11
|
openCellSummaryPopupSettingsPanel() {
|
|
13
12
|
this.showModulePopup(ModuleConstants.CellSummaryModuleId);
|
|
@@ -17,7 +16,7 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
16
|
}
|
|
18
17
|
getCellSummaryOperationDefinitions() {
|
|
19
18
|
var _a;
|
|
20
|
-
let cellSummaryOperations = (_a = this.
|
|
19
|
+
let cellSummaryOperations = (_a = this.getCellSummaryOptions().cellSummaryOperations) !== null && _a !== void 0 ? _a : [];
|
|
21
20
|
if (this.isWeightedAverageCellSummaryAvailable()) {
|
|
22
21
|
cellSummaryOperations = [
|
|
23
22
|
...cellSummaryOperations,
|
|
@@ -26,10 +25,6 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
25
|
}
|
|
27
26
|
return cellSummaryOperations;
|
|
28
27
|
}
|
|
29
|
-
showCellSummaryPopup() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CellSummaryApi', 'showCellSummaryPopup', 'openCellSummaryPopupSettingsPanel');
|
|
31
|
-
this.openCellSummaryPopupSettingsPanel();
|
|
32
|
-
}
|
|
33
28
|
setCurrentCellSummaryOperation(operation) {
|
|
34
29
|
this.dispatchAction(SystemRedux.SystemCellSummaryChangeOperation(operation));
|
|
35
30
|
}
|
|
@@ -13,7 +13,6 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
|
|
|
13
13
|
saveCurrentCharts(): void;
|
|
14
14
|
getPersistedCharts(): ChartModel[];
|
|
15
15
|
getChartDefinitions(): ChartDefinition[];
|
|
16
|
-
getAllChartDefinitions(): ChartDefinition[];
|
|
17
16
|
getChartDefinitionByUuid(uuid: string): ChartDefinition;
|
|
18
17
|
getChartDefinitionByName(name: string): ChartDefinition | undefined;
|
|
19
18
|
showPersistedCharts(): ChartRef[];
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const ChartingRedux = tslib_1.__importStar(require("./../../Redux/ActionsReducers/ChartingRedux"));
|
|
7
7
|
const ChartingRedux_1 = require("./../../Redux/ActionsReducers/ChartingRedux");
|
|
8
8
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
11
10
|
const ChartingInternalApi_1 = require("../Internal/ChartingInternalApi");
|
|
12
11
|
class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -38,10 +37,6 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
|
38
37
|
var _a;
|
|
39
38
|
return (_a = (0, ChartingRedux_1.ChartingGetChartModels)(this.getAdaptableState())) !== null && _a !== void 0 ? _a : [];
|
|
40
39
|
}
|
|
41
|
-
getAllChartDefinitions() {
|
|
42
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ChartingApi', 'getAllChartDefinitions', 'getChartDefinitions');
|
|
43
|
-
return this.getChartDefinitions();
|
|
44
|
-
}
|
|
45
40
|
getChartDefinitionByUuid(uuid) {
|
|
46
41
|
return this.getChartDefinitions().find((c) => c.Uuid == uuid);
|
|
47
42
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
3
|
import { ColumnApi } from '../ColumnApi';
|
|
4
|
-
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
5
|
-
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
6
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
7
5
|
import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
|
|
8
6
|
export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
@@ -20,42 +18,24 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
20
18
|
autosizeAllColumns(): void;
|
|
21
19
|
hideColumn(columnId: string): void;
|
|
22
20
|
showColumn(columnId: string): void;
|
|
23
|
-
getAgGridColumnType(columnId: string): string | string[];
|
|
24
21
|
isAutoRowGroupColumn(columnId: string): boolean;
|
|
25
22
|
isAutoPivotColumn(columnId: string): boolean;
|
|
26
23
|
isCalculatedColumn(columnId: string): boolean;
|
|
27
24
|
isFreeTextColumn(columnId: string): boolean;
|
|
28
25
|
isActionColumn(columnId: string): boolean;
|
|
29
|
-
isStyledNumericColumn(column: AdaptableColumn): boolean;
|
|
30
26
|
getColumnWithColumnId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
31
|
-
isNumericColumn(column: AdaptableColumn): boolean;
|
|
32
27
|
hasNumberDataType(columnId: string): boolean;
|
|
33
|
-
isBooleanColumn(column: AdaptableColumn): boolean;
|
|
34
28
|
hasBooleanDataType(columnId: string): boolean;
|
|
35
29
|
hasArrayDataType(columnId: string): boolean;
|
|
36
|
-
isDateColumn(column: AdaptableColumn): boolean;
|
|
37
30
|
hasDateDataType(columnId: string): boolean;
|
|
38
|
-
getColumnDataTypeFromColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
39
31
|
getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
40
|
-
getFriendlyNameFromColumn(columnId: string, column: AdaptableColumn): string;
|
|
41
|
-
getFriendlyNameFromColumnId(columnId: string): string | undefined;
|
|
42
32
|
getFriendlyNameForColumnId(columnId: string): string;
|
|
43
|
-
getFriendlyNamesFromColumnIds(columnIds: string[]): string[];
|
|
44
33
|
getFriendlyNamesForColumnIds(columnIds: string[]): string[];
|
|
45
|
-
getColumnIdFromFriendlyName(friendlyName: string): string;
|
|
46
34
|
getColumnIdForFriendlyName(friendlyName: string): string;
|
|
47
|
-
getColumnIdsFromFriendlyNames(friendlyNames: string[]): string[];
|
|
48
35
|
getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];
|
|
49
|
-
getColumnsFromFriendlyNames(friendlyNames: string[]): AdaptableColumn[];
|
|
50
36
|
getColumnsWithFriendlyNames(friendlyNames: string[]): AdaptableColumn[];
|
|
51
|
-
getColumnsFromIds(columnIds: string[], logWarning?: boolean): AdaptableColumn[];
|
|
52
37
|
getColumnsWithColumnIds(columnIds: string[], logWarning?: boolean): AdaptableColumn[];
|
|
53
|
-
doesColumnExist(columnId: string): boolean;
|
|
54
38
|
isColumnInGrid(columnId: string): boolean;
|
|
55
|
-
getColumnFromId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
56
|
-
getAgGridColumnFieldForAdaptableColumn(colId: string): string;
|
|
57
|
-
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
58
|
-
getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
|
|
59
39
|
getColumnWithFriendlyName(columnFriendlyName: string, logWarning?: boolean): AdaptableColumn;
|
|
60
40
|
getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
|
|
61
41
|
getNumericColumns(): AdaptableColumn[];
|
|
@@ -74,23 +54,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
74
54
|
getQueryableColumns(): AdaptableColumn[];
|
|
75
55
|
getExportableColumns(): AdaptableColumn[];
|
|
76
56
|
private logMissingColumnWarning;
|
|
77
|
-
getDistinctDisplayValuesForColumn(columnId: string): any[];
|
|
78
|
-
getDistinctFilterDisplayValuesForColumn(columnId: string, filter: string, showFilteredRowsOnly: boolean): Promise<{
|
|
79
|
-
values: any[];
|
|
80
|
-
suppressClientSideFilter: boolean;
|
|
81
|
-
}>;
|
|
82
|
-
getDistinctCustomSortDisplayValuesForColumn(columnId: string): Promise<any[]>;
|
|
83
|
-
getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
|
|
84
|
-
getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
|
|
85
|
-
getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
86
|
-
getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
87
|
-
getDistinctVisibleRawValuesForColumn(columnId: string): any[];
|
|
88
57
|
getPrimaryKeyColumn(): AdaptableColumn<any>;
|
|
89
|
-
getAllColumnFriendlyNames(): string[];
|
|
90
|
-
usesAdaptableFilterForm(columnId: string): boolean;
|
|
91
|
-
usesAdaptableQuickFilter(columnId: string): boolean;
|
|
92
58
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
93
59
|
getDefaultAggFunc(columnId: string): string;
|
|
94
|
-
getTypesForColumn(columnId: string): string | string[] | undefined;
|
|
95
60
|
isSpecialColumn(columnId: string): boolean;
|
|
96
61
|
}
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
|
|
7
7
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
const ColumnInternalApi_1 = require("../Internal/ColumnInternalApi");
|
|
11
10
|
class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
12
11
|
constructor(adaptable) {
|
|
@@ -55,10 +54,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
54
|
showColumn(columnId) {
|
|
56
55
|
this.adaptable.showColumn(columnId);
|
|
57
56
|
}
|
|
58
|
-
getAgGridColumnType(columnId) {
|
|
59
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnType');
|
|
60
|
-
return this.internalApi.getAgGridColumnType(columnId);
|
|
61
|
-
}
|
|
62
57
|
isAutoRowGroupColumn(columnId) {
|
|
63
58
|
// put this here as there might be other indicators we are not aware of
|
|
64
59
|
// perhaps with non auto groups ?
|
|
@@ -81,17 +76,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
81
76
|
}
|
|
82
77
|
isActionColumn(columnId) {
|
|
83
78
|
var _a;
|
|
84
|
-
return (((_a = this.adaptable.api.
|
|
85
|
-
}
|
|
86
|
-
isStyledNumericColumn(column) {
|
|
87
|
-
(0, logDeprecation_1.logDeprecationExternal)(this.adaptable.logger, 'ColumnApi', 'isStyledNumericColumn', 'StyledColumnApi',
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
'hasPercentBarStyle() or StyledColumnApi.hasGradientStyle');
|
|
90
|
-
if (!column) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
return (this.getStyledColumnApi().hasPercentBarStyle(column.columnId) ||
|
|
94
|
-
this.getStyledColumnApi().hasGradientStyle(column.columnId));
|
|
79
|
+
return (((_a = this.adaptable.api.actionColumnApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
95
80
|
}
|
|
96
81
|
getColumnWithColumnId(columnId, logWarning) {
|
|
97
82
|
if (columnId == undefined) {
|
|
@@ -113,10 +98,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
113
98
|
}
|
|
114
99
|
return undefined;
|
|
115
100
|
}
|
|
116
|
-
isNumericColumn(column) {
|
|
117
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isNumericColumn', 'hasNumberDataType');
|
|
118
|
-
return this.hasNumberDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
119
|
-
}
|
|
120
101
|
hasNumberDataType(columnId) {
|
|
121
102
|
const column = this.getColumnWithColumnId(columnId);
|
|
122
103
|
if (!column) {
|
|
@@ -124,10 +105,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
124
105
|
}
|
|
125
106
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Number';
|
|
126
107
|
}
|
|
127
|
-
isBooleanColumn(column) {
|
|
128
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isBooleanColumn', 'hasBooleanDataType');
|
|
129
|
-
return this.hasBooleanDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
130
|
-
}
|
|
131
108
|
hasBooleanDataType(columnId) {
|
|
132
109
|
const column = this.getColumnWithColumnId(columnId);
|
|
133
110
|
if (!column) {
|
|
@@ -144,10 +121,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
144
121
|
(column === null || column === void 0 ? void 0 : column.dataType) == 'TupleNumberArray' ||
|
|
145
122
|
(column === null || column === void 0 ? void 0 : column.dataType) == 'ObjectNumberArray');
|
|
146
123
|
}
|
|
147
|
-
isDateColumn(column) {
|
|
148
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isDateColumn', 'hasDateDataType');
|
|
149
|
-
return this.hasDateDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
150
|
-
}
|
|
151
124
|
hasDateDataType(columnId) {
|
|
152
125
|
const column = this.getColumnWithColumnId(columnId);
|
|
153
126
|
if (!column) {
|
|
@@ -155,10 +128,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
155
128
|
}
|
|
156
129
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Date';
|
|
157
130
|
}
|
|
158
|
-
getColumnDataTypeFromColumnId(columnId) {
|
|
159
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnDataTypeFromColumnId', 'getColumnDataTypeForColumnId');
|
|
160
|
-
return this.getColumnDataTypeForColumnId(columnId);
|
|
161
|
-
}
|
|
162
131
|
getColumnDataTypeForColumnId(columnId) {
|
|
163
132
|
const column = this.getColumnWithColumnId(columnId); // this.getColumns().find(c => c.ColumnId == columnId);
|
|
164
133
|
if (!column) {
|
|
@@ -166,21 +135,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
166
135
|
}
|
|
167
136
|
return column.dataType;
|
|
168
137
|
}
|
|
169
|
-
getFriendlyNameFromColumn(columnId, column) {
|
|
170
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNameFromColumn');
|
|
171
|
-
if (columnId.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
172
|
-
return columnId;
|
|
173
|
-
}
|
|
174
|
-
if (column) {
|
|
175
|
-
return column.friendlyName;
|
|
176
|
-
}
|
|
177
|
-
this.logMissingColumnWarning(columnId);
|
|
178
|
-
return columnId + GeneralConstants.MISSING_COLUMN;
|
|
179
|
-
}
|
|
180
|
-
getFriendlyNameFromColumnId(columnId) {
|
|
181
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNameFromColumnId', 'getFriendlyNameForColumnId');
|
|
182
|
-
return this.getFriendlyNameForColumnId(columnId);
|
|
183
|
-
}
|
|
184
138
|
getFriendlyNameForColumnId(columnId) {
|
|
185
139
|
if (this.isAutoPivotColumn(columnId)) {
|
|
186
140
|
return GeneralConstants.EMPTY_STRING;
|
|
@@ -199,10 +153,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
199
153
|
this.logMissingColumnWarning(columnId);
|
|
200
154
|
return result;
|
|
201
155
|
}
|
|
202
|
-
getFriendlyNamesFromColumnIds(columnIds) {
|
|
203
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNamesFromColumnIds', 'getFriendlyNamesForColumnIds');
|
|
204
|
-
return this.getFriendlyNamesForColumnIds(columnIds);
|
|
205
|
-
}
|
|
206
156
|
getFriendlyNamesForColumnIds(columnIds) {
|
|
207
157
|
const friendlyNames = [];
|
|
208
158
|
if (ArrayExtensions_1.default.IsNullOrEmpty(columnIds)) {
|
|
@@ -213,10 +163,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
213
163
|
});
|
|
214
164
|
return friendlyNames;
|
|
215
165
|
}
|
|
216
|
-
getColumnIdFromFriendlyName(friendlyName) {
|
|
217
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnIdFromFriendlyName', 'getColumnIdForFriendlyName');
|
|
218
|
-
return this.getColumnIdForFriendlyName(friendlyName);
|
|
219
|
-
}
|
|
220
166
|
getColumnIdForFriendlyName(friendlyName) {
|
|
221
167
|
if (friendlyName.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
222
168
|
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, ''); // Ids should stay "pure"
|
|
@@ -228,10 +174,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
228
174
|
this.logMissingColumnWarning(friendlyName);
|
|
229
175
|
return friendlyName + GeneralConstants.MISSING_COLUMN;
|
|
230
176
|
}
|
|
231
|
-
getColumnIdsFromFriendlyNames(friendlyNames) {
|
|
232
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnIdsFromFriendlyNames', 'getColumnIdsForFriendlyNames');
|
|
233
|
-
return this.getColumnIdsForFriendlyNames(friendlyNames);
|
|
234
|
-
}
|
|
235
177
|
getColumnIdsForFriendlyNames(friendlyNames) {
|
|
236
178
|
const columnIds = [];
|
|
237
179
|
if (ArrayExtensions_1.default.IsNullOrEmpty(friendlyNames)) {
|
|
@@ -242,19 +184,11 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
242
184
|
});
|
|
243
185
|
return columnIds;
|
|
244
186
|
}
|
|
245
|
-
getColumnsFromFriendlyNames(friendlyNames) {
|
|
246
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnsFromFriendlyNames', 'getColumnsWithFriendlyNames');
|
|
247
|
-
return this.getColumnsWithFriendlyNames(friendlyNames);
|
|
248
|
-
}
|
|
249
187
|
getColumnsWithFriendlyNames(friendlyNames) {
|
|
250
188
|
return friendlyNames
|
|
251
189
|
.map((friendlyName) => this.getColumns().find((x) => x.friendlyName == friendlyName))
|
|
252
190
|
.filter(Boolean);
|
|
253
191
|
}
|
|
254
|
-
getColumnsFromIds(columnIds, logWarning = true) {
|
|
255
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnsFromIds', 'getColumnsWithColumnIds');
|
|
256
|
-
return this.getColumnsWithColumnIds(columnIds, logWarning);
|
|
257
|
-
}
|
|
258
192
|
getColumnsWithColumnIds(columnIds, logWarning = true) {
|
|
259
193
|
let returnCols = [];
|
|
260
194
|
columnIds.forEach((c) => {
|
|
@@ -265,29 +199,9 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
265
199
|
});
|
|
266
200
|
return returnCols;
|
|
267
201
|
}
|
|
268
|
-
doesColumnExist(columnId) {
|
|
269
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'doesColumnExist', 'isColumnInGrid');
|
|
270
|
-
return this.isColumnInGrid(columnId);
|
|
271
|
-
}
|
|
272
202
|
isColumnInGrid(columnId) {
|
|
273
203
|
return !!this.getColumnWithColumnId(columnId, false);
|
|
274
204
|
}
|
|
275
|
-
getColumnFromId(columnId, logWarning = true) {
|
|
276
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnFromId', 'getColumnWithColumnId');
|
|
277
|
-
return this.getColumnWithColumnId(columnId, logWarning);
|
|
278
|
-
}
|
|
279
|
-
getAgGridColumnFieldForAdaptableColumn(colId) {
|
|
280
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnFieldForAdaptableColumn');
|
|
281
|
-
return this.internalApi.getAgGridColumnFieldForAdaptableColumn(colId);
|
|
282
|
-
}
|
|
283
|
-
getAgGridColumnForAdaptableColumn(columnId) {
|
|
284
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnForAdaptableColumn');
|
|
285
|
-
return this.internalApi.getAgGridColumnForAdaptableColumn(columnId);
|
|
286
|
-
}
|
|
287
|
-
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
288
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnFromFriendlyName', 'getColumnWithFriendlyName');
|
|
289
|
-
return this.getColumnWithFriendlyName(columnName, logWarning);
|
|
290
|
-
}
|
|
291
205
|
getColumnWithFriendlyName(columnFriendlyName, logWarning = true) {
|
|
292
206
|
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
293
207
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
@@ -379,53 +293,9 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
379
293
|
}
|
|
380
294
|
}
|
|
381
295
|
}
|
|
382
|
-
getDistinctDisplayValuesForColumn(columnId) {
|
|
383
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctDisplayValuesForColumn');
|
|
384
|
-
return this.getGridApi().internalApi.getDistinctDisplayValuesForColumn(columnId);
|
|
385
|
-
}
|
|
386
|
-
async getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly) {
|
|
387
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctFilterDisplayValuesForColumn');
|
|
388
|
-
return this.getGridApi().internalApi.getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly);
|
|
389
|
-
}
|
|
390
|
-
async getDistinctCustomSortDisplayValuesForColumn(columnId) {
|
|
391
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctCustomSortDisplayValuesForColumn');
|
|
392
|
-
return this.getGridApi().internalApi.getDistinctCustomSortDisplayValuesForColumn(columnId);
|
|
393
|
-
}
|
|
394
|
-
async getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells) {
|
|
395
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctBulkUpdateDisplayValuesForColumn');
|
|
396
|
-
return this.getGridApi().internalApi.getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells);
|
|
397
|
-
}
|
|
398
|
-
getDistinctVisibleDisplayValuesForColumn(columnId) {
|
|
399
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctVisibleDisplayValuesForColumn');
|
|
400
|
-
return this.getGridApi().internalApi.getDistinctVisibleDisplayValuesForColumn(columnId);
|
|
401
|
-
}
|
|
402
|
-
getDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
403
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctRawValuesForColumn');
|
|
404
|
-
return this.getGridApi().internalApi.getDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
405
|
-
}
|
|
406
|
-
getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
407
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getUnsortedDistinctRawValuesForColumn');
|
|
408
|
-
return this.getGridApi().internalApi.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
409
|
-
}
|
|
410
|
-
getDistinctVisibleRawValuesForColumn(columnId) {
|
|
411
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctVisibleRawValuesForColumn');
|
|
412
|
-
return this.getGridApi().internalApi.getDistinctVisibleRawValuesForColumn(columnId);
|
|
413
|
-
}
|
|
414
296
|
getPrimaryKeyColumn() {
|
|
415
297
|
return this.getColumnWithColumnId(this.adaptable.adaptableOptions.primaryKey);
|
|
416
298
|
}
|
|
417
|
-
getAllColumnFriendlyNames() {
|
|
418
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAllColumnFriendlyNames');
|
|
419
|
-
return this.internalApi.getAllColumnFriendlyNames();
|
|
420
|
-
}
|
|
421
|
-
usesAdaptableFilterForm(columnId) {
|
|
422
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'usesAdaptableFilterForm');
|
|
423
|
-
return this.internalApi.usesAdaptableFilterForm(columnId);
|
|
424
|
-
}
|
|
425
|
-
usesAdaptableQuickFilter(columnId) {
|
|
426
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'usesAdaptableQuickFilter');
|
|
427
|
-
return this.internalApi.usesAdaptableQuickFilter(columnId);
|
|
428
|
-
}
|
|
429
299
|
isActionRowButtonColumn(columnId) {
|
|
430
300
|
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
431
301
|
}
|
|
@@ -436,13 +306,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
436
306
|
const agColumn = (_b = (_a = this.internalApi.getAgGridColumnForAdaptableColumn(columnId)) === null || _a === void 0 ? void 0 : _a.getColDef) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
437
307
|
return (_c = agColumn === null || agColumn === void 0 ? void 0 : agColumn.defaultAggFunc) !== null && _c !== void 0 ? _c : availableAggregationFunctions[0];
|
|
438
308
|
}
|
|
439
|
-
getTypesForColumn(columnId) {
|
|
440
|
-
var _a;
|
|
441
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getTypesForColumn');
|
|
442
|
-
// nobody uses this, we should delete it
|
|
443
|
-
const agGridColumn = this.getAgGridColumnForAdaptableColumn(columnId);
|
|
444
|
-
return (_a = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef()) === null || _a === void 0 ? void 0 : _a.type;
|
|
445
|
-
}
|
|
446
309
|
isSpecialColumn(columnId) {
|
|
447
310
|
return (this.isCalculatedColumn(columnId) ||
|
|
448
311
|
this.isFreeTextColumn(columnId) ||
|
|
@@ -71,6 +71,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
71
71
|
adaptableStateKey: adaptableOptions.adaptableStateKey,
|
|
72
72
|
adaptableId: adaptableOptions.adaptableId,
|
|
73
73
|
adaptableApi: this.adaptable.api,
|
|
74
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
74
75
|
};
|
|
75
76
|
this.adaptable.api.eventApi.emit('AdaptableStateReloaded', stateReloadedInfo);
|
|
76
77
|
});
|
|
@@ -100,7 +101,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
100
101
|
dataSet: this.adaptable.api.dataSetApi.getCurrentDataSet(),
|
|
101
102
|
currentQuery,
|
|
102
103
|
queryAST: currentQuery
|
|
103
|
-
? this.adaptable.api.
|
|
104
|
+
? this.adaptable.api.expressionApi.getASTForExpression(currentQuery)
|
|
104
105
|
: null,
|
|
105
106
|
columnFilters: this.adaptable.api.filterApi.getColumnFilters(),
|
|
106
107
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiBase
|
|
1
|
+
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { CustomSortApi } from '../CustomSortApi';
|
|
3
3
|
import { CustomSort, CustomSortState } from '../../PredefinedConfig/CustomSortState';
|
|
4
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
@@ -7,16 +7,13 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
|
|
|
7
7
|
internalApi: CustomSortInternalApi;
|
|
8
8
|
constructor(adaptable: IAdaptable);
|
|
9
9
|
getCustomSortState(): CustomSortState;
|
|
10
|
-
getAllCustomSort(config?: LayoutAssociatedObjectLoadConfig): CustomSort[];
|
|
11
10
|
getCustomSorts(config?: {
|
|
12
11
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
13
12
|
}): CustomSort[];
|
|
14
13
|
getCustomSortById(id: CustomSort['Uuid']): CustomSort;
|
|
15
|
-
getAllActiveCustomSort(): CustomSort[];
|
|
16
14
|
getActiveCustomSorts(config?: {
|
|
17
15
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
16
|
}): CustomSort[];
|
|
19
|
-
getAllSuspendedCustomSort(): CustomSort[];
|
|
20
17
|
getSuspendedCustomSorts(config?: {
|
|
21
18
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
22
19
|
}): CustomSort[];
|
|
@@ -28,6 +25,5 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
|
|
|
28
25
|
deleteCustomSort(column: string): void;
|
|
29
26
|
suspendCustomSort(customSort: CustomSort): CustomSort;
|
|
30
27
|
unSuspendCustomSort(customSort: CustomSort): CustomSort;
|
|
31
|
-
showCustomSortPopup(): void;
|
|
32
28
|
openCustomSortSettingsPanel(): void;
|
|
33
29
|
}
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
6
6
|
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
|
|
10
9
|
class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
11
10
|
constructor(adaptable) {
|
|
@@ -15,10 +14,6 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
14
|
getCustomSortState() {
|
|
16
15
|
return this.getAdaptableState().CustomSort;
|
|
17
16
|
}
|
|
18
|
-
getAllCustomSort(config) {
|
|
19
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllCustomSort', 'getCustomSorts');
|
|
20
|
-
return this.getCustomSorts(config);
|
|
21
|
-
}
|
|
22
17
|
getCustomSorts(config) {
|
|
23
18
|
var _a;
|
|
24
19
|
return ((_a = this.handleLayoutAssociatedObjects(this.getCustomSortState().CustomSorts, 'CustomSort', config)) !== null && _a !== void 0 ? _a : []);
|
|
@@ -26,17 +21,9 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
21
|
getCustomSortById(id) {
|
|
27
22
|
return this.getCustomSorts().find((customSort) => customSort.Uuid === id);
|
|
28
23
|
}
|
|
29
|
-
getAllActiveCustomSort() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllActiveCustomSort', 'getActiveCustomSorts');
|
|
31
|
-
return this.getActiveCustomSorts();
|
|
32
|
-
}
|
|
33
24
|
getActiveCustomSorts(config) {
|
|
34
25
|
return this.getCustomSorts(config).filter((customSort) => !customSort.IsSuspended);
|
|
35
26
|
}
|
|
36
|
-
getAllSuspendedCustomSort() {
|
|
37
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllSuspendedCustomSort', 'getSuspendedCustomSorts');
|
|
38
|
-
return this.getSuspendedCustomSorts();
|
|
39
|
-
}
|
|
40
27
|
getSuspendedCustomSorts(config) {
|
|
41
28
|
return this.getCustomSorts(config).filter((customSort) => customSort.IsSuspended);
|
|
42
29
|
}
|
|
@@ -77,9 +64,6 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
64
|
this.dispatchAction(CustomSortRedux.CustomSortUnSuspend(customSort));
|
|
78
65
|
return this.getCustomSortById(customSort.Uuid);
|
|
79
66
|
}
|
|
80
|
-
showCustomSortPopup() {
|
|
81
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'showCustomSortPopup', 'openCustomSortSettingsPanel');
|
|
82
|
-
}
|
|
83
67
|
openCustomSortSettingsPanel() {
|
|
84
68
|
this.showModulePopup(ModuleConstants.CustomSortModuleId);
|
|
85
69
|
}
|
|
@@ -2,7 +2,6 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { DashboardApi } from '../DashboardApi';
|
|
3
3
|
import { DashboardState, DashboardTab } from '../../PredefinedConfig/DashboardState';
|
|
4
4
|
import { AdaptableDashboardToolbar, AdaptableDashboardToolbars, AdaptableModuleButtons } from '../../PredefinedConfig/Common/Types';
|
|
5
|
-
import { DashboardChangedInfo } from '../Events/DashboardChanged';
|
|
6
5
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
7
6
|
import { DashboardButtonContext } from '../../types';
|
|
8
7
|
import { CustomToolbar } from '../../AdaptableOptions/DashboardOptions';
|
|
@@ -34,10 +33,7 @@ export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
|
|
|
34
33
|
setActiveTabIndex(tabIndex: number): void;
|
|
35
34
|
setActiveTab(tabName: string): void;
|
|
36
35
|
getCurrentToolbars(): AdaptableDashboardToolbars | string[] | undefined;
|
|
37
|
-
fireDashboardChangedEvent: (trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState) => void;
|
|
38
|
-
showDashboardPopup(): void;
|
|
39
36
|
openDashboardSettingsPanel(): void;
|
|
40
|
-
hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
|
|
41
37
|
isDashboardCollapsed(): boolean;
|
|
42
38
|
isDashboardExpanded(): boolean;
|
|
43
39
|
isDashboardFloating(): boolean;
|