@sap/ux-specification 1.90.28 → 1.90.31

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 (328) hide show
  1. package/CHANGELOG.md +80 -9
  2. package/dist/documentation/runDocu-min.js +1 -1
  3. package/dist/documentation/runDocu-min.js.LICENSE.txt +4 -4
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  5. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  6. package/dist/documentation/v2/v2-ListReport.html +1 -1
  7. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  8. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  9. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  10. package/dist/documentation/v4/v4-ListReport.html +1 -1
  11. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  12. package/dist/index-min.js +1 -1
  13. package/dist/index-min.js.LICENSE.txt +1 -1
  14. package/dist/schemas/v2/AnalyticalListPageConfig.json +1 -1
  15. package/dist/schemas/v2/ListReportConfig.json +1 -1
  16. package/dist/schemas/v2/ObjectPageConfig.json +1 -1
  17. package/dist/schemas/v4/ListReportConfig.json +3 -3
  18. package/dist/scripts/extractDocu.js +15 -3
  19. package/dist/scripts/extractDocu.js.map +1 -1
  20. package/dist/scripts/runDocu.js +14 -2
  21. package/dist/scripts/runDocu.js.map +1 -1
  22. package/dist/scripts/spec.js +1 -2
  23. package/dist/scripts/spec.js.map +1 -1
  24. package/dist/scripts/to-json-schema.js +15 -2
  25. package/dist/scripts/to-json-schema.js.map +1 -1
  26. package/dist/specification/v2/index-min.js +1 -1
  27. package/dist/specification/v4/index-min.js +1 -1
  28. package/dist/src/api.js +2 -1
  29. package/dist/src/api.js.map +1 -1
  30. package/dist/src/extensionLogger.d.ts +1 -1
  31. package/dist/src/extensionLogger.js +3 -1
  32. package/dist/src/extensionLogger.js.map +1 -1
  33. package/dist/src/i18n/i18n.js +1 -0
  34. package/dist/src/i18n/i18n.js.map +1 -1
  35. package/dist/src/index.js +17 -9
  36. package/dist/src/index.js.map +1 -1
  37. package/dist/src/project.js +9 -4
  38. package/dist/src/project.js.map +1 -1
  39. package/dist/src/specification/common/index.js +15 -7
  40. package/dist/src/specification/common/index.js.map +1 -1
  41. package/dist/src/specification/common/page.js +1 -0
  42. package/dist/src/specification/common/page.js.map +1 -1
  43. package/dist/src/specification/common/types.js +1 -0
  44. package/dist/src/specification/common/types.js.map +1 -1
  45. package/dist/src/specification/common/webapp/manifest/Manifest.js +1 -0
  46. package/dist/src/specification/common/webapp/manifest/Manifest.js.map +1 -1
  47. package/dist/src/specification/common/webapp/manifest/index.js +13 -5
  48. package/dist/src/specification/common/webapp/manifest/index.js.map +1 -1
  49. package/dist/src/specification/common/webapp/manifest/sapUi5.js +1 -0
  50. package/dist/src/specification/common/webapp/manifest/sapUi5.js.map +1 -1
  51. package/dist/src/specification/schemaAccess.js +3 -1
  52. package/dist/src/specification/schemaAccess.js.map +1 -1
  53. package/dist/src/specification/v2/ApplicationV2.js +1 -0
  54. package/dist/src/specification/v2/ApplicationV2.js.map +1 -1
  55. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js +1 -0
  56. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js.map +1 -1
  57. package/dist/src/specification/v2/controls/Card.js +1 -0
  58. package/dist/src/specification/v2/controls/Card.js.map +1 -1
  59. package/dist/src/specification/v2/controls/FilterBar.js +1 -0
  60. package/dist/src/specification/v2/controls/FilterBar.js.map +1 -1
  61. package/dist/src/specification/v2/controls/ObjectPageSection.js +1 -0
  62. package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
  63. package/dist/src/specification/v2/controls/ObjectPageTable.js +1 -0
  64. package/dist/src/specification/v2/controls/ObjectPageTable.js.map +1 -1
  65. package/dist/src/specification/v2/controls/Table.js +1 -0
  66. package/dist/src/specification/v2/controls/Table.js.map +1 -1
  67. package/dist/src/specification/v2/controls/index.js +26 -9
  68. package/dist/src/specification/v2/controls/index.js.map +1 -1
  69. package/dist/src/specification/v2/index.js +15 -7
  70. package/dist/src/specification/v2/index.js.map +1 -1
  71. package/dist/src/specification/v2/pages/OverviewPageConfig.js +1 -0
  72. package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +1 -1
  73. package/dist/src/specification/v2/pages/index.js +14 -4
  74. package/dist/src/specification/v2/pages/index.js.map +1 -1
  75. package/dist/src/specification/v2/webapp/index.js +11 -4
  76. package/dist/src/specification/v2/webapp/index.js.map +1 -1
  77. package/dist/src/specification/v2/webapp/manifest/index.js +12 -5
  78. package/dist/src/specification/v2/webapp/manifest/index.js.map +1 -1
  79. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +1 -0
  80. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
  81. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +1 -0
  82. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +1 -1
  83. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js +1 -0
  84. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js.map +1 -1
  85. package/dist/src/specification/v4/controls/ObjectPageLayout.js +1 -0
  86. package/dist/src/specification/v4/controls/ObjectPageLayout.js.map +1 -1
  87. package/dist/src/specification/v4/controls/ObjectPageSection.js +1 -0
  88. package/dist/src/specification/v4/controls/ObjectPageSection.js.map +1 -1
  89. package/dist/src/specification/v4/controls/Table.d.ts +2 -2
  90. package/dist/src/specification/v4/controls/Table.js +1 -0
  91. package/dist/src/specification/v4/controls/Table.js.map +1 -1
  92. package/dist/src/specification/v4/controls/ToolBar.js +1 -0
  93. package/dist/src/specification/v4/controls/ToolBar.js.map +1 -1
  94. package/dist/src/specification/v4/controls/index.js +20 -8
  95. package/dist/src/specification/v4/controls/index.js.map +1 -1
  96. package/dist/src/specification/v4/index.js +15 -6
  97. package/dist/src/specification/v4/index.js.map +1 -1
  98. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +1 -1
  99. package/dist/src/specification/v4/pages/ListReportConfig.js +1 -0
  100. package/dist/src/specification/v4/pages/ListReportConfig.js.map +1 -1
  101. package/dist/src/specification/v4/pages/ObjectPageConfig.js +1 -0
  102. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
  103. package/dist/src/specification/v4/pages/index.js +12 -5
  104. package/dist/src/specification/v4/pages/index.js.map +1 -1
  105. package/dist/src/specification/v4/webapp/index.js +11 -4
  106. package/dist/src/specification/v4/webapp/index.js.map +1 -1
  107. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js +1 -0
  108. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
  109. package/dist/src/specification/v4/webapp/manifest/index.js +14 -7
  110. package/dist/src/specification/v4/webapp/manifest/index.js.map +1 -1
  111. package/dist/src/specification/v4/webapp/manifest/sapUi5.js +1 -0
  112. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
  113. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +15 -9
  114. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js +1 -0
  115. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  116. package/dist/src/sync/common/appProvider.js +10 -3
  117. package/dist/src/sync/common/appProvider.js.map +1 -1
  118. package/dist/src/sync/common/decoration/control.d.ts +2 -2
  119. package/dist/src/sync/common/decoration/control.js +15 -7
  120. package/dist/src/sync/common/decoration/control.js.map +1 -1
  121. package/dist/src/sync/common/decoration/decorators.js +13 -6
  122. package/dist/src/sync/common/decoration/decorators.js.map +1 -1
  123. package/dist/src/sync/common/decoration/factory.js +1 -0
  124. package/dist/src/sync/common/decoration/factory.js.map +1 -1
  125. package/dist/src/sync/common/decoration/flex.js +1 -0
  126. package/dist/src/sync/common/decoration/flex.js.map +1 -1
  127. package/dist/src/sync/common/decoration/index.js +13 -6
  128. package/dist/src/sync/common/decoration/index.js.map +1 -1
  129. package/dist/src/sync/common/flexUtils.js +15 -2
  130. package/dist/src/sync/common/flexUtils.js.map +1 -1
  131. package/dist/src/sync/common/generate/index.js +12 -5
  132. package/dist/src/sync/common/generate/index.js.map +1 -1
  133. package/dist/src/sync/common/generate/objectPage.js +8 -5
  134. package/dist/src/sync/common/generate/objectPage.js.map +1 -1
  135. package/dist/src/sync/common/generate/utils.js +9 -7
  136. package/dist/src/sync/common/generate/utils.js.map +1 -1
  137. package/dist/src/sync/common/import/utils.js +1 -0
  138. package/dist/src/sync/common/import/utils.js.map +1 -1
  139. package/dist/src/sync/common/importProject.js +33 -23
  140. package/dist/src/sync/common/importProject.js.map +1 -1
  141. package/dist/src/sync/common/index.js +19 -11
  142. package/dist/src/sync/common/index.js.map +1 -1
  143. package/dist/src/sync/common/types.js +1 -0
  144. package/dist/src/sync/common/types.js.map +1 -1
  145. package/dist/src/sync/common/utils.d.ts +8 -8
  146. package/dist/src/sync/common/utils.js +64 -54
  147. package/dist/src/sync/common/utils.js.map +1 -1
  148. package/dist/src/sync/i18n.js +15 -2
  149. package/dist/src/sync/i18n.js.map +1 -1
  150. package/dist/src/sync/v2/application.js +33 -16
  151. package/dist/src/sync/v2/application.js.map +1 -1
  152. package/dist/src/sync/v2/export/controls/Action.js +3 -1
  153. package/dist/src/sync/v2/export/controls/Action.js.map +1 -1
  154. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +3 -1
  155. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
  156. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +1 -0
  157. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +1 -1
  158. package/dist/src/sync/v2/export/controls/Card.js +1 -0
  159. package/dist/src/sync/v2/export/controls/Card.js.map +1 -1
  160. package/dist/src/sync/v2/export/controls/Field.js +1 -0
  161. package/dist/src/sync/v2/export/controls/Field.js.map +1 -1
  162. package/dist/src/sync/v2/export/controls/FilterBar.js +8 -2
  163. package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
  164. package/dist/src/sync/v2/export/controls/FormAction.js +1 -0
  165. package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
  166. package/dist/src/sync/v2/export/controls/Fragment.js +8 -8
  167. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  168. package/dist/src/sync/v2/export/controls/ObjectPageChart.js +1 -0
  169. package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +1 -1
  170. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +1 -0
  171. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
  172. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +1 -0
  173. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
  174. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +1 -0
  175. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
  176. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +1 -0
  177. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
  178. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +1 -0
  179. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +1 -1
  180. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +11 -5
  181. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
  182. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -0
  183. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  184. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +1 -0
  185. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -1
  186. package/dist/src/sync/v2/export/controls/Table.js +12 -13
  187. package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
  188. package/dist/src/sync/v2/export/controls/TableColumn.js +9 -2
  189. package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
  190. package/dist/src/sync/v2/export/controls/ToolBar.js +1 -0
  191. package/dist/src/sync/v2/export/controls/ToolBar.js.map +1 -1
  192. package/dist/src/sync/v2/export/controls/index.js +30 -23
  193. package/dist/src/sync/v2/export/controls/index.js.map +1 -1
  194. package/dist/src/sync/v2/export/export.js +13 -16
  195. package/dist/src/sync/v2/export/export.js.map +1 -1
  196. package/dist/src/sync/v2/export/exportPage.js +3 -3
  197. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  198. package/dist/src/sync/v2/export/factory.js +15 -2
  199. package/dist/src/sync/v2/export/factory.js.map +1 -1
  200. package/dist/src/sync/v2/export/manifest.d.ts +1 -1
  201. package/dist/src/sync/v2/export/manifest.js +7 -3
  202. package/dist/src/sync/v2/export/manifest.js.map +1 -1
  203. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +1 -0
  204. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
  205. package/dist/src/sync/v2/export/pages/ListReport.js +1 -0
  206. package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
  207. package/dist/src/sync/v2/export/pages/ObjectPage.js +1 -0
  208. package/dist/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
  209. package/dist/src/sync/v2/export/pages/OverviewPage.js +1 -0
  210. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  211. package/dist/src/sync/v2/export/pages/index.js +14 -7
  212. package/dist/src/sync/v2/export/pages/index.js.map +1 -1
  213. package/dist/src/sync/v2/export/view-controller-generator.js +17 -8
  214. package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
  215. package/dist/src/sync/v2/generate/analyticalListReport.js +5 -5
  216. package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  217. package/dist/src/sync/v2/generate/generate.js +1 -0
  218. package/dist/src/sync/v2/generate/generate.js.map +1 -1
  219. package/dist/src/sync/v2/generate/index.js +8 -7
  220. package/dist/src/sync/v2/generate/index.js.map +1 -1
  221. package/dist/src/sync/v2/generate/listReport.js +5 -5
  222. package/dist/src/sync/v2/generate/listReport.js.map +1 -1
  223. package/dist/src/sync/v2/generate/objectPage.js +9 -7
  224. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  225. package/dist/src/sync/v2/generate/overviewPage.js +1 -0
  226. package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
  227. package/dist/src/sync/v2/generate/utils.js +17 -8
  228. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  229. package/dist/src/sync/v2/import/app/appProvider.js +21 -3
  230. package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
  231. package/dist/src/sync/v2/import/app/ovpProvider.js +1 -0
  232. package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  233. package/dist/src/sync/v2/import/common/index.js +23 -16
  234. package/dist/src/sync/v2/import/common/index.js.map +1 -1
  235. package/dist/src/sync/v2/import/controls/table.js +2 -1
  236. package/dist/src/sync/v2/import/controls/table.js.map +1 -1
  237. package/dist/src/sync/v2/import/index.js +15 -8
  238. package/dist/src/sync/v2/import/index.js.map +1 -1
  239. package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -0
  240. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  241. package/dist/src/sync/v2/import/pages/listReport.js +5 -1
  242. package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
  243. package/dist/src/sync/v2/import/pages/objectPage.js +24 -23
  244. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  245. package/dist/src/sync/v2/import/pages/overviewPage.js +2 -1
  246. package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  247. package/dist/src/sync/v2/import/utils.js +5 -5
  248. package/dist/src/sync/v2/import/utils.js.map +1 -1
  249. package/dist/src/sync/v2/types.js +1 -0
  250. package/dist/src/sync/v2/types.js.map +1 -1
  251. package/dist/src/sync/v4/application.js +38 -20
  252. package/dist/src/sync/v4/application.js.map +1 -1
  253. package/dist/src/sync/v4/export/controls/FilterBar.js +1 -0
  254. package/dist/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  255. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js +1 -0
  256. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  257. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +1 -0
  258. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
  259. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +1 -0
  260. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
  261. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js +1 -0
  262. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js.map +1 -1
  263. package/dist/src/sync/v4/export/controls/ObjectPageTable.js +1 -0
  264. package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  265. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +1 -0
  266. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
  267. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +1 -0
  268. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
  269. package/dist/src/sync/v4/export/controls/Table.js +3 -2
  270. package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
  271. package/dist/src/sync/v4/export/controls/TableColumn.js +1 -0
  272. package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  273. package/dist/src/sync/v4/export/controls/ToolBar.js +1 -0
  274. package/dist/src/sync/v4/export/controls/ToolBar.js.map +1 -1
  275. package/dist/src/sync/v4/export/controls/ToolBarAction.js +1 -0
  276. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  277. package/dist/src/sync/v4/export/controls/index.js +22 -15
  278. package/dist/src/sync/v4/export/controls/index.js.map +1 -1
  279. package/dist/src/sync/v4/export/export.d.ts +3 -2
  280. package/dist/src/sync/v4/export/export.js +40 -41
  281. package/dist/src/sync/v4/export/export.js.map +1 -1
  282. package/dist/src/sync/v4/export/factory.js +15 -2
  283. package/dist/src/sync/v4/export/factory.js.map +1 -1
  284. package/dist/src/sync/v4/export/flexibleColumnLayout.js +4 -2
  285. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  286. package/dist/src/sync/v4/export/manifest.js +35 -24
  287. package/dist/src/sync/v4/export/manifest.js.map +1 -1
  288. package/dist/src/sync/v4/export/pages/ListReport.d.ts +1 -1
  289. package/dist/src/sync/v4/export/pages/ListReport.js +3 -3
  290. package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
  291. package/dist/src/sync/v4/export/pages/ObjectPage.js +1 -0
  292. package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
  293. package/dist/src/sync/v4/export/pages/index.js +12 -5
  294. package/dist/src/sync/v4/export/pages/index.js.map +1 -1
  295. package/dist/src/sync/v4/export/utils.js +1 -0
  296. package/dist/src/sync/v4/export/utils.js.map +1 -1
  297. package/dist/src/sync/v4/generate/generate.js +1 -0
  298. package/dist/src/sync/v4/generate/generate.js.map +1 -1
  299. package/dist/src/sync/v4/generate/index.js +5 -4
  300. package/dist/src/sync/v4/generate/index.js.map +1 -1
  301. package/dist/src/sync/v4/generate/listReport.js +88 -66
  302. package/dist/src/sync/v4/generate/listReport.js.map +1 -1
  303. package/dist/src/sync/v4/generate/objectPage.js +19 -13
  304. package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
  305. package/dist/src/sync/v4/import/app/appProvider.js +7 -4
  306. package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
  307. package/dist/src/sync/v4/import/fragment.js +6 -8
  308. package/dist/src/sync/v4/import/fragment.js.map +1 -1
  309. package/dist/src/sync/v4/import/index.js +12 -5
  310. package/dist/src/sync/v4/import/index.js.map +1 -1
  311. package/dist/src/sync/v4/import/pages/listReport.js +18 -13
  312. package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
  313. package/dist/src/sync/v4/import/pages/objectPage.js +10 -13
  314. package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
  315. package/dist/src/sync/v4/import/utils.js +3 -2
  316. package/dist/src/sync/v4/import/utils.js.map +1 -1
  317. package/dist/src/sync/v4/utils/StableIdHelper.d.ts +1 -1
  318. package/dist/src/sync/v4/utils/StableIdHelper.js +10 -7
  319. package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  320. package/dist/src/sync/v4/utils/utils.d.ts +3 -2
  321. package/dist/src/sync/v4/utils/utils.js +7 -8
  322. package/dist/src/sync/v4/utils/utils.js.map +1 -1
  323. package/dist/src/v2.js +12 -5
  324. package/dist/src/v2.js.map +1 -1
  325. package/dist/src/v4.js +12 -5
  326. package/dist/src/v4.js.map +1 -1
  327. package/dist/test/test-utils/utils.d.ts +1 -2
  328. package/package.json +19 -20
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sync/common/index.ts"],"names":[],"mappings":";;;;;AAAA,6BAAwB;AACxB,6BAAwB;AACxB,kCAA6B;AAC7B,iCAA4B;AAC5B,oCAA+B;AAC/B,gCAA2B;AAC3B,iDAAoF;AAA3E,uDAAA,4BAA4B,CAAA;AAAE,8CAAA,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sync/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,8CAA4B;AAC5B,iDAA+B;AAC/B,6CAA2B;AAC3B,iDAAoF;AAA3E,6HAAA,4BAA4B,OAAA;AAAE,oHAAA,mBAAmB,OAAA"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FRAGMENTNAMEPART = exports.DATESETTINGSPATH = exports.QUICKVARPATHX = exports.QUICKVARPATH = exports.UIVOCABULARYDOT = exports.UIVOCABULARY = exports.VOCWITHCOLONS = exports.VOCWITHSLASH = exports.MANIFESTPATH = exports.METADATAPATH = exports.SchemaTag = exports.PropertyName = exports.DefinitionName = exports.ViewTemplateType = exports.BindingPropertyRegexAsString = exports.FacetBase = exports.Visualization = exports.ControlType = exports.ArtifactType = exports.SectionType = exports.ActionTitlePrefix = exports.FacetTitlePrefix = exports.FileName = exports.DirName = exports.ALPViewType = exports.ExportArtifacts = void 0;
3
4
  var ExportArtifacts;
