@adaptabletools/adaptable 15.4.2 → 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 +232 -226
- 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/AdaptableNoCodeWizard.d.ts +3 -0
- 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/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +24 -0
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +3 -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/ToolPanelOptions.d.ts +3 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +36 -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 +10 -34
- 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 +20 -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 +6 -35
- 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 +11 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +13 -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 +4 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -0
- 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/FilterForm/QuickFilterValues.js +8 -1
- 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 +138 -38
- 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 +360 -143
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +3 -0
- 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
|
@@ -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;
|
|
@@ -8,17 +8,9 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const React = tslib_1.__importStar(require("react"));
|
|
9
9
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
10
10
|
const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
|
|
11
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
12
11
|
class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
13
12
|
constructor(adaptable) {
|
|
14
13
|
super(adaptable);
|
|
15
|
-
// it's called synchronously by DASHBOARD_SET_ACTIVE_TAB & DASHBOARD_SET_IS_COLLAPSED,
|
|
16
|
-
// both firing the same events, thus this function being called twice;
|
|
17
|
-
// so we debounced to only get tha latest call
|
|
18
|
-
this.fireDashboardChangedEvent = (trigger, oldDashboardState, newDashboardState) => {
|
|
19
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DashboardApi', 'fireDashboardChangedEvent');
|
|
20
|
-
this.internalApi.fireDashboardChangedEvent(trigger, oldDashboardState, newDashboardState);
|
|
21
|
-
};
|
|
22
14
|
this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(adaptable);
|
|
23
15
|
}
|
|
24
16
|
getDashboardState() {
|
|
@@ -34,6 +26,8 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
34
26
|
const api = this.getAdaptableApi();
|
|
35
27
|
const dashboardContext = {
|
|
36
28
|
adaptableApi: api,
|
|
29
|
+
userName: this.getOptions().userName,
|
|
30
|
+
adaptableId: this.getOptions().adaptableId,
|
|
37
31
|
dashboardState: api.dashboardApi.getDashboardState(),
|
|
38
32
|
};
|
|
39
33
|
return this.getDashboardOptions().customDashboardButtons.find((cb) => {
|
|
@@ -118,25 +112,9 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
118
112
|
}
|
|
119
113
|
return currentTab.Toolbars;
|
|
120
114
|
}
|
|
121
|
-
showDashboardPopup() {
|
|
122
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'showDashboardPopup', 'openDashboardSettingsPanel');
|
|
123
|
-
this.openDashboardSettingsPanel();
|
|
124
|
-
}
|
|
125
115
|
openDashboardSettingsPanel() {
|
|
126
116
|
this.showModulePopup(ModuleConstants.DashboardModuleId);
|
|
127
117
|
}
|
|
128
|
-
hasCustomToolbarChanged(dashboardChangedInfo, customToolbarName) {
|
|
129
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'hasCustomToolbarChanged', null, 'Use instead the information provided in the DashboardChanged event.');
|
|
130
|
-
const visibleInNewState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.newDashboardState);
|
|
131
|
-
const visibleInOldState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.oldDashboardState);
|
|
132
|
-
if (visibleInNewState && !visibleInOldState) {
|
|
133
|
-
return 'visible';
|
|
134
|
-
}
|
|
135
|
-
if (visibleInOldState && !visibleInNewState) {
|
|
136
|
-
return 'hidden';
|
|
137
|
-
}
|
|
138
|
-
return 'none';
|
|
139
|
-
}
|
|
140
118
|
isDashboardCollapsed() {
|
|
141
119
|
return this.getDashboardState().IsCollapsed;
|
|
142
120
|
}
|
|
@@ -8,6 +8,5 @@ export declare class DataChangeHistoryApiImpl extends ApiBase implements DataCha
|
|
|
8
8
|
suspendDataChangeHistory(): void;
|
|
9
9
|
getDataChangeHistoryLog(): CellDataChangedInfo[];
|
|
10
10
|
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
11
|
-
showDataChangeHistoryPopup(): void;
|
|
12
11
|
openDataChangeHistorySettingsPanel(): void;
|
|
13
12
|
}
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
10
9
|
getDataChangeHistoryMode() {
|
|
11
10
|
return this.getAdaptableState().System.DataChangeHistory.currentMode;
|
|
@@ -41,10 +40,6 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
40
|
undoDataChangeHistoryEntry(dataChangeInfo) {
|
|
42
41
|
this.dispatchAction((0, SystemRedux_1.SystemDataChangeHistoryUndo)(dataChangeInfo));
|
|
43
42
|
}
|
|
44
|
-
showDataChangeHistoryPopup() {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataChangeHistoryApi', 'showDataChangeHistoryPopup', 'openDataChangeHistorySettingsPanel');
|
|
46
|
-
this.openDataChangeHistorySettingsPanel();
|
|
47
|
-
}
|
|
48
43
|
openDataChangeHistorySettingsPanel() {
|
|
49
44
|
this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
|
|
50
45
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { DataSetApi } from '../DataSetApi';
|
|
3
|
-
import { DataSet } from '../../AdaptableOptions/
|
|
3
|
+
import { DataSet } from '../../AdaptableOptions/DataSetOptions';
|
|
4
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
5
5
|
import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
|
|
6
6
|
export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
|
|
7
7
|
internalApi: DataSetInternalApi;
|
|
8
8
|
constructor(adaptable: IAdaptable);
|
|
9
|
-
getAllDataSets(): DataSet[];
|
|
10
9
|
getDataSets(): DataSet[];
|
|
11
10
|
getCurrentDataSet(): DataSet | undefined;
|
|
12
11
|
getDataSetByName(dataSetName: string): DataSet | undefined;
|
|
13
12
|
setDataSet(dataSetName: string): void;
|
|
14
13
|
clearCurrentDataSet(): void;
|
|
15
|
-
showDataSetPopup(): void;
|
|
16
14
|
openDataSetSettingsPanel(): void;
|
|
17
|
-
fireDataSetSelectedEvent(dataSet: DataSet): void;
|
|
18
15
|
}
|
|
@@ -6,19 +6,14 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
6
6
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
11
10
|
constructor(adaptable) {
|
|
12
11
|
super(adaptable);
|
|
13
12
|
this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(adaptable);
|
|
14
13
|
}
|
|
15
|
-
getAllDataSets() {
|
|
16
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'getAllDataSets', 'getDataSets');
|
|
17
|
-
return this.getDataSets();
|
|
18
|
-
}
|
|
19
14
|
getDataSets() {
|
|
20
15
|
var _a, _b, _c;
|
|
21
|
-
return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.
|
|
16
|
+
return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataSetOptions) === null || _b === void 0 ? void 0 : _b.dataSets) !== null && _c !== void 0 ? _c : [];
|
|
22
17
|
}
|
|
23
18
|
getCurrentDataSet() {
|
|
24
19
|
let currentDataSetName = this.getAdaptableState().System.CurrentDataSet;
|
|
@@ -36,16 +31,8 @@ class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
|
36
31
|
clearCurrentDataSet() {
|
|
37
32
|
this.dispatchAction(SystemRedux.SystemDataSetSelect(null));
|
|
38
33
|
}
|
|
39
|
-
showDataSetPopup() {
|
|
40
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'showDataSetPopup', 'openDataSetSettingsPanel');
|
|
41
|
-
this.openDataSetSettingsPanel();
|
|
42
|
-
}
|
|
43
34
|
openDataSetSettingsPanel() {
|
|
44
35
|
this.showModulePopup(ModuleConstants.DataSetModuleId);
|
|
45
36
|
}
|
|
46
|
-
fireDataSetSelectedEvent(dataSet) {
|
|
47
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DataSetApi', 'fireDataSetSelectedEvent');
|
|
48
|
-
this.internalApi.fireDataSetSelectedEvent(dataSet);
|
|
49
|
-
}
|
|
50
37
|
}
|
|
51
38
|
exports.DataSetApiImpl = DataSetApiImpl;
|
|
@@ -2,8 +2,7 @@ import { ExportApi } from '../ExportApi';
|
|
|
2
2
|
import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../../PredefinedConfig/ExportState';
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
-
import {
|
|
6
|
-
import { AdaptableReportColumn, CustomDestination, ExportFormContext, ServerReport } from '../../AdaptableOptions/ExportOptions';
|
|
5
|
+
import { AdaptableReportColumn, CustomDestination, ExportFormContext, ExternalReport } from '../../AdaptableOptions/ExportOptions';
|
|
7
6
|
import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
|
|
8
7
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
9
8
|
import { ExportInternalApi } from '../Internal/ExportInternalApi';
|
|
@@ -19,28 +18,23 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
|
19
18
|
getCurrentDestination(): ExportDestination | CustomDestination;
|
|
20
19
|
getAvailableSystemReports(): SystemReportNames;
|
|
21
20
|
getAvailableExportDestinations(): ExportDestination[];
|
|
22
|
-
getAllReports(): Report[];
|
|
23
21
|
getReports(): Report[];
|
|
24
22
|
getReportSchedules(): ReportSchedule[];
|
|
25
23
|
sendReport(reportName: string, destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
|
|
26
24
|
selectReport(reportName: string): void;
|
|
27
25
|
selectDestination(destinationName: string): void;
|
|
28
|
-
getAllCustomDestination(): CustomDestination[];
|
|
29
26
|
getCustomDestinations(): CustomDestination[];
|
|
30
27
|
isExportDestinationCustom(destinationName: string): boolean;
|
|
31
28
|
getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
|
|
32
29
|
canExportToExcel(): boolean;
|
|
33
30
|
exportDataToExcel(reportData: ReportData, fileName: string): void;
|
|
34
|
-
showExportPopup(): void;
|
|
35
31
|
openExportSettingsPanel(): void;
|
|
36
32
|
editReport(report: Report): Report;
|
|
37
33
|
editReports(reports: Report[]): Report[];
|
|
38
|
-
isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
|
|
39
34
|
exportVisualDataToExcel(): void;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
runServerReport(serverReportName: string): ReportData | undefined;
|
|
35
|
+
getExternalReports(): ExternalReport[];
|
|
36
|
+
isExternalReport(report: Report): boolean;
|
|
37
|
+
runExternalReport(externalReportName: string): ReportData | undefined;
|
|
44
38
|
getReportDataForReport(reportName: string): ReportData | undefined;
|
|
45
39
|
isColumnExportable(adaptableColumn: AdaptableReportColumn): boolean;
|
|
46
40
|
}
|
|
@@ -9,7 +9,6 @@ const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
|
9
9
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
10
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
11
11
|
const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
|
|
12
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
13
12
|
class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
14
13
|
constructor(adaptable) {
|
|
15
14
|
super(adaptable);
|
|
@@ -62,18 +61,14 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
62
61
|
});
|
|
63
62
|
return systemDestinations;
|
|
64
63
|
}
|
|
65
|
-
getAllReports() {
|
|
66
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllReports', 'getReports');
|
|
67
|
-
return this.getReports();
|
|
68
|
-
}
|
|
69
64
|
getReports() {
|
|
70
65
|
const reports = this.getAvailableSystemReports()
|
|
71
66
|
.map((s) => this.getReportByName(s))
|
|
72
67
|
.concat(this.getExportState().Reports);
|
|
73
|
-
const
|
|
74
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(
|
|
75
|
-
reports.push(...
|
|
76
|
-
return ObjectFactory_1.default.
|
|
68
|
+
const externalReports = this.getExternalReports();
|
|
69
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(externalReports)) {
|
|
70
|
+
reports.push(...externalReports.map((c) => {
|
|
71
|
+
return ObjectFactory_1.default.CreateExternalReport(c.name);
|
|
77
72
|
}));
|
|
78
73
|
}
|
|
79
74
|
return reports;
|
|
@@ -93,10 +88,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
93
88
|
selectDestination(destinationName) {
|
|
94
89
|
this.dispatchAction(ExportRedux.DestinationSelect(destinationName));
|
|
95
90
|
}
|
|
96
|
-
getAllCustomDestination() {
|
|
97
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllCustomDestination', 'getCustomDestinations');
|
|
98
|
-
return this.getCustomDestinations();
|
|
99
|
-
}
|
|
100
91
|
getCustomDestinations() {
|
|
101
92
|
var _a;
|
|
102
93
|
return (_a = this.getExportOptions().customDestinations) !== null && _a !== void 0 ? _a : [];
|
|
@@ -114,10 +105,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
114
105
|
exportDataToExcel(reportData, fileName) {
|
|
115
106
|
this.adaptable.exportToExcel(reportData, fileName);
|
|
116
107
|
}
|
|
117
|
-
showExportPopup() {
|
|
118
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'showExportPopup', 'openExportSettingsPanel');
|
|
119
|
-
this.openExportSettingsPanel();
|
|
120
|
-
}
|
|
121
108
|
openExportSettingsPanel() {
|
|
122
109
|
this.showModulePopup(ModuleConstants.ExportModuleId);
|
|
123
110
|
}
|
|
@@ -131,33 +118,25 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
131
118
|
});
|
|
132
119
|
return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
|
|
133
120
|
}
|
|
134
|
-
isDataChangeInReport(cellDataChangedInfo, report) {
|
|
135
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ExportApi', 'isDataChangeInReport');
|
|
136
|
-
return this.internalApi.isDataChangeInReport(cellDataChangedInfo, report);
|
|
137
|
-
}
|
|
138
121
|
exportVisualDataToExcel() {
|
|
139
122
|
this.adaptable.exportVisualDataToExcel();
|
|
140
123
|
}
|
|
141
|
-
|
|
142
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllServerReports', 'getServerReports');
|
|
143
|
-
return this.getServerReports();
|
|
144
|
-
}
|
|
145
|
-
getServerReports() {
|
|
124
|
+
getExternalReports() {
|
|
146
125
|
var _a;
|
|
147
|
-
return (_a = this.getExportOptions().
|
|
126
|
+
return (_a = this.getExportOptions().externalReports) !== null && _a !== void 0 ? _a : [];
|
|
148
127
|
}
|
|
149
|
-
|
|
128
|
+
isExternalReport(report) {
|
|
150
129
|
var _a;
|
|
151
|
-
return ((_a = this.
|
|
130
|
+
return ((_a = this.getExternalReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
|
|
152
131
|
}
|
|
153
|
-
|
|
132
|
+
runExternalReport(externalReportName) {
|
|
154
133
|
var _a;
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
157
|
-
this.logWarn(`
|
|
134
|
+
const externalReport = (_a = this.getExternalReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == externalReportName);
|
|
135
|
+
if (!externalReport) {
|
|
136
|
+
this.logWarn(`External Report '${externalReportName}' not found!`);
|
|
158
137
|
return undefined;
|
|
159
138
|
}
|
|
160
|
-
return
|
|
139
|
+
return externalReport.onRunReport();
|
|
161
140
|
}
|
|
162
141
|
getReportDataForReport(reportName) {
|
|
163
142
|
const report = this.getReportByName(reportName);
|
|
@@ -172,6 +151,8 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
172
151
|
if (typeof isExportableFn === 'function') {
|
|
173
152
|
return isExportableFn({
|
|
174
153
|
adaptableApi: this.adaptable.api,
|
|
154
|
+
userName: this.getOptions().userName,
|
|
155
|
+
adaptableId: this.getOptions().adaptableId,
|
|
175
156
|
adaptableColumn,
|
|
176
157
|
});
|
|
177
158
|
}
|