@adaptabletools/adaptable 14.1.0 → 15.0.0-canary.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.
Files changed (115) hide show
  1. package/bundle.cjs.js +200 -215
  2. package/package.json +2 -2
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +42 -42
  6. package/src/AdaptableOptions/ActionOptions.d.ts +5 -5
  7. package/src/AdaptableOptions/ChartingOptions.d.ts +6 -0
  8. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  9. package/src/Api/ChartingApi.d.ts +12 -8
  10. package/src/Api/ColumnApi.d.ts +3 -3
  11. package/src/Api/DashboardApi.d.ts +4 -6
  12. package/src/Api/Events/ActionRowSubmitted.d.ts +4 -4
  13. package/src/Api/Events/ChartChanged.d.ts +30 -1
  14. package/src/Api/Events/DashboardChanged.d.ts +8 -0
  15. package/src/Api/Events/GridDataChanged.d.ts +2 -2
  16. package/src/Api/FilterApi.d.ts +2 -2
  17. package/src/Api/FinanceApi.d.ts +9 -9
  18. package/src/Api/FormatColumnApi.d.ts +6 -6
  19. package/src/Api/FreeTextColumnApi.d.ts +3 -3
  20. package/src/Api/GridApi.d.ts +28 -28
  21. package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -0
  22. package/src/Api/Implementation/ChartingApiImpl.js +6 -0
  23. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -3
  24. package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -1
  25. package/src/Api/Implementation/DashboardApiImpl.js +3 -18
  26. package/src/Api/Implementation/FilterApiImpl.d.ts +2 -2
  27. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -6
  28. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +3 -3
  29. package/src/Api/Implementation/GridApiImpl.d.ts +29 -29
  30. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +2 -0
  31. package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
  32. package/src/Api/Implementation/ThemeApiImpl.js +4 -1
  33. package/src/Api/Internal/ActionInternalApi.d.ts +3 -3
  34. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
  35. package/src/Api/Internal/AlertInternalApi.d.ts +3 -3
  36. package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
  37. package/src/Api/Internal/DashboardInternalApi.js +28 -3
  38. package/src/Api/Internal/ExportInternalApi.d.ts +1 -0
  39. package/src/Api/Internal/ExportInternalApi.js +6 -0
  40. package/src/Api/Internal/FilterInternalApi.d.ts +2 -2
  41. package/src/Api/Internal/FormatColumnInternalApi.d.ts +7 -7
  42. package/src/Api/Internal/GridInternalApi.d.ts +4 -4
  43. package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
  44. package/src/Api/Internal/LayoutInternalApi.js +7 -0
  45. package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -3
  46. package/src/Api/StyledColumnApi.d.ts +10 -0
  47. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +3 -4
  48. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
  49. package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +2 -2
  50. package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
  51. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -2
  52. package/src/PredefinedConfig/Selection/GridRow.d.ts +2 -2
  53. package/src/Redux/ActionsReducers/AlertRedux.d.ts +14 -0
  54. package/src/Redux/ActionsReducers/AlertRedux.js +23 -1
  55. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +14 -0
  56. package/src/Redux/ActionsReducers/CustomSortRedux.js +23 -1
  57. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +15 -1
  58. package/src/Redux/ActionsReducers/FlashingCellRedux.js +23 -1
  59. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  60. package/src/Redux/ActionsReducers/FormatColumnRedux.js +26 -1
  61. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -3
  62. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +14 -0
  63. package/src/Redux/ActionsReducers/PlusMinusRedux.js +23 -1
  64. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +70 -0
  65. package/src/Redux/ActionsReducers/ScheduleRedux.js +112 -2
  66. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +14 -0
  67. package/src/Redux/ActionsReducers/ShortcutRedux.js +23 -1
  68. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +14 -0
  69. package/src/Redux/ActionsReducers/StyledColumnRedux.js +23 -1
  70. package/src/Redux/ActionsReducers/utils.d.ts +2 -0
  71. package/src/Redux/ActionsReducers/utils.js +20 -2
  72. package/src/Redux/Store/AdaptableStore.js +45 -4
  73. package/src/Strategy/AlertModule.js +2 -0
  74. package/src/Strategy/CustomSortModule.d.ts +2 -0
  75. package/src/Strategy/CustomSortModule.js +2 -0
  76. package/src/Strategy/FlashingCellModule.js +2 -0
  77. package/src/Strategy/FormatColumnModule.js +2 -0
  78. package/src/Strategy/PlusMinusModule.js +2 -0
  79. package/src/Strategy/ShortcutModule.js +2 -0
  80. package/src/Strategy/StyledColumnModule.js +2 -0
  81. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  82. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
  83. package/src/Utilities/Interface/Preview.d.ts +2 -2
  84. package/src/Utilities/ObjectFactory.d.ts +2 -2
  85. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +2 -2
  86. package/src/Utilities/Services/AlertService.d.ts +2 -0
  87. package/src/Utilities/Services/AlertService.js +6 -0
  88. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
  89. package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -0
  90. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
  91. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
  92. package/src/Utilities/Services/Interface/IReportService.d.ts +3 -3
  93. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  94. package/src/Utilities/Services/ReportService.d.ts +4 -4
  95. package/src/Utilities/license/hashing.js +1 -1
  96. package/src/Utilities/logDeprecation.d.ts +1 -1
  97. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +2 -2
  98. package/src/View/Charting/ShowChartButton.js +3 -2
  99. package/src/View/Charting/useChartingElements.js +6 -5
  100. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -1
  101. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  102. package/src/View/Export/ExportSelector.js +1 -0
  103. package/src/View/Export/ExportViewPanel.js +1 -0
  104. package/src/View/Export/ReportExportDropdown.js +1 -0
  105. package/src/View/Theme/ThemePopup.d.ts +0 -3
  106. package/src/View/Theme/ThemePopup.js +1 -9
  107. package/src/View/Theme/ThemeViewPanel.js +4 -3
  108. package/src/agGrid/ActionColumnRenderer.js +1 -0
  109. package/src/agGrid/Adaptable.d.ts +41 -41
  110. package/src/agGrid/Adaptable.js +13 -11
  111. package/src/metamodel/adaptable.metamodel.d.ts +36 -0
  112. package/src/metamodel/adaptable.metamodel.js +1 -1
  113. package/src/types.d.ts +2 -2
  114. package/version.d.ts +1 -1
  115. package/version.js +1 -1
