@adaptabletools/adaptable 18.0.0-canary.16 → 18.0.0-canary.18

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 (74) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
  3. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -3
  4. package/src/Api/GridApi.d.ts +1 -1
  5. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
  6. package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
  7. package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
  8. package/src/Api/Implementation/GridApiImpl.js +1 -1
  9. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  10. package/src/Api/Internal/AdaptableInternalApi.js +0 -3
  11. package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
  12. package/src/Api/Internal/GridFilterInternalApi.js +6 -0
  13. package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
  14. package/src/PredefinedConfig/Common/Enums.js +1 -0
  15. package/src/PredefinedConfig/Common/Menu.d.ts +15 -1
  16. package/src/PredefinedConfig/Common/Menu.js +97 -1
  17. package/src/PredefinedConfig/Common/RowSummary.d.ts +3 -1
  18. package/src/PredefinedConfig/Common/RowSummary.js +16 -0
  19. package/src/Redux/Store/AdaptableStore.js +11 -6
  20. package/src/Strategy/AdaptableModuleBase.d.ts +6 -5
  21. package/src/Strategy/AdaptableModuleBase.js +9 -8
  22. package/src/Strategy/AlertModule.js +1 -1
  23. package/src/Strategy/BulkUpdateModule.js +1 -1
  24. package/src/Strategy/CalculatedColumnModule.js +1 -1
  25. package/src/Strategy/CellSummaryModule.d.ts +7 -6
  26. package/src/Strategy/CellSummaryModule.js +37 -12
  27. package/src/Strategy/ColumnFilterModule.d.ts +1 -1
  28. package/src/Strategy/ColumnFilterModule.js +43 -39
  29. package/src/Strategy/ColumnInfoModule.js +2 -0
  30. package/src/Strategy/CommentModule.js +2 -2
  31. package/src/Strategy/CustomSortModule.js +2 -1
  32. package/src/Strategy/DashboardModule.js +8 -7
  33. package/src/Strategy/DataImportModule.js +1 -1
  34. package/src/Strategy/ExportModule.d.ts +1 -0
  35. package/src/Strategy/ExportModule.js +17 -2
  36. package/src/Strategy/Fdc3Module.js +3 -0
  37. package/src/Strategy/FlashingCellModule.js +4 -4
  38. package/src/Strategy/FormatColumnModule.js +6 -4
  39. package/src/Strategy/FreeTextColumnModule.js +1 -1
  40. package/src/Strategy/GridInfoModule.js +2 -0
  41. package/src/Strategy/LayoutModule.js +32 -23
  42. package/src/Strategy/NoteModule.js +2 -2
  43. package/src/Strategy/PlusMinusModule.js +1 -1
  44. package/src/Strategy/SettingsPanelModule.js +3 -3
  45. package/src/Strategy/SmartEditModule.js +1 -1
  46. package/src/Strategy/StyledColumnModule.d.ts +1 -0
  47. package/src/Strategy/StyledColumnModule.js +26 -5
  48. package/src/Strategy/SystemStatusModule.js +2 -2
  49. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -2
  50. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +124 -3
  51. package/src/Utilities/MenuItem.d.ts +7 -4
  52. package/src/Utilities/MenuItem.js +6 -3
  53. package/src/Utilities/Services/LicenseService/index.js +1 -1
  54. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  55. package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
  56. package/src/View/Components/ValueSelector/index.js +1 -1
  57. package/src/View/Layout/Wizard/LayoutWizard.js +26 -2
  58. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +1 -0
  59. package/src/View/Layout/Wizard/sections/RowSummarySection.js +26 -2
  60. package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
  61. package/src/agGrid/AdaptableAgGrid.js +7 -3
  62. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  63. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  64. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
  65. package/src/agGrid/weightedAverage.d.ts +0 -2
  66. package/src/agGrid/weightedAverage.js +0 -54
  67. package/src/components/Datepicker/index.js +3 -1
  68. package/src/env.js +2 -2
  69. package/src/metamodel/adaptable.metamodel.js +1 -1
  70. package/tsconfig.esm.tsbuildinfo +1 -1
  71. package/src/Utilities/Services/Interface/ISummaryService.d.ts +0 -17
  72. package/src/Utilities/Services/Interface/ISummaryService.js +0 -12
  73. package/src/Utilities/Services/SummaryService.d.ts +0 -10
  74. package/src/Utilities/Services/SummaryService.js +0 -17
