@adaptabletools/adaptable 14.1.0 → 15.0.0-canary.0

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 (71) hide show
  1. package/bundle.cjs.js +177 -177
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableOptions/ChartingOptions.d.ts +6 -0
  6. package/src/Api/ChartingApi.d.ts +7 -8
  7. package/src/Api/DashboardApi.d.ts +4 -6
  8. package/src/Api/Events/ChartChanged.d.ts +30 -1
  9. package/src/Api/Events/DashboardChanged.d.ts +8 -0
  10. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  11. package/src/Api/Implementation/ChartingApiImpl.js +3 -0
  12. package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -1
  13. package/src/Api/Implementation/DashboardApiImpl.js +3 -18
  14. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +2 -0
  15. package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
  16. package/src/Api/Implementation/ThemeApiImpl.js +4 -1
  17. package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
  18. package/src/Api/Internal/DashboardInternalApi.js +28 -3
  19. package/src/Api/Internal/ExportInternalApi.d.ts +1 -0
  20. package/src/Api/Internal/ExportInternalApi.js +6 -0
  21. package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
  22. package/src/Api/Internal/LayoutInternalApi.js +7 -0
  23. package/src/Api/StyledColumnApi.d.ts +10 -0
  24. package/src/Redux/ActionsReducers/AlertRedux.d.ts +14 -0
  25. package/src/Redux/ActionsReducers/AlertRedux.js +23 -1
  26. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +14 -0
  27. package/src/Redux/ActionsReducers/CustomSortRedux.js +23 -1
  28. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +15 -1
  29. package/src/Redux/ActionsReducers/FlashingCellRedux.js +23 -1
  30. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  31. package/src/Redux/ActionsReducers/FormatColumnRedux.js +26 -1
  32. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +14 -0
  33. package/src/Redux/ActionsReducers/PlusMinusRedux.js +23 -1
  34. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +70 -0
  35. package/src/Redux/ActionsReducers/ScheduleRedux.js +112 -2
  36. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +14 -0
  37. package/src/Redux/ActionsReducers/ShortcutRedux.js +23 -1
  38. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +14 -0
  39. package/src/Redux/ActionsReducers/StyledColumnRedux.js +23 -1
  40. package/src/Redux/ActionsReducers/utils.d.ts +2 -0
  41. package/src/Redux/ActionsReducers/utils.js +20 -2
  42. package/src/Redux/Store/AdaptableStore.js +45 -4
  43. package/src/Strategy/AlertModule.js +2 -0
  44. package/src/Strategy/CustomSortModule.d.ts +2 -0
  45. package/src/Strategy/CustomSortModule.js +2 -0
  46. package/src/Strategy/FlashingCellModule.js +2 -0
  47. package/src/Strategy/FormatColumnModule.js +2 -0
  48. package/src/Strategy/PlusMinusModule.js +2 -0
  49. package/src/Strategy/ShortcutModule.js +2 -0
  50. package/src/Strategy/StyledColumnModule.js +2 -0
  51. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  52. package/src/Utilities/Services/AlertService.d.ts +2 -0
  53. package/src/Utilities/Services/AlertService.js +6 -0
  54. package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -0
  55. package/src/Utilities/license/hashing.js +1 -1
  56. package/src/Utilities/logDeprecation.d.ts +1 -1
  57. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +2 -2
  58. package/src/View/Charting/ShowChartButton.js +3 -2
  59. package/src/View/Charting/useChartingElements.js +6 -5
  60. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -1
  61. package/src/View/Export/ExportSelector.js +1 -0
  62. package/src/View/Export/ExportViewPanel.js +1 -0
  63. package/src/View/Export/ReportExportDropdown.js +1 -0
  64. package/src/View/Theme/ThemePopup.d.ts +0 -3
  65. package/src/View/Theme/ThemePopup.js +1 -9
  66. package/src/View/Theme/ThemeViewPanel.js +4 -3
  67. package/src/metamodel/adaptable.metamodel.d.ts +36 -0
  68. package/src/metamodel/adaptable.metamodel.js +1 -1
  69. package/src/types.d.ts +2 -2
  70. package/version.d.ts +1 -1
  71. package/version.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "14.1.0",
