@adaptabletools/adaptable-cjs 19.0.5 → 19.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/Api/ColumnApi.d.ts +9 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ColumnApiImpl.js +11 -3
- package/src/Api/Implementation/ConfigApiImpl.js +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +4 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +0 -1
- package/src/Api/Internal/ColumnInternalApi.js +0 -3
- package/src/Api/Internal/FlashingCellInternalApi.js +5 -3
- package/src/PredefinedConfig/SystemState.d.ts +0 -6
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -17
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -65
- package/src/Redux/Store/AdaptableStore.js +1 -19
- package/src/Strategy/FlashingCellModule.d.ts +2 -3
- package/src/Strategy/FlashingCellModule.js +6 -3
- package/src/Utilities/Services/FlashingCellService.d.ts +21 -0
- package/src/Utilities/Services/FlashingCellService.js +69 -0
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
- package/src/agGrid/ActionColumnRenderer.js +2 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +4 -1
- package/src/agGrid/AdaptableAgGrid.js +17 -8
- package/src/agGrid/AgGridAdapter.js +1 -1
- package/src/env.js +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.6",
|
|
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",
|
|
@@ -30,6 +30,7 @@ import { AgGridAdapter } from '../agGrid/AgGridAdapter';
|
|
|
30
30
|
import { AgGridColumnAdapter } from '../agGrid/AgGridColumnAdapter';
|
|
31
31
|
import { AgGridMenuAdapter } from '../agGrid/AgGridMenuAdapter';
|
|
32
32
|
import { RowEditService } from '../Utilities/Services/RowEditService';
|
|
33
|
+
import { FlashingCellService } from '../Utilities/Services/FlashingCellService';
|
|
33
34
|
/**
|
|
34
35
|
* Contains AG Grid Options and Modules - used when instantiating AdapTable vanilla
|
|
35
36
|
*/
|
|
@@ -88,6 +89,7 @@ export interface IAdaptable {
|
|
|
88
89
|
RowEditService: RowEditService;
|
|
89
90
|
Fdc3Service: Fdc3Service;
|
|
90
91
|
CellPopupService: CellPopupService;
|
|
92
|
+
FlashingCellService: FlashingCellService;
|
|
91
93
|
_PRIVATE_adaptableJSXElement: JSX.Element;
|
|
92
94
|
/**
|
|
93
95
|
* INTERNAL ADAPTABLE EVENTS
|
|
@@ -140,6 +142,7 @@ export interface IAdaptable {
|
|
|
140
142
|
redrawRow(rowNode: IRowNode): void;
|
|
141
143
|
redrawRows(rowNodes?: IRowNode[]): void;
|
|
142
144
|
refreshCells(rowNodes: IRowNode[], columns: (string | any)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
145
|
+
refreshAllCells(forceUpdate?: boolean): void;
|
|
143
146
|
refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
144
147
|
refreshSelectedCellsState(): SelectedCellInfo | undefined;
|
|
145
148
|
refreshSelectedRowsState(): SelectedRowInfo | undefined;
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export interface ColumnApi {
|
|
|
12
12
|
* Returns all standard Columns (i.e. not Action Rows)
|
|
13
13
|
*/
|
|
14
14
|
getStandardColumns(): AdaptableColumn[];
|
|
15
|
+
/**
|
|
16
|
+
* Returns all columns excluding Action Rows, Acction Columns, FreeTextColumn and CalculatedColumn
|
|
17
|
+
*/
|
|
18
|
+
getNonSpecialColumns(): AdaptableColumn[];
|
|
15
19
|
/**
|
|
16
20
|
* Returns all visible Columns
|
|
17
21
|
*/
|
|
@@ -167,6 +171,11 @@ export interface ColumnApi {
|
|
|
167
171
|
* @param columnId ColumnId to check
|
|
168
172
|
*/
|
|
169
173
|
isActionColumn(columnId: string): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Checks if Column with given ColumnId is an Action Row Button Column
|
|
176
|
+
* @param columnId ColumnId to check
|
|
177
|
+
*/
|
|
178
|
+
isActionRowButtonColumn(columnId: string): boolean;
|
|
170
179
|
/**
|
|
171
180
|
* Checks if the Column with the given `columnId` has DataType Number
|
|
172
181
|
* @param columnId Column ID
|
|
@@ -11,6 +11,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
11
11
|
constructor(adaptable: IAdaptable);
|
|
12
12
|
getColumns(): AdaptableColumn[];
|
|
13
13
|
getStandardColumns(): AdaptableColumn[];
|
|
14
|
+
getNonSpecialColumns(): AdaptableColumn[];
|
|
14
15
|
getVisibleColumns(): AdaptableColumn[];
|
|
15
16
|
selectColumn(columnId: string): void;
|
|
16
17
|
selectColumns(columnIds: string[]): void;
|
|
@@ -24,6 +25,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
24
25
|
showColumn(columnId: string): void;
|
|
25
26
|
isAutoRowGroupColumn(columnId: string): boolean;
|
|
26
27
|
isAutoPivotColumn(columnId: string): boolean;
|
|
28
|
+
isActionRowButtonColumn(columnId: string): boolean;
|
|
27
29
|
isCalculatedColumn(columnId: string): boolean;
|
|
28
30
|
isFreeTextColumn(columnId: string): boolean;
|
|
29
31
|
isActionColumn(columnId: string): boolean;
|
|
@@ -9,6 +9,7 @@ const ColumnInternalApi_1 = require("../Internal/ColumnInternalApi");
|
|
|
9
9
|
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
10
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
11
11
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
12
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
12
13
|
function isAutoRowGroupColumn(columnId) {
|
|
13
14
|
// put this here as there might be other indicators we are not aware of
|
|
14
15
|
// perhaps with non auto groups ?
|
|
@@ -31,9 +32,13 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
31
32
|
return (_a = this.getAdaptableApi().gridApi.getGridState().Columns) !== null && _a !== void 0 ? _a : [];
|
|
32
33
|
}
|
|
33
34
|
getStandardColumns() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
var _a;
|
|
36
|
+
const cols = (_a = this.getColumns()) === null || _a === void 0 ? void 0 : _a.filter((c) => !this.isActionRowButtonColumn(c.columnId));
|
|
37
|
+
return cols !== null && cols !== void 0 ? cols : [];
|
|
38
|
+
}
|
|
39
|
+
getNonSpecialColumns() {
|
|
40
|
+
var _a;
|
|
41
|
+
const cols = (_a = this.getStandardColumns()) === null || _a === void 0 ? void 0 : _a.filter((c) => !this.getColumnApi().isSpecialColumn(c.columnId));
|
|
37
42
|
return cols !== null && cols !== void 0 ? cols : [];
|
|
38
43
|
}
|
|
39
44
|
getVisibleColumns() {
|
|
@@ -80,6 +85,9 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
80
85
|
isAutoPivotColumn(columnId) {
|
|
81
86
|
return isAutoPivotColumn(columnId);
|
|
82
87
|
}
|
|
88
|
+
isActionRowButtonColumn(columnId) {
|
|
89
|
+
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
90
|
+
}
|
|
83
91
|
isCalculatedColumn(columnId) {
|
|
84
92
|
return (this.getAdaptableApi()
|
|
85
93
|
.calculatedColumnApi.getCalculatedColumns()
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FlashingCellApiImpl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
5
|
const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
7
6
|
const ApiBase_1 = require("./ApiBase");
|
|
8
7
|
const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
|
|
@@ -43,11 +42,15 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
43
42
|
return endResult && aResult !== false;
|
|
44
43
|
}, true);
|
|
45
44
|
if (shouldShow) {
|
|
46
|
-
this.
|
|
45
|
+
this.getAdaptableApi()
|
|
46
|
+
.internalApi.getFlashingCellService()
|
|
47
|
+
.addGridCellFlash(flashingCellToShow);
|
|
47
48
|
const { FlashDuration: FlashDuration } = flashingCellToShow.flashingCellDefinition;
|
|
48
49
|
if (FlashDuration && FlashDuration !== 'always') {
|
|
49
50
|
setTimeout(() => {
|
|
50
|
-
this.
|
|
51
|
+
this.getAdaptableApi()
|
|
52
|
+
.internalApi.getFlashingCellService()
|
|
53
|
+
.clearGridCellFlash(flashingCellToShow);
|
|
51
54
|
}, FlashDuration);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -95,11 +98,10 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
98
|
.filter((predicateDef) => this.getAdaptableApi().columnScopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
96
99
|
}
|
|
97
100
|
clearAllFlashingCells() {
|
|
98
|
-
this.
|
|
101
|
+
this.getAdaptableApi().internalApi.getFlashingCellService().clearAllGridCellFlashes();
|
|
99
102
|
}
|
|
100
103
|
isAnyFlashingCellActive() {
|
|
101
|
-
|
|
102
|
-
return currentFlashingCells.keys != null;
|
|
104
|
+
return this.getAdaptableApi().internalApi.getFlashingCellService().isAnyFlashingCellActive();
|
|
103
105
|
}
|
|
104
106
|
findFlashingCellDefinitions(criteria) {
|
|
105
107
|
return this.getAdaptableApi().internalApi.findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
|
|
@@ -55,7 +55,7 @@ class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
|
55
55
|
// if there is NO rowNode, do NOT display the non-editable fields as they will be empty
|
|
56
56
|
return !!rowNode || this.isCellEditable(column, rowNode);
|
|
57
57
|
})
|
|
58
|
-
.filter((column) => !this.getAdaptableApi().columnApi.
|
|
58
|
+
.filter((column) => !this.getAdaptableApi().columnApi.isActionRowButtonColumn(column.columnId) &&
|
|
59
59
|
this.showColumnInActionRowForm(column, actionRowType));
|
|
60
60
|
return relevantColumns.map((column) => this.buildFormField(actionRowType, column, rowNode));
|
|
61
61
|
}
|
|
@@ -26,6 +26,7 @@ import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedCo
|
|
|
26
26
|
import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
|
|
27
27
|
import { CellPopupService } from '../../Utilities/Services/CellPopupService';
|
|
28
28
|
import { RowEditService } from '../../Utilities/Services/RowEditService';
|
|
29
|
+
import { FlashingCellService } from '../../Utilities/Services/FlashingCellService';
|
|
29
30
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
30
31
|
getSystemState(): SystemState;
|
|
31
32
|
getAdaptableJSXElement(): JSX.Element;
|
|
@@ -64,6 +65,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
64
65
|
getMetamodelService(): IMetamodelService;
|
|
65
66
|
getRowEditService(): RowEditService;
|
|
66
67
|
getFdc3Service(): Fdc3Service;
|
|
68
|
+
getFlashingCellService(): FlashingCellService;
|
|
67
69
|
getModules(): IModuleCollection;
|
|
68
70
|
getModuleFriendlyName(adaptableModule: AdaptableModule): string;
|
|
69
71
|
forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
@@ -121,6 +121,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
121
121
|
getFdc3Service() {
|
|
122
122
|
return this.adaptable.Fdc3Service;
|
|
123
123
|
}
|
|
124
|
+
getFlashingCellService() {
|
|
125
|
+
return this.adaptable.FlashingCellService;
|
|
126
|
+
}
|
|
124
127
|
getModules() {
|
|
125
128
|
return this.adaptable.adaptableModules;
|
|
126
129
|
}
|
|
@@ -449,7 +452,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
449
452
|
getActionButtonsAndActionColumn(colDef) {
|
|
450
453
|
var _a;
|
|
451
454
|
let actionColumn;
|
|
452
|
-
if (this.getAdaptableApi().columnApi.
|
|
455
|
+
if (this.getAdaptableApi().columnApi.isActionRowButtonColumn(colDef.colId)) {
|
|
453
456
|
const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
|
|
454
457
|
actionColumn = {
|
|
455
458
|
columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
@@ -27,6 +27,5 @@ export declare class ColumnInternalApi extends ApiBase {
|
|
|
27
27
|
* @param columnId columnId to look up
|
|
28
28
|
*/
|
|
29
29
|
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
30
|
-
isActionRowButtonColumn(columnId: string): boolean;
|
|
31
30
|
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: IRowNode, nodeB?: IRowNode, isInverted?: boolean) => number | undefined;
|
|
32
31
|
}
|
|
@@ -46,9 +46,6 @@ class ColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
46
46
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
47
47
|
return this.adaptable.getAgGridColumnForColumnId(columnId);
|
|
48
48
|
}
|
|
49
|
-
isActionRowButtonColumn(columnId) {
|
|
50
|
-
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
51
|
-
}
|
|
52
49
|
getActiveColumnComparator(columnId, customSort, customSortComparer) {
|
|
53
50
|
if ((!customSort || (customSort === null || customSort === void 0 ? void 0 : customSort.IsSuspended)) && !customSortComparer) {
|
|
54
51
|
// defaults to AG-Grid column definition comparator if no CustomSort is defined&active
|
|
@@ -4,8 +4,8 @@ exports.FlashingCellInternalApi = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
6
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
7
|
-
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
7
|
const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/AlertRedux"));
|
|
8
|
+
const FlashingCellService_1 = require("../../Utilities/Services/FlashingCellService");
|
|
9
9
|
class FlashingCellInternalApi extends ApiBase_1.ApiBase {
|
|
10
10
|
/**
|
|
11
11
|
* Merges a Flashing Cell Definition with default values
|
|
@@ -37,12 +37,14 @@ class FlashingCellInternalApi extends ApiBase_1.ApiBase {
|
|
|
37
37
|
}
|
|
38
38
|
getAdaptableFlashingCellFor(primaryKey, columnId) {
|
|
39
39
|
var _a;
|
|
40
|
-
const
|
|
40
|
+
const flashingCellService = this.getAdaptableApi().internalApi.getFlashingCellService();
|
|
41
|
+
const AdaptableFlashingAlerts = flashingCellService.gridCellsCurrentlyFlashing;
|
|
42
|
+
const AdaptableFlashingAlertsMap = flashingCellService.flashingCellsMapping;
|
|
41
43
|
const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
|
|
42
44
|
const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
|
|
43
45
|
const adaptableFlashingCell = columnId
|
|
44
46
|
? toFlashingAlert(forPrimaryKey[columnId])
|
|
45
|
-
: toFlashingAlert(forPrimaryKey[
|
|
47
|
+
: toFlashingAlert(forPrimaryKey[FlashingCellService_1.FLASHING_CELL_ROW_KEY]);
|
|
46
48
|
if ((adaptableFlashingCell === null || adaptableFlashingCell === void 0 ? void 0 : adaptableFlashingCell.flashingCellDefinition) &&
|
|
47
49
|
!this.getAdaptableApi().layoutApi.internalApi.isObjectAvailableInLayout(adaptableFlashingCell.flashingCellDefinition, 'FlashingCell', this.getAdaptableApi().layoutApi.getCurrentLayout())) {
|
|
48
50
|
return;
|
|
@@ -8,8 +8,6 @@ import { AdaptableAlert } from './Common/AdaptableAlert';
|
|
|
8
8
|
import { CellHighlightInfo } from './Common/CellHighlightInfo';
|
|
9
9
|
import { RowHighlightInfo } from './Common/RowHighlightInfo';
|
|
10
10
|
import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
|
|
11
|
-
import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
12
|
-
import { TypeUuid } from './Uuid';
|
|
13
11
|
import { SummaryOperation } from './Common/Enums';
|
|
14
12
|
import { ChartModel } from '@ag-grid-community/core';
|
|
15
13
|
import { ExternalChartDefinition } from './ChartingState';
|
|
@@ -17,8 +15,6 @@ import { CachedQuery } from './NamedQueryState';
|
|
|
17
15
|
import { ProgressIndicatorConfig } from './Common/ProgressIndicatorConfig';
|
|
18
16
|
export type { IPushPullReport, IPushPullDomain };
|
|
19
17
|
export type { OpenFinReport };
|
|
20
|
-
type ROW_PRIMARY_KEY = string;
|
|
21
|
-
type COLUMN_ID_OR_WHOLE_ROW_LABEL = string;
|
|
22
18
|
export type DataChangeHistoryMode = 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
|
|
23
19
|
export type SystemRowSummary = {
|
|
24
20
|
Position: 'Top' | 'Bottom';
|
|
@@ -29,8 +25,6 @@ export type SystemRowSummary = {
|
|
|
29
25
|
*/
|
|
30
26
|
export interface SystemState extends InternalState, IPushPullState, OpenFinState {
|
|
31
27
|
AdaptableAlerts: AdaptableAlert[];
|
|
32
|
-
AdaptableFlashingCells: Record<ROW_PRIMARY_KEY, Record<COLUMN_ID_OR_WHOLE_ROW_LABEL, TypeUuid>>;
|
|
33
|
-
AdaptableFlashingCellsMap: Record<TypeUuid, AdaptableFlashingCell>;
|
|
34
28
|
SystemStatusMessages: SystemStatusMessageInfo[];
|
|
35
29
|
HighlightedCells: CellHighlightInfo[];
|
|
36
30
|
HighlightedRows: RowHighlightInfo[];
|
|
@@ -8,24 +8,19 @@ import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdate
|
|
|
8
8
|
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
9
9
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
10
10
|
import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
11
|
-
import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
12
11
|
import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
13
12
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
14
13
|
import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
|
|
15
14
|
import { SmartEditOperation } from '../../AdaptableOptions/EditOptions';
|
|
16
|
-
import { DataImportedInfo, DataSet
|
|
15
|
+
import { CellAddress, DataImportedInfo, DataSet } from '../../types';
|
|
17
16
|
import { ChartModel } from '@ag-grid-community/core';
|
|
18
17
|
import { CachedQuery } from '../../PredefinedConfig/NamedQueryState';
|
|
19
18
|
import { ProgressIndicatorConfig } from '../../PredefinedConfig/Common/ProgressIndicatorConfig';
|
|
20
|
-
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
21
19
|
export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
|
|
22
20
|
export declare const SYSTEM_ALERT_DELETE = "SYSTEM_ALERT_DELETE";
|
|
23
21
|
export declare const SYSTEM_ALERT_DELETE_ALL = "SYSTEM_ALERT_DELETE_ALL";
|
|
24
22
|
export declare const SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = "SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT";
|
|
25
23
|
export declare const SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = "SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT";
|
|
26
|
-
export declare const SYSTEM_FLASHING_CELL_ADD = "SYSTEM_FLASHING_CELL_ADD";
|
|
27
|
-
export declare const SYSTEM_FLASHING_CELL_DELETE = "SYSTEM_FLASHING_CELL_DELETE";
|
|
28
|
-
export declare const SYSTEM_FLASHING_CELL_DELETE_ALL = "SYSTEM_FLASHING_CELL_DELETE_ALL";
|
|
29
24
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_ADD = "SYSTEM_STATUS_MESSAGE_INFO_ADD";
|
|
30
25
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE = "SYSTEM_STATUS_MESSAGE_INFO_DELETE";
|
|
31
26
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = "SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL";
|
|
@@ -122,14 +117,6 @@ export interface SystemAlertRemoveCellHighlightAction extends Redux.Action {
|
|
|
122
117
|
export interface SystemAlertRemoveRowHighlightAction extends Redux.Action {
|
|
123
118
|
alert: AdaptableAlert;
|
|
124
119
|
}
|
|
125
|
-
export interface SystemFlashingCellAddAction extends Redux.Action {
|
|
126
|
-
flashingCell: AdaptableFlashingCell;
|
|
127
|
-
}
|
|
128
|
-
export interface SystemFlashingCellDeleteAction extends Redux.Action {
|
|
129
|
-
flashingCell: AdaptableFlashingCell;
|
|
130
|
-
}
|
|
131
|
-
export interface SystemFlashingCellDeleteAllAction extends Redux.Action {
|
|
132
|
-
}
|
|
133
120
|
export interface SystemStatusMessageInfoAddAction extends Redux.Action {
|
|
134
121
|
systemStatusMessageInfo: SystemStatusMessageInfo;
|
|
135
122
|
maxSystemStatusMessagesInStore: number;
|
|
@@ -285,9 +272,6 @@ export declare const SystemAlertDelete: (alert: AdaptableAlert) => SystemAlertDe
|
|
|
285
272
|
export declare const SystemAlertDeleteAll: (alerts: AdaptableAlert[]) => SystemAlertDeleteAllAction;
|
|
286
273
|
export declare const SystemAlertRemoveCellHighlight: (alert: AdaptableAlert) => SystemAlertRemoveCellHighlightAction;
|
|
287
274
|
export declare const SystemAlertRemoveRowHighlight: (alert: AdaptableAlert) => SystemAlertRemoveRowHighlightAction;
|
|
288
|
-
export declare const SystemFlashingCellAdd: (flashingCell: AdaptableFlashingCell) => SystemFlashingCellAddAction;
|
|
289
|
-
export declare const SystemFlashingCellDelete: (flashingCell: AdaptableFlashingCell) => SystemFlashingCellDeleteAction;
|
|
290
|
-
export declare const SystemFlashingCellDeleteAll: () => SystemFlashingCellDeleteAllAction;
|
|
291
275
|
export declare const SystemStatusMessageInfoAdd: (SystemStatusMessageInfo: SystemStatusMessageInfo, MaxSystemStatusMessagesInStore: number) => SystemStatusMessageInfoAddAction;
|
|
292
276
|
export declare const SystemStatusMessageInfoDelete: (SystemStatusMessageInfo: SystemStatusMessageInfo) => SystemStatusMessageInfoDeleteAction;
|
|
293
277
|
export declare const SystemStatusMessageInfoDeleteAll: () => SystemStatusMessageInfoDeleteAllAction;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.
|
|
4
|
-
exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = 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.
|
|
5
|
-
exports.SystemReducer = exports.DataImportCompleted = exports.SystemCommentsAndNotesFocusedEntitySelector = exports.SystemCommentsAndNotesEditModeSelector = exports.SystemCommentsAndNotesSelector = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemCellPopupHide = exports.SystemRowSummarySet = exports.SystemCellPopupEditFocusedEntity = exports.SystemCellPopupShow = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow =
|
|
3
|
+
exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = void 0;
|
|
4
|
+
exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = 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.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.DATA_IMPORT_COMPLETED = exports.SYSTEM_SUMMARY_ROW_SET = exports.SYSTEM_CELL_POPUP_EDIT_FOCUSED_ENTITY = exports.SYSTEM_CELL_POPUP_HIDE = exports.SYSTEM_CELL_POPUP_SHOW = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = void 0;
|
|
5
|
+
exports.SystemReducer = exports.DataImportCompleted = exports.SystemCommentsAndNotesFocusedEntitySelector = exports.SystemCommentsAndNotesEditModeSelector = exports.SystemCommentsAndNotesSelector = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemCellPopupHide = exports.SystemRowSummarySet = exports.SystemCellPopupEditFocusedEntity = exports.SystemCellPopupShow = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = void 0;
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
7
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
8
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -12,17 +12,12 @@ Bit of a mixed bag of actions but essentially its those that are related to Stra
|
|
|
12
12
|
This allows us to keep the other reducers pure in terms of everything persists
|
|
13
13
|
Not sure if its a good idea or not and perhaps we need 2 stores but I think its better than it was...
|
|
14
14
|
*/
|
|
15
|
-
exports.FLASHING_CELL_ROW_KEY = '__ROW';
|
|
16
15
|
// Alerts
|
|
17
16
|
exports.SYSTEM_ALERT_ADD = 'SYSTEM_ALERT_ADD';
|
|
18
17
|
exports.SYSTEM_ALERT_DELETE = 'SYSTEM_ALERT_DELETE';
|
|
19
18
|
exports.SYSTEM_ALERT_DELETE_ALL = 'SYSTEM_ALERT_DELETE_ALL';
|
|
20
19
|
exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT';
|
|
21
20
|
exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT';
|
|
22
|
-
// Flashing Cells
|
|
23
|
-
exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
|
|
24
|
-
exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
|
|
25
|
-
exports.SYSTEM_FLASHING_CELL_DELETE_ALL = 'SYSTEM_FLASHING_CELL_DELETE_ALL';
|
|
26
21
|
// Status Message
|
|
27
22
|
exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = 'SYSTEM_STATUS_MESSAGE_INFO_ADD';
|
|
28
23
|
exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = 'SYSTEM_STATUS_MESSAGE_INFO_DELETE';
|
|
@@ -165,20 +160,6 @@ const SystemAlertRemoveRowHighlight = (alert) => ({
|
|
|
165
160
|
alert: alert,
|
|
166
161
|
});
|
|
167
162
|
exports.SystemAlertRemoveRowHighlight = SystemAlertRemoveRowHighlight;
|
|
168
|
-
const SystemFlashingCellAdd = (flashingCell) => ({
|
|
169
|
-
type: exports.SYSTEM_FLASHING_CELL_ADD,
|
|
170
|
-
flashingCell: flashingCell,
|
|
171
|
-
});
|
|
172
|
-
exports.SystemFlashingCellAdd = SystemFlashingCellAdd;
|
|
173
|
-
const SystemFlashingCellDelete = (flashingCell) => ({
|
|
174
|
-
type: exports.SYSTEM_FLASHING_CELL_DELETE,
|
|
175
|
-
flashingCell: flashingCell,
|
|
176
|
-
});
|
|
177
|
-
exports.SystemFlashingCellDelete = SystemFlashingCellDelete;
|
|
178
|
-
const SystemFlashingCellDeleteAll = () => ({
|
|
179
|
-
type: exports.SYSTEM_FLASHING_CELL_DELETE_ALL,
|
|
180
|
-
});
|
|
181
|
-
exports.SystemFlashingCellDeleteAll = SystemFlashingCellDeleteAll;
|
|
182
163
|
const SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
|
|
183
164
|
type: exports.SYSTEM_STATUS_MESSAGE_INFO_ADD,
|
|
184
165
|
systemStatusMessageInfo: SystemStatusMessageInfo,
|
|
@@ -429,8 +410,6 @@ const DataImportCompleted = (dataImportedInfo) => ({
|
|
|
429
410
|
exports.DataImportCompleted = DataImportCompleted;
|
|
430
411
|
const initialState = {
|
|
431
412
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
432
|
-
AdaptableFlashingCells: {},
|
|
433
|
-
AdaptableFlashingCellsMap: {},
|
|
434
413
|
SystemStatusMessages: GeneralConstants_1.EMPTY_ARRAY,
|
|
435
414
|
HighlightedCells: GeneralConstants_1.EMPTY_ARRAY,
|
|
436
415
|
HighlightedRows: GeneralConstants_1.EMPTY_ARRAY,
|
|
@@ -522,47 +501,6 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
522
501
|
return abObject;
|
|
523
502
|
}) });
|
|
524
503
|
}
|
|
525
|
-
case exports.SYSTEM_FLASHING_CELL_ADD: {
|
|
526
|
-
const { flashingCell: FlashingCell } = action;
|
|
527
|
-
const { rowPrimaryKey } = FlashingCell;
|
|
528
|
-
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
529
|
-
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
530
|
-
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
531
|
-
if (FlashingCell.flashTarget === 'row' || FlashingCell.flashTarget.includes('row')) {
|
|
532
|
-
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
533
|
-
}
|
|
534
|
-
secondaryIds.forEach((COL_ID) => {
|
|
535
|
-
AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
|
|
536
|
-
});
|
|
537
|
-
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
538
|
-
AdaptableFlashingCellsMap[FlashingCell.Uuid] = FlashingCell;
|
|
539
|
-
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells,
|
|
540
|
-
AdaptableFlashingCellsMap });
|
|
541
|
-
}
|
|
542
|
-
case exports.SYSTEM_FLASHING_CELL_DELETE: {
|
|
543
|
-
const { flashingCell: FlashingCell } = action;
|
|
544
|
-
const { rowPrimaryKey } = FlashingCell;
|
|
545
|
-
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
546
|
-
const AdaptableFlashingCellsMap = Object.assign({}, state.AdaptableFlashingCellsMap);
|
|
547
|
-
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
548
|
-
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
549
|
-
if (FlashingCell.flashTarget === 'row' || FlashingCell.flashTarget.includes('row')) {
|
|
550
|
-
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
551
|
-
}
|
|
552
|
-
secondaryIds.forEach((COL_ID) => {
|
|
553
|
-
if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
|
|
554
|
-
delete AdaptableFlashingCells[rowPrimaryKey][COL_ID];
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
if (!Object.keys(AdaptableFlashingCells[rowPrimaryKey]).length) {
|
|
558
|
-
delete AdaptableFlashingCells[rowPrimaryKey];
|
|
559
|
-
}
|
|
560
|
-
delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
|
|
561
|
-
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
|
|
562
|
-
}
|
|
563
|
-
case exports.SYSTEM_FLASHING_CELL_DELETE_ALL: {
|
|
564
|
-
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: {}, AdaptableFlashingCellsMap: {} });
|
|
565
|
-
}
|
|
566
504
|
case exports.SYSTEM_HIGHLIGHT_CELL_ADD: {
|
|
567
505
|
const actionTypedAdd = action;
|
|
568
506
|
return Object.assign({}, state, {
|
|
@@ -323,24 +323,6 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
323
323
|
adaptable.api.layoutApi.internalApi.setupRowSummaries();
|
|
324
324
|
return nextAction;
|
|
325
325
|
}
|
|
326
|
-
/*******************
|
|
327
|
-
* FLASHING CELL ACTIONS
|
|
328
|
-
*******************/
|
|
329
|
-
case SystemRedux.SYSTEM_FLASHING_CELL_ADD:
|
|
330
|
-
case SystemRedux.SYSTEM_FLASHING_CELL_DELETE: {
|
|
331
|
-
const { flashingCell: FlashingCell } = action;
|
|
332
|
-
const { cellDataChangedInfo: cellDataChangedInfo } = FlashingCell;
|
|
333
|
-
let ret = next(action);
|
|
334
|
-
if (cellDataChangedInfo) {
|
|
335
|
-
adaptable.refreshCells([cellDataChangedInfo.rowNode], Object.keys(FlashingCell.flashColumnIds), true);
|
|
336
|
-
}
|
|
337
|
-
return ret;
|
|
338
|
-
}
|
|
339
|
-
case SystemRedux.SYSTEM_FLASHING_CELL_DELETE_ALL: {
|
|
340
|
-
let ret = next(action);
|
|
341
|
-
adaptable.redrawBody();
|
|
342
|
-
return ret;
|
|
343
|
-
}
|
|
344
326
|
/*******************
|
|
345
327
|
* ALERT ACTIONS
|
|
346
328
|
*******************/
|
|
@@ -690,7 +672,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
690
672
|
*/
|
|
691
673
|
case QuickSearchRedux.QUICK_SEARCH_RUN: {
|
|
692
674
|
let returnAction = next(action);
|
|
693
|
-
adaptable.
|
|
675
|
+
adaptable.refreshAllCells(true);
|
|
694
676
|
// if set then return a query on the text
|
|
695
677
|
if (adaptable.adaptableOptions.quickSearchOptions.filterResultsAfterQuickSearch) {
|
|
696
678
|
const actionTyped = action;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
3
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
4
|
-
import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
4
|
+
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
|
-
import { MenuItemShowPopup } from '../Utilities/MenuItem';
|
|
7
6
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
8
7
|
import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
9
8
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
@@ -17,7 +16,7 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
|
|
|
17
16
|
getExplicitlyReferencedColumnIds(alertDefinition: FlashingCellDefinition): string[];
|
|
18
17
|
getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
|
|
19
18
|
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemDoReduxAction<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
|
|
20
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
19
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
21
20
|
protected handleCellDataChanged(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
22
21
|
private showFlashingCellsForDefinitions;
|
|
23
22
|
private isFlashingTargetOnlyAggChange;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FlashingCellModule = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const FlashingCellRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FlashingCellRedux"));
|
|
6
|
-
const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
|
|
7
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
8
7
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
9
8
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
@@ -99,11 +98,15 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
99
98
|
if (flashingCellForRow.flashTarget === 'row' ||
|
|
100
99
|
(Array.isArray(flashingCellForRow === null || flashingCellForRow === void 0 ? void 0 : flashingCellForRow.flashTarget) &&
|
|
101
100
|
flashingCellForRow.flashTarget.includes('row'))) {
|
|
102
|
-
items.push(this.
|
|
101
|
+
items.push(this.createMenuItemClickFunction('flashing-row-clear', 'Clear Flashing Row', this.moduleInfo.Glyph, () => this.api.internalApi
|
|
102
|
+
.getFlashingCellService()
|
|
103
|
+
.clearGridCellFlash(flashingCellForRow)));
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
else if (flashingCellForCell && flashingCellForCell.flashTarget === 'cell') {
|
|
106
|
-
items.push(this.
|
|
107
|
+
items.push(this.createMenuItemClickFunction('flashing-cell-clear', 'Clear Flashing Cell', this.moduleInfo.Glyph, () => this.api.internalApi
|
|
108
|
+
.getFlashingCellService()
|
|
109
|
+
.clearGridCellFlash(flashingCellForCell)));
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
|
+
import { AdaptableApi, AdaptableFlashingCell } from '../../types';
|
|
3
|
+
import { TypeUuid } from '../../PredefinedConfig/Uuid';
|
|
4
|
+
import { IAdaptableService } from './Interface/IAdaptableService';
|
|
5
|
+
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
6
|
+
/**
|
|
7
|
+
* This service controls the interaction between notes and comments
|
|
8
|
+
*/
|
|
9
|
+
export declare class FlashingCellService implements IAdaptableService {
|
|
10
|
+
private api;
|
|
11
|
+
adaptable: IAdaptable;
|
|
12
|
+
gridCellsCurrentlyFlashing: Record<string, Record<string, TypeUuid>>;
|
|
13
|
+
flashingCellsMapping: Record<TypeUuid, AdaptableFlashingCell>;
|
|
14
|
+
constructor(api: AdaptableApi);
|
|
15
|
+
destroy(): void;
|
|
16
|
+
addGridCellFlash(flashingCell: AdaptableFlashingCell): void;
|
|
17
|
+
clearGridCellFlash(flashingCell: AdaptableFlashingCell): void;
|
|
18
|
+
clearAllGridCellFlashes(): void;
|
|
19
|
+
isAnyFlashingCellActive(): boolean;
|
|
20
|
+
private refreshGridCells;
|
|
21
|
+
}
|