@adaptabletools/adaptable 16.0.0 → 16.0.1-canary.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/CalendarOptions.d.ts +3 -3
- package/src/AdaptableOptions/CommentsOptions.d.ts +23 -0
- package/src/AdaptableOptions/Fdc3Options.d.ts +65 -48
- 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.d.ts +2 -0
- package/src/Api/Internal/Fdc3InternalApi.js +13 -2
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/Api/PluginsApi.d.ts +0 -5
- package/src/PredefinedConfig/CommentsState.d.ts +30 -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/Fdc3Service.js +9 -4
- 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 +2 -1
- package/src/agGrid/Adaptable.js +5 -1
- package/src/agGrid/attachAddaptableColumnTypes.js +1 -0
- package/src/metamodel/adaptable.metamodel.d.ts +45 -404
- 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
|
};
|
|
@@ -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
|
@@ -4271,7 +4271,7 @@ class Adaptable {
|
|
|
4271
4271
|
clearColumnSort() {
|
|
4272
4272
|
this.setColumnSort(null);
|
|
4273
4273
|
}
|
|
4274
|
-
|
|
4274
|
+
setGridData(dataSource) {
|
|
4275
4275
|
if (!this.gridOptions.api) {
|
|
4276
4276
|
return;
|
|
4277
4277
|
}
|
|
@@ -4282,6 +4282,10 @@ class Adaptable {
|
|
|
4282
4282
|
this.updateColumnDataTypeIfRowDataIsEmpty();
|
|
4283
4283
|
this.updateRowGroupsExpandedState();
|
|
4284
4284
|
}
|
|
4285
|
+
setInitialGridData(dataSource) {
|
|
4286
|
+
this.setGridData(dataSource);
|
|
4287
|
+
this.setupColumns();
|
|
4288
|
+
}
|
|
4285
4289
|
getGridData() {
|
|
4286
4290
|
var _a;
|
|
4287
4291
|
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 : {},
|