3
+ "version": "15.0.0-canary.0",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1,2 +1,2 @@
1
- declare const _default: 1675404426294;
1
+ declare const _default: 1675776314787;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1675404426294;
3
+ exports.default = 1675776314787;
@@ -12,6 +12,12 @@ export interface ChartingOptions {
12
12
  * Locations to display saved Charts
13
13
  */
14
14
  chartContainers?: ChartContainer[];
15
+ /**
16
+ * Name of the ag-grid window container.
17
+ *
18
+ * @default 'Ag Grid Window'
19
+ */
20
+ agGridContainerName?: string;
15
21
  }
16
22
  /**
17
23
  * Describes Location to display an AG Grid Chart
@@ -1,12 +1,6 @@
1
1
  import { ChartModel, ChartRef } from '@ag-grid-community/core';
2
2
  import { ChartContainer, ChartDefinition } from '../types';
3
- export interface ChartingOpenState {
4
- charts: {
5
- chartDefinition: ChartDefinition;
6
- isOpen: boolean;
7
- containerName: string | null;
8
- }[];
9
- }
3
+ import { ChartingOpenState } from './Events/ChartChanged';
10
4
  /**
11
5
  * Provides run-time access to Charting Module and related State
12
6
  */
@@ -63,8 +57,8 @@ export interface ChartingApi {
63
57
  closeChartDefinition(chartDefinition: ChartDefinition): void;
64
58
  /**
65
59
  * Displays a Chart; if Chart is already open, 2nd Chart is not opened
66
- *
67
60
  * @param chartDefinition Chart Definition to show
61
+ * @param container Container in which to display the Chart
68
62
  */
69
63
  showChartDefinitionOnce(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
70
64
  /**
@@ -72,6 +66,11 @@ export interface ChartingApi {
72
66
  * @param chartDefinition Chart Definition to edit
73
67
  */
74
68
  editChartDefinition(chartDefinition: ChartDefinition): void;
69
+ /**
70
+ * Marks chart as readonly
71
+ * @param chartDefinition charting definition
72
+ */
73
+ setMakeReadOnly(chartDefinition: ChartDefinition): void;
75
74
  /**
76
75
  * Add new Chart Definition
77
76
  * @param chartDefinition Chart Definition to add
@@ -114,12 +114,6 @@ export interface DashboardApi {
114
114
  * @param tabName the tab to check
115
115
  */
116
116
  getTabByName(tabName: string): DashboardTab;
117
- /**
118
- * Has a custom toolbar become visible or
119
- * @param dashboardChangedInfo Info raised by Dashboard Changed Event
120
- * @param customToolbarName Custom toolbar to check
121
- */
122
- hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
123
117
  /**
124
118
  * Is Dashboard Collapsed
125
119
  */
@@ -155,4 +149,8 @@ export interface DashboardApi {
155
149
  * @deprecated internal method, will be removed in next major release
156
150
  */
157
151
  fireDashboardChangedEvent(trigger: string, oldState: DashboardState, newState: DashboardState): void;
152
+ /**
153
+ * @deprecated use instead the information which is passed in the `DashboardChanged` event payload
154
+ */
155
+ hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
158
156
  }
@@ -1,8 +1,37 @@
1
- import { ChartingOpenState } from '../../types';
1
+ import { ChartDefinition } from '../../types';
2
2
  import { BaseEventInfo } from './BaseEventInfo';
3
3
  /**
4
4
  * Info used in Chart Changed Event
5
5
  */
6
6
  export interface ChartChangedInfo extends BaseEventInfo {
7
+ /**
8
+ * Details of Open Charts
9
+ */
7
10
  chartingOpenState: ChartingOpenState;
8
11
  }
12
+ /**
13
+ * Currently opened Charts
14
+ */
15
+ export interface ChartingOpenState {
16
+ /**
17
+ * Displayed Charts
18
+ */
19
+ charts: ChartDisplayedInfo[];
20
+ }
21
+ /**
22
+ * Defines a Displayed Chart
23
+ */
24
+ export interface ChartDisplayedInfo {
25
+ /**
26
+ * Definition of the Chart
27
+ */
28
+ chartDefinition: ChartDefinition;
29
+ /**
30
+ * Whether Chart is Open
31
+ */
32
+ isOpen: boolean;
33
+ /**
34
+ * Container where Chart is displayed
35
+ */
36
+ containerName: string | null;
37
+ }
@@ -16,4 +16,12 @@ export interface DashboardChangedInfo extends BaseEventInfo {
16
16
  * Current Dashboard State
17
17
  */
18
18
  newDashboardState: DashboardState;
19
+ /**
20
+ * Check if given Toolbar was just changed to visible state
21
+ */
22
+ isToolbarStateChangedToVisible(toolbarName: string): boolean;
23
+ /**
24
+ * Check if given Toolbar was just changed to hidden state
25
+ */
26
+ isToolbarStateChangedToHidden(toolbarName: string): boolean;
19
27
  }
@@ -30,4 +30,5 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
30
30
  }[];
31
31
  };
