@sap/ux-specification 1.96.87 → 1.96.89

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 (497) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/dist/documentation/runDocu-min.js +1 -1
  3. package/dist/documentation/runDocu-min.js.map +2 -2
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  5. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  6. package/dist/documentation/v2/v2-ListReport.html +2 -2
  7. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  8. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  9. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  10. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  11. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  12. package/dist/documentation/v4/v4-ListReport.html +2 -2
  13. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  14. package/dist/index-min.js +83 -83
  15. package/dist/index-min.js.map +4 -4
  16. package/dist/schemas/v2/ApplicationV2.json +2 -1
  17. package/dist/schemas/v4/ApplicationV4.json +6 -1
  18. package/dist/specification/package.json +6 -6
  19. package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts +21 -0
  20. package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts.map +1 -1
  21. package/dist/specification/scripts/documentation/components/TreeDiagram.js +21 -0
  22. package/dist/specification/scripts/documentation/components/TreeDiagram.js.map +1 -1
  23. package/dist/specification/scripts/documentation/components/filter.d.ts +7 -0
  24. package/dist/specification/scripts/documentation/components/filter.d.ts.map +1 -1
  25. package/dist/specification/scripts/documentation/components/filter.js +30 -0
  26. package/dist/specification/scripts/documentation/components/filter.js.map +1 -1
  27. package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts +70 -0
  28. package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts.map +1 -1
  29. package/dist/specification/scripts/documentation/components/ui/TreeUI.js +70 -3
  30. package/dist/specification/scripts/documentation/components/ui/TreeUI.js.map +1 -1
  31. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts +17 -0
  32. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts.map +1 -1
  33. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js +23 -0
  34. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js.map +1 -1
  35. package/dist/specification/scripts/documentation/components/ui/search.d.ts +12 -0
  36. package/dist/specification/scripts/documentation/components/ui/search.d.ts.map +1 -1
  37. package/dist/specification/scripts/documentation/components/ui/search.js +78 -8
  38. package/dist/specification/scripts/documentation/components/ui/search.js.map +1 -1
  39. package/dist/specification/scripts/documentation/components/ui/toggle.d.ts +21 -0
  40. package/dist/specification/scripts/documentation/components/ui/toggle.d.ts.map +1 -1
  41. package/dist/specification/scripts/documentation/components/ui/toggle.js +23 -6
  42. package/dist/specification/scripts/documentation/components/ui/toggle.js.map +1 -1
  43. package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts +24 -0
  44. package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
  45. package/dist/specification/scripts/documentation/components/ui/tooltip.js +24 -3
  46. package/dist/specification/scripts/documentation/components/ui/tooltip.js.map +1 -1
  47. package/dist/specification/scripts/documentation/components/ui/utils.d.ts +36 -0
  48. package/dist/specification/scripts/documentation/components/ui/utils.d.ts.map +1 -1
  49. package/dist/specification/scripts/documentation/components/ui/utils.js +36 -4
  50. package/dist/specification/scripts/documentation/components/ui/utils.js.map +1 -1
  51. package/dist/specification/scripts/extractDocu.js +51 -7
  52. package/dist/specification/scripts/extractDocu.js.map +1 -1
  53. package/dist/specification/scripts/macros/api.d.ts +4 -1
  54. package/dist/specification/scripts/macros/api.d.ts.map +1 -1
  55. package/dist/specification/scripts/macros/api.js +9 -1
  56. package/dist/specification/scripts/macros/api.js.map +1 -1
  57. package/dist/specification/scripts/macros/cmd.d.ts +1 -0
  58. package/dist/specification/scripts/macros/cmd.d.ts.map +1 -1
  59. package/dist/specification/scripts/macros/cmd.js +1 -0
  60. package/dist/specification/scripts/macros/cmd.js.map +1 -1
  61. package/dist/specification/scripts/macros/corrections.d.ts +1 -0
  62. package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
  63. package/dist/specification/scripts/macros/corrections.js +4 -0
  64. package/dist/specification/scripts/macros/corrections.js.map +1 -1
  65. package/dist/specification/scripts/macros/i18n.d.ts +1 -0
  66. package/dist/specification/scripts/macros/i18n.d.ts.map +1 -1
  67. package/dist/specification/scripts/macros/i18n.js +1 -0
  68. package/dist/specification/scripts/macros/i18n.js.map +1 -1
  69. package/dist/specification/scripts/macros/schema.d.ts +1 -0
  70. package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
  71. package/dist/specification/scripts/macros/schema.js +18 -5
  72. package/dist/specification/scripts/macros/schema.js.map +1 -1
  73. package/dist/specification/scripts/schema/to-json-schema.d.ts +9 -5
  74. package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
  75. package/dist/specification/scripts/schema/to-json-schema.js +32 -5
  76. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  77. package/dist/specification/scripts/spec.js +19 -9
  78. package/dist/specification/scripts/spec.js.map +1 -1
  79. package/dist/specification/src/api.d.ts +20 -12
  80. package/dist/specification/src/api.d.ts.map +1 -1
  81. package/dist/specification/src/api.js +22 -14
  82. package/dist/specification/src/api.js.map +1 -1
  83. package/dist/specification/src/extensionLogger.d.ts +3 -2
  84. package/dist/specification/src/extensionLogger.d.ts.map +1 -1
  85. package/dist/specification/src/extensionLogger.js +3 -2
  86. package/dist/specification/src/extensionLogger.js.map +1 -1
  87. package/dist/specification/src/i18n/i18n.d.ts +5 -0
  88. package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
  89. package/dist/specification/src/i18n/i18n.js +5 -0
  90. package/dist/specification/src/i18n/i18n.js.map +1 -1
  91. package/dist/specification/src/project.d.ts +3 -1
  92. package/dist/specification/src/project.d.ts.map +1 -1
  93. package/dist/specification/src/project.js +3 -1
  94. package/dist/specification/src/project.js.map +1 -1
  95. package/dist/specification/src/specification/schemaAccess.d.ts +6 -2
  96. package/dist/specification/src/specification/schemaAccess.d.ts.map +1 -1
  97. package/dist/specification/src/specification/schemaAccess.js +10 -4
  98. package/dist/specification/src/specification/schemaAccess.js.map +1 -1
  99. package/dist/specification/src/sync/common/appProvider.d.ts +17 -6
  100. package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
  101. package/dist/specification/src/sync/common/appProvider.js +33 -17
  102. package/dist/specification/src/sync/common/appProvider.js.map +1 -1
  103. package/dist/specification/src/sync/common/decoration/control.d.ts +26 -10
  104. package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
  105. package/dist/specification/src/sync/common/decoration/control.js +32 -13
  106. package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
  107. package/dist/specification/src/sync/common/decoration/decorators.d.ts +14 -0
  108. package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
  109. package/dist/specification/src/sync/common/decoration/decorators.js +14 -0
  110. package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
  111. package/dist/specification/src/sync/common/decoration/factory.d.ts +12 -3
  112. package/dist/specification/src/sync/common/decoration/factory.d.ts.map +1 -1
  113. package/dist/specification/src/sync/common/decoration/factory.js +6 -3
  114. package/dist/specification/src/sync/common/decoration/factory.js.map +1 -1
  115. package/dist/specification/src/sync/common/decoration/flex.d.ts +7 -0
  116. package/dist/specification/src/sync/common/decoration/flex.d.ts.map +1 -1
  117. package/dist/specification/src/sync/common/decoration/flex.js +7 -0
  118. package/dist/specification/src/sync/common/decoration/flex.js.map +1 -1
  119. package/dist/specification/src/sync/common/distTagEvaluator.d.ts +6 -3
  120. package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
  121. package/dist/specification/src/sync/common/distTagEvaluator.js +6 -3
  122. package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
  123. package/dist/specification/src/sync/common/flexUtils.d.ts +11 -10
  124. package/dist/specification/src/sync/common/flexUtils.d.ts.map +1 -1
  125. package/dist/specification/src/sync/common/flexUtils.js +11 -10
  126. package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
  127. package/dist/specification/src/sync/common/generate/objectPage.d.ts +27 -18
  128. package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
  129. package/dist/specification/src/sync/common/generate/objectPage.js +54 -33
  130. package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
  131. package/dist/specification/src/sync/common/generate/utils.d.ts +62 -35
  132. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  133. package/dist/specification/src/sync/common/generate/utils.js +64 -35
  134. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  135. package/dist/specification/src/sync/common/import/utils.d.ts +9 -3
  136. package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
  137. package/dist/specification/src/sync/common/import/utils.js +9 -3
  138. package/dist/specification/src/sync/common/import/utils.js.map +1 -1
  139. package/dist/specification/src/sync/common/importProject.d.ts +17 -6
  140. package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
  141. package/dist/specification/src/sync/common/importProject.js +60 -30
  142. package/dist/specification/src/sync/common/importProject.js.map +1 -1
  143. package/dist/specification/src/sync/common/utils.d.ts +129 -53
  144. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  145. package/dist/specification/src/sync/common/utils.js +237 -88
  146. package/dist/specification/src/sync/common/utils.js.map +1 -1
  147. package/dist/specification/src/sync/i18n.d.ts +5 -0
  148. package/dist/specification/src/sync/i18n.d.ts.map +1 -1
  149. package/dist/specification/src/sync/i18n.js +5 -0
  150. package/dist/specification/src/sync/i18n.js.map +1 -1
  151. package/dist/specification/src/sync/v2/export/controls/Action.d.ts +3 -3
  152. package/dist/specification/src/sync/v2/export/controls/Action.js +15 -15
  153. package/dist/specification/src/sync/v2/export/controls/Card.d.ts +14 -0
  154. package/dist/specification/src/sync/v2/export/controls/Card.d.ts.map +1 -1
  155. package/dist/specification/src/sync/v2/export/controls/Card.js +20 -0
  156. package/dist/specification/src/sync/v2/export/controls/Card.js.map +1 -1
  157. package/dist/specification/src/sync/v2/export/controls/Field.js +5 -5
  158. package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts +20 -0
  159. package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
  160. package/dist/specification/src/sync/v2/export/controls/FilterBar.js +28 -0
  161. package/dist/specification/src/sync/v2/export/controls/FilterBar.js.map +1 -1
  162. package/dist/specification/src/sync/v2/export/controls/FormAction.js +4 -4
  163. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +10 -5
  164. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
  165. package/dist/specification/src/sync/v2/export/controls/Fragment.js +62 -25
  166. package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
  167. package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js +6 -6
  168. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js +6 -6
  169. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  170. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js +20 -16
  171. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -1
  172. package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
  173. package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js.map +1 -1
  174. package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js +6 -6
  175. package/dist/specification/src/sync/v2/export/controls/Table.d.ts +24 -0
  176. package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  177. package/dist/specification/src/sync/v2/export/controls/Table.js +42 -3
  178. package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
  179. package/dist/specification/src/sync/v2/export/controls/TableColumn.js +10 -10
  180. package/dist/specification/src/sync/v2/export/export.d.ts +7 -3
  181. package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
  182. package/dist/specification/src/sync/v2/export/export.js +133 -44
  183. package/dist/specification/src/sync/v2/export/export.js.map +1 -1
  184. package/dist/specification/src/sync/v2/export/exportPage.d.ts +18 -10
  185. package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
  186. package/dist/specification/src/sync/v2/export/exportPage.js +34 -20
  187. package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
  188. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +6 -3
  189. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
  190. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +27 -17
  191. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
  192. package/dist/specification/src/sync/v2/export/manifest.d.ts +5 -2
  193. package/dist/specification/src/sync/v2/export/manifest.d.ts.map +1 -1
  194. package/dist/specification/src/sync/v2/export/manifest.js +30 -6
  195. package/dist/specification/src/sync/v2/export/manifest.js.map +1 -1
  196. package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts +21 -0
  197. package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts.map +1 -1
  198. package/dist/specification/src/sync/v2/export/pages/OverviewPage.js +36 -2
  199. package/dist/specification/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  200. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +25 -15
  201. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
  202. package/dist/specification/src/sync/v2/export/view-controller-generator.js +27 -16
  203. package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
  204. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts +2 -0
  205. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  206. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +8 -1
  207. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  208. package/dist/specification/src/sync/v2/generate/generate.d.ts +5 -9
  209. package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
  210. package/dist/specification/src/sync/v2/generate/generate.js +9 -12
  211. package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
  212. package/dist/specification/src/sync/v2/generate/listReport.d.ts +4 -2
  213. package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
  214. package/dist/specification/src/sync/v2/generate/listReport.js +26 -8
  215. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  216. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
  217. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
  218. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
  219. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
  220. package/dist/specification/src/sync/v2/generate/objectPage.d.ts +2 -2
  221. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  222. package/dist/specification/src/sync/v2/generate/objectPage.js +75 -43
  223. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  224. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +2 -2
  225. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
  226. package/dist/specification/src/sync/v2/generate/overviewPage.js +2 -2
  227. package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
  228. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
  229. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +8 -8
  230. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  231. package/dist/specification/src/sync/v2/generate/utils.d.ts +47 -36
  232. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  233. package/dist/specification/src/sync/v2/generate/utils.js +92 -71
  234. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  235. package/dist/specification/src/sync/v2/import/app/appProvider.d.ts +7 -0
  236. package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
  237. package/dist/specification/src/sync/v2/import/app/appProvider.js +20 -4
  238. package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
  239. package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts +4 -0
  240. package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
  241. package/dist/specification/src/sync/v2/import/app/ovpProvider.js +4 -0
  242. package/dist/specification/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  243. package/dist/specification/src/sync/v2/import/common/index.d.ts +28 -15
  244. package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
  245. package/dist/specification/src/sync/v2/import/common/index.js +91 -35
  246. package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
  247. package/dist/specification/src/sync/v2/import/controls/table.d.ts +6 -2
  248. package/dist/specification/src/sync/v2/import/controls/table.d.ts.map +1 -1
  249. package/dist/specification/src/sync/v2/import/controls/table.js +6 -2
  250. package/dist/specification/src/sync/v2/import/controls/table.js.map +1 -1
  251. package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -2
  252. package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
  253. package/dist/specification/src/sync/v2/import/importPage.js +4 -5
  254. package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
  255. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -3
  256. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
  257. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +9 -10
  258. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  259. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +8 -7
  260. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
  261. package/dist/specification/src/sync/v2/import/pages/listReport.js +28 -24
  262. package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
  263. package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts +3 -3
  264. package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
  265. package/dist/specification/src/sync/v2/import/pages/objectPage.js +107 -76
  266. package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
  267. package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts +2 -1
  268. package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
  269. package/dist/specification/src/sync/v2/import/pages/overviewPage.js +27 -12
  270. package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  271. package/dist/specification/src/sync/v2/import/utils.d.ts +18 -9
  272. package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
  273. package/dist/specification/src/sync/v2/import/utils.js +27 -15
  274. package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
  275. package/dist/specification/src/sync/v2/utils.d.ts +26 -1
  276. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  277. package/dist/specification/src/sync/v2/utils.js +47 -1
  278. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  279. package/dist/specification/src/sync/v4/application.d.ts +7 -5
  280. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  281. package/dist/specification/src/sync/v4/application.js +7 -5
  282. package/dist/specification/src/sync/v4/application.js.map +1 -1
  283. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
  284. package/dist/specification/src/sync/v4/export/controls/FilterBar.js +8 -0
  285. package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  286. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
  287. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -1
  288. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
  289. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
  290. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +18 -10
  291. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  292. package/dist/specification/src/sync/v4/export/controls/Table.js +48 -18
  293. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  294. package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
  295. package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  296. package/dist/specification/src/sync/v4/export/export.d.ts +6 -4
  297. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  298. package/dist/specification/src/sync/v4/export/export.js +136 -58
  299. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  300. package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts +6 -4
  301. package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
  302. package/dist/specification/src/sync/v4/export/exportCustomColumn.js +6 -4
  303. package/dist/specification/src/sync/v4/export/exportCustomColumn.js.map +1 -1
  304. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts +3 -2
  305. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -1
  306. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js +13 -9
  307. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  308. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +6 -4
  309. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
  310. package/dist/specification/src/sync/v4/export/fpmCustomPage.js +9 -4
  311. package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
  312. package/dist/specification/src/sync/v4/export/manifest.d.ts +6 -2
  313. package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
  314. package/dist/specification/src/sync/v4/export/manifest.js +46 -17
  315. package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
  316. package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
  317. package/dist/specification/src/sync/v4/export/pages/ListReport.js +4 -3
  318. package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
  319. package/dist/specification/src/sync/v4/export/utils.d.ts +6 -4
  320. package/dist/specification/src/sync/v4/export/utils.d.ts.map +1 -1
  321. package/dist/specification/src/sync/v4/export/utils.js +6 -4
  322. package/dist/specification/src/sync/v4/export/utils.js.map +1 -1
  323. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
  324. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +4 -0
  325. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  326. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts +5 -3
  327. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
  328. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +14 -5
  329. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
  330. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts +1 -0
  331. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
  332. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +18 -0
  333. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
  334. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts +1 -1
  335. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts.map +1 -1
  336. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js +2 -1
  337. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js.map +1 -1
  338. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts +2 -0
  339. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
  340. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +2 -0
  341. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
  342. package/dist/specification/src/sync/v4/generate/freestylePage.d.ts +2 -2
  343. package/dist/specification/src/sync/v4/generate/freestylePage.js +2 -2
  344. package/dist/specification/src/sync/v4/generate/generate.d.ts +13 -11
  345. package/dist/specification/src/sync/v4/generate/generate.d.ts.map +1 -1
  346. package/dist/specification/src/sync/v4/generate/generate.js +13 -11
  347. package/dist/specification/src/sync/v4/generate/generate.js.map +1 -1
  348. package/dist/specification/src/sync/v4/generate/listReport.d.ts +10 -7
  349. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
  350. package/dist/specification/src/sync/v4/generate/listReport.js +122 -73
  351. package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
  352. package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -1
  353. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  354. package/dist/specification/src/sync/v4/generate/objectPage.js +206 -154
  355. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  356. package/dist/specification/src/sync/v4/import/app/appProvider.d.ts +18 -4
  357. package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
  358. package/dist/specification/src/sync/v4/import/app/appProvider.js +56 -24
  359. package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
  360. package/dist/specification/src/sync/v4/import/fragment.d.ts +29 -4
  361. package/dist/specification/src/sync/v4/import/fragment.d.ts.map +1 -1
  362. package/dist/specification/src/sync/v4/import/fragment.js +46 -7
  363. package/dist/specification/src/sync/v4/import/fragment.js.map +1 -1
  364. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts +3 -2
  365. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
  366. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +7 -2
  367. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
  368. package/dist/specification/src/sync/v4/import/pages/listReport.d.ts +12 -10
  369. package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
  370. package/dist/specification/src/sync/v4/import/pages/listReport.js +69 -46
  371. package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
  372. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts +7 -6
  373. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  374. package/dist/specification/src/sync/v4/import/pages/objectPage.js +49 -36
  375. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  376. package/dist/specification/src/sync/v4/import/utils.d.ts +4 -2
  377. package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
  378. package/dist/specification/src/sync/v4/import/utils.js +4 -2
  379. package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
  380. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
  381. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +5 -2
  382. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
  383. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts +12 -0
  384. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
  385. package/dist/specification/src/sync/v4/utils/StableIdHelper.js +18 -0
  386. package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  387. package/dist/specification/src/sync/v4/utils/macros.d.ts +4 -0
  388. package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
  389. package/dist/specification/src/sync/v4/utils/macros.js +17 -1
  390. package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
  391. package/dist/specification/src/sync/v4/utils/utils.d.ts +38 -20
  392. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  393. package/dist/specification/src/sync/v4/utils/utils.js +99 -52
  394. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  395. package/dist/types/src/apiTypes.d.ts +13 -0
  396. package/dist/types/src/apiTypes.d.ts.map +1 -1
  397. package/dist/types/src/apiTypes.js +18 -1
  398. package/dist/types/src/apiTypes.js.map +1 -1
  399. package/dist/types/src/common/Application.d.ts +6 -0
  400. package/dist/types/src/common/Application.d.ts.map +1 -1
  401. package/dist/types/src/common/Application.js +4 -0
  402. package/dist/types/src/common/Application.js.map +1 -1
  403. package/dist/types/src/common/types.d.ts +51 -2
  404. package/dist/types/src/common/types.d.ts.map +1 -1
  405. package/dist/types/src/common/types.js +2 -1
  406. package/dist/types/src/common/types.js.map +1 -1
  407. package/dist/types/src/common/webapp/manifest/sapUi5.d.ts +3 -2
  408. package/dist/types/src/common/webapp/manifest/sapUi5.d.ts.map +1 -1
  409. package/dist/types/src/common/webapp/manifest/sapUi5.js +3 -2
  410. package/dist/types/src/common/webapp/manifest/sapUi5.js.map +1 -1
  411. package/dist/types/src/v2/application.d.ts +1 -1
  412. package/dist/types/src/v2/controls/Action.d.ts +12 -0
  413. package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
  414. package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts +1 -0
  415. package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts.map +1 -1
  416. package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
  417. package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -1
  418. package/dist/types/src/v2/controls/Card.d.ts +13 -0
  419. package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
  420. package/dist/types/src/v2/controls/Card.js.map +1 -1
  421. package/dist/types/src/v2/controls/Field.d.ts +1 -0
  422. package/dist/types/src/v2/controls/Field.d.ts.map +1 -1
  423. package/dist/types/src/v2/controls/FilterBar.d.ts +6 -0
  424. package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
  425. package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
  426. package/dist/types/src/v2/controls/Header.d.ts +1 -0
  427. package/dist/types/src/v2/controls/Header.d.ts.map +1 -1
  428. package/dist/types/src/v2/controls/ObjectPageChart.d.ts +1 -0
  429. package/dist/types/src/v2/controls/ObjectPageChart.d.ts.map +1 -1
  430. package/dist/types/src/v2/controls/ObjectPageFooter.d.ts +2 -0
  431. package/dist/types/src/v2/controls/ObjectPageFooter.d.ts.map +1 -1
  432. package/dist/types/src/v2/controls/ObjectPageForm.d.ts +1 -0
  433. package/dist/types/src/v2/controls/ObjectPageForm.d.ts.map +1 -1
  434. package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +1 -0
  435. package/dist/types/src/v2/controls/ObjectPageHeader.d.ts.map +1 -1
  436. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +3 -0
  437. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  438. package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +1 -0
  439. package/dist/types/src/v2/controls/ObjectPageLayout.d.ts.map +1 -1
  440. package/dist/types/src/v2/controls/ObjectPageSection.d.ts +13 -0
  441. package/dist/types/src/v2/controls/ObjectPageSection.d.ts.map +1 -1
  442. package/dist/types/src/v2/controls/ObjectPageSection.js.map +1 -1
  443. package/dist/types/src/v2/controls/ObjectPageTable.d.ts +6 -0
  444. package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
  445. package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts +2 -0
  446. package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts.map +1 -1
  447. package/dist/types/src/v2/controls/Table.d.ts +28 -0
  448. package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
  449. package/dist/types/src/v2/controls/Table.js.map +1 -1
  450. package/dist/types/src/v2/controls/ToolBar.d.ts +1 -0
  451. package/dist/types/src/v2/controls/ToolBar.d.ts.map +1 -1
  452. package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts +1 -0
  453. package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts.map +1 -1
  454. package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +4 -0
  455. package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts.map +1 -1
  456. package/dist/types/src/v4/application.d.ts +1 -1
  457. package/dist/types/src/v4/controls/CustomAction.d.ts +10 -0
  458. package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
  459. package/dist/types/src/v4/controls/FilterBar.d.ts +10 -0
  460. package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
  461. package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
  462. package/dist/types/src/v4/controls/Header.d.ts +1 -0
  463. package/dist/types/src/v4/controls/Header.d.ts.map +1 -1
  464. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -0
  465. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
  466. package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -0
  467. package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
  468. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +2 -0
  469. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
  470. package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +6 -0
  471. package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  472. package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -0
  473. package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
  474. package/dist/types/src/v4/controls/ObjectPageSection.d.ts +17 -0
  475. package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
  476. package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
  477. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +5 -0
  478. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  479. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  480. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +4 -0
  481. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
  482. package/dist/types/src/v4/controls/Table.d.ts +15 -0
  483. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  484. package/dist/types/src/v4/controls/ToolBar.d.ts +9 -0
  485. package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
  486. package/dist/types/src/v4/page.d.ts +4 -0
  487. package/dist/types/src/v4/page.d.ts.map +1 -1
  488. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +22 -0
  489. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
  490. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +3 -0
  491. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts.map +1 -1
  492. package/dist/types/src/v4/webapp/manifest/sapUi5.js.map +1 -1
  493. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -1
  494. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
  495. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js +2 -2
  496. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  497. package/package.json +7 -7