@@ -120,5 +120,11 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
120
120
  return 'rawValue';
121
121
  }
122
122
  }
123
+ isDestinationEnabled(destination) {
124
+ if (destination === 'Table' && this.getLayoutApi().internalApi.isLayoutGrouped()) {
125
+ return false;
126
+ }
127
+ return true;
128
+ }
123
129
  }
124
130
  exports.ExportInternalApi = ExportInternalApi;
@@ -3,7 +3,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
5
  import { ColumnFilter } from '../../PredefinedConfig/Common/ColumnFilter';
6
- import { RowNode } from '@ag-grid-community/core';
6
+ import { IRowNode } from '@ag-grid-community/core';
7
7
  import { LayoutColumnFilterAction } from '../../Redux/ActionsReducers/LayoutRedux';
8
8
  import * as Redux from 'redux';
9
9
  export declare class FilterInternalApi extends ApiBase {
@@ -38,7 +38,7 @@ export declare class FilterInternalApi extends ApiBase {
38
38
  * @param columnFilter Column Filter to use
39
39
  * @param node Row Node to evaluate
40
40
  */
41
- evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
41
+ evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
42
42
  /**
43
43
  * Checks if the filter action should trigger grid filtering.
44
44
  *
@@ -1,6 +1,6 @@
1
1
  import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope, FormatColumn, StringFormatterOptions } from '../../types';
2
2
  import { ApiBase } from '../Implementation/ApiBase';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  export declare class FormatColumnInternalApi extends ApiBase {
5
5
  /**
6
6
  * Retrieves all Format Columns in Adaptable State with the `Style` property set
@@ -56,21 +56,21 @@ export declare class FormatColumnInternalApi extends ApiBase {
56
56
  * @param customDisplayFormatterContext context that includes value to format
57
57
  * @param options formatter options
58
58
  */
59
- getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
59
+ getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
60
60
  /**
61
61
  * Format value according to format options.
62
62
  *
63
63
  * @param value context that includes value to format
64
64
  * @param options formatter options
65
65
  */
66
- getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
66
+ getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
67
67
  /**
68
68
  * Format value according to format options.
69
69
  *
70
70
  * @param customDisplayFormatterContext context that includes value to format
71
71
  * @param options formatter options
72
72
  */
73
- getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
73
+ getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
74
74
  private applyCustomFormatters;
75
75
  /**
76
76
  * Returns all Predicates appropriate for the given Scope
@@ -85,7 +85,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
85
85
  * @param params
86
86
  */
87
87
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
88
- node: RowNode;
88
+ node: IRowNode;
89
89
  value: any;
90
90
  }): boolean;
91
91
  private evaluatePredicate;
@@ -98,7 +98,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
98
98
  * @param params
99
99
  */
100
100
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
101
- node: RowNode;
101
+ node: IRowNode;
102
102
  value: any;
103
103
  }): FormatColumn[];
104
104
  /**
@@ -109,7 +109,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
109
109
  * @param params
110
110
  */
111
111
  getMostRelevantFormatColumnForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
112
- node: RowNode;
112
+ node: IRowNode;
113
113
  value: any;
114
114
  }): FormatColumn | undefined;
115
115
  /**
@@ -1,6 +1,6 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
5
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
6
6
  import { SelectedCellInfo } from '../../PredefinedConfig/Selection/SelectedCellInfo';
@@ -19,7 +19,7 @@ export declare class GridInternalApi extends ApiBase {
19
19
  /**
20
20
  * Fires Grid Data Changed Event - when a row has changed in AG Grid
21
21
  */
22
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
22
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
23
23
  /**
24
24
  * Gets all distinct display values in the Column with the given ColumnId
25
25
  * @param columnId Column to check
@@ -58,13 +58,13 @@ export declare class GridInternalApi extends ApiBase {
58
58
  * @param columnId Column to check
59
59
  * @param skipRowNode optional RowNode which should be skipped when collecting the distinct rawValues
60
60
  */
61
- getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
61
+ getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
62
62
  /**
63
63
  * Gets all distinct raw values in Column. Values are un-sorted.
64
64
  * @param columnId Column to check
65
65
  * @param skipRowNode optional RowNode which should be skipped when collecting the distinct rawValues
66
66
  */
