@adaptabletools/adaptable 16.0.0-canary.3 → 16.0.0-canary.4
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/README.md +2 -0
- package/base.css +31 -23
- package/base.css.map +1 -1
- package/bundle.cjs.js +145 -145
- package/index.css +43 -31
- package/index.css.map +1 -1
- package/package.json +10 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +9 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -10
- package/src/AdaptableOptions/Fdc3Options.d.ts +150 -0
- package/src/AdaptableOptions/Fdc3Options.js +5 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +9 -9
- package/src/AdaptableOptions/GroupingOptions.d.ts +8 -0
- package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -6
- package/src/Api/AdaptableApi.d.ts +7 -2
- package/src/Api/EventApi.d.ts +3 -3
- package/src/Api/Events/ThemeChanged.d.ts +0 -6
- package/src/Api/Events/ThemeEdited.d.ts +11 -0
- package/src/Api/Fdc3Api.d.ts +83 -0
- package/src/Api/Fdc3Api.js +2 -0
- package/src/Api/FinanceApi.d.ts +12 -12
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +4 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +26 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +79 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +2 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +7 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +5 -3
- package/src/Api/Internal/AdaptableInternalApi.js +16 -10
- package/src/Api/Internal/Fdc3InternalApi.d.ts +11 -0
- package/src/Api/Internal/Fdc3InternalApi.js +72 -0
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/QuickSearchApi.d.ts +8 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/{FDC3Context.d.ts → FDC3Context_DEPR.d.ts} +19 -19
- package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +2 -0
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +53 -0
- package/src/PredefinedConfig/Common/Fdc3Context.js +35 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +68 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.js +75 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +3 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +12 -6
- package/src/Redux/ActionsReducers/SystemRedux.js +18 -2
- package/src/Redux/Store/AdaptableStore.js +2 -2
- package/src/Strategy/Fdc3Module.d.ts +13 -0
- package/src/Strategy/Fdc3Module.js +85 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +5 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
- package/src/Utilities/Services/Fdc3Service.d.ts +20 -0
- package/src/Utilities/Services/Fdc3Service.js +87 -0
- package/src/View/AdaptableView.js +9 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +9 -0
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.d.ts +2 -0
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +26 -0
- package/src/View/QuickSearch/QuickSearchInput.d.ts +6 -0
- package/src/View/QuickSearch/QuickSearchInput.js +22 -0
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +2 -5
- package/src/View/QuickSearch/QuickSearchViewPanel.js +5 -19
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +21 -12
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/components/Drawer/index.d.ts +6 -0
- package/src/components/Drawer/index.js +60 -0
- package/src/components/ExpressionEditor/index.js +4 -2
- package/src/components/icons/fdc3.d.ts +3 -0
- package/src/components/icons/fdc3.js +9 -0
- package/src/components/icons/index.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +45 -16
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +6 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/src/{PredefinedConfig/Common/FDC3Context.js → Api/Events/ThemeEdited.js} +0 -0
|
@@ -71,6 +71,7 @@ export declare const DASHBOARD_REFRESH = "DASHBOARD_REFRESH";
|
|
|
71
71
|
export declare const SYSTEM_DATA_SET_SELECT = "SYSTEM_DATA_SET_SELECT";
|
|
72
72
|
export declare const SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = "SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS";
|
|
73
73
|
export declare const SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = "SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX";
|
|
74
|
+
export declare const SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = "SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY";
|
|
74
75
|
export declare const SYSTEM_VISUAL_EXPORT_BEGIN = "SYSTEM_VISUAL_EXPORT_BEGIN";
|
|
75
76
|
export declare const SYSTEM_VISUAL_EXPORT_END = "SYSTEM_VISUAL_EXPORT_END";
|
|
76
77
|
export interface SystemHighlightCellAddAction extends Redux.Action {
|
|
@@ -217,7 +218,7 @@ export interface SystemDataChangeHistorySuspendAction extends Redux.Action {
|
|
|
217
218
|
}
|
|
218
219
|
export interface SystemDataChangeHistoryResumeAction extends Redux.Action {
|
|
219
220
|
}
|
|
220
|
-
export interface
|
|
221
|
+
export interface SystemDisableDeleteConfirmationAction extends Redux.Action {
|
|
221
222
|
}
|
|
222
223
|
export interface SystemDashboardRefreshAction extends Redux.Action {
|
|
223
224
|
}
|
|
@@ -245,9 +246,12 @@ export interface SystemSetPreviousGroupedColumnIndexAction extends Redux.Action
|
|
|
245
246
|
columnId: string;
|
|
246
247
|
columnIndex: number;
|
|
247
248
|
}
|
|
248
|
-
export interface
|
|
249
|
+
export interface SystemVisualExportBeginAction extends Redux.Action {
|
|
249
250
|
}
|
|
250
|
-
export interface
|
|
251
|
+
export interface SystemVisualExportEndAction extends Redux.Action {
|
|
252
|
+
}
|
|
253
|
+
export interface SystemQuickSearchFloatingVisibilityAction extends Redux.Action {
|
|
254
|
+
visible: boolean;
|
|
251
255
|
}
|
|
252
256
|
export declare const SystemHighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => SystemHighlightCellAddAction;
|
|
253
257
|
export declare const SystemHighlightCellDelete: (primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']) => SystemHighlightCellDeleteAction;
|
|
@@ -302,9 +306,11 @@ export declare const SystemDataSetSelect: (dataSet: DataSet) => SystemDataSetSel
|
|
|
302
306
|
export declare const SystemChartingSetCurrentChartModels: (chartModels: ChartModel[]) => SystemChartingSetCurrentChartModelsAction;
|
|
303
307
|
export declare const SystemChartingCurrentChartModelsSelector: (state: SystemState) => ChartModel[];
|
|
304
308
|
export declare const SystemSetPreviousGroupedColumnsIndex: (layoutId: string, columnId: string, columnIndex: number) => SystemSetPreviousGroupedColumnIndexAction;
|
|
305
|
-
export declare const SystemDisableDeleteConfirmation: () =>
|
|
306
|
-
export declare const SystemVisualExportBegin: () =>
|
|
307
|
-
export declare const SystemVisualExportEnd: () =>
|
|
309
|
+
export declare const SystemDisableDeleteConfirmation: () => SystemDisableDeleteConfirmationAction;
|
|
310
|
+
export declare const SystemVisualExportBegin: () => SystemVisualExportBeginAction;
|
|
311
|
+
export declare const SystemVisualExportEnd: () => SystemVisualExportEndAction;
|
|
312
|
+
export declare const SystemQuickSearchFloatingVisibility: (visible: boolean) => SystemQuickSearchFloatingVisibilityAction;
|
|
308
313
|
export declare const SystemDisableDeleteConfirmationSelector: (state: SystemState) => boolean;
|
|
309
314
|
export declare const SystemPreviousGroupedColumnsSelector: (state: SystemState) => Record<string, Record<string, number>>;
|
|
315
|
+
export declare const SystemQuickSearchFloatingVisibilitySelector: (state: SystemState) => boolean;
|
|
310
316
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = void 0;
|
|
4
|
+
exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
|
|
5
|
+
exports.SystemReducer = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = void 0;
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
7
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
8
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -86,6 +86,8 @@ exports.SYSTEM_DATA_SET_SELECT = 'SYSTEM_DATA_SET_SELECT';
|
|
|
86
86
|
exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = 'SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS';
|
|
87
87
|
// Layout
|
|
88
88
|
exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = 'SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX';
|
|
89
|
+
// Quick Search
|
|
90
|
+
exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = 'SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY';
|
|
89
91
|
// Data Export (Report)
|
|
90
92
|
exports.SYSTEM_VISUAL_EXPORT_BEGIN = 'SYSTEM_VISUAL_EXPORT_BEGIN';
|
|
91
93
|
exports.SYSTEM_VISUAL_EXPORT_END = 'SYSTEM_VISUAL_EXPORT_END';
|
|
@@ -355,6 +357,11 @@ const SystemVisualExportEnd = () => ({
|
|
|
355
357
|
type: exports.SYSTEM_VISUAL_EXPORT_END,
|
|
356
358
|
});
|
|
357
359
|
exports.SystemVisualExportEnd = SystemVisualExportEnd;
|
|
360
|
+
const SystemQuickSearchFloatingVisibility = (visible) => ({
|
|
361
|
+
type: exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY,
|
|
362
|
+
visible,
|
|
363
|
+
});
|
|
364
|
+
exports.SystemQuickSearchFloatingVisibility = SystemQuickSearchFloatingVisibility;
|
|
358
365
|
const SystemDisableDeleteConfirmationSelector = (state) => {
|
|
359
366
|
return state.DisableDeleteConfirmation;
|
|
360
367
|
};
|
|
@@ -363,6 +370,11 @@ const SystemPreviousGroupedColumnsSelector = (state) => {
|
|
|
363
370
|
return state.Layout.previousGroupedColumns;
|
|
364
371
|
};
|
|
365
372
|
exports.SystemPreviousGroupedColumnsSelector = SystemPreviousGroupedColumnsSelector;
|
|
373
|
+
const SystemQuickSearchFloatingVisibilitySelector = (state) => {
|
|
374
|
+
var _a;
|
|
375
|
+
return (_a = state === null || state === void 0 ? void 0 : state.QuickSearch) === null || _a === void 0 ? void 0 : _a.floatingVisible;
|
|
376
|
+
};
|
|
377
|
+
exports.SystemQuickSearchFloatingVisibilitySelector = SystemQuickSearchFloatingVisibilitySelector;
|
|
366
378
|
const initialState = {
|
|
367
379
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
368
380
|
AdaptableFlashingCells: {},
|
|
@@ -746,6 +758,10 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
746
758
|
inProgressVisualData: false,
|
|
747
759
|
} });
|
|
748
760
|
}
|
|
761
|
+
case exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY: {
|
|
762
|
+
const typedAction = action;
|
|
763
|
+
return Object.assign(Object.assign({}, state), { QuickSearch: Object.assign(Object.assign({}, state.QuickSearch), { floatingVisible: typedAction.visible }) });
|
|
764
|
+
}
|
|
749
765
|
default:
|
|
750
766
|
return state;
|
|
751
767
|
}
|
|
@@ -7,6 +7,7 @@ const Redux = tslib_1.__importStar(require("redux"));
|
|
|
7
7
|
const AdaptableReduxLocalStorageEngine_1 = require("./AdaptableReduxLocalStorageEngine");
|
|
8
8
|
const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
9
9
|
const PopupRedux = tslib_1.__importStar(require("../ActionsReducers/PopupRedux"));
|
|
10
|
+
const PopupRedux_1 = require("../ActionsReducers/PopupRedux");
|
|
10
11
|
const PluginsRedux = tslib_1.__importStar(require("../ActionsReducers/PluginsRedux"));
|
|
11
12
|
const AlertRedux = tslib_1.__importStar(require("../ActionsReducers/AlertRedux"));
|
|
12
13
|
const FlashingCellRedux = tslib_1.__importStar(require("../ActionsReducers/FlashingCellRedux"));
|
|
@@ -18,6 +19,7 @@ const CalculatedColumnRedux = tslib_1.__importStar(require("../ActionsReducers/C
|
|
|
18
19
|
const ShortcutRedux = tslib_1.__importStar(require("../ActionsReducers/ShortcutRedux"));
|
|
19
20
|
const GridRedux = tslib_1.__importStar(require("../ActionsReducers/GridRedux"));
|
|
20
21
|
const SystemRedux = tslib_1.__importStar(require("../ActionsReducers/SystemRedux"));
|
|
22
|
+
const SystemRedux_1 = require("../ActionsReducers/SystemRedux");
|
|
21
23
|
const PlusMinusRedux = tslib_1.__importStar(require("../ActionsReducers/PlusMinusRedux"));
|
|
22
24
|
const ExportRedux = tslib_1.__importStar(require("../ActionsReducers/ExportRedux"));
|
|
23
25
|
const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
|
|
@@ -43,8 +45,6 @@ const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions"
|
|
|
43
45
|
const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
|
|
44
46
|
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
45
47
|
const AdaptableToaster_1 = require("../../View/Components/Popups/AdaptableToaster");
|
|
46
|
-
const SystemRedux_1 = require("../ActionsReducers/SystemRedux");
|
|
47
|
-
const PopupRedux_1 = require("../ActionsReducers/PopupRedux");
|
|
48
48
|
const TeamSharingState_1 = require("../../PredefinedConfig/TeamSharingState");
|
|
49
49
|
exports.INIT_STATE = 'INIT_STATE';
|
|
50
50
|
exports.LOAD_STATE = 'LOAD_STATE';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
|
+
import { IModule } from './Interface/IModule';
|
|
3
|
+
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
|
+
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
|
+
export declare class Fdc3Module extends AdaptableModuleBase implements IModule {
|
|
6
|
+
constructor(api: AdaptableApi);
|
|
7
|
+
isModuleAvailable(): boolean;
|
|
8
|
+
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
9
|
+
private buildRaiseIntentMenuItem;
|
|
10
|
+
private buildBroadcastMenuItem;
|
|
11
|
+
private getFdc3Options;
|
|
12
|
+
private getFdc3Api;
|
|
13
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fdc3Module = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
|
+
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
+
class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
|
+
constructor(api) {
|
|
9
|
+
super(ModuleConstants.Fdc3ModuleId, ModuleConstants.Fdc3FriendlyName, 'fdc3', null, 'The FDC3 Module - handles the FDC3 integration', api);
|
|
10
|
+
}
|
|
11
|
+
isModuleAvailable() {
|
|
12
|
+
return this.getFdc3Options().enableFdc3;
|
|
13
|
+
}
|
|
14
|
+
addContextMenuItems(menuContext) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
if (!this.isModuleAvailable()) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const currentColumnId = menuContext.adaptableColumn.columnId;
|
|
20
|
+
const currentRowNode = menuContext.rowNode;
|
|
21
|
+
const contextMenuItems = [];
|
|
22
|
+
// Raise Intent menu items
|
|
23
|
+
const raiseIntents = ((_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.raises) || {};
|
|
24
|
+
Object.keys(raiseIntents).forEach((intent) => {
|
|
25
|
+
const contexts = raiseIntents[intent];
|
|
26
|
+
const configsWithMenuItemsForCurrentColumn = contexts.filter((configElem) => { var _a; return (_a = configElem.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId); });
|
|
27
|
+
configsWithMenuItemsForCurrentColumn.forEach((raiseContextConfig) => {
|
|
28
|
+
contextMenuItems.push(this.buildRaiseIntentMenuItem(intent, raiseContextConfig.type, currentRowNode));
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
// Broadcast menu items
|
|
32
|
+
const broadcastContext = ((_b = this.getFdc3Options().contexts) === null || _b === void 0 ? void 0 : _b.broadcasts) || {};
|
|
33
|
+
Object.keys(broadcastContext).forEach((contextType) => {
|
|
34
|
+
var _a;
|
|
35
|
+
const config = broadcastContext[contextType];
|
|
36
|
+
if ((_a = config === null || config === void 0 ? void 0 : config.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId)) {
|
|
37
|
+
contextMenuItems.push(this.buildBroadcastMenuItem(contextType, currentRowNode));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
if (contextMenuItems.length > 1) {
|
|
41
|
+
const groupMenuItem = {
|
|
42
|
+
label: 'FDC3',
|
|
43
|
+
icon: {
|
|
44
|
+
name: 'fdc3',
|
|
45
|
+
},
|
|
46
|
+
isVisible: true,
|
|
47
|
+
subItems: contextMenuItems,
|
|
48
|
+
};
|
|
49
|
+
return [groupMenuItem];
|
|
50
|
+
}
|
|
51
|
+
else if (contextMenuItems.length === 1) {
|
|
52
|
+
contextMenuItems[0].icon = {
|
|
53
|
+
name: 'fdc3',
|
|
54
|
+
};
|
|
55
|
+
return contextMenuItems;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
buildRaiseIntentMenuItem(intent, context, rowNode) {
|
|
59
|
+
const menuItem = {
|
|
60
|
+
label: `Raise ${intent}`,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
this.getFdc3Api().raiseIntentFromRow(rowNode, intent, context);
|
|
63
|
+
},
|
|
64
|
+
isVisible: true,
|
|
65
|
+
};
|
|
66
|
+
return menuItem;
|
|
67
|
+
}
|
|
68
|
+
buildBroadcastMenuItem(context, rowNode) {
|
|
69
|
+
const menuItem = {
|
|
70
|
+
label: `Broadcast ${this.getFdc3Api().getContextLabel(context)}`,
|
|
71
|
+
onClick: () => {
|
|
72
|
+
this.getFdc3Api().broadcastFromRow(rowNode, context);
|
|
73
|
+
},
|
|
74
|
+
isVisible: true,
|
|
75
|
+
};
|
|
76
|
+
return menuItem;
|
|
77
|
+
}
|
|
78
|
+
getFdc3Options() {
|
|
79
|
+
return this.api.optionsApi.getFdc3Options();
|
|
80
|
+
}
|
|
81
|
+
getFdc3Api() {
|
|
82
|
+
return this.api.fdc3Api;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.Fdc3Module = Fdc3Module;
|
|
@@ -21,6 +21,8 @@ export declare const DataSetModuleId: ModuleConstants;
|
|
|
21
21
|
export declare const DataSetFriendlyName = "Data Set";
|
|
22
22
|
export declare const ExportModuleId: ModuleConstants;
|
|
23
23
|
export declare const ExportFriendlyName = "Export";
|
|
24
|
+
export declare const Fdc3ModuleId: ModuleConstants;
|
|
25
|
+
export declare const Fdc3FriendlyName = "FDC3";
|
|
24
26
|
export declare const FilterModuleId: ModuleConstants;
|
|
25
27
|
export declare const FilterFriendlyName = "Filter";
|
|
26
28
|
export declare const FormatColumnModuleId: ModuleConstants;
|
|
@@ -77,6 +79,7 @@ export declare const ADAPTABLE_MODULE_MAP: {
|
|
|
77
79
|
DataChangeHistory: string;
|
|
78
80
|
DataSet: string;
|
|
79
81
|
Export: string;
|
|
82
|
+
Fdc3: string;
|
|
80
83
|
Filter: string;
|
|
81
84
|
FormatColumn: string;
|
|
82
85
|
FreeTextColumn: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ADAPTABLE_MODULE_MAP = exports.StatusBarFriendlyName = exports.StatusBarModuleId = exports.SettingsPanelFriendlyName = exports.SettingsPanelModuleId = exports.ToolPanelFriendlyName = exports.ToolPanelModuleId = exports.ThemeFriendlyName = exports.ThemeModuleId = exports.TeamSharingFriendlyName = exports.TeamSharingModuleId = exports.SystemStatusFriendlyName = exports.SystemStatusModuleId = exports.StateManagementFriendlyName = exports.StateManagementModuleId = exports.StyledColumnFriendlyName = exports.StyledColumnModuleId = void 0;
|
|
3
|
+
exports.ShortcutFriendlyName = exports.ShortcutModuleId = exports.ScheduleFriendlyName = exports.ScheduleModuleId = exports.QuickSearchFriendlyName = exports.QuickSearchModuleId = exports.QueryFriendlyName = exports.QueryModuleId = exports.PlusMinusFriendlyName = exports.PlusMinusModuleId = exports.OpenFinFriendlyName = exports.OpenFinModuleId = exports.LayoutFriendlyName = exports.LayoutModuleId = exports.IPushPullFriendlyName = exports.IPushPullModuleId = exports.GridInfoFriendlyName = exports.GridInfoModuleId = exports.Glue42FriendlyName = exports.Glue42ModuleId = exports.FreeTextColumnFriendlyName = exports.FreeTextColumnModuleId = exports.FormatColumnFriendlyName = exports.FormatColumnModuleId = exports.FilterFriendlyName = exports.FilterModuleId = exports.Fdc3FriendlyName = exports.Fdc3ModuleId = exports.ExportFriendlyName = exports.ExportModuleId = exports.DataSetFriendlyName = exports.DataSetModuleId = exports.DataChangeHistoryFriendlyName = exports.DataChangeHistoryModuleId = exports.DashboardFriendlyName = exports.DashboardModuleId = exports.CustomSortFriendlyName = exports.CustomSortModuleId = exports.ChartingFriendlyName = exports.ChartingModuleId = exports.CellSummaryFriendlyName = exports.CellSummaryModuleId = exports.CalculatedColumnFriendlyName = exports.CalculatedColumnModuleId = exports.BulkUpdateFriendlyName = exports.BulkUpdateModuleId = exports.FlashingCellFriendlyName = exports.FlashingCellModuleId = exports.AlertModuleFriendlyName = exports.AlertModuleId = void 0;
|
|
4
|
+
exports.ADAPTABLE_MODULE_MAP = exports.StatusBarFriendlyName = exports.StatusBarModuleId = exports.SettingsPanelFriendlyName = exports.SettingsPanelModuleId = exports.ToolPanelFriendlyName = exports.ToolPanelModuleId = exports.ThemeFriendlyName = exports.ThemeModuleId = exports.TeamSharingFriendlyName = exports.TeamSharingModuleId = exports.SystemStatusFriendlyName = exports.SystemStatusModuleId = exports.StateManagementFriendlyName = exports.StateManagementModuleId = exports.StyledColumnFriendlyName = exports.StyledColumnModuleId = exports.SmartEditFriendlyName = exports.SmartEditModuleId = void 0;
|
|
5
5
|
exports.AlertModuleId = 'Alert';
|
|
6
6
|
exports.AlertModuleFriendlyName = 'Alert';
|
|
7
7
|
exports.FlashingCellModuleId = 'FlashingCell';
|
|
@@ -24,6 +24,8 @@ exports.DataSetModuleId = 'DataSet';
|
|
|
24
24
|
exports.DataSetFriendlyName = 'Data Set';
|
|
25
25
|
exports.ExportModuleId = 'Export';
|
|
26
26
|
exports.ExportFriendlyName = 'Export';
|
|
27
|
+
exports.Fdc3ModuleId = 'Fdc3';
|
|
28
|
+
exports.Fdc3FriendlyName = 'FDC3';
|
|
27
29
|
exports.FilterModuleId = 'Filter';
|
|
28
30
|
exports.FilterFriendlyName = 'Filter';
|
|
29
31
|
exports.FormatColumnModuleId = 'FormatColumn';
|
|
@@ -80,6 +82,7 @@ exports.ADAPTABLE_MODULE_MAP = {
|
|
|
80
82
|
[exports.DataChangeHistoryModuleId]: exports.DataChangeHistoryFriendlyName,
|
|
81
83
|
[exports.DataSetModuleId]: exports.DataSetFriendlyName,
|
|
82
84
|
[exports.ExportModuleId]: exports.ExportFriendlyName,
|
|
85
|
+
[exports.Fdc3ModuleId]: exports.Fdc3FriendlyName,
|
|
83
86
|
[exports.FilterModuleId]: exports.FilterFriendlyName,
|
|
84
87
|
[exports.FormatColumnModuleId]: exports.FormatColumnFriendlyName,
|
|
85
88
|
[exports.FreeTextColumnModuleId]: exports.FreeTextColumnFriendlyName,
|
|
@@ -91,7 +91,6 @@ exports.DefaultAdaptableOptions = {
|
|
|
91
91
|
columnFriendlyName: undefined,
|
|
92
92
|
columnTypes: GeneralConstants_1.EMPTY_ARRAY,
|
|
93
93
|
showMissingColumnsWarning: true,
|
|
94
|
-
autoOrderGroupedColumns: true,
|
|
95
94
|
},
|
|
96
95
|
dashboardOptions: {
|
|
97
96
|
canFloat: true,
|
|
@@ -157,6 +156,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
157
156
|
showGroupingTotalsAsHeader: false,
|
|
158
157
|
unbalancedGroupsKey: undefined,
|
|
159
158
|
restoreUngroupedColumns: false,
|
|
159
|
+
autoOrderGroupedColumns: true,
|
|
160
160
|
},
|
|
161
161
|
formatColumnOptions: {
|
|
162
162
|
customDisplayFormatters: undefined,
|
|
@@ -294,4 +294,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
294
294
|
saveStrategy: 'none',
|
|
295
295
|
agGridContainerName: GeneralConstants.AG_GRID_CHART_WINDOW,
|
|
296
296
|
},
|
|
297
|
+
fdc3Options: {
|
|
298
|
+
enableFdc3: false,
|
|
299
|
+
enableLogging: false,
|
|
300
|
+
},
|
|
297
301
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAdaptableService } from './Interface/IAdaptableService';
|
|
2
|
+
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
3
|
+
import { DesktopAgent, IntentResolution } from '@finos/fdc3';
|
|
4
|
+
import { Context } from '@finos/fdc3/dist/context/ContextTypes';
|
|
5
|
+
import { AppIdentifier } from '@finos/fdc3/dist/api/AppIdentifier';
|
|
6
|
+
export declare class Fdc3Service implements IAdaptableService {
|
|
7
|
+
private adaptableApi;
|
|
8
|
+
private contextHandlerSubscriptions;
|
|
9
|
+
private intentHandlerSubscriptions;
|
|
10
|
+
loggedAgentError: boolean;
|
|
11
|
+
constructor(adaptableApi: AdaptableApi);
|
|
12
|
+
getDesktopAgent(): DesktopAgent;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
raiseIntent(intent: string, context: Context, app?: AppIdentifier): Promise<IntentResolution>;
|
|
15
|
+
raiseIntentForContext(context: Context, app?: AppIdentifier): Promise<IntentResolution>;
|
|
16
|
+
broadcast(context: Context): Promise<void>;
|
|
17
|
+
private logFdc3Event;
|
|
18
|
+
private getFdc3Api;
|
|
19
|
+
private getFdc3Options;
|
|
20
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fdc3Service = void 0;
|
|
4
|
+
class Fdc3Service {
|
|
5
|
+
constructor(adaptableApi) {
|
|
6
|
+
this.adaptableApi = adaptableApi;
|
|
7
|
+
this.contextHandlerSubscriptions = [];
|
|
8
|
+
this.intentHandlerSubscriptions = [];
|
|
9
|
+
this.loggedAgentError = false;
|
|
10
|
+
this.adaptableApi.eventApi.on('AdaptableReady', () => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const adaptableHandleIntentFn = this.getFdc3Options().handleIntent;
|
|
13
|
+
const listenForIntents = (_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.listensFor;
|
|
14
|
+
if (listenForIntents === null || listenForIntents === void 0 ? void 0 : listenForIntents.length) {
|
|
15
|
+
if (!adaptableHandleIntentFn) {
|
|
16
|
+
this.adaptableApi.logError(`Following FDC3 Intent Listener(s) have been provided but no 'handleIntent' function has been supplied in the FDC3 Options`, listenForIntents);
|
|
17
|
+
}
|
|
18
|
+
listenForIntents.forEach((intent) => {
|
|
19
|
+
var _a;
|
|
20
|
+
(_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.addIntentListener(intent, (context, metadata) => {
|
|
21
|
+
this.logFdc3Event('IN', `Intent`, JSON.stringify(context));
|
|
22
|
+
const fnContext = Object.assign(Object.assign({}, this.adaptableApi.internalApi.buildBaseContext()), { context,
|
|
23
|
+
metadata });
|
|
24
|
+
adaptableHandleIntentFn === null || adaptableHandleIntentFn === void 0 ? void 0 : adaptableHandleIntentFn(fnContext);
|
|
25
|
+
}).then((listener) => this.intentHandlerSubscriptions.push(listener));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const adaptableHandleContextFn = this.getFdc3Options().handleContext;
|
|
29
|
+
const listenForContexts = (_b = this.getFdc3Options().contexts) === null || _b === void 0 ? void 0 : _b.listensFor;
|
|
30
|
+
if (listenForContexts === null || listenForContexts === void 0 ? void 0 : listenForContexts.length) {
|
|
31
|
+
if (!adaptableHandleContextFn) {
|
|
32
|
+
this.adaptableApi.logError(`Following FDC3 Context Listener(s) have been provided but no 'handleContext' function has been supplied in the FDC3 Options`, listenForContexts);
|
|
33
|
+
}
|
|
34
|
+
listenForContexts.forEach((contextType) => {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.addContextListener(contextType, (context, metadata) => {
|
|
37
|
+
this.logFdc3Event('IN', `Context`, JSON.stringify(context));
|
|
38
|
+
const fnContext = Object.assign(Object.assign({}, this.adaptableApi.internalApi.buildBaseContext()), { context,
|
|
39
|
+
metadata });
|
|
40
|
+
adaptableHandleContextFn === null || adaptableHandleContextFn === void 0 ? void 0 : adaptableHandleContextFn(fnContext);
|
|
41
|
+
}).then((listener) => this.contextHandlerSubscriptions.push(listener));
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getDesktopAgent() {
|
|
47
|
+
if (globalThis.fdc3 == null && !this.loggedAgentError) {
|
|
48
|
+
this.loggedAgentError = true;
|
|
49
|
+
this.adaptableApi.logError('FDC3 Desktop Agent not found. This should be provided by the wrapper application.');
|
|
50
|
+
}
|
|
51
|
+
return globalThis.fdc3;
|
|
52
|
+
}
|
|
53
|
+
destroy() {
|
|
54
|
+
this.contextHandlerSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
55
|
+
this.intentHandlerSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
56
|
+
}
|
|
57
|
+
raiseIntent(intent, context, app) {
|
|
58
|
+
var _a;
|
|
59
|
+
this.logFdc3Event('OUT', `raise ${intent}`, JSON.stringify(context));
|
|
60
|
+
return (_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.raiseIntent(intent, context, app);
|
|
61
|
+
}
|
|
62
|
+
raiseIntentForContext(context, app) {
|
|
63
|
+
var _a;
|
|
64
|
+
this.logFdc3Event('OUT', `raise for context`, JSON.stringify(context));
|
|
65
|
+
return (_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.raiseIntentForContext(context, app);
|
|
66
|
+
}
|
|
67
|
+
broadcast(context) {
|
|
68
|
+
var _a;
|
|
69
|
+
this.logFdc3Event('OUT', `broadcast`, JSON.stringify(context));
|
|
70
|
+
return (_a = this.getDesktopAgent()) === null || _a === void 0 ? void 0 : _a.broadcast(context);
|
|
71
|
+
}
|
|
72
|
+
logFdc3Event(type, ...params) {
|
|
73
|
+
if (!this.getFdc3Options().enableLogging) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.adaptableApi.internalApi
|
|
77
|
+
.getAdaptableInstance()
|
|
78
|
+
.logger.consoleLog(`FDC3::${type} - `, params.join(' : '));
|
|
79
|
+
}
|
|
80
|
+
getFdc3Api() {
|
|
81
|
+
return this.adaptableApi.fdc3Api;
|
|
82
|
+
}
|
|
83
|
+
getFdc3Options() {
|
|
84
|
+
return this.adaptableApi.optionsApi.getFdc3Options();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.Fdc3Service = Fdc3Service;
|
|
@@ -4,24 +4,26 @@ exports.AdaptableApp = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
|
+
const ProgressIndicator_1 = require("../components/ProgressIndicator/ProgressIndicator");
|
|
8
|
+
const Toastify_1 = require("../components/Toastify");
|
|
7
9
|
const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
|
|
10
|
+
const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
|
|
8
11
|
const AdaptablePopup_1 = require("./Components/Popups/AdaptablePopup");
|
|
12
|
+
const AdaptablePopupConfirmation_1 = require("./Components/Popups/AdaptablePopupConfirmation");
|
|
9
13
|
const AdaptablePopupPrompt_1 = require("./Components/Popups/AdaptablePopupPrompt");
|
|
14
|
+
const FormPopups_1 = require("./Components/Popups/FormPopups/FormPopups");
|
|
15
|
+
const WindowPopups_1 = require("./Components/Popups/WindowPopups/WindowPopups");
|
|
10
16
|
const Dashboard_1 = require("./Dashboard/Dashboard");
|
|
11
|
-
const AdaptablePopupConfirmation_1 = require("./Components/Popups/AdaptablePopupConfirmation");
|
|
12
|
-
const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
|
|
13
|
-
const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
|
|
14
17
|
const License_1 = require("./License");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const FormPopups_1 = require("./Components/Popups/FormPopups/FormPopups");
|
|
18
|
-
const Toastify_1 = require("../components/Toastify");
|
|
18
|
+
const FloatingQuickSearch_1 = require("./QuickSearch/FloatingQuickSearch/FloatingQuickSearch");
|
|
19
|
+
const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
|
|
19
20
|
class AdaptableView extends React.Component {
|
|
20
21
|
render() {
|
|
21
22
|
var _a, _b, _c, _d;
|
|
22
23
|
const watermark = (_d = (_c = (_b = (_a = this.props.AdaptableApi) === null || _a === void 0 ? void 0 : _a.internalApi) === null || _b === void 0 ? void 0 : _b.getSystemState()) === null || _c === void 0 ? void 0 : _c.License) === null || _d === void 0 ? void 0 : _d.watermark;
|
|
23
24
|
const adaptableOptions = this.props.AdaptableApi.optionsApi.getAdaptableOptions();
|
|
24
25
|
return (React.createElement("div", null,
|
|
26
|
+
React.createElement(FloatingQuickSearch_1.QuickSearchDrawer, null),
|
|
25
27
|
this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable('Dashboard') && (React.createElement(Dashboard_1.Dashboard, { api: this.props.AdaptableApi })),
|
|
26
28
|
React.createElement(AdaptableLoadingScreen_1.AdaptableLoadingScreen, { onClose: this.props.onCloseLoadingPopup, showLoadingScreen: this.props.PopupState.LoadingPopup.ShowLoadingPopup }),
|
|
27
29
|
this.props.PopupState.PromptPopup.ShowPromptPopup && (React.createElement(AdaptablePopupPrompt_1.AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, onConfirmActionCreator: this.props.PopupState.PromptPopup.ConfirmActionCreator, defaultValue: this.props.PopupState.PromptPopup.DefaultValue })),
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { AdaptableOptions } from '../../../AdaptableOptions/AdaptableOptions';
|
|
2
2
|
import { GridOptions } from '@ag-grid-community/core';
|
|
3
|
+
/**
|
|
4
|
+
* Config used by No Code Plugin to set up AdapTable
|
|
5
|
+
*/
|
|
3
6
|
export interface AdaptableConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Adaptable Options object
|
|
9
|
+
*/
|
|
4
10
|
adaptableOptions: AdaptableOptions;
|
|
11
|
+
/**
|
|
12
|
+
* AG Grid Grid Options object
|
|
13
|
+
*/
|
|
5
14
|
gridOptions: GridOptions;
|
|
6
15
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuickSearchDrawer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_redux_1 = require("react-redux");
|
|
7
|
+
const rebass_1 = require("rebass");
|
|
8
|
+
const index_1 = require("../../../components/Drawer/index");
|
|
9
|
+
const SystemRedux_1 = require("../../../Redux/ActionsReducers/SystemRedux");
|
|
10
|
+
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
11
|
+
const QuickSearchInput_1 = require("../QuickSearchInput");
|
|
12
|
+
const QuickSearchDrawer = () => {
|
|
13
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
|
+
const isOpen = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemQuickSearchFloatingVisibilitySelector)(state.System));
|
|
15
|
+
return (React.createElement(index_1.Drawer, { open: isOpen, onOpenChange: (open) => {
|
|
16
|
+
if (open) {
|
|
17
|
+
adaptable.api.quickSearchApi.showFloatingQuickSearch();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
adaptable.api.quickSearchApi.hideFloatingQuickSearch();
|
|
21
|
+
}
|
|
22
|
+
} },
|
|
23
|
+
React.createElement(rebass_1.Flex, { className: "ab-FloatinQuickSearch" },
|
|
24
|
+
React.createElement(QuickSearchInput_1.QuickSearchInput, { autoFocus: true }))));
|
|
25
|
+
};
|
|
26
|
+
exports.QuickSearchDrawer = QuickSearchDrawer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuickSearchInput = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const react_redux_1 = require("react-redux");
|
|
7
|
+
const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
|
|
8
|
+
const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
|
|
9
|
+
const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
|
|
10
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
11
|
+
const QuickSearchInput = (props) => {
|
|
12
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
13
|
+
const QuickSearchText = (0, react_redux_1.useSelector)((state) => state.QuickSearch.QuickSearchText);
|
|
14
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
15
|
+
const onRunQuickSearch = (newQuickSearchText) => dispatch(QuickSearchRedux.QuickSearchRun(newQuickSearchText));
|
|
16
|
+
const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)({
|
|
17
|
+
QuickSearchText,
|
|
18
|
+
onRunQuickSearch,
|
|
19
|
+
});
|
|
20
|
+
return (react_1.default.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", autoFocus: props.autoFocus, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: props.className, value: searchText, OnTextChange: search, style: { height: '100%' }, inputStyle: { width: '7rem' } }));
|
|
21
|
+
};
|
|
22
|
+
exports.QuickSearchInput = QuickSearchInput;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
|
|
3
|
-
import * as
|
|
2
|
+
import * as React from 'react';
|
|
4
3
|
export interface QuickSearchViewPanelComponentProps extends ViewPanelProps {
|
|
5
|
-
onRunQuickSearch: (quickSearchText: string) => QuickSearchRedux.QuickSearchRunAction;
|
|
6
|
-
QuickSearchText: string;
|
|
7
4
|
}
|
|
8
|
-
export declare const QuickSearchViewPanelControl:
|
|
5
|
+
export declare const QuickSearchViewPanelControl: React.FunctionComponent<QuickSearchViewPanelComponentProps>;
|
|
@@ -2,24 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QuickSearchViewPanelControl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
|
|
6
|
-
const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
|
|
7
|
-
const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
|
|
8
|
-
const react_redux_1 = require("react-redux");
|
|
9
5
|
const React = tslib_1.__importStar(require("react"));
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
6
|
+
const QuickSearchInput_1 = require("./QuickSearchInput");
|
|
7
|
+
const QuickSearchViewPanelControl = (props) => {
|
|
8
|
+
let elementType = props.viewType === 'ToolPanel' ? 'DashboardToolbar' : 'ToolPanel';
|
|
9
|
+
return React.createElement(QuickSearchInput_1.QuickSearchInput, { className: `ab-${elementType}__QuickSearch__text` });
|
|
14
10
|
};
|
|
15
|
-
|
|
16
|
-
return {
|
|
17
|
-
QuickSearchText: state.QuickSearch.QuickSearchText,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function mapDispatchToProps(dispatch) {
|
|
21
|
-
return {
|
|
22
|
-
onRunQuickSearch: (newQuickSearchText) => dispatch(QuickSearchRedux.QuickSearchRun(newQuickSearchText)),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.QuickSearchViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(QuickSearchViewPanelComponent);
|
|
11
|
+
exports.QuickSearchViewPanelControl = QuickSearchViewPanelControl;
|
|
@@ -10,7 +10,7 @@ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
|
10
10
|
const renderWithAdaptableContext_1 = require("../View/renderWithAdaptableContext");
|
|
11
11
|
function getActionButtonsAndActionColumn(adaptable, actionColumn, colId) {
|
|
12
12
|
var _a;
|
|
13
|
-
const actionCol =
|
|
13
|
+
const actionCol = colId == GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS
|
|
14
14
|
? actionColumn
|
|
15
15
|
: (_a = adaptable.api.actionColumnApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((ac) => ac.columnId == colId);
|
|
16
16
|
if (actionCol && actionCol.actionColumnButton) {
|
|
@@ -38,6 +38,7 @@ import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelSer
|
|
|
38
38
|
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
39
39
|
import { RenderReactRootFn } from '../renderReactRoot';
|
|
40
40
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
41
|
+
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
41
42
|
declare type RuntimeConfig = {
|
|
42
43
|
gridOptions: GridOptions;
|
|
43
44
|
waitForAgGrid?: boolean;
|
|
@@ -63,6 +64,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
63
64
|
TeamSharingService: ITeamSharingService;
|
|
64
65
|
MetamodelService: IMetamodelService;
|
|
65
66
|
RowEditService: IRowEditService;
|
|
67
|
+
Fdc3Service: Fdc3Service;
|
|
66
68
|
private LicenseService;
|
|
67
69
|
private ChartingService;
|
|
68
70
|
private ThemeService;
|