@sap/ux-specification 1.71.92 → 1.71.93
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 -1
- package/dist/documentation/runDocu-min.js +19 -15
- package/dist/documentation/runDocu-min.js.map +4 -4
- package/dist/documentation/v2/v2-AnalyticalListPage.html +18 -6
- package/dist/documentation/v2/v2-ApplicationV2.html +18 -6
- package/dist/documentation/v2/v2-ListReport.html +18 -6
- package/dist/documentation/v2/v2-ObjectPage.html +18 -6
- package/dist/documentation/v2/v2-OverviewPage.html +18 -6
- package/dist/index-min.js +61 -51
- package/dist/index-min.js.map +4 -4
- package/dist/package.json +22 -21
- package/dist/schemas/v2/AnalyticalListPageConfig.json +4 -12
- package/dist/schemas/v2/ListReportConfig.json +6 -18
- package/dist/schemas/v2/ObjectPageConfig.json +26 -37
- package/dist/schemas/v2/OverviewPageConfig.json +11 -33
- package/dist/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/control.js +1 -0
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +7 -0
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +23 -7
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +2 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/src/sync/v2/export/export.js +9 -1
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +11 -0
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +1 -1
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -3
- package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/utils.js +37 -32
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/package.json +23 -22
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.93",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -20,41 +20,41 @@
|
|
|
20
20
|
"compile:watch": "tsc --build ./tsconfig.build.json --pretty --watch",
|
|
21
21
|
"bundle": "node esbuild",
|
|
22
22
|
"bundle:dev": "node esbuild --minify=false",
|
|
23
|
-
"bundle:watch": "node esbuild --watch --minify=false",
|
|
23
|
+
"bundle:watch": "node esbuild --watch --stats --minify=false",
|
|
24
24
|
"build": "npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -p copy-json-schemas htmlV2 -s bundle",
|
|
25
25
|
"build:dev": "npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev",
|
|
26
|
-
"
|
|
26
|
+
"build:doc": "npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle",
|
|
27
27
|
"build:schemas": "npm-run-all -l -s create-json-schemas copy-json-schemas",
|
|
28
|
-
"build:
|
|
29
|
-
"watch:doc": "npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch",
|
|
28
|
+
"build:snap": "yarn build:dev && yarn update-snapshots",
|
|
30
29
|
"create-json-schemas": "ts-node ./scripts/to-json-schema.ts ",
|
|
31
30
|
"copy-json-schemas": "cpy ./schemas/** dist --parents",
|
|
32
31
|
"copy-templates": "cpy src/sync/v2/export/templates/** dist/templates",
|
|
32
|
+
"deleteSnapshots": "rimraf **/_file_snapshots_",
|
|
33
|
+
"docuV2": "ts-node ./scripts/extractDocu.ts --version=v2 format=excel",
|
|
34
|
+
"htmlV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=html",
|
|
35
|
+
"iXiaSoftV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",
|
|
36
|
+
"lint": "eslint . --ext .ts",
|
|
37
|
+
"lint:summary": "eslint . --ext .ts -f summary",
|
|
38
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
39
|
+
"lint:report": "eslint . --ext .ts -f multiple",
|
|
40
|
+
"lint:report:jslint": "eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
33
41
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
34
42
|
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
35
43
|
"update-snapshots": "jest --updateSnapshot",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"lint:summary": "eslint . --ext .ts -f summary",
|
|
39
|
-
"lint:fix": "eslint . --report-unused-disable-directives --ext .ts --fix",
|
|
40
|
-
"lint:report": "eslint . --report-unused-disable-directives --ext .ts -f multiple",
|
|
41
|
-
"lint:report:jslint": "eslint . --report-unused-disable-directives --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
42
|
-
"docuV2": "ts-node ./scripts/extractDocu.ts --version=v2 format=excel",
|
|
43
|
-
"iXiaSoftV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",
|
|
44
|
-
"htmlV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=html",
|
|
45
|
-
"deleteSnapshots": "rimraf **/_file_snapshots_"
|
|
44
|
+
"watch": "npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas -s bundle:watch",
|
|
45
|
+
"watch:doc": "npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle:watch"
|
|
46
46
|
},
|
|
47
47
|
"publisher": "SAPSE",
|
|
48
48
|
"license": "SEE LICENSE IN LICENSE",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@sap-ux/vocabularies-types": "0.9.
|
|
50
|
+
"@sap-ux/vocabularies-types": "0.9.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@sap-ux/annotation-converter": "0.7.
|
|
54
|
-
"@sap/ux-specification-types": "1.71.
|
|
53
|
+
"@sap-ux/annotation-converter": "0.7.3",
|
|
54
|
+
"@sap/ux-specification-types": "1.71.93",
|
|
55
55
|
"@sap-ux/edmx-parser": "0.6.0",
|
|
56
56
|
"@types/d3": "7.4.0",
|
|
57
|
-
"@types/jquery": "3.5.
|
|
57
|
+
"@types/jquery": "3.5.18",
|
|
58
58
|
"@ui5/flexibility-utils": "0.1.3",
|
|
59
59
|
"ajv": "6.12.6",
|
|
60
60
|
"axios": "0.27.2",
|
|
@@ -64,11 +64,12 @@
|
|
|
64
64
|
"ejs": "3.1.9",
|
|
65
65
|
"excel4node": "1.8.2",
|
|
66
66
|
"i18next": "22.5.1",
|
|
67
|
-
"jquery": "3.7.
|
|
67
|
+
"jquery": "3.7.1",
|
|
68
|
+
"jsdom": "22.1.0",
|
|
68
69
|
"lodash.unset": "4.5.2",
|
|
69
70
|
"path": "0.12.7",
|
|
70
71
|
"reflect-metadata": "0.1.13",
|
|
71
|
-
"typescript-json-schema": "0.
|
|
72
|
+
"typescript-json-schema": "0.57.0",
|
|
72
73
|
"xml-js": "1.6.11"
|
|
73
74
|
},
|
|
74
75
|
"husky": {
|
|
@@ -52,9 +52,7 @@
|
|
|
52
52
|
"type": {
|
|
53
53
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
54
54
|
"type": "string",
|
|
55
|
-
"
|
|
56
|
-
"ResponsiveTable"
|
|
57
|
-
],
|
|
55
|
+
"const": "ResponsiveTable",
|
|
58
56
|
"artifactType": "Manifest"
|
|
59
57
|
},
|
|
60
58
|
"growingThreshold": {
|
|
@@ -500,9 +498,7 @@
|
|
|
500
498
|
"description": "The UI5 control used for your extension",
|
|
501
499
|
"artifactType": "Manifest",
|
|
502
500
|
"type": "string",
|
|
503
|
-
"
|
|
504
|
-
"sap.ui.core.Fragment"
|
|
505
|
-
]
|
|
501
|
+
"const": "sap.ui.core.Fragment"
|
|
506
502
|
},
|
|
507
503
|
"fragmentName": {
|
|
508
504
|
"description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
|
|
@@ -551,9 +547,7 @@
|
|
|
551
547
|
"type": {
|
|
552
548
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
553
549
|
"type": "string",
|
|
554
|
-
"
|
|
555
|
-
"GridTable"
|
|
556
|
-
],
|
|
550
|
+
"const": "GridTable",
|
|
557
551
|
"artifactType": "Manifest"
|
|
558
552
|
},
|
|
559
553
|
"qualifier": {
|
|
@@ -667,9 +661,7 @@
|
|
|
667
661
|
"type": {
|
|
668
662
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
669
663
|
"type": "string",
|
|
670
|
-
"
|
|
671
|
-
"AnalyticalTable"
|
|
672
|
-
],
|
|
664
|
+
"const": "AnalyticalTable",
|
|
673
665
|
"artifactType": "Manifest"
|
|
674
666
|
},
|
|
675
667
|
"qualifier": {
|
|
@@ -44,9 +44,7 @@
|
|
|
44
44
|
"type": {
|
|
45
45
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
46
46
|
"type": "string",
|
|
47
|
-
"
|
|
48
|
-
"AnalyticalTable"
|
|
49
|
-
],
|
|
47
|
+
"const": "AnalyticalTable",
|
|
50
48
|
"artifactType": "Manifest"
|
|
51
49
|
},
|
|
52
50
|
"qualifier": {
|
|
@@ -177,9 +175,7 @@
|
|
|
177
175
|
"strategy": {
|
|
178
176
|
"description": "For the new create action to use the filter settings as input, set strategy to \"extension\" and implement the extension function as mentioned in help.sap.com for SAP S/4 HANA, section “Prefilling Fields When Creating a New Entity Using an Extension Point“.",
|
|
179
177
|
"type": "string",
|
|
180
|
-
"
|
|
181
|
-
"extension"
|
|
182
|
-
],
|
|
178
|
+
"const": "extension",
|
|
183
179
|
"artifactType": "Manifest"
|
|
184
180
|
}
|
|
185
181
|
},
|
|
@@ -508,9 +504,7 @@
|
|
|
508
504
|
"description": "The UI5 control used for your extension",
|
|
509
505
|
"artifactType": "Manifest",
|
|
510
506
|
"type": "string",
|
|
511
|
-
"
|
|
512
|
-
"sap.ui.core.Fragment"
|
|
513
|
-
]
|
|
507
|
+
"const": "sap.ui.core.Fragment"
|
|
514
508
|
},
|
|
515
509
|
"fragmentName": {
|
|
516
510
|
"description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
|
|
@@ -557,9 +551,7 @@
|
|
|
557
551
|
"type": {
|
|
558
552
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
559
553
|
"type": "string",
|
|
560
|
-
"
|
|
561
|
-
"ResponsiveTable"
|
|
562
|
-
],
|
|
554
|
+
"const": "ResponsiveTable",
|
|
563
555
|
"artifactType": "Manifest"
|
|
564
556
|
},
|
|
565
557
|
"includeItemInSelection": {
|
|
@@ -691,9 +683,7 @@
|
|
|
691
683
|
"type": {
|
|
692
684
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
693
685
|
"type": "string",
|
|
694
|
-
"
|
|
695
|
-
"GridTable"
|
|
696
|
-
],
|
|
686
|
+
"const": "GridTable",
|
|
697
687
|
"artifactType": "Manifest"
|
|
698
688
|
},
|
|
699
689
|
"createWithFilters": {
|
|
@@ -791,9 +781,7 @@
|
|
|
791
781
|
"type": {
|
|
792
782
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
793
783
|
"type": "string",
|
|
794
|
-
"
|
|
795
|
-
"TreeTable"
|
|
796
|
-
],
|
|
784
|
+
"const": "TreeTable",
|
|
797
785
|
"artifactType": "Manifest"
|
|
798
786
|
},
|
|
799
787
|
"showDraftToggle": {
|
|
@@ -172,8 +172,21 @@
|
|
|
172
172
|
"type": "object",
|
|
173
173
|
"properties": {
|
|
174
174
|
"showHeaderContent": {
|
|
175
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
176
|
+
"anyOf": [
|
|
177
|
+
{
|
|
178
|
+
"enum": [
|
|
179
|
+
false,
|
|
180
|
+
true,
|
|
181
|
+
"{ui>/editable}",
|
|
182
|
+
"{= !${ui>/editable}}"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "string"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
175
189
|
"description": "showHeaderContent determines the visibility of the Header content.",
|
|
176
|
-
"type": "boolean",
|
|
177
190
|
"artifactType": "FlexChange",
|
|
178
191
|
"controlType": "sap.uxap.ObjectPageLayout"
|
|
179
192
|
},
|
|
@@ -438,9 +451,7 @@
|
|
|
438
451
|
"type": {
|
|
439
452
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
440
453
|
"type": "string",
|
|
441
|
-
"
|
|
442
|
-
"ResponsiveTable"
|
|
443
|
-
],
|
|
454
|
+
"const": "ResponsiveTable",
|
|
444
455
|
"artifactType": "Manifest"
|
|
445
456
|
},
|
|
446
457
|
"includeItemInSelection": {
|
|
@@ -510,9 +521,7 @@
|
|
|
510
521
|
"createMode": {
|
|
511
522
|
"description": "Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.",
|
|
512
523
|
"type": "string",
|
|
513
|
-
"
|
|
514
|
-
"inline"
|
|
515
|
-
],
|
|
524
|
+
"const": "inline",
|
|
516
525
|
"artifactType": "Manifest"
|
|
517
526
|
},
|
|
518
527
|
"disableDefaultInlineCreateSort": {
|
|
@@ -813,9 +822,7 @@
|
|
|
813
822
|
"description": "The UI5 control used for your extension",
|
|
814
823
|
"artifactType": "Manifest",
|
|
815
824
|
"type": "string",
|
|
816
|
-
"
|
|
817
|
-
"sap.ui.core.Fragment"
|
|
818
|
-
]
|
|
825
|
+
"const": "sap.ui.core.Fragment"
|
|
819
826
|
},
|
|
820
827
|
"fragmentName": {
|
|
821
828
|
"description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
|
|
@@ -864,9 +871,7 @@
|
|
|
864
871
|
"type": {
|
|
865
872
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
866
873
|
"type": "string",
|
|
867
|
-
"
|
|
868
|
-
"AnalyticalTable"
|
|
869
|
-
],
|
|
874
|
+
"const": "AnalyticalTable",
|
|
870
875
|
"artifactType": "Manifest"
|
|
871
876
|
},
|
|
872
877
|
"condensedTableLayout": {
|
|
@@ -915,9 +920,7 @@
|
|
|
915
920
|
"createMode": {
|
|
916
921
|
"description": "Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.",
|
|
917
922
|
"type": "string",
|
|
918
|
-
"
|
|
919
|
-
"inline"
|
|
920
|
-
],
|
|
923
|
+
"const": "inline",
|
|
921
924
|
"artifactType": "Manifest"
|
|
922
925
|
},
|
|
923
926
|
"disableDefaultInlineCreateSort": {
|
|
@@ -945,9 +948,7 @@
|
|
|
945
948
|
"type": {
|
|
946
949
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
947
950
|
"type": "string",
|
|
948
|
-
"
|
|
949
|
-
"GridTable"
|
|
950
|
-
],
|
|
951
|
+
"const": "GridTable",
|
|
951
952
|
"artifactType": "Manifest"
|
|
952
953
|
},
|
|
953
954
|
"condensedTableLayout": {
|
|
@@ -996,9 +997,7 @@
|
|
|
996
997
|
"createMode": {
|
|
997
998
|
"description": "Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.",
|
|
998
999
|
"type": "string",
|
|
999
|
-
"
|
|
1000
|
-
"inline"
|
|
1001
|
-
],
|
|
1000
|
+
"const": "inline",
|
|
1002
1001
|
"artifactType": "Manifest"
|
|
1003
1002
|
},
|
|
1004
1003
|
"disableDefaultInlineCreateSort": {
|
|
@@ -1026,9 +1025,7 @@
|
|
|
1026
1025
|
"type": {
|
|
1027
1026
|
"description": "Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.",
|
|
1028
1027
|
"type": "string",
|
|
1029
|
-
"
|
|
1030
|
-
"TreeTable"
|
|
1031
|
-
],
|
|
1028
|
+
"const": "TreeTable",
|
|
1032
1029
|
"artifactType": "Manifest"
|
|
1033
1030
|
},
|
|
1034
1031
|
"condensedTableLayout": {
|
|
@@ -1077,9 +1074,7 @@
|
|
|
1077
1074
|
"createMode": {
|
|
1078
1075
|
"description": "Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.",
|
|
1079
1076
|
"type": "string",
|
|
1080
|
-
"
|
|
1081
|
-
"inline"
|
|
1082
|
-
],
|
|
1077
|
+
"const": "inline",
|
|
1083
1078
|
"artifactType": "Manifest"
|
|
1084
1079
|
},
|
|
1085
1080
|
"disableDefaultInlineCreateSort": {
|
|
@@ -1348,9 +1343,7 @@
|
|
|
1348
1343
|
"properties": {
|
|
1349
1344
|
"className": {
|
|
1350
1345
|
"type": "string",
|
|
1351
|
-
"
|
|
1352
|
-
"sap.ui.core.mvc.View"
|
|
1353
|
-
]
|
|
1346
|
+
"const": "sap.ui.core.mvc.View"
|
|
1354
1347
|
},
|
|
1355
1348
|
"viewName": {
|
|
1356
1349
|
"type": "string"
|
|
@@ -1404,18 +1397,14 @@
|
|
|
1404
1397
|
"properties": {
|
|
1405
1398
|
"className": {
|
|
1406
1399
|
"type": "string",
|
|
1407
|
-
"
|
|
1408
|
-
"sap.ui.core.Fragment"
|
|
1409
|
-
]
|
|
1400
|
+
"const": "sap.ui.core.Fragment"
|
|
1410
1401
|
},
|
|
1411
1402
|
"fragmentName": {
|
|
1412
1403
|
"type": "string"
|
|
1413
1404
|
},
|
|
1414
1405
|
"type": {
|
|
1415
1406
|
"type": "string",
|
|
1416
|
-
"
|
|
1417
|
-
"XML"
|
|
1418
|
-
]
|
|
1407
|
+
"const": "XML"
|
|
1419
1408
|
},
|
|
1420
1409
|
"relatedFacet": {
|
|
1421
1410
|
"type": "string"
|
|
@@ -353,9 +353,7 @@
|
|
|
353
353
|
]
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
|
-
"
|
|
357
|
-
"auto"
|
|
358
|
-
],
|
|
356
|
+
"const": "auto",
|
|
359
357
|
"type": "string"
|
|
360
358
|
}
|
|
361
359
|
]
|
|
@@ -503,9 +501,7 @@
|
|
|
503
501
|
"template": {
|
|
504
502
|
"description": "Represents the card component path to use for this List Card.",
|
|
505
503
|
"type": "string",
|
|
506
|
-
"
|
|
507
|
-
"sap.ovp.cards.list"
|
|
508
|
-
],
|
|
504
|
+
"const": "sap.ovp.cards.list",
|
|
509
505
|
"artifactType": "Manifest"
|
|
510
506
|
},
|
|
511
507
|
"listCardSettings": {
|
|
@@ -621,9 +617,7 @@
|
|
|
621
617
|
]
|
|
622
618
|
},
|
|
623
619
|
{
|
|
624
|
-
"
|
|
625
|
-
"auto"
|
|
626
|
-
],
|
|
620
|
+
"const": "auto",
|
|
627
621
|
"type": "string"
|
|
628
622
|
}
|
|
629
623
|
]
|
|
@@ -691,9 +685,7 @@
|
|
|
691
685
|
"template": {
|
|
692
686
|
"description": "Represents the Stack Card component path to use for this card.",
|
|
693
687
|
"type": "string",
|
|
694
|
-
"
|
|
695
|
-
"sap.ovp.cards.stack"
|
|
696
|
-
],
|
|
688
|
+
"const": "sap.ovp.cards.stack",
|
|
697
689
|
"artifactType": "Manifest"
|
|
698
690
|
},
|
|
699
691
|
"stackCardSettings": {
|
|
@@ -800,9 +792,7 @@
|
|
|
800
792
|
]
|
|
801
793
|
},
|
|
802
794
|
{
|
|
803
|
-
"
|
|
804
|
-
"auto"
|
|
805
|
-
],
|
|
795
|
+
"const": "auto",
|
|
806
796
|
"type": "string"
|
|
807
797
|
}
|
|
808
798
|
]
|
|
@@ -848,9 +838,7 @@
|
|
|
848
838
|
"template": {
|
|
849
839
|
"description": "Represents the Link list Card component path to use for this card.",
|
|
850
840
|
"type": "string",
|
|
851
|
-
"
|
|
852
|
-
"sap.ovp.cards.linklist"
|
|
853
|
-
],
|
|
841
|
+
"const": "sap.ovp.cards.linklist",
|
|
854
842
|
"artifactType": "Manifest"
|
|
855
843
|
},
|
|
856
844
|
"linkListCardSettings": {
|
|
@@ -964,9 +952,7 @@
|
|
|
964
952
|
]
|
|
965
953
|
},
|
|
966
954
|
{
|
|
967
|
-
"
|
|
968
|
-
"auto"
|
|
969
|
-
],
|
|
955
|
+
"const": "auto",
|
|
970
956
|
"type": "string"
|
|
971
957
|
}
|
|
972
958
|
]
|
|
@@ -1063,9 +1049,7 @@
|
|
|
1063
1049
|
"template": {
|
|
1064
1050
|
"description": "Represents the Table Card component path to use for this card.",
|
|
1065
1051
|
"type": "string",
|
|
1066
|
-
"
|
|
1067
|
-
"sap.ovp.cards.table"
|
|
1068
|
-
],
|
|
1052
|
+
"const": "sap.ovp.cards.table",
|
|
1069
1053
|
"artifactType": "Manifest"
|
|
1070
1054
|
},
|
|
1071
1055
|
"tableCardSettings": {
|
|
@@ -1190,9 +1174,7 @@
|
|
|
1190
1174
|
]
|
|
1191
1175
|
},
|
|
1192
1176
|
{
|
|
1193
|
-
"
|
|
1194
|
-
"auto"
|
|
1195
|
-
],
|
|
1177
|
+
"const": "auto",
|
|
1196
1178
|
"type": "string"
|
|
1197
1179
|
}
|
|
1198
1180
|
]
|
|
@@ -1238,9 +1220,7 @@
|
|
|
1238
1220
|
"template": {
|
|
1239
1221
|
"description": "Represents the Analytical Card component path to use for this card.",
|
|
1240
1222
|
"type": "string",
|
|
1241
|
-
"
|
|
1242
|
-
"sap.ovp.cards.charts.analytical"
|
|
1243
|
-
],
|
|
1223
|
+
"const": "sap.ovp.cards.charts.analytical",
|
|
1244
1224
|
"artifactType": "Manifest"
|
|
1245
1225
|
},
|
|
1246
1226
|
"analyticalCardSettings": {
|
|
@@ -1335,9 +1315,7 @@
|
|
|
1335
1315
|
]
|
|
1336
1316
|
},
|
|
1337
1317
|
{
|
|
1338
|
-
"
|
|
1339
|
-
"auto"
|
|
1340
|
-
],
|
|
1318
|
+
"const": "auto",
|
|
1341
1319
|
"type": "string"
|
|
1342
1320
|
}
|
|
1343
1321
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAUvE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,WAAY,MAAM,iBAAiB,MAAM,EAAE,KAAG,MAElF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,WAAY,MAAM,iBAAiB,MAAM,EAAE,eAAe,MAAM,EAAE,KAAG,MAEtG,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,cAAe,MAAM,SAAS,MAAM,KAAG,MASnE,CAAC;AAEF,wBAAgB,QAAQ,CAAC,MAAM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,MAAM;CAc1F,CAAC;AA0EF,eAAO,MAAM,kCAAkC,WAAY,MAAM,cAAc,MAAM,gBAAgB,MAAM,KAAG,IAE7G,CAAC;AAEF,eAAO,MAAM,kCAAkC,WAAY,MAAM,cAAc,MAAM,gBAAgB,MAAM,KAAG,IAG7G,CAAC"}
|
|
@@ -184,6 +184,7 @@ const addPatternForBindingChangeOfEnum = (schema, definition, propertyName, bind
|
|
|
184
184
|
const description = originalDefinition.description ? originalDefinition.description : targetDefinition.description;
|
|
185
185
|
const pattern = determinePattern(targetDefinition);
|
|
186
186
|
if (targetDefinition['type'] && targetDefinition['type'] === 'boolean') {
|
|
187
|
+
//Always an enum, always with more than one value
|
|
187
188
|
resultDefinition = { enum: [false, true] };
|
|
188
189
|
}
|
|
189
190
|
if (bindingValues && resultDefinition['enum']) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;;AACA,wEAMqC;AACrC,oCAAkD;AAElD;;;;GAIG;AACI,MAAM,wBAAwB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAU,EAAE;IACxF,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAFW,QAAA,wBAAwB,4BAEnC;AAEF;;;;;GAKG;AACI,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAE,WAAqB,EAAU,EAAE;IAC5G,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,qBAAqB,yBAEhC;AAEF;;;;;;GAMG;AACI,MAAM,gBAAgB,GAAG,CAAC,SAAiB,EAAE,KAAa,EAAU,EAAE;IACzE,IAAI,kBAA0B,CAAC;IAC/B,MAAM,MAAM,GAAW,yCAAgB,CAAC;IACxC,IAA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B,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;gBAChD,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxC;QACL,CAAC,CAAC,CAAC;KACN;IACD,YAAY,CAAC,YAAY,CAAC,GAAG;QACzB,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE;YACH,gBAAgB;YAChB;gBACI,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ,CAAC;IACF,IAAI,WAAW,EAAE;QACb,YAAY,CAAC,YAAY,CAAC,CAAC,WAAW,GAAG,WAAW,CAAC;QACrD,OAAO,kBAAkB,CAAC,WAAW,CAAC;KACzC;AACL,CAAC,CAAC;AAEK,MAAM,kCAAkC,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAE,YAAoB,EAAQ,EAAE;IACjH,gCAAgC,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;AACvE,CAAC,CAAC;AAFW,QAAA,kCAAkC,sCAE7C;AAEK,MAAM,kCAAkC,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAE,YAAoB,EAAQ,EAAE;IACjH,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAClD,gCAAgC,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AACtF,CAAC,CAAC;AAHW,QAAA,kCAAkC,sCAG7C"}
|
|
@@ -5,6 +5,13 @@ import type { Definition } from 'typescript-json-schema';
|
|
|
5
5
|
import type { SectionTypeV2 } from '../../v2/types';
|
|
6
6
|
import type { FacetConfig, FacetSection, SectionType } from '@sap/ux-specification-types';
|
|
7
7
|
import { DefinitionName } from '@sap/ux-specification-types';
|
|
8
|
+
/**
|
|
9
|
+
* Adds enum values to the app schema. Either as 'enum' - if multiple entries exist,
|
|
10
|
+
* or as 'const', if it is only a single value
|
|
11
|
+
* @param enumEntries - array of strings for setting up the enum definition
|
|
12
|
+
* @param currentDefinition - currentDefinition in the schema
|
|
13
|
+
*/
|
|
14
|
+
export declare function addEnumToSchema(enumEntries: string[], currentDefinition: Definition): void;
|
|
8
15
|
/**
|
|
9
16
|
* Adds an enum filled with existing UI annotations of the given list (validAnnotations)
|
|
10
17
|
* @param {EntityType} entityType
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,cAAc,EAA0C,MAAM,6BAA6B,CAAC;AAGrG;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,iBAAiB,EAAE,EACrC,QAAQ,EAAE,UAAU,GACrB,IAAI,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;A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BAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAQtF;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,UAAU,EACrB,aAAa,EAAE,WAAW,EAC1B,gBAAgB,CAAC,EAAE,WAAW,EAC9B,cAAc,SAAK,QAiBtB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAkB3F;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CA2BtG"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addKeyToDefinition = exports.getActionKey = exports.handleAddressContact = exports.getFacetAnnotationPath = exports.getFacetDefinitionLink = exports.addDataTypeToDefinition = exports.determineDataType = exports.determineDataTypeOfTarget = exports.getDataTypeFromAnnotation = exports.DataType = exports.addFieldsType = exports.addCommonLineItemDefinitions = exports.parseSchemaDefinition = exports.getFacetKeyInSchema = exports.addDefinitionForRelatedFacetKeys = exports.addEnumForVariantEntitySet = exports.addEnumForMultiTabVariant = exports.addEnumForSingleTabVariant = exports.addEnumForValidAnnotations = void 0;
|
|
3
|
+
exports.addKeyToDefinition = exports.getActionKey = exports.handleAddressContact = exports.getFacetAnnotationPath = exports.getFacetDefinitionLink = exports.addDataTypeToDefinition = exports.determineDataType = exports.determineDataTypeOfTarget = exports.getDataTypeFromAnnotation = exports.DataType = exports.addFieldsType = exports.addCommonLineItemDefinitions = exports.parseSchemaDefinition = exports.getFacetKeyInSchema = exports.addDefinitionForRelatedFacetKeys = exports.addEnumForVariantEntitySet = exports.addEnumForMultiTabVariant = exports.addEnumForSingleTabVariant = exports.addEnumForValidAnnotations = exports.addEnumToSchema = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
6
6
|
const StableIdHelper_1 = require("../../v4/utils/StableIdHelper");
|
|
7
|
+
/**
|
|
8
|
+
* Adds enum values to the app schema. Either as 'enum' - if multiple entries exist,
|
|
9
|
+
* or as 'const', if it is only a single value
|
|
10
|
+
* @param enumEntries - array of strings for setting up the enum definition
|
|
11
|
+
* @param currentDefinition - currentDefinition in the schema
|
|
12
|
+
*/
|
|
13
|
+
function addEnumToSchema(enumEntries, currentDefinition) {
|
|
14
|
+
if (!currentDefinition) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (enumEntries.length > 0) {
|
|
18
|
+
if (enumEntries.length > 1) {
|
|
19
|
+
currentDefinition.enum = enumEntries;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
currentDefinition.const = enumEntries[0];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.addEnumToSchema = addEnumToSchema;
|
|
7
27
|
/**
|
|
8
28
|
* Adds an enum filled with existing UI annotations of the given list (validAnnotations)
|
|
9
29
|
* @param {EntityType} entityType
|
|
@@ -27,9 +47,7 @@ function addEnumForValidAnnotations(entityType, validAnnotations, annoPath) {
|
|
|
27
47
|
}
|
|
28
48
|
}
|
|
29
49
|
}
|
|
30
|
-
|
|
31
|
-
annoPath['enum'] = enumEntries;
|
|
32
|
-
}
|
|
50
|
+
addEnumToSchema(enumEntries, annoPath);
|
|
33
51
|
}
|
|
34
52
|
exports.addEnumForValidAnnotations = addEnumForValidAnnotations;
|
|
35
53
|
/**
|
|
@@ -71,9 +89,7 @@ function addEnumForVariantEntitySet(oDataServiceAVT, appSchema, definitionName)
|
|
|
71
89
|
oDataServiceAVT.entitySets.forEach((es) => {
|
|
72
90
|
enumEntries.push(es.name);
|
|
73
91
|
});
|
|
74
|
-
|
|
75
|
-
entitySet['enum'] = enumEntries;
|
|
76
|
-
}
|
|
92
|
+
addEnumToSchema(enumEntries, entitySet);
|
|
77
93
|
}
|
|
78
94
|
exports.addEnumForVariantEntitySet = addEnumForVariantEntitySet;
|
|
79
95
|
/**
|