@adaptabletools/adaptable 13.0.0-canary.12 → 13.0.0-canary.14
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/base.css +1131 -732
- package/base.css.map +1 -0
- package/bundle.cjs.js +174 -157
- package/index.css +1132 -732
- package/index.css.map +1 -0
- package/package.json +5 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +20 -3
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
- package/src/Api/AdaptableApi.d.ts +2 -0
- package/src/Api/FormatColumnApi.d.ts +2 -23
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -6
- package/src/Api/Implementation/FormatColumnApiImpl.js +13 -111
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +19 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +134 -0
- package/src/Api/StyledColumnApi.d.ts +68 -0
- package/src/Api/StyledColumnApi.js +2 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +113 -0
- package/src/PredefinedConfig/StyledColumnState.js +2 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
- package/src/Redux/Store/AdaptableStore.js +7 -0
- package/src/Strategy/StyledColumnModule.d.ts +24 -0
- package/src/Strategy/StyledColumnModule.js +165 -0
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +4 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -4
- package/src/Utilities/ObjectFactory.d.ts +3 -0
- package/src/Utilities/ObjectFactory.js +11 -3
- package/src/Utilities/Services/ModuleService.js +3 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/Components/RangesComponent.d.ts +1 -0
- package/src/View/Components/RangesComponent.js +12 -12
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/StyleComponent.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -11
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +21 -9
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -315
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +238 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/agGrid/Adaptable.d.ts +2 -1
- package/src/agGrid/Adaptable.js +49 -35
- package/src/agGrid/FilterWrapper.js +58 -19
- package/src/agGrid/FloatingFilterWrapper.js +10 -12
- package/src/agGrid/PercentBarRenderer.d.ts +6 -2
- package/src/agGrid/PercentBarRenderer.js +10 -18
- package/src/agGrid/agGridHelper.d.ts +6 -2
- package/src/agGrid/agGridHelper.js +4 -2
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +17 -0
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/icons/brush.d.ts +3 -0
- package/src/components/icons/brush.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +56 -20
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +3 -1
- package/themes/dark.css +8 -4
- package/themes/dark.css.map +1 -0
- package/themes/light.css +4 -1
- package/themes/light.css.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableComponents.d.ts +0 -1
- package/src/AdaptableComponents.js +0 -5
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
|
|
7
|
+
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
+
getStyledColumnState() {
|
|
9
|
+
return this.getAdaptableState().StyledColumn;
|
|
10
|
+
}
|
|
11
|
+
getAllStyledColumn(config) {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this.handleLayoutAssociatedObjects(this.getStyledColumnState().StyledColumns, 'StyledColumn', config)) !== null && _a !== void 0 ? _a : []);
|
|
14
|
+
}
|
|
15
|
+
getStyledColumnById(id) {
|
|
16
|
+
return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.Uuid === id);
|
|
17
|
+
}
|
|
18
|
+
getStyledColumnByColumnId(id) {
|
|
19
|
+
return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.ColumnId === id);
|
|
20
|
+
}
|
|
21
|
+
getAllActiveStyledColumn() {
|
|
22
|
+
return this.getAllStyledColumn().filter((styledcolumn) => !styledcolumn.IsSuspended);
|
|
23
|
+
}
|
|
24
|
+
getAllSuspendedStyledColumn() {
|
|
25
|
+
return this.getAllStyledColumn().filter((styledcolumn) => styledcolumn.IsSuspended);
|
|
26
|
+
}
|
|
27
|
+
deleteStyledColumn(styledColumn) {
|
|
28
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnDelete(styledColumn));
|
|
29
|
+
}
|
|
30
|
+
addStyledColumn(styledColumn) {
|
|
31
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
32
|
+
}
|
|
33
|
+
getNumericStyleMinValue(numericStyle, column, rowNode, cellValue) {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
const columnComparison = numericStyle.GradientStyle
|
|
36
|
+
? numericStyle.GradientStyle.ColumnComparison
|
|
37
|
+
: (_a = numericStyle.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
38
|
+
if (columnComparison) {
|
|
39
|
+
if (!isNaN(Number(columnComparison.MinValue))) {
|
|
40
|
+
return Number(columnComparison.MinValue);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
let columnId = columnComparison.MinValue;
|
|
44
|
+
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// for Gradient Column we want just the range that contains cell value
|
|
53
|
+
if (numericStyle.GradientStyle) {
|
|
54
|
+
let range;
|
|
55
|
+
numericStyle.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
56
|
+
if (!range) {
|
|
57
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
58
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
59
|
+
range = cellRange;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return this.getCellColorRangeMinValue(range, column);
|
|
64
|
+
}
|
|
65
|
+
// for percentbar we want to get the whole Ranges
|
|
66
|
+
if (numericStyle.PercentBarStyle) {
|
|
67
|
+
const ranges = (_b = numericStyle.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
68
|
+
if (ranges) {
|
|
69
|
+
return this.getCellColorRangeMinValue(ranges[0], column);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
getNumericStyleMaxValue(numericStyle, column, rowNode, cellValue) {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
const columnComparison = numericStyle.GradientStyle
|
|
76
|
+
? numericStyle.GradientStyle.ColumnComparison
|
|
77
|
+
: (_a = numericStyle.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
78
|
+
if (columnComparison) {
|
|
79
|
+
if (!isNaN(Number(columnComparison.MaxValue))) {
|
|
80
|
+
return Number(columnComparison.MaxValue);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
let columnId = columnComparison.MaxValue;
|
|
84
|
+
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (numericStyle.GradientStyle) {
|
|
93
|
+
let range;
|
|
94
|
+
numericStyle.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
95
|
+
if (!range) {
|
|
96
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
97
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
98
|
+
range = cellRange;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return this.getCellColorRangeMaxValue(range, column);
|
|
103
|
+
}
|
|
104
|
+
if (numericStyle.PercentBarStyle) {
|
|
105
|
+
const ranges = (_b = numericStyle.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
106
|
+
if (ranges) {
|
|
107
|
+
return this.getCellColorRangeMaxValue(ranges[ranges.length - 1], column);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
getCellColorRangeMinValue(range, column) {
|
|
112
|
+
if (!range) {
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
if (range.Min == undefined) {
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
return range.Min == 'Col-Min'
|
|
119
|
+
? this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column)
|
|
120
|
+
: range.Min;
|
|
121
|
+
}
|
|
122
|
+
getCellColorRangeMaxValue(range, column) {
|
|
123
|
+
if (!range) {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
if (range.Max == undefined) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
return range.Max == 'Col-Max'
|
|
130
|
+
? this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column)
|
|
131
|
+
: range.Max;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.StyledColumnApiImpl = StyledColumnApiImpl;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
|
|
2
|
+
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
+
import { CellColorRange } from '../PredefinedConfig/FormatColumnState';
|
|
4
|
+
import { StyledColumnState, StyledColumn } from '../PredefinedConfig/StyledColumnState';
|
|
5
|
+
/**
|
|
6
|
+
* Provides run-time access to the Format Column Module and associated state
|
|
7
|
+
*/
|
|
8
|
+
export interface StyledColumnApi {
|
|
9
|
+
/**
|
|
10
|
+
* Delete styled column
|
|
11
|
+
* @param styledColumn
|
|
12
|
+
*/
|
|
13
|
+
deleteStyledColumn(styledColumn: StyledColumn): void;
|
|
14
|
+
/**
|
|
15
|
+
* Create a styled column
|
|
16
|
+
* @param styledColumn
|
|
17
|
+
*/
|
|
18
|
+
addStyledColumn(styledColumn: StyledColumn): void;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves Format Column section from Adaptable State
|
|
21
|
+
*/
|
|
22
|
+
getStyledColumnState(): StyledColumnState;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves all Format Columns in Adaptable State
|
|
25
|
+
* @returns format columns
|
|
26
|
+
*/
|
|
27
|
+
getAllStyledColumn(config?: {
|
|
28
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
29
|
+
}): StyledColumn[];
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves Format Column by Id
|
|
32
|
+
* @param id Format Column id
|
|
33
|
+
* @returns format column
|
|
34
|
+
*/
|
|
35
|
+
getStyledColumnById(id: StyledColumn['Uuid']): StyledColumn;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves Format Column by Column Id
|
|
38
|
+
* @param columnId Format Column id
|
|
39
|
+
* @returns format column
|
|
40
|
+
*/
|
|
41
|
+
getStyledColumnByColumnId(columnId: StyledColumn['ColumnId']): StyledColumn;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves all active (not-suspended) Format Columns in Adaptable State
|
|
44
|
+
* @returns format columns
|
|
45
|
+
*/
|
|
46
|
+
getAllActiveStyledColumn(): StyledColumn[];
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves all suspended Format Columns in Adaptable State
|
|
49
|
+
* @returns format columns
|
|
50
|
+
*/
|
|
51
|
+
getAllSuspendedStyledColumn(): StyledColumn[];
|
|
52
|
+
/**
|
|
53
|
+
* Gets the Minimum Value to display for a Numeric Style
|
|
54
|
+
* @param numericStyle Numeric Style to check
|
|
55
|
+
* @param rowNode current Row Node
|
|
56
|
+
* @param cellValue current Cell Value
|
|
57
|
+
*/
|
|
58
|
+
getNumericStyleMinValue(numericStyle: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
59
|
+
/**
|
|
60
|
+
* Gets the Maximum Value to display for a Numeric Style
|
|
61
|
+
* @param numericStyle Numeric Style to check
|
|
62
|
+
* @param rowNode current Row Node
|
|
63
|
+
* @param cellValue current Cell Value
|
|
64
|
+
*/
|
|
65
|
+
getNumericStyleMaxValue(numericStyle: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
66
|
+
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
67
|
+
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
68
|
+
}
|
|
@@ -23,6 +23,7 @@ import { QueryState } from './QueryState';
|
|
|
23
23
|
import { FlashingCellState } from './FlashingCellState';
|
|
24
24
|
import { StatusBarState } from './StatusBarState';
|
|
25
25
|
import { ChartingState } from './ChartingState';
|
|
26
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
26
27
|
/**
|
|
27
28
|
* The main state object of Adaptable
|
|
28
29
|
*/
|
|
@@ -48,6 +49,7 @@ export interface AdaptablePersistentState {
|
|
|
48
49
|
Query: QueryState;
|
|
49
50
|
QuickSearch: QuickSearchState;
|
|
50
51
|
Schedule: ScheduleState;
|
|
52
|
+
StyledColumn: StyledColumnState;
|
|
51
53
|
Shortcut: ShortcutState;
|
|
52
54
|
StatusBar: StatusBarState;
|
|
53
55
|
TeamSharing: TeamSharingState;
|
|
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
|
|
|
51
51
|
/**
|
|
52
52
|
* All AdapTable internal icon names
|
|
53
53
|
*/
|
|
54
|
-
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
54
|
+
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
@@ -22,15 +22,15 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
/**
|
|
23
23
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
24
24
|
*/
|
|
25
|
-
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
25
|
+
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
26
26
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
27
27
|
export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
|
|
28
28
|
/**
|
|
29
29
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
30
30
|
*/
|
|
31
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
31
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
32
32
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
33
|
-
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
33
|
+
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
34
34
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
35
35
|
__subType?: true;
|
|
36
36
|
}) | Literals;
|
|
@@ -102,6 +102,7 @@ exports.ALL_MODULES = [
|
|
|
102
102
|
ModuleConstants.SettingsPanelModuleId,
|
|
103
103
|
ModuleConstants.ShortcutModuleId,
|
|
104
104
|
ModuleConstants.SmartEditModuleId,
|
|
105
|
+
ModuleConstants.StyledColumnModuleId,
|
|
105
106
|
ModuleConstants.StateManagementModuleId,
|
|
106
107
|
ModuleConstants.StatusBarModuleId,
|
|
107
108
|
ModuleConstants.SystemStatusModuleId,
|
|
@@ -18,6 +18,7 @@ import { ToolPanelState } from './ToolPanelState';
|
|
|
18
18
|
import { QueryState } from './QueryState';
|
|
19
19
|
import { StatusBarState } from './StatusBarState';
|
|
20
20
|
import { ChartingState } from './ChartingState';
|
|
21
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
21
22
|
/**
|
|
22
23
|
* This is the main Predefined Config interface which developers will populate at design-time
|
|
23
24
|
*/
|
|
@@ -87,6 +88,10 @@ export interface PredefinedConfig {
|
|
|
87
88
|
* Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues
|
|
88
89
|
*/
|
|
89
90
|
Shortcut?: ShortcutState;
|
|
91
|
+
/**
|
|
92
|
+
* Supplies a collection of Special Column Styles
|
|
93
|
+
*/
|
|
94
|
+
StyledColumn?: StyledColumnState;
|
|
90
95
|
/**
|
|
91
96
|
* Configures the Adaptable Status Bar
|
|
92
97
|
*/
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ConfigState } from './ConfigState';
|
|
2
|
+
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
|
+
/**
|
|
4
|
+
* Predefined Configuration for Special Column Style Module
|
|
5
|
+
*/
|
|
6
|
+
export interface StyledColumnState extends ConfigState {
|
|
7
|
+
/**
|
|
8
|
+
* Collection of Special Column Styles
|
|
9
|
+
*/
|
|
10
|
+
StyledColumns?: StyledColumn[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Object used in Special Column Style function
|
|
14
|
+
*/
|
|
15
|
+
export interface StyledColumn extends SuspendableObject {
|
|
16
|
+
ColumnId: string;
|
|
17
|
+
GradientStyle?: GradientStyle;
|
|
18
|
+
/**
|
|
19
|
+
* Style a numeric column so each cell displays a 'bar'
|
|
20
|
+
*/
|
|
21
|
+
PercentBarStyle?: PercentBarStyle;
|
|
22
|
+
/**
|
|
23
|
+
* Style a boolean column so each cell displays a checkbox
|
|
24
|
+
*/
|
|
25
|
+
CheckBoxStyle?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Style used to display Percent Bars in Special Column Style
|
|
29
|
+
*/
|
|
30
|
+
export interface PercentBarStyle extends NumericStyledColumn {
|
|
31
|
+
/**
|
|
32
|
+
* Ranges (e.g. to allow a traffic light effect)
|
|
33
|
+
*/
|
|
34
|
+
CellRanges?: CellColorRange[];
|
|
35
|
+
/**
|
|
36
|
+
* Compares cell values to another Column
|
|
37
|
+
*/
|
|
38
|
+
ColumnComparison?: ColumnComparison;
|
|
39
|
+
/**
|
|
40
|
+
* Whether Cell shows Cell Value, Percent Value, both or none
|
|
41
|
+
*/
|
|
42
|
+
CellText?: CellTextOptions;
|
|
43
|
+
/**
|
|
44
|
+
* Whether Tooltip shows Cell Value, Percent Value, both or none
|
|
45
|
+
*/
|
|
46
|
+
ToolTipText?: CellTextOptions;
|
|
47
|
+
/**
|
|
48
|
+
* Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required
|
|
49
|
+
* @defaultValue Gray
|
|
50
|
+
*/
|
|
51
|
+
BackColor?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface NumericStyledColumn {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Used to display Gradient Styles in Special Column Style
|
|
57
|
+
*/
|
|
58
|
+
export interface GradientStyle extends NumericStyledColumn {
|
|
59
|
+
/**
|
|
60
|
+
* Ranges (e.g. to allow a traffic light effect)
|
|
61
|
+
*/
|
|
62
|
+
CellRanges?: CellColorRange[];
|
|
63
|
+
/**
|
|
64
|
+
* Compares cell values to another Column
|
|
65
|
+
*/
|
|
66
|
+
ColumnComparison?: ColumnComparison;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Defines which Colours to show in Gradient and Percent Bar Styles
|
|
70
|
+
*/
|
|
71
|
+
export interface CellColorRange {
|
|
72
|
+
/**
|
|
73
|
+
* Start number of Range
|
|
74
|
+
*/
|
|
75
|
+
Min: number | 'Col-Min';
|
|
76
|
+
/**
|
|
77
|
+
* End number of Range
|
|
78
|
+
*/
|
|
79
|
+
Max: number | 'Col-Max';
|
|
80
|
+
/**
|
|
81
|
+
* Cell colour to use for values that fall inside Range
|
|
82
|
+
*/
|
|
83
|
+
Color: string;
|
|
84
|
+
/**
|
|
85
|
+
* Reverses the Gradient so the lower the cell value the darker the colour
|
|
86
|
+
*/
|
|
87
|
+
ReverseGradient?: boolean;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
91
|
+
*/
|
|
92
|
+
export interface ColumnComparison {
|
|
93
|
+
/**
|
|
94
|
+
* Start value - either numeric or Column name
|
|
95
|
+
*/
|
|
96
|
+
MinValue: number | string;
|
|
97
|
+
/**
|
|
98
|
+
* End value - either numeric or Column name
|
|
99
|
+
*/
|
|
100
|
+
MaxValue: number | string;
|
|
101
|
+
/**
|
|
102
|
+
* Colour to use for the Comparison
|
|
103
|
+
*/
|
|
104
|
+
Color: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Array of CellTextOption available in Special Column Styles
|
|
108
|
+
*/
|
|
109
|
+
export declare type CellTextOptions = CellTextOption[];
|
|
110
|
+
/**
|
|
111
|
+
* Text optionally to show in a Special Column Style special style: 'CellValue' or 'PercentageValue'
|
|
112
|
+
*/
|
|
113
|
+
export declare type CellTextOption = 'CellValue' | 'PercentageValue';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { StyledColumnState, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
|
|
2
|
+
import * as Redux from 'redux';
|
|
3
|
+
/**
|
|
4
|
+
* @ReduxAction A Special Column Style has been added
|
|
5
|
+
*/
|
|
6
|
+
export declare const STYLED_COLUMN_ADD = "STYLED_COLUMN_ADD";
|
|
7
|
+
/**
|
|
8
|
+
* @ReduxAction A Special Column Style has been edited
|
|
9
|
+
*/
|
|
10
|
+
export declare const STYLED_COLUMN_EDIT = "STYLED_COLUMN_EDIT";
|
|
11
|
+
/**
|
|
12
|
+
* @ReduxAction A Special Column Style has been deleted
|
|
13
|
+
*/
|
|
14
|
+
export declare const STYLED_COLUMN_DELETE = "STYLED_COLUMN_DELETE";
|
|
15
|
+
/**
|
|
16
|
+
* @ReduxAction StyledColumn Module is ready
|
|
17
|
+
*/
|
|
18
|
+
export declare const STYLED_COLUMN_READY = "STYLED_COLUMN_READY";
|
|
19
|
+
/**
|
|
20
|
+
* @ReduxAction StyledColumn Module is suspended
|
|
21
|
+
*/
|
|
22
|
+
export declare const STYLED_COLUMN_SUSPEND = "STYLED_COLUMN_SUSPEND";
|
|
23
|
+
/**
|
|
24
|
+
* @ReduxAction StyledColumn Module is unsuspended, or activated
|
|
25
|
+
*/
|
|
26
|
+
export declare const STYLED_COLUMN_UNSUSPEND = "STYLED_COLUMN_UNSUSPEND";
|
|
27
|
+
export interface StyledColumnAction extends Redux.Action {
|
|
28
|
+
StyledColumn: StyledColumn;
|
|
29
|
+
}
|
|
30
|
+
export interface StyledColumnAddAction extends StyledColumnAction {
|
|
31
|
+
}
|
|
32
|
+
export interface StyledColumnEditAction extends StyledColumnAction {
|
|
33
|
+
}
|
|
34
|
+
export interface StyledColumnDeleteAction extends StyledColumnAction {
|
|
35
|
+
}
|
|
36
|
+
export interface StyledColumnSuspendAction extends StyledColumnAction {
|
|
37
|
+
}
|
|
38
|
+
export interface StyledColumnUnSuspendAction extends StyledColumnAction {
|
|
39
|
+
}
|
|
40
|
+
export interface StyledColumnReadyAction extends Redux.Action {
|
|
41
|
+
StyledColumnState: StyledColumnState;
|
|
42
|
+
}
|
|
43
|
+
export declare const StyledColumnAdd: (formatColumn: StyledColumn) => StyledColumnAddAction;
|
|
44
|
+
export declare const StyledColumnEdit: (formatColumn: StyledColumn) => StyledColumnEditAction;
|
|
45
|
+
export declare const StyledColumnDelete: (formatColumn: StyledColumn) => StyledColumnDeleteAction;
|
|
46
|
+
export declare const StyledColumnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
|
|
47
|
+
export declare const StyledColumnUnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
|
|
48
|
+
export declare const StyledColumnReady: (formatColumnState: StyledColumnState) => StyledColumnReadyAction;
|
|
49
|
+
export declare const StyledColumnReducer: Redux.Reducer<StyledColumnState>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnReducer = exports.StyledColumnReady = exports.StyledColumnUnSuspend = exports.StyledColumnSuspend = exports.StyledColumnDelete = exports.StyledColumnEdit = exports.StyledColumnAdd = exports.STYLED_COLUMN_UNSUSPEND = exports.STYLED_COLUMN_SUSPEND = exports.STYLED_COLUMN_READY = exports.STYLED_COLUMN_DELETE = exports.STYLED_COLUMN_EDIT = exports.STYLED_COLUMN_ADD = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
|
+
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
|
+
/**
|
|
9
|
+
* @ReduxAction A Special Column Style has been added
|
|
10
|
+
*/
|
|
11
|
+
exports.STYLED_COLUMN_ADD = 'STYLED_COLUMN_ADD';
|
|
12
|
+
/**
|
|
13
|
+
* @ReduxAction A Special Column Style has been edited
|
|
14
|
+
*/
|
|
15
|
+
exports.STYLED_COLUMN_EDIT = 'STYLED_COLUMN_EDIT';
|
|
16
|
+
/**
|
|
17
|
+
* @ReduxAction A Special Column Style has been deleted
|
|
18
|
+
*/
|
|
19
|
+
exports.STYLED_COLUMN_DELETE = 'STYLED_COLUMN_DELETE';
|
|
20
|
+
/**
|
|
21
|
+
* @ReduxAction StyledColumn Module is ready
|
|
22
|
+
*/
|
|
23
|
+
exports.STYLED_COLUMN_READY = 'STYLED_COLUMN_READY';
|
|
24
|
+
/**
|
|
25
|
+
* @ReduxAction StyledColumn Module is suspended
|
|
26
|
+
*/
|
|
27
|
+
exports.STYLED_COLUMN_SUSPEND = 'STYLED_COLUMN_SUSPEND';
|
|
28
|
+
/**
|
|
29
|
+
* @ReduxAction StyledColumn Module is unsuspended, or activated
|
|
30
|
+
*/
|
|
31
|
+
exports.STYLED_COLUMN_UNSUSPEND = 'STYLED_COLUMN_UNSUSPEND';
|
|
32
|
+
const StyledColumnAdd = (formatColumn) => ({
|
|
33
|
+
type: exports.STYLED_COLUMN_ADD,
|
|
34
|
+
StyledColumn: formatColumn,
|
|
35
|
+
});
|
|
36
|
+
exports.StyledColumnAdd = StyledColumnAdd;
|
|
37
|
+
const StyledColumnEdit = (formatColumn) => ({
|
|
38
|
+
type: exports.STYLED_COLUMN_EDIT,
|
|
39
|
+
StyledColumn: formatColumn,
|
|
40
|
+
});
|
|
41
|
+
exports.StyledColumnEdit = StyledColumnEdit;
|
|
42
|
+
const StyledColumnDelete = (formatColumn) => ({
|
|
43
|
+
type: exports.STYLED_COLUMN_DELETE,
|
|
44
|
+
StyledColumn: formatColumn,
|
|
45
|
+
});
|
|
46
|
+
exports.StyledColumnDelete = StyledColumnDelete;
|
|
47
|
+
const StyledColumnSuspend = (formatColumn) => ({
|
|
48
|
+
type: exports.STYLED_COLUMN_SUSPEND,
|
|
49
|
+
StyledColumn: formatColumn,
|
|
50
|
+
});
|
|
51
|
+
exports.StyledColumnSuspend = StyledColumnSuspend;
|
|
52
|
+
const StyledColumnUnSuspend = (formatColumn) => ({
|
|
53
|
+
type: exports.STYLED_COLUMN_UNSUSPEND,
|
|
54
|
+
StyledColumn: formatColumn,
|
|
55
|
+
});
|
|
56
|
+
exports.StyledColumnUnSuspend = StyledColumnUnSuspend;
|
|
57
|
+
const StyledColumnReady = (formatColumnState) => ({
|
|
58
|
+
type: exports.STYLED_COLUMN_READY,
|
|
59
|
+
StyledColumnState: formatColumnState,
|
|
60
|
+
});
|
|
61
|
+
exports.StyledColumnReady = StyledColumnReady;
|
|
62
|
+
const initialState = {
|
|
63
|
+
StyledColumns: GeneralConstants_1.EMPTY_ARRAY,
|
|
64
|
+
};
|
|
65
|
+
const StyledColumnReducer = (state = initialState, action) => {
|
|
66
|
+
let formatColumns;
|
|
67
|
+
switch (action.type) {
|
|
68
|
+
case exports.STYLED_COLUMN_ADD: {
|
|
69
|
+
const actionStyledColumn = action.StyledColumn;
|
|
70
|
+
AdaptableHelper_1.default.addUuidAndSource(actionStyledColumn);
|
|
71
|
+
formatColumns = [].concat(state.StyledColumns);
|
|
72
|
+
formatColumns.push(actionStyledColumn);
|
|
73
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: formatColumns });
|
|
74
|
+
}
|
|
75
|
+
case exports.STYLED_COLUMN_EDIT:
|
|
76
|
+
const actionStyledColumn = action.StyledColumn;
|
|
77
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.map((abObject) => abObject.Uuid === actionStyledColumn.Uuid ? actionStyledColumn : abObject) });
|
|
78
|
+
case exports.STYLED_COLUMN_DELETE: {
|
|
79
|
+
const actionStyledColumn = action.StyledColumn;
|
|
80
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.filter((abObject) => abObject.Uuid !== actionStyledColumn.Uuid) });
|
|
81
|
+
}
|
|
82
|
+
case exports.STYLED_COLUMN_SUSPEND: {
|
|
83
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, true) });
|
|
84
|
+
}
|
|
85
|
+
case exports.STYLED_COLUMN_UNSUSPEND: {
|
|
86
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, false) });
|
|
87
|
+
}
|
|
88
|
+
default:
|
|
89
|
+
return state;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.StyledColumnReducer = StyledColumnReducer;
|
|
@@ -24,6 +24,7 @@ const ConditionalStyleRedux = tslib_1.__importStar(require("../ActionsReducers/C
|
|
|
24
24
|
const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
|
|
25
25
|
const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
|
|
26
26
|
const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
|
|
27
|
+
const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
|
|
27
28
|
const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
|
|
28
29
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
|
|
29
30
|
const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
|
|
@@ -148,6 +149,7 @@ class AdaptableStore {
|
|
|
148
149
|
ToolPanel: ToolPanelRedux.ToolPanelReducer,
|
|
149
150
|
Query: QueryRedux.QueryReducer,
|
|
150
151
|
Charting: ChartingRedux.ChartingReducer,
|
|
152
|
+
StyledColumn: StyledColumnRedux.StyledColumnReducer,
|
|
151
153
|
// dead reducers
|
|
152
154
|
PercentBar: DeadRedux.PercentBarReducer,
|
|
153
155
|
UpdatedRow: DeadRedux.UpdatedRowReducer,
|
|
@@ -661,6 +663,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
661
663
|
case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
|
|
662
664
|
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
|
|
663
665
|
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
|
|
666
|
+
case StyledColumnRedux.STYLED_COLUMN_ADD:
|
|
667
|
+
case StyledColumnRedux.STYLED_COLUMN_EDIT:
|
|
668
|
+
case StyledColumnRedux.STYLED_COLUMN_DELETE:
|
|
669
|
+
case StyledColumnRedux.STYLED_COLUMN_SUSPEND:
|
|
670
|
+
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND:
|
|
664
671
|
case CustomSortRedux.CUSTOM_SORT_ADD:
|
|
665
672
|
case CustomSortRedux.CUSTOM_SORT_EDIT:
|
|
666
673
|
case CustomSortRedux.CUSTOM_SORT_DELETE:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
|
+
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
+
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
|
+
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
5
|
+
import { FormatColumn } from '../PredefinedConfig/FormatColumnState';
|
|
6
|
+
import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
7
|
+
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
8
|
+
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
9
|
+
import { StyledColumn } from '../PredefinedConfig/StyledColumnState';
|
|
10
|
+
export declare class StyledColumnModule extends AdaptableModuleBase implements IModule {
|
|
11
|
+
constructor(api: AdaptableApi);
|
|
12
|
+
updateOldConfig(): void;
|
|
13
|
+
getModuleAdaptableObjects(config?: {
|
|
14
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
15
|
+
}): AdaptableObject[];
|
|
16
|
+
getExplicitlyReferencedColumnIds(formatColumn: FormatColumn): string[];
|
|
17
|
+
hasNamedQueryReferences(): boolean;
|
|
18
|
+
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
19
|
+
getTeamSharingAction(): TeamSharingImportInfo<StyledColumn>;
|
|
20
|
+
toView(styledColumn: StyledColumn): AdaptableObjectView;
|
|
21
|
+
toViewAll(): AdaptableObjectView[];
|
|
22
|
+
getViewProperties(): AdaptableModuleView;
|
|
23
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
24
|
+
}
|