67
- getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
67
+ getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
68
68
  /**
69
69
  * Gets all distinct visible raw values in the Column
70
70
  * @param columnId Column to check
@@ -45,4 +45,5 @@ export declare class LayoutInternalApi extends ApiBase {
45
45
  hasLayoutSpecificObjects(): boolean;
46
46
  isObjectAvailableInLayout(object: LayoutAssociatedObject, module: AdaptableModule, layout: Layout): boolean;
47
47
  showLayoutNotAssociatedObjects(): boolean;
48
+ isLayoutGrouped(layout?: Layout): boolean;
48
49
  }
@@ -158,5 +158,12 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
158
158
  showLayoutNotAssociatedObjects() {
159
159
  return this.getAdaptableState().System.ShowLayoutNotAssociatedObjects;
160
160
  }
161
+ isLayoutGrouped(layout) {
162
+ var _a;
163
+ if (!layout) {
164
+ layout = this.getLayoutApi().getCurrentLayout();
165
+ }
166
+ return ((_a = layout === null || layout === void 0 ? void 0 : layout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) > 0;
167
+ }
161
168
  }
162
169
  exports.LayoutInternalApi = LayoutInternalApi;
@@ -1,7 +1,7 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { CellColorRange, ColumnComparison, NumericStyledColumn, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
4
- import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
4
+ import { IRowNode } from '@ag-grid-community/core';
5
5
  export declare class StyledColumnInternalApi extends ApiBase {
6
6
  getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
7
7
  getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
@@ -11,7 +11,7 @@ export declare class StyledColumnInternalApi extends ApiBase {
11
11
  * @param rowNode current Row Node
12
12
  * @param cellValue current Cell Value
13
13
  */
14
- getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
14
+ getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: IRowNode, cellValue: any): number;
15
15
  /**
16
16
  * Returns last range that matches the cell value.
17
17
  *
@@ -27,7 +27,7 @@ export declare class StyledColumnInternalApi extends ApiBase {
27
27
  * @param rowNode current Row Node
28
28
  * @param cellValue current Cell Value
29
29
  */
30
- getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
30
+ getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: IRowNode, cellValue: any): number;
31
31
  /**
32
32
  * Returns the smallest number in a Range
33
33
  * @param range Range to check
@@ -47,6 +47,16 @@ export interface StyledColumnApi {
47
47
  * @param styledColumn
48
48
  */
49
49
  addStyledColumn(styledColumn: StyledColumn): void;
50
+ /**
51
+ * Suspends an active Styled Column
52
+ * @param styledColumn
53
+ */
54
+ suspendStyledColumn(styledColumn: StyledColumn): void;
55
+ /**
56
+ * Activates a suspended Styled Column
57
+ * @param styledColumn
58
+ */
59
+ unSuspendStyledColumn(styledColumn: StyledColumn): void;
50
60
  /**
51
61
  * Returns first Styled Column that contains checkbox style
52
62
  * @param columnId column to check
@@ -1,5 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/core';
2
- import { InitialGroupOrderComparatorParams } from '@ag-grid-community/core/dist/cjs/es5/entities/iCallbackParams';
1
+ import { InitialGroupOrderComparatorParams, IRowNode } from '@ag-grid-community/core';
3
2
  /**
4
3
  * Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
5
4
  */
@@ -15,9 +14,9 @@ valueB: any,
15
14
  /**
16
15
  * First Row Node to compare
17
16
  */
18
- nodeA?: RowNode,
17
+ nodeA?: IRowNode,
19
18
  /**
20
19
  * Second Row Node to compare
21
20
  */
22
- nodeB?: RowNode) => number;
21
+ nodeB?: IRowNode) => number;
23
22
  export declare type AdaptableNodeComparerFunction = (params: InitialGroupOrderComparatorParams) => number;
@@ -1,7 +1,7 @@
1
1
  import { AdaptableScope } from './AdaptableScope';
2
2
  import { AdaptableColumn, AdaptableColumnDataType } from './AdaptableColumn';
3
3
  import { AdaptableApi, AdaptableIcon, ColumnFilter } from '../../types';
4
- import { RowNode } from '@ag-grid-community/core';
4
+ import { IRowNode } from '@ag-grid-community/core';
5
5
  /**
6
6
  * Predicate object used by AdapTableQL - essentially a boolean function
7
7
  */