32
32
  getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
33
+ setMakeReadOnly(chartDefinition: ChartDefinition): void;
33
34
  }
@@ -110,5 +110,8 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
110
110
  return containerElement.contains(chartRef.chartElement);
111
111
  })) !== null && _c !== void 0 ? _c : null);
112
112
  }
113
+ setMakeReadOnly(chartDefinition) {
114
+ this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: true })));
115
+ }
113
116
  }
114
117
  exports.ChartingApiImpl = ChartingApiImpl;
@@ -38,7 +38,6 @@ export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
38
38
  showDashboardPopup(): void;
39
39
  openDashboardSettingsPanel(): void;
40
40
  hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
41
- private isToolbarInActiveTab;
42
41
  isDashboardCollapsed(): boolean;
43
42
  isDashboardExpanded(): boolean;
44
43
  isDashboardFloating(): boolean;
@@ -126,8 +126,9 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
126
126
  this.showModulePopup(ModuleConstants.DashboardModuleId);
127
127
  }
128
128
  hasCustomToolbarChanged(dashboardChangedInfo, customToolbarName) {
129
- const visibleInNewState = this.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.newDashboardState);
130
- const visibleInOldState = this.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.oldDashboardState);
129
+ (0, logDeprecation_1.logDeprecation)('DashboardApi', 'hasCustomToolbarChanged', null, 'Use instead the information provided in the DashboardChanged event.');
130
+ const visibleInNewState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.newDashboardState);
131
+ const visibleInOldState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.oldDashboardState);
131
132
  if (visibleInNewState && !visibleInOldState) {
132
133
  return 'visible';
133
134
  }
@@ -136,22 +137,6 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
136
137
  }
137
138
  return 'none';
138
139
  }
139
- isToolbarInActiveTab(toolbarName, dashboardState) {
140
- var _a;
141
- if (!dashboardState) {
142
- return false;
143
- }
144
- const tabIndex = dashboardState.ActiveTabIndex;
145
- if (tabIndex != undefined) {
146
- if ((dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs) && ((_a = dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs) === null || _a === void 0 ? void 0 : _a.length) > 0) {
147
- const newTab = dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs[tabIndex];
148
- if (newTab && newTab.Toolbars) {
149
- return newTab.Toolbars.find((c) => c == toolbarName) != undefined;
150
- }
151
- }
152
- }
153
- return false;
154
- }
155
140
  isDashboardCollapsed() {
156
141
  return this.getDashboardState().IsCollapsed;
157
142
  }
@@ -29,4 +29,6 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
29
29
  hasPercentBarStyle(columnId: string): boolean;
30
30
  hasGradientStyle(columnId: string): boolean;
31
31
  canDisplaySparklines(): boolean;
32
+ suspendStyledColumn(styledColumn: StyledColumn): void;
33
+ unSuspendStyledColumn(styledColumn: StyledColumn): void;
32
34
  }
@@ -101,5 +101,11 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
101
101
  canDisplaySparklines() {
102
102
  return this.adaptable.canDisplaySparklines();
103
103
  }
104
+ suspendStyledColumn(styledColumn) {
105
+ this.dispatchAction(StyledColumnRedux.StyledColumnSuspend(styledColumn));
106
+ }
107
+ unSuspendStyledColumn(styledColumn) {
108
+ this.dispatchAction(StyledColumnRedux.StyledColumnUnSuspend(styledColumn));
109
+ }
104
110
  }
105
111
  exports.StyledColumnApiImpl = StyledColumnApiImpl;
