@sap/ux-specification 1.90.20 → 1.90.25

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 (295) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  3. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  4. package/dist/documentation/v2/v2-ListReport.html +1 -1
  5. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  6. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  7. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +1 -1
  11. package/dist/schemas/v2/ApplicationV2.json +11 -11
  12. package/dist/schemas/v4/ApplicationV4.json +9 -5
  13. package/dist/schemas/v4/ListReportConfig.json +621 -195
  14. package/dist/schemas/v4/ObjectPageConfig.json +6 -38
  15. package/dist/scripts/extractDocu.js.map +1 -1
  16. package/dist/scripts/runDocu.js +10 -40
  17. package/dist/scripts/runDocu.js.map +1 -1
  18. package/dist/scripts/spec.js.map +1 -1
  19. package/dist/scripts/to-json-schema.js.map +1 -1
  20. package/dist/specification/v2/index-min.js +1 -1
  21. package/dist/specification/v4/index-min.js +1 -1
  22. package/dist/src/api.d.ts +2 -2
  23. package/dist/src/api.js +11 -11
  24. package/dist/src/api.js.map +1 -1
  25. package/dist/src/apiTypes.d.ts +14 -18
  26. package/dist/src/apiTypes.js +0 -2
  27. package/dist/src/apiTypes.js.map +1 -1
  28. package/dist/src/extensionLogger.d.ts +1 -1
  29. package/dist/src/project.d.ts +1 -1
  30. package/dist/src/project.js +11 -3
  31. package/dist/src/project.js.map +1 -1
  32. package/dist/src/specification/common/Application.d.ts +24 -4
  33. package/dist/src/specification/common/page.d.ts +1 -1
  34. package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
  35. package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
  36. package/dist/src/specification/schemaAccess.d.ts +1 -1
  37. package/dist/src/specification/schemaAccess.js +1 -2
  38. package/dist/src/specification/schemaAccess.js.map +1 -1
  39. package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
  40. package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
  41. package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
  42. package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
  43. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
  44. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
  45. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
  46. package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
  47. package/dist/src/specification/v2/controls/Table.d.ts +3 -3
  48. package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
  49. package/dist/src/specification/v2/page.d.ts +1 -1
  50. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
  51. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
  52. package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
  53. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
  54. package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
  55. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
  56. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
  57. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
  58. package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
  59. package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
  60. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
  61. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
  62. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
  63. package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
  64. package/dist/src/specification/v4/controls/Table.d.ts +166 -25
  65. package/dist/src/specification/v4/controls/Table.js +6 -0
  66. package/dist/src/specification/v4/controls/Table.js.map +1 -1
  67. package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
  68. package/dist/src/specification/v4/page.d.ts +2 -2
  69. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
  70. package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
  71. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
  72. package/dist/src/specification/v4/pages/index.d.ts +0 -1
  73. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
  74. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
  75. package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
  76. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
  77. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
  78. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  79. package/dist/src/sync/common/appProvider.d.ts +6 -5
  80. package/dist/src/sync/common/appProvider.js.map +1 -1
  81. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  82. package/dist/src/sync/common/decoration/control.js +1 -1
  83. package/dist/src/sync/common/decoration/control.js.map +1 -1
  84. package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
  85. package/dist/src/sync/common/decoration/decorators.js.map +1 -1
  86. package/dist/src/sync/common/decoration/factory.d.ts +3 -3
  87. package/dist/src/sync/common/decoration/flex.d.ts +3 -3
  88. package/dist/src/sync/common/flexUtils.d.ts +4 -4
  89. package/dist/src/sync/common/flexUtils.js.map +1 -1
  90. package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
  91. package/dist/src/sync/common/generate/objectPage.js +64 -68
  92. package/dist/src/sync/common/generate/objectPage.js.map +1 -1
  93. package/dist/src/sync/common/generate/utils.d.ts +24 -16
  94. package/dist/src/sync/common/generate/utils.js +55 -62
  95. package/dist/src/sync/common/generate/utils.js.map +1 -1
  96. package/dist/src/sync/common/import/utils.d.ts +4 -3
  97. package/dist/src/sync/common/import/utils.js +3 -2
  98. package/dist/src/sync/common/import/utils.js.map +1 -1
  99. package/dist/src/sync/common/importProject.d.ts +4 -4
  100. package/dist/src/sync/common/importProject.js +13 -22
  101. package/dist/src/sync/common/importProject.js.map +1 -1
  102. package/dist/src/sync/common/types.d.ts +60 -12
  103. package/dist/src/sync/common/types.js +59 -7
  104. package/dist/src/sync/common/types.js.map +1 -1
  105. package/dist/src/sync/common/utils.d.ts +18 -8
  106. package/dist/src/sync/common/utils.js +179 -65
  107. package/dist/src/sync/common/utils.js.map +1 -1
  108. package/dist/src/sync/i18n.d.ts +1 -1
  109. package/dist/src/sync/v2/application.d.ts +2 -2
  110. package/dist/src/sync/v2/application.js.map +1 -1
  111. package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
  112. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
  113. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
  114. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
  115. package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
  116. package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
  117. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
  118. package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
  119. package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
  120. package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
  121. package/dist/src/sync/v2/export/controls/Fragment.js +110 -34
  122. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  123. package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
  124. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
  125. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
  126. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
  127. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
  128. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
  129. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
  130. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
  131. package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
  132. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
  133. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +14 -17
  134. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
  135. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
  136. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
  137. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  138. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  139. package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
  140. package/dist/src/sync/v2/export/controls/Table.js +26 -25
  141. package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
  142. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
  143. package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
  144. package/dist/src/sync/v2/export/export.d.ts +3 -3
  145. package/dist/src/sync/v2/export/export.js +6 -4
  146. package/dist/src/sync/v2/export/export.js.map +1 -1
  147. package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
  148. package/dist/src/sync/v2/export/exportPage.js +2 -10
  149. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  150. package/dist/src/sync/v2/export/factory.d.ts +2 -1
  151. package/dist/src/sync/v2/export/factory.js.map +1 -1
  152. package/dist/src/sync/v2/export/manifest.d.ts +17 -1
  153. package/dist/src/sync/v2/export/manifest.js +29 -2
  154. package/dist/src/sync/v2/export/manifest.js.map +1 -1
  155. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
  156. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
  157. package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
  158. package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
  159. package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
  160. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
  161. package/dist/src/sync/v2/export/pages/OverviewPage.js +6 -3
  162. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  163. package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
  164. package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
  165. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
  166. package/dist/src/sync/v2/generate/analyticalListReport.js +27 -36
  167. package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  168. package/dist/src/sync/v2/generate/generate.d.ts +2 -2
  169. package/dist/src/sync/v2/generate/generate.js +3 -0
  170. package/dist/src/sync/v2/generate/generate.js.map +1 -1
  171. package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
  172. package/dist/src/sync/v2/generate/listReport.js +38 -36
  173. package/dist/src/sync/v2/generate/listReport.js.map +1 -1
  174. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
  175. package/dist/src/sync/v2/generate/objectPage.js +83 -108
  176. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  177. package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
  178. package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
  179. package/dist/src/sync/v2/generate/utils.d.ts +5 -5
  180. package/dist/src/sync/v2/generate/utils.js +34 -33
  181. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  182. package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
  183. package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
  184. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
  185. package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  186. package/dist/src/sync/v2/import/common/index.d.ts +6 -5
  187. package/dist/src/sync/v2/import/common/index.js +4 -17
  188. package/dist/src/sync/v2/import/common/index.js.map +1 -1
  189. package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
  190. package/dist/src/sync/v2/import/controls/table.js +1 -1
  191. package/dist/src/sync/v2/import/controls/table.js.map +1 -1
  192. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
  193. package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -9
  194. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  195. package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
  196. package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
  197. package/dist/src/sync/v2/import/pages/objectPage.js +33 -20
  198. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  199. package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
  200. package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
  201. package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  202. package/dist/src/sync/v2/import/utils.d.ts +3 -2
  203. package/dist/src/sync/v2/import/utils.js +16 -2
  204. package/dist/src/sync/v2/import/utils.js.map +1 -1
  205. package/dist/src/sync/v2/types.d.ts +7 -7
  206. package/dist/src/sync/v4/application.d.ts +9 -5
  207. package/dist/src/sync/v4/application.js +23 -2
  208. package/dist/src/sync/v4/application.js.map +1 -1
  209. package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
  210. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
  211. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  212. package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
  213. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
  214. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +3 -3
  215. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
  216. package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
  217. package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
  218. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
  219. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  220. package/dist/src/sync/v4/export/controls/Table.d.ts +126 -9
  221. package/dist/src/sync/v4/export/controls/Table.js +439 -48
  222. package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
  223. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
  224. package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
  225. package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  226. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
  227. package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
  228. package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
  229. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  230. package/dist/src/sync/v4/export/export.d.ts +2 -2
  231. package/dist/src/sync/v4/export/export.js +317 -78
  232. package/dist/src/sync/v4/export/export.js.map +1 -1
  233. package/dist/src/sync/v4/export/factory.d.ts +2 -1
  234. package/dist/src/sync/v4/export/factory.js.map +1 -1
  235. package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
  236. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  237. package/dist/src/sync/v4/export/manifest.d.ts +2 -2
  238. package/dist/src/sync/v4/export/manifest.js +43 -31
  239. package/dist/src/sync/v4/export/manifest.js.map +1 -1
  240. package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
  241. package/dist/src/sync/v4/export/pages/ListReport.js +49 -0
  242. package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
  243. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
  244. package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
  245. package/dist/src/sync/v4/export/pages/index.js +0 -1
  246. package/dist/src/sync/v4/export/pages/index.js.map +1 -1
  247. package/dist/src/sync/v4/export/types.d.ts +7 -5
  248. package/dist/src/sync/v4/export/utils.d.ts +1 -1
  249. package/dist/src/sync/v4/generate/generate.d.ts +5 -4
  250. package/dist/src/sync/v4/generate/generate.js +6 -3
  251. package/dist/src/sync/v4/generate/generate.js.map +1 -1
  252. package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
  253. package/dist/src/sync/v4/generate/listReport.js +406 -36
  254. package/dist/src/sync/v4/generate/listReport.js.map +1 -1
  255. package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
  256. package/dist/src/sync/v4/generate/objectPage.js +37 -14
  257. package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
  258. package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
  259. package/dist/src/sync/v4/import/app/appProvider.js +55 -43
  260. package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
  261. package/dist/src/sync/v4/import/fragment.d.ts +2 -2
  262. package/dist/src/sync/v4/import/fragment.js.map +1 -1
  263. package/dist/src/sync/v4/import/index.d.ts +0 -1
  264. package/dist/src/sync/v4/import/index.js +0 -1
  265. package/dist/src/sync/v4/import/index.js.map +1 -1
  266. package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
  267. package/dist/src/sync/v4/import/pages/listReport.js +120 -29
  268. package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
  269. package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
  270. package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
  271. package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
  272. package/dist/src/sync/v4/import/utils.d.ts +2 -2
  273. package/dist/src/sync/v4/import/utils.js +2 -2
  274. package/dist/src/sync/v4/import/utils.js.map +1 -1
  275. package/dist/src/sync/v4/types.d.ts +2 -2
  276. package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  277. package/dist/src/sync/v4/utils/utils.d.ts +17 -12
  278. package/dist/src/sync/v4/utils/utils.js +72 -25
  279. package/dist/src/sync/v4/utils/utils.js.map +1 -1
  280. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
  281. package/dist/test/test-projects/index.d.ts +1 -1
  282. package/dist/test/test-utils/utils.d.ts +5 -4
  283. package/dist/test/unit/export/manifest.test.d.ts +1 -0
  284. package/package.json +12 -10
  285. package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
  286. package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
  287. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
  288. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
  289. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
  290. package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
  291. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
  292. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
  293. package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
  294. package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
  295. package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