@@ -92,7 +92,7 @@ export interface PredicateDefHandlerParams {
92
92
  /**
93
93
  * AG Grid Row node which contains the cell
94
94
  */
95
- node: RowNode;
95
+ node: IRowNode;
96
96
  /**
97
97
  * Any inputs required to perform evaluation
98
98
  */
@@ -1,4 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { AdaptableColumn } from './AdaptableColumn';
3
3
  /**
4
4
  * Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row
@@ -27,7 +27,7 @@ export interface CellDataChangedInfo {
27
27
  /**
28
28
  * AG Grid RowNode that contains the cell
29
29
  */
30
- rowNode?: RowNode;
30
+ rowNode?: IRowNode;
31
31
  /**
32
32
  * Data in the Row
33
33
  */
@@ -4,7 +4,7 @@ import { AdaptableColumn } from './AdaptableColumn';
4
4
  import { AdaptableModule } from './Types';
5
5
  import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
6
6
  import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
7
- import { Column, RowNode } from '@ag-grid-community/core';
7
+ import { Column, IRowNode } from '@ag-grid-community/core';
8
8
  import { AdaptableIcon, BaseContext } from '../../types';
9
9
  /**
10
10
  * Menu item used by Adaptable in both Column and Context Menus
@@ -116,7 +116,7 @@ export interface ContextMenuContext extends BaseContext {
116
116
  /**
117
117
  * Current AG Grid row node
118
118
  */
119
- rowNode: RowNode;
119
+ rowNode: IRowNode;
120
120
  /**
121
121
  * Whether current AG Grid row node is grouped
122
122
  */
@@ -1,4 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { AdaptableColumn } from '../Common/AdaptableColumn';
3
3
  /**
4
4
  * Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value
@@ -27,5 +27,5 @@ export interface GridCell {
27
27
  /**
28
28
  * AG Grid Row Node that holds the cell
29
29
  */
30
- rowNode: RowNode;
30
+ rowNode: IRowNode;
31
31
  }
@@ -1,4 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  /**
3
3
  * Detailed information about a Row in AdapTable
4
4
  */
@@ -18,7 +18,7 @@ export interface GridRow {
18
18
  /**
19
19
  * AG Grid Row Node object for the Row
20
20
  */
21
- rowNode?: RowNode;
21
+ rowNode?: IRowNode;
22
22
  }
23
23
  /**
24
24
  * Provides meta data about a Row in Adaptable
@@ -20,6 +20,14 @@ export declare const ALERT_DEFINITION_SUSPEND = "ALERT_DEFINITION_SUSPEND";
20
20
  * @ReduxAction Alert Definition is unsuspended, or activated
21
21
  */
22
22
  export declare const ALERT_DEFINITION_UNSUSPEND = "ALERT_DEFINITION_UNSUSPEND";
23
+ /**
24
+ * @ReduxAction All Alert Definitions are suspended
25
+ */
26
+ export declare const ALERT_DEFINITION_SUSPEND_ALL = "ALERT_DEFINITION_SUSPEND_ALL";
27
+ /**
28
+ * @ReduxAction All Alert Definitions are unsuspended, or activated
29
+ */
30
+ export declare const ALERT_DEFINITION_UNSUSPEND_ALL = "ALERT_DEFINITION_UNSUSPEND_ALL";
23
31
  export declare const ALERT_CLEAR_FLASHING_CELLS = "ALERT_CLEAR_FLASHING_CELLS";
24
32
  /**
25
33
  * @ReduxAction Alert Module is ready
@@ -38,6 +46,10 @@ export interface AlertDefinitionSuspendAction extends AlertDefinitionAction {
38
46
  }
39
47
  export interface AlertDefinitionUnSuspendAction extends AlertDefinitionAction {
40
48
  }
49
+ export interface AlertDefinitionSuspendAllAction extends Redux.Action {
50
+ }
51
+ export interface AlertDefinitionUnSuspendAllAction extends Redux.Action {
52
+ }
41
53
  export interface AlertClearFlashingCellAction extends Redux.Action {
42
54
  }
43
55
  export interface AlertReadyAction extends Redux.Action {
@@ -48,6 +60,8 @@ export declare const AlertDefinitionEdit: (alertDefinition: AlertDefinition) =>
48
60
  export declare const AlertDefinitionDelete: (alertDefinition: AlertDefinition) => AlertDefinitionDeleteAction;
49
61
  export declare const AlertDefinitionSuspend: (alertDefinition: AlertDefinition) => AlertDefinitionSuspendAction;
50
62
  export declare const AlertDefinitionUnSuspend: (alertDefinition: AlertDefinition) => AlertDefinitionUnSuspendAction;
63
+ export declare const AlertDefinitionSuspendAll: () => AlertDefinitionSuspendAllAction;
64
+ export declare const AlertDefinitionUnSuspendAll: () => AlertDefinitionUnSuspendAllAction;
51
65
  export declare const AlertReady: (alertState: AlertState) => AlertReadyAction;
52
66
  export declare const AlertClearFlashingCells: () => AlertClearFlashingCellAction;
53
67
  export declare const AlertReducer: Redux.Reducer<AlertState>;
@@ -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.ALERT_DEFINITION_UNSUSPEND = exports.ALERT_DEFINITION_SUSPEND = exports.ALERT_DEFINITION_DELETE = exports.ALERT_DEFINITION_EDIT = exports.ALERT_DEFINITION_ADD = void 0;
3
+ exports.AlertReducer = exports.AlertClearFlashingCells = exports.AlertReady = exports.AlertDefinitionUnSuspendAll = exports.AlertDefinitionSuspendAll = exports.AlertDefinitionUnSuspend = exports.AlertDefinitionSuspend = exports.AlertDefinitionDelete = exports.AlertDefinitionEdit = exports.AlertDefinitionAdd = exports.ALERT_READY = exports.ALERT_CLEAR_FLASHING_CELLS = exports.ALERT_DEFINITION_UNSUSPEND_ALL = exports.ALERT_DEFINITION_SUSPEND_ALL = 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"));
@@ -25,6 +25,14 @@ exports.ALERT_DEFINITION_SUSPEND = 'ALERT_DEFINITION_SUSPEND';
25
25
  * @ReduxAction Alert Definition is unsuspended, or activated
26
26
  */
