@adaptabletools/adaptable 16.0.1-canary.0 → 16.0.1
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/bundle.cjs.js +162 -164
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +6 -1
- package/src/AdaptableOptions/AdaptablePlugin.js +2 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +3 -3
- package/src/AdaptableOptions/CommentsOptions.d.ts +23 -0
- package/src/AdaptableOptions/Fdc3Options.d.ts +69 -53
- package/src/AdaptableOptions/FilterOptions.d.ts +7 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +2 -306
- package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +0 -6
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +0 -17
- package/src/Api/CommentsApi.d.ts +6 -6
- package/src/Api/EventApi.d.ts +2 -14
- package/src/Api/GridApi.d.ts +13 -13
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/CalendarApiImpl.js +1 -2
- package/src/Api/Implementation/CommentsApiImpl.d.ts +3 -3
- package/src/Api/Implementation/CommentsApiImpl.js +3 -3
- package/src/Api/Implementation/GridApiImpl.js +2 -2
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Internal/AdaptableInternalApi.js +1 -1
- package/src/Api/Internal/Fdc3InternalApi.js +2 -2
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/Api/PluginsApi.d.ts +0 -5
- package/src/PredefinedConfig/CommentsState.d.ts +33 -3
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +6 -0
- package/src/PredefinedConfig/SystemState.d.ts +2 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +4 -4
- package/src/Strategy/CommentsModule.d.ts +2 -2
- package/src/Strategy/CommentsModule.js +11 -11
- package/src/Strategy/Fdc3Module.d.ts +0 -1
- package/src/Strategy/Fdc3Module.js +0 -3
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +10 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +621 -268
- package/src/View/Comments/CommentPopup.js +5 -5
- package/src/agGrid/Adaptable.d.ts +3 -2
- package/src/agGrid/Adaptable.js +8 -2
- package/src/agGrid/attachAddaptableColumnTypes.js +1 -0
- package/src/metamodel/adaptable.metamodel.d.ts +55 -394
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/FinanceApi.d.ts +0 -125
- package/src/PredefinedConfig/Common/FDC3Context_DEPR.d.ts +0 -246
- package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.js +0 -5
- /package/src/{Api/FinanceApi.js → AdaptableOptions/CommentsOptions.js} +0 -0
|
@@ -38,12 +38,12 @@ const CommentPopup = () => {
|
|
|
38
38
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
39
39
|
const cellPopupRef = React.useRef(null);
|
|
40
40
|
const editMode = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsEditModeSelector)(state.System));
|
|
41
|
-
const
|
|
41
|
+
const commentGridCell = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsSelector)(state.System));
|
|
42
42
|
const [
|
|
43
43
|
// Only handle first comment for now
|
|
44
44
|
// Later we can handle multiple comments
|
|
45
45
|
comment,] = (0, react_redux_1.useSelector)((state) => {
|
|
46
|
-
return
|
|
46
|
+
return commentGridCell ? (0, CommentsRedux_1.GetCommentsSelector)(state.Comments, commentGridCell) : [];
|
|
47
47
|
});
|
|
48
48
|
const handleCommentChange = (value) => {
|
|
49
49
|
api.commentsApi.updateCommentText(value, comment);
|
|
@@ -51,14 +51,14 @@ const CommentPopup = () => {
|
|
|
51
51
|
const isReadonly = api.entitlementApi.isModuleReadOnlyEntitlement('Comments');
|
|
52
52
|
const enableEditMode = () => {
|
|
53
53
|
if (!editMode) {
|
|
54
|
-
api.commentsApi.showComment(
|
|
54
|
+
api.commentsApi.showComment(commentGridCell, true);
|
|
55
55
|
cellPopupRef === null || cellPopupRef === void 0 ? void 0 : cellPopupRef.current.refreshContent();
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
if (!
|
|
58
|
+
if (!commentGridCell) {
|
|
59
59
|
return React.createElement(React.Fragment, null);
|
|
60
60
|
}
|
|
61
|
-
return (React.createElement(CellPopup_1.CellPopup, { ref: cellPopupRef, key: `${
|
|
61
|
+
return (React.createElement(CellPopup_1.CellPopup, { ref: cellPopupRef, key: `${commentGridCell.PrimaryKeyValue}-${commentGridCell.ColumnId}`, isOpen: true, primaryKeyValue: commentGridCell.PrimaryKeyValue, columnId: commentGridCell.ColumnId },
|
|
62
62
|
React.createElement(rebass_1.Flex, { onClick: () => enableEditMode(), flexDirection: "column", className: "ab-CommentPopup" },
|
|
63
63
|
React.createElement(CommentEditor, { isReadonly: isReadonly, editMode: editMode, key: comment === null || comment === void 0 ? void 0 : comment.Uuid, onClose: () => api.commentsApi.hideComment(), comment: (_a = comment === null || comment === void 0 ? void 0 : comment.Value) !== null && _a !== void 0 ? _a : '', onCommentChange: (value) => handleCommentChange(value) }))));
|
|
64
64
|
};
|
|
@@ -120,7 +120,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
120
120
|
* Initializer for Adaptable
|
|
121
121
|
*
|
|
122
122
|
* @param adaptableOptions the AdaptableOptions
|
|
123
|
-
* @param
|
|
123
|
+
* @param agGridConfig AG Grid
|
|
124
124
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
125
125
|
*/
|
|
126
126
|
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
|
@@ -377,7 +377,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
377
377
|
autoSizeAllColumns(): void;
|
|
378
378
|
setColumnSort(columnSorts: ColumnSort[]): void;
|
|
379
379
|
clearColumnSort(): void;
|
|
380
|
-
|
|
380
|
+
setGridData(dataSource: any[]): void;
|
|
381
|
+
setInitialGridData(dataSource: any[]): void;
|
|
381
382
|
getGridData(): any[];
|
|
382
383
|
getFilteredData(): any[];
|
|
383
384
|
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -280,7 +280,7 @@ class Adaptable {
|
|
|
280
280
|
* Initializer for Adaptable
|
|
281
281
|
*
|
|
282
282
|
* @param adaptableOptions the AdaptableOptions
|
|
283
|
-
* @param
|
|
283
|
+
* @param agGridConfig AG Grid
|
|
284
284
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
285
285
|
*/
|
|
286
286
|
static init(adaptableOptions, agGridConfig) {
|
|
@@ -308,8 +308,10 @@ class Adaptable {
|
|
|
308
308
|
promise =
|
|
309
309
|
promise && promise.then
|
|
310
310
|
? promise.then(() => {
|
|
311
|
+
// JW: perhaps?: return plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
|
|
311
312
|
return plugin.beforeInit(adaptableOptions);
|
|
312
313
|
})
|
|
314
|
+
// JW: perhaps? : plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
|
|
313
315
|
: plugin.beforeInit(adaptableOptions);
|
|
314
316
|
}
|
|
315
317
|
// instead of
|
|
@@ -4271,7 +4273,7 @@ class Adaptable {
|
|
|
4271
4273
|
clearColumnSort() {
|
|
4272
4274
|
this.setColumnSort(null);
|
|
4273
4275
|
}
|
|
4274
|
-
|
|
4276
|
+
setGridData(dataSource) {
|
|
4275
4277
|
if (!this.gridOptions.api) {
|
|
4276
4278
|
return;
|
|
4277
4279
|
}
|
|
@@ -4282,6 +4284,10 @@ class Adaptable {
|
|
|
4282
4284
|
this.updateColumnDataTypeIfRowDataIsEmpty();
|
|
4283
4285
|
this.updateRowGroupsExpandedState();
|
|
4284
4286
|
}
|
|
4287
|
+
setInitialGridData(dataSource) {
|
|
4288
|
+
this.setGridData(dataSource);
|
|
4289
|
+
this.setupColumns();
|
|
4290
|
+
}
|
|
4285
4291
|
getGridData() {
|
|
4286
4292
|
var _a;
|
|
4287
4293
|
const data = [];
|
|
@@ -7,6 +7,7 @@ const attachColumnTypes = (gridOptions) => {
|
|
|
7
7
|
gridOptions.columnTypes = (_a = gridOptions.columnTypes) !== null && _a !== void 0 ? _a : {};
|
|
8
8
|
return Object.assign(gridOptions.columnTypes, {
|
|
9
9
|
[GeneralConstants_1.AB_SPECIAL_COLUMN]: {},
|
|
10
|
+
[GeneralConstants_1.AB_FDC3_COLUMN]: {},
|
|
10
11
|
abColDefNumber: (_b = gridOptions.columnTypes.abColDefNumber) !== null && _b !== void 0 ? _b : {},
|
|
11
12
|
abColDefString: (_c = gridOptions.columnTypes.abColDefString) !== null && _c !== void 0 ? _c : {},
|
|
12
13
|
abColDefBoolean: (_d = gridOptions.columnTypes.abColDefBoolean) !== null && _d !== void 0 ? _d : {},
|