@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
|
@@ -467,7 +467,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
467
467
|
if (!actionColumn && this.getFdc3Api().internalApi.isFdc3MainActionColumn(colDef.colId)) {
|
|
468
468
|
const actionButtons = this.getFdc3Api().internalApi.getButtonsForFdc3MainActionColumn();
|
|
469
469
|
actionColumn = {
|
|
470
|
-
columnId:
|
|
470
|
+
columnId: this.getFdc3Options().actionColumnDefaultConfiguration.columnId,
|
|
471
471
|
actionColumnButton: actionButtons,
|
|
472
472
|
};
|
|
473
473
|
}
|
|
@@ -43,7 +43,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
43
43
|
if (this.isAtLeastOneActionButtonConfigured()) {
|
|
44
44
|
const actionColumnConfig = this.getFdc3Options().actionColumnDefaultConfiguration;
|
|
45
45
|
actionColDefs.push({
|
|
46
|
-
colId:
|
|
46
|
+
colId: actionColumnConfig.columnId,
|
|
47
47
|
headerName: actionColumnConfig.headerName,
|
|
48
48
|
hide: false,
|
|
49
49
|
lockVisible: true,
|
|
@@ -241,7 +241,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
241
241
|
return buttons;
|
|
242
242
|
}
|
|
243
243
|
isFdc3MainActionColumn(columnId) {
|
|
244
|
-
return columnId ===
|
|
244
|
+
return columnId === this.getFdc3Options().actionColumnDefaultConfiguration.columnId;
|
|
245
245
|
}
|
|
246
246
|
isFdc3StandaloneActionColumn(columnId, columnType) {
|
|
247
247
|
const types = typeof columnType === 'string' ? [columnType] : columnType;
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
|
|
2
2
|
import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
|
|
3
3
|
import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
|
|
4
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
4
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, CommentOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
5
5
|
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
6
6
|
/**
|
|
7
7
|
* Range of functions to access Adaptable Options
|
|
@@ -71,6 +71,10 @@ export interface OptionsApi {
|
|
|
71
71
|
* Returns `AdaptableOptions.columnOptions`
|
|
72
72
|
*/
|
|
73
73
|
getColumnOptions(): Readonly<ColumnOptions>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns `AdaptableOptions.commentOptions`
|
|
76
|
+
*/
|
|
77
|
+
getCommentOptions(): Readonly<CommentOptions>;
|
|
74
78
|
/**
|
|
75
79
|
* Returns `AdaptableOptions.customSortOptions`
|
|
76
80
|
*/
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { PluginsState } from '../Redux/ActionsReducers/PluginsRedux';
|
|
|
2
2
|
import { IPushPullApi } from './IPushPullApi';
|
|
3
3
|
import { Glue42Api } from './Glue42Api';
|
|
4
4
|
import { OpenFinApi } from './OpenFinApi';
|
|
5
|
-
import { FinanceApi } from './FinanceApi';
|
|
6
5
|
import { FinsembleApi } from './FinsembleApi';
|
|
7
6
|
import { Glue42WebApi } from './Glue42WebApi';
|
|
8
7
|
/**
|
|
@@ -46,10 +45,6 @@ export interface PluginsApi {
|
|
|
46
45
|
* Returns OpenFin API class in Adaptable API
|
|
47
46
|
*/
|
|
48
47
|
getOpenFinPluginApi(): OpenFinApi;
|
|
49
|
-
/**
|
|
50
|
-
* Returns Finance API class in Adaptable API
|
|
51
|
-
*/
|
|
52
|
-
getFinancePluginApi(): FinanceApi;
|
|
53
48
|
/**
|
|
54
49
|
* Returns Finsemble API class in Adaptable API
|
|
55
50
|
*/
|
|
@@ -4,26 +4,56 @@ import { ConfigState } from './ConfigState';
|
|
|
4
4
|
* Comment that can be applied to a Cell in AdapTable
|
|
5
5
|
*/
|
|
6
6
|
export interface AdaptableComment extends AdaptableObject {
|
|
7
|
+
/**
|
|
8
|
+
* When Comment was made
|
|
9
|
+
*/
|
|
7
10
|
Timestamp: number;
|
|
11
|
+
/**
|
|
12
|
+
* Value of the Comment
|
|
13
|
+
*/
|
|
8
14
|
Value: string;
|
|
15
|
+
/**
|
|
16
|
+
* Author of the Comment
|
|
17
|
+
*/
|
|
9
18
|
Author: {
|
|
10
19
|
UserName: string;
|
|
11
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Value in Grid's Primary Key Column
|
|
23
|
+
*/
|
|
12
24
|
PrimaryKeyValue: any;
|
|
25
|
+
/**
|
|
26
|
+
* Id of Column containing the Comment
|
|
27
|
+
*/
|
|
13
28
|
ColumnId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Id of this AdapTable instance
|
|
31
|
+
*/
|
|
14
32
|
AdaptableId: string;
|
|
15
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Collection of Cell Comments
|
|
36
|
+
*/
|
|
16
37
|
export declare type AdaptableComments = AdaptableComment[];
|
|
17
38
|
/**
|
|
18
|
-
* Predefined Configuration for
|
|
39
|
+
* Predefined Configuration for Comments Module
|
|
19
40
|
*/
|
|
20
41
|
export interface CommentsState extends ConfigState {
|
|
21
42
|
/**
|
|
22
|
-
* Collection of
|
|
43
|
+
* Collection of AdapTable Comments
|
|
23
44
|
*/
|
|
24
45
|
Comments?: AdaptableComments;
|
|
25
46
|
}
|
|
26
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Cell that contains a Comment
|
|
49
|
+
*/
|
|
50
|
+
export declare type CommentGridCell = {
|
|
51
|
+
/**
|
|
52
|
+
* Value in Primary Key Column
|
|
53
|
+
*/
|
|
27
54
|
PrimaryKeyValue: string | number;
|
|
55
|
+
/**
|
|
56
|
+
* Id of Column containing the Comment
|
|
57
|
+
*/
|
|
28
58
|
ColumnId: string;
|
|
29
59
|
};
|
|
@@ -13,6 +13,6 @@ export interface Entitlement {
|
|
|
13
13
|
accessLevel: AccessLevel;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Whether an Entitlement is `ReadOnly`, `Hidden` or `Full`
|
|
17
17
|
*/
|
|
18
18
|
export declare type AccessLevel = 'ReadOnly' | 'Hidden' | 'Full';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Chart, ChatInitSettings, Contact, ContactList, Context, Country, Currency, Email, Instrument, InstrumentList, Nothing, Organization, Portfolio, Position, TimeRange, Valuation, ContextTypes } from '@finos/fdc3';
|
|
2
|
+
/**
|
|
3
|
+
* FDC3 (2.0) Context Types supported by AdapTable
|
|
4
|
+
*/
|
|
2
5
|
export declare type Fdc3ContextType = ChartContextType | ChatInitSettingsContextType | ContactContextType | ContactListContextType | CountryContextType | CurrencyContextType | EmailContextType | InstrumentContextType | InstrumentListContextType | OrganizationContextType | PortfolioContextType | PositionContextType | TimeRangeContextType | ValuationContextType | NothingContextType;
|
|
3
6
|
export declare type Fdc3CustomContextType = string;
|
|
4
7
|
export declare const ChartContextKey = "fdc3.chart";
|
|
@@ -31,6 +34,9 @@ export declare const ValuationContextKey = "fdc3.valuation";
|
|
|
31
34
|
export declare type ValuationContextType = typeof ValuationContextKey;
|
|
32
35
|
export declare const NothingContextKey = "fdc3.nothing";
|
|
33
36
|
export declare type NothingContextType = typeof NothingContextKey;
|
|
37
|
+
/**
|
|
38
|
+
* FDC3 (2.0) Contexts
|
|
39
|
+
*/
|
|
34
40
|
export declare type Fdc3Context = ChartContext | ChatInitSettingsContext | ContactContext | ContactListContext | CountryContext | CurrencyContext | EmailContext | InstrumentContext | InstrumentListContext | OrganizationContext | PortfolioContext | PositionContext | TimeRangeContext | ValuationContext | NothingContext;
|
|
35
41
|
export declare type Fdc3CustomContext = Context;
|
|
36
42
|
export declare type TypedFdc3Context<CONTEXT, TYPE extends Fdc3ContextType> = CONTEXT & {
|
|
@@ -14,7 +14,7 @@ import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
|
14
14
|
import { TypeUuid } from './Uuid';
|
|
15
15
|
import { SummaryOperation } from './Common/Enums';
|
|
16
16
|
import { ChartModel } from '@ag-grid-community/core';
|
|
17
|
-
import {
|
|
17
|
+
import { CommentGridCell } from './CommentsState';
|
|
18
18
|
export type { IPushPullReport, IPushPullDomain };
|
|
19
19
|
export type { Glue42Report };
|
|
20
20
|
export type { OpenFinReport };
|
|
@@ -100,7 +100,7 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
|
|
|
100
100
|
};
|
|
101
101
|
Comments?: {
|
|
102
102
|
editMode?: boolean;
|
|
103
|
-
popupPosition?:
|
|
103
|
+
popupPosition?: CommentGridCell | null;
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
export interface ProgressIndicator {
|
|
@@ -14,7 +14,7 @@ import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
|
14
14
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
15
15
|
import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
|
|
16
16
|
import { SmartEditOperation } from '../../AdaptableOptions/EditOptions';
|
|
17
|
-
import {
|
|
17
|
+
import { CommentGridCell, DataSet } from '../../types';
|
|
18
18
|
import { ChartModel } from '@ag-grid-community/core';
|
|
19
19
|
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
20
20
|
export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
|
|
@@ -256,7 +256,7 @@ export interface SystemQuickSearchFloatingVisibilityAction extends Redux.Action
|
|
|
256
256
|
visible: boolean;
|
|
257
257
|
}
|
|
258
258
|
export interface SystemCommentsShowAction extends Redux.Action {
|
|
259
|
-
cellPosition:
|
|
259
|
+
cellPosition: CommentGridCell;
|
|
260
260
|
editMode?: boolean;
|
|
261
261
|
}
|
|
262
262
|
export interface SystemCommentsHideAction extends Redux.Action {
|
|
@@ -318,11 +318,11 @@ export declare const SystemDisableDeleteConfirmation: () => SystemDisableDeleteC
|
|
|
318
318
|
export declare const SystemVisualExportBegin: () => SystemVisualExportBeginAction;
|
|
319
319
|
export declare const SystemVisualExportEnd: () => SystemVisualExportEndAction;
|
|
320
320
|
export declare const SystemQuickSearchFloatingVisibility: (visible: boolean) => SystemQuickSearchFloatingVisibilityAction;
|
|
321
|
-
export declare const SystemCommentsShow: (cellPosition:
|
|
321
|
+
export declare const SystemCommentsShow: (cellPosition: CommentGridCell, editMode?: boolean) => SystemCommentsShowAction;
|
|
322
322
|
export declare const SystemCommentsHide: () => SystemCommentsHideAction;
|
|
323
323
|
export declare const SystemDisableDeleteConfirmationSelector: (state: SystemState) => boolean;
|
|
324
324
|
export declare const SystemPreviousGroupedColumnsSelector: (state: SystemState) => Record<string, Record<string, number>>;
|
|
325
325
|
export declare const SystemQuickSearchFloatingVisibilitySelector: (state: SystemState) => boolean;
|
|
326
|
-
export declare const SystemCommentsSelector: (state: SystemState) =>
|
|
326
|
+
export declare const SystemCommentsSelector: (state: SystemState) => CommentGridCell;
|
|
327
327
|
export declare const SystemCommentsEditModeSelector: (state: SystemState) => boolean;
|
|
328
328
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
|
-
import {
|
|
3
|
+
import { CommentGridCell } from '../types';
|
|
4
4
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
5
5
|
import { IModule } from './Interface/IModule';
|
|
6
6
|
/**
|
|
@@ -19,5 +19,5 @@ export declare class CommentsModule extends AdaptableModuleBase implements IModu
|
|
|
19
19
|
ColumnId: string;
|
|
20
20
|
};
|
|
21
21
|
handleMouseEnter(event: MouseEvent): void;
|
|
22
|
-
handleCellSelected(
|
|
22
|
+
handleCellSelected(commentGridCell: CommentGridCell): void;
|
|
23
23
|
}
|
|
@@ -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,
|
|
@@ -100,7 +100,7 @@ class ModuleService {
|
|
|
100
100
|
case 'Filter':
|
|
101
101
|
return learnUrl + 'handbook-filtering';
|
|
102
102
|
case 'FlashingCell':
|
|
103
|
-
return learnUrl + 'handbook-cell
|
|
103
|
+
return learnUrl + 'handbook-flashing-cell';
|
|
104
104
|
case 'FormatColumn':
|
|
105
105
|
return learnUrl + 'handbook-column-formatting';
|
|
106
106
|
case 'FreeTextColumn':
|
|
@@ -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 {};
|