27
27
  exports.ALERT_DEFINITION_UNSUSPEND = 'ALERT_DEFINITION_UNSUSPEND';
28
+ /**
29
+ * @ReduxAction All Alert Definitions are suspended
30
+ */
31
+ exports.ALERT_DEFINITION_SUSPEND_ALL = 'ALERT_DEFINITION_SUSPEND_ALL';
32
+ /**
33
+ * @ReduxAction All Alert Definitions are unsuspended, or activated
34
+ */
35
+ exports.ALERT_DEFINITION_UNSUSPEND_ALL = 'ALERT_DEFINITION_UNSUSPEND_ALL';
28
36
  exports.ALERT_CLEAR_FLASHING_CELLS = 'ALERT_CLEAR_FLASHING_CELLS';
29
37
  /**
30
38
  * @ReduxAction Alert Module is ready
@@ -55,6 +63,14 @@ const AlertDefinitionUnSuspend = (alertDefinition) => ({
55
63
  alertDefinition,
56
64
  });
57
65
  exports.AlertDefinitionUnSuspend = AlertDefinitionUnSuspend;
66
+ const AlertDefinitionSuspendAll = () => ({
67
+ type: exports.ALERT_DEFINITION_SUSPEND_ALL,
68
+ });
69
+ exports.AlertDefinitionSuspendAll = AlertDefinitionSuspendAll;
70
+ const AlertDefinitionUnSuspendAll = () => ({
71
+ type: exports.ALERT_DEFINITION_UNSUSPEND_ALL,
72
+ });
73
+ exports.AlertDefinitionUnSuspendAll = AlertDefinitionUnSuspendAll;
58
74
  const AlertReady = (alertState) => ({
59
75
  type: exports.ALERT_READY,
60
76
  alertState,
@@ -94,6 +110,12 @@ const AlertReducer = (state = initialState, action) => {
94
110
  case exports.ALERT_DEFINITION_UNSUSPEND: {
95
111
  return Object.assign(Object.assign({}, state), { AlertDefinitions: (0, utils_1.changeIsSuspendInList)(action.alertDefinition, state.AlertDefinitions, false) });
96
112
  }
113
+ case exports.ALERT_DEFINITION_SUSPEND_ALL: {
114
+ return Object.assign(Object.assign({}, state), { AlertDefinitions: (0, utils_1.suspendAllInList)(state.AlertDefinitions) });
115
+ }
116
+ case exports.ALERT_DEFINITION_UNSUSPEND_ALL: {
117
+ return Object.assign(Object.assign({}, state), { AlertDefinitions: (0, utils_1.unsuspendAllInList)(state.AlertDefinitions) });
118
+ }
97
119
  case exports.ALERT_CLEAR_FLASHING_CELLS: {
98
120
  return {
99
121
  AlertDefinitions: state.AlertDefinitions,
@@ -20,6 +20,14 @@ export declare const CUSTOM_SORT_SUSPEND = "CUSTOM_SORT_SUSPEND";
20
20
  * @ReduxAction A Custom Sort has been unsuspended (activated)
21
21
  */
22
22
  export declare const CUSTOM_SORT_UNSUSPEND = "CUSTOM_SORT_UNSUSPEND";
23
+ /**
24
+ * @ReduxAction Suspend all Custom Sorts
25
+ */
26
+ export declare const CUSTOM_SORT_SUSPEND_ALL = "CUSTOM_SORT_SUSPEND_ALL";
27
+ /**
28
+ * @ReduxAction Unsuspend all Custom Sorts
29
+ */
30
+ export declare const CUSTOM_SORT_UNSUSPEND_ALL = "CUSTOM_SORT_UNSUSPEND_ALL";
23
31
  /**
24
32
  * @ReduxAction Custom Sort Module is ready
25
33
  */
@@ -37,6 +45,10 @@ export interface CustomSortSuspendAction extends CustomSortAction {
37
45
  }
38
46
  export interface CustomSortUnSuspendAction extends CustomSortAction {
39
47
  }
48
+ export interface CustomSortSuspendAllAction extends Redux.Action {
49
+ }
50
+ export interface CustomSortUnSuspendAllAction extends Redux.Action {
51
+ }
40
52
  export interface CustomSortReadyAction extends Redux.Action {
41
53
  customSortState: CustomSortState;
42
54
  }
@@ -45,5 +57,7 @@ export declare const CustomSortEdit: (customSort: CustomSort) => CustomSortEditA
45
57
  export declare const CustomSortDelete: (customSort: CustomSort) => CustomSortDeleteAction;
46
58
  export declare const CustomSortSuspend: (customSort: CustomSort) => CustomSortDeleteAction;
47
59
  export declare const CustomSortUnSuspend: (customSort: CustomSort) => CustomSortDeleteAction;
60
+ export declare const CustomSortSuspendAll: () => CustomSortSuspendAllAction;
61
+ export declare const CustomSortUnSuspendAll: () => CustomSortUnSuspendAllAction;
48
62
  export declare const CustomSortReady: (customSortState: CustomSortState) => CustomSortReadyAction;
