@adaptabletools/adaptable 11.1.6 → 11.1.9
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/base.css +16 -0
- package/bundle.cjs.js +106 -106
- package/index.css +20 -0
- 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 +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +58 -17
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +7 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/CellSummaryApi.d.ts +8 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +32 -15
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +34 -0
- package/src/Api/Implementation/ConfigApiImpl.js +3 -0
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -1
- package/src/Api/Implementation/InternalApiImpl.js +29 -7
- package/src/Api/Implementation/QueryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QueryApiImpl.js +12 -0
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +8 -0
- package/src/Api/Implementation/StatusBarApiImpl.js +17 -0
- package/src/Api/InternalApi.d.ts +2 -1
- package/src/Api/QueryApi.d.ts +6 -0
- package/src/Api/StatusBarApi.d.ts +10 -0
- package/src/Api/StatusBarApi.js +2 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +61 -29
- package/src/PredefinedConfig/Common/Types.d.ts +4 -2
- package/src/PredefinedConfig/Common/Types.js +32 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/GridState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +27 -0
- package/src/PredefinedConfig/StatusBarState.js +7 -0
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/GridRedux.js +4 -4
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +22 -0
- package/src/Redux/ActionsReducers/StatusBarRedux.js +31 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -3
- package/src/Redux/ActionsReducers/SystemRedux.js +22 -5
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -2
- package/src/Redux/Store/AdaptableStore.js +24 -10
- package/src/Strategy/AlertModule.d.ts +3 -0
- package/src/Strategy/AlertModule.js +6 -0
- package/src/Strategy/CellSummaryModule.d.ts +6 -0
- package/src/Strategy/CellSummaryModule.js +14 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +7 -0
- package/src/Strategy/DataChangeHistoryModule.js +11 -0
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +1 -0
- package/src/Strategy/FilterModule.d.ts +6 -0
- package/src/Strategy/FilterModule.js +21 -0
- package/src/Strategy/Interface/IModule.d.ts +21 -10
- package/src/Strategy/LayoutModule.d.ts +7 -0
- package/src/Strategy/LayoutModule.js +13 -0
- package/src/Strategy/QueryModule.d.ts +8 -0
- package/src/Strategy/QueryModule.js +18 -0
- package/src/Strategy/QuickSearchModule.d.ts +6 -0
- package/src/Strategy/QuickSearchModule.js +10 -0
- package/src/Strategy/StatusBarModule.d.ts +8 -0
- package/src/Strategy/StatusBarModule.js +39 -0
- package/src/Strategy/SystemStatusModule.d.ts +6 -0
- package/src/Strategy/SystemStatusModule.js +10 -0
- package/src/Strategy/ThemeModule.d.ts +7 -0
- package/src/Strategy/ThemeModule.js +12 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -0
- package/src/Utilities/Constants/ModuleConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -2
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/AlertStatusSubPanel.d.ts +2 -0
- package/src/View/Alert/AlertStatusSubPanel.js +56 -0
- package/src/View/Alert/AlertViewPanel.js +6 -7
- package/src/View/Alert/AlertsPanel.d.ts +1 -1
- package/src/View/Alert/AlertsPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +5 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +15 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -7
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -8
- package/src/View/Alert/Wizard/AlertWizard.js +3 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +15 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.js +36 -0
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -20
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +6 -5
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -1
- package/src/View/Components/RangesComponent.js +6 -2
- package/src/View/Components/StyleComponent.js +18 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -3
- package/src/View/Dashboard/DashboardPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -13
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.d.ts +2 -0
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.d.ts +4 -16
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +32 -40
- package/src/View/Filter/ActiveFiltersPanel.d.ts +0 -2
- package/src/View/Filter/FilterStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +18 -0
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -1
- package/src/View/Layout/EditCurrentLayoutButton.d.ts +2 -0
- package/src/View/Layout/EditCurrentLayoutButton.js +14 -0
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutPopup.js +3 -3
- package/src/View/Layout/LayoutRadioSelector.d.ts +1 -0
- package/src/View/Layout/LayoutRadioSelector.js +2 -2
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +29 -0
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.d.ts +2 -0
- package/src/View/Query/EditCurrentQueryButton.js +15 -0
- package/src/View/Query/QueryViewPanel.d.ts +0 -1
- package/src/View/Query/QueryViewPanel.js +2 -11
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/QuickSearchStatusBarContent.d.ts +2 -0
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +16 -0
- package/src/View/StatusBar/AdaptableStatusBar.d.ts +3 -0
- package/src/View/StatusBar/AdaptableStatusBar.js +44 -0
- package/src/View/StatusBar/StatusBarPanel.d.ts +42 -0
- package/src/View/StatusBar/StatusBarPanel.js +45 -0
- package/src/View/StatusBar/StatusBarPopup.d.ts +3 -0
- package/src/View/StatusBar/StatusBarPopup.js +43 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.d.ts +2 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +15 -0
- package/src/View/SystemStatus/SystemStatusViewPanel.js +3 -7
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.d.ts +5 -0
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +16 -0
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +2 -0
- package/src/View/Theme/ThemeStatusPanelPopover.js +36 -0
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +27 -0
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/createAgStatusPanelComponent.d.ts +21 -0
- package/src/agGrid/createAgStatusPanelComponent.js +31 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +9 -162
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +7 -0
- package/src/components/DragAndDropContext/DragAndDropContext.js +14 -0
- package/src/components/DragAndDropContext/ModuleManager.d.ts +17 -0
- package/src/components/DragAndDropContext/ModuleManager.js +81 -0
- package/src/components/DragAndDropContext/TabList.d.ts +29 -0
- package/src/components/DragAndDropContext/TabList.js +72 -0
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +6 -0
- package/src/components/DragAndDropContext/UnusedPanel.js +46 -0
- package/src/components/DragAndDropContext/types.d.ts +8 -0
- package/src/components/DragAndDropContext/types.js +2 -0
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SimpleButton/index.js +3 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/DefaultIcon.d.ts +2 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/statusbar.d.ts +3 -0
- package/src/components/icons/statusbar.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +231 -0
- package/src/metamodel/adaptable.metamodel.js +433 -37
- package/src/types.d.ts +4 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = 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.
|
|
3
|
+
exports.SystemReducer = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = 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_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_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
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -14,7 +14,8 @@ exports.FLASHING_CELL_ROW_KEY = '__ROW';
|
|
|
14
14
|
exports.SYSTEM_ALERT_ADD = 'SYSTEM_ALERT_ADD';
|
|
15
15
|
exports.SYSTEM_ALERT_DELETE = 'SYSTEM_ALERT_DELETE';
|
|
16
16
|
exports.SYSTEM_ALERT_DELETE_ALL = 'SYSTEM_ALERT_DELETE_ALL';
|
|
17
|
-
exports.
|
|
17
|
+
exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT';
|
|
18
|
+
exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT';
|
|
18
19
|
// Flashing Cells
|
|
19
20
|
exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
|
|
20
21
|
exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
|
|
@@ -111,8 +112,12 @@ exports.SystemAlertDeleteAll = (alerts) => ({
|
|
|
111
112
|
type: exports.SYSTEM_ALERT_DELETE_ALL,
|
|
112
113
|
alerts: alerts,
|
|
113
114
|
});
|
|
114
|
-
exports.
|
|
115
|
-
type: exports.
|
|
115
|
+
exports.SystemAlertRemoveCellHighlight = (alert) => ({
|
|
116
|
+
type: exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT,
|
|
117
|
+
alert: alert,
|
|
118
|
+
});
|
|
119
|
+
exports.SystemAlertRemoveRowHighlight = (alert) => ({
|
|
120
|
+
type: exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT,
|
|
116
121
|
alert: alert,
|
|
117
122
|
});
|
|
118
123
|
exports.SystemFlashingCellAdd = (flashingCell) => ({
|
|
@@ -281,7 +286,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
281
286
|
case exports.SYSTEM_ALERT_DELETE_ALL: {
|
|
282
287
|
return Object.assign({}, state, { AdaptableAlerts: [] });
|
|
283
288
|
}
|
|
284
|
-
case exports.
|
|
289
|
+
case exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT: {
|
|
285
290
|
const adaptableAlert = action.alert;
|
|
286
291
|
return Object.assign(Object.assign({}, state), { AdaptableAlerts: state.AdaptableAlerts.map((abObject) => {
|
|
287
292
|
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
@@ -289,6 +294,18 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
289
294
|
const newAbObject = Object.assign({}, abObject);
|
|
290
295
|
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
291
296
|
delete newAbObject.alertDefinition.AlertProperties.HighlightCell;
|
|
297
|
+
return newAbObject;
|
|
298
|
+
}
|
|
299
|
+
return abObject;
|
|
300
|
+
}) });
|
|
301
|
+
}
|
|
302
|
+
case exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT: {
|
|
303
|
+
const adaptableAlert = action.alert;
|
|
304
|
+
return Object.assign(Object.assign({}, state), { AdaptableAlerts: state.AdaptableAlerts.map((abObject) => {
|
|
305
|
+
if (abObject.Uuid === adaptableAlert.Uuid) {
|
|
306
|
+
// AdaptableAlerts are still linked to the live AlertDefinitions, so we have to decouple them
|
|
307
|
+
const newAbObject = Object.assign({}, abObject);
|
|
308
|
+
newAbObject.alertDefinition = Helper_1.cloneObject(abObject.alertDefinition);
|
|
292
309
|
delete newAbObject.alertDefinition.AlertProperties.HighlightRow;
|
|
293
310
|
return newAbObject;
|
|
294
311
|
}
|
|
@@ -101,10 +101,10 @@ function MergeStateFunction(oldState, newState) {
|
|
|
101
101
|
const stateRevision = (_b = state[stateModuleName].Revision) !== null && _b !== void 0 ? _b : 0;
|
|
102
102
|
const configRevision = (_c = config[stateModuleName].Revision) !== null && _c !== void 0 ? _c : 0;
|
|
103
103
|
const stateRevisionKey = typeof stateRevision === 'object' ? stateRevision.Key : stateRevision;
|
|
104
|
-
const
|
|
104
|
+
const configRevisionBehaviour = typeof configRevision === 'object' ? configRevision.Behavior : 'Override';
|
|
105
105
|
const configRevisionKey = typeof configRevision === 'object' ? configRevision.Key : configRevision;
|
|
106
106
|
if (configRevisionKey > stateRevisionKey) {
|
|
107
|
-
if (
|
|
107
|
+
if (configRevisionBehaviour === 'Override') {
|
|
108
108
|
state[stateModuleName] = config[stateModuleName];
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
@@ -34,6 +34,7 @@ const ToolPanelRedux = tslib_1.__importStar(require("../ActionsReducers/ToolPane
|
|
|
34
34
|
const ScheduleRedux = tslib_1.__importStar(require("../ActionsReducers/ScheduleRedux"));
|
|
35
35
|
const TeamSharingRedux = tslib_1.__importStar(require("../ActionsReducers/TeamSharingRedux"));
|
|
36
36
|
const QueryRedux = tslib_1.__importStar(require("../ActionsReducers/QueryRedux"));
|
|
37
|
+
const StatusBarRedux = tslib_1.__importStar(require("../ActionsReducers/StatusBarRedux"));
|
|
37
38
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
38
39
|
const ConfigConstants = tslib_1.__importStar(require("../../Utilities/Constants/ConfigConstants"));
|
|
39
40
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
@@ -138,6 +139,7 @@ class AdaptableStore {
|
|
|
138
139
|
FreeTextColumn: FreeTextColumnRedux.FreeTextColumnReducer,
|
|
139
140
|
Layout: LayoutRedux.LayoutReducer,
|
|
140
141
|
Schedule: ScheduleRedux.ScheduleReducer,
|
|
142
|
+
StatusBar: StatusBarRedux.StatusBarReducer,
|
|
141
143
|
PlusMinus: PlusMinusRedux.PlusMinusReducer,
|
|
142
144
|
QuickSearch: QuickSearchRedux.QuickSearchReducer,
|
|
143
145
|
Shortcut: ShortcutRedux.ShortcutReducer,
|
|
@@ -436,20 +438,32 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
436
438
|
* Use Case: A System Alert had a Highlight Cell with a limited duration
|
|
437
439
|
* Action: Refresh the cell (to clear the style)
|
|
438
440
|
*/
|
|
439
|
-
case SystemRedux.
|
|
441
|
+
case SystemRedux.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT: {
|
|
440
442
|
let ret = next(action);
|
|
441
443
|
const actionTyped = action;
|
|
442
444
|
const adaptableAlert = actionTyped.alert;
|
|
443
|
-
if ((
|
|
444
|
-
AdaptableAlert_1.isAdaptableCellChangedAlert(adaptableAlert) &&
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
if ((_e = adaptableAlert.alertDefinition.AlertProperties) === null || _e === void 0 ? void 0 : _e.HighlightCell) {
|
|
446
|
+
if (AdaptableAlert_1.isAdaptableCellChangedAlert(adaptableAlert) &&
|
|
447
|
+
adaptableAlert.cellDataChangedInfo) {
|
|
448
|
+
const rowNode = adaptableAlert.cellDataChangedInfo.rowNode;
|
|
449
|
+
adaptable.refreshCells([rowNode], [adaptableAlert.cellDataChangedInfo.column.columnId], true);
|
|
450
|
+
}
|
|
448
451
|
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
return ret;
|
|
453
|
+
}
|
|
454
|
+
case SystemRedux.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT: {
|
|
455
|
+
let ret = next(action);
|
|
456
|
+
const actionTyped = action;
|
|
457
|
+
const adaptableAlert = actionTyped.alert;
|
|
458
|
+
if ((_f = adaptableAlert.alertDefinition.AlertProperties) === null || _f === void 0 ? void 0 : _f.HighlightRow) {
|
|
459
|
+
if (AdaptableAlert_1.isAdaptableCellChangedAlert(adaptableAlert) &&
|
|
460
|
+
adaptableAlert.cellDataChangedInfo) {
|
|
461
|
+
adaptable.api.gridApi.refreshRowNodes([adaptableAlert.cellDataChangedInfo.rowNode]);
|
|
462
|
+
}
|
|
463
|
+
if (AdaptableAlert_1.isAdaptableRowChangedAlert(adaptableAlert) &&
|
|
464
|
+
adaptableAlert.gridDataChangedInfo) {
|
|
465
|
+
adaptable.api.gridApi.refreshRowNodes(adaptableAlert.gridDataChangedInfo.rowNodes);
|
|
466
|
+
}
|
|
453
467
|
}
|
|
454
468
|
return ret;
|
|
455
469
|
}
|
|
@@ -34,5 +34,8 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
34
34
|
module: IModule;
|
|
35
35
|
}>;
|
|
36
36
|
getEditWizard: () => (props: import("../View/Alert/Wizard/AlertWizard").AlertWizardProps) => JSX.Element;
|
|
37
|
+
getStatusBarPanelProps: () => {
|
|
38
|
+
view: () => JSX.Element;
|
|
39
|
+
};
|
|
37
40
|
};
|
|
38
41
|
}
|
|
@@ -15,6 +15,7 @@ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
|
15
15
|
const getAlertPreviewViewItems_1 = require("./Utilities/getAlertPreviewViewItems");
|
|
16
16
|
const getAlertBehaviourViewItems_1 = require("./Utilities/getAlertBehaviourViewItems");
|
|
17
17
|
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
18
|
+
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
18
19
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
19
20
|
constructor(api) {
|
|
20
21
|
super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
@@ -262,6 +263,11 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
262
263
|
getUnSuspendAction: AlertRedux.AlertDefinitionUnSuspend,
|
|
263
264
|
emptyView: AlertEmptyView_1.AlertEmptyView,
|
|
264
265
|
getEditWizard: () => AlertWizard_1.AlertWizard,
|
|
266
|
+
getStatusBarPanelProps: () => {
|
|
267
|
+
return {
|
|
268
|
+
view: AlertStatusSubPanel_1.AlertStatusPanel,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
265
271
|
};
|
|
266
272
|
}
|
|
267
273
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { ICellSummaryModule } from './Interface/ICellSummaryModule';
|
|
3
4
|
import { SelectedCellInfo } from '../PredefinedConfig/Selection/SelectedCellInfo';
|
|
@@ -10,4 +11,9 @@ export declare class CellSummaryModule extends AdaptableModuleBase implements IC
|
|
|
10
11
|
getViewAccessLevel(): AccessLevel;
|
|
11
12
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
12
13
|
createCellSummary(selectedCellInfo: SelectedCellInfo): CellSummmary;
|
|
14
|
+
getViewProperties(): {
|
|
15
|
+
getStatusBarPanelProps(): {
|
|
16
|
+
view: () => JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
13
19
|
}
|
|
@@ -7,6 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
8
8
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
9
9
|
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
10
|
+
const CellSummaryStatusPanel_1 = require("../View/CellSummary/CellSummaryStatusPanel");
|
|
10
11
|
class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
12
|
constructor(api) {
|
|
12
13
|
super(ModuleConstants.CellSummaryModuleId, 'Cell Summary', 'cell-summary', 'CellSummaryPopup', 'See summary information on a group of cells using multiple summary operations', api);
|
|
@@ -97,5 +98,18 @@ class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
97
98
|
}
|
|
98
99
|
return selectedCellSummary;
|
|
99
100
|
}
|
|
101
|
+
getViewProperties() {
|
|
102
|
+
return {
|
|
103
|
+
getStatusBarPanelProps() {
|
|
104
|
+
/**
|
|
105
|
+
* This uses a custom view because it has special logic to
|
|
106
|
+
* trigger summary operations when the component is rendered.
|
|
107
|
+
*/
|
|
108
|
+
return {
|
|
109
|
+
view: CellSummaryStatusPanel_1.CellSummaryStatusPanel,
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
100
114
|
}
|
|
101
115
|
exports.CellSummaryModule = CellSummaryModule;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { IModule } from './Interface/IModule';
|
|
3
4
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
@@ -6,4 +7,10 @@ export declare class DataChangeHistoryModule extends AdaptableModuleBase impleme
|
|
|
6
7
|
getPopupMaxWidth(): number;
|
|
7
8
|
hasNamedQueryReferences(): boolean;
|
|
8
9
|
private shouldLogDataChange;
|
|
10
|
+
getViewProperties(): {
|
|
11
|
+
getStatusBarPanelProps: () => {
|
|
12
|
+
triggerActionOnWrapperClick: boolean;
|
|
13
|
+
content: import("react").FunctionComponent<{}>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
8
|
+
const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
|
|
8
9
|
class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
10
|
constructor(api) {
|
|
10
11
|
super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
@@ -36,5 +37,15 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
|
|
|
36
37
|
}
|
|
37
38
|
return true;
|
|
38
39
|
}
|
|
40
|
+
getViewProperties() {
|
|
41
|
+
return {
|
|
42
|
+
getStatusBarPanelProps: () => {
|
|
43
|
+
return {
|
|
44
|
+
triggerActionOnWrapperClick: false,
|
|
45
|
+
content: DataChangeHistoryStatusBarContent_1.DataChangeHistoryStatusBarContent,
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
39
50
|
}
|
|
40
51
|
exports.DataChangeHistoryModule = DataChangeHistoryModule;
|
|
@@ -30,6 +30,7 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
|
|
|
30
30
|
toView(report: Report): AdaptableObjectView;
|
|
31
31
|
toViewAll(): AdaptableObjectView[];
|
|
32
32
|
getViewProperties(): {
|
|
33
|
+
newTooltipText: string;
|
|
33
34
|
actions: import("react").FunctionComponent<{
|
|
34
35
|
data: Report;
|
|
35
36
|
}>[];
|
|
@@ -233,6 +233,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
233
233
|
}
|
|
234
234
|
getViewProperties() {
|
|
235
235
|
return {
|
|
236
|
+
newTooltipText: 'Create New Report',
|
|
236
237
|
actions: [ReportExportDropdown_1.ReportExportDropdown],
|
|
237
238
|
getDeleteAction: ExportRedux.ReportDelete,
|
|
238
239
|
getEditWizard() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
4
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
@@ -21,5 +22,10 @@ export declare class FilterModule extends AdaptableModuleBase implements IModule
|
|
|
21
22
|
getViewProperties(): {
|
|
22
23
|
getDeleteAction: (columnFilter: ColumnFilter) => FilterRedux.ColumnFilterClearAction;
|
|
23
24
|
emptyView: string;
|
|
25
|
+
getStatusBarPanelProps(): {
|
|
26
|
+
content: string;
|
|
27
|
+
popover: import("react").FunctionComponent<{}>;
|
|
28
|
+
popoverMinWidth: number;
|
|
29
|
+
};
|
|
24
30
|
};
|
|
25
31
|
}
|
|
@@ -7,6 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
8
8
|
const FilterRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FilterRedux"));
|
|
9
9
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
10
|
+
const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
|
|
10
11
|
class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
12
|
constructor(api) {
|
|
12
13
|
super(ModuleConstants.FilterModuleId, 'Filter', 'column-filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
|
|
@@ -95,6 +96,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
95
96
|
return this.getModuleAdaptableObjects().map((filter) => this.toView(filter));
|
|
96
97
|
}
|
|
97
98
|
getViewProperties() {
|
|
99
|
+
const api = this.api;
|
|
98
100
|
return {
|
|
99
101
|
getDeleteAction: FilterRedux.ColumnFilterClear,
|
|
100
102
|
emptyView: `
|
|
@@ -102,6 +104,25 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
102
104
|
|
|
103
105
|
Create column filters by using the filter dropdown the Quick Filter Bar or the Filter Form in the Column Header Menu.
|
|
104
106
|
`,
|
|
107
|
+
getStatusBarPanelProps() {
|
|
108
|
+
let text;
|
|
109
|
+
const filters = api.filterApi.getAllColumnFilter();
|
|
110
|
+
if (filters.length === 0) {
|
|
111
|
+
text = '0 Filters';
|
|
112
|
+
}
|
|
113
|
+
else if (filters.length === 1) {
|
|
114
|
+
text = '1 Filter';
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
text = filters.length + ' Filters';
|
|
118
|
+
}
|
|
119
|
+
const popover = filters.length ? FilterStatusBarSubPanelPopover_1.FilterStatusBarSubPanelPopover : null;
|
|
120
|
+
return {
|
|
121
|
+
content: text,
|
|
122
|
+
popover,
|
|
123
|
+
popoverMinWidth: 280,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
105
126
|
};
|
|
106
127
|
}
|
|
107
128
|
}
|
|
@@ -10,16 +10,7 @@ import { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
|
|
|
10
10
|
import { AdaptableOnePageWizardProps } from '../../View/Wizard/Interface/IAdaptableWizard';
|
|
11
11
|
import * as Redux from 'redux';
|
|
12
12
|
import { SuspendableObject } from '../../../types';
|
|
13
|
-
|
|
14
|
-
* This is the interface that all Moduless implement (as well as all deriving from AdaptableModulesBase).
|
|
15
|
-
* Each Module is responsible for creating popup and context menu items, providing an entitlement ( the default is 'Default') and initialising with Redux
|
|
16
|
-
* Most Modules map to their own Reducer (e.g. QuickSearchModules => QuickSearchReducer)
|
|
17
|
-
* However these Moduless DONT store any State:
|
|
18
|
-
* Application
|
|
19
|
-
* GridInfo
|
|
20
|
-
* StateManagement
|
|
21
|
-
* TeamSharing
|
|
22
|
-
*/
|
|
13
|
+
import { StatusBarPanelProps } from '../../View/StatusBar/StatusBarPanel';
|
|
23
14
|
export interface ModuleInfo {
|
|
24
15
|
ModuleName: AdaptableModule;
|
|
25
16
|
FriendlyName: string;
|
|
@@ -86,6 +77,7 @@ export interface AdaptableModuleView {
|
|
|
86
77
|
emptyView?: React.FunctionComponent<{
|
|
87
78
|
module: IModule;
|
|
88
79
|
}> | string;
|
|
80
|
+
newTooltipText?: string;
|
|
89
81
|
/**
|
|
90
82
|
* Specifieds the types of objects the module manages.
|
|
91
83
|
* When specified the new button will have these options.
|
|
@@ -96,7 +88,22 @@ export interface AdaptableModuleView {
|
|
|
96
88
|
accessLevel?: AccessLevel;
|
|
97
89
|
}[];
|
|
98
90
|
getEditWizard?(abObject?: AdaptableObject): React.FunctionComponent<AdaptableOnePageWizardProps<AdaptableObject>>;
|
|
91
|
+
/**
|
|
92
|
+
* Specify status panel props.
|
|
93
|
+
* Can be extended to include custom rendereres.
|
|
94
|
+
*/
|
|
95
|
+
getStatusBarPanelProps?(): StatusBarPanelProps;
|
|
99
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* This is the interface that all Moduless implement (as well as all deriving from AdaptableModulesBase).
|
|
99
|
+
* Each Module is responsible for creating popup and context menu items, providing an entitlement ( the default is 'Default') and initialising with Redux
|
|
100
|
+
* Most Modules map to their own Reducer (e.g. QuickSearchModules => QuickSearchReducer)
|
|
101
|
+
* However these Moduless DONT store any State:
|
|
102
|
+
* Application
|
|
103
|
+
* GridInfo
|
|
104
|
+
* StateManagement
|
|
105
|
+
* TeamSharing
|
|
106
|
+
*/
|
|
100
107
|
export interface IModule {
|
|
101
108
|
moduleInfo: ModuleInfo;
|
|
102
109
|
AccessLevel: AccessLevel;
|
|
@@ -114,6 +121,10 @@ export interface IModule {
|
|
|
114
121
|
getModuleFreeTextColumnReferences(): FreeTextColumn[];
|
|
115
122
|
getPopupMaxWidth(): number | undefined;
|
|
116
123
|
updateOldConfig(): void;
|
|
124
|
+
/**
|
|
125
|
+
* The following view options are used to render adaptable objects and
|
|
126
|
+
* module general views.
|
|
127
|
+
*/
|
|
117
128
|
toView?: (abObject: AdaptableObject) => AdaptableObjectView;
|
|
118
129
|
toViewAll?: () => AdaptableObjectView[];
|
|
119
130
|
getViewProperties?: () => AdaptableModuleView;
|
|
@@ -35,8 +35,15 @@ export declare class LayoutModule extends AdaptableModuleBase implements IModule
|
|
|
35
35
|
getViewProperties(): {
|
|
36
36
|
actions: import("react").FunctionComponent<{
|
|
37
37
|
data: Layout;
|
|
38
|
+
id?: string;
|
|
38
39
|
}>[];
|
|
39
40
|
getDeleteAction: (layout: Layout) => LayoutRedux.LayoutDeleteAction;
|
|
40
41
|
onOpenEditPopup: (layout?: Layout) => void;
|
|
42
|
+
getStatusBarPanelProps: () => {
|
|
43
|
+
content: string;
|
|
44
|
+
popover: import("react").FunctionComponent<{}>;
|
|
45
|
+
popoverMinWidth: number;
|
|
46
|
+
extraActions: import("react").FunctionComponent<{}>[];
|
|
47
|
+
};
|
|
41
48
|
};
|
|
42
49
|
}
|
|
@@ -7,6 +7,8 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const LayoutRadioSelector_1 = require("../View/Layout/LayoutRadioSelector");
|
|
10
|
+
const LayoutStatusBarSubPanelPopover_1 = require("../View/Layout/LayoutStatusBarSubPanelPopover");
|
|
11
|
+
const EditCurrentLayoutButton_1 = require("../View/Layout/EditCurrentLayoutButton");
|
|
10
12
|
class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
13
|
constructor(api) {
|
|
12
14
|
super(ModuleConstants.LayoutModuleId, 'Layout', 'layout', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
@@ -196,6 +198,17 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
196
198
|
this.api.layoutApi.showLayoutEditor(layout.Name);
|
|
197
199
|
}
|
|
198
200
|
},
|
|
201
|
+
getStatusBarPanelProps: () => {
|
|
202
|
+
const text = this.api.layoutApi.getCurrentLayoutName();
|
|
203
|
+
const layouts = this.api.layoutApi.getAllLayout();
|
|
204
|
+
const popover = layouts.length > 1 ? LayoutStatusBarSubPanelPopover_1.LayoutStatusBarSubPanelPopover : null;
|
|
205
|
+
return {
|
|
206
|
+
content: text,
|
|
207
|
+
popover: popover,
|
|
208
|
+
popoverMinWidth: 150,
|
|
209
|
+
extraActions: [EditCurrentLayoutButton_1.EditCurrentLayoutButton],
|
|
210
|
+
};
|
|
211
|
+
},
|
|
199
212
|
};
|
|
200
213
|
}
|
|
201
214
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import * as QueryRedux from '../Redux/ActionsReducers/QueryRedux';
|
|
3
4
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
@@ -28,6 +29,13 @@ export declare class QueryModule extends AdaptableModuleBase implements IModule
|
|
|
28
29
|
}[];
|
|
29
30
|
getViewProperties(): {
|
|
30
31
|
getDeleteAction: (namedQuery: NamedQuery) => QueryRedux.NamedQueryDeleteAction;
|
|
32
|
+
newTooltipText: string;
|
|
33
|
+
emptyView: string;
|
|
31
34
|
getEditWizard: () => typeof NamedQueryWizard;
|
|
35
|
+
getStatusBarPanelProps: () => {
|
|
36
|
+
content: string;
|
|
37
|
+
extraActions: (() => JSX.Element)[];
|
|
38
|
+
popover: string;
|
|
39
|
+
};
|
|
32
40
|
};
|
|
33
41
|
}
|
|
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const QueryRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/QueryRedux"));
|
|
8
8
|
const NamedQueryWizard_1 = require("../View/Query/Wizard/NamedQueryWizard");
|
|
9
|
+
const EditCurrentQueryButton_1 = require("../View/Query/EditCurrentQueryButton");
|
|
9
10
|
class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
11
|
constructor(api) {
|
|
11
12
|
super(ModuleConstants.QueryModuleId, 'Query', 'query', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
|
|
@@ -47,7 +48,24 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
47
48
|
getViewProperties() {
|
|
48
49
|
return {
|
|
49
50
|
getDeleteAction: QueryRedux.NamedQueryDelete,
|
|
51
|
+
newTooltipText: 'Create New Named Query',
|
|
52
|
+
emptyView: "Click 'New' to create a Named Query that can be referenced in other Expressions",
|
|
50
53
|
getEditWizard: () => NamedQueryWizard_1.NamedQueryWizard,
|
|
54
|
+
getStatusBarPanelProps: () => {
|
|
55
|
+
const queryMaxLength = 15;
|
|
56
|
+
const query = this.api.queryApi.getCurrentQuery();
|
|
57
|
+
let text = query;
|
|
58
|
+
let popover = null;
|
|
59
|
+
if (query.length > queryMaxLength) {
|
|
60
|
+
text = query.substring(0, queryMaxLength - 3) + '...';
|
|
61
|
+
popover = query;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
content: text || 'No Query',
|
|
65
|
+
extraActions: [EditCurrentQueryButton_1.EditCurrentQueryButton],
|
|
66
|
+
popover,
|
|
67
|
+
};
|
|
68
|
+
},
|
|
51
69
|
};
|
|
52
70
|
}
|
|
53
71
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { IModule } from './Interface/IModule';
|
|
3
4
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
5
|
export declare class QuickSearchModule extends AdaptableModuleBase implements IModule {
|
|
5
6
|
constructor(api: AdaptableApi);
|
|
7
|
+
getViewProperties(): {
|
|
8
|
+
getStatusBarPanelProps(): {
|
|
9
|
+
content: import("react").FunctionComponent<{}>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
6
12
|
}
|
|
@@ -4,9 +4,19 @@ exports.QuickSearchModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
+
const QuickSearchStatusBarContent_1 = require("../View/QuickSearch/QuickSearchStatusBarContent");
|
|
7
8
|
class QuickSearchModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
9
|
constructor(api) {
|
|
9
10
|
super(ModuleConstants.QuickSearchModuleId, 'Quick Search', 'quick-search', 'QuickSearchPopup', 'Quickly highlight all cells in the grid that contain matching query text', api);
|
|
10
11
|
}
|
|
12
|
+
getViewProperties() {
|
|
13
|
+
return {
|
|
14
|
+
getStatusBarPanelProps() {
|
|
15
|
+
return {
|
|
16
|
+
content: QuickSearchStatusBarContent_1.QuickSearchStatusBarContent,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
}
|
|
12
22
|
exports.QuickSearchModule = QuickSearchModule;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
|
+
import { IModule } from './Interface/IModule';
|
|
3
|
+
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
|
+
export declare class StatusBarModule extends AdaptableModuleBase implements IModule {
|
|
5
|
+
constructor(api: AdaptableApi);
|
|
6
|
+
syncStateWithOptions(): void;
|
|
7
|
+
isModuleAvailable(): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusBarModule = 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 StatusBarModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
|
+
constructor(api) {
|
|
9
|
+
super(ModuleConstants.StatusBarModuleId, 'Status Bar', 'statusbar', 'StatusBarPopup', 'Configure AdapTable Status Bar', api);
|
|
10
|
+
}
|
|
11
|
+
syncStateWithOptions() {
|
|
12
|
+
const agGridStatusPanels = this.api.statusBarApi.getAgGridStatusPanels();
|
|
13
|
+
const statusPanelsState = this.api.statusBarApi.getStatusPanels();
|
|
14
|
+
/**
|
|
15
|
+
* Grid config determines how many adaptable status panels are rendered.
|
|
16
|
+
* This dictates the state.
|
|
17
|
+
* - if a status panel is removed from ag-grid, it's sub-panels are made available;
|
|
18
|
+
* - if a new status panel is added it is added to state with an empty list
|
|
19
|
+
*/
|
|
20
|
+
const newStatusPanelsState = agGridStatusPanels.map((agGridStatusPanel) => {
|
|
21
|
+
let statusPanelState = statusPanelsState.find((statusPanel) => statusPanel.Key === agGridStatusPanel.key);
|
|
22
|
+
// no state found
|
|
23
|
+
if (!statusPanelState) {
|
|
24
|
+
statusPanelState = {
|
|
25
|
+
Key: agGridStatusPanel.key,
|
|
26
|
+
StatusBarPanels: [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return statusPanelState;
|
|
30
|
+
});
|
|
31
|
+
this.api.statusBarApi.setStatusPanels(newStatusPanelsState);
|
|
32
|
+
}
|
|
33
|
+
isModuleAvailable() {
|
|
34
|
+
return false;
|
|
35
|
+
// TODO: replace with this like when we release Status Bar properly
|
|
36
|
+
// return super.isModuleAvailable() && this.api.statusBarApi.getAgGridStatusPanels().length > 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.StatusBarModule = StatusBarModule;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
4
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
@@ -7,4 +8,9 @@ export declare class SystemStatusModule extends AdaptableModuleBase implements I
|
|
|
7
8
|
constructor(api: AdaptableApi);
|
|
8
9
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
9
10
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
11
|
+
getViewProperties(): {
|
|
12
|
+
getStatusBarPanelProps: () => {
|
|
13
|
+
content: import("react").FunctionComponent<{}>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
10
16
|
}
|
|
@@ -4,6 +4,7 @@ exports.SystemStatusModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
+
const SystemStatusStatusBarContent_1 = require("../View/SystemStatus/SystemStatusStatusBarContent");
|
|
7
8
|
class SystemStatusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
9
|
constructor(api) {
|
|
9
10
|
super(ModuleConstants.SystemStatusModuleId, 'System Status', 'system-status', 'SystemStatusPopup', 'Provide messages about the Status of your application', api);
|
|
@@ -30,5 +31,14 @@ class SystemStatusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
30
31
|
];
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
getViewProperties() {
|
|
35
|
+
return {
|
|
36
|
+
getStatusBarPanelProps: () => {
|
|
37
|
+
return {
|
|
38
|
+
content: SystemStatusStatusBarContent_1.SystemStatusStatusBarContent,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
exports.SystemStatusModule = SystemStatusModule;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
3
|
import { IModule } from './Interface/IModule';
|
|
3
4
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
@@ -6,4 +7,10 @@ export declare class ThemeModule extends AdaptableModuleBase implements IModule
|
|
|
6
7
|
constructor(api: AdaptableApi);
|
|
7
8
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
8
9
|
hasNamedQueryReferences(): boolean;
|
|
10
|
+
getViewProperties(): {
|
|
11
|
+
getStatusBarPanelProps: () => {
|
|
12
|
+
content: string;
|
|
13
|
+
popover: import("react").FunctionComponent<{}>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
}
|