@sap/ux-specification 1.90.20 → 1.90.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  3. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  4. package/dist/documentation/v2/v2-ListReport.html +1 -1
  5. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  6. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  7. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +1 -1
  11. package/dist/schemas/v2/ApplicationV2.json +11 -11
  12. package/dist/schemas/v4/ApplicationV4.json +9 -5
  13. package/dist/schemas/v4/ListReportConfig.json +621 -195
  14. package/dist/schemas/v4/ObjectPageConfig.json +6 -38
  15. package/dist/scripts/extractDocu.js.map +1 -1
  16. package/dist/scripts/runDocu.js +10 -40
  17. package/dist/scripts/runDocu.js.map +1 -1
  18. package/dist/scripts/spec.js.map +1 -1
  19. package/dist/scripts/to-json-schema.js.map +1 -1
  20. package/dist/specification/v2/index-min.js +1 -1
  21. package/dist/specification/v4/index-min.js +1 -1
  22. package/dist/src/api.d.ts +2 -2
  23. package/dist/src/api.js +11 -11
  24. package/dist/src/api.js.map +1 -1
  25. package/dist/src/apiTypes.d.ts +14 -18
  26. package/dist/src/apiTypes.js +0 -2
  27. package/dist/src/apiTypes.js.map +1 -1
  28. package/dist/src/extensionLogger.d.ts +1 -1
  29. package/dist/src/project.d.ts +1 -1
  30. package/dist/src/project.js +11 -3
  31. package/dist/src/project.js.map +1 -1
  32. package/dist/src/specification/common/Application.d.ts +24 -4
  33. package/dist/src/specification/common/page.d.ts +1 -1
  34. package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
  35. package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
  36. package/dist/src/specification/schemaAccess.d.ts +1 -1
  37. package/dist/src/specification/schemaAccess.js +1 -2
  38. package/dist/src/specification/schemaAccess.js.map +1 -1
  39. package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
  40. package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
  41. package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
  42. package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
  43. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
  44. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
  45. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
  46. package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
  47. package/dist/src/specification/v2/controls/Table.d.ts +3 -3
  48. package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
  49. package/dist/src/specification/v2/page.d.ts +1 -1
  50. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
  51. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
  52. package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
  53. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
  54. package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
  55. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
  56. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
  57. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
  58. package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
  59. package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
  60. package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
  61. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
  62. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
  63. package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
  64. package/dist/src/specification/v4/controls/Table.d.ts +166 -25
  65. package/dist/src/specification/v4/controls/Table.js +6 -0
  66. package/dist/src/specification/v4/controls/Table.js.map +1 -1
  67. package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
  68. package/dist/src/specification/v4/page.d.ts +2 -2
  69. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
  70. package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
  71. package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
  72. package/dist/src/specification/v4/pages/index.d.ts +0 -1
  73. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
  74. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
  75. package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
  76. package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
  77. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
  78. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  79. package/dist/src/sync/common/appProvider.d.ts +6 -5
  80. package/dist/src/sync/common/appProvider.js.map +1 -1
  81. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  82. package/dist/src/sync/common/decoration/control.js +1 -1
  83. package/dist/src/sync/common/decoration/control.js.map +1 -1
  84. package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
  85. package/dist/src/sync/common/decoration/decorators.js.map +1 -1
  86. package/dist/src/sync/common/decoration/factory.d.ts +3 -3
  87. package/dist/src/sync/common/decoration/flex.d.ts +3 -3
  88. package/dist/src/sync/common/flexUtils.d.ts +4 -4
  89. package/dist/src/sync/common/flexUtils.js.map +1 -1
  90. package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
  91. package/dist/src/sync/common/generate/objectPage.js +64 -68
  92. package/dist/src/sync/common/generate/objectPage.js.map +1 -1
  93. package/dist/src/sync/common/generate/utils.d.ts +24 -16
  94. package/dist/src/sync/common/generate/utils.js +55 -62
  95. package/dist/src/sync/common/generate/utils.js.map +1 -1
  96. package/dist/src/sync/common/import/utils.d.ts +4 -3
  97. package/dist/src/sync/common/import/utils.js +3 -2
  98. package/dist/src/sync/common/import/utils.js.map +1 -1
  99. package/dist/src/sync/common/importProject.d.ts +4 -4
  100. package/dist/src/sync/common/importProject.js +13 -22
  101. package/dist/src/sync/common/importProject.js.map +1 -1
  102. package/dist/src/sync/common/types.d.ts +60 -12
  103. package/dist/src/sync/common/types.js +59 -7
  104. package/dist/src/sync/common/types.js.map +1 -1
  105. package/dist/src/sync/common/utils.d.ts +18 -8
  106. package/dist/src/sync/common/utils.js +179 -65
  107. package/dist/src/sync/common/utils.js.map +1 -1
  108. package/dist/src/sync/i18n.d.ts +1 -1
  109. package/dist/src/sync/v2/application.d.ts +2 -2
  110. package/dist/src/sync/v2/application.js.map +1 -1
  111. package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
  112. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
  113. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
  114. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
  115. package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
  116. package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
  117. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
  118. package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
  119. package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
  120. package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
  121. package/dist/src/sync/v2/export/controls/Fragment.js +110 -34
  122. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  123. package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
  124. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
  125. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
  126. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
  127. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
  128. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
  129. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
  130. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
  131. package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
  132. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
  133. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +14 -17
  134. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
  135. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
  136. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
  137. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  138. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  139. package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
  140. package/dist/src/sync/v2/export/controls/Table.js +26 -25
  141. package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
  142. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
  143. package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
  144. package/dist/src/sync/v2/export/export.d.ts +3 -3
  145. package/dist/src/sync/v2/export/export.js +6 -4
  146. package/dist/src/sync/v2/export/export.js.map +1 -1
  147. package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
  148. package/dist/src/sync/v2/export/exportPage.js +2 -10
  149. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  150. package/dist/src/sync/v2/export/factory.d.ts +2 -1
  151. package/dist/src/sync/v2/export/factory.js.map +1 -1
  152. package/dist/src/sync/v2/export/manifest.d.ts +17 -1
  153. package/dist/src/sync/v2/export/manifest.js +29 -2
  154. package/dist/src/sync/v2/export/manifest.js.map +1 -1
  155. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
  156. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
  157. package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
  158. package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
  159. package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
  160. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
  161. package/dist/src/sync/v2/export/pages/OverviewPage.js +6 -3
  162. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  163. package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
  164. package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
  165. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
  166. package/dist/src/sync/v2/generate/analyticalListReport.js +27 -36
  167. package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  168. package/dist/src/sync/v2/generate/generate.d.ts +2 -2
  169. package/dist/src/sync/v2/generate/generate.js +3 -0
  170. package/dist/src/sync/v2/generate/generate.js.map +1 -1
  171. package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
  172. package/dist/src/sync/v2/generate/listReport.js +38 -36
  173. package/dist/src/sync/v2/generate/listReport.js.map +1 -1
  174. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
  175. package/dist/src/sync/v2/generate/objectPage.js +83 -108
  176. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  177. package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
  178. package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
  179. package/dist/src/sync/v2/generate/utils.d.ts +5 -5
  180. package/dist/src/sync/v2/generate/utils.js +34 -33
  181. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  182. package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
  183. package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
  184. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
  185. package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  186. package/dist/src/sync/v2/import/common/index.d.ts +6 -5
  187. package/dist/src/sync/v2/import/common/index.js +4 -17
  188. package/dist/src/sync/v2/import/common/index.js.map +1 -1
  189. package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
  190. package/dist/src/sync/v2/import/controls/table.js +1 -1
  191. package/dist/src/sync/v2/import/controls/table.js.map +1 -1
  192. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
  193. package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -9
  194. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  195. package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
  196. package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
  197. package/dist/src/sync/v2/import/pages/objectPage.js +33 -20
  198. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  199. package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
  200. package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
  201. package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  202. package/dist/src/sync/v2/import/utils.d.ts +3 -2
  203. package/dist/src/sync/v2/import/utils.js +16 -2
  204. package/dist/src/sync/v2/import/utils.js.map +1 -1
  205. package/dist/src/sync/v2/types.d.ts +7 -7
  206. package/dist/src/sync/v4/application.d.ts +9 -5
  207. package/dist/src/sync/v4/application.js +23 -2
  208. package/dist/src/sync/v4/application.js.map +1 -1
  209. package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
  210. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
  211. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  212. package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
  213. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
  214. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +3 -3
  215. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
  216. package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
  217. package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
  218. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
  219. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  220. package/dist/src/sync/v4/export/controls/Table.d.ts +126 -9
  221. package/dist/src/sync/v4/export/controls/Table.js +439 -48
  222. package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
  223. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
  224. package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
  225. package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  226. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
  227. package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
  228. package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
  229. package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  230. package/dist/src/sync/v4/export/export.d.ts +2 -2
  231. package/dist/src/sync/v4/export/export.js +317 -78
  232. package/dist/src/sync/v4/export/export.js.map +1 -1
  233. package/dist/src/sync/v4/export/factory.d.ts +2 -1
  234. package/dist/src/sync/v4/export/factory.js.map +1 -1
  235. package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
  236. package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  237. package/dist/src/sync/v4/export/manifest.d.ts +2 -2
  238. package/dist/src/sync/v4/export/manifest.js +43 -31
  239. package/dist/src/sync/v4/export/manifest.js.map +1 -1
  240. package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
  241. package/dist/src/sync/v4/export/pages/ListReport.js +49 -0
  242. package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
  243. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
  244. package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
  245. package/dist/src/sync/v4/export/pages/index.js +0 -1
  246. package/dist/src/sync/v4/export/pages/index.js.map +1 -1
  247. package/dist/src/sync/v4/export/types.d.ts +7 -5
  248. package/dist/src/sync/v4/export/utils.d.ts +1 -1
  249. package/dist/src/sync/v4/generate/generate.d.ts +5 -4
  250. package/dist/src/sync/v4/generate/generate.js +6 -3
  251. package/dist/src/sync/v4/generate/generate.js.map +1 -1
  252. package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
  253. package/dist/src/sync/v4/generate/listReport.js +406 -36
  254. package/dist/src/sync/v4/generate/listReport.js.map +1 -1
  255. package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
  256. package/dist/src/sync/v4/generate/objectPage.js +37 -14
  257. package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
  258. package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
  259. package/dist/src/sync/v4/import/app/appProvider.js +55 -43
  260. package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
  261. package/dist/src/sync/v4/import/fragment.d.ts +2 -2
  262. package/dist/src/sync/v4/import/fragment.js.map +1 -1
  263. package/dist/src/sync/v4/import/index.d.ts +0 -1
  264. package/dist/src/sync/v4/import/index.js +0 -1
  265. package/dist/src/sync/v4/import/index.js.map +1 -1
  266. package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
  267. package/dist/src/sync/v4/import/pages/listReport.js +120 -29
  268. package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
  269. package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
  270. package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
  271. package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
  272. package/dist/src/sync/v4/import/utils.d.ts +2 -2
  273. package/dist/src/sync/v4/import/utils.js +2 -2
  274. package/dist/src/sync/v4/import/utils.js.map +1 -1
  275. package/dist/src/sync/v4/types.d.ts +2 -2
  276. package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  277. package/dist/src/sync/v4/utils/utils.d.ts +17 -12
  278. package/dist/src/sync/v4/utils/utils.js +72 -25
  279. package/dist/src/sync/v4/utils/utils.js.map +1 -1
  280. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
  281. package/dist/test/test-projects/index.d.ts +1 -1
  282. package/dist/test/test-utils/utils.d.ts +5 -4
  283. package/dist/test/unit/export/manifest.test.d.ts +1 -0
  284. package/package.json +12 -10
  285. package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
  286. package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
  287. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
  288. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
  289. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
  290. package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
  291. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
  292. package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
  293. package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
  294. package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
  295. package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
