@adaptabletools/adaptable 11.0.0-canary.6 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/agGrid.d.ts +5 -4
- package/agGrid.js +7 -5
- package/base.css +3 -4
- package/bundle.cjs.js +120 -115
- package/index.css +3 -4
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -5
- package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -2
- package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
- package/src/AdaptableOptions/FilterOptions.d.ts +4 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
- package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +7 -6
- package/src/AdaptableOptions/StateOptions.d.ts +7 -7
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/Api/CalculatedColumnApi.d.ts +2 -9
- package/src/Api/GridApi.d.ts +12 -3
- package/src/Api/Implementation/AlertApiImpl.js +1 -2
- package/src/Api/Implementation/ApiBase.d.ts +3 -2
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
- package/src/Api/Implementation/GridApiImpl.js +41 -21
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +3 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.js +15 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/Api/InternalApi.d.ts +2 -3
- package/src/Api/QueryApi.d.ts +2 -2
- package/src/Api/QueryLanguageApi.d.ts +13 -0
- package/src/Api/SettingsPanelApi.d.ts +4 -5
- package/src/PredefinedConfig/AlertState.d.ts +5 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -3
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -0
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +0 -1
- package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -5
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +6 -1
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +15 -0
- package/src/PredefinedConfig/PlusMinusState.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
- package/src/PredefinedConfig/ToolPanelState.d.ts +3 -0
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +4 -4
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +4 -4
- package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.js +4 -4
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +12 -12
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +33 -29
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +4 -4
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +4 -4
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/ScheduleRedux.js +16 -16
- package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ShortcutRedux.js +4 -4
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +47 -22
- package/src/Strategy/AlertModule.js +4 -4
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ChartingModule.d.ts +3 -3
- package/src/Strategy/ChartingModule.js +2 -2
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
- package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -2
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -2
- package/src/Utilities/Constants/DocumentationLinkConstants.js +12 -10
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +18 -13
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +18 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +311 -14
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +2 -3
- package/src/Utilities/ExpressionFunctions/groupingMap.js +3 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -1
- package/src/Utilities/Services/AlertService.js +5 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
- package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +7 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +33 -40
- package/src/Utilities/Services/QueryLanguageService.d.ts +9 -2
- package/src/Utilities/Services/QueryLanguageService.js +81 -22
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -3
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
- 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/EntityRulesEditor/index.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +3 -4
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -8
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ValueSelector/index.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +3 -3
- package/src/agGrid/Adaptable.d.ts +4 -1
- package/src/agGrid/Adaptable.js +71 -48
- package/src/agGrid/CheckboxRenderer.d.ts +8 -1
- package/src/agGrid/CheckboxRenderer.js +18 -3
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +9 -10
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +5 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
- package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +9 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Logo/index.js +8 -7
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/calculated-column.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +235 -41
- package/src/metamodel/adaptable.metamodel.js +435 -149
- package/src/types.d.ts +5 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlashingCellReducer = exports.FlashingCellReady = exports.FlashingCellDefinitionUnSuspend = exports.FlashingCellDefinitionSuspend = exports.FlashingCellDefinitionDelete = exports.FlashingCellDefinitionEdit = exports.FlashingCellDefinitionSet = exports.FlashingCellDefinitionAdd = exports.
|
|
3
|
+
exports.FlashingCellReducer = exports.FlashingCellReady = exports.FlashingCellDefinitionUnSuspend = exports.FlashingCellDefinitionSuspend = exports.FlashingCellDefinitionDelete = exports.FlashingCellDefinitionEdit = exports.FlashingCellDefinitionSet = exports.FlashingCellDefinitionAdd = exports.FLASHING_CELL_DEFINITION_SET = exports.FLASHING_CELL_READY = exports.FLASHING_CELL_DEFINITION_UNSUSPEND = exports.FLASHING_CELL_DEFINITION_SUSPEND = exports.FLASHING_CELL_DEFINITION_DELETE = exports.FLASHING_CELL_DEFINITION_EDIT = exports.FLASHING_CELL_DEFINITION_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
6
6
|
const utils_1 = require("./utils");
|
|
7
7
|
/**
|
|
8
|
-
* @ReduxAction A Flashing
|
|
8
|
+
* @ReduxAction A Flashing Cell Definition has been added
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.FLASHING_CELL_DEFINITION_ADD = 'FLASHING_CELL_DEFINITION_ADD';
|
|
11
11
|
/**
|
|
12
|
-
* @ReduxAction A Flashing
|
|
12
|
+
* @ReduxAction A Flashing Cell Definition has been edited
|
|
13
13
|
*/
|
|
14
|
-
exports.
|
|
14
|
+
exports.FLASHING_CELL_DEFINITION_EDIT = 'FLASHING_CELL_DEFINITION_EDIT';
|
|
15
15
|
/**
|
|
16
|
-
* @ReduxAction A Flashing
|
|
16
|
+
* @ReduxAction A Flashing Cell Definition has been deleted
|
|
17
17
|
*/
|
|
18
|
-
exports.
|
|
18
|
+
exports.FLASHING_CELL_DEFINITION_DELETE = 'FLASHING_CELL_DEFINITION_DELETE';
|
|
19
19
|
/**
|
|
20
|
-
* @ReduxAction Flashing
|
|
20
|
+
* @ReduxAction Flashing Cell Definition Style is suspended
|
|
21
21
|
*/
|
|
22
|
-
exports.
|
|
22
|
+
exports.FLASHING_CELL_DEFINITION_SUSPEND = 'FLASHING_CELL_DEFINITION_SUSPEND';
|
|
23
23
|
/**
|
|
24
|
-
* @ReduxAction Flashing
|
|
24
|
+
* @ReduxAction Flashing Cell Definition is un-suspended, or activated
|
|
25
25
|
*/
|
|
26
|
-
exports.
|
|
26
|
+
exports.FLASHING_CELL_DEFINITION_UNSUSPEND = 'FLASHING_CELL_DEFINITION_UNSUSPEND';
|
|
27
27
|
/**
|
|
28
|
-
* @ReduxAction Flashing
|
|
28
|
+
* @ReduxAction Flashing Cell Module is ready
|
|
29
29
|
*/
|
|
30
30
|
exports.FLASHING_CELL_READY = 'FLASHING_CELL_READY';
|
|
31
|
-
exports.
|
|
31
|
+
exports.FLASHING_CELL_DEFINITION_SET = 'FLASHING_CELL_DEFINITION_SET';
|
|
32
32
|
exports.FlashingCellDefinitionAdd = (flashingCellDefinition) => ({
|
|
33
|
-
type: exports.
|
|
33
|
+
type: exports.FLASHING_CELL_DEFINITION_ADD,
|
|
34
34
|
flashingCellDefinition,
|
|
35
35
|
});
|
|
36
36
|
exports.FlashingCellDefinitionSet = (flashingCellDefinitions) => ({
|
|
37
|
-
type: exports.
|
|
37
|
+
type: exports.FLASHING_CELL_DEFINITION_SET,
|
|
38
38
|
flashingCellDefinitions,
|
|
39
39
|
});
|
|
40
40
|
exports.FlashingCellDefinitionEdit = (flashingCellDefinition) => ({
|
|
41
|
-
type: exports.
|
|
41
|
+
type: exports.FLASHING_CELL_DEFINITION_EDIT,
|
|
42
42
|
flashingCellDefinition,
|
|
43
43
|
});
|
|
44
44
|
exports.FlashingCellDefinitionDelete = (flashingCellDefinition) => ({
|
|
45
|
-
type: exports.
|
|
45
|
+
type: exports.FLASHING_CELL_DEFINITION_DELETE,
|
|
46
46
|
flashingCellDefinition,
|
|
47
47
|
});
|
|
48
48
|
exports.FlashingCellDefinitionSuspend = (flashingCellDefinition) => ({
|
|
49
|
-
type: exports.
|
|
49
|
+
type: exports.FLASHING_CELL_DEFINITION_SUSPEND,
|
|
50
50
|
flashingCellDefinition,
|
|
51
51
|
});
|
|
52
52
|
exports.FlashingCellDefinitionUnSuspend = (flashingCellDefinition) => ({
|
|
53
|
-
type: exports.
|
|
53
|
+
type: exports.FLASHING_CELL_DEFINITION_UNSUSPEND,
|
|
54
54
|
flashingCellDefinition,
|
|
55
55
|
});
|
|
56
56
|
exports.FlashingCellReady = (alertState) => ({
|
|
@@ -63,31 +63,35 @@ const initialState = {
|
|
|
63
63
|
exports.FlashingCellReducer = (state = initialState, action) => {
|
|
64
64
|
let flashingCellDefinitions;
|
|
65
65
|
switch (action.type) {
|
|
66
|
-
case exports.
|
|
67
|
-
const actionFlashingCellDefinition = action
|
|
66
|
+
case exports.FLASHING_CELL_DEFINITION_SET: {
|
|
67
|
+
const actionFlashingCellDefinition = action
|
|
68
|
+
.flashingCellDefinitions;
|
|
68
69
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
|
|
69
70
|
}
|
|
70
|
-
case exports.
|
|
71
|
-
const actionFlashingCellDefinition = action
|
|
71
|
+
case exports.FLASHING_CELL_DEFINITION_ADD: {
|
|
72
|
+
const actionFlashingCellDefinition = action
|
|
73
|
+
.flashingCellDefinition;
|
|
72
74
|
AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
|
|
73
75
|
flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
|
|
74
76
|
flashingCellDefinitions.push(actionFlashingCellDefinition);
|
|
75
77
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
|
|
76
78
|
}
|
|
77
|
-
case exports.
|
|
78
|
-
const actionFlashingCellDefinition = action
|
|
79
|
+
case exports.FLASHING_CELL_DEFINITION_EDIT: {
|
|
80
|
+
const actionFlashingCellDefinition = action
|
|
81
|
+
.flashingCellDefinition;
|
|
79
82
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
|
|
80
83
|
? actionFlashingCellDefinition
|
|
81
84
|
: abObject) });
|
|
82
85
|
}
|
|
83
|
-
case exports.
|
|
84
|
-
const actionFlashingCellDefinition = action
|
|
86
|
+
case exports.FLASHING_CELL_DEFINITION_DELETE: {
|
|
87
|
+
const actionFlashingCellDefinition = action
|
|
88
|
+
.flashingCellDefinition;
|
|
85
89
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
|
|
86
90
|
}
|
|
87
|
-
case exports.
|
|
91
|
+
case exports.FLASHING_CELL_DEFINITION_SUSPEND: {
|
|
88
92
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, true) });
|
|
89
93
|
}
|
|
90
|
-
case exports.
|
|
94
|
+
case exports.FLASHING_CELL_DEFINITION_UNSUSPEND: {
|
|
91
95
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: utils_1.changeIsSuspendInList(action.flashingCellDefinition, state.FlashingCellDefinitions, false) });
|
|
92
96
|
}
|
|
93
97
|
default:
|
|
@@ -23,7 +23,7 @@ export declare const FORMAT_COLUMN_SUSPEND = "FORMAT_COLUMN_SUSPEND";
|
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction FormatColumn Module is un-suspended, or activated
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const FORMAT_COLUMN_UNSUSPEND = "FORMAT_COLUMN_UNSUSPEND";
|
|
27
27
|
export interface FormatColumnAction extends Redux.Action {
|
|
28
28
|
formatColumn: FormatColumn;
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.
|
|
3
|
+
exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -28,7 +28,7 @@ exports.FORMAT_COLUMN_SUSPEND = 'FORMAT_COLUMN_SUSPEND';
|
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction FormatColumn Module is un-suspended, or activated
|
|
30
30
|
*/
|
|
31
|
-
exports.
|
|
31
|
+
exports.FORMAT_COLUMN_UNSUSPEND = 'FORMAT_COLUMN_UNSUSPEND';
|
|
32
32
|
exports.FormatColumnAdd = (formatColumn) => ({
|
|
33
33
|
type: exports.FORMAT_COLUMN_ADD,
|
|
34
34
|
formatColumn,
|
|
@@ -46,7 +46,7 @@ exports.FormatColumnSuspend = (formatColumn) => ({
|
|
|
46
46
|
formatColumn,
|
|
47
47
|
});
|
|
48
48
|
exports.FormatColumnUnSuspend = (formatColumn) => ({
|
|
49
|
-
type: exports.
|
|
49
|
+
type: exports.FORMAT_COLUMN_UNSUSPEND,
|
|
50
50
|
formatColumn,
|
|
51
51
|
});
|
|
52
52
|
exports.FormatColumnReady = (formatColumnState) => ({
|
|
@@ -76,7 +76,7 @@ exports.FormatColumnReducer = (state = initialState, action) => {
|
|
|
76
76
|
case exports.FORMAT_COLUMN_SUSPEND: {
|
|
77
77
|
return Object.assign(Object.assign({}, state), { FormatColumns: utils_1.changeIsSuspendInList(action.formatColumn, state.FormatColumns, true) });
|
|
78
78
|
}
|
|
79
|
-
case exports.
|
|
79
|
+
case exports.FORMAT_COLUMN_UNSUSPEND: {
|
|
80
80
|
return Object.assign(Object.assign({}, state), { FormatColumns: utils_1.changeIsSuspendInList(action.formatColumn, state.FormatColumns, false) });
|
|
81
81
|
}
|
|
82
82
|
default:
|
|
@@ -24,7 +24,7 @@ export declare const PLUS_MINUS_RULE_SUSPEND = "PLUS_MINUS_RULE_SUSPEND";
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction A Plus Minus Rule has been un-suspended
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const PLUS_MINUS_RULE_UNSUSPEND = "PLUS_MINUS_RULE_UNSUSPEND";
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction PlusMinus Module is ready
|
|
30
30
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusReducer = exports.PlusMinusReady = exports.PlusMinusNudgeUnSuspend = exports.PlusMinusNudgeSuspend = exports.PlusMinusNudgeDelete = exports.PlusMinusNudgeEdit = exports.PlusMinusNudgeAdd = exports.PlusMinusApply = exports.PLUS_MINUS_READY = exports.
|
|
3
|
+
exports.PlusMinusReducer = exports.PlusMinusReady = exports.PlusMinusNudgeUnSuspend = exports.PlusMinusNudgeSuspend = exports.PlusMinusNudgeDelete = exports.PlusMinusNudgeEdit = exports.PlusMinusNudgeAdd = exports.PlusMinusApply = exports.PLUS_MINUS_READY = exports.PLUS_MINUS_RULE_UNSUSPEND = exports.PLUS_MINUS_RULE_SUSPEND = exports.PLUS_MINUS_RULE_DELETE = exports.PLUS_MINUS_RULE_EDIT = exports.PLUS_MINUS_RULE_ADD = exports.PLUS_MINUS_APPLY = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -28,7 +28,7 @@ exports.PLUS_MINUS_RULE_SUSPEND = 'PLUS_MINUS_RULE_SUSPEND';
|
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction A Plus Minus Rule has been un-suspended
|
|
30
30
|
*/
|
|
31
|
-
exports.
|
|
31
|
+
exports.PLUS_MINUS_RULE_UNSUSPEND = 'PLUS_MINUS_RULE_UNSUSPEND';
|
|
32
32
|
/**
|
|
33
33
|
* @ReduxAction PlusMinus Module is ready
|
|
34
34
|
*/
|
|
@@ -54,7 +54,7 @@ exports.PlusMinusNudgeSuspend = (plusMinusNudge) => ({
|
|
|
54
54
|
plusMinusNudge: plusMinusNudge,
|
|
55
55
|
});
|
|
56
56
|
exports.PlusMinusNudgeUnSuspend = (plusMinusNudge) => ({
|
|
57
|
-
type: exports.
|
|
57
|
+
type: exports.PLUS_MINUS_RULE_UNSUSPEND,
|
|
58
58
|
plusMinusNudge: plusMinusNudge,
|
|
59
59
|
});
|
|
60
60
|
exports.PlusMinusReady = (plusMinusState) => ({
|
|
@@ -88,7 +88,7 @@ exports.PlusMinusReducer = (state = initialState, action) => {
|
|
|
88
88
|
case exports.PLUS_MINUS_RULE_SUSPEND: {
|
|
89
89
|
return Object.assign(Object.assign({}, state), { PlusMinusNudges: utils_1.changeIsSuspendInList(action.plusMinusNudge, state.PlusMinusNudges, true) });
|
|
90
90
|
}
|
|
91
|
-
case exports.
|
|
91
|
+
case exports.PLUS_MINUS_RULE_UNSUSPEND: {
|
|
92
92
|
return Object.assign(Object.assign({}, state), { PlusMinusNudges: utils_1.changeIsSuspendInList(action.plusMinusNudge, state.PlusMinusNudges, false) });
|
|
93
93
|
}
|
|
94
94
|
default:
|
|
@@ -29,7 +29,7 @@ export declare const REPORT_SCHEDULE_SUSPEND = "REPORT_SCHEDULE_SUSPEND";
|
|
|
29
29
|
/**
|
|
30
30
|
* @ReduxAction A Report Schedule has been un-suspended or activated
|
|
31
31
|
*/
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const REPORT_SCHEDULE_UNSUSPEND = "REPORT_SCHEDULE_UNSUSPEND";
|
|
33
33
|
/**
|
|
34
34
|
* @ReduxAction A Reminder Schedule has been added
|
|
35
35
|
*/
|
|
@@ -49,7 +49,7 @@ export declare const REMINDER_SCHEDULE_SUSPEND = "REMINDER_SCHEDULE_SUSPEND";
|
|
|
49
49
|
/**
|
|
50
50
|
* @ReduxAction A Reminder Schedule has been un-suspended or activated
|
|
51
51
|
*/
|
|
52
|
-
export declare const
|
|
52
|
+
export declare const REMINDER_SCHEDULE_UNSUSPEND = "REMINDER_SCHEDULE_UNSUSPEND";
|
|
53
53
|
/**
|
|
54
54
|
* @ReduxAction An ipushpull Schedule has been added
|
|
55
55
|
*/
|
|
@@ -69,7 +69,7 @@ export declare const IPUSHPULL_SCHEDULE_SUSPEND = "IPUSHPULL_SCHEDULE_SUSPEND";
|
|
|
69
69
|
/**
|
|
70
70
|
* @ReduxAction An ipushpull Schedule has been un-suspended or activated
|
|
71
71
|
*/
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const IPUSHPULL_SCHEDULE_UNSUSPEND = "IPUSHPULL_SCHEDULE_UNSUSPEND";
|
|
73
73
|
/**
|
|
74
74
|
* @ReduxAction A Glue42 Schedule has been added
|
|
75
75
|
*/
|
|
@@ -89,7 +89,7 @@ export declare const GLUE42_SCHEDULE_SUSPEND = "GLUE42_SCHEDULE_SUSPEND";
|
|
|
89
89
|
/**
|
|
90
90
|
* @ReduxAction A Glue42 Schedule has been un-suspended or activated
|
|
91
91
|
*/
|
|
92
|
-
export declare const
|
|
92
|
+
export declare const GLUE42_SCHEDULE_UNSUSPEND = "GLUE42_SCHEDULE_UNSUSPEND";
|
|
93
93
|
/**
|
|
94
94
|
* @ReduxAction An OpenFin Schedule has been added
|
|
95
95
|
*/
|
|
@@ -109,7 +109,7 @@ export declare const OPENFIN_SCHEDULE_SUSPEND = "OPENFIN_SCHEDULE_SUSPEND";
|
|
|
109
109
|
/**
|
|
110
110
|
* @ReduxAction An OpenFin Schedule has been un-suspended or activated
|
|
111
111
|
*/
|
|
112
|
-
export declare const
|
|
112
|
+
export declare const OPENFIN_SCHEDULE_UNSUSPEND = "OPENFIN_SCHEDULE_UNSUSPEND";
|
|
113
113
|
/**
|
|
114
114
|
* @ReduxAction Schedule Module is ready
|
|
115
115
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScheduleReducer = exports.IPushPullScheduleUnSuspend = exports.IPushPullScheduleSuspend = exports.IPushPullScheduleDelete = exports.IPushPullScheduleEdit = exports.IPushPullScheduleAdd = exports.ReminderScheduleUnSuspend = exports.ReminderScheduleSuspend = exports.ReminderScheduleDelete = exports.ReminderScheduleEdit = exports.ReminderScheduleAdd = exports.ReportScheduleUnSuspend = exports.ReportScheduleSuspend = exports.ReportScheduleDelete = exports.ReportScheduleEdit = exports.ReportScheduleAdd = exports.OpenFinScheduleUnSuspend = exports.OpenFinScheduleSuspend = exports.OpenFinScheduleDelete = exports.OpenFinScheduleEdit = exports.OpenFinScheduleAdd = exports.Glue42ScheduleUnSuspend = exports.Glue42ScheduleSuspend = exports.Glue42ScheduleDelete = exports.Glue42ScheduleEdit = exports.Glue42ScheduleAdd = exports.ScheduleReady = exports.ScheduleJobRun = exports.SCHEDULE_READY = exports.
|
|
3
|
+
exports.ScheduleReducer = exports.IPushPullScheduleUnSuspend = exports.IPushPullScheduleSuspend = exports.IPushPullScheduleDelete = exports.IPushPullScheduleEdit = exports.IPushPullScheduleAdd = exports.ReminderScheduleUnSuspend = exports.ReminderScheduleSuspend = exports.ReminderScheduleDelete = exports.ReminderScheduleEdit = exports.ReminderScheduleAdd = exports.ReportScheduleUnSuspend = exports.ReportScheduleSuspend = exports.ReportScheduleDelete = exports.ReportScheduleEdit = exports.ReportScheduleAdd = exports.OpenFinScheduleUnSuspend = exports.OpenFinScheduleSuspend = exports.OpenFinScheduleDelete = exports.OpenFinScheduleEdit = exports.OpenFinScheduleAdd = exports.Glue42ScheduleUnSuspend = exports.Glue42ScheduleSuspend = exports.Glue42ScheduleDelete = exports.Glue42ScheduleEdit = exports.Glue42ScheduleAdd = exports.ScheduleReady = exports.ScheduleJobRun = exports.SCHEDULE_READY = exports.OPENFIN_SCHEDULE_UNSUSPEND = exports.OPENFIN_SCHEDULE_SUSPEND = exports.OPENFIN_SCHEDULE_DELETE = exports.OPENFIN_SCHEDULE_EDIT = exports.OPENFIN_SCHEDULE_ADD = exports.GLUE42_SCHEDULE_UNSUSPEND = exports.GLUE42_SCHEDULE_SUSPEND = exports.GLUE42_SCHEDULE_DELETE = exports.GLUE42_SCHEDULE_EDIT = exports.GLUE42_SCHEDULE_ADD = exports.IPUSHPULL_SCHEDULE_UNSUSPEND = exports.IPUSHPULL_SCHEDULE_SUSPEND = exports.IPUSHPULL_SCHEDULE_DELETE = exports.IPUSHPULL_SCHEDULE_EDIT = exports.IPUSHPULL_SCHEDULE_ADD = exports.REMINDER_SCHEDULE_UNSUSPEND = exports.REMINDER_SCHEDULE_SUSPEND = exports.REMINDER_SCHEDULE_DELETE = exports.REMINDER_SCHEDULE_EDIT = exports.REMINDER_SCHEDULE_ADD = exports.REPORT_SCHEDULE_UNSUSPEND = exports.REPORT_SCHEDULE_SUSPEND = exports.REPORT_SCHEDULE_DELETE = exports.REPORT_SCHEDULE_EDIT = exports.REPORT_SCHEDULE_ADD = exports.SCHEDULE_JOB_RUN = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -28,7 +28,7 @@ exports.REPORT_SCHEDULE_SUSPEND = 'REPORT_SCHEDULE_SUSPEND';
|
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction A Report Schedule has been un-suspended or activated
|
|
30
30
|
*/
|
|
31
|
-
exports.
|
|
31
|
+
exports.REPORT_SCHEDULE_UNSUSPEND = 'REPORT_SCHEDULE_UNSUSPEND';
|
|
32
32
|
/**
|
|
33
33
|
* @ReduxAction A Reminder Schedule has been added
|
|
34
34
|
*/
|
|
@@ -48,7 +48,7 @@ exports.REMINDER_SCHEDULE_SUSPEND = 'REMINDER_SCHEDULE_SUSPEND';
|
|
|
48
48
|
/**
|
|
49
49
|
* @ReduxAction A Reminder Schedule has been un-suspended or activated
|
|
50
50
|
*/
|
|
51
|
-
exports.
|
|
51
|
+
exports.REMINDER_SCHEDULE_UNSUSPEND = 'REMINDER_SCHEDULE_UNSUSPEND';
|
|
52
52
|
/**
|
|
53
53
|
* @ReduxAction An ipushpull Schedule has been added
|
|
54
54
|
*/
|
|
@@ -68,7 +68,7 @@ exports.IPUSHPULL_SCHEDULE_SUSPEND = 'IPUSHPULL_SCHEDULE_SUSPEND';
|
|
|
68
68
|
/**
|
|
69
69
|
* @ReduxAction An ipushpull Schedule has been un-suspended or activated
|
|
70
70
|
*/
|
|
71
|
-
exports.
|
|
71
|
+
exports.IPUSHPULL_SCHEDULE_UNSUSPEND = 'IPUSHPULL_SCHEDULE_UNSUSPEND';
|
|
72
72
|
/**
|
|
73
73
|
* @ReduxAction A Glue42 Schedule has been added
|
|
74
74
|
*/
|
|
@@ -88,7 +88,7 @@ exports.GLUE42_SCHEDULE_SUSPEND = 'GLUE42_SCHEDULE_SUSPEND';
|
|
|
88
88
|
/**
|
|
89
89
|
* @ReduxAction A Glue42 Schedule has been un-suspended or activated
|
|
90
90
|
*/
|
|
91
|
-
exports.
|
|
91
|
+
exports.GLUE42_SCHEDULE_UNSUSPEND = 'GLUE42_SCHEDULE_UNSUSPEND';
|
|
92
92
|
/**
|
|
93
93
|
* @ReduxAction An OpenFin Schedule has been added
|
|
94
94
|
*/
|
|
@@ -108,7 +108,7 @@ exports.OPENFIN_SCHEDULE_SUSPEND = 'OPENFIN_SCHEDULE_SUSPEND';
|
|
|
108
108
|
/**
|
|
109
109
|
* @ReduxAction An OpenFin Schedule has been un-suspended or activated
|
|
110
110
|
*/
|
|
111
|
-
exports.
|
|
111
|
+
exports.OPENFIN_SCHEDULE_UNSUSPEND = 'OPENFIN_SCHEDULE_UNSUSPEND';
|
|
112
112
|
/**
|
|
113
113
|
* @ReduxAction Schedule Module is ready
|
|
114
114
|
*/
|
|
@@ -139,7 +139,7 @@ exports.Glue42ScheduleSuspend = (glue42Schedule) => ({
|
|
|
139
139
|
glue42Schedule,
|
|
140
140
|
});
|
|
141
141
|
exports.Glue42ScheduleUnSuspend = (glue42Schedule) => ({
|
|
142
|
-
type: exports.
|
|
142
|
+
type: exports.GLUE42_SCHEDULE_UNSUSPEND,
|
|
143
143
|
glue42Schedule,
|
|
144
144
|
});
|
|
145
145
|
exports.OpenFinScheduleAdd = (openFinSchedule) => ({
|
|
@@ -159,7 +159,7 @@ exports.OpenFinScheduleSuspend = (openFinSchedule) => ({
|
|
|
159
159
|
openFinSchedule,
|
|
160
160
|
});
|
|
161
161
|
exports.OpenFinScheduleUnSuspend = (openFinSchedule) => ({
|
|
162
|
-
type: exports.
|
|
162
|
+
type: exports.OPENFIN_SCHEDULE_UNSUSPEND,
|
|
163
163
|
openFinSchedule,
|
|
164
164
|
});
|
|
165
165
|
// Report
|
|
@@ -180,7 +180,7 @@ exports.ReportScheduleSuspend = (reportSchedule) => ({
|
|
|
180
180
|
reportSchedule,
|
|
181
181
|
});
|
|
182
182
|
exports.ReportScheduleUnSuspend = (reportSchedule) => ({
|
|
183
|
-
type: exports.
|
|
183
|
+
type: exports.REPORT_SCHEDULE_UNSUSPEND,
|
|
184
184
|
reportSchedule,
|
|
185
185
|
});
|
|
186
186
|
exports.ReminderScheduleAdd = (reminderSchedule) => ({
|
|
@@ -200,7 +200,7 @@ exports.ReminderScheduleSuspend = (reminderSchedule) => ({
|
|
|
200
200
|
reminderSchedule,
|
|
201
201
|
});
|
|
202
202
|
exports.ReminderScheduleUnSuspend = (reminderSchedule) => ({
|
|
203
|
-
type: exports.
|
|
203
|
+
type: exports.REMINDER_SCHEDULE_UNSUSPEND,
|
|
204
204
|
reminderSchedule,
|
|
205
205
|
});
|
|
206
206
|
exports.IPushPullScheduleAdd = (iPushPullSchedule) => ({
|
|
@@ -220,7 +220,7 @@ exports.IPushPullScheduleSuspend = (iPushPullSchedule) => ({
|
|
|
220
220
|
iPushPullSchedule,
|
|
221
221
|
});
|
|
222
222
|
exports.IPushPullScheduleUnSuspend = (iPushPullSchedule) => ({
|
|
223
|
-
type: exports.
|
|
223
|
+
type: exports.IPUSHPULL_SCHEDULE_UNSUSPEND,
|
|
224
224
|
iPushPullSchedule,
|
|
225
225
|
});
|
|
226
226
|
const initialState = {
|
|
@@ -249,7 +249,7 @@ exports.ScheduleReducer = (state = initialState, action) => {
|
|
|
249
249
|
case exports.GLUE42_SCHEDULE_SUSPEND: {
|
|
250
250
|
return Object.assign(Object.assign({}, state), { Glue42Schedules: utils_1.changeIsSuspendInList(action.glue42Schedule, state.Glue42Schedules, true) });
|
|
251
251
|
}
|
|
252
|
-
case exports.
|
|
252
|
+
case exports.GLUE42_SCHEDULE_UNSUSPEND: {
|
|
253
253
|
return Object.assign(Object.assign({}, state), { Glue42Schedules: utils_1.changeIsSuspendInList(action.glue42Schedule, state.Glue42Schedules, false) });
|
|
254
254
|
}
|
|
255
255
|
case exports.OPENFIN_SCHEDULE_ADD: {
|
|
@@ -270,7 +270,7 @@ exports.ScheduleReducer = (state = initialState, action) => {
|
|
|
270
270
|
case exports.OPENFIN_SCHEDULE_SUSPEND: {
|
|
271
271
|
return Object.assign(Object.assign({}, state), { OpenFinSchedules: utils_1.changeIsSuspendInList(action.openFinSchedule, state.OpenFinSchedules, true) });
|
|
272
272
|
}
|
|
273
|
-
case exports.
|
|
273
|
+
case exports.OPENFIN_SCHEDULE_UNSUSPEND: {
|
|
274
274
|
return Object.assign(Object.assign({}, state), { OpenFinSchedules: utils_1.changeIsSuspendInList(action.openFinSchedule, state.OpenFinSchedules, false) });
|
|
275
275
|
}
|
|
276
276
|
case exports.REPORT_SCHEDULE_ADD: {
|
|
@@ -291,7 +291,7 @@ exports.ScheduleReducer = (state = initialState, action) => {
|
|
|
291
291
|
case exports.REPORT_SCHEDULE_SUSPEND: {
|
|
292
292
|
return Object.assign(Object.assign({}, state), { ReportSchedules: utils_1.changeIsSuspendInList(action.reportSchedule, state.ReportSchedules, true) });
|
|
293
293
|
}
|
|
294
|
-
case exports.
|
|
294
|
+
case exports.REPORT_SCHEDULE_UNSUSPEND: {
|
|
295
295
|
return Object.assign(Object.assign({}, state), { ReportSchedules: utils_1.changeIsSuspendInList(action.reportSchedule, state.ReportSchedules, false) });
|
|
296
296
|
}
|
|
297
297
|
case exports.REMINDER_SCHEDULE_ADD: {
|
|
@@ -312,7 +312,7 @@ exports.ScheduleReducer = (state = initialState, action) => {
|
|
|
312
312
|
case exports.REMINDER_SCHEDULE_SUSPEND: {
|
|
313
313
|
return Object.assign(Object.assign({}, state), { Reminders: utils_1.changeIsSuspendInList(action.reminderSchedule, state.Reminders, true) });
|
|
314
314
|
}
|
|
315
|
-
case exports.
|
|
315
|
+
case exports.REMINDER_SCHEDULE_UNSUSPEND: {
|
|
316
316
|
return Object.assign(Object.assign({}, state), { Reminders: utils_1.changeIsSuspendInList(action.reminderSchedule, state.Reminders, false) });
|
|
317
317
|
}
|
|
318
318
|
case exports.IPUSHPULL_SCHEDULE_ADD: {
|
|
@@ -336,7 +336,7 @@ exports.ScheduleReducer = (state = initialState, action) => {
|
|
|
336
336
|
case exports.IPUSHPULL_SCHEDULE_SUSPEND: {
|
|
337
337
|
return Object.assign(Object.assign({}, state), { IPushPullSchedules: utils_1.changeIsSuspendInList(action.iPushPullSchedule, state.IPushPullSchedules, true) });
|
|
338
338
|
}
|
|
339
|
-
case exports.
|
|
339
|
+
case exports.IPUSHPULL_SCHEDULE_UNSUSPEND: {
|
|
340
340
|
return Object.assign(Object.assign({}, state), { IPushPullSchedules: utils_1.changeIsSuspendInList(action.iPushPullSchedule, state.IPushPullSchedules, false) });
|
|
341
341
|
}
|
|
342
342
|
default:
|
|
@@ -19,7 +19,7 @@ export declare const SHORTCUT_SUSPEND = "SHORTCUT_SUSPEND";
|
|
|
19
19
|
/**
|
|
20
20
|
* @ReduxAction A Shortcut has been un-suspended or activated
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const SHORTCUT_UNSUSPEND = "SHORTCUT_UNSUSPEND";
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction Shortcut Module is ready
|
|
25
25
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutReducer = exports.ShortcutReady = exports.ShortcutUnSuspend = exports.ShortcutSuspend = exports.ShortcutDelete = exports.ShortcutEdit = exports.ShortcutAdd = exports.SHORTCUT_READY = exports.
|
|
3
|
+
exports.ShortcutReducer = exports.ShortcutReady = exports.ShortcutUnSuspend = exports.ShortcutSuspend = exports.ShortcutDelete = exports.ShortcutEdit = exports.ShortcutAdd = exports.SHORTCUT_READY = exports.SHORTCUT_UNSUSPEND = exports.SHORTCUT_SUSPEND = exports.SHORTCUT_DELETE = exports.SHORTCUT_EDIT = exports.SHORTCUT_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -24,7 +24,7 @@ exports.SHORTCUT_SUSPEND = 'SHORTCUT_SUSPEND';
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction A Shortcut has been un-suspended or activated
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.SHORTCUT_UNSUSPEND = 'SHORTCUT_UNSUSPEND';
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction Shortcut Module is ready
|
|
30
30
|
*/
|
|
@@ -46,7 +46,7 @@ exports.ShortcutSuspend = (shortcut) => ({
|
|
|
46
46
|
shortcut,
|
|
47
47
|
});
|
|
48
48
|
exports.ShortcutUnSuspend = (shortcut) => ({
|
|
49
|
-
type: exports.
|
|
49
|
+
type: exports.SHORTCUT_UNSUSPEND,
|
|
50
50
|
shortcut,
|
|
51
51
|
});
|
|
52
52
|
exports.ShortcutReady = (shortcutState) => ({
|
|
@@ -77,7 +77,7 @@ exports.ShortcutReducer = (state = initialState, action) => {
|
|
|
77
77
|
case exports.SHORTCUT_SUSPEND: {
|
|
78
78
|
return Object.assign(Object.assign({}, state), { Shortcuts: utils_1.changeIsSuspendInList(action.shortcut, state.Shortcuts, true) });
|
|
79
79
|
}
|
|
80
|
-
case exports.
|
|
80
|
+
case exports.SHORTCUT_UNSUSPEND: {
|
|
81
81
|
return Object.assign(Object.assign({}, state), { Shortcuts: utils_1.changeIsSuspendInList(action.shortcut, state.Shortcuts, false) });
|
|
82
82
|
}
|
|
83
83
|
default:
|
|
@@ -14,7 +14,7 @@ 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
|
-
// Flashing
|
|
17
|
+
// Flashing Cells
|
|
18
18
|
exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
|
|
19
19
|
exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
|
|
20
20
|
exports.SYSTEM_FLASHING_CELL_DELETE_ALL = 'SYSTEM_FLASHING_CELL_DELETE_ALL';
|
|
@@ -64,7 +64,7 @@ function MergeStateFunction(oldState, newState) {
|
|
|
64
64
|
}
|
|
65
65
|
// any Module in config that doesn't exist in state will be added
|
|
66
66
|
for (const configModuleName in config) {
|
|
67
|
-
(_a = state[configModuleName]) !== null && _a !== void 0 ? _a :
|
|
67
|
+
state[configModuleName] = (_a = state[configModuleName]) !== null && _a !== void 0 ? _a : config[configModuleName];
|
|
68
68
|
}
|
|
69
69
|
// any Module in state that has an older revision then the config will be replaced
|
|
70
70
|
for (const stateModuleName in state) {
|