@@ -5,6 +5,11 @@ var ExportArtifacts;
5
5
  ExportArtifacts["flex"] = "flex";
6
6
  ExportArtifacts["manifest"] = "manifest";
7
7
  })(ExportArtifacts = exports.ExportArtifacts || (exports.ExportArtifacts = {}));
8
+ var ALPViewType;
9
+ (function (ALPViewType) {
10
+ ALPViewType["Primary"] = "primary";
11
+ ALPViewType["Secondary"] = "secondary";
12
+ })(ALPViewType = exports.ALPViewType || (exports.ALPViewType = {}));
8
13
  var DirName;
9
14
  (function (DirName) {
10
15
  DirName["Sapux"] = "src";
@@ -59,6 +64,11 @@ var ControlType;
59
64
  ControlType["Section"] = "sap.uxap.ObjectPageSection";
60
65
  ControlType["SubSection"] = "sap.uxap.ObjectPageSubSection";
61
66
  })(ControlType = exports.ControlType || (exports.ControlType = {}));
67
+ var Visualization;
68
+ (function (Visualization) {
69
+ Visualization["LineItem"] = "LineItem";
70
+ Visualization["Chart"] = "Chart";
71
+ })(Visualization = exports.Visualization || (exports.Visualization = {}));
62
72
  var FacetBase;