@@ -10,7 +10,7 @@ const i18next_1 = __importDefault(require("i18next"));
10
10
  const __1 = require("../../..");
11
11
  const v4_1 = require("../../../v4");
12
12
  /**
13
- * Processes a LineItem record of type DataFieldForCation during app schema generation
13
+ * Processes a LineItem record of type DataFieldForAction during app schema generation
14
14
  * @param appSchema - the app specific schema that shall get enhanced
15
15
  * @param entityType - the entity type as part of the AVT ConverterOutput
16
16
  * @param actions - actions definition in schema, parent object
@@ -22,22 +22,41 @@ function handleActionRecord(appSchema, entityType, actions, lineItemPath, lineIt
22
22
  // Action but not inline action
23
23
  if (lineItemRecord.Determining !== true) {
24
24
  //no footer bar -> toolbar action
25
- const actionDefinitionName = lineItemId === 'LineItems' ? 'ToolBarAction' : 'ObjectPageToolBarAction';
25
+ let actionDefinitionName;
26
+ if (lineItemId.startsWith('LineItemsOfView')) {
27
+ actionDefinitionName = v4_1.DefinitionName.ViewToolBarAction;
28
+ }
29
+ else if (lineItemId.startsWith(v4_1.DefinitionName.LineItems)) {
30
+ actionDefinitionName = v4_1.DefinitionName.ToolBarAction;
31
+ }
32
+ else {
33
+ actionDefinitionName = v4_1.DefinitionName.ObjectPageToolBarAction;
34
+ }
26
35
  const actionDefinition = common_1.prepareRef(`${actionDefinitionName}<${lineItemRecord.Action}>`);
27
36
  const description = utils_1.getDatafieldDescription(lineItemRecord, entityType);
28
- actions['properties'][`DataFieldForAction::${lineItemRecord.Action}`] = {
37
+ const prefix = lineItemRecord.$Type.split(`${common_1.UIVOCABULARY}.`)[1];
38
+ actions.properties[`${prefix}::${lineItemRecord.Action}`] = {
29
39
  $ref: utils_1.DEFINITION_LINK_PREFIX + actionDefinition,
30
- description,
31
- propertyIndex: recordIndex,
32
- annotationType: lineItemRecord.$Type
40
+ description
33
41
  };
34
- const actionId = lineItemId === 'LineItems' ? 'ToolBarAction' : 'ObjectPageToolBarAction';
35
- appSchema['definitions'][actionDefinition] = JSON.parse(JSON.stringify(appSchema['definitions'][actionId]));
36
- appSchema['definitions'][actionDefinition].annotationPath = lineItemPath + '/' + recordIndex;
42
+ actions.properties[`${prefix}::${lineItemRecord.Action}`][v4_1.SchemaTag.propertyIndex] = recordIndex;
43
+ actions.properties[`${prefix}::${lineItemRecord.Action}`][v4_1.SchemaTag.annotationType] = lineItemRecord.$Type;
44
+ appSchema.definitions[actionDefinition] = JSON.parse(JSON.stringify(appSchema.definitions[actionDefinitionName]));
45
+ appSchema.definitions[actionDefinition][v4_1.SchemaTag.annotationPath] = `${lineItemPath}/${recordIndex}`;
37
46
  }
38
47
  }
39
48
  exports.handleActionRecord = handleActionRecord;
40
- function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, propertyIndex, oDataServiceAVT) {
49
+ /**
50
+ * Processes a LineItem record of type DataField during app schema generation
51
+ * @param lineItem - object comprising the line item information:
52
+ * { lineItemRecord, lineItemId, lineItemPath }
53
+ * @param appSchema - the app specific schema that shall get enhanced
54
+ * @param columnDefinitionName - Schema definition name for the column
55
+ * @param entityType - the entity type as part of the AVT ConverterOutput
56
+ * @param recordIndex - record index in the collection
57
+ * @param {ConverterOutput} oDataServiceAVT - AVT information
58
+ */
59
+ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, recordIndex, oDataServiceAVT) {
41
60
  var _a, _b, _c, _d, _e;
42
61
  const lineItemId = lineItem['lineItemId'];
43
62
  const lineItemRecord = lineItem['lineItemRecord'];
@@ -47,16 +66,16 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
47
66
  }
