@adaptabletools/adaptable 11.0.0-canary.0 → 11.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/base.css +21 -10
- package/bundle.cjs.js +98 -94
- package/index.css +23 -10
- package/package.json +32 -32
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +3 -2
- package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/GridApi.d.ts +5 -4
- package/src/Api/Implementation/DashboardApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
- package/src/Api/Implementation/GridApiImpl.js +4 -0
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -1
- package/src/Api/Implementation/InternalApiImpl.js +1 -9
- package/src/Api/Implementation/LayoutApiImpl.js +1 -1
- package/src/Api/InternalApi.d.ts +0 -1
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +4 -4
- package/src/PredefinedConfig/FlashingCellState.d.ts +2 -1
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -11
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +13 -13
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +13 -3
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +32 -16
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
- package/src/Utilities/ObjectFactory.js +4 -2
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/ReportService.js +1 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +10 -23
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +15 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -6
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +43 -87
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +10 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +54 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +6 -14
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -4
- package/src/View/Components/ValueSelector/index.d.ts +2 -1
- package/src/View/Components/ValueSelector/index.js +5 -5
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +10 -5
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/Dashboard/DashboardPopup.js +5 -5
- package/src/View/Export/Wizard/NewReportWizard.js +13 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
- package/src/View/FlashingCell/Wizard/{FlashingCellDurationWizardSection.d.ts → FlashingCellSettingsWizardSection.d.ts} +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +81 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +8 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +13 -5
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
- package/src/View/Query/QueryViewPanel.js +12 -9
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
- package/src/agGrid/Adaptable.d.ts +0 -2
- package/src/agGrid/Adaptable.js +32 -22
- package/src/agGrid/agGridHelper.js +2 -3
- package/src/agGrid/agGridMenuHelper.js +5 -9
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/Dashboard/DashboardManager.d.ts +5 -3
- package/src/components/Dashboard/DashboardManager.js +33 -27
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +1 -1
- package/src/components/WindowModal/WindowModal.js +17 -2
- package/src/components/utils/useDraggable.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +9 -0
- package/src/metamodel/adaptable.metamodel.js +18 -11
- package/src/types.d.ts +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +0 -60
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { SystemState } from '../../PredefinedConfig/SystemState';
|
|
3
|
-
import { CellHighlightInfo
|
|
3
|
+
import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
4
|
+
import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
|
|
4
5
|
import { PreviewInfo } from '../../Utilities/Interface/Preview';
|
|
5
6
|
import { ExportCustomDestinationPopup, Report } from '../../PredefinedConfig/ExportState';
|
|
6
7
|
import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdateModule';
|
|
@@ -11,14 +12,14 @@ import { CachedQuery } from '../../PredefinedConfig/QueryState';
|
|
|
11
12
|
import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
12
13
|
import { MathOperation, SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
13
14
|
import { DataChangedInfo } from '../../PredefinedConfig/Common/DataChangedInfo';
|
|
14
|
-
export declare const
|
|
15
|
+
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
15
16
|
export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
|
|
16
17
|
export declare const SYSTEM_ALERT_DELETE = "SYSTEM_ALERT_DELETE";
|
|
17
18
|
export declare const SYSTEM_ALERT_DELETE_ALL = "SYSTEM_ALERT_DELETE_ALL";
|
|
18
19
|
export declare const SYSTEM_ALERT_REMOVE_HIGHLIGHT = "SYSTEM_ALERT_REMOVE_HIGHLIGHT";
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
20
|
+
export declare const SYSTEM_FLASHING_CELL_ADD = "SYSTEM_FLASHING_CELL_ADD";
|
|
21
|
+
export declare const SYSTEM_FLASHING_CELL_DELETE = "SYSTEM_FLASHING_CELL_DELETE";
|
|
22
|
+
export declare const SYSTEM_FLASHING_CELL_DELETE_ALL = "SYSTEM_FLASHING_CELL_DELETE_ALL";
|
|
22
23
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_ADD = "SYSTEM_STATUS_MESSAGE_INFO_ADD";
|
|
23
24
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE = "SYSTEM_STATUS_MESSAGE_INFO_DELETE";
|
|
24
25
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = "SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = 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.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = 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_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_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_ROW_DELETE = 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.
|
|
3
|
+
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = 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.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = 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_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_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_ROW_DELETE = 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_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 Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
6
6
|
/*
|
|
@@ -8,16 +8,16 @@ Bit of a mixed bag of actions but essentially its those that are related to Stra
|
|
|
8
8
|
This allows us to keep the other reducers pure in terms of everything persists
|
|
9
9
|
Not sure if its a good idea or not and perhaps we need 2 stores but I think its better than it was...
|
|
10
10
|
*/
|
|
11
|
-
exports.
|
|
11
|
+
exports.FLASHING_CELL_ROW_KEY = '__ROW';
|
|
12
12
|
// Alerts
|
|
13
13
|
exports.SYSTEM_ALERT_ADD = 'SYSTEM_ALERT_ADD';
|
|
14
14
|
exports.SYSTEM_ALERT_DELETE = 'SYSTEM_ALERT_DELETE';
|
|
15
15
|
exports.SYSTEM_ALERT_DELETE_ALL = 'SYSTEM_ALERT_DELETE_ALL';
|
|
16
16
|
exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_HIGHLIGHT';
|
|
17
17
|
// Flashing Alerts
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
18
|
+
exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
|
|
19
|
+
exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
|
|
20
|
+
exports.SYSTEM_FLASHING_CELL_DELETE_ALL = 'SYSTEM_FLASHING_CELL_DELETE_ALL';
|
|
21
21
|
// Status Message
|
|
22
22
|
exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = 'SYSTEM_STATUS_MESSAGE_INFO_ADD';
|
|
23
23
|
exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = 'SYSTEM_STATUS_MESSAGE_INFO_DELETE';
|
|
@@ -113,15 +113,15 @@ exports.SystemAlertRemoveHighlight = (alert) => ({
|
|
|
113
113
|
alert: alert,
|
|
114
114
|
});
|
|
115
115
|
exports.SystemFlashingCellAdd = (flashingCell) => ({
|
|
116
|
-
type: exports.
|
|
116
|
+
type: exports.SYSTEM_FLASHING_CELL_ADD,
|
|
117
117
|
flashingCell: flashingCell,
|
|
118
118
|
});
|
|
119
119
|
exports.SystemFlashingCellDelete = (flashingCell) => ({
|
|
120
|
-
type: exports.
|
|
120
|
+
type: exports.SYSTEM_FLASHING_CELL_DELETE,
|
|
121
121
|
flashingCell: flashingCell,
|
|
122
122
|
});
|
|
123
123
|
exports.SystemFlashingCellDeleteAll = (flashingCells) => ({
|
|
124
|
-
type: exports.
|
|
124
|
+
type: exports.SYSTEM_FLASHING_CELL_DELETE_ALL,
|
|
125
125
|
flashingCells: flashingCells,
|
|
126
126
|
});
|
|
127
127
|
exports.SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
|
|
@@ -305,14 +305,14 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
305
305
|
return abObject;
|
|
306
306
|
}) });
|
|
307
307
|
}
|
|
308
|
-
case exports.
|
|
308
|
+
case exports.SYSTEM_FLASHING_CELL_ADD: {
|
|
309
309
|
const { flashingCell: FlashingCell } = action;
|
|
310
310
|
const { rowPrimaryKey } = FlashingCell;
|
|
311
311
|
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
312
312
|
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
313
313
|
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
314
314
|
if (FlashingCell.flashTarget === 'row') {
|
|
315
|
-
secondaryIds.push(exports.
|
|
315
|
+
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
316
316
|
}
|
|
317
317
|
secondaryIds.forEach((COL_ID) => {
|
|
318
318
|
AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
|
|
@@ -324,7 +324,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
324
324
|
AdaptableFlashingCellsMap: AdaptableFlashingCellsMap,
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
case exports.
|
|
327
|
+
case exports.SYSTEM_FLASHING_CELL_DELETE: {
|
|
328
328
|
const { flashingCell: FlashingCell } = action;
|
|
329
329
|
const { rowPrimaryKey } = FlashingCell;
|
|
330
330
|
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
@@ -332,7 +332,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
332
332
|
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
333
333
|
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
334
334
|
if (FlashingCell.flashTarget === 'row') {
|
|
335
|
-
secondaryIds.push(exports.
|
|
335
|
+
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
336
336
|
}
|
|
337
337
|
secondaryIds.forEach((COL_ID) => {
|
|
338
338
|
if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
|
|
@@ -345,7 +345,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
345
345
|
delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
|
|
346
346
|
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
|
|
347
347
|
}
|
|
348
|
-
case exports.
|
|
348
|
+
case exports.SYSTEM_FLASHING_CELL_DELETE_ALL: {
|
|
349
349
|
return Object.assign({}, state, {
|
|
350
350
|
AdaptableFlashingCells: {},
|
|
351
351
|
AdaptableFlashingCellsMap: {},
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createEngine = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const isomorphic_fetch_1 = tslib_1.__importDefault(require("isomorphic-fetch"));
|
|
6
|
-
const debounce_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
+
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
7
7
|
const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
8
8
|
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
9
9
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeReducer = exports.MergeState = exports.MergeStateFunction = exports.AddStateSource = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const mergeWith_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
-
const merge_1 = tslib_1.__importDefault(require("lodash
|
|
7
|
-
const isArray_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
-
const extend_1 = tslib_1.__importDefault(require("lodash
|
|
9
|
-
const isObject_1 = tslib_1.__importDefault(require("lodash
|
|
5
|
+
const mergeWith_1 = tslib_1.__importDefault(require("lodash/mergeWith"));
|
|
6
|
+
const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
|
|
7
|
+
const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
|
|
8
|
+
const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
|
|
9
|
+
const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
10
10
|
const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
|
|
11
11
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
12
12
|
function customizer(objValue, srcValue) {
|
|
@@ -160,6 +160,17 @@ class AdaptableStore {
|
|
|
160
160
|
case exports.LOAD_STATE:
|
|
161
161
|
const { State } = action;
|
|
162
162
|
Object.keys(State).forEach((key) => {
|
|
163
|
+
// this check should be removed in version 12 !!!
|
|
164
|
+
if (key === 'Chart') {
|
|
165
|
+
LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable Charts Plugin is deprecated! AG Grid built-in charts are fully supported & integrated in AdapTable.
|
|
166
|
+
|
|
167
|
+
Please contact 'support@adaptabletools.com' if you require any charting features that are not currently available.`);
|
|
168
|
+
}
|
|
169
|
+
if (key === 'SparklineColumn') {
|
|
170
|
+
LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable SparklineColumn is deprecated! AG Grid built-in Sparklines are fully supported & integrated in AdapTable.
|
|
171
|
+
|
|
172
|
+
Please contact 'support@adaptabletools.com' if you require any sparklines features that are not currently available.`);
|
|
173
|
+
}
|
|
163
174
|
state[key] = State[key];
|
|
164
175
|
});
|
|
165
176
|
break;
|
|
@@ -305,8 +316,8 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
305
316
|
/*******************
|
|
306
317
|
* FLASHING ALERT ACTIONS
|
|
307
318
|
*******************/
|
|
308
|
-
case SystemRedux.
|
|
309
|
-
case SystemRedux.
|
|
319
|
+
case SystemRedux.SYSTEM_FLASHING_CELL_ADD:
|
|
320
|
+
case SystemRedux.SYSTEM_FLASHING_CELL_DELETE: {
|
|
310
321
|
const { flashingCell: FlashingCell, } = action;
|
|
311
322
|
const { dataChangedInfo } = FlashingCell;
|
|
312
323
|
let ret = next(action);
|
|
@@ -693,7 +704,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
693
704
|
case DashboardRedux.DASHBOARD_SET_IS_HIDDEN:
|
|
694
705
|
case DashboardRedux.DASHBOARD_SET_FLOATING_POSITION:
|
|
695
706
|
case DashboardRedux.DASHBOARD_SET_TABS:
|
|
696
|
-
case DashboardRedux.DASHBOARD_CREATE_DEFAULT_TAB:
|
|
697
707
|
case DashboardRedux.DASHBOARD_CLOSE_TOOLBAR: {
|
|
698
708
|
const oldDashboardState = middlewareAPI.getState().Dashboard;
|
|
699
709
|
let returnAction = next(action);
|
|
@@ -19,7 +19,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
19
19
|
constructor(api) {
|
|
20
20
|
super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
21
21
|
this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
|
|
22
|
-
if (dataChangedInfo.trigger === 'undo') {
|
|
22
|
+
if (dataChangedInfo.trigger === 'undo' || dataChangedInfo.trigger === 'aggChange') {
|
|
23
23
|
// do NOT handle reverted changes
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -9,7 +9,7 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
|
|
|
9
9
|
constructor(api) {
|
|
10
10
|
super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
11
11
|
this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
|
|
12
|
-
if (dataChangedInfo.trigger !== 'undo') {
|
|
12
|
+
if (dataChangedInfo.trigger !== 'undo' && dataChangedInfo.trigger !== 'aggChange') {
|
|
13
13
|
if (this.shouldLogDataChange(dataChangedInfo)) {
|
|
14
14
|
this.api.internalApi.dispatchReduxAction(SystemRedux_1.SystemDataChangeHistoryAdd(dataChangedInfo));
|
|
15
15
|
}
|
|
@@ -18,8 +18,8 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
|
|
|
18
18
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
19
19
|
protected handleDataSourceChanged(dataChangedInfo: DataChangedInfo): void;
|
|
20
20
|
private showFlashingCellsForDefinitions;
|
|
21
|
+
private isFlashingTargetOnlyAggChange;
|
|
21
22
|
private getFlashingCellDefinitionsForDataChange;
|
|
22
|
-
private getBaseAlertDefinitionsForDataChange;
|
|
23
23
|
private isAlertPredicateTriggered;
|
|
24
24
|
getTeamSharingAction(): TeamSharingImportInfo<FlashingCellDefinition>;
|
|
25
25
|
toView(flashingCell: FlashingCellDefinition): AdaptableObjectView;
|
|
@@ -123,9 +123,13 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
123
123
|
direction = up ? 'up' : down ? 'down' : 'neutral';
|
|
124
124
|
}
|
|
125
125
|
flashingCellDefinitions.forEach((flashingCellDefinition) => {
|
|
126
|
-
|
|
126
|
+
var _a;
|
|
127
|
+
let flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
|
|
127
128
|
const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
|
|
128
|
-
|
|
129
|
+
/**
|
|
130
|
+
* When flashing a row, all columns in that row are marked to flash.
|
|
131
|
+
*/
|
|
132
|
+
if (flashTarget === 'row' || ((_a = flashTarget === null || flashTarget === void 0 ? void 0 : flashTarget.includes) === null || _a === void 0 ? void 0 : _a.call(flashTarget, 'row'))) {
|
|
129
133
|
allColumnIds.forEach((colId) => {
|
|
130
134
|
flashColumnIds[colId] = true;
|
|
131
135
|
});
|
|
@@ -141,18 +145,30 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
141
145
|
});
|
|
142
146
|
});
|
|
143
147
|
}
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
isFlashingTargetOnlyAggChange(flashingCellDefinition) {
|
|
149
|
+
if (flashingCellDefinition.FlashTarget === 'aggFuncCell') {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
return (Array.isArray(flashingCellDefinition.FlashTarget) &&
|
|
153
|
+
flashingCellDefinition.FlashTarget.length === 1 &&
|
|
154
|
+
flashingCellDefinition.FlashTarget.includes('aggFuncCell'));
|
|
146
155
|
}
|
|
147
|
-
|
|
148
|
-
|
|
156
|
+
getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
|
|
157
|
+
const definitions = this.api.flashingCellApi.getActiveFlashingCellDefinitions();
|
|
158
|
+
const defaultNoPredicateReturn = false;
|
|
159
|
+
let relatedFlashingCellsDefinitions = definitions
|
|
149
160
|
.filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
|
|
150
161
|
.filter((flashingCellDefinition) => !AdaptableQuery_1.isReactiveQuery(flashingCellDefinition.Rule));
|
|
151
|
-
let
|
|
152
|
-
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
162
|
+
let triggeredFlashingCells = [];
|
|
163
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedFlashingCellsDefinitions)) {
|
|
164
|
+
relatedFlashingCellsDefinitions.forEach((flashingCellDefinition) => {
|
|
165
|
+
// for aggregation the data-change needs to be aggChange
|
|
166
|
+
if (dataChangedEvent.trigger !== 'aggChange' &&
|
|
167
|
+
this.isFlashingTargetOnlyAggChange(flashingCellDefinition)) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
if (flashingCellDefinition.Rule.BooleanExpression) {
|
|
171
|
+
let expression = flashingCellDefinition.Rule.BooleanExpression;
|
|
156
172
|
let rowNode = dataChangedEvent.rowNode;
|
|
157
173
|
if (!rowNode) {
|
|
158
174
|
rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
|
|
@@ -163,15 +179,15 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
163
179
|
.getQueryLanguageService()
|
|
164
180
|
.evaluateBooleanExpression(expression, this.moduleInfo.ModuleName, rowNode);
|
|
165
181
|
if (isSatisfiedExpression) {
|
|
166
|
-
|
|
182
|
+
triggeredFlashingCells.push(flashingCellDefinition);
|
|
167
183
|
}
|
|
168
184
|
}
|
|
169
|
-
else if (this.isAlertPredicateTriggered(
|
|
170
|
-
|
|
185
|
+
else if (this.isAlertPredicateTriggered(flashingCellDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
|
|
186
|
+
triggeredFlashingCells.push(flashingCellDefinition);
|
|
171
187
|
}
|
|
172
188
|
});
|
|
173
189
|
}
|
|
174
|
-
return
|
|
190
|
+
return triggeredFlashingCells;
|
|
175
191
|
}
|
|
176
192
|
isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
|
|
177
193
|
return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
|
|
@@ -194,7 +210,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
194
210
|
return {
|
|
195
211
|
items: [
|
|
196
212
|
Object.assign(Object.assign({}, getScopeViewItems_1.getScopeViewItems(flashingCell.Scope)), { label: 'Trigger' }),
|
|
197
|
-
getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api),
|
|
213
|
+
Object.assign(Object.assign({}, getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api)), { label: 'Rule', name: 'Rule' }),
|
|
198
214
|
getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
|
|
199
215
|
getFlashingTargetViewItems_1.getFlashingTargetViewItems(flashingCell),
|
|
200
216
|
getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
|
|
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const isAdaptableObject_1 = require("../Utilities/isAdaptableObject");
|
|
8
8
|
const TeamSharingRedux_1 = require("../Redux/ActionsReducers/TeamSharingRedux");
|
|
9
9
|
const TeamSharingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/TeamSharingRedux"));
|
|
10
|
-
const isEqual_1 = tslib_1.__importDefault(require("lodash
|
|
10
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
11
11
|
const LayoutRedux_1 = require("../Redux/ActionsReducers/LayoutRedux");
|
|
12
12
|
class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
13
|
constructor(api) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FlashingCellDefinition } from '../../../types';
|
|
2
2
|
export declare const getFlashingTargetViewItems: (flashingCell: FlashingCellDefinition) => {
|
|
3
3
|
name: string;
|
|
4
|
-
values: ("
|
|
4
|
+
values: import("../../PredefinedConfig/FlashingCellState").FlashTargetTypes[];
|
|
5
5
|
};
|
|
@@ -4,6 +4,8 @@ exports.getFlashingTargetViewItems = void 0;
|
|
|
4
4
|
exports.getFlashingTargetViewItems = (flashingCell) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Target',
|
|
7
|
-
values:
|
|
7
|
+
values: Array.isArray(flashingCell.FlashTarget)
|
|
8
|
+
? flashingCell.FlashTarget
|
|
9
|
+
: [flashingCell.FlashTarget],
|
|
8
10
|
};
|
|
9
11
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.aggregationExpressionFunctions = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
|
-
const parseInt_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
+
const parseInt_1 = tslib_1.__importDefault(require("lodash/parseInt"));
|
|
7
7
|
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
8
8
|
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const expressionFunctionUtils_1 = require("./expressionFunctionUtils");
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
6
6
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
|
|
7
7
|
const operators_1 = require("rxjs/operators");
|
|
8
|
-
const toNumber_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
+
const toNumber_1 = tslib_1.__importDefault(require("lodash/toNumber"));
|
|
9
9
|
const evaluator_1 = require("../../parser/src/evaluator");
|
|
10
10
|
// string functions may be case (in)sensitive, see internalApi.isTextComparisonCaseSensitive()
|
|
11
11
|
// if case is insensitive, we convert ALL involved strings to lower case
|
|
@@ -4,7 +4,7 @@ exports.observableExpressionFunctions = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
6
|
const operators_1 = require("rxjs/operators");
|
|
7
|
-
const parseInt_1 = tslib_1.__importDefault(require("lodash
|
|
7
|
+
const parseInt_1 = tslib_1.__importDefault(require("lodash/parseInt"));
|
|
8
8
|
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
9
9
|
const expressionFunctionUtils_1 = require("./expressionFunctionUtils");
|
|
10
10
|
// numeric value(digits) followed by a single 's', 'm' or 'h' letter (case insensitive)
|
|
@@ -417,8 +417,7 @@ const getSlidingTimeframe$ = (source$, timeframeDuration, onTimeframeEnter, onTi
|
|
|
417
417
|
}));
|
|
418
418
|
};
|
|
419
419
|
const getMaxTimeframeSize = (expressionValue, context) => {
|
|
420
|
-
let maxTimeframeSize = context.api.internalApi.getAdaptableOptions().queryLanguageOptions
|
|
421
|
-
.maxTimeframeSize;
|
|
420
|
+
let maxTimeframeSize = context.api.internalApi.getAdaptableOptions().queryLanguageOptions.maxTimeframeSize;
|
|
422
421
|
if (maxTimeframeSize > SYSTEM_MAX_TIMEFRAME_SIZE) {
|
|
423
422
|
maxTimeframeSize = SYSTEM_MAX_TIMEFRAME_SIZE;
|
|
424
423
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StringExtensions = exports.IsNumeric = exports.ReplaceEmptySpacesWithUnderscore = exports.Humanize = exports.CapitaliseFirstLetter = exports.AbbreviateString = exports.NotIncludes = exports.Includes = exports.ToLowerCase = exports.RemoveTrailingComma = exports.CamelCaseToHumanText = exports.IsNotNullOrEmptyOrWhiteSpace = exports.IsNullOrEmptyOrWhiteSpace = exports.IsNotNullOrEmpty = exports.IsNullOrEmpty = exports.IsNotEmpty = exports.IsEmpty = exports.IsNotNull = exports.IsNull = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const startCase_1 = tslib_1.__importDefault(require("lodash
|
|
5
|
+
const startCase_1 = tslib_1.__importDefault(require("lodash/startCase"));
|
|
6
6
|
function IsNull(stringToCheck) {
|
|
7
7
|
return stringToCheck == null || stringToCheck == undefined;
|
|
8
8
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableHelper = exports.addAdaptableObjectUuidAndSource = exports.runAdaptableComparerFunction = exports.checkAdaptableOptions = exports.getAppropriateAccessLevel = exports.AdaptableObjectExistsInState = exports.checkValidPrimaryKey = exports.initPredefinedConfigWithUuids = exports.assignAdaptableOptions = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const cloneDeepWith_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
-
const isPlainObject_1 = tslib_1.__importDefault(require("lodash
|
|
5
|
+
const cloneDeepWith_1 = tslib_1.__importDefault(require("lodash/cloneDeepWith"));
|
|
6
|
+
const isPlainObject_1 = tslib_1.__importDefault(require("lodash/isPlainObject"));
|
|
7
7
|
const LoggingHelper_1 = require("./LoggingHelper");
|
|
8
8
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
9
9
|
const DefaultAdaptableOptions_1 = require("../Defaults/DefaultAdaptableOptions");
|
|
@@ -85,9 +85,11 @@ exports.CreateEmptyAlertDefinition = CreateEmptyAlertDefinition;
|
|
|
85
85
|
function CreateEmptyFlashingCellDefinition() {
|
|
86
86
|
return {
|
|
87
87
|
Uuid: Uuid_1.createUuid(),
|
|
88
|
-
Scope: {
|
|
88
|
+
Scope: { ColumnIds: [] },
|
|
89
89
|
Rule: {
|
|
90
|
-
Predicate:
|
|
90
|
+
Predicate: {
|
|
91
|
+
PredicateId: 'Any',
|
|
92
|
+
},
|
|
91
93
|
},
|
|
92
94
|
};
|
|
93
95
|
}
|
|
@@ -6,7 +6,7 @@ const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
|
6
6
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
7
7
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../ObjectFactory"));
|
|
8
8
|
const LoggingHelper_1 = require("../Helpers/LoggingHelper");
|
|
9
|
-
const clamp_1 = tslib_1.__importDefault(require("lodash
|
|
9
|
+
const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
|
|
10
10
|
const DocumentationLinkConstants_1 = require("../Constants/DocumentationLinkConstants");
|
|
11
11
|
const decode_1 = require("../license/decode");
|
|
12
12
|
const EMAIL = 'sales@adaptabletools.com';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReportService = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const groupBy_1 = tslib_1.__importDefault(require("lodash
|
|
5
|
+
const groupBy_1 = tslib_1.__importDefault(require("lodash/groupBy"));
|
|
6
6
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
7
7
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
8
8
|
const GeneralConstants_1 = require("../Constants/GeneralConstants");
|
|
@@ -27,7 +27,7 @@ class AdaptableView extends React.Component {
|
|
|
27
27
|
Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup) && (React.createElement(AdaptablePopup_1.AdaptablePopup, { componentName: this.props.PopupState.ScreenPopup.ComponentName, componentModule: this.props.PopupState.ScreenPopup.ComponentModule, onHide: this.props.onCloseScreenPopup, api: this.props.AdaptableApi, onClearParams: () => this.props.onClearPopupParams(), moduleParams: this.props.PopupState.ScreenPopup.Params, moduleProps: this.props.PopupState.ScreenPopup.PopupProps })),
|
|
28
28
|
React.createElement(ExportCustomDestinationFormPopups_1.ExportCustomDestinationFormPopups, { api: this.props.AdaptableApi }),
|
|
29
29
|
React.createElement(react_toastify_1.ToastContainer, { limit: this.props.AdaptableApi.internalApi.getAdaptableOptions().notificationsOptions
|
|
30
|
-
.maxNotifications, closeButton: false }),
|
|
30
|
+
.maxNotifications, closeButton: false, icon: false, theme: "colored" }),
|
|
31
31
|
(watermark === null || watermark === void 0 ? void 0 : watermark.show) && React.createElement(License_1.LicenseWatermark, null, watermark === null || watermark === void 0 ? void 0 : watermark.text),
|
|
32
32
|
React.createElement(ProgressIndicator_1.ProgressIndicator, null)));
|
|
33
33
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
3
|
declare type AlertRulesWizardSectionProps = {
|
|
4
4
|
onChange: (data: AlertDefinition) => void;
|
|
5
|
-
module: 'alert'
|
|
5
|
+
module: 'alert';
|
|
6
6
|
};
|
|
7
7
|
export declare const AlertRulesWizardSection: (props: AlertRulesWizardSectionProps) => JSX.Element;
|
|
8
8
|
export declare const renderAlertRulesSummary: (alertDefinition: AlertDefinition) => JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AlertDefinition } from '../../../types';
|
|
3
|
-
import { FlashingCellDefinition } from '../../../../types';
|
|
4
3
|
export interface BaseAlertRulesWizardSectionProps<T> {
|
|
5
4
|
onChange: (data: T) => void;
|
|
6
|
-
module: 'alert'
|
|
5
|
+
module: 'alert';
|
|
7
6
|
wholeRowScope?: boolean;
|
|
8
7
|
children?: React.ReactNode;
|
|
9
8
|
}
|
|
10
|
-
export declare const BaseAlertRulesWizardSection: <T extends AlertDefinition
|
|
9
|
+
export declare const BaseAlertRulesWizardSection: <T extends AlertDefinition>(props: BaseAlertRulesWizardSectionProps<T>) => JSX.Element;
|
|
@@ -8,9 +8,7 @@ const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
|
8
8
|
exports.BaseAlertRulesWizardSection = (props) => {
|
|
9
9
|
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
10
10
|
const wholeRowScope = props.wholeRowScope != null ? props.wholeRowScope : api.scopeApi.scopeIsAll(data.Scope);
|
|
11
|
-
const predicateDefs =
|
|
12
|
-
? api.alertApi.getAlertPredicateDefsForScope(data.Scope)
|
|
13
|
-
: api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
|
|
11
|
+
const predicateDefs = api.alertApi.getAlertPredicateDefsForScope(data.Scope);
|
|
14
12
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: !wholeRowScope ? false : true, showObservable: !wholeRowScope ? false : true, showBoolean: true, showPredicate: true, descriptions: {
|
|
15
13
|
selectPredicate: 'Select an Alert Rule - to be applied when data changes',
|
|
16
14
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
@@ -16,6 +16,7 @@ const Tabs_1 = require("../../../components/Tabs");
|
|
|
16
16
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
17
17
|
const Tag_1 = require("../../../components/Tag");
|
|
18
18
|
const getCalculatedColumnSettingTags_1 = require("../Utilities/getCalculatedColumnSettingTags");
|
|
19
|
+
const SpecialColumnSettingsWizardStep_1 = require("../../SpecialColumnSettingsWizardStep");
|
|
19
20
|
exports.renderCalculatedColumnSettingsSummary = (data) => {
|
|
20
21
|
var _a;
|
|
21
22
|
const options = getCalculatedColumnSettingTags_1.getCalculatedColumnSettingTags(data.CalculatedColumnSettings);
|
|
@@ -72,17 +73,15 @@ exports.CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
72
73
|
const ColumnName = data.FriendlyName;
|
|
73
74
|
const ColumnId = data.ColumnId;
|
|
74
75
|
let { DataType: dataType } = (_a = data.CalculatedColumnSettings) !== null && _a !== void 0 ? _a : {};
|
|
75
|
-
const { Width,
|
|
76
|
-
const
|
|
77
|
-
props.onChange(Object.assign(Object.assign({}, data), { CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings),
|
|
76
|
+
const { Width, ShowToolTip } = (_b = data.CalculatedColumnSettings) !== null && _b !== void 0 ? _b : {};
|
|
77
|
+
const handleSpecialColumnSettingsChange = (settings) => {
|
|
78
|
+
props.onChange(Object.assign(Object.assign({}, data), { CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), settings) }));
|
|
78
79
|
};
|
|
79
80
|
React.useEffect(() => {
|
|
80
81
|
var _a;
|
|
81
82
|
if (!dataType) {
|
|
82
83
|
const computedDataType = calculatedColumnExpressionService.GetCalculatedColumnDataType((_a = data.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression);
|
|
83
|
-
|
|
84
|
-
DataType: computedDataType,
|
|
85
|
-
});
|
|
84
|
+
handleSpecialColumnSettingsChange(Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.CalculatedColumnSettings), { DataType: computedDataType }));
|
|
86
85
|
}
|
|
87
86
|
}, []);
|
|
88
87
|
return (React.createElement(rebass_1.Box, { "data-name": 'calculated-column-settings' },
|
|
@@ -111,23 +110,11 @@ exports.CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
111
110
|
onClick: () => handleDataTypeChange(item.value),
|
|
112
111
|
})) }, dataType ? dataType : 'Select Data Type')),
|
|
113
112
|
React.createElement(FormLayout_1.FormRow, { label: "Width" },
|
|
114
|
-
React.createElement(Input_1.default, { type: "number", width: 300, value: Width || '', onChange: (e) =>
|
|
113
|
+
React.createElement(Input_1.default, { type: "number", width: 300, value: Width || '', onChange: (e) => handleSpecialColumnSettingsChange({
|
|
114
|
+
Width: Number(e.target.value),
|
|
115
|
+
}) })),
|
|
115
116
|
React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
116
|
-
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) =>
|
|
117
|
+
React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => handleSpecialColumnSettingsChange({ ShowToolTip: checked }), checked: ShowToolTip }, "Show Expression as Tooltip")))))),
|
|
117
118
|
ErrorMessage ? React.createElement(ErrorBox_1.default, { marginTop: 2 }, ErrorMessage) : null,
|
|
118
|
-
React.createElement(
|
|
119
|
-
React.createElement(Tabs_1.Tabs.Tab, null, " Column Properties"),
|
|
120
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
121
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
122
|
-
React.createElement(FormLayout_1.default, { style: { width: '100%' }, columns: [{ name: 'first', size: '30%' }, { name: 'second' }] },
|
|
123
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
124
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Filterable, onChange: (Filterable) => onSettingsChange({ Filterable }), disabled: !api.internalApi.getAdaptableOptions().filterOptions
|
|
125
|
-
.enableFilterOnSpecialColumns }, "Filterable"),
|
|
126
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Resizable, onChange: (Resizable) => onSettingsChange({ Resizable }) }, "Resizable")),
|
|
127
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
128
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Groupable, onChange: (Groupable) => onSettingsChange({ Groupable }) }, "Groupable"),
|
|
129
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Sortable, onChange: (Sortable) => onSettingsChange({ Sortable }) }, "Sortable")),
|
|
130
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
131
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Pivotable, onChange: (Pivotable) => onSettingsChange({ Pivotable }) }, "Pivotable"),
|
|
132
|
-
React.createElement(CheckBox_1.CheckBox, { checked: Aggregatable, onChange: (Aggregatable) => onSettingsChange({ Aggregatable }) }, "Aggregatable"))))))));
|
|
119
|
+
React.createElement(SpecialColumnSettingsWizardStep_1.SpecialColumnSettingsWizardStep, { isEditable: false, settings: data.CalculatedColumnSettings, onChange: handleSpecialColumnSettingsChange })));
|
|
133
120
|
};
|
|
@@ -14,15 +14,26 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
14
14
|
const react_redux_1 = require("react-redux");
|
|
15
15
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
16
16
|
exports.CalculatedColumnWizard = (props) => {
|
|
17
|
+
var _a;
|
|
17
18
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
+
const allCalculatedColumns = react_redux_1.useSelector((state) => state.CalculatedColumn.CalculatedColumns);
|
|
18
20
|
const [calculatedColumn, setCalculatedColumn] = react_1.useState(() => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
var _a;
|
|
22
|
+
if (props.data) {
|
|
23
|
+
return Helper_1.cloneObject(props.data);
|
|
24
|
+
}
|
|
25
|
+
if ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column) {
|
|
26
|
+
const calculatedColumn = allCalculatedColumns.find((calculatedColumn) => calculatedColumn.ColumnId === props.popupParams.column.columnId);
|
|
27
|
+
if (calculatedColumn) {
|
|
28
|
+
return calculatedColumn;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return ObjectFactory_1.default.CreateEmptyCalculatedColumn(adaptable.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns);
|
|
21
32
|
});
|
|
22
33
|
const dispatch = react_redux_1.useDispatch();
|
|
23
|
-
const isEdit = Boolean(props.data);
|
|
34
|
+
const isEdit = Boolean(props.data) || ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.action) === 'Edit';
|
|
24
35
|
const handleFinish = () => {
|
|
25
|
-
if (
|
|
36
|
+
if (isEdit) {
|
|
26
37
|
dispatch(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn));
|
|
27
38
|
}
|
|
28
39
|
else {
|