4
5
  (function (ExportArtifacts) {
5
6
  ExportArtifacts["flex"] = "flex";
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":";;AAUA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AAC3B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,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,WAIX;AAJD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,wCAAyB,CAAA;IACzB,8CAA+B,CAAA;AACnC,CAAC,EAJW,WAAW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,QAWpB;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,eAAe,GAAG,6BAA6B,CAAC;AAChD,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,9 @@
1
1
  import type { Definition } from 'typescript-json-schema';
2
2
  import type { ExtensionLogger } from '../../apiTypes';
3
- import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath, anyFacetType } from './types';
3
+ import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
4
4
  import type { Manifest } from '../../specification/common';
5
5
  import type { MetadataInstanceInterface } from './decoration/factory';
6
- import type { DataFieldAbstractTypes } from '@sap-ux/vocabularies-types/vocabularies/UI';
6
+ import type { DataField, DataFieldAbstractTypes, FacetTypes } from '@sap-ux/vocabularies-types/vocabularies/UI';
7
7
  import type { ConvertedMetadata, EntityType, PropertyPath } from '@sap-ux/vocabularies-types';
8
8
  import { FioriElementsVersion, PageType, PageTypeV4 } from '../../specification/common';
9
9
  import { SchemaType } from '../../specification/schemaAccess';
@@ -30,7 +30,7 @@ export declare const createAnnotationPath: (entityTypeName: string, term: string
30
30
  * @returns the complete service information
31
31
  */
32
32
  export declare function parseAndMergeAndConvert(annotationFiles: FileData[], logger: ExtensionLogger): ConvertedMetadata;
33
- export declare const getAnnotationPropertyValue: (annotationProperty: any) => string;
33
+ export declare const getAnnotationPropertyValue: (annotationProperty: DataField['Value']) => string;
34
34
  /**
35
35
  * Checks for Common.Label and overwrites the label from it if present
36
36
  * @param {PropertyAnnotations} annotations - property annotations
@@ -90,11 +90,11 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConvertedM
90
90
  * @param {ExtensionLogger} logger - Logger class for logging messages
91
91
  * @returns {FacetSection} - object comprising the relevant facet information
92
92
  */
93
- export declare function getSectionFacet(facetDefinition: anyFacetType, sourceEntityType: EntityType, oDataServiceAVT: ConvertedMetadata, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
93
+ export declare function getSectionFacet(facetDefinition: FacetTypes, sourceEntityType: EntityType, oDataServiceAVT: ConvertedMetadata, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
94
94
  /**
95
95
  * Finds the alias for a given namespace in the references' section of the converted service metadata.
96
96
  * An empty object is created if the path element does not exist yet.
97
- * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
97
+ * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instead of an empty object.
98
98
  * @param {object} manifest - manifest that is being modified during export
99
99
  * @param {string} path - path of the property in the manifest
100
100
  * @param {string} targetAnnotation - target annotation (optional)
@@ -102,7 +102,7 @@ export declare function getSectionFacet(facetDefinition: anyFacetType, sourceEnt
102
102
  * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
103
103
  * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
104
104
  */
105
- export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
105
+ export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object | undefined;
106
106
  export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
107
107
  /**
108
108
  * Retrieve header facet configurations that can be used to generate ObjectPage schemas
@@ -191,7 +191,7 @@ export declare const deleteEmptyStructure: (manifest: object, path: string, targ
191
191
  * @param {string} [entitySet] Entity set string.
192
192
  * @return {SchemaFilePath} File path info.
193
193
  */
194
- export declare const getSchemaFilePath: (schemaType: PageType | PageTypeV4 | SchemaType, entitySet?: string) => SchemaFilePath;
194
+ export declare const getSchemaFilePath: (schemaType: SchemaType | PageType | PageTypeV4, entitySet?: string) => SchemaFilePath;
195
195
  /**
196
196
  * Method which generates id of page according to passed parameters.
197
197
  * @param appVersion - Fiori Elements version - V2 or V4.
@@ -208,7 +208,7 @@ export declare type NextDefinition = {
208
208
  };
209
209
  /**
210
210
  * Recursive function to determine the next config part, next definition in the app schema and the title
211
- * @param appSchema - app-spcific JSON schema
211
+ * @param appSchema - app-specific JSON schema
212
212
  * @param title - default title
213
213
  * @param currentConfigObject - current part of the configuration that gets traversed
214
214
  * @param propertyDefinition - definition of a given property in the app schema
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.arrayCombineMerge = exports.getNextTargetDefinition = exports.generatePageId = exports.getSchemaFilePath = exports.deleteEmptyStructure = exports.getObjectPageFacetSection = exports.createDefaultSection = exports.addTargetTitleAndSectionDescription = exports.addSectionTitleAndDescription = exports.getTemplateTypeFromManifest = exports.determineV4Template = exports.determineV2Template = exports.getVersionFromManifest = exports.getObjectPageFacets = exports.getObjectPageHeaderFacets = exports.getSchemaKeyOfLineItemRecord = exports.getManifestSectionByPathV4 = exports.getSectionFacet = exports.findAlias = exports.getPageTypeV4 = exports.getPageTypeV2 = exports.prepareRef = exports.getDataFieldDescription = exports.getLabelForDataField = exports.getLabelForPropertyPath = exports.evaluateCommonLabel = exports.getAnnotationPropertyValue = exports.parseAndMergeAndConvert = exports.createAnnotationPath = exports.DEFINITION_LINK_PREFIX = exports.TemplateType = void 0;
6
7
  const i18next_1 = __importDefault(require("i18next"));
7
8
  const deepmerge_1 = __importDefault(require("deepmerge"));
8
9
  const v4_1 = require("../../specification/v4");
@@ -29,13 +30,14 @@ exports.DEFINITION_LINK_PREFIX = '#/definitions/';
29
30
  * @param qualifier - Annotation qualifier.
30
31
  * @returns Annotation path based on received params
31
32
  */
32
- exports.createAnnotationPath = (entityTypeName, term, qualifier) => {
33
+ const createAnnotationPath = (entityTypeName, term, qualifier) => {
33
34
  let annotationPath = `/${entityTypeName}/@${term}`;
34
35
  if (qualifier) {
35
36
  annotationPath += `#${qualifier}`;
36
37
  }
37
38
  return annotationPath;
38
39
  };
40
+ exports.createAnnotationPath = createAnnotationPath;
39
41
  /**
40
42
  * Parses, merges, and converts a list of annotation files with aid of tools from annotation-vocabularies-tools
41
43
  * @param annotationFiles - The list of all annotation files, in JSON format
@@ -53,7 +55,7 @@ function parseAndMergeAndConvert(annotationFiles, logger) {
53
55
  if (parseResult.length > 0) {
54
56
  converterOutput = annotation_converter_1.convert(edmx_parser_1.merge(...parseResult));
55
57
  }
56
- if (logger && (converterOutput === null || converterOutput === void 0 ? void 0 : converterOutput.diagnostics)) {
58
+ if (logger && converterOutput?.diagnostics) {
57
59
  for (const converterMessage of converterOutput.diagnostics) {
58
60
  extensionLogger_1.log(logger, {
59
61
  severity: "error" /* Error */,
@@ -71,7 +73,8 @@ function parseAndMergeAndConvert(annotationFiles, logger) {
71
73
  return converterOutput;
72
74
  }
73
75
  exports.parseAndMergeAndConvert = parseAndMergeAndConvert;
74
- exports.getAnnotationPropertyValue = (annotationProperty) => (annotationProperty === null || annotationProperty === void 0 ? void 0 : annotationProperty.value) || (annotationProperty === null || annotationProperty === void 0 ? void 0 : annotationProperty.path);
76
+ const getAnnotationPropertyValue = (annotationProperty) => annotationProperty?.value || annotationProperty?.path;
77
+ exports.getAnnotationPropertyValue = getAnnotationPropertyValue;
75
78
  /**
76
79
  * Checks for Common.Label and overwrites the label from it if present
77
80
  * @param {PropertyAnnotations} annotations - property annotations
@@ -79,8 +82,7 @@ exports.getAnnotationPropertyValue = (annotationProperty) => (annotationProperty
79
82
  * @param {string} label - label, to be actualized
80
83
  */
81
84
  function evaluateCommonLabel(annotations, entityType, label) {
82
- var _a, _b, _c, _d;
83
- if ((_a = annotations === null || annotations === void 0 ? void 0 : annotations.Common) === null || _a === void 0 ? void 0 : _a.Label) {
85
+ if (annotations?.Common?.Label) {
84
86
  if (typeof annotations.Common.Label === 'string') {
85
87
  label = annotations.Common.Label;
86
88
  }
@@ -89,11 +91,11 @@ function evaluateCommonLabel(annotations, entityType, label) {
89
91
  if (targetProperty.value) {
90
92
  label = targetProperty.value;
91
93
  }
92
- else if (typeof ((_b = targetProperty.Common) === null || _b === void 0 ? void 0 : _b.Label) === 'string') {
94
+ else if (typeof targetProperty.Common?.Label === 'string') {
93
95
  label = targetProperty.annotations.Common.Label;
94
96
  }
95
97
  }
96
- else if (typeof ((_d = (_c = annotations.Common) === null || _c === void 0 ? void 0 : _c.Label) === null || _d === void 0 ? void 0 : _d.toString()) === 'string') {
98
+ else if (typeof annotations.Common?.Label?.toString() === 'string') {
97
99
  label = annotations.Common.Label.toString();
98
100
  }
99
101
  }
@@ -121,7 +123,6 @@ exports.getLabelForPropertyPath = getLabelForPropertyPath;
121
123
  * @returns label, derived from Common.Label or from property value
122
124
  */
123
125
  function getLabelForDataField(field, entityType) {
124
- var _a, _b;
125
126
  let label, property;
126
127
  if (field['Value']) {
127
128
  if (typeof field['Value'] === 'string') {
@@ -137,7 +138,7 @@ function getLabelForDataField(field, entityType) {
137
138
  else if (field['Target'] && field['Target'].$target && field['Target'].$target.Value) {
138
139
  property = field['Target'].$target.Value.$target;
139
140
  }
140
- if ((_b = (_a = property === null || property === void 0 ? void 0 : property.annotations) === null || _a === void 0 ? void 0 : _a.Common) === null || _b === void 0 ? void 0 : _b.Label) {
141
+ if (property?.annotations?.Common?.Label) {
141
142
  label = evaluateCommonLabel(property.annotations, entityType, label);
142
143
  }
143
144
  return label;
@@ -150,7 +151,6 @@ exports.getLabelForDataField = getLabelForDataField;
150
151
  * @returns undefined or the right string value
151
152
  */
152
153
  function getLabel(dataFieldLabel, entityType) {
153
- var _a, _b;
154
154
  if (typeof dataFieldLabel === 'string') {
155
155
  return dataFieldLabel;
156
156
  }
@@ -161,7 +161,7 @@ function getLabel(dataFieldLabel, entityType) {
161
161
  }
162
162
  else {
163
163
  const singleProperty = property[0];
164
- if ((_b = (_a = singleProperty === null || singleProperty === void 0 ? void 0 : singleProperty.annotations) === null || _a === void 0 ? void 0 : _a.Common) === null || _b === void 0 ? void 0 : _b.Label) {
164
+ if (singleProperty?.annotations?.Common?.Label) {
165
165
  const label = dataFieldLabel;
166
166
  return evaluateCommonLabel(singleProperty.annotations, entityType, label);
167
167
  }
@@ -284,7 +284,7 @@ function findAlias(namespace, oDataServiceAVT) {
284
284
  namespace.split('SAP__')[namespace.split('SAP__').length - 1].toUpperCase());
285
285
  });
286
286
  }
287
- return aliasReference === null || aliasReference === void 0 ? void 0 : aliasReference.alias;
287
+ return aliasReference?.alias;
288
288
  }
289
289
  exports.findAlias = findAlias;
290
290
  /**
@@ -295,11 +295,10 @@ exports.findAlias = findAlias;
295
295
  * @returns the target annotation
296
296
  */
297
297
  function determineTargetAnnotation(navigationParts, entityType, oDataServiceAVT) {
298
- var _a;
299
298
  const lastNavigationPart = navigationParts[navigationParts.length - 1];
300
299
  const annotation = lastNavigationPart.substring(lastNavigationPart.lastIndexOf('.') + 1, lastNavigationPart.length);
301
300
  const alias = findAlias(lastNavigationPart.substring(0, lastNavigationPart.lastIndexOf('.')).replace('@', ''), oDataServiceAVT);
302
- return (_a = entityType === null || entityType === void 0 ? void 0 : entityType.annotations[alias]) === null || _a === void 0 ? void 0 : _a[annotation];
301
+ return entityType?.annotations[alias]?.[annotation];
303
302
  }
304
303
  /**
305
304
  * Adjust key by considering navigation
@@ -320,12 +319,11 @@ function adjustKey(key, navigationParts, keyForRelatedFacetKeys) {
320
319
  return key;
321
320
  }
322
321
  function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, propertyValue, oDataVersion = common_1.FioriElementsVersion.v2, keyForRelatedFacetKeys = false) {
323
- var _a;
324
322
  let stopProcessing = false;
325
323
  const navigationParts = propertyValue.split('/');
326
324
  const navigation = navigationParts.length > 1;
327
325
  if (navigation) {
328
- entityType = (_a = entityType.resolvePath(propertyValue.substring(0, propertyValue.lastIndexOf('/')))) === null || _a === void 0 ? void 0 : _a.targetType;
326
+ entityType = entityType.resolvePath(propertyValue.substring(0, propertyValue.lastIndexOf('/')))?.targetType;
329
327
  }
330
328
  key = adjustKey(key, navigationParts, keyForRelatedFacetKeys);
331
329
  const targetAnnotation = determineTargetAnnotation(navigationParts, entityType, oDataServiceAVT);
@@ -378,13 +376,19 @@ function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, log
378
376
  }
379
377
  key = key.replace(/\//gi, '::');
380
378
  return key
381
- ? Object.assign(Object.assign(Object.assign({ key }, (facetDefinition.Label && { label: facetDefinition.Label.toString() })), (facetDefinition.ID && { ID: facetDefinition.ID.toString() })), { entityType }) : undefined;
379
+ ? {
380
+ key,
381
+ ...(facetDefinition.Label && { label: facetDefinition.Label.toString() }),
382
+ ...(facetDefinition.ID && { ID: facetDefinition.ID.toString() }),
383
+ entityType
384
+ }
385
+ : undefined;
382
386
  }
383
387
  exports.getSectionFacet = getSectionFacet;
384
388
  /**
385
389
  * Finds the alias for a given namespace in the references' section of the converted service metadata.
386
390
  * An empty object is created if the path element does not exist yet.
387
- * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
391
+ * Exception: if an empty array is the next element of the 'path' definition, an empty array is created instead of an empty object.
388
392
  * @param {object} manifest - manifest that is being modified during export
389
393
  * @param {string} path - path of the property in the manifest
390
394
  * @param {string} targetAnnotation - target annotation (optional)
@@ -392,7 +396,7 @@ exports.getSectionFacet = getSectionFacet;
392
396
  * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
393
397
  * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
394
398
  */
395
- exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
399
+ const getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
396
400
  if (!path) {
397
401
  return undefined;
398
402
  }
@@ -406,7 +410,7 @@ exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAn
406
410
  const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
407
411
  ? targetAnnotation
408
412
  : element.replace('??', '/');
409
- //?? can be used in path functions to encoode /
413
+ //?? can be used in path functions to encode /
410
414
  if (!manifestSection[decodedElement]) {
411
415
  if (importScenario) {
412
416
  manifestSection = undefined;
@@ -423,6 +427,7 @@ exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAn
423
427
  }
424
428
  return manifestSection;
425
429
  };
430
+ exports.getManifestSectionByPathV4 = getManifestSectionByPathV4;
426
431
  function getSchemaKeyOfLineItemRecord(lineItemRecord) {
427
432
  let schemaKey, target, value;
428
433
  switch (lineItemRecord.$Type) {
@@ -539,7 +544,6 @@ function getAnnotationTerm(path, alias, entityType) {
539
544
  * @param {ExtensionLogger} logger - Logger class for logging messages
540
545
  */
541
546
  function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
542
- var _a, _b, _c, _d, _e, _f, _g, _h;
543
547
  const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
544
548
  let path = section ? section.key : '';
545
549
  const targetEntityType = section.entityType;
@@ -548,7 +552,7 @@ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType,
548
552
  switch (annotationTerm) {
549
553
  case "com.sap.vocabularies.UI.v1.Chart" /* Chart */: {
550
554
  facets[path] = { base: types_1.FacetBase.Chart };
551
- facets[path].target = (_a = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _a === void 0 ? void 0 : _a.$target;
555
+ facets[path].target = annotationRecord?.Target?.$target;
552
556
  facets[path].entityType = targetEntityType;
553
557
  break;
554
558
  }
@@ -567,38 +571,38 @@ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType,
567
571
  path = pathParts.join('::');
568
572
  }
569
573
  facets[path] = { base: types_1.FacetBase.LineItem };
570
- facets[path].target = (_b = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _b === void 0 ? void 0 : _b.$target;
574
+ facets[path].target = annotationRecord?.Target?.$target;
571
575
  facets[path].entityType = targetEntityType;
572
576
  break;
573
577
  }
574
578
  case "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */: {
575
579
  facets[path] = { base: types_1.FacetBase.Form };
576
- facets[path].target = (_c = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _c === void 0 ? void 0 : _c.$target;
580
+ facets[path].target = annotationRecord?.Target?.$target;
577
581
  facets[path].entityType = targetEntityType;
578
582
  break;
579
583
  }
580
584
  case "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */: {
581
585
  facets[path] = { base: types_1.FacetBase.DataPoint };
582
- facets[path].target = (_d = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _d === void 0 ? void 0 : _d.$target;
586
+ facets[path].target = annotationRecord?.Target?.$target;
583
587
  facets[path].entityType = targetEntityType;
584
- facets[path].Label = (_e = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _e === void 0 ? void 0 : _e.$target['Title'];
588
+ facets[path].Label = annotationRecord?.Target?.$target['Title'];
585
589
  break;
586
590
  }
587
591
  case "com.sap.vocabularies.UI.v1.PresentationVariant" /* PresentationVariant */: {
588
592
  facets[path] = { base: types_1.FacetBase.PresentationVariant };
589
- facets[path].target = (_f = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _f === void 0 ? void 0 : _f.$target;
593
+ facets[path].target = annotationRecord?.Target?.$target;
590
594
  facets[path].entityType = targetEntityType;
591
595
  break;
592
596
  }
593
597
  case "com.sap.vocabularies.Communication.v1.Contact" /* Contact */: {
594
598
  facets[path] = { base: types_1.FacetBase.Contact };
595
- facets[path].target = (_g = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _g === void 0 ? void 0 : _g.$target;
599
+ facets[path].target = annotationRecord?.Target?.$target;
596
600
  facets[path].entityType = targetEntityType;
597
601
  break;
598
602
  }
599
603
  case "com.sap.vocabularies.Communication.v1.Address" /* Address */: {
600
604
  facets[path] = { base: types_1.FacetBase.Address };
601
- facets[path].target = (_h = annotationRecord === null || annotationRecord === void 0 ? void 0 : annotationRecord.Target) === null || _h === void 0 ? void 0 : _h.$target;
605
+ facets[path].target = annotationRecord?.Target?.$target;
602
606
  facets[path].entityType = targetEntityType;
603
607
  break;
604
608
  }
@@ -637,7 +641,6 @@ function evaluateTargetAnnotation(section, annotationRecord, facets, entityType,
637
641
  * @param {ExtensionLogger} logger - Logger class for logging messages
638
642
  */
639
643
  function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entityType, facets, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
640
- var _a;
641
644
  const section = getSectionFacet(annotationRecord, entityType, oDataServiceAVT, logger, oDataVersion, false);
642
645
  if (section) {
643
646
  switch (annotationRecord.$Type) {
@@ -654,7 +657,7 @@ function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entity
654
657
  annotationPath: annotationPath,
655
658
  Label: section.label
656
659
  });
657
- (_a = annotationRecord.Facets) === null || _a === void 0 ? void 0 : _a.forEach((collectionItem) => {
660
+ annotationRecord.Facets?.forEach((collectionItem) => {
658
661
  addFacetToConfig(collectionItem, oDataServiceAVT, serviceName, entityType, facet.facets, oDataVersion, logger);
659
662
  });
660
663
  break;
@@ -780,7 +783,6 @@ exports.determineV2Template = determineV2Template;
780
783
  * @returns {TemplateType} the template type
781
784
  */
782
785
  function determineV4Template(manifest, logger) {
783
- var _a, _b, _c, _d;
784
786
  let templateType;
785
787
  const v4Pages = manifest[v4_1.ManifestSection.ui5].routing &&
786
788
  manifest[v4_1.ManifestSection.ui5].routing.targets;
@@ -803,7 +805,7 @@ function determineV4Template(manifest, logger) {
803
805
  break;
804
806
  }
805
807
  else if (pageType === common_1.PageTypeV4.ListReport) {
806
- 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];
808
+ const viewPath = v4Page.options?.settings?.views?.paths?.[0];
807
809
  if (viewPath && (viewPath[types_1.ALPViewType.Primary] || viewPath[types_1.ALPViewType.Secondary])) {
808
810
  templateType = TemplateType.AnalyticalListPageV4;
809
811
  }
@@ -869,17 +871,17 @@ exports.getTemplateTypeFromManifest = getTemplateTypeFromManifest;
869
871
  * @param facetKey - key of the facet
870
872
  */
871
873
  function addSectionTitleAndDescription(facet, section, facetKey) {
872
- if (facet === null || facet === void 0 ? void 0 : facet.ID) {
874
+ if (facet?.ID) {
873
875
  section.title = types_1.FacetTitlePrefix + facet.ID;
874
876
  }
875
877
  else {
876
878
  section.title = facetKey.replace(/@com.sap/g, 'com.sap');
877
879
  }
878
880
  // Description
879
- if (facet === null || facet === void 0 ? void 0 : facet.Label) {
881
+ if (facet?.Label) {
880
882
  section.description = facet.Label;
881
883
  }
882
- else if (facet === null || facet === void 0 ? void 0 : facet.ID) {
884
+ else if (facet?.ID) {
883
885
  section.description = facet.ID;
884
886
  }
885
887
  else {
@@ -894,13 +896,15 @@ exports.addSectionTitleAndDescription = addSectionTitleAndDescription;
894
896
  * @param facetKey - key of the facet
895
897
  */
896
898
  function addTargetTitleAndSectionDescription(facet, section, facetKey) {
897
- var _a, _b, _c, _d;
898
899
  addSectionTitleAndDescription(facet, section, facetKey);
899
- if ((_a = facet === null || facet === void 0 ? void 0 : facet.target) === null || _a === void 0 ? void 0 : _a['Title']) {
900
- section.description = (_b = facet === null || facet === void 0 ? void 0 : facet.target) === null || _b === void 0 ? void 0 : _b['Title'];
900
+ if (facet?.Label) {
901
+ section.description = facet?.Label;
902
+ }
903
+ else if (facet?.['Title']) {
904
+ section.description = facet['Title'];
901
905
  }
902
- else if ((_c = facet === null || facet === void 0 ? void 0 : facet.target) === null || _c === void 0 ? void 0 : _c['Description']) {
903
- section.description = (_d = facet === null || facet === void 0 ? void 0 : facet.target) === null || _d === void 0 ? void 0 : _d['Description'];
906
+ else if (facet?.target?.['Title']) {
907
+ section.description = facet.target['Title'];
904
908
  }
905
909
  }
906
910
  exports.addTargetTitleAndSectionDescription = addTargetTitleAndSectionDescription;
@@ -968,7 +972,7 @@ exports.getObjectPageFacetSection = getObjectPageFacetSection;
968
972
  * @param targetAnnotation - target annotation (optional, in case of sections, subsections)
969
973
  * @param targetAnnotationEncoded - encoded version of the target annotation, as represented in the manifest
970
974
  */
971
- exports.deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotationEncoded) => {
975
+ const deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotationEncoded) => {
972
976
  if (!path) {
973
977
  return;
974
978
  }
@@ -995,6 +999,7 @@ exports.deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotati
995
999
  manifestSection = manifestSection && manifestSection[decodedElement];
996
1000
  });
997
1001
  };
1002
+ exports.deleteEmptyStructure = deleteEmptyStructure;
998
1003
  /**
999
1004
  * Method which returns generic schema file name.
1000
1005
  * @param {SchemaType | PageType} schemaType Schema type or Page type.
@@ -1009,7 +1014,7 @@ const getGenericSchemaFileName = (schemaType) => {
1009
1014
  * @param {string} [entitySet] Entity set string.
1010
1015
  * @return {SchemaFilePath} File path info.
1011
1016
  */
1012
- exports.getSchemaFilePath = (schemaType, entitySet) => {
1017
+ const getSchemaFilePath = (schemaType, entitySet) => {
1013
1018
  const schemaFile = {
1014
1019
  filename: '',
1015
1020
  path: ''
@@ -1044,6 +1049,7 @@ exports.getSchemaFilePath = (schemaType, entitySet) => {
1044
1049
  schemaFile.path += '.json';
1045
1050
  return schemaFile;
1046
1051
  };
1052
+ exports.getSchemaFilePath = getSchemaFilePath;
1047
1053
  /**
1048
1054
  * Method which generates id of page according to passed parameters.
1049
1055
  * @param appVersion - Fiori Elements version - V2 or V4.
@@ -1080,9 +1086,9 @@ function fillArrayFromAnyOfReference(element, appSchema, currentConfigObject, de
1080
1086
  /**
1081
1087
  * Fills an array of next definitions from given references in the JSON schema
1082
1088
  * @param propertyDefinition - Definition of the current property in schema
1083
- * @param currentConfigObject - Current object in the config JSON. Evaluated to get the right value of a cntrolling property,
1089
+ * @param currentConfigObject - Current object in the config JSON. Evaluated to get the right value of a controlling property,
1084
1090
  * for making the right choice in case of multiple options (anyOf)
1085
- * @param appSchema - app-spcific JSON schema
1091
+ * @param appSchema - app-specific JSON schema
1086
1092
  * @returns an array of definitions to proceed with
1087
1093
  */
1088
1094
  function fillArrayFromPropertyDefinition(propertyDefinition, currentConfigObject, appSchema) {
@@ -1106,7 +1112,7 @@ function fillArrayFromPropertyDefinition(propertyDefinition, currentConfigObject
1106
1112
  * Determines the next definition to be handled, based on the definition array.
1107
1113
  * It also creates the Metadata instance for the next definition, to subsequently access metadata like the syncRule
1108
1114
  * @param definitionArray - Array of definitions, as determined by fillArrayFromNextDefinition
1109
- * @param appSchema - app-spcific JSON schema
1115
+ * @param appSchema - app-specific JSON schema
1110
1116
  * @param title - default title
1111
1117
  * @param currentConfigObject - Current object in the config JSON.
1112
1118
  * @param key - actual key
@@ -1116,7 +1122,6 @@ function fillArrayFromPropertyDefinition(propertyDefinition, currentConfigObject
1116
1122
  * @returns {NextDefinition} - Next target definition to process
1117
1123
  */
1118
1124
  function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema, title, currentConfigObject, key, factory, pageType, propertyDefinition) {
1119
- var _a, _b, _c, _d;
1120
1125
  let nextDefinition = {
1121
1126
  configObject: undefined,
1122
1127
  targetDefinition: {},
@@ -1125,7 +1130,7 @@ function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema,
1125
1130
  if (definitionArray.length) {
1126
1131
  const lastDefinition = definitionArray[definitionArray.length - 1];
1127
1132
  nextDefinition.targetDefinition = appSchema['definitions'][lastDefinition];
1128
- if (((_a = nextDefinition === null || nextDefinition === void 0 ? void 0 : nextDefinition.targetDefinition) === null || _a === void 0 ? void 0 : _a['$ref']) || ((_b = nextDefinition === null || nextDefinition === void 0 ? void 0 : nextDefinition.targetDefinition) === null || _b === void 0 ? void 0 : _b['type']) === 'array') {
1133
+ if (nextDefinition?.targetDefinition?.['$ref'] || nextDefinition?.targetDefinition?.['type'] === 'array') {
1129
1134
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
1130
1135
  nextDefinition = getNextTargetDefinition(appSchema, title, currentConfigObject, nextDefinition.targetDefinition, key, factory, pageType);
1131
1136
  return nextDefinition;
@@ -1133,15 +1138,19 @@ function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema,
1133
1138
  if (definitionArray.length > 1) {
1134
1139
  definitionArray.forEach((element) => {
1135
1140
  if (element !== '') {
1136
- nextDefinition.targetDefinition['properties'] = Object.assign(Object.assign({}, nextDefinition.targetDefinition['properties']), appSchema['definitions'][element]['properties']);
1141
+ nextDefinition.targetDefinition['properties'] = {
1142
+ ...nextDefinition.targetDefinition['properties'],
1143
+ ...appSchema['definitions'][element]['properties']
1144
+ };
1137
1145
  }
1138
1146
  });
1139
1147
  }
1140
- nextDefinition.title = ((_c = nextDefinition === null || nextDefinition === void 0 ? void 0 : nextDefinition.targetDefinition) === null || _c === void 0 ? void 0 : _c['title']) ? nextDefinition.targetDefinition['title']
1148
+ nextDefinition.title = nextDefinition?.targetDefinition?.['title']
1149
+ ? nextDefinition.targetDefinition['title']
1141
1150
  : title;
1142
- const factoryKey = lastDefinition === null || lastDefinition === void 0 ? void 0 : lastDefinition.split('<')[0];
1151
+ const factoryKey = lastDefinition?.split('<')[0];
1143
1152
  const targetObject = currentConfigObject ? currentConfigObject : {};
1144
- nextDefinition.configObject = factory.createInstance(pageType, factoryKey, targetObject, (_d = nextDefinition === null || nextDefinition === void 0 ? void 0 : nextDefinition.targetDefinition) === null || _d === void 0 ? void 0 : _d['controlProperty']);
1153
+ nextDefinition.configObject = factory.createInstance(pageType, factoryKey, targetObject, nextDefinition?.targetDefinition?.['controlProperty']);
1145
1154
  }
1146
1155
  else {
1147
1156
  //e.g. sections ==> loop over all properties = subsections or other
@@ -1155,7 +1164,7 @@ function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema,
1155
1164
  }
1156
1165
  /**
1157
1166
  * Recursive function to determine the next config part, next definition in the app schema and the title
1158
- * @param appSchema - app-spcific JSON schema
1167
+ * @param appSchema - app-specific JSON schema
1159
1168
  * @param title - default title
1160
1169
  * @param currentConfigObject - current part of the configuration that gets traversed
1161
1170
  * @param propertyDefinition - definition of a given property in the app schema
@@ -1185,7 +1194,7 @@ exports.getNextTargetDefinition = getNextTargetDefinition;
1185
1194
  * @param {*} options options object provided by deepmerge's merge function
1186
1195
  * @returns
1187
1196
  */
1188
- exports.arrayCombineMerge = (target, source, options) => {
1197
+ const arrayCombineMerge = (target, source, options) => {
1189
1198
  const destination = target.slice();
1190
1199
  source.forEach((item, index) => {
1191
1200
  if (typeof destination[index] === 'undefined') {
@@ -1200,4 +1209,5 @@ exports.arrayCombineMerge = (target, source, options) => {
1200
1209
  });
1201
1210
  return destination;
1202
1211
  };
1212
+ exports.arrayCombineMerge = arrayCombineMerge;
1203
1213
  //# sourceMappingURL=utils.js.map