@sap/ux-specification 1.90.21 → 1.90.24

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 (284) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  3. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  4. package/dist/documentation/v2/v2-ListReport.html +1 -1
  5. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  6. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  7. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +1 -1
  11. package/dist/schemas/v2/ApplicationV2.json +11 -11
  12. package/dist/schemas/v4/ApplicationV4.json +9 -5
  13. package/dist/schemas/v4/ListReportConfig.json +590 -174
  14. package/dist/scripts/extractDocu.js.map +1 -1
  15. package/dist/scripts/runDocu.js +10 -40
  16. package/dist/scripts/runDocu.js.map +1 -1
  17. package/dist/scripts/spec.js.map +1 -1
  18. package/dist/scripts/to-json-schema.js.map +1 -1
  19. package/dist/specification/v2/index-min.js +1 -1
  20. package/dist/specification/v4/index-min.js +1 -1
  21. package/dist/src/api.d.ts +2 -2
  22. package/dist/src/api.js +11 -11
  23. package/dist/src/api.js.map +1 -1
  24. package/dist/src/apiTypes.d.ts +14 -18
  25. package/dist/src/apiTypes.js +0 -2
  26. package/dist/src/apiTypes.js.map +1 -1
  27. package/dist/src/extensionLogger.d.ts +1 -1
  28. package/dist/src/project.d.ts +1 -1
  29. package/dist/src/specification/common/Application.d.ts +24 -4
  30. package/dist/src/specification/common/page.d.ts +1 -1
  31. package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
  32. package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
  33. package/dist/src/specification/schemaAccess.d.ts +1 -1
  34. package/dist/src/specification/schemaAccess.js +1 -2
  35. package/dist/src/specification/schemaAccess.js.map +1 -1
  36. package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
  37. package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
  38. package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
  39. package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
  40. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
  41. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
  42. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
  43. package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
  44. package/dist/src/specification/v2/controls/Table.d.ts +3 -3
  45. package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
  46. package/dist/src/specification/v2/page.d.ts +1 -1
  47. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
  48. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
  49. package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
  50. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
  51. package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
  52. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
  53. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
  54. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
  55. package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
  56. package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
  57. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
  58. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
  59. package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
  60. package/dist/src/specification/v4/controls/Table.d.ts +162 -25
  61. package/dist/src/specification/v4/controls/Table.js +6 -0
  62. package/dist/src/specification/v4/controls/Table.js.map +1 -1
  63. package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
  64. package/dist/src/specification/v4/page.d.ts +2 -2
  65. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +17 -3
  66. package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
  67. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
  68. package/dist/src/specification/v4/pages/index.d.ts +0 -1
  69. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
  70. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
  71. package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
  72. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
  73. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +20 -1
  74. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  75. package/dist/src/sync/common/appProvider.d.ts +6 -5
  76. package/dist/src/sync/common/appProvider.js.map +1 -1
  77. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  78. package/dist/src/sync/common/decoration/control.js.map +1 -1
  79. package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
  80. package/dist/src/sync/common/decoration/decorators.js.map +1 -1
  81. package/dist/src/sync/common/decoration/factory.d.ts +3 -3
  82. package/dist/src/sync/common/decoration/flex.d.ts +3 -3
  83. package/dist/src/sync/common/flexUtils.d.ts +4 -4
  84. package/dist/src/sync/common/flexUtils.js.map +1 -1
  85. package/dist/src/sync/common/generate/objectPage.d.ts +4 -3
  86. package/dist/src/sync/common/generate/objectPage.js +2 -7
  87. package/dist/src/sync/common/generate/objectPage.js.map +1 -1
  88. package/dist/src/sync/common/generate/utils.d.ts +11 -9
  89. package/dist/src/sync/common/generate/utils.js +18 -32
  90. package/dist/src/sync/common/generate/utils.js.map +1 -1
  91. package/dist/src/sync/common/import/utils.d.ts +4 -3
  92. package/dist/src/sync/common/import/utils.js +3 -2
  93. package/dist/src/sync/common/import/utils.js.map +1 -1
  94. package/dist/src/sync/common/importProject.d.ts +4 -4
  95. package/dist/src/sync/common/importProject.js +13 -22
  96. package/dist/src/sync/common/importProject.js.map +1 -1
  97. package/dist/src/sync/common/types.d.ts +28 -6
  98. package/dist/src/sync/common/types.js +24 -0
  99. package/dist/src/sync/common/types.js.map +1 -1
  100. package/dist/src/sync/common/utils.d.ts +11 -8
  101. package/dist/src/sync/common/utils.js +51 -20
  102. package/dist/src/sync/common/utils.js.map +1 -1
  103. package/dist/src/sync/i18n.d.ts +1 -1
  104. package/dist/src/sync/v2/application.d.ts +2 -2
  105. package/dist/src/sync/v2/application.js.map +1 -1
  106. package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
  107. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
  108. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
  109. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
  110. package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
  111. package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
  112. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
  113. package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
  114. package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
  115. package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
  116. package/dist/src/sync/v2/export/controls/Fragment.js +108 -32
  117. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  118. package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
  119. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
  120. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
  121. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
  122. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
  123. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
  124. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
  125. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
  126. package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
  127. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +2 -2
  128. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +1 -1
  129. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
  130. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
  131. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
  132. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  133. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  134. package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
  135. package/dist/src/sync/v2/export/controls/Table.js +26 -25
  136. package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
  137. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
  138. package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
  139. package/dist/src/sync/v2/export/export.d.ts +3 -3
  140. package/dist/src/sync/v2/export/export.js.map +1 -1
  141. package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
  142. package/dist/src/sync/v2/export/exportPage.js +1 -9
  143. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  144. package/dist/src/sync/v2/export/factory.d.ts +2 -1
  145. package/dist/src/sync/v2/export/factory.js.map +1 -1
  146. package/dist/src/sync/v2/export/manifest.d.ts +1 -1
  147. package/dist/src/sync/v2/export/manifest.js +2 -1
  148. package/dist/src/sync/v2/export/manifest.js.map +1 -1
  149. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
  150. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
  151. package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
  152. package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
  153. package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
  154. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
  155. package/dist/src/sync/v2/export/pages/OverviewPage.js +6 -3
  156. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  157. package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
  158. package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
  159. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
  160. package/dist/src/sync/v2/generate/analyticalListReport.js +26 -35
  161. package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  162. package/dist/src/sync/v2/generate/generate.d.ts +2 -2
  163. package/dist/src/sync/v2/generate/generate.js +3 -0
  164. package/dist/src/sync/v2/generate/generate.js.map +1 -1
  165. package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
  166. package/dist/src/sync/v2/generate/listReport.js +37 -35
  167. package/dist/src/sync/v2/generate/listReport.js.map +1 -1
  168. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
  169. package/dist/src/sync/v2/generate/objectPage.js +77 -76
  170. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  171. package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
  172. package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
  173. package/dist/src/sync/v2/generate/utils.d.ts +5 -5
  174. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  175. package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
  176. package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
  177. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
  178. package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  179. package/dist/src/sync/v2/import/common/index.d.ts +6 -5
  180. package/dist/src/sync/v2/import/common/index.js +3 -16
  181. package/dist/src/sync/v2/import/common/index.js.map +1 -1
  182. package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
  183. package/dist/src/sync/v2/import/controls/table.js +1 -1
  184. package/dist/src/sync/v2/import/controls/table.js.map +1 -1
  185. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
  186. package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -9
  187. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  188. package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
  189. package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
  190. package/dist/src/sync/v2/import/pages/objectPage.js +1 -4
  191. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  192. package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
  193. package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  194. package/dist/src/sync/v2/import/utils.d.ts +3 -2
  195. package/dist/src/sync/v2/import/utils.js +15 -1
  196. package/dist/src/sync/v2/import/utils.js.map +1 -1
  197. package/dist/src/sync/v2/types.d.ts +7 -7
  198. package/dist/src/sync/v4/application.d.ts +8 -4
  199. package/dist/src/sync/v4/application.js +22 -1
  200. package/dist/src/sync/v4/application.js.map +1 -1
  201. package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
  202. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
  203. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  204. package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
  205. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
  206. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
  207. package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
  208. package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
  209. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
  210. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  211. package/dist/src/sync/v4/export/controls/Table.d.ts +125 -9
  212. package/dist/src/sync/v4/export/controls/Table.js +431 -48
  213. package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
  214. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
  215. package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
  216. package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  217. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
  218. package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
  219. package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
  220. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  221. package/dist/src/sync/v4/export/export.d.ts +2 -2
  222. package/dist/src/sync/v4/export/export.js +293 -59
  223. package/dist/src/sync/v4/export/export.js.map +1 -1
  224. package/dist/src/sync/v4/export/factory.d.ts +2 -1
  225. package/dist/src/sync/v4/export/factory.js.map +1 -1
  226. package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
  227. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  228. package/dist/src/sync/v4/export/manifest.d.ts +1 -1
  229. package/dist/src/sync/v4/export/manifest.js.map +1 -1
  230. package/dist/src/sync/v4/export/pages/ListReport.d.ts +8 -3
  231. package/dist/src/sync/v4/export/pages/ListReport.js +42 -0
  232. package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
  233. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
  234. package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
  235. package/dist/src/sync/v4/export/pages/index.js +0 -1
  236. package/dist/src/sync/v4/export/pages/index.js.map +1 -1
  237. package/dist/src/sync/v4/export/types.d.ts +7 -5
  238. package/dist/src/sync/v4/export/utils.d.ts +1 -1
  239. package/dist/src/sync/v4/generate/generate.d.ts +5 -4
  240. package/dist/src/sync/v4/generate/generate.js +6 -3
  241. package/dist/src/sync/v4/generate/generate.js.map +1 -1
  242. package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
  243. package/dist/src/sync/v4/generate/listReport.js +331 -31
  244. package/dist/src/sync/v4/generate/listReport.js.map +1 -1
  245. package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
  246. package/dist/src/sync/v4/generate/objectPage.js +1 -1
  247. package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
  248. package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
  249. package/dist/src/sync/v4/import/app/appProvider.js +55 -43
  250. package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
  251. package/dist/src/sync/v4/import/fragment.d.ts +2 -2
  252. package/dist/src/sync/v4/import/fragment.js.map +1 -1
  253. package/dist/src/sync/v4/import/index.d.ts +0 -1
  254. package/dist/src/sync/v4/import/index.js +0 -1
  255. package/dist/src/sync/v4/import/index.js.map +1 -1
  256. package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
  257. package/dist/src/sync/v4/import/pages/listReport.js +103 -20
  258. package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
  259. package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
  260. package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
  261. package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
  262. package/dist/src/sync/v4/import/utils.d.ts +2 -2
  263. package/dist/src/sync/v4/import/utils.js +2 -2
  264. package/dist/src/sync/v4/import/utils.js.map +1 -1
  265. package/dist/src/sync/v4/types.d.ts +2 -2
  266. package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  267. package/dist/src/sync/v4/utils/utils.d.ts +13 -7
  268. package/dist/src/sync/v4/utils/utils.js +45 -8
  269. package/dist/src/sync/v4/utils/utils.js.map +1 -1
  270. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
  271. package/dist/test/test-projects/index.d.ts +1 -1
  272. package/dist/test/test-utils/utils.d.ts +5 -4
  273. package/package.json +12 -9
  274. package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
  275. package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
  276. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
  277. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
  278. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
  279. package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
  280. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
  281. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
  282. package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
  283. package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
  284. package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { Target } from './page';