@@ -9,22 +9,27 @@ export interface CustomExtensions {
9
9
  [key: string]: CustomExtension;
10
10
  }
11
11
  /**
12
- * Adds extension at the right position of the sorted array of annotation-based nodes
12
+ * Adds extension at the right position of the sorted array of annotation-based nodes.
13
+ *
13
14
  * @param extensions - list of extensions in manifest
14
15
  * @param sortedExtensionsArray - sorted array of annotation-based nodes, to be enhanced by extensions
15
16
  * @param extensionDefinitionName - extension definition name, different in LR and OP
17
+ * @param templatePropertyName - The name of the property in the template to be used for processing.
16
18
  * @param logger - logger for error messages
17
19
  * @param ignoreAnnotationAnchors - calculation should ignore anchors referenced to annotation nodes. Used when annotations sections are merged.
20
+ * @returns Sorted array of annotation-based nodes, enhanced by extensions
18
21
  */
19
22
  export declare function addExtensionToArray(extensions: CustomExtensions, sortedExtensionsArray: [string, unknown][], extensionDefinitionName: string, templatePropertyName?: string, logger?: ExtensionLogger, ignoreAnnotationAnchors?: boolean): [string, unknown][];
20
23
  /**
21
- * Adds enum values to the properties definition of a custom column
24
+ * Adds enum values to the properties definition of a custom column.
25
+ *
22
26
  * @param lineItems - current lineItems definition, with all records
23
27
  * @param customColumnDefinition - current custom column definition, in the app schema
24
28
  */
