@sap/ux-specification 1.144.0 → 1.144.2

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 (296) hide show
  1. package/CHANGELOG.md +73 -0
  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 +340 -330
  14. package/dist/index-min.js.map +4 -4
  15. package/dist/schemas/v2/ListReportNewConfig.json +208 -7
  16. package/dist/schemas/v4/ApplicationV4.json +14 -0
  17. package/dist/schemas/v4/BuildingBlocksConfig.json +384 -43
  18. package/dist/schemas/v4/ObjectPageConfig.json +112 -728
  19. package/dist/specification/package.json +11 -10
  20. package/dist/specification/scripts/generate-validity-report.js +1 -1
  21. package/dist/specification/scripts/generate-validity-report.js.map +1 -1
  22. package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
  23. package/dist/specification/scripts/macros/corrections.js +48 -1
  24. package/dist/specification/scripts/macros/corrections.js.map +1 -1
  25. package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
  26. package/dist/specification/scripts/macros/schema.js +23 -10
  27. package/dist/specification/scripts/macros/schema.js.map +1 -1
  28. package/dist/specification/scripts/schema/to-json-schema.js +1 -1
  29. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  30. package/dist/specification/src/api.d.ts.map +1 -1
  31. package/dist/specification/src/api.js +39 -3
  32. package/dist/specification/src/api.js.map +1 -1
  33. package/dist/specification/src/ftfs/ftfs.d.ts +8 -0
  34. package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
  35. package/dist/specification/src/ftfs/ftfs.js +1 -0
  36. package/dist/specification/src/ftfs/ftfs.js.map +1 -1
  37. package/dist/specification/src/ftfs/index.d.ts +1 -1
  38. package/dist/specification/src/ftfs/index.d.ts.map +1 -1
  39. package/dist/specification/src/ftfs/index.js +2 -1
  40. package/dist/specification/src/ftfs/index.js.map +1 -1
  41. package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -1
  42. package/dist/specification/src/ftfs/parser/model/TreeModel.js +3 -1
  43. package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -1
  44. package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
  45. package/dist/specification/src/i18n/i18n.js +2 -1
  46. package/dist/specification/src/i18n/i18n.js.map +1 -1
  47. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +8 -1
  48. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
  49. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +10 -7
  50. package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
  51. package/dist/specification/src/sync/common/decoration/Decorator.d.ts +91 -0
  52. package/dist/specification/src/sync/common/decoration/Decorator.d.ts.map +1 -0
  53. package/dist/specification/src/sync/common/decoration/Decorator.js +139 -0
  54. package/dist/specification/src/sync/common/decoration/Decorator.js.map +1 -0
  55. package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts +95 -0
  56. package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts.map +1 -0
  57. package/dist/specification/src/sync/common/decoration/condition-evaluator.js +210 -0
  58. package/dist/specification/src/sync/common/decoration/condition-evaluator.js.map +1 -0
  59. package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +58 -22
  60. package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -1
  61. package/dist/specification/src/sync/common/decoration/decorator-paths.js +23 -1
  62. package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -1
  63. package/dist/specification/src/sync/common/decoration/decorators.d.ts +6 -48
  64. package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
  65. package/dist/specification/src/sync/common/decoration/decorators.js +26 -106
  66. package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
  67. package/dist/specification/src/sync/common/decoration/index.d.ts +4 -0
  68. package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
  69. package/dist/specification/src/sync/common/decoration/index.js +4 -0
  70. package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
  71. package/dist/specification/src/sync/common/decoration/interfaces.d.ts +38 -0
  72. package/dist/specification/src/sync/common/decoration/interfaces.d.ts.map +1 -0
  73. package/dist/specification/src/sync/common/decoration/interfaces.js +3 -0
  74. package/dist/specification/src/sync/common/decoration/interfaces.js.map +1 -0
  75. package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts +18 -0
  76. package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts.map +1 -0
  77. package/dist/specification/src/sync/common/decoration/steps/Enums.js +50 -0
  78. package/dist/specification/src/sync/common/decoration/steps/Enums.js.map +1 -0
  79. package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts +18 -0
  80. package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts.map +1 -0
  81. package/dist/specification/src/sync/common/decoration/steps/Hide.js +46 -0
  82. package/dist/specification/src/sync/common/decoration/steps/Hide.js.map +1 -0
  83. package/dist/specification/src/sync/common/decoration/steps/Message.d.ts +26 -0
  84. package/dist/specification/src/sync/common/decoration/steps/Message.d.ts.map +1 -0
  85. package/dist/specification/src/sync/common/decoration/steps/Message.js +77 -0
  86. package/dist/specification/src/sync/common/decoration/steps/Message.js.map +1 -0
  87. package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts +18 -0
  88. package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts.map +1 -0
  89. package/dist/specification/src/sync/common/decoration/steps/Readonly.js +43 -0
  90. package/dist/specification/src/sync/common/decoration/steps/Readonly.js.map +1 -0
  91. package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts +18 -0
  92. package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts.map +1 -0
  93. package/dist/specification/src/sync/common/decoration/steps/Validity.js +68 -0
  94. package/dist/specification/src/sync/common/decoration/steps/Validity.js.map +1 -0
  95. package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts +19 -0
  96. package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts.map +1 -0
  97. package/dist/specification/src/sync/common/decoration/steps/enum-utils.js +48 -0
  98. package/dist/specification/src/sync/common/decoration/steps/enum-utils.js.map +1 -0
  99. package/dist/specification/src/sync/common/decoration/steps/index.d.ts +6 -0
  100. package/dist/specification/src/sync/common/decoration/steps/index.d.ts.map +1 -0
  101. package/dist/specification/src/sync/common/decoration/steps/index.js +14 -0
  102. package/dist/specification/src/sync/common/decoration/steps/index.js.map +1 -0
  103. package/dist/specification/src/sync/common/i18n.json +25 -1
  104. package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
  105. package/dist/specification/src/sync/common/importProject.js +2 -0
  106. package/dist/specification/src/sync/common/importProject.js.map +1 -1
  107. package/dist/specification/src/sync/common/rules.d.ts +25 -0
  108. package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
  109. package/dist/specification/src/sync/common/rules.js +27 -2
  110. package/dist/specification/src/sync/common/rules.js.map +1 -1
  111. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +4 -5
  112. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
  113. package/dist/specification/src/sync/v2/export/controls/Fragment.js +29 -20
  114. package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
  115. package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
  116. package/dist/specification/src/sync/v2/export/export.js +3 -2
  117. package/dist/specification/src/sync/v2/export/export.js.map +1 -1
  118. package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
  119. package/dist/specification/src/sync/v2/export/exportPage.js +48 -19
  120. package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
  121. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -0
  122. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
  123. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +17 -6
  124. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
  125. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +54 -6
  126. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
  127. package/dist/specification/src/sync/v2/export/view-controller-generator.js +106 -12
  128. package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
  129. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +7 -7
  130. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  131. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  132. package/dist/specification/src/sync/v2/generate/objectPage.js +56 -2
  133. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  134. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +2 -0
  135. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
  136. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +3 -2
  137. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  138. package/dist/specification/src/sync/v2/generate/utils.d.ts +16 -1
  139. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  140. package/dist/specification/src/sync/v2/generate/utils.js +30 -18
  141. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  142. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +4 -4
  143. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts +12 -0
  144. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts.map +1 -0
  145. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js +167 -0
  146. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js.map +1 -0
  147. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
  148. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
  149. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +60 -2
  150. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
  151. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +626 -11
  152. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
  153. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
  154. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
  155. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
  156. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
  157. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
  158. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +30 -6
  159. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
  160. package/dist/specification/src/sync/v2/types.d.ts +2 -0
  161. package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
  162. package/dist/specification/src/sync/v2/types.js.map +1 -1
  163. package/dist/specification/src/sync/v2/utils.d.ts +25 -0
  164. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  165. package/dist/specification/src/sync/v2/utils.js +28 -4
  166. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  167. package/dist/specification/src/sync/v4/application.d.ts +12 -0
  168. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  169. package/dist/specification/src/sync/v4/application.js +28 -3
  170. package/dist/specification/src/sync/v4/application.js.map +1 -1
  171. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +1 -2
  172. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
  173. package/dist/specification/src/sync/v4/export/controls/FilterBar.js +1 -2
  174. package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  175. package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -5
  176. package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
  177. package/dist/specification/src/sync/v4/export/controls/Header.js +2 -7
  178. package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
  179. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +9 -3
  180. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
  181. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +10 -6
  182. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
  183. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -2
  184. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
  185. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +1 -2
  186. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  187. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +11 -51
  188. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  189. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +95 -246
  190. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  191. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +6 -21
  192. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  193. package/dist/specification/src/sync/v4/export/controls/Table.js +46 -37
  194. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  195. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +1 -2
  196. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
  197. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +3 -4
  198. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  199. package/dist/specification/src/sync/v4/export/factory.d.ts.map +1 -1
  200. package/dist/specification/src/sync/v4/export/factory.js +2 -4
  201. package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
  202. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +1 -0
  203. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
  204. package/dist/specification/src/sync/v4/export/fpmCustomPage.js +212 -46
  205. package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
  206. package/dist/specification/src/sync/v4/generate/app.d.ts +11 -0
  207. package/dist/specification/src/sync/v4/generate/app.d.ts.map +1 -0
  208. package/dist/specification/src/sync/v4/generate/app.js +31 -0
  209. package/dist/specification/src/sync/v4/generate/app.js.map +1 -0
  210. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +13 -0
  211. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
  212. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +93 -13
  213. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  214. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
  215. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +4 -3
  216. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
  217. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
  218. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +29 -27
  219. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
  220. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
  221. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +12 -3
  222. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
  223. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +32 -13
  224. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -1
  225. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +103 -78
  226. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -1
  227. package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts +13 -6
  228. package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -1
  229. package/dist/specification/src/sync/v4/generate/list-report/listReport.js +107 -108
  230. package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -1
  231. package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -2
  232. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  233. package/dist/specification/src/sync/v4/generate/objectPage.js +162 -118
  234. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  235. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
  236. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +20 -0
  237. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
  238. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  239. package/dist/specification/src/sync/v4/import/pages/objectPage.js +11 -50
  240. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  241. package/dist/specification/src/sync/v4/sync-rules/App.d.ts +2 -4
  242. package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
  243. package/dist/specification/src/sync/v4/sync-rules/App.js +2 -1
  244. package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
  245. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -1
  246. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
  247. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +3 -1
  248. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
  249. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +1 -302
  250. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
  251. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +0 -753
  252. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
  253. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +2 -4
  254. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
  255. package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
  256. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
  257. package/dist/specification/src/sync/v4/utils/StableIdHelper.js +10 -4
  258. package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  259. package/dist/specification/src/sync/v4/utils/macros.d.ts +19 -0
  260. package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
  261. package/dist/specification/src/sync/v4/utils/macros.js +34 -0
  262. package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
  263. package/dist/specification/src/sync/v4/utils/utils.d.ts +22 -2
  264. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  265. package/dist/specification/src/sync/v4/utils/utils.js +238 -41
  266. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  267. package/dist/specification/test/test-utils/utils.d.ts +1 -0
  268. package/dist/specification/test/test-utils/utils.d.ts.map +1 -1
  269. package/dist/specification/test/test-utils/utils.js +11 -0
  270. package/dist/specification/test/test-utils/utils.js.map +1 -1
  271. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +2 -2
  272. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -1
  273. package/dist/specification/test/unit/decorators/validity-test-utils.js +6 -6
  274. package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -1
  275. package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
  276. package/dist/templates/GridTableColumnsExtension.xml +3 -3
  277. package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
  278. package/dist/templates/TreeTableColumnsExtension.xml +4 -4
  279. package/dist/templates/fragment.xml +3 -3
  280. package/dist/templates/view.xml +3 -3
  281. package/dist/types/src/apiTypes.d.ts +15 -5
  282. package/dist/types/src/apiTypes.d.ts.map +1 -1
  283. package/dist/types/src/apiTypes.js +1 -0
  284. package/dist/types/src/apiTypes.js.map +1 -1
  285. package/dist/types/src/common/types.d.ts +11 -6
  286. package/dist/types/src/common/types.d.ts.map +1 -1
  287. package/dist/types/src/common/types.js +12 -7
  288. package/dist/types/src/common/types.js.map +1 -1
  289. package/dist/types/src/v4/application.d.ts +15 -0
  290. package/dist/types/src/v4/application.d.ts.map +1 -1
  291. package/dist/types/src/v4/application.js +10 -0
  292. package/dist/types/src/v4/application.js.map +1 -1
  293. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +86 -252
  294. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  295. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  296. package/package.json +12 -11
@@ -1,303 +1,2 @@
1
- import type { Definition } from 'typescript-json-schema';
2
- import type { ExtensionLogger } from '@sap/ux-specification-types';
3
- import type { App } from './App';
4
- import type { Page } from './Page';
5
- import type { AppSchema } from './AppSchema';
6
- export type GeneralSettings<PageWithConfig extends Page = Page> = {
7
- appSchema: AppSchema;
8
- app: App;
9
- page: PageWithConfig;
10
- logger?: ExtensionLogger;
11
- };
12
- export declare class BaseConstruct {
13
- protected readonly appSchema: AppSchema;
14
- protected readonly app: App;
15
- protected readonly page: Page;
16
- protected readonly logger?: ExtensionLogger;
17
- /**
18
- * Constructor for BaseConstruct.
19
- *
20
- * @param settings - General settings including appSchema, app, page, and logger
21
- */
22
- constructor(settings?: GeneralSettings);
23
- /**
24
- * Gets the general settings.
25
- *
26
- * @returns The general settings object
27
- */
28
- getSettings(): GeneralSettings;
29
- }
30
- export interface Base {
31
- name: string;
32
- definition: Definition;
33
- }
34
- export declare class BaseClass extends BaseConstruct {
35
- private readonly base;
36
- /**
37
- * Creates an instance of BaseClass.
38
- *
39
- * @param settings - General settings including appSchema, app, page, and logger
40
- */
41
- constructor(settings?: GeneralSettings);
42
- /**
43
- * Gets the class name.
44
- *
45
- * @returns The name of the class
46
- */
47
- getClassName(): string;
48
- /**
49
- * Gets the base name.
50
- *
51
- * @returns The base name
52
- */
53
- getBaseName(): string;
54
- /**
55
- * Gets the base definition.
56
- *
57
- * @returns The base definition
58
- */
59
- getBase(): Definition;
60
- /**
61
- * Creates an annotation path for schema based on entity type, term, and qualifier.
62
- *
63
- * @param entityTypeName - Entity type name.
64
- * @param term - Annotation term.
65
- * @param qualifier - Annotation qualifier (optional).
66
- * @returns Annotation path based on received params
67
- */
68
- createAnnotationPath(entityTypeName: string, term: string, qualifier?: string): string | undefined;
69
- }
70
- export declare class Decorator extends BaseClass {
71
- /**
72
- * Context for decorator condition evaluation.
73
- * Contains 'config' (auto-injected from page.config) and any custom context sources.
74
- * Defined as non-enumerable to hide from serialization.
75
- */
76
- private decoratorContext;
77
- /**
78
- * Creates an instance of Decorator.
79
- *
80
- * @param settings - General settings including appSchema, app, page, and logger
81
- */
82
- constructor(settings?: GeneralSettings);
83
- /**
84
- * Initializes the decorator by applying all decorators to the schema definition.
85
- *
86
- * The decorator context is structured as:
87
- * - `app`: The App configuration (from `this.app.config`, includes manifest)
88
- * - `page`: The Page configuration (from `this.page.config`)
89
- * - `custom`: Custom context provided by the caller.
90
- *
91
- * @param customContext - Optional custom context for decorator conditions.
92
- * Use this for runtime-specific conditions like table state, section state, etc.
93
- * @param definition - Optional custom definition to apply decorators to.
94
- * If provided, decorators are applied to this definition instead of the one from appSchema.
95
- * @example
96
- * ```typescript
97
- * // Basic initialization (app and page auto-injected)
98
- * decorator.init();
99
- *
100
- * // With custom context for table-specific conditions
101
- * decorator.init({
102
- * table: { type: 'GridTable', views: [] }
103
- * });
104
- *
105
- * // With custom definition (for dynamically created definitions)
106
- * decorator.init({ table: { type: 'GridTable' } }, customTableDefinition);
107
- * ```
108
- */
109
- init(customContext?: Record<string, unknown>, definition?: Definition): void;
110
- /**
111
- * Gets property value from the decorator context using a property path.
112
- *
113
- * The path must include an explicit source prefix ('app', 'page', or 'custom').
114
- *
115
- * @param propertyPath - The property path with explicit source prefix - supports full jsonpath syntax
116
- * @returns Object containing the final key and its value, or undefined if not found
117
- * @example
118
- * ```typescript
119
- * // With decoratorContext = {
120
- * // app: { manifest: { 'sap.ui5': { routing: {...} } } },
121
- * // page: { isALP: true },
122
- * // custom: { type: 'GridTable', items: [{ name: 'Item1' }, { name: 'Item2' }] }
123
- * // }
124
- * getPropertyKeyValue('page.isALP') // { key: 'isALP', value: true }
125
- * getPropertyKeyValue('custom.items[0]') // { key: '0', value: { name: 'Item1' } }
126
- * getPropertyKeyValue('custom.items[1].name') // { key: 'name', value: 'Item2' }
127
- * getPropertyKeyValue('app.manifest["sap.ui5"]') // Access property with dot in name
128
- * getPropertyKeyValue('$.app.manifest["sap.ui5"].routing') // JSONPath with root reference
129
- * getPropertyKeyValue('$app["manifest"]["sap.ui5"]') // Alternative JSONPath format
130
- * ```
131
- */
132
- private getPropertyKeyValue;
133
- /**
134
- * Evaluates a single dependency condition.
135
- *
136
- * @param condition - The single condition to evaluate
137
- * @param condition.path - The property path to check
138
- * @param condition.dependsOn - Optional custom condition function
139
- * @param condition.expectedValue - Optional expected value for equality check
140
- * @param condition.negate - Optional flag to invert the condition result
141
- * @returns Object containing whether condition passed and the dependency value
142
- */
143
- private evaluateSingleCondition;
144
- /**
145
- * Helper method to add a message to the schema property based on value condition.
146
- *
147
- * @param condition - DecoratorMetadata or EnumValueCondition object containing condition details
148
- * @param syncRuleProviderInstance - The instance of the sync rule provider
149
- * @param definition - The schema property definition
150
- * @param i18nProperties - i18n properties for message translation
151
- * @param i18nProperties.propertyName - The property name for the message
152
- * @param i18nProperties.context - The context for the message
153
- */
154
- private addConditionalMessage;
155
- /**
156
- * Resolves PathNode values in message params to their actual values from the decorator context.
157
- *
158
- * @param params - The message params potentially containing PathNode values
159
- * @returns The params with PathNode values resolved to actual values
160
- */
161
- private resolveMessageParams;
162
- /**
163
- * Gets the context message from evaluation results.
164
- *
165
- * @param results - The evaluation results
166
- * @returns The context message string
167
- */
168
- private getContextForMessage;
169
- /**
170
- * Evaluates an AND condition item which can be either a single condition or a nested OR group.
171
- *
172
- * @param conditionItem - The condition item to evaluate
173
- * @returns Object containing whether condition passed and evaluation details
174
- */
175
- private evaluateAndConditionItem;
176
- /**
177
- * Evaluates OR conditions (at least one condition must match).
178
- * Supports both single conditions and nested AND groups.
179
- *
180
- * @param orConditions - Array of condition items (single conditions or AND groups)
181
- * @returns Object containing whether any condition passed and evaluation details
182
- */
183
- private evaluateOrConditions;
184
- /**
185
- * Evaluates AND conditions (all conditions must match).
186
- * Supports both single conditions and nested OR groups.
187
- *
188
- * @param andConditions - Array of condition items (single conditions or OR groups)
189
- * @returns Object containing whether all conditions passed and evaluation details
190
- */
191
- private evaluateAndConditions;
192
- /**
193
- * Evaluates condition metadata and returns whether the condition is met and the context.
194
- *
195
- * @param conditionInfo - The condition metadata
196
- * @returns Object with passed (boolean) and context (string)
197
- */
198
- private evaluateCondition;
199
- /**
200
- * Iterates over schema properties and yields property info for decorator processing.
201
- * Centralizes the guard clause and property iteration logic.
202
- *
203
- * @param schemaDefinition - The schema definition to process
204
- * @param target - The target object (used for guard clause validation)
205
- * @yields Property name and definition for each property in the schema
206
- */
207
- private iterateProperties;
208
- /**
209
- * Applies the hide decorator to the schema definition.
210
- * Hides properties when their condition evaluates to true, but only if
211
- * the message decorator did not add any messages to the property.
212
- *
213
- * @param schemaDefinition - The schema definition to apply the decorator to
214
- * @param syncRuleProviderInstance - The sync rule provider instance
215
- */
216
- private applyHideDecorator;
217
- /**
218
- * Applies the message decorator to the schema definition.
219
- * Shows messages when their condition evaluates to true.
220
- *
221
- * @param schemaDefinition - The schema definition to apply the decorator to
222
- * @param syncRuleProviderInstance - The sync rule provider instance
223
- */
224
- private applyMessageDecorator;
225
- /**
226
- * Applies the readonly decorator to the schema definition.
227
- * Marks properties as readonly when their condition evaluates to true.
228
- *
229
- * @param schemaDefinition - The schema definition to apply the decorator to
230
- * @param syncRuleProviderInstance - The sync rule provider instance
231
- */
232
- private applyReadonlyDecorator;
233
- /**
234
- * Applies the enums decorator to the schema definition.
235
- * Restricts enum values when their condition evaluates to true.
236
- * If multiple @enums decorators exist on the same property, the first matching condition wins.
237
- *
238
- * @param schemaDefinition - The schema definition to apply the decorator to
239
- * @param syncRuleProviderInstance - The sync rule provider instance
240
- */
241
- private applyEnumsDecorator;
242
- /**
243
- * Gets the validity metadata for a property.
244
- *
245
- * @param target - The target object
246
- * @param propertyName - The property name
247
- * @returns The validity metadata or undefined
248
- */
249
- private getValidityMetadata;
250
- /**
251
- * Resolves an enum array from a property definition.
252
- * Handles both inline enums and $ref to enum definitions.
253
- *
254
- * @param property - The property definition
255
- * @returns The enum array or undefined if not found
256
- */
257
- private resolveEnumFromProperty;
258
- /**
259
- * Applies filtered enum values to a property.
260
- * For $ref properties, inlines the filtered enum, copies the type from the referenced definition, and removes the $ref.
261
- * For inline enum properties, updates the enum directly.
262
- *
263
- * @param property - The property definition to update
264
- * @param filteredEnum - The filtered enum values
265
- */
266
- private applyFilteredEnumToProperty;
267
- /**
268
- * Applies the validity decorator to the schema definition based on the sync rule provider instance and minimum UI5 version.
269
- *
270
- * @param schemaDefinition The schema definition to apply the validity decorator to
271
- * @param syncRuleProviderInstance The instance of the sync rule provider
272
- * @param minUI5Version The minimum UI5 version to consider for validity checks
273
- */
274
- private applyValidityDecorator;
275
- /**
276
- * Applies the isViewNode decorator to the schema definition based on the target and property name.
277
- *
278
- * @param schemaDefinition The schema definition to apply the isViewNode decorator to
279
- * @param target The target object or function
280
- * @param propertyName The property name (optional)
281
- */
282
- private applyIsViewNodeDecorator;
283
- /**
284
- * Applies the description decorator to the schema definition.
285
- *
286
- * @param schemaDefinition - The schema definition to apply the decorator to
287
- * @param target - The target object or function
288
- * @param propertyName - The property name (optional)
289
- */
290
- private applyDescriptionDecorator;
291
- /**
292
- * Applies all decorators to the schema definition.
293
- *
294
- * @param minUi5Version - The minimum UI5 version (optional)
295
- * @param propertyName - The property name (optional)
296
- * @param customDefinition - Optional custom definition to apply decorators to (overrides getBase())
297
- * @returns Object containing the definition
298
- */
299
- applyDecorators(minUi5Version?: string, propertyName?: string, customDefinition?: Definition): {
300
- definition: Definition;
301
- };
302
- }
1
+ export {};
303
2
  //# sourceMappingURL=DecoratorClass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DecoratorClass.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/sync-rules/DecoratorClass.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"DecoratorClass.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/sync-rules/DecoratorClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}