@adaptabletools/adaptable 11.0.0-canary.7 → 11.0.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/base.css +1 -2
- package/bundle.cjs.js +75 -75
- package/index.css +1 -2
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +3 -0
- package/src/AdaptableOptions/FilterOptions.d.ts +4 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +7 -6
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/Api/GridApi.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +1 -2
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +14 -17
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -1
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +15 -0
- package/src/PredefinedConfig/PlusMinusState.d.ts +1 -1
- package/src/PredefinedConfig/ToolPanelState.d.ts +3 -0
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +4 -4
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +4 -4
- package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.js +4 -4
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +12 -12
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +33 -29
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +4 -4
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +4 -4
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/ScheduleRedux.js +16 -16
- package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ShortcutRedux.js +4 -4
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +20 -20
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.js +11 -10
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/Services/ModuleService.js +33 -40
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -8
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +3 -3
- package/src/agGrid/Adaptable.d.ts +4 -2
- package/src/agGrid/Adaptable.js +83 -42
- package/src/agGrid/CheckboxRenderer.d.ts +8 -1
- package/src/agGrid/CheckboxRenderer.js +25 -4
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +7 -8
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/icons/calculated-column.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +194 -4
- package/src/metamodel/adaptable.metamodel.js +280 -17
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/index.css
CHANGED
|
@@ -3103,8 +3103,7 @@ input[type='number'].ab-Input:hover::-webkit-inner-spin-button:active {
|
|
|
3103
3103
|
align-items: stretch;
|
|
3104
3104
|
flex: 1;
|
|
3105
3105
|
overflow-x: auto;
|
|
3106
|
-
padding
|
|
3107
|
-
padding-bottom: var(--ab-dashboard-gap-size); }
|
|
3106
|
+
padding: var(--ab-dashboard-gap-size); }
|
|
3108
3107
|
|
|
3109
3108
|
.ab-Dashboard__container {
|
|
3110
3109
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2-canary.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1646400837857;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -109,7 +109,7 @@ export interface IAdaptable {
|
|
|
109
109
|
redrawBody(): void;
|
|
110
110
|
redrawHeader(): void;
|
|
111
111
|
redrawRow(rowNode: RowNode): void;
|
|
112
|
-
refreshCells(rowNodes: RowNode[], columns: (string | any)[], forceUpdate: boolean): void;
|
|
112
|
+
refreshCells(rowNodes: RowNode[], columns: (string | any)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
113
113
|
setSelectedCells(): SelectedCellInfo | undefined;
|
|
114
114
|
setSelectedRows(): SelectedRowInfo | undefined;
|
|
115
115
|
jumpToRow(rowNode: RowNode): void;
|
|
@@ -165,6 +165,7 @@ export interface IAdaptable {
|
|
|
165
165
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
166
166
|
setValue(dataChangedInfo: DataChangedInfo): void;
|
|
167
167
|
cancelEdit(): any;
|
|
168
|
+
isCellEditable(rowNode: RowNode, column: Column): boolean;
|
|
168
169
|
getFirstRowNode(): RowNode;
|
|
169
170
|
forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
|
|
170
171
|
forAllVisibleRowNodesDo(func: (rowNode: RowNode) => void): void;
|
|
@@ -228,5 +229,5 @@ export interface IAdaptable {
|
|
|
228
229
|
updateColDefsForSpecialColumns({ skipSetupColumns }?: {
|
|
229
230
|
skipSetupColumns?: boolean;
|
|
230
231
|
}): void;
|
|
231
|
-
|
|
232
|
+
getAgGridColumnForColumnId(columnId: string): Column;
|
|
232
233
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ExpressionFunctionMap } from '../parser/src/types';
|
|
2
2
|
import { AdaptableModule, AdaptableQLModules } from '../PredefinedConfig/Common/Types';
|
|
3
|
+
/**
|
|
4
|
+
* Options for managing AdaptableQL - the Adaptable Query Lanaguage which evaluates Predicates and Expressions
|
|
5
|
+
*/
|
|
3
6
|
export interface AdaptableQLOptions {
|
|
4
7
|
/**
|
|
5
8
|
* Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates
|
|
@@ -65,6 +65,10 @@ export interface FilterOptions {
|
|
|
65
65
|
* @gridInfoItem
|
|
66
66
|
*/
|
|
67
67
|
quickFilterValuesTrigger?: 'mouseenter' | 'click';
|
|
68
|
+
/**
|
|
69
|
+
* TODO: add comment
|
|
70
|
+
*/
|
|
71
|
+
quickFilterHeight?: number;
|
|
68
72
|
/**
|
|
69
73
|
* When to re-filter grid after user edits data: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')
|
|
70
74
|
*
|
|
@@ -11,7 +11,7 @@ export interface SettingsPanelOptions {
|
|
|
11
11
|
/**
|
|
12
12
|
* Icon for Settings Panel Can be `ConfigurationIcon`, `ApplicationIcon` or a custom Icon
|
|
13
13
|
*
|
|
14
|
-
* @defaultValue
|
|
14
|
+
* @defaultValue `ConfigurationIcon`
|
|
15
15
|
*/
|
|
16
16
|
icon?: 'ConfigurationIcon' | 'ApplicationIcon' | AdaptableIcon;
|
|
17
17
|
/**
|
|
@@ -35,7 +35,7 @@ export interface SettingsPanelOptions {
|
|
|
35
35
|
/**
|
|
36
36
|
* Initial position of Settings Panel window
|
|
37
37
|
*
|
|
38
|
-
* @defaultValue
|
|
38
|
+
* @defaultValue Middle of Screen
|
|
39
39
|
*/
|
|
40
40
|
position?: {
|
|
41
41
|
x: number;
|
|
@@ -44,7 +44,7 @@ export interface SettingsPanelOptions {
|
|
|
44
44
|
/**
|
|
45
45
|
* Initial size of Settings Panel
|
|
46
46
|
*
|
|
47
|
-
* @defaultValue
|
|
47
|
+
* @defaultValue Computed based on size of screen
|
|
48
48
|
*/
|
|
49
49
|
size?: {
|
|
50
50
|
width: number;
|
|
@@ -61,11 +61,12 @@ export interface SettingsPanelOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
customSettingsPanels?: CustomSettingsPanel[];
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Definition of a Custom Panel to add to the Adaptable Settings Panel
|
|
66
|
+
*/
|
|
64
67
|
export interface CustomSettingsPanel {
|
|
65
68
|
/**
|
|
66
|
-
*
|
|
67
|
-
* To be shown you must include it in settingsPanelOptions.navigation.
|
|
68
|
-
* By default is added to the end.
|
|
69
|
+
* Appears in Settings Panel Navigation and must be included in settingsPanelOptions.navigation for it to be displayed (by default added to the end)
|
|
69
70
|
*/
|
|
70
71
|
name: string;
|
|
71
72
|
/**
|
|
@@ -59,7 +59,7 @@ export interface ToolPanelOptions {
|
|
|
59
59
|
/**
|
|
60
60
|
* ToolPanel Buttons provided by Users which perform custom behaviour
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
customButtons?: AdaptableButton<ToolPanelButtonContext>[];
|
|
63
63
|
/**
|
|
64
64
|
* ToolPanels provided by Users which contain custom content
|
|
65
65
|
*/
|
|
@@ -80,7 +80,7 @@ export interface CustomToolPanel extends AdaptableObject {
|
|
|
80
80
|
/**
|
|
81
81
|
* Optional set of buttons to show in the ToolPanel
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
buttons?: AdaptableButton<CustomToolPanelButtonContext>[];
|
|
84
84
|
/**
|
|
85
85
|
* Function to provide bespoke content when NOT using a Framework wrapper
|
|
86
86
|
*/
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -60,10 +60,9 @@ export interface GridApi {
|
|
|
60
60
|
* @param columnId column to update
|
|
61
61
|
* @param newValue new value to use
|
|
62
62
|
* @param primaryKeyValue primaryKeyValue of the row (i.e. the value in the PrimaryKeyColumn identified in Adaptable Options)
|
|
63
|
-
* @param forceFilter whether to refilter the Grid (and update aggregations) on data change - default is false
|
|
64
63
|
*
|
|
65
64
|
*/
|
|
66
|
-
setCellValue(columnId: string, newValue: any, primaryKeyValue: any
|
|
65
|
+
setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
|
|
67
66
|
/**
|
|
68
67
|
* Updates multiple cells
|
|
69
68
|
* @param gridCells cells to update
|
|
@@ -198,7 +198,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
198
198
|
return agGridColumn.getColDef().field || '';
|
|
199
199
|
}
|
|
200
200
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
201
|
-
return this.adaptable.
|
|
201
|
+
return this.adaptable.getAgGridColumnForColumnId(columnId);
|
|
202
202
|
}
|
|
203
203
|
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
204
204
|
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
@@ -51,12 +51,16 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
51
|
if (!abColumn || abColumn.readOnly) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
+
const rowNode = this.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
55
|
+
if (!this.adaptable.isCellEditable(rowNode, this.adaptable.getAgGridColumnForColumnId(columnId))) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
54
58
|
const gridCell = {
|
|
55
59
|
primaryKeyValue: primaryKeyValue,
|
|
56
60
|
rawValue: newValue,
|
|
57
61
|
displayValue: newValue,
|
|
58
62
|
normalisedValue: newValue,
|
|
59
|
-
rowNode:
|
|
63
|
+
rowNode: rowNode,
|
|
60
64
|
column: abColumn,
|
|
61
65
|
};
|
|
62
66
|
this.adaptable.api.internalApi.setGridCell(gridCell);
|
|
@@ -336,23 +340,16 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
336
340
|
this.adaptable.redrawRow(rowNode);
|
|
337
341
|
}
|
|
338
342
|
areCellsEditable(gridCells) {
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if (gridCell.column.readOnly) {
|
|
343
|
-
returnValue = false;
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
let cellEditableFn = this.adaptable.adaptableOptions.editOptions.isCellEditable;
|
|
347
|
-
if (cellEditableFn) {
|
|
348
|
-
let functionReturnValue = cellEditableFn(gridCell);
|
|
349
|
-
if (!functionReturnValue) {
|
|
350
|
-
returnValue = false;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
343
|
+
for (let gridCell of gridCells) {
|
|
344
|
+
if (gridCell.column.readOnly) {
|
|
345
|
+
return false;
|
|
353
346
|
}
|
|
354
|
-
|
|
355
|
-
|
|
347
|
+
const isCellEditable = this.adaptable.isCellEditable(gridCell.rowNode, this.adaptable.getAgGridColumnForColumnId(gridCell.column.columnId));
|
|
348
|
+
if (!isCellEditable) {
|
|
349
|
+
return false;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return true;
|
|
356
353
|
}
|
|
357
354
|
getRowCount() {
|
|
358
355
|
return this.adaptable.getRowCount();
|
|
@@ -9,7 +9,7 @@ class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
9
9
|
this.dispatchAction(PopupRedux.PopupShowScreen(moduleName));
|
|
10
10
|
}
|
|
11
11
|
showCustomSettingsPanel(name) {
|
|
12
|
-
this.dispatchAction(PopupRedux.PopupShowScreen(
|
|
12
|
+
this.dispatchAction(PopupRedux.PopupShowScreen(null, name));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.SettingsPanelApiImpl = SettingsPanelApiImpl;
|
|
@@ -30,7 +30,7 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
30
30
|
}
|
|
31
31
|
getCustomToolPanelButtons() {
|
|
32
32
|
var _a;
|
|
33
|
-
return (_a = this.getToolPanelOptions().
|
|
33
|
+
return (_a = this.getToolPanelOptions().customButtons) !== null && _a !== void 0 ? _a : [];
|
|
34
34
|
}
|
|
35
35
|
getCustomToolPanelByName(name) {
|
|
36
36
|
return this.getCustomToolPanels().find((customToolPanel) => customToolPanel.name === name);
|
|
@@ -46,7 +46,7 @@ export interface AdaptableColumn extends AdaptableColumnBase {
|
|
|
46
46
|
*/
|
|
47
47
|
flex?: number;
|
|
48
48
|
/**
|
|
49
|
-
* Is column editable
|
|
49
|
+
* Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable
|
|
50
50
|
*/
|
|
51
51
|
readOnly: boolean;
|
|
52
52
|
/**
|
|
@@ -22,7 +22,10 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
23
23
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
24
24
|
export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
27
|
+
*/
|
|
28
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
26
29
|
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
27
30
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
28
31
|
__subType?: true;
|
|
@@ -11,7 +11,7 @@ import { SuspendableObject } from './Common/SuspendableObject';
|
|
|
11
11
|
**/
|
|
12
12
|
export interface ConditionalStyleState extends ConfigState {
|
|
13
13
|
/**
|
|
14
|
-
* Array of Conditional Styles to ship with
|
|
14
|
+
* Array of Conditional Styles to ship with AdapTable
|
|
15
15
|
*/
|
|
16
16
|
ConditionalStyles?: ConditionalStyle[];
|
|
17
17
|
}
|
|
@@ -32,7 +32,7 @@ export interface ConditionalStyle extends SuspendableObject {
|
|
|
32
32
|
*/
|
|
33
33
|
Style: AdaptableStyle;
|
|
34
34
|
/**
|
|
35
|
-
* Whether to apply Style in Grouped Rows
|
|
35
|
+
* Whether to apply Style in Grouped Rows and when Pivoting
|
|
36
36
|
* @defaultValue false
|
|
37
37
|
*/
|
|
38
38
|
IncludeGroupedRows?: boolean;
|
|
@@ -48,6 +48,9 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
48
48
|
*/
|
|
49
49
|
IncludeGroupedRows?: boolean;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
|
|
53
|
+
*/
|
|
51
54
|
export interface ColumnStyle {
|
|
52
55
|
/**
|
|
53
56
|
* Style a numeric column so each cell value shows a gradient shade
|
|
@@ -62,6 +65,9 @@ export interface ColumnStyle {
|
|
|
62
65
|
*/
|
|
63
66
|
CheckBoxStyle?: boolean;
|
|
64
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Style used to display Percent Bars in Format Column
|
|
70
|
+
*/
|
|
65
71
|
export interface PercentBarStyle {
|
|
66
72
|
/**
|
|
67
73
|
* Ranges (e.g. to allow a traffic light effect)
|
|
@@ -85,6 +91,9 @@ export interface PercentBarStyle {
|
|
|
85
91
|
*/
|
|
86
92
|
BackColor?: string;
|
|
87
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Used to display Gradient Styles in Format Column
|
|
96
|
+
*/
|
|
88
97
|
export interface GradientStyle {
|
|
89
98
|
/**
|
|
90
99
|
* Ranges (e.g. to allow a traffic light effect)
|
|
@@ -95,6 +104,9 @@ export interface GradientStyle {
|
|
|
95
104
|
*/
|
|
96
105
|
ColumnComparison?: ColumnComparison;
|
|
97
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Defines which Colours to show in Gradient and Percent Bar Styles
|
|
109
|
+
*/
|
|
98
110
|
export interface CellColorRange {
|
|
99
111
|
/**
|
|
100
112
|
* Start number of Range
|
|
@@ -113,6 +125,9 @@ export interface CellColorRange {
|
|
|
113
125
|
*/
|
|
114
126
|
ReverseGradient?: boolean;
|
|
115
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
130
|
+
*/
|
|
116
131
|
export interface ColumnComparison {
|
|
117
132
|
/**
|
|
118
133
|
* Start value - either numeric or Column name
|
|
@@ -24,7 +24,7 @@ export interface PlusMinusNudge extends SuspendableObject {
|
|
|
24
24
|
*/
|
|
25
25
|
NudgeValue: number;
|
|
26
26
|
/**
|
|
27
|
-
* (Optional) Boolean
|
|
27
|
+
* (Optional) Boolean Expression to determine whether to apply the Nudge
|
|
28
28
|
*/
|
|
29
29
|
Rule?: AdaptableBooleanQuery;
|
|
30
30
|
}
|
|
@@ -19,7 +19,7 @@ export declare const ALERT_DEFINITION_SUSPEND = "ALERT_DEFINITION_SUSPEND";
|
|
|
19
19
|
/**
|
|
20
20
|
* @ReduxAction Alert Definition is un-suspended, or activated
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const ALERT_DEFINITION_UNSUSPEND = "ALERT_DEFINITION_UNSUSPEND";
|
|
23
23
|
export declare const ALERT_CLEAR_FLASHING_CELLS = "ALERT_CLEAR_FLASHING_CELLS";
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction Alert Module is ready
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertReducer = exports.AlertClearFlashingCells = exports.AlertReady = exports.AlertDefinitionUnSuspend = exports.AlertDefinitionSuspend = exports.AlertDefinitionDelete = exports.AlertDefinitionEdit = exports.AlertDefinitionAdd = exports.ALERT_READY = exports.ALERT_CLEAR_FLASHING_CELLS = exports.
|
|
3
|
+
exports.AlertReducer = exports.AlertClearFlashingCells = exports.AlertReady = exports.AlertDefinitionUnSuspend = exports.AlertDefinitionSuspend = exports.AlertDefinitionDelete = exports.AlertDefinitionEdit = exports.AlertDefinitionAdd = exports.ALERT_READY = exports.ALERT_CLEAR_FLASHING_CELLS = exports.ALERT_DEFINITION_UNSUSPEND = exports.ALERT_DEFINITION_SUSPEND = exports.ALERT_DEFINITION_DELETE = exports.ALERT_DEFINITION_EDIT = exports.ALERT_DEFINITION_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -24,7 +24,7 @@ exports.ALERT_DEFINITION_SUSPEND = 'ALERT_DEFINITION_SUSPEND';
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction Alert Definition is un-suspended, or activated
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.ALERT_DEFINITION_UNSUSPEND = 'ALERT_DEFINITION_UNSUSPEND';
|
|
28
28
|
exports.ALERT_CLEAR_FLASHING_CELLS = 'ALERT_CLEAR_FLASHING_CELLS';
|
|
29
29
|
/**
|
|
30
30
|
* @ReduxAction Alert Module is ready
|
|
@@ -47,7 +47,7 @@ exports.AlertDefinitionSuspend = (alertDefinition) => ({
|
|
|
47
47
|
alertDefinition,
|
|
48
48
|
});
|
|
49
49
|
exports.AlertDefinitionUnSuspend = (alertDefinition) => ({
|
|
50
|
-
type: exports.
|
|
50
|
+
type: exports.ALERT_DEFINITION_UNSUSPEND,
|
|
51
51
|
alertDefinition,
|
|
52
52
|
});
|
|
53
53
|
exports.AlertReady = (alertState) => ({
|
|
@@ -84,7 +84,7 @@ exports.AlertReducer = (state = initialState, action) => {
|
|
|
84
84
|
case exports.ALERT_DEFINITION_SUSPEND: {
|
|
85
85
|
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, true) });
|
|
86
86
|
}
|
|
87
|
-
case exports.
|
|
87
|
+
case exports.ALERT_DEFINITION_UNSUSPEND: {
|
|
88
88
|
return Object.assign(Object.assign({}, state), { AlertDefinitions: utils_1.changeIsSuspendInList(action.alertDefinition, state.AlertDefinitions, false) });
|
|
89
89
|
}
|
|
90
90
|
case exports.ALERT_CLEAR_FLASHING_CELLS: {
|
|
@@ -23,7 +23,7 @@ export declare const CONDITIONAL_STYLE_SUSPEND = "CONDITIONAL_STYLE_SUSPEND";
|
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction Conditional Style is un-suspended, or activated
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const CONDITIONAL_STYLE_UNSUSPEND = "CONDITIONAL_STYLE_UNSUSPEND";
|
|
27
27
|
export interface ConditionalStyleAction extends Redux.Action {
|
|
28
28
|
conditionalStyle: ConditionalStyle;
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleReducer = exports.ConditionalStyleUnSuspend = exports.ConditionalStyleSuspend = exports.ConditionalStyleReady = exports.ConditionalStyleDelete = exports.ConditionalStyleEdit = exports.ConditionalStyleAdd = exports.
|
|
3
|
+
exports.ConditionalStyleReducer = exports.ConditionalStyleUnSuspend = exports.ConditionalStyleSuspend = exports.ConditionalStyleReady = exports.ConditionalStyleDelete = exports.ConditionalStyleEdit = exports.ConditionalStyleAdd = exports.CONDITIONAL_STYLE_UNSUSPEND = exports.CONDITIONAL_STYLE_SUSPEND = exports.CONDITIONAL_STYLE_READY = exports.CONDITIONAL_STYLE_DELETE = exports.CONDITIONAL_STYLE_EDIT = exports.CONDITIONAL_STYLE_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -28,7 +28,7 @@ exports.CONDITIONAL_STYLE_SUSPEND = 'CONDITIONAL_STYLE_SUSPEND';
|
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction Conditional Style is un-suspended, or activated
|
|
30
30
|
*/
|
|
31
|
-
exports.
|
|
31
|
+
exports.CONDITIONAL_STYLE_UNSUSPEND = 'CONDITIONAL_STYLE_UNSUSPEND';
|
|
32
32
|
exports.ConditionalStyleAdd = (conditionalStyle) => ({
|
|
33
33
|
type: exports.CONDITIONAL_STYLE_ADD,
|
|
34
34
|
conditionalStyle,
|
|
@@ -50,7 +50,7 @@ exports.ConditionalStyleSuspend = (conditionalStyle) => ({
|
|
|
50
50
|
conditionalStyle,
|
|
51
51
|
});
|
|
52
52
|
exports.ConditionalStyleUnSuspend = (conditionalStyle) => ({
|
|
53
|
-
type: exports.
|
|
53
|
+
type: exports.CONDITIONAL_STYLE_UNSUSPEND,
|
|
54
54
|
conditionalStyle,
|
|
55
55
|
});
|
|
56
56
|
const initialState = {
|
|
@@ -79,7 +79,7 @@ exports.ConditionalStyleReducer = (state = initialState, action) => {
|
|
|
79
79
|
case exports.CONDITIONAL_STYLE_SUSPEND: {
|
|
80
80
|
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, true) });
|
|
81
81
|
}
|
|
82
|
-
case exports.
|
|
82
|
+
case exports.CONDITIONAL_STYLE_UNSUSPEND: {
|
|
83
83
|
return Object.assign(Object.assign({}, state), { ConditionalStyles: utils_1.changeIsSuspendInList(action.conditionalStyle, state.ConditionalStyles, false) });
|
|
84
84
|
}
|
|
85
85
|
default:
|
|
@@ -19,7 +19,7 @@ export declare const CUSTOM_SORT_SUSPEND = "CUSTOM_SORT_SUSPEND";
|
|
|
19
19
|
/**
|
|
20
20
|
* @ReduxAction A Custom Sort has been un-suspended (activated)
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const CUSTOM_SORT_UNSUSPEND = "CUSTOM_SORT_UNSUSPEND";
|
|
23
23
|
/**
|
|
24
24
|
* @ReduxAction Custom Sort Module is ready
|
|
25
25
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomSortReducer = exports.CustomSortReady = exports.CustomSortUnSuspend = exports.CustomSortSuspend = exports.CustomSortDelete = exports.CustomSortEdit = exports.CustomSortAdd = exports.CUSTOM_SORT_READY = exports.
|
|
3
|
+
exports.CustomSortReducer = exports.CustomSortReady = exports.CustomSortUnSuspend = exports.CustomSortSuspend = exports.CustomSortDelete = exports.CustomSortEdit = exports.CustomSortAdd = exports.CUSTOM_SORT_READY = exports.CUSTOM_SORT_UNSUSPEND = exports.CUSTOM_SORT_SUSPEND = exports.CUSTOM_SORT_DELETE = exports.CUSTOM_SORT_EDIT = exports.CUSTOM_SORT_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -24,7 +24,7 @@ exports.CUSTOM_SORT_SUSPEND = 'CUSTOM_SORT_SUSPEND';
|
|
|
24
24
|
/**
|
|
25
25
|
* @ReduxAction A Custom Sort has been un-suspended (activated)
|
|
26
26
|
*/
|
|
27
|
-
exports.
|
|
27
|
+
exports.CUSTOM_SORT_UNSUSPEND = 'CUSTOM_SORT_UNSUSPEND';
|
|
28
28
|
/**
|
|
29
29
|
* @ReduxAction Custom Sort Module is ready
|
|
30
30
|
*/
|
|
@@ -46,7 +46,7 @@ exports.CustomSortSuspend = (customSort) => ({
|
|
|
46
46
|
customSort,
|
|
47
47
|
});
|
|
48
48
|
exports.CustomSortUnSuspend = (customSort) => ({
|
|
49
|
-
type: exports.
|
|
49
|
+
type: exports.CUSTOM_SORT_UNSUSPEND,
|
|
50
50
|
customSort,
|
|
51
51
|
});
|
|
52
52
|
exports.CustomSortReady = (customSortState) => ({
|
|
@@ -77,7 +77,7 @@ exports.CustomSortReducer = (state = initialState, action) => {
|
|
|
77
77
|
case exports.CUSTOM_SORT_SUSPEND: {
|
|
78
78
|
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, true) });
|
|
79
79
|
}
|
|
80
|
-
case exports.
|
|
80
|
+
case exports.CUSTOM_SORT_UNSUSPEND: {
|
|
81
81
|
return Object.assign(Object.assign({}, state), { CustomSorts: utils_1.changeIsSuspendInList(action.customSort, state.CustomSorts, false) });
|
|
82
82
|
}
|
|
83
83
|
default:
|
|
@@ -2,30 +2,30 @@ import { FlashingCellState } from '../../PredefinedConfig/FlashingCellState';
|
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { FlashingCellDefinition } from '../../PredefinedConfig/FlashingCellState';
|
|
4
4
|
/**
|
|
5
|
-
* @ReduxAction A Flashing
|
|
5
|
+
* @ReduxAction A Flashing Cell Definition has been added
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const FLASHING_CELL_DEFINITION_ADD = "FLASHING_CELL_DEFINITION_ADD";
|
|
8
8
|
/**
|
|
9
|
-
* @ReduxAction A Flashing
|
|
9
|
+
* @ReduxAction A Flashing Cell Definition has been edited
|
|
10
10
|
*/
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const FLASHING_CELL_DEFINITION_EDIT = "FLASHING_CELL_DEFINITION_EDIT";
|
|
12
12
|
/**
|
|
13
|
-
* @ReduxAction A Flashing
|
|
13
|
+
* @ReduxAction A Flashing Cell Definition has been deleted
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const FLASHING_CELL_DEFINITION_DELETE = "FLASHING_CELL_DEFINITION_DELETE";
|
|
16
16
|
/**
|
|
17
|
-
* @ReduxAction Flashing
|
|
17
|
+
* @ReduxAction Flashing Cell Definition Style is suspended
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const FLASHING_CELL_DEFINITION_SUSPEND = "FLASHING_CELL_DEFINITION_SUSPEND";
|
|
20
20
|
/**
|
|
21
|
-
* @ReduxAction Flashing
|
|
21
|
+
* @ReduxAction Flashing Cell Definition is un-suspended, or activated
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const FLASHING_CELL_DEFINITION_UNSUSPEND = "FLASHING_CELL_DEFINITION_UNSUSPEND";
|
|
24
24
|
/**
|
|
25
|
-
* @ReduxAction Flashing
|
|
25
|
+
* @ReduxAction Flashing Cell Module is ready
|
|
26
26
|
*/
|
|
27
27
|
export declare const FLASHING_CELL_READY = "FLASHING_CELL_READY";
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const FLASHING_CELL_DEFINITION_SET = "FLASHING_CELL_DEFINITION_SET";
|
|
29
29
|
export interface FlashingCellDefinitionAction extends Redux.Action {
|
|
30
30
|
flashingCellDefinition: FlashingCellDefinition;
|
|
31
31
|
}
|