25
29
  export declare function addEnumForProperties(lineItems: boolean | Definition, customColumnDefinition: Definition): void;
26
30
  /**
27
- * Common function for enhancing the LineItems definition of app schema by custom columns
31
+ * Common function for enhancing the LineItems definition of app schema by custom columns.
32
+ *
28
33
  * @param appSchema - app-specific JSON schema
29
34
  * @param v4Page - actual page in the manifest
30
35
  * @param logger - logger for error messages
@@ -43,8 +48,9 @@ export type LineItemDataForSchema = {
43
48
  entitySet?: string;
44
49
  };
45
50
  /**
46
- * Appends line item columns and actions to the app schema (for the list report, custom page or an object page section comprising a table)
47
- * @param {LineItemDataForSchema} data: structure comprising
51
+ * Appends line item columns and actions to the app schema (for the list report, custom page or an object page section comprising a table).
52
+ *
53
+ * @param {LineItemDataForSchema} data structure comprising
48
54
  * - appSchema - the app specific schema that shall get enhanced
49
55
  * - lineItemAnnotation - the UI.LineItem annotation, comprising all records
50
56
  * - entityType - the entity type as part of the AVT ConvertedMetadata
@@ -58,8 +64,9 @@ export type LineItemDataForSchema = {
58
64
  */