@@ -6,6 +6,7 @@ const ThemeRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/The
6
6
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
9
+ const themes_1 = require("../../themes");
9
10
  class ThemeApiImpl extends ApiBase_1.ApiBase {
10
11
  getThemeState() {
11
12
  return this.getAdaptableState().Theme;
@@ -36,10 +37,12 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
36
37
  var _a;
37
38
  const themes = (_a = this.getAdaptableState().Theme.SystemThemes) !== null && _a !== void 0 ? _a : [];
38
39
  return themes.map((theme) => {
40
+ var _a, _b;
39
41
  if (typeof theme === 'string') {
42
+ const description = (_b = (_a = themes_1.StaticThemes.find((staticTheme) => staticTheme.Name === theme)) === null || _a === void 0 ? void 0 : _a.Description) !== null && _b !== void 0 ? _b : theme;
40
43
  return {
41
44
  Name: theme,
42
- Description: theme,
45
+ Description: description,
43
46
  };
44
47
  }
45
48
  return theme;
@@ -5,4 +5,5 @@ export declare class DashboardInternalApi extends ApiBase {
5
5
  * Fires Dashboard Changed Event
6
6
  */
7
7
  fireDashboardChangedEvent(trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState): void;
8
+ isToolbarInActiveTab(toolbarName: string, dashboardState: DashboardState): boolean;
8
9
  }
@@ -9,18 +9,43 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
9
9
  * Fires Dashboard Changed Event
10
10
  */
11
11
  fireDashboardChangedEvent(trigger, oldDashboardState, newDashboardState) {
12
- // it's called synchronously by DASHBOARD_SET_ACTIVE_TAB & DASHBOARD_SET_IS_COLLAPSED,
13
- // both firing the same events, thus this function being called twice;
14
- // so we debounced to only get the latest call
12
+ const isToolbarStateChangedToVisible = (toolbarName) => {
13
+ const visibleInNewState = this.isToolbarInActiveTab(toolbarName, newDashboardState);
14
+ const visibleInOldState = this.isToolbarInActiveTab(toolbarName, oldDashboardState);
15
+ return visibleInNewState && !visibleInOldState;
16
+ };
17
+ const isToolbarStateChangedToHidden = (toolbarName) => {
18
+ const visibleInNewState = this.isToolbarInActiveTab(toolbarName, newDashboardState);
19
+ const visibleInOldState = this.isToolbarInActiveTab(toolbarName, oldDashboardState);
20
+ return visibleInOldState && !visibleInNewState;
21
+ };
15
22
  const dashboardChangedInfo = {
16
23
  adaptableApi: this.adaptable.api,
17
24
  actionName: trigger,
18
25
  oldDashboardState,
19
26
  newDashboardState,
27
+ isToolbarStateChangedToVisible,
28
+ isToolbarStateChangedToHidden,
20
29
  };
21
30
  if (!(0, isEqual_1.default)(oldDashboardState, newDashboardState)) {
22
31
  this.adaptable.api.eventApi.emitSync('DashboardChanged', dashboardChangedInfo);
23
32
  }
24
33
  }
34
+ isToolbarInActiveTab(toolbarName, dashboardState) {
35
+ var _a;
36
+ if (!dashboardState) {
37
+ return false;
38
+ }
39
+ const tabIndex = dashboardState.ActiveTabIndex;
40
+ if (tabIndex != undefined) {
41
+ if ((dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs) && ((_a = dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs) === null || _a === void 0 ? void 0 : _a.length) > 0) {
42
+ const newTab = dashboardState === null || dashboardState === void 0 ? void 0 : dashboardState.Tabs[tabIndex];
43
+ if (newTab && newTab.Toolbars) {
44
+ return newTab.Toolbars.find((c) => c == toolbarName) != undefined;
45
+ }
46
+ }
47
+ }
48
+ return false;
49
+ }
25
50
  }
26
51
  exports.DashboardInternalApi = DashboardInternalApi;
@@ -16,4 +16,5 @@ export declare class ExportInternalApi extends ApiBase {
16
16
  isVisualDataExportInProgress(): boolean;
17
17
  isDateCellExportedAsFormattedValue(): boolean;
18
18
  getCellExportFormatType(columnDataType: AdaptableColumnDataType): DataFormatType;
19
+ isDestinationEnabled(destination: string): boolean;
19
20
  }
@@ -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;
@@ -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;
@@ -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
@@ -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
  }