@adaptabletools/adaptable 11.0.0 → 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/base.css +1 -2
- package/bundle.cjs.js +66 -66
- package/index.css +1 -2
- 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/FilterOptions.d.ts +4 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -3
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/Api/GridApi.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +1 -2
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +14 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/PlusMinusState.d.ts +1 -1
- 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/AdaptableStore.js +20 -20
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/agGrid/Adaptable.d.ts +3 -1
- package/src/agGrid/Adaptable.js +59 -36
- 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 +7 -8
- package/src/components/icons/calculated-column.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +13 -4
- package/src/metamodel/adaptable.metamodel.js +18 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/index.css
CHANGED
|
@@ -3103,8 +3103,7 @@ input[type='number'].ab-Input:hover::-webkit-inner-spin-button:active {
|
|
|
3103
3103
|
align-items: stretch;
|
|
3104
3104
|
flex: 1;
|
|
3105
3105
|
overflow-x: auto;
|
|
3106
|
-
padding
|
|
3107
|
-
padding-bottom: var(--ab-dashboard-gap-size); }
|
|
3106
|
+
padding: var(--ab-dashboard-gap-size); }
|
|
3108
3107
|
|
|
3109
3108
|
.ab-Dashboard__container {
|
|
3110
3109
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1646327668940;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -165,6 +165,7 @@ export interface IAdaptable {
|
|
|
165
165
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
166
166
|
setValue(dataChangedInfo: DataChangedInfo): void;
|
|
167
167
|
cancelEdit(): any;
|
|
168
|
+
isCellEditable(rowNode: RowNode, column: Column): boolean;
|
|
168
169
|
getFirstRowNode(): RowNode;
|
|
169
170
|
forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
|
|
170
171
|
forAllVisibleRowNodesDo(func: (rowNode: RowNode) => void): void;
|
|
@@ -228,5 +229,5 @@ export interface IAdaptable {
|
|
|
228
229
|
updateColDefsForSpecialColumns({ skipSetupColumns }?: {
|
|
229
230
|
skipSetupColumns?: boolean;
|
|
230
231
|
}): void;
|
|
231
|
-
|
|
232
|
+
getAgGridColumnForColumnId(columnId: string): Column;
|
|
232
233
|
}
|
|
@@ -65,6 +65,10 @@ export interface FilterOptions {
|
|
|
65
65
|
* @gridInfoItem
|
|
66
66
|
*/
|
|
67
67
|
quickFilterValuesTrigger?: 'mouseenter' | 'click';
|
|
68
|
+
/**
|
|
69
|
+
* TODO: add comment
|
|
70
|
+
*/
|
|
71
|
+
quickFilterHeight?: number;
|
|
68
72
|
/**
|
|
69
73
|
* When to re-filter grid after user edits data: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')
|
|
70
74
|
*
|
|
@@ -11,7 +11,7 @@ export interface SettingsPanelOptions {
|
|
|
11
11
|
/**
|
|
12
12
|
* Icon for Settings Panel Can be `ConfigurationIcon`, `ApplicationIcon` or a custom Icon
|
|
13
13
|
*
|
|
14
|
-
* @defaultValue
|
|
14
|
+
* @defaultValue `ConfigurationIcon`
|
|
15
15
|
*/
|
|
16
16
|
icon?: 'ConfigurationIcon' | 'ApplicationIcon' | AdaptableIcon;
|
|
17
17
|
/**
|
|
@@ -35,7 +35,7 @@ export interface SettingsPanelOptions {
|
|
|
35
35
|
/**
|
|
36
36
|
* Initial position of Settings Panel window
|
|
37
37
|
*
|
|
38
|
-
* @defaultValue
|
|
38
|
+
* @defaultValue Middle of Screen
|
|
39
39
|
*/
|
|
40
40
|
position?: {
|
|
41
41
|
x: number;
|
|
@@ -44,7 +44,7 @@ export interface SettingsPanelOptions {
|
|
|
44
44
|
/**
|
|
45
45
|
* Initial size of Settings Panel
|
|
46
46
|
*
|
|
47
|
-
* @defaultValue
|
|
47
|
+
* @defaultValue Computed based on size of screen
|
|
48
48
|
*/
|
|
49
49
|
size?: {
|
|
50
50
|
width: number;
|
|
@@ -59,7 +59,7 @@ export interface ToolPanelOptions {
|
|
|
59
59
|
/**
|
|
60
60
|
* ToolPanel Buttons provided by Users which perform custom behaviour
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
customButtons?: AdaptableButton<ToolPanelButtonContext>[];
|
|
63
63
|
/**
|
|
64
64
|
* ToolPanels provided by Users which contain custom content
|
|
65
65
|
*/
|
|
@@ -80,7 +80,7 @@ export interface CustomToolPanel extends AdaptableObject {
|
|
|
80
80
|
/**
|
|
81
81
|
* Optional set of buttons to show in the ToolPanel
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
buttons?: AdaptableButton<CustomToolPanelButtonContext>[];
|
|
84
84
|
/**
|
|
85
85
|
* Function to provide bespoke content when NOT using a Framework wrapper
|
|
86
86
|
*/
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -60,10 +60,9 @@ export interface GridApi {
|
|
|
60
60
|
* @param columnId column to update
|
|
61
61
|
* @param newValue new value to use
|
|
62
62
|
* @param primaryKeyValue primaryKeyValue of the row (i.e. the value in the PrimaryKeyColumn identified in Adaptable Options)
|
|
63
|
-
* @param forceFilter whether to refilter the Grid (and update aggregations) on data change - default is false
|
|
64
63
|
*
|
|
65
64
|
*/
|
|
66
|
-
setCellValue(columnId: string, newValue: any, primaryKeyValue: any
|
|
65
|
+
setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
|
|
67
66
|
/**
|
|
68
67
|
* Updates multiple cells
|
|
69
68
|
* @param gridCells cells to update
|
|
@@ -198,7 +198,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
198
198
|
return agGridColumn.getColDef().field || '';
|
|
199
199
|
}
|
|
200
200
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
201
|
-
return this.adaptable.
|
|
201
|
+
return this.adaptable.getAgGridColumnForColumnId(columnId);
|
|
202
202
|
}
|
|
203
203
|
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
204
204
|
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
@@ -51,12 +51,16 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
51
|
if (!abColumn || abColumn.readOnly) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
+
const rowNode = this.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
55
|
+
if (!this.adaptable.isCellEditable(rowNode, this.adaptable.getAgGridColumnForColumnId(columnId))) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
54
58
|
const gridCell = {
|
|
55
59
|
primaryKeyValue: primaryKeyValue,
|
|
56
60
|
rawValue: newValue,
|
|
57
61
|
displayValue: newValue,
|
|
58
62
|
normalisedValue: newValue,
|
|
59
|
-
rowNode:
|
|
63
|
+
rowNode: rowNode,
|
|
60
64
|
column: abColumn,
|
|
61
65
|
};
|
|
62
66
|
this.adaptable.api.internalApi.setGridCell(gridCell);
|
|
@@ -336,23 +340,16 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
336
340
|
this.adaptable.redrawRow(rowNode);
|
|
337
341
|
}
|
|
338
342
|
areCellsEditable(gridCells) {
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if (gridCell.column.readOnly) {
|
|
343
|
-
returnValue = false;
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
let cellEditableFn = this.adaptable.adaptableOptions.editOptions.isCellEditable;
|
|
347
|
-
if (cellEditableFn) {
|
|
348
|
-
let functionReturnValue = cellEditableFn(gridCell);
|
|
349
|
-
if (!functionReturnValue) {
|
|
350
|
-
returnValue = false;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
343
|
+
for (let gridCell of gridCells) {
|
|
344
|
+
if (gridCell.column.readOnly) {
|
|
345
|
+
return false;
|
|
353
346
|
}
|
|
354
|
-
|
|
355
|
-
|
|
347
|
+
const isCellEditable = this.adaptable.isCellEditable(gridCell.rowNode, this.adaptable.getAgGridColumnForColumnId(gridCell.column.columnId));
|
|
348
|
+
if (!isCellEditable) {
|
|
349
|
+
return false;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return true;
|
|
356
353
|
}
|
|
357
354
|
getRowCount() {
|
|
358
355
|
return this.adaptable.getRowCount();
|
|
@@ -30,7 +30,7 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
30
30
|
}
|
|
31
31
|
getCustomToolPanelButtons() {
|
|
32
32
|
var _a;
|
|
33
|
-
return (_a = this.getToolPanelOptions().
|
|
33
|
+
return (_a = this.getToolPanelOptions().customButtons) !== null && _a !== void 0 ? _a : [];
|
|
34
34
|
}
|
|
35
35
|
getCustomToolPanelByName(name) {
|
|
36
36
|
return this.getCustomToolPanels().find((customToolPanel) => customToolPanel.name === name);
|
|
@@ -46,7 +46,7 @@ export interface AdaptableColumn extends AdaptableColumnBase {
|
|
|
46
46
|
*/
|
|
47
47
|
flex?: number;
|
|
48
48
|
/**
|
|
49
|
-
* Is column editable
|
|
49
|
+
* Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable
|
|
50
50
|
*/
|
|
51
51
|
readOnly: boolean;
|
|
52
52
|
/**
|
|
@@ -24,7 +24,7 @@ export interface PlusMinusNudge extends SuspendableObject {
|
|
|
24
24
|
*/
|
|
25
25
|
NudgeValue: number;
|
|
26
26
|
/**
|
|
27
|
-
* (Optional) Boolean
|
|
27
|
+
* (Optional) Boolean Expression to determine whether to apply the Nudge
|
|
28
28
|
*/
|
|
29
29
|
Rule?: AdaptableBooleanQuery;
|
|
30
30
|
}
|
|
@@ -19,7 +19,7 @@ export declare const ALERT_DEFINITION_SUSPEND = "ALERT_DEFINITION_SUSPEND";
|
|
|
19
19
|
/**
|
|
20
20
|
* @ReduxAction Alert Definition is un-suspended, or activated
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const ALERT_DEFINITION_UNSUSPEND = "ALERT_DEFINITION_UNSUSPEND";
|
|
23
23
|
export declare const ALERT_CLEAR_FLASHING_CELLS = "ALERT_CLEAR_FLASHING_CELLS";
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction Alert Module is ready
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertReducer = exports.AlertClearFlashingCells = exports.AlertReady = exports.AlertDefinitionUnSuspend = exports.AlertDefinitionSuspend = exports.AlertDefinitionDelete = exports.AlertDefinitionEdit = exports.AlertDefinitionAdd = exports.ALERT_READY = exports.ALERT_CLEAR_FLASHING_CELLS = exports.
|
|
3
|
+
exports.AlertReducer = exports.AlertClearFlashingCells = exports.AlertReady = exports.AlertDefinitionUnSuspend = exports.AlertDefinitionSuspend = exports.AlertDefinitionDelete = exports.AlertDefinitionEdit = exports.AlertDefinitionAdd = exports.ALERT_READY = exports.ALERT_CLEAR_FLASHING_CELLS = exports.ALERT_DEFINITION_UNSUSPEND = exports.ALERT_DEFINITION_SUSPEND = exports.ALERT_DEFINITION_DELETE = exports.ALERT_DEFINITION_EDIT = exports.ALERT_DEFINITION_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.ALERT_DEFINITION_SUSPEND = 'ALERT_DEFINITION_SUSPEND';
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction Alert Definition is un-suspended, or activated
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.ALERT_DEFINITION_UNSUSPEND = 'ALERT_DEFINITION_UNSUSPEND';
|
|
28
28
|
exports.ALERT_CLEAR_FLASHING_CELLS = 'ALERT_CLEAR_FLASHING_CELLS';
|
|
29
29
|
/**
|
|
30
30
|
* @ReduxAction Alert Module is ready
|
|
@@ -47,7 +47,7 @@ exports.AlertDefinitionSuspend = (alertDefinition) => ({
|
|
|
47
47
|
alertDefinition,
|
|
48
48
|
});
|
|
49
49
|
exports.AlertDefinitionUnSuspend = (alertDefinition) => ({
|
|
50
|
-
type: exports.
|
|
50
|
+
type: exports.ALERT_DEFINITION_UNSUSPEND,
|
|
51
51
|
alertDefinition,
|
|
52
52
|
});
|
|
53
53
|
exports.AlertReady = (alertState) => ({
|
|
@@ -84,7 +84,7 @@ exports.AlertReducer = (state = initialState, action) => {
|
|
|
84
84
|
case exports.ALERT_DEFINITION_SUSPEND: {
|
|
85
85
|
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, true) });
|
|
86
86
|
}
|
|
87
|
-
case exports.
|
|
87
|
+
case exports.ALERT_DEFINITION_UNSUSPEND: {
|
|
88
88
|
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, false) });
|
|
89
89
|
}
|
|
90
90
|
case exports.ALERT_CLEAR_FLASHING_CELLS: {
|
|
@@ -23,7 +23,7 @@ export declare const CONDITIONAL_STYLE_SUSPEND = "CONDITIONAL_STYLE_SUSPEND";
|
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction Conditional Style is un-suspended, or activated
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const CONDITIONAL_STYLE_UNSUSPEND = "CONDITIONAL_STYLE_UNSUSPEND";
|
|
27
27
|
export interface ConditionalStyleAction extends Redux.Action {
|
|
28
28
|
conditionalStyle: ConditionalStyle;
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleReducer = exports.ConditionalStyleUnSuspend = exports.ConditionalStyleSuspend = exports.ConditionalStyleReady = exports.ConditionalStyleDelete = exports.ConditionalStyleEdit = exports.ConditionalStyleAdd = exports.
|
|
3
|
+
exports.ConditionalStyleReducer = exports.ConditionalStyleUnSuspend = exports.ConditionalStyleSuspend = exports.ConditionalStyleReady = exports.ConditionalStyleDelete = exports.ConditionalStyleEdit = exports.ConditionalStyleAdd = exports.CONDITIONAL_STYLE_UNSUSPEND = exports.CONDITIONAL_STYLE_SUSPEND = exports.CONDITIONAL_STYLE_READY = exports.CONDITIONAL_STYLE_DELETE = exports.CONDITIONAL_STYLE_EDIT = exports.CONDITIONAL_STYLE_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.CONDITIONAL_STYLE_SUSPEND = 'CONDITIONAL_STYLE_SUSPEND';
|
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction Conditional Style is un-suspended, or activated
|
|
30
30
|
*/
|
|
31
|
-
exports.
|
|
31
|
+
exports.CONDITIONAL_STYLE_UNSUSPEND = 'CONDITIONAL_STYLE_UNSUSPEND';
|
|
32
32
|
exports.ConditionalStyleAdd = (conditionalStyle) => ({
|
|
33
33
|
type: exports.CONDITIONAL_STYLE_ADD,
|
|
34
34
|
conditionalStyle,
|
|
@@ -50,7 +50,7 @@ exports.ConditionalStyleSuspend = (conditionalStyle) => ({
|
|
|
50
50
|
conditionalStyle,
|
|
51
51
|
});
|
|
52
52
|
exports.ConditionalStyleUnSuspend = (conditionalStyle) => ({
|
|
53
|
-
type: exports.
|
|
53
|
+
type: exports.CONDITIONAL_STYLE_UNSUSPEND,
|
|
54
54
|
conditionalStyle,
|
|
55
55
|
});
|
|
56
56
|
const initialState = {
|
|
@@ -79,7 +79,7 @@ exports.ConditionalStyleReducer = (state = initialState, action) => {
|
|
|
79
79
|
case exports.CONDITIONAL_STYLE_SUSPEND: {
|
|
80
80
|
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, true) });
|
|
81
81
|
}
|
|
82
|
-
case exports.
|
|
82
|
+
case exports.CONDITIONAL_STYLE_UNSUSPEND: {
|
|
83
83
|
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, false) });
|
|
84
84
|
}
|
|
85
85
|
default:
|
|
@@ -19,7 +19,7 @@ export declare const CUSTOM_SORT_SUSPEND = "CUSTOM_SORT_SUSPEND";
|
|
|
19
19
|
/**
|
|
20
20
|
* @ReduxAction A Custom Sort has been un-suspended (activated)
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const CUSTOM_SORT_UNSUSPEND = "CUSTOM_SORT_UNSUSPEND";
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction Custom Sort Module is ready
|
|
25
25
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomSortReducer = exports.CustomSortReady = exports.CustomSortUnSuspend = exports.CustomSortSuspend = exports.CustomSortDelete = exports.CustomSortEdit = exports.CustomSortAdd = exports.CUSTOM_SORT_READY = exports.
|
|
3
|
+
exports.CustomSortReducer = exports.CustomSortReady = exports.CustomSortUnSuspend = exports.CustomSortSuspend = exports.CustomSortDelete = exports.CustomSortEdit = exports.CustomSortAdd = exports.CUSTOM_SORT_READY = exports.CUSTOM_SORT_UNSUSPEND = exports.CUSTOM_SORT_SUSPEND = exports.CUSTOM_SORT_DELETE = exports.CUSTOM_SORT_EDIT = exports.CUSTOM_SORT_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.CUSTOM_SORT_SUSPEND = 'CUSTOM_SORT_SUSPEND';
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction A Custom Sort has been un-suspended (activated)
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.CUSTOM_SORT_UNSUSPEND = 'CUSTOM_SORT_UNSUSPEND';
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction Custom Sort Module is ready
|
|
30
30
|
*/
|
|
@@ -46,7 +46,7 @@ exports.CustomSortSuspend = (customSort) => ({
|
|
|
46
46
|
customSort,
|
|
47
47
|
});
|
|
48
48
|
exports.CustomSortUnSuspend = (customSort) => ({
|
|
49
|
-
type: exports.
|
|
49
|
+
type: exports.CUSTOM_SORT_UNSUSPEND,
|
|
50
50
|
customSort,
|
|
51
51
|
});
|
|
52
52
|
exports.CustomSortReady = (customSortState) => ({
|
|
@@ -77,7 +77,7 @@ exports.CustomSortReducer = (state = initialState, action) => {
|
|
|
77
77
|
case exports.CUSTOM_SORT_SUSPEND: {
|
|
78
78
|
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, true) });
|
|
79
79
|
}
|
|
80
|
-
case exports.
|
|
80
|
+
case exports.CUSTOM_SORT_UNSUSPEND: {
|
|
81
81
|
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, false) });
|
|
82
82
|
}
|
|
83
83
|
default:
|
|
@@ -2,30 +2,30 @@ import { FlashingCellState } from '../../PredefinedConfig/FlashingCellState';
|
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { FlashingCellDefinition } from '../../PredefinedConfig/FlashingCellState';
|
|
4
4
|
/**
|
|
5
|
-
* @ReduxAction A Flashing
|
|
5
|
+
* @ReduxAction A Flashing Cell Definition has been added
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const FLASHING_CELL_DEFINITION_ADD = "FLASHING_CELL_DEFINITION_ADD";
|
|
8
8
|
/**
|
|
9
|
-
* @ReduxAction A Flashing
|
|
9
|
+
* @ReduxAction A Flashing Cell Definition has been edited
|
|
10
10
|
*/
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const FLASHING_CELL_DEFINITION_EDIT = "FLASHING_CELL_DEFINITION_EDIT";
|
|
12
12
|
/**
|
|
13
|
-
* @ReduxAction A Flashing
|
|
13
|
+
* @ReduxAction A Flashing Cell Definition has been deleted
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const FLASHING_CELL_DEFINITION_DELETE = "FLASHING_CELL_DEFINITION_DELETE";
|
|
16
16
|
/**
|
|
17
|
-
* @ReduxAction Flashing
|
|
17
|
+
* @ReduxAction Flashing Cell Definition Style is suspended
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const FLASHING_CELL_DEFINITION_SUSPEND = "FLASHING_CELL_DEFINITION_SUSPEND";
|
|
20
20
|
/**
|
|
21
|
-
* @ReduxAction Flashing
|
|
21
|
+
* @ReduxAction Flashing Cell Definition is un-suspended, or activated
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const FLASHING_CELL_DEFINITION_UNSUSPEND = "FLASHING_CELL_DEFINITION_UNSUSPEND";
|
|
24
24
|
/**
|
|
25
|
-
* @ReduxAction Flashing
|
|
25
|
+
* @ReduxAction Flashing Cell Module is ready
|
|
26
26
|
*/
|
|
27
27
|
export declare const FLASHING_CELL_READY = "FLASHING_CELL_READY";
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const FLASHING_CELL_DEFINITION_SET = "FLASHING_CELL_DEFINITION_SET";
|
|
29
29
|
export interface FlashingCellDefinitionAction extends Redux.Action {
|
|
30
30
|
flashingCellDefinition: FlashingCellDefinition;
|
|
31
31
|
}
|
|
@@ -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:
|