2
- import { AppSettings as CommonSettingsV2, Pages as PagesV2 } from '../v2';
3
- import { AppSettings as CommonSettingsV4, Pages as PagesV4 } from '../v4';
4
- import { FlexibleColumnLayoutType } from '../common/types';
1
+ import type { Target } from './page';
2
+ import type { AppSettings as CommonSettingsV2, Pages as PagesV2 } from '../v2';
3
+ import type { AppSettings as CommonSettingsV4, Pages as PagesV4 } from '../v4';
4
+ import type { FlexibleColumnLayoutType } from '../common/types';
5
5
  export interface Application {
6
6
  $schema?: string;
7
7
  id?: string;
@@ -14,3 +14,23 @@ export interface FlexibleColumnLayout {
14
14
  defaultTwoColumnLayoutType?: FlexibleColumnLayoutType;
15
15
  defaultThreeColumnLayoutType?: FlexibleColumnLayoutType;
16
16
  }
17
+ export interface CommonAppSettings {
18
+ /**
19
+ * To change the application header, in your project artifacts, change the i18n property file
20
+ * for your app under webapp/i18n/i18n.properties ->appTitle. Then, refer to the title as
21
+ * {{appTitle}} in the sap.app section of the manifest file.
22
+ * @i18nClassification TIT: Title of the application
23
+ */
24
+ title?: string;
25
+ /**
26
+ * To change the application header, in your project artifacts, change the i18n property file
27
+ * for your app under webapp/i18n/i18n.properties ->appDescription. Then, refer to the description
28
+ * as {{appDescription}} in the sap.app section of the manifest file.
29
+ * @i18nClassification TIT: Description of the application
30
+ */
31
+ description?: string;
32
+ /**
33
+ * To enable key user adaptation for the application, set the flexEnabled property to "true".
34
+ */
35
+ flexEnabled?: boolean;
36
+ }
@@ -1,4 +1,4 @@
1
- import { FlexibleColumnLayoutType, ManifestSettingsType } from '../common/types';
1
+ import type { FlexibleColumnLayoutType, ManifestSettingsType } from '../common/types';
2
2
  export declare enum PageType {
3
3
  ObjectPage = "ObjectPage",
4
4
  ListReport = "ListReport",
@@ -1,9 +1,9 @@
1
- import { SapUiAppV2 } from '../../../v2/webapp/manifest/sapUiPageV2';
2
- import { SapUi5 as SapUi5V2 } from '../../../v2/webapp/manifest/sapUi5';
3
- import { SapUi as SapUiV2 } from '../../../v2/webapp/manifest/sapUi';
4
- import { SapOvp } from './sapOvp';
5
- import { SapUi5V4 } from '../../../v4/webapp/manifest/sapUi5';
6
- import { ManifestSettingsType } from '../../types';
1
+ import type { SapUiAppV2 } from '../../../v2/webapp/manifest/sapUiPageV2';
2
+ import type { SapUi5 as SapUi5V2 } from '../../../v2/webapp/manifest/sapUi5';
3
+ import type { SapUi as SapUiV2 } from '../../../v2/webapp/manifest/sapUi';
4
+ import type { SapOvp } from './sapOvp';
5
+ import type { SapUi5V4 } from '../../../v4/webapp/manifest/sapUi5';
6
+ import type { ManifestSettingsType } from '../../types';
7
7
  export declare enum DataSourceType {
8
8
  OData = "OData",
9
9
  ODataAnnotation = "ODataAnnotation"
@@ -1,4 +1,4 @@
1
- import { FlexibleColumnLayoutType } from '../../../common/types';
1
+ import type { FlexibleColumnLayoutType } from '../../../common/types';
2
2
  export declare const FIORI_FCL_ROOT_VIEW_NAME = "sap.fe.templates.RootContainer.view.Fcl";
3
3
  export declare const FIORI_FCL_ROOT_ID = "appRootView";
4
4
  export declare enum ViewTypes {
@@ -1,4 +1,4 @@
1
- import { FioriElementsVersion } from './common';
1
+ import type { FioriElementsVersion } from './common';
2
2
  /**
3
3
  * Type for all available schema types, e.g. Application, ListReport, ObjectPage, ...
4
4
  */
@@ -53,8 +53,7 @@ const readJsonSchema = async (path) => {
53
53
  exports.getGenericSchema = async (version, schemaType) => {
54
54
  try {
55
55
  const path = getPathToGenericSchema(version, schemaType);
56
- const schema = await readJsonSchema(path);
57
- return schema;
56
+ return await readJsonSchema(path);
58
57
  }
59
58
  catch (error) {
60
59
  throw new Error(`No schema available for type: ${schemaType}, version: ${version}. Error was ${error.message}`);
@@ -1 +1 @@
1
- {"version":3,"file":"schemaAccess.js","sourceRoot":"","sources":["../../../src/specification/schemaAccess.ts"],"names":[],"mappings":";;AAAA,2BAA8B;AAC9B,+BAA4B;AAG5B;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,yCAA2B,CAAA;IAC3B,uCAAyB,CAAA;IACzB,uCAAyB,CAAA;IACzB,2CAA6B,CAAA;IAC7B,uDAAyC,CAAA;AAC7C,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,CAAC,OAA6B,EAAE,UAAsB,EAAU,EAAE;IAC7F,MAAM,QAAQ,GACV,UAAU,KAAK,UAAU,CAAC,WAAW;QACjC,CAAC,CAAC,UAAU,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,OAAO;QAC1D,CAAC,CAAC,UAAU,GAAG,aAAa,CAAC;IACrC,qCAAqC;IACrC,6DAA6D;IAC7D,aAAa;IACb,OAAO,OAAO,mBAAmB,KAAK,UAAU;QAC5C,CAAC,CAAC,WAAI,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC;QAC/C,CAAC,CAAC,WAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,cAAc,GAAG,KAAK,EAAE,IAAY,EAAiB,EAAE;IACzD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAQ,EAAE;QACzC,aAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,EAAQ,EAAE;YACrD,IAAI,GAAG,EAAE;gBACL,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;aAC7B;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,KAAK,EAAE,OAA6B,EAAE,UAAsB,EAAiB,EAAE;IAC3G,IAAI;QACA,MAAM,IAAI,GAAG,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QACzD,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO,MAAM,CAAC;KACjB;IAAC,OAAO,KAAK,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,iCAAiC,UAAU,cAAc,OAAO,eAAe,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;KACnH;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"schemaAccess.js","sourceRoot":"","sources":["../../../src/specification/schemaAccess.ts"],"names":[],"mappings":";;AAAA,2BAA8B;AAC9B,+BAA4B;AAG5B;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,yCAA2B,CAAA;IAC3B,uCAAyB,CAAA;IACzB,uCAAyB,CAAA;IACzB,2CAA6B,CAAA;IAC7B,uDAAyC,CAAA;AAC7C,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,CAAC,OAA6B,EAAE,UAAsB,EAAU,EAAE;IAC7F,MAAM,QAAQ,GACV,UAAU,KAAK,UAAU,CAAC,WAAW;QACjC,CAAC,CAAC,UAAU,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,OAAO;QAC1D,CAAC,CAAC,UAAU,GAAG,aAAa,CAAC;IACrC,qCAAqC;IACrC,6DAA6D;IAC7D,aAAa;IACb,OAAO,OAAO,mBAAmB,KAAK,UAAU;QAC5C,CAAC,CAAC,WAAI,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC;QAC/C,CAAC,CAAC,WAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,cAAc,GAAG,KAAK,EAAE,IAAY,EAAiB,EAAE;IACzD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAQ,EAAE;QACzC,aAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,EAAQ,EAAE;YACrD,IAAI,GAAG,EAAE;gBACL,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;aAC7B;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,KAAK,EAAE,OAA6B,EAAE,UAAsB,EAAiB,EAAE;IAC3G,IAAI;QACA,MAAM,IAAI,GAAG,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QACzD,OAAO,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,iCAAiC,UAAU,cAAc,OAAO,eAAe,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;KACnH;AACL,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
- import { Application, FlexibleColumnLayout } from '../common';
2
- import { Pages } from './page';
1
+ import type { Application, CommonAppSettings, FlexibleColumnLayout } from '../common';
2
+ import type { Pages } from './page';
3
3
  export declare enum TableColumnVerticalAlignment {
4
4
  Top = "Top",
5
5
  Middle = "Middle",
6
6
  Bottom = "Bottom"
7
7
  }
8
- export interface AppSettings {
9
- /**
10
- * To change the application header, in your project artifacts, change the i18n property file for your app under webapp/i18n/i18n.properties ->appTitle. Then, refer to the title as {{appTitle}} in the sap.app section of the manifest file.
11
- * @i18nClassification TIT: Title of the application
12
- */
13
- title?: string;
14
- /**
15
- * To change the application header, in your project artifacts, change i18n property file for your app under webapp/i18n/i18n.properties ->appDescription. Then, refer to the description as {{appDescription}} in the sap.app section of the manifest file.
16
- * @i18nClassification TIT: Description of the application
17
- */
18
- description?: string;
8
+ export interface AppSettings extends CommonAppSettings {
19
9
  /**
20
10
  * If forceGlobalRefresh is not explicitly set to false, a global model refresh is triggered when the annotated side effects are executed.
21
11
  */
@@ -28,10 +18,6 @@ export interface AppSettings {
28
18
  * tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table.
29
19
  */
30
20
  tableColumnVerticalAlignment?: TableColumnVerticalAlignment;
31
- /**
32
- * The flexEnabled indicates if the application supports UI adaptation.
33
- */
34
- flexEnabled?: boolean;
35
21
  }
36
22
  export interface ApplicationV2 extends Application {
37
23
  settings?: AppSettings;
@@ -1,4 +1,4 @@
1
- import { ObjectPageResponsiveTable, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable } from './ObjectPageTable';
1
+ import type { ObjectPageResponsiveTable, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable } from './ObjectPageTable';
2
2
  export declare type ObjectPageTableTypeV2 = ObjectPageResponsiveTable | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
3
3
  /**
4
4
  * Table Facet
@@ -1,5 +1,5 @@
1
- import { ObjectPageFooterAction } from './Action';
2
- import { Actions } from '.';
1
+ import type { ObjectPageFooterAction } from './Action';
2
+ import type { Actions } from '.';
3
3
  interface ObjectPageFooterActions {
4
4
  [id: string]: ObjectPageFooterAction;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { FormAction, Field } from '.';
1
+ import type { FormAction, Field } from '.';
2
2
  /**
3
3
  * Object Page Form
4
4
  * @isViewNode true
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@sapui5/ts-types" />
2
- import { HeaderAction } from '.';
2
+ import type { HeaderAction } from '.';
3
3
  export interface GenericActions {
4
4
  [id: string]: HeaderAction;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { ObjectPageResponsiveTableWithMultiSelect, ObjectPageResponsiveTableWithInlineDelete, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable, ObjectPageChart, ObjectPageForm } from './index';
2
- import { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../common/webapp/manifest/sapUi5';
1
+ import type { ObjectPageResponsiveTableWithMultiSelect, ObjectPageResponsiveTableWithInlineDelete, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable, ObjectPageChart, ObjectPageForm } from './index';
2
+ import type { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../common/webapp/manifest/sapUi5';
3
3
  /**
4
4
  * Section
5
5
  * @isViewNode true
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@sapui5/ts-types" />
2
- import { GenericColumns, TableTypeV2, QuickVariant } from './Table';
3
- import { ObjectPageToolBar } from './ObjectPageToolBar';
2
+ import type { GenericColumns, TableTypeV2, QuickVariant } from './Table';
3
+ import type { ObjectPageToolBar } from './ObjectPageToolBar';
4
4
  export interface QuickVariantSelectionOP {
5
5
  /**
6
6
  * To show the number of records available, set showCounts to true.
@@ -1,4 +1,4 @@
1
- import { ObjectPageToolBarAction } from '.';
1
+ import type { ObjectPageToolBarAction } from '.';
2
2
  /**
3
3
  * Actions
4
4
  * @isViewNode true
@@ -1,7 +1,7 @@
1
1
  /// <reference types="@sapui5/ts-types" />
2
- import { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
3
- import { ToolBar } from './ToolBar';
4
- import { Action } from './Action';
2
+ import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
3
+ import type { ToolBar } from './ToolBar';
4
+ import type { Action } from './Action';
5
5
  /**
6
6
  * Column
7
7
  * @isViewNode true
@@ -1,4 +1,4 @@
1
- import { Actions } from '.';
1
+ import type { Actions } from '.';
2
2
  /**
3
3
  * Toolbar
4
4
  * @isViewNode true
@@ -1,4 +1,4 @@
1
- import { PagesBase, PageBase, PageType } from '../common';
1
+ import type { PagesBase, PageBase, PageType } from '../common';
2
2
  export interface Page extends PageBase {
3
3
  pageType?: PageType;
4
4
  }
@@ -1,7 +1,7 @@
1
- import { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable, GenericFooter } from '../controls';
2
- import { PageConfig } from '../../common/page';
3
- import { ChartSettings } from '../../../specification/v2/controls';
4
- import { KPISettings } from '../../../specification/v2/controls/AnalyticalListPageKPI';
1
+ import type { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable, GenericFooter } from '../controls';
2
+ import type { PageConfig } from '../../common/page';
3
+ import type { ChartSettings } from '../../../specification/v2/controls';
4
+ import type { KPISettings } from '../../../specification/v2/controls/AnalyticalListPageKPI';
5
5
  export interface AnalyticalListPageConfig extends PageConfig {
6
6
  /**
7
7
  * Set fitContent to true to optimize the dynamic page responsiveness on small screens and behavior when the DynamicPageHeader is expanded or collapsed.
@@ -1,5 +1,5 @@
1
- import { TreeTable, ListReportFilterBar, GenericFooter, AnalyticalTable, GridTable, ResponsiveTableWithInlineDelete, ResponsiveTableWithMultiSelect } from '../controls';
2
- import { PageConfig } from '../../common/page';
1
+ import type { TreeTable, ListReportFilterBar, GenericFooter, AnalyticalTable, GridTable, ResponsiveTableWithInlineDelete, ResponsiveTableWithMultiSelect } from '../controls';
2
+ import type { PageConfig } from '../../common/page';
3
3
  export declare type ListReportTableTypeV2 = ResponsiveTableWithMultiSelect | ResponsiveTableWithInlineDelete | TreeTable | AnalyticalTable | GridTable;
4
4
  export interface ListReportConfig extends PageConfig {
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, GlobalChartSettings, ObjectPageFooter } from '../controls';
2
- import { PageConfig } from '../../common/page';
3
- import { FlexibleColumnLayoutType } from '../../common/types';
1
+ import type { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, GlobalChartSettings, ObjectPageFooter } from '../controls';
2
+ import type { PageConfig } from '../../common/page';
3
+ import type { FlexibleColumnLayoutType } from '../../common/types';
4
4
  export interface ObjectPageConfig extends PageConfig {
5
5
  /**
6
6
  * Set showConfirmationOnDraftActivate to true to enable a confirmation before a save if you have pending warnings.
@@ -2,9 +2,9 @@
2
2
  * This file is is based on a json schema to typescript generator and adjusted to our needs.
3
3
  * JSON schema source: https://github.wdf.sap.corp/AppDescriptor/manifest/blob/master/schema/sap.ovp/subschema_sapovp.json
4
4
  */
5
- import { PageConfig } from '../../common/page';
6
- import { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
7
- import { DateRange, DateRangeType, DefaultDateRange, FilterType } from '../controls/FilterBar';
5
+ import type { PageConfig } from '../../common/page';
6
+ import type { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
7
+ import type { DateRange, DateRangeType, DefaultDateRange, FilterType } from '../controls/FilterBar';
8
8
  /**
9
9
  * @isViewNode false
10
10
  */
@@ -1,5 +1,5 @@
1
- import { SapUi5RootView, SapUi5OdataModel, SapUi5ResourceModel, SapUi5RoutingRoute, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS, ViewTypes } from '../../../common/webapp/manifest/sapUi5';
2
- import { ManifestSection } from '../../../v4';
1
+ import type { SapUi5RootView, SapUi5OdataModel, SapUi5ResourceModel, SapUi5RoutingRoute, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS, ViewTypes } from '../../../common/webapp/manifest/sapUi5';
2
+ import type { ManifestSection } from '../../../v4';
3
3
  export interface SapUi5 {
4
4
  flexEnabled?: boolean;
5
5
  resources?: object;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const v4_1 = require("../../../v4");
4
3
  // SAPUI5 EXTENDS
5
4
  exports.SAPUI5_VIEW_EXTENSION = 'sap.ui.viewExtensions';
6
5
  exports.SAPUI5_CONTROLLER_EXTENSION = 'sap.ui.controllerExtensions';
@@ -1 +1 @@
1
- {"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v2/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;AASA,oCAA8C;AAoD9C,iBAAiB;AACJ,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAW5D,QAAA,iCAAiC,GAAG,uDAAuD,CAAC;AAC5F,QAAA,iCAAiC,GAAG,0DAA0D,CAAC;AAC/F,QAAA,0CAA0C,GACnD,0EAA0E,CAAC"}
1
+ {"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v2/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;AA6DA,iBAAiB;AACJ,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAW5D,QAAA,iCAAiC,GAAG,uDAAuD,CAAC;AAC5F,QAAA,iCAAiC,GAAG,0DAA0D,CAAC;AAC/F,QAAA,0CAA0C,GACnD,0EAA0E,CAAC"}
@@ -1,5 +1,5 @@
1
- import { SapUiGenericAppPageSettings } from '../../../common/page';
2
- import { FlexibleColumnLayout, FlexibleColumnLayoutType } from '../../../common';
1
+ import type { SapUiGenericAppPageSettings } from '../../../common/page';
2
+ import type { FlexibleColumnLayout, FlexibleColumnLayoutType } from '../../../common';
3
3
  export interface SapUiAppV2 {
4
4
  pages: SapUiAppPagesV2;
5
5
  _version?: string;
@@ -1,17 +1,7 @@
1
- import { Application, FlexibleColumnLayout, PageTypeV4, PageBase } from '../common';
2
- import { Pages, PageView } from './page';
3
- import { FlexibleColumnLayoutAggregations } from '.';
4
- export interface AppSettings {
5
- /**
6
- * To change the application header, in your project artifacts, change i18n property file for your app under webapp/i18n/i18n.properties ->appTitle. Then, refer to the title as {{appTitle}} in the sap.app section of the manifest file.
7
- * @i18nClassification TIT: Title of the application
8
- */
9
- title?: string;
10
- /**
11
- * To change the application header, in your project artifacts, change i18n property file for your app under webapp/i18n/i18n.properties ->appDescription. Then, refer to the description as {{appDescription}} in the sap.app section of the manifest file.
12
- * @i18nClassification TIT: Description of the application
13
- */
14
- description?: string;
1
+ import type { Application, CommonAppSettings, FlexibleColumnLayout, PageTypeV4, PageBase } from '../common';
2
+ import type { Pages, PageView } from './page';
3
+ import type { FlexibleColumnLayoutAggregations } from '.';
4
+ export interface AppSettings extends CommonAppSettings {
15
5
  /**
16
6
  * The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas. For the overview page, this layout is not relevant.
17
7
  */
@@ -1,4 +1,4 @@
1
- import { HeaderSections } from './ObjectPageHeaderSection';
1
+ import type { HeaderSections } from './ObjectPageHeaderSection';
2
2
  export declare type HeaderActionV4 = object;
3
3
  export interface GenericActions {
4
4
  [id: string]: HeaderActionV4;
@@ -1,5 +1,5 @@
1
- import { ObjectPageSectionTableV4 } from '../controls/ObjectPageTable';
2
- import { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
1
+ import type { ObjectPageSectionTableV4 } from '../controls/ObjectPageTable';
2
+ import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
3
3
  export interface ObjectPageSectionForm {
4
4
  /**
5
5
  * Form
@@ -1,6 +1,6 @@
1
- import { AnnotationPathAsObject, TableCreationModeType, TableSettings } from '../controls';
2
- import { ObjectPageTableColumn as ObjectPageTableColumnIF, ObjectPageTableColumnAction } from '../webapp/manifest/ManifestSettings';
3
- import { ObjectPageToolBar } from './ObjectPageToolBar';
1
+ import type { AnnotationPathAsObject, TableCreationModeType, TableSettings } from '../controls';
2
+ import type { ObjectPageTableColumn as ObjectPageTableColumnIF, ObjectPageTableColumnAction } from '../webapp/manifest/ManifestSettings';
3
+ import type { ObjectPageToolBar } from './ObjectPageToolBar';
4
4
  /**
5
5
  * Table
6
6
  * @isViewNode true
@@ -1,4 +1,4 @@
1
- import { SelectType } from './ToolBar';
1
+ import type { SelectType } from './ToolBar';
2
2
  /**
3
3
  * Action
4
4
  * @isViewNode true
@@ -1,5 +1,5 @@
1
- import { TableColumn, TableColumnAction } from './../webapp/manifest/ManifestSettings';
2
- import { ToolBar } from './ToolBar';
1
+ import type { TableColumn, TableColumnAction, ViewTableColumn, ViewTableColumnAction, ViewTableCustomColumn } from './../webapp/manifest/ManifestSettings';
2
+ import type { ToolBar, ViewChartToolBar } from './ToolBar';
3
3
  export declare enum SelectionMode {
4
4
  Multi = "Multi",
5
5
  None = "None",
@@ -21,6 +21,11 @@ export declare enum InitialLoadType {
21
21
  Enabled = "Enabled",
22
22
  Auto = "Auto"
23
23
  }
24
+ export declare enum DefaultPathType {
25
+ Primary = "primary",
26
+ Secondary = "secondary",
27
+ Both = "both"
28
+ }
24
29
  export interface TableCreationMode {
25
30
  /**
26
31
  * The name property of TableCreationMode defines the creation mode; possible values are:
@@ -35,6 +40,20 @@ export interface TableCreationMode {
35
40
  */
36
41
  createAtEnd?: boolean;
37
42
  }
43
+ export interface ViewTableCreationMode {
44
+ /**
45
+ * The name property of TableCreationMode defines the creation mode; possible values are:
46
+ * - NewPage: The create action leads to a new page.
47
+ * - Inline: The create action leads to a new row at the table.
48
+ * - CreationRow: No create button will be rendered, an empty row is directly given.
49
+ * The default is "NewPage".
50
+ */
51
+ name?: TableCreationModeType;
52
+ /**
53
+ * In case of inline creation mode you can decide if the new row will be created at the end of the table, or direcly after the currently selected table. The default value is "true"
54
+ */
55
+ createAtEnd?: boolean;
56
+ }
38
57
  export interface PersonalizationType {
39
58
  /**
40
59
  * Defines whether the user can add and remove columns to a given table.
@@ -49,6 +68,20 @@ export interface PersonalizationType {
49
68
  */
50
69
  filter?: boolean;
51
70
  }
71
+ export interface ViewPersonalizationType {
72
+ /**
73
+ * Defines whether the user can add and remove columns to a given table.
74
+ */
75
+ column?: boolean;
76
+ /**
77
+ * Defines whether the user can sort a given table.
78
+ */
79
+ sort?: boolean;
80
+ /**
81
+ * Defines whether the user can filter data of a given table.
82
+ */
83
+ filter?: boolean;
84
+ }
52
85
  export interface AnnotationPathAsObject {
53
86
  annotationPath: string;
54
87
  }
@@ -71,34 +104,17 @@ export interface QuickVariantSelectionV4 {
71
104
  */
72
105
  showCounts?: boolean;
73
106
  }
74
- export interface MultiTableModeV4 {
75
- /**
76
- * List of annotation paths referring to SelectionVariant annotations
77
- */
78
- paths: AnnotationPathWithKey[];
79
- /**
80
- * You can show the counts of entries of each view. To do so, add the showCounts option and set it to true.
81
- */
82
- showCounts?: boolean;
83
- }
84
107
  export interface GenericColumns {
85
108
  [key: string]: TableColumn | TableColumnAction;
86
109
  }
87
- export interface TableSettings<COLS = GenericColumns> {
110
+ export interface ViewColumns {
111
+ [key: string]: ViewTableColumn | ViewTableColumnAction | ViewTableCustomColumn;
112
+ }
113
+ export interface TableSettings {
88
114
  /**
89
115
  * Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones.
90
116
  */
91
117
  type?: TableTypeV4;
92
- /**
93
- * Defines the page behavior when a new record is created.
94
- */
95
- creationMode?: TableCreationMode;
96
- /**
97
- * Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
98
- * By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
99
- * Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
100
- */
101
- personalization?: PersonalizationType;
102
118
  /**
103
119
  * Applications can influence whether the table rows are selectable or not, and whether it allows for single selection or multiple selection. It can take the following values:
104
120
  * - "Auto": This is the default value. In this mode, Fiori Elements first checks if there are any custom actions or IBN buttons in the table toolbar that require a context. If no such buttons are found, then no table selection is allowed in display mode. In edit mode too a selection is not allowed unless there is a Delete button in the table toolbar in which case multiple row selection will be allowed.
@@ -128,7 +144,120 @@ export interface TableSettings<COLS = GenericColumns> {
128
144
  * You can set the content density to condensed for ui.table on the list report and object page applications.
129
145
  */
130
146
  condensedTableLayout?: boolean;
131
- columns?: COLS;
147
+ }
148
+ /**
149
+ * Views
150
+ * @isViewNode true
151
+ */
152
+ export interface MultiTableModeV4 {
153
+ /**
154
+ * List of annotation paths
155
+ */
156
+ [key: string]: LRTableView | LRChartView | boolean;
157
+ /**
158
+ * You can show the counts of entries of each view. To do so, add the showCounts option and set it to true.
159
+ */
160
+ showCounts?: boolean;
161
+ }
162
+ /**
163
+ * Chart View
164
+ * @isViewNode true
165
+ */
166
+ export interface ALPChartView {
167
+ /**
168
+ * The primary annotation path can be either UI.Chart, UI.PresentationVariant, or UI.SelectionPresentationVariant.
169
+ */
170
+ annotationPath: string;
171
+ /**
172
+ * Chart Toolbar
173
+ * @isViewNode true
174
+ */
175
+ toolBar?: ViewChartToolBar;
176
+ }
177
+ /**
178
+ * Chart View
179
+ * @isViewNode true
180
+ */
181
+ export interface LRChartView {
182
+ /**
183
+ * To use charts in multiple table mode, define a UI.Chart annotation, including a qualifier.
184
+ * Reference the UI.Chart annotation in your SelectionPresentationVariant or PresentationVariant for your view.
185
+ */
186
+ annotationPath: string;
187
+ /**
188
+ * Each chart can be based on a different entitySet.
189
+ */
190
+ entitySet?: string;
191
+ /**
192
+ * Chart Toolbar
193
+ * @isViewNode true
194
+ */
195
+ toolBar?: ViewChartToolBar;
196
+ }
197
+ /**
198
+ * Table View
199
+ * @isViewNode true
200
+ */
201
+ export interface ALPTableView extends TableSettings {
202
+ /**
203
+ * The secondary annotation path can be either UI.LineItem, UI.PresentationVariant, or UI.SelectionPresentationVariant.
204
+ */
205
+ annotationPath: string;
206
+ /**
207
+ * initialLoad defines whether or not the data in the table is automatically loaded.
208
+ * - Disabled - Data is never loaded when opening the app without an app state.
209
+ * - Enabled - Data is always loaded when opening the app.
210
+ * - Auto - Data is only loaded, if initial/preset filters are available (e.g. defined by "SelectionVariant" definition, URL parameters or user defaults).
211
+ */
212
+ initialLoad?: InitialLoadType;
213
+ /**
214
+ * Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
215
+ * By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
216
+ * Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
217
+ */
218
+ personalization?: ViewPersonalizationType;
219
+ /**
220
+ * Defines the page behavior when a new record is created.
221
+ */
222
+ creationMode?: ViewTableCreationMode;
223
+ /**
224
+ * Table Toolbar
225
+ */
226
+ toolBar?: ToolBar;
227
+ columns?: ViewColumns;
228
+ }
229
+ /**
230
+ * Table View
231
+ * @isViewNode true
232
+ */
233
+ export interface LRTableView extends TableSettings {
234
+ /**
235
+ * The annotation path can be either UI.LineItem, UI.PresentationVariant, or UI.SelectionPresentationVariant.
236
+ */
237
+ annotationPath: string;
238
+ /**
239
+ * Each table can be based on a different entitySet.
240
+ */
241
+ entitySet?: string;
242
+ /**
243
+ * The tab keeps the default LineItem ID (without the key), so the variant is applied to it.
244
+ */
245
+ keepPreviousPersonalization?: boolean;
246
+ /**
247
+ * Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
248
+ * By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
249
+ * Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
250
+ */
251
+ personalization?: ViewPersonalizationType;
252
+ /**
253
+ * Defines the page behavior when a new record is created.
254
+ */
255
+ creationMode?: ViewTableCreationMode;
256
+ /**
257
+ * Table Toolbar
258
+ */
259
+ toolBar?: ToolBar;
260
+ columns?: ViewColumns;
132
261
  }
133
262
  /**
134
263
  * Table
@@ -143,11 +272,19 @@ export interface Table extends TableSettings {
143
272
  */
144
273
  initialLoad?: InitialLoadType;
145
274
  /**
146
- * With the views property you can switch on the multiple view feature. Contrary to quickVariantSelection, each view will be rendered in a different instance of table). It links to SelectionVariant (filters) or SelectionPresentationVariant (filters and sorters) you must have added to your annotations beforehand.
275
+ * Defines the page behavior when a new record is created.
276
+ */
277
+ creationMode?: TableCreationMode;
278
+ /**
279
+ * Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
280
+ * By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
281
+ * Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
147
282
  */
283
+ personalization?: PersonalizationType;
148
284
  views?: MultiTableModeV4;
149
285
  /**
150
286
  * Tool Bar
151
287
  */
152
288
  toolBar?: ToolBar;
289
+ columns?: GenericColumns;
153
290
  }
@@ -27,4 +27,10 @@ var InitialLoadType;
27
27
  InitialLoadType["Enabled"] = "Enabled";
28
28
  InitialLoadType["Auto"] = "Auto";
29
29
  })(InitialLoadType = exports.InitialLoadType || (exports.InitialLoadType = {}));
30
+ var DefaultPathType;
31
+ (function (DefaultPathType) {
32
+ DefaultPathType["Primary"] = "primary";
33
+ DefaultPathType["Secondary"] = "secondary";
34
+ DefaultPathType["Both"] = "both";
35
+ })(DefaultPathType = exports.DefaultPathType || (exports.DefaultPathType = {}));
30
36
  //# sourceMappingURL=Table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../src/specification/v4/controls/Table.ts"],"names":[],"mappings":";;AAGA,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACjB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,kDAAmC,CAAA;IACnC;6BACyB;AAC7B,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,oDAA2B,CAAA;AAC/B,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../src/specification/v4/controls/Table.ts"],"names":[],"mappings":";;AASA,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACjB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,kDAAmC,CAAA;IACnC;6BACyB;AAC7B,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,oDAA2B,CAAA;AAC/B,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;IACvB,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}