@sap/ux-specification 1.139.4 → 1.139.6

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 (272) hide show
  1. package/CHANGELOG.md +66 -1
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ListReportNew.html +2 -2
  6. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  7. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  8. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  9. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  10. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  11. package/dist/documentation/v4/v4-ListReport.html +2 -2
  12. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  13. package/dist/index-min.js +251 -254
  14. package/dist/index-min.js.map +4 -4
  15. package/dist/schemas/v2/ApplicationV2.json +46 -12
  16. package/dist/schemas/v2/ListReportNewConfig.json +136 -0
  17. package/dist/schemas/v2/ObjectPageConfig.json +11 -5
  18. package/dist/schemas/v4/ApplicationV4.json +61 -28
  19. package/dist/schemas/v4/BuildingBlocksConfig.json +163 -640
  20. package/dist/schemas/v4/ListReportConfig.json +248 -9
  21. package/dist/schemas/v4/ObjectPageConfig.json +269 -3
  22. package/dist/specification/package.json +16 -16
  23. package/dist/specification/scripts/macros/schema.d.ts +7 -0
  24. package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
  25. package/dist/specification/scripts/macros/schema.js +61 -14
  26. package/dist/specification/scripts/macros/schema.js.map +1 -1
  27. package/dist/specification/scripts/macros/types.d.ts +1 -0
  28. package/dist/specification/scripts/macros/types.d.ts.map +1 -1
  29. package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
  30. package/dist/specification/scripts/schema/to-json-schema.js +64 -9
  31. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  32. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
  33. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +1 -0
  34. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
  35. package/dist/specification/src/sync/common/decoration/decorators.d.ts +65 -4
  36. package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
  37. package/dist/specification/src/sync/common/decoration/decorators.js +138 -8
  38. package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
  39. package/dist/specification/src/sync/common/distTagEvaluator.d.ts +10 -3
  40. package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
  41. package/dist/specification/src/sync/common/distTagEvaluator.js +14 -4
  42. package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
  43. package/dist/specification/src/sync/common/dist_tag.json +9 -5
  44. package/dist/specification/src/sync/common/generate/objectPage.d.ts +10 -1
  45. package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
  46. package/dist/specification/src/sync/common/generate/objectPage.js +63 -7
  47. package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
  48. package/dist/specification/src/sync/common/generate/utils.d.ts +11 -4
  49. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  50. package/dist/specification/src/sync/common/generate/utils.js +32 -20
  51. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  52. package/dist/specification/src/sync/common/i18n.json +9 -2
  53. package/dist/specification/src/sync/common/rules.d.ts +1 -0
  54. package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
  55. package/dist/specification/src/sync/common/rules.js +38 -13
  56. package/dist/specification/src/sync/common/rules.js.map +1 -1
  57. package/dist/specification/src/sync/common/utils.d.ts +64 -0
  58. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  59. package/dist/specification/src/sync/common/utils.js +149 -15
  60. package/dist/specification/src/sync/common/utils.js.map +1 -1
  61. package/dist/specification/src/sync/v2/application.d.ts +1 -0
  62. package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
  63. package/dist/specification/src/sync/v2/application.js +18 -0
  64. package/dist/specification/src/sync/v2/application.js.map +1 -1
  65. package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
  66. package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
  67. package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
  68. package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
  69. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
  70. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +6 -12
  71. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
  72. package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
  73. package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
  74. package/dist/specification/src/sync/v2/export/factory.js +3 -3
  75. package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
  76. package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
  77. package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
  78. package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
  79. package/dist/specification/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
  80. package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
  81. package/dist/specification/src/sync/v2/generate/listReport.js +46 -1
  82. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  83. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +1 -2
  84. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -1
  85. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  86. package/dist/specification/src/sync/v2/generate/objectPage.js +63 -13
  87. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  88. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
  89. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
  90. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +4 -1
  91. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  92. package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts +8 -0
  93. package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts.map +1 -1
  94. package/dist/specification/src/sync/v2/generate/stableIdUtils.js +1 -0
  95. package/dist/specification/src/sync/v2/generate/stableIdUtils.js.map +1 -1
  96. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +3 -2
  97. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
  98. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts +78 -0
  99. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts.map +1 -0
  100. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +454 -0
  101. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -0
  102. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
  103. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
  104. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
  105. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
  106. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +55 -0
  107. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -0
  108. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +152 -0
  109. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -0
  110. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +3 -0
  111. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
  112. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +3 -0
  113. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
  114. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +4 -2
  115. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
  116. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +61 -23
  117. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
  118. package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
  119. package/dist/specification/src/sync/v2/import/pages/overviewPage.js +32 -13
  120. package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  121. package/dist/specification/src/sync/v2/utils.d.ts +23 -0
  122. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  123. package/dist/specification/src/sync/v2/utils.js +67 -0
  124. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  125. package/dist/specification/src/sync/v4/application.d.ts +4 -0
  126. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  127. package/dist/specification/src/sync/v4/application.js +51 -1
  128. package/dist/specification/src/sync/v4/application.js.map +1 -1
  129. package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -2
  130. package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
  131. package/dist/specification/src/sync/v4/export/controls/Header.js +14 -2
  132. package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
  133. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +3 -1
  134. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
  135. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +17 -2
  136. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
  137. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts +3 -1
  138. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
  139. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooterAction.js +20 -0
  140. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooterAction.js.map +1 -1
  141. package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts +6 -2
  142. package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
  143. package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js +27 -4
  144. package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -1
  145. package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +1 -0
  146. package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -1
  147. package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js +10 -0
  148. package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -1
  149. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +7 -2
  150. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
  151. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js +37 -4
  152. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -1
  153. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.d.ts +1 -0
  154. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.d.ts.map +1 -1
  155. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.js +10 -0
  156. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.js.map +1 -1
  157. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +2 -0
  158. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  159. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +10 -0
  160. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  161. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +4 -0
  162. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
  163. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js +30 -0
  164. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
  165. package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +7 -2
  166. package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
  167. package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js +36 -3
  168. package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
  169. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +3 -0
  170. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  171. package/dist/specification/src/sync/v4/export/controls/Table.js +40 -23
  172. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  173. package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts +7 -0
  174. package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
  175. package/dist/specification/src/sync/v4/export/controls/TableColumn.js +60 -0
  176. package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  177. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +14 -4
  178. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
  179. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +75 -9
  180. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  181. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
  182. package/dist/specification/src/sync/v4/export/fpmCustomPage.js +13 -3
  183. package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
  184. package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
  185. package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
  186. package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
  187. package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +107 -0
  188. package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
  189. package/dist/specification/src/sync/v4/generate/ListReportUtils.js +392 -0
  190. package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
  191. package/dist/specification/src/sync/v4/generate/listReport.d.ts +107 -2
  192. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
  193. package/dist/specification/src/sync/v4/generate/listReport.js +176 -91
  194. package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
  195. package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -0
  196. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  197. package/dist/specification/src/sync/v4/generate/objectPage.js +64 -8
  198. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  199. package/dist/specification/src/sync/v4/sync-rules/App.d.ts +141 -0
  200. package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -0
  201. package/dist/specification/src/sync/v4/sync-rules/App.js +208 -0
  202. package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -0
  203. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +193 -0
  204. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -0
  205. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +384 -0
  206. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -0
  207. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +172 -0
  208. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -0
  209. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +410 -0
  210. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -0
  211. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +70 -0
  212. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -0
  213. package/dist/specification/src/sync/v4/sync-rules/Page.js +73 -0
  214. package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -0
  215. package/dist/specification/src/sync/v4/sync-rules/utils.d.ts +9 -0
  216. package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -0
  217. package/dist/specification/src/sync/v4/sync-rules/utils.js +43 -0
  218. package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -0
  219. package/dist/specification/src/sync/v4/utils/utils.d.ts +16 -4
  220. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  221. package/dist/specification/src/sync/v4/utils/utils.js +100 -26
  222. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  223. package/dist/types/src/common/types.d.ts +114 -3
  224. package/dist/types/src/common/types.d.ts.map +1 -1
  225. package/dist/types/src/common/types.js +8 -0
  226. package/dist/types/src/common/types.js.map +1 -1
  227. package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
  228. package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
  229. package/dist/types/src/v2/application.d.ts +18 -0
  230. package/dist/types/src/v2/application.d.ts.map +1 -1
  231. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  232. package/dist/types/src/v2/controls/ObjectPageTable.d.ts +4 -4
  233. package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
  234. package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
  235. package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
  236. package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
  237. package/dist/types/src/v4/application.d.ts +13 -6
  238. package/dist/types/src/v4/application.d.ts.map +1 -1
  239. package/dist/types/src/v4/controls/Action.d.ts +16 -0
  240. package/dist/types/src/v4/controls/Action.d.ts.map +1 -0
  241. package/dist/types/src/v4/controls/Action.js +11 -0
  242. package/dist/types/src/v4/controls/Action.js.map +1 -0
  243. package/dist/types/src/v4/controls/CustomAction.d.ts +2 -1
  244. package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
  245. package/dist/types/src/v4/controls/CustomAction.js.map +1 -1
  246. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +2 -1
  247. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
  248. package/dist/types/src/v4/controls/ObjectPageForm.d.ts +6 -3
  249. package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
  250. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +6 -3
  251. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
  252. package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  253. package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
  254. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +7 -0
  255. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  256. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  257. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +10 -7
  258. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
  259. package/dist/types/src/v4/controls/Table.d.ts +14 -1
  260. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  261. package/dist/types/src/v4/controls/Table.js.map +1 -1
  262. package/dist/types/src/v4/controls/ToolBar.d.ts +32 -10
  263. package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
  264. package/dist/types/src/v4/controls/ToolBar.js.map +1 -1
  265. package/dist/types/src/v4/controls/index.d.ts +1 -0
  266. package/dist/types/src/v4/controls/index.d.ts.map +1 -1
  267. package/dist/types/src/v4/controls/index.js +1 -0
  268. package/dist/types/src/v4/controls/index.js.map +1 -1
  269. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +59 -0
  270. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
  271. package/dist/types/src/v4/webapp/manifest/ManifestSettings.js.map +1 -1
  272. package/package.json +16 -16
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @file This file is a helper class for its sibling class Table.ts. It provides the logic needed to support the multi-view single-table scenario.
3
+ */
4
+ import { type SyncRule } from '@sap/ux-specification-types';
5
+ import type * as v2 from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
6
+ export declare class ViewOnTable implements v2.ViewOnTable {
7
+ key: string;
8
+ annotationPath: string;
9
+ }
10
+ export declare class MultiViewsOnTable implements v2.MultiViewsOnTable {
11
+ showCounts?: boolean;
12
+ variants: {
13
+ [key: string]: v2.ViewOnTable;
14
+ };
15
+ }
16
+ /**
17
+ * Provides the syncRule for the quickVariantSelection property of a table.
18
+ *
19
+ * @returns the syncRule
20
+ */
21
+ export declare function getSyncRuleForQuickVariantSelection(): SyncRule;
22
+ //# sourceMappingURL=MultiViewSingleTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiViewSingleTable.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAMH,KAAK,QAAQ,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAkBnG,qBAAa,WAAY,YAAW,EAAE,CAAC,WAAW;IAC9C,GAAG,EAAE,MAAM,CAAC;IAUZ,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,iBAAkB,YAAW,EAAE,CAAC,iBAAiB;IAgC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IAgBrB,QAAQ,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,CAAC,WAAW,CAAC;KACjC,CAAC;CACL;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,QAAQ,CAgD9D"}
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ /**
3
+ * @file This file is a helper class for its sibling class Table.ts. It provides the logic needed to support the multi-view single-table scenario.
4
+ */
5
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MultiViewsOnTable = exports.ViewOnTable = void 0;
16
+ exports.getSyncRuleForQuickVariantSelection = getSyncRuleForQuickVariantSelection;
17
+ const i18next_1 = __importDefault(require("i18next"));
18
+ const ux_specification_types_1 = require("@sap/ux-specification-types");
19
+ const common_1 = require("../../../common");
20
+ const decoration_1 = require("../../../common/decoration");
21
+ const utils_1 = require("../../utils");
22
+ const manifestPropertyUtils_1 = require("../../generate/manifestPropertyUtils");
23
+ class ViewOnTable {
24
+ }
25
+ exports.ViewOnTable = ViewOnTable;
26
+ __decorate([
27
+ (0, decoration_1.syncRule)({
28
+ manifest: {},
29
+ processingRuleAdapter(processingRule, schemaHandlingParams) {
30
+ const quickVariantSelectionParams = schemaHandlingParams.specificParams;
31
+ processingRule.element.enum = quickVariantSelectionParams.selectionVariants;
32
+ }
33
+ })
34
+ ], ViewOnTable.prototype, "annotationPath", void 0);
35
+ class MultiViewsOnTable {
36
+ }
37
+ exports.MultiViewsOnTable = MultiViewsOnTable;
38
+ __decorate([
39
+ (0, decoration_1.syncRule)({
40
+ manifest: {},
41
+ processingRuleAdapter(processingRule, schemaHandlingParams, generateParameters) {
42
+ processingRule.manifestPath = (0, utils_1.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath, [
43
+ 'quickVariantSelection'
44
+ ]);
45
+ const quickVariantSelection = (0, utils_1.getManifestPropertyByPath)(generateParameters.manifest, processingRule.manifestPath);
46
+ if (!(0, manifestPropertyUtils_1.hasPropertyTypeError)(quickVariantSelection, 'showCounts', generateParameters.logger, 'boolean') &&
47
+ !(0, manifestPropertyUtils_1.hasPropertyTypeError)(quickVariantSelection, 'variants', generateParameters.logger, 'object') &&
48
+ quickVariantSelection?.['showCounts'] !== undefined &&
49
+ (0, utils_1.isEmpty)(quickVariantSelection['variants'])) {
50
+ processingRule.element[ux_specification_types_1.SchemaTag.messages] = [
51
+ {
52
+ text: i18next_1.default.t('QUICKVARIANTSELECTIONNOVARIANTS'),
53
+ deletable: true,
54
+ type: ux_specification_types_1.PropertyMessageType.Warning
55
+ }
56
+ ];
57
+ }
58
+ }
59
+ })
60
+ ], MultiViewsOnTable.prototype, "showCounts", void 0);
61
+ __decorate([
62
+ (0, decoration_1.syncRule)({
63
+ manifest: {},
64
+ processingRuleAdapter(processingRule, schemaHandlingParams) {
65
+ const quickVariantSelectionParams = schemaHandlingParams.specificParams;
66
+ processingRule.manifestPath = (0, utils_1.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath, [
67
+ 'quickVariantSelection'
68
+ ]);
69
+ processingRule.additionalPropertiesAdaptation = {
70
+ suffix: quickVariantSelectionParams.suffix,
71
+ syncRuleProvider: ViewOnTable
72
+ };
73
+ }
74
+ })
75
+ ], MultiViewsOnTable.prototype, "variants", void 0);
76
+ /**
77
+ * Provides the syncRule for the quickVariantSelection property of a table.
78
+ *
79
+ * @returns the syncRule
80
+ */
81
+ function getSyncRuleForQuickVariantSelection() {
82
+ return {
83
+ processingRuleAdapter(processingRule, schemaHandlingParams, generateParameters) {
84
+ const tableParams = schemaHandlingParams.specificParams;
85
+ let disallowedReason;
86
+ let quickVariantSelectionParams;
87
+ if (tableParams.multiTableInfo) {
88
+ if (tableParams.multiTableInfo.variantInfo) {
89
+ // The quickVariantSelection property is not valid for the views in a multi-table scenario
90
+ delete processingRule.element;
91
+ return;
92
+ }
93
+ disallowedReason = i18next_1.default.t('QUICKVARIANTSELECTIONDUPLICATE');
94
+ }
95
+ else {
96
+ const selectionVariants = (0, common_1.getListOfValidAnnotations)(tableParams.entityType, [
97
+ "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* UIAnnotationTerms.SelectionPresentationVariant */,
98
+ "com.sap.vocabularies.UI.v1.SelectionVariant" /* UIAnnotationTerms.SelectionVariant */
99
+ ]);
100
+ if (selectionVariants.length === 0) {
101
+ disallowedReason = i18next_1.default.t('QUICKVARIANTSELECTIONNOSELECTIONVARIANTANNOTATIONS');
102
+ }
103
+ quickVariantSelectionParams = {
104
+ // suffix: tableParams.facet?.stableIdPart, only relevant for tables on OP
105
+ selectionVariants
106
+ };
107
+ }
108
+ if (disallowedReason) {
109
+ const manifestPath = (0, utils_1.getManifestPathToPageSettings)(schemaHandlingParams.pageInfo.pagePath);
110
+ const { value } = (0, utils_1.getManifestPropertyByPath)(generateParameters.manifest, manifestPath, 'quickVariantSelection');
111
+ (0, manifestPropertyUtils_1.handleDisallowedProperty)(disallowedReason, processingRule, value, manifestPath);
112
+ processingRule.element[ux_specification_types_1.SchemaTag.artifactType] = 'Manifest';
113
+ }
114
+ else {
115
+ processingRule.referenceAdaptation = {
116
+ suffix: quickVariantSelectionParams.suffix,
117
+ syncRuleProvider: MultiViewsOnTable,
118
+ specificParams: quickVariantSelectionParams
119
+ };
120
+ }
121
+ }
122
+ };
123
+ }
124
+ //# sourceMappingURL=MultiViewSingleTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiViewSingleTable.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAsGH,kFAgDC;AApJD,sDAA8B;AAE9B,wEAOqC;AAErC,4CAA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,2BAA2B,GAAG;oBAC1B,0EAA0E;oBAC1E,iBAAiB;iBACpB,CAAC;YACN,CAAC;YACD,IAAI,gBAAgB,EAAE,CAAC;gBACnB,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBAC3F,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,iCAAyB,EACvC,kBAAkB,CAAC,QAAQ,EAC3B,YAAY,EACZ,uBAAuB,CAC1B,CAAC;gBACF,IAAA,gDAAwB,EAAC,gBAAgB,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;gBAChF,cAAc,CAAC,OAAO,CAAC,kCAAS,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;YAChE,CAAC;iBAAM,CAAC;gBACJ,cAAc,CAAC,mBAAmB,GAAG;oBACjC,MAAM,EAAE,2BAA2B,CAAC,MAAM;oBAC1C,gBAAgB,EAAE,iBAAiB;oBACnC,cAAc,EAAE,2BAA2B;iBAC9C,CAAC;YACN,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @file This file contains the classes implementing the interfaces defined in the corresponding types file.
3
+ * Note that the logic for dealing with the multi-table scenario is implemented in the sibling file MultiTable.ts.
4
+ */
5
+ import type { smarttable } from 'sap/ui/comp/library';
6
+ import type * as Edm from '@sap-ux/vocabularies-types/Edm';
7
+ import type { ExtensionLogger } from '@sap/ux-specification-types';
8
+ import * as v2 from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
9
+ import type { SapUiGenericAppPageSettings } from '@sap/ux-specification-types/src/common';
10
+ import type { LineItemInfo } from '../../generate/utils';
11
+ import type { MultiTableInfo } from './MultiTable';
12
+ /**
13
+ * Specific params applicable to the current table passed to the ProcessingRuleAdapter.
14
+ *
15
+ * @property settings - the component settings from the manifest
16
+ * @property tableType - the type of the table
17
+ * @property tableId - the control id of the smart table
18
+ * @property multiTableInfo - Information about multi-table scenario if applicable, undefined if quickVariantSelectionX is not defined in the manifest
19
+ * @property lineItemInfo - the line item this table is built on. For the instance representing the multi-table case as a whole it is the line item which is used as fallback.
20
+ * @property entityType - the entity type this table is built for. For the instance representing the multi-table case as a whole it is the entityType of the main entitySet.
21
+ */
22
+ export type TableParams = {
23
+ settings?: SapUiGenericAppPageSettings;
24
+ tableType: v2.TableTypeV2Enum;
25
+ tableId: string;
26
+ multiTableInfo?: MultiTableInfo;
27
+ lineItemInfo?: LineItemInfo;
28
+ entityType: Edm.EntityType;
29
+ };
30
+ /**
31
+ * Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
32
+ *
33
+ * @param entityTypeDefinition - the entity type for which the table is created
34
+ * @returns the default table type for the given entity type
35
+ */
36
+ export declare function getDefaultTableType(entityTypeDefinition: Edm.EntityType): v2.TableTypeV2Enum;
37
+ /**
38
+ * Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
39
+ *
40
+ * @param tableType - the table type to be checked
41
+ * @param logger - would log an error if tableType is invalid
42
+ * @returns - information whether the tableType is valid
43
+ */
44
+ export declare function checkTableType(tableType: string | undefined, logger?: ExtensionLogger): boolean;
45
+ export declare class Table implements v2.Table {
46
+ entitySet?: string;
47
+ annotationPath?: string;
48
+ showItemNavigationOnChart?: boolean;
49
+ views?: v2.MultiViewsDefinition;
50
+ quickVariantSelection?: v2.MultiViewsOnTable;
51
+ showTablePersonalisation?: boolean;
52
+ exportType?: smarttable.ExportType;
53
+ useExportToExcel?: boolean;
54
+ }
55
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK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,0 +1,152 @@
1
+ "use strict";
2
+ /**
3
+ * @file This file contains the classes implementing the interfaces defined in the corresponding types file.
4
+ * Note that the logic for dealing with the multi-table scenario is implemented in the sibling file MultiTable.ts.
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
25
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
26
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
27
+ };
28
+ var __importStar = (this && this.__importStar) || (function () {
29
+ var ownKeys = function(o) {
30
+ ownKeys = Object.getOwnPropertyNames || function (o) {
31
+ var ar = [];
32
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
33
+ return ar;
34
+ };
35
+ return ownKeys(o);
36
+ };
37
+ return function (mod) {
38
+ if (mod && mod.__esModule) return mod;
39
+ var result = {};
40
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
41
+ __setModuleDefault(result, mod);
42
+ return result;
43
+ };
44
+ })();
45
+ var __importDefault = (this && this.__importDefault) || function (mod) {
46
+ return (mod && mod.__esModule) ? mod : { "default": mod };
47
+ };
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.Table = void 0;
50
+ exports.getDefaultTableType = getDefaultTableType;
51
+ exports.checkTableType = checkTableType;
52
+ const i18next_1 = __importDefault(require("i18next"));
53
+ const ux_specification_types_1 = require("@sap/ux-specification-types");
54
+ const v2 = __importStar(require("@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table"));
55
+ const decoration_1 = require("../../../common/decoration");
56
+ const extensionLogger_1 = require("../../../../extensionLogger");
57
+ const MultiTable_1 = require("./MultiTable");
58
+ const MultiViewSingleTable_1 = require("./MultiViewSingleTable");
59
+ /**
60
+ * This function should return the information whether the given entity type is analytical.
61
+ * Unfortunately this is currently impossible due to missing information provided by the annotation api.
62
+ * As soon as the annotation api has been enhanced accordingly, this function should be enhanced.
63
+ *
64
+ * @param entityTypeDefinition - the entity type to be checked
65
+ * @returns true if the entity type is analytical, false otherwise
66
+ */
67
+ function isTypeAnalytical(entityTypeDefinition) {
68
+ return false; // todo: enhance
69
+ }
70
+ /**
71
+ * Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
72
+ *
73
+ * @param entityTypeDefinition - the entity type for which the table is created
74
+ * @returns the default table type for the given entity type
75
+ */
76
+ function getDefaultTableType(entityTypeDefinition) {
77
+ const isAnalytical = isTypeAnalytical(entityTypeDefinition);
78
+ return isAnalytical ? v2.TableTypeV2Enum.AnalyticalTable : v2.TableTypeV2Enum.ResponsiveTable;
79
+ }
80
+ /**
81
+ * Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
82
+ *
83
+ * @param tableType - the table type to be checked
84
+ * @param logger - would log an error if tableType is invalid
85
+ * @returns - information whether the tableType is valid
86
+ */
87
+ function checkTableType(tableType, logger) {
88
+ if (tableType === undefined ||
89
+ tableType === '' ||
90
+ Object.values(v2.TableTypeV2Enum).includes(tableType)) {
91
+ return true;
92
+ }
93
+ (0, extensionLogger_1.log)(logger, {
94
+ severity: "error" /* LogSeverity.Error */,
95
+ message: i18next_1.default.t('ILLEGALTABLETYPE', {
96
+ property: tableType
97
+ })
98
+ });
99
+ return false;
100
+ }
101
+ /** SyncRule which should be used for all properties with artifact type 'FlexChange' belonging to the SmartTable. */
102
+ const syncRuleForFlexSmartTable = {
103
+ flex: {
104
+ controlType: () => ux_specification_types_1.ControlType.SmartTable
105
+ },
106
+ processingRuleAdapter: function (processingRule, schemaHandlingParams) {
107
+ const tableParams = schemaHandlingParams.specificParams;
108
+ const isPropertyValid = !((tableParams.multiTableInfo && !tableParams.multiTableInfo.variantInfo) ||
109
+ tableParams.multiTableInfo?.variantInfo.isChart); // the property is invalid on top-level of a multi-table scenario and on a view displaying a chart
110
+ if (isPropertyValid) {
111
+ processingRule.controlId = tableParams.multiTableInfo
112
+ ? tableParams.multiTableInfo.variantInfo.smartControlId
113
+ : tableParams.tableId;
114
+ }
115
+ else {
116
+ delete processingRule.element;
117
+ }
118
+ }
119
+ };
120
+ class Table {
121
+ } // Table
122
+ exports.Table = Table;
123
+ __decorate([
124
+ (0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('entitySet')),
125
+ (0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/b6b59e4a4c3548cf83ff9c3b955d3ba3')
126
+ ], Table.prototype, "entitySet", void 0);
127
+ __decorate([
128
+ (0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('annotationPath')),
129
+ (0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/37aeed74e17a42caa2cba3123f0c15fc')
130
+ ], Table.prototype, "annotationPath", void 0);
131
+ __decorate([
132
+ (0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('showItemNavigationOnChart'))
133
+ ], Table.prototype, "showItemNavigationOnChart", void 0);
134
+ __decorate([
135
+ (0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('views'))
136
+ ], Table.prototype, "views", void 0);
137
+ __decorate([
138
+ (0, decoration_1.syncRule)((0, MultiViewSingleTable_1.getSyncRuleForQuickVariantSelection)())
139
+ ], Table.prototype, "quickVariantSelection", void 0);
140
+ __decorate([
141
+ (0, decoration_1.syncRule)(syncRuleForFlexSmartTable)
142
+ ], Table.prototype, "showTablePersonalisation", void 0);
143
+ __decorate([
144
+ (0, decoration_1.syncRule)(syncRuleForFlexSmartTable),
145
+ (0, decoration_1.validity)({
146
+ since: '1.50.0'
147
+ })
148
+ ], Table.prototype, "exportType", void 0);
149
+ __decorate([
150
+ (0, decoration_1.syncRule)(syncRuleForFlexSmartTable)
151
+ ], Table.prototype, "useExportToExcel", void 0);
152
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,kDAGC;AASD,wCAeC;AA7ED,sDAA8B;AAC9B,wEAAuE;AAEvE,4GAA8F;AAE9F,2DAAmF;AACnF,iEAAkD;AAGlD,6CAAwE;AACxE,iEAA6E;AAsB7E;;;;;;;GAOG;AACH,SAAS,gBAAgB,CAAC,oBAAoC;IAC1D,OAAO,KAAK,CAAC,CAAC,gBAAgB;AAClC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,oBAAoC;IACpE,MAAM,YAAY,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAA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AAQ,EAAC,IAAA,qDAAwC,EAAC,WAAW,CAAC,CAAC;IAC/D,IAAA,8BAAiB,EAAC,kEAAkE,CAAC;wCACnE;AAKnB;IAFC,IAAA,qBAAQ,EAAC,IAAA,qDAAwC,EAAC,gBAAgB,CAAC,CAAC;IACpE,IAAA,8BAAiB,EAAC,kEAAkE,CAAC;6CAC9D;AAIxB;IADC,IAAA,qBAAQ,EAAC,IAAA,qDAAwC,EAAC,2BAA2B,CAAC,CAAC;wDAC5C;AAIpC;IADC,IAAA,qBAAQ,EAAC,IAAA,qDAAwC,EAAC,OAAO,CAAC,CAAC;oCAC5B;AAIhC;IADC,IAAA,qBAAQ,EAAC,IAAA,0DAAmC,GAAE,CAAC;oDACH;AAI7C;IADC,IAAA,qBAAQ,EAAC,yBAAyB,CAAC;uDACD;AAOnC;IAJC,IAAA,qBAAQ,EAAC,yBAAyB,CAAC;IACnC,IAAA,qBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;yCACiC;AAInC;IADC,IAAA,qBAAQ,EAAC,yBAAyB,CAAC;+CACT"}
@@ -5,4 +5,7 @@
5
5
  export * from './Action';
6
6
  export * from './FilterBar';
7
7
  export * from './ListHeader';
8
+ export * from './MultiTable';
9
+ export * from './MultiViewSingleTable';
10
+ export * from './Table';
8
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
@@ -21,4 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  __exportStar(require("./Action"), exports);
22
22
  __exportStar(require("./FilterBar"), exports);
23
23
  __exportStar(require("./ListHeader"), exports);
24
+ __exportStar(require("./MultiTable"), exports);
25
+ __exportStar(require("./MultiViewSingleTable"), exports);
26
+ __exportStar(require("./Table"), exports);
24
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,yDAAuC;AACvC,0CAAwB"}
@@ -5,11 +5,12 @@
5
5
  */
6
6
  import type * as Edm from '@sap-ux/vocabularies-types/Edm';
7
7
  import type { EntityTypeAnnotations_UI } from '@sap-ux/vocabularies-types/vocabularies/UI_Edm';
8
- import { TableTypeV2 } from '@sap/ux-specification-types/src/v2/controls/Table';
9
8
  import type { SapUiGenericAppPageSettings } from '@sap/ux-specification-types';
10
9
  import type { ListReportNewConfigV2 } from '@sap/ux-specification-types/src/v2/genericSchemaHandling/pages/ListReportNewConfigV2';
10
+ import { TableTypeV2Enum } from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
11
11
  import { ListHeader } from '../controls/ListHeader';
12
12
  import { ListReportFilterBar } from '../controls/FilterBar';
13
+ import { Table } from '../controls/Table';
13
14
  import type { Toolbar } from '../controls/Action';
14
15
  import type { LineItemInfo } from '../../generate/utils';
15
16
  /**
@@ -27,13 +28,14 @@ export type LRSchemaHandlingParams = {
27
28
  settings?: SapUiGenericAppPageSettings;
28
29
  entityType: Edm.EntityType;
29
30
  uIAnnotations: EntityTypeAnnotations_UI;
30
- tableType: TableTypeV2;
31
+ tableType: TableTypeV2Enum;
31
32
  lineItemInfo?: LineItemInfo;
32
33
  };
33
34
  export declare class ListReportNew implements ListReportNewConfigV2 {
34
35
  fitContent?: boolean;
35
36
  header?: ListHeader;
36
37
  filterBar?: ListReportFilterBar;
38
+ table?: Table;
37
39
  footer?: Toolbar;
38
40
  }
39
41
  //# sourceMappingURL=ListReportNew.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListReportNew.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAEhF,OAAO,KAAK,EAGR,2BAA2B,EAE9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sFAAsF,CAAC;AAIlI,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAQlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC;IAC3B,aAAa,EAAE,wBAAwB,CAAC;IACxC,SAAS,EAAE,WAAW,CAA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AAE,OAAO,CAAC;IAWrB,MAAM,CAAC,EAAE,UAAU,CAAC;IAiBpB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IA6DhC,KAAK,CAAC,EAAE,KAAK,CAAC;IAcd,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -10,38 +10,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
10
10
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
11
  return c > 3 && r && Object.defineProperty(target, key, r), r;
12
12
  };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
13
16
  Object.defineProperty(exports, "__esModule", { value: true });
14
17
  exports.ListReportNew = void 0;
15
- const Table_1 = require("@sap/ux-specification-types/src/v2/controls/Table");
16
18
  const ux_specification_types_1 = require("@sap/ux-specification-types");
17
19
  const decorators_1 = require("../../../common/decoration/decorators");
18
20
  const v2_1 = require("@sap/ux-specification-types/src/v2");
21
+ const Table_1 = require("@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table");
22
+ const extensionLogger_1 = require("../../../../extensionLogger");
23
+ const i18next_1 = __importDefault(require("i18next"));
19
24
  const utils_1 = require("../../utils");
20
25
  const ListHeader_1 = require("../controls/ListHeader");
21
26
  const FilterBar_1 = require("../controls/FilterBar");
27
+ const Table_2 = require("../controls/Table");
22
28
  const Action_1 = require("../controls/Action");
29
+ const manifestPropertyUtils_1 = require("../../generate/manifestPropertyUtils");
23
30
  const utils_2 = require("../../generate/utils");
24
- /**
25
- * This function should return the information whether the given entity type is analytical.
26
- * Unfortunately this is currently impossible due to missing information provided by the annotation api.
27
- * As soon as the annotation api has been enhanced accordingly, this function should be enhanced.
28
- *
29
- * @param entityTypeDefinition - the entity type to be checked
30
- * @returns true if the entity type is analytical, false otherwise
31
- */
32
- function isTypeAnalytical(entityTypeDefinition) {
33
- return false; // todo: enhance
34
- }
35
- /**
36
- * Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
37
- *
38
- * @param entityTypeDefinition - the entity type for which the table is created
39
- * @returns the default table type for the given entity type
40
- */
41
- function getDefaultTableType(entityTypeDefinition) {
42
- const isAnalytical = isTypeAnalytical(entityTypeDefinition);
43
- return isAnalytical ? Table_1.TableTypeV2.AnalyticalTable : Table_1.TableTypeV2.ResponsiveTable;
44
- }
45
31
  // ListReportNew
46
32
  let ListReportNew = class ListReportNew {
47
33
  };
@@ -82,6 +68,58 @@ __decorate([
82
68
  }
83
69
  })
84
70
  ], ListReportNew.prototype, "filterBar", void 0);