49
63
  export declare const CustomSortReducer: Redux.Reducer<CustomSortState>;
@@ -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.CUSTOM_SORT_UNSUSPEND = exports.CUSTOM_SORT_SUSPEND = exports.CUSTOM_SORT_DELETE = exports.CUSTOM_SORT_EDIT = exports.CUSTOM_SORT_ADD = void 0;
3
+ exports.CustomSortReducer = exports.CustomSortReady = exports.CustomSortUnSuspendAll = exports.CustomSortSuspendAll = exports.CustomSortUnSuspend = exports.CustomSortSuspend = exports.CustomSortDelete = exports.CustomSortEdit = exports.CustomSortAdd = exports.CUSTOM_SORT_READY = exports.CUSTOM_SORT_UNSUSPEND_ALL = exports.CUSTOM_SORT_SUSPEND_ALL = 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"));
@@ -25,6 +25,14 @@ exports.CUSTOM_SORT_SUSPEND = 'CUSTOM_SORT_SUSPEND';
25
25
  * @ReduxAction A Custom Sort has been unsuspended (activated)
26
26
  */
27
27
  exports.CUSTOM_SORT_UNSUSPEND = 'CUSTOM_SORT_UNSUSPEND';
28
+ /**
29
+ * @ReduxAction Suspend all Custom Sorts
30
+ */
31
+ exports.CUSTOM_SORT_SUSPEND_ALL = 'CUSTOM_SORT_SUSPEND_ALL';
32
+ /**
33
+ * @ReduxAction Unsuspend all Custom Sorts
34
+ */
35
+ exports.CUSTOM_SORT_UNSUSPEND_ALL = 'CUSTOM_SORT_UNSUSPEND_ALL';
28
36
  /**
29
37
  * @ReduxAction Custom Sort Module is ready
30
38
  */
@@ -54,6 +62,14 @@ const CustomSortUnSuspend = (customSort) => ({
54
62
  customSort,
55
63
  });
56
64
  exports.CustomSortUnSuspend = CustomSortUnSuspend;
