@sap/ux-specification 1.136.15 → 1.136.16

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.
Files changed (228) hide show
  1. package/CHANGELOG.md +227 -165
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ListReportNew.html +2 -2
  6. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  7. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  8. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  9. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  10. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  11. package/dist/documentation/v4/v4-ListReport.html +2 -2
  12. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  13. package/dist/index-min.js +254 -250
  14. package/dist/index-min.js.map +4 -4
  15. package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -3
  16. package/dist/schemas/v2/ListReportConfig.json +5 -5
  17. package/dist/schemas/v2/ListReportNewConfig.json +1 -1
  18. package/dist/schemas/v2/ObjectPageConfig.json +5 -5
  19. package/dist/schemas/v4/ApplicationV4.json +1 -1
  20. package/dist/schemas/v4/BuildingBlocksConfig.json +48 -6
  21. package/dist/schemas/v4/ListReportConfig.json +24 -6
  22. package/dist/schemas/v4/ObjectPageConfig.json +32 -8
  23. package/dist/specification/package.json +13 -11
  24. package/dist/specification/scripts/extractDocu.js +18 -1
  25. package/dist/specification/scripts/extractDocu.js.map +1 -1
  26. package/dist/specification/scripts/generate-validity-report.d.ts +15 -0
  27. package/dist/specification/scripts/generate-validity-report.d.ts.map +1 -0
  28. package/dist/specification/scripts/generate-validity-report.js +367 -0
  29. package/dist/specification/scripts/generate-validity-report.js.map +1 -0
  30. package/dist/specification/scripts/macros/corrections.d.ts +40 -0
  31. package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
  32. package/dist/specification/scripts/macros/corrections.js +81 -6
  33. package/dist/specification/scripts/macros/corrections.js.map +1 -1
  34. package/dist/specification/scripts/macros/schema.js +1 -1
  35. package/dist/specification/scripts/macros/schema.js.map +1 -1
  36. package/dist/specification/scripts/macros/types.d.ts +1 -0
  37. package/dist/specification/scripts/macros/types.d.ts.map +1 -1
  38. package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
  39. package/dist/specification/scripts/schema/to-json-schema.js +2 -13
  40. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  41. package/dist/specification/src/api.js +1 -1
  42. package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +503 -0
  43. package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -0
  44. package/dist/specification/src/sync/common/decoration/decorator-paths.js +497 -0
  45. package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -0
  46. package/dist/specification/src/sync/common/decoration/decorators.d.ts +149 -23
  47. package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
  48. package/dist/specification/src/sync/common/decoration/decorators.js +369 -74
  49. package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
  50. package/dist/specification/src/sync/common/decoration/index.d.ts +1 -0
  51. package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
  52. package/dist/specification/src/sync/common/decoration/index.js +1 -0
  53. package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
  54. package/dist/specification/src/sync/common/dist_tag.json +8 -3
  55. package/dist/specification/src/sync/common/generate/utils.d.ts +2 -1
  56. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  57. package/dist/specification/src/sync/common/generate/utils.js +5 -1
  58. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  59. package/dist/specification/src/sync/common/i18n.json +2 -1
  60. package/dist/specification/src/sync/common/utils.d.ts +22 -6
  61. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  62. package/dist/specification/src/sync/common/utils.js +122 -18
  63. package/dist/specification/src/sync/common/utils.js.map +1 -1
  64. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  65. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +2 -0
  66. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  67. package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
  68. package/dist/specification/src/sync/v2/generate/listReport.js +3 -1
  69. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  70. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  71. package/dist/specification/src/sync/v2/generate/objectPage.js +2 -0
  72. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  73. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +1 -9
  74. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
  75. package/dist/specification/src/sync/v2/generate/overviewPage.js +30 -1
  76. package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
  77. package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
  78. package/dist/specification/src/sync/v2/import/app/appProvider.js +2 -0
  79. package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
  80. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -1
  81. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
  82. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +5 -0
  83. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  84. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +2 -1
  85. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
  86. package/dist/specification/src/sync/v2/import/pages/listReport.js +5 -0
  87. package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
  88. package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
  89. package/dist/specification/src/sync/v2/import/pages/objectPage.js +2 -1
  90. package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
  91. package/dist/specification/src/sync/v2/import/utils.d.ts +28 -1
  92. package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
  93. package/dist/specification/src/sync/v2/import/utils.js +37 -0
  94. package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
  95. package/dist/specification/src/sync/v2/utils.d.ts +12 -2
  96. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  97. package/dist/specification/src/sync/v2/utils.js +19 -2
  98. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  99. package/dist/specification/src/sync/v4/application.d.ts +20 -2
  100. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  101. package/dist/specification/src/sync/v4/application.js +27 -2
  102. package/dist/specification/src/sync/v4/application.js.map +1 -1
  103. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +2 -1
  104. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
  105. package/dist/specification/src/sync/v4/export/controls/FilterBar.js +2 -1
  106. package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  107. package/dist/specification/src/sync/v4/export/controls/Header.d.ts +4 -3
  108. package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
  109. package/dist/specification/src/sync/v4/export/controls/Header.js +7 -3
  110. package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
  111. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
  112. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
  113. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -0
  114. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
  115. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
  116. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
  117. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +2 -1
  118. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  119. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
  120. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  121. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +0 -13
  122. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  123. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +24 -15
  124. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  125. package/dist/specification/src/sync/v4/export/controls/Table.js +40 -46
  126. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  127. package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
  128. package/dist/specification/src/sync/v4/export/controls/TableColumn.js +2 -2
  129. package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  130. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  131. package/dist/specification/src/sync/v4/export/export.js +25 -3
  132. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  133. package/dist/specification/src/sync/v4/export/pages/ListReport.js +1 -1
  134. package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
  135. package/dist/specification/src/sync/v4/generate/actions.d.ts +1 -1
  136. package/dist/specification/src/sync/v4/generate/actions.d.ts.map +1 -1
  137. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +1 -1
  138. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  139. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
  140. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +16 -1
  141. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
  142. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
  143. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +10 -1
  144. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
  145. package/dist/specification/src/sync/v4/generate/index.d.ts +1 -1
  146. package/dist/specification/src/sync/v4/generate/index.d.ts.map +1 -1
  147. package/dist/specification/src/sync/v4/generate/index.js +1 -1
  148. package/dist/specification/src/sync/v4/generate/index.js.map +1 -1
  149. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +73 -0
  150. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -0
  151. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +354 -0
  152. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -0
  153. package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts} +22 -15
  154. package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -0
  155. package/dist/specification/src/sync/v4/generate/{listReport.js → list-report/listReport.js} +112 -68
  156. package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -0
  157. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  158. package/dist/specification/src/sync/v4/generate/objectPage.js +142 -44
  159. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  160. package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
  161. package/dist/specification/src/sync/v4/import/pages/listReport.js +2 -1
  162. package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
  163. package/dist/specification/src/sync/v4/import/utils.js +5 -3
  164. package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
  165. package/dist/specification/src/sync/v4/sync-rules/App.d.ts +9 -7
  166. package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
  167. package/dist/specification/src/sync/v4/sync-rules/App.js +4 -8
  168. package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
  169. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -9
  170. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
  171. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +2 -11
  172. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
  173. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +177 -46
  174. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
  175. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +498 -152
  176. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
  177. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +17 -22
  178. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
  179. package/dist/specification/src/sync/v4/sync-rules/Page.js +15 -22
  180. package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
  181. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts +1 -0
  182. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
  183. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +17 -9
  184. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
  185. package/dist/specification/src/sync/v4/sync-rules/index.d.ts +5 -0
  186. package/dist/specification/src/sync/v4/sync-rules/index.d.ts.map +1 -0
  187. package/dist/specification/src/sync/v4/sync-rules/index.js +21 -0
  188. package/dist/specification/src/sync/v4/sync-rules/index.js.map +1 -0
  189. package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -1
  190. package/dist/specification/src/sync/v4/sync-rules/utils.js +4 -0
  191. package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -1
  192. package/dist/specification/src/sync/v4/utils/index.d.ts +2 -0
  193. package/dist/specification/src/sync/v4/utils/index.d.ts.map +1 -0
  194. package/dist/specification/src/sync/v4/utils/index.js +18 -0
  195. package/dist/specification/src/sync/v4/utils/index.js.map +1 -0
  196. package/dist/specification/src/sync/v4/utils/utils.d.ts +9 -1
  197. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  198. package/dist/specification/src/sync/v4/utils/utils.js +17 -2
  199. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  200. package/dist/specification/test/test-projects/v2sttaProdMan2/webapp/manifest.json +550 -0
  201. package/dist/specification/test/test-projects/v4new/webapp/manifest.json +147 -0
  202. package/dist/specification/test/test-utils/utils.d.ts +71 -0
  203. package/dist/specification/test/test-utils/utils.d.ts.map +1 -0
  204. package/dist/specification/test/test-utils/utils.js +400 -0
  205. package/dist/specification/test/test-utils/utils.js.map +1 -0
  206. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +131 -0
  207. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -0
  208. package/dist/specification/test/unit/decorators/validity-test-utils.js +661 -0
  209. package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -0
  210. package/dist/types/src/apiTypes.d.ts +2 -3
  211. package/dist/types/src/apiTypes.d.ts.map +1 -1
  212. package/dist/types/src/apiTypes.js.map +1 -1
  213. package/dist/types/src/common/types.d.ts +119 -13
  214. package/dist/types/src/common/types.d.ts.map +1 -1
  215. package/dist/types/src/common/types.js.map +1 -1
  216. package/dist/types/src/v2/controls/ObjectPageTable.d.ts +1 -1
  217. package/dist/types/src/v2/controls/Table.d.ts +1 -1
  218. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +1 -1
  219. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  220. package/dist/types/src/v4/controls/Table.d.ts +3 -3
  221. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  222. package/package.json +14 -12
  223. package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +0 -107
  224. package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +0 -1
  225. package/dist/specification/src/sync/v4/generate/ListReportUtils.js +0 -394
  226. package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +0 -1
  227. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +0 -1
  228. package/dist/specification/src/sync/v4/generate/listReport.js.map +0 -1