59
65
  export declare function appendLineItemsToSchema(data: LineItemDataForSchema, actions: Definition, lineItemPath: string, lineItemDefinition?: Definition, columnDefinitionName?: string): void;
60
66
  /**
61
- * Adds the line item definition, columns and actions to the app schema (for the list report, custom page or an object page section comprising a table
62
- * @param {LineItemDataForSchema} data: structure comprising
67
+ * Adds the line item definition, columns and actions to the app schema (for the list report, custom page or an object page section comprising a table.
68
+ *
69
+ * @param data structure comprising
63
70
  * - isObjectPage - indicates that the page is an object page
64
71
  * - appSchema - the app specific schema that shall get enhanced
65
72
  * - lineItemAnnotation - the UI.LineItem annotation, comprising all records
@@ -67,13 +74,14 @@ export declare function appendLineItemsToSchema(data: LineItemDataForSchema, act
67
74
  * - oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
68
75
  * - lineItemId - in case of OP the parameter must be passed to distinguish the OP tables;
69
76
  * in case of LR or ALP 'LineItems' is passed.
70
- * @param {string} columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
71
- * @param {string} customColumnDefinitionName - name of the custom column definition
72
- * @param {string} customColumnDefinitionName - name of the custom action definition
77
+ * @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
78
+ * @param customColumnDefinitionName - name of the custom column definition
79
+ * @param customActionDefinitionName - name of the custom action definition
73
80
  */
74
81
  export declare function addLineItemsTypeToSchema(data: LineItemDataForSchema, columnDefinitionName?: string, customColumnDefinitionName?: string, customActionDefinitionName?: string): void;
75
82
  /**
76
- * Adds an enum or value help to position > anchor of custom column
83
+ * Adds an enum or value help to position > anchor of custom column.
84
+ *
77
85
  * @param appSchema - app specific JSON schema
78
86
  * @param lineItemId - ID of the current line item in schema
79
87
  * @param v4Page - current page in manifest
@@ -82,30 +90,34 @@ export declare function addLineItemsTypeToSchema(data: LineItemDataForSchema, co
82
90
  */
83
91
  export declare function addFragmentEnumForAnchor(appSchema: Definition, lineItemId: string, v4Page: v4.SapUiAppPageV4, positionName?: string, sectionIdInManifest?: string): void;
84
92
  /**
85
- * Adds an enum or value help to position > anchor of custom column or custom action
93
+ * Adds an enum or value help to position > anchor of custom column or custom action.
94
+ *
86
95
  * @param appSchema - app specific JSON schema
87
96
  * @param definitionId - definition key of actions
88
97
  * @param positionName - target definition to update
89
98
  */
90
99
  export declare function addEnumForActionAnchor(appSchema: Definition, definitionId: string, positionName?: string): void;
91
100
  /**
92
- * Find the relevant V4 page under the routing targets of manifest,json
101
+ * Find the relevant V4 page under the routing targets of manifest,json.
102
+ *
93
103
  * @param pages - list of all pages in manifest
94
- * @param pageName - search criterion: page name
104
+ * @param templateName - search criterion: template name
95
105
  * @param entitySet - search criterion: entity set object from AVT
96
106
  * @param contextPath - search criterion: contextPath
97
107
  * @returns the page definition in manifest (if found)
98
108
  */