65
+ const CustomSortSuspendAll = () => ({
66
+ type: exports.CUSTOM_SORT_SUSPEND_ALL,
67
+ });
68
+ exports.CustomSortSuspendAll = CustomSortSuspendAll;
69
+ const CustomSortUnSuspendAll = () => ({
70
+ type: exports.CUSTOM_SORT_UNSUSPEND_ALL,
71
+ });
72
+ exports.CustomSortUnSuspendAll = CustomSortUnSuspendAll;
57
73
  const CustomSortReady = (customSortState) => ({
58
74
  type: exports.CUSTOM_SORT_READY,
59
75
  customSortState,
@@ -86,6 +102,12 @@ const CustomSortReducer = (state = initialState, action) => {
86
102
  case exports.CUSTOM_SORT_UNSUSPEND: {
87
103
  return Object.assign(Object.assign({}, state), { CustomSorts: (0, utils_1.changeIsSuspendInList)(action.customSort, state.CustomSorts, false) });
88
104
  }
105
+ case exports.CUSTOM_SORT_SUSPEND_ALL: {
106
+ return Object.assign(Object.assign({}, state), { CustomSorts: (0, utils_1.suspendAllInList)(state.CustomSorts) });
107
+ }
108
+ case exports.CUSTOM_SORT_UNSUSPEND_ALL: {
109
+ return Object.assign(Object.assign({}, state), { CustomSorts: (0, utils_1.unsuspendAllInList)(state.CustomSorts) });
110
+ }
89
111
  default:
90
112
  return state;
91
113
  }
@@ -21,6 +21,14 @@ export declare const FLASHING_CELL_DEFINITION_SUSPEND = "FLASHING_CELL_DEFINITIO
21
21
  * @ReduxAction Flashing Cell Definition is unsuspended, or activated
22
22
  */
23
23
  export declare const FLASHING_CELL_DEFINITION_UNSUSPEND = "FLASHING_CELL_DEFINITION_UNSUSPEND";
24
+ /**
25
+ * @ReduxAction All Flashing Cell Definitions are suspended
26
+ */
27
+ export declare const FLASHING_CELL_DEFINITION_SUSPEND_ALL = "FLASHING_CELL_DEFINITION_SUSPEND_ALL";
28
+ /**
29
+ * @ReduxAction All Flashing Cell Definitions are unsuspended, or activated
30
+ */
31
+ export declare const FLASHING_CELL_DEFINITION_UNSUSPEND_ALL = "FLASHING_CELL_DEFINITION_UNSUSPEND_ALL";
24
32
  /**
25
33
  * @ReduxAction Flashing Cell Module is ready
26
34
  */
@@ -42,6 +50,10 @@ export interface FlashingCellDefinitionSuspendAction extends FlashingCellDefinit
42
50
  }
43
51
  export interface FlashingCellDefinitionUnSuspendAction extends FlashingCellDefinitionAction {
44
52
  }
53
+ export interface FlashingCellDefinitionSuspendAllAction extends Redux.Action {
54
+ }
55
+ export interface FlashingCellDefinitionUnSuspendAllAction extends Redux.Action {
56
+ }
45
57
  export interface FlashingCellReadyAction extends Redux.Action {
46
58
  alertState: FlashingCellState;
47
59
  }
@@ -50,6 +62,8 @@ export declare const FlashingCellDefinitionSet: (flashingCellDefinitions: Flashi
50
62
  export declare const FlashingCellDefinitionEdit: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellDefinitionEditAction;
51
63
  export declare const FlashingCellDefinitionDelete: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellDefinitionDeleteAction;
52
64
  export declare const FlashingCellDefinitionSuspend: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellDefinitionEditAction;
53
- export declare const FlashingCellDefinitionUnSuspend: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellDefinitionEditAction;
65
+ export declare const FlashingCellDefinitionUnSuspend: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellDefinitionSuspendAction;
66
+ export declare const FlashingCellDefinitionSuspendAll: () => FlashingCellDefinitionSuspendAllAction;
67
+ export declare const FlashingCellDefinitionUnSuspendAll: () => FlashingCellDefinitionUnSuspendAllAction;
54
68
  export declare const FlashingCellReady: (alertState: FlashingCellState) => FlashingCellReadyAction;
55
69
  export declare const FlashingCellReducer: Redux.Reducer<FlashingCellState>;
@@ -1,6 +1,6 @@
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.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;
3
+ exports.FlashingCellReducer = exports.FlashingCellReady = exports.FlashingCellDefinitionUnSuspendAll = exports.FlashingCellDefinitionSuspendAll = 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_ALL = exports.FLASHING_CELL_DEFINITION_SUSPEND_ALL = 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");
@@ -24,6 +24,14 @@ exports.FLASHING_CELL_DEFINITION_SUSPEND = 'FLASHING_CELL_DEFINITION_SUSPEND';
24
24
  * @ReduxAction Flashing Cell Definition is unsuspended, or activated
25
25
  */
26
26
  exports.FLASHING_CELL_DEFINITION_UNSUSPEND = 'FLASHING_CELL_DEFINITION_UNSUSPEND';
27
+ /**
28
+ * @ReduxAction All Flashing Cell Definitions are suspended
29
+ */
30
+ exports.FLASHING_CELL_DEFINITION_SUSPEND_ALL = 'FLASHING_CELL_DEFINITION_SUSPEND_ALL';
31
+ /**
32
+ * @ReduxAction All Flashing Cell Definitions are unsuspended, or activated
33
+ */
34
+ exports.FLASHING_CELL_DEFINITION_UNSUSPEND_ALL = 'FLASHING_CELL_DEFINITION_UNSUSPEND_ALL';
27
35
  /**
28
36
  * @ReduxAction Flashing Cell Module is ready
29
37
  */
@@ -59,6 +67,14 @@ const FlashingCellDefinitionUnSuspend = (flashingCellDefinition) => ({
59
67
  flashingCellDefinition,
60
68
  });
61
69
  exports.FlashingCellDefinitionUnSuspend = FlashingCellDefinitionUnSuspend;
70
+ const FlashingCellDefinitionSuspendAll = () => ({
71
+ type: exports.FLASHING_CELL_DEFINITION_SUSPEND_ALL,
72
+ });
73
+ exports.FlashingCellDefinitionSuspendAll = FlashingCellDefinitionSuspendAll;
74
+ const FlashingCellDefinitionUnSuspendAll = () => ({
75
+ type: exports.FLASHING_CELL_DEFINITION_UNSUSPEND_ALL,
76
+ });
77
+ exports.FlashingCellDefinitionUnSuspendAll = FlashingCellDefinitionUnSuspendAll;
62
78
  const FlashingCellReady = (alertState) => ({
63
79
  type: exports.FLASHING_CELL_READY,
64
80
  alertState,
@@ -97,6 +113,12 @@ const FlashingCellReducer = (state = initialState, action) => {
97
113
  case exports.FLASHING_CELL_DEFINITION_UNSUSPEND: {
98
114
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: (0, utils_1.changeIsSuspendInList)(action.flashingCellDefinition, state.FlashingCellDefinitions, false) });
99
115
  }
116
+ case exports.FLASHING_CELL_DEFINITION_SUSPEND_ALL: {
117
+ return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: (0, utils_1.suspendAllInList)(state.FlashingCellDefinitions) });
118
+ }
119
+ case exports.FLASHING_CELL_DEFINITION_UNSUSPEND_ALL: {
120
+ return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: (0, utils_1.unsuspendAllInList)(state.FlashingCellDefinitions) });
121
+ }
100
122
  default:
101
123
  return state;
102
124
  }
@@ -28,10 +28,18 @@ export declare const FORMAT_COLUMN_READY = "FORMAT_COLUMN_READY";
28
28
  * @ReduxAction FormatColumn Module is suspended
29
29
  */
30
30
  export declare const FORMAT_COLUMN_SUSPEND = "FORMAT_COLUMN_SUSPEND";
31
+ /**
32
+ * @ReduxAction Suspend all FormatColumn Modules
33
+ */
34
+ export declare const FORMAT_COLUMN_SUSPEND_ALL = "FORMAT_COLUMN_SUSPEND_ALL";
31
35
  /**
32
36
  * @ReduxAction FormatColumn Module is unsuspended, or activated
33
37
  */
34
38
  export declare const FORMAT_COLUMN_UNSUSPEND = "FORMAT_COLUMN_UNSUSPEND";
