@sap/ux-specification 1.71.151 → 1.71.153
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 +53 -1
- 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/index-min.js +197 -188
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +111 -294
- package/dist/specification/package.json +10 -9
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +2 -1
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.d.ts +9 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +51 -2
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts +8 -0
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
- package/dist/specification/src/ftfs/ftfs.js +1 -0
- package/dist/specification/src/ftfs/ftfs.js.map +1 -1
- package/dist/specification/src/ftfs/index.d.ts +1 -1
- package/dist/specification/src/ftfs/index.d.ts.map +1 -1
- package/dist/specification/src/ftfs/index.js +2 -1
- package/dist/specification/src/ftfs/index.js.map +1 -1
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +2 -1
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.d.ts +4 -2
- package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.js +4 -2
- package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +18 -1
- package/dist/specification/src/sync/common/utils.d.ts +2 -2
- package/dist/specification/src/sync/common/utils.js +3 -3
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +5 -5
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +39 -27
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +6 -4
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +54 -21
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +17 -6
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +70 -18
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.js +123 -25
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +7 -7
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +33 -6
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +2 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/utils.js +2 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.d.ts +0 -15
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +5 -160
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +42 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +410 -3
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +25 -6
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
- package/dist/specification/src/sync/v2/types.d.ts +2 -0
- package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/types.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +25 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +28 -4
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
- package/dist/templates/GridTableColumnsExtension.xml +3 -3
- package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
- package/dist/templates/TreeTableColumnsExtension.xml +4 -4
- package/dist/templates/fragment.xml +3 -3
- package/dist/templates/view.xml +3 -3
- package/dist/types/src/apiTypes.d.ts +22 -3
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +5 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +1 -0
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/package.json +11 -10
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* @file This file contains the classes implementing the interfaces defined in the corresponding types file.
|
|
3
3
|
* Note that the logic for dealing with the multi-table scenario is implemented in the sibling file MultiTable.ts.
|
|
4
4
|
*/
|
|
5
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
6
|
import type * as Edm from '@sap-ux/vocabularies-types/Edm';
|
|
6
|
-
import type { ExtensionLogger } from '@sap/ux-specification-types';
|
|
7
|
+
import type { AccessorPath, ExtensionLogger, SchemaHandlingParams } from '@sap/ux-specification-types';
|
|
7
8
|
import * as v2 from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
|
|
8
9
|
import type { SapUiGenericAppPageSettings } from '@sap/ux-specification-types/src/common';
|
|
9
|
-
import type
|
|
10
|
+
import { type LineItemInfo } from '../../generate/utils';
|
|
10
11
|
import type { MultiTableInfo } from './MultiTable';
|
|
12
|
+
import { type Toolbar } from './Action';
|
|
11
13
|
/**
|
|
12
14
|
* Specific params applicable to the current table passed to the ProcessingRuleAdapter.
|
|
13
15
|
*
|
|
@@ -33,6 +35,13 @@ export type TableParams = {
|
|
|
33
35
|
* @returns the default table type for the given entity type
|
|
34
36
|
*/
|
|
35
37
|
export declare function getDefaultTableType(entityTypeDefinition: Edm.EntityType): v2.TableTypeV2Enum;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the table type valid for the artifact described by given parameters.
|
|
40
|
+
*
|
|
41
|
+
* @param tableParams - the parameters describing the table
|
|
42
|
+
* @returns the table type for the given table
|
|
43
|
+
*/
|
|
44
|
+
export declare function getTableType(tableParams: TableParams): v2.TableTypeV2Enum;
|
|
36
45
|
/**
|
|
37
46
|
* Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
|
|
38
47
|
*
|
|
@@ -41,6 +50,25 @@ export declare function getDefaultTableType(entityTypeDefinition: Edm.EntityType
|
|
|
41
50
|
* @returns - information whether the tableType is valid
|
|
42
51
|
*/
|
|
43
52
|
export declare function checkTableType(tableType: string | undefined, logger?: ExtensionLogger): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Helper functions for implementing a ProcessingRuleAdapter for a manifest-based property belonging to the tableSettings.
|
|
55
|
+
* Returns the manifest path for the table settings for the specified table params (which may either be global or for a specific view in a multi-table scenario).
|
|
56
|
+
*
|
|
57
|
+
* @param schemaHandlingParams - the schema handling parameters passed to the ProcessingRuleAdapter
|
|
58
|
+
* @param tableParams - the parameters describing the table
|
|
59
|
+
* @returns the manifest path to the tableSettings of the specified table
|
|
60
|
+
*/
|
|
61
|
+
export declare function getManifestPathForTableSettings(schemaHandlingParams: SchemaHandlingParams, tableParams: TableParams): AccessorPath;
|
|
62
|
+
/**
|
|
63
|
+
* Modifies a schema element such that the fields of the given entity type are added as enumeration values.
|
|
64
|
+
*
|
|
65
|
+
* @param element - the schema element to be modified
|
|
66
|
+
* @param entityTypeDefinition - the entity type hosting the fields
|
|
67
|
+
*/
|
|
68
|
+
export declare function addEntityTypeFieldsAsEnum(element: Definition, entityTypeDefinition: Edm.EntityType): void;
|
|
69
|
+
export declare class CreateWithFilters implements v2.CreateWithFilters {
|
|
70
|
+
strategy: v2.StrategyEnum;
|
|
71
|
+
}
|
|
44
72
|
export declare class Table implements v2.Table {
|
|
45
73
|
entitySet?: string;
|
|
46
74
|
annotationPath?: string;
|
|
@@ -50,5 +78,17 @@ export declare class Table implements v2.Table {
|
|
|
50
78
|
showTablePersonalisation?: boolean;
|
|
51
79
|
exportType?: v2.ExportType;
|
|
52
80
|
useExportToExcel?: boolean;
|
|
81
|
+
growingThreshold?: number;
|
|
82
|
+
popinLayout?: v2.PopinLayout;
|
|
83
|
+
includeItemInSelection?: boolean;
|
|
84
|
+
tableType?: v2.TableTypeV2Enum;
|
|
85
|
+
type?: v2.TableTypeV2Enum;
|
|
86
|
+
condensedTableLayout?: boolean;
|
|
87
|
+
enableTableFilterInPageVariant?: boolean;
|
|
88
|
+
multiSelect?: boolean;
|
|
89
|
+
selectAll?: boolean;
|
|
90
|
+
selectionLimit?: number;
|
|
91
|
+
createWithFilters?: v2.CreateWithFilters;
|
|
92
|
+
toolbar?: Toolbar;
|
|
53
93
|
}
|
|
54
94
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAG3D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAG3D,OAAO,KAAK,EACR,YAAY,EACZ,eAAe,EAIf,oBAAoB,EAGvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAS1F,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAenD,OAAO,EAAiC,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAEvE;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,EAAE,2BAA2B,CAAC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C,EAAE,OAAO,CAAC;IAI3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,WAAW,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC;IAI7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAqBjC,SAAS,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;IAgF/B,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;IAuB1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAyB/B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAKzC,WAAW,CAAC,EAAE,OAAO,CAAC;IAgCtB,SAAS,CAAC,EAAE,OAAO,CAAC;IAcpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,iBAAiB,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;IAyBzC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -46,16 +46,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
46
46
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
47
47
|
};
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.Table = void 0;
|
|
49
|
+
exports.Table = exports.CreateWithFilters = void 0;
|
|
50
50
|
exports.getDefaultTableType = getDefaultTableType;
|
|
51
|
+
exports.getTableType = getTableType;
|
|
51
52
|
exports.checkTableType = checkTableType;
|
|
53
|
+
exports.getManifestPathForTableSettings = getManifestPathForTableSettings;
|
|
54
|
+
exports.addEntityTypeFieldsAsEnum = addEntityTypeFieldsAsEnum;
|
|
52
55
|
const i18next_1 = __importDefault(require("i18next"));
|
|
53
56
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
54
57
|
const v2 = __importStar(require("@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table"));
|
|
55
58
|
const decoration_1 = require("../../../common/decoration");
|
|
56
59
|
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
60
|
+
const utils_1 = require("../../generate/utils");
|
|
57
61
|
const MultiTable_1 = require("./MultiTable");
|
|
58
62
|
const MultiViewSingleTable_1 = require("./MultiViewSingleTable");
|
|
63
|
+
const manifestPropertyUtils_1 = require("../../generate/manifestPropertyUtils");
|
|
64
|
+
const utils_2 = require("../../utils");
|
|
65
|
+
const common_1 = require("../../../common");
|
|
66
|
+
const Action_1 = require("./Action");
|
|
59
67
|
/**
|
|
60
68
|
* This function should return the information whether the given entity type is analytical.
|
|
61
69
|
* Unfortunately this is currently impossible due to missing information provided by the annotation api.
|
|
@@ -77,6 +85,71 @@ function getDefaultTableType(entityTypeDefinition) {
|
|
|
77
85
|
const isAnalytical = isTypeAnalytical(entityTypeDefinition);
|
|
78
86
|
return isAnalytical ? v2.TableTypeV2Enum.AnalyticalTable : v2.TableTypeV2Enum.ResponsiveTable;
|
|
79
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns the table type valid for the artifact described by given parameters.
|
|
90
|
+
*
|
|
91
|
+
* @param tableParams - the parameters describing the table
|
|
92
|
+
* @returns the table type for the given table
|
|
93
|
+
*/
|
|
94
|
+
function getTableType(tableParams) {
|
|
95
|
+
if (tableParams.multiTableInfo?.variantInfo) {
|
|
96
|
+
return tableParams.multiTableInfo.variantInfo.tableType;
|
|
97
|
+
}
|
|
98
|
+
const tableSettings = tableParams.settings?.tableSettings;
|
|
99
|
+
const tableType = (tableSettings && tableSettings['type']) ||
|
|
100
|
+
tableParams.settings?.tableType ||
|
|
101
|
+
getDefaultTableType(tableParams.entityType);
|
|
102
|
+
return tableType;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Checks whether the table described by the given parameters is a responsive table.
|
|
106
|
+
*
|
|
107
|
+
* @param tableParams - the parameters describing the table
|
|
108
|
+
* @returns true if the table is a responsive table, false otherwise
|
|
109
|
+
*/
|
|
110
|
+
function isResponsiveTable(tableParams) {
|
|
111
|
+
return getTableType(tableParams) === v2.TableTypeV2Enum.ResponsiveTable;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Checks whether the table described by the given parameters is a ui table.
|
|
115
|
+
*
|
|
116
|
+
* @param tableParams - the parameters describing the table
|
|
117
|
+
* @returns true if the table is a ui table, false otherwise
|
|
118
|
+
*/
|
|
119
|
+
function isUiTable(tableParams) {
|
|
120
|
+
return !isResponsiveTable(tableParams) && !tableParams.multiTableInfo?.variantInfo?.isChart;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get the tableSettings object from the manifest applicable to the specified table.
|
|
124
|
+
*
|
|
125
|
+
* @param tableParams - the parameters describing the table
|
|
126
|
+
* @returns the tableSettings or undefined if no tableSettings are applicable
|
|
127
|
+
*/
|
|
128
|
+
function getTableSettings(tableParams) {
|
|
129
|
+
return ((tableParams.multiTableInfo?.variantInfo &&
|
|
130
|
+
tableParams.multiTableInfo.variantInfo.variantDefinition['tableSettings']) ||
|
|
131
|
+
(tableParams.settings && tableParams.settings['tableSettings']));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Returns whether the specified table is configured a multi-selection table.
|
|
135
|
+
*
|
|
136
|
+
* @param tableParams - the parameters describing the table
|
|
137
|
+
* @returns whether the table is multi-select
|
|
138
|
+
*/
|
|
139
|
+
function isMultiSelect(tableParams) {
|
|
140
|
+
const tableSettings = getTableSettings(tableParams);
|
|
141
|
+
return tableSettings?.['multiSelect'] === true;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Checks whether the table described by the given parameters has selectAll switched on.
|
|
145
|
+
*
|
|
146
|
+
* @param tableParams - the parameters describing the table
|
|
147
|
+
* @returns true if the table has selectAll switched on, false otherwise
|
|
148
|
+
*/
|
|
149
|
+
function isSelectAll(tableParams) {
|
|
150
|
+
const tableSettings = getTableSettings(tableParams);
|
|
151
|
+
return isMultiSelect(tableParams) && tableSettings['selectAll'] !== false; // note that tableSettings are available if isMultiSelect is true
|
|
152
|
+
}
|
|
80
153
|
/**
|
|
81
154
|
* Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
|
|
82
155
|
*
|
|
@@ -118,16 +191,157 @@ const syncRuleForFlexSmartTable = {
|
|
|
118
191
|
}
|
|
119
192
|
}
|
|
120
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* Provide the syncRule for a property with artifact type 'FlexChange' belonging to the ResponsiveTable inside the SmartTable.
|
|
196
|
+
*
|
|
197
|
+
* @param addPatternForBinding information whether the addPatternForBindingChangeOfEnumLR should be added as generate property to the sync rule
|
|
198
|
+
* @returns the syncRule
|
|
199
|
+
*/
|
|
200
|
+
function getSyncRuleForFlexResponsiveTable(addPatternForBinding) {
|
|
201
|
+
const syncRule = {
|
|
202
|
+
flex: {
|
|
203
|
+
controlType: () => ux_specification_types_1.ControlType.Table,
|
|
204
|
+
createFlexChange: decoration_1.exportToFlexChange
|
|
205
|
+
},
|
|
206
|
+
processingRuleAdapter: function (processingRule, schemaHandlingParams) {
|
|
207
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
208
|
+
if ((!tableParams.multiTableInfo || tableParams.multiTableInfo.variantInfo) &&
|
|
209
|
+
isResponsiveTable(tableParams)) {
|
|
210
|
+
// Replicate logic from sap.suite.ui.generic.template.lib.StableIdDefinition, type: ListReport, subType: ResponsiveTable
|
|
211
|
+
const suffix = tableParams.multiTableInfo
|
|
212
|
+
? `-${tableParams.multiTableInfo.variantInfo.variantDefinition['key']}`
|
|
213
|
+
: '';
|
|
214
|
+
processingRule.controlId = `responsiveTable${suffix}`;
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
delete processingRule.element;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
if (addPatternForBinding) {
|
|
222
|
+
syncRule.generate = decoration_1.addPatternForBindingChangeOfEnumLR; // add option for bindings (already executed in the generation of the generic schema)
|
|
223
|
+
}
|
|
224
|
+
return syncRule;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Helper functions for implementing a ProcessingRuleAdapter for a manifest-based property belonging to the tableSettings.
|
|
228
|
+
* Returns the manifest path for the table settings for the specified table params (which may either be global or for a specific view in a multi-table scenario).
|
|
229
|
+
*
|
|
230
|
+
* @param schemaHandlingParams - the schema handling parameters passed to the ProcessingRuleAdapter
|
|
231
|
+
* @param tableParams - the parameters describing the table
|
|
232
|
+
* @returns the manifest path to the tableSettings of the specified table
|
|
233
|
+
*/
|
|
234
|
+
function getManifestPathForTableSettings(schemaHandlingParams, tableParams) {
|
|
235
|
+
const suffix = [];
|
|
236
|
+
if (tableParams.multiTableInfo?.variantInfo) {
|
|
237
|
+
suffix.push('quickVariantSelectionX', 'variants', tableParams.multiTableInfo.variantInfo.accessor);
|
|
238
|
+
}
|
|
239
|
+
suffix.push('tableSettings');
|
|
240
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath, suffix);
|
|
241
|
+
return manifestPath;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* This function adapts getSyncRuleForManifestProperty for properties belonging to the tableSettings of a table.
|
|
245
|
+
*
|
|
246
|
+
* @param property - the name of the property in tableSettings section of the manifest the SyncRule should be generated for
|
|
247
|
+
* @param getDisallowReason - optional function to determine whether the property is disallowed for the given table params
|
|
248
|
+
* @param adapt - an optional function that can be used to adapt the schema element representing the manifest property
|
|
249
|
+
* @param provideReferenceAdaptation - an optional function that can be used to provide the ReferenceAdaptationInfo for the manifest property
|
|
250
|
+
* @param expectedType - the expected type of the value of the property (if it is not undefined)
|
|
251
|
+
* @returns the SyncRule for the tableSettings property
|
|
252
|
+
*/
|
|
253
|
+
function getSyncRuleForTableSettingsProperty(property, getDisallowReason, adapt, provideReferenceAdaptation, expectedType) {
|
|
254
|
+
// Construct the analyze function for getSyncRuleForManifestProperty
|
|
255
|
+
const analyze = function (element, schemaHandlingParams, generateParameters) {
|
|
256
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
257
|
+
let disallowedReason;
|
|
258
|
+
// If the view is a chart view we can exclude the property generically. Otherwise check with function getDisallowedReason
|
|
259
|
+
if (tableParams.multiTableInfo?.variantInfo?.isChart) {
|
|
260
|
+
disallowedReason = i18next_1.default.t('NOCHARTPROPERTY', { property: property });
|
|
261
|
+
}
|
|
262
|
+
else if (getDisallowReason) {
|
|
263
|
+
disallowedReason = getDisallowReason(tableParams, generateParameters, element);
|
|
264
|
+
}
|
|
265
|
+
const manifestPath = getManifestPathForTableSettings(schemaHandlingParams, tableParams);
|
|
266
|
+
return { manifestPath, disallowedReason };
|
|
267
|
+
};
|
|
268
|
+
// Create a getReferenceAdaptation function with the correct signature for getSyncRuleForManifestProperty
|
|
269
|
+
const provideReferenceAdaptationWrapper = provideReferenceAdaptation
|
|
270
|
+
? function (schemaHandlingParams, generateParameters) {
|
|
271
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
272
|
+
return provideReferenceAdaptation(tableParams, generateParameters);
|
|
273
|
+
}
|
|
274
|
+
: undefined;
|
|
275
|
+
return (0, manifestPropertyUtils_1.getSyncRuleForManifestProperty)(property, analyze, adapt, provideReferenceAdaptationWrapper, expectedType);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* This function provides a SyncRule for manifest properties which are only allowed on the top-level of the table definition and not on the level of views in a multi-table scenario.
|
|
279
|
+
* Moreover, these properties possess a parent property that is a child of the page settings (so they are no direct children of the page settings).
|
|
280
|
+
*
|
|
281
|
+
* @param property - the property name in the manifest
|
|
282
|
+
* @param noWorklistI18nKey - the i18n key specifying the warning message in case the property is used in a worklist scenario
|
|
283
|
+
* @param syncRuleProvider - the sync rule provider for the specified manifest property
|
|
284
|
+
* @returns the syncRule for the specified manifest property
|
|
285
|
+
*/
|
|
286
|
+
function getOnlyTopLevelNotWorklistSyncRule(property, noWorklistI18nKey, syncRuleProvider) {
|
|
287
|
+
return {
|
|
288
|
+
processingRuleAdapter(processingRule, schemaHandlingParams, generateParameters) {
|
|
289
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
290
|
+
if (tableParams.multiTableInfo?.variantInfo) {
|
|
291
|
+
delete processingRule.element; // ignore this property on level of single views in multi-table scenario
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
if (tableParams.settings?.isWorklist) {
|
|
295
|
+
const disallowedReason = i18next_1.default.t(noWorklistI18nKey);
|
|
296
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath, []);
|
|
297
|
+
const { value } = (0, utils_2.getManifestPropertyByPath)(generateParameters.manifest, manifestPath, property);
|
|
298
|
+
(0, manifestPropertyUtils_1.handleDisallowedProperty)(disallowedReason, processingRule, value, manifestPath);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
processingRule.referenceAdaptation = {
|
|
302
|
+
syncRuleProvider: syncRuleProvider
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Modifies a schema element such that the fields of the given entity type are added as enumeration values.
|
|
309
|
+
*
|
|
310
|
+
* @param element - the schema element to be modified
|
|
311
|
+
* @param entityTypeDefinition - the entity type hosting the fields
|
|
312
|
+
*/
|
|
313
|
+
function addEntityTypeFieldsAsEnum(element, entityTypeDefinition) {
|
|
314
|
+
const itemsEnum = entityTypeDefinition.entityProperties.map((property) => property.name);
|
|
315
|
+
element.items = {
|
|
316
|
+
type: 'string',
|
|
317
|
+
enum: itemsEnum
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
class CreateWithFilters {
|
|
321
|
+
}
|
|
322
|
+
exports.CreateWithFilters = CreateWithFilters;
|
|
323
|
+
__decorate([
|
|
324
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/189e2d8a59f04a2693a4fde7f4a91a65?q=createWithFilters'),
|
|
325
|
+
(0, decoration_1.syncRule)({
|
|
326
|
+
manifest: {},
|
|
327
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
328
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath, [
|
|
329
|
+
'createWithFilters'
|
|
330
|
+
]);
|
|
331
|
+
processingRule.manifestPath = manifestPath;
|
|
332
|
+
}
|
|
333
|
+
})
|
|
334
|
+
], CreateWithFilters.prototype, "strategy", void 0);
|
|
121
335
|
class Table {
|
|
122
336
|
} // Table
|
|
123
337
|
exports.Table = Table;
|
|
124
338
|
__decorate([
|
|
125
339
|
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('entitySet')),
|
|
126
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
340
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/6698b80fc1a543ebb5c07e0781e9b93e')
|
|
127
341
|
], Table.prototype, "entitySet", void 0);
|
|
128
342
|
__decorate([
|
|
129
343
|
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('annotationPath')),
|
|
130
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
344
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/97dfeea4a8c346368cea6bf7a3e85478')
|
|
131
345
|
], Table.prototype, "annotationPath", void 0);
|
|
132
346
|
__decorate([
|
|
133
347
|
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('showItemNavigationOnChart'))
|
|
@@ -150,4 +364,197 @@ __decorate([
|
|
|
150
364
|
__decorate([
|
|
151
365
|
(0, decoration_1.syncRule)(syncRuleForFlexSmartTable)
|
|
152
366
|
], Table.prototype, "useExportToExcel", void 0);
|
|
367
|
+
__decorate([
|
|
368
|
+
(0, decoration_1.syncRule)(getSyncRuleForFlexResponsiveTable(false))
|
|
369
|
+
], Table.prototype, "growingThreshold", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
(0, decoration_1.syncRule)(getSyncRuleForFlexResponsiveTable(true))
|
|
372
|
+
], Table.prototype, "popinLayout", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
(0, decoration_1.syncRule)(getSyncRuleForFlexResponsiveTable(false))
|
|
375
|
+
], Table.prototype, "includeItemInSelection", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, decoration_1.syncRule)((0, manifestPropertyUtils_1.getSyncRuleForManifestProperty)('tableType',
|
|
378
|
+
// analyze:
|
|
379
|
+
function (element, schemaHandlingParams) {
|
|
380
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
381
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath);
|
|
382
|
+
// Property tableType is obsolete. For views in a multi-table scenario it was even never supported.
|
|
383
|
+
const disallowedReason = tableParams.multiTableInfo?.variantInfo
|
|
384
|
+
? manifestPropertyUtils_1.DISALLOWED_WITHOUT_EXPLANATION
|
|
385
|
+
: i18next_1.default.t('PROPERTYOBSOLETE', { property: 'tableType' });
|
|
386
|
+
return {
|
|
387
|
+
manifestPath,
|
|
388
|
+
disallowedReason
|
|
389
|
+
};
|
|
390
|
+
} // analyze
|
|
391
|
+
))
|
|
392
|
+
], Table.prototype, "tableType", void 0);
|
|
393
|
+
__decorate([
|
|
394
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableSettingsProperty('type', undefined,
|
|
395
|
+
// adapt:
|
|
396
|
+
function (element, schemaHandlingParams) {
|
|
397
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
398
|
+
// defaultTypeForMultiView is only set when we are on variant level and the generic level explicitly sets a type
|
|
399
|
+
const defaultTypeForMultiView = tableParams.multiTableInfo?.variantInfo && tableParams.settings?.tableSettings
|
|
400
|
+
? tableParams.settings.tableSettings['type']
|
|
401
|
+
: '';
|
|
402
|
+
if (tableParams.multiTableInfo?.variantInfo &&
|
|
403
|
+
tableParams.multiTableInfo.usedTableTypes.nonResponsive > 0 &&
|
|
404
|
+
tableParams.multiTableInfo.usedTableTypes.responsive > 0) {
|
|
405
|
+
// We have an illegal combination of responsive and non-responsive table types in a multi-view setting.
|
|
406
|
+
// We will add this as an error to all instances that defer from the default.
|
|
407
|
+
const defaultTableType = defaultTypeForMultiView || getDefaultTableType(tableParams.entityType);
|
|
408
|
+
const isDefaultResponsive = defaultTableType === v2.TableTypeV2Enum.ResponsiveTable;
|
|
409
|
+
if (isResponsiveTable(tableParams) !== isDefaultResponsive) {
|
|
410
|
+
// This is a variant which defers from the default -> consider it as being a reason for the incorrect setup
|
|
411
|
+
element[ux_specification_types_1.SchemaTag.messages] = [
|
|
412
|
+
{
|
|
413
|
+
text: i18next_1.default.t(isDefaultResponsive ? 'MULTITABLEONLYRESPONSIVE' : 'MULTITABLENORESPONSIVE'),
|
|
414
|
+
type: ux_specification_types_1.PropertyMessageType.Warning
|
|
415
|
+
}
|
|
416
|
+
];
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
// The generic schema element points to TableTypeV2Enum which provides all possible table types as an enumeration.
|
|
420
|
+
// In the following cases we need to reduce this enumeration:
|
|
421
|
+
// 1. type for one view in a multi-table scenario in order to avoid combinations of responsive and non-responsive table types
|
|
422
|
+
// 2. Remove AnalyticalTable in case the entity type is not analytical
|
|
423
|
+
// As we cannot determine whether an entity type is analytical yet, we ignore the second case.
|
|
424
|
+
if (tableParams.multiTableInfo?.variantInfo /* || !isTypeAnalytical(tableParams.entityType) */) {
|
|
425
|
+
delete element.$ref; // Remove reference to TableTypeV2Enum
|
|
426
|
+
const enumEntries = [];
|
|
427
|
+
// When
|
|
428
|
+
// - dealing with a variant of a multi-view scenario and
|
|
429
|
+
// - the generic level sets a non-responsive type as default and
|
|
430
|
+
// - there is indeed no responsive table variant yet and
|
|
431
|
+
// - there is at least one other non-responsive table variant
|
|
432
|
+
// In this case changing the type to responsive would automatically break the app, since it creates a mixture of responsive and non-responsive tables.
|
|
433
|
+
// => Suppress responsive from the value-help. If the user really wants to change all variants to responsive he should first remove the explicit generic setting defaulting to non-responsive.
|
|
434
|
+
if (!defaultTypeForMultiView ||
|
|
435
|
+
defaultTypeForMultiView === v2.TableTypeV2Enum.ResponsiveTable ||
|
|
436
|
+
tableParams.multiTableInfo.usedTableTypes.responsive > 0 ||
|
|
437
|
+
tableParams.multiTableInfo.usedTableTypes.nonResponsive < 2) {
|
|
438
|
+
// In all other cases add 'responsive' to the value-help
|
|
439
|
+
enumEntries.push(v2.TableTypeV2Enum.ResponsiveTable);
|
|
440
|
+
}
|
|
441
|
+
if (defaultTypeForMultiView !== v2.TableTypeV2Enum.ResponsiveTable ||
|
|
442
|
+
tableParams.multiTableInfo.usedTableTypes.nonResponsive > 0 ||
|
|
443
|
+
tableParams.multiTableInfo.usedTableTypes.responsive < 2) {
|
|
444
|
+
// Same as above, interchanging the roles of responsive and non-responsive.
|
|
445
|
+
enumEntries.push(v2.TableTypeV2Enum.GridTable);
|
|
446
|
+
//if (isAnalytical(tableParams.entityType)){
|
|
447
|
+
enumEntries.push(v2.TableTypeV2Enum.AnalyticalTable);
|
|
448
|
+
//}
|
|
449
|
+
enumEntries.push(v2.TableTypeV2Enum.TreeTable);
|
|
450
|
+
}
|
|
451
|
+
(0, common_1.addEnumToSchema)(enumEntries, element);
|
|
452
|
+
}
|
|
453
|
+
}, // adapt
|
|
454
|
+
undefined, 'string')),
|
|
455
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/5d270547f113468e83e06dd7ee408a45')
|
|
456
|
+
], Table.prototype, "type", void 0);
|
|
457
|
+
__decorate([
|
|
458
|
+
(0, decoration_1.syncRule)((0, manifestPropertyUtils_1.getSyncRuleForManifestProperty)('condensedTableLayout',
|
|
459
|
+
// analyze:
|
|
460
|
+
function (element, schemaHandlingParams) {
|
|
461
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
462
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath);
|
|
463
|
+
let disallowedReason;
|
|
464
|
+
if (tableParams.multiTableInfo?.variantInfo) {
|
|
465
|
+
disallowedReason = manifestPropertyUtils_1.DISALLOWED_WITHOUT_EXPLANATION; // Setting is not allowed on level of views. Hence, ignore it here without any feedback.
|
|
466
|
+
}
|
|
467
|
+
else if (isResponsiveTable(tableParams)) {
|
|
468
|
+
disallowedReason = i18next_1.default.t('CONDENSEDTABLELAYOUTNOEFFECT');
|
|
469
|
+
}
|
|
470
|
+
return {
|
|
471
|
+
manifestPath,
|
|
472
|
+
disallowedReason
|
|
473
|
+
};
|
|
474
|
+
} // analyze
|
|
475
|
+
))
|
|
476
|
+
], Table.prototype, "condensedTableLayout", void 0);
|
|
477
|
+
__decorate([
|
|
478
|
+
(0, decoration_1.syncRule)((0, manifestPropertyUtils_1.getSyncRuleForManifestProperty)('enableTableFilterInPageVariant',
|
|
479
|
+
// analyze:
|
|
480
|
+
function (element, schemaHandlingParams) {
|
|
481
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
482
|
+
const manifestPath = (0, utils_2.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath);
|
|
483
|
+
let disallowedReason;
|
|
484
|
+
if (tableParams.multiTableInfo?.variantInfo) {
|
|
485
|
+
disallowedReason = manifestPropertyUtils_1.DISALLOWED_WITHOUT_EXPLANATION; // Setting is not allowed on level of views. Hence, ignore it here without any feedback.
|
|
486
|
+
}
|
|
487
|
+
else if (tableParams.settings?.isWorklist) {
|
|
488
|
+
disallowedReason = i18next_1.default.t('ENABLETABLEFILTERINPAGEVARIANTWORKLIST');
|
|
489
|
+
}
|
|
490
|
+
else if (tableParams.settings?.smartVariantManagement === false) {
|
|
491
|
+
disallowedReason = i18next_1.default.t('ENABLETABLEFILTERINPAGEVARIANTNOEFFECT');
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
manifestPath,
|
|
495
|
+
disallowedReason
|
|
496
|
+
};
|
|
497
|
+
} // analyze
|
|
498
|
+
))
|
|
499
|
+
], Table.prototype, "enableTableFilterInPageVariant", void 0);
|
|
500
|
+
__decorate([
|
|
501
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableSettingsProperty('multiSelect')),
|
|
502
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/402fac73b4794a31983609ebdde580d2')
|
|
503
|
+
], Table.prototype, "multiSelect", void 0);
|
|
504
|
+
__decorate([
|
|
505
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableSettingsProperty('selectAll',
|
|
506
|
+
// getDisallowReason:
|
|
507
|
+
function (tableParams, generateParameters, element) {
|
|
508
|
+
if (!isMultiSelect(tableParams)) {
|
|
509
|
+
// In this case the function returns a disallowedReason. Therefore, the adapt function will not be called.
|
|
510
|
+
// Still the property may be shown to the user (in case it contains a value).
|
|
511
|
+
// The description contains markups that allow the adapt function (below) to provide the correct text depending on the table type.
|
|
512
|
+
// For the warning scenario we simply remove this part.
|
|
513
|
+
element.description = element.description.split('\n')[0];
|
|
514
|
+
return i18next_1.default.t('SELECTALLNOMULTISELECT');
|
|
515
|
+
}
|
|
516
|
+
}, // getDisallowReason
|
|
517
|
+
// adapt:
|
|
518
|
+
function (element, schemaHandlingParams) {
|
|
519
|
+
// add table type dependent information to the description of the property.
|
|
520
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
521
|
+
const i18nForDefaultInfo = isUiTable(tableParams)
|
|
522
|
+
? 'SELECTALLDEFAULTINFOUITABLE'
|
|
523
|
+
: 'SELECTALLDEFAULTINFORESPONSIVETABLE';
|
|
524
|
+
element.description += '\n' + i18next_1.default.t(i18nForDefaultInfo);
|
|
525
|
+
} // adapt
|
|
526
|
+
))
|
|
527
|
+
], Table.prototype, "selectAll", void 0);
|
|
528
|
+
__decorate([
|
|
529
|
+
(0, decoration_1.syncRule)(getSyncRuleForTableSettingsProperty('selectionLimit', function (tableParams) {
|
|
530
|
+
if (!isUiTable(tableParams) || !isMultiSelect(tableParams)) {
|
|
531
|
+
return i18next_1.default.t('SELECTIONLIMITPREREQUISIT');
|
|
532
|
+
}
|
|
533
|
+
if (isSelectAll(tableParams)) {
|
|
534
|
+
return i18next_1.default.t('SELECTIONLIMITNOSELECTALL');
|
|
535
|
+
}
|
|
536
|
+
})),
|
|
537
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd?q=selectionLimit')
|
|
538
|
+
], Table.prototype, "selectionLimit", void 0);
|
|
539
|
+
__decorate([
|
|
540
|
+
(0, decoration_1.syncRule)(getOnlyTopLevelNotWorklistSyncRule('createWithFilters', 'NOCREATEWITHFILTERSINWORKLIST', CreateWithFilters))
|
|
541
|
+
], Table.prototype, "createWithFilters", void 0);
|
|
542
|
+
__decorate([
|
|
543
|
+
(0, decoration_1.syncRule)({
|
|
544
|
+
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
545
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
546
|
+
if (tableParams.multiTableInfo && !tableParams.multiTableInfo.variantInfo) {
|
|
547
|
+
delete processingRule.element; // no toolbar defined in the global table settings in the multi-table case
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
processingRule.element[ux_specification_types_1.SchemaTag.propertyIndex] = 0;
|
|
551
|
+
const lineItemInfo = tableParams.multiTableInfo
|
|
552
|
+
? tableParams.multiTableInfo.variantInfo.lineItemInfo
|
|
553
|
+
: tableParams.lineItemInfo;
|
|
554
|
+
const isChart = tableParams.multiTableInfo?.variantInfo?.isChart;
|
|
555
|
+
const iconTabFilterKey = tableParams.multiTableInfo?.variantInfo?.iconTabFilterKey;
|
|
556
|
+
(0, Action_1.adaptProcessingRuleForToolbar)(processingRule, utils_1.DataFieldTarget.Toolbar, lineItemInfo?.dataFieldInfos ?? [], isChart, iconTabFilterKey);
|
|
557
|
+
}
|
|
558
|
+
})
|
|
559
|
+
], Table.prototype, "toolbar", void 0);
|
|
153
560
|
//# sourceMappingURL=Table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,kDAGC;AASD,wCAeC;AA7ED,sDAA8B;AAC9B,wEAAuE;AAEvE,4GAA8F;AAE9F,2DAAuG;AACvG,iEAAkD;AAGlD,6CAAwE;AACxE,iEAA6E;AAsB7E;;;;;;;GAOG;AACH,SAAS,gBAAgB,CAAC,oBAAoC;IAC1D,OAAO,KAAK,CAAC,CAAC,gBAAgB;AAClC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,oBAAoC;IACpE,MAAM,YAAY,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC;AAClG,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,SAA6B,EAAE,MAAwB;IAClF,IACI,SAAS,KAAK,SAAS;QACvB,SAAS,KAAK,EAAE;QACf,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe,CAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EACrE,CAAC;QACC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAA,qBAAG,EAAC,MAAM,EAAE;QACR,QAAQ,iCAAmB;QAC3B,OAAO,EAAE,iBAAO,CAAC,CAAC,CAAC,kBAAkB,EAAE;YACnC,QAAQ,EAAE,SAAS;SACtB,CAAC;KACL,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,oHAAoH;AACpH,MAAM,yBAAyB,GAAa;IACxC,IAAI,EAAE;QACF,WAAW,EAAE,GAAgB,EAAE,CAAC,oCAAW,CAAC,UAAU;QACtD,gBAAgB,EAAE,+B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AAK,EAAE,QAAQ;KAClB,CAAC;yCACyB;AAI3B;IADC,IAAA,qBAAQ,EAAC,yBAAyB,CAAC;+CACT"}
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,kDAGC;AAQD,oCAUC;AAiED,wCAeC;AAqED,0EAWC;AAqGD,8DAMC;AA9WD,sDAA8B;AAC9B,wEAAuG;AAWvG,4GAA8F;AAE9F,2DAMoC;AACpC,iEAAkD;AAClD,gDAA0E;AAE1E,6CAAwE;AACxE,iEAA6E;AAC7E,gFAI8C;AAM9C,uCAAuF;AACvF,4CAAkD;AAClD,qCAAuE;AAsBvE;;;;;;;GAOG;AACH,SAAS,gBAAgB,CAAC,oBAAoC;IAC1D,OAAO,KAAK,CAAC,CAAC,gBAAgB;AAClC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,oBAAoC;IACpE,MAAM,YAAY,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC;AAClG,CAAC;AAED;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,WAAwB;IACjD,IAAI,WAAW,CAAC,cAAc,EAAE,WAAW,EAAE,CAAC;QAC1C,OAAO,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC;IAC5D,CAAC;IACD,MAAM,aAAa,GAAG,WAAW,CAAC,QAAQ,EAAE,aAAa,CAAC;IAC1D,MAAM,SAAS,GACX,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACxC,WAAW,CAAC,QAAQ,EAAE,SAAS;QAC/B,mBAAmB,CAAC,WAA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AW,EAAE,gBAAgB,CAAC;YACnF,IAAA,sCAA6B,EACzB,cAAc,EACd,uBAAe,CAAC,OAAO,EACvB,YAAY,EAAE,cAAc,IAAI,EAAE,EAClC,OAAO,EACP,gBAAgB,CACnB,CAAC;QACN,CAAC;KACJ,CAAC;sCACgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageAccess.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/pageAccess.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EACH,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAEb,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"pageAccess.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/pageAccess.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EACH,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAEb,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,UAAU,EACf,KAAK,UAAU,EAGlB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKzD,OAAO,EACH,KAAK,yBAAyB,EAGjC,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EAAoB,KAAK,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AACzG,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAyCnG;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,UAAU,CAe7D;AAcD;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CAU3E;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CASjF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,SAAS,CAQ/E;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAmB7G;AAsGD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACtC,kBAAkB,EAAE,2BAA2B,EAC/C,aAAa,EAAE,UAAU,GAC1B,MAAM,CAER;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,4BAA4B,GAAG,UAAU,GAAG,SAAS,CAE7G;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAChC,gBAAgB,EAAE,4BAA4B,GAAG,oCAAoC,EACrF,UAAU,EAAE,UAAU,EACtB,eAAe,GAAE,OAAe,GACjC,aAAa,CAEf"}
|
|
@@ -72,6 +72,15 @@ function getPersistentListReportNewSchema() {
|
|
|
72
72
|
const ListReportNewSchema = JSON.parse((0, fs_1.readFileSync)(schemaPath, 'utf8'));
|
|
73
73
|
return ListReportNewSchema;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Collection of conversion exits needed in the import and export process of a v2 List Report Page.
|
|
77
|
+
*
|
|
78
|
+
* @param conversionExitName - the name of the conversion exit as passed to addConversionExit when the conversion exit was registered in the app specific schema.
|
|
79
|
+
* @returns the implementation of the conversion exit
|
|
80
|
+
*/
|
|
81
|
+
const conversionExitProviderLR = function (conversionExitName) {
|
|
82
|
+
return undefined;
|
|
83
|
+
};
|
|
75
84
|
/**
|
|
76
85
|
* Creates a GenericSchemaInfoProvider that can be used to access the required schema information for a v2 List Report Page when the generic schema handling logic is used.
|
|
77
86
|
* Note that this function is called in two scenarios:
|
|
@@ -102,10 +111,10 @@ function createGenericSchemaInfoProvider() {
|
|
|
102
111
|
function getConfigInfo(componentName) {
|
|
103
112
|
return componentName === v2_1.FE_TEMPLATE_V2_LIST_REPORT
|
|
104
113
|
? {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
propertyInstanceProvider(propertyTypePath) {
|
|
115
|
+
return new ListReportNew_1.ListReportNew();
|
|
116
|
+
},
|
|
117
|
+
conversionExitProvider: conversionExitProviderLR
|
|
109
118
|
}
|
|
110
119
|
: undefined;
|
|
111
120
|
}
|
|
@@ -198,13 +207,22 @@ function createPageHandlerLRGeneric() {
|
|
|
198
207
|
};
|
|
199
208
|
})
|
|
200
209
|
: [];
|
|
210
|
+
const viewResults = exportParameters.views
|
|
211
|
+
? exportParameters.views.map(function (view) {
|
|
212
|
+
return {
|
|
213
|
+
...view,
|
|
214
|
+
changeIndicator: ux_specification_types_1.ChangeIndicator.NoChange
|
|
215
|
+
};
|
|
216
|
+
})
|
|
217
|
+
: [];
|
|
201
218
|
const inParameters = {
|
|
202
219
|
appId: exportParameters.appId,
|
|
203
220
|
config: exportParameters.page.config,
|
|
204
221
|
manifest: exportParameters.manifest,
|
|
205
222
|
jsonSchema: exportParameters.jsonSchema,
|
|
206
|
-
|
|
223
|
+
conversionExitProvider: conversionExitProviderLR,
|
|
207
224
|
fragments: fragmentResults,
|
|
225
|
+
views: viewResults,
|
|
208
226
|
logger: exportParameters.logger
|
|
209
227
|
};
|
|
210
228
|
const exportPageResults = (0, exportPageGeneric_1.exportPage)(inParameters);
|
|
@@ -213,7 +231,8 @@ function createPageHandlerLRGeneric() {
|
|
|
213
231
|
manifest: exportPageResults.manifest,
|
|
214
232
|
fragments: exportPageResults.fragments,
|
|
215
233
|
flexChanges,
|
|
216
|
-
manifestChangeIndicator: exportPageResults.manifestChangeIndicator
|
|
234
|
+
manifestChangeIndicator: exportPageResults.manifestChangeIndicator,
|
|
235
|
+
views: exportPageResults.views
|
|
217
236
|
};
|
|
218
237
|
}
|
|
219
238
|
};
|