@adaptabletools/adaptable-cjs 22.0.0-canary.5 → 22.0.0-canary.7

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 (122) hide show
  1. package/index.css +0 -3
  2. package/index.css.map +1 -1
  3. package/package.json +1 -1
  4. package/src/AdaptableOptions/CustomSortOptions.d.ts +1 -2
  5. package/src/AdaptableState/AlertState.d.ts +6 -3
  6. package/src/AdaptableState/ChartingState.d.ts +5 -5
  7. package/src/AdaptableState/Common/AdaptableObject.d.ts +4 -9
  8. package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
  9. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
  10. package/src/AdaptableState/Common/ColumnHighlightInfo.js +2 -0
  11. package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
  12. package/src/AdaptableState/Common/NamedObject.js +2 -0
  13. package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
  14. package/src/AdaptableState/Common/Schedule.d.ts +7 -3
  15. package/src/AdaptableState/Common/SuspendableObject.d.ts +10 -0
  16. package/src/AdaptableState/Common/SuspendableObject.js +2 -0
  17. package/src/AdaptableState/CustomSortState.d.ts +6 -2
  18. package/src/AdaptableState/DashboardState.d.ts +3 -3
  19. package/src/AdaptableState/ExportState.d.ts +3 -3
  20. package/src/AdaptableState/FlashingCellState.d.ts +6 -2
  21. package/src/AdaptableState/FormatColumnState.d.ts +6 -2
  22. package/src/AdaptableState/InternalState.d.ts +2 -0
  23. package/src/AdaptableState/LayoutState.d.ts +3 -3
  24. package/src/AdaptableState/NamedQueryState.d.ts +3 -3
  25. package/src/AdaptableState/PlusMinusState.d.ts +6 -2
  26. package/src/AdaptableState/ShortcutState.d.ts +6 -2
  27. package/src/AdaptableState/StyledColumnState.d.ts +1 -1
  28. package/src/AdaptableState/ThemeState.d.ts +3 -3
  29. package/src/Api/AlertApi.d.ts +6 -0
  30. package/src/Api/CustomSortApi.d.ts +6 -0
  31. package/src/Api/FlashingCellApi.d.ts +6 -0
  32. package/src/Api/FormatColumnApi.d.ts +10 -4
  33. package/src/Api/GridApi.d.ts +18 -3
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
  35. package/src/Api/Implementation/AlertApiImpl.js +3 -0
  36. package/src/Api/Implementation/ChartingApiImpl.js +2 -2
  37. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -0
  38. package/src/Api/Implementation/CustomSortApiImpl.js +3 -0
  39. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  40. package/src/Api/Implementation/FlashingCellApiImpl.js +3 -0
  41. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
  42. package/src/Api/Implementation/FormatColumnApiImpl.js +6 -5
  43. package/src/Api/Implementation/GridApiImpl.d.ts +4 -0
  44. package/src/Api/Implementation/GridApiImpl.js +14 -0
  45. package/src/Api/Implementation/LayoutApiImpl.js +1 -1
  46. package/src/Api/Implementation/NamedQueryApiImpl.js +2 -2
  47. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
  48. package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
  49. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  50. package/src/Api/Implementation/ScheduleApiImpl.js +3 -0
  51. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  52. package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
  53. package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
  54. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  55. package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
  56. package/src/Api/Internal/LayoutInternalApi.js +1 -1
  57. package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
  58. package/src/Api/PlusMinusApi.d.ts +6 -0
  59. package/src/Api/ScheduleApi.d.ts +6 -0
  60. package/src/Api/ShortcutApi.d.ts +6 -0
  61. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
  62. package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
  63. package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
  64. package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
  65. package/src/Redux/Store/AdaptableStore.js +39 -16
  66. package/src/Strategy/BulkUpdateModule.js +8 -8
  67. package/src/Strategy/PlusMinusModule.js +1 -1
  68. package/src/Strategy/QuickSearchModule.js +1 -1
  69. package/src/Strategy/SettingsPanelModule.js +11 -7
  70. package/src/Strategy/SmartEditModule.js +10 -10
  71. package/src/Utilities/Services/DataService.js +1 -1
  72. package/src/Utilities/Services/Fdc3Service.js +4 -4
  73. package/src/Utilities/Services/ModuleService.js +1 -3
  74. package/src/Utilities/Services/ThemeService.js +2 -6
  75. package/src/Utilities/Services/ValidationService.js +1 -1
  76. package/src/Utilities/logDeprecation.js +3 -4
  77. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +2 -2
  78. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  79. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
  80. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  81. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  82. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  83. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  84. package/src/View/Components/CellPopup/index.js +1 -1
  85. package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
  86. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
  87. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
  88. package/src/View/Components/NewScopeComponent.js +3 -3
  89. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
  90. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -3
  91. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  92. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  93. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  94. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
  95. package/src/View/Layout/LayoutViewPanel.js +1 -1
  96. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  97. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  98. package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
  99. package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
  100. package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
  101. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  102. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +5 -5
  103. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +1 -1
  104. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +11 -11
  105. package/src/View/StateManagement/handleExportState.js +1 -1
  106. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  107. package/src/agGrid/AdaptableAgGrid.js +47 -51
  108. package/src/agGrid/AgGridAdapter.js +8 -8
  109. package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
  110. package/src/agGrid/AgGridColumnAdapter.js +15 -4
  111. package/src/agGrid/AgGridExportAdapter.js +5 -5
  112. package/src/agGrid/AgGridThemeAdapter.js +2 -2
  113. package/src/components/OverlayTrigger/index.js +1 -1
  114. package/src/components/Select/Select.js +77 -14
  115. package/src/env.js +2 -2
  116. package/src/metamodel/adaptable.metamodel.d.ts +25 -18
  117. package/src/metamodel/adaptable.metamodel.js +1 -1
  118. package/src/migration/AdaptableUpgradeHelper.js +2 -2
  119. package/src/migration/VersionUpgrade17.js +4 -4
  120. package/src/migration/VersionUpgrade20.js +4 -4
  121. package/src/types.d.ts +2 -2
  122. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -44,8 +44,8 @@ class NamedQueryInternalApi extends ApiBase_1.ApiBase {
44
44
  if (namedQueryReferences.length) {
45
45
  const alert = {
46
46
  alertType: 'generic',
47
- header: 'Named Query could not be deleted',
48
- message: `It is still referenced in the following modules: ${namedQueryReferences.join(', ')}`,
47
+ header: 'Named Query',
48
+ message: `This Named Query cannot be deleted. It is still referenced by: ${namedQueryReferences.join(', ')}.`,
49
49
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
50
50
  };
51
51
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -60,8 +60,8 @@ class NamedQueryInternalApi extends ApiBase_1.ApiBase {
60
60
  if (namedQueryReferences.length) {
61
61
  const alert = {
62
62
  alertType: 'generic',
63
- header: 'Named Query could not be renamed',
64
- message: `It is currently referenced in the following modules: ${namedQueryReferences.join(', ')}`,
63
+ header: 'Named Query',
64
+ message: `This Named Query cannot be renamed. It is currently referenced by: ${namedQueryReferences.join(', ')}.`,
65
65
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
66
66
  };
67
67
  this.getAlertApi().displayAdaptableAlertNotification(alert);
@@ -20,6 +20,12 @@ export interface PlusMinusApi {
20
20
  * @returns plus minus rule
21
21
  */
22
22
  getPlusMinusById(id: PlusMinusNudge['Uuid'], config?: LayoutExtendedConfig): PlusMinusNudge;
23
+ /**
24
+ * Retrieves a Plus Minus Nudge by its Name
25
+ * @param name Name of the Plus Minus Nudge
26
+ * @returns Plus Minus Nudge or undefined if not found
27
+ */
28
+ getPlusMinusNudgeByName(name: string): PlusMinusNudge | undefined;
23
29
  /**
24
30
  * Retrieves all active (not-suspended) Plus Minus Rules in Adaptable State with those with expressions first
25
31
  * @returns plus minus rules
@@ -23,6 +23,12 @@ export interface ScheduleApi {
23
23
  * @returns schedule
24
24
  */
25
25
  getScheduleById(id: BaseSchedule['Uuid'], config?: LayoutExtendedConfig): BaseSchedule;
26
+ /**
27
+ * Retrieves a Schedule by its Name
28
+ * @param name Name of the Schedule
29
+ * @returns Schedule or undefined if not found
30
+ */
31
+ getScheduleByName(name: string): BaseSchedule | undefined;
26
32
  /**
27
33
  * Retrieves all Reminder-based Schedules from Schedule State
28
34
  * @returns reminder schedules
@@ -19,6 +19,12 @@ export interface ShortcutApi {
19
19
  * @returns shortcut
20
20
  */
21
21
  getShortcutById(id: Shortcut['Uuid'], config?: LayoutExtendedConfig): Shortcut;
22
+ /**
23
+ * Retrieves a Shortcut by its Name
24
+ * @param name Name of the Shortcut
25
+ * @returns Shortcut or undefined if not found
26
+ */
27
+ getShortcutByName(name: string): Shortcut | undefined;
22
28
  /**
23
29
  * Gets all active (not-suspended) Shortcuts in Adaptable State
24
30
  * @returns shortcuts
@@ -1,5 +1,9 @@
1
1
  import { FormatColumnState, FormatColumn } from '../../AdaptableState/FormatColumnState';
2
2
  import * as Redux from 'redux';
3
+ /**
4
+ * @ReduxAction Many Format Columns have been added
5
+ */
6
+ export declare const FORMAT_COLUMN_ADD_BATCH = "FORMAT_COLUMN_ADD_BATCH";
3
7
  /**
4
8
  * @ReduxAction A Format Column has been added
5
9
  */
@@ -44,6 +48,9 @@ export declare const FORMAT_COLUMN_UNSUSPEND = "FORMAT_COLUMN_UNSUSPEND";
44
48
  * @ReduxAction FormatColumn Module is unsuspended, or activated
45
49
  */
46
50
  export declare const FORMAT_COLUMN_UNSUSPEND_ALL = "FORMAT_COLUMN_UNSUSPEND_ALL";
51
+ export interface FormatColumnAddBatchAction extends Redux.Action {
52
+ formatColumns: FormatColumn[];
53
+ }
47
54
  export interface FormatColumnAction extends Redux.Action {
48
55
  formatColumn: FormatColumn;
49
56
  }
@@ -70,6 +77,7 @@ export interface FormatColumnUnSuspendAllAction extends Redux.Action {
70
77
  export interface FormatColumnReadyAction extends Redux.Action {
71
78
  formatColumnState: FormatColumnState;
72
79
  }
80
+ export declare const FormatColumnsAdd: (formatColumns: FormatColumn[]) => FormatColumnAddBatchAction;
73
81
  export declare const FormatColumnAdd: (formatColumn: FormatColumn) => FormatColumnAddAction;
74
82
  export declare const FormatColumnEdit: (formatColumn: FormatColumn) => FormatColumnEditAction;
75
83
  export declare const FormatColumnDelete: (formatColumn: FormatColumn) => FormatColumnDeleteAction;
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspendAll = exports.FormatColumnSuspendAll = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDeleteAll = 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_ALL = 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.FormatColumnDeleteAll = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FormatColumnsAdd = 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_ALL = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = exports.FORMAT_COLUMN_ADD_BATCH = 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"));
7
7
  const utils_1 = require("./utils");
8
+ /**
9
+ * @ReduxAction Many Format Columns have been added
10
+ */
11
+ exports.FORMAT_COLUMN_ADD_BATCH = 'FORMAT_COLUMN_ADD_BATCH';
8
12
  /**
9
13
  * @ReduxAction A Format Column has been added
10
14
  */
@@ -49,6 +53,11 @@ exports.FORMAT_COLUMN_UNSUSPEND = 'FORMAT_COLUMN_UNSUSPEND';
49
53
  * @ReduxAction FormatColumn Module is unsuspended, or activated
50
54
  */
51
55
  exports.FORMAT_COLUMN_UNSUSPEND_ALL = 'FORMAT_COLUMN_UNSUSPEND_ALL';
56
+ const FormatColumnsAdd = (formatColumns) => ({
57
+ type: exports.FORMAT_COLUMN_ADD_BATCH,
58
+ formatColumns,
59
+ });
60
+ exports.FormatColumnsAdd = FormatColumnsAdd;
52
61
  const FormatColumnAdd = (formatColumn) => ({
53
62
  type: exports.FORMAT_COLUMN_ADD,
54
63
  formatColumn,
@@ -107,6 +116,13 @@ const initialState = {
107
116
  const FormatColumnReducer = (state = initialState, action) => {
108
117
  let formatColumns;
109
118
  switch (action.type) {
119
+ case exports.FORMAT_COLUMN_ADD_BATCH: {
120
+ const actionFormatColumns = action.formatColumns;
121
+ actionFormatColumns.forEach(AdaptableHelper_1.default.addAdaptableObjectPrimitives);
122
+ formatColumns = [].concat(state.FormatColumns);
123
+ formatColumns.push(...actionFormatColumns);
124
+ return { ...state, FormatColumns: formatColumns };
125
+ }
110
126
  case exports.FORMAT_COLUMN_ADD: {
111
127
  const actionFormatColumn = action.formatColumn;
112
128
  AdaptableHelper_1.default.addAdaptableObjectPrimitives(actionFormatColumn);
@@ -15,6 +15,7 @@ import { SelectedCellInfo } from '../../AdaptableState/Selection/SelectedCellInf
15
15
  import { SelectedRowInfo } from '../../AdaptableState/Selection/SelectedRowInfo';
16
16
  import { CellHighlightInfo, RowHighlightInfo, RowsHighlightInfo } from '../../types';
17
17
  import { IRowNode } from 'ag-grid-enterprise';
18
+ import { ColumnHighlightInfo } from '../../AdaptableState/Common/ColumnHighlightInfo';
18
19
  export declare const SET_COLUMNS = "SET_COLUMNS";
19
20
  export declare const SET_SELECTED_CELLS = "SET_SELECTED_CELLS";
20
21
  export declare const SET_SELECTED_ROWS = "SET_SELECTED_ROWS";
@@ -23,6 +24,9 @@ export declare const SET_DASHBOARD_MODULE_BUTTONS = "SET_DASHBOARD_MODULE_BUTTON
23
24
  export declare const HIGHLIGHT_CELL_ADD = "HIGHLIGHT_CELL_ADD";
24
25
  export declare const HIGHLIGHT_CELL_DELETE = "HIGHLIGHT_CELL_DELETE";
25
26
  export declare const HIGHLIGHT_CELL_DELETE_ALL = "HIGHLIGHT_CELL_DELETE_ALL";
27
+ export declare const HIGHLIGHT_COLUMN_ADD = "HIGHLIGHT_COLUMN_ADD";
28
+ export declare const HIGHLIGHT_COLUMN_DELETE = "HIGHLIGHT_COLUMN_DELETE";
29
+ export declare const HIGHLIGHT_COLUMN_DELETE_ALL = "HIGHLIGHT_COLUMN_DELETE_ALL";
26
30
  export declare const HIGHLIGHT_ROW_ADD = "HIGHLIGHT_ROW_ADD";
27
31
  export declare const HIGHLIGHT_ROWS_ADD = "HIGHLIGHT_ROWS_ADD";
28
32
  export declare const HIGHLIGHT_ROW_DELETE = "HIGHLIGHT_ROW_DELETE";
@@ -93,6 +97,14 @@ export interface HighlightCellDeleteAction extends Redux.Action {
93
97
  }
94
98
  export interface HighlightCellDeleteAllAction extends Redux.Action {
95
99
  }
100
+ export interface HighlightColumnAddAction extends Redux.Action {
101
+ columnHighlightInfo: ColumnHighlightInfo;
102
+ }
103
+ export interface HighlightColumnDeleteAction extends Redux.Action {
104
+ columnId: ColumnHighlightInfo['columnId'];
105
+ }
106
+ export interface HighlightColumnDeleteAllAction extends Redux.Action {
107
+ }
96
108
  export interface HighlightRowAddAction extends Redux.Action {
97
109
  rowHighlightInfo: RowHighlightInfo;
98
110
  }
@@ -121,6 +133,9 @@ export interface SystemExportEndAction extends Redux.Action {
121
133
  export declare const HighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => HighlightCellAddAction;
122
134
  export declare const HighlightCellDelete: (primaryKeyValue: CellHighlightInfo["primaryKeyValue"], columnId: CellHighlightInfo["columnId"]) => HighlightCellDeleteAction;
123
135
  export declare const HighlightCellDeleteAll: () => HighlightCellDeleteAllAction;
136
+ export declare const HighlightColumnAdd: (columnHighlightInfo: ColumnHighlightInfo) => HighlightColumnAddAction;
137
+ export declare const HighlightColumnDelete: (columnId: ColumnHighlightInfo["columnId"]) => HighlightColumnDeleteAction;
138
+ export declare const HighlightColumnDeleteAll: () => HighlightColumnDeleteAllAction;
124
139
  export declare const HighlightRowAdd: (rowHighlightInfo: RowHighlightInfo) => HighlightRowAddAction;
125
140
  export declare const HighlightRowsAdd: (rowsHighlightInfo: RowsHighlightInfo) => HighlightRowsAddAction;
126
141
  export declare const HighlightRowDelete: (primaryKeyValue: RowHighlightInfo["primaryKeyValue"]) => HighlightRowDeleteAction;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DASHBOARD_REFRESH = exports.LAYOUT_SHOW_NON_EXTENDED_OBJECTS = exports.DISABLE_DELETE_CONFIRMATION = exports.QUICK_FILTER_BAR_HIDE = exports.QUICK_FILTER_BAR_SHOW = exports.SETTINGS_PANEL_SET = exports.DATA_CHANGE_HISTORY_RESUME = exports.DATA_CHANGE_HISTORY_SUSPEND = exports.DATA_CHANGE_HISTORY_DISABLE = exports.DATA_CHANGE_HISTORY_ENABLE = exports.DATA_CHANGE_HISTORY_CLEAR_ROW = exports.DATA_CHANGE_HISTORY_UNDO = exports.DATA_CHANGE_HISTORY_ADD = exports.LICENSE_DISABLE_PERSISTENCE = exports.LICENSE_SHOW_WATERMARK = exports.CREATE_CELL_SUMMARY_INFO = exports.SET_CELL_SUMMARY_INFO = exports.CELL_SUMMARY_CHANGE_OPERATION = exports.CACHED_QUERY_ADD = exports.BULK_UPDATE_CHANGE_VALUE = exports.BULK_UPDATE_SET_PREVIEW = exports.BULK_UPDATE_SET_VALID_SELECTION = exports.BULK_UPDATE_CHECK_CELL_SELECTION = exports.SMART_EDIT_CHANGE_OPERATION = exports.SMART_EDIT_CHANGE_VALUE = exports.SMARTEDIT_SET_PREVIEW = exports.SMARTEDIT_SET_VALID_SELECTION = exports.SMARTEDIT_FETCH_PREVIEW = exports.SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.ALERT_REMOVE_ROW_HIGHLIGHT = exports.ALERT_REMOVE_CELL_HIGHLIGHT = exports.ALERT_DELETE_ALL = exports.ALERT_DELETE = exports.ALERT_ADD = exports.HIGHLIGHT_ROW_DELETE_ALL = exports.HIGHLIGHT_ROWS_DELETE = exports.HIGHLIGHT_ROW_DELETE = exports.HIGHLIGHT_ROWS_ADD = exports.HIGHLIGHT_ROW_ADD = exports.HIGHLIGHT_CELL_DELETE_ALL = exports.HIGHLIGHT_CELL_DELETE = exports.HIGHLIGHT_CELL_ADD = exports.SET_DASHBOARD_MODULE_BUTTONS = exports.SET_SETTINGS_PANEL_ITEMS = exports.SET_SELECTED_ROWS = exports.SET_SELECTED_CELLS = exports.SET_COLUMNS = void 0;
4
- exports.DataChangeHistoryEnable = exports.DataChangeHistoryClearRow = exports.DataChangeHistoryUndo = exports.DataChangeHistoryAdd = exports.LicenseDisablePersistence = exports.LicenseShowWatermark = exports.CellSummaryChangeOperation = exports.CachedQueryAdd = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SetCellSummaryInfo = exports.CreateCellSummaryInfo = exports.AdaptableAlertRemoveRowHighlight = exports.AdaptableAlertRemoveCellHighlight = exports.AdaptableAlertDeleteAll = exports.AdaptableAlertDelete = exports.AdaptableAlertAdd = exports.SetDasboardModuleButtons = exports.SetSettingsPanelItems = exports.SetSelectedRows = exports.SetSelectedCells = exports.SetColumns = exports.GridHighlightRowDeleteAll = exports.GridHighlightRowsDelete = exports.HighlightRowDelete = exports.HighlightRowsAdd = exports.HighlightRowAdd = exports.HighlightCellDeleteAll = exports.HighlightCellDelete = exports.HighlightCellAdd = exports.DATA_IMPORT_COMPLETED = exports.SUMMARY_ROW_SET = exports.CELL_POPUP_EDIT_FOCUSED_ENTITY = exports.CELL_POPUP_HIDE = exports.CELL_POPUP_SHOW = exports.SYSTEM_EXPORT_END = exports.SYSTEM_EXPORT_BEGIN = exports.SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.CHARTING_SET_CURRENT_CHART_MODELS = exports.DATA_SET_SELECT = void 0;
5
- exports.InternalReducer = exports.DataImportCompleted = exports.CommentsAndNotesFocusedEntitySelector = exports.CommentsAndNotesEditModeSelector = exports.CommentsAndNotesSelector = exports.QuickSearchFloatingVisibilitySelector = exports.DisableDeleteConfirmationSelector = exports.CellPopupHide = exports.RowSummarySet = exports.CellPopupEditFocusedEntity = exports.CellPopupShow = exports.QuickSearchFloatingVisibility = exports.SystemExportEnd = exports.SystemExportBegin = exports.DisableDeleteConfirmation = exports.ChartingCurrentChartModelsSelector = exports.ChartingSetCurrentChartModels = exports.DataSetSelect = exports.DashboardRefresh = exports.LayoutShowNonExtendedObjects = exports.QuickFilterBarHide = exports.QuickFilterBarShow = exports.SettingsPanelSet = exports.DataChangeHistoryResume = exports.DataChangeHistorySuspend = exports.DataChangeHistoryDisable = void 0;
3
+ exports.QUICK_FILTER_BAR_HIDE = exports.QUICK_FILTER_BAR_SHOW = exports.SETTINGS_PANEL_SET = exports.DATA_CHANGE_HISTORY_RESUME = exports.DATA_CHANGE_HISTORY_SUSPEND = exports.DATA_CHANGE_HISTORY_DISABLE = exports.DATA_CHANGE_HISTORY_ENABLE = exports.DATA_CHANGE_HISTORY_CLEAR_ROW = exports.DATA_CHANGE_HISTORY_UNDO = exports.DATA_CHANGE_HISTORY_ADD = exports.LICENSE_DISABLE_PERSISTENCE = exports.LICENSE_SHOW_WATERMARK = exports.CREATE_CELL_SUMMARY_INFO = exports.SET_CELL_SUMMARY_INFO = exports.CELL_SUMMARY_CHANGE_OPERATION = exports.CACHED_QUERY_ADD = exports.BULK_UPDATE_CHANGE_VALUE = exports.BULK_UPDATE_SET_PREVIEW = exports.BULK_UPDATE_SET_VALID_SELECTION = exports.BULK_UPDATE_CHECK_CELL_SELECTION = exports.SMART_EDIT_CHANGE_OPERATION = exports.SMART_EDIT_CHANGE_VALUE = exports.SMARTEDIT_SET_PREVIEW = exports.SMARTEDIT_SET_VALID_SELECTION = exports.SMARTEDIT_FETCH_PREVIEW = exports.SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.ALERT_REMOVE_ROW_HIGHLIGHT = exports.ALERT_REMOVE_CELL_HIGHLIGHT = exports.ALERT_DELETE_ALL = exports.ALERT_DELETE = exports.ALERT_ADD = exports.HIGHLIGHT_ROW_DELETE_ALL = exports.HIGHLIGHT_ROWS_DELETE = exports.HIGHLIGHT_ROW_DELETE = exports.HIGHLIGHT_ROWS_ADD = exports.HIGHLIGHT_ROW_ADD = exports.HIGHLIGHT_COLUMN_DELETE_ALL = exports.HIGHLIGHT_COLUMN_DELETE = exports.HIGHLIGHT_COLUMN_ADD = exports.HIGHLIGHT_CELL_DELETE_ALL = exports.HIGHLIGHT_CELL_DELETE = exports.HIGHLIGHT_CELL_ADD = exports.SET_DASHBOARD_MODULE_BUTTONS = exports.SET_SETTINGS_PANEL_ITEMS = exports.SET_SELECTED_ROWS = exports.SET_SELECTED_CELLS = exports.SET_COLUMNS = void 0;
4
+ exports.CellSummaryChangeOperation = exports.CachedQueryAdd = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SetCellSummaryInfo = exports.CreateCellSummaryInfo = exports.AdaptableAlertRemoveRowHighlight = exports.AdaptableAlertRemoveCellHighlight = exports.AdaptableAlertDeleteAll = exports.AdaptableAlertDelete = exports.AdaptableAlertAdd = exports.SetDasboardModuleButtons = exports.SetSettingsPanelItems = exports.SetSelectedRows = exports.SetSelectedCells = exports.SetColumns = exports.GridHighlightRowDeleteAll = exports.GridHighlightRowsDelete = exports.HighlightRowDelete = exports.HighlightRowsAdd = exports.HighlightRowAdd = exports.HighlightColumnDeleteAll = exports.HighlightColumnDelete = exports.HighlightColumnAdd = exports.HighlightCellDeleteAll = exports.HighlightCellDelete = exports.HighlightCellAdd = exports.DATA_IMPORT_COMPLETED = exports.SUMMARY_ROW_SET = exports.CELL_POPUP_EDIT_FOCUSED_ENTITY = exports.CELL_POPUP_HIDE = exports.CELL_POPUP_SHOW = exports.SYSTEM_EXPORT_END = exports.SYSTEM_EXPORT_BEGIN = exports.SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.CHARTING_SET_CURRENT_CHART_MODELS = exports.DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.LAYOUT_SHOW_NON_EXTENDED_OBJECTS = exports.DISABLE_DELETE_CONFIRMATION = void 0;
5
+ exports.InternalReducer = exports.DataImportCompleted = exports.CommentsAndNotesFocusedEntitySelector = exports.CommentsAndNotesEditModeSelector = exports.CommentsAndNotesSelector = exports.QuickSearchFloatingVisibilitySelector = exports.DisableDeleteConfirmationSelector = exports.CellPopupHide = exports.RowSummarySet = exports.CellPopupEditFocusedEntity = exports.CellPopupShow = exports.QuickSearchFloatingVisibility = exports.SystemExportEnd = exports.SystemExportBegin = exports.DisableDeleteConfirmation = exports.ChartingCurrentChartModelsSelector = exports.ChartingSetCurrentChartModels = exports.DataSetSelect = exports.DashboardRefresh = exports.LayoutShowNonExtendedObjects = exports.QuickFilterBarHide = exports.QuickFilterBarShow = exports.SettingsPanelSet = exports.DataChangeHistoryResume = exports.DataChangeHistorySuspend = exports.DataChangeHistoryDisable = exports.DataChangeHistoryEnable = exports.DataChangeHistoryClearRow = exports.DataChangeHistoryUndo = exports.DataChangeHistoryAdd = exports.LicenseDisablePersistence = exports.LicenseShowWatermark = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const ReduxConstants_1 = require("../../Utilities/Constants/ReduxConstants");
8
8
  const Enums_1 = require("../../AdaptableState/Common/Enums");
@@ -27,6 +27,10 @@ exports.SET_DASHBOARD_MODULE_BUTTONS = 'SET_DASHBOARD_MODULE_BUTTONS';
27
27
  exports.HIGHLIGHT_CELL_ADD = 'HIGHLIGHT_CELL_ADD';
28
28
  exports.HIGHLIGHT_CELL_DELETE = 'HIGHLIGHT_CELL_DELETE';
29
29
  exports.HIGHLIGHT_CELL_DELETE_ALL = 'HIGHLIGHT_CELL_DELETE_ALL';
30
+ // Column Highlight
31
+ exports.HIGHLIGHT_COLUMN_ADD = 'HIGHLIGHT_COLUMN_ADD';
32
+ exports.HIGHLIGHT_COLUMN_DELETE = 'HIGHLIGHT_COLUMN_DELETE';
33
+ exports.HIGHLIGHT_COLUMN_DELETE_ALL = 'HIGHLIGHT_COLUMN_DELETE_ALL';
30
34
  // Row Highlight
31
35
  exports.HIGHLIGHT_ROW_ADD = 'HIGHLIGHT_ROW_ADD';
32
36
  exports.HIGHLIGHT_ROWS_ADD = 'HIGHLIGHT_ROWS_ADD';
@@ -114,6 +118,20 @@ const HighlightCellDeleteAll = () => ({
114
118
  type: exports.HIGHLIGHT_CELL_DELETE_ALL,
115
119
  });
116
120
  exports.HighlightCellDeleteAll = HighlightCellDeleteAll;
121
+ const HighlightColumnAdd = (columnHighlightInfo) => ({
122
+ type: exports.HIGHLIGHT_COLUMN_ADD,
123
+ columnHighlightInfo: columnHighlightInfo,
124
+ });
125
+ exports.HighlightColumnAdd = HighlightColumnAdd;
126
+ const HighlightColumnDelete = (columnId) => ({
127
+ type: exports.HIGHLIGHT_COLUMN_DELETE,
128
+ columnId,
129
+ });
130
+ exports.HighlightColumnDelete = HighlightColumnDelete;
131
+ const HighlightColumnDeleteAll = () => ({
132
+ type: exports.HIGHLIGHT_COLUMN_DELETE_ALL,
133
+ });
134
+ exports.HighlightColumnDeleteAll = HighlightColumnDeleteAll;
117
135
  const HighlightRowAdd = (rowHighlightInfo) => ({
118
136
  type: exports.HIGHLIGHT_ROW_ADD,
119
137
  rowHighlightInfo: rowHighlightInfo,
@@ -419,6 +437,7 @@ const initialState = {
419
437
  SelectedCellInfo: null,
420
438
  SelectedRowInfo: null,
421
439
  CellHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
440
+ ColumnHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
422
441
  RowHighlightInfo: GeneralConstants_1.EMPTY_ARRAY,
423
442
  SettingsPanelModuleEntries: GeneralConstants_1.EMPTY_ARRAY,
424
443
  AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
@@ -518,6 +537,26 @@ const InternalReducer = (state = initialState, action) => {
518
537
  CellHighlightInfo: [],
519
538
  });
520
539
  }
540
+ case exports.HIGHLIGHT_COLUMN_ADD: {
541
+ const actionTypedAdd = action;
542
+ return Object.assign({}, state, {
543
+ ColumnHighlightInfo: [...state.ColumnHighlightInfo, actionTypedAdd.columnHighlightInfo],
544
+ });
545
+ }
546
+ case exports.HIGHLIGHT_COLUMN_DELETE: {
547
+ const actionTypedDelete = action;
548
+ const actionId = actionTypedDelete.columnId;
549
+ return Object.assign({}, state, {
550
+ ColumnHighlightInfo: state.ColumnHighlightInfo.filter((columnHighlightInfo) => {
551
+ return columnHighlightInfo.columnId !== actionId;
552
+ }),
553
+ });
554
+ }
555
+ case exports.HIGHLIGHT_COLUMN_DELETE_ALL: {
556
+ return Object.assign({}, state, {
557
+ ColumnHighlightInfo: [],
558
+ });
559
+ }
521
560
  case exports.HIGHLIGHT_ROW_ADD: {
522
561
  const actionTypedAdd = action;
523
562
  return Object.assign({}, state, {
@@ -260,7 +260,7 @@ class AdaptableStore {
260
260
  // END STATE LOAD
261
261
  this.loadStorageInProgress = false;
262
262
  }, (e) => {
263
- adaptable.api.consoleError('Failed to load previous Adaptable State : ', e);
263
+ adaptable.api.consoleError('Failed to load saved Adaptable state.', e);
264
264
  //for now i'm still initializing Adaptable even if loading state has failed....
265
265
  //we may revisit that later
266
266
  this.TheStore.dispatch((0, exports.InitState)());
@@ -269,7 +269,7 @@ class AdaptableStore {
269
269
  this.TheStore.dispatch(PopupRedux.PopupShowAlert({
270
270
  alertType: 'generic',
271
271
  header: 'Configuration',
272
- message: 'Error loading your configuration:' + e,
272
+ message: 'Failed to load your configuration: ' + e,
273
273
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
274
274
  }));
275
275
  }));
@@ -588,6 +588,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
588
588
  * Action: We set up all columns again
589
589
  */
590
590
  case QuickSearchRedux.QUICK_SEARCH_SET_CELL_MATCHING_STYLE:
591
+ case FormatColumnRedux.FORMAT_COLUMN_ADD_BATCH:
591
592
  case FormatColumnRedux.FORMAT_COLUMN_ADD:
592
593
  case FormatColumnRedux.FORMAT_COLUMN_EDIT:
593
594
  case FormatColumnRedux.FORMAT_COLUMN_DELETE:
@@ -752,6 +753,27 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
752
753
  });
753
754
  return ret;
754
755
  }
756
+ case InternalRedux.HIGHLIGHT_COLUMN_ADD: {
757
+ const actionTyped = action;
758
+ const ret = next(action);
759
+ const columnHighlightInfo = actionTyped.columnHighlightInfo;
760
+ adaptable.api.gridApi.refreshColumn(columnHighlightInfo.columnId);
761
+ return ret;
762
+ }
763
+ case InternalRedux.HIGHLIGHT_COLUMN_DELETE: {
764
+ const actionTyped = action;
765
+ const ret = next(action);
766
+ adaptable.api.gridApi.refreshColumn(actionTyped.columnId);
767
+ return ret;
768
+ }
769
+ case InternalRedux.HIGHLIGHT_COLUMN_DELETE_ALL: {
770
+ const columnHighlightInfos = middlewareAPI.getState().Internal.ColumnHighlightInfo;
771
+ const ret = next(action);
772
+ columnHighlightInfos.forEach((columnHighlightInfo) => {
773
+ adaptable.api.gridApi.refreshColumn(columnHighlightInfo.columnId);
774
+ });
775
+ return ret;
776
+ }
755
777
  case InternalRedux.HIGHLIGHT_ROW_ADD: {
756
778
  const actionTyped = action;
757
779
  const ret = next(action);
@@ -1299,7 +1321,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1299
1321
  const alert = {
1300
1322
  alertType: 'generic',
1301
1323
  header: 'Team Sharing',
1302
- message: "Couldn't get shared items: " + error.message,
1324
+ message: 'Failed to retrieve shared items: ' + error.message,
1303
1325
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1304
1326
  };
1305
1327
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1369,7 +1391,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1369
1391
  const alert = {
1370
1392
  alertType: 'generic',
1371
1393
  header: 'Team Sharing',
1372
- message: `Couldn't share ${adaptable.ModuleService.getModuleFriendlyName(Module)}, there is already an existing active share for it: ${existingActiveSharedEntity.Description}`,
1394
+ message: `Cannot share ${adaptable.ModuleService.getModuleFriendlyName(Module)} an active share already exists: ${existingActiveSharedEntity.Description}.`,
1373
1395
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1374
1396
  };
1375
1397
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1393,7 +1415,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1393
1415
  const alert = {
1394
1416
  alertType: 'generic',
1395
1417
  header: 'Team Sharing',
1396
- message: `${adaptable.ModuleService.getModuleFriendlyName(Module)} Shared Successfully`,
1418
+ message: `${adaptable.ModuleService.getModuleFriendlyName(Module)} shared successfully.`,
1397
1419
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
1398
1420
  };
1399
1421
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1404,7 +1426,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1404
1426
  const alert = {
1405
1427
  alertType: 'generic',
1406
1428
  header: 'Team Sharing',
1407
- message: "Couldn't share item: " + error.message,
1429
+ message: 'Failed to share item: ' + error.message,
1408
1430
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1409
1431
  };
1410
1432
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1429,10 +1451,11 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1429
1451
  if (sharedEntityDependants.length) {
1430
1452
  const alert = {
1431
1453
  alertType: 'generic',
1432
- header: `Cannot remove the shared item as it is referenced in:`,
1433
- message: sharedEntityDependants
1434
- .map((sharedEntity) => `${adaptable.ModuleService.getModuleFriendlyName(sharedEntity.Module)} ${sharedEntity.Description}`)
1435
- .join('\n'),
1454
+ header: 'Team Sharing',
1455
+ message: 'Cannot remove this shared item. It is referenced by: ' +
1456
+ sharedEntityDependants
1457
+ .map((sharedEntity) => `${adaptable.ModuleService.getModuleFriendlyName(sharedEntity.Module)} ${sharedEntity.Description}`)
1458
+ .join(', '),
1436
1459
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Warning'),
1437
1460
  };
1438
1461
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1449,7 +1472,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1449
1472
  const alert = {
1450
1473
  alertType: 'generic',
1451
1474
  header: 'Team Sharing',
1452
- message: "Couldn't remove item: " + error.message,
1475
+ message: 'Failed to remove shared item: ' + error.message,
1453
1476
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1454
1477
  };
1455
1478
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1471,8 +1494,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1471
1494
  !adaptable.api.optionsApi.getTeamSharingOptions().suppressOverrideConfigWarning) {
1472
1495
  let confirmation = {
1473
1496
  CancelButtonText: 'Cancel Import',
1474
- Header: 'Overwriting Existing Object',
1475
- Msg: 'This import will overwrite an existing object in your State. Do you wish to continue?',
1497
+ Header: 'Overwrite Existing Item',
1498
+ Msg: 'This import will overwrite an existing item in your configuration. Do you wish to continue?',
1476
1499
  ConfirmButtonText: 'Import',
1477
1500
  CancelAction: null,
1478
1501
  ConfirmAction: processImportAction,
@@ -1518,7 +1541,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1518
1541
  const alert = {
1519
1542
  alertType: 'generic',
1520
1543
  header: 'Team Sharing',
1521
- message: `Item Successfully Imported`,
1544
+ message: 'Item imported successfully.',
1522
1545
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
1523
1546
  };
1524
1547
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1558,7 +1581,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1558
1581
  const alert = {
1559
1582
  alertType: 'generic',
1560
1583
  header: 'Team Sharing',
1561
- message: "Couldn't update active item: " + error.message,
1584
+ message: 'Failed to update shared item: ' + error.message,
1562
1585
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1563
1586
  };
1564
1587
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -1579,7 +1602,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1579
1602
  const alert = {
1580
1603
  alertType: 'generic',
1581
1604
  header: 'Team Sharing',
1582
- message: "Couldn't check for updates: " + error.message,
1605
+ message: 'Failed to check for updates: ' + error.message,
1583
1606
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
1584
1607
  };
1585
1608
  adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
@@ -43,8 +43,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
43
  IsValid: false,
44
44
  Alert: {
45
45
  alertType: 'generic',
46
- header: 'Bulk Update Error',
47
- message: 'Cannot edit while Grid is in Pivot Mode.',
46
+ header: 'Bulk Update',
47
+ message: 'Editing is not available in Pivot Mode.',
48
48
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
49
49
  },
50
50
  };
@@ -54,8 +54,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
54
54
  IsValid: false,
55
55
  Alert: {
56
56
  alertType: 'generic',
57
- header: 'Bulk Update Error',
58
- message: 'No cells are selected.\nPlease select some cells.',
57
+ header: 'Bulk Update',
58
+ message: 'No cells selected. Please select one or more cells to continue.',
59
59
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
60
60
  },
61
61
  };
@@ -65,8 +65,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
65
65
  IsValid: false,
66
66
  Alert: {
67
67
  alertType: 'generic',
68
- header: 'Bulk Update Error',
69
- message: 'Bulk Update only supports single column edit.\nPlease adjust cell selection.',
68
+ header: 'Bulk Update',
69
+ message: 'Bulk Update supports editing a single column at a time. Please adjust your selection.',
70
70
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
71
71
  },
72
72
  };
@@ -78,8 +78,8 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
78
78
  IsValid: false,
79
79
  Alert: {
80
80
  alertType: 'generic',
81
- header: 'Bulk Update Error',
82
- message: 'Bulk Update is not permitted on readonly cells.\nPlease adjust the cell selection.',
81
+ header: 'Bulk Update',
82
+ message: 'Bulk Update is not available for read-only cells. Please adjust your selection.',
83
83
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
84
84
  },
85
85
  };
@@ -190,7 +190,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
190
190
  failedMessages.push(failedMessage);
191
191
  }
192
192
  });
193
- this.api.alertApi.showAlertError('Nudge(s) failed rule', failedMessages.toString());
193
+ this.api.alertApi.showAlertError('Plus/Minus', 'One or more nudge values were rejected by validation rules: ' + failedMessages.toString());
194
194
  }
195
195
  }
196
196
  getTeamSharingAction() {
@@ -28,7 +28,7 @@ class QuickSearchModule extends AdaptableModuleBase_1.AdaptableModuleBase {
28
28
  // Check for AG Grid QuickFilterModule if running Filter After Quick Search
29
29
  if (api.optionsApi.getQuickSearchOptions().filterGridAfterQuickSearch) {
30
30
  if (!api.internalApi.getAgGridModulesAdapter().isAgGridModuleRegistered('QuickFilterModule')) {
31
- api.consoleError('The AG Grid "GridFilter" Module is required if running Quick Search as Filter; Quick Search will run but no Filters will be applied');
31
+ api.consoleError('Quick Search with filterGridAfterQuickSearch requires the AG Grid "QuickFilterModule". Quick Search will run but grid filters will not be applied.');
32
32
  }
33
33
  }
34
34
  const isServerSideRowModel = agGridApi.getGridOption('rowModelType') === 'serverSide';
@@ -11,15 +11,19 @@ class SettingsPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
11
  super(ModuleConstants.SettingsPanelModuleId, friendlyName, 'settings', null, 'Manage all Adaptable Settings', api);
12
12
  }
13
13
  createColumnMenuItems(column) {
14
- return [
15
- // To do : get the icon and name from settings in case they have changed?
16
- this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
17
- ];
14
+ if (this.isModuleVisible()) {
15
+ return [
16
+ // To do : get the icon and name from settings in case they have changed?
17
+ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
18
+ ];
19
+ }
18
20
  }
19
21
  createContextMenuItems(menuContext) {
20
- return [
21
- this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
22
- ];
22
+ if (this.isModuleVisible()) {
23
+ return [
24
+ this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
25
+ ];
26
+ }
23
27
  }
24
28
  createModuleMenuItem(source) {
25
29
  if (this.isModuleVisible()) {
@@ -47,8 +47,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
47
47
  return {
48
48
  Alert: {
49
49
  alertType: 'generic',
50
- header: 'Smart Edit Error',
51
- message: 'Cannot edit while Grid is in Pivot Mode.',
50
+ header: 'Smart Edit',
51
+ message: 'Editing is not available in Pivot Mode.',
52
52
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
53
53
  },
54
54
  };
@@ -57,8 +57,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
57
57
  return {
58
58
  Alert: {
59
59
  alertType: 'generic',
60
- header: 'Smart Edit Error',
61
- message: 'No cells are selected.\nPlease select some cells.',
60
+ header: 'Smart Edit',
61
+ message: 'No cells selected. Please select one or more cells to continue.',
62
62
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
63
63
  },
64
64
  };
@@ -67,8 +67,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
67
67
  return {
68
68
  Alert: {
69
69
  alertType: 'generic',
70
- header: 'Smart Edit Error',
71
- message: 'Smart Edit only supports single column edit.\nPlease adjust cell selection.',
70
+ header: 'Smart Edit',
71
+ message: 'Smart Edit supports editing a single column at a time. Please adjust your selection.',
72
72
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
73
73
  },
74
74
  };
@@ -79,8 +79,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
79
79
  return {
80
80
  Alert: {
81
81
  alertType: 'generic',
82
- header: 'Smart Edit Error',
83
- message: 'Smart Edit only supports editing of numeric columns.\nPlease adjust the cell selection.',
82
+ header: 'Smart Edit',
83
+ message: 'Smart Edit only applies to numeric columns. Please adjust your selection.',
84
84
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
85
85
  },
86
86
  };
@@ -91,8 +91,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
91
91
  return {
92
92
  Alert: {
93
93
  alertType: 'generic',
94
- header: 'Smart Edit Error',
95
- message: 'Smart Edit is not permitted on readonly cells.\nPlease adjust the cell selection.',
94
+ header: 'Smart Edit',
95
+ message: 'Smart Edit is not available for read-only cells. Please adjust your selection.',
96
96
  alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
97
97
  },
98
98
  };
@@ -68,7 +68,7 @@ class DataService {
68
68
  // why 2 and not 3 or 1? no good reason, only seems like a reasonable waiting time :)
69
69
  const UNDO_WAIT = 2000;
70
70
  const timeoutId = setTimeout(() => {
71
- this.adaptable.logger.warn(`Undo change was NOT handled, this should NOT happen: PK(${change.primaryKeyValue}) Col(${change.column}) RevertedValue(${change.newValue}) NewValue(${change.oldValue})`);
71
+ this.adaptable.logger.warn(`Undo change was not handled within timeout: column="${change.column}", primaryKey="${change.primaryKeyValue}", from=${change.newValue} to=${change.oldValue}.`);
72
72
  this.extractUndoChange(change);
73
73
  }, UNDO_WAIT);
74
74
  this.undoChangeTimers.set(undoChangeKey, timeoutId);
@@ -81,7 +81,7 @@ class Fdc3Service {
81
81
  getDesktopAgent() {
82
82
  if (globalThis.fdc3 == null && !this.loggedAgentError) {
83
83
  this.loggedAgentError = true;
84
- this.adaptableApi.consoleError('FDC3 Desktop Agent not found. This should be provided by the wrapper application.');
84
+ this.adaptableApi.consoleError('FDC3 Desktop Agent not found. The host application must provide the FDC3 agent on globalThis.fdc3.');
85
85
  }
86
86
  return globalThis.fdc3;
87
87
  }
@@ -164,11 +164,11 @@ class Fdc3Service {
164
164
  if (!this.getFdc3Options().enableLogging) {
165
165
  return;
166
166
  }
167
- this.adaptableApi.consoleLog(`FDC3::${type} - `, params.join(' : '));
167
+ this.adaptableApi.consoleLog(`FDC3 ${type}: ${params.join(' : ')}`);
168
168
  }
169
169
  logFdc3Error(error) {
170
- this.adaptableApi.consoleError(`FDC3 error`, error);
171
- this.adaptableApi.alertApi.showAlertError('FDC3 Error', 'See console for details');
170
+ this.adaptableApi.consoleError('FDC3 operation failed.', error);
171
+ this.adaptableApi.alertApi.showAlertError('FDC3', 'An error occurred. See the browser console for details.');
172
172
  }
173
173
  getFdc3Api() {
174
174
  return this.adaptableApi.fdc3Api;
@@ -36,9 +36,7 @@ class ModuleService {
36
36
  const registeredAgGridModuleNames = agGridModulesAdapter.getAgGridRegisteredModuleNames();
37
37
  const missingAgGridModuleNames = mandatoryAgGridModuleNames.filter((moduleName) => !registeredAgGridModuleNames.includes(moduleName));
38
38
  if (missingAgGridModuleNames.length) {
39
- this.adaptableApi.consoleError(`AdapTable requires the following AG Grid modules to be registered: ${missingAgGridModuleNames.join(', ')}.
40
-
41
- See for more information: ${DocumentationLinkConstants_1.AgGridRequiredModulesDocsLink}`);
39
+ this.adaptableApi.consoleError(`Adaptable requires these AG Grid modules: ${missingAgGridModuleNames.join(', ')}. Please register them. See: ${DocumentationLinkConstants_1.AgGridRequiredModulesDocsLink}`);
42
40
  }
43
41
  // log optional missing AG Grid dependencies for all modules
44
42
  this.getModuleCollection().forEach((adaptableModule) => {