@@ -0,0 +1,147 @@
1
+ {
2
+ "_version": "1.15.0",
3
+ "sap.app": {
4
+ "id": "Namespace1.v4new",
5
+ "type": "application",
6
+ "i18n": "i18n/i18n.properties",
7
+ "applicationVersion": {
8
+ "version": "1.0.0"
9
+ },
10
+ "title": "{{appTitle}}",
11
+ "description": "{{appDescription}}",
12
+ "ach": "CA-UI5-FE",
13
+ "dataSources": {
14
+ "mainService": {
15
+ "uri": "/catalog-admin-noauth/",
16
+ "type": "OData",
17
+ "settings": {
18
+ "annotations": [
19
+ "annotation"
20
+ ],
21
+ "odataVersion": "4.0",
22
+ "localUri": "localService/metadata.xml"
23
+ }
24
+ },
25
+ "annotation": {
26
+ "type": "ODataAnnotation",
27
+ "uri": "annotations/annotation.xml",
28
+ "settings": {
29
+ "localUri": "annotations/annotation.xml"
30
+ }
31
+ }
32
+ },
33
+ "offline": false,
34
+ "resources": "resources.json",
35
+ "sourceTemplate": {
36
+ "id": "ui5template.fiorielements.v4.lrop",
37
+ "version": "1.0.0"
38
+ }
39
+ },
40
+ "sap.ui": {
41
+ "technology": "UI5",
42
+ "icons": {
43
+ "icon": "",
44
+ "favIcon": "",
45
+ "phone": "",
46
+ "phone@2": "",
47
+ "tablet": "",
48
+ "tablet@2": ""
49
+ },
50
+ "deviceTypes": {
51
+ "desktop": true,
52
+ "tablet": true,
53
+ "phone": true
54
+ }
55
+ },
56
+ "sap.ui5": {
57
+ "resources": {
58
+ "js": [],
59
+ "css": []
60
+ },
61
+ "dependencies": {
62
+ "minUI5Version": "1.76.0",
63
+ "libs": {
64
+ "sap.fe": {},
65
+ "sap.ui.fl": {}
66
+ }
67
+ },
68
+ "models": {
69
+ "i18n": {
70
+ "type": "sap.ui.model.resource.ResourceModel",
71
+ "uri": "i18n/i18n.properties"
72
+ },
73
+ "": {
74
+ "dataSource": "mainService",
75
+ "settings": {
76
+ "synchronizationMode": "None",
77
+ "operationMode": "Server",
78
+ "autoExpandSelect": true,
79
+ "earlyRequests": true
80
+ }
81
+ }
82
+ },
83
+ "routing": {
84
+ "targets": {
85
+ "ProductsList": {
86
+ "type": "Component",
87
+ "id": "ProductsList",
88
+ "name": "sap.fe.templates.ListReport",
89
+ "options": {
90
+ "settings": {
91
+ "entitySet": "Products",
92
+ "defaultTemplateAnnotationPath": "com.sap.vocabularies.UI.v1.SelectionPresentationVariant",
93
+ "variantManagement": "Page",
94
+ "navigation": {
95
+ "Products": {
96
+ "detail": {
97
+ "route": "ProductsObjectPage"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "ProductsObjectPage": {
105
+ "type": "Component",
106
+ "id": "ProductsObjectPage",
107
+ "name": "sap.fe.templates.ObjectPage",
108
+ "options": {
109
+ "settings": {
110
+ "entitySet": "Products",
111
+ "navigation": {}
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "routes": [
117
+ {
118
+ "pattern": ":?query:",
119
+ "name": "ProductsList",
120
+ "target": "ProductsList"
121
+ },
122
+ {
123
+ "pattern": "Products({key}):?query:",
124
+ "name": "ProductsObjectPage",
125
+ "target": "ProductsObjectPage"
126
+ }
127
+ ]
128
+ },
129
+ "contentDensities": {
130
+ "compact": true,
131
+ "cozy": true
132
+ }
133
+ },
134
+ "sap.platform.abap": {
135
+ "_version": "1.1.0",
136
+ "uri": ""
137
+ },
138
+ "sap.platform.hcp": {
139
+ "_version": "1.1.0",
140
+ "uri": ""
141
+ },
142
+ "sap.fiori": {
143
+ "_version": "1.1.0",
144
+ "registrationIds": [],
145
+ "archeType": "transactional"
146
+ }
147
+ }
@@ -0,0 +1,71 @@
1
+ import type { ExportResults, ExtensionLogger, FileData, LogMessage, Manifest } from '@sap/ux-specification-types';
2
+ import type { Definition } from 'typescript-json-schema';
3
+ export declare class Logger implements ExtensionLogger {
4
+ logInfo: string[];
5
+ logWarning: string[];
6
+ logError: string[];
7
+ private enrichLogMessage;
8
+ constructor();
9
+ info(message: string, meta?: LogMessage): void;
10
+ warning(message: string, meta?: LogMessage): void;
11
+ error(message: string, meta?: LogMessage): void;
12
+ reset(): void;
13
+ }
14
+ export declare function createTestLogger(): Logger;
15
+ /**
16
+ * Returns the content of a list of files that are indicated by a list of file paths
17
+ */
18
+ export declare function retrieveFileContent(path: string): string;
19
+ export declare function prepareFileData(path: string): FileData;
20
+ export declare function getSTTAAnnotations(): FileData[];
21
+ export declare function getSDV4Annotations(): FileData[];
22
+ export declare function getSTTAAnnotationsProdMan2(): FileData[];
23
+ /**
24
+ * Provides access to the manifest for the v2sttaProdMan2 project.
25
+ * Thereby it is possible to get a modified manifest containing an extended multi-view multi-table setting.
26
+ *
27
+ * @param forMultiView - information whether the extended multi-view setting should be provided
28
+ * @param: hasAlsoQuickVariantSelection - if true, the manifest will contain both quickVariantSelectionX and quickVariantSelection settings
29
+ * @returns the manifest as specified
30
+ */
31
+ export declare function getSTTAManifestProdMan2(forMultiView: boolean, hasAlsoQuickVariantSelection?: boolean): Manifest;
32
+ export declare function getALPAnnotations(): FileData[];
33
+ export declare function getALPVisualizationsAnnotations(): FileData[];
34
+ export declare function getExtensionsProdMan2(): FileData[];
35
+ export declare function getSEPMRAAnnotations(): FileData[];
36
+ export declare function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles?: string[]): FileData[];
37
+ export declare function findFlexChangeBySelector(exportResult: ExportResults, selectorId: string, property: string): object;
38
+ /**
39
+ * Function to find out the flexChange from a list. Uses global variable exportResult
40
+ *
41
+ * @param {string} property Property for which the flexChange is to be found
42
+ * @returns {object} contents of the flexChange
43
+ */
44
+ export declare function findFlexChange(exportResult: ExportResults, property: string): object;
45
+ /**
46
+ * Method checks position properties in schema.
47
+ * It also updates schema by removing offset properties from position as it is related to OS
48
+ * Macros id (internalId) is also getting removed from macros metadata as it depends on uuid library.
49
+ * At the end there will be line and column indexes, which could be stored in snapshots.
50
+ *
51
+ * @param {object} schema Schema to check and update.
52
+ * @returns {boolean} Valid positions.
53
+ */
54
+ export declare function checkPositions(schema: object): boolean;
55
+ /**
56
+ * Method returns array of schema definition properties which sorted by 'propertyIndex' property.
57
+ *
58
+ * @param {SchemaDefinition} schemaDefinition Schema definition which contains properties.
59
+ * @returns {string[]} Array of sorted properties by 'propertyIndex' property.
60
+ */
61
+ export declare const getOrderedEntries: (schemaDefinition: Definition) => string[];
62
+ export declare function findManifestSettingV4(exportResult: ExportResults, pageName: string): object;
63
+ /**
64
+ * Returns the definition of the referred type of a schema element.
65
+ *
66
+ * @param element - the schema element that may refer to another type
67
+ * @param schema - the global schema
68
+ * @returns the definition of the type the elements refers to, or undefined if it does not refer to any type
69
+ */
70
+ export declare function getReferredTypeDefinition(element: Definition, schema: Definition): Definition | undefined;
71
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../test/test-utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,eAAe,EACf,QAAQ,EACR,UAAU,EACV,QAAQ,EAEX,MAAM,6BAA6B,CAAC;AAKrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,qBAAa,MAAO,YAAW,eAAe;IACnC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IAE1B,OAAO,CAAC,gBAAgB;;IAsBjB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI;IAQ9C,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI;IAOjD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI;IAQ/C,KAAK,IAAI,IAAI;CAKvB;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED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,UAAU,GAAG,UAAU,GAAG,SAAS,CAMzG"}
@@ -0,0 +1,400 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.getOrderedEntries = exports.Logger = void 0;
40
+ exports.createTestLogger = createTestLogger;
41
+ exports.retrieveFileContent = retrieveFileContent;
42
+ exports.prepareFileData = prepareFileData;
43
+ exports.getSTTAAnnotations = getSTTAAnnotations;
44
+ exports.getSDV4Annotations = getSDV4Annotations;
45
+ exports.getSTTAAnnotationsProdMan2 = getSTTAAnnotationsProdMan2;
46
+ exports.getSTTAManifestProdMan2 = getSTTAManifestProdMan2;
47
+ exports.getALPAnnotations = getALPAnnotations;
48
+ exports.getALPVisualizationsAnnotations = getALPVisualizationsAnnotations;
49
+ exports.getExtensionsProdMan2 = getExtensionsProdMan2;
50
+ exports.getSEPMRAAnnotations = getSEPMRAAnnotations;
51
+ exports.getExtensionsForS2pMmPurSrcgprojMaintains1 = getExtensionsForS2pMmPurSrcgprojMaintains1;
52
+ exports.findFlexChangeBySelector = findFlexChangeBySelector;
53
+ exports.findFlexChange = findFlexChange;
54
+ exports.checkPositions = checkPositions;
55
+ exports.findManifestSettingV4 = findManifestSettingV4;
56
+ exports.getReferredTypeDefinition = getReferredTypeDefinition;
57
+ const ux_specification_types_1 = require("@sap/ux-specification-types");
58
+ const ux_specification_types_2 = require("@sap/ux-specification-types");
59
+ const fs = __importStar(require("fs"));
60
+ const path_1 = require("path");
61
+ const manifest_json_1 = __importDefault(require("../test-projects/v2sttaProdMan2/webapp/manifest.json"));
62
+ class Logger {
63
+ enrichLogMessage(meta, message) {
64
+ let logMessage = message;
65
+ const location = meta['location'];
66
+ if (location) {
67
+ if (location?.path) {
68
+ logMessage += '; location: ' + location.path;
69
+ }
70
+ if (typeof location['range'] === 'object') {
71
+ const range = '/' + location.range.join('/');
72
+ logMessage = (logMessage + range).replace(/\/\//g, '/');
73
+ }
74
+ }
75
+ return logMessage;
76
+ }
77
+ constructor() {
78
+ this.logInfo = [];
79
+ this.logError = [];
80
+ this.logWarning = [];
81
+ }
82
+ info(message, meta) {
83
+ if (meta) {
84
+ this.logInfo.push(this.enrichLogMessage(meta, message));
85
+ }
86
+ else {
87
+ this.logInfo.push(message);
88
+ }
89
+ }
90
+ warning(message, meta) {
91
+ if (meta) {
92
+ this.logWarning.push(this.enrichLogMessage(meta, message));
93
+ }
94
+ else {
95
+ this.logWarning.push(message);
96
+ }
97
+ }
98
+ error(message, meta) {
99
+ if (meta) {
100
+ this.logError.push(this.enrichLogMessage(meta, message));
101
+ }
102
+ else {
103
+ this.logError.push(message);
104
+ }
105
+ }
106
+ reset() {
107
+ this.logInfo = [];
108
+ this.logWarning = [];
109
+ this.logError = [];
110
+ }
111
+ }
112
+ exports.Logger = Logger;
113
+ function createTestLogger() {
114
+ return new Logger();
115
+ }
116
+ /**
117
+ * Returns the content of a list of files that are indicated by a list of file paths
118
+ */
119
+ function retrieveFileContent(path) {
120
+ if (path) {
121
+ return fs.readFileSync(path, 'utf8');
122
+ }
123
+ }
124
+ function prepareFileData(path) {
125
+ const fileData = {
126
+ dataSourceUri: path,
127
+ fileContent: retrieveFileContent(path)
128
+ };
129
+ return fileData;
130
+ }
131
+ function getSTTAAnnotations() {
132
+ const allAnnotationData = [];
133
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan', 'webapp', 'localService', 'metadata.xml')));
134
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan', 'webapp', 'localService', 'Z2SEPMRA_C_PD_PRODUCT_CDS_VAN.xml')));
135
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan', 'webapp', 'annotations', 'annotation.xml')));
136
+ return allAnnotationData;
137
+ }
138
+ function getSDV4Annotations() {
139
+ const allAnnotationData = [];
140
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v4Salesorder', 'webapp', 'localService', 'metadata.xml')));
141
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v4Salesorder', 'webapp', 'annotations', 'annotation.xml')));
142
+ return allAnnotationData;
143
+ }
144
+ function getSTTAAnnotationsProdMan2() {
145
+ const allAnnotationData = [];
146
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'localService', 'metadata.xml')));
147
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'localService', 'STTA_PROD_MAN_ANNO_MDL.xml')));
148
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'annotations', 'annotations.xml')));
149
+ return allAnnotationData;
150
+ }
151
+ /**
152
+ * Provides access to the manifest for the v2sttaProdMan2 project.
153
+ * Thereby it is possible to get a modified manifest containing an extended multi-view multi-table setting.
154
+ *
155
+ * @param forMultiView - information whether the extended multi-view setting should be provided
156
+ * @param: hasAlsoQuickVariantSelection - if true, the manifest will contain both quickVariantSelectionX and quickVariantSelection settings
157
+ * @returns the manifest as specified
158
+ */
159
+ function getSTTAManifestProdMan2(forMultiView, hasAlsoQuickVariantSelection = false) {
160
+ const manifest = structuredClone(manifest_json_1.default);
161
+ if (forMultiView) {
162
+ manifest['sap.ui.generic.app']['pages']['ListReport|STTA_C_MP_Product']['component']['settings']['quickVariantSelectionX'] = {
163
+ variants: {
164
+ // view containing a key containing special characters:
165
+ 'o\\me"g\\a': {
166
+ key: 'beta--gamma1::delta',
167
+ annotationPath: 'com.sap.vocabularies.UI.v1.SelectionPresentationVariant#SPVInline'
168
+ },
169
+ // view with a key that is numeric, use default line item of that entity set
170
+ '03': {
171
+ key: '3',
172
+ entitySet: 'STTA_C_MP_ProductSalesPrice'
173
+ },
174
+ // chart view:
175
+ chart: {
176
+ key: 'chart',
177
+ annotationPath: 'com.sap.vocabularies.UI.v1.SelectionPresentationVariant#SPVInlineChart'
178
+ },
179
+ // view with key and accessor being identical:
180
+ xyz: {
181
+ key: 'xyz',
182
+ entitySet: 'STTA_C_MP_ProductSalesPrice',
183
+ annotationPath: 'com.sap.vocabularies.UI.v1.SelectionPresentationVariant#SPVInline'
184
+ },
185
+ // view with key and accessor being different:
186
+ hugo: {
187
+ key: 'bla',
188
+ entitySet: 'STTA_C_MP_ProductSalesPrice',
189
+ annotationPath: 'com.sap.vocabularies.UI.v1.SelectionVariant'
190
+ }
191
+ },
192
+ enableAutoBinding: true
193
+ };
194
+ }
195
+ if (hasAlsoQuickVariantSelection) {
196
+ // Note that the quickVariantSelection content is already prepared in the base manifest.
197
+ manifest['sap.ui.generic.app']['pages']['ListReport|STTA_C_MP_Product']['component']['settings']['quickVariantSelection'] =
198
+ manifest['sap.ui.generic.app']['pages']['ListReport|STTA_C_MP_Product']['component']['settings']['_quickVariantSelection'];
199
+ delete manifest['sap.ui.generic.app']['pages']['ListReport|STTA_C_MP_Product']['component']['settings']['_quickVariantSelection'];
200
+ }
201
+ return manifest;
202
+ }
203
+ function getALPAnnotations() {
204
+ const allAnnotationData = [];
205
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp', 'webapp', 'localService', 'metadata.xml')));
206
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp', 'webapp', 'localService', 'MM_PUR_SUPLRCONF_MNTR_ANNO_MDL.xml')));
207
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp', 'webapp', 'annotations', 'annotation.xml')));
208
+ return allAnnotationData;
209
+ }
210
+ function getALPVisualizationsAnnotations() {
211
+ const allAnnotationData = [];
212
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp-visualizations', 'webapp', 'localService', 'metadata.xml')));
213
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp-visualizations', 'webapp', 'localService', 'SEPMRA_ALP_SO_ANA_SRV.xml')));
214
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2alp-visualizations', 'webapp', 'annotations', 'annotation.xml')));
215
+ return allAnnotationData;
216
+ }
217
+ function getExtensionsProdMan2() {
218
+ const allExtensionData = [];
219
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ApplicationLogBreakout.fragment.xml')));
220
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'CustomFilter.fragment.xml')));
221
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'DonutChart.fragment.xml')));
222
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'HeaderExtensionFacet.view.xml')));
223
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ListReportGridTableColumns.fragment.xml')));
224
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ListReportResponsiveTableCells.fragment.xml')));
225
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ListReportResponsiveTableColumns.fragment.xml')));
226
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'OPCustomFilter.fragment.xml')));
227
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ProductSalesDataAnalyticalTableColumns.fragment.xml')));
228
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ProductTextGridTableColumns.fragment.xml')));
229
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ProductTextResponsiveTableCells.fragment.xml')));
230
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'ProductTextResponsiveTableColumns.fragment.xml')));
231
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'SideContentExtension.fragment.xml')));
232
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'SmartFormGroupElement.fragment.xml')));
233
+ allExtensionData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2sttaProdMan2', 'webapp', 'ext', 'fragments', 'TextFacet.fragment.xml')));
234
+ return allExtensionData;
235
+ }
236
+ function getSEPMRAAnnotations() {
237
+ const allAnnotationData = [];
238
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2SEPMRA_PROD_MAN', 'webapp', 'localService', 'metadata.xml')));
239
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2SEPMRA_PROD_MAN', 'webapp', 'localService', 'SEPMRA_PROD_MAN.xml')));
240
+ allAnnotationData.push(prepareFileData((0, path_1.join)('test', 'test-projects', 'v2SEPMRA_PROD_MAN', 'webapp', 'annotations', 'annotation.xml')));
241
+ return allAnnotationData;
242
+ }
243
+ function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles) {
244
+ const allExtensionData = [];
245
+ const projectFragmentPath = [
246
+ 'test',
247
+ 'test-projects',
248
+ 's2p.mm.pur.srcgproj.maintains1',
249
+ 'webapp',
250
+ 'ext',
251
+ 'fragments'
252
+ ];
253
+ const files = [
254
+ 'ChangeDocsDialog',
255
+ 'ChangeItemClfnActionSheet',
256
+ 'ContactsCells',
257
+ 'ContactsColumns',
258
+ 'CreateItemActionSheet',
259
+ 'CustomFilter',
260
+ 'DistributionFollowOnExt',
261
+ 'DmndDistrDetailsCells',
262
+ 'DmndDistrDetailsColumns',
263
+ 'ErrorDialog',
264
+ 'FollowOnExt',
265
+ 'GeneralInfoFormExt',
266
+ 'ItemLinkageCells',
267
+ 'ItemLinkageColumns',
268
+ 'ItemLinkageDialog',
269
+ 'ItemLinkageErrorDialog',
270
+ 'ItemSourceExt',
271
+ 'LegalDocumentsPopover',
272
+ 'LegalTransactionsCells',
273
+ 'LegalTransactionsColumns',
274
+ 'ListReportCells',
275
+ 'ListReportColumns',
276
+ 'MilestonesFiltersDialog',
277
+ 'NegotiationActionSheet',
278
+ 'PaymentTermsActionSheet',
279
+ 'PaymentTermsFormExt',
280
+ 'RestrictionPopover',
281
+ 'SourceSourcingProject',
282
+ 'SourcingProjectCancel',
283
+ 'SourcingProjectItemColumns',
284
+ 'SourcingProjectItemToolbar',
285
+ 'SourcingProjectSetToUnconfirmedDialog',
286
+ 'SourcingProjectVersion',
287
+ 'SrcgProjImprtdSuplrListFacet',
288
+ 'SrcgProjItemPaymentTermsToolbar',
289
+ 'SrcgProjPubdSuplrListFacet',
290
+ 'SupplierActionHistoryDialog',
291
+ 'SupplierDeclineParticipationDialog',
292
+ 'SupplierQuotationTableCells',
293
+ 'SupplierQuotationTableColumns',
294
+ 'UnlockSupplierDialog'
295
+ ];
296
+ (specificFiles || files).forEach((file) => allExtensionData.push(prepareFileData((0, path_1.join)(...projectFragmentPath, `${file}.fragment.xml`))));
297
+ return allExtensionData;
298
+ }
299
+ function findFlexChangeBySelector(exportResult, selectorId, property) {
300
+ const filteredList = exportResult['flexChanges'].filter((change) => {
301
+ const changeObject = JSON.parse(change);
302
+ return changeObject.selector.id === selectorId && changeObject.content.property === property;
303
+ });
304
+ return filteredList && filteredList[0] && JSON.parse(filteredList[0]);
305
+ }
306
+ /**
307
+ * Function to find out the flexChange from a list. Uses global variable exportResult
308
+ *
309
+ * @param {string} property Property for which the flexChange is to be found
310
+ * @returns {object} contents of the flexChange
311
+ */
312
+ function findFlexChange(exportResult, property) {
313
+ const filteredList = exportResult['flexChanges'].filter((change) => {
314
+ return JSON.parse(change).content.property === property;
315
+ });
316
+ return filteredList && filteredList[0] && JSON.parse(filteredList[0]);
317
+ }
318
+ /**
319
+ * Method checks position properties in schema.
320
+ * It also updates schema by removing offset properties from position as it is related to OS
321
+ * Macros id (internalId) is also getting removed from macros metadata as it depends on uuid library.
322
+ * At the end there will be line and column indexes, which could be stored in snapshots.
323
+ *
324
+ * @param {object} schema Schema to check and update.
325
+ * @returns {boolean} Valid positions.
326
+ */
327
+ function checkPositions(schema) {
328
+ const filePath = schema['metadata'] ? schema['metadata']['filePath'] : undefined;
329
+ if (filePath) {
330
+ delete schema['metadata']['filePath'];
331
+ }
332
+ const checkMacrosMetadataProperties = (properties) => {
333
+ let valid = true;
334
+ for (const name in properties) {
335
+ const property = properties[name];
336
+ const position = property.metadata?.position;
337
+ const type = property.metadata?.type;
338
+ const internalId = property.metadata?.internalId;
339
+ if (position) {
340
+ if (position['startOffset'] === undefined || position['endOffset'] === undefined) {
341
+ return false;
342
+ }
343
+ // Ignore those properties in snapshot - it returned by thirdparty library and result affected by OS
344
+ // Line and column numbers will be shown in snapshot
345
+ delete position['startOffset'];
346
+ delete position['endOffset'];
347
+ }
348
+ if (type === ux_specification_types_2.MacrosPropertyType.Control) {
349
+ if (!internalId) {
350
+ return false;
351
+ }
352
+ else {
353
+ delete property.metadata['internalId'];
354
+ }
355
+ }
356
+ if (property.properties) {
357
+ valid = checkMacrosMetadataProperties(property.properties);
358
+ }
359
+ }
360
+ return valid;
361
+ };
362
+ return checkMacrosMetadataProperties(schema.properties);
363
+ }
364
+ /**
365
+ * Method returns array of schema definition properties which sorted by 'propertyIndex' property.
366
+ *
367
+ * @param {SchemaDefinition} schemaDefinition Schema definition which contains properties.
368
+ * @returns {string[]} Array of sorted properties by 'propertyIndex' property.
369
+ */
370
+ const getOrderedEntries = (schemaDefinition) => {
371
+ const entries = Object.keys(schemaDefinition.properties || {});
372
+ entries.sort((key1, key2) => {
373
+ const property1 = schemaDefinition.properties[key1];
374
+ const property2 = schemaDefinition.properties[key2];
375
+ if (property1.propertyIndex === property2.propertyIndex) {
376
+ return 0;
377
+ }
378
+ return property1.propertyIndex > property2.propertyIndex ? 1 : -1;
379
+ });
380
+ return entries;
381
+ };
382
+ exports.getOrderedEntries = getOrderedEntries;
383
+ function findManifestSettingV4(exportResult, pageName) {
384
+ return exportResult['manifest'][ux_specification_types_1.ManifestSection.ui5]['routing']['targets'][pageName]['options']['settings'];
385
+ }
386
+ /**
387
+ * Returns the definition of the referred type of a schema element.
388
+ *
389
+ * @param element - the schema element that may refer to another type
390
+ * @param schema - the global schema
391
+ * @returns the definition of the type the elements refers to, or undefined if it does not refer to any type
392
+ */
393
+ function getReferredTypeDefinition(element, schema) {
394
+ if (element.$ref) {
395
+ const typeName = element.$ref.replace('#/definitions/', '');
396
+ return schema.definitions[typeName]; // as this function will normally only called when checkReferentialCorrectness has succeeded, we can exclude Boolean.
397
+ }
398
+ return undefined;
399
+ }
400
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../test/test-utils/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,4CAEC;AAKD,kDAIC;AAED,0CAMC;AAED,gDAsBC;AAED,gDAUC;AAED,gEAcC;AAUD,0DAsDC;AAED,8CAcC;AAED,0EAgBC;AAED,sDAuKC;AAED,oDAeC;AAED,gGA0DC;AAED,4DAOC;AAQD,wCAMC;AAWD,wCAmCC;AAqBD,sDAEC;AASD,8DAMC;AA1kBD,wEAA8D;AAC9D,wEAAiE;AACjE,uCAAyB;AACzB,+BAA4B;AAE5B,yGAAgG;AAEhG,MAAa,MAAM;IAKP,gBAAgB,CAAC,IAAgB,EAAE,OAAe;QACtD,IAAI,UAAU,GAAG,OAAO,CAAC;QAEzB,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,QAAQ,EAAE,CAAC;YACX,IAAI,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACjB,UAAU,IAAI,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC;YACjD,CAAC;YACD,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;gBACxC,MAAM,KAAK,GAAG,GAAG,GAAI,QAAQ,CAAC,KAAkB,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