71
+ __decorate([
72
+ (0, decorators_1.syncRule)({
73
+ processingRuleAdapter(processingRule, schemaHandlingParams, generateParameters) {
74
+ const lRSchemaHandlingParams = schemaHandlingParams.specificParams;
75
+ processingRule.element[ux_specification_types_1.SchemaTag.icon] = 'Table'; // do not use member of enum UiIcons in @sap-ux/ui-components to avoid unwanted dependency
76
+ processingRule.element[ux_specification_types_1.SchemaTag.propertyIndex] = 2;
77
+ const lrSettings = lRSchemaHandlingParams.settings;
78
+ const tableType = lRSchemaHandlingParams.tableType;
79
+ const tableParams = {
80
+ settings: lrSettings,
81
+ tableType,
82
+ tableId: 'listReport',
83
+ lineItemInfo: lRSchemaHandlingParams.lineItemInfo,
84
+ entityType: lRSchemaHandlingParams.entityType
85
+ };
86
+ // Check whether we are in a multi-view multi-table scenario.
87
+ const quickVariantSelectionX = !(0, manifestPropertyUtils_1.hasPropertyTypeError)(lrSettings, 'quickVariantSelectionX', generateParameters.logger, 'object') &&
88
+ lrSettings?.quickVariantSelectionX;
89
+ let suffix;
90
+ if (quickVariantSelectionX) {
91
+ if ((0, utils_1.isEmpty)(quickVariantSelectionX['variants'])) {
92
+ (0, extensionLogger_1.log)(generateParameters.logger, {
93
+ severity: "warning" /* LogSeverity.Warning */,
94
+ message: i18next_1.default.t('QUICKVARIANTSELECTIONXNOVARIANTS')
95
+ });
96
+ }
97
+ else {
98
+ suffix = 'Top';
99
+ if (lrSettings.quickVariantSelection) {
100
+ // Do not use quickVariantSelection and quickVariantSelectionX together
101
+ (0, extensionLogger_1.log)(generateParameters.logger, {
102
+ severity: "error" /* LogSeverity.Error */,
103
+ message: i18next_1.default.t('QUICKVARIANTSELECTIONDUPLICATE')
104
+ });
105
+ }
106
+ // Preliminary setting of multiTableInfo. Will be enhanced later.
107
+ tableParams.multiTableInfo = {
108
+ usedTableTypes: {
109
+ nonResponsive: tableType === Table_1.TableTypeV2Enum.ResponsiveTable ? 0 : 1,
110
+ responsive: tableType === Table_1.TableTypeV2Enum.ResponsiveTable ? 1 : 0
111
+ }
112
+ };
113
+ }
114
+ }
115
+ processingRule.referenceAdaptation = {
116
+ suffix,
117
+ specificParams: tableParams,
118
+ syncRuleProvider: Table_2.Table
119
+ };
120
+ }
121
+ })
122
+ ], ListReportNew.prototype, "table", void 0);
85
123
  __decorate([
86
124
  (0, decorators_1.syncRule)({
87
125
  processingRuleAdapter(processingRule, schemaHandlingParams) {
@@ -103,7 +141,7 @@ exports.ListReportNew = ListReportNew = __decorate([
103
141
  const { parent: pageSettings } = (0, utils_1.getManifestPropertyByPath)(generateParameters.manifest, manifestPathToPageSettings);
104
142
  const settings = pageSettings;
105
143
  const tableSettings = settings?.tableSettings;
106
- const tableType = tableSettings?.['type'] || settings?.tableType || getDefaultTableType(entityType);
144
+ const tableType = tableSettings?.['type'] || settings?.tableType || (0, Table_2.getDefaultTableType)(entityType);
107
145
  const lineItemAnnotation = (0, utils_2.getLineItemAnnotation)(uIAnnotations, settings, generateParameters.logger);
108
146
  let lineItemInfo;
109
147
  if (lineItemAnnotation) {
@@ -1 +1 @@
1
- {"version":3,"file":"ListReportNew.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;AAMH,6EAAgF;AAChF,wEAAs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;YACpG,MAAM,kBAAkB,GAAG,IAAA,6BAAqB,EAAC,aAAa,EAAE,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,YAA0B,CAAC;YAC/B,IAAI,kBAAkB,EAAE,CAAC;gBACrB,MAAM,YAAY,GACd,kBAAkB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACvG,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,wCAAe,EAAE,EAAE,CAAC,CAAC;gBAC3D,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAA6B,CAAC;gBAC/E,YAAY,GAAG,IAAA,uBAAe,EAC1B,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,KAAK,CACR,CAAC;YACN,CAAC;YACD,MAAM,cAAc,GAA2B;gBAC3C,QAAQ;gBACR,UAAU;gBACV,aAAa;gBACb,SAAS;gBACT,YAAY;aACf,CAAC;YACF,uEAAuE;YACvE,cAAc,CAAC,mBAAmB,GAAG;gBACjC,cAAc;aACjB,CAAC;QACN,CAAC;KACJ,CAAC;GACW,aAAa,CAqDzB"}
1
+ {"version":3,"file":"ListReportNew.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAMH,wEAAmG;AAQnG,sEAAwF;AACxF,2DAAmH;AACnH,mGAA0G;AAC1G,iEAAkD;AAClD,sDAA8B;AAC9B,uCAAgG;AAChG,uDAAoD;AACpD,qDAA4D;AAC5D,6CAA+D;AAG/D,+CAAmE;AACnE,gFAA4E;AAC5E,gDAK8B;AAsB9B,gBAAgB;AAiDT,IAAM,aAAa,GAAnB,MAAM,aAAa;CAkHzB,CAAA;AAlHY,sCAAa;AAU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S,IAAI,IAAA,2BAAmB,EAAC,UAAU,CAAC,CAAC;YACpG,MAAM,kBAAkB,GAAG,IAAA,6BAAqB,EAAC,aAAa,EAAE,QAAQ,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,YAA0B,CAAC;YAC/B,IAAI,kBAAkB,EAAE,CAAC;gBACrB,MAAM,YAAY,GACd,kBAAkB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACvG,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,wCAAe,EAAE,EAAE,CAAC,CAAC;gBAC3D,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAA6B,CAAC;gBAC/E,YAAY,GAAG,IAAA,uBAAe,EAC1B,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,KAAK,CACR,CAAC;YACN,CAAC;YACD,MAAM,cAAc,GAA2B;gBAC3C,QAAQ;gBACR,UAAU;gBACV,aAAa;gBACb,SAAS;gBACT,YAAY;aACf,CAAC;YACF,uEAAuE;YACvE,cAAc,CAAC,mBAAmB,GAAG;gBACjC,cAAc;aACjB,CAAC;QACN,CAAC;KACJ,CAAC;GACW,aAAa,CAkHzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"overviewPage.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAO,KAAK,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAqLvE;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,8BAA8B,GAAG,MAAM,CASjG"}
1
+ {"version":3,"file":"overviewPage.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAO,KAAK,8BAA8B,EAAE,MAAM,aAAa,CAAC;AA0NvE;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,8BAA8B,GAAG,MAAM,CASjG"}