@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.
- package/base.css +4 -0
- package/base.css.map +1 -1
- package/index.css +6 -0
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
- package/src/AdaptableOptions/ColumnOptions.d.ts +7 -4
- package/src/AdaptableOptions/CommentOptions.d.ts +9 -7
- package/src/AdaptableOptions/NoteOptions.d.ts +4 -1
- package/src/Api/AdaptableApi.d.ts +2 -2
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/CommentApi.d.ts +11 -12
- package/src/Api/ConfigApi.d.ts +2 -2
- package/src/Api/EventApi.d.ts +7 -9
- package/src/Api/Events/CommentChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +4 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/ApiBase.d.ts +2 -2
- package/src/Api/Implementation/ApiBase.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +10 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
- package/src/Api/Implementation/GridApiImpl.js +9 -0
- package/src/Api/Implementation/{NotesApiImpl.d.ts → NoteApiImpl.d.ts} +7 -7
- package/src/Api/Implementation/{NotesApiImpl.js → NoteApiImpl.js} +5 -5
- package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -5
- package/src/Api/Implementation/OptionsApiImpl.js +2 -12
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -1
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +4 -1
- package/src/Api/Internal/NotesInternalApi.d.ts +1 -1
- package/src/Api/Internal/NotesInternalApi.js +1 -1
- package/src/Api/{NotesApi.d.ts → NoteApi.d.ts} +14 -14
- package/src/Api/OptionsApi.d.ts +8 -12
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/CommentState.d.ts +13 -13
- package/src/PredefinedConfig/Common/RowSummary.d.ts +6 -0
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +2 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
- package/src/PredefinedConfig/SystemState.d.ts +2 -3
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/NotesRedux.js +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +4 -10
- package/src/Strategy/CommentsModule.js +4 -4
- package/src/Strategy/NotesModule.js +5 -5
- package/src/Utilities/Services/CellPopupService.js +2 -2
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
- package/src/Utilities/Services/ReportService.d.ts +7 -5
- package/src/Utilities/Services/ReportService.js +238 -22
- package/src/View/Components/NewScopeComponent.js +2 -2
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +3 -2
- package/src/View/Notes/NotesPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -0
- package/src/agGrid/AdaptableAgGrid.js +93 -54
- package/src/agGrid/AgGridAdapter.d.ts +1 -0
- package/src/agGrid/AgGridAdapter.js +3 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -1
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridOptionsService.d.ts +4 -1
- package/src/agGrid/AgGridOptionsService.js +22 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +41 -3
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +22 -20
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
- package/src/PredefinedConfig/CellAddress.d.ts +0 -13
- package/src/PredefinedConfig/CellAddress.js +0 -4
- /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
- /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
- /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:
|
|
4
|
-
VERSION: "18.0.0-canary.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|