63
73
  (function (FacetBase) {
64
74
  FacetBase["LineItem"] = "LineItem";
@@ -80,20 +90,62 @@ var ViewTemplateType;
80
90
  ViewTemplateType["GridTableColumnsExtension"] = "GridTableColumnsExtension";
81
91
  ViewTemplateType["ResponsiveTableCellsExtension"] = "ResponsiveTableCellsExtension";
82
92
  })(ViewTemplateType = exports.ViewTemplateType || (exports.ViewTemplateType = {}));
93
+ //Definitions for elements in app schema
83
94
  var DefinitionName;
84
95
  (function (DefinitionName) {
85
- DefinitionName["TableColumn"] = "TableColumn";
86
- DefinitionName["ObjectPageTable"] = "ObjectPageTable";
87
- DefinitionName["ObjectPageTableColumn"] = "ObjectPageTableColumn";
88
- DefinitionName["ToolBarLR"] = "ToolBar<LineItems>";
89
- DefinitionName["CustomColumns"] = "TableCustomColumns";
96
+ DefinitionName["Actions"] = "Actions";
97
+ DefinitionName["ALPChart"] = "ALPChart";
98
+ DefinitionName["ALPChartView"] = "ALPChartView";
99
+ DefinitionName["ALPTable"] = "ALPTable";
100
+ DefinitionName["ALPTableView"] = "ALPTableView";
101
+ DefinitionName["AnalyticalListPageFilterBar"] = "AnalyticalListPageFilterBar";
102
+ DefinitionName["AnnotationPathAsObject"] = "AnnotationPathAsObject";
103
+ DefinitionName["ChartToolBarAction"] = "ChartToolBarAction";
90
104
  DefinitionName["CustomColumn"] = "TableCustomColumn";
91
105
  DefinitionName["CustomColumnOP"] = "TableCustomColumnOP";
106
+ DefinitionName["CustomColumns"] = "TableCustomColumns";
107
+ DefinitionName["Fields"] = "Fields";
108
+ DefinitionName["FooterActions"] = "FooterActions";
109
+ DefinitionName["Form"] = "Form";
110
+ DefinitionName["FormAction"] = "FormAction";
111
+ DefinitionName["GenericActions"] = "GenericActions";
112
+ DefinitionName["HeaderActions"] = "HeaderActions";
113
+ DefinitionName["LineItems"] = "LineItems";
114
+ DefinitionName["LineItemsOfView"] = "LineItemsOfView";
115
+ DefinitionName["ListReportFilterBar"] = "ListReportFilterBar";
116
+ DefinitionName["LRTableView"] = "LRTableView";
117
+ DefinitionName["LRChartView"] = "LRChartView";
118
+ DefinitionName["MultiTableModeV4"] = "MultiTableModeV4";
119
+ DefinitionName["ObjectPageFooter"] = "ObjectPageFooter";
120
+ DefinitionName["ObjectPageFooterAction"] = "ObjectPageFooterAction";
121
+ DefinitionName["ObjectPageFooterActions"] = "ObjectPageFooterActions";
122
+ DefinitionName["ObjectPageHeader"] = "ObjectPageHeader";
123
+ DefinitionName["ObjectPageTable"] = "ObjectPageTable";
124
+ DefinitionName["ObjectPageTableColumn"] = "ObjectPageTableColumn";
125
+ DefinitionName["ObjectPageToolBarAction"] = "ObjectPageToolBarAction";
92
126
  DefinitionName["Position"] = "Position";
93
127
  DefinitionName["PositionOP"] = "PositionOP";
94
- DefinitionName["ListReportFilterBar"] = "ListReportFilterBar";
95
- DefinitionName["AnalyticalListPageFilterBar"] = "AnalyticalListPageFilterBar";
128
+ DefinitionName["Table"] = "Table";
129
+ DefinitionName["TableColumn"] = "TableColumn";
130
+ DefinitionName["ToolBarAction"] = "ToolBarAction";
131
+ DefinitionName["ToolBarLR"] = "ToolBar<LineItems>";
132
+ DefinitionName["ToolBar"] = "ToolBar";
133
+ DefinitionName["ViewTableColumn"] = "ViewTableColumn";
134
+ DefinitionName["ViewCustomColumn"] = "ViewTableCustomColumn";
135
+ DefinitionName["ViewChartToolBar"] = "ViewChartToolBar";
136
+ DefinitionName["ViewToolBarAction"] = "ViewToolBarAction";
96
137
  })(DefinitionName = exports.DefinitionName || (exports.DefinitionName = {}));
