@adaptabletools/adaptable-cjs 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.
Files changed (160) hide show
  1. package/package.json +2 -2
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -5
  3. package/src/AdaptableOptions/AlertOptions.d.ts +2 -1
  4. package/src/AdaptableOptions/ChartingOptions.d.ts +5 -1
  5. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +5 -1
  6. package/src/AdaptableOptions/DashboardOptions.d.ts +5 -1
  7. package/src/AdaptableOptions/FlashingCellOptions.d.ts +5 -1
  8. package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
  9. package/src/AdaptableOptions/NotificationsOptions.d.ts +6 -2
  10. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -1
  11. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
  12. package/src/Api/ChartingApi.d.ts +2 -2
  13. package/src/Api/ColumnApi.d.ts +6 -0
  14. package/src/Api/ConfigApi.d.ts +22 -2
  15. package/src/Api/Events/LiveDataChanged.d.ts +1 -1
  16. package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
  17. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  18. package/src/Api/Implementation/ChartingApiImpl.js +2 -2
  19. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  20. package/src/Api/Implementation/ColumnApiImpl.js +3 -0
  21. package/src/Api/Implementation/ConfigApiImpl.d.ts +4 -1
  22. package/src/Api/Implementation/ConfigApiImpl.js +16 -1
  23. package/src/Api/Implementation/EntitlementApiImpl.d.ts +4 -1
  24. package/src/Api/Implementation/EntitlementApiImpl.js +31 -6
  25. package/src/Api/Implementation/ExportApiImpl.js +5 -7
  26. package/src/Api/Implementation/GridApiImpl.js +1 -1
  27. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  28. package/src/Api/Implementation/LayoutApiImpl.js +61 -0
  29. package/src/Api/Implementation/TeamSharingApiImpl.js +2 -6
  30. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -6
  31. package/src/Api/Internal/AdaptableInternalApi.js +5 -11
  32. package/src/Api/Internal/EntitlementInternalApi.d.ts +4 -0
  33. package/src/Api/Internal/EntitlementInternalApi.js +15 -0
  34. package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
  35. package/src/Api/Internal/ExportInternalApi.js +577 -5
  36. package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
  37. package/src/Api/Internal/NamedQueryInternalApi.js +0 -5
  38. package/src/Api/LayoutApi.d.ts +7 -0
  39. package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
  40. package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +12 -0
  41. package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +2 -1
  42. package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
  43. package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -6
  44. package/src/Redux/ActionsReducers/GridRedux.js +11 -11
  45. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
  46. package/src/Redux/ActionsReducers/LayoutRedux.js +10 -10
  47. package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
  48. package/src/Redux/ActionsReducers/NamedQueryRedux.js +1 -1
  49. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +2 -2
  50. package/src/Redux/ActionsReducers/PluginsRedux.js +3 -3
  51. package/src/Redux/Store/AdaptableReduxMerger.js +3 -3
  52. package/src/Redux/Store/AdaptableStore.js +2 -4
  53. package/src/Strategy/AdaptableModuleBase.js +1 -2
  54. package/src/Strategy/ColumnFilterModule.js +1 -2
  55. package/src/Strategy/ExportModule.js +17 -44
  56. package/src/Strategy/FlashingCellModule.js +2 -10
  57. package/src/Strategy/ScheduleModule.js +4 -6
  58. package/src/Strategy/SmartEditModule.js +1 -7
  59. package/src/Strategy/TeamSharingModule.js +2 -2
  60. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -1
  61. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +1 -3
  62. package/src/Utilities/Constants/FilterConstants.d.ts +10 -0
  63. package/src/Utilities/Constants/FilterConstants.js +11 -0
  64. package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
  65. package/src/Utilities/Constants/GeneralConstants.js +44 -5
  66. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
  67. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -6
  68. package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
  69. package/src/Utilities/Extensions/ArrayExtensions.js +68 -1
  70. package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
  71. package/src/Utilities/Extensions/EnumExtensions.js +3 -15
  72. package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
  73. package/src/Utilities/Helpers/AdaptableHelper.js +10 -64
  74. package/src/Utilities/Helpers/FormatHelper.d.ts +9 -0
  75. package/src/Utilities/Helpers/FormatHelper.js +26 -14
  76. package/src/Utilities/Helpers/Helper.d.ts +0 -10
  77. package/src/Utilities/Helpers/Helper.js +1 -76
  78. package/src/Utilities/Services/ChartingService.d.ts +2 -2
  79. package/src/Utilities/Services/ChartingService.js +5 -11
  80. package/src/Utilities/Services/ModuleService.js +35 -31
  81. package/src/Utilities/Services/RowEditService.js +1 -6
  82. package/src/Utilities/Services/RowSummaryService.js +2 -2
  83. package/src/Utilities/Services/ValidationService.js +2 -16
  84. package/src/View/Alert/AlertEmptyView.js +1 -2
  85. package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
  86. package/src/View/Charting/useChartingElements.js +1 -1
  87. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -6
  88. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -4
  89. package/src/View/Components/FilterForm/QuickFilterForm.js +2 -12
  90. package/src/View/Components/ModuleValueSelector/index.js +2 -2
  91. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -5
  92. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -3
  93. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
  94. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -7
  95. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -12
  96. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +3 -23
  97. package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -5
  98. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -3
  99. package/src/View/Components/ValueSelector/index.js +2 -2
  100. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +2 -2
  101. package/src/View/Dashboard/CustomDashboardButton.js +1 -6
  102. package/src/View/Dashboard/CustomToolbar.js +2 -9
  103. package/src/View/Dashboard/Dashboard.js +2 -4
  104. package/src/View/Dashboard/DashboardPopup.js +1 -3
  105. package/src/View/Dashboard/DashboardToolbarFactory.js +1 -2
  106. package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
  107. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -3
  108. package/src/View/Export/ExportViewPanel.js +2 -4
  109. package/src/View/Export/Wizard/ReportSummaryWizard.js +2 -6
  110. package/src/View/GridFilter/GridFilterExpressionEditor.js +2 -2
  111. package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -6
  112. package/src/View/Layout/LayoutViewPanel.js +1 -1
  113. package/src/View/Layout/PivotDetailsPopoup.js +1 -7
  114. package/src/View/Layout/SaveLayoutButton.js +1 -3
  115. package/src/View/Layout/Wizard/sections/AggregationsSection.js +2 -2
  116. package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -2
  117. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
  118. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
  119. package/src/View/Layout/Wizard/sections/RowSummarySection.js +2 -2
  120. package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
  121. package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +3 -3
  122. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  123. package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
  124. package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
  125. package/src/agGrid/ActionColumnRenderer.js +8 -22
  126. package/src/agGrid/AdaptableAgGrid.d.ts +6 -7
  127. package/src/agGrid/AdaptableAgGrid.js +164 -145
  128. package/src/agGrid/AgGridAdapter.d.ts +0 -1
  129. package/src/agGrid/AgGridAdapter.js +7 -10
  130. package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
  131. package/src/agGrid/AgGridColumnAdapter.js +39 -13
  132. package/src/agGrid/BadgeRenderer.js +4 -22
  133. package/src/agGrid/FloatingFilterWrapper.js +21 -0
  134. package/src/agGrid/buildSortedColumnStateForLayout.d.ts +1 -1
  135. package/src/agGrid/buildSortedColumnStateForLayout.js +2 -2
  136. package/src/agGrid/defaultAdaptableOptions.js +35 -30
  137. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -15
  138. package/src/env.js +2 -2
  139. package/src/metamodel/adaptable.metamodel.d.ts +89 -8
  140. package/src/metamodel/adaptable.metamodel.js +1 -1
  141. package/src/types.d.ts +10 -9
  142. package/tsconfig.cjs.tsbuildinfo +1 -1
  143. package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
  144. package/src/Redux/ActionsReducers/QueryRedux.js +0 -25
  145. package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
  146. package/src/Utilities/Helpers/FormatContentHelper.js +0 -39
  147. package/src/Utilities/Services/EntitlementService.d.ts +0 -14
  148. package/src/Utilities/Services/EntitlementService.js +0 -67
  149. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
  150. package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
  151. package/src/Utilities/Services/Interface/IReportService.js +0 -2
  152. package/src/Utilities/Services/ReportService.d.ts +0 -41
  153. package/src/Utilities/Services/ReportService.js +0 -608
  154. package/src/Utilities/isAdaptableObject.d.ts +0 -2
  155. package/src/Utilities/isAdaptableObject.js +0 -8
  156. package/src/Utilities/reorder.d.ts +0 -1
  157. package/src/Utilities/reorder.js +0 -17
  158. package/src/Utilities/sortWithOrder.d.ts +0 -11
  159. package/src/Utilities/sortWithOrder.js +0 -54
  160. /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
- setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
47
- setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
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;
@@ -39,11 +39,11 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
39
39
  hidePopupScreen() {
40
40
  this.dispatchAction(PopupRedux.PopupHideScreen());
41
41
  }
42
- setSettingPanelModuleMenuItems(menuItems) {
43
- this.dispatchAction(GridRedux.SetSettingPanelModuleMenuItems(menuItems));
42
+ setSettingsPanelItems(menuItems) {
43
+ this.dispatchAction(GridRedux.setSettingsPanelItems(menuItems));
44
44
  }
45
- setModuleButtonMenuItems(menuItems) {
46
- this.dispatchAction(GridRedux.SetModuleButtonMenuItems(menuItems));
45
+ setMenuModuleItems(menuItems) {
46
+ this.dispatchAction(GridRedux.SetMenuModuleItems(menuItems));
47
47
  }
48
48
  setPivotModeOn() {
49
49
  this.dispatchAction(GridRedux.SetPivotModeOn());
@@ -100,15 +100,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
100
100
  getCellPopupService() {
101
101
  return this.adaptable.CellPopupService;
102
102
  }
103
- getReportService() {
104
- return this.adaptable.ReportService;
105
- }
106
103
  getCalculatedColumnExpressionService() {
107
104
  return this.adaptable.CalculatedColumnExpressionService;
108
105
  }
109
- getEntitlementService() {
110
- return this.adaptable.EntitlementService;
111
- }
112
106
  getQueryLanguageService() {
113
107
  return this.adaptable.QueryLanguageService;
114
108
  }
@@ -455,7 +449,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
455
449
  getActionButtonsAndActionColumn(colDef) {
456
450
  var _a;
457
451
  let actionColumn;
458
- if (colDef.colId == GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
452
+ if (this.getAdaptableApi().columnApi.internalApi.isActionRowButtonColumn(colDef.colId)) {
459
453
  const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
460
454
  actionColumn = {
461
455
  columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
@@ -0,0 +1,4 @@
1
+ import { ApiBase } from '../Implementation/ApiBase';
2
+ export declare class EntitlementInternalApi extends ApiBase {
3
+ setModulesEntitlements(): void;
4
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntitlementInternalApi = void 0;
4
+ const ApiBase_1 = require("../Implementation/ApiBase");
5
+ class EntitlementInternalApi extends ApiBase_1.ApiBase {
6
+ setModulesEntitlements() {
7
+ this.getAdaptableApi()
8
+ .internalApi.getModuleService()
9
+ .getModuleCollection()
10
+ .forEach((module) => {
11
+ module.setModuleEntitlement();
12
+ });
13
+ }
14
+ }
15
+ exports.EntitlementInternalApi = EntitlementInternalApi;
@@ -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
- * Whether given data change affects given report
11
- * @param cellDataChangedInfo data change to check
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
  }