39
+ /**
40
+ * @ReduxAction FormatColumn Module is unsuspended, or activated
41
+ */
42
+ export declare const FORMAT_COLUMN_UNSUSPEND_ALL = "FORMAT_COLUMN_UNSUSPEND_ALL";
35
43
  export interface FormatColumnAction extends Redux.Action {
36
44
  formatColumn: FormatColumn;
37
45
  }
@@ -49,6 +57,10 @@ export interface FormatColumnSuspendAction extends FormatColumnAction {
49
57
  }
50
58
  export interface FormatColumnUnSuspendAction extends FormatColumnAction {
51
59
  }
60
+ export interface FormatColumnSuspendAllAction extends Redux.Action {
61
+ }
62
+ export interface FormatColumnUnSuspendAllAction extends Redux.Action {
63
+ }
52
64
  export interface FormatColumnReadyAction extends Redux.Action {
53
65
  formatColumnState: FormatColumnState;
54
66
  }
@@ -59,5 +71,7 @@ export declare const FormatColumnMoveUp: (formatColumn: FormatColumn) => FormatC
59
71
  export declare const FormatColumnMoveDown: (formatColumn: FormatColumn) => FormatColumnAddAction;
60
72
  export declare const FormatColumnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
61
73
  export declare const FormatColumnUnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
74
+ export declare const FormatColumnSuspendAll: () => FormatColumnSuspendAllAction;
75
+ export declare const FormatColumnUnSuspendAll: () => FormatColumnUnSuspendAllAction;
62
76
  export declare const FormatColumnReady: (formatColumnState: FormatColumnState) => FormatColumnReadyAction;
63
77
  export declare const FormatColumnReducer: Redux.Reducer<FormatColumnState>;
@@ -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.FormatColumnMoveDown = exports.FormatColumnMoveUp = 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_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = void 0;
3
+ exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspendAll = exports.FormatColumnSuspendAll = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND_ALL = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND_ALL = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = 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"));
@@ -33,10 +33,18 @@ exports.FORMAT_COLUMN_READY = 'FORMAT_COLUMN_READY';
33
33
  * @ReduxAction FormatColumn Module is suspended
34
34
  */
35
35
  exports.FORMAT_COLUMN_SUSPEND = 'FORMAT_COLUMN_SUSPEND';
36
+ /**
37
+ * @ReduxAction Suspend all FormatColumn Modules
38
+ */
39
+ exports.FORMAT_COLUMN_SUSPEND_ALL = 'FORMAT_COLUMN_SUSPEND_ALL';
36
40
  /**
37
41
  * @ReduxAction FormatColumn Module is unsuspended, or activated
38
42
  */
39
43
  exports.FORMAT_COLUMN_UNSUSPEND = 'FORMAT_COLUMN_UNSUSPEND';
44
+ /**
45
+ * @ReduxAction FormatColumn Module is unsuspended, or activated
46
+ */
47
+ exports.FORMAT_COLUMN_UNSUSPEND_ALL = 'FORMAT_COLUMN_UNSUSPEND_ALL';
40
48
  const FormatColumnAdd = (formatColumn) => ({
41
49
  type: exports.FORMAT_COLUMN_ADD,
42
50
  formatColumn,
@@ -72,6 +80,14 @@ const FormatColumnUnSuspend = (formatColumn) => ({
72
80
  formatColumn,
73
81
  });
74
82
  exports.FormatColumnUnSuspend = FormatColumnUnSuspend;
83
+ const FormatColumnSuspendAll = () => ({
84
+ type: exports.FORMAT_COLUMN_SUSPEND_ALL,
85
+ });
86
+ exports.FormatColumnSuspendAll = FormatColumnSuspendAll;
87
+ const FormatColumnUnSuspendAll = () => ({
88
+ type: exports.FORMAT_COLUMN_UNSUSPEND_ALL,
89
+ });
90
+ exports.FormatColumnUnSuspendAll = FormatColumnUnSuspendAll;
75
91
  const FormatColumnReady = (formatColumnState) => ({
76
92
  type: exports.FORMAT_COLUMN_READY,
77
93
  formatColumnState,
@@ -103,6 +119,15 @@ const FormatColumnReducer = (state = initialState, action) => {
103
119
  case exports.FORMAT_COLUMN_UNSUSPEND: {
104
120
  return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, false) });
105
121
  }
122
+ case exports.FORMAT_COLUMN_SUSPEND_ALL: {
123
+ return Object.assign(Object.assign({}, state), { FormatColumns: state.FormatColumns.map((formatColumn) => (Object.assign(Object.assign({}, formatColumn), { IsSuspended: true }))) });
124
+ }
125
+ case exports.FORMAT_COLUMN_SUSPEND_ALL: {
126
+ return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.suspendAllInList)(state.FormatColumns) });
127
+ }
128
+ case exports.FORMAT_COLUMN_UNSUSPEND_ALL: {
129
+ return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.unsuspendAllInList)(state.FormatColumns) });
130
+ }
106
131
  case exports.FORMAT_COLUMN_MOVE_UP: {
107
132
  const index = state.FormatColumns.findIndex((formatColumn) => formatColumn.Uuid === action.formatColumn.Uuid);
108
133
  let swapIndex = index - 1;