138
+ var SchemaTag;
139
+ (function (SchemaTag) {
140
+ SchemaTag["hidden"] = "hidden";
141
+ SchemaTag["isViewNode"] = "isViewNode";
142
+ SchemaTag["annotationPath"] = "annotationPath";
143
+ SchemaTag["annotationType"] = "annotationType";
144
+ SchemaTag["dataType"] = "dataType";
145
+ SchemaTag["propertyIndex"] = "propertyIndex";
146
+ SchemaTag["artifactType"] = "artifactType";
147
+ SchemaTag["key"] = "key";
148
+ })(SchemaTag = exports.SchemaTag || (exports.SchemaTag = {}));
97
149
  exports.METADATAPATH = 'webapp/localService/metadata.xml';
98
150
  exports.MANIFESTPATH = 'webapp/manifest.json';
99
151
  exports.VOCWITHSLASH = '/@com.sap.vocabularies';
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":";;AAIA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AACD,IAAY,OAaX;AAbD,WAAY,OAAO;IACf,wBAAa,CAAA;IACb,+BAAoB,CAAA;IACpB,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,8BAAmB,CAAA;IACnB,wCAA6B,CAAA;IAC7B,oCAAyB,CAAA;IACzB,wBAAa,CAAA;IACb,gCAAqB,CAAA;IACrB,sBAAW,CAAA;IACX,6BAAkB,CAAA;AACtB,CAAC,EAbW,OAAO,GAAP,eAAO,KAAP,eAAO,QAalB;AACD,IAAY,QAEX;AAFD,WAAY,QAAQ;IAChB,4BAAgB,CAAA;AACpB,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB;AACY,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,iBAAiB,GAAG,aAAa,CAAC;AAQ/C,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACn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AAA;IACzB,iCAAe,CAAA;IACf,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,qCAAmB,CAAA;IACnB,qDAAmC,CAAA;IACnC,4DAA0C,CAAA;IAC1C,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;AAC3C,CAAC,EA1CW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA0CzB;AAED,IAAY,SASX;AATD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,kCAAqB,CAAA;IACrB,4CAA+B,CAAA;IAC/B,0CAA6B,CAAA;IAC7B,wBAAW,CAAA;AACf,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB;AAEY,QAAA,YAAY,GAAG,kCAAkC,CAAC;AAClD,QAAA,YAAY,GAAG,sBAAsB,CAAC;AACtC,QAAA,YAAY,GAAG,wBAAwB,CAAC;AACxC,QAAA,aAAa,GAAG,yBAAyB,CAAC;AAC1C,QAAA,YAAY,GAAG,4BAA4B,CAAC;AAC5C,QAAA,YAAY,GAAG,wBAAwB,CAAC;AACxC,QAAA,aAAa,GAAG,yBAAyB,CAAC;AAC1C,QAAA,gBAAgB,GAAG,8BAA8B,CAAC;AAClD,QAAA,gBAAgB,GAAG,YAAY,CAAC"}
@@ -1,9 +1,10 @@
1
- import { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
2
- import { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
3
- import { FioriElementsVersion, Manifest, PageType, PageTypeV4 } from '../../specification/common';
1
+ import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
2
+ import type { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
3
+ import type { Manifest } from '../../specification/common';
4
+ import { FioriElementsVersion, PageType, PageTypeV4 } from '../../specification/common';
4
5
  import { SchemaType } from '../../specification/schemaAccess';
5
- import { ExtensionLogger } from '../../apiTypes';
6
- import { MetadataInstanceInterface } from './decoration/factory';
6
+ import type { ExtensionLogger } from '../../apiTypes';
7
+ import type { MetadataInstanceInterface } from './decoration/factory';
7
8
  export declare enum TemplateType {
8
9
  ListReportObjectPageV2 = "ListReportObjectPageV2",
9
10
  ListReportObjectPageV4 = "ListReportObjectPageV4",
@@ -82,15 +83,17 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConverterO
82
83
  */
83
84
  export declare function getSectionFacet(facetDefinition: AnnotationTerm<CollectionFacet> | AnnotationTerm<ReferenceFacet> | AnnotationTerm<ReferenceURLFacet>, sourceEntityType: EntityType, oDataServiceAVT: ConverterOutput, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
84
85
  /**
85
- * Finds the alias for a given namespace in the references' section of the converted service metadata
86
- * @param {object} exportResultManifest - manifest that is being modified during export
86
+ * Finds the alias for a given namespace in the references' section of the converted service metadata.
87
+ * An empty object is created if the path element does not exist yet.
88
+ * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
89
+ * @param {object} manifest - manifest that is being modified during export
87
90
  * @param {string} path - path of the property in the manifest
88
91
  * @param {string} targetAnnotation - target annotation (optional)
89
92
  * @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
90
93
  * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
91
94
  * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
92
95
  */
93
- export declare const getManifestSectionByPathV4: (exportResultManifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
96
+ export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
94
97
  export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
95
98
  /**
96
99
  * Retrieve header facet configurations that can be used to generate ObjectPage schemas
@@ -142,6 +145,13 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
142
145
  * @param facetKey - key of the facet
143
146
  */
144
147
  export declare function addSectionTitleAndDescription(facet: FacetConfig, section: object, facetKey: string): void;
148
+ /**
149
+ * Adds target title or description to a section or header section in an app schema
150
+ * @param facet - intermediate facet structure comprising annotation information
151
+ * @param section - section in the app schema
152
+ * @param facetKey - key of the facet
153
+ */
154
+ export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: object, facetKey: string): void;
145
155
  /**
146
156
  * Creates a default object for a new section or subsection, and adds the ID as title if present.
147
157
  * @param facet Facet configuration, to be analyzed
@@ -359,28 +359,43 @@ function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, log
359
359
  }
360
360
  exports.getSectionFacet = getSectionFacet;
361
361
  /**
362
- * Finds the alias for a given namespace in the references' section of the converted service metadata
363
- * @param {object} exportResultManifest - manifest that is being modified during export
362
+ * Finds the alias for a given namespace in the references' section of the converted service metadata.
363
+ * An empty object is created if the path element does not exist yet.
364
+ * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
365
+ * @param {object} manifest - manifest that is being modified during export
364
366
  * @param {string} path - path of the property in the manifest
365
367
  * @param {string} targetAnnotation - target annotation (optional)
366
368
  * @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
367
369
  * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
368
370
  * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
369
371
  */
370
- exports.getManifestSectionByPathV4 = (exportResultManifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
371
- let exportResultSection = exportResultManifest;
372
- for (const element of path.split('/')) {
373
- const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element ? targetAnnotation : element;
374
- if (!exportResultSection[decodedElement]) {
372
+ exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
373
+ let manifestSection = manifest;
374
+ const pathElements = path.split('/');
375
+ for (let index = 0; index < pathElements.length; index++) {
376
+ const element = pathElements[index];
377
+ if (element === '[]') {
378
+ continue;
379
+ }
380
+ const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
381
+ ? targetAnnotation
382
+ : element.replace('??', '/');
383
+ //?? can be used in path functions to encoode /
384
+ if (!manifestSection[decodedElement]) {
375
385
  if (importScenario) {
376
- exportResultSection = undefined;
386
+ manifestSection = undefined;
377
387
  break;
378
388
  }
379
- exportResultSection[decodedElement] = {};
389
+ if (pathElements[index + 1] === '[]') {
390
+ manifestSection[decodedElement] = [];
391
+ }
392
+ else {
393
+ manifestSection[decodedElement] = {};
394
+ }
380
395
  }
381
- exportResultSection = exportResultSection[decodedElement];
396
+ manifestSection = manifestSection[decodedElement];
382
397
  }
383
- return exportResultSection;
398
+ return manifestSection;
384
399
  };
385
400
  function getSchemaKeyOfLineItemRecord(lineItemRecord) {
386
401
  let schemaKey, target, value;
@@ -437,64 +452,130 @@ function getSchemaKeyOfLineItemRecord(lineItemRecord) {
437
452
  }
438
453
  exports.getSchemaKeyOfLineItemRecord = getSchemaKeyOfLineItemRecord;
439
454
  /**
440
- * Evaluates the target annotation of a reference facet and actualizes the facets for the config
441
- * @param {AnnotationTerm} annotationRecord - the actual annotation record
442
- * @param {FacetConfigs} facets - list of facets in config format, to be updated
455
+ * Determines if type of given annotation term is of UIAnnotationTerm
456
+ * @param {string} path path in manifest
457
+ * @param {string} alias for a given namespace
443
458
  * @param {EntityType} entityType - the entity type
444
- * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
445
- * @param {FioriElementsVersion} oDataVersion - OData version
446
- * @param {ExtensionLogger} logger - Logger class for logging messages
459
+ * @returns UI annotation term type
447
460
  */
448
- function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
449
- var _a, _b, _c, _d, _e, _f;
450
- const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
451
- let path = section ? section.key : '';
452
- const targetEntityType = section.entityType;
453
- let annotation, targetAnnotation;
461
+ function getUIAnnotationTerm(path, alias, entityType) {
454
462
  if (path.includes("com.sap.vocabularies.UI.v1.Chart" /* Chart */) || path.includes(alias + '.Chart')) {
455
- facets[path] = { base: types_1.FacetBase.Chart };
456
- facets[path].entityType = targetEntityType;
463
+ return "com.sap.vocabularies.UI.v1.Chart" /* Chart */;
457
464
  }
458
465
  else if (path.includes("com.sap.vocabularies.UI.v1.Identification" /* Identification */) || path.includes(alias + '.Identification')) {
459
- annotation = path.split('.')[path.split('.').length - 1];
460
- targetAnnotation = targetEntityType.annotations[alias][annotation];
461
- facets[path] = { base: types_1.FacetBase.Identification };
462
- facets[path].entityType = targetEntityType;
463
- facets[path].target = targetAnnotation;
464
- }
465
- else if (entityType && (path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) || path.includes(alias + '.LineItem'))) {
466
- if (!path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) && path.includes('.LineItem')) {
467
- const pathParts = path.split('::');
468
- pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
469
- path = pathParts.join('::');
470
- }
471
- facets[path] = { base: types_1.FacetBase.LineItem };
472
- facets[path].target = (_a = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _a === void 0 ? void 0 : _a.$target;
473
- facets[path].entityType = targetEntityType;
466
+ return "com.sap.vocabularies.UI.v1.Identification" /* Identification */;
467
+ }
468
+ else if ((entityType && path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */)) || path.includes(alias + '.LineItem')) {
469
+ return "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */;
474
470
  }
475
471
  else if (path.includes("com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */) || path.includes(alias + '.FieldGroup')) {
476
- facets[path] = { base: types_1.FacetBase.Form };
477
- facets[path].target = (_b = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _b === void 0 ? void 0 : _b.$target;
478
- facets[path].entityType = targetEntityType;
472
+ return "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */;
479
473
  }
480
474
  else if (path.includes("com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */) || path.includes(alias + '.DataPoint')) {
481
- facets[path] = { base: types_1.FacetBase.DataPoint };
482
- facets[path].target = (_c = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _c === void 0 ? void 0 : _c.$target;
483
- facets[path].entityType = targetEntityType;
484
- facets[path].Label = (_d = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _d === void 0 ? void 0 : _d.$target['Title'];
475
+ return "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */;
485
476
  }
486
- else if (path.includes('com.sap.vocabularies.Communication.v1.Contact') || path.includes(alias + '.Contact')) {
487
- facets[path] = { base: types_1.FacetBase.Contact };
488
- facets[path].target = (_e = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _e === void 0 ? void 0 : _e.$target;
489
- facets[path].entityType = targetEntityType;
477
+ else {
478
+ return undefined;
479
+ }
480
+ }
481
+ /**
482
+ * Determines if type of given annotation term is of CommunicationAnnotationTerm
483
+ * @param {string} path path in manifest
484
+ * @param {string} alias for a given namespace
485
+ * @param {EntityType} entityType - the entity type
486
+ * @returns Communication annotation term type
487
+ */
488
+ function getCommunicationAnnotationTerm(path, alias) {
489
+ if (path.includes('com.sap.vocabularies.Communication.v1.Contact') || path.includes(alias + '.Contact')) {
490
+ return "com.sap.vocabularies.Communication.v1.Contact" /* Contact */;
490
491
  }
491
492
  else if (path.includes('com.sap.vocabularies.Communication.v1.Address') || path.includes(alias + '.Address')) {
492
- facets[path] = { base: types_1.FacetBase.Address };
493
- facets[path].target = (_f = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _f === void 0 ? void 0 : _f.$target;
494
- facets[path].entityType = targetEntityType;
493
+ return "com.sap.vocabularies.Communication.v1.Address" /* Address */;
495
494
  }
496
495
  else {
497
- facets[path] = { base: types_1.FacetBase.Unknown };
496
+ return undefined;
497
+ }
498
+ }
499
+ /**
500
+ * Determines the type of given annotation term
501
+ * @param {string} path path in manifest
502
+ * @param {string} alias for a given namespace
503
+ * @param {EntityType} entityType - the entity type
504
+ * @returns annotation term type
505
+ */
506
+ function getAnnotationTerm(path, alias, entityType) {
507
+ return getUIAnnotationTerm(path, alias, entityType) || getCommunicationAnnotationTerm(path, alias);
508
+ }
509
+ /**
510
+ * Evaluates the target annotation of a reference facet and actualizes the facets for the config
511
+ * @param {AnnotationTerm} annotationRecord - the actual annotation record
512
+ * @param {FacetConfigs} facets - list of facets in config format, to be updated
513
+ * @param {EntityType} entityType - the entity type
514
+ * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
515
+ * @param {FioriElementsVersion} oDataVersion - OData version
516
+ * @param {ExtensionLogger} logger - Logger class for logging messages
517
+ */
518
+ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
519
+ var _a, _b, _c, _d, _e, _f, _g;
520
+ const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
521
+ let path = section ? section.key : '';
522
+ const targetEntityType = section.entityType;
523
+ const annotationTerm = getAnnotationTerm(path, alias, entityType);
524
+ let annotation, targetAnnotation;
525
+ switch (annotationTerm) {
526
+ case "com.sap.vocabularies.UI.v1.Chart" /* Chart */: {
527
+ facets[path] = { base: types_1.FacetBase.Chart };
528
+ facets[path].target = (_a = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _a === void 0 ? void 0 : _a.$target;
529
+ facets[path].entityType = targetEntityType;
530
+ break;
531
+ }
532
+ case "com.sap.vocabularies.UI.v1.Identification" /* Identification */: {
533
+ annotation = path.split('.')[path.split('.').length - 1];
534
+ targetAnnotation = targetEntityType.annotations[alias][annotation];
535
+ facets[path] = { base: types_1.FacetBase.Identification };
536
+ facets[path].entityType = targetEntityType;
537
+ facets[path].target = targetAnnotation;
538
+ break;
539
+ }
540
+ case "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */: {
541
+ if (!path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) && path.includes('.LineItem')) {
542
+ const pathParts = path.split('::');
543
+ pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
544
+ path = pathParts.join('::');
545
+ }
546
+ facets[path] = { base: types_1.FacetBase.LineItem };
547
+ facets[path].target = (_b = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _b === void 0 ? void 0 : _b.$target;
548
+ facets[path].entityType = targetEntityType;
549
+ break;
550
+ }
551
+ case "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */: {
552
+ facets[path] = { base: types_1.FacetBase.Form };
553
+ facets[path].target = (_c = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _c === void 0 ? void 0 : _c.$target;
554
+ facets[path].entityType = targetEntityType;
555
+ break;
556
+ }
557
+ case "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */: {
558
+ facets[path] = { base: types_1.FacetBase.DataPoint };
559
+ facets[path].target = (_d = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _d === void 0 ? void 0 : _d.$target;
560
+ facets[path].entityType = targetEntityType;
561
+ facets[path].Label = (_e = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _e === void 0 ? void 0 : _e.$target['Title'];
562
+ break;
563
+ }
564
+ case "com.sap.vocabularies.Communication.v1.Contact" /* Contact */: {
565
+ facets[path] = { base: types_1.FacetBase.Contact };
566
+ facets[path].target = (_f = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _f === void 0 ? void 0 : _f.$target;
567
+ facets[path].entityType = targetEntityType;
568
+ break;
569
+ }
570
+ case "com.sap.vocabularies.Communication.v1.Address" /* Address */: {
571
+ facets[path] = { base: types_1.FacetBase.Address };
572
+ facets[path].target = (_g = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _g === void 0 ? void 0 : _g.$target;
573
+ facets[path].entityType = targetEntityType;
574
+ break;
575
+ }
576
+ default: {
577
+ facets[path] = { base: types_1.FacetBase.Unknown };
578
+ }
498
579
  }
499
580
  if (facets[path]) {
500
581
  facets[path].annotationPath = `/${annotationRecord.fullyQualifiedName.replace('@com.sap.vocabularies', types_1.VOCWITHSLASH)}`;
@@ -670,6 +751,7 @@ exports.determineV2Template = determineV2Template;
670
751
  * @returns {TemplateType} the template type
671
752
  */
672
753
  function determineV4Template(manifest, logger) {
754
+ var _a, _b, _c, _d;
673
755
  let templateType;
674
756
  const v4Pages = manifest[v4_1.ManifestSection.ui5].routing &&
675
757
  manifest[v4_1.ManifestSection.ui5].routing.targets;
@@ -691,10 +773,20 @@ function determineV4Template(manifest, logger) {
691
773
  templateType = TemplateType.AnalyticalListPageV4;
692
774
  break;
693
775
  }
694
- else if (pageType === common_1.PageTypeV4.ListReport || pageType === common_1.PageTypeV4.ObjectPage) {
695
- templateType = TemplateType.ListReportObjectPageV4;
776
+ else if (pageType === common_1.PageTypeV4.ListReport) {
777
+ const viewPath = (_d = (_c = (_b = (_a = v4Page.options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.views) === null || _c === void 0 ? void 0 : _c.paths) === null || _d === void 0 ? void 0 : _d[0];
778
+ if (viewPath && (viewPath[types_1.ALPViewType.Primary] || viewPath[types_1.ALPViewType.Secondary])) {
779
+ templateType = TemplateType.AnalyticalListPageV4;
780
+ }
781
+ else {
782
+ templateType = TemplateType.ListReportObjectPageV4;
783
+ }
696
784
  break;
697
785
  }
786
+ else if (pageType === common_1.PageTypeV4.ObjectPage) {
787
+ templateType = TemplateType.ListReportObjectPageV4;
788
+ //fixed now for FEOP scenario, bit continue to check if LR/ALP exists
789
+ }
698
790
  }
699
791
  if (!templateType) {
700
792
  extensionLogger_1.log(logger, {
@@ -752,7 +844,7 @@ function addSectionTitleAndDescription(facet, section, facetKey) {
752
844
  section['title'] = types_1.FacetTitlePrefix + facet.ID;
753
845
  }
754
846
  else {
755
- section['title'] = facetKey.substr(facetKey.lastIndexOf('.') + 1);
847
+ section['title'] = facetKey.replace(/@com.sap/g, 'com.sap');
756
848
  }
757
849
  // Description
758
850
  if (facet === null || facet === void 0 ? void 0 : facet.Label) {
@@ -766,6 +858,23 @@ function addSectionTitleAndDescription(facet, section, facetKey) {
766
858
  }
767
859
  }
768
860
  exports.addSectionTitleAndDescription = addSectionTitleAndDescription;
861
+ /**
862
+ * Adds target title or description to a section or header section in an app schema
863
+ * @param facet - intermediate facet structure comprising annotation information
864
+ * @param section - section in the app schema
865
+ * @param facetKey - key of the facet
866
+ */
867
+ function addTargetTitleAndSectionDescription(facet, section, facetKey) {
868
+ var _a, _b, _c, _d;
869
+ addSectionTitleAndDescription(facet, section, facetKey);
870
+ if ((_a = facet === null || facet === void 0 ? void 0 : facet.target) === null || _a === void 0 ? void 0 : _a['Title']) {
871
+ section['description'] = (_b = facet === null || facet === void 0 ? void 0 : facet.target) === null || _b === void 0 ? void 0 : _b['Title'];
872
+ }
873
+ else if ((_c = facet === null || facet === void 0 ? void 0 : facet.target) === null || _c === void 0 ? void 0 : _c['Description']) {
874
+ section['description'] = (_d = facet === null || facet === void 0 ? void 0 : facet.target) === null || _d === void 0 ? void 0 : _d['Description'];
875
+ }
876
+ }
877
+ exports.addTargetTitleAndSectionDescription = addTargetTitleAndSectionDescription;
769
878
  /**
770
879
  * Creates a default object for a new section or subsection, and adds the ID as title if present.
771
880
  * @param facet Facet configuration, to be analyzed
@@ -827,19 +936,24 @@ exports.deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotati
827
936
  let manifestSection = manifest;
828
937
  const pathArray = path.split('/');
829
938
  pathArray.forEach(function (element) {
830
- if (element === targetAnnotationEncoded) {
831
- element = targetAnnotation;
832
- }
833
- if (!manifestSection[element]) {
939
+ const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
940
+ ? targetAnnotation
941
+ : element.replace('??', '/');
942
+ if (!manifestSection[decodedElement]) {
834
943
  return;
835
944
  }
836
- if (Object.keys(manifestSection[element]).length === 0) {
837
- delete manifestSection[element];
945
+ if (Object.keys(manifestSection[decodedElement]).length === 0) {
946
+ if (Array.isArray(manifestSection)) {
947
+ manifestSection.splice(Number(decodedElement), 1);
948
+ }
949
+ else {
950
+ delete manifestSection[decodedElement];
951
+ }
838
952
  pathArray.pop();
839
953
  exports.deleteEmptyStructure(manifest, pathArray.join('/'), targetAnnotation, targetAnnotationEncoded);
840
954
  return;
841
955
  }
842
- manifestSection = manifestSection && manifestSection[element];
956
+ manifestSection = manifestSection && manifestSection[decodedElement];
843
957
  });
844
958
  };
845
959
  /**