@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
|
@@ -41,7 +41,7 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
41
41
|
return undefined;
|
|
42
42
|
}
|
|
43
43
|
const items = [];
|
|
44
|
-
const isCellCommentable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.
|
|
44
|
+
const isCellCommentable = (_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getCommentOptions()) === null || _b === void 0 ? void 0 : _b.isCellCommentable;
|
|
45
45
|
if (!isCellCommentable ||
|
|
46
46
|
isCellCommentable({
|
|
47
47
|
adaptableApi: this.adaptable.api,
|
|
@@ -102,9 +102,9 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
const cellPosition = this.getCellPositionFromEvent(event);
|
|
105
|
-
const
|
|
105
|
+
const openCommentGridCell = this.adaptable.api.commentsApi.getOpenCommentGridCell();
|
|
106
106
|
// Hovering over someting that is not a cell and there is no open comment
|
|
107
|
-
if (!cellPosition &&
|
|
107
|
+
if (!cellPosition && openCommentGridCell) {
|
|
108
108
|
// need to close if the new cell does not have a comment
|
|
109
109
|
this.adaptable.api.commentsApi.hideComment();
|
|
110
110
|
}
|
|
@@ -112,16 +112,16 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
112
112
|
this.adaptable.api.commentsApi.showComment(cellPosition, false);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
handleCellSelected(
|
|
115
|
+
handleCellSelected(commentGridCell) {
|
|
116
116
|
// if already opened - do nothing
|
|
117
|
-
const
|
|
118
|
-
if ((
|
|
119
|
-
(
|
|
117
|
+
const openCommentGridCell = this.adaptable.api.commentsApi.getOpenCommentGridCell();
|
|
118
|
+
if ((openCommentGridCell === null || openCommentGridCell === void 0 ? void 0 : openCommentGridCell.PrimaryKeyValue) === commentGridCell.PrimaryKeyValue &&
|
|
119
|
+
(openCommentGridCell === null || openCommentGridCell === void 0 ? void 0 : openCommentGridCell.ColumnId) === commentGridCell.ColumnId) {
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
// if open but this has no comment, close
|
|
123
|
-
const cellComments = this.adaptable.api.commentsApi.getCellComments(
|
|
124
|
-
if (
|
|
123
|
+
const cellComments = this.adaptable.api.commentsApi.getCellComments(commentGridCell);
|
|
124
|
+
if (openCommentGridCell && !(cellComments === null || cellComments === void 0 ? void 0 : cellComments.length)) {
|
|
125
125
|
// hide only if in edit mode
|
|
126
126
|
// because if you select a cell and move the mouse fast over another cell
|
|
127
127
|
// with a comment, you do not want to close that comment
|
|
@@ -132,8 +132,8 @@ class CommentsModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
// if open but the new selection has a comment open that one in edit mode (because of click)
|
|
135
|
-
if (
|
|
136
|
-
this.adaptable.api.commentsApi.showComment(
|
|
135
|
+
if (openCommentGridCell && (cellComments === null || cellComments === void 0 ? void 0 : cellComments.length)) {
|
|
136
|
+
this.adaptable.api.commentsApi.showComment(commentGridCell, true);
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -4,7 +4,6 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
4
4
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
export declare class Fdc3Module extends AdaptableModuleBase implements IModule {
|
|
6
6
|
constructor(api: AdaptableApi);
|
|
7
|
-
isModuleAvailable(): boolean;
|
|
8
7
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
9
8
|
private buildRaiseIntentMenuItem;
|
|
10
9
|
private buildBroadcastMenuItem;
|
|
@@ -8,9 +8,6 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
8
8
|
constructor(api) {
|
|
9
9
|
super(ModuleConstants.Fdc3ModuleId, ModuleConstants.Fdc3FriendlyName, 'fdc3', null, 'The FDC3 Module - handles the FDC3 integration', api);
|
|
10
10
|
}
|
|
11
|
-
isModuleAvailable() {
|
|
12
|
-
return this.getFdc3Options().enableFdc3;
|
|
13
|
-
}
|
|
14
11
|
addContextMenuItems(menuContext) {
|
|
15
12
|
var _a, _b, _c, _d;
|
|
16
13
|
if (!this.isModuleAvailable()) {
|
|
@@ -31,7 +31,6 @@ export declare const AG_GRID_PIVOT_COLUMN: string;
|
|
|
31
31
|
export declare const AG_GRID_CHART_WINDOW = "AG Grid Window";
|
|
32
32
|
export declare const ADAPTABLE_ROW_ACTION_BUTTONS = "adaptableRowActionButtons";
|
|
33
33
|
export declare const ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = "(ActionRowButtons)";
|
|
34
|
-
export declare const ADAPTABLE_FDC3_ACTION_COLUMN = "fdc3ActionColumn";
|
|
35
34
|
export declare const ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = "(FDC3ActionColumn)";
|
|
36
35
|
export declare const DEFAULT_DATE_FORMAT_PATTERN = "dd-MM-yyyy";
|
|
37
36
|
export declare const SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.SERVER_VALIDATION_MESSAGE_TYPE = exports.SERVER_VALIDATION_HEADER = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.DEFAULT_DATE_FORMAT_PATTERN = exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = exports.
|
|
4
|
-
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY =
|
|
3
|
+
exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.SERVER_VALIDATION_MESSAGE_TYPE = exports.SERVER_VALIDATION_HEADER = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.DEFAULT_DATE_FORMAT_PATTERN = exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_CHART_WINDOW = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_FDC3_COLUMN = exports.AB_ROW_ACTIONS_COLUMN = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
|
|
4
|
+
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = void 0;
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
7
7
|
exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
|
|
@@ -34,7 +34,6 @@ exports.AG_GRID_PIVOT_COLUMN = 'pivot_';
|
|
|
34
34
|
exports.AG_GRID_CHART_WINDOW = 'AG Grid Window';
|
|
35
35
|
exports.ADAPTABLE_ROW_ACTION_BUTTONS = 'adaptableRowActionButtons';
|
|
36
36
|
exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = '(ActionRowButtons)';
|
|
37
|
-
exports.ADAPTABLE_FDC3_ACTION_COLUMN = 'fdc3ActionColumn';
|
|
38
37
|
exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = '(FDC3ActionColumn)';
|
|
39
38
|
exports.DEFAULT_DATE_FORMAT_PATTERN = 'dd-MM-yyyy';
|
|
40
39
|
/*
|
|
@@ -295,9 +295,9 @@ exports.DefaultAdaptableOptions = {
|
|
|
295
295
|
agGridContainerName: GeneralConstants.AG_GRID_CHART_WINDOW,
|
|
296
296
|
},
|
|
297
297
|
fdc3Options: {
|
|
298
|
-
enableFdc3: false,
|
|
299
298
|
enableLogging: false,
|
|
300
299
|
actionColumnDefaultConfiguration: {
|
|
300
|
+
columnId: 'fdc3ActionColumn',
|
|
301
301
|
headerName: 'FDC3 Actions',
|
|
302
302
|
width: 200,
|
|
303
303
|
resizable: true,
|
|
@@ -59,15 +59,20 @@ class Fdc3Service {
|
|
|
59
59
|
this.contextHandlerSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
60
60
|
this.intentHandlerSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
61
61
|
}
|
|
62
|
-
raiseIntent(intent, context, app) {
|
|
62
|
+
async raiseIntent(intent, context, app) {
|
|
63
63
|
var _a;
|
|
64
64
|
this.logFdc3Event('OUT', `raise ${intent}`, JSON.stringify(context));
|
|
65
|
-
|
|
65
|
+
const intentResolution = await ((_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.raiseIntent(intent, context, app));
|
|
66
|
+
this.getFdc3Api().internalApi.handleIntentResolution(intentResolution, context, intent, app);
|
|
67
|
+
return intentResolution;
|
|
66
68
|
}
|
|
67
|
-
raiseIntentForContext(context, app) {
|
|
69
|
+
async raiseIntentForContext(context, app) {
|
|
68
70
|
var _a;
|
|
69
71
|
this.logFdc3Event('OUT', `raise for context`, JSON.stringify(context));
|
|
70
|
-
|
|
72
|
+
const intentResolution = await ((_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.raiseIntentForContext(context, app));
|
|
73
|
+
// TODO AFL
|
|
74
|
+
// this.getFdc3Api().internalApi.handleIntentResolution(intentResolution, context, null, app);
|
|
75
|
+
return intentResolution;
|
|
71
76
|
}
|
|
72
77
|
broadcast(context) {
|
|
73
78
|
var _a;
|
|
@@ -10,11 +10,9 @@ const ConfigurationWizardColumnsStep_1 = require("./ConfigurationWizardColumnsSt
|
|
|
10
10
|
const GridOptionsForm_1 = tslib_1.__importDefault(require("./GridOptionsForm"));
|
|
11
11
|
const EntitlementsForm_1 = tslib_1.__importDefault(require("./EntitlementsForm"));
|
|
12
12
|
const UiOptionsForm_1 = require("./UIOptions/UiOptionsForm");
|
|
13
|
-
const FinanceForm_1 = require("./FinanceForm");
|
|
14
13
|
const AdaptableOptionsForm_1 = require("./AdaptableOptionsForm");
|
|
15
14
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../../Utilities/Helpers/AdaptableHelper"));
|
|
16
15
|
const ConfigurationWizard = (props) => {
|
|
17
|
-
var _a, _b;
|
|
18
16
|
const [isPrimaryKeySelected, setIsValid] = React.useState(true);
|
|
19
17
|
const [adaptableConfig, setAdaptableConfig] = (0, react_1.useState)(() => {
|
|
20
18
|
const gridOptionDefaults = {
|
|
@@ -71,7 +69,6 @@ const ConfigurationWizard = (props) => {
|
|
|
71
69
|
const handleGridOptionsChange = React.useCallback((gridOptions) => {
|
|
72
70
|
setAdaptableConfig((adaptableConfig) => (Object.assign(Object.assign({}, adaptableConfig), { gridOptions: gridOptions })));
|
|
73
71
|
}, []);
|
|
74
|
-
const financePlugin = (_b = (_a = adaptableConfig.adaptableOptions.plugins) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, (plugin) => plugin.pluginId === 'finance');
|
|
75
72
|
let sections = [
|
|
76
73
|
{
|
|
77
74
|
title: 'Columns',
|
|
@@ -105,11 +102,17 @@ const ConfigurationWizard = (props) => {
|
|
|
105
102
|
details: 'Configure Entitlements',
|
|
106
103
|
render: () => (React.createElement(EntitlementsForm_1.default, { adaptableOptions: adaptableConfig.adaptableOptions, onChangedAptableOptions: handleAdaptableOptionsChange })),
|
|
107
104
|
},
|
|
105
|
+
/**
|
|
108
106
|
financePlugin && {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
title: 'Finance',
|
|
108
|
+
details: 'Finance Options',
|
|
109
|
+
render: () => (
|
|
110
|
+
<FinanceForm
|
|
111
|
+
adaptableConfig={adaptableConfig}
|
|
112
|
+
onChangedAdaptableConfig={setAdaptableConfig}
|
|
113
|
+
/>
|
|
114
|
+
),
|
|
115
|
+
}, */
|
|
113
116
|
].filter(Boolean);
|
|
114
117
|
if (props.startSections) {
|
|
115
118
|
sections = [
|
package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { AdaptableConfig } from '../../../../types';
|
|
3
|
-
export interface FinanceFormProps {
|
|
4
|
-
adaptableConfig: AdaptableConfig;
|
|
5
|
-
onChangedAdaptableConfig: (adaptableConfig: AdaptableConfig) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const FinanceForm: React.FunctionComponent<React.PropsWithChildren<FinanceFormProps>>;
|
|
1
|
+
export {};
|