@adaptabletools/adaptable 18.0.0-canary.11 → 18.0.0-canary.12

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 (80) hide show
  1. package/base.css +4 -0
  2. package/base.css.map +1 -1
  3. package/index.css +6 -0
  4. package/index.css.map +1 -1
  5. package/package.json +1 -1
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
  7. package/src/AdaptableOptions/ColumnOptions.d.ts +7 -4
  8. package/src/AdaptableOptions/CommentOptions.d.ts +9 -7
  9. package/src/AdaptableOptions/NoteOptions.d.ts +4 -1
  10. package/src/Api/AdaptableApi.d.ts +2 -2
  11. package/src/Api/ColumnApi.d.ts +4 -0
  12. package/src/Api/CommentApi.d.ts +11 -12
  13. package/src/Api/ConfigApi.d.ts +2 -2
  14. package/src/Api/EventApi.d.ts +7 -9
  15. package/src/Api/Events/CommentChanged.d.ts +11 -0
  16. package/src/Api/GridApi.d.ts +4 -0
  17. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  18. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  19. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  20. package/src/Api/Implementation/ApiBase.js +1 -1
  21. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  22. package/src/Api/Implementation/ColumnApiImpl.js +10 -0
  23. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -2
  24. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
  25. package/src/Api/Implementation/ConfigApiImpl.js +2 -2
  26. package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
  27. package/src/Api/Implementation/GridApiImpl.js +9 -0
  28. package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +7 -7
  29. package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +5 -5
  30. package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -5
  31. package/src/Api/Implementation/OptionsApiImpl.js +2 -12
  32. package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -1
  33. package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
  34. package/src/Api/Internal/ExportInternalApi.js +4 -1
  35. package/src/Api/Internal/NotesInternalApi.d.ts +1 -1
  36. package/src/Api/Internal/NotesInternalApi.js +1 -1
  37. package/src/Api/{NotesApi.d.ts → NoteApi.d.ts} +14 -14
  38. package/src/Api/OptionsApi.d.ts +8 -12
  39. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  40. package/src/PredefinedConfig/CommentState.d.ts +13 -13
  41. package/src/PredefinedConfig/Common/RowSummary.d.ts +6 -0
  42. package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +2 -2
  43. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  44. package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
  45. package/src/PredefinedConfig/SystemState.d.ts +2 -3
  46. package/src/Redux/ActionsReducers/NotesRedux.d.ts +6 -6
  47. package/src/Redux/ActionsReducers/NotesRedux.js +1 -1
  48. package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
  49. package/src/Redux/Store/AdaptableStore.js +4 -10
  50. package/src/Strategy/CommentsModule.js +4 -4
  51. package/src/Strategy/NotesModule.js +5 -5
  52. package/src/Utilities/Services/CellPopupService.js +2 -2
  53. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
  54. package/src/Utilities/Services/ReportService.d.ts +7 -5
  55. package/src/Utilities/Services/ReportService.js +238 -22
  56. package/src/View/Components/NewScopeComponent.js +2 -2
  57. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
  58. package/src/View/Layout/LayoutViewPanel.js +2 -1
  59. package/src/View/Layout/Wizard/LayoutWizard.js +3 -2
  60. package/src/View/Notes/NotesPopup.js +3 -3
  61. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  62. package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
  63. package/src/agGrid/AdaptableAgGrid.js +93 -54
  64. package/src/agGrid/AgGridAdapter.d.ts +1 -0
  65. package/src/agGrid/AgGridAdapter.js +3 -0
  66. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
  67. package/src/agGrid/AgGridColumnAdapter.js +2 -2
  68. package/src/agGrid/AgGridOptionsService.d.ts +4 -1
  69. package/src/agGrid/AgGridOptionsService.js +22 -0
  70. package/src/env.js +2 -2
  71. package/src/metamodel/adaptable.metamodel.d.ts +41 -3
  72. package/src/metamodel/adaptable.metamodel.js +1 -1
  73. package/src/types.d.ts +22 -20
  74. package/tsconfig.esm.tsbuildinfo +1 -1
  75. package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
  76. package/src/PredefinedConfig/CellAddress.d.ts +0 -13
  77. package/src/PredefinedConfig/CellAddress.js +0 -4
  78. /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
  79. /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
  80. /package/src/PredefinedConfig/{NotesState.js → NoteState.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { AdaptableAgGrid } from './AdaptableAgGrid';
2
- import { GridOptions } from '@ag-grid-community/core';
2
+ import { GridOptions, ManagedGridOptionKey } from '@ag-grid-community/core';
3
3
  export declare class AgGridOptionsService {
4
4
  private adaptableInstance;
5
5
  private gridOptionsPropertyCache;
@@ -7,6 +7,9 @@ export declare class AgGridOptionsService {
7
7
  constructor(adaptableInstance: AdaptableAgGrid);
8
8
  destroy(): void;
9
9
  setGridOptionsProperty<T extends keyof GridOptions>(gridOptions: GridOptions, propertyName: T, propertyGetter: (userPropertyValue: GridOptions[T]) => GridOptions[T] | undefined): GridOptions;
10
+ getUserGridOptionsProperty<T extends keyof GridOptions>(propertyName: T): GridOptions[T];
11
+ revertGridOptionsPropertyToUserValue(propertyName: ManagedGridOptionKey): void;
12
+ CAREFUL_patchGridOptionsProperty<T extends keyof GridOptions>(propertyName: T, value: GridOptions[T]): void;
10
13
  revertGridOptionsPropertiesToUserValue<T extends keyof GridOptions>(gridOptions: GridOptions, propertyNames: T[]): void;
11
14
  private get agGridAdapter();
12
15
  }
@@ -40,6 +40,28 @@ export class AgGridOptionsService {
40
40
  gridOptions[propertyName] = adaptableValue !== null && adaptableValue !== void 0 ? adaptableValue : userValue;
41
41
  return gridOptions;
42
42
  }
43
+ getUserGridOptionsProperty(propertyName) {
44
+ const userKey = `user.${propertyName}`;
45
+ return this.gridOptionsPropertyCache.get(userKey);
46
+ }
47
+ revertGridOptionsPropertyToUserValue(propertyName) {
48
+ const userKey = `user.${propertyName}`;
49
+ const userValue = this.gridOptionsPropertyCache.get(userKey);
50
+ this.agGridAdapter.setGridOption(propertyName, userValue);
51
+ }
52
+ CAREFUL_patchGridOptionsProperty(propertyName, value) {
53
+ var _a;
54
+ // @ts-ignore this is required to set gridOptions peroperties which are marked as initial (writable once, before grid is initialised)
55
+ const gos = (_a = this.agGridAdapter.getAgGridApi()) === null || _a === void 0 ? void 0 : _a.gos;
56
+ if (gos) {
57
+ gos.updateGridOptions({
58
+ options: {
59
+ [propertyName]: value,
60
+ },
61
+ source: 'api',
62
+ });
63
+ }
64
+ }
43
65
  revertGridOptionsPropertiesToUserValue(gridOptions, propertyNames) {
44
66
  for (const propertyName of propertyNames) {
45
67
  // see this.setGridOptionsProperty(...)
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: 1710949344156 || Date.now(),
4
- VERSION: "18.0.0-canary.11" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1711034314862 || Date.now(),
4
+ VERSION: "18.0.0-canary.12" || '--current-version--',
5
5
  };
@@ -1919,6 +1919,11 @@ export declare const ADAPTABLE_METAMODEL: {
1919
1919
  desc: string;
1920
1920
  }[];
1921
1921
  };
1922
+ ColumnTypesContext: {
1923
+ name: string;
1924
+ kind: string;
1925
+ desc: string;
1926
+ };
1922
1927
  ColumnValuesComparer: {
1923
1928
  name: string;
1924
1929
  kind: string;
@@ -1939,8 +1944,25 @@ export declare const ADAPTABLE_METAMODEL: {
1939
1944
  name: string;
1940
1945
  kind: string;
1941
1946
  desc: string;
1947
+ props: {
1948
+ name: string;
1949
+ kind: string;
1950
+ desc: string;
1951
+ ref: string;
1952
+ }[];
1953
+ };
1954
+ CommentOptions: {
1955
+ name: string;
1956
+ kind: string;
1957
+ desc: string;
1958
+ props: {
1959
+ name: string;
1960
+ kind: string;
1961
+ desc: string;
1962
+ isOpt: boolean;
1963
+ }[];
1942
1964
  };
1943
- CommentsOptions: {
1965
+ CommentState: {
1944
1966
  name: string;
1945
1967
  kind: string;
1946
1968
  desc: string;
@@ -3979,8 +4001,14 @@ export declare const ADAPTABLE_METAMODEL: {
3979
4001
  name: string;
3980
4002
  kind: string;
3981
4003
  desc: string;
4004
+ props: {
4005
+ name: string;
4006
+ kind: string;
4007
+ desc: string;
4008
+ ref: string;
4009
+ }[];
3982
4010
  };
3983
- NotesOptions: {
4011
+ NoteOptions: {
3984
4012
  name: string;
3985
4013
  kind: string;
3986
4014
  desc: string;
@@ -3991,7 +4019,7 @@ export declare const ADAPTABLE_METAMODEL: {
3991
4019
  isOpt: boolean;
3992
4020
  }[];
3993
4021
  };
3994
- NotesState: {
4022
+ NoteState: {
3995
4023
  name: string;
3996
4024
  kind: string;
3997
4025
  desc: string;
@@ -4714,6 +4742,16 @@ export declare const ADAPTABLE_METAMODEL: {
4714
4742
  ref?: undefined;
4715
4743
  })[];
4716
4744
  };
4745
+ RowSummary: {
4746
+ name: string;
4747
+ kind: string;
4748
+ desc: string;
4749
+ };
4750
+ RowSummaryPosition: {
4751
+ name: string;
4752
+ kind: string;
4753
+ desc: string;
4754
+ };
4717
4755
  Schedule: {
4718
4756
  name: string;
4719
4757
  kind: string;