99
- export declare function findPageV4(pages: v4.SapUiAppPageV4[], pageName: string, entitySet: EntitySet, contextPath: string): v4.SapUiAppPageV4 | undefined;
109
+ export declare function findPageV4(pages: v4.SapUiAppPageV4[], templateName: string, entitySet?: EntitySet, contextPath?: string): v4.SapUiAppPageV4 | undefined;
100
110
  /**
101
- * Depending on the template type, strip down the app schema so that only the relevant views are part of it
111
+ * Depending on the template type, strip down the app schema so that only the relevant views are part of it.
112
+ *
102
113
  * @param {Definition} appSchema - app specific JSON schema, to be adjusted
103
114
  * @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
104
115
  * @returns the right definition name for the table in the schema
105
116
  */
106
117
  export declare function alignSchemaWithTemplateType(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): DefinitionName.Table | DefinitionName.ALPTableView;
107
118
  /**
108
- * Common function for enhancing LineItems, FieldGroups and Custom Section definitions of app schema by custom action definitions
119
+ * Common function for enhancing LineItems, FieldGroups and Custom Section definitions of app schema by custom action definitions.
120
+ *
109
121
  * @param appSchema - app-specific JSON schema
110
122
  * @param v4Page - actual page in the manifest
111
123
  * @param logger - logger for error messages
@@ -115,7 +127,8 @@ export declare function alignSchemaWithTemplateType(appSchema: Definition, gener
115
127
  */
116
128
  export declare function addCustomActionDefinition(appSchema: Definition, v4Page: v4.SapUiAppPageV4, logger: ExtensionLogger, customActionDefinitionName?: string, sectionDefinitionName?: string, sectionIdInManifest?: string): void;
117
129
  /**
118
- * Common function for enhancing header and footer definitions of app schema by custom action definitions
130
+ * Common function for enhancing header and footer definitions of app schema by custom action definitions.
131
+ *
119
132
  * @param appSchema - app-specific JSON schema
120
133
  * @param v4Page - actual page in the manifest
121
134
  * @param logger - logger for error messages
@@ -125,6 +138,7 @@ export declare function addCustomActionDefinition(appSchema: Definition, v4Page:
125
138
  export declare function addHeaderFooterCustomActionDefinition(appSchema: Definition, v4Page: v4.SapUiAppPageV4, logger: ExtensionLogger, customActionDefinitionName?: DefinitionName, sectionId?: string): void;
126
139
  /**
127
140
  * Method returns page from manifest by passed page key.
141
+ *
128
142
  * @param manifest Object from manifest.json.
129
143
  * @param pageId Page id.
130
144
  * @param logger Logger to report error of unexisting page.
@@ -133,8 +147,9 @@ export declare function addHeaderFooterCustomActionDefinition(appSchema: Definit
133
147
  export declare function getManifestPage(manifest: Manifest, pageId: string, logger?: ExtensionLogger): v4.RoutingTargetOptions | undefined;
134
148
  /**
135
149
  * Method finds custom view/section XML file for passed page.
150
+ *
136
151
  * @param files All extension files.
137
- * @param pageId Page id.
152
+ * @param page - the page object containing routing target options
138
153
  * @param manifest Object from manifest.json.
139
154
  * @param xmlType XML file type - view or fragment.
140
155
  * @param extensionName Extension namespace or path to extension name in page object.
@@ -143,6 +158,7 @@ export declare function getManifestPage(manifest: Manifest, pageId: string, logg
143
158
  export declare function getPageCustomExtensionFile(files: FileData[], page: v4.RoutingTargetOptions, manifest: Manifest, xmlType: 'view' | 'fragment', extensionName: string): ExtensionFileData | undefined;
144
159
  /**
145
160
  * Method finds view XML file for passed page.
161
+ *
146
162
  * @param files All view files.
147
163
  * @param pageId Page id.
148
164
  * @param manifest Object from manifest.json.
@@ -151,7 +167,8 @@ export declare function getPageCustomExtensionFile(files: FileData[], page: v4.R
151
167
  */
152
168
  export declare function getPageCustomViewFile(files: FileData[], pageId: string, manifest: Manifest, logger?: ExtensionLogger): ExtensionFileData | undefined;
153
169
  /**
154
- * Adds custom section or custom sub section definitions to app schema
170
+ * Adds custom section or custom sub section definitions to app schema.
171
+ *
155
172
  * @param appSchema - app-specific JSON schema
156
173
  * @param definition - sections definition
157
174
  * @param v4Page - actual page in the manifest
@@ -163,6 +180,7 @@ export declare function getPageCustomViewFile(files: FileData[], pageId: string,
163
180
  export declare function addCustomSectionDefinition(appSchema: Definition, definition: Definition, v4Page: v4.SapUiAppPageV4, customSectionRef: string, isMergedSections: boolean, facetKey?: string, logger?: ExtensionLogger): void;
164
181
  /**
165
182
  * Method adds custom filter fields from manifest to schema properties.
183
+ *
166
184
  * @param appSchema - app-specific JSON schema
167
185
  * @param definition - filter fields definition
168
186
  * @param v4Page - actual page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;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,QAAQ,EAAE,EACjB,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAC7B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,aAAa,EAAE,MAAM,GACtB,iBAAiB,GAAG,SAAS,CA0B/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,QAAQ,EAAE,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,eAAe,GACzB,iBAAiB,GAAG,SAAS,CAM/B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,EAAE,CAAC,cAAc,EACzB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,OAAO,EACzB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,eAAe,GACzB,IAAI,CAiEN;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,EAAE,CAAC,cAAc,GAC1B,IAAI,CAkCN"}
@@ -26,11 +26,17 @@ const i18next_1 = __importDefault(require("i18next"));
26
26
  const __1 = require("../../..");
27
27
  const ux_specification_types_1 = require("@sap/ux-specification-types");
28
28
  const path_1 = require("path");
29
+ /**
30
+ * Returns a comparator function to sort objects by their property index.
31
+ *
32
+ * @returns A comparator function that compares two objects based on their property index.
33
+ */
29
34
  function sortByPropertyIndex() {
30
35
  return ([_key1, value1], [_key2, value2]) => value1[ux_specification_types_1.SchemaTag.propertyIndex] - value2[ux_specification_types_1.SchemaTag.propertyIndex];
31
36
  }
32
37
  /**
33
38
  * Sort function for properties in schema definitions.
39
+ *
34
40
  * @param definition - definition which contains list of properties, unsorted
35
41
  * @returns - list of properties, sorted by property index
36
42
  */
@@ -44,6 +50,7 @@ function sortPropertiesRecords(definition) {
44
50
  }
45
51
  /**
46
52
  * Method receives extension object and returns title/text.
53
+ *
47
54
  * @param extension - custom extension object from manifest.
48
55
  * @returns Title/text of custom extension.
49
56
  */
@@ -69,12 +76,15 @@ function getExtensionText(extension) {
69
76
  return text;
70
77
  }
71
78
  /**
72
- * Adds a custom extension to the right position of a sorted array
79
+ * Adds a custom extension to the right position of a sorted array.
80
+ *
73
81
  * @param extension - custom extension
74
82
  * @param sortedExtensionsArray - array of all entries(annotation entries and extensions), to be enhanced
75
83
  * @param targetIndex - index of the anchor entry
76
84
  * @param extId - ID of the new custom extension
77
85
  * @param newExtensionReference - schema reference of the new extension
86
+ * @param newExtensionReference.$ref - The reference to the schema definition for the new extension.
87
+ * @param newExtensionReference.description - A description of the new extension.
78
88
  */