@@ -1,4 +1,3 @@
1
- import FormatHelper from '../Utilities/Helpers/FormatHelper';
2
1
  import toNumber from 'lodash/toNumber';
3
2
  export const getNumericValue = (input) => {
4
3
  if (typeof input === 'number') {
@@ -46,56 +45,3 @@ export const weightedAverage = (params, columnId, weightColumnId) => {
46
45
  [weightColumnId]: weightedColumnValueSum,
47
46
  };
48
47
  };
49
- export const cellSummaryWeightedAverage = ({ numericColumns, selectedCellInfo, adaptableApi, }) => {
50
- if ((numericColumns === null || numericColumns === void 0 ? void 0 : numericColumns.length) != 1) {
51
- return '';
52
- }
53
- const columnId = numericColumns[0];
54
- const currentLayout = adaptableApi.layoutApi.getCurrentLayout();
55
- const selectedColumnAgg = currentLayout.AggregationColumns[columnId];
56
- if (!selectedColumnAgg ||
57
- typeof selectedColumnAgg !== 'object' ||
58
- selectedColumnAgg.type !== 'weightedAverage') {
59
- return '';
60
- }
61
- const weightedColumnId = selectedColumnAgg.weightedColumnId;
62
- if (weightedColumnId) {
63
- let sumWeightedValue = 0;
64
- let sumPrimaryValues = 0;
65
- let isValid = true;
66
- selectedCellInfo.gridCells.forEach((gridCell) => {
67
- if (adaptableApi.gridApi.isGroupRowNode(gridCell.rowNode)) {
68
- isValid = false;
69
- }
70
- if (isValid) {
71
- const weightedGridCell = adaptableApi.gridApi.getGridCellFromRowNode(gridCell.rowNode, weightedColumnId);
72
- sumWeightedValue += weightedGridCell.rawValue;
73
- sumPrimaryValues += weightedGridCell.rawValue * gridCell.normalisedValue;
74
- }
75
- });
76
- if (!isValid) {
77
- return '';
78
- }
79
- const abColumn = adaptableApi.columnApi.getColumnWithColumnId(columnId);
80
- if (!abColumn) {
81
- return '';
82
- }
83
- const activeFormatColumnsWithDisplayFormat = adaptableApi.formatColumnApi.internalApi.getFormatColumnsWithDisplayFormatForColumn(abColumn);
84
- if (activeFormatColumnsWithDisplayFormat.length === 1 &&
85
- activeFormatColumnsWithDisplayFormat[0].DisplayFormat.Formatter === 'NumberFormatter') {
86
- // there only one FormatColumn on this column, so we will use it to format the aggregated value
87
- const [singleActiveFormatColumnsWithDisplayFormat] = activeFormatColumnsWithDisplayFormat;
88
- const options = singleActiveFormatColumnsWithDisplayFormat
89
- .DisplayFormat.Options;
90
- if (options) {
91
- return FormatHelper.NumberFormatter(sumPrimaryValues / sumWeightedValue, options);
92
- }
93
- }
94
- else {
95
- // there are multiple (possibly conflicting) FormatColumns for this column, we cannot know which to use
96
- return FormatHelper.NumberFormatter(sumPrimaryValues / sumWeightedValue, {
97
- FractionDigits: 2,
98
- });
99
- }
100
- }
101
- };
@@ -100,7 +100,9 @@ export const Datepicker = React.forwardRef((props, ref) => {
100
100
  setVisible(true);
101
101
  }
102
102
  } }),
103
- React.createElement(AdaptableDateInlineInput, { ref: ref, value: inputValue, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : dateProps.format, onChange: (value) => {
103
+ React.createElement(AdaptableDateInlineInput, { ref: ref, value: inputValue,
104
+ // We do not want to show the format when the date-picker is visible
105
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : '', onChange: (value) => {
104
106
  const date = new Date(value);
105
107
  if (isValid(date)) {
106
108
  updateValue(date);
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1711464524865 || Date.now(),
4
- VERSION: "18.0.0-canary.16" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1711631045792 || Date.now(),
4
+ VERSION: "18.0.0-canary.18" || '--current-version--',
5
5
  };