@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
|
@@ -6,7 +6,6 @@ const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
10
|
constructor(adaptable) {
|
|
12
11
|
super(adaptable);
|
|
@@ -15,10 +14,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
14
|
getFormatColumnState() {
|
|
16
15
|
return this.getAdaptableState().FormatColumn;
|
|
17
16
|
}
|
|
18
|
-
getAllFormatColumn(config) {
|
|
19
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
20
|
-
return this.getFormatColumns(config);
|
|
21
|
-
}
|
|
22
17
|
getFormatColumns(config) {
|
|
23
18
|
var _a;
|
|
24
19
|
return ((_a = this.handleLayoutAssociatedObjects(this.getFormatColumnState().FormatColumns, 'FormatColumn', config)) !== null && _a !== void 0 ? _a : []);
|
|
@@ -26,36 +21,12 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
21
|
getFormatColumnById(id) {
|
|
27
22
|
return this.getFormatColumns({ includeLayoutNotAssociatedObjects: true }).find((formatColumn) => formatColumn.Uuid === id);
|
|
28
23
|
}
|
|
29
|
-
getAllActiveFormatColumn() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
31
|
-
return this.getActiveFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
32
|
-
}
|
|
33
24
|
getActiveFormatColumns(config) {
|
|
34
25
|
return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
|
|
35
26
|
}
|
|
36
|
-
getAllSuspendedFormatColumn() {
|
|
37
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
38
|
-
return this.getSuspendedFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
39
|
-
}
|
|
40
27
|
getSuspendedFormatColumns(config) {
|
|
41
28
|
return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
|
|
42
29
|
}
|
|
43
|
-
getAllFormatColumnWithStyle() {
|
|
44
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
45
|
-
return this.internalApi.getAllFormatColumnWithStyle();
|
|
46
|
-
}
|
|
47
|
-
getAllFormatColumnWithStyleAndCellAlignment() {
|
|
48
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
49
|
-
return this.internalApi.getAllFormatColumnWithStyleAndCellAlignment();
|
|
50
|
-
}
|
|
51
|
-
getAllFormatColumnWithDisplayFormat() {
|
|
52
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
53
|
-
return this.internalApi.getAllFormatColumnWithDisplayFormat();
|
|
54
|
-
}
|
|
55
|
-
getAllFormatColumnWithCellAlignment() {
|
|
56
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
57
|
-
return this.internalApi.getAllFormatColumnWithCellAlignment();
|
|
58
|
-
}
|
|
59
30
|
addFormatColumn(formatColumn) {
|
|
60
31
|
this.addUidToAdaptableObject(formatColumn);
|
|
61
32
|
this.dispatchAction(FormatColumnRedux.FormatColumnAdd(formatColumn));
|
|
@@ -94,10 +65,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
94
65
|
const formatColumns = this.getFormatColumns().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
95
66
|
return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
96
67
|
}
|
|
97
|
-
getFormatColumnsWithStyleForColumn(column, config) {
|
|
98
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
99
|
-
return this.internalApi.getFormatColumnsWithStyleForColumn(column, config);
|
|
100
|
-
}
|
|
101
68
|
getFormatColumnsForColumnId(columnId, config) {
|
|
102
69
|
const abColumn = this.adaptable.api.columnApi.getColumnWithColumnId(columnId);
|
|
103
70
|
if (!abColumn) {
|
|
@@ -105,18 +72,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
72
|
}
|
|
106
73
|
return this.getFormatColumnsForColumn(abColumn, config);
|
|
107
74
|
}
|
|
108
|
-
getFormatColumnWithStyleClassNameForColumn(column, config) {
|
|
109
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
110
|
-
return this.internalApi.getFormatColumnWithStyleClassNameForColumn(column, config);
|
|
111
|
-
}
|
|
112
|
-
getFormatColumnsWithDisplayFormatForColumn(column, config) {
|
|
113
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
114
|
-
return this.internalApi.getFormatColumnsWithDisplayFormatForColumn(column, config);
|
|
115
|
-
}
|
|
116
|
-
showFormatColumnPopup() {
|
|
117
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
118
|
-
this.openFormatColumnSettingsPanel();
|
|
119
|
-
}
|
|
120
75
|
openFormatColumnSettingsPanel() {
|
|
121
76
|
this.showModulePopup(ModuleConstants.FormatColumnModuleId);
|
|
122
77
|
}
|
|
@@ -129,18 +84,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
129
84
|
getFormatColumnsWithColumnScope(formatColumns) {
|
|
130
85
|
return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
|
|
131
86
|
}
|
|
132
|
-
getNumberFormattedValue(value, node, abColumn, options) {
|
|
133
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getNumberFormattedValue');
|
|
134
|
-
return this.internalApi.getNumberFormattedValue(value, node, abColumn, options);
|
|
135
|
-
}
|
|
136
|
-
getStringFormattedValue(value, node, abColumn, options) {
|
|
137
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getStringFormattedValue');
|
|
138
|
-
return this.internalApi.getStringFormattedValue(value, node, abColumn, options);
|
|
139
|
-
}
|
|
140
|
-
getDateFormattedValue(value, node, abColumn, options) {
|
|
141
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getDateFormattedValue');
|
|
142
|
-
return this.internalApi.getDateFormattedValue(value, node, abColumn, options);
|
|
143
|
-
}
|
|
144
87
|
hasCustomDisplayFormatter(formatColumn) {
|
|
145
88
|
var _a;
|
|
146
89
|
if (!formatColumn || !formatColumn.DisplayFormat || !formatColumn.DisplayFormat.Options) {
|
|
@@ -153,22 +96,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
153
96
|
}
|
|
154
97
|
return true;
|
|
155
98
|
}
|
|
156
|
-
getFormatColumnDefsForScope(scope) {
|
|
157
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
158
|
-
return this.internalApi.getFormatColumnDefsForScope(scope);
|
|
159
|
-
}
|
|
160
|
-
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
161
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
162
|
-
return this.internalApi.getFormatColumnsRelevantForColumn(formatColumns, column, params);
|
|
163
|
-
}
|
|
164
|
-
isFormatColumnRelevantForColumn(formatColumn, column, params) {
|
|
165
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
166
|
-
return this.internalApi.isFormatColumnRelevantForColumn(formatColumn, column, params);
|
|
167
|
-
}
|
|
168
|
-
getFormatColumnsWithExpression() {
|
|
169
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
170
|
-
return this.internalApi.getFormatColumnsWithExpression();
|
|
171
|
-
}
|
|
172
99
|
incrementFormatColumnPrecedence(formatColumn) {
|
|
173
100
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveUp(formatColumn));
|
|
174
101
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { FreeTextColumnApi } from '../FreeTextColumnApi';
|
|
3
3
|
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
|
|
4
|
-
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
5
4
|
import { IRowNode } from '@ag-grid-community/core';
|
|
6
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
7
6
|
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
@@ -9,21 +8,14 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
|
|
|
9
8
|
internalApi: FreeTextColumnInternalApi;
|
|
10
9
|
constructor(adaptable: IAdaptable);
|
|
11
10
|
getFreeTextColumnState(): FreeTextColumnState;
|
|
12
|
-
getAllFreeTextColumn(): FreeTextColumn[];
|
|
13
11
|
getFreeTextColumns(): FreeTextColumn[];
|
|
14
12
|
getFreeTextColumnById(technicalId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
|
|
15
13
|
getFreeTextColumnForColumnId(columnId: string): FreeTextColumn | undefined;
|
|
16
14
|
addFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
17
15
|
editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
18
|
-
addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
19
16
|
setStoredValue(columnId: string, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
20
|
-
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
21
17
|
setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
22
18
|
deleteFreeTextColumn(columnId: string): void;
|
|
23
|
-
showFreeTextColumnPopup(): void;
|
|
24
19
|
openFreeTextColumnSettingsPanel(): void;
|
|
25
|
-
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
26
20
|
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
27
|
-
checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
28
|
-
getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
|
|
29
21
|
}
|
|
@@ -7,7 +7,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
10
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
12
11
|
constructor(adaptable) {
|
|
13
12
|
super(adaptable);
|
|
@@ -16,10 +15,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
15
|
getFreeTextColumnState() {
|
|
17
16
|
return this.getAdaptableState().FreeTextColumn;
|
|
18
17
|
}
|
|
19
|
-
getAllFreeTextColumn() {
|
|
20
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
21
|
-
return this.getFreeTextColumns();
|
|
22
|
-
}
|
|
23
18
|
getFreeTextColumns() {
|
|
24
19
|
var _a;
|
|
25
20
|
return (_a = this.getFreeTextColumnState().FreeTextColumns) !== null && _a !== void 0 ? _a : [];
|
|
@@ -39,10 +34,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
34
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
|
|
40
35
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
41
36
|
}
|
|
42
|
-
addEditFreeTextColumnStoredValue(freeTextColumn, storedValue) {
|
|
43
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
44
|
-
return this.setStoredValue(freeTextColumn.ColumnId, storedValue);
|
|
45
|
-
}
|
|
46
37
|
setStoredValue(columnId, storedValue) {
|
|
47
38
|
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
48
39
|
if (!freeTextColumn) {
|
|
@@ -52,10 +43,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
43
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnAddEditStoredValue(freeTextColumn, storedValue));
|
|
53
44
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
54
45
|
}
|
|
55
|
-
addStoredValuesToFreeTextColumn(columnId, storedValues, replaceAction) {
|
|
56
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
57
|
-
this.setStoredValues(columnId, storedValues, replaceAction);
|
|
58
|
-
}
|
|
59
46
|
setStoredValues(columnId, storedValues, replaceAction) {
|
|
60
47
|
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
61
48
|
if (freeTextColumn) {
|
|
@@ -97,17 +84,9 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
97
84
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn));
|
|
98
85
|
}
|
|
99
86
|
}
|
|
100
|
-
showFreeTextColumnPopup() {
|
|
101
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
102
|
-
this.openFreeTextColumnSettingsPanel();
|
|
103
|
-
}
|
|
104
87
|
openFreeTextColumnSettingsPanel() {
|
|
105
88
|
this.showModulePopup(ModuleConstants.FreeTextColumnModuleId);
|
|
106
89
|
}
|
|
107
|
-
getFreeTextColumnValueFromRowNode(freeTextColumn, rowNode) {
|
|
108
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
109
|
-
return this.getFreeTextColumnValueForRowNode(freeTextColumn, rowNode);
|
|
110
|
-
}
|
|
111
90
|
getFreeTextColumnValueForRowNode(freeTextColumn, rowNode) {
|
|
112
91
|
try {
|
|
113
92
|
if (this.adaptable.api.gridApi.isGroupRowNode(rowNode)) {
|
|
@@ -127,13 +106,5 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
127
106
|
return null;
|
|
128
107
|
}
|
|
129
108
|
}
|
|
130
|
-
checkFreeTextColumnForDataChange(cellDataChangedInfo) {
|
|
131
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
132
|
-
return this.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
|
|
133
|
-
}
|
|
134
|
-
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
135
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
136
|
-
return this.internalApi.getFreeTextColumnModuleReferences(freeTextColumn);
|
|
137
|
-
}
|
|
138
109
|
}
|
|
139
110
|
exports.FreeTextColumnApiImpl = FreeTextColumnApiImpl;
|
|
@@ -22,7 +22,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
22
22
|
getGridState(): GridState;
|
|
23
23
|
setGridData(dataSource: any[]): void;
|
|
24
24
|
setInitialGridData(data: any): void;
|
|
25
|
-
loadGridData(dataSource: any): void;
|
|
26
25
|
getGridData(): any[];
|
|
27
26
|
getFilteredData(): any[];
|
|
28
27
|
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
@@ -86,7 +85,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
86
85
|
setRowGroupColumns(columnIds: string[]): void;
|
|
87
86
|
clearRowGroupColumns(): void;
|
|
88
87
|
expandAllRowGroups(): void;
|
|
89
|
-
closeAllRowGroups(): void;
|
|
90
88
|
collapseAllRowGroups(): void;
|
|
91
89
|
getExpandRowGroupsKeys(): any[];
|
|
92
90
|
expandRowGroupsForValues(columnValues: any[]): void;
|
|
@@ -101,9 +99,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
101
99
|
getCellRawValueCount(columnId: string, rawValue: any): number;
|
|
102
100
|
getGridCellsForDisplayValue(columnId: string, displayValue: any): GridCell[] | undefined;
|
|
103
101
|
getCellDisplayValueCount(columnId: string, displayValue: any): number;
|
|
104
|
-
fireGridSortedEvent(): void;
|
|
105
|
-
fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
106
|
-
fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
107
102
|
jumpToRow(primaryKeyValue: any): void;
|
|
108
103
|
jumpToColumn(columnId: string): void;
|
|
109
104
|
jumpToCell(primaryKeyValue: any, columnId: string): void;
|
|
@@ -121,7 +116,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
121
116
|
refreshRowNodes(rowNodes: IRowNode[]): void;
|
|
122
117
|
refreshGroupRowNodes(): void;
|
|
123
118
|
isCellEditable(gridCell: GridCell): boolean;
|
|
124
|
-
areCellsEditable(gridCells: GridCell[]): boolean;
|
|
125
119
|
isEveryCellEditable(gridCells: GridCell[]): boolean;
|
|
126
120
|
getRowCount(): number;
|
|
127
121
|
getVisibleRowCount(): number;
|
|
@@ -133,7 +127,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
133
127
|
deselectAll(): void;
|
|
134
128
|
destroy(): void;
|
|
135
129
|
getGridContainerElement(): HTMLElement | null;
|
|
136
|
-
showGridInfoPopup(): void;
|
|
137
130
|
openGridInfoSettingsPanel(): void;
|
|
138
131
|
getRowModelType(): RowModelType;
|
|
139
132
|
}
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
7
7
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
const GridInternalApi_1 = require("../Internal/GridInternalApi");
|
|
11
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
12
11
|
class GridApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -25,10 +24,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
24
|
setInitialGridData(data) {
|
|
26
25
|
this.adaptable.setDataSource(data);
|
|
27
26
|
}
|
|
28
|
-
loadGridData(dataSource) {
|
|
29
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'loadGridData', 'setInitialGridData');
|
|
30
|
-
this.setInitialGridData(dataSource);
|
|
31
|
-
}
|
|
32
27
|
getGridData() {
|
|
33
28
|
return this.adaptable.getGridData();
|
|
34
29
|
}
|
|
@@ -76,7 +71,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
71
|
this.adaptable.api.internalApi.getDataService().logUndoChange(cellDataChangedInfo);
|
|
77
72
|
const cellUpdateRequest = {
|
|
78
73
|
columnId: cellDataChangedInfo.column.columnId,
|
|
79
|
-
newValue: cellDataChangedInfo.
|
|
74
|
+
newValue: cellDataChangedInfo.oldValue,
|
|
80
75
|
primaryKeyValue: cellDataChangedInfo.primaryKeyValue,
|
|
81
76
|
rowNode: cellDataChangedInfo.rowNode,
|
|
82
77
|
};
|
|
@@ -137,7 +132,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
137
132
|
this.adaptable.api.filterApi.clearColumnFilters();
|
|
138
133
|
}
|
|
139
134
|
getAgGridInstance() {
|
|
140
|
-
return this.adaptable.
|
|
135
|
+
return this.adaptable.gridOptions;
|
|
141
136
|
}
|
|
142
137
|
getColumnSorts() {
|
|
143
138
|
return this.getAdaptableState().Grid.ColumnSorts;
|
|
@@ -342,10 +337,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
342
337
|
expandAllRowGroups() {
|
|
343
338
|
this.adaptable.expandAllRowGroups();
|
|
344
339
|
}
|
|
345
|
-
closeAllRowGroups() {
|
|
346
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'closeAllRowGroups', 'collapseAllRowGroups');
|
|
347
|
-
this.collapseAllRowGroups();
|
|
348
|
-
}
|
|
349
340
|
collapseAllRowGroups() {
|
|
350
341
|
this.adaptable.closeAllRowGroups();
|
|
351
342
|
}
|
|
@@ -411,18 +402,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
411
402
|
const gridCells = this.getGridCellsForDisplayValue(columnId, displayValue);
|
|
412
403
|
return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
|
|
413
404
|
}
|
|
414
|
-
fireGridSortedEvent() {
|
|
415
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridSortedEvent');
|
|
416
|
-
this.internalApi.fireGridSortedEvent();
|
|
417
|
-
}
|
|
418
|
-
fireCellChangedEvent(cellDataChangedInfo) {
|
|
419
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireCellChangedEvent');
|
|
420
|
-
this.internalApi.fireCellChangedEvent(cellDataChangedInfo);
|
|
421
|
-
}
|
|
422
|
-
fireGridDataChangedEvent(dataRows, rowNodes = [], rowTrigger) {
|
|
423
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridDataChangedEvent');
|
|
424
|
-
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger);
|
|
425
|
-
}
|
|
426
405
|
jumpToRow(primaryKeyValue) {
|
|
427
406
|
const node = this.adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
428
407
|
this.adaptable.jumpToRow(node);
|
|
@@ -488,7 +467,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
488
467
|
}
|
|
489
468
|
refreshGroupRowNodes() {
|
|
490
469
|
// see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
|
|
491
|
-
this.
|
|
470
|
+
this.getAgGridInstance().api.refreshClientSideRowModel('group');
|
|
492
471
|
this.adaptable.updateRowGroupsExpandedState();
|
|
493
472
|
}
|
|
494
473
|
isCellEditable(gridCell) {
|
|
@@ -504,10 +483,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
504
483
|
}
|
|
505
484
|
return this.adaptable.isCellEditable(gridCell.rowNode, this.adaptable.getAgGridColumnForColumnId(gridCell.column.columnId));
|
|
506
485
|
}
|
|
507
|
-
areCellsEditable(gridCells) {
|
|
508
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'areCellsEditable', 'isEveryCellEditable');
|
|
509
|
-
return this.isEveryCellEditable(gridCells);
|
|
510
|
-
}
|
|
511
486
|
isEveryCellEditable(gridCells) {
|
|
512
487
|
for (let gridCell of gridCells) {
|
|
513
488
|
if (!this.isCellEditable(gridCell)) {
|
|
@@ -546,10 +521,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
546
521
|
getGridContainerElement() {
|
|
547
522
|
return this.adaptable.getAgGridContainerElement();
|
|
548
523
|
}
|
|
549
|
-
showGridInfoPopup() {
|
|
550
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'showGridInfoPopup', 'openGridInfoSettingsPanel');
|
|
551
|
-
this.openGridInfoSettingsPanel();
|
|
552
|
-
}
|
|
553
524
|
openGridInfoSettingsPanel() {
|
|
554
525
|
this.showModulePopup(ModuleConstants.GridInfoModuleId);
|
|
555
526
|
}
|
|
@@ -10,18 +10,16 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
10
10
|
internalApi: LayoutInternalApi;
|
|
11
11
|
constructor(adaptable: IAdaptable);
|
|
12
12
|
getLayoutState(): LayoutState;
|
|
13
|
-
|
|
13
|
+
shouldAutoSaveLayouts: () => boolean;
|
|
14
14
|
getCurrentVisibleColumnIdsMap(): {
|
|
15
15
|
[key: string]: boolean;
|
|
16
16
|
};
|
|
17
17
|
getCurrentVisibleColumnIds(): string[];
|
|
18
18
|
setLayout(layoutName: string): void;
|
|
19
|
-
fireLayoutChangedEvent(trigger: string, oldState: LayoutState, newState: LayoutState, skipEqualityCheck?: boolean): void;
|
|
20
19
|
getCurrentLayout(): Layout;
|
|
21
20
|
getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
|
|
22
21
|
getCurrentLayoutName(): string;
|
|
23
22
|
getLayoutByName(layoutName: string): Layout | null;
|
|
24
|
-
getAllLayout(): Layout[];
|
|
25
23
|
getLayouts(): Layout[];
|
|
26
24
|
getLayoutById(id: Layout['Uuid']): Layout;
|
|
27
25
|
saveCurrentLayout(): void;
|
|
@@ -32,10 +30,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
32
30
|
cloneLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
33
31
|
setColumnCaption(columnId: string, caption: string): void;
|
|
34
32
|
createOrUpdateLayout(layout: Layout): void;
|
|
35
|
-
areLayoutsEqual(layout1: Layout, layout2: Layout): boolean;
|
|
36
|
-
createDefaultLayoutIfNeeded(): Layout | null;
|
|
37
33
|
showChangeColumnCaption(column: AdaptableColumn): void;
|
|
38
|
-
showLayoutPopup(): void;
|
|
39
34
|
openLayoutSettingsPanel(): void;
|
|
40
35
|
showLayoutEditor(layoutName?: string, action?: ModuleParams['action']): void;
|
|
41
36
|
isCurrentLayoutReadOnly(): boolean;
|
|
@@ -12,18 +12,13 @@ const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper
|
|
|
12
12
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
13
13
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
14
14
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
15
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
16
15
|
const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
|
|
17
16
|
class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
18
17
|
constructor(adaptable) {
|
|
19
18
|
super(adaptable);
|
|
20
|
-
this.
|
|
19
|
+
this.shouldAutoSaveLayouts = () => {
|
|
21
20
|
var _a;
|
|
22
|
-
|
|
23
|
-
if (layout && layout.AutoSave != null) {
|
|
24
|
-
autoSave = layout.AutoSave;
|
|
25
|
-
}
|
|
26
|
-
return autoSave;
|
|
21
|
+
return (_a = this.getLayoutOptions()) === null || _a === void 0 ? void 0 : _a.autoSaveLayouts;
|
|
27
22
|
};
|
|
28
23
|
this.internalApi = new LayoutInternalApi_1.LayoutInternalApi(adaptable);
|
|
29
24
|
}
|
|
@@ -49,10 +44,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
49
44
|
}
|
|
50
45
|
}
|
|
51
46
|
}
|
|
52
|
-
fireLayoutChangedEvent(trigger, oldState, newState, skipEqualityCheck) {
|
|
53
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'fireLayoutChangedEvent');
|
|
54
|
-
this.internalApi.fireLayoutChangedEvent(trigger, oldState, newState, skipEqualityCheck);
|
|
55
|
-
}
|
|
56
47
|
getCurrentLayout() {
|
|
57
48
|
const state = this.getAdaptableState();
|
|
58
49
|
if (state.Grid.CurrentLayout) {
|
|
@@ -77,10 +68,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
68
|
}
|
|
78
69
|
}
|
|
79
70
|
}
|
|
80
|
-
getAllLayout() {
|
|
81
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'LayouApi', 'getAllLayout', 'getLayouts');
|
|
82
|
-
return this.getLayouts();
|
|
83
|
-
}
|
|
84
71
|
getLayouts() {
|
|
85
72
|
var _a;
|
|
86
73
|
return (_a = this.getAdaptableState().Layout.Layouts) !== null && _a !== void 0 ? _a : [];
|
|
@@ -157,14 +144,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
157
144
|
this.dispatchAction(LayoutRedux.LayoutSave(layout));
|
|
158
145
|
}
|
|
159
146
|
}
|
|
160
|
-
areLayoutsEqual(layout1, layout2) {
|
|
161
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'areLayoutsEqual');
|
|
162
|
-
return this.internalApi.areLayoutsEqual(layout1, layout2);
|
|
163
|
-
}
|
|
164
|
-
createDefaultLayoutIfNeeded() {
|
|
165
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'createDefaultLayoutIfNeeded');
|
|
166
|
-
return this.internalApi.createDefaultLayoutIfNeeded();
|
|
167
|
-
}
|
|
168
147
|
showChangeColumnCaption(column) {
|
|
169
148
|
this.dispatchAction((0, PopupRedux_1.PopupShowPrompt)({
|
|
170
149
|
Header: `Change caption for '${column.friendlyName}'`,
|
|
@@ -174,10 +153,6 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
174
153
|
(0, LayoutRedux_1.LayoutSetColumnCaption)(this.getCurrentLayoutName(), column.columnId, inputText),
|
|
175
154
|
}));
|
|
176
155
|
}
|
|
177
|
-
showLayoutPopup() {
|
|
178
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'LayoutApi', 'showLayoutPopup', 'openLayoutSettingsPanel');
|
|
179
|
-
this.openLayoutSettingsPanel();
|
|
180
|
-
}
|
|
181
156
|
openLayoutSettingsPanel() {
|
|
182
157
|
this.showModulePopup(ModuleConstants.LayoutModuleId);
|
|
183
158
|
}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, SearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
|
|
3
|
+
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
4
|
+
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
4
5
|
export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
5
6
|
getAdaptableId(): string;
|
|
6
7
|
getAdaptableStateKey(): string;
|
|
7
|
-
getAgGridOptions(): GridOptions;
|
|
8
8
|
getAutogeneratePrimaryKey(): boolean;
|
|
9
9
|
getLicenseKey(): string;
|
|
10
10
|
getPrimaryKey(): string;
|
|
11
11
|
getUserName(): string;
|
|
12
12
|
getAdaptableOptions(): AdaptableOptions;
|
|
13
|
-
|
|
13
|
+
getActionColumnOptions(): ActionColumnOptions;
|
|
14
|
+
getActionRowOptions(): ActionRowOptions;
|
|
15
|
+
getCellSummaryOptions(): CellSummaryOptions;
|
|
16
|
+
getCalendarOptions(): CalendarOptions;
|
|
14
17
|
getColumnOptions(): ColumnOptions;
|
|
18
|
+
getCustomSortOptions(): CustomSortOptions;
|
|
15
19
|
getContainerOptions(): ContainerOptions;
|
|
20
|
+
getDataSetOptions(): DataSetOptions;
|
|
16
21
|
getNotificationsOptions(): NotificationsOptions;
|
|
17
22
|
getAlertOptions(): AlertOptions;
|
|
18
23
|
getDashboardOptions(): DashboardOptions;
|
|
19
24
|
getEditOptions(): EditOptions;
|
|
20
25
|
getExportOptions(): ExportOptions;
|
|
21
|
-
|
|
26
|
+
getGroupingOptions(): GroupingOptions;
|
|
22
27
|
getLayoutOptions(): LayoutOptions;
|
|
23
28
|
getMenuOptions(): MenuOptions;
|
|
24
29
|
getFilterOptions(): FilterOptions;
|
|
@@ -9,9 +9,6 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
9
9
|
getAdaptableStateKey() {
|
|
10
10
|
return this.adaptable.adaptableOptions.adaptableStateKey;
|
|
11
11
|
}
|
|
12
|
-
getAgGridOptions() {
|
|
13
|
-
return this.adaptable.adaptableOptions.gridOptions;
|
|
14
|
-
}
|
|
15
12
|
getAutogeneratePrimaryKey() {
|
|
16
13
|
return this.adaptable.adaptableOptions.autogeneratePrimaryKey;
|
|
17
14
|
}
|
|
@@ -27,15 +24,30 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
27
24
|
getAdaptableOptions() {
|
|
28
25
|
return this.getOptions();
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
return this.getOptions().
|
|
27
|
+
getActionColumnOptions() {
|
|
28
|
+
return this.getOptions().actionColumnOptions;
|
|
29
|
+
}
|
|
30
|
+
getActionRowOptions() {
|
|
31
|
+
return this.getOptions().actionRowOptions;
|
|
32
|
+
}
|
|
33
|
+
getCellSummaryOptions() {
|
|
34
|
+
return this.getOptions().cellSummaryOptions;
|
|
35
|
+
}
|
|
36
|
+
getCalendarOptions() {
|
|
37
|
+
return this.getOptions().calendarOptions;
|
|
32
38
|
}
|
|
33
39
|
getColumnOptions() {
|
|
34
40
|
return this.getOptions().columnOptions;
|
|
35
41
|
}
|
|
42
|
+
getCustomSortOptions() {
|
|
43
|
+
return this.getOptions().customSortOptions;
|
|
44
|
+
}
|
|
36
45
|
getContainerOptions() {
|
|
37
46
|
return this.getOptions().containerOptions;
|
|
38
47
|
}
|
|
48
|
+
getDataSetOptions() {
|
|
49
|
+
return this.getOptions().dataSetOptions;
|
|
50
|
+
}
|
|
39
51
|
getNotificationsOptions() {
|
|
40
52
|
return this.getOptions().notificationsOptions;
|
|
41
53
|
}
|
|
@@ -51,8 +63,8 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
63
|
getExportOptions() {
|
|
52
64
|
return this.getOptions().exportOptions;
|
|
53
65
|
}
|
|
54
|
-
|
|
55
|
-
return this.getOptions().
|
|
66
|
+
getGroupingOptions() {
|
|
67
|
+
return this.getOptions().groupingOptions;
|
|
56
68
|
}
|
|
57
69
|
getLayoutOptions() {
|
|
58
70
|
return this.getOptions().layoutOptions;
|
|
@@ -10,7 +10,6 @@ export declare class PlusMinusApiImpl extends ApiBase implements PlusMinusApi {
|
|
|
10
10
|
getAllSuspendedPlusMinus(): PlusMinusNudge[];
|
|
11
11
|
runPlusMinusNudge(plusMinusNudge: PlusMinusNudge, cellsToUpdate: GridCell[], direction: 'up' | 'down'): void;
|
|
12
12
|
applyPlusMinus(cellUpdateRequests: CellUpdateRequest[]): void;
|
|
13
|
-
showPlusMinusPopup(): void;
|
|
14
13
|
openPlusMinusSettingsPanel(): void;
|
|
15
14
|
editPlusMinusNudge(plusMinusNudge: PlusMinusNudge): PlusMinusNudge;
|
|
16
15
|
suspendPlusMinusNudge(plusMinusNudge: PlusMinusNudge): PlusMinusNudge;
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const PlusMinusRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
class PlusMinusApiImpl extends ApiBase_1.ApiBase {
|
|
10
9
|
getPlusMinusState() {
|
|
11
10
|
return this.getAdaptableState().PlusMinus;
|
|
@@ -31,10 +30,6 @@ class PlusMinusApiImpl extends ApiBase_1.ApiBase {
|
|
|
31
30
|
applyPlusMinus(cellUpdateRequests) {
|
|
32
31
|
this.dispatchAction(PlusMinusRedux.PlusMinusApply(cellUpdateRequests));
|
|
33
32
|
}
|
|
34
|
-
showPlusMinusPopup() {
|
|
35
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'PlusMinusApi', 'showPlusMinusPopup', 'openPlusMinusSettingsPanel');
|
|
36
|
-
this.openPlusMinusSettingsPanel();
|
|
37
|
-
}
|
|
38
33
|
openPlusMinusSettingsPanel() {
|
|
39
34
|
this.showModulePopup(ModuleConstants.PlusMinusModuleId);
|
|
40
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { PredicateApi } from '../PredicateApi';
|
|
3
3
|
import { PredicateDefHandlerParams, PredicateModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
4
|
-
import { AdaptablePredicate, AdaptablePredicateDef,
|
|
4
|
+
import { AdaptablePredicate, AdaptablePredicateDef, AdaptableColumnPredicate } from '../../types';
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
|
|
7
7
|
export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
|
|
@@ -16,16 +16,9 @@ export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
|
|
|
16
16
|
getCustomPredicateDefById(predicateId: string): AdaptablePredicateDef;
|
|
17
17
|
predicateToString(predicate: AdaptableColumnPredicate): string | undefined;
|
|
18
18
|
isValidPredicate(predicate: AdaptableColumnPredicate | undefined): boolean;
|
|
19
|
-
arePredicatesValid(predicates: AdaptablePredicate[]): boolean;
|
|
20
19
|
isEveryPredicateValid(predicates: AdaptablePredicate[]): boolean;
|
|
21
20
|
handleColumnPredicate(predicate: AdaptableColumnPredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
22
21
|
handleColumnPredicates(predicates: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
23
22
|
handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
24
23
|
handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
25
|
-
getEqualityPredicateForDataType(dataType: AdaptableColumnDataType): SystemFilterPredicateId;
|
|
26
|
-
hasPredicateValues(predicate: AdaptablePredicate): boolean;
|
|
27
|
-
getFilterPredicateDefs(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
28
|
-
getAlertPredicateDefs(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
29
|
-
getFormatColumnPredicateDefs(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
30
|
-
getFlashingCellPredicateDefs(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
31
24
|
}
|