@sap/ux-specification 1.84.43 → 1.84.46

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 (976) hide show
  1. package/CHANGELOG.md +78 -2
  2. package/dist/documentation/runDocu-min.js +9645 -2
  3. package/dist/documentation/runDocu-min.js.map +7 -0
  4. package/dist/documentation/styleDocu.css +32 -28
  5. package/dist/documentation/v2/v2-AnalyticalListPage.html +20 -8
  6. package/dist/documentation/v2/v2-ApplicationV2.html +20 -8
  7. package/dist/documentation/v2/v2-ListReport.html +20 -8
  8. package/dist/documentation/v2/v2-ObjectPage.html +20 -8
  9. package/dist/documentation/v2/v2-OverviewPage.html +20 -8
  10. package/dist/documentation/v4/v4-ApplicationV4.html +20 -8
  11. package/dist/documentation/v4/v4-ListReport.html +20 -8
  12. package/dist/documentation/v4/v4-ObjectPage.html +20 -8
  13. package/dist/index-min.js +29584 -2
  14. package/dist/index-min.js.map +7 -0
  15. package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -2
  16. package/dist/schemas/v2/ApplicationV2.json +10 -1
  17. package/dist/schemas/v2/ListReportConfig.json +5 -4
  18. package/dist/schemas/v2/ObjectPageConfig.json +21 -20
  19. package/dist/schemas/v4/ApplicationV4.json +14 -1
  20. package/dist/schemas/v4/FreestylePageConfig.json +10 -0
  21. package/dist/schemas/v4/ListReportConfig.json +129 -37
  22. package/dist/types/api.d.ts +42 -0
  23. package/dist/types/api.d.ts.map +1 -0
  24. package/dist/types/apiTypes.d.ts +317 -0
  25. package/dist/types/apiTypes.d.ts.map +1 -0
  26. package/dist/types/extensionLogger.d.ts +42 -0
  27. package/dist/types/extensionLogger.d.ts.map +1 -0
  28. package/dist/types/i18n/i18n.d.ts +2 -0
  29. package/dist/types/i18n/i18n.d.ts.map +1 -0
  30. package/dist/types/index.d.ts +8 -0
  31. package/dist/types/index.d.ts.map +1 -0
  32. package/dist/types/project.d.ts +18 -0
  33. package/dist/types/project.d.ts.map +1 -0
  34. package/dist/types/specification/common/Application.d.ts +37 -0
  35. package/dist/types/specification/common/Application.d.ts.map +1 -0
  36. package/dist/types/specification/common/index.d.ts +6 -0
  37. package/dist/types/specification/common/index.d.ts.map +1 -0
  38. package/dist/types/specification/common/page.d.ts +48 -0
  39. package/dist/types/specification/common/page.d.ts.map +1 -0
  40. package/dist/types/specification/common/types.d.ts +17 -0
  41. package/dist/types/specification/common/types.d.ts.map +1 -0
  42. package/dist/types/specification/common/webapp/manifest/Manifest.d.ts +50 -0
  43. package/dist/types/specification/common/webapp/manifest/Manifest.d.ts.map +1 -0
  44. package/dist/types/specification/common/webapp/manifest/index.d.ts +4 -0
  45. package/dist/types/specification/common/webapp/manifest/index.d.ts.map +1 -0
  46. package/dist/types/specification/common/webapp/manifest/sapOvp.d.ts +376 -0
  47. package/dist/types/specification/common/webapp/manifest/sapOvp.d.ts.map +1 -0
  48. package/dist/types/specification/common/webapp/manifest/sapUi5.d.ts +34 -0
  49. package/dist/types/specification/common/webapp/manifest/sapUi5.d.ts.map +1 -0
  50. package/dist/types/specification/schemaAccess.d.ts +25 -0
  51. package/dist/types/specification/schemaAccess.d.ts.map +1 -0
  52. package/dist/types/specification/v2/ApplicationV2.d.ts +26 -0
  53. package/dist/types/specification/v2/ApplicationV2.d.ts.map +1 -0
  54. package/dist/types/specification/v2/controls/Action.d.ts +88 -0
  55. package/dist/types/specification/v2/controls/Action.d.ts.map +1 -0
  56. package/dist/types/specification/v2/controls/AnalyticalListPageChart.d.ts +59 -0
  57. package/dist/types/specification/v2/controls/AnalyticalListPageChart.d.ts.map +1 -0
  58. package/dist/types/specification/v2/controls/AnalyticalListPageKPI.d.ts +31 -0
  59. package/dist/types/specification/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -0
  60. package/dist/types/specification/v2/controls/Card.d.ts +656 -0
  61. package/dist/types/specification/v2/controls/Card.d.ts.map +1 -0
  62. package/dist/types/specification/v2/controls/Facets.d.ts +18 -0
  63. package/dist/types/specification/v2/controls/Facets.d.ts.map +1 -0
  64. package/dist/types/specification/v2/controls/Field.d.ts +11 -0
  65. package/dist/types/specification/v2/controls/Field.d.ts.map +1 -0
  66. package/dist/types/specification/v2/controls/FilterBar.d.ts +196 -0
  67. package/dist/types/specification/v2/controls/FilterBar.d.ts.map +1 -0
  68. package/dist/types/specification/v2/controls/Footer.d.ts +21 -0
  69. package/dist/types/specification/v2/controls/Footer.d.ts.map +1 -0
  70. package/dist/types/specification/v2/controls/ObjectPageChart.d.ts +17 -0
  71. package/dist/types/specification/v2/controls/ObjectPageChart.d.ts.map +1 -0
  72. package/dist/types/specification/v2/controls/ObjectPageForm.d.ts +16 -0
  73. package/dist/types/specification/v2/controls/ObjectPageForm.d.ts.map +1 -0
  74. package/dist/types/specification/v2/controls/ObjectPageHeader.d.ts +35 -0
  75. package/dist/types/specification/v2/controls/ObjectPageHeader.d.ts.map +1 -0
  76. package/dist/types/specification/v2/controls/ObjectPageLayout.d.ts +23 -0
  77. package/dist/types/specification/v2/controls/ObjectPageLayout.d.ts.map +1 -0
  78. package/dist/types/specification/v2/controls/ObjectPageSection.d.ts +121 -0
  79. package/dist/types/specification/v2/controls/ObjectPageSection.d.ts.map +1 -0
  80. package/dist/types/specification/v2/controls/ObjectPageTable.d.ts +184 -0
  81. package/dist/types/specification/v2/controls/ObjectPageTable.d.ts.map +1 -0
  82. package/dist/types/specification/v2/controls/ObjectPageToolBar.d.ts +16 -0
  83. package/dist/types/specification/v2/controls/ObjectPageToolBar.d.ts.map +1 -0
  84. package/dist/types/specification/v2/controls/Table.d.ts +496 -0
  85. package/dist/types/specification/v2/controls/Table.d.ts.map +1 -0
  86. package/dist/types/specification/v2/controls/ToolBar.d.ts +9 -0
  87. package/dist/types/specification/v2/controls/ToolBar.d.ts.map +1 -0
  88. package/dist/types/specification/v2/controls/index.d.ts +18 -0
  89. package/dist/types/specification/v2/controls/index.d.ts.map +1 -0
  90. package/dist/types/specification/v2/index.d.ts +6 -0
  91. package/dist/types/specification/v2/index.d.ts.map +1 -0
  92. package/dist/types/specification/v2/page.d.ts +8 -0
  93. package/dist/types/specification/v2/page.d.ts.map +1 -0
  94. package/dist/types/specification/v2/pages/AnalyticalListPageConfig.d.ts +22 -0
  95. package/dist/types/specification/v2/pages/AnalyticalListPageConfig.d.ts.map +1 -0
  96. package/dist/types/specification/v2/pages/ListReportConfig.d.ts +13 -0
  97. package/dist/types/specification/v2/pages/ListReportConfig.d.ts.map +1 -0
  98. package/dist/types/specification/v2/pages/ObjectPageConfig.d.ts +34 -0
  99. package/dist/types/specification/v2/pages/ObjectPageConfig.d.ts.map +1 -0
  100. package/dist/types/specification/v2/pages/OverviewPageConfig.d.ts +128 -0
  101. package/dist/types/specification/v2/pages/OverviewPageConfig.d.ts.map +1 -0
  102. package/dist/types/specification/v2/pages/index.d.ts +5 -0
  103. package/dist/types/specification/v2/pages/index.d.ts.map +1 -0
  104. package/dist/types/specification/v2/webapp/index.d.ts +2 -0
  105. package/dist/types/specification/v2/webapp/index.d.ts.map +1 -0
  106. package/dist/types/specification/v2/webapp/manifest/index.d.ts +3 -0
  107. package/dist/types/specification/v2/webapp/manifest/index.d.ts.map +1 -0
  108. package/dist/types/specification/v2/webapp/manifest/sapUi.d.ts +11 -0
  109. package/dist/types/specification/v2/webapp/manifest/sapUi.d.ts.map +1 -0
  110. package/dist/types/specification/v2/webapp/manifest/sapUi5.d.ts +99 -0
  111. package/dist/types/specification/v2/webapp/manifest/sapUi5.d.ts.map +1 -0
  112. package/dist/types/specification/v2/webapp/manifest/sapUiPageV2.d.ts +32 -0
  113. package/dist/types/specification/v2/webapp/manifest/sapUiPageV2.d.ts.map +1 -0
  114. package/dist/types/specification/v4/ApplicationV4.d.ts +32 -0
  115. package/dist/types/specification/v4/ApplicationV4.d.ts.map +1 -0
  116. package/dist/types/specification/v4/controls/FilterBar.d.ts +19 -0
  117. package/dist/types/specification/v4/controls/FilterBar.d.ts.map +1 -0
  118. package/dist/types/specification/v4/controls/ObjectPageFooter.d.ts +12 -0
  119. package/dist/types/specification/v4/controls/ObjectPageFooter.d.ts.map +1 -0
  120. package/dist/types/specification/v4/controls/ObjectPageHeader.d.ts +30 -0
  121. package/dist/types/specification/v4/controls/ObjectPageHeader.d.ts.map +1 -0
  122. package/dist/types/specification/v4/controls/ObjectPageHeaderSection.d.ts +47 -0
  123. package/dist/types/specification/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -0
  124. package/dist/types/specification/v4/controls/ObjectPageLayout.d.ts +15 -0
  125. package/dist/types/specification/v4/controls/ObjectPageLayout.d.ts.map +1 -0
  126. package/dist/types/specification/v4/controls/ObjectPageSection.d.ts +99 -0
  127. package/dist/types/specification/v4/controls/ObjectPageSection.d.ts.map +1 -0
  128. package/dist/types/specification/v4/controls/ObjectPageTable.d.ts +71 -0
  129. package/dist/types/specification/v4/controls/ObjectPageTable.d.ts.map +1 -0
  130. package/dist/types/specification/v4/controls/ObjectPageToolBar.d.ts +26 -0
  131. package/dist/types/specification/v4/controls/ObjectPageToolBar.d.ts.map +1 -0
  132. package/dist/types/specification/v4/controls/Table.d.ts +311 -0
  133. package/dist/types/specification/v4/controls/Table.d.ts.map +1 -0
  134. package/dist/types/specification/v4/controls/ToolBar.d.ts +54 -0
  135. package/dist/types/specification/v4/controls/ToolBar.d.ts.map +1 -0
  136. package/dist/types/specification/v4/controls/index.d.ts +11 -0
  137. package/dist/types/specification/v4/controls/index.d.ts.map +1 -0
  138. package/dist/types/specification/v4/index.d.ts +6 -0
  139. package/dist/types/specification/v4/index.d.ts.map +1 -0
  140. package/dist/types/specification/v4/page.d.ts +20 -0
  141. package/dist/types/specification/v4/page.d.ts.map +1 -0
  142. package/dist/types/specification/v4/pages/FreestylePageConfig.d.ts +3 -0
  143. package/dist/types/specification/v4/pages/FreestylePageConfig.d.ts.map +1 -0
  144. package/dist/types/specification/v4/pages/ListReportConfig.d.ts +37 -0
  145. package/dist/types/specification/v4/pages/ListReportConfig.d.ts.map +1 -0
  146. package/dist/types/specification/v4/pages/ObjectPageConfig.d.ts +19 -0
  147. package/dist/types/specification/v4/pages/ObjectPageConfig.d.ts.map +1 -0
  148. package/dist/types/specification/v4/pages/index.d.ts +4 -0
  149. package/dist/types/specification/v4/pages/index.d.ts.map +1 -0
  150. package/dist/types/specification/v4/webapp/index.d.ts +2 -0
  151. package/dist/types/specification/v4/webapp/index.d.ts.map +1 -0
  152. package/dist/types/specification/v4/webapp/manifest/ManifestSettings.d.ts +225 -0
  153. package/dist/types/specification/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -0
  154. package/dist/types/specification/v4/webapp/manifest/index.d.ts +5 -0
  155. package/dist/types/specification/v4/webapp/manifest/index.d.ts.map +1 -0
  156. package/dist/types/specification/v4/webapp/manifest/sapUi5.d.ts +103 -0
  157. package/dist/types/specification/v4/webapp/manifest/sapUi5.d.ts.map +1 -0
  158. package/dist/types/specification/v4/webapp/manifest/sapUiPageV4.d.ts +83 -0
  159. package/dist/types/specification/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -0
  160. package/dist/types/sync/common/appProvider.d.ts +28 -0
  161. package/dist/types/sync/common/appProvider.d.ts.map +1 -0
  162. package/dist/types/sync/common/decoration/control.d.ts +51 -0
  163. package/dist/types/sync/common/decoration/control.d.ts.map +1 -0
  164. package/dist/types/sync/common/decoration/decorators.d.ts +13 -0
  165. package/dist/types/sync/common/decoration/decorators.d.ts.map +1 -0
  166. package/dist/types/sync/common/decoration/factory.d.ts +41 -0
  167. package/dist/types/sync/common/decoration/factory.d.ts.map +1 -0
  168. package/dist/types/sync/common/decoration/flex.d.ts +7 -0
  169. package/dist/types/sync/common/decoration/flex.d.ts.map +1 -0
  170. package/dist/types/sync/common/decoration/index.d.ts +4 -0
  171. package/dist/types/sync/common/decoration/index.d.ts.map +1 -0
  172. package/dist/types/sync/common/flexUtils.d.ts +32 -0
  173. package/dist/types/sync/common/flexUtils.d.ts.map +1 -0
  174. package/dist/types/sync/common/generate/index.d.ts +3 -0
  175. package/dist/types/sync/common/generate/index.d.ts.map +1 -0
  176. package/dist/types/sync/common/generate/objectPage.d.ts +61 -0
  177. package/dist/types/sync/common/generate/objectPage.d.ts.map +1 -0
  178. package/dist/types/sync/common/generate/utils.d.ts +144 -0
  179. package/dist/types/sync/common/generate/utils.d.ts.map +1 -0
  180. package/dist/types/sync/common/import/utils.d.ts +44 -0
  181. package/dist/types/sync/common/import/utils.d.ts.map +1 -0
  182. package/dist/types/sync/common/importProject.d.ts +15 -0
  183. package/dist/types/sync/common/importProject.d.ts.map +1 -0
  184. package/dist/types/sync/common/index.d.ts +8 -0
  185. package/dist/types/sync/common/index.d.ts.map +1 -0
  186. package/dist/types/sync/common/types.d.ts +350 -0
  187. package/dist/types/sync/common/types.d.ts.map +1 -0
  188. package/dist/types/sync/common/utils.d.ts +244 -0
  189. package/dist/types/sync/common/utils.d.ts.map +1 -0
  190. package/dist/types/sync/i18n.d.ts +3 -0
  191. package/dist/types/sync/i18n.d.ts.map +1 -0
  192. package/dist/types/sync/v2/application.d.ts +34 -0
  193. package/dist/types/sync/v2/application.d.ts.map +1 -0
  194. package/dist/types/sync/v2/export/controls/Action.d.ts +29 -0
  195. package/dist/types/sync/v2/export/controls/Action.d.ts.map +1 -0
  196. package/dist/types/sync/v2/export/controls/AnalyticalListPageChart.d.ts +10 -0
  197. package/dist/types/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -0
  198. package/dist/types/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +10 -0
  199. package/dist/types/sync/v2/export/controls/AnalyticalListPageKPI.d.ts.map +1 -0
  200. package/dist/types/sync/v2/export/controls/Card.d.ts +117 -0
  201. package/dist/types/sync/v2/export/controls/Card.d.ts.map +1 -0
  202. package/dist/types/sync/v2/export/controls/Field.d.ts +5 -0
  203. package/dist/types/sync/v2/export/controls/Field.d.ts.map +1 -0
  204. package/dist/types/sync/v2/export/controls/FilterBar.d.ts +35 -0
  205. package/dist/types/sync/v2/export/controls/FilterBar.d.ts.map +1 -0
  206. package/dist/types/sync/v2/export/controls/FormAction.d.ts +16 -0
  207. package/dist/types/sync/v2/export/controls/FormAction.d.ts.map +1 -0
  208. package/dist/types/sync/v2/export/controls/Fragment.d.ts +43 -0
  209. package/dist/types/sync/v2/export/controls/Fragment.d.ts.map +1 -0
  210. package/dist/types/sync/v2/export/controls/ObjectPageChart.d.ts +8 -0
  211. package/dist/types/sync/v2/export/controls/ObjectPageChart.d.ts.map +1 -0
  212. package/dist/types/sync/v2/export/controls/ObjectPageCustomSection.d.ts +20 -0
  213. package/dist/types/sync/v2/export/controls/ObjectPageCustomSection.d.ts.map +1 -0
  214. package/dist/types/sync/v2/export/controls/ObjectPageFooterAction.d.ts +9 -0
  215. package/dist/types/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
  216. package/dist/types/sync/v2/export/controls/ObjectPageHeader.d.ts +9 -0
  217. package/dist/types/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -0
  218. package/dist/types/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +9 -0
  219. package/dist/types/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
  220. package/dist/types/sync/v2/export/controls/ObjectPageLayout.d.ts +8 -0
  221. package/dist/types/sync/v2/export/controls/ObjectPageLayout.d.ts.map +1 -0
  222. package/dist/types/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +45 -0
  223. package/dist/types/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -0
  224. package/dist/types/sync/v2/export/controls/ObjectPageTable.d.ts +50 -0
  225. package/dist/types/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -0
  226. package/dist/types/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +9 -0
  227. package/dist/types/sync/v2/export/controls/ObjectPageToolBarAction.d.ts.map +1 -0
  228. package/dist/types/sync/v2/export/controls/Table.d.ts +95 -0
  229. package/dist/types/sync/v2/export/controls/Table.d.ts.map +1 -0
  230. package/dist/types/sync/v2/export/controls/TableColumn.d.ts +39 -0
  231. package/dist/types/sync/v2/export/controls/TableColumn.d.ts.map +1 -0
  232. package/dist/types/sync/v2/export/controls/ToolBar.d.ts +5 -0
  233. package/dist/types/sync/v2/export/controls/ToolBar.d.ts.map +1 -0
  234. package/dist/types/sync/v2/export/controls/index.d.ts +21 -0
  235. package/dist/types/sync/v2/export/controls/index.d.ts.map +1 -0
  236. package/dist/types/sync/v2/export/export.d.ts +36 -0
  237. package/dist/types/sync/v2/export/export.d.ts.map +1 -0
  238. package/dist/types/sync/v2/export/exportPage.d.ts +11 -0
  239. package/dist/types/sync/v2/export/exportPage.d.ts.map +1 -0
  240. package/dist/types/sync/v2/export/factory.d.ts +9 -0
  241. package/dist/types/sync/v2/export/factory.d.ts.map +1 -0
  242. package/dist/types/sync/v2/export/manifest.d.ts +27 -0
  243. package/dist/types/sync/v2/export/manifest.d.ts.map +1 -0
  244. package/dist/types/sync/v2/export/pages/AnalyticalListPage.d.ts +15 -0
  245. package/dist/types/sync/v2/export/pages/AnalyticalListPage.d.ts.map +1 -0
  246. package/dist/types/sync/v2/export/pages/ListReport.d.ts +11 -0
  247. package/dist/types/sync/v2/export/pages/ListReport.d.ts.map +1 -0
  248. package/dist/types/sync/v2/export/pages/ObjectPage.d.ts +19 -0
  249. package/dist/types/sync/v2/export/pages/ObjectPage.d.ts.map +1 -0
  250. package/dist/types/sync/v2/export/pages/OverviewPage.d.ts +29 -0
  251. package/dist/types/sync/v2/export/pages/OverviewPage.d.ts.map +1 -0
  252. package/dist/types/sync/v2/export/pages/index.d.ts +5 -0
  253. package/dist/types/sync/v2/export/pages/index.d.ts.map +1 -0
  254. package/dist/types/sync/v2/export/view-controller-generator.d.ts +69 -0
  255. package/dist/types/sync/v2/export/view-controller-generator.d.ts.map +1 -0
  256. package/dist/types/sync/v2/generate/analyticalListReport.d.ts +10 -0
  257. package/dist/types/sync/v2/generate/analyticalListReport.d.ts.map +1 -0
  258. package/dist/types/sync/v2/generate/generate.d.ts +54 -0
  259. package/dist/types/sync/v2/generate/generate.d.ts.map +1 -0
  260. package/dist/types/sync/v2/generate/index.d.ts +5 -0
  261. package/dist/types/sync/v2/generate/index.d.ts.map +1 -0
  262. package/dist/types/sync/v2/generate/listReport.d.ts +22 -0
  263. package/dist/types/sync/v2/generate/listReport.d.ts.map +1 -0
  264. package/dist/types/sync/v2/generate/objectPage.d.ts +11 -0
  265. package/dist/types/sync/v2/generate/objectPage.d.ts.map +1 -0
  266. package/dist/types/sync/v2/generate/overviewPage.d.ts +25 -0
  267. package/dist/types/sync/v2/generate/overviewPage.d.ts.map +1 -0
  268. package/dist/types/sync/v2/generate/utils.d.ts +91 -0
  269. package/dist/types/sync/v2/generate/utils.d.ts.map +1 -0
  270. package/dist/types/sync/v2/import/app/appProvider.d.ts +19 -0
  271. package/dist/types/sync/v2/import/app/appProvider.d.ts.map +1 -0
  272. package/dist/types/sync/v2/import/app/ovpProvider.d.ts +8 -0
  273. package/dist/types/sync/v2/import/app/ovpProvider.d.ts.map +1 -0
  274. package/dist/types/sync/v2/import/common/index.d.ts +53 -0
  275. package/dist/types/sync/v2/import/common/index.d.ts.map +1 -0
  276. package/dist/types/sync/v2/import/controls/table.d.ts +16 -0
  277. package/dist/types/sync/v2/import/controls/table.d.ts.map +1 -0
  278. package/dist/types/sync/v2/import/getPageType.d.ts +1 -0
  279. package/dist/types/sync/v2/import/getPageType.d.ts.map +1 -0
  280. package/dist/types/sync/v2/import/index.d.ts +6 -0
  281. package/dist/types/sync/v2/import/index.d.ts.map +1 -0
  282. package/dist/types/sync/v2/import/pages/analyticalListPage.d.ts +10 -0
  283. package/dist/types/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -0
  284. package/dist/types/sync/v2/import/pages/listReport.d.ts +10 -0
  285. package/dist/types/sync/v2/import/pages/listReport.d.ts.map +1 -0
  286. package/dist/types/sync/v2/import/pages/objectPage.d.ts +9 -0
  287. package/dist/types/sync/v2/import/pages/objectPage.d.ts.map +1 -0
  288. package/dist/types/sync/v2/import/pages/overviewPage.d.ts +11 -0
  289. package/dist/types/sync/v2/import/pages/overviewPage.d.ts.map +1 -0
  290. package/dist/types/sync/v2/import/utils.d.ts +44 -0
  291. package/dist/types/sync/v2/import/utils.d.ts.map +1 -0
  292. package/dist/types/sync/v2/types.d.ts +70 -0
  293. package/dist/types/sync/v2/types.d.ts.map +1 -0
  294. package/dist/types/sync/v4/application.d.ts +45 -0
  295. package/dist/types/sync/v4/application.d.ts.map +1 -0
  296. package/dist/types/sync/v4/export/controls/FilterBar.d.ts +5 -0
  297. package/dist/types/sync/v4/export/controls/FilterBar.d.ts.map +1 -0
  298. package/dist/types/sync/v4/export/controls/ObjectPageCustomSection.d.ts +13 -0
  299. package/dist/types/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -0
  300. package/dist/types/sync/v4/export/controls/ObjectPageHeader.d.ts +9 -0
  301. package/dist/types/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -0
  302. package/dist/types/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +22 -0
  303. package/dist/types/sync/v4/export/controls/ObjectPageHeaderSection.d.ts.map +1 -0
  304. package/dist/types/sync/v4/export/controls/ObjectPageLayout.d.ts +5 -0
  305. package/dist/types/sync/v4/export/controls/ObjectPageLayout.d.ts.map +1 -0
  306. package/dist/types/sync/v4/export/controls/ObjectPageTable.d.ts +23 -0
  307. package/dist/types/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -0
  308. package/dist/types/sync/v4/export/controls/ObjectPageTableColumn.d.ts +13 -0
  309. package/dist/types/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -0
  310. package/dist/types/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +5 -0
  311. package/dist/types/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -0
  312. package/dist/types/sync/v4/export/controls/Table.d.ts +143 -0
  313. package/dist/types/sync/v4/export/controls/Table.d.ts.map +1 -0
  314. package/dist/types/sync/v4/export/controls/TableColumn.d.ts +64 -0
  315. package/dist/types/sync/v4/export/controls/TableColumn.d.ts.map +1 -0
  316. package/dist/types/sync/v4/export/controls/ToolBar.d.ts +9 -0
  317. package/dist/types/sync/v4/export/controls/ToolBar.d.ts.map +1 -0
  318. package/dist/types/sync/v4/export/controls/ToolBarAction.d.ts +8 -0
  319. package/dist/types/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -0
  320. package/dist/types/sync/v4/export/controls/index.d.ts +13 -0
  321. package/dist/types/sync/v4/export/controls/index.d.ts.map +1 -0
  322. package/dist/types/sync/v4/export/export.d.ts +14 -0
  323. package/dist/types/sync/v4/export/export.d.ts.map +1 -0
  324. package/dist/types/sync/v4/export/factory.d.ts +9 -0
  325. package/dist/types/sync/v4/export/factory.d.ts.map +1 -0
  326. package/dist/types/sync/v4/export/flexibleColumnLayout.d.ts +8 -0
  327. package/dist/types/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -0
  328. package/dist/types/sync/v4/export/manifest.d.ts +12 -0
  329. package/dist/types/sync/v4/export/manifest.d.ts.map +1 -0
  330. package/dist/types/sync/v4/export/pages/FreestylePage.d.ts +6 -0
  331. package/dist/types/sync/v4/export/pages/FreestylePage.d.ts.map +1 -0
  332. package/dist/types/sync/v4/export/pages/ListReport.d.ts +14 -0
  333. package/dist/types/sync/v4/export/pages/ListReport.d.ts.map +1 -0
  334. package/dist/types/sync/v4/export/pages/ObjectPage.d.ts +9 -0
  335. package/dist/types/sync/v4/export/pages/ObjectPage.d.ts.map +1 -0
  336. package/dist/types/sync/v4/export/pages/index.d.ts +4 -0
  337. package/dist/types/sync/v4/export/pages/index.d.ts.map +1 -0
  338. package/dist/types/sync/v4/export/types.d.ts +29 -0
  339. package/dist/types/sync/v4/export/types.d.ts.map +1 -0
  340. package/dist/types/sync/v4/export/utils.d.ts +15 -0
  341. package/dist/types/sync/v4/export/utils.d.ts.map +1 -0
  342. package/dist/types/sync/v4/generate/freestylePage.d.ts +11 -0
  343. package/dist/types/sync/v4/generate/freestylePage.d.ts.map +1 -0
  344. package/dist/types/sync/v4/generate/generate.d.ts +43 -0
  345. package/dist/types/sync/v4/generate/generate.d.ts.map +1 -0
  346. package/dist/types/sync/v4/generate/index.d.ts +5 -0
  347. package/dist/types/sync/v4/generate/index.d.ts.map +1 -0
  348. package/dist/types/sync/v4/generate/listReport.d.ts +14 -0
  349. package/dist/types/sync/v4/generate/listReport.d.ts.map +1 -0
  350. package/dist/types/sync/v4/generate/objectPage.d.ts +12 -0
  351. package/dist/types/sync/v4/generate/objectPage.d.ts.map +1 -0
  352. package/dist/types/sync/v4/import/app/appProvider.d.ts +8 -0
  353. package/dist/types/sync/v4/import/app/appProvider.d.ts.map +1 -0
  354. package/dist/types/sync/v4/import/app/baseAppProvider.d.ts +46 -0
  355. package/dist/types/sync/v4/import/app/baseAppProvider.d.ts.map +1 -0
  356. package/dist/types/sync/v4/import/app/freestyleProvider.d.ts +8 -0
  357. package/dist/types/sync/v4/import/app/freestyleProvider.d.ts.map +1 -0
  358. package/dist/types/sync/v4/import/app/index.d.ts +4 -0
  359. package/dist/types/sync/v4/import/app/index.d.ts.map +1 -0
  360. package/dist/types/sync/v4/import/fragment.d.ts +26 -0
  361. package/dist/types/sync/v4/import/fragment.d.ts.map +1 -0
  362. package/dist/types/sync/v4/import/index.d.ts +3 -0
  363. package/dist/types/sync/v4/import/index.d.ts.map +1 -0
  364. package/dist/types/sync/v4/import/pages/listReport.d.ts +22 -0
  365. package/dist/types/sync/v4/import/pages/listReport.d.ts.map +1 -0
  366. package/dist/types/sync/v4/import/pages/objectPage.d.ts +24 -0
  367. package/dist/types/sync/v4/import/pages/objectPage.d.ts.map +1 -0
  368. package/dist/types/sync/v4/import/utils.d.ts +16 -0
  369. package/dist/types/sync/v4/import/utils.d.ts.map +1 -0
  370. package/dist/types/sync/v4/types.d.ts +7 -0
  371. package/dist/types/sync/v4/types.d.ts.map +1 -0
  372. package/dist/types/sync/v4/utils/StableIdHelper.d.ts +5 -0
  373. package/dist/types/sync/v4/utils/StableIdHelper.d.ts.map +1 -0
  374. package/dist/types/sync/v4/utils/utils.d.ts +44 -0
  375. package/dist/types/sync/v4/utils/utils.d.ts.map +1 -0
  376. package/dist/types/v2.d.ts +3 -0
  377. package/dist/types/v2.d.ts.map +1 -0
  378. package/dist/types/v4.d.ts +3 -0
  379. package/dist/types/v4.d.ts.map +1 -0
  380. package/package.json +28 -31
  381. package/dist/documentation/runDocu-min.js.LICENSE.txt +0 -24
  382. package/dist/index-min.js.LICENSE.txt +0 -26
  383. package/dist/scripts/extractDocu.d.ts +0 -1
  384. package/dist/scripts/extractDocu.js +0 -488
  385. package/dist/scripts/extractDocu.js.map +0 -1
  386. package/dist/scripts/runDocu.d.ts +0 -1
  387. package/dist/scripts/runDocu.js +0 -570
  388. package/dist/scripts/runDocu.js.map +0 -1
  389. package/dist/scripts/spec.d.ts +0 -1
  390. package/dist/scripts/spec.js +0 -114
  391. package/dist/scripts/spec.js.map +0 -1
  392. package/dist/scripts/to-json-schema.d.ts +0 -10
  393. package/dist/scripts/to-json-schema.js +0 -124
  394. package/dist/scripts/to-json-schema.js.map +0 -1
  395. package/dist/specification/v2/index-min.js +0 -1
  396. package/dist/specification/v4/index-min.js +0 -1
  397. package/dist/src/api.d.ts +0 -41
  398. package/dist/src/api.js +0 -167
  399. package/dist/src/api.js.map +0 -1
  400. package/dist/src/apiTypes.d.ts +0 -307
  401. package/dist/src/apiTypes.js +0 -3
  402. package/dist/src/apiTypes.js.map +0 -1
  403. package/dist/src/extensionLogger.d.ts +0 -41
  404. package/dist/src/extensionLogger.js +0 -39
  405. package/dist/src/extensionLogger.js.map +0 -1
  406. package/dist/src/i18n/i18n.d.ts +0 -1
  407. package/dist/src/i18n/i18n.js +0 -25
  408. package/dist/src/i18n/i18n.js.map +0 -1
  409. package/dist/src/index.d.ts +0 -7
  410. package/dist/src/index.js +0 -12
  411. package/dist/src/index.js.map +0 -1
  412. package/dist/src/project.d.ts +0 -17
  413. package/dist/src/project.js +0 -151
  414. package/dist/src/project.js.map +0 -1
  415. package/dist/src/specification/common/Application.d.ts +0 -36
  416. package/dist/src/specification/common/Application.js +0 -3
  417. package/dist/src/specification/common/Application.js.map +0 -1
  418. package/dist/src/specification/common/i18n.json +0 -1
  419. package/dist/src/specification/common/index.d.ts +0 -5
  420. package/dist/src/specification/common/index.js +0 -10
  421. package/dist/src/specification/common/index.js.map +0 -1
  422. package/dist/src/specification/common/page.d.ts +0 -47
  423. package/dist/src/specification/common/page.js +0 -33
  424. package/dist/src/specification/common/page.js.map +0 -1
  425. package/dist/src/specification/common/types.d.ts +0 -16
  426. package/dist/src/specification/common/types.js +0 -20
  427. package/dist/src/specification/common/types.js.map +0 -1
  428. package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +0 -49
  429. package/dist/src/specification/common/webapp/manifest/Manifest.js +0 -17
  430. package/dist/src/specification/common/webapp/manifest/Manifest.js.map +0 -1
  431. package/dist/src/specification/common/webapp/manifest/index.d.ts +0 -3
  432. package/dist/src/specification/common/webapp/manifest/index.js +0 -8
  433. package/dist/src/specification/common/webapp/manifest/index.js.map +0 -1
  434. package/dist/src/specification/common/webapp/manifest/sapOvp.d.ts +0 -375
  435. package/dist/src/specification/common/webapp/manifest/sapOvp.js +0 -9
  436. package/dist/src/specification/common/webapp/manifest/sapOvp.js.map +0 -1
  437. package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +0 -33
  438. package/dist/src/specification/common/webapp/manifest/sapUi5.js +0 -14
  439. package/dist/src/specification/common/webapp/manifest/sapUi5.js.map +0 -1
  440. package/dist/src/specification/schemaAccess.d.ts +0 -17
  441. package/dist/src/specification/schemaAccess.js +0 -62
  442. package/dist/src/specification/schemaAccess.js.map +0 -1
  443. package/dist/src/specification/v2/ApplicationV2.d.ts +0 -25
  444. package/dist/src/specification/v2/ApplicationV2.js +0 -9
  445. package/dist/src/specification/v2/ApplicationV2.js.map +0 -1
  446. package/dist/src/specification/v2/controls/Action.d.ts +0 -87
  447. package/dist/src/specification/v2/controls/Action.js +0 -20
  448. package/dist/src/specification/v2/controls/Action.js.map +0 -1
  449. package/dist/src/specification/v2/controls/AnalyticalListPageChart.d.ts +0 -58
  450. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js +0 -36
  451. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js.map +0 -1
  452. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.d.ts +0 -30
  453. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js +0 -3
  454. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js.map +0 -1
  455. package/dist/src/specification/v2/controls/Card.d.ts +0 -655
  456. package/dist/src/specification/v2/controls/Card.js +0 -70
  457. package/dist/src/specification/v2/controls/Card.js.map +0 -1
  458. package/dist/src/specification/v2/controls/Facets.d.ts +0 -17
  459. package/dist/src/specification/v2/controls/Facets.js +0 -3
  460. package/dist/src/specification/v2/controls/Facets.js.map +0 -1
  461. package/dist/src/specification/v2/controls/Field.d.ts +0 -10
  462. package/dist/src/specification/v2/controls/Field.js +0 -3
  463. package/dist/src/specification/v2/controls/Field.js.map +0 -1
  464. package/dist/src/specification/v2/controls/FilterBar.d.ts +0 -195
  465. package/dist/src/specification/v2/controls/FilterBar.js +0 -54
  466. package/dist/src/specification/v2/controls/FilterBar.js.map +0 -1
  467. package/dist/src/specification/v2/controls/Footer.d.ts +0 -20
  468. package/dist/src/specification/v2/controls/Footer.js +0 -3
  469. package/dist/src/specification/v2/controls/Footer.js.map +0 -1
  470. package/dist/src/specification/v2/controls/ObjectPageChart.d.ts +0 -16
  471. package/dist/src/specification/v2/controls/ObjectPageChart.js +0 -3
  472. package/dist/src/specification/v2/controls/ObjectPageChart.js.map +0 -1
  473. package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +0 -15
  474. package/dist/src/specification/v2/controls/ObjectPageForm.js +0 -3
  475. package/dist/src/specification/v2/controls/ObjectPageForm.js.map +0 -1
  476. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +0 -34
  477. package/dist/src/specification/v2/controls/ObjectPageHeader.js +0 -8
  478. package/dist/src/specification/v2/controls/ObjectPageHeader.js.map +0 -1
  479. package/dist/src/specification/v2/controls/ObjectPageLayout.d.ts +0 -22
  480. package/dist/src/specification/v2/controls/ObjectPageLayout.js +0 -3
  481. package/dist/src/specification/v2/controls/ObjectPageLayout.js.map +0 -1
  482. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +0 -120
  483. package/dist/src/specification/v2/controls/ObjectPageSection.js +0 -13
  484. package/dist/src/specification/v2/controls/ObjectPageSection.js.map +0 -1
  485. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +0 -183
  486. package/dist/src/specification/v2/controls/ObjectPageTable.js +0 -7
  487. package/dist/src/specification/v2/controls/ObjectPageTable.js.map +0 -1
  488. package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +0 -15
  489. package/dist/src/specification/v2/controls/ObjectPageToolBar.js +0 -3
  490. package/dist/src/specification/v2/controls/ObjectPageToolBar.js.map +0 -1
  491. package/dist/src/specification/v2/controls/Table.d.ts +0 -494
  492. package/dist/src/specification/v2/controls/Table.js +0 -62
  493. package/dist/src/specification/v2/controls/Table.js.map +0 -1
  494. package/dist/src/specification/v2/controls/ToolBar.d.ts +0 -8
  495. package/dist/src/specification/v2/controls/ToolBar.js +0 -3
  496. package/dist/src/specification/v2/controls/ToolBar.js.map +0 -1
  497. package/dist/src/specification/v2/controls/index.d.ts +0 -17
  498. package/dist/src/specification/v2/controls/index.js +0 -14
  499. package/dist/src/specification/v2/controls/index.js.map +0 -1
  500. package/dist/src/specification/v2/index.d.ts +0 -5
  501. package/dist/src/specification/v2/index.js +0 -10
  502. package/dist/src/specification/v2/index.js.map +0 -1
  503. package/dist/src/specification/v2/page.d.ts +0 -7
  504. package/dist/src/specification/v2/page.js +0 -3
  505. package/dist/src/specification/v2/page.js.map +0 -1
  506. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +0 -21
  507. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js +0 -3
  508. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js.map +0 -1
  509. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +0 -12
  510. package/dist/src/specification/v2/pages/ListReportConfig.js +0 -3
  511. package/dist/src/specification/v2/pages/ListReportConfig.js.map +0 -1
  512. package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +0 -33
  513. package/dist/src/specification/v2/pages/ObjectPageConfig.js +0 -3
  514. package/dist/src/specification/v2/pages/ObjectPageConfig.js.map +0 -1
  515. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +0 -127
  516. package/dist/src/specification/v2/pages/OverviewPageConfig.js +0 -8
  517. package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +0 -1
  518. package/dist/src/specification/v2/pages/index.d.ts +0 -4
  519. package/dist/src/specification/v2/pages/index.js +0 -7
  520. package/dist/src/specification/v2/pages/index.js.map +0 -1
  521. package/dist/src/specification/v2/webapp/index.d.ts +0 -1
  522. package/dist/src/specification/v2/webapp/index.js +0 -7
  523. package/dist/src/specification/v2/webapp/index.js.map +0 -1
  524. package/dist/src/specification/v2/webapp/manifest/index.d.ts +0 -2
  525. package/dist/src/specification/v2/webapp/manifest/index.js +0 -8
  526. package/dist/src/specification/v2/webapp/manifest/index.js.map +0 -1
  527. package/dist/src/specification/v2/webapp/manifest/sapUi.d.ts +0 -10
  528. package/dist/src/specification/v2/webapp/manifest/sapUi.js +0 -3
  529. package/dist/src/specification/v2/webapp/manifest/sapUi.js.map +0 -1
  530. package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +0 -98
  531. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -9
  532. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +0 -1
  533. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +0 -31
  534. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +0 -7
  535. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +0 -1
  536. package/dist/src/specification/v4/ApplicationV4.d.ts +0 -27
  537. package/dist/src/specification/v4/ApplicationV4.js +0 -3
  538. package/dist/src/specification/v4/ApplicationV4.js.map +0 -1
  539. package/dist/src/specification/v4/controls/FilterBar.d.ts +0 -18
  540. package/dist/src/specification/v4/controls/FilterBar.js +0 -3
  541. package/dist/src/specification/v4/controls/FilterBar.js.map +0 -1
  542. package/dist/src/specification/v4/controls/ObjectPageFooter.d.ts +0 -11
  543. package/dist/src/specification/v4/controls/ObjectPageFooter.js +0 -3
  544. package/dist/src/specification/v4/controls/ObjectPageFooter.js.map +0 -1
  545. package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +0 -29
  546. package/dist/src/specification/v4/controls/ObjectPageHeader.js +0 -3
  547. package/dist/src/specification/v4/controls/ObjectPageHeader.js.map +0 -1
  548. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +0 -46
  549. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js +0 -7
  550. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js.map +0 -1
  551. package/dist/src/specification/v4/controls/ObjectPageLayout.d.ts +0 -14
  552. package/dist/src/specification/v4/controls/ObjectPageLayout.js +0 -8
  553. package/dist/src/specification/v4/controls/ObjectPageLayout.js.map +0 -1
  554. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +0 -98
  555. package/dist/src/specification/v4/controls/ObjectPageSection.js +0 -12
  556. package/dist/src/specification/v4/controls/ObjectPageSection.js.map +0 -1
  557. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +0 -70
  558. package/dist/src/specification/v4/controls/ObjectPageTable.js +0 -3
  559. package/dist/src/specification/v4/controls/ObjectPageTable.js.map +0 -1
  560. package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +0 -25
  561. package/dist/src/specification/v4/controls/ObjectPageToolBar.js +0 -3
  562. package/dist/src/specification/v4/controls/ObjectPageToolBar.js.map +0 -1
  563. package/dist/src/specification/v4/controls/Table.d.ts +0 -257
  564. package/dist/src/specification/v4/controls/Table.js +0 -30
  565. package/dist/src/specification/v4/controls/Table.js.map +0 -1
  566. package/dist/src/specification/v4/controls/ToolBar.d.ts +0 -53
  567. package/dist/src/specification/v4/controls/ToolBar.js +0 -8
  568. package/dist/src/specification/v4/controls/ToolBar.js.map +0 -1
  569. package/dist/src/specification/v4/controls/index.d.ts +0 -10
  570. package/dist/src/specification/v4/controls/index.js +0 -11
  571. package/dist/src/specification/v4/controls/index.js.map +0 -1
  572. package/dist/src/specification/v4/index.d.ts +0 -5
  573. package/dist/src/specification/v4/index.js +0 -9
  574. package/dist/src/specification/v4/index.js.map +0 -1
  575. package/dist/src/specification/v4/page.d.ts +0 -19
  576. package/dist/src/specification/v4/page.js +0 -3
  577. package/dist/src/specification/v4/page.js.map +0 -1
  578. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +0 -36
  579. package/dist/src/specification/v4/pages/ListReportConfig.js +0 -9
  580. package/dist/src/specification/v4/pages/ListReportConfig.js.map +0 -1
  581. package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +0 -18
  582. package/dist/src/specification/v4/pages/ObjectPageConfig.js +0 -8
  583. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +0 -1
  584. package/dist/src/specification/v4/pages/index.d.ts +0 -2
  585. package/dist/src/specification/v4/pages/index.js +0 -8
  586. package/dist/src/specification/v4/pages/index.js.map +0 -1
  587. package/dist/src/specification/v4/webapp/index.d.ts +0 -1
  588. package/dist/src/specification/v4/webapp/index.js +0 -7
  589. package/dist/src/specification/v4/webapp/index.js.map +0 -1
  590. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +0 -224
  591. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js +0 -22
  592. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +0 -1
  593. package/dist/src/specification/v4/webapp/manifest/index.d.ts +0 -4
  594. package/dist/src/specification/v4/webapp/manifest/index.js +0 -10
  595. package/dist/src/specification/v4/webapp/manifest/index.js.map +0 -1
  596. package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +0 -97
  597. package/dist/src/specification/v4/webapp/manifest/sapUi5.js +0 -11
  598. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +0 -1
  599. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +0 -82
  600. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js +0 -14
  601. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +0 -1
  602. package/dist/src/sync/common/appProvider.d.ts +0 -27
  603. package/dist/src/sync/common/appProvider.js +0 -57
  604. package/dist/src/sync/common/appProvider.js.map +0 -1
  605. package/dist/src/sync/common/decoration/control.d.ts +0 -50
  606. package/dist/src/sync/common/decoration/control.js +0 -211
  607. package/dist/src/sync/common/decoration/control.js.map +0 -1
  608. package/dist/src/sync/common/decoration/decorators.d.ts +0 -12
  609. package/dist/src/sync/common/decoration/decorators.js +0 -45
  610. package/dist/src/sync/common/decoration/decorators.js.map +0 -1
  611. package/dist/src/sync/common/decoration/factory.d.ts +0 -40
  612. package/dist/src/sync/common/decoration/factory.js +0 -48
  613. package/dist/src/sync/common/decoration/factory.js.map +0 -1
  614. package/dist/src/sync/common/decoration/flex.d.ts +0 -6
  615. package/dist/src/sync/common/decoration/flex.js +0 -8
  616. package/dist/src/sync/common/decoration/flex.js.map +0 -1
  617. package/dist/src/sync/common/decoration/index.d.ts +0 -3
  618. package/dist/src/sync/common/decoration/index.js +0 -9
  619. package/dist/src/sync/common/decoration/index.js.map +0 -1
  620. package/dist/src/sync/common/flexUtils.d.ts +0 -31
  621. package/dist/src/sync/common/flexUtils.js +0 -94
  622. package/dist/src/sync/common/flexUtils.js.map +0 -1
  623. package/dist/src/sync/common/generate/index.d.ts +0 -2
  624. package/dist/src/sync/common/generate/index.js +0 -8
  625. package/dist/src/sync/common/generate/index.js.map +0 -1
  626. package/dist/src/sync/common/generate/objectPage.d.ts +0 -59
  627. package/dist/src/sync/common/generate/objectPage.js +0 -378
  628. package/dist/src/sync/common/generate/objectPage.js.map +0 -1
  629. package/dist/src/sync/common/generate/utils.d.ts +0 -143
  630. package/dist/src/sync/common/generate/utils.js +0 -415
  631. package/dist/src/sync/common/generate/utils.js.map +0 -1
  632. package/dist/src/sync/common/i18n.json +0 -23
  633. package/dist/src/sync/common/import/utils.d.ts +0 -43
  634. package/dist/src/sync/common/import/utils.js +0 -106
  635. package/dist/src/sync/common/import/utils.js.map +0 -1
  636. package/dist/src/sync/common/importProject.d.ts +0 -14
  637. package/dist/src/sync/common/importProject.js +0 -334
  638. package/dist/src/sync/common/importProject.js.map +0 -1
  639. package/dist/src/sync/common/index.d.ts +0 -7
  640. package/dist/src/sync/common/index.js +0 -15
  641. package/dist/src/sync/common/index.js.map +0 -1
  642. package/dist/src/sync/common/types.d.ts +0 -346
  643. package/dist/src/sync/common/types.js +0 -216
  644. package/dist/src/sync/common/types.js.map +0 -1
  645. package/dist/src/sync/common/utils.d.ts +0 -241
  646. package/dist/src/sync/common/utils.js +0 -1228
  647. package/dist/src/sync/common/utils.js.map +0 -1
  648. package/dist/src/sync/i18n.d.ts +0 -2
  649. package/dist/src/sync/i18n.js +0 -15
  650. package/dist/src/sync/i18n.js.map +0 -1
  651. package/dist/src/sync/v2/application.d.ts +0 -33
  652. package/dist/src/sync/v2/application.js +0 -170
  653. package/dist/src/sync/v2/application.js.map +0 -1
  654. package/dist/src/sync/v2/export/controls/Action.d.ts +0 -28
  655. package/dist/src/sync/v2/export/controls/Action.js +0 -127
  656. package/dist/src/sync/v2/export/controls/Action.js.map +0 -1
  657. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +0 -9
  658. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +0 -72
  659. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +0 -1
  660. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +0 -9
  661. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +0 -56
  662. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +0 -1
  663. package/dist/src/sync/v2/export/controls/Card.d.ts +0 -116
  664. package/dist/src/sync/v2/export/controls/Card.js +0 -655
  665. package/dist/src/sync/v2/export/controls/Card.js.map +0 -1
  666. package/dist/src/sync/v2/export/controls/Field.d.ts +0 -4
  667. package/dist/src/sync/v2/export/controls/Field.js +0 -32
  668. package/dist/src/sync/v2/export/controls/Field.js.map +0 -1
  669. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +0 -34
  670. package/dist/src/sync/v2/export/controls/FilterBar.js +0 -250
  671. package/dist/src/sync/v2/export/controls/FilterBar.js.map +0 -1
  672. package/dist/src/sync/v2/export/controls/FormAction.d.ts +0 -15
  673. package/dist/src/sync/v2/export/controls/FormAction.js +0 -134
  674. package/dist/src/sync/v2/export/controls/FormAction.js.map +0 -1
  675. package/dist/src/sync/v2/export/controls/Fragment.d.ts +0 -42
  676. package/dist/src/sync/v2/export/controls/Fragment.js +0 -571
  677. package/dist/src/sync/v2/export/controls/Fragment.js.map +0 -1
  678. package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +0 -7
  679. package/dist/src/sync/v2/export/controls/ObjectPageChart.js +0 -37
  680. package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +0 -1
  681. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +0 -19
  682. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +0 -110
  683. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +0 -1
  684. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +0 -8
  685. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +0 -62
  686. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +0 -1
  687. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +0 -8
  688. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +0 -60
  689. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +0 -1
  690. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +0 -8
  691. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +0 -62
  692. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +0 -1
  693. package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +0 -7
  694. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +0 -59
  695. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +0 -1
  696. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +0 -44
  697. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +0 -193
  698. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +0 -1
  699. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +0 -49
  700. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +0 -335
  701. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +0 -1
  702. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +0 -8
  703. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +0 -61
  704. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +0 -1
  705. package/dist/src/sync/v2/export/controls/Table.d.ts +0 -94
  706. package/dist/src/sync/v2/export/controls/Table.js +0 -709
  707. package/dist/src/sync/v2/export/controls/Table.js.map +0 -1
  708. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +0 -38
  709. package/dist/src/sync/v2/export/controls/TableColumn.js +0 -166
  710. package/dist/src/sync/v2/export/controls/TableColumn.js.map +0 -1
  711. package/dist/src/sync/v2/export/controls/ToolBar.d.ts +0 -4
  712. package/dist/src/sync/v2/export/controls/ToolBar.js +0 -6
  713. package/dist/src/sync/v2/export/controls/ToolBar.js.map +0 -1
  714. package/dist/src/sync/v2/export/controls/index.d.ts +0 -20
  715. package/dist/src/sync/v2/export/controls/index.js +0 -26
  716. package/dist/src/sync/v2/export/controls/index.js.map +0 -1
  717. package/dist/src/sync/v2/export/export.d.ts +0 -35
  718. package/dist/src/sync/v2/export/export.js +0 -681
  719. package/dist/src/sync/v2/export/export.js.map +0 -1
  720. package/dist/src/sync/v2/export/exportPage.d.ts +0 -10
  721. package/dist/src/sync/v2/export/exportPage.js +0 -305
  722. package/dist/src/sync/v2/export/exportPage.js.map +0 -1
  723. package/dist/src/sync/v2/export/factory.d.ts +0 -8
  724. package/dist/src/sync/v2/export/factory.js +0 -59
  725. package/dist/src/sync/v2/export/factory.js.map +0 -1
  726. package/dist/src/sync/v2/export/manifest.d.ts +0 -26
  727. package/dist/src/sync/v2/export/manifest.js +0 -156
  728. package/dist/src/sync/v2/export/manifest.js.map +0 -1
  729. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +0 -14
  730. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +0 -44
  731. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +0 -1
  732. package/dist/src/sync/v2/export/pages/ListReport.d.ts +0 -10
  733. package/dist/src/sync/v2/export/pages/ListReport.js +0 -41
  734. package/dist/src/sync/v2/export/pages/ListReport.js.map +0 -1
  735. package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +0 -18
  736. package/dist/src/sync/v2/export/pages/ObjectPage.js +0 -100
  737. package/dist/src/sync/v2/export/pages/ObjectPage.js.map +0 -1
  738. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +0 -28
  739. package/dist/src/sync/v2/export/pages/OverviewPage.js +0 -213
  740. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +0 -1
  741. package/dist/src/sync/v2/export/pages/index.d.ts +0 -4
  742. package/dist/src/sync/v2/export/pages/index.js +0 -10
  743. package/dist/src/sync/v2/export/pages/index.js.map +0 -1
  744. package/dist/src/sync/v2/export/view-controller-generator.d.ts +0 -68
  745. package/dist/src/sync/v2/export/view-controller-generator.js +0 -141
  746. package/dist/src/sync/v2/export/view-controller-generator.js.map +0 -1
  747. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +0 -9
  748. package/dist/src/sync/v2/generate/analyticalListReport.js +0 -86
  749. package/dist/src/sync/v2/generate/analyticalListReport.js.map +0 -1
  750. package/dist/src/sync/v2/generate/generate.d.ts +0 -53
  751. package/dist/src/sync/v2/generate/generate.js +0 -99
  752. package/dist/src/sync/v2/generate/generate.js.map +0 -1
  753. package/dist/src/sync/v2/generate/index.d.ts +0 -4
  754. package/dist/src/sync/v2/generate/index.js +0 -14
  755. package/dist/src/sync/v2/generate/index.js.map +0 -1
  756. package/dist/src/sync/v2/generate/listReport.d.ts +0 -21
  757. package/dist/src/sync/v2/generate/listReport.js +0 -123
  758. package/dist/src/sync/v2/generate/listReport.js.map +0 -1
  759. package/dist/src/sync/v2/generate/objectPage.d.ts +0 -10
  760. package/dist/src/sync/v2/generate/objectPage.js +0 -545
  761. package/dist/src/sync/v2/generate/objectPage.js.map +0 -1
  762. package/dist/src/sync/v2/generate/overviewPage.d.ts +0 -24
  763. package/dist/src/sync/v2/generate/overviewPage.js +0 -70
  764. package/dist/src/sync/v2/generate/overviewPage.js.map +0 -1
  765. package/dist/src/sync/v2/generate/utils.d.ts +0 -90
  766. package/dist/src/sync/v2/generate/utils.js +0 -530
  767. package/dist/src/sync/v2/generate/utils.js.map +0 -1
  768. package/dist/src/sync/v2/import/app/appProvider.d.ts +0 -18
  769. package/dist/src/sync/v2/import/app/appProvider.js +0 -145
  770. package/dist/src/sync/v2/import/app/appProvider.js.map +0 -1
  771. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +0 -7
  772. package/dist/src/sync/v2/import/app/ovpProvider.js +0 -33
  773. package/dist/src/sync/v2/import/app/ovpProvider.js.map +0 -1
  774. package/dist/src/sync/v2/import/common/index.d.ts +0 -52
  775. package/dist/src/sync/v2/import/common/index.js +0 -415
  776. package/dist/src/sync/v2/import/common/index.js.map +0 -1
  777. package/dist/src/sync/v2/import/controls/table.d.ts +0 -15
  778. package/dist/src/sync/v2/import/controls/table.js +0 -32
  779. package/dist/src/sync/v2/import/controls/table.js.map +0 -1
  780. package/dist/src/sync/v2/import/getPageType.d.ts +0 -0
  781. package/dist/src/sync/v2/import/getPageType.js +0 -1
  782. package/dist/src/sync/v2/import/getPageType.js.map +0 -1
  783. package/dist/src/sync/v2/import/index.d.ts +0 -5
  784. package/dist/src/sync/v2/import/index.js +0 -11
  785. package/dist/src/sync/v2/import/index.js.map +0 -1
  786. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +0 -9
  787. package/dist/src/sync/v2/import/pages/analyticalListPage.js +0 -128
  788. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +0 -1
  789. package/dist/src/sync/v2/import/pages/listReport.d.ts +0 -9
  790. package/dist/src/sync/v2/import/pages/listReport.js +0 -156
  791. package/dist/src/sync/v2/import/pages/listReport.js.map +0 -1
  792. package/dist/src/sync/v2/import/pages/objectPage.d.ts +0 -8
  793. package/dist/src/sync/v2/import/pages/objectPage.js +0 -747
  794. package/dist/src/sync/v2/import/pages/objectPage.js.map +0 -1
  795. package/dist/src/sync/v2/import/pages/overviewPage.d.ts +0 -10
  796. package/dist/src/sync/v2/import/pages/overviewPage.js +0 -113
  797. package/dist/src/sync/v2/import/pages/overviewPage.js.map +0 -1
  798. package/dist/src/sync/v2/import/utils.d.ts +0 -43
  799. package/dist/src/sync/v2/import/utils.js +0 -149
  800. package/dist/src/sync/v2/import/utils.js.map +0 -1
  801. package/dist/src/sync/v2/types.d.ts +0 -69
  802. package/dist/src/sync/v2/types.js +0 -37
  803. package/dist/src/sync/v2/types.js.map +0 -1
  804. package/dist/src/sync/v4/application.d.ts +0 -44
  805. package/dist/src/sync/v4/application.js +0 -150
  806. package/dist/src/sync/v4/application.js.map +0 -1
  807. package/dist/src/sync/v4/export/controls/FilterBar.d.ts +0 -4
  808. package/dist/src/sync/v4/export/controls/FilterBar.js +0 -6
  809. package/dist/src/sync/v4/export/controls/FilterBar.js.map +0 -1
  810. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +0 -12
  811. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js +0 -132
  812. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +0 -1
  813. package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +0 -8
  814. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +0 -55
  815. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +0 -1
  816. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +0 -21
  817. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +0 -65
  818. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +0 -1
  819. package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +0 -4
  820. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js +0 -24
  821. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js.map +0 -1
  822. package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +0 -22
  823. package/dist/src/sync/v4/export/controls/ObjectPageTable.js +0 -180
  824. package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +0 -1
  825. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +0 -12
  826. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -64
  827. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +0 -1
  828. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +0 -4
  829. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +0 -21
  830. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +0 -1
  831. package/dist/src/sync/v4/export/controls/Table.d.ts +0 -132
  832. package/dist/src/sync/v4/export/controls/Table.js +0 -605
  833. package/dist/src/sync/v4/export/controls/Table.js.map +0 -1
  834. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +0 -63
  835. package/dist/src/sync/v4/export/controls/TableColumn.js +0 -310
  836. package/dist/src/sync/v4/export/controls/TableColumn.js.map +0 -1
  837. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +0 -8
  838. package/dist/src/sync/v4/export/controls/ToolBar.js +0 -9
  839. package/dist/src/sync/v4/export/controls/ToolBar.js.map +0 -1
  840. package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +0 -7
  841. package/dist/src/sync/v4/export/controls/ToolBarAction.js +0 -31
  842. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +0 -1
  843. package/dist/src/sync/v4/export/controls/index.d.ts +0 -12
  844. package/dist/src/sync/v4/export/controls/index.js +0 -18
  845. package/dist/src/sync/v4/export/controls/index.js.map +0 -1
  846. package/dist/src/sync/v4/export/export.d.ts +0 -13
  847. package/dist/src/sync/v4/export/export.js +0 -803
  848. package/dist/src/sync/v4/export/export.js.map +0 -1
  849. package/dist/src/sync/v4/export/factory.d.ts +0 -8
  850. package/dist/src/sync/v4/export/factory.js +0 -44
  851. package/dist/src/sync/v4/export/factory.js.map +0 -1
  852. package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +0 -7
  853. package/dist/src/sync/v4/export/flexibleColumnLayout.js +0 -114
  854. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +0 -1
  855. package/dist/src/sync/v4/export/manifest.d.ts +0 -11
  856. package/dist/src/sync/v4/export/manifest.js +0 -224
  857. package/dist/src/sync/v4/export/manifest.js.map +0 -1
  858. package/dist/src/sync/v4/export/pages/ListReport.d.ts +0 -13
  859. package/dist/src/sync/v4/export/pages/ListReport.js +0 -82
  860. package/dist/src/sync/v4/export/pages/ListReport.js.map +0 -1
  861. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +0 -8
  862. package/dist/src/sync/v4/export/pages/ObjectPage.js +0 -40
  863. package/dist/src/sync/v4/export/pages/ObjectPage.js.map +0 -1
  864. package/dist/src/sync/v4/export/pages/index.d.ts +0 -2
  865. package/dist/src/sync/v4/export/pages/index.js +0 -8
  866. package/dist/src/sync/v4/export/pages/index.js.map +0 -1
  867. package/dist/src/sync/v4/export/types.d.ts +0 -28
  868. package/dist/src/sync/v4/export/types.js +0 -3
  869. package/dist/src/sync/v4/export/types.js.map +0 -1
  870. package/dist/src/sync/v4/export/utils.d.ts +0 -14
  871. package/dist/src/sync/v4/export/utils.js +0 -43
  872. package/dist/src/sync/v4/export/utils.js.map +0 -1
  873. package/dist/src/sync/v4/generate/generate.d.ts +0 -30
  874. package/dist/src/sync/v4/generate/generate.js +0 -59
  875. package/dist/src/sync/v4/generate/generate.js.map +0 -1
  876. package/dist/src/sync/v4/generate/index.d.ts +0 -3
  877. package/dist/src/sync/v4/generate/index.js +0 -10
  878. package/dist/src/sync/v4/generate/index.js.map +0 -1
  879. package/dist/src/sync/v4/generate/listReport.d.ts +0 -13
  880. package/dist/src/sync/v4/generate/listReport.js +0 -604
  881. package/dist/src/sync/v4/generate/listReport.js.map +0 -1
  882. package/dist/src/sync/v4/generate/objectPage.d.ts +0 -11
  883. package/dist/src/sync/v4/generate/objectPage.js +0 -547
  884. package/dist/src/sync/v4/generate/objectPage.js.map +0 -1
  885. package/dist/src/sync/v4/import/app/appProvider.d.ts +0 -20
  886. package/dist/src/sync/v4/import/app/appProvider.js +0 -312
  887. package/dist/src/sync/v4/import/app/appProvider.js.map +0 -1
  888. package/dist/src/sync/v4/import/fragment.d.ts +0 -25
  889. package/dist/src/sync/v4/import/fragment.js +0 -130
  890. package/dist/src/sync/v4/import/fragment.js.map +0 -1
  891. package/dist/src/sync/v4/import/index.d.ts +0 -2
  892. package/dist/src/sync/v4/import/index.js +0 -8
  893. package/dist/src/sync/v4/import/index.js.map +0 -1
  894. package/dist/src/sync/v4/import/pages/listReport.d.ts +0 -21
  895. package/dist/src/sync/v4/import/pages/listReport.js +0 -271
  896. package/dist/src/sync/v4/import/pages/listReport.js.map +0 -1
  897. package/dist/src/sync/v4/import/pages/objectPage.d.ts +0 -23
  898. package/dist/src/sync/v4/import/pages/objectPage.js +0 -265
  899. package/dist/src/sync/v4/import/pages/objectPage.js.map +0 -1
  900. package/dist/src/sync/v4/import/utils.d.ts +0 -15
  901. package/dist/src/sync/v4/import/utils.js +0 -34
  902. package/dist/src/sync/v4/import/utils.js.map +0 -1
  903. package/dist/src/sync/v4/types.d.ts +0 -6
  904. package/dist/src/sync/v4/types.js +0 -3
  905. package/dist/src/sync/v4/types.js.map +0 -1
  906. package/dist/src/sync/v4/utils/StableIdHelper.d.ts +0 -4
  907. package/dist/src/sync/v4/utils/StableIdHelper.js +0 -156
  908. package/dist/src/sync/v4/utils/StableIdHelper.js.map +0 -1
  909. package/dist/src/sync/v4/utils/utils.d.ts +0 -43
  910. package/dist/src/sync/v4/utils/utils.js +0 -177
  911. package/dist/src/sync/v4/utils/utils.js.map +0 -1
  912. package/dist/src/v2.d.ts +0 -2
  913. package/dist/src/v2.js +0 -8
  914. package/dist/src/v2.js.map +0 -1
  915. package/dist/src/v4.d.ts +0 -2
  916. package/dist/src/v4.js +0 -8
  917. package/dist/src/v4.js.map +0 -1
  918. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +0 -7
  919. package/dist/test/test-projects/index.d.ts +0 -2
  920. package/dist/test/test-utils/utils.d.ts +0 -32
  921. package/dist/test/unit/customSections/exportV2.test.d.ts +0 -1
  922. package/dist/test/unit/customSections/exportV4.test.d.ts +0 -1
  923. package/dist/test/unit/customSections/generateFacetsSchemaV2.test.d.ts +0 -1
  924. package/dist/test/unit/customSections/generateFacetsSchemaV4.test.d.ts +0 -1
  925. package/dist/test/unit/customSections/importV2.test.d.ts +0 -1
  926. package/dist/test/unit/customSections/importV4.test.d.ts +0 -1
  927. package/dist/test/unit/export/exportALPV2.test.d.ts +0 -1
  928. package/dist/test/unit/export/exportALPV4.test.d.ts +0 -1
  929. package/dist/test/unit/export/exportAppV2.test.d.ts +0 -1
  930. package/dist/test/unit/export/exportAppV4.test.d.ts +0 -1
  931. package/dist/test/unit/export/exportFormPageV4.test.d.ts +0 -1
  932. package/dist/test/unit/export/exportLRPV2.test.d.ts +0 -1
  933. package/dist/test/unit/export/exportLRPV2CustomColumns.test.d.ts +0 -1
  934. package/dist/test/unit/export/exportLRPV4.test.d.ts +0 -1
  935. package/dist/test/unit/export/exportOVPV2.test.d.ts +0 -1
  936. package/dist/test/unit/export/exportObjectPageV2.test.d.ts +0 -1
  937. package/dist/test/unit/export/exportObjectPageV4.test.d.ts +0 -1
  938. package/dist/test/unit/export/flexUtils.test.d.ts +0 -1
  939. package/dist/test/unit/export/manifest.test.d.ts +0 -1
  940. package/dist/test/unit/fcl/exportV2.test.d.ts +0 -1
  941. package/dist/test/unit/fcl/exportV4.test.d.ts +0 -1
  942. package/dist/test/unit/fcl/importV2.test.d.ts +0 -1
  943. package/dist/test/unit/fcl/importV4.test.d.ts +0 -1
  944. package/dist/test/unit/generateAppSchema/generateAppSchemaALPV2.test.d.ts +0 -1
  945. package/dist/test/unit/generateAppSchema/generateAppSchemaALPV4.test.d.ts +0 -1
  946. package/dist/test/unit/generateAppSchema/generateAppSchemaFPV4.test.d.ts +0 -1
  947. package/dist/test/unit/generateAppSchema/generateAppSchemaLRV2.test.d.ts +0 -1
  948. package/dist/test/unit/generateAppSchema/generateAppSchemaLRV4.test.d.ts +0 -1
  949. package/dist/test/unit/generateAppSchema/generateAppSchemaOPV2.test.d.ts +0 -1
  950. package/dist/test/unit/generateAppSchema/generateAppSchemaOPV4.test.d.ts +0 -1
  951. package/dist/test/unit/generateAppSchema/generateAppSchemaOVPV2.test.d.ts +0 -1
  952. package/dist/test/unit/generateGenericSchema/generateGenericSchemaAppV2.test.d.ts +0 -1
  953. package/dist/test/unit/generateGenericSchema/generateGenericSchemaAppV4.test.d.ts +0 -1
  954. package/dist/test/unit/generateGenericSchema/generateGenericSchemaLRV2.test.d.ts +0 -1
  955. package/dist/test/unit/generateGenericSchema/generateGenericSchemaLRV4.test.d.ts +0 -1
  956. package/dist/test/unit/generateGenericSchema/generateGenericSchemaOPV2.test.d.ts +0 -1
  957. package/dist/test/unit/generateGenericSchema/generateGenericSchemaOPV4.test.d.ts +0 -1
  958. package/dist/test/unit/generateGenericSchema/generateI18nV2.test.d.ts +0 -1
  959. package/dist/test/unit/generateGenericSchema/generateI18nV4.test.d.ts +0 -1
  960. package/dist/test/unit/generateGenericSchema/genericSchemas.test.d.ts +0 -1
  961. package/dist/test/unit/import/fragment.test.d.ts +0 -1
  962. package/dist/test/unit/import/importALPV2.test.d.ts +0 -1
  963. package/dist/test/unit/import/importALPV4.test.d.ts +0 -1
  964. package/dist/test/unit/import/importAppV2.test.d.ts +0 -1
  965. package/dist/test/unit/import/importAppV4.test.d.ts +0 -1
  966. package/dist/test/unit/import/importFPV4.test.d.ts +0 -1
  967. package/dist/test/unit/import/importLRPV2.test.d.ts +0 -1
  968. package/dist/test/unit/import/importLRPV4.test.d.ts +0 -1
  969. package/dist/test/unit/import/importOPV2.test.d.ts +0 -1
  970. package/dist/test/unit/import/importOPV4.test.d.ts +0 -1
  971. package/dist/test/unit/import/importOVPV2.test.d.ts +0 -1
  972. package/dist/test/unit/index.test.d.ts +0 -1
  973. package/dist/test/unit/projects.test.d.ts +0 -1
  974. package/dist/test/unit/schemaAccess.test.d.ts +0 -1
  975. package/dist/test/unit/utils.test.d.ts +0 -1
  976. package/dist/test/unit/view-controller-generator.test.d.ts +0 -1
@@ -1,1228 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const i18next_1 = __importDefault(require("i18next"));
7
- const deepmerge_1 = __importDefault(require("deepmerge"));
8
- const v4_1 = require("../../specification/v4");
9
- const v2_1 = require("../../specification/v2");
10
- const types_1 = require("./types");
11
- const annotation_converter_1 = require("@sap-ux/annotation-converter");
12
- const edmx_parser_1 = require("@sap-ux/edmx-parser");
13
- const common_1 = require("../../specification/common");
14
- const schemaAccess_1 = require("../../specification/schemaAccess");
15
- const extensionLogger_1 = require("../../extensionLogger");
16
- var TemplateType;
17
- (function (TemplateType) {
18
- TemplateType["ListReportObjectPageV2"] = "ListReportObjectPageV2";
19
- TemplateType["ListReportObjectPageV4"] = "ListReportObjectPageV4";
20
- TemplateType["OverviewPageV2"] = "OverviewPageV2";
21
- TemplateType["AnalyticalListPageV2"] = "AnalyticalListPageV2";
22
- TemplateType["AnalyticalListPageV4"] = "AnalyticalListPageV4";
23
- })(TemplateType = exports.TemplateType || (exports.TemplateType = {}));
24
- exports.DEFINITION_LINK_PREFIX = '#/definitions/';
25
- /**
26
- * Function returns annotation path for schema based on received params.
27
- * @param entityTypeName - Entity type name.
28
- * @param term - Annotation term.
29
- * @param qualifier - Annotation qualifier.
30
- * @returns Annotation path based on received params
31
- */
32
- exports.createAnnotationPath = (entityTypeName, term, qualifier) => {
33
- let annotationPath = `/${entityTypeName}/@${term}`;
34
- if (qualifier) {
35
- annotationPath += `#${qualifier}`;
36
- }
37
- return annotationPath;
38
- };
39
- /**
40
- * Parses, merges, and converts a list of annotation files with aid of tools from annotation-vocabularies-tools
41
- * @param annotationFiles - The list of all annotation files, in JSON format
42
- * @returns the complete service information
43
- */
44
- function parseAndMergeAndConvert(annotationFiles, logger) {
45
- const parseResult = [];
46
- let converterOutput;
47
- try {
48
- if (annotationFiles) {
49
- annotationFiles.forEach(function (annotationData) {
50
- parseResult.push(edmx_parser_1.parse(annotationData.fileContent, annotationData.dataSourceUri));
51
- });
52
- }
53
- if (parseResult.length > 0) {
54
- converterOutput = annotation_converter_1.convert(edmx_parser_1.merge(...parseResult));
55
- }
56
- if (logger && (converterOutput === null || converterOutput === void 0 ? void 0 : converterOutput.diagnostics)) {
57
- for (const converterMessage of converterOutput.diagnostics) {
58
- extensionLogger_1.log(logger, {
59
- severity: "error" /* Error */,
60
- message: converterMessage.message
61
- });
62
- }
63
- }
64
- }
65
- catch (error) {
66
- extensionLogger_1.log(logger, {
67
- severity: "error" /* Error */,
68
- message: i18next_1.default.t('ANNOERR')
69
- }, ...error);
70
- }
71
- return converterOutput;
72
- }
73
- 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);
75
- /**
76
- * Checks for Common.Label and overwrites the label from it if present
77
- * @param {PropertyAnnotations} annotations - property annotations
78
- * @param {EntityType} entityType - entity type
79
- * @param {string} label - label, to be actualized
80
- */
81
- 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) {
84
- if (typeof annotations.Common.Label === 'string') {
85
- label = annotations.Common.Label;
86
- }
87
- else if (annotations.Common.Label['type'] === 'Path') {
88
- const targetProperty = entityType.resolvePath(annotations.Common.Label['path']);
89
- if (targetProperty.value) {
90
- label = targetProperty.value;
91
- }
92
- else if (typeof ((_b = targetProperty.Common) === null || _b === void 0 ? void 0 : _b.Label) === 'string') {
93
- label = targetProperty.annotations.Common.Label;
94
- }
95
- }
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') {
97
- label = annotations.Common.Label.toString();
98
- }
99
- }
100
- return label;
101
- }
102
- exports.evaluateCommonLabel = evaluateCommonLabel;
103
- /**
104
- * Determines the label for a property path
105
- * @param {PropertyPath} propertyPath - property path
106
- * @param {EntityType} entityType - entity type
107
- * @returns label, derived from Common.Label or from property value
108
- */
109
- function getLabelForPropertyPath(propertyPath, entityType) {
110
- let label = propertyPath.value;
111
- if (propertyPath.$target) {
112
- label = evaluateCommonLabel(propertyPath.$target.annotations, entityType, label);
113
- }
114
- return label;
115
- }
116
- exports.getLabelForPropertyPath = getLabelForPropertyPath;
117
- /**
118
- * Determines the label for a LineItem record
119
- * @param {DataFieldAbstractType} field - Line item record
120
- * @param {EntityType} entityType - entity type
121
- * @returns label, derived from Common.Label or from property value
122
- */
123
- function getLabelForDataField(field, entityType) {
124
- var _a, _b;
125
- let label, property;
126
- if (field['Value']) {
127
- if (typeof field['Value'] === 'string') {
128
- property = entityType.entityProperties.find((ep) => ep.name === field['Value']);
129
- }
130
- else {
131
- property = entityType.resolvePath(field['Value'].path);
132
- if (!property) {
133
- property = field['Value'].$target;
134
- }
135
- }
136
- }
137
- else if (field['Target'] && field['Target'].$target && field['Target'].$target.Value) {
138
- property = field['Target'].$target.Value.$target;
139
- }
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
- label = evaluateCommonLabel(property.annotations, entityType, label);
142
- }
143
- return label;
144
- }
145
- exports.getLabelForDataField = getLabelForDataField;
146
- /**
147
- * Function to resolve the dataField label
148
- * @param dataFieldLabel - Given dataField label; might be of type string, or an object in case of a path reference
149
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
150
- * @returns undefined or the right string value
151
- */
152
- function getLabel(dataFieldLabel, entityType) {
153
- var _a, _b;
154
- if (typeof dataFieldLabel === 'string') {
155
- return dataFieldLabel;
156
- }
157
- else if (typeof dataFieldLabel === 'object' && dataFieldLabel.path) {
158
- const property = entityType.resolvePath(dataFieldLabel.path);
159
- if (!property || property.length === 0) {
160
- return undefined;
161
- }
162
- else {
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) {
165
- const label = dataFieldLabel;
166
- return evaluateCommonLabel(singleProperty.annotations, entityType, label);
167
- }
168
- }
169
- }
170
- else {
171
- return undefined;
172
- }
173
- }
174
- function getTitleForDataField(dataField, entityType, dataFieldLabel) {
175
- const propertyCommonLabel = getLabelForDataField(dataField, entityType);
176
- return (dataFieldLabel ||
177
- propertyCommonLabel ||
178
- (dataField.Value.$target ? dataField.Value.$target.name : dataField.Value.value || dataField.Value.path));
179
- }
180
- /**
181
- * Determines the description of a data field, e.g. for the column header
182
- * @param dataFieldAbstract - the given record of the line item annotation
183
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
184
- */
185
- function getDataFieldDescription(dataFieldAbstract, entityType) {
186
- let title = '', propertyCommonLabel, dataField;
187
- const dataFieldLabel = getLabel(dataFieldAbstract.Label, entityType);
188
- switch (dataFieldAbstract.$Type) {
189
- case "com.sap.vocabularies.UI.v1.DataField" /* DataField */:
190
- dataField = dataFieldAbstract;
191
- title = getTitleForDataField(dataField, entityType, dataFieldLabel);
192
- break;
193
- case "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* DataFieldWithUrl */:
194
- dataField = dataFieldAbstract;
195
- propertyCommonLabel = getLabelForDataField(dataFieldAbstract, entityType);
196
- title =
197
- dataFieldLabel ||
198
- propertyCommonLabel ||
199
- (typeof dataField.Value === 'string' ? dataField.Value : dataField.Value.path);
200
- break;
201
- case "com.sap.vocabularies.UI.v1.DataFieldForAnnotation" /* DataFieldForAnnotation */:
202
- dataField = dataFieldAbstract;
203
- propertyCommonLabel = getLabelForDataField(dataFieldAbstract, entityType);
204
- title = dataFieldLabel || propertyCommonLabel || dataField.Target.$target.Title || dataField.Target.value;
205
- break;
206
- case "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */:
207
- case "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation" /* DataFieldForIntentBasedNavigation */:
208
- dataField = dataFieldAbstract;
209
- if (dataFieldLabel) {
210
- title = typeof dataFieldLabel === 'string' ? dataFieldLabel : dataField.Action;
211
- }
212
- else {
213
- title = dataFieldAbstract.Action;
214
- }
215
- break;
216
- case "com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation" /* DataFieldWithIntentBasedNavigation */:
217
- dataField = dataFieldAbstract;
218
- propertyCommonLabel = getLabelForDataField(dataFieldAbstract, entityType);
219
- title = propertyCommonLabel || dataField.Value.path;
220
- break;
221
- case "com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath" /* DataFieldWithNavigationPath */:
222
- dataField = dataFieldAbstract;
223
- title = getTitleForDataField(dataField, entityType, dataFieldLabel);
224
- break;
225
- default:
226
- break;
227
- }
228
- return title;
229
- }
230
- exports.getDataFieldDescription = getDataFieldDescription;
231
- /**
232
- * Prepare string for reference use in schema
233
- * @param refInput string to be character checked and replaced
234
- * @returns string with replaced characters
235
- */
236
- function prepareRef(refInput) {
237
- return refInput.replace('#', '::').replace(/\//g, ':2f');
238
- }
239
- exports.prepareRef = prepareRef;
240
- /**
241
- * Return the page type for a given V2 page in manifest
242
- * @param name - page component name
243
- */
244
- function getPageTypeV2(name) {
245
- if (name) {
246
- const templatePart = `${v2_1.FE_TEMPLATE_V2}.`;
247
- return name.split(templatePart)[1];
248
- }
249
- }
250
- exports.getPageTypeV2 = getPageTypeV2;
251
- /**
252
- * Return the page type for a given V4 page in manifest
253
- * @param name - page component name
254
- */
255
- function getPageTypeV4(name) {
256
- if (name) {
257
- const templatePart = `${v4_1.FE_TEMPLATE_V4}.`;
258
- return name.split(templatePart)[1];
259
- }
260
- }
261
- exports.getPageTypeV4 = getPageTypeV4;
262
- function getTargetAnnotationName(targetAnnotation, keyForRelatedFacetKeys = false) {
263
- const termWithQualifier = `${targetAnnotation.term}#${targetAnnotation.qualifier}`;
264
- return `${!keyForRelatedFacetKeys ? '@' : ''}${targetAnnotation.qualifier ? termWithQualifier : targetAnnotation.term}`;
265
- }
266
- /**
267
- * Finds the alias for a given namespace in the references' section of the converted service metadata
268
- * @param {string} namespace - complete namespace, e.g. 'com.sap.vocabularies.UI.v1'
269
- * @param {ConvertedMetadata} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
270
- * @returns alias for the given namespace
271
- */
272
- function findAlias(namespace, oDataServiceAVT) {
273
- let aliasReference = oDataServiceAVT.references.find((reference) => {
274
- return reference.namespace === namespace;
275
- });
276
- if (!aliasReference) {
277
- aliasReference = oDataServiceAVT.references.find((reference) => {
278
- return reference.alias === namespace;
279
- });
280
- }
281
- if (!aliasReference) {
282
- aliasReference = oDataServiceAVT.references.find((reference) => {
283
- return (reference.alias.toUpperCase() ===
284
- namespace.split('SAP__')[namespace.split('SAP__').length - 1].toUpperCase());
285
- });
286
- }
287
- return aliasReference === null || aliasReference === void 0 ? void 0 : aliasReference.alias;
288
- }
289
- exports.findAlias = findAlias;
290
- /**
291
- * Determines the target annotation
292
- * @param navigationParts - parts of the target annotation path
293
- * @param entityType - entity type
294
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
295
- * @returns the target annotation
296
- */
297
- function determineTargetAnnotation(navigationParts, entityType, oDataServiceAVT) {
298
- var _a;
299
- const lastNavigationPart = navigationParts[navigationParts.length - 1];
300
- const annotation = lastNavigationPart.substring(lastNavigationPart.lastIndexOf('.') + 1, lastNavigationPart.length);
301
- 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];
303
- }
304
- /**
305
- * Adjust key by considering navigation
306
- * @param key - given key
307
- * @param keyForRelatedFacetKeys - construct key for 'keyForRelatedFacetKeys' property(used to define custom sections) - we should not add '@' symbol there.
308
- * @param navigationParts - parts of the target annotation path
309
- */
310
- function adjustKey(key, navigationParts, keyForRelatedFacetKeys) {
311
- const uiClass = navigationParts[navigationParts.length - 1].split('#')[0];
312
- if (uiClass.includes('.LineItem')) {
313
- const pathParts = key.split('::');
314
- pathParts[pathParts.length - 1] = `${!keyForRelatedFacetKeys ? '@' : ''}${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
315
- key = pathParts.join('::');
316
- }
317
- else {
318
- key = uiClass.replace('@UI', `${!keyForRelatedFacetKeys ? '@' : ''}com.sap.vocabularies.UI.v1`);
319
- }
320
- return key;
321
- }
322
- function getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, propertyValue, oDataVersion = common_1.FioriElementsVersion.v2, keyForRelatedFacetKeys = false) {
323
- var _a;
324
- let stopProcessing = false;
325
- const navigationParts = propertyValue.split('/');
326
- const navigation = navigationParts.length > 1;
327
- if (navigation) {
328
- entityType = (_a = entityType.resolvePath(propertyValue.substring(0, propertyValue.lastIndexOf('/')))) === null || _a === void 0 ? void 0 : _a.targetType;
329
- }
330
- key = adjustKey(key, navigationParts, keyForRelatedFacetKeys);
331
- const targetAnnotation = determineTargetAnnotation(navigationParts, entityType, oDataServiceAVT);
332
- if (targetAnnotation) {
333
- const separator = oDataVersion === common_1.FioriElementsVersion.v2 ? '::' : '#';
334
- key = getTargetAnnotationName(targetAnnotation, keyForRelatedFacetKeys).replace('#', separator);
335
- }
336
- else {
337
- stopProcessing = true;
338
- return { key, entityType, stopProcessing };
339
- }
340
- if (navigation) {
341
- const navSeparator = oDataVersion === common_1.FioriElementsVersion.v2 ? '::' : '/';
342
- navigationParts.pop();
343
- const navigationIDs = [...navigationParts].join(navSeparator);
344
- key = `${navigationIDs}${navSeparator}${key}`;
345
- }
346
- return { key, entityType, stopProcessing };
347
- }
348
- /**
349
- * Resolve page section(get key and label->description).
350
- * @param facetDefinition - the actual annotation record
351
- * @param keyForRelatedFacetKeys - construct key for 'keyForRelatedFacetKeys' property(used to define custom sections) - we should not add '@' symbol there.
352
- * @param {FioriElementsVersion} oDataVersion - OData version
353
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
354
- * @param {ExtensionLogger} logger - Logger class for logging messages
355
- * @returns {FacetSection} - object comprising the relevant facet information
356
- */
357
- function getSectionFacet(facetDefinition, sourceEntityType, oDataServiceAVT, logger, oDataVersion = common_1.FioriElementsVersion.v2, keyForRelatedFacetKeys = false) {
358
- //Take facet ID as fallback
359
- const facetName = facetDefinition.fullyQualifiedName.substring(facetDefinition.fullyQualifiedName.lastIndexOf('@'));
360
- let key = facetDefinition.ID ? facetDefinition.ID.toString() : facetName;
361
- let entityType = sourceEntityType; //default
362
- //If reference facet: overwrite with target annotation if present
363
- if (facetDefinition.$Type !== "com.sap.vocabularies.UI.v1.CollectionFacet" /* CollectionFacet */ && 'Target' in facetDefinition) {
364
- const propertyValue = exports.getAnnotationPropertyValue(facetDefinition.Target);
365
- if (!propertyValue) {
366
- extensionLogger_1.log(logger, {
367
- severity: "error" /* Error */,
368
- message: i18next_1.default.t('NOTARGET', { target: facetDefinition.Target })
369
- });
370
- return;
371
- }
372
- const { key: newKey, entityType: newEntityType, stopProcessing } = getKeyAndEntityTypeOfReferenceFacet(oDataServiceAVT, key, entityType, propertyValue, oDataVersion, keyForRelatedFacetKeys);
373
- if (stopProcessing) {
374
- return;
375
- }
376
- key = newKey;
377
- entityType = newEntityType;
378
- }
379
- key = key.replace(/\//gi, '::');
380
- return key
381
- ? Object.assign(Object.assign(Object.assign({ key }, (facetDefinition.Label && { label: facetDefinition.Label.toString() })), (facetDefinition.ID && { ID: facetDefinition.ID.toString() })), { entityType }) : undefined;
382
- }
383
- exports.getSectionFacet = getSectionFacet;
384
- /**
385
- * Finds the alias for a given namespace in the references' section of the converted service metadata.
386
- * 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 instead of an empty object.
388
- * @param {object} manifest - manifest that is being modified during export
389
- * @param {string} path - path of the property in the manifest
390
- * @param {string} targetAnnotation - target annotation (optional)
391
- * @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
392
- * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
393
- * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
394
- */
395
- exports.getManifestSectionByPathV4 = (manifest, path, targetAnnotation, targetAnnotationEncoded, importScenario = false) => {
396
- if (!path) {
397
- return undefined;
398
- }
399
- let manifestSection = manifest;
400
- const pathElements = path.split('/');
401
- for (let index = 0; index < pathElements.length; index++) {
402
- const element = pathElements[index];
403
- if (element === '[]') {
404
- continue;
405
- }
406
- const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
407
- ? targetAnnotation
408
- : element.replace('??', '/');
409
- //?? can be used in path functions to encode /
410
- if (!manifestSection[decodedElement]) {
411
- if (importScenario) {
412
- manifestSection = undefined;
413
- break;
414
- }
415
- if (pathElements[index + 1] === '[]') {
416
- manifestSection[decodedElement] = [];
417
- }
418
- else {
419
- manifestSection[decodedElement] = {};
420
- }
421
- }
422
- manifestSection = manifestSection[decodedElement];
423
- }
424
- return manifestSection;
425
- };
426
- function getSchemaKeyOfLineItemRecord(lineItemRecord) {
427
- let schemaKey, target, value;
428
- switch (lineItemRecord.$Type) {
429
- case "com.sap.vocabularies.UI.v1.DataField" /* DataField */:
430
- schemaKey = exports.getAnnotationPropertyValue(lineItemRecord.Value);
431
- break;
432
- case "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* DataFieldWithUrl */:
433
- schemaKey =
434
- typeof lineItemRecord.Value === 'string'
435
- ? lineItemRecord.Value
436
- : exports.getAnnotationPropertyValue(lineItemRecord.Value);
437
- break;
438
- case "com.sap.vocabularies.UI.v1.DataFieldForAnnotation" /* DataFieldForAnnotation */:
439
- target = lineItemRecord.Target.value;
440
- if (target) {
441
- schemaKey =
442
- 'DataFieldForAnnotation:::sTarget::' +
443
- target
444
- .replace('@UI', '@com.sap.vocabularies.UI.v1')
445
- .replace('@Communication', '@com.sap.vocabularies.Communication.v1')
446
- .replace('@Contact', '@com.sap.vocabularies.Contact.v1');
447
- }
448
- break;
449
- case "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */:
450
- if (lineItemRecord.Inline) {
451
- schemaKey = `DataFieldForAction:::sAction::${prepareRef(lineItemRecord.Action)}`;
452
- }
453
- break;
454
- case "com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation" /* DataFieldWithIntentBasedNavigation */:
455
- value = exports.getAnnotationPropertyValue(lineItemRecord.Value);
456
- schemaKey = `DataFieldWithIntentBasedNavigation:::sProperty::${value}:::sSemanticObject::${lineItemRecord.SemanticObject}:::sAction::${lineItemRecord.Action}`;
457
- break;
458
- case "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation" /* DataFieldForIntentBasedNavigation */:
459
- if (lineItemRecord.Inline) {
460
- schemaKey = `DataFieldForIntentBasedNavigation:::sSemanticObject::${lineItemRecord.SemanticObject}:::sAction::${prepareRef(lineItemRecord.Action)}`;
461
- }
462
- break;
463
- case "com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath" /* DataFieldWithNavigationPath */:
464
- value = exports.getAnnotationPropertyValue(lineItemRecord.Value);
465
- target = exports.getAnnotationPropertyValue(lineItemRecord.Target);
466
- schemaKey = 'DataFieldWithNavigationPath:::sProperty::' + value + ':::sTarget::' + target;
467
- break;
468
- default:
469
- break;
470
- }
471
- return schemaKey;
472
- }
473
- exports.getSchemaKeyOfLineItemRecord = getSchemaKeyOfLineItemRecord;
474
- /**
475
- * Determines if type of given annotation term is of UIAnnotationTerm
476
- * @param {string} path path in manifest
477
- * @param {string} alias for a given namespace
478
- * @param {EntityType} entityType - the entity type
479
- * @returns UI annotation term type
480
- */
481
- function getUIAnnotationTerm(path, alias, entityType) {
482
- if (path.includes("com.sap.vocabularies.UI.v1.Chart" /* Chart */) || path.includes(alias + '.Chart')) {
483
- return "com.sap.vocabularies.UI.v1.Chart" /* Chart */;
484
- }
485
- else if (path.includes("com.sap.vocabularies.UI.v1.Identification" /* Identification */) || path.includes(alias + '.Identification')) {
486
- return "com.sap.vocabularies.UI.v1.Identification" /* Identification */;
487
- }
488
- else if ((entityType && path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */)) || path.includes(alias + '.LineItem')) {
489
- return "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */;
490
- }
491
- else if (path.includes("com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */) || path.includes(alias + '.FieldGroup')) {
492
- return "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */;
493
- }
494
- else if (path.includes("com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */) || path.includes(alias + '.DataPoint')) {
495
- return "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */;
496
- }
497
- else if (path.includes("com.sap.vocabularies.UI.v1.PresentationVariant" /* PresentationVariant */) || path.includes(alias + '.PresentationVariant')) {
498
- return "com.sap.vocabularies.UI.v1.PresentationVariant" /* PresentationVariant */;
499
- }
500
- else {
501
- return undefined;
502
- }
503
- }
504
- /**
505
- * Determines if type of given annotation term is of CommunicationAnnotationTerm
506
- * @param {string} path path in manifest
507
- * @param {string} alias for a given namespace
508
- * @param {EntityType} entityType - the entity type
509
- * @returns Communication annotation term type
510
- */
511
- function getCommunicationAnnotationTerm(path, alias) {
512
- if (path.includes('com.sap.vocabularies.Communication.v1.Contact') || path.includes(alias + '.Contact')) {
513
- return "com.sap.vocabularies.Communication.v1.Contact" /* Contact */;
514
- }
515
- else if (path.includes('com.sap.vocabularies.Communication.v1.Address') || path.includes(alias + '.Address')) {
516
- return "com.sap.vocabularies.Communication.v1.Address" /* Address */;
517
- }
518
- else {
519
- return undefined;
520
- }
521
- }
522
- /**
523
- * Determines the type of given annotation term
524
- * @param {string} path path in manifest
525
- * @param {string} alias for a given namespace
526
- * @param {EntityType} entityType - the entity type
527
- * @returns annotation term type
528
- */
529
- function getAnnotationTerm(path, alias, entityType) {
530
- return getUIAnnotationTerm(path, alias, entityType) || getCommunicationAnnotationTerm(path, alias);
531
- }
532
- /**
533
- * Evaluates the target annotation of a reference facet and actualizes the facets for the config
534
- * @param {AnnotationTerm} annotationRecord - the actual annotation record
535
- * @param {FacetConfigs} facets - list of facets in config format, to be updated
536
- * @param {EntityType} entityType - the entity type
537
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
538
- * @param {FioriElementsVersion} oDataVersion - OData version
539
- * @param {ExtensionLogger} logger - Logger class for logging messages
540
- */
541
- function evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
542
- var _a, _b, _c, _d, _e, _f, _g, _h;
543
- const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
544
- let path = section ? section.key : '';
545
- const targetEntityType = section.entityType;
546
- const annotationTerm = getAnnotationTerm(path, alias, entityType);
547
- let annotation, targetAnnotation;
548
- switch (annotationTerm) {
549
- case "com.sap.vocabularies.UI.v1.Chart" /* Chart */: {
550
- 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;
552
- facets[path].entityType = targetEntityType;
553
- break;
554
- }
555
- case "com.sap.vocabularies.UI.v1.Identification" /* Identification */: {
556
- annotation = path.split('.')[path.split('.').length - 1];
557
- targetAnnotation = targetEntityType.annotations[alias][annotation];
558
- facets[path] = { base: types_1.FacetBase.Identification };
559
- facets[path].entityType = targetEntityType;
560
- facets[path].target = targetAnnotation;
561
- break;
562
- }
563
- case "com.sap.vocabularies.UI.v1.LineItem" /* LineItem */: {
564
- if (!path.includes("com.sap.vocabularies.UI.v1.LineItem" /* LineItem */) && path.includes('.LineItem')) {
565
- const pathParts = path.split('::');
566
- pathParts[pathParts.length - 1] = `@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`;
567
- path = pathParts.join('::');
568
- }
569
- 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;
571
- facets[path].entityType = targetEntityType;
572
- break;
573
- }
574
- case "com.sap.vocabularies.UI.v1.FieldGroup" /* FieldGroup */: {
575
- 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;
577
- facets[path].entityType = targetEntityType;
578
- break;
579
- }
580
- case "com.sap.vocabularies.UI.v1.DataPoint" /* DataPoint */: {
581
- 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;
583
- 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'];
585
- break;
586
- }
587
- case "com.sap.vocabularies.UI.v1.PresentationVariant" /* PresentationVariant */: {
588
- 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;
590
- facets[path].entityType = targetEntityType;
591
- break;
592
- }
593
- case "com.sap.vocabularies.Communication.v1.Contact" /* Contact */: {
594
- 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;
596
- facets[path].entityType = targetEntityType;
597
- break;
598
- }
599
- case "com.sap.vocabularies.Communication.v1.Address" /* Address */: {
600
- 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;
602
- facets[path].entityType = targetEntityType;
603
- break;
604
- }
605
- default: {
606
- facets[path] = { base: types_1.FacetBase.Unknown };
607
- }
608
- }
609
- if (facets[path]) {
610
- facets[path].annotationPath = `/${annotationRecord.fullyQualifiedName.replace('@com.sap.vocabularies', types_1.VOCWITHSLASH)}`;
611
- if (annotationRecord.Label) {
612
- facets[path].Label = annotationRecord.Label;
613
- }
614
- // Add Facet ID
615
- if (annotationRecord.ID) {
616
- facets[path]['ID'] = annotationRecord.ID;
617
- }
618
- else if (oDataVersion === common_1.FioriElementsVersion.v4) {
619
- extensionLogger_1.log(logger, {
620
- severity: "error" /* Error */,
621
- message: i18next_1.default.t('NOID4SECTION', { facet: annotationRecord.fullyQualifiedName })
622
- });
623
- }
624
- if (section && section.entityType) {
625
- facets[path].entityType = section.entityType;
626
- }
627
- }
628
- }
629
- /**
630
- * Adds the information from facets to the config
631
- * @param {AnnotationTerm} annotationRecord - the actual annotation record
632
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
633
- * @param {string} serviceName - name of the service of the app
634
- * @param {string} entityName - the entity (type) name
635
- * @param {FacetConfigs} facets - list of facets in config format, to be updated
636
- * @param {FioriElementsVersion} oDataVersion - OData version
637
- * @param {ExtensionLogger} logger - Logger class for logging messages
638
- */
639
- function addFacetToConfig(annotationRecord, oDataServiceAVT, serviceName, entityType, facets, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
640
- var _a;
641
- const section = getSectionFacet(annotationRecord, entityType, oDataServiceAVT, logger, oDataVersion, false);
642
- if (section) {
643
- switch (annotationRecord.$Type) {
644
- case "com.sap.vocabularies.UI.v1.ReferenceFacet" /* ReferenceFacet */: {
645
- evaluateTargetAnnotation(section, annotationRecord, facets, entityType, oDataServiceAVT, oDataVersion, logger);
646
- break;
647
- }
648
- case "com.sap.vocabularies.UI.v1.CollectionFacet" /* CollectionFacet */: {
649
- const annotationPath = `/${entityType.fullyQualifiedName}/${annotationRecord.fullyQualifiedName.split(entityType.fullyQualifiedName)[1]}`;
650
- const facet = (facets[section.key] = {
651
- base: types_1.FacetBase.CollectionFacet,
652
- facets: {},
653
- ID: section.ID,
654
- annotationPath: annotationPath,
655
- Label: section.label
656
- });
657
- (_a = annotationRecord.Facets) === null || _a === void 0 ? void 0 : _a.forEach((collectionItem) => {
658
- addFacetToConfig(collectionItem, oDataServiceAVT, serviceName, entityType, facet.facets, oDataVersion, logger);
659
- });
660
- break;
661
- }
662
- }
663
- }
664
- }
665
- /**
666
- * Retrieve header facet configurations that can be used to generate ObjectPage schemas
667
- * @param {QualifiedName} entityTypeName - the name of the actual entity type
668
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
669
- * @param {FioriElementsVersion} oDataVersion - OData version
670
- * @param {ExtensionLogger} logger - Logger class for logging messages
671
- */
672
- function getObjectPageHeaderFacets(entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
673
- const facets = {};
674
- if (!entityType || !entityType.annotations) {
675
- return;
676
- }
677
- const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
678
- const facetAnnotation = alias && entityType.annotations[alias] && entityType.annotations[alias].HeaderFacets;
679
- if (facetAnnotation) {
680
- const lastDot = entityType.fullyQualifiedName.lastIndexOf('.');
681
- const serviceName = entityType.fullyQualifiedName.substr(0, lastDot);
682
- // Add facets to configuration
683
- facetAnnotation.forEach((item) => {
684
- addFacetToConfig(item, oDataServiceAVT, serviceName, entityType, facets, oDataVersion, logger);
685
- });
686
- }
687
- return facets;
688
- }
689
- exports.getObjectPageHeaderFacets = getObjectPageHeaderFacets;
690
- /**
691
- * Retrieve facet configurations that can be used to generate ObjectPage schemas
692
- * @param {QualifiedName} entityTypeName - the name of the actual entity type
693
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
694
- * @param {FioriElementsVersion} oDataVersion - OData version
695
- * @param {ExtensionLogger} logger - Logger class for logging messages
696
- */
697
- function getObjectPageFacets(entityType, oDataServiceAVT, oDataVersion = common_1.FioriElementsVersion.v2, logger) {
698
- const facets = {};
699
- if (!entityType || !entityType.annotations) {
700
- return;
701
- }
702
- const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
703
- const facetAnnotation = alias && entityType.annotations[alias] && entityType.annotations[alias].Facets;
704
- if (facetAnnotation) {
705
- const lastDot = entityType.fullyQualifiedName.lastIndexOf('.');
706
- const serviceName = entityType.fullyQualifiedName.substr(0, lastDot);
707
- // Add facets to configuration
708
- facetAnnotation.forEach((item) => {
709
- addFacetToConfig(item, oDataServiceAVT, serviceName, entityType, facets, oDataVersion, logger);
710
- });
711
- }
712
- return facets;
713
- }
714
- exports.getObjectPageFacets = getObjectPageFacets;
715
- /**
716
- * Returns the version of Fiori elements (v2/v4) from a given manifest
717
- * @param manifest - the manifest.json file
718
- */
719
- function getVersionFromManifest(manifest) {
720
- if (manifest[v4_1.ManifestSection.generic] || manifest[v4_1.ManifestSection.ovp]) {
721
- return common_1.FioriElementsVersion.v2;
722
- }
723
- else {
724
- return common_1.FioriElementsVersion.v4;
725
- }
726
- }
727
- exports.getVersionFromManifest = getVersionFromManifest;
728
- /**
729
- * Determines the template type of a V2 app
730
- * @param manifest - the manifest.json file
731
- * @param {ExtensionLogger} logger - Logger class for logging messages
732
- * @returns {TemplateType} the template type
733
- */
734
- function determineV2Template(manifest, logger) {
735
- let templateType;
736
- if (manifest[v4_1.ManifestSection.generic]) {
737
- const v2Pages = manifest[v4_1.ManifestSection.generic].pages;
738
- if (!v2Pages) {
739
- extensionLogger_1.log(logger, {
740
- severity: "error" /* Error */,
741
- message: i18next_1.default.t('NOPAGES', { appId: manifest['sap.app']['id'] }),
742
- location: {
743
- path: types_1.MANIFESTPATH,
744
- range: [v4_1.ManifestSection.generic]
745
- }
746
- });
747
- return;
748
- }
749
- for (const pageKey in v2Pages) {
750
- const v2Page = v2Pages[pageKey];
751
- if (getPageTypeV2(v2Page.component.name) === common_1.PageType.AnalyticalListPage) {
752
- templateType = TemplateType.AnalyticalListPageV2;
753
- break;
754
- }
755
- else if (getPageTypeV2(v2Page.component.name) === common_1.PageType.ListReport) {
756
- templateType = TemplateType.ListReportObjectPageV2;
757
- break;
758
- }
759
- }
760
- }
761
- else {
762
- if (!templateType) {
763
- extensionLogger_1.log(logger, {
764
- severity: "error" /* Error */,
765
- message: i18next_1.default.t('NOTEMPLATE', { section: v4_1.ManifestSection.generic }),
766
- location: {
767
- path: types_1.MANIFESTPATH,
768
- range: [v4_1.ManifestSection.generic]
769
- }
770
- });
771
- }
772
- }
773
- return templateType;
774
- }
775
- exports.determineV2Template = determineV2Template;
776
- /**
777
- * Determines the template type of a V4 app
778
- * @param manifest - the manifest.json file
779
- * @param {ExtensionLogger} logger - Logger class for logging messages
780
- * @returns {TemplateType} the template type
781
- */
782
- function determineV4Template(manifest, logger) {
783
- var _a, _b, _c, _d;
784
- let templateType;
785
- const v4Pages = manifest[v4_1.ManifestSection.ui5].routing &&
786
- manifest[v4_1.ManifestSection.ui5].routing.targets;
787
- if (!v4Pages) {
788
- extensionLogger_1.log(logger, {
789
- severity: "error" /* Error */,
790
- message: i18next_1.default.t('NOPAGES', { appId: manifest['sap.app']['id'] }),
791
- location: {
792
- path: types_1.MANIFESTPATH,
793
- range: [v4_1.ManifestSection.ui5, 'routing']
794
- }
795
- });
796
- return;
797
- }
798
- for (const pageKey in v4Pages) {
799
- const v4Page = v4Pages[pageKey];
800
- const pageType = getPageTypeV4(v4Page.name);
801
- if (pageType === common_1.PageTypeV4.AnalyticalListPage) {
802
- templateType = TemplateType.AnalyticalListPageV4;
803
- break;
804
- }
805
- 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];
807
- if (viewPath && (viewPath[types_1.ALPViewType.Primary] || viewPath[types_1.ALPViewType.Secondary])) {
808
- templateType = TemplateType.AnalyticalListPageV4;
809
- }
810
- else {
811
- templateType = TemplateType.ListReportObjectPageV4;
812
- }
813
- break;
814
- }
815
- else if (pageType === common_1.PageTypeV4.ObjectPage) {
816
- templateType = TemplateType.ListReportObjectPageV4;
817
- //fixed now for FEOP scenario, bit continue to check if LR/ALP exists
818
- }
819
- }
820
- if (!templateType) {
821
- extensionLogger_1.log(logger, {
822
- severity: "error" /* Error */,
823
- message: i18next_1.default.t('NOTEMPLATE', { section: v4_1.ManifestSection.ui5 }),
824
- location: {
825
- path: types_1.MANIFESTPATH,
826
- range: [v4_1.ManifestSection.ui5, 'routing', 'targets']
827
- }
828
- });
829
- }
830
- return templateType;
831
- }
832
- exports.determineV4Template = determineV4Template;
833
- /**
834
- * Determines the template type, based on the given manifest entries of the app
835
- * @param manifest - the manifest.json file
836
- * @param {FioriElementsVersion} fioriElementsVersion - OData or FE version
837
- * @param {ExtensionLogger} logger - Logger class for logging messages
838
- * @returns {TemplateType} the template type
839
- */
840
- function getTemplateTypeFromManifest(manifest, fioriElementsVersion, logger) {
841
- let templateType;
842
- if (manifest[v4_1.ManifestSection.ovp]) {
843
- templateType = TemplateType.OverviewPageV2;
844
- }
845
- else if (fioriElementsVersion === common_1.FioriElementsVersion.v2) {
846
- templateType = determineV2Template(manifest, logger);
847
- }
848
- else if (fioriElementsVersion === common_1.FioriElementsVersion.v4) {
849
- templateType = determineV4Template(manifest, logger);
850
- }
851
- else {
852
- if (!templateType) {
853
- extensionLogger_1.log(logger, {
854
- severity: "error" /* Error */,
855
- message: i18next_1.default.t('NOFE'),
856
- location: {
857
- path: types_1.MANIFESTPATH
858
- }
859
- });
860
- }
861
- }
862
- return templateType;
863
- }
864
- exports.getTemplateTypeFromManifest = getTemplateTypeFromManifest;
865
- /**
866
- * Adds title and description to a section or header section in an app schema
867
- * @param facet - intermediate facet structure comprising annotation information
868
- * @param section - section in the app schema
869
- * @param facetKey - key of the facet
870
- */
871
- function addSectionTitleAndDescription(facet, section, facetKey) {
872
- if (facet === null || facet === void 0 ? void 0 : facet.ID) {
873
- section.title = types_1.FacetTitlePrefix + facet.ID;
874
- }
875
- else {
876
- section.title = facetKey.replace(/@com.sap/g, 'com.sap');
877
- }
878
- // Description
879
- if (facet === null || facet === void 0 ? void 0 : facet.Label) {
880
- section.description = facet.Label;
881
- }
882
- else if (facet === null || facet === void 0 ? void 0 : facet.ID) {
883
- section.description = facet.ID;
884
- }
885
- else {
886
- section.description = facetKey.substr(facetKey.lastIndexOf('.') + 1);
887
- }
888
- }
889
- exports.addSectionTitleAndDescription = addSectionTitleAndDescription;
890
- /**
891
- * Adds target title or description to a section or header section in an app schema
892
- * @param facet - intermediate facet structure comprising annotation information
893
- * @param section - section in the app schema
894
- * @param facetKey - key of the facet
895
- */
896
- function addTargetTitleAndSectionDescription(facet, section, facetKey) {
897
- var _a;
898
- addSectionTitleAndDescription(facet, section, facetKey);
899
- if (facet === null || facet === void 0 ? void 0 : facet.Label) {
900
- section.description = facet === null || facet === void 0 ? void 0 : facet.Label;
901
- }
902
- else if (facet === null || facet === void 0 ? void 0 : facet['Title']) {
903
- section.description = facet['Title'];
904
- }
905
- else if ((_a = facet === null || facet === void 0 ? void 0 : facet.target) === null || _a === void 0 ? void 0 : _a['Title']) {
906
- section.description = facet.target['Title'];
907
- }
908
- }
909
- exports.addTargetTitleAndSectionDescription = addTargetTitleAndSectionDescription;
910
- /**
911
- * Creates a default object for a new section or subsection, and adds the ID as title if present.
912
- * @param facet Facet configuration, to be analyzed
913
- * @returns the new section object
914
- */
915
- function createDefaultSection(appSchema, facet, facetKey) {
916
- if (!facet) {
917
- return undefined;
918
- }
919
- let section;
920
- if (appSchema.definitions.ObjectPageSection) {
921
- //base type in V2, with properties
922
- section = JSON.parse(JSON.stringify(appSchema.definitions.ObjectPageSection));
923
- }
924
- else {
925
- section = {
926
- type: 'object',
927
- properties: {},
928
- additionalProperties: false
929
- };
930
- section[types_1.SchemaTag.isViewNode] = true;
931
- }
932
- section[types_1.SchemaTag.annotationPath] = facet.annotationPath;
933
- addSectionTitleAndDescription(facet, section, facetKey);
934
- return section;
935
- }
936
- exports.createDefaultSection = createDefaultSection;
937
- /**
938
- * Retrieve page section data(so far id/key and label/description).
939
- * @param {EntityType} entityType The actual entityType
940
- * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
941
- * @param {ExtensionLogger} logger - Logger class for logging messages
942
- * @param {FioriElementsVersion} oDataVersion - OData version
943
- * @param {boolean} [checkUnresolvableFacets=false] - Check and avoid facets and sections without ID and Target.
944
- * @returns {FacetSection[]} - Array of facets or sections
945
- */
946
- function getObjectPageFacetSection(entityType, oDataServiceAVT, logger, oDataVersion = common_1.FioriElementsVersion.v2, checkUnresolvableFacets = false) {
947
- const alias = findAlias(types_1.UIVOCABULARY, oDataServiceAVT);
948
- let sections = [];
949
- if (entityType) {
950
- const facetAnnotation = alias && entityType.annotations && entityType.annotations[alias] && entityType.annotations[alias].Facets;
951
- if (facetAnnotation) {
952
- sections = facetAnnotation.reduce(function (result, item) {
953
- if (checkUnresolvableFacets && !item['ID'] && !('Target' in item && item['Target'])) {
954
- return result;
955
- }
956
- const section = getSectionFacet(item, entityType, oDataServiceAVT, logger, oDataVersion, true);
957
- if (section) {
958
- result.push(section);
959
- }
960
- return result;
961
- }, sections);
962
- }
963
- return sections;
964
- }
965
- }
966
- exports.getObjectPageFacetSection = getObjectPageFacetSection;
967
- /**
968
- * Cleans empty sub-structures from the export result for manifest
969
- * @param manifest - manifest.json part of the export result
970
- * @param path - path in the manifest
971
- * @param targetAnnotation - target annotation (optional, in case of sections, subsections)
972
- * @param targetAnnotationEncoded - encoded version of the target annotation, as represented in the manifest
973
- */
974
- exports.deleteEmptyStructure = (manifest, path, targetAnnotation, targetAnnotationEncoded) => {
975
- if (!path) {
976
- return;
977
- }
978
- let manifestSection = manifest;
979
- const pathArray = path.split('/');
980
- pathArray.forEach(function (element) {
981
- const decodedElement = targetAnnotationEncoded && targetAnnotationEncoded === element
982
- ? targetAnnotation
983
- : element.replace('??', '/');
984
- if (!manifestSection[decodedElement]) {
985
- return;
986
- }
987
- if (Object.keys(manifestSection[decodedElement]).length === 0) {
988
- if (Array.isArray(manifestSection)) {
989
- manifestSection.splice(Number(decodedElement), 1);
990
- }
991
- else {
992
- delete manifestSection[decodedElement];
993
- }
994
- pathArray.pop();
995
- exports.deleteEmptyStructure(manifest, pathArray.join('/'), targetAnnotation, targetAnnotationEncoded);
996
- return;
997
- }
998
- manifestSection = manifestSection && manifestSection[decodedElement];
999
- });
1000
- };
1001
- /**
1002
- * Method which returns generic schema file name.
1003
- * @param {SchemaType | PageType} schemaType Schema type or Page type.
1004
- * @return {string} File name of generic schema.
1005
- */
1006
- const getGenericSchemaFileName = (schemaType) => {
1007
- return `${schemaType}`;
1008
- };
1009
- /**
1010
- * Method which returns schema file name and path depending on passed schema or page type.
1011
- * @param {SchemaType | PageType} schemaType Schema type or Page type.
1012
- * @param {string} [entitySet] Entity set string.
1013
- * @return {SchemaFilePath} File path info.
1014
- */
1015
- exports.getSchemaFilePath = (schemaType, entitySet) => {
1016
- const schemaFile = {
1017
- filename: '',
1018
- path: ''
1019
- };
1020
- switch (schemaType) {
1021
- // Application schema
1022
- case schemaAccess_1.SchemaType.Application: {
1023
- // File name
1024
- schemaFile.filename = `App`;
1025
- // Full path
1026
- schemaFile.path = `./${types_1.DirName.Schemas}/${schemaFile.filename}`;
1027
- break;
1028
- }
1029
- // List report and object page
1030
- case schemaAccess_1.SchemaType.ListReport:
1031
- case schemaAccess_1.SchemaType.ObjectPage: {
1032
- // File name
1033
- schemaFile.filename = entitySet ? `${schemaType}_${entitySet}` : getGenericSchemaFileName(schemaType);
1034
- // Full path
1035
- schemaFile.path = `../${types_1.DirName.Schemas}/${schemaFile.filename}`;
1036
- break;
1037
- }
1038
- // Other page configs
1039
- default: {
1040
- // File name
1041
- schemaFile.filename = getGenericSchemaFileName(schemaType);
1042
- // Full path
1043
- schemaFile.path = `../${types_1.DirName.Schemas}/${schemaFile.filename}`;
1044
- break;
1045
- }
1046
- }
1047
- schemaFile.path += '.json';
1048
- return schemaFile;
1049
- };
1050
- /**
1051
- * Method which generates id of page according to passed parameters.
1052
- * @param appVersion - Fiori Elements version - V2 or V4.
1053
- * @param pageType - Page type.
1054
- * @param entitySet - Entity Set.
1055
- * @param viewId - Custom page's viewId (optional).
1056
- * @returns {string} Generated page id
1057
- */
1058
- function generatePageId(pageType, entitySet, viewId) {
1059
- if (pageType === common_1.PageType.CustomPage) {
1060
- const names = viewId && viewId.split('.');
1061
- return names && names[names.length - 1] + 'Page';
1062
- }
1063
- const parts = [];
1064
- parts.push(pageType);
1065
- if (entitySet) {
1066
- parts.push(entitySet);
1067
- }
1068
- return parts.join('_');
1069
- }
1070
- exports.generatePageId = generatePageId;
1071
- function fillArrayFromAnyOfReference(element, appSchema, currentConfigObject, definitionArray) {
1072
- const $ref = element.$ref;
1073
- if ($ref) {
1074
- const definitionKey = $ref.split(exports.DEFINITION_LINK_PREFIX)[1];
1075
- if (appSchema.definitions[definitionKey]) {
1076
- const controlProperty = appSchema.definitions[definitionKey]['controlProperty'];
1077
- if ($ref.includes(currentConfigObject[controlProperty])) {
1078
- definitionArray.push(definitionKey);
1079
- }
1080
- }
1081
- }
1082
- }
1083
- /**
1084
- * Fills an array of next definitions from given references in the JSON schema
1085
- * @param propertyDefinition - Definition of the current property in schema
1086
- * @param currentConfigObject - Current object in the config JSON. Evaluated to get the right value of a controlling property,
1087
- * for making the right choice in case of multiple options (anyOf)
1088
- * @param appSchema - app-specific JSON schema
1089
- * @returns an array of definitions to proceed with
1090
- */
1091
- function fillArrayFromPropertyDefinition(propertyDefinition, currentConfigObject, appSchema) {
1092
- const definitionArray = [];
1093
- if (propertyDefinition.$ref) {
1094
- definitionArray.push(propertyDefinition.$ref.split(exports.DEFINITION_LINK_PREFIX)[1]);
1095
- }
1096
- else if (propertyDefinition.anyOf) {
1097
- if (currentConfigObject) {
1098
- propertyDefinition.anyOf.forEach((element) => {
1099
- fillArrayFromAnyOfReference(element, appSchema, currentConfigObject, definitionArray);
1100
- });
1101
- }
1102
- if (definitionArray.length === 0) {
1103
- return undefined;
1104
- }
1105
- }
1106
- return definitionArray;
1107
- }
1108
- /**
1109
- * Determines the next definition to be handled, based on the definition array.
1110
- * It also creates the Metadata instance for the next definition, to subsequently access metadata like the syncRule
1111
- * @param definitionArray - Array of definitions, as determined by fillArrayFromNextDefinition
1112
- * @param appSchema - app-specific JSON schema
1113
- * @param title - default title
1114
- * @param currentConfigObject - Current object in the config JSON.
1115
- * @param key - actual key
1116
- * @param {MetadataInstanceInterface} factory - factory for creating metadata instances
1117
- * @param pageType - page type
1118
- * @param propertyDefinition - Definition of the current property in schema
1119
- * @returns {NextDefinition} - Next target definition to process
1120
- */
1121
- function determineNextDefinitionFromDefinitionArray(definitionArray, appSchema, title, currentConfigObject, key, factory, pageType, propertyDefinition) {
1122
- var _a, _b, _c, _d;
1123
- let nextDefinition = {
1124
- configObject: undefined,
1125
- targetDefinition: {},
1126
- title: ''
1127
- };
1128
- if (definitionArray.length) {
1129
- const lastDefinition = definitionArray[definitionArray.length - 1];
1130
- nextDefinition.targetDefinition = appSchema['definitions'][lastDefinition];
1131
- 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') {
1132
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
1133
- nextDefinition = getNextTargetDefinition(appSchema, title, currentConfigObject, nextDefinition.targetDefinition, key, factory, pageType);
1134
- return nextDefinition;
1135
- }
1136
- if (definitionArray.length > 1) {
1137
- definitionArray.forEach((element) => {
1138
- if (element !== '') {
1139
- nextDefinition.targetDefinition['properties'] = Object.assign(Object.assign({}, nextDefinition.targetDefinition['properties']), appSchema['definitions'][element]['properties']);
1140
- }
1141
- });
1142
- }
1143
- nextDefinition.title = ((_c = nextDefinition === null || nextDefinition === void 0 ? void 0 : nextDefinition.targetDefinition) === null || _c === void 0 ? void 0 : _c['title']) ? nextDefinition.targetDefinition['title']
1144
- : title;
1145
- const factoryKey = lastDefinition === null || lastDefinition === void 0 ? void 0 : lastDefinition.split('<')[0];
1146
- const targetObject = currentConfigObject ? currentConfigObject : {};
1147
- 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']);
1148
- }
1149
- else {
1150
- //e.g. sections ==> loop over all properties = subsections or other
1151
- nextDefinition.targetDefinition = propertyDefinition;
1152
- nextDefinition.title = nextDefinition.targetDefinition['title']
1153
- ? nextDefinition.targetDefinition['title']
1154
- : key;
1155
- nextDefinition.configObject = currentConfigObject;
1156
- }
1157
- return nextDefinition;
1158
- }
1159
- /**
1160
- * Recursive function to determine the next config part, next definition in the app schema and the title
1161
- * @param appSchema - app-specific JSON schema
1162
- * @param title - default title
1163
- * @param currentConfigObject - current part of the configuration that gets traversed
1164
- * @param propertyDefinition - definition of a given property in the app schema
1165
- * @param key - actual key
1166
- * @param {MetadataInstanceInterface} factory - factory for creating metadata instances
1167
- * @param pageType - page type
1168
- */
1169
- function getNextTargetDefinition(appSchema, title, currentConfigObject, propertyDefinition, key, factory, pageType) {
1170
- let nextDefinition;
1171
- if (propertyDefinition['type'] === 'array') {
1172
- nextDefinition = getNextTargetDefinition(appSchema, title, currentConfigObject, propertyDefinition['items'], key, factory, pageType);
1173
- return nextDefinition;
1174
- }
1175
- const definitionArray = fillArrayFromPropertyDefinition(propertyDefinition, currentConfigObject, appSchema);
1176
- if (!definitionArray) {
1177
- return undefined;
1178
- }
1179
- nextDefinition = determineNextDefinitionFromDefinitionArray(definitionArray, appSchema, title, currentConfigObject, key, factory, pageType, propertyDefinition);
1180
- return nextDefinition;
1181
- }
1182
- exports.getNextTargetDefinition = getNextTargetDefinition;
1183
- /**
1184
- * Custom array merge function called by deepmerge's merge function
1185
- *
1186
- * @param {*} target Target array
1187
- * @param {*} source Source array
1188
- * @param {*} options options object provided by deepmerge's merge function
1189
- * @returns
1190
- */
1191
- exports.arrayCombineMerge = (target, source, options) => {
1192
- const destination = target.slice();
1193
- source.forEach((item, index) => {
1194
- if (typeof destination[index] === 'undefined') {
1195
- destination[index] = options.cloneUnlessOtherwiseSpecified(item, options);
1196
- }
1197
- else if (options.isMergeableObject(item)) {
1198
- destination[index] = deepmerge_1.default(target[index], item, options);
1199
- }
1200
- else if (target.indexOf(item) === -1) {
1201
- destination.push(item);
1202
- }
1203
- });
1204
- return destination;
1205
- };
1206
- /**
1207
- * Converts an enum into a CSV
1208
- * @param {object} manifestSection - manifestSection where the key exists
1209
- * @param {object} configPart - Property as mentioned in config file
1210
- * @param {string} key - Property to be exported to manifest
1211
- */
1212
- function convertEnumToCSV(manifestSection, configPart, key) {
1213
- manifestSection[key] = JSON.parse(JSON.stringify(configPart[key]));
1214
- // convert enum array to joined string
1215
- const field = configPart[key];
1216
- manifestSection[key] = field.join();
1217
- }
1218
- exports.convertEnumToCSV = convertEnumToCSV;
1219
- /**
1220
- * Converts an action ID from the internal format (schema, config) to the stable ID representation
1221
- * @param actionId - the (unique) internal format of the action ID
1222
- * @returns the converted action ID
1223
- */
1224
- function convertActionKeyToStableId(actionId) {
1225
- return (actionId.indexOf('??') > -1 ? actionId.split('??')[1] : actionId).replace(/@/g, '::');
1226
- }
1227
- exports.convertActionKeyToStableId = convertActionKeyToStableId;
1228
- //# sourceMappingURL=utils.js.map