@adaptabletools/adaptable 13.0.0-canary.12 → 13.0.0-canary.13
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/bundle.cjs.js +169 -169
- package/package.json +1 -1
- 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 +50 -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/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableComponents.d.ts +0 -1
- package/src/AdaptableComponents.js +0 -5
|
@@ -4,347 +4,38 @@ exports.FormatColumnStyleWizardSection = exports.renderFormatColumnStyleSummary
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
|
-
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
8
|
-
const CheckBox_1 = require("../../../components/CheckBox");
|
|
9
7
|
const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
|
|
10
8
|
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
11
9
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
12
|
-
const
|
|
13
|
-
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
14
|
-
const RangesComponent_1 = require("../../Components/RangesComponent");
|
|
15
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
16
|
-
const ColorPicker_1 = require("../../ColorPicker");
|
|
17
|
-
const UIHelper_1 = tslib_1.__importStar(require("../../UIHelper"));
|
|
18
|
-
const StyleVisualItem_1 = require("../../Components/StyleVisualItem");
|
|
10
|
+
const UIHelper_1 = tslib_1.__importDefault(require("../../UIHelper"));
|
|
19
11
|
const isFormatColumnStyleValid = (data, api) => {
|
|
20
|
-
|
|
21
|
-
if (!data.ColumnStyle &&
|
|
22
|
-
data.Style &&
|
|
12
|
+
if (data.Style &&
|
|
23
13
|
UIHelper_1.default.IsEmptyStyle(data.Style) &&
|
|
24
14
|
data.DisplayFormat === undefined &&
|
|
25
15
|
data.CellAlignment === undefined &&
|
|
26
16
|
!api.scopeApi.isSingleBooleanColumnScope(data.Scope)) {
|
|
27
17
|
return 'No format applied';
|
|
28
18
|
}
|
|
29
|
-
if ((_c = (_b = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges) === null || _c === void 0 ? void 0 : _c.length) {
|
|
30
|
-
if (data.ColumnStyle.PercentBarStyle.CellRanges.some((cellRange) => cellRange.Min == undefined || cellRange.Max == undefined)) {
|
|
31
|
-
return 'Invalid Cell Range';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if ((_e = (_d = data.ColumnStyle) === null || _d === void 0 ? void 0 : _d.PercentBarStyle) === null || _e === void 0 ? void 0 : _e.ColumnComparison) {
|
|
35
|
-
if (data.ColumnStyle.PercentBarStyle.ColumnComparison.MinValue == undefined ||
|
|
36
|
-
data.ColumnStyle.PercentBarStyle.ColumnComparison.MaxValue == undefined) {
|
|
37
|
-
return 'Invalid Column Comparison Range';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
19
|
return true;
|
|
41
20
|
};
|
|
42
21
|
exports.isFormatColumnStyleValid = isFormatColumnStyleValid;
|
|
43
22
|
const toStyle = (style) => {
|
|
44
23
|
return Object.assign(Object.assign({}, (0, StyleHelper_1.convertAdaptableStyleToCSS)(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
45
24
|
};
|
|
46
|
-
const getRanges = (ranges) => {
|
|
47
|
-
return ranges.map((r, i) => (React.createElement(rebass_1.Flex, { key: i, alignItems: "center", mr: 3 },
|
|
48
|
-
React.createElement(rebass_1.Box, { mr: 1 },
|
|
49
|
-
r.Min,
|
|
50
|
-
" to ",
|
|
51
|
-
r.Max,
|
|
52
|
-
' '),
|
|
53
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: {
|
|
54
|
-
BackColor: r.Color,
|
|
55
|
-
ForeColor: r.Color,
|
|
56
|
-
} }))));
|
|
57
|
-
};
|
|
58
|
-
const getColumnComparison = (columnComparison, api) => {
|
|
59
|
-
return (React.createElement(rebass_1.Flex, { key: 'cc', alignItems: "center", mr: 3 },
|
|
60
|
-
React.createElement(rebass_1.Box, { mr: 1 },
|
|
61
|
-
"Min Value:",
|
|
62
|
-
' ',
|
|
63
|
-
isNaN(Number(columnComparison.MinValue))
|
|
64
|
-
? '[' + api.columnApi.getFriendlyNameFromColumnId(String(columnComparison.MinValue)) + ']'
|
|
65
|
-
: columnComparison.MinValue,
|
|
66
|
-
' ',
|
|
67
|
-
", Max Value:",
|
|
68
|
-
' ',
|
|
69
|
-
isNaN(Number(columnComparison.MaxValue))
|
|
70
|
-
? '[' + api.columnApi.getFriendlyNameFromColumnId(String(columnComparison.MaxValue)) + ']'
|
|
71
|
-
: columnComparison.MaxValue,
|
|
72
|
-
' '),
|
|
73
|
-
React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: {
|
|
74
|
-
BackColor: columnComparison.Color,
|
|
75
|
-
ForeColor: columnComparison.Color,
|
|
76
|
-
} })));
|
|
77
|
-
};
|
|
78
25
|
const renderFormatColumnStyleWizardSummary = (data) => {
|
|
79
26
|
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
80
27
|
return (0, exports.renderFormatColumnStyleSummary)(data, api);
|
|
81
28
|
};
|
|
82
29
|
exports.renderFormatColumnStyleWizardSummary = renderFormatColumnStyleWizardSummary;
|
|
83
30
|
const renderFormatColumnStyleSummary = (data, api) => {
|
|
84
|
-
if (data.ColumnStyle) {
|
|
85
|
-
if (data.ColumnStyle.CheckBoxStyle) {
|
|
86
|
-
return 'Checkbox Style';
|
|
87
|
-
}
|
|
88
|
-
if (data.ColumnStyle.GradientStyle) {
|
|
89
|
-
if (data.ColumnStyle.GradientStyle.CellRanges) {
|
|
90
|
-
return getRanges(data.ColumnStyle.GradientStyle.CellRanges);
|
|
91
|
-
}
|
|
92
|
-
if (data.ColumnStyle.GradientStyle.ColumnComparison) {
|
|
93
|
-
return getColumnComparison(data.ColumnStyle.GradientStyle.ColumnComparison, api);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (data.ColumnStyle.PercentBarStyle) {
|
|
97
|
-
if (data.ColumnStyle.PercentBarStyle.CellRanges) {
|
|
98
|
-
return getRanges(data.ColumnStyle.PercentBarStyle.CellRanges);
|
|
99
|
-
}
|
|
100
|
-
if (data.ColumnStyle.PercentBarStyle.ColumnComparison) {
|
|
101
|
-
return getColumnComparison(data.ColumnStyle.PercentBarStyle.ColumnComparison, api);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (data.Style == null || UIHelper_1.default.IsEmptyStyle(data.Style)) {
|
|
105
|
-
return '[None]';
|
|
106
|
-
}
|
|
107
|
-
return React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: data.Style });
|
|
108
|
-
}
|
|
109
31
|
return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
|
|
110
32
|
};
|
|
111
33
|
exports.renderFormatColumnStyleSummary = renderFormatColumnStyleSummary;
|
|
112
34
|
function FormatColumnStyleWizardSection(props) {
|
|
113
|
-
var _a
|
|
35
|
+
var _a;
|
|
114
36
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
if (!('ColumnIds' in data.Scope)) {
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
const [columnId] = data.Scope.ColumnIds;
|
|
124
|
-
const column = api.columnApi.getColumnFromId(columnId);
|
|
125
|
-
return {
|
|
126
|
-
min: api.columnApi.getMinValueForNumericColumn(column),
|
|
127
|
-
max: api.columnApi.getMaxValueForNumericColumn(column),
|
|
128
|
-
};
|
|
129
|
-
}, [singleNumericColumn]);
|
|
130
|
-
const onlyBooleanColumnsInScope = api.scopeApi.areAllBooleanColumnsInScope(data.Scope) ||
|
|
131
|
-
api.scopeApi.scopeHasOnlyBooleanDataType(data.Scope);
|
|
132
|
-
const onPercentBarCellTextCellValueChanged = (checked) => {
|
|
133
|
-
var _a;
|
|
134
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
135
|
-
if (checked) {
|
|
136
|
-
if (!percentBarStyle.CellText) {
|
|
137
|
-
percentBarStyle.CellText = ['CellValue'];
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
percentBarStyle.CellText.push('CellValue');
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
if (percentBarStyle.CellText && percentBarStyle.CellText.includes('PercentageValue')) {
|
|
145
|
-
percentBarStyle.CellText = ['PercentageValue'];
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
percentBarStyle.CellText = [];
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
152
|
-
PercentBarStyle: percentBarStyle,
|
|
153
|
-
} }));
|
|
154
|
-
};
|
|
155
|
-
const onPercentBarCellTextPercentValueChanged = (checked) => {
|
|
156
|
-
var _a;
|
|
157
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
158
|
-
if (checked) {
|
|
159
|
-
if (!percentBarStyle.CellText) {
|
|
160
|
-
percentBarStyle.CellText = ['PercentageValue'];
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
percentBarStyle.CellText.push('PercentageValue');
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
if (percentBarStyle.CellText && percentBarStyle.CellText.includes('CellValue')) {
|
|
168
|
-
percentBarStyle.CellText = ['CellValue'];
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
percentBarStyle.CellText = [];
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
175
|
-
PercentBarStyle: percentBarStyle,
|
|
176
|
-
} }));
|
|
177
|
-
};
|
|
178
|
-
const onPercentBarToolTipTextCellValueChanged = (checked) => {
|
|
179
|
-
var _a;
|
|
180
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
181
|
-
if (checked) {
|
|
182
|
-
if (!percentBarStyle.ToolTipText) {
|
|
183
|
-
percentBarStyle.ToolTipText = ['CellValue'];
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
percentBarStyle.ToolTipText.push('CellValue');
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
if (percentBarStyle.ToolTipText && percentBarStyle.ToolTipText.includes('PercentageValue')) {
|
|
191
|
-
percentBarStyle.ToolTipText = ['PercentageValue'];
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
percentBarStyle.ToolTipText = [];
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
198
|
-
PercentBarStyle: percentBarStyle,
|
|
199
|
-
} }));
|
|
200
|
-
};
|
|
201
|
-
const onPercentBarToolTipTextPercentValueChanged = (checked) => {
|
|
202
|
-
var _a;
|
|
203
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
204
|
-
if (checked) {
|
|
205
|
-
if (!percentBarStyle.ToolTipText) {
|
|
206
|
-
percentBarStyle.ToolTipText = ['PercentageValue'];
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
percentBarStyle.ToolTipText.push('PercentageValue');
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
if (percentBarStyle.ToolTipText && percentBarStyle.ToolTipText.includes('CellValue')) {
|
|
214
|
-
percentBarStyle.ToolTipText = ['CellValue'];
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
percentBarStyle.ToolTipText = [];
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
221
|
-
PercentBarStyle: percentBarStyle,
|
|
222
|
-
} }));
|
|
223
|
-
};
|
|
224
|
-
const onUpdatePercentBarStyleColumnComparison = (columnComparison) => {
|
|
225
|
-
let ColumnStyle = {
|
|
226
|
-
PercentBarStyle: {
|
|
227
|
-
ColumnComparison: columnComparison,
|
|
228
|
-
},
|
|
229
|
-
};
|
|
230
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle }));
|
|
231
|
-
};
|
|
232
|
-
const onUsePercentStyleColorCheckChanged = (checked) => {
|
|
233
|
-
var _a;
|
|
234
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
235
|
-
percentBarStyle.BackColor = checked ? (0, UIHelper_1.getHexForName)(UIHelper_1.GRAY) : null;
|
|
236
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
237
|
-
PercentBarStyle: percentBarStyle,
|
|
238
|
-
} }));
|
|
239
|
-
};
|
|
240
|
-
const onForeColorSelectChange = (color) => {
|
|
241
|
-
var _a;
|
|
242
|
-
let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
|
|
243
|
-
percentBarStyle.BackColor = color;
|
|
244
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
245
|
-
PercentBarStyle: percentBarStyle,
|
|
246
|
-
} }));
|
|
247
|
-
};
|
|
248
|
-
const onUpdatePercentBarStyleRanges = (ranges) => {
|
|
249
|
-
let ColumnStyle = {
|
|
250
|
-
PercentBarStyle: {
|
|
251
|
-
CellRanges: ranges,
|
|
252
|
-
},
|
|
253
|
-
};
|
|
254
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle }));
|
|
255
|
-
};
|
|
256
|
-
const onUpdateGradientStyleRanges = (ranges) => {
|
|
257
|
-
let ColumnStyle = {
|
|
258
|
-
GradientStyle: {
|
|
259
|
-
CellRanges: ranges,
|
|
260
|
-
},
|
|
261
|
-
};
|
|
262
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle }));
|
|
263
|
-
};
|
|
264
|
-
const onUpdateGradientStyleColumnComparison = (columnComparison) => {
|
|
265
|
-
let ColumnStyle = {
|
|
266
|
-
GradientStyle: {
|
|
267
|
-
ColumnComparison: columnComparison,
|
|
268
|
-
},
|
|
269
|
-
};
|
|
270
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle }));
|
|
271
|
-
};
|
|
272
|
-
const onStyleTypeChanged = (event) => {
|
|
273
|
-
let e = event.target;
|
|
274
|
-
if (e.value == 'Gradient') {
|
|
275
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
276
|
-
GradientStyle: {
|
|
277
|
-
CellRanges: api.scopeApi.createCellColorRangesForScope(data.Scope),
|
|
278
|
-
},
|
|
279
|
-
} }));
|
|
280
|
-
}
|
|
281
|
-
else if (e.value == 'PercentBar') {
|
|
282
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
283
|
-
PercentBarStyle: {
|
|
284
|
-
CellRanges: api.scopeApi.createCellColorRangesForScope(data.Scope),
|
|
285
|
-
},
|
|
286
|
-
} }));
|
|
287
|
-
}
|
|
288
|
-
else if (e.value == 'None') {
|
|
289
|
-
const newData = Object.assign({}, data);
|
|
290
|
-
delete newData.ColumnStyle;
|
|
291
|
-
props.onChange(newData);
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
const onlyStandardStyleAvailable = Boolean(data.Rule);
|
|
295
|
-
return (React.createElement(React.Fragment, null,
|
|
296
|
-
onlyBooleanColumnsInScope && (React.createElement(Tabs_1.Tabs, null,
|
|
297
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "CheckBox Column"),
|
|
298
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
299
|
-
React.createElement(HelpBlock_1.default, { fontSize: 2 }, "Shows each cell in the Column as a Checkbox"),
|
|
300
|
-
' ',
|
|
301
|
-
React.createElement(CheckBox_1.CheckBox, { marginLeft: 2, checked: !!((_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.CheckBoxStyle), onChange: (CheckBoxStyle) => {
|
|
302
|
-
const formatColumn = Object.assign(Object.assign({}, data), { ColumnStyle: {
|
|
303
|
-
CheckBoxStyle,
|
|
304
|
-
} });
|
|
305
|
-
if (!CheckBoxStyle) {
|
|
306
|
-
delete formatColumn.ColumnStyle;
|
|
307
|
-
}
|
|
308
|
-
props.onChange(formatColumn);
|
|
309
|
-
} }, "Display Column As CheckBox")))),
|
|
310
|
-
singleNumericColumn && !onlyStandardStyleAvailable ? (React.createElement(React.Fragment, null,
|
|
311
|
-
React.createElement(Tabs_1.Tabs, null,
|
|
312
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Create a Format Column Style"),
|
|
313
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
314
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
315
|
-
React.createElement(Radio_1.default, { marginLeft: 2, value: "None", checked: !data.ColumnStyle, onChange: (checked, e) => onStyleTypeChanged(e) }, "Standard"),
|
|
316
|
-
' ',
|
|
317
|
-
React.createElement(Radio_1.default, { marginLeft: 3, value: "Gradient", checked: !!((_b = data.ColumnStyle) === null || _b === void 0 ? void 0 : _b.GradientStyle), onChange: (checked, e) => onStyleTypeChanged(e) }, "Gradient"),
|
|
318
|
-
' ',
|
|
319
|
-
React.createElement(Radio_1.default, { marginLeft: 3, value: "PercentBar", checked: !!((_c = data.ColumnStyle) === null || _c === void 0 ? void 0 : _c.PercentBarStyle), onChange: (checked, e) => onStyleTypeChanged(e) },
|
|
320
|
-
"Percent Bar",
|
|
321
|
-
' '),
|
|
322
|
-
' '))),
|
|
323
|
-
((_d = data.ColumnStyle) === null || _d === void 0 ? void 0 : _d.GradientStyle) && (React.createElement(RangesComponent_1.RangesComponent, { minMaxRangeValues: minMaxRangeValues, api: api, scope: data === null || data === void 0 ? void 0 : data.Scope, showRangeDirection: true, ranges: (_f = (_e = data.ColumnStyle) === null || _e === void 0 ? void 0 : _e.GradientStyle) === null || _f === void 0 ? void 0 : _f.CellRanges, columnComparison: (_h = (_g = data === null || data === void 0 ? void 0 : data.ColumnStyle) === null || _g === void 0 ? void 0 : _g.GradientStyle) === null || _h === void 0 ? void 0 : _h.ColumnComparison, updateRanges: (ranges) => onUpdateGradientStyleRanges(ranges), updateColumnComparison: (columnComparison) => onUpdateGradientStyleColumnComparison(columnComparison) })),
|
|
324
|
-
((_j = data.ColumnStyle) === null || _j === void 0 ? void 0 : _j.PercentBarStyle) && (React.createElement(React.Fragment, null,
|
|
325
|
-
React.createElement(RangesComponent_1.RangesComponent, { minMaxRangeValues: minMaxRangeValues, api: api, scope: data === null || data === void 0 ? void 0 : data.Scope, showRangeDirection: false, ranges: (_l = (_k = data.ColumnStyle) === null || _k === void 0 ? void 0 : _k.PercentBarStyle) === null || _l === void 0 ? void 0 : _l.CellRanges, columnComparison: (_o = (_m = data === null || data === void 0 ? void 0 : data.ColumnStyle) === null || _m === void 0 ? void 0 : _m.PercentBarStyle) === null || _o === void 0 ? void 0 : _o.ColumnComparison, updateRanges: (ranges) => onUpdatePercentBarStyleRanges(ranges), updateColumnComparison: (columnComparison) => onUpdatePercentBarStyleColumnComparison(columnComparison) }),
|
|
326
|
-
React.createElement(FormLayout_1.default, { marginLeft: 2, marginTop: 2 },
|
|
327
|
-
React.createElement(FormLayout_1.FormRow, { label: "Cell Display:" },
|
|
328
|
-
React.createElement(CheckBox_1.CheckBox, { marginLeft: 2, checked: (_r = (_q = (_p = data.ColumnStyle) === null || _p === void 0 ? void 0 : _p.PercentBarStyle) === null || _q === void 0 ? void 0 : _q.CellText) === null || _r === void 0 ? void 0 : _r.includes('CellValue'), onChange: (checked) => onPercentBarCellTextCellValueChanged(checked) }, "Cell Value"),
|
|
329
|
-
' ',
|
|
330
|
-
React.createElement(CheckBox_1.CheckBox, { marginLeft: 3, checked: (_u = (_t = (_s = data.ColumnStyle) === null || _s === void 0 ? void 0 : _s.PercentBarStyle) === null || _t === void 0 ? void 0 : _t.CellText) === null || _u === void 0 ? void 0 : _u.includes('PercentageValue'), onChange: (checked) => onPercentBarCellTextPercentValueChanged(checked) },
|
|
331
|
-
"Percent Value",
|
|
332
|
-
' '),
|
|
333
|
-
' '),
|
|
334
|
-
React.createElement(FormLayout_1.FormRow, { label: "ToolTip Display:" },
|
|
335
|
-
React.createElement(CheckBox_1.CheckBox, { marginLeft: 2, checked: (_x = (_w = (_v = data.ColumnStyle) === null || _v === void 0 ? void 0 : _v.PercentBarStyle) === null || _w === void 0 ? void 0 : _w.ToolTipText) === null || _x === void 0 ? void 0 : _x.includes('CellValue'), onChange: (checked) => onPercentBarToolTipTextCellValueChanged(checked) }, "Cell Value"),
|
|
336
|
-
' ',
|
|
337
|
-
React.createElement(CheckBox_1.CheckBox, { marginLeft: 3, checked: (_0 = (_z = (_y = data.ColumnStyle) === null || _y === void 0 ? void 0 : _y.PercentBarStyle) === null || _z === void 0 ? void 0 : _z.ToolTipText) === null || _0 === void 0 ? void 0 : _0.includes('PercentageValue'), onChange: (checked) => onPercentBarToolTipTextPercentValueChanged(checked) },
|
|
338
|
-
"Percent Value",
|
|
339
|
-
' '),
|
|
340
|
-
' '),
|
|
341
|
-
React.createElement(FormLayout_1.FormRow, { label: `Back ${api.internalApi.getCorrectEnglishVariant('Colour')}` },
|
|
342
|
-
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
343
|
-
React.createElement(CheckBox_1.CheckBox, { checked: !!((_2 = (_1 = data.ColumnStyle) === null || _1 === void 0 ? void 0 : _1.PercentBarStyle) === null || _2 === void 0 ? void 0 : _2.BackColor), onChange: (checked) => onUsePercentStyleColorCheckChanged(checked), mr: 2 }),
|
|
344
|
-
((_4 = (_3 = data.ColumnStyle) === null || _3 === void 0 ? void 0 : _3.PercentBarStyle) === null || _4 === void 0 ? void 0 : _4.BackColor) !== undefined && (React.createElement(ColorPicker_1.ColorPicker, { api: api, value: (_6 = (_5 = data.ColumnStyle) === null || _5 === void 0 ? void 0 : _5.PercentBarStyle) === null || _6 === void 0 ? void 0 : _6.BackColor, onChange: (x) => onForeColorSelectChange(x) }))))),
|
|
345
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2 }))))) : null,
|
|
346
|
-
!data.ColumnStyle ? (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: (_7 = data.Style) !== null && _7 !== void 0 ? _7 : {}, UpdateStyle: (Style) => {
|
|
347
|
-
props.onChange(Object.assign(Object.assign({}, data), { Style }));
|
|
348
|
-
} })) : null));
|
|
37
|
+
return (React.createElement(React.Fragment, null, !data.ColumnStyle ? (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: (_a = data.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
|
|
38
|
+
props.onChange(Object.assign(Object.assign({}, data), { Style }));
|
|
39
|
+
} })) : null));
|
|
349
40
|
}
|
|
350
41
|
exports.FormatColumnStyleWizardSection = FormatColumnStyleWizardSection;
|
|
@@ -15,5 +15,5 @@ declare class LayoutViewPanelComponent extends React.Component<LayoutViewPanelCo
|
|
|
15
15
|
render(): any;
|
|
16
16
|
private onSaveLayout;
|
|
17
17
|
}
|
|
18
|
-
export declare let LayoutViewPanelControl: import("react-redux").ConnectedComponent<typeof LayoutViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<LayoutViewPanelComponent> & LayoutViewPanelComponentProps, "api" | "
|
|
18
|
+
export declare let LayoutViewPanelControl: import("react-redux").ConnectedComponent<typeof LayoutViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<LayoutViewPanelComponent> & LayoutViewPanelComponentProps, "api" | "accessLevel" | "moduleInfo" | "Layouts" | "viewType" | "onSelectLayout" | "onSaveLayout" | "CurrentDraftLayout" | "CanSave" | "CurrentLayoutName"> & LayoutViewPanelComponentProps>;
|
|
19
19
|
export {};
|
|
@@ -26,5 +26,5 @@ declare class QueryViewPanelComponent extends React.Component<QueryViewPanelComp
|
|
|
26
26
|
onSelectedQueryChanged(queryName: string): void;
|
|
27
27
|
runQuery(expression?: string): void;
|
|
28
28
|
}
|
|
29
|
-
export declare let QueryViewPanelControl: import("react-redux").ConnectedComponent<typeof QueryViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<QueryViewPanelComponent> & QueryViewPanelComponentProps, "api" | "
|
|
29
|
+
export declare let QueryViewPanelControl: import("react-redux").ConnectedComponent<typeof QueryViewPanelComponent, import("react-redux").Omit<React.ClassAttributes<QueryViewPanelComponent> & QueryViewPanelComponentProps, "api" | "accessLevel" | "NamedQueries" | "CurrentQuery" | "moduleInfo" | "CachedQueries" | "viewType" | "onAddCachedQuery" | "onRunQuery" | "onShowNamedQueries">>;
|
|
30
30
|
export {};
|
|
@@ -5,4 +5,4 @@ export interface QuickSearchViewPanelComponentProps extends ViewPanelProps {
|
|
|
5
5
|
onRunQuickSearch: (quickSearchText: string) => QuickSearchRedux.QuickSearchRunAction;
|
|
6
6
|
QuickSearchText: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const QuickSearchViewPanelControl: import("react-redux").ConnectedComponent<(props: QuickSearchViewPanelComponentProps) => JSX.Element, import("react-redux").Omit<QuickSearchViewPanelComponentProps, "api" | "
|
|
8
|
+
export declare const QuickSearchViewPanelControl: import("react-redux").ConnectedComponent<(props: QuickSearchViewPanelComponentProps) => JSX.Element, import("react-redux").Omit<QuickSearchViewPanelComponentProps, "api" | "accessLevel" | "moduleInfo" | "QuickSearchText" | "onRunQuickSearch" | "viewType">>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
3
|
+
import { StyledColumn } from '../../../PredefinedConfig/StyledColumnState';
|
|
4
|
+
export interface StyledColumnWizardProps extends AdaptableOnePageWizardProps<StyledColumn> {
|
|
5
|
+
isNew: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledColumnWizard: (props: StyledColumnWizardProps) => JSX.Element;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnWizard = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const rebass_1 = require("rebass");
|
|
8
|
+
const react_redux_1 = require("react-redux");
|
|
9
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
10
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
11
|
+
const StyledColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/StyledColumnRedux"));
|
|
12
|
+
const StyledColumnWizardTypeSection_1 = require("./StyledColumnWizardTypeSection");
|
|
13
|
+
const StyledColumnWizardColumnSection_1 = require("./StyledColumnWizardColumnSection");
|
|
14
|
+
const StyledColumnWizardStyleSection_1 = require("./StyledColumnWizardStyleSection");
|
|
15
|
+
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
16
|
+
const StyledColumnWizard = (props) => {
|
|
17
|
+
var _a;
|
|
18
|
+
const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
|
|
19
|
+
const [styledColumn, setStyledColumn] = (0, react_1.useState)(() => {
|
|
20
|
+
if (data) {
|
|
21
|
+
return (0, Helper_1.cloneObject)(data);
|
|
22
|
+
}
|
|
23
|
+
const newData = ObjectFactory_1.default.CreateEmptyStyledColumn();
|
|
24
|
+
newData.GradientStyle = {};
|
|
25
|
+
return newData;
|
|
26
|
+
});
|
|
27
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
28
|
+
const handleFinish = () => {
|
|
29
|
+
if (data) {
|
|
30
|
+
dispatch(StyledColumnRedux.StyledColumnEdit(styledColumn));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
dispatch(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
34
|
+
}
|
|
35
|
+
props.onFinishWizard(styledColumn);
|
|
36
|
+
};
|
|
37
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
38
|
+
{
|
|
39
|
+
details: 'Select a Styled Column Type',
|
|
40
|
+
renderSummary: StyledColumnWizardTypeSection_1.renderStyledColumnTypeSummary,
|
|
41
|
+
render: () => {
|
|
42
|
+
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
43
|
+
React.createElement(StyledColumnWizardTypeSection_1.StyledColumnWizardTypeSection, { onChange: setStyledColumn })));
|
|
44
|
+
},
|
|
45
|
+
title: 'Type',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
isValid: StyledColumnWizardColumnSection_1.isValidStyledColumnColumn,
|
|
49
|
+
renderSummary: StyledColumnWizardColumnSection_1.renderStyledColumnColumnSummary,
|
|
50
|
+
details: 'Select column to apply the style to',
|
|
51
|
+
render: () => {
|
|
52
|
+
return (React.createElement(rebass_1.Box, { padding: 2, style: { height: '100%' } },
|
|
53
|
+
React.createElement(StyledColumnWizardColumnSection_1.StyledColumnWizardColumnSection, { isNew: props.isNew, onChange: setStyledColumn })));
|
|
54
|
+
},
|
|
55
|
+
title: 'Column',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
details: 'Select the style to apply',
|
|
59
|
+
renderSummary: StyledColumnWizardStyleSection_1.renderStyledColumnStyleSummary,
|
|
60
|
+
render: () => {
|
|
61
|
+
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
62
|
+
React.createElement(StyledColumnWizardStyleSection_1.StyledColumnWizardStyleSection, { onChange: setStyledColumn })));
|
|
63
|
+
},
|
|
64
|
+
title: 'Style',
|
|
65
|
+
},
|
|
66
|
+
'-',
|
|
67
|
+
{
|
|
68
|
+
title: 'Summary',
|
|
69
|
+
details: 'Review your Styled Column',
|
|
70
|
+
render: () => {
|
|
71
|
+
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
72
|
+
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
] }));
|
|
76
|
+
};
|
|
77
|
+
exports.StyledColumnWizard = StyledColumnWizard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledColumn } from '../../../PredefinedConfig/StyledColumnState';
|
|
3
|
+
export declare const renderStyledColumnColumnSummary: (data: StyledColumn) => JSX.Element;
|
|
4
|
+
export declare const isValidStyledColumnColumn: (data: StyledColumn) => true | string;
|
|
5
|
+
export declare type StyledColumnWizardColumnSectionProps = {
|
|
6
|
+
onChange: (data: StyledColumn) => void;
|
|
7
|
+
isNew: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const StyledColumnWizardColumnSection: (props: StyledColumnWizardColumnSectionProps) => JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnWizardColumnSection = exports.isValidStyledColumnColumn = exports.renderStyledColumnColumnSummary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const rebass_1 = require("rebass");
|
|
7
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
8
|
+
const Tag_1 = require("../../../components/Tag");
|
|
9
|
+
const ColumnSelector_1 = require("../../Components/ColumnSelector");
|
|
10
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
+
const renderStyledColumnColumnSummary = (data) => {
|
|
12
|
+
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
13
|
+
return (React.createElement(rebass_1.Text, { pr: 2, py: 2 },
|
|
14
|
+
"Styled Column column:",
|
|
15
|
+
' ',
|
|
16
|
+
React.createElement(Tag_1.Tag, null, data.ColumnId
|
|
17
|
+
? api.columnApi.getFriendlyNameFromColumnId(data.ColumnId)
|
|
18
|
+
: 'No Column Selected')));
|
|
19
|
+
};
|
|
20
|
+
exports.renderStyledColumnColumnSummary = renderStyledColumnColumnSummary;
|
|
21
|
+
const isValidStyledColumnColumn = (data) => {
|
|
22
|
+
if (!data.ColumnId) {
|
|
23
|
+
return 'You have to select a Column for Styled Column';
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
};
|
|
27
|
+
exports.isValidStyledColumnColumn = isValidStyledColumnColumn;
|
|
28
|
+
const StyledColumnWizardColumnSection = (props) => {
|
|
29
|
+
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
30
|
+
const sortableCols = React.useMemo(() => {
|
|
31
|
+
const sortableColumns = data.CheckBoxStyle
|
|
32
|
+
? api.columnApi.getBooleanColumns()
|
|
33
|
+
: api.columnApi.getNumericColumns();
|
|
34
|
+
const styledColumns = api.styledColumnApi.getAllStyledColumn();
|
|
35
|
+
const usedColumnIds = styledColumns.map((StyledColumn) => StyledColumn.ColumnId);
|
|
36
|
+
// filter out used colum ids, but include the current one
|
|
37
|
+
return sortableColumns.filter((column) => {
|
|
38
|
+
if (!props.isNew && column.columnId === (data === null || data === void 0 ? void 0 : data.ColumnId)) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
return usedColumnIds.every((usedColumnId) => {
|
|
42
|
+
return column.columnId !== usedColumnId;
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}, []);
|
|
46
|
+
const handleColumnsChange = (columnIds) => {
|
|
47
|
+
const columnId = columnIds[0];
|
|
48
|
+
const emptyRanges = api.scopeApi.createCellColorRangesForScope({
|
|
49
|
+
ColumnIds: [columnId], // TODO: refactor to not use scope
|
|
50
|
+
});
|
|
51
|
+
const newStyledColumn = Object.assign(Object.assign({}, data), { ColumnId: columnId });
|
|
52
|
+
if (newStyledColumn.PercentBarStyle) {
|
|
53
|
+
newStyledColumn.PercentBarStyle = Object.assign(Object.assign({}, newStyledColumn.PercentBarStyle), { CellRanges: emptyRanges });
|
|
54
|
+
}
|
|
55
|
+
if (newStyledColumn.GradientStyle) {
|
|
56
|
+
newStyledColumn.GradientStyle = Object.assign(Object.assign({}, newStyledColumn.GradientStyle), { CellRanges: emptyRanges });
|
|
57
|
+
}
|
|
58
|
+
props.onChange(newStyledColumn);
|
|
59
|
+
};
|
|
60
|
+
return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
|
|
61
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Column"),
|
|
62
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
63
|
+
React.createElement(ColumnSelector_1.NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: handleColumnsChange, allowReorder: false }))));
|
|
64
|
+
};
|
|
65
|
+
exports.StyledColumnWizardColumnSection = StyledColumnWizardColumnSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledColumn } from '../../../PredefinedConfig/StyledColumnState';
|
|
3
|
+
import { AdaptableApi } from '../../../types';
|
|
4
|
+
export declare const renderFormatColumnStyleWizardSummary: (data: StyledColumn) => JSX.Element;
|
|
5
|
+
export declare const renderStyledColumnStyleSummary: (data: StyledColumn, api: AdaptableApi) => JSX.Element;
|
|
6
|
+
export interface StyledColumnWizardStyleSectionProps {
|
|
7
|
+
onChange: (styledColumn: StyledColumn) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const StyledColumnWizardStyleSection: React.FunctionComponent<StyledColumnWizardStyleSectionProps>;
|