@adaptabletools/adaptable 18.1.14 → 19.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/package.json +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +5 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +5 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +5 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +5 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +6 -2
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +2 -2
- package/src/Api/ColumnApi.d.ts +6 -0
- package/src/Api/ConfigApi.d.ts +22 -2
- package/src/Api/Events/LiveDataChanged.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +2 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +3 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ConfigApiImpl.js +16 -1
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +4 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +31 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -7
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +61 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -6
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -6
- package/src/Api/Internal/AdaptableInternalApi.js +5 -11
- package/src/Api/Internal/EntitlementInternalApi.d.ts +4 -0
- package/src/Api/Internal/EntitlementInternalApi.js +11 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
- package/src/Api/Internal/ExportInternalApi.js +576 -5
- package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -4
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
- package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +12 -0
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +2 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/GridRedux.js +8 -8
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/LayoutRedux.js +9 -9
- package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +1 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/PluginsRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxMerger.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +2 -4
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -2
- package/src/Strategy/ExportModule.js +17 -44
- package/src/Strategy/FlashingCellModule.js +2 -10
- package/src/Strategy/ScheduleModule.js +4 -6
- package/src/Strategy/SmartEditModule.js +1 -7
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +1 -3
- package/src/Utilities/Constants/FilterConstants.d.ts +10 -0
- package/src/Utilities/Constants/FilterConstants.js +8 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
- package/src/Utilities/Constants/GeneralConstants.js +42 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +0 -5
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +65 -0
- package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
- package/src/Utilities/Extensions/EnumExtensions.js +2 -12
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
- package/src/Utilities/Helpers/AdaptableHelper.js +7 -59
- package/src/Utilities/Helpers/FormatHelper.d.ts +9 -0
- package/src/Utilities/Helpers/FormatHelper.js +26 -14
- package/src/Utilities/Helpers/Helper.d.ts +0 -10
- package/src/Utilities/Helpers/Helper.js +0 -70
- package/src/Utilities/Services/ChartingService.d.ts +2 -2
- package/src/Utilities/Services/ChartingService.js +5 -11
- package/src/Utilities/Services/ModuleService.js +35 -31
- package/src/Utilities/Services/RowEditService.js +1 -6
- package/src/Utilities/Services/RowSummaryService.js +2 -2
- package/src/Utilities/Services/ValidationService.js +2 -16
- package/src/View/Alert/AlertEmptyView.js +1 -2
- package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +2 -12
- package/src/View/Components/ModuleValueSelector/index.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -3
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -7
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -12
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +3 -23
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -3
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.js +1 -6
- package/src/View/Dashboard/CustomToolbar.js +2 -9
- package/src/View/Dashboard/Dashboard.js +2 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -3
- package/src/View/Dashboard/DashboardToolbarFactory.js +1 -2
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -3
- package/src/View/Export/ExportViewPanel.js +2 -4
- package/src/View/Export/Wizard/ReportSummaryWizard.js +2 -6
- package/src/View/GridFilter/GridFilterExpressionEditor.js +2 -2
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -6
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -7
- package/src/View/Layout/SaveLayoutButton.js +1 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +8 -22
- package/src/agGrid/AdaptableAgGrid.d.ts +6 -7
- package/src/agGrid/AdaptableAgGrid.js +165 -146
- package/src/agGrid/AgGridAdapter.d.ts +0 -1
- package/src/agGrid/AgGridAdapter.js +8 -11
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
- package/src/agGrid/AgGridColumnAdapter.js +40 -14
- package/src/agGrid/BadgeRenderer.js +4 -22
- package/src/agGrid/FloatingFilterWrapper.js +21 -0
- package/src/agGrid/buildSortedColumnStateForLayout.d.ts +1 -1
- package/src/agGrid/buildSortedColumnStateForLayout.js +2 -2
- package/src/agGrid/defaultAdaptableOptions.js +35 -30
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -15
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +89 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +10 -9
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
- package/src/Redux/ActionsReducers/QueryRedux.js +0 -20
- package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
- package/src/Utilities/Helpers/FormatContentHelper.js +0 -34
- package/src/Utilities/Services/EntitlementService.d.ts +0 -14
- package/src/Utilities/Services/EntitlementService.js +0 -63
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
- package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
- package/src/Utilities/Services/Interface/IReportService.js +0 -1
- package/src/Utilities/Services/ReportService.d.ts +0 -41
- package/src/Utilities/Services/ReportService.js +0 -603
- package/src/Utilities/isAdaptableObject.d.ts +0 -2
- package/src/Utilities/isAdaptableObject.js +0 -4
- package/src/Utilities/reorder.d.ts +0 -1
- package/src/Utilities/reorder.js +0 -13
- package/src/Utilities/sortWithOrder.d.ts +0 -11
- package/src/Utilities/sortWithOrder.js +0 -50
- /package/src/{Utilities/Services/Interface/IEntitlementService.js → PredefinedConfig/Common/ExtendedLayoutInfo.js} +0 -0
|
@@ -10,11 +10,9 @@ import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChang
|
|
|
10
10
|
import { ActionColumn, ActionColumnContext, AdaptableIcon, AdaptableObjectLookupCriteria, AdaptableQuery, AdaptableState, BaseContext } from '../../types';
|
|
11
11
|
import { IValidationService } from '../../Utilities/Services/Interface/IValidationService';
|
|
12
12
|
import { IModuleService } from '../../Utilities/Services/Interface/IModuleService';
|
|
13
|
-
import { IReportService } from '../../Utilities/Services/Interface/IReportService';
|
|
14
13
|
import { ICalculatedColumnExpressionService } from '../../Utilities/Services/Interface/ICalculatedColumnExpressionService';
|
|
15
14
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
16
15
|
import { IDataService } from '../../Utilities/Services/Interface/IDataService';
|
|
17
|
-
import { IEntitlementService } from '../../Utilities/Services/Interface/IEntitlementService';
|
|
18
16
|
import { IQueryLanguageService } from '../../Utilities/Services/Interface/IQueryLanguageService';
|
|
19
17
|
import { IAlertService } from '../../Utilities/Services/Interface/IAlertService';
|
|
20
18
|
import { ColDef, IRowNode } from '@ag-grid-community/core';
|
|
@@ -43,8 +41,8 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
43
41
|
factoryId: string;
|
|
44
42
|
}): void;
|
|
45
43
|
hidePopupScreen(): void;
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
setSettingsPanelItems(menuItems: AdaptableMenuItem[]): void;
|
|
45
|
+
setMenuModuleItems(menuItems: AdaptableMenuItem[]): void;
|
|
48
46
|
setPivotModeOn(): void;
|
|
49
47
|
setPivotModeOff(): void;
|
|
50
48
|
isGridInPivotMode(): boolean;
|
|
@@ -59,9 +57,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
59
57
|
getModuleService(): IModuleService;
|
|
60
58
|
getDataService(): IDataService;
|
|
61
59
|
getCellPopupService(): CellPopupService;
|
|
62
|
-
getReportService(): IReportService;
|
|
63
60
|
getCalculatedColumnExpressionService(): ICalculatedColumnExpressionService;
|
|
64
|
-
getEntitlementService(): IEntitlementService;
|
|
65
61
|
getQueryLanguageService(): IQueryLanguageService;
|
|
66
62
|
getAlertService(): IAlertService;
|
|
67
63
|
getTeamSharingService(): ITeamSharingService;
|
|
@@ -35,11 +35,11 @@ export class AdaptableInternalApi extends ApiBase {
|
|
|
35
35
|
hidePopupScreen() {
|
|
36
36
|
this.dispatchAction(PopupRedux.PopupHideScreen());
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
this.dispatchAction(GridRedux.
|
|
38
|
+
setSettingsPanelItems(menuItems) {
|
|
39
|
+
this.dispatchAction(GridRedux.setSettingsPanelItems(menuItems));
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
this.dispatchAction(GridRedux.
|
|
41
|
+
setMenuModuleItems(menuItems) {
|
|
42
|
+
this.dispatchAction(GridRedux.SetMenuModuleItems(menuItems));
|
|
43
43
|
}
|
|
44
44
|
setPivotModeOn() {
|
|
45
45
|
this.dispatchAction(GridRedux.SetPivotModeOn());
|
|
@@ -96,15 +96,9 @@ export class AdaptableInternalApi extends ApiBase {
|
|
|
96
96
|
getCellPopupService() {
|
|
97
97
|
return this.adaptable.CellPopupService;
|
|
98
98
|
}
|
|
99
|
-
getReportService() {
|
|
100
|
-
return this.adaptable.ReportService;
|
|
101
|
-
}
|
|
102
99
|
getCalculatedColumnExpressionService() {
|
|
103
100
|
return this.adaptable.CalculatedColumnExpressionService;
|
|
104
101
|
}
|
|
105
|
-
getEntitlementService() {
|
|
106
|
-
return this.adaptable.EntitlementService;
|
|
107
|
-
}
|
|
108
102
|
getQueryLanguageService() {
|
|
109
103
|
return this.adaptable.QueryLanguageService;
|
|
110
104
|
}
|
|
@@ -451,7 +445,7 @@ export class AdaptableInternalApi extends ApiBase {
|
|
|
451
445
|
getActionButtonsAndActionColumn(colDef) {
|
|
452
446
|
var _a;
|
|
453
447
|
let actionColumn;
|
|
454
|
-
if (colDef.colId
|
|
448
|
+
if (this.getAdaptableApi().columnApi.internalApi.isActionRowButtonColumn(colDef.colId)) {
|
|
455
449
|
const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
|
|
456
450
|
actionColumn = {
|
|
457
451
|
columnId: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
+
export class EntitlementInternalApi extends ApiBase {
|
|
3
|
+
setModulesEntitlements() {
|
|
4
|
+
this.getAdaptableApi()
|
|
5
|
+
.internalApi.getModuleService()
|
|
6
|
+
.getModuleCollection()
|
|
7
|
+
.forEach((module) => {
|
|
8
|
+
module.setModuleEntitlement();
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
|
-
import { Report } from '../../PredefinedConfig/ExportState';
|
|
3
|
+
import { Report, ReportData, SystemReportName } from '../../PredefinedConfig/ExportState';
|
|
4
4
|
import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
|
|
5
|
-
import { ExcelDataType, ExcelStyle } from '@ag-grid-community/core';
|
|
5
|
+
import { ExcelDataType, ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
6
6
|
import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
|
-
import { DataFormatType } from '../../AdaptableOptions/ExportOptions';
|
|
7
|
+
import { AdaptableReportColumn, CustomDestination, DataFormatType, SystemExportDestination } from '../../AdaptableOptions/ExportOptions';
|
|
8
8
|
export declare class ExportInternalApi extends ApiBase {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* @param report report to check
|
|
13
|
-
*/
|
|
9
|
+
private excelStylesCache;
|
|
10
|
+
private cellClassKey2excelStyleIdMap;
|
|
11
|
+
private excelStylesWithFormattedDate;
|
|
14
12
|
isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
|
|
15
13
|
getExcelDataType(adaptableColumnType: string | string[] | AdaptableColumnType | AdaptableColumnType[]): ExcelDataType;
|
|
16
14
|
isVisualDataExportInProgress(): boolean;
|
|
@@ -18,4 +16,31 @@ export declare class ExportInternalApi extends ApiBase {
|
|
|
18
16
|
getCellExportFormatType(column: AdaptableColumn, columnDataType: AdaptableColumnDataType): DataFormatType;
|
|
19
17
|
isDestinationEnabled(destination: string): boolean;
|
|
20
18
|
getExcelStylesForVisualDataExport(original_excelStyles: ExcelStyle[]): ExcelStyle[];
|
|
19
|
+
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
20
|
+
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
21
|
+
createSystemReport(systemReportName: SystemReportName): Report;
|
|
22
|
+
isSystemReport(reportName: string): boolean;
|
|
23
|
+
isSystemReportActive(reportName: SystemReportName): boolean;
|
|
24
|
+
isSystemExportDestinationActive(exportDestination: SystemExportDestination): boolean;
|
|
25
|
+
getReportColumnScopeShortDescription(report: Report): string[];
|
|
26
|
+
getReportColumnScopeLongDescription(report: Report): string;
|
|
27
|
+
getReportExpressionDescription(report: Report, cols: AdaptableColumn[]): string;
|
|
28
|
+
getReportDataColumns(report: Report, includePrimaryKey?: boolean): AdaptableReportColumn[];
|
|
29
|
+
getReportDataRows(report: Report, columns: AdaptableReportColumn[], includePrimaryKey?: boolean): Record<string, any>[];
|
|
30
|
+
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
31
|
+
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
32
|
+
convertReportDataToArray(reportData: ReportData): any[][];
|
|
33
|
+
getRowObjectForColumnIds(rowNode: IRowNode, columnIds: string[]): Record<string, any>;
|
|
34
|
+
publishLiveLiveDataChangedEvent(reportDestination: 'ipushpull' | 'OpenFin', liveDataTrigger: 'Connected' | 'Disconnected' | 'SnapshotSent' | 'LiveDataStarted' | 'LiveDataStopped' | 'LiveDataUpdated', liveReport?: any): void;
|
|
35
|
+
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
36
|
+
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string): any;
|
|
37
|
+
getReportFileName(reportName: string, destination: SystemExportDestination | CustomDestination): string;
|
|
38
|
+
private getCustomExportDateFormat;
|
|
39
|
+
private getCellExportValueFromRawValueByType;
|
|
40
|
+
buildExcelStylesForVisualReports(): ExcelStyle[];
|
|
41
|
+
createExcelStyleMemoization(): void;
|
|
42
|
+
private convertCSSToExcelStyle;
|
|
43
|
+
private resetExcelStyleMemoization;
|
|
44
|
+
private registerExcelStyle;
|
|
45
|
+
private registerExcelStyleWithFormattedDate;
|
|
21
46
|
}
|