@adaptabletools/adaptable 10.0.3 → 10.0.4-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -4
- package/src/Api/CalculatedColumnApi.d.ts +15 -0
- package/src/Api/ColumnApi.d.ts +6 -0
- package/src/Api/Implementation/AlertApiImpl.js +5 -5
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +32 -35
- package/src/Api/Implementation/ExportApiImpl.js +4 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.js +8 -9
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.js +3 -3
- package/src/Api/Implementation/ScopeApiImpl.js +11 -11
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -8
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/UserInterfaceApi.d.ts +3 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +33 -33
- package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +3 -3
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +3 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +3 -3
- package/src/Strategy/AdaptableModuleBase.js +8 -8
- package/src/Strategy/AlertModule.js +12 -11
- package/src/Strategy/BulkUpdateModule.js +5 -5
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/CellSummaryModule.js +3 -3
- package/src/Strategy/ConditionalStyleModule.js +3 -3
- package/src/Strategy/CustomSortModule.js +2 -2
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +5 -5
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/LayoutModule.js +3 -3
- package/src/Strategy/PlusMinusModule.js +8 -9
- package/src/Strategy/SmartEditModule.js +6 -6
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/DataService.js +5 -5
- package/src/Utilities/Services/ReportService.js +11 -11
- package/src/Utilities/Services/ValidationService.js +4 -5
- package/src/View/Alert/AlertPopup.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/Components/ColumnSelector/index.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +14 -14
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/PreviewResultsPanel.js +1 -1
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnSelector.js +5 -5
- package/src/View/Components/Selectors/ColumnValueSelector.js +4 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/CustomSort/CustomSortEntityRow.js +2 -2
- package/src/View/CustomSort/CustomSortPopup.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +3 -3
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -3
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +2 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
- package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
- package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/Query/QueryViewPanel.js +2 -2
- package/src/agGrid/Adaptable.js +57 -51
- package/src/agGrid/agGridHelper.js +32 -32
- package/src/agGrid/agGridMenuHelper.js +2 -2
- package/src/components/ExpressionEditor/index.js +7 -7
- package/src/metamodel/adaptable.metamodel.d.ts +51 -5
- package/src/metamodel/adaptable.metamodel.js +99 -30
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -88,7 +88,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
88
88
|
const { layout } = state;
|
|
89
89
|
const allColumnsMap = React.useMemo(() => {
|
|
90
90
|
return allColumns.reduce((acc, col) => {
|
|
91
|
-
acc[col.
|
|
91
|
+
acc[col.columnId] = col;
|
|
92
92
|
return acc;
|
|
93
93
|
}, {});
|
|
94
94
|
}, [allColumns]);
|
|
@@ -99,7 +99,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
99
99
|
return col;
|
|
100
100
|
})
|
|
101
101
|
.concat(allColumns.filter((col) => {
|
|
102
|
-
return !tmpMap[col.
|
|
102
|
+
return !tmpMap[col.columnId];
|
|
103
103
|
}))
|
|
104
104
|
.filter((c) => c));
|
|
105
105
|
const setLayout = (layout) => {
|
|
@@ -118,7 +118,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
118
118
|
}, [props.layout]);
|
|
119
119
|
const visibleColumnsMap = React.useMemo(() => {
|
|
120
120
|
return allColumns.reduce((acc, col) => {
|
|
121
|
-
acc[col.
|
|
121
|
+
acc[col.columnId] = layout.Columns.indexOf(col.columnId) != -1 ? col : null;
|
|
122
122
|
return acc;
|
|
123
123
|
}, {});
|
|
124
124
|
}, [layout, allColumns]);
|
|
@@ -126,7 +126,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
126
126
|
return Object.keys(layout.AggregationColumns || {}).reduce((acc, colId) => {
|
|
127
127
|
let fn = layout.AggregationColumns[colId];
|
|
128
128
|
if (typeof fn === 'boolean') {
|
|
129
|
-
fn = allColumnsMap[colId].
|
|
129
|
+
fn = allColumnsMap[colId].aggregationFunction;
|
|
130
130
|
}
|
|
131
131
|
acc[colId] = fn;
|
|
132
132
|
return acc;
|
|
@@ -145,8 +145,8 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
145
145
|
const setColumnVisibility = (c, visible) => {
|
|
146
146
|
const newLayout = visible
|
|
147
147
|
? Object.assign(Object.assign({}, layout), { Columns: columnList
|
|
148
|
-
.filter((col) => visibleColumnsMap[col.
|
|
149
|
-
.map((c) => c.
|
|
148
|
+
.filter((col) => visibleColumnsMap[col.columnId] || col.columnId === c.columnId)
|
|
149
|
+
.map((c) => c.columnId) }) : Object.assign(Object.assign({}, layout), { Columns: layout.Columns.filter((colId) => colId !== c.columnId) });
|
|
150
150
|
const previousGroupCols = getAgGridGroupAutoColumn(layout);
|
|
151
151
|
const currentGroupCols = getAgGridGroupAutoColumn(newLayout);
|
|
152
152
|
if (previousGroupCols.length !== currentGroupCols.length) {
|
|
@@ -172,7 +172,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
172
172
|
}
|
|
173
173
|
if (source.droppableId === droppableIds_1.LayoutEditorDroppableIds.ColumnList) {
|
|
174
174
|
source.column = columnList[source.index];
|
|
175
|
-
source.columnId = source.column.
|
|
175
|
+
source.columnId = source.column.columnId;
|
|
176
176
|
}
|
|
177
177
|
if (destination.droppableId === droppableIds_1.LayoutEditorDroppableIds.ColumnList) {
|
|
178
178
|
onDragEndRef.current.columnList(result);
|
|
@@ -192,7 +192,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
192
192
|
const dragSource = source.droppableId;
|
|
193
193
|
const column = dragSource === droppableIds_1.LayoutEditorDroppableIds.ColumnList ? allColumnsMap[draggableId] : null;
|
|
194
194
|
const invalidSourceForColumns = source.droppableId !== droppableIds_1.LayoutEditorDroppableIds.ColumnList;
|
|
195
|
-
const dropDisabledOnColumns = !column || !column.
|
|
195
|
+
const dropDisabledOnColumns = !column || !column.moveable || invalidSourceForColumns;
|
|
196
196
|
dispatch({
|
|
197
197
|
type: reducer_1.LayoutEditorActions.SET_DROP_DISABLED_ON_COLUMNS,
|
|
198
198
|
payload: dropDisabledOnColumns,
|
|
@@ -203,37 +203,37 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
203
203
|
});
|
|
204
204
|
const columnAlreadySorted = column &&
|
|
205
205
|
layout.ColumnSorts &&
|
|
206
|
-
!!layout.ColumnSorts.filter((c) => c.ColumnId === column.
|
|
206
|
+
!!layout.ColumnSorts.filter((c) => c.ColumnId === column.columnId)[0];
|
|
207
207
|
const invalidSourceForSort = dragSource !== droppableIds_1.LayoutEditorDroppableIds.ColumnList &&
|
|
208
208
|
dragSource !== droppableIds_1.LayoutEditorDroppableIds.ColumnSortList;
|
|
209
|
-
const disableDropOnSort = invalidSourceForSort || columnAlreadySorted || (column && !column.
|
|
209
|
+
const disableDropOnSort = invalidSourceForSort || columnAlreadySorted || (column && !column.sortable);
|
|
210
210
|
dispatch({
|
|
211
211
|
type: reducer_1.LayoutEditorActions.SET_DROP_DISABLED_ON_SORT,
|
|
212
212
|
payload: !!disableDropOnSort,
|
|
213
213
|
});
|
|
214
214
|
const columnAlreadyRowGrouped = column && layout.RowGroupedColumns
|
|
215
|
-
? !!layout.RowGroupedColumns.filter((colId) => colId === column.
|
|
215
|
+
? !!layout.RowGroupedColumns.filter((colId) => colId === column.columnId)[0]
|
|
216
216
|
: false;
|
|
217
217
|
const invalidSourceForRowGroups = dragSource !== droppableIds_1.LayoutEditorDroppableIds.ColumnList &&
|
|
218
218
|
dragSource !== droppableIds_1.LayoutEditorDroppableIds.RowGroupsList;
|
|
219
|
-
const disableDropOnRowGroups = invalidSourceForRowGroups || columnAlreadyRowGrouped || (column && !column.
|
|
219
|
+
const disableDropOnRowGroups = invalidSourceForRowGroups || columnAlreadyRowGrouped || (column && !column.groupable);
|
|
220
220
|
dispatch({
|
|
221
221
|
type: reducer_1.LayoutEditorActions.SET_DROP_DISABLED_ON_ROW_GROUPS,
|
|
222
222
|
payload: !!disableDropOnRowGroups,
|
|
223
223
|
});
|
|
224
224
|
const columnAlreadyPivoted = column && layout.PivotColumns
|
|
225
|
-
? !!layout.PivotColumns.filter((colId) => colId === column.
|
|
225
|
+
? !!layout.PivotColumns.filter((colId) => colId === column.columnId)[0]
|
|
226
226
|
: false;
|
|
227
227
|
const invalidSourceForPivot = dragSource !== droppableIds_1.LayoutEditorDroppableIds.ColumnList &&
|
|
228
228
|
dragSource !== droppableIds_1.LayoutEditorDroppableIds.PivotList;
|
|
229
|
-
const disableDropOnPivot = invalidSourceForPivot || columnAlreadyPivoted || (column && !column.
|
|
229
|
+
const disableDropOnPivot = invalidSourceForPivot || columnAlreadyPivoted || (column && !column.pivotable);
|
|
230
230
|
dispatch({
|
|
231
231
|
type: reducer_1.LayoutEditorActions.SET_DROP_DISABLED_ON_PIVOT,
|
|
232
232
|
payload: !!disableDropOnPivot,
|
|
233
233
|
});
|
|
234
234
|
}, [state, layout]);
|
|
235
235
|
const onColumnOrderChange = react_1.useCallback((columns) => {
|
|
236
|
-
setLayout(Object.assign(Object.assign({}, layout), { Columns: columns.filter((c) => visibleColumnsMap[c.
|
|
236
|
+
setLayout(Object.assign(Object.assign({}, layout), { Columns: columns.filter((c) => visibleColumnsMap[c.columnId]).map((c) => c.columnId) }));
|
|
237
237
|
setColumnList(columns);
|
|
238
238
|
}, [visibleColumnsMap, layout]);
|
|
239
239
|
const onColumnSortsChange = react_1.useCallback((ColumnSorts) => {
|
|
@@ -257,16 +257,16 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
257
257
|
}, getItemStyle: (c, snapshot, draggableStyle) => {
|
|
258
258
|
return getItemStyle_1.getItemStyle(c, layout, state.dragSource, snapshot, draggableStyle);
|
|
259
259
|
}, columns: columnList, isDropDisabled: state.dropDisabledOnColumns, onColumnOrderChange: onColumnOrderChange, renderItem: (c) => {
|
|
260
|
-
const visible = !!visibleColumnsMap[c.
|
|
261
|
-
const aggregate = !!aggregationColumnsMap[c.
|
|
260
|
+
const visible = !!visibleColumnsMap[c.columnId];
|
|
261
|
+
const aggregate = !!aggregationColumnsMap[c.columnId];
|
|
262
262
|
// enable aggregation if there are row groups or pivoting is enabled
|
|
263
263
|
// const aggregateEnabled =
|
|
264
264
|
// (layout.RowGroupedColumns && layout.RowGroupedColumns.length) || layout.EnablePivot;
|
|
265
265
|
// JW: Not sure we do - why not just make it always visible as we ignore if if not required.
|
|
266
266
|
const aggregateEnabled = true;
|
|
267
|
-
const customHeader = headerColumnsMap[c.
|
|
268
|
-
const initialHeader = api.internalApi.getUserDefinedHeaderName(c.
|
|
269
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "stretch", "data-name": "drag-item", "data-col-id": c.
|
|
267
|
+
const customHeader = headerColumnsMap[c.columnId];
|
|
268
|
+
const initialHeader = api.internalApi.getUserDefinedHeaderName(c.columnId);
|
|
269
|
+
return (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "stretch", "data-name": "drag-item", "data-col-id": c.columnId },
|
|
270
270
|
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", backgroundColor: "secondary", color: "text-on-secondary" },
|
|
271
271
|
React.createElement(rebass_1.Flex, { flex: 1, alignItems: "center" },
|
|
272
272
|
React.createElement(rebass_1.Box, { ml: 2, mr: 2 },
|
|
@@ -279,18 +279,18 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
279
279
|
source: 'ContextMenu',
|
|
280
280
|
});
|
|
281
281
|
} }),
|
|
282
|
-
c.
|
|
282
|
+
c.columnGroup && c.columnGroup.groupCount > 1 ? (React.createElement(rebass_1.Box, { ml: 2, padding: 1, style: {
|
|
283
283
|
borderRadius: 'var(--ab__border-radius)',
|
|
284
284
|
background: 'var(--ab-color-defaultbackground)',
|
|
285
285
|
color: 'var(--ab-color-text-on-defaultbackground)',
|
|
286
286
|
} },
|
|
287
287
|
"Group: ",
|
|
288
|
-
c.
|
|
289
|
-
React.createElement(CheckBox_1.CheckBox, { title: "Visible", readOnly: !c.
|
|
288
|
+
c.columnGroup.friendlyName)) : null),
|
|
289
|
+
React.createElement(CheckBox_1.CheckBox, { title: "Visible", readOnly: !c.hideable && visible, checked: visible, mx: 2, style: {
|
|
290
290
|
whiteSpace: 'nowrap',
|
|
291
291
|
}, onChange: setColumnVisibility.bind(null, c) }, "Visible")),
|
|
292
292
|
React.createElement(rebass_1.Flex, { padding: 2, flexDirection: "column" },
|
|
293
|
-
React.createElement(ColumnLabels, { showTitle: true,
|
|
293
|
+
React.createElement(ColumnLabels, { showTitle: true, sortable: c.sortable, filterable: c.filterable, moveable: c.moveable, pivotable: c.pivotable, groupable: c.groupable, aggregatable: c.aggregatable }, ' '),
|
|
294
294
|
React.createElement(rebass_1.Flex, { flexDirection: "row", mt: 2 },
|
|
295
295
|
React.createElement(rebass_1.Flex, { flex: 3, alignItems: "baseline" },
|
|
296
296
|
React.createElement(rebass_1.Text, { fontSize: 3, mr: 2 }, "Header:"),
|
|
@@ -298,27 +298,27 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
298
298
|
const newTextValue = event.target.value;
|
|
299
299
|
const columnHeaders = Object.assign({}, layout.ColumnHeadersMap) || {};
|
|
300
300
|
if (StringExtensions_1.default.IsNullOrEmptyOrWhiteSpace(newTextValue)) {
|
|
301
|
-
delete columnHeaders[c.
|
|
301
|
+
delete columnHeaders[c.columnId];
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
304
|
-
columnHeaders[c.
|
|
304
|
+
columnHeaders[c.columnId] = newTextValue;
|
|
305
305
|
}
|
|
306
306
|
setLayout(Object.assign(Object.assign({}, layout), { ColumnHeadersMap: columnHeaders }));
|
|
307
307
|
} })),
|
|
308
|
-
React.createElement(rebass_1.Flex, { flex: 2 }, c.
|
|
309
|
-
c.
|
|
310
|
-
c.
|
|
308
|
+
React.createElement(rebass_1.Flex, { flex: 2 }, c.aggregatable &&
|
|
309
|
+
c.availableAggregationFunctions &&
|
|
310
|
+
c.availableAggregationFunctions.length ? (React.createElement(CheckBox_1.CheckBox, { key: "checkbox", ml: 3, my: 0, disabled: !aggregateEnabled, onChange: (checked) => {
|
|
311
311
|
let aggCols = layout.AggregationColumns || {};
|
|
312
312
|
// const aggCols = new Set(layout.AggregationColumns);
|
|
313
313
|
if (checked) {
|
|
314
|
-
let aggFunc = c.
|
|
315
|
-
if (!aggFunc && c.
|
|
316
|
-
aggFunc = c.
|
|
314
|
+
let aggFunc = c.aggregationFunction;
|
|
315
|
+
if (!aggFunc && c.availableAggregationFunctions) {
|
|
316
|
+
aggFunc = c.availableAggregationFunctions[0];
|
|
317
317
|
}
|
|
318
|
-
aggCols[c.
|
|
318
|
+
aggCols[c.columnId] = aggFunc;
|
|
319
319
|
}
|
|
320
320
|
else {
|
|
321
|
-
delete aggCols[c.
|
|
321
|
+
delete aggCols[c.columnId];
|
|
322
322
|
if (!Object.keys(aggCols).length) {
|
|
323
323
|
aggCols = null;
|
|
324
324
|
}
|
|
@@ -328,7 +328,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
328
328
|
"Aggregate",
|
|
329
329
|
React.createElement(DropdownButton_1.default, { style: {
|
|
330
330
|
visibility: aggregate ? 'visible' : 'hidden',
|
|
331
|
-
}, ml: 2, padding: 0, columns: ['label'], variant: "text", items: c.
|
|
331
|
+
}, ml: 2, padding: 0, columns: ['label'], variant: "text", items: c.availableAggregationFunctions.map((fnName) => {
|
|
332
332
|
return {
|
|
333
333
|
label: fnName,
|
|
334
334
|
onClick: () => {
|
|
@@ -336,11 +336,11 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
336
336
|
if (!aggCols) {
|
|
337
337
|
return;
|
|
338
338
|
}
|
|
339
|
-
aggCols[c.
|
|
339
|
+
aggCols[c.columnId] = fnName;
|
|
340
340
|
setLayout(Object.assign(Object.assign({}, layout), { AggregationColumns: aggCols }));
|
|
341
341
|
},
|
|
342
342
|
};
|
|
343
|
-
}) }, aggregationColumnsMap[c.
|
|
343
|
+
}) }, aggregationColumnsMap[c.columnId]))) : null)))));
|
|
344
344
|
} })),
|
|
345
345
|
React.createElement(ListPanel, { header: "Sorting", className: "ab-LayoutEditor__ColumnSortListPanel" },
|
|
346
346
|
React.createElement(ColumnSortList_1.ColumnSortList, { columnSorts: layout.ColumnSorts, onColumnSortsChange: onColumnSortsChange, isDropDisabled: state.dropDisabledOnSort, onReady: (dragEnd) => {
|
|
@@ -356,7 +356,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
356
356
|
React.createElement(rebass_1.Box, { ml: 2, mr: 3 },
|
|
357
357
|
React.createElement(icons_1.Icon, { name: "drag", size: 30 })),
|
|
358
358
|
React.createElement(rebass_1.Flex, { flex: "1", flexDirection: "row", alignItems: "center" },
|
|
359
|
-
column.
|
|
359
|
+
column.friendlyName,
|
|
360
360
|
" [",
|
|
361
361
|
c.SortOrder,
|
|
362
362
|
"]"),
|
|
@@ -381,7 +381,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
381
381
|
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", "data-name": "drag-item" },
|
|
382
382
|
React.createElement(rebass_1.Box, { ml: 2, mr: 3 },
|
|
383
383
|
React.createElement(icons_1.Icon, { name: "drag", size: 30 })),
|
|
384
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", flex: 1 }, column.
|
|
384
|
+
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", flex: 1 }, column.friendlyName),
|
|
385
385
|
React.createElement(SimpleButton_1.default, { variant: "text", onClick: (e) => {
|
|
386
386
|
e.stopPropagation();
|
|
387
387
|
clear();
|
|
@@ -400,7 +400,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
400
400
|
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", "data-name": "drag-item" },
|
|
401
401
|
React.createElement(rebass_1.Box, { ml: 2, mr: 3 },
|
|
402
402
|
React.createElement(icons_1.Icon, { name: "drag", size: 30 })),
|
|
403
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", flex: 1 }, column.
|
|
403
|
+
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", flex: 1 }, column.friendlyName),
|
|
404
404
|
React.createElement(SimpleButton_1.default, { variant: "text", onClick: (e) => {
|
|
405
405
|
e.stopPropagation();
|
|
406
406
|
clear();
|
|
@@ -424,5 +424,5 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
424
424
|
Groupable: 'Can form a row group',
|
|
425
425
|
Moveable: 'Is draggable and movable',
|
|
426
426
|
Pivotable: 'Eligible for pivoting',
|
|
427
|
-
},
|
|
427
|
+
}, sortable: true, filterable: true, moveable: true, pivotable: true, groupable: true, aggregatable: true })))));
|
|
428
428
|
}, areEqual);
|
|
@@ -45,7 +45,7 @@ class PlusMinusPopupComponent extends React.Component {
|
|
|
45
45
|
let column = this.props.popupParams.column;
|
|
46
46
|
let plusMinus = ObjectFactory_1.ObjectFactory.CreateEmptyPlusMinusNudge();
|
|
47
47
|
plusMinus.Scope = {
|
|
48
|
-
ColumnIds: [column.
|
|
48
|
+
ColumnIds: [column.columnId],
|
|
49
49
|
};
|
|
50
50
|
this.setState({
|
|
51
51
|
editedAdaptableObject: plusMinus,
|
|
@@ -40,7 +40,7 @@ class PlusMinusSummaryComponent extends React.Component {
|
|
|
40
40
|
onNew() {
|
|
41
41
|
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyPlusMinusNudge();
|
|
42
42
|
configEntity.Scope = {
|
|
43
|
-
ColumnIds: [this.props.summarisedColumn.
|
|
43
|
+
ColumnIds: [this.props.summarisedColumn.columnId],
|
|
44
44
|
};
|
|
45
45
|
this.setState({
|
|
46
46
|
editedAdaptableObject: configEntity,
|
|
@@ -73,8 +73,8 @@ class QueryViewPanelComponent extends React.Component {
|
|
|
73
73
|
];
|
|
74
74
|
let availableColumns = this.props.api.columnApi.getColumns().map((col) => {
|
|
75
75
|
return {
|
|
76
|
-
label: col.
|
|
77
|
-
onClick: () => this.setState({ expression: this.state.expression + `[${col.
|
|
76
|
+
label: col.friendlyName,
|
|
77
|
+
onClick: () => this.setState({ expression: this.state.expression + `[${col.columnId}]` }),
|
|
78
78
|
};
|
|
79
79
|
});
|
|
80
80
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|