79
89
  function addExtensionToSortedArray(extension, sortedExtensionsArray, targetIndex, extId, newExtensionReference) {
80
90
  const placement = extension.position?.placement || ux_specification_types_1.v4.Placement.After;
@@ -86,12 +96,16 @@ function addExtensionToSortedArray(extension, sortedExtensionsArray, targetIndex
86
96
  }
87
97
  }
88
98
  /**
89
- * Adds remaining custom extensions that might self-reference and were not added in previous steps
99
+ * Adds remaining custom extensions that might self-reference and were not added in previous steps.
100
+ *
90
101
  * @param {CustomExtensions} remainingExtensions - list of custom extensions that are left for post-processing
91
102
  * @param {string} extId - current id of remaining extensions
92
103
  * @param {CustomExtension} extension - current extension of remaining custom extensions
93
104
  * @param {[string, unknown]} sortedExtArray - sorted array of annotation-based extensions, to be updated
94
- * @param { $ref, description, key } newCustomExt - description based on extension in manifest
105
+ * @param newCustomExt - description based on extension in manifest
106
+ * @param newCustomExt.$ref - The reference to the schema definition for the new extension.
107
+ * @param newCustomExt.description - A description of the new custom extension.
108
+ * @param newCustomExt.keys - An array of key objects, each containing a name and value for the custom extension.
95
109
  */
96
110
  function addRemainingTargetByBefore(remainingExtensions, extId, extension, sortedExtArray, newCustomExt) {
97
111
  const targetRemainingIndex = Object.entries(remainingExtensions)
@@ -103,11 +117,13 @@ function addRemainingTargetByBefore(remainingExtensions, extId, extension, sorte
103
117
  }
104
118
  }
105
119
  /**
106
- * Returns custom extension details like $ref, description, keys and action type
120
+ * Returns custom extension details like $ref, description, keys and action type.
121
+ *
107
122
  * @param extension - custom extensions config
108
123
  * @param extensionDefinitionName - custom extension definition name, different in LR and OP
109
124
  * @param extId - custom extension id
110
125
  * @param actionType - action type
126
+ * @returns Custom extension details
111
127
  */
112
128
  function getExtensionDetails(extension, extensionDefinitionName, extId, actionType) {
113
129
  const refDefinition = extensionDefinitionName.includes(ux_specification_types_1.DefinitionName.ObjectPageCustomSectionFragment)
@@ -122,7 +138,8 @@ function getExtensionDetails(extension, extensionDefinitionName, extId, actionTy
122
138
  };
123
139
  }
124
140
  /**
125
- * Post-processing of custom extensions that are left after the first loop of adding extensions, i.e. custom extensions referring to other custom extensions
141
+ * Post-processing of custom extensions that are left after the first loop of adding extensions, i.e. custom extensions referring to other custom extensions.
142
+ *
126
143
  * @param remainingExtensions - list of custom extensions that are left for post-processing
127
144
  * @param extensionDefinitionName - custom extension definition name, different in LR and OP
128
145
  * @param sortedExtArray - sorted array of annotation-based extensions, to be updated
@@ -175,8 +192,10 @@ function adjustCustomExtReferringToCustomExt(remainingExtensions, extensionDefin
175
192
  * Returns anchor for extension. Priority:
176
193
  * 1. 'anchor' property in extension;
177
194
  * 2. When 'anchor' is not defined in extension and does calculation based placement and current list of extension and annotation entries.
195
+ *
178
196
  * @param extension - extension in manifest
179
197
  * @param sortedExtensionsArray - sorted array of annotation-based nodes, to be enhanced by extensions
198
+ * @returns Anchor for extension
180
199
  */
