@sap/ux-specification 1.139.12 → 1.139.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/CHANGELOG.md +23 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +244 -236
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +143 -0
- package/dist/schemas/v4/BuildingBlocksConfig.json +100 -8
- package/dist/specification/package.json +4 -4
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +71 -3
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts +9 -0
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +21 -4
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.d.ts +21 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.js +35 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js +3 -2
- package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.d.ts +0 -3
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.js +6 -4
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/ActionGroupAggregation.d.ts +86 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionGroupAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionGroupAggregation.js +139 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionGroupAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.d.ts +11 -52
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.js +15 -81
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/ActionsContainerAggregation.d.ts +46 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsContainerAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsContainerAggregation.js +81 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsContainerAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.d.ts +2 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/actions/index.js +2 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +8 -0
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +56 -34
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +9 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +10 -0
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts +14 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js +110 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +4 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/TableColumn.d.ts +32 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/TableColumn.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/TableColumn.js +274 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/TableColumn.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +141 -72
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +14 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +66 -4
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +70 -19
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file This file is a helper module for its sibling module Table.ts. It provides the logic needed to support the columns of a table.
|
|
4
|
+
*/
|
|
5
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.syncRuleColumns = exports.GeneralTableColumns = exports.CustomColumnDefinition = exports.GeneralTableColumn = void 0;
|
|
13
|
+
const decoration_1 = require("../../../common/decoration");
|
|
14
|
+
const common_1 = require("../../../common");
|
|
15
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
16
|
+
const stableIdUtils_1 = require("../../generate/stableIdUtils");
|
|
17
|
+
const Action_1 = require("./Action");
|
|
18
|
+
const Table_1 = require("./Table");
|
|
19
|
+
const utils_1 = require("../../generate/utils");
|
|
20
|
+
/**
|
|
21
|
+
* The FlexAdapter used for the flex based properties of columns. Provides a control type that will be written into the corresponding flex changes.
|
|
22
|
+
* Currently, this is always sap.m.Column. Note that this is actually only true for responsive tables. For other tables it would be sap.ui.table.Column.
|
|
23
|
+
* Hence, changing the table type should result in an update of all flex changes for columns.
|
|
24
|
+
* Currently, we do not have a logic that supports that.
|
|
25
|
+
* Luckily, UI5 does not evaluate this property of a flex change, since the control id anyway identifies the control.
|
|
26
|
+
*/
|
|
27
|
+
const flexRuleForTableColumn = {
|
|
28
|
+
controlType: () => ux_specification_types_1.ControlType.TableColumn
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The ProcessingRuleAdapter for the flex based properties of columns.
|
|
32
|
+
*
|
|
33
|
+
* @param processingRule - the ProcessingRule to be adapted
|
|
34
|
+
* @param schemaHandlingParams - information provided by the hierarchy level above
|
|
35
|
+
*/
|
|
36
|
+
const processingRuleAdapterForTableColumnFlexProperty = function (processingRule, schemaHandlingParams) {
|
|
37
|
+
const columnDetail = schemaHandlingParams.specificParams;
|
|
38
|
+
if (columnDetail.controlId) {
|
|
39
|
+
processingRule.controlId = columnDetail.controlId;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
// As the column has no stable id flex based properties should be suppressed.
|
|
43
|
+
delete processingRule.element;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Provides a sync rule for a flex based property of a column.
|
|
48
|
+
*
|
|
49
|
+
* @param supportsExpressionBindings - information whether the option for expression bindings should be added
|
|
50
|
+
* @returns the syncRule to be used by the property
|
|
51
|
+
*/
|
|
52
|
+
function getSyncRuleForTableColumnProperty(supportsExpressionBindings) {
|
|
53
|
+
const syncRule = {
|
|
54
|
+
flex: flexRuleForTableColumn,
|
|
55
|
+
processingRuleAdapter: processingRuleAdapterForTableColumnFlexProperty
|
|
56
|
+
};
|
|
57
|
+
if (supportsExpressionBindings) {
|
|
58
|
+
syncRule.generate = decoration_1.addPatternForBindingChangeOfEnumLR; // add option for bindings
|
|
59
|
+
}
|
|
60
|
+
return syncRule;
|
|
61
|
+
}
|
|
62
|
+
// GeneralTableColumn
|
|
63
|
+
let GeneralTableColumn = class GeneralTableColumn {
|
|
64
|
+
};
|
|
65
|
+
exports.GeneralTableColumn = GeneralTableColumn;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableColumnProperty(false))
|
|
68
|
+
], GeneralTableColumn.prototype, "width", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableColumnProperty(true))
|
|
71
|
+
], GeneralTableColumn.prototype, "hAlign", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, decoration_1.syncRule)({
|
|
74
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
75
|
+
const columnDetail = schemaHandlingParams.specificParams;
|
|
76
|
+
if (columnDetail.actionInfo) {
|
|
77
|
+
processingRule.referenceAdaptation = {
|
|
78
|
+
specificParams: columnDetail.actionInfo,
|
|
79
|
+
suffix: (0, stableIdUtils_1.getStableIdForDatafieldActionButton)(columnDetail.actionInfo),
|
|
80
|
+
syncRuleProvider: Action_1.Action
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
delete processingRule.element; // no action info available -> suppress action node
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
], GeneralTableColumn.prototype, "action", void 0);
|
|
89
|
+
exports.GeneralTableColumn = GeneralTableColumn = __decorate([
|
|
90
|
+
(0, decoration_1.syncRule)({
|
|
91
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
92
|
+
const element = processingRule.element;
|
|
93
|
+
const columnInfo = schemaHandlingParams.specificParams;
|
|
94
|
+
// Add some information to processingRule.element:
|
|
95
|
+
const description = columnInfo.column.description;
|
|
96
|
+
element.description = description;
|
|
97
|
+
element[ux_specification_types_1.SchemaTag.dataType] = (0, common_1.determineDataType)(columnInfo.column.dataField);
|
|
98
|
+
if (columnInfo.column.message) {
|
|
99
|
+
element[ux_specification_types_1.SchemaTag.messages] = [columnInfo.column.message];
|
|
100
|
+
}
|
|
101
|
+
(0, common_1.addKeyToElement)(columnInfo.column.dataField, element, false);
|
|
102
|
+
// Translate the specificParams from type ColumnInfo to type ColumnDetail which is easier to consume by the properties of class GeneralTableColumn:
|
|
103
|
+
const controlId = (0, stableIdUtils_1.getControlIdForColumn)(columnInfo.smartTableId, columnInfo.column.dataField, columnInfo.column.isAction);
|
|
104
|
+
let actionInfo;
|
|
105
|
+
if (columnInfo.column.isAction) {
|
|
106
|
+
actionInfo = {
|
|
107
|
+
dataField: columnInfo.column,
|
|
108
|
+
action: columnInfo.column.dataField,
|
|
109
|
+
iconTabFilterKey: columnInfo.iconTabFilterKey,
|
|
110
|
+
isViewNode: false
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
const columnDetail = {
|
|
114
|
+
controlId,
|
|
115
|
+
actionInfo
|
|
116
|
+
};
|
|
117
|
+
processingRule.referenceAdaptation = {
|
|
118
|
+
specificParams: columnDetail
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
], GeneralTableColumn);
|
|
123
|
+
// Instances of this class represent custom columns.
|
|
124
|
+
// Note that the structure of this class is given by the specific implementation for custom columns in tools-suite.
|
|
125
|
+
class CustomColumnDefinition {
|
|
126
|
+
}
|
|
127
|
+
exports.CustomColumnDefinition = CustomColumnDefinition;
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, decoration_1.syncRule)({
|
|
130
|
+
// todo: Implement when custom columns are supported.
|
|
131
|
+
})
|
|
132
|
+
], CustomColumnDefinition.prototype, "leadingProperty", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, decoration_1.syncRule)({
|
|
135
|
+
// todo: Implement when custom columns are supported.
|
|
136
|
+
})
|
|
137
|
+
], CustomColumnDefinition.prototype, "fragmentName", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, decoration_1.syncRule)({
|
|
140
|
+
// todo: Implement when custom columns are supported.
|
|
141
|
+
})
|
|
142
|
+
], CustomColumnDefinition.prototype, "cellsFragmentName", void 0);
|
|
143
|
+
// CustomColumnDefinitions
|
|
144
|
+
let CustomColumnDefinitions = class CustomColumnDefinitions {
|
|
145
|
+
};
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, decoration_1.syncRule)({
|
|
148
|
+
// todo: Implement when custom columns are supported.
|
|
149
|
+
})
|
|
150
|
+
], CustomColumnDefinitions.prototype, "items", void 0);
|
|
151
|
+
CustomColumnDefinitions = __decorate([
|
|
152
|
+
(0, decoration_1.syncRule)({
|
|
153
|
+
// todo: Implement when custom columns are supported.
|
|
154
|
+
})
|
|
155
|
+
], CustomColumnDefinitions);
|
|
156
|
+
/**
|
|
157
|
+
* This function provides the additional 'custom' entry to be added to the list of columns representing the custom columns.
|
|
158
|
+
*
|
|
159
|
+
* @returns Optional manifest path and schema definition for custom columns; both are undefined when no custom columns should be generated.
|
|
160
|
+
*/
|
|
161
|
+
function getCustomColumnsDefinition() {
|
|
162
|
+
return {
|
|
163
|
+
manifestPath: undefined,
|
|
164
|
+
customColumnsDefinition: undefined
|
|
165
|
+
}; // Todo: Implement logic for custom columns
|
|
166
|
+
}
|
|
167
|
+
const ACCESSOR_CUSTOM_COLUMNS = 'custom';
|
|
168
|
+
// GeneralTableColumns
|
|
169
|
+
let GeneralTableColumns = class GeneralTableColumns {
|
|
170
|
+
};
|
|
171
|
+
exports.GeneralTableColumns = GeneralTableColumns;
|
|
172
|
+
exports.GeneralTableColumns = GeneralTableColumns = __decorate([
|
|
173
|
+
(0, decoration_1.syncRule)({
|
|
174
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
175
|
+
const columnsInfo = schemaHandlingParams.specificParams;
|
|
176
|
+
const columnDefinitions = columnsInfo.columns;
|
|
177
|
+
const properties = {};
|
|
178
|
+
const columnInfos = {};
|
|
179
|
+
columnDefinitions.forEach(function (columnDefinition, i) {
|
|
180
|
+
const propertyDefinition = {
|
|
181
|
+
$ref: common_1.DEFINITION_LINK_PREFIX + 'GeneralTableColumn'
|
|
182
|
+
};
|
|
183
|
+
propertyDefinition[ux_specification_types_1.SchemaTag.propertyIndex] = i;
|
|
184
|
+
// Note: The accessor defined below must be a unique identifier of the column within the list of columns.
|
|
185
|
+
// On the first glance columnDefinition.dataField.stableIdPart looks like a good candidate for that.
|
|
186
|
+
// However, there are edge cases in which there are two columns defined which have the same stableIdPart.
|
|
187
|
+
// This indicates either a situation in which the page will fail to load (because of a duplicate id) or a situation
|
|
188
|
+
// in which some column does not have a stable id at all. Fiori Tools should be able to handle the later case, but no flex changes should
|
|
189
|
+
// be allowed for a column without stable id (which is ensured by syncRuleForTableColumnProperty).
|
|
190
|
+
const accessor = `TableColumn${i}`;
|
|
191
|
+
properties[accessor] = propertyDefinition;
|
|
192
|
+
const columnInfo = {
|
|
193
|
+
// facet: columnsInfo.facet
|
|
194
|
+
column: columnDefinition,
|
|
195
|
+
smartTableId: columnsInfo.smartTableId,
|
|
196
|
+
iconTabFilterKey: columnsInfo.iconTabFilterKey
|
|
197
|
+
};
|
|
198
|
+
columnInfos[accessor] = columnInfo;
|
|
199
|
+
});
|
|
200
|
+
const { customColumnsDefinition } = getCustomColumnsDefinition();
|
|
201
|
+
if (customColumnsDefinition) {
|
|
202
|
+
properties[ACCESSOR_CUSTOM_COLUMNS] = customColumnsDefinition;
|
|
203
|
+
}
|
|
204
|
+
processingRule.element.properties = properties;
|
|
205
|
+
processingRule.element.additionalProperties = false;
|
|
206
|
+
processingRule.referenceAdaptation = {
|
|
207
|
+
processingRulesAdapter(property, processingRule) {
|
|
208
|
+
const isCustomColumn = property === ACCESSOR_CUSTOM_COLUMNS;
|
|
209
|
+
const columnInfo = columnInfos[property];
|
|
210
|
+
processingRule.referenceAdaptation = {
|
|
211
|
+
suffix: `${isCustomColumn ? '' : property}${(0, stableIdUtils_1.getSuffixFromIconTabFilterKey)(columnsInfo.iconTabFilterKey)}`,
|
|
212
|
+
specificParams: columnInfo,
|
|
213
|
+
syncRuleProvider: isCustomColumn ? CustomColumnDefinitions : GeneralTableColumn
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
], GeneralTableColumns);
|
|
220
|
+
/**
|
|
221
|
+
* The SyncRule for the columns of a table. It collects the information needed to generate the nodes for the columns and to adapt the nodes for the columns in the manifest and to provide the information needed to generate flex changes for the columns.
|
|
222
|
+
*/
|
|
223
|
+
exports.syncRuleColumns = {
|
|
224
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
225
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
226
|
+
if (tableParams.multiTableInfo &&
|
|
227
|
+
(!tableParams.multiTableInfo.variantInfo || tableParams.multiTableInfo.variantInfo.isChart)) {
|
|
228
|
+
delete processingRule.element;
|
|
229
|
+
return; // no columns defined in the global table settings of a multi table app and for chart views
|
|
230
|
+
}
|
|
231
|
+
const lineItemInfo = tableParams.multiTableInfo
|
|
232
|
+
? tableParams.multiTableInfo.variantInfo.lineItemInfo
|
|
233
|
+
: tableParams.lineItemInfo;
|
|
234
|
+
if (!lineItemInfo) {
|
|
235
|
+
delete processingRule.element; // no line item available -> suppress columns. Note that this can only happen in multi table case. If global lineItem is not available whole table node will be skipped.
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const tableType = (0, Table_1.getTableType)(tableParams);
|
|
239
|
+
const smartTableId = tableParams.multiTableInfo
|
|
240
|
+
? tableParams.multiTableInfo.variantInfo.smartControlId
|
|
241
|
+
: tableParams.tableId;
|
|
242
|
+
const columns = lineItemInfo.dataFieldInfos.filter(function (dataField) {
|
|
243
|
+
if (dataField.target !== utils_1.DataFieldTarget.Column) {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
const dataFieldDefinition = dataField.dataField;
|
|
247
|
+
if (dataFieldDefinition.$Type === "com.sap.vocabularies.UI.v1.DataField" /* UIAnnotationTypes.DataField */ ||
|
|
248
|
+
dataFieldDefinition.$Type === "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* UIAnnotationTypes.DataFieldWithUrl */) {
|
|
249
|
+
// These DataFields are excluded by the SmartTable if they do not have a Path.
|
|
250
|
+
// Note: There seem to be situations when FE decides to create a column for a DataField without Path anyway (probably if they should host the DraftIndicator).
|
|
251
|
+
// Currently, we ignore this edge case within an edge case.
|
|
252
|
+
return !!dataFieldDefinition.Value?.['path'];
|
|
253
|
+
}
|
|
254
|
+
return true;
|
|
255
|
+
});
|
|
256
|
+
const entityType = tableParams.multiTableInfo
|
|
257
|
+
? tableParams.multiTableInfo.variantInfo.entityTypeDefinition
|
|
258
|
+
: tableParams.entityType;
|
|
259
|
+
const columnsInfo = {
|
|
260
|
+
entityType,
|
|
261
|
+
tableType,
|
|
262
|
+
columns,
|
|
263
|
+
smartTableId,
|
|
264
|
+
iconTabFilterKey: tableParams.multiTableInfo?.variantInfo.iconTabFilterKey
|
|
265
|
+
};
|
|
266
|
+
processingRule.referenceAdaptation = {
|
|
267
|
+
suffix: smartTableId,
|
|
268
|
+
specificParams: columnsInfo,
|
|
269
|
+
syncRuleProvider: GeneralTableColumns
|
|
270
|
+
};
|
|
271
|
+
processingRule.element[ux_specification_types_1.SchemaTag.propertyIndex] = 1; // place columns node behind the toolbar node (which has propertyIndex 0).
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=TableColumn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableColumn.js","sourceRo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C,cAAc;YACvD,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC;QAC1B,MAAM,OAAO,GAAG,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,UAAU,SAAS;YAClE,IAAI,SAAS,CAAC,MAAM,KAAK,uBAAe,CAAC,MAAM,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC;YACjB,CAAC;YACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,SAAS,CAAC;YAChD,IACI,mBAAmB,CAAC,KAAK,6EAAgC;gBACzD,mBAAmB,CAAC,KAAK,2FAAuC,EAClE,CAAC;gBACC,8EAA8E;gBAC9E,8JAA8J;gBAC9J,2DAA2D;gBAC3D,OAAO,CAAC,CAAC,mBAAmB,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;YACjD,CAAC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,WAAW,CAAC,cAAc;YACzC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,oBAAoB;YAC7D,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAgB;YAC7B,UAAU;YACV,SAAS;YACT,OAAO;YACP,YAAY;YACZ,gBAAgB,EAAE,WAAW,CAAC,cAAc,EAAE,WAAW,CAAC,gBAAgB;SAC7E,CAAC;QACF,cAAc,CAAC,mBAAmB,GAAG;YACjC,MAAM,EAAE,YAAY;YACpB,cAAc,EAAE,WAAW;YAC3B,gBAAgB,EAAE,mBAAmB;SACxC,CAAC;QACF,cAAc,CAAC,OAAO,CAAC,kCAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,0EAA0E;IACnI,CAAC;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
|
|
@@ -25,4 +25,5 @@ __exportStar(require("./MultiEdit"), exports);
|
|
|
25
25
|
__exportStar(require("./MultiTable"), exports);
|
|
26
26
|
__exportStar(require("./MultiViewSingleTable"), exports);
|
|
27
27
|
__exportStar(require("./Table"), exports);
|
|
28
|
+
__exportStar(require("./TableColumn"), exports);
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,yDAAuC;AACvC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,yDAAuC;AACvC,0CAAwB;AACxB,gDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fpmCustomPage.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/fpmCustomPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EACR,+BAA+B,EAC/B,aAAa,EACb,eAAe,EACf,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAYrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACnB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"fpmCustomPage.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/fpmCustomPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EACR,+BAA+B,EAC/B,aAAa,EACb,eAAe,EACf,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAYrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACnB,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAkdD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACpC,aAAa,EAAE,iBAAiB,EAChC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,EAC5B,aAAa,EAAE,MAAM,GAAG,UAAU,EAClC,MAAM,CAAC,EAAE,eAAe,QAsC3B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GAClC,kBAAkB,+BAA+B,EACjD,qBAAqB,aAAa,KACnC,aAYF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAChC,oBAAoB,uBAAuB,EAC3C,cAAc,MAAM,EACpB,QAAQ,MAAM,KACf,IAkBF,CAAC"}
|