48
67
  const schemaKey = StableIdHelper_1.getStableIdPartFromDataField(lineItemRecord);
49
68
  if (schemaKey) {
50
- appSchema['definitions'][lineItemId]['properties'][schemaKey] = {
69
+ const properties = appSchema.definitions[lineItemId].properties;
70
+ properties[schemaKey] = {
51
71
  $ref: utils_1.DEFINITION_LINK_PREFIX + columnDefinitionName,
52
- description: utils_1.getDatafieldDescription(lineItemRecord, entityType),
53
- // Custom property in schema - for object properties ordering purpose
54
- propertyIndex,
55
- annotationPath: `${lineItem['lineItemPath']}/${propertyIndex}`,
56
- annotationType: lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type
72
+ description: utils_1.getDatafieldDescription(lineItemRecord, entityType)
57
73
  };
74
+ properties[schemaKey][v4_1.SchemaTag.annotationType] = lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type;
75
+ properties[schemaKey][v4_1.SchemaTag.annotationPath] = `${lineItem['lineItemPath']}/${recordIndex}`;
76
+ properties[schemaKey][v4_1.SchemaTag.propertyIndex] = recordIndex;
58
77
  if ((_c = (_b = lineItemRecord['Value']) === null || _b === void 0 ? void 0 : _b.$target) === null || _c === void 0 ? void 0 : _c.type) {
59
- appSchema['definitions'][lineItemId]['properties'][schemaKey].dataType = (_e = (_d = lineItemRecord['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
78
+ properties[schemaKey][v4_1.SchemaTag.dataType] = (_e = (_d = lineItemRecord['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
60
79
  }
61
80
  }
62
81
  }
@@ -66,15 +85,12 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
66
85
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
67
86
  * @param entityType - the entity type as part of the AVT ConverterOutput
68
87
  * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
88
+ * @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
89
+ * in case of LR or ALP 'LineItems' is passed.
69
90
  * @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
70
- * @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
71
- * @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
72
- * in case of LR or ALP no ID is passed, 'LineItems' is taken then.
73
- * @param customColumnRef - schema reference to custom column definition.
74
91
  */
75
- function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, columnDefinitionName = v4_1.DefinitionName.TableColumn, lineItemId) {
92
+ function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, lineItemId, columnDefinitionName = v4_1.DefinitionName.TableColumn) {
76
93
  // Add the correct lineItem definition
77
- lineItemId = lineItemId || 'LineItems';
78
94
  const { actions, lineItemPath } = common_1.addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId);
79
95
  if (!lineItemAnnotation) {
80
96
  return;
@@ -101,7 +117,7 @@ exports.addLineItemsType = addLineItemsType;
101
117
  * Find the relevant V4 page under the routing targets of manifest,json
102
118
  * @param pages - list of all pages in manifest
103
119
  * @param pageName - search criterion: page name
104
- * @param entitySet - search criterion: entty set
120
+ * @param entitySet - search criterion: entity set
105
121
  * @param logger - logger for messages
106
122
  * @returns the page definition in manifest (if found)
107
123
  */
@@ -109,7 +125,9 @@ function findPageV4(pages, pageName, entitySet, logger) {
109
125
  var _a, _b;
110
126
  let v4Page;
111
127
  for (const i in pages) {
112
- if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name && pages[i].name === pageName) {
128
+ if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
129
+ (pages[i].name === pageName ||
130
+ (pageName === v4_1.FE_TEMPLATE_V4_ALP && pages[i].name === v4_1.FE_TEMPLATE_V4_LIST_REPORT))) {
113
131
  v4Page = pages[i];
114
132
  break;
115
133
  }
@@ -127,4 +145,33 @@ function findPageV4(pages, pageName, entitySet, logger) {
127
145
  return v4Page;
128
146
  }
129
147
  exports.findPageV4 = findPageV4;
148
+ /**
149
+ * Depending on the template type, strip down the app schema so that only the relevant views are part of it
150
+ * @param {Definition} appSchema - app specific JSON schema, to be adjusted
151
+ * @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
152
+ * @returns the right definition name for the table in the schema
153
+ */
154
+ function alignSchemaWithTemplateType(appSchema, generateParameters) {
155
+ let tableDefinitionName;
156
+ if (generateParameters.templateType === utils_1.TemplateType.AnalyticalListPageV4) {
157
+ delete appSchema.properties['table']['anyOf'];
158
+ appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.ALPTableView}`;
159
+ tableDefinitionName = v4_1.DefinitionName.ALPTableView;
160
+ delete appSchema.definitions[v4_1.DefinitionName.Table];
161
+ delete appSchema.definitions[v4_1.DefinitionName.LRChartView];
162
+ delete appSchema.definitions[v4_1.DefinitionName.LRTableView];
163
+ delete appSchema.definitions['MultiTableModeV4'];
164
+ }
165
+ else if (generateParameters.templateType === utils_1.TemplateType.ListReportObjectPageV4) {
166
+ delete appSchema.properties['table']['anyOf'];
167
+ appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.Table}`;
168
+ tableDefinitionName = v4_1.DefinitionName.Table;
169
+ appSchema.definitions[tableDefinitionName].properties['annotationPath'][v4_1.SchemaTag.hidden] =
170
+ true;
171
+ delete appSchema.definitions[v4_1.DefinitionName.ALPTableView];
172
+ appSchema.properties['defaultPath'][v4_1.SchemaTag.hidden] = true;
173
+ }
174
+ return tableDefinitionName;
175
+ }
176
+ exports.alignSchemaWithTemplateType = alignSchemaWithTemplateType;
130
177
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAAA,8CAAgG;AAChG,qDAAgE;AAWhE,yCAAoG;AAEpG,sDAA8B;AAC9B,gCAA8E;AAC9E,oCAA6D;AAE7D;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAC9B,SAAiB,EACjB,UAAsB,EACtB,OAAe,EACf,YAAoB,EACpB,cAA+C,EAC/C,UAAkB,EAClB,WAAmB;IAEnB,+BAA+B;IAC/B,IAAI,cAAc,CAAC,WAAW,KAAK,IAAI,EAAE;QACrC,iCAAiC;QACjC,MAAM,oBAAoB,GAAG,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,yBAAyB,CAAC;QACtG,MAAM,gBAAgB,GAAG,mBAAU,CAAC,GAAG,oBAAoB,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;QACzF,MAAM,WAAW,GAAG,+BAAuB,CAAC,cAAwC,EAAE,UAAU,CAAC,CAAC;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AAU,CAAC,gBAAgB,CAAC,CAAC,cAAS,CAAC,MAAM,CAAC;YACrG,IAAI,CAAC;QACT,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,YAAY,CAAC,CAAC;QAC1D,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,cAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;KAChE;IACD,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AAvBD,kEAuBC"}
@@ -1,4 +1,4 @@
1
- import { Manifest } from '../../../../../src';
1
+ import type { Manifest } from '../../../../../src';
2
2
  interface ChangeData {
3
3
  manifest: Manifest;
4
4
  changes: string[];
@@ -1,2 +1,2 @@
1
- import { Project } from '../../src/project';
1
+ import type { Project } from '../../src/project';
2
2
  export declare const getProjects: () => Promise<Project[]>;
@@ -1,7 +1,7 @@
1
- import { FileData } from '../../src';
2
- import { ExtensionLogger } from '../../src';
3
- import { Location } from '../../src/extensionLogger';
4
- import { ExportResults } from '../../src/sync/common';
1
+ import type { FileData } from '../../src';
2
+ import type { ExtensionLogger } from '../../src';
3
+ import type { Location } from '../../src/extensionLogger';
4
+ import type { ExportResults } from '../../src/sync/common';
5
5
  export declare class Logger implements ExtensionLogger {
6
6
  logInfo: string[];
7
7
  logWarning: string[];
@@ -22,6 +22,7 @@ export declare function getSDV4Annotations(): FileData[];
22
22
  export declare function getSTTAAnnotationsProdMan2(): FileData[];
23
23
  export declare function getExtensionsProdMan2(): FileData[];
24
24
  export declare function getSEPMRAAnnotations(): FileData[];
25
+ export declare function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles?: string[]): FileData[];
25
26
  export declare function findFlexChangeBySelector(exportResult: ExportResults, selectorId: string, property: string): object;
26
27
  /**
27
28
  * Function to find out the flexChange from a list. Uses global variable exportResult
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/ux-specification",
3
- "version": "1.90.20",
3
+ "version": "1.90.25",
4
4
  "displayName": "SAP Fiori tools - Specification",
5
5
  "description": "SAP Fiori tools - Specification",
6
6
  "files": [
@@ -28,11 +28,12 @@
28
28
  "test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
29
29
  "test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
30
30
  "update-snapshots": "jest --updateSnapshot",
31
+ "build:snap": "yarn build:dev && yarn update-snapshots",
31
32
  "lint": "eslint . --ext .ts",
32
33
  "lint:summary": "eslint . --ext .ts -f summary",
33
- "lint:fix": "eslint . --report-unused-disable-directives --ext .ts --fix",
34
- "lint:report": "eslint . --report-unused-disable-directives --ext .ts -f multiple",
35
- "lint:report:jslint": "eslint . --report-unused-disable-directives --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
34
+ "lint:fix": "eslint . --ext .ts --fix",
35
+ "lint:report": "eslint . --ext .ts -f multiple",
36
+ "lint:report:jslint": "eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
36
37
  "docuV2": "node dist/scripts/extractDocu.js --version=v2 format=excel",
37
38
  "docuV4": "node dist/scripts/extractDocu.js --version=v4 format=excel",
38
39
  "iXiaSoftV2": "node dist/scripts/extractDocu.js --version=v2 --format=iXiaSoft",
@@ -53,26 +54,27 @@
53
54
  "@types/jest": "26.0.23",
54
55
  "@types/jquery": "3.5.6",
55
56
  "@types/sax": "1.2.1",
56
- "@typescript-eslint/eslint-plugin": "4.14.1",
57
- "@typescript-eslint/parser": "4.14.1",
57
+ "@typescript-eslint/eslint-plugin": "5.12.1",
58
+ "@typescript-eslint/parser": "5.12.1",
58
59
  "@ui5/flexibility-utils": "0.1.3",
59
60
  "ajv": "6.12.6",
60
61
  "cpy-cli": "3.1.1",
61
62
  "d3": "7.1.1",
62
63
  "deepmerge": "4.2.2",
63
64
  "ejs": "3.1.6",
64
- "eslint": "7.18.0",
65
+ "eslint": "7.32.0",
65
66
  "eslint-formatter-multiple": "1.0.0",
66
- "eslint-plugin-prettier": "3.3.1",
67
+ "eslint-plugin-prettier": "3.4.1",
68
+ "eslint-config-prettier": "8.3.0",
67
69
  "excel4node": "1.7.2",
68
- "http-server": "13.0.1",
69
70
  "i18next": "20.3.1",
70
71
  "jest": "26.6.3",
72
+ "jest-file-snapshot": "0.5.0",
71
73
  "jest-sonar-reporter": "2.0.0",
72
74
  "jquery": "3.6.0",
73
75
  "lodash.unset": "4.5.2",
74
76
  "path": "0.12.7",
75
- "prettier": "1.19.1",
77
+ "prettier": "2.5.1",
76
78
  "reflect-metadata": "0.1.13",
77
79
  "rimraf": "3.0.2",
78
80
  "sax": "1.2.4",
@@ -1,49 +0,0 @@
1
- <!DOCTYPE html>
2
- <head>
3
- <meta charset="utf-8" />
4
- <link href="../styleDocu.css" rel="stylesheet" />
5
- </head>
6
- <body>
7
- <div id="button-container">
8
- <input type="button" id="resetTree" value="Reset" /><input type="button" value="Expand" id="expandTree" />
9
- </div>
10
- <div id="search-container">
11
- <div id="search-input-container">
12
- <svg
13
- id="search-icon"
14
- width="14"
15
- height="14"
16
- viewBox="0 0 16 16"
17
- fill="none"
18
- xmlns="http://www.w3.org/2000/svg"
19
- >
20
- <g>
21
- <path
22
- fill-rule="evenodd"
23
- clip-rule="evenodd"
24
- d="M9.50249 10C7.02149 10 5.00249 7.981 5.00249 5.5C5.00249 3.019 7.02149 1 9.50249 1C11.9835 1 14.0025 3.019 14.0025 5.5C14.0025 7.981 11.9835 10 9.50249 10ZM9.50249 0C6.47049 0 4.00249 2.468 4.00249 5.5C4.00249 6.947 4.56849 8.261 5.48549 9.244L0.000488281 15.331L0.743488 16.001L6.23149 9.911C7.14749 10.592 8.27649 11 9.50249 11C12.5355 11 15.0025 8.532 15.0025 5.5C15.0025 2.468 12.5355 0 9.50249 0Z"
25
- fill="#C5C5C5"
26
- />
27
- </g>
28
- </svg>
29
- <input type="search" data-type="search" placeholder="Search" id="search-input" />
30
- </div>
31
- <ul
32
- id="search-result"
33
- data-role="listview"
34
- data-filter="true"
35
- data-filter-reveal="true"
36
- data-input="#search-input"
37
- data-inset="true"
38
- ></ul>
39
- </div>
40
- <svg id="tree-container"></svg>
41
- </body>
42
- <script>
43
- // placeholder for data
44
- var exports = {},
45
- floorPlanIcon = `<svg id="floorPlan-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
46
- <g><path fill-rule="evenodd" clip-rule="evenodd" fill="#C5C5C5"d="M9 13V14H6V13H9ZM5 13V14H2V13H5ZM13 13V14H10V13H13ZM9 11V12H6V11H9ZM5 11V12H2V11H5ZM13 11V12H10V11H13ZM5 9V10H2V9H5ZM9 9V10H6V9H9ZM13 9V10H10V9H13ZM3.986 1.998V6.024H1.965V1.998H3.986ZM6.99 4.01V6.01H4.99V4.01H6.99ZM10.008 3.019V6.01H8.008V3.019H10.008ZM13.005 1.998V6.011H11.005V1.998H13.005ZM1 14.988H14.988V7.995H1V14.988ZM1.001 6.994H14.989V1H1.001V6.994ZM1.00169 0C0.449309 0 0 0.448336 0 1.00075V14.9992C0 15.5517 0.449309 16 1.00169 16H14.9993C15.5517 16 16 15.5517 16 14.9992V1.00075C16 0.448336 15.5517 0 14.9993 0H1.00169Z"/></g></svg>`;
47
- var treeData = {"name":"AnalyticalListPage","description":"SAP Fiori elements v4<br>Specification Version: 1.90.20","type":"schema","children":[{"name":"table","children":[{"name":"initialLoad","children":[],"type":"Auto|Disabled|Enabled","artifact":"Manifest","description":"initialLoad defines whether or not the data in the table is automatically loaded.\n- Disabled - Data is never loaded when opening the app without an app state.\n- Enabled - Data is always loaded when opening the app.\n- Auto - Data is only loaded, if initial/preset filters are available (e.g. defined by \"SelectionVariant\" definition, URL parameters or user defaults)."},{"name":"views","children":[{"name":"paths","children":[{"name":"key","children":[],"type":"string"},{"name":"annotationPath","children":[],"type":"string"},{"name":"entitySet","children":[],"type":"string"}],"type":"object","artifact":"Manifest","description":"List of annotation paths referring to SelectionVariant annotations"},{"name":"showCounts","children":[],"type":"boolean","artifact":"Manifest","description":"You can show the counts of entries of each view. To do so, add the showCounts option and set it to true."}],"type":"object","artifact":"Manifest","description":"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."},{"name":"toolBar","children":[{"name":"actions","children":[{"name":"enableOnSelect","children":[],"type":"multi|single","artifact":"Manifest","description":"Enables single selection for a bound action"}]}],"type":"object","description":"Tool Bar"},{"name":"type","children":[],"type":"AnalyticalTable|GridTable|ResponsiveTable","artifact":"Manifest","description":"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."},{"name":"creationMode","children":[{"name":"name","children":[],"type":"CreationRow|Inline|NewPage","artifact":"Manifest","description":" possible values are:\n- NewPage: The create action leads to a new page.\n- Inline: The create action leads to a new row at the table.\n- CreationRow: No create button will be rendered, an empty row is directly given.\nThe default is \"NewPage\"."},{"name":"createAtEnd","children":[],"type":"boolean","artifact":"Manifest","description":"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\""}],"type":"object","artifact":"Manifest","description":"Defines the page behavior when a new record is created."},{"name":"personalization","children":[{"name":"column","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can add and remove columns to a given table."},{"name":"sort","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can sort a given table."},{"name":"filter","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can filter data of a given table."}],"type":"object","artifact":"Manifest","description":"Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.\nBy 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.\nOmitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases."},{"name":"selectionMode","children":[],"type":"Auto|Multi|None|Single","artifact":"Manifest","description":"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:\n- \"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.\n- \"Multi\": This will allow end users to select multiple table records (in both display and edit mode)\n- \"Single\" This will allow end user to select only a single table record (in both display and edit mode)\n- \"None\": This will not allow the end user to select any table record in display mode. This will also be the case in edit mode unless the table has a delete button enabled, in which multiple selection is allowed in delete mode."},{"name":"selectAll","children":[],"type":"boolean","artifact":"Manifest","description":"The selectAll configuration overrides the selectionLimit and allows the user to select all the items. When set to true, the select all feature is enabled: a checkbox in the table header is displayed which selects all items when clicked."},{"name":"selectionLimit","children":[],"type":"number","artifact":"Manifest","description":"With the selectionLimit you can define how many items can be selected at a time,"},{"name":"enableExport","children":[],"type":"boolean","artifact":"Manifest","description":" otherwise it is disabled.\nTo disable the export in List Report or to enable it in Object Page, use the \"enableExport\" property and set it to false or true."},{"name":"quickVariantSelection","children":[{"name":"paths","children":[{"name":"annotationPath","children":[],"type":"string"}],"type":"object","artifact":"Manifest","description":"List of annotation paths referring to SelectionVariant annotations"},{"name":"hideTableTitle","children":[],"type":"boolean","artifact":"Manifest","description":"You can hide the table and display only the titles of the tabs. To do so, add the hideTableTitle option and set it to true."},{"name":"showCounts","children":[],"type":"boolean","artifact":"Manifest","description":"You can show the counts of entries of each view. To do so, add the showCounts option and set it to true."}],"type":"object","artifact":"Manifest","description":"With quickVariantSelection you can switch on the multiple view feature (single table mode). It links to SelectionVariant (filters) or SelectionPresentationVariant (filters and sorters) you must have added to your annotations beforehand."},{"name":"condensedTableLayout","children":[],"type":"boolean","artifact":"Manifest","description":"You can set the content density to condensed for ui.table on the list report and object page applications."},{"name":"columns","children":[{"name":"columnId","children":[{"name":"width","children":[],"type":"string","artifact":"Manifest","description":"A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize."},{"name":"availability","children":[],"type":"Adaptation|Default|Hidden","artifact":"Manifest","description":"Defines where the column should be shown.\nDefault: it will be shown by default in the table.\nAdaptation: it will initially not shown in the table but be available via end user adaptation.\nHidden: the column is neither available in the table nor in adaptation."},{"name":"afterExecution","children":[{"name":"navigateToInstance","children":[],"type":"boolean","artifact":"Manifest","description":"By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”."},{"name":"enableAutoScroll","children":[],"type":"boolean","artifact":"Manifest","description":"The \"enableAutoScroll\" allows you to scroll to the newly created or change item after execution of an action"}],"type":"object","artifact":"Manifest","description":"Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)"}]}]}]},{"name":"variantManagement","children":[],"type":"Control|None|Page","artifact":"Manifest","description":"variantManagement defines how the variant management of page personalizations is controlled.\n- None - No variant management by default.\n- Control - Individual personalizations for each control."}]};
48
- </script>
49
- <script type="module" src="./../runDocu-min.js"></script>