181
200
  function getExtensionAnchor(extension, sortedExtensionsArray) {
182
201
  // Default placement is After
@@ -191,9 +210,11 @@ function getExtensionAnchor(extension, sortedExtensionsArray) {
191
210
  return anchor;
192
211
  }
193
212
  /**
194
- * Preprocesses and returns list of local extension ids that needs to be skipped from addition
213
+ * Preprocesses and returns list of local extension ids that needs to be skipped from addition.
214
+ *
195
215
  * @param {CustomExtensions} localExtensions - list of extensions in manifest
196
216
  * @param {[string, unknown][]} annotationEntries - sorted array of annotation-based nodes, to be enhanced by extensions
217
+ * @returns List of local extensions that has no annotation based anchor
197
218
  */
198
219
  function getLocalExtensionsToSkip(localExtensions, annotationEntries) {
199
220
  // collect local extensions that has no annotation based anchor
@@ -210,10 +231,10 @@ function getLocalExtensionsToSkip(localExtensions, annotationEntries) {
210
231
  /**
211
232
  * Method returns position of passed extension using calculation for merged annotation nodes approach.
212
233
  * Currently is used for custom subsections - annotation merges subsection if there is no any child collecation facet.
234
+ *
213
235
  * @param extension - custom extension
214
236
  * @param extensions - list of extensions in manifest
215
237
  * @param sortedExtensionsArray - array of all entries(annotation entries and extensions), to be enhanced
216
- *
217
238
  * @returns Index of extension using merged annotation nodes approach.
218
239
  */
219
240
  function getExtensionIndexByMergedApproach(extension, extensions, sortedExtensionsArray) {
@@ -258,7 +279,6 @@ function getExtensionIndexByMergedApproach(extension, extensions, sortedExtensio
258
279
  * @param sortedExtensionsArray - array of all entries(annotation entries and extensions), to be enhanced
259
280
  * @param anchor - target anchor to check
260
281
  * @param ignoreAnnotationAnchors - calculation should ignore anchors referenced to annotation nodes. Used when annotations sections are merged
261
- *
262
282
  * @returns Index of extension using merged annotation nodes approach.
263
283
  */
264
284
  function getExtensionIndex(extension, extensions, sortedExtensionsArray, anchor, ignoreAnnotationAnchors = false) {
@@ -267,11 +287,16 @@ function getExtensionIndex(extension, extensions, sortedExtensionsArray, anchor,
267
287
  : getExtensionIndexByMergedApproach(extension, extensions, sortedExtensionsArray);
268
288
  }
269
289
  /**
270
- * Error handler for invalid extensions
290
+ * Error handler for invalid extensions.
291
+ *
271
292
  * @param logger - logger for error messages
272
293
  * @param extensionId - ID of the extension
273
294
  * @param sortedExtensionsArray - sorted array of annotation-based nodes, to be enhanced by extensions
274
295
  * @param newExtensionReference - schema reference that had been prepared before
296
+ * @param newExtensionReference.$ref - The reference to the schema definition for the new extension.
297
+ * @param newExtensionReference.description - A description of the new extension.
298
+ * @param newExtensionReference.keys - An array of key objects, each containing a name and value for the custom extension.
299
+ * @param newExtensionReference.actionType - The action type associated with the new extension.
275
300
  * @param localExtensions - list of extensions for processing
276
301
  */
277
302
  function handleInvalidExtension(logger, extensionId, sortedExtensionsArray, newExtensionReference, localExtensions) {
@@ -286,12 +311,15 @@ function handleInvalidExtension(logger, extensionId, sortedExtensionsArray, newE
286
311
  delete localExtensions[extensionId];
287
312
  }
288
313
  /**
289
- * Adds extension at the right position of the sorted array of annotation-based nodes
314
+ * Adds extension at the right position of the sorted array of annotation-based nodes.
315
+ *
290
316
  * @param extensions - list of extensions in manifest
291
317
  * @param sortedExtensionsArray - sorted array of annotation-based nodes, to be enhanced by extensions
292
318
  * @param extensionDefinitionName - extension definition name, different in LR and OP
319
+ * @param templatePropertyName - The name of the property in the template to be used for processing.
293
320
  * @param logger - logger for error messages
294
321
  * @param ignoreAnnotationAnchors - calculation should ignore anchors referenced to annotation nodes. Used when annotations sections are merged.
322
+ * @returns Sorted array of annotation-based nodes, enhanced by extensions
295
323
  */
296
324
  function addExtensionToArray(extensions, sortedExtensionsArray, extensionDefinitionName, templatePropertyName = 'template', logger, ignoreAnnotationAnchors = false) {
297
325
  const annotationEntries = [...sortedExtensionsArray];
@@ -336,7 +364,8 @@ function addExtensionToArray(extensions, sortedExtensionsArray, extensionDefinit
336
364
  return sortedExtensionsArray;
337
365
  }
338
366
  /**
339
- * Adds enum values to the properties definition of a custom column
367
+ * Adds enum values to the properties definition of a custom column.
368
+ *
340
369
  * @param lineItems - current lineItems definition, with all records
341
370
  * @param customColumnDefinition - current custom column definition, in the app schema
342
371
  */
@@ -350,12 +379,12 @@ function addEnumForProperties(lineItems, customColumnDefinition) {
350
379
  customColumnDefinition.properties.properties.items['enum'] = columnEnum;
351
380
  }
352
381
  /**
353
- * Adds the propertyIndex to each column and adds the enum values for properties of custom columns
382
+ * Adds the propertyIndex to each column and adds the enum values for properties of custom columns.
383
+ *
354
384
  * @param sortedColumnsArray - sorted array of all columns
355
385
  * @param {Definition} appSchema - app specific JSON schema
356
386
  * @param lineItems - content of the line item annotation
357
387
  * @param {DefinitionName} customColumnDefinitionName - custom column definition name, distinguishes LR from OP
358
- *
359
388
  */
360
389
  function addColumnPropertyIndexAndEnum(sortedColumnsArray, appSchema, lineItems, customColumnDefinitionName = ux_specification_types_1.DefinitionName.CustomColumn) {
361
390
  if (customColumnDefinitionName === ux_specification_types_1.DefinitionName.CustomColumn ||
@@ -371,7 +400,8 @@ function addColumnPropertyIndexAndEnum(sortedColumnsArray, appSchema, lineItems,
371
400
  }
372
401
  }
373
402
  /**
374
- * Common function for enhancing the LineItems definition of app schema by custom columns
403
+ * Common function for enhancing the LineItems definition of app schema by custom columns.
404
+ *
375
405
  * @param appSchema - app-specific JSON schema
376
406
  * @param v4Page - actual page in the manifest
377
407
  * @param logger - logger for error messages
@@ -399,9 +429,9 @@ function addCustomColumnDefinition(appSchema, v4Page, logger, customColumnDefini
399
429
  appSchema.definitions[lineItemId].properties = sortedColumnsAsObject;
400
430
  }
401
431
  /**
402
- * Determines the name of the action in schema
403
- * @param {LineItemDataForSchema} data - data of the the LineItem
432
+ * Determines the name of the action in schema.
404
433
  *
434
+ * @param {LineItemDataForSchema} data - data of the the LineItem
405
435
  * @returns the name of the action
406
436
  */
407
437
  function determineActionDefinitionName(data) {
@@ -418,7 +448,8 @@ function determineActionDefinitionName(data) {
418
448
  return actionDefinitionName;
419
449
  }
420
450
  /**
421
- * Adds the schema tags 'keys' and 'target' to the schema definition of an action
451
+ * Adds the schema tags 'keys' and 'target' to the schema definition of an action.
452
+ *
422
453
  * @param {SchemaDefinition} actionDefinition - current action definition in the app schema
423
454
  * @param {DataFieldForActionAbstractTypes} lineItemRecord - actual record of the line item collection
424
455
  * @param {string} actionId - ID of the action, according to the lineItem definition
@@ -438,13 +469,14 @@ function addTargetAndKeysOfAction(actionDefinition, lineItemRecord, actionId) {
438
469
  }
439
470
  }
440
471
  /**
441
- * Processes a LineItem record of type DataFieldForAction during app schema generation
442
- * @param {LineItemDataForSchema} data: structure of input data
443
- * @param {Definition} actions - actions definition in schema, parent object
444
- * @param {string} lineItemPath - annotation path to the line item
445
- * @param {DataFieldForActionAbstractTypes} lineItemRecord - actual record of the line item collection
446
- * @param {number} recordIndex - record index in the collection
447
- * @param {boolean} createRef - defines whether the $ref attribute should be created for the action
472
+ * Processes a LineItem record of type DataFieldForAction during app schema generation.
473
+ *
474
+ * @param data - structure of input data
475
+ * @param actionsDefinition - actions definition in schema, parent object
476
+ * @param lineItemPath - annotation path to the line item
477
+ * @param lineItemRecord - actual record of the line item collection
478
+ * @param recordIndex - record index in the collection
479
+ * @param createRef - defines whether the $ref attribute should be created for the action
448
480
  */
449
481
  function addActionRecordToSchema(data, actionsDefinition, lineItemPath, lineItemRecord, recordIndex, createRef = true) {
450
482
  // Action but not inline action
@@ -482,13 +514,13 @@ function addActionRecordToSchema(data, actionsDefinition, lineItemPath, lineItem
482
514
  }
483
515
  }
484
516
  /**
485
- * Processes a LineItem record of type DataField during app schema generation
486
- * @param {LineItemDataForSchema} data: structure of input data
487
- * @param {object} lineItem - object comprising the line item information:
488
- * { lineItemRecord, lineItemId, lineItemPath }
489
- * @param {string} columnDefinitionName - Schema definition name for the column
490
- * @param {number} recordIndex - record index in the collection
491
- * @param {Definition | undefined} lineItemDefinition - line item definition
517
+ * Processes a LineItem record of type DataField during app schema generation.
518
+ *
519
+ * @param data structure of input data
520
+ * @param lineItem - object comprising the line item information:
521
+ * @param columnDefinitionName - Schema definition name for the column
522
+ * @param recordIndex - record index in the collection
523
+ * @param lineItemDefinition - line item definition
492
524
  */
493
525
  function addLineItemRecordToSchema(data, lineItem, columnDefinitionName, recordIndex, lineItemDefinition) {
494
526
  const lineItemId = lineItem['lineItemId'];
@@ -524,8 +556,9 @@ function addLineItemRecordToSchema(data, lineItem, columnDefinitionName, recordI
524
556
  }
525
557
  }
526
558
  /**
527
- * Appends line item columns and actions to the app schema (for the list report, custom page or an object page section comprising a table)
528
- * @param {LineItemDataForSchema} data: structure comprising
559
+ * Appends line item columns and actions to the app schema (for the list report, custom page or an object page section comprising a table).
560
+ *
561
+ * @param {LineItemDataForSchema} data structure comprising
529
562
  * - appSchema - the app specific schema that shall get enhanced
530
563
  * - lineItemAnnotation - the UI.LineItem annotation, comprising all records
531
564
  * - entityType - the entity type as part of the AVT ConvertedMetadata
@@ -559,8 +592,9 @@ function appendLineItemsToSchema(data, actions, lineItemPath, lineItemDefinition
559
592
  });
560
593
  }
561
594
  /**
562
- * Adds the line item definition, columns and actions to the app schema (for the list report, custom page or an object page section comprising a table
563
- * @param {LineItemDataForSchema} data: structure comprising
595
+ * Adds the line item definition, columns and actions to the app schema (for the list report, custom page or an object page section comprising a table.
596
+ *
597
+ * @param data structure comprising
564
598
  * - isObjectPage - indicates that the page is an object page
565
599
  * - appSchema - the app specific schema that shall get enhanced
566
600
  * - lineItemAnnotation - the UI.LineItem annotation, comprising all records
@@ -568,16 +602,17 @@ function appendLineItemsToSchema(data, actions, lineItemPath, lineItemDefinition
568
602
  * - oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
569
603
  * - lineItemId - in case of OP the parameter must be passed to distinguish the OP tables;
570
604
  * in case of LR or ALP 'LineItems' is passed.
571
- * @param {string} columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
572
- * @param {string} customColumnDefinitionName - name of the custom column definition
573
- * @param {string} customColumnDefinitionName - name of the custom action definition
605
+ * @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
606
+ * @param customColumnDefinitionName - name of the custom column definition
607
+ * @param customActionDefinitionName - name of the custom action definition
574
608
  */
575
609
  function addLineItemsTypeToSchema(data, columnDefinitionName = ux_specification_types_1.DefinitionName.TableColumn, customColumnDefinitionName = ux_specification_types_1.DefinitionName.CustomColumn, customActionDefinitionName = ux_specification_types_1.DefinitionName.CustomTableAction) {
576
610
  const { actions, lineItemPath } = (0, common_1.addCommonLineItemDefinitions)(data.isObjectPage, data.appSchema, data.lineItemAnnotation, data.entityType, data.lineItemId, customColumnDefinitionName, customActionDefinitionName);
577
611
  appendLineItemsToSchema(data, actions, lineItemPath, undefined, columnDefinitionName);
578
612
  }
579
613
  /**
580
- * Adds an enum or value help to position > anchor of custom column
614
+ * Adds an enum or value help to position > anchor of custom column.
615
+ *
581
616
  * @param appSchema - app specific JSON schema
582
617
  * @param lineItemId - ID of the current line item in schema
583
618
  * @param v4Page - current page in manifest
@@ -609,7 +644,8 @@ function addFragmentEnumForAnchor(appSchema, lineItemId, v4Page, positionName =
609
644
  }
610
645
  }
611
646
  /**
612
- * Adds an enum or value help to position > anchor of custom column or custom action
647
+ * Adds an enum or value help to position > anchor of custom column or custom action.
648
+ *
613
649
  * @param appSchema - app specific JSON schema
614
650
  * @param definitionId - definition key of actions
615
651
  * @param positionName - target definition to update
@@ -623,20 +659,23 @@ function addEnumForActionAnchor(appSchema, definitionId, positionName = ux_speci
623
659
  });
624
660
  }
625
661
  /**
626
- * Find the relevant V4 page under the routing targets of manifest,json
662
+ * Find the relevant V4 page under the routing targets of manifest,json.
663
+ *
627
664
  * @param pages - list of all pages in manifest
628
- * @param pageName - search criterion: page name
665
+ * @param templateName - search criterion: template name
629
666
  * @param entitySet - search criterion: entity set object from AVT
630
667
  * @param contextPath - search criterion: contextPath
631
668
  * @returns the page definition in manifest (if found)
632
669
  */
633
- function findPageV4(pages, pageName, entitySet, contextPath) {
670
+ function findPageV4(pages, templateName, entitySet, contextPath) {
634
671
  let v4Page;
635
672
  for (const i in pages) {
636
- if (((contextPath && pages[i].options?.settings?.contextPath === contextPath) ||
637
- pages[i].options?.settings?.entitySet === entitySet?.name) &&
638
- (pages[i].name === pageName ||
639
- (pageName === ux_specification_types_1.v4.FE_TEMPLATE_V4_ALP && pages[i].name === ux_specification_types_1.v4.FE_TEMPLATE_V4_LIST_REPORT))) {
673
+ const pageSettings = pages[i].options?.settings || {};
674
+ const isConnectionMatches = (contextPath && pageSettings.contextPath === contextPath) ||
675
+ (entitySet?.name && pageSettings.entitySet === entitySet.name);
676
+ if (isConnectionMatches &&
677
+ ((0, common_1.compareTemplateNames)(templateName, pages[i].name) ||
678
+ (templateName === ux_specification_types_1.v4.FE_TEMPLATE_V4_ALP && pages[i].name === ux_specification_types_1.v4.FE_TEMPLATE_V4_LIST_REPORT))) {
640
679
  v4Page = pages[i];
641
680
  break;
642
681
  }
@@ -644,7 +683,8 @@ function findPageV4(pages, pageName, entitySet, contextPath) {
644
683
  return v4Page;
645
684
  }
646
685
  /**
647
- * Depending on the template type, strip down the app schema so that only the relevant views are part of it
686
+ * Depending on the template type, strip down the app schema so that only the relevant views are part of it.
687
+ *
648
688
  * @param {Definition} appSchema - app specific JSON schema, to be adjusted
649
689
  * @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
650
690
  * @returns the right definition name for the table in the schema
@@ -672,7 +712,8 @@ function alignSchemaWithTemplateType(appSchema, generateParameters) {
672
712
  return tableDefinitionName;
673
713
  }
674
714
  /**
675
- * Common function for enhancing LineItems, FieldGroups and Custom Section definitions of app schema by custom action definitions
715
+ * Common function for enhancing LineItems, FieldGroups and Custom Section definitions of app schema by custom action definitions.
716
+ *
676
717
  * @param appSchema - app-specific JSON schema
677
718
  * @param v4Page - actual page in the manifest
678
719
  * @param logger - logger for error messages
@@ -725,7 +766,8 @@ function addCustomActionDefinition(appSchema, v4Page, logger, customActionDefini
725
766
  }
726
767
  }
727
768
  /**
728
- * Common function for enhancing header and footer definitions of app schema by custom action definitions
769
+ * Common function for enhancing header and footer definitions of app schema by custom action definitions.
770
+ *
729
771
  * @param appSchema - app-specific JSON schema
730
772
  * @param v4Page - actual page in the manifest
731
773
  * @param logger - logger for error messages
@@ -761,6 +803,7 @@ function addHeaderFooterCustomActionDefinition(appSchema, v4Page, logger, custom
761
803
  }
762
804
  /**
763
805
  * Method returns page from manifest by passed page key.
806
+ *
764
807
  * @param manifest Object from manifest.json.
765
808
  * @param pageId Page id.
766
809
  * @param logger Logger to report error of unexisting page.
@@ -799,8 +842,9 @@ function getManifestPage(manifest, pageId, logger) {
799
842
  }
800
843
  /**
801
844
  * Method finds custom view/section XML file for passed page.
845
+ *
802
846
  * @param files All extension files.
803
- * @param pageId Page id.
847
+ * @param page - the page object containing routing target options
804
848
  * @param manifest Object from manifest.json.
805
849
  * @param xmlType XML file type - view or fragment.
806
850
  * @param extensionName Extension namespace or path to extension name in page object.
@@ -835,6 +879,7 @@ function getPageCustomExtensionFile(files, page, manifest, xmlType, extensionNam
835
879
  }
836
880
  /**
837
881
  * Method finds view XML file for passed page.
882
+ *
838
883
  * @param files All view files.
839
884
  * @param pageId Page id.
840
885
  * @param manifest Object from manifest.json.
@@ -849,7 +894,8 @@ function getPageCustomViewFile(files, pageId, manifest, logger) {
849
894
  : undefined;
850
895
  }
851
896
  /**
852
- * Adds custom section or custom sub section definitions to app schema
897
+ * Adds custom section or custom sub section definitions to app schema.
898
+ *
853
899
  * @param appSchema - app-specific JSON schema
854
900
  * @param definition - sections definition
855
901
  * @param v4Page - actual page in the manifest
@@ -907,6 +953,7 @@ function addCustomSectionDefinition(appSchema, definition, v4Page, customSection
907
953
  }
908
954
  /**
909
955
  * Method adds custom filter fields from manifest to schema properties.
956
+ *
910
957
  * @param appSchema - app-specific JSON schema
911
958
  * @param definition - filter fields definition
912
959
  * @param v4Page - actual page in the manifest