@sap/ux-specification 1.84.127 → 1.84.128
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 +22 -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-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +168 -168
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +14 -7
- package/dist/schemas/v2/ListReportNewConfig.json +89 -0
- package/dist/schemas/v4/ApplicationV4.json +10 -5
- package/dist/specification/package.json +4 -4
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +62 -7
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +17 -18
- package/dist/specification/src/sync/common/i18n.json +12 -1
- package/dist/specification/src/sync/common/utils.d.ts +25 -0
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +55 -0
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +1 -10
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +1 -2
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +4 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts +8 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js +1 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +3 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts +78 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +454 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +53 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +149 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +2 -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 +2 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +4 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +61 -23
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +36 -20
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +7 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +10 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +75 -8
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +81 -32
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +34 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +95 -0
- package/dist/specification/src/sync/v4/utils/utils.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/package.json +4 -4
|
@@ -27,34 +27,41 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"forceGlobalRefresh": {
|
|
29
29
|
"description": "If forceGlobalRefresh is not explicitly set to false, a global model refresh is triggered when the annotated side effects are executed.",
|
|
30
|
-
"type": "boolean"
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.forceGlobalRefresh"
|
|
31
32
|
},
|
|
32
33
|
"flexibleColumnLayout": {
|
|
33
34
|
"$ref": "#/definitions/FlexibleColumnLayout",
|
|
34
|
-
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas."
|
|
35
|
+
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas.",
|
|
36
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout"
|
|
35
37
|
},
|
|
36
38
|
"tableColumnVerticalAlignment": {
|
|
37
39
|
"$ref": "#/definitions/TableColumnVerticalAlignment",
|
|
38
|
-
"description": "tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table."
|
|
40
|
+
"description": "tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table.",
|
|
41
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableColumnVerticalAlignment"
|
|
39
42
|
},
|
|
40
43
|
"title": {
|
|
41
44
|
"description": "Defines the title for the application.",
|
|
42
45
|
"i18nClassification": "TIT: Title of the application",
|
|
43
|
-
"type": "string"
|
|
46
|
+
"type": "string",
|
|
47
|
+
"manifestPath": "$[\"sap.app\"].title"
|
|
44
48
|
},
|
|
45
49
|
"description": {
|
|
46
50
|
"description": "Defines the description for the application.",
|
|
47
51
|
"i18nClassification": "TIT: Description of the application",
|
|
48
|
-
"type": "string"
|
|
52
|
+
"type": "string",
|
|
53
|
+
"manifestPath": "$[\"sap.app\"].description"
|
|
49
54
|
},
|
|
50
55
|
"flexEnabled": {
|
|
51
56
|
"description": "Enables key user adaptation for an application.",
|
|
52
57
|
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53",
|
|
53
|
-
"type": "boolean"
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"manifestPath": "$[\"sap.ui5\"].flexEnabled"
|
|
54
60
|
},
|
|
55
61
|
"cloudDevAdaptationStatus": {
|
|
56
62
|
"$ref": "#/definitions/CloudDevAdaptationStatus",
|
|
57
|
-
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
63
|
+
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released.",
|
|
64
|
+
"manifestPath": "$[\"sap.fiori\"].cloudDevAdaptationStatus"
|
|
58
65
|
}
|
|
59
66
|
},
|
|
60
67
|
"additionalProperties": false
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"$ref": "#/definitions/ListReportFilterBar",
|
|
16
16
|
"description": "Filter Bar"
|
|
17
17
|
},
|
|
18
|
+
"table": {
|
|
19
|
+
"$ref": "#/definitions/Table",
|
|
20
|
+
"description": "Table"
|
|
21
|
+
},
|
|
18
22
|
"footer": {
|
|
19
23
|
"$ref": "#/definitions/Toolbar",
|
|
20
24
|
"description": "Footer"
|
|
@@ -418,6 +422,91 @@
|
|
|
418
422
|
],
|
|
419
423
|
"type": "string"
|
|
420
424
|
},
|
|
425
|
+
"Table": {
|
|
426
|
+
"description": "Table",
|
|
427
|
+
"isViewNode": true,
|
|
428
|
+
"type": "object",
|
|
429
|
+
"properties": {
|
|
430
|
+
"entitySet": {
|
|
431
|
+
"description": "This property can be used to indicate that a table or chart should be based on a different entity set than the main entity set",
|
|
432
|
+
"type": "string",
|
|
433
|
+
"artifactType": "Manifest",
|
|
434
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/b6b59e4a4c3548cf83ff9c3b955d3ba3"
|
|
435
|
+
},
|
|
436
|
+
"annotationPath": {
|
|
437
|
+
"description": "Specify a SelectionVariant or SelectionPresentationVariant annotation for the entity set to configure the table or chart",
|
|
438
|
+
"type": "string",
|
|
439
|
+
"artifactType": "Manifest",
|
|
440
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/37aeed74e17a42caa2cba3123f0c15fc"
|
|
441
|
+
},
|
|
442
|
+
"showItemNavigationOnChart": {
|
|
443
|
+
"description": "To enable navigation for charts, you have to set the property to \"true\" and maintain an internal navigation target in the manifest.",
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"artifactType": "Manifest"
|
|
446
|
+
},
|
|
447
|
+
"views": {
|
|
448
|
+
"$ref": "#/definitions/MultiViewsDefinition"
|
|
449
|
+
},
|
|
450
|
+
"showTablePersonalisation": {
|
|
451
|
+
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
452
|
+
"type": "boolean",
|
|
453
|
+
"artifactType": "FlexChange",
|
|
454
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
455
|
+
},
|
|
456
|
+
"exportType": {
|
|
457
|
+
"$ref": "#/definitions/ExportType",
|
|
458
|
+
"description": "Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.",
|
|
459
|
+
"artifactType": "FlexChange",
|
|
460
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
461
|
+
},
|
|
462
|
+
"useExportToExcel": {
|
|
463
|
+
"description": "useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.",
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"artifactType": "FlexChange",
|
|
466
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"additionalProperties": false
|
|
470
|
+
},
|
|
471
|
+
"MultiViewsDefinition": {
|
|
472
|
+
"description": "Views",
|
|
473
|
+
"isViewNode": true,
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"enableAutoBinding": {
|
|
477
|
+
"description": "Use this property to ensure that data are automatically loaded when the page is opened.",
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"artifactType": "Manifest"
|
|
480
|
+
},
|
|
481
|
+
"showCounts": {
|
|
482
|
+
"description": "You can show the counts of entries of each view. To do so, add the showCounts option and set it to true.",
|
|
483
|
+
"type": "boolean",
|
|
484
|
+
"artifactType": "Manifest"
|
|
485
|
+
},
|
|
486
|
+
"variants": {
|
|
487
|
+
"$ref": "#/definitions/MultiViewsVariants",
|
|
488
|
+
"description": "List of views"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"additionalProperties": false,
|
|
492
|
+
"required": [
|
|
493
|
+
"variants"
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
"MultiViewsVariants": {
|
|
497
|
+
"isViewNode": false,
|
|
498
|
+
"type": "object",
|
|
499
|
+
"additionalProperties": {
|
|
500
|
+
"$ref": "#/definitions/Table"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"ExportType": {
|
|
504
|
+
"enum": [
|
|
505
|
+
"GW",
|
|
506
|
+
"UI5Client"
|
|
507
|
+
],
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
421
510
|
"Toolbar": {
|
|
422
511
|
"description": "Toolbar",
|
|
423
512
|
"isViewNode": true,
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"flexibleColumnLayout": {
|
|
29
29
|
"$ref": "#/definitions/FlexibleColumnLayoutV4",
|
|
30
|
-
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas."
|
|
30
|
+
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas.",
|
|
31
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout"
|
|
31
32
|
},
|
|
32
33
|
"viewPath": {
|
|
33
34
|
"description": "Represents a prefix that is prepended in front of the viewName",
|
|
@@ -35,22 +36,26 @@
|
|
|
35
36
|
},
|
|
36
37
|
"cloudDevAdaptationStatus": {
|
|
37
38
|
"$ref": "#/definitions/CloudDevAdaptationStatus",
|
|
38
|
-
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
39
|
+
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released.",
|
|
40
|
+
"manifestPath": "$[\"sap.fiori\"].cloudDevAdaptationStatus"
|
|
39
41
|
},
|
|
40
42
|
"title": {
|
|
41
43
|
"description": "Defines the title for the application.",
|
|
42
44
|
"i18nClassification": "TIT: Title of the application",
|
|
43
|
-
"type": "string"
|
|
45
|
+
"type": "string",
|
|
46
|
+
"manifestPath": "$[\"sap.app\"].title"
|
|
44
47
|
},
|
|
45
48
|
"description": {
|
|
46
49
|
"description": "Defines the description for the application.",
|
|
47
50
|
"i18nClassification": "TIT: Description of the application",
|
|
48
|
-
"type": "string"
|
|
51
|
+
"type": "string",
|
|
52
|
+
"manifestPath": "$[\"sap.app\"].description"
|
|
49
53
|
},
|
|
50
54
|
"flexEnabled": {
|
|
51
55
|
"description": "Enables key user adaptation for an application.",
|
|
52
56
|
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53",
|
|
53
|
-
"type": "boolean"
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"manifestPath": "$[\"sap.ui5\"].flexEnabled"
|
|
54
59
|
}
|
|
55
60
|
},
|
|
56
61
|
"additionalProperties": false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.128",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@sap-ux/annotation-converter": "0.10.9",
|
|
55
55
|
"@sap-ux/edmx-parser": "0.9.6",
|
|
56
|
-
"@sap-ux/project-access": "1.
|
|
57
|
-
"@sap/ux-specification-types": "1.84.
|
|
56
|
+
"@sap-ux/project-access": "1.33.0",
|
|
57
|
+
"@sap/ux-specification-types": "1.84.128",
|
|
58
58
|
"@sapui5/ts-types": "latest-1.84",
|
|
59
59
|
"@types/d3": "7.4.3",
|
|
60
60
|
"@types/jquery": "3.5.33",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"deepmerge": "4.3.1",
|
|
71
71
|
"ejs": "3.1.10",
|
|
72
72
|
"excel4node": "1.8.2",
|
|
73
|
-
"i18next": "25.
|
|
73
|
+
"i18next": "25.7.3",
|
|
74
74
|
"jquery": "3.7.1",
|
|
75
75
|
"jsdom": "25.0.1",
|
|
76
76
|
"lodash.unset": "4.5.2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAS1F,MAAM,MAAM,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AA6BhD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,CAAC,EAAE,yBAAyB,QAErF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;AAuHD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,yBAqBzC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA0BrD"}
|
|
@@ -46,6 +46,10 @@ const factory_2 = require("../../src/sync/v4/export/factory");
|
|
|
46
46
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
47
47
|
const ListReportNew_1 = require("../../src/sync/v2/genericSchemaHandling/pages/ListReportNew");
|
|
48
48
|
const v2Controls = __importStar(require("../../src/sync/v2/genericSchemaHandling/controls"));
|
|
49
|
+
const decoration_1 = require("../../src/sync/common/decoration");
|
|
50
|
+
const utils_2 = require("../../src/sync/common/utils");
|
|
51
|
+
const application_1 = require("../../src/sync/v4/application");
|
|
52
|
+
const application_2 = require("../../src/sync/v2/application");
|
|
49
53
|
//TS compiler options, compare with tsconfig
|
|
50
54
|
const compilerOptions = {
|
|
51
55
|
skipLibCheck: true,
|
|
@@ -165,6 +169,55 @@ function convertPagesOfFEVersion(paths, version, outputPath, factory) {
|
|
|
165
169
|
function getPosition(string, subString, index) {
|
|
166
170
|
return string.split(subString, index).join(subString).length;
|
|
167
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Performs post-processing on the provided array of schemas for V2 and V4 applications.
|
|
174
|
+
*
|
|
175
|
+
* @param schemas - An array of `Schema` objects to be post-processed.
|
|
176
|
+
*/
|
|
177
|
+
function postProcessingApps(schemas) {
|
|
178
|
+
// Add manifest paths to V4 and V2
|
|
179
|
+
addManifestPathsToApplication(schemas['ApplicationV4.json'], application_1.AppSettings.prototype);
|
|
180
|
+
addManifestPathsToApplication(schemas['ApplicationV2.json'], application_2.AppSettings.prototype);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Performs post-processing on the provided array of schemas for V4 applications.
|
|
184
|
+
*
|
|
185
|
+
* @param schemas - An array of `Schema` objects to be post-processed.
|
|
186
|
+
*/
|
|
187
|
+
function postProcessingV4App(schemas) {
|
|
188
|
+
// Remove the values that were required to generate the 'defaultCreationMode' dropdown in the UI5 application, but are no longer needed in the schema.
|
|
189
|
+
const schema = schemas['ApplicationV4.json'];
|
|
190
|
+
schema.definitions.AppSettings.properties['defaultCreationMode'].enum = schema.definitions.AppSettings.properties['defaultCreationMode'].enum.filter((option) => !!option);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Adds `manifestPath` to the `AppSettings` properties inside a JSON schema.
|
|
194
|
+
*
|
|
195
|
+
* @param {JSONSchema4} schema - The JSON schema object to be updated.
|
|
196
|
+
* @param {object} classPrototype - The prototype object whose metadata is used to determine manifest path information for each property.
|
|
197
|
+
*/
|
|
198
|
+
function addManifestPathsToApplication(schema, classPrototype) {
|
|
199
|
+
// Update schema with manifest path for properties in settings
|
|
200
|
+
for (const property in schema.definitions.AppSettings.properties) {
|
|
201
|
+
const propertySchema = schema.definitions.AppSettings.properties[property];
|
|
202
|
+
const rule = (0, decoration_1.getReflectMetadata)(classPrototype, property);
|
|
203
|
+
const manifestPath = rule?.manifest?.path;
|
|
204
|
+
if (manifestPath) {
|
|
205
|
+
const manifestPath = `${rule.manifest.path()}/${property}`;
|
|
206
|
+
propertySchema.manifestPath = (0, utils_2.convertSyncRulePathToJsonPath)(manifestPath);
|
|
207
|
+
// Continue parsing of inner properties
|
|
208
|
+
if (propertySchema.anyOf) {
|
|
209
|
+
for (const innerSchema of propertySchema.anyOf) {
|
|
210
|
+
if (!innerSchema.properties) {
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
for (const property in innerSchema.properties) {
|
|
214
|
+
innerSchema.properties[property].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, property);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
168
221
|
/**
|
|
169
222
|
* Factory giving access to the metadata of the new v2 ListReport page.
|
|
170
223
|
*/
|
|
@@ -173,8 +226,8 @@ exports.FACTORY_FOR_LIST_REPORT_NEW = {
|
|
|
173
226
|
const metadataClass = v2Controls[schemaPropertyName];
|
|
174
227
|
// Naming convention: Types that are only introduced as host for enums have a name ending with 'Enum'.
|
|
175
228
|
// They cannot be instantiated.
|
|
176
|
-
// In addition to that
|
|
177
|
-
if (schemaPropertyName.endsWith('Enum') ||
|
|
229
|
+
// In addition to that some enums (ButtonType,...) are imported from sapui5.
|
|
230
|
+
if (schemaPropertyName.endsWith('Enum') || ['ButtonType', 'ExportType'].includes(schemaPropertyName)) {
|
|
178
231
|
return metadataClass;
|
|
179
232
|
}
|
|
180
233
|
let instance;
|
|
@@ -196,7 +249,6 @@ exports.FACTORY_FOR_LIST_REPORT_NEW = {
|
|
|
196
249
|
* @param outputPath - path to write to
|
|
197
250
|
*/
|
|
198
251
|
function toJsonSchema(outputPath) {
|
|
199
|
-
let schemas = [];
|
|
200
252
|
const rootName = __dirname.slice(0, getPosition(__dirname, 'specification', 2));
|
|
201
253
|
const typesPath = (0, path_1.join)(rootName, 'types', 'src');
|
|
202
254
|
//Pages V2
|
|
@@ -214,10 +266,13 @@ function toJsonSchema(outputPath) {
|
|
|
214
266
|
paths.push((0, path_1.join)(typesPath, 'v4', 'pages'));
|
|
215
267
|
convertPagesOfFEVersion(paths, ux_specification_types_1.FioriElementsVersion.v4, outputPath);
|
|
216
268
|
//App V2
|
|
217
|
-
|
|
218
|
-
writeSchemasToFile(outputPath, schemas, 'v2');
|
|
269
|
+
const v2AppSchemas = convertInterfaces((0, path_1.join)(typesPath, 'v2'), ['ApplicationV2.ts'], ux_specification_types_1.FioriElementsVersion.v2);
|
|
219
270
|
//App V4
|
|
220
|
-
|
|
221
|
-
|
|
271
|
+
const v4AppSchemas = convertInterfaces((0, path_1.join)(typesPath, 'v4'), ['ApplicationV4.ts'], ux_specification_types_1.FioriElementsVersion.v4);
|
|
272
|
+
//App postprocessing of schema
|
|
273
|
+
postProcessingApps({ ...v2AppSchemas, ...v4AppSchemas });
|
|
274
|
+
//Write App schemas
|
|
275
|
+
writeSchemasToFile(outputPath, v2AppSchemas, 'v2');
|
|
276
|
+
writeSchemasToFile(outputPath, v4AppSchemas, 'v4');
|
|
222
277
|
}
|
|
223
278
|
//# sourceMappingURL=to-json-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAOD,8CA4BC;AAqJD,oCA0BC;AA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"distTag": [
|
|
12
12
|
"latest",
|
|
13
13
|
"UI5-2.0",
|
|
14
14
|
"UI5-2.1",
|
|
15
|
-
"UI5-1.139",
|
|
16
|
-
"UI5-1.140",
|
|
17
|
-
"UI5-1.141",
|
|
18
15
|
"UI5-1.142",
|
|
19
16
|
"UI5-1.143",
|
|
20
17
|
"UI5-1.144",
|
|
@@ -25,10 +22,17 @@
|
|
|
25
22
|
"UI5-1.149"
|
|
26
23
|
]
|
|
27
24
|
},
|
|
25
|
+
{
|
|
26
|
+
"version": "1.139",
|
|
27
|
+
"distTag": [
|
|
28
|
+
"UI5-1.139",
|
|
29
|
+
"UI5-1.140",
|
|
30
|
+
"UI5-1.141"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
28
33
|
{
|
|
29
34
|
"version": "1.136",
|
|
30
35
|
"distTag": [
|
|
31
|
-
"UI5-1.136-legacy-free",
|
|
32
36
|
"UI5-1.136",
|
|
33
37
|
"UI5-1.137",
|
|
34
38
|
"UI5-1.138"
|
|
@@ -63,6 +67,14 @@
|
|
|
63
67
|
{
|
|
64
68
|
"version": "1.108",
|
|
65
69
|
"distTag": [
|
|
70
|
+
"UI5-1.100",
|
|
71
|
+
"UI5-1.101",
|
|
72
|
+
"UI5-1.102",
|
|
73
|
+
"UI5-1.103",
|
|
74
|
+
"UI5-1.104",
|
|
75
|
+
"UI5-1.105",
|
|
76
|
+
"UI5-1.106",
|
|
77
|
+
"UI5-1.107",
|
|
66
78
|
"UI5-1.108",
|
|
67
79
|
"UI5-1.109",
|
|
68
80
|
"UI5-1.110",
|
|
@@ -77,19 +89,6 @@
|
|
|
77
89
|
"UI5-1.119"
|
|
78
90
|
]
|
|
79
91
|
},
|
|
80
|
-
{
|
|
81
|
-
"version": "1.102",
|
|
82
|
-
"distTag": [
|
|
83
|
-
"UI5-1.100",
|
|
84
|
-
"UI5-1.101",
|
|
85
|
-
"UI5-1.102",
|
|
86
|
-
"UI5-1.103",
|
|
87
|
-
"UI5-1.104",
|
|
88
|
-
"UI5-1.105",
|
|
89
|
-
"UI5-1.106",
|
|
90
|
-
"UI5-1.107"
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
92
|
{
|
|
94
93
|
"version": "1.96",
|
|
95
94
|
"distTag": [
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"CONTEXTPATHCOULDNOTBERESOLVED": "The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",
|
|
19
19
|
"NOLR": "No page found in manifest for list report",
|
|
20
20
|
"NOALP": "No page found in manifest for analytical list page",
|
|
21
|
+
"NOKEY4VIEW": "View definition for manifest entry '{{- property}}' misses mandatory property 'key'.",
|
|
21
22
|
"NOTEMPLATE": "No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",
|
|
22
23
|
"ANNOERR": "Error while parsing annotation files",
|
|
23
24
|
"ANNOTATIONFILE": "Annotation file: '{{- file}}'",
|
|
@@ -41,5 +42,15 @@
|
|
|
41
42
|
"INCONSISTENTSCHEMA": "Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",
|
|
42
43
|
"UNEXISTING_ANNOTATION_PATH": "The annotation path doesn't exist.",
|
|
43
44
|
"NODATEFIELD": "Date setting will not be used since filter bar does not contain any date fields.",
|
|
44
|
-
"ACTION_GROUPS_ARENT_SUPPORTED": "Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher."
|
|
45
|
+
"ACTION_GROUPS_ARENT_SUPPORTED": "Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",
|
|
46
|
+
"NODATEFIELD": "Date setting will not be used since filter bar does not contain any date fields.",
|
|
47
|
+
"WARNING_DEFAULT_ROW_COUNT_MODE": "The rowCountMode is automatically set to `Auto`, if the sectionLayout is set to `Tabs` and the table is the only control within the section.",
|
|
48
|
+
"ILLEGALTABLETYPE": "'{{- property}}' is not a valid table type.",
|
|
49
|
+
"PROPERTY_NOT_ALLOWED_FOR_TABLE_TYPE": "The '{{- propertyName}}' property was specified in the `manifest.json` file, but this property is not allowed for the '{{- tableType}}' table type.",
|
|
50
|
+
"ENTITY_SET_NOT_ALLOWED_FOR_TABLE_TYPE": "The '{{- entityName}}' entity set was specified in the `manifest.json` file but this entity set is not allowed for the '{{- tableType}}' table type.",
|
|
51
|
+
"ENTITY_NOT_ALLOWED_FOR_NON_TREE_TABLE_TYPE": "The '{{- entityName}}' entity was specified in the `manifest.json` file but this entity is not allowed for the non-Tree table type.",
|
|
52
|
+
"ENTITY_IS_ALLOWED_ONLY_FOR_CREATION_DIALOG_MODE": "The creationFields entity is allowed only for the CreationDialog mode.",
|
|
53
|
+
"QUICKVARIANTSELECTIONDUPLICATE": "quickVariantSelection and quickVariantSelectionX must not be used together.",
|
|
54
|
+
"QUICKVARIANTSELECTIONXNOVARIANTS": "quickVariantSelectionX is defined but contains no variants.",
|
|
55
|
+
"SHOWITEMNAVIGATIONONCHARTONLYCHART": "Property showItemNavigationOnChart is only evaluated for chart views."
|
|
45
56
|
}
|
|
@@ -336,4 +336,29 @@ export declare function getRefType(element: Definition): string | undefined;
|
|
|
336
336
|
* @returns Returns true if the template names match directly or their page types match; otherwise, false.
|
|
337
337
|
*/
|
|
338
338
|
export declare function compareTemplateNames(templateName1: string, templateName2: any): boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Converts a slash-delimited sync rule path into a JSONPath string.
|
|
341
|
+
*
|
|
342
|
+
* Each path segment is appended to the JSONPath using:
|
|
343
|
+
* - dot notation for valid JavaScript identifiers
|
|
344
|
+
* - bracket notation for segments containing special characters
|
|
345
|
+
*
|
|
346
|
+
* Optionally replaces an encoded annotation segment with its decoded form
|
|
347
|
+
* (for example, converting `::` back to `/`).
|
|
348
|
+
*
|
|
349
|
+
* @param syncRulePath - Slash-delimited path string (e.g. "spec/template/metadata/annotations")
|
|
350
|
+
* @param targetAnnotation - Decoded annotation value to substitute into the path
|
|
351
|
+
* @param targetAnnotationEncoded - Encoded annotation value to match and replace in the path
|
|
352
|
+
* @returns A JSONPath string representing the provided sync rule path
|
|
353
|
+
*/
|
|
354
|
+
export declare function convertSyncRulePathToJsonPath(syncRulePath: string, targetAnnotation?: string, targetAnnotationEncoded?: string): string;
|
|
355
|
+
/**
|
|
356
|
+
* Appends a single segment to an existing JSONPath string.
|
|
357
|
+
*
|
|
358
|
+
* @param basePath - The existing JSONPath string (e.g., '$.data')
|
|
359
|
+
* @param segment - The segment to append
|
|
360
|
+
* @param prevSegment - The previous resolved segment, used to detect array placeholders
|
|
361
|
+
* @returns A new JSONPath string with the segment appended
|
|
362
|
+
*/
|
|
363
|
+
export declare function appendJsonPathSegment(basePath: string, segment: string, prevSegment?: string): string;
|
|
339
364
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EACR,QAAQ,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAMH,YAAY,EAIZ,EAAE,EAGF,oBAAoB,EAEpB,YAAY,EACZ,UAAU,EAEV,UAAU,EACV,UAAU,EAGb,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACR,SAAS,EACT,sBAAsB,EAEtB,UAAU,EAEb,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EACR,iBAAiB,EACjB,UAAU,EAEV,YAAY,EACZ,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AASpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAE7F,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD,eAAO,MAAM,YAAY,UAKxB,CAAC;AAC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CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,KAAA,GAAG,OAAO,CAMlF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6BAA6B,CACzC,YAAY,EAAE,MAAM,EACpB,gBAAgB,CAAC,EAAE,MAAM,EACzB,uBAAuB,CAAC,EAAE,MAAM,GACjC,MAAM,CAYR;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAmBrG"}
|
|
@@ -43,6 +43,8 @@ exports.removeNamespaces = removeNamespaces;
|
|
|
43
43
|
exports.replaceNamespaces = replaceNamespaces;
|
|
44
44
|
exports.getRefType = getRefType;
|
|
45
45
|
exports.compareTemplateNames = compareTemplateNames;
|
|
46
|
+
exports.convertSyncRulePathToJsonPath = convertSyncRulePathToJsonPath;
|
|
47
|
+
exports.appendJsonPathSegment = appendJsonPathSegment;
|
|
46
48
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
47
49
|
const i18next_1 = __importDefault(require("i18next"));
|
|
48
50
|
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
@@ -1499,4 +1501,57 @@ function compareTemplateNames(templateName1, templateName2) {
|
|
|
1499
1501
|
const pageType1 = convertTemplateNameToPageTypeV4(templateName1);
|
|
1500
1502
|
return pageType1 ? pageType1 === convertTemplateNameToPageTypeV4(templateName2) : false;
|
|
1501
1503
|
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Converts a slash-delimited sync rule path into a JSONPath string.
|
|
1506
|
+
*
|
|
1507
|
+
* Each path segment is appended to the JSONPath using:
|
|
1508
|
+
* - dot notation for valid JavaScript identifiers
|
|
1509
|
+
* - bracket notation for segments containing special characters
|
|
1510
|
+
*
|
|
1511
|
+
* Optionally replaces an encoded annotation segment with its decoded form
|
|
1512
|
+
* (for example, converting `::` back to `/`).
|
|
1513
|
+
*
|
|
1514
|
+
* @param syncRulePath - Slash-delimited path string (e.g. "spec/template/metadata/annotations")
|
|
1515
|
+
* @param targetAnnotation - Decoded annotation value to substitute into the path
|
|
1516
|
+
* @param targetAnnotationEncoded - Encoded annotation value to match and replace in the path
|
|
1517
|
+
* @returns A JSONPath string representing the provided sync rule path
|
|
1518
|
+
*/
|
|
1519
|
+
function convertSyncRulePathToJsonPath(syncRulePath, targetAnnotation, targetAnnotationEncoded) {
|
|
1520
|
+
const pathParts = syncRulePath.split('/');
|
|
1521
|
+
let jsonPath = '$';
|
|
1522
|
+
let prevSegment = undefined;
|
|
1523
|
+
for (const segment of pathParts) {
|
|
1524
|
+
// Replace encoded annotation(like '::' -> '/')
|
|
1525
|
+
const resolvedSegment = segment === targetAnnotationEncoded ? targetAnnotation : segment;
|
|
1526
|
+
jsonPath = appendJsonPathSegment(jsonPath, resolvedSegment, prevSegment);
|
|
1527
|
+
prevSegment = resolvedSegment;
|
|
1528
|
+
}
|
|
1529
|
+
return jsonPath;
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Appends a single segment to an existing JSONPath string.
|
|
1533
|
+
*
|
|
1534
|
+
* @param basePath - The existing JSONPath string (e.g., '$.data')
|
|
1535
|
+
* @param segment - The segment to append
|
|
1536
|
+
* @param prevSegment - The previous resolved segment, used to detect array placeholders
|
|
1537
|
+
* @returns A new JSONPath string with the segment appended
|
|
1538
|
+
*/
|
|
1539
|
+
function appendJsonPathSegment(basePath, segment, prevSegment) {
|
|
1540
|
+
// Array placeholder segments like "[]"
|
|
1541
|
+
if (segment === '[]') {
|
|
1542
|
+
// Wait for next segment
|
|
1543
|
+
return basePath;
|
|
1544
|
+
}
|
|
1545
|
+
if (prevSegment === '[]') {
|
|
1546
|
+
//Numeric array index
|
|
1547
|
+
const index = Number(segment);
|
|
1548
|
+
return !Number.isNaN(index) && Number.isInteger(index) ? `${basePath}[${index}]` : `${basePath}[:]`;
|
|
1549
|
+
}
|
|
1550
|
+
// Use dot notation only if the segment is a valid JS identifier
|
|
1551
|
+
if (/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(segment)) {
|
|
1552
|
+
return `${basePath}.${segment}`;
|
|
1553
|
+
}
|
|
1554
|
+
// Otherwise, use bracket notation with quotes
|
|
1555
|
+
return `${basePath}["${segment}"]`;
|
|
1556
|
+
}
|
|
1502
1557
|
//# sourceMappingURL=utils.js.map
|