@sap/ux-specification 1.96.2 → 1.96.5

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 (449) hide show
  1. package/CHANGELOG.md +66 -3
  2. package/dist/documentation/runDocu-min.js +1 -1
  3. package/dist/documentation/styleDocu.css +7 -14
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  5. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  6. package/dist/documentation/v2/v2-ListReport.html +1 -1
  7. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  8. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  9. package/dist/documentation/v4/v4-AnalyticalListPage.html +1 -1
  10. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  11. package/dist/documentation/v4/v4-ListReport.html +1 -1
  12. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  13. package/dist/index-min.js +1 -1
  14. package/dist/index-min.js.LICENSE.txt +0 -71
  15. package/dist/schemas/v2/AnalyticalListPageConfig.json +175 -15
  16. package/dist/schemas/v2/ApplicationV2.json +31 -0
  17. package/dist/schemas/v2/ListReportConfig.json +187 -15
  18. package/dist/schemas/v2/ObjectPageConfig.json +127 -33
  19. package/dist/schemas/v2/OverviewPageConfig.json +57 -16
  20. package/dist/schemas/v4/AnalyticalListPageConfig.json +122 -76
  21. package/dist/schemas/v4/ListReportConfig.json +122 -76
  22. package/dist/schemas/v4/ObjectPageConfig.json +144 -64
  23. package/dist/specification/v2/index-min.js +1 -1
  24. package/dist/specification/v4/index-min.js +1 -1
  25. package/dist/src/apiTypes.d.ts +5 -2
  26. package/dist/src/specification/v2/ApplicationV2.d.ts +21 -0
  27. package/dist/src/specification/v2/controls/Action.d.ts +19 -2
  28. package/dist/src/specification/v2/controls/FilterBar.d.ts +70 -22
  29. package/dist/src/specification/v2/controls/Footer.d.ts +20 -0
  30. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +4 -0
  31. package/dist/src/specification/v2/controls/Table.d.ts +12 -1
  32. package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -8
  33. package/dist/src/specification/v2/controls/index.d.ts +1 -2
  34. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +2 -1
  35. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -1
  36. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +36 -2
  37. package/dist/src/specification/v4/controls/ObjectPageFooter.d.ts +2 -2
  38. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +7 -7
  39. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +21 -6
  40. package/dist/src/specification/v4/controls/Table.d.ts +1 -6
  41. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +59 -10
  42. package/dist/src/sync/common/decoration/control.d.ts +11 -1
  43. package/dist/src/sync/common/generate/objectPage.d.ts +9 -0
  44. package/dist/src/sync/common/generate/utils.d.ts +30 -1
  45. package/dist/src/sync/common/import/utils.d.ts +8 -1
  46. package/dist/src/sync/common/types.d.ts +30 -16
  47. package/dist/src/sync/common/utils.d.ts +4 -3
  48. package/dist/src/sync/v2/application.d.ts +3 -1
  49. package/dist/src/sync/v2/export/controls/Action.d.ts +15 -0
  50. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +18 -6
  51. package/dist/src/sync/v2/export/controls/Fragment.d.ts +1 -1
  52. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +2 -2
  53. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +2 -2
  54. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -0
  55. package/dist/src/sync/v2/export/controls/Table.d.ts +1 -0
  56. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +18 -2
  57. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +2 -1
  58. package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -1
  59. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -1
  60. package/dist/src/sync/v2/export/view-controller-generator.d.ts +16 -21
  61. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -5
  62. package/dist/src/sync/v2/generate/utils.d.ts +22 -11
  63. package/dist/src/sync/v2/import/common/index.d.ts +22 -4
  64. package/dist/src/sync/v2/import/pages/listReport.d.ts +0 -5
  65. package/dist/src/sync/v2/import/utils.d.ts +4 -6
  66. package/dist/src/sync/v2/types.d.ts +8 -1
  67. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +13 -4
  68. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +10 -2
  69. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +5 -1
  70. package/dist/src/sync/v4/export/exportCustomColumn.d.ts +13 -0
  71. package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +2 -2
  72. package/dist/src/sync/v4/export/pages/ListReport.d.ts +2 -2
  73. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
  74. package/dist/src/sync/v4/export/types.d.ts +3 -0
  75. package/dist/src/sync/v4/generate/generate.d.ts +4 -2
  76. package/dist/src/sync/v4/generate/listReport.d.ts +7 -6
  77. package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +2 -2
  78. package/dist/src/sync/v4/import/pages/listReport.d.ts +3 -3
  79. package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
  80. package/dist/src/sync/v4/utils/utils.d.ts +32 -1
  81. package/dist/test/unit/utils.test.d.ts +1 -1
  82. package/package.json +19 -17
  83. package/dist/scripts/extractDocu.js +0 -488
  84. package/dist/scripts/extractDocu.js.map +0 -1
  85. package/dist/scripts/runDocu.js +0 -577
  86. package/dist/scripts/runDocu.js.map +0 -1
  87. package/dist/scripts/spec.js +0 -114
  88. package/dist/scripts/spec.js.map +0 -1
  89. package/dist/scripts/to-json-schema.js +0 -130
  90. package/dist/scripts/to-json-schema.js.map +0 -1
  91. package/dist/src/api.js +0 -184
  92. package/dist/src/api.js.map +0 -1
  93. package/dist/src/apiTypes.js +0 -17
  94. package/dist/src/apiTypes.js.map +0 -1
  95. package/dist/src/extensionLogger.js +0 -39
  96. package/dist/src/extensionLogger.js.map +0 -1
  97. package/dist/src/i18n/i18n.js +0 -25
  98. package/dist/src/i18n/i18n.js.map +0 -1
  99. package/dist/src/index.js +0 -13
  100. package/dist/src/index.js.map +0 -1
  101. package/dist/src/project.js +0 -143
  102. package/dist/src/project.js.map +0 -1
  103. package/dist/src/specification/common/Application.js +0 -3
  104. package/dist/src/specification/common/Application.js.map +0 -1
  105. package/dist/src/specification/common/i18n.json +0 -1
  106. package/dist/src/specification/common/index.js +0 -10
  107. package/dist/src/specification/common/index.js.map +0 -1
  108. package/dist/src/specification/common/page.js +0 -33
  109. package/dist/src/specification/common/page.js.map +0 -1
  110. package/dist/src/specification/common/types.js +0 -20
  111. package/dist/src/specification/common/types.js.map +0 -1
  112. package/dist/src/specification/common/webapp/manifest/Manifest.js +0 -17
  113. package/dist/src/specification/common/webapp/manifest/Manifest.js.map +0 -1
  114. package/dist/src/specification/common/webapp/manifest/index.js +0 -8
  115. package/dist/src/specification/common/webapp/manifest/index.js.map +0 -1
  116. package/dist/src/specification/common/webapp/manifest/sapOvp.js +0 -9
  117. package/dist/src/specification/common/webapp/manifest/sapOvp.js.map +0 -1
  118. package/dist/src/specification/common/webapp/manifest/sapUi5.js +0 -14
  119. package/dist/src/specification/common/webapp/manifest/sapUi5.js.map +0 -1
  120. package/dist/src/specification/schemaAccess.js +0 -65
  121. package/dist/src/specification/schemaAccess.js.map +0 -1
  122. package/dist/src/specification/v2/ApplicationV2.js +0 -9
  123. package/dist/src/specification/v2/ApplicationV2.js.map +0 -1
  124. package/dist/src/specification/v2/controls/Action.js +0 -3
  125. package/dist/src/specification/v2/controls/Action.js.map +0 -1
  126. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js +0 -36
  127. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js.map +0 -1
  128. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js +0 -3
  129. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js.map +0 -1
  130. package/dist/src/specification/v2/controls/Card.js +0 -72
  131. package/dist/src/specification/v2/controls/Card.js.map +0 -1
  132. package/dist/src/specification/v2/controls/Facets.js +0 -3
  133. package/dist/src/specification/v2/controls/Facets.js.map +0 -1
  134. package/dist/src/specification/v2/controls/Field.js +0 -3
  135. package/dist/src/specification/v2/controls/Field.js.map +0 -1
  136. package/dist/src/specification/v2/controls/FilterBar.js +0 -54
  137. package/dist/src/specification/v2/controls/FilterBar.js.map +0 -1
  138. package/dist/src/specification/v2/controls/ObjectPageChart.js +0 -3
  139. package/dist/src/specification/v2/controls/ObjectPageChart.js.map +0 -1
  140. package/dist/src/specification/v2/controls/ObjectPageFooter.d.ts +0 -11
  141. package/dist/src/specification/v2/controls/ObjectPageFooter.js +0 -3
  142. package/dist/src/specification/v2/controls/ObjectPageFooter.js.map +0 -1
  143. package/dist/src/specification/v2/controls/ObjectPageFooterAction.d.ts +0 -28
  144. package/dist/src/specification/v2/controls/ObjectPageFooterAction.js +0 -3
  145. package/dist/src/specification/v2/controls/ObjectPageFooterAction.js.map +0 -1
  146. package/dist/src/specification/v2/controls/ObjectPageForm.js +0 -3
  147. package/dist/src/specification/v2/controls/ObjectPageForm.js.map +0 -1
  148. package/dist/src/specification/v2/controls/ObjectPageHeader.js +0 -3
  149. package/dist/src/specification/v2/controls/ObjectPageHeader.js.map +0 -1
  150. package/dist/src/specification/v2/controls/ObjectPageLayout.js +0 -3
  151. package/dist/src/specification/v2/controls/ObjectPageLayout.js.map +0 -1
  152. package/dist/src/specification/v2/controls/ObjectPageSection.js +0 -13
  153. package/dist/src/specification/v2/controls/ObjectPageSection.js.map +0 -1
  154. package/dist/src/specification/v2/controls/ObjectPageTable.js +0 -7
  155. package/dist/src/specification/v2/controls/ObjectPageTable.js.map +0 -1
  156. package/dist/src/specification/v2/controls/ObjectPageToolBar.js +0 -3
  157. package/dist/src/specification/v2/controls/ObjectPageToolBar.js.map +0 -1
  158. package/dist/src/specification/v2/controls/Table.js +0 -42
  159. package/dist/src/specification/v2/controls/Table.js.map +0 -1
  160. package/dist/src/specification/v2/controls/ToolBar.js +0 -3
  161. package/dist/src/specification/v2/controls/ToolBar.js.map +0 -1
  162. package/dist/src/specification/v2/controls/index.js +0 -12
  163. package/dist/src/specification/v2/controls/index.js.map +0 -1
  164. package/dist/src/specification/v2/index.js +0 -10
  165. package/dist/src/specification/v2/index.js.map +0 -1
  166. package/dist/src/specification/v2/page.js +0 -3
  167. package/dist/src/specification/v2/page.js.map +0 -1
  168. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js +0 -3
  169. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js.map +0 -1
  170. package/dist/src/specification/v2/pages/ListReportConfig.js +0 -3
  171. package/dist/src/specification/v2/pages/ListReportConfig.js.map +0 -1
  172. package/dist/src/specification/v2/pages/ObjectPageConfig.js +0 -3
  173. package/dist/src/specification/v2/pages/ObjectPageConfig.js.map +0 -1
  174. package/dist/src/specification/v2/pages/OverviewPageConfig.js +0 -8
  175. package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +0 -1
  176. package/dist/src/specification/v2/pages/index.js +0 -7
  177. package/dist/src/specification/v2/pages/index.js.map +0 -1
  178. package/dist/src/specification/v2/webapp/index.js +0 -7
  179. package/dist/src/specification/v2/webapp/index.js.map +0 -1
  180. package/dist/src/specification/v2/webapp/manifest/index.js +0 -8
  181. package/dist/src/specification/v2/webapp/manifest/index.js.map +0 -1
  182. package/dist/src/specification/v2/webapp/manifest/sapUi.js +0 -3
  183. package/dist/src/specification/v2/webapp/manifest/sapUi.js.map +0 -1
  184. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -10
  185. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +0 -1
  186. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +0 -7
  187. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +0 -1
  188. package/dist/src/specification/v4/ApplicationV4.js +0 -3
  189. package/dist/src/specification/v4/ApplicationV4.js.map +0 -1
  190. package/dist/src/specification/v4/controls/FilterBar.js +0 -3
  191. package/dist/src/specification/v4/controls/FilterBar.js.map +0 -1
  192. package/dist/src/specification/v4/controls/ObjectPageFooter.js +0 -3
  193. package/dist/src/specification/v4/controls/ObjectPageFooter.js.map +0 -1
  194. package/dist/src/specification/v4/controls/ObjectPageHeader.js +0 -3
  195. package/dist/src/specification/v4/controls/ObjectPageHeader.js.map +0 -1
  196. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js +0 -7
  197. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.js.map +0 -1
  198. package/dist/src/specification/v4/controls/ObjectPageLayout.js +0 -8
  199. package/dist/src/specification/v4/controls/ObjectPageLayout.js.map +0 -1
  200. package/dist/src/specification/v4/controls/ObjectPageSection.js +0 -12
  201. package/dist/src/specification/v4/controls/ObjectPageSection.js.map +0 -1
  202. package/dist/src/specification/v4/controls/ObjectPageTable.js +0 -3
  203. package/dist/src/specification/v4/controls/ObjectPageTable.js.map +0 -1
  204. package/dist/src/specification/v4/controls/ObjectPageToolBar.js +0 -3
  205. package/dist/src/specification/v4/controls/ObjectPageToolBar.js.map +0 -1
  206. package/dist/src/specification/v4/controls/Table.js +0 -30
  207. package/dist/src/specification/v4/controls/Table.js.map +0 -1
  208. package/dist/src/specification/v4/controls/ToolBar.js +0 -8
  209. package/dist/src/specification/v4/controls/ToolBar.js.map +0 -1
  210. package/dist/src/specification/v4/controls/index.js +0 -11
  211. package/dist/src/specification/v4/controls/index.js.map +0 -1
  212. package/dist/src/specification/v4/index.js +0 -9
  213. package/dist/src/specification/v4/index.js.map +0 -1
  214. package/dist/src/specification/v4/page.js +0 -3
  215. package/dist/src/specification/v4/page.js.map +0 -1
  216. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
  217. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
  218. package/dist/src/specification/v4/pages/ListReportConfig.js +0 -9
  219. package/dist/src/specification/v4/pages/ListReportConfig.js.map +0 -1
  220. package/dist/src/specification/v4/pages/ObjectPageConfig.js +0 -8
  221. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +0 -1
  222. package/dist/src/specification/v4/pages/index.js +0 -8
  223. package/dist/src/specification/v4/pages/index.js.map +0 -1
  224. package/dist/src/specification/v4/webapp/index.js +0 -7
  225. package/dist/src/specification/v4/webapp/index.js.map +0 -1
  226. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js +0 -16
  227. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +0 -1
  228. package/dist/src/specification/v4/webapp/manifest/index.js +0 -10
  229. package/dist/src/specification/v4/webapp/manifest/index.js.map +0 -1
  230. package/dist/src/specification/v4/webapp/manifest/sapUi5.js +0 -11
  231. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +0 -1
  232. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js +0 -14
  233. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +0 -1
  234. package/dist/src/sync/common/appProvider.js +0 -57
  235. package/dist/src/sync/common/appProvider.js.map +0 -1
  236. package/dist/src/sync/common/decoration/control.js +0 -180
  237. package/dist/src/sync/common/decoration/control.js.map +0 -1
  238. package/dist/src/sync/common/decoration/decorators.js +0 -43
  239. package/dist/src/sync/common/decoration/decorators.js.map +0 -1
  240. package/dist/src/sync/common/decoration/factory.js +0 -50
  241. package/dist/src/sync/common/decoration/factory.js.map +0 -1
  242. package/dist/src/sync/common/decoration/flex.js +0 -8
  243. package/dist/src/sync/common/decoration/flex.js.map +0 -1
  244. package/dist/src/sync/common/decoration/index.js +0 -9
  245. package/dist/src/sync/common/decoration/index.js.map +0 -1
  246. package/dist/src/sync/common/flexUtils.js +0 -95
  247. package/dist/src/sync/common/flexUtils.js.map +0 -1
  248. package/dist/src/sync/common/generate/index.js +0 -8
  249. package/dist/src/sync/common/generate/index.js.map +0 -1
  250. package/dist/src/sync/common/generate/objectPage.js +0 -336
  251. package/dist/src/sync/common/generate/objectPage.js.map +0 -1
  252. package/dist/src/sync/common/generate/utils.js +0 -205
  253. package/dist/src/sync/common/generate/utils.js.map +0 -1
  254. package/dist/src/sync/common/i18n.json +0 -21
  255. package/dist/src/sync/common/import/utils.js +0 -75
  256. package/dist/src/sync/common/import/utils.js.map +0 -1
  257. package/dist/src/sync/common/importProject.js +0 -351
  258. package/dist/src/sync/common/importProject.js.map +0 -1
  259. package/dist/src/sync/common/index.js +0 -15
  260. package/dist/src/sync/common/index.js.map +0 -1
  261. package/dist/src/sync/common/types.js +0 -82
  262. package/dist/src/sync/common/types.js.map +0 -1
  263. package/dist/src/sync/common/utils.js +0 -1056
  264. package/dist/src/sync/common/utils.js.map +0 -1
  265. package/dist/src/sync/i18n.js +0 -15
  266. package/dist/src/sync/i18n.js.map +0 -1
  267. package/dist/src/sync/v2/application.js +0 -170
  268. package/dist/src/sync/v2/application.js.map +0 -1
  269. package/dist/src/sync/v2/export/controls/Action.js +0 -74
  270. package/dist/src/sync/v2/export/controls/Action.js.map +0 -1
  271. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +0 -72
  272. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +0 -1
  273. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +0 -56
  274. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +0 -1
  275. package/dist/src/sync/v2/export/controls/Card.js +0 -655
  276. package/dist/src/sync/v2/export/controls/Card.js.map +0 -1
  277. package/dist/src/sync/v2/export/controls/Field.js +0 -32
  278. package/dist/src/sync/v2/export/controls/Field.js.map +0 -1
  279. package/dist/src/sync/v2/export/controls/FilterBar.js +0 -245
  280. package/dist/src/sync/v2/export/controls/FilterBar.js.map +0 -1
  281. package/dist/src/sync/v2/export/controls/FormAction.js +0 -95
  282. package/dist/src/sync/v2/export/controls/FormAction.js.map +0 -1
  283. package/dist/src/sync/v2/export/controls/Fragment.js +0 -401
  284. package/dist/src/sync/v2/export/controls/Fragment.js.map +0 -1
  285. package/dist/src/sync/v2/export/controls/ObjectPageChart.js +0 -37
  286. package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +0 -1
  287. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +0 -110
  288. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +0 -1
  289. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +0 -62
  290. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +0 -1
  291. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +0 -60
  292. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +0 -1
  293. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +0 -62
  294. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +0 -1
  295. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +0 -59
  296. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +0 -1
  297. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +0 -144
  298. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +0 -1
  299. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +0 -323
  300. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +0 -1
  301. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +0 -59
  302. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +0 -1
  303. package/dist/src/sync/v2/export/controls/Table.js +0 -667
  304. package/dist/src/sync/v2/export/controls/Table.js.map +0 -1
  305. package/dist/src/sync/v2/export/controls/TableColumn.js +0 -41
  306. package/dist/src/sync/v2/export/controls/TableColumn.js.map +0 -1
  307. package/dist/src/sync/v2/export/controls/ToolBar.js +0 -6
  308. package/dist/src/sync/v2/export/controls/ToolBar.js.map +0 -1
  309. package/dist/src/sync/v2/export/controls/index.js +0 -26
  310. package/dist/src/sync/v2/export/controls/index.js.map +0 -1
  311. package/dist/src/sync/v2/export/export.js +0 -592
  312. package/dist/src/sync/v2/export/export.js.map +0 -1
  313. package/dist/src/sync/v2/export/exportPage.js +0 -312
  314. package/dist/src/sync/v2/export/exportPage.js.map +0 -1
  315. package/dist/src/sync/v2/export/factory.js +0 -59
  316. package/dist/src/sync/v2/export/factory.js.map +0 -1
  317. package/dist/src/sync/v2/export/manifest.js +0 -117
  318. package/dist/src/sync/v2/export/manifest.js.map +0 -1
  319. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +0 -41
  320. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +0 -1
  321. package/dist/src/sync/v2/export/pages/ListReport.js +0 -38
  322. package/dist/src/sync/v2/export/pages/ListReport.js.map +0 -1
  323. package/dist/src/sync/v2/export/pages/ObjectPage.js +0 -100
  324. package/dist/src/sync/v2/export/pages/ObjectPage.js.map +0 -1
  325. package/dist/src/sync/v2/export/pages/OverviewPage.js +0 -178
  326. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +0 -1
  327. package/dist/src/sync/v2/export/pages/index.js +0 -10
  328. package/dist/src/sync/v2/export/pages/index.js.map +0 -1
  329. package/dist/src/sync/v2/export/view-controller-generator.js +0 -157
  330. package/dist/src/sync/v2/export/view-controller-generator.js.map +0 -1
  331. package/dist/src/sync/v2/generate/analyticalListReport.js +0 -87
  332. package/dist/src/sync/v2/generate/analyticalListReport.js.map +0 -1
  333. package/dist/src/sync/v2/generate/generate.js +0 -96
  334. package/dist/src/sync/v2/generate/generate.js.map +0 -1
  335. package/dist/src/sync/v2/generate/index.js +0 -14
  336. package/dist/src/sync/v2/generate/index.js.map +0 -1
  337. package/dist/src/sync/v2/generate/listReport.js +0 -113
  338. package/dist/src/sync/v2/generate/listReport.js.map +0 -1
  339. package/dist/src/sync/v2/generate/objectPage.js +0 -556
  340. package/dist/src/sync/v2/generate/objectPage.js.map +0 -1
  341. package/dist/src/sync/v2/generate/overviewPage.js +0 -73
  342. package/dist/src/sync/v2/generate/overviewPage.js.map +0 -1
  343. package/dist/src/sync/v2/generate/utils.js +0 -347
  344. package/dist/src/sync/v2/generate/utils.js.map +0 -1
  345. package/dist/src/sync/v2/import/app/appProvider.js +0 -122
  346. package/dist/src/sync/v2/import/app/appProvider.js.map +0 -1
  347. package/dist/src/sync/v2/import/app/ovpProvider.js +0 -33
  348. package/dist/src/sync/v2/import/app/ovpProvider.js.map +0 -1
  349. package/dist/src/sync/v2/import/common/index.js +0 -213
  350. package/dist/src/sync/v2/import/common/index.js.map +0 -1
  351. package/dist/src/sync/v2/import/controls/table.js +0 -31
  352. package/dist/src/sync/v2/import/controls/table.js.map +0 -1
  353. package/dist/src/sync/v2/import/getPageType.js +0 -1
  354. package/dist/src/sync/v2/import/getPageType.js.map +0 -1
  355. package/dist/src/sync/v2/import/index.js +0 -11
  356. package/dist/src/sync/v2/import/index.js.map +0 -1
  357. package/dist/src/sync/v2/import/pages/analyticalListPage.js +0 -104
  358. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +0 -1
  359. package/dist/src/sync/v2/import/pages/listReport.js +0 -234
  360. package/dist/src/sync/v2/import/pages/listReport.js.map +0 -1
  361. package/dist/src/sync/v2/import/pages/objectPage.js +0 -620
  362. package/dist/src/sync/v2/import/pages/objectPage.js.map +0 -1
  363. package/dist/src/sync/v2/import/pages/overviewPage.js +0 -113
  364. package/dist/src/sync/v2/import/pages/overviewPage.js.map +0 -1
  365. package/dist/src/sync/v2/import/utils.js +0 -103
  366. package/dist/src/sync/v2/import/utils.js.map +0 -1
  367. package/dist/src/sync/v2/types.js +0 -26
  368. package/dist/src/sync/v2/types.js.map +0 -1
  369. package/dist/src/sync/v4/application.js +0 -80
  370. package/dist/src/sync/v4/application.js.map +0 -1
  371. package/dist/src/sync/v4/export/controls/FilterBar.js +0 -6
  372. package/dist/src/sync/v4/export/controls/FilterBar.js.map +0 -1
  373. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js +0 -136
  374. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +0 -1
  375. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +0 -55
  376. package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +0 -1
  377. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +0 -65
  378. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +0 -1
  379. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js +0 -24
  380. package/dist/src/sync/v4/export/controls/ObjectPageLayout.js.map +0 -1
  381. package/dist/src/sync/v4/export/controls/ObjectPageTable.js +0 -245
  382. package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +0 -1
  383. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -87
  384. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +0 -1
  385. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +0 -21
  386. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +0 -1
  387. package/dist/src/sync/v4/export/controls/Table.js +0 -318
  388. package/dist/src/sync/v4/export/controls/Table.js.map +0 -1
  389. package/dist/src/sync/v4/export/controls/TableColumn.js +0 -97
  390. package/dist/src/sync/v4/export/controls/TableColumn.js.map +0 -1
  391. package/dist/src/sync/v4/export/controls/ToolBar.js +0 -6
  392. package/dist/src/sync/v4/export/controls/ToolBar.js.map +0 -1
  393. package/dist/src/sync/v4/export/controls/ToolBarAction.js +0 -21
  394. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +0 -1
  395. package/dist/src/sync/v4/export/controls/index.js +0 -18
  396. package/dist/src/sync/v4/export/controls/index.js.map +0 -1
  397. package/dist/src/sync/v4/export/export.js +0 -418
  398. package/dist/src/sync/v4/export/export.js.map +0 -1
  399. package/dist/src/sync/v4/export/factory.js +0 -44
  400. package/dist/src/sync/v4/export/factory.js.map +0 -1
  401. package/dist/src/sync/v4/export/flexibleColumnLayout.js +0 -114
  402. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +0 -1
  403. package/dist/src/sync/v4/export/manifest.js +0 -208
  404. package/dist/src/sync/v4/export/manifest.js.map +0 -1
  405. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
  406. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
  407. package/dist/src/sync/v4/export/pages/ListReport.js +0 -33
  408. package/dist/src/sync/v4/export/pages/ListReport.js.map +0 -1
  409. package/dist/src/sync/v4/export/pages/ObjectPage.js +0 -39
  410. package/dist/src/sync/v4/export/pages/ObjectPage.js.map +0 -1
  411. package/dist/src/sync/v4/export/pages/index.js +0 -9
  412. package/dist/src/sync/v4/export/pages/index.js.map +0 -1
  413. package/dist/src/sync/v4/export/types.js +0 -3
  414. package/dist/src/sync/v4/export/types.js.map +0 -1
  415. package/dist/src/sync/v4/export/utils.js +0 -26
  416. package/dist/src/sync/v4/export/utils.js.map +0 -1
  417. package/dist/src/sync/v4/generate/generate.js +0 -47
  418. package/dist/src/sync/v4/generate/generate.js.map +0 -1
  419. package/dist/src/sync/v4/generate/index.js +0 -10
  420. package/dist/src/sync/v4/generate/index.js.map +0 -1
  421. package/dist/src/sync/v4/generate/listReport.js +0 -96
  422. package/dist/src/sync/v4/generate/listReport.js.map +0 -1
  423. package/dist/src/sync/v4/generate/objectPage.js +0 -395
  424. package/dist/src/sync/v4/generate/objectPage.js.map +0 -1
  425. package/dist/src/sync/v4/import/app/appProvider.js +0 -313
  426. package/dist/src/sync/v4/import/app/appProvider.js.map +0 -1
  427. package/dist/src/sync/v4/import/fragment.js +0 -130
  428. package/dist/src/sync/v4/import/fragment.js.map +0 -1
  429. package/dist/src/sync/v4/import/index.js +0 -9
  430. package/dist/src/sync/v4/import/index.js.map +0 -1
  431. package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -61
  432. package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
  433. package/dist/src/sync/v4/import/pages/listReport.js +0 -124
  434. package/dist/src/sync/v4/import/pages/listReport.js.map +0 -1
  435. package/dist/src/sync/v4/import/pages/objectPage.js +0 -231
  436. package/dist/src/sync/v4/import/pages/objectPage.js.map +0 -1
  437. package/dist/src/sync/v4/import/utils.js +0 -33
  438. package/dist/src/sync/v4/import/utils.js.map +0 -1
  439. package/dist/src/sync/v4/types.js +0 -3
  440. package/dist/src/sync/v4/types.js.map +0 -1
  441. package/dist/src/sync/v4/utils/StableIdHelper.js +0 -153
  442. package/dist/src/sync/v4/utils/StableIdHelper.js.map +0 -1
  443. package/dist/src/sync/v4/utils/utils.js +0 -94
  444. package/dist/src/sync/v4/utils/utils.js.map +0 -1
  445. package/dist/src/v2.js +0 -8
  446. package/dist/src/v2.js.map +0 -1
  447. package/dist/src/v4.js +0 -8
  448. package/dist/src/v4.js.map +0 -1
  449. package/dist/test/test-utils/metadataParser.d.ts +0 -19
@@ -1,114 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs_1 = require("fs");
4
- const path_1 = require("path");
5
- const project_1 = require("../src/project");
6
- const src_1 = require("../src");
7
- var ExecutionMode;
8
- (function (ExecutionMode) {
9
- ExecutionMode["Import"] = "import";
10
- })(ExecutionMode || (ExecutionMode = {}));
11
- /**
12
- * Write a single file
13
- * @param path - file path
14
- * @param content - file content
15
- */
16
- async function write(path, content) {
17
- return new Promise((resolve, reject) => {
18
- fs_1.writeFile(path, content, { encoding: 'utf8' }, (err) => {
19
- if (err) {
20
- reject(err);
21
- }
22
- else {
23
- resolve();
24
- }
25
- });
26
- });
27
- }
28
- /**
29
- * Write files, create target directory if not exists
30
- * @param directory - target directory
31
- * @param files - list of files with name and content
32
- */
33
- async function writeFiles(directory, files) {
34
- for (const file of files) {
35
- const path = path_1.join(directory, file.dataSourceUri);
36
- const targetDir = path_1.dirname(path);
37
- if (!(await project_1.isDirectory(targetDir))) {
38
- fs_1.mkdirSync(targetDir, { recursive: true });
39
- }
40
- await write(path_1.join(directory, file.dataSourceUri), file.fileContent);
41
- }
42
- }
43
- /**
44
- * Format the resulting files as string
45
- * @param files - list of files as {dataSourceUri: string, fileContent: string}
46
- */
47
- const formatterFileContent = (files) => files.reduce((result, file) => result + `\nFile: '${file.dataSourceUri}':\n${file.fileContent}`, '');
48
- /**
49
- * Get config and schemas from project
50
- * @param projectRoot - root of the project where package.json is located
51
- */
52
- async function importFiles(projectRoot, outputPath) {
53
- const { annotations, manifest, changes: flex } = await project_1.getProject(projectRoot);
54
- let resultString = '';
55
- const files = await src_1.importProject({
56
- annotations,
57
- manifest,
58
- flex
59
- });
60
- if (outputPath) {
61
- writeFiles(outputPath, files);
62
- resultString = `Files written to '${outputPath}'`;
63
- }
64
- else {
65
- resultString = formatterFileContent(files);
66
- }
67
- return resultString;
68
- }
69
- /**
70
- * Parse the command line parameters
71
- * @param args - content of process.argv
72
- */
73
- async function getParameters(args) {
74
- var _a;
75
- if (process.argv.length > 3) {
76
- const [mode, projectRoot, ...commandArgs] = args.slice(2);
77
- if (mode !== "import" /* Import */) {
78
- throw Error(`Unkown mode: '${mode}'. Please use '${"import" /* Import */}'`);
79
- }
80
- if (!(await project_1.isDirectory(projectRoot))) {
81
- throw Error(`Directory '${projectRoot}' doesn't exist.`);
82
- }
83
- const outputPath = (_a = commandArgs.find((arg) => arg.toLowerCase().startsWith('--output='))) === null || _a === void 0 ? void 0 : _a.substring(9);
84
- return {
85
- mode: "import" /* Import */,
86
- projectRoot,
87
- outputPath
88
- };
89
- }
90
- throw Error(`Usage: ${path_1.basename(args[0])} ${path_1.basename(args[1])} import <PROJECT_ROOT_PATH> [--output=<PATH>]`);
91
- }
92
- /**
93
- * Run the required execution mode, e.g. import a project
94
- * @param argv - command line arguments as string array
95
- */
96
- async function run(argv) {
97
- const parameters = await getParameters(argv);
98
- switch (parameters.mode) {
99
- case "import" /* Import */: {
100
- const result = await importFiles(parameters.projectRoot, parameters.outputPath);
101
- console.log(result);
102
- break;
103
- }
104
- default: {
105
- break;
106
- }
107
- }
108
- }
109
- /**
110
- * Usage through command line
111
- * node spec.js import <PROJECT_ROOT_PATH> [--output=<PATH>]
112
- */
113
- run(process.argv).catch((e) => console.error(e.message));
114
- //# sourceMappingURL=spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","sourceRoot":"","sources":["../../scripts/spec.ts"],"names":[],"mappings":";;AAAA,2BAA0C;AAC1C,+BAA+C;AAC/C,4CAAyD;AACzD,gCAA6C;AAO7C,IAAW,aAEV;AAFD,WAAW,aAAa;IACpB,kCAAiB,CAAA;AACrB,CAAC,EAFU,aAAa,KAAb,aAAa,QAEvB;AAED;;;;GAIG;AACH,KAAK,UAAU,KAAK,CAAC,IAAY,EAAE,OAAe;IAC9C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAQ,EAAE;QACzC,cAAS,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAQ,EAAE;YACzD,IAAI,GAAG,EAAE;gBACL,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;iBAAM;gBACH,OAAO,EAAE,CAAC;aACb;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,UAAU,CAAC,SAAiB,EAAE,KAAa;IACtD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACtB,MAAM,IAAI,GAAG,WAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,SAAS,GAAG,cAAO,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,CAAC,MAAM,qBAAW,CAAC,SAAS,CAAC,CAAC,EAAE;YACjC,cAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;SAC7C;QACD,MAAM,KAAK,CAAC,WAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,C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BAAkB,CAAC,CAAC;SAC5D;QACD,MAAM,UAAU,SAAG,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,0CAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QACtG,OAAO;YACH,IAAI,uBAAsB;YAC1B,WAAW;YACX,UAAU;SACb,CAAC;KACL;IACD,MAAM,KAAK,CAAC,UAAU,eAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,eAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,+CAA+C,CAAC,CAAC;AACjH,CAAC;AAED;;;GAGG;AACH,KAAK,UAAU,GAAG,CAAC,IAAc;IAC7B,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7C,QAAQ,UAAU,CAAC,IAAI,EAAE;QACrB,0BAAyB,CAAC,CAAC;YACvB,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;YAChF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,MAAM;SACT;QACD,OAAO,CAAC,CAAC;YACL,MAAM;SACT;KACJ;AACL,CAAC;AAED;;;GAGG;AACH,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC"}
@@ -1,130 +0,0 @@
1
- "use strict";
2
- var __importStar = (this && this.__importStar) || function (mod) {
3
- if (mod && mod.__esModule) return mod;
4
- var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
7
- return result;
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const path_1 = require("path");
11
- const fs = __importStar(require("fs"));
12
- const typescript_json_schema_1 = require("typescript-json-schema");
13
- const utils_1 = require("../src/sync/v2/generate/utils");
14
- const factory_1 = require("../src/sync/v2/export/factory");
15
- const factory_2 = require("../src/sync/v4/export/factory");
16
- const common_1 = require("../src/specification/common");
17
- const compilerOptions = {
18
- skipLibCheck: true,
19
- types: ['node', '@sapui5/ts-types']
20
- };
21
- /**
22
- * Convert interfaces to json schema
23
- * @param path - path to interfaces
24
- * @param files - file names, filename must match the main symbol (interface) in the content of the file
25
- */
26
- function convertInterfaces(path, files, version) {
27
- const schemas = [];
28
- const paths = [];
29
- files.forEach((file) => {
30
- paths.push(path_1.join(path, file));
31
- });
32
- files.forEach((file) => {
33
- const generator = typescript_json_schema_1.buildGenerator(typescript_json_schema_1.getProgramFromFiles([path_1.join(path, file)], compilerOptions), {
34
- noExtraProps: true,
35
- required: true,
36
- validationKeywords: [
37
- 'i18nClassification',
38
- 'isViewNode',
39
- 'displayName',
40
- 'dataType',
41
- 'controlProperty',
42
- 'annotationType',
43
- 'annotationPath'
44
- ]
45
- });
46
- const filename = file.replace('ts', 'json');
47
- schemas[filename] = generator.getSchemaForSymbol(file.replace('.ts', ''));
48
- if (file.search('Config') > -1) {
49
- //it is a page template
50
- let pageType;
51
- let factory;
52
- if (version === common_1.FioriElementsVersion.v2) {
53
- factory = new factory_1.MetadataInstanceFactoryV2();
54
- pageType = file.split('Config')[0];
55
- }
56
- else {
57
- factory = new factory_2.MetadataInstanceFactoryV4();
58
- pageType = file.split('Config')[0];
59
- }
60
- const page = factory.createPageInstance(pageType, {});
61
- utils_1.processMetadata(schemas[filename], schemas[filename], page, pageType, factory);
62
- }
63
- });
64
- return schemas;
65
- }
66
- exports.convertInterfaces = convertInterfaces;
67
- function writeSchemasToFile(path, schemas, version) {
68
- const dir = path_1.join(path, version);
69
- if (!fs.existsSync(dir)) {
70
- fs.mkdirSync(dir);
71
- }
72
- for (const schema in schemas) {
73
- const file = path_1.join(dir, schema);
74
- fs.writeFile(file, JSON.stringify(schemas[schema], null, 2), function (err) {
75
- if (err) {
76
- return console.log(err);
77
- }
78
- console.log("File: '" + file + "' saved.");
79
- });
80
- }
81
- }
82
- function convertPagesOfFEVersion(schemas, paths, version, outputPath) {
83
- let fileNames = [];
84
- for (let index = 0; index < paths.length; index++) {
85
- fs.readdir(paths[index], function (err, files) {
86
- if (err) {
87
- return console.error(err);
88
- }
89
- files.forEach(function (pathName) {
90
- const fileName = path_1.basename(pathName);
91
- if (fileName !== 'index.ts') {
92
- if (!paths[index]) {
93
- paths[index] = pathName.replace(fileName, '');
94
- }
95
- fileNames.push(fileName);
96
- }
97
- });
98
- schemas = convertInterfaces(paths[index], fileNames, version);
99
- fileNames = [];
100
- writeSchemasToFile(outputPath, schemas, version);
101
- });
102
- }
103
- }
104
- /**
105
- * Converts all application and page definitions to JSON schema
106
- * @param outputPath - path to write to
107
- */
108
- async function toJsonSchema(outputPath) {
109
- let schemas = [];
110
- //Pages V2
111
- let paths = [];
112
- paths.push(path_1.join('src', 'specification', 'v2', 'pages'));
113
- convertPagesOfFEVersion(schemas, paths, common_1.FioriElementsVersion.v2, outputPath);
114
- //Pages V4
115
- paths = [];
116
- paths.push(path_1.join('src', 'specification', 'v4', 'pages'));
117
- convertPagesOfFEVersion(schemas, paths, common_1.FioriElementsVersion.v4, outputPath);
118
- //App V2
119
- schemas = convertInterfaces(path_1.join('src', 'specification', 'v2'), ['ApplicationV2.ts'], common_1.FioriElementsVersion.v2);
120
- writeSchemasToFile(outputPath, schemas, 'v2');
121
- //App V4
122
- schemas = convertInterfaces(path_1.join('src', 'specification', 'v4'), ['ApplicationV4.ts'], common_1.FioriElementsVersion.v4);
123
- writeSchemasToFile(outputPath, schemas, 'v4');
124
- }
125
- const dir = path_1.join(__dirname, '..', '..', 'schemas');
126
- if (!fs.existsSync(dir)) {
127
- fs.mkdirSync(dir);
128
- }
129
- toJsonSchema(dir);
130
- //# sourceMappingURL=to-json-schema.js.map
@@ -1 +0,0 @@
1
- {"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EAAE,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,WAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,uBAAuB,CAAC,OAAO,EAAE,KAAK,EAAE,6BAAoB,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IAC7E,UAAU;IACV,KAAK,GAAG,EAAE,CAAC;IACX,KAAK,CAAC,IAAI,CAAC,WAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,uBAAuB,CAAC,OAAO,EAAE,KAAK,EAAE,6BAAoB,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IAC7E,QAAQ;IACR,OAAO,GAAG,iBAAiB,CAAC,WAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6BAAoB,CAAC,EAAE,CAAC,CAAC;IAC/G,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,QAAQ;IACR,OAAO,GAAG,iBAAiB,CAAC,WAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6BAAoB,CAAC,EAAE,CAAC,CAAC;IAC/G,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,GAAG,GAAG,WAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AACnD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;IACrB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACrB;AACD,YAAY,CAAC,GAAG,CAAC,CAAC"}
package/dist/src/api.js DELETED
@@ -1,184 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * This file implements the interface 'Specification' from ./types and serves as API to specification
5
- */
6
- const page_1 = require("./specification/common/page");
7
- const schemaAccess_1 = require("./specification/schemaAccess");
8
- const apiTypes_1 = require("./apiTypes");
9
- const generate_1 = require("./sync/v2/generate");
10
- const generate_2 = require("./sync/v4/generate");
11
- const exportPage_1 = require("./sync/v2/export/exportPage");
12
- const import_1 = require("./sync/v2/import");
13
- const export_1 = require("./sync/v4/export/export");
14
- const import_2 = require("./sync/v4/import");
15
- const common_1 = require("./sync/common");
16
- /**
17
- * Return the generic (project independent) JSON schema
18
- * @param specification - reference to spec
19
- * @param version - Fiori elements version (v2 or v4)
20
- * @param schemaType - type of the schema, e.g. ListReport, ObjectPage
21
- */
22
- var schemaAccess_2 = require("./specification/schemaAccess");
23
- exports.getGenericSchema = schemaAccess_2.getGenericSchema;
24
- /**
25
- * Generate JSON schema for a given Fiori elements version and page type
26
- * @param generateParameters: the input structure that contains the version, schema type, and parameters
27
- */
28
- function generateSchema(generateParameters) {
29
- let schema;
30
- if (generateParameters[page_1.FioriElementsVersion.v2]) {
31
- /**
32
- * Handle v2 schema generation
33
- */
34
- const v2Params = generateParameters[page_1.FioriElementsVersion.v2];
35
- if (v2Params[schemaAccess_1.SchemaType.ListReport]) {
36
- const { genericSchema, entitySet, annotations, manifest, fragments, logger } = v2Params[schemaAccess_1.SchemaType.ListReport];
37
- schema = generate_1.generateListReportInterfaceV2(genericSchema, entitySet, annotations, manifest, fragments, logger);
38
- }
39
- else if (v2Params[schemaAccess_1.SchemaType.ObjectPage]) {
40
- const { genericSchema, entitySet, annotations, manifest, fragments, logger } = v2Params[schemaAccess_1.SchemaType.ObjectPage];
41
- schema = generate_1.generateObjectPageInterfaceV2(genericSchema, entitySet, annotations, manifest, fragments, logger);
42
- }
43
- else if (v2Params[schemaAccess_1.SchemaType.OverviewPage]) {
44
- const { genericSchema, manifest } = v2Params[schemaAccess_1.SchemaType.OverviewPage];
45
- schema = generate_1.generateOVPInterfaceV2(genericSchema, manifest);
46
- }
47
- else if (v2Params[schemaAccess_1.SchemaType.AnalyticalListPage]) {
48
- const { genericSchema, entitySet, annotations, manifest, fragments, logger } = v2Params[schemaAccess_1.SchemaType.AnalyticalListPage];
49
- schema = generate_1.generateAnalyticalListPageInterfaceV2(genericSchema, entitySet, annotations, manifest, fragments, logger);
50
- }
51
- }
52
- else if (generateParameters[page_1.FioriElementsVersion.v4]) {
53
- /**
54
- * Handle v4 schema generation
55
- */
56
- const v4Params = generateParameters[page_1.FioriElementsVersion.v4];
57
- if (v4Params[schemaAccess_1.SchemaType.ListReport]) {
58
- const { genericSchema, entitySet, annotations, logger } = v4Params[schemaAccess_1.SchemaType.ListReport];
59
- schema = generate_2.generateListReportInterfaceV4(genericSchema, entitySet, annotations, logger);
60
- }
61
- else if (v4Params[schemaAccess_1.SchemaType.ObjectPage]) {
62
- const { genericSchema, entitySet, annotations, manifest, logger } = v4Params[schemaAccess_1.SchemaType.ObjectPage];
63
- schema = generate_2.generateObjectPageInterfaceV4(genericSchema, entitySet, annotations, manifest, logger);
64
- }
65
- else if (v4Params[schemaAccess_1.SchemaType.AnalyticalListPage]) {
66
- const { genericSchema, entitySet, annotations, logger } = v4Params[schemaAccess_1.SchemaType.AnalyticalListPage];
67
- //As of now, the LR logic can also be applied to ALP
68
- schema = generate_2.generateListReportInterfaceV4(genericSchema, entitySet, annotations, logger);
69
- }
70
- }
71
- return schema;
72
- }
73
- exports.generateSchema = generateSchema;
74
- /**
75
- * Exports a config (src/*.json, src/pages/*.json) to flex changes and manifest settings
76
- * @param exportParameters - parameters to control the export
77
- */
78
- function exportConfig(exportParameters) {
79
- let exportResults;
80
- const ui5Config = { ui5Version: exportParameters.ui5Version, layer: exportParameters.layer };
81
- if (exportParameters[page_1.FioriElementsVersion.v2]) {
82
- /**
83
- * Handle v2 export
84
- */
85
- const v2Params = exportParameters[page_1.FioriElementsVersion.v2];
86
- exportResults = exportPage_1.exportPageV2(v2Params, ui5Config);
87
- }
88
- else if (exportParameters[page_1.FioriElementsVersion.v4]) {
89
- /**
90
- * Handle v4 export
91
- */
92
- const v4Params = exportParameters[page_1.FioriElementsVersion.v4];
93
- exportResults = export_1.exportPageV4(v4Params, ui5Config);
94
- }
95
- return exportResults;
96
- }
97
- exports.exportConfig = exportConfig;
98
- /**
99
- * Imports manifest settings and flex changes to a config (src/*.json, src/pages/*.json)
100
- * @param importParameters - parameters to control the import
101
- */
102
- function importConfig(importParameters) {
103
- let schema;
104
- if (importParameters[page_1.FioriElementsVersion.v2]) {
105
- /**
106
- * Handle v2 import
107
- */
108
- const v2Params = importParameters[page_1.FioriElementsVersion.v2];
109
- if (v2Params[schemaAccess_1.SchemaType.ListReport]) {
110
- schema = import_1.createListReportConfig(v2Params[schemaAccess_1.SchemaType.ListReport]);
111
- }
112
- else if (v2Params[schemaAccess_1.SchemaType.ObjectPage]) {
113
- schema = import_1.createObjectPageConfigV2(v2Params[schemaAccess_1.SchemaType.ObjectPage]);
114
- }
115
- else if (v2Params[schemaAccess_1.SchemaType.OverviewPage]) {
116
- schema = import_1.createOverviewPageConfig(v2Params[schemaAccess_1.SchemaType.OverviewPage]);
117
- }
118
- else if (v2Params[schemaAccess_1.SchemaType.AnalyticalListPage]) {
119
- schema = import_1.createAnalyticalListPageConfig(v2Params[schemaAccess_1.SchemaType.AnalyticalListPage]);
120
- }
121
- }
122
- else if (importParameters[page_1.FioriElementsVersion.v4]) {
123
- /**
124
- * Handle v4 import
125
- */
126
- const v4Params = importParameters[page_1.FioriElementsVersion.v4];
127
- if (v4Params[schemaAccess_1.SchemaType.ListReport]) {
128
- schema = import_2.createListReportConfig(v4Params[schemaAccess_1.SchemaType.ListReport]);
129
- }
130
- else if (v4Params[schemaAccess_1.SchemaType.ObjectPage]) {
131
- schema = import_2.createObjectPageConfigV4(v4Params[schemaAccess_1.SchemaType.ObjectPage]);
132
- }
133
- else if (v4Params[schemaAccess_1.SchemaType.AnalyticalListPage]) {
134
- schema = import_2.createAnalyticalListPageConfig(v4Params[schemaAccess_1.SchemaType.AnalyticalListPage]);
135
- }
136
- }
137
- return schema;
138
- }
139
- exports.importConfig = importConfig;
140
- /**
141
- * Evaluates all project files and generates app schemas and configs out of it
142
- * @param importParameters - parameters to control the import; here: all relevant project files
143
- * @returns a list of files, comprising app schemas and configs
144
- */
145
- async function importProject(importParameters) {
146
- return await common_1.importProjectSchemaAndConfig(importParameters);
147
- }
148
- exports.importProject = importProject;
149
- /**
150
- * Evaluates all project files and generates app schemas out of it, but no configs
151
- * @param importParameters - parameters to control the import; here: all relevant project files
152
- * @returns a list of files, comprising all app schemas
153
- */
154
- async function importProjectSchema(importParameters) {
155
- return await common_1.importProjectSchema(importParameters);
156
- }
157
- exports.importProjectSchema = importProjectSchema;
158
- /**
159
- * Returns specification API version.
160
- * @return {ApiVersion} Object of API version.
161
- */
162
- function getApiVersion() {
163
- return {
164
- version: '2'
165
- };
166
- }
167
- exports.getApiVersion = getApiVersion;
168
- /**
169
- * Calls the FPM Writer for generating a custom extension
170
- *
171
- * @param customExtensionParams parameters for generating the custom extension
172
- * @returns {Editor} Instance of mem-fs-editor
173
- */
174
- function generateCustomExtension(customExtensionParams) {
175
- const fpmWriterFunction = apiTypes_1.FPMWriterMap.get(customExtensionParams.customExtension);
176
- if (fpmWriterFunction && typeof fpmWriterFunction === 'function') {
177
- return fpmWriterFunction(customExtensionParams.basePath, customExtensionParams.data, customExtensionParams.fsEditor);
178
- }
179
- else {
180
- return;
181
- }
182
- }
183
- exports.generateCustomExtension = generateCustomExtension;
184
- //# sourceMappingURL=api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,sDAAmE;AACnE,+DAA0D;AAE1D,yCASoB;AACpB,iDAK4B;AAC5B,iDAAkG;AAClG,4DAA2D;AAC3D,6CAK0B;AAC1B,oDAAuD;AACvD,6CAI0B;AAC1B,0CAA6G;AAG7G;;;;;GAKG;AACH,6DAAgE;AAAvD,0CAAA,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AIC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAC,qBAAoD;IACxF,MAAM,iBAAiB,GAAG,uBAAY,CAAC,GAAG,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAClF,IAAI,iBAAiB,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;QAC9D,OAAO,iBAAiB,CACpB,qBAAqB,CAAC,QAAQ,EAC9B,qBAAqB,CAAC,IAAI,EAC1B,qBAAqB,CAAC,QAAQ,CACjC,CAAC;KACL;SAAM;QACH,OAAO;KACV;AACL,CAAC;AAXD,0DAWC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schemaAccess_1 = require("./specification/schemaAccess");
4
- const page_1 = require("./specification/common/page");
5
- const fe_fpm_writer_1 = require("@sap-ux/fe-fpm-writer");
6
- var CustomExtensionType;
7
- (function (CustomExtensionType) {
8
- CustomExtensionType["CustomPage"] = "CustomPage";
9
- CustomExtensionType["CustomColumn"] = "CustomColumn";
10
- CustomExtensionType["CustomSection"] = "CustomSection";
11
- })(CustomExtensionType = exports.CustomExtensionType || (exports.CustomExtensionType = {}));
12
- exports.FPMWriterMap = new Map([
13
- [CustomExtensionType.CustomPage, fe_fpm_writer_1.generateCustomPage],
14
- [CustomExtensionType.CustomColumn, fe_fpm_writer_1.generateCustomColumn],
15
- [CustomExtensionType.CustomSection, fe_fpm_writer_1.generateCustomSection]
16
- ]);
17
- //# sourceMappingURL=apiTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiTypes.js","sourceRoot":"","sources":["../../src/apiTypes.ts"],"names":[],"mappings":";;AAAA,+DAA0D;AAC1D,sDAAmE;AAoBnE,yDAO+B;AAwV/B,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,gDAAyB,CAAA;IACzB,oDAA6B,CAAA;IAC7B,sDAA+B,CAAA;AACnC,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAWY,QAAA,YAAY,GAAG,IAAI,GAAG,CAGjC;IACE,CAAC,mBAAmB,CAAC,UAAU,EAAE,kCAAkB,CAAC;IACpD,CAAC,mBAAmB,CAAC,YAAY,EAAE,oCAAoB,CAAC;IACxD,CAAC,mBAAmB,CAAC,aAAa,EAAE,qCAAqB,CAAC;CAC7D,CAAC,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var LogSeverity;
4
- (function (LogSeverity) {
5
- LogSeverity["Error"] = "error";
6
- LogSeverity["Warning"] = "warning";
7
- LogSeverity["Info"] = "info";
8
- })(LogSeverity = exports.LogSeverity || (exports.LogSeverity = {}));
9
- exports.LogSeverityLabel = {
10
- ["error" /* Error */]: 'Error',
11
- ["warning" /* Warning */]: 'Warning',
12
- ["info" /* Info */]: 'Information'
13
- };
14
- /**
15
- * Function to create a new log entry and add it to the logger.
16
- * If no logger is passed, puts the message to the console
17
- * @param logger - the logger instance
18
- * @param message - the log message
19
- * @param meta - option list of strings/objects
20
- */
21
- exports.log = (logger, logEntry, ...meta) => {
22
- if (logger) {
23
- logger[logEntry.severity](logEntry.message, logEntry.location, ...meta);
24
- }
25
- else {
26
- if (logEntry.location) {
27
- if (logEntry.location.range) {
28
- console.log(`${exports.LogSeverityLabel[logEntry.severity]}: ${logEntry.message}, location: ${logEntry.location.path}, ${logEntry.location.range}`, ...meta);
29
- }
30
- else {
31
- console.log(`${exports.LogSeverityLabel[logEntry.severity]}: ${logEntry.message}, location: ${logEntry.location.path}`, ...meta);
32
- }
33
- }
34
- else {
35
- console.log(`${exports.LogSeverityLabel[logEntry.severity]}: ${logEntry.message}`, ...meta);
36
- }
37
- }
38
- };
39
- //# sourceMappingURL=extensionLogger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extensionLogger.js","sourceRoot":"","sources":["../../src/extensionLogger.ts"],"names":[],"mappings":";;AAEA,IAAkB,WAIjB;AAJD,WAAkB,WAAW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) || 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 i18n_json_1 = __importDefault(require("../specification/common/i18n.json"));
8
- const i18n_1 = require("../sync/i18n");
9
- function initI18n(language = 'en') {
10
- // Initialize i18next of ide-extension
11
- i18next_1.default.init({
12
- resources: {
13
- en: {
14
- translation: i18n_json_1.default
15
- }
16
- },
17
- lng: language,
18
- fallbackLng: 'en',
19
- joinArrays: '\n\n'
20
- });
21
- // Initialize i18next of core module
22
- i18n_1.initI18n(i18next_1.default);
23
- }
24
- exports.initI18n = initI18n;
25
- //# sourceMappingURL=i18n.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/i18n/i18n.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,kFAAuD;AACvD,uCAAwD;AAExD,SAAgB,QAAQ,CAAC,QAAQ,GAAG,IAAI;IACpC,sCAAsC;IACtC,iBAAO,CAAC,IAAI,CAAC;QACT,SAAS,EAAE;YACP,EAAE,EAAE;gBACA,WAAW,EAAE,mBAAM;aACtB;SACJ;QACD,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,MAAM;KACrB,CAAC,CAAC;IAEH,oCAAoC;IACpC,eAAY,CAAC,iBAAO,CAAC,CAAC;AAC1B,CAAC;AAfD,4BAeC"}
package/dist/src/index.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./specification/common"));
7
- __export(require("./sync/common/types"));
8
- __export(require("./api"));
9
- __export(require("./apiTypes"));
10
- __export(require("./specification/schemaAccess"));
11
- __export(require("./extensionLogger"));
12
- __export(require("./project"));
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4CAAuC;AACvC,yCAAoC;AACpC,2BAAsB;AACtB,gCAA2B;AAC3B,kDAA6C;AAC7C,uCAAkC;AAClC,+BAA0B"}