@adaptabletools/adaptable 11.1.2 → 11.1.5
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 +120 -120
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +49 -49
- package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -1
- package/src/AdaptableOptions/EditOptions.d.ts +4 -0
- package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -2
- package/src/AdaptableOptions/SmartEdit.d.ts +34 -0
- package/src/AdaptableOptions/SmartEdit.js +2 -0
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/FilterApiImpl.js +8 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +6 -8
- package/src/Api/Implementation/InternalApiImpl.d.ts +4 -0
- package/src/Api/Implementation/InternalApiImpl.js +9 -0
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +3 -0
- package/src/Api/InternalApi.d.ts +4 -0
- package/src/Api/SmartEditApi.d.ts +3 -2
- package/src/Api/ThemeApi.d.ts +4 -0
- package/src/PredefinedConfig/ExportState.d.ts +0 -5
- package/src/PredefinedConfig/PopupState.d.ts +2 -1
- package/src/PredefinedConfig/SystemState.d.ts +2 -5
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +22 -3
- package/src/Redux/ActionsReducers/PopupRedux.js +42 -8
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -23
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -32
- package/src/Strategy/AlertModule.js +29 -9
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/ExportModule.js +14 -4
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +24 -13
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +0 -3
- package/src/Utilities/Interface/MessagePopups.d.ts +12 -0
- package/src/Utilities/Services/AlertService.d.ts +3 -3
- package/src/Utilities/Services/AlertService.js +6 -6
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +3 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +20 -20
- package/src/Utilities/Services/EntitlementService.d.ts +3 -3
- package/src/Utilities/Services/EntitlementService.js +12 -8
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.d.ts +3 -3
- package/src/Utilities/Services/MetamodelService.js +4 -4
- package/src/Utilities/Services/ModuleService.d.ts +3 -3
- package/src/Utilities/Services/ModuleService.js +12 -12
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +20 -19
- package/src/Utilities/Services/ReportService.d.ts +4 -4
- package/src/Utilities/Services/ReportService.js +50 -44
- package/src/Utilities/Services/TeamSharingService.d.ts +3 -3
- package/src/Utilities/Services/TeamSharingService.js +19 -16
- package/src/Utilities/Services/ValidationService.d.ts +3 -3
- package/src/Utilities/Services/ValidationService.js +19 -17
- package/src/View/AdaptableView.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +46 -9
- package/src/View/Alert/Wizard/AlertWizard.js +22 -24
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -5
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +3 -3
- package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +10 -0
- package/src/View/Components/Popups/FormPopups/FormPopups.js +37 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -3
- package/src/View/DataSource/DataSourceViewPanel.d.ts +3 -3
- package/src/View/DataSource/DataSourceViewPanel.js +15 -13
- package/src/View/Export/ExportViewPanel.d.ts +1 -3
- package/src/View/Export/ExportViewPanel.js +1 -17
- package/src/View/GridInfo/AdaptableObjectsSummary.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -4
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -4
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +6 -1
- package/src/View/SmartEdit/SmartEditPopup.d.ts +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +15 -3
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +3 -4
- package/src/View/SmartEdit/SmartEditViewPanel.js +15 -6
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
- package/src/agGrid/Adaptable.d.ts +5 -4
- package/src/agGrid/Adaptable.js +56 -49
- package/src/components/StylePreview.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +5 -0
- package/src/metamodel/adaptable.metamodel.js +16 -5
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Export/ExportCustomDestinationDialog.d.ts +0 -11
- package/src/View/Export/ExportCustomDestinationDialog.js +0 -47
- package/src/View/Export/ExportCustomDestinationFormPopups.d.ts +0 -5
- package/src/View/Export/ExportCustomDestinationFormPopups.js +0 -15
|
@@ -11,9 +11,9 @@ const FormatHelper_1 = tslib_1.__importStar(require("../Helpers/FormatHelper"));
|
|
|
11
11
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
|
|
12
12
|
const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
13
13
|
class ReportService {
|
|
14
|
-
constructor(
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
14
|
+
constructor(adaptableApi) {
|
|
15
|
+
this.adaptableApi = adaptableApi;
|
|
16
|
+
this.adaptableApi = adaptableApi;
|
|
17
17
|
}
|
|
18
18
|
CreateSystemReport(systemReportName) {
|
|
19
19
|
switch (systemReportName) {
|
|
@@ -74,10 +74,10 @@ class ReportService {
|
|
|
74
74
|
}
|
|
75
75
|
IsSystemReportActive(reportName) {
|
|
76
76
|
if (reportName == GeneralConstants_1.SELECTED_CELLS_REPORT || reportName == GeneralConstants_1.SELECTED_ROWS_REPORT) {
|
|
77
|
-
return this.
|
|
77
|
+
return this.adaptableApi.gridApi.isGridSelectable();
|
|
78
78
|
}
|
|
79
79
|
if (reportName === GeneralConstants_1.VISUAL_DATA_REPORT) {
|
|
80
|
-
return this.
|
|
80
|
+
return this.adaptableApi.exportApi
|
|
81
81
|
.getAvailableExportDestinations()
|
|
82
82
|
.includes(Enums_1.ExportDestination.Excel);
|
|
83
83
|
}
|
|
@@ -85,22 +85,26 @@ class ReportService {
|
|
|
85
85
|
}
|
|
86
86
|
IsSystemExportDestinationActive(exportDestination) {
|
|
87
87
|
if (exportDestination === Enums_1.ExportDestination.Excel) {
|
|
88
|
-
return this.
|
|
88
|
+
return this.adaptableApi.exportApi.canExportToExcel();
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
92
|
GetReportColumnScopeShortDescription(report) {
|
|
93
|
+
var _a, _b;
|
|
93
94
|
switch (report.ReportColumnScope) {
|
|
94
95
|
case Enums_1.ReportColumnScope.AllColumns:
|
|
95
|
-
return '[All Columns]';
|
|
96
|
+
return ['[All Columns]'];
|
|
96
97
|
case Enums_1.ReportColumnScope.VisibleColumns:
|
|
97
|
-
return '[Visible Columns]';
|
|
98
|
+
return ['[Visible Columns]'];
|
|
98
99
|
case Enums_1.ReportColumnScope.SelectedColumns:
|
|
99
|
-
return '[Selected Columns]';
|
|
100
|
+
return ['[Selected Columns]'];
|
|
100
101
|
case Enums_1.ReportColumnScope.ScopeColumns:
|
|
101
|
-
|
|
102
|
+
if ('ColumnIds' in (report === null || report === void 0 ? void 0 : report.Scope)) {
|
|
103
|
+
return (_b = (_a = report.Scope.ColumnIds).map) === null || _b === void 0 ? void 0 : _b.call(_a, (columnId) => { var _a; return (_a = this.adaptableApi.columnApi.getFriendlyNameFromColumnId(columnId)) !== null && _a !== void 0 ? _a : columnId; });
|
|
104
|
+
}
|
|
105
|
+
return ['[Bespoke Columns]'];
|
|
102
106
|
case Enums_1.ReportColumnScope.CustomColumns:
|
|
103
|
-
return '[Custom Columns]';
|
|
107
|
+
return ['[Custom Columns]'];
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
GetReportColumnScopeLongDescription(report) {
|
|
@@ -112,7 +116,7 @@ class ReportService {
|
|
|
112
116
|
case Enums_1.ReportColumnScope.SelectedColumns:
|
|
113
117
|
return '[Selected Columns]';
|
|
114
118
|
case Enums_1.ReportColumnScope.ScopeColumns:
|
|
115
|
-
return this.
|
|
119
|
+
return this.adaptableApi.scopeApi.getScopeDescription(report.Scope);
|
|
116
120
|
case Enums_1.ReportColumnScope.CustomColumns:
|
|
117
121
|
return '[Custom Columns]';
|
|
118
122
|
}
|
|
@@ -153,7 +157,7 @@ class ReportService {
|
|
|
153
157
|
}
|
|
154
158
|
GetReportColumnsForReport(report, includePrimaryKey = false) {
|
|
155
159
|
let reportColumns = [];
|
|
156
|
-
let gridColumns = this.
|
|
160
|
+
let gridColumns = this.adaptableApi.columnApi.getColumns();
|
|
157
161
|
// first get the cols depending on the Column Scope
|
|
158
162
|
switch (report.ReportColumnScope) {
|
|
159
163
|
case Enums_1.ReportColumnScope.AllColumns:
|
|
@@ -164,17 +168,17 @@ class ReportService {
|
|
|
164
168
|
break;
|
|
165
169
|
case Enums_1.ReportColumnScope.SelectedColumns:
|
|
166
170
|
// we extract the selected columns from the grid columns to preserve the grid column order
|
|
167
|
-
const selectedColumnIds = this.
|
|
171
|
+
const selectedColumnIds = this.adaptableApi.gridApi
|
|
168
172
|
.getSelectedCellInfo()
|
|
169
173
|
.columns.map((column) => column.columnId);
|
|
170
174
|
reportColumns = gridColumns.filter((gridColumn) => selectedColumnIds.includes(gridColumn.columnId));
|
|
171
175
|
break;
|
|
172
176
|
case Enums_1.ReportColumnScope.ScopeColumns:
|
|
173
177
|
if ('ColumnIds' in report.Scope) {
|
|
174
|
-
reportColumns = report.Scope.ColumnIds.map((columnId) => this.
|
|
178
|
+
reportColumns = report.Scope.ColumnIds.map((columnId) => this.adaptableApi.columnApi.getColumnFromId(columnId)).filter((c) => c);
|
|
175
179
|
}
|
|
176
180
|
else {
|
|
177
|
-
reportColumns = this.
|
|
181
|
+
reportColumns = this.adaptableApi.scopeApi.getColumnsForScope(report.Scope);
|
|
178
182
|
}
|
|
179
183
|
break;
|
|
180
184
|
case Enums_1.ReportColumnScope.CustomColumns:
|
|
@@ -182,11 +186,11 @@ class ReportService {
|
|
|
182
186
|
break;
|
|
183
187
|
}
|
|
184
188
|
if (includePrimaryKey) {
|
|
185
|
-
const pkColumn = reportColumns.find((column) => column.columnId === this.
|
|
189
|
+
const pkColumn = reportColumns.find((column) => column.columnId === this.adaptableApi.internalApi.getAdaptableOptions().primaryKey);
|
|
186
190
|
// TODO simplify after we fix the IsPrimaryKey bug
|
|
187
191
|
// const pkColumn = reportColumns.find(column => column.IsPrimaryKey);
|
|
188
|
-
if (!pkColumn && !!this.
|
|
189
|
-
reportColumns.push(this.
|
|
192
|
+
if (!pkColumn && !!this.adaptableApi.columnApi.getPrimaryKeyColumn()) {
|
|
193
|
+
reportColumns.push(this.adaptableApi.columnApi.getPrimaryKeyColumn());
|
|
190
194
|
}
|
|
191
195
|
}
|
|
192
196
|
return reportColumns;
|
|
@@ -206,7 +210,7 @@ class ReportService {
|
|
|
206
210
|
const columnIds = columns.map((column) => column.columnId);
|
|
207
211
|
switch (report.ReportRowScope) {
|
|
208
212
|
case Enums_1.ReportRowScope.AllRows:
|
|
209
|
-
this.
|
|
213
|
+
this.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
|
|
210
214
|
// skip row groups
|
|
211
215
|
if (!rowNode.group) {
|
|
212
216
|
data.rows.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
@@ -214,7 +218,7 @@ class ReportService {
|
|
|
214
218
|
});
|
|
215
219
|
break;
|
|
216
220
|
case Enums_1.ReportRowScope.VisibleRows:
|
|
217
|
-
this.
|
|
221
|
+
this.adaptableApi.internalApi.forAllVisibleRowNodesDo((rowNode) => {
|
|
218
222
|
// skip row groups
|
|
219
223
|
if (!rowNode.group) {
|
|
220
224
|
data.rows.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
@@ -222,9 +226,9 @@ class ReportService {
|
|
|
222
226
|
});
|
|
223
227
|
break;
|
|
224
228
|
case Enums_1.ReportRowScope.ExpressionRows:
|
|
225
|
-
this.
|
|
229
|
+
this.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
|
|
226
230
|
var _a;
|
|
227
|
-
if (this.
|
|
231
|
+
if (this.adaptableApi.internalApi
|
|
228
232
|
.getQueryLanguageService()
|
|
229
233
|
.evaluateBooleanExpression((_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression, ModuleConstants_1.ExportModuleId, rowNode)) {
|
|
230
234
|
data.rows.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
@@ -232,30 +236,31 @@ class ReportService {
|
|
|
232
236
|
});
|
|
233
237
|
break;
|
|
234
238
|
case Enums_1.ReportRowScope.SelectedCellRows:
|
|
235
|
-
const selectedCellInfo = this.
|
|
239
|
+
const selectedCellInfo = this.adaptableApi.gridApi.getSelectedCellInfo();
|
|
236
240
|
const { gridCells: GridCells } = selectedCellInfo;
|
|
237
241
|
let selectedCellsByPrimaryKey = groupBy_1.default(GridCells, 'primaryKeyValue');
|
|
238
242
|
// we iterate over all visibleRowNodes to preserve the current order
|
|
239
|
-
this.
|
|
240
|
-
const rowPrimaryKeyValue = this.
|
|
243
|
+
this.adaptableApi.internalApi.forAllVisibleRowNodesDo((rowNode) => {
|
|
244
|
+
const rowPrimaryKeyValue = this.adaptableApi.gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
241
245
|
const selectedRowCells = selectedCellsByPrimaryKey[rowPrimaryKeyValue];
|
|
242
246
|
if (selectedRowCells) {
|
|
243
247
|
const selectedRowColumnIds = selectedRowCells.map((rowCell) => rowCell.column.columnId);
|
|
244
248
|
const selectedColumnIds = columnIds.filter((columnId) => selectedRowColumnIds.includes(columnId));
|
|
245
249
|
const row = this.getRowObjectForColumnIds(rowNode, selectedColumnIds);
|
|
246
250
|
if (includePrimaryKey) {
|
|
247
|
-
row[this.
|
|
251
|
+
row[this.adaptableApi.internalApi.getAdaptableOptions().primaryKey] =
|
|
252
|
+
rowPrimaryKeyValue;
|
|
248
253
|
}
|
|
249
254
|
data.rows.push(row);
|
|
250
255
|
}
|
|
251
256
|
});
|
|
252
257
|
break;
|
|
253
258
|
case Enums_1.ReportRowScope.SelectedRows:
|
|
254
|
-
const selectedRowInfo = this.
|
|
259
|
+
const selectedRowInfo = this.adaptableApi.gridApi.getSelectedRowInfo();
|
|
255
260
|
const selectedGridRowPrimaryKeys = (_b = (_a = selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows) === null || _a === void 0 ? void 0 : _a.filter((gr) => gr.rowInfo.isGroup == false).map((gridRow) => gridRow.primaryKeyValue)) !== null && _b !== void 0 ? _b : [];
|
|
256
261
|
if (selectedGridRowPrimaryKeys.length) {
|
|
257
|
-
this.
|
|
258
|
-
const rowPrimaryKeyValue = this.
|
|
262
|
+
this.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
|
|
263
|
+
const rowPrimaryKeyValue = this.adaptableApi.gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
259
264
|
if (selectedGridRowPrimaryKeys.includes(rowPrimaryKeyValue)) {
|
|
260
265
|
data.rows.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
261
266
|
}
|
|
@@ -263,7 +268,7 @@ class ReportService {
|
|
|
263
268
|
}
|
|
264
269
|
break;
|
|
265
270
|
case Enums_1.ReportRowScope.CustomRows:
|
|
266
|
-
const reportData = this.
|
|
271
|
+
const reportData = this.adaptableApi.exportApi.runCustomReport(report.Name);
|
|
267
272
|
return reportData;
|
|
268
273
|
// break;
|
|
269
274
|
}
|
|
@@ -287,21 +292,21 @@ class ReportService {
|
|
|
287
292
|
}
|
|
288
293
|
PublishLiveLiveDataChangedEvent(reportDestination, liveDataTrigger, liveReport) {
|
|
289
294
|
const liveDataChangedInfo = {
|
|
290
|
-
adaptableApi: this.
|
|
295
|
+
adaptableApi: this.adaptableApi,
|
|
291
296
|
reportDestination: reportDestination,
|
|
292
297
|
liveDataTrigger: liveDataTrigger,
|
|
293
298
|
liveReport: liveReport,
|
|
294
299
|
};
|
|
295
|
-
this.
|
|
300
|
+
this.adaptableApi.eventApi.emit('LiveDataChanged', liveDataChangedInfo);
|
|
296
301
|
}
|
|
297
302
|
getCellExportValueFromRowNode(rowNode, columnId) {
|
|
298
|
-
return this.getCellExportValueFromRawValue(this.
|
|
303
|
+
return this.getCellExportValueFromRawValue(this.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, columnId), columnId);
|
|
299
304
|
}
|
|
300
305
|
getCellExportValueFromRawValue(cellRawValue, columnId) {
|
|
301
306
|
if (StringExtensions_1.default.IsNullOrEmpty(cellRawValue)) {
|
|
302
307
|
return cellRawValue;
|
|
303
308
|
}
|
|
304
|
-
const columnType = this.
|
|
309
|
+
const columnType = this.adaptableApi.columnApi.getColumnDataTypeFromColumnId(columnId);
|
|
305
310
|
// if this is a date column and there is a custom export date format provided, that will take precedence
|
|
306
311
|
if (columnType === 'Date' && !!this.getCustomExportDateFormat()) {
|
|
307
312
|
const exportDateFormat = this.getCustomExportDateFormat();
|
|
@@ -315,7 +320,7 @@ class ReportService {
|
|
|
315
320
|
}
|
|
316
321
|
getReportFileName(reportName) {
|
|
317
322
|
let fileName = StringExtensions_1.default.ReplaceEmptySpacesWithUnderscore(reportName);
|
|
318
|
-
if (this.
|
|
323
|
+
if (this.adaptableApi.internalApi.getAdaptableOptions().exportOptions.appendFileTimestamp) {
|
|
319
324
|
fileName = `${fileName}_${FormatHelper_1.DateFormatter(new Date(), {
|
|
320
325
|
Pattern: 'yyyyMMdd_HHmmss',
|
|
321
326
|
})}`;
|
|
@@ -326,7 +331,7 @@ class ReportService {
|
|
|
326
331
|
// TO DO
|
|
327
332
|
}
|
|
328
333
|
getCustomExportDateFormat() {
|
|
329
|
-
return this.
|
|
334
|
+
return this.adaptableApi.internalApi.getAdaptableOptions().exportOptions.exportDateFormat;
|
|
330
335
|
}
|
|
331
336
|
getCellExportValueFromRawValueByType(cellRawValue, columnId,
|
|
332
337
|
// default to rawValue if, for some reason, the configs provide invalid values
|
|
@@ -334,22 +339,23 @@ class ReportService {
|
|
|
334
339
|
return type === 'rawValue'
|
|
335
340
|
? cellRawValue
|
|
336
341
|
: // type === formattedValue
|
|
337
|
-
this.
|
|
342
|
+
this.adaptableApi.gridApi.getFormattedValueFromRawValue(columnId, cellRawValue);
|
|
338
343
|
}
|
|
339
344
|
computeCellExportValueFormat(columnType) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
345
|
+
const exportOptions = this.adaptableApi.internalApi.getAdaptableOptions().exportOptions;
|
|
346
|
+
if (exportOptions.exportFormatType === 'rawValue' ||
|
|
347
|
+
exportOptions.exportFormatType === 'formattedValue') {
|
|
348
|
+
return exportOptions.exportFormatType;
|
|
343
349
|
}
|
|
344
350
|
// format is customized based on column data type
|
|
345
351
|
switch (columnType) {
|
|
346
352
|
case 'String':
|
|
347
|
-
return
|
|
353
|
+
return exportOptions.exportFormatType.string;
|
|
348
354
|
case 'Number':
|
|
349
355
|
case 'NumberArray':
|
|
350
|
-
return
|
|
356
|
+
return exportOptions.exportFormatType.number;
|
|
351
357
|
case 'Date':
|
|
352
|
-
return
|
|
358
|
+
return exportOptions.exportFormatType.date;
|
|
353
359
|
default:
|
|
354
360
|
// default to rawValue for all other column types
|
|
355
361
|
return 'rawValue';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ITeamSharingService } from './Interface/ITeamSharingService';
|
|
2
|
-
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
3
2
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
4
3
|
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
5
4
|
import { SharedEntity, SharedEntityConfig, SharedEntityActiveStatus, TeamSharingImportStep } from '../../PredefinedConfig/TeamSharingState';
|
|
6
5
|
import { TypeUuid } from '../../PredefinedConfig/Uuid';
|
|
6
|
+
import { AdaptableApi } from '../../../types';
|
|
7
7
|
export declare class TeamSharingService implements ITeamSharingService {
|
|
8
|
-
private
|
|
8
|
+
private adaptableApi;
|
|
9
9
|
private updateCheckTimerId;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(adaptableApi: AdaptableApi);
|
|
11
11
|
buildSharedEntityWithDependencies(adaptableObject: AdaptableObject, module: AdaptableModule, configuration: SharedEntityConfig): SharedEntity[];
|
|
12
12
|
getSharedEntityDependants(sharedEntityId: TypeUuid, sharedEntities: SharedEntity[]): SharedEntity[];
|
|
13
13
|
updateActiveSharedEntity(changedAdaptableObject: AdaptableObject, userName: string, sharedEntities: SharedEntity[]): [SharedEntity[], SharedEntity[]];
|
|
@@ -3,18 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TeamSharingService = void 0;
|
|
4
4
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
5
5
|
class TeamSharingService {
|
|
6
|
-
constructor(
|
|
7
|
-
this.
|
|
8
|
-
|
|
6
|
+
constructor(adaptableApi) {
|
|
7
|
+
this.adaptableApi = adaptableApi;
|
|
8
|
+
const teamSharingOptions = adaptableApi.internalApi.getAdaptableOptions().teamSharingOptions;
|
|
9
|
+
if (teamSharingOptions.updateInterval > 0) {
|
|
9
10
|
// convert minutes to millis
|
|
10
|
-
const updateInterval =
|
|
11
|
+
const updateInterval = teamSharingOptions.updateInterval * 60000;
|
|
11
12
|
this.updateCheckTimerId = setInterval(() => {
|
|
12
|
-
this.
|
|
13
|
+
this.adaptableApi.teamSharingApi.checkForUpdates();
|
|
13
14
|
}, updateInterval);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
buildSharedEntityWithDependencies(adaptableObject, module, configuration) {
|
|
17
|
-
const sharingUserName = this.
|
|
18
|
+
const sharingUserName = this.adaptableApi.internalApi.getAdaptableOptions().userName;
|
|
18
19
|
const sharingTimestamp = new Date().getTime();
|
|
19
20
|
const createdSharedEntities = [];
|
|
20
21
|
this.createSharedEntity(adaptableObject, module, configuration, sharingUserName, sharingTimestamp, createdSharedEntities);
|
|
@@ -62,7 +63,9 @@ class TeamSharingService {
|
|
|
62
63
|
// either ADD or EDIT(in which case the user will need to confirm the overwrite)
|
|
63
64
|
const getSharedEntityImportAction = (sharedEntity) => {
|
|
64
65
|
const { Module, Entity } = sharedEntity;
|
|
65
|
-
const importInfo = this.
|
|
66
|
+
const importInfo = this.adaptableApi.internalApi
|
|
67
|
+
.getModuleService()
|
|
68
|
+
.getTeamSharingAction(Module);
|
|
66
69
|
if (importInfo === null || importInfo === void 0 ? void 0 : importInfo.ModuleEntities.some((moduleEntity) => moduleEntity.Uuid === Entity.Uuid)) {
|
|
67
70
|
configOverwriteNeedsConfirmation = true;
|
|
68
71
|
return importInfo === null || importInfo === void 0 ? void 0 : importInfo.EditAction(Entity);
|
|
@@ -71,7 +74,7 @@ class TeamSharingService {
|
|
|
71
74
|
return importInfo === null || importInfo === void 0 ? void 0 : importInfo.AddAction(Entity);
|
|
72
75
|
}
|
|
73
76
|
};
|
|
74
|
-
const existingSharedEntities = this.
|
|
77
|
+
const existingSharedEntities = this.adaptableApi.teamSharingApi.getSharedEntities();
|
|
75
78
|
const sharedEntityDependencyTree = this.getSharedEntityDependencyTree(importedSharedEntity, existingSharedEntities);
|
|
76
79
|
const importSteps = sharedEntityDependencyTree.map((sharedEntity) => ({
|
|
77
80
|
sharedEntity,
|
|
@@ -81,13 +84,13 @@ class TeamSharingService {
|
|
|
81
84
|
}
|
|
82
85
|
getSharedEntityLocalAndRemoteRevisions(changedAdaptableObjectId, remoteSharedEntities) {
|
|
83
86
|
var _a, _b, _c, _d;
|
|
84
|
-
const localRevision = (_b = (_a = this.
|
|
87
|
+
const localRevision = (_b = (_a = this.adaptableApi.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap[changedAdaptableObjectId]) === null || _a === void 0 ? void 0 : _a.Revision) !== null && _b !== void 0 ? _b : -1;
|
|
85
88
|
const remoteRevision = (_d = (_c = remoteSharedEntities.find((sharedEntity) => sharedEntity.Entity.Uuid === changedAdaptableObjectId)) === null || _c === void 0 ? void 0 : _c.Revision) !== null && _d !== void 0 ? _d : -1;
|
|
86
89
|
return [localRevision, remoteRevision];
|
|
87
90
|
}
|
|
88
91
|
getStaleActiveSharedEntities() {
|
|
89
|
-
const sharedEntities = this.
|
|
90
|
-
const activeEntities = this.
|
|
92
|
+
const sharedEntities = this.adaptableApi.teamSharingApi.getSharedEntities();
|
|
93
|
+
const activeEntities = this.adaptableApi.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap;
|
|
91
94
|
const result = {};
|
|
92
95
|
sharedEntities
|
|
93
96
|
.filter((sharedEntity) => sharedEntity.Type === 'Active')
|
|
@@ -105,21 +108,21 @@ class TeamSharingService {
|
|
|
105
108
|
return result;
|
|
106
109
|
}
|
|
107
110
|
showUpdateNotifications() {
|
|
108
|
-
const { updateNotification } = this.
|
|
111
|
+
const { updateNotification } = this.adaptableApi.internalApi.getAdaptableOptions().teamSharingOptions;
|
|
109
112
|
if (!updateNotification) {
|
|
110
113
|
return;
|
|
111
114
|
}
|
|
112
115
|
Object.values(this.getStaleActiveSharedEntities()).forEach((sharedEntityActiveInfo) => {
|
|
113
116
|
const notificationMessage = `Active share ${sharedEntityActiveInfo.sharedEntity.Module} has a new Revision: ${sharedEntityActiveInfo.sharedEntity.Revision}`;
|
|
114
117
|
if (updateNotification === 'Alert' || updateNotification === 'AlertWithNotification') {
|
|
115
|
-
this.
|
|
118
|
+
this.adaptableApi.alertApi.showAlert('TeamSharing', notificationMessage, 'Info', {
|
|
116
119
|
DisplayNotification: updateNotification === 'AlertWithNotification',
|
|
117
120
|
});
|
|
118
121
|
}
|
|
119
122
|
if (updateNotification === 'SystemStatus') {
|
|
120
|
-
this.
|
|
123
|
+
this.adaptableApi.systemStatusApi.setInfoSystemStatus(`TeamSharing: ${notificationMessage}`);
|
|
121
124
|
}
|
|
122
|
-
this.
|
|
125
|
+
this.adaptableApi.teamSharingApi.fireTeamSharingEntityChangedEvent(sharedEntityActiveInfo.sharedEntity);
|
|
123
126
|
});
|
|
124
127
|
}
|
|
125
128
|
destroy() {
|
|
@@ -174,7 +177,7 @@ class TeamSharingService {
|
|
|
174
177
|
return Array.from(result.values());
|
|
175
178
|
}
|
|
176
179
|
getTeamSharingReferences(adaptableObject, module) {
|
|
177
|
-
return this.
|
|
180
|
+
return this.adaptableApi.internalApi
|
|
178
181
|
.getModuleService()
|
|
179
182
|
.getModuleById(module)
|
|
180
183
|
.getTeamSharingReferences(adaptableObject);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
1
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
2
|
import { IValidationService } from './Interface/IValidationService';
|
|
4
3
|
import { AlertDefinition } from '../../PredefinedConfig/AlertState';
|
|
4
|
+
import { AdaptableApi } from '../../../types';
|
|
5
5
|
export declare class ValidationService implements IValidationService {
|
|
6
|
-
private
|
|
7
|
-
constructor(
|
|
6
|
+
private adaptableApi;
|
|
7
|
+
constructor(adaptableApi: AdaptableApi);
|
|
8
8
|
getValidationRulesForDataChange(cellDataChangedInfo: CellDataChangedInfo): AlertDefinition[];
|
|
9
9
|
performValidation(cellDataChangedInfo: CellDataChangedInfo): boolean;
|
|
10
10
|
private IsAlertDefinitionTriggered;
|
|
@@ -6,9 +6,9 @@ const ArrayExtensions_1 = require("../Extensions/ArrayExtensions");
|
|
|
6
6
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
|
|
7
7
|
const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
8
8
|
class ValidationService {
|
|
9
|
-
constructor(
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
9
|
+
constructor(adaptableApi) {
|
|
10
|
+
this.adaptableApi = adaptableApi;
|
|
11
|
+
this.adaptableApi = adaptableApi;
|
|
12
12
|
}
|
|
13
13
|
// Not sure where to put this: was in the Module but might be better here until I can work out a way of having an event with a callback...
|
|
14
14
|
getValidationRulesForDataChange(cellDataChangedInfo) {
|
|
@@ -16,15 +16,15 @@ class ValidationService {
|
|
|
16
16
|
if (cellDataChangedInfo.oldValue == cellDataChangedInfo.newValue) {
|
|
17
17
|
return [];
|
|
18
18
|
}
|
|
19
|
-
let editingRules = this.
|
|
19
|
+
let editingRules = this.adaptableApi.alertApi
|
|
20
20
|
.getAlertDefinitionsWithPreventEdit()
|
|
21
|
-
.filter((v) => this.
|
|
21
|
+
.filter((v) => this.adaptableApi.scopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
|
|
22
22
|
let failedValidations = [];
|
|
23
23
|
if (ArrayExtensions_1.ArrayExtensions.IsNotEmpty(editingRules)) {
|
|
24
24
|
editingRules.forEach((alertDefinition) => {
|
|
25
25
|
if (alertDefinition.Rule.BooleanExpression) {
|
|
26
26
|
let isSatisfiedExpression = cellDataChangedInfo.rowNode != null &&
|
|
27
|
-
this.
|
|
27
|
+
this.adaptableApi.internalApi
|
|
28
28
|
.getQueryLanguageService()
|
|
29
29
|
.evaluateBooleanExpression(alertDefinition.Rule.BooleanExpression, ModuleConstants_1.AlertModuleId, cellDataChangedInfo.rowNode);
|
|
30
30
|
if (isSatisfiedExpression) {
|
|
@@ -50,24 +50,25 @@ class ValidationService {
|
|
|
50
50
|
alertDefinition: failedRules[0],
|
|
51
51
|
cellDataChangedInfo: cellDataChangedInfo,
|
|
52
52
|
};
|
|
53
|
-
this.
|
|
53
|
+
this.adaptableApi.alertApi.publishAlertFiredEvent(alert);
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
56
|
return true;
|
|
57
57
|
}
|
|
58
58
|
IsAlertDefinitionTriggered(alertDefinition, dataChangedEvent) {
|
|
59
|
-
return this.
|
|
59
|
+
return this.adaptableApi.predicateApi.handlePredicate(alertDefinition.Rule.Predicate, {
|
|
60
60
|
value: dataChangedEvent.newValue,
|
|
61
61
|
oldValue: dataChangedEvent.oldValue,
|
|
62
|
-
displayValue: this.
|
|
62
|
+
displayValue: this.adaptableApi.gridApi.getDisplayValueFromRowNode(dataChangedEvent.rowNode, dataChangedEvent.column.columnId),
|
|
63
63
|
node: dataChangedEvent.rowNode,
|
|
64
64
|
column: dataChangedEvent.column,
|
|
65
65
|
}, false);
|
|
66
66
|
}
|
|
67
67
|
performServerValidation(cellDataChangedInfo, config) {
|
|
68
68
|
return () => {
|
|
69
|
-
this.
|
|
70
|
-
.
|
|
69
|
+
this.adaptableApi.internalApi
|
|
70
|
+
.getAdaptableOptions()
|
|
71
|
+
.editOptions.validateOnServer(cellDataChangedInfo)
|
|
71
72
|
.then((validationResult) => {
|
|
72
73
|
var _a, _b;
|
|
73
74
|
if (validationResult.NewValue === undefined) {
|
|
@@ -82,11 +83,12 @@ class ValidationService {
|
|
|
82
83
|
if (!row) {
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
|
-
row[(_b = this.
|
|
86
|
-
this.
|
|
86
|
+
row[(_b = this.adaptableApi.columnApi.getAgGridColumnFieldForAdaptableColumn(cellDataChangedInfo.column.columnId)) !== null && _b !== void 0 ? _b : cellDataChangedInfo.column.columnId] = validationResult.NewValue;
|
|
87
|
+
this.adaptableApi.gridApi.updateGridData([row]);
|
|
87
88
|
if (StringExtensions_1.default.IsNotNullOrEmpty(validationResult.ValidationMessage) &&
|
|
88
|
-
this.
|
|
89
|
-
|
|
89
|
+
this.adaptableApi.internalApi.getAdaptableOptions().editOptions
|
|
90
|
+
.displayServerValidationMessages) {
|
|
91
|
+
this.adaptableApi.alertApi.showAlertInfo('Server Validation Message', validationResult.ValidationMessage);
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
config.onServerValidationCompleted();
|
|
@@ -95,9 +97,9 @@ class ValidationService {
|
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
99
|
createValidationDescription(alertDefinition) {
|
|
98
|
-
return (this.
|
|
100
|
+
return (this.adaptableApi.scopeApi.getScopeDescription(alertDefinition.Scope) +
|
|
99
101
|
' ' +
|
|
100
|
-
this.
|
|
102
|
+
this.adaptableApi.predicateApi.predicateToString(alertDefinition.Rule.Predicate));
|
|
101
103
|
}
|
|
102
104
|
createValidationMessage(alertDefinition) {
|
|
103
105
|
let returnMessage = this.createValidationDescription(alertDefinition);
|
|
@@ -12,10 +12,10 @@ const AdaptablePopupConfirmation_1 = require("./Components/Popups/AdaptablePopup
|
|
|
12
12
|
const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
|
|
13
13
|
const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
|
|
14
14
|
const License_1 = require("./License");
|
|
15
|
-
const ExportCustomDestinationFormPopups_1 = require("./Export/ExportCustomDestinationFormPopups");
|
|
16
15
|
const ProgressIndicator_1 = require("../components/ProgressIndicator/ProgressIndicator");
|
|
17
16
|
const react_toastify_1 = require("react-toastify");
|
|
18
17
|
const WindowPopups_1 = require("./Components/Popups/WindowPopups/WindowPopups");
|
|
18
|
+
const FormPopups_1 = require("./Components/Popups/FormPopups/FormPopups");
|
|
19
19
|
class AdaptableView extends React.Component {
|
|
20
20
|
render() {
|
|
21
21
|
var _a, _b, _c, _d;
|
|
@@ -26,11 +26,11 @@ class AdaptableView extends React.Component {
|
|
|
26
26
|
this.props.PopupState.PromptPopup.ShowPromptPopup && (React.createElement(AdaptablePopupPrompt_1.AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, onConfirmActionCreator: this.props.PopupState.PromptPopup.ConfirmActionCreator, defaultValue: this.props.PopupState.PromptPopup.DefaultValue })),
|
|
27
27
|
React.createElement(AdaptablePopupConfirmation_1.AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi }),
|
|
28
28
|
Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup) && (React.createElement(AdaptablePopup_1.AdaptablePopup, { componentName: this.props.PopupState.ScreenPopup.ComponentName, componentModule: this.props.PopupState.ScreenPopup.ComponentModule, onHide: this.props.onCloseScreenPopup, api: this.props.AdaptableApi, onClearParams: () => this.props.onClearPopupParams(), moduleParams: this.props.PopupState.ScreenPopup.Params, moduleProps: this.props.PopupState.ScreenPopup.PopupProps })),
|
|
29
|
-
React.createElement(ExportCustomDestinationFormPopups_1.ExportCustomDestinationFormPopups, { api: this.props.AdaptableApi }),
|
|
30
29
|
React.createElement(react_toastify_1.ToastContainer, { limit: this.props.AdaptableApi.internalApi.getAdaptableOptions().notificationsOptions
|
|
31
30
|
.maxNotifications, closeButton: false, icon: false, theme: "colored" }),
|
|
32
31
|
(watermark === null || watermark === void 0 ? void 0 : watermark.show) && React.createElement(License_1.LicenseWatermark, null, watermark === null || watermark === void 0 ? void 0 : watermark.text),
|
|
33
32
|
React.createElement(WindowPopups_1.WindowPopups, null),
|
|
33
|
+
React.createElement(FormPopups_1.FormPopups, null),
|
|
34
34
|
React.createElement(ProgressIndicator_1.ProgressIndicator, null)));
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -9,6 +9,39 @@ const CheckBox_1 = require("../../../components/CheckBox");
|
|
|
9
9
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
10
10
|
const rebass_1 = require("rebass");
|
|
11
11
|
const ValueSelector_1 = require("../../Components/ValueSelector");
|
|
12
|
+
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
13
|
+
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
14
|
+
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
15
|
+
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
16
|
+
const StylePreview_1 = require("../../../components/StylePreview");
|
|
17
|
+
const HighlightStyle = (props) => {
|
|
18
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
+
const options = [
|
|
20
|
+
{
|
|
21
|
+
label: 'Use Message Type',
|
|
22
|
+
onClick: () => {
|
|
23
|
+
props.onChange(true);
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Custom Style',
|
|
28
|
+
onClick: () => {
|
|
29
|
+
const initialStyle = ObjectFactory_1.default.CreateEmptyStyle();
|
|
30
|
+
props.onChange(initialStyle);
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(rebass_1.Flex, null,
|
|
36
|
+
React.createElement(CheckBox_1.CheckBox, { mr: 2, style: { alignItems: 'flex-start' }, checked: Boolean(props.highlight), onChange: (checked) => {
|
|
37
|
+
props.onChange(checked);
|
|
38
|
+
} }, props.label),
|
|
39
|
+
Boolean(props.highlight) && (React.createElement(DropdownButton_1.default, { items: options }, typeof props.highlight === 'boolean' ? (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "Use Message Type")) : (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "Custom Style"))))),
|
|
40
|
+
typeof props.highlight === 'object' && (React.createElement(rebass_1.Box, { paddingLeft: 3 },
|
|
41
|
+
React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: adaptable.api, Style: props.highlight, UpdateStyle: (style) => {
|
|
42
|
+
props.onChange(style);
|
|
43
|
+
} })))));
|
|
44
|
+
};
|
|
12
45
|
// both used in wizard and list view
|
|
13
46
|
exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
14
47
|
const { AlertProperties = {} } = alert;
|
|
@@ -31,7 +64,15 @@ exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
|
31
64
|
if (!values.length) {
|
|
32
65
|
values.push({ label: 'No behaviour selected', id: 'none' });
|
|
33
66
|
}
|
|
34
|
-
return (React.createElement(ValueSelector_1.ValueOptionsTags, { allowWrap: allowWrap, options: values, value: values.map((v) => v.id), readOnly: true, toIdentifier: (x) => x.id, toLabel: (x) =>
|
|
67
|
+
return (React.createElement(ValueSelector_1.ValueOptionsTags, { allowWrap: allowWrap, options: values, value: values.map((v) => v.id), readOnly: true, toIdentifier: (x) => x.id, toLabel: (x) => {
|
|
68
|
+
if (x.id === 'highlightCell' && typeof AlertProperties.HighlightCell === 'object') {
|
|
69
|
+
return (React.createElement(StylePreview_1.StylePreview, { padding: 0, mt: 0, styleObject: AlertProperties.HighlightCell }, "Highlight Cell"));
|
|
70
|
+
}
|
|
71
|
+
if (x.id === 'highlightRow' && typeof AlertProperties.HighlightRow === 'object') {
|
|
72
|
+
return (React.createElement(StylePreview_1.StylePreview, { padding: 0, mt: 0, styleObject: AlertProperties.HighlightRow }, "Highlight Row"));
|
|
73
|
+
}
|
|
74
|
+
return React.createElement(React.Fragment, null, x.label);
|
|
75
|
+
} }));
|
|
35
76
|
};
|
|
36
77
|
exports.AlertBehaviourWizardSection = (props) => {
|
|
37
78
|
const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
@@ -52,16 +93,12 @@ exports.AlertBehaviourWizardSection = (props) => {
|
|
|
52
93
|
} },
|
|
53
94
|
"Prevent Cell Edit",
|
|
54
95
|
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(automatically undo data change which triggered Alert)"))),
|
|
55
|
-
cellChangedAlert && (React.createElement(
|
|
96
|
+
cellChangedAlert && (React.createElement(HighlightStyle, { highlight: AlertProperties.HighlightCell, label: "Highlight Cell", onChange: (HighlightCell) => {
|
|
56
97
|
onChange({ HighlightCell });
|
|
57
|
-
} },
|
|
58
|
-
|
|
59
|
-
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(using the Alert message type)"))),
|
|
60
|
-
rowAddedAlert && (React.createElement(CheckBox_1.CheckBox, { style: { alignItems: 'flex-start' }, checked: Boolean(AlertProperties.HighlightRow), onChange: (HighlightRow) => {
|
|
98
|
+
} })),
|
|
99
|
+
rowAddedAlert && (React.createElement(HighlightStyle, { highlight: AlertProperties.HighlightRow, label: "Highlight Row", onChange: (HighlightRow) => {
|
|
61
100
|
onChange({ HighlightRow });
|
|
62
|
-
} },
|
|
63
|
-
"Highlight Row",
|
|
64
|
-
React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "(using the Alert message type)"))),
|
|
101
|
+
} })),
|
|
65
102
|
cellChangedAlert && (React.createElement(CheckBox_1.CheckBox, { checked: AlertProperties.JumpToCell, onChange: (JumpToCell) => {
|
|
66
103
|
onChange({ JumpToCell });
|
|
67
104
|
} }, "Jump To Cell")),
|