@sap/ux-specification 1.142.3 → 1.142.5

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 (290) hide show
  1. package/CHANGELOG.md +71 -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 +334 -327
  14. package/dist/index-min.js.map +4 -4
  15. package/dist/schemas/v2/ListReportNewConfig.json +202 -7
  16. package/dist/schemas/v4/ApplicationV4.json +14 -0
  17. package/dist/schemas/v4/BuildingBlocksConfig.json +161 -57
  18. package/dist/schemas/v4/ObjectPageConfig.json +112 -728
  19. package/dist/specification/package.json +10 -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 +36 -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 +28 -0
  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.js +2 -2
  135. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  136. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +4 -4
  137. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts +12 -0
  138. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts.map +1 -0
  139. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js +167 -0
  140. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js.map +1 -0
  141. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
  142. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
  143. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +59 -2
  144. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
  145. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +582 -7
  146. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
  147. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
  148. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
  149. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
  150. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
  151. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
  152. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +29 -6
  153. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
  154. package/dist/specification/src/sync/v2/types.d.ts +2 -0
  155. package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
  156. package/dist/specification/src/sync/v2/types.js.map +1 -1
  157. package/dist/specification/src/sync/v2/utils.d.ts +25 -0
  158. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  159. package/dist/specification/src/sync/v2/utils.js +28 -4
  160. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  161. package/dist/specification/src/sync/v4/application.d.ts +12 -0
  162. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  163. package/dist/specification/src/sync/v4/application.js +28 -3
  164. package/dist/specification/src/sync/v4/application.js.map +1 -1
  165. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +1 -2
  166. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
  167. package/dist/specification/src/sync/v4/export/controls/FilterBar.js +1 -2
  168. package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  169. package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -5
  170. package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
  171. package/dist/specification/src/sync/v4/export/controls/Header.js +2 -7
  172. package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
  173. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +9 -3
  174. package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
  175. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +10 -6
  176. package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
  177. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -2
  178. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
  179. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +1 -2
  180. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  181. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +11 -51
  182. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  183. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +95 -246
  184. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  185. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +6 -21
  186. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  187. package/dist/specification/src/sync/v4/export/controls/Table.js +46 -37
  188. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  189. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +1 -2
  190. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
  191. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +3 -4
  192. package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
  193. package/dist/specification/src/sync/v4/export/factory.d.ts.map +1 -1
  194. package/dist/specification/src/sync/v4/export/factory.js +2 -4
  195. package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
  196. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +1 -0
  197. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
  198. package/dist/specification/src/sync/v4/export/fpmCustomPage.js +212 -46
  199. package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
  200. package/dist/specification/src/sync/v4/generate/app.d.ts +11 -0
  201. package/dist/specification/src/sync/v4/generate/app.d.ts.map +1 -0
  202. package/dist/specification/src/sync/v4/generate/app.js +31 -0
  203. package/dist/specification/src/sync/v4/generate/app.js.map +1 -0
  204. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +13 -0
  205. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
  206. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +93 -13
  207. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  208. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
  209. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +4 -3
  210. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
  211. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
  212. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +29 -27
  213. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
  214. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
  215. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +12 -3
  216. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
  217. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +32 -13
  218. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -1
  219. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +103 -78
  220. package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -1
  221. package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts +13 -6
  222. package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -1
  223. package/dist/specification/src/sync/v4/generate/list-report/listReport.js +107 -108
  224. package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -1
  225. package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -2
  226. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  227. package/dist/specification/src/sync/v4/generate/objectPage.js +162 -118
  228. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  229. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
  230. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +20 -0
  231. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
  232. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  233. package/dist/specification/src/sync/v4/import/pages/objectPage.js +11 -50
  234. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  235. package/dist/specification/src/sync/v4/sync-rules/App.d.ts +2 -4
  236. package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
  237. package/dist/specification/src/sync/v4/sync-rules/App.js +2 -1
  238. package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
  239. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -1
  240. package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
  241. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +3 -1
  242. package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
  243. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +1 -302
  244. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
  245. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +0 -753
  246. package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
  247. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +2 -4
  248. package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
  249. package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
  250. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
  251. package/dist/specification/src/sync/v4/utils/StableIdHelper.js +10 -4
  252. package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  253. package/dist/specification/src/sync/v4/utils/macros.d.ts +19 -0
  254. package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
  255. package/dist/specification/src/sync/v4/utils/macros.js +34 -0
  256. package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
  257. package/dist/specification/src/sync/v4/utils/utils.d.ts +23 -3
  258. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  259. package/dist/specification/src/sync/v4/utils/utils.js +239 -42
  260. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  261. package/dist/specification/test/test-utils/utils.d.ts +1 -0
  262. package/dist/specification/test/test-utils/utils.d.ts.map +1 -1
  263. package/dist/specification/test/test-utils/utils.js +11 -0
  264. package/dist/specification/test/test-utils/utils.js.map +1 -1
  265. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +2 -2
  266. package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -1
  267. package/dist/specification/test/unit/decorators/validity-test-utils.js +6 -6
  268. package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -1
  269. package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
  270. package/dist/templates/GridTableColumnsExtension.xml +3 -3
  271. package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
  272. package/dist/templates/TreeTableColumnsExtension.xml +4 -4
  273. package/dist/templates/fragment.xml +3 -3
  274. package/dist/templates/view.xml +3 -3
  275. package/dist/types/src/apiTypes.d.ts +15 -5
  276. package/dist/types/src/apiTypes.d.ts.map +1 -1
  277. package/dist/types/src/apiTypes.js +1 -0
  278. package/dist/types/src/apiTypes.js.map +1 -1
  279. package/dist/types/src/common/types.d.ts +11 -6
  280. package/dist/types/src/common/types.d.ts.map +1 -1
  281. package/dist/types/src/common/types.js +12 -7
  282. package/dist/types/src/common/types.js.map +1 -1
  283. package/dist/types/src/v4/application.d.ts +15 -0
  284. package/dist/types/src/v4/application.d.ts.map +1 -1
  285. package/dist/types/src/v4/application.js +10 -0
  286. package/dist/types/src/v4/application.js.map +1 -1
  287. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +86 -252
  288. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  289. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  290. package/package.json +11 -11
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Condition evaluation utilities for decorator steps.
3
+ * Extracted from DecoratorClass to be shared across all steps.
4
+ */
5
+ import type { DependsOnCondition } from '@sap/ux-specification-types';
6
+ import type { DecoratorContext } from './interfaces';
7
+ /**
8
+ * Result of evaluating a single condition.
9
+ */
10
+ export type EvaluateConditionResult = {
11
+ passed: boolean;
12
+ value: unknown;
13
+ key: string;
14
+ };
15
+ /**
16
+ * Result of evaluating a condition with context for messages.
17
+ */
18
+ export type ConditionEvaluationResult = {
19
+ passed: boolean;
20
+ context: string;
21
+ };
22
+ /**
23
+ * Evaluates decorator conditions against runtime context.
24
+ * Supports single conditions, AND conditions, and OR conditions with nesting.
25
+ */
26
+ export declare class ConditionEvaluator {
27
+ private readonly context;
28
+ /**
29
+ * Creates a new ConditionEvaluator with the given decorator context.
30
+ *
31
+ * @param context - The decorator context containing app, page, and custom runtime data
32
+ */
33
+ constructor(context: DecoratorContext);
34
+ /**
35
+ * Gets property value from the decorator context using a property path.
36
+ * Supports JSONPath syntax for complex paths.
37
+ *
38
+ * @param propertyPath - JSONPath-style path to resolve (e.g. 'page.isALP', 'custom.type')
39
+ * @returns The key/value pair at the resolved path, or undefined if not found
40
+ */
41
+ getPropertyKeyValue(propertyPath: string): {
42
+ key: string;
43
+ value: unknown;
44
+ } | undefined;
45
+ /**
46
+ * Resolves PathNode values in message params to their actual values.
47
+ *
48
+ * @param params - Optional map of parameter names to values (may contain PathNodes)
49
+ * @returns Resolved params with PathNodes replaced by their runtime values
50
+ */
51
+ resolveMessageParams(params?: Record<string, unknown>): Record<string, unknown> | undefined;
52
+ /**
53
+ * Evaluates a condition and returns whether it passed and context for messages.
54
+ *
55
+ * @param conditionInfo - The condition to evaluate (single, AND, or OR)
56
+ * @returns Whether the condition passed and a context string for message interpolation
57
+ */
58
+ evaluate(conditionInfo: DependsOnCondition): ConditionEvaluationResult;
59
+ /**
60
+ * Evaluates a single dependency condition.
61
+ *
62
+ * @param condition - A single condition with path, optional expectedValue, and optional negate
63
+ * @returns The evaluation result with passed flag, resolved value, and key
64
+ */
65
+ private evaluateSingleCondition;
66
+ /**
67
+ * Gets the context message from evaluation results.
68
+ *
69
+ * @param results - Array of evaluation results to summarize
70
+ * @returns A comma-separated string of failed condition key/value pairs
71
+ */
72
+ private getContextForMessage;
73
+ /**
74
+ * Evaluates an AND condition item which can be a single condition or nested OR group.
75
+ *
76
+ * @param conditionItem - A single condition or an OR group nested inside AND
77
+ * @returns Whether the item passed and the individual evaluation results
78
+ */
79
+ private evaluateAndConditionItem;
80
+ /**
81
+ * Evaluates OR conditions (at least one must match).
82
+ *
83
+ * @param orConditions - Array of OR condition items (single conditions or AND groups)
84
+ * @returns Whether any condition passed and all individual evaluation results
85
+ */
86
+ private evaluateOrConditions;
87
+ /**
88
+ * Evaluates AND conditions (all must match).
89
+ *
90
+ * @param andConditions - Array of AND condition items (single conditions or OR groups)
91
+ * @returns Whether all conditions passed and all individual evaluation results
92
+ */
93
+ private evaluateAndConditions;
94
+ }
95
+ //# sourceMappingURL=condition-evaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition-evaluator.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/condition-evaluator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACR,kBAAkB,EAIrB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYrD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAE5C;;;;OAIG;gBACS,OAAO,EAAE,gBAAgB;IAUrC;;;;;;OAMG;IACH,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS;IA2BtF;;;;;OAKG;IACH,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;IAiB3F;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,kBAAkB,GAAG,yBAAyB;IAqBtE;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAO5B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAYhC;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAqC5B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;CAkBhC"}
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConditionEvaluator = void 0;
4
+ const jsonpath_plus_1 = require("jsonpath-plus");
5
+ const decorator_paths_1 = require("./decorator-paths");
6
+ /**
7
+ * Evaluates decorator conditions against runtime context.
8
+ * Supports single conditions, AND conditions, and OR conditions with nesting.
9
+ */
10
+ class ConditionEvaluator {
11
+ /**
12
+ * Creates a new ConditionEvaluator with the given decorator context.
13
+ *
14
+ * @param context - The decorator context containing app, page, and custom runtime data
15
+ */
16
+ constructor(context) {
17
+ this.context = {
18
+ // Use app.config (plain AppContext) for JSONPath evaluation, not the full App instance.
19
+ // app.config holds manifest and other plain data that path builders reference (e.g. app.manifest).
20
+ app: context.app?.config,
21
+ page: context.page?.config,
22
+ custom: context.custom
23
+ };
24
+ }
25
+ /**
26
+ * Gets property value from the decorator context using a property path.
27
+ * Supports JSONPath syntax for complex paths.
28
+ *
29
+ * @param propertyPath - JSONPath-style path to resolve (e.g. 'page.isALP', 'custom.type')
30
+ * @returns The key/value pair at the resolved path, or undefined if not found
31
+ */
32
+ getPropertyKeyValue(propertyPath) {
33
+ if (!propertyPath || !this.context) {
34
+ return undefined;
35
+ }
36
+ try {
37
+ const jsonPath = propertyPath.startsWith('$') ? propertyPath : `$.${propertyPath}`;
38
+ const results = (0, jsonpath_plus_1.JSONPath)({
39
+ path: jsonPath,
40
+ json: this.context,
41
+ resultType: 'all'
42
+ });
43
+ if (!results || results.length === 0) {
44
+ return undefined;
45
+ }
46
+ const result = results[0];
47
+ const key = String(result.parentProperty);
48
+ const value = result.value;
49
+ return { key, value };
50
+ }
51
+ catch {
52
+ return undefined;
53
+ }
54
+ }
55
+ /**
56
+ * Resolves PathNode values in message params to their actual values.
57
+ *
58
+ * @param params - Optional map of parameter names to values (may contain PathNodes)
59
+ * @returns Resolved params with PathNodes replaced by their runtime values
60
+ */
61
+ resolveMessageParams(params) {
62
+ if (!params) {
63
+ return params;
64
+ }
65
+ const resolved = {};
66
+ for (const [key, value] of Object.entries(params)) {
67
+ if ((0, decorator_paths_1.isPathNode)(value)) {
68
+ const result = this.getPropertyKeyValue((0, decorator_paths_1.getPath)(value));
69
+ resolved[key] = result?.value ?? '';
70
+ }
71
+ else {
72
+ resolved[key] = value;
73
+ }
74
+ }
75
+ return resolved;
76
+ }
77
+ /**
78
+ * Evaluates a condition and returns whether it passed and context for messages.
79
+ *
80
+ * @param conditionInfo - The condition to evaluate (single, AND, or OR)
81
+ * @returns Whether the condition passed and a context string for message interpolation
82
+ */
83
+ evaluate(conditionInfo) {
84
+ let passed = false;
85
+ let context = '';
86
+ if (conditionInfo.orConditions && Array.isArray(conditionInfo.orConditions)) {
87
+ const result = this.evaluateOrConditions(conditionInfo.orConditions);
88
+ passed = result.passed;
89
+ context = this.getContextForMessage(result.results);
90
+ }
91
+ else if (conditionInfo.conditions && Array.isArray(conditionInfo.conditions)) {
92
+ const result = this.evaluateAndConditions(conditionInfo.conditions);
93
+ passed = result.passed;
94
+ context = this.getContextForMessage(result.results);
95
+ }
96
+ else if (conditionInfo.path) {
97
+ const result = this.evaluateSingleCondition(conditionInfo);
98
+ passed = result.passed;
99
+ context = this.getContextForMessage([result]);
100
+ }
101
+ return { passed, context };
102
+ }
103
+ /**
104
+ * Evaluates a single dependency condition.
105
+ *
106
+ * @param condition - A single condition with path, optional expectedValue, and optional negate
107
+ * @returns The evaluation result with passed flag, resolved value, and key
108
+ */
109
+ evaluateSingleCondition(condition) {
110
+ if (condition.path === '__always__') {
111
+ return { passed: true, value: true, key: '__always__' };
112
+ }
113
+ const result = this.getPropertyKeyValue(condition.path);
114
+ const key = result?.key ?? condition.path;
115
+ const value = result?.value;
116
+ let passed = false;
117
+ if (condition.dependsOn) {
118
+ passed = condition.dependsOn(value);
119
+ }
120
+ else if (condition.expectedValue !== undefined) {
121
+ passed = value === condition.expectedValue;
122
+ }
123
+ else {
124
+ passed = !!value;
125
+ }
126
+ if (condition.negate) {
127
+ passed = !passed;
128
+ }
129
+ return { passed, value, key };
130
+ }
131
+ /**
132
+ * Gets the context message from evaluation results.
133
+ *
134
+ * @param results - Array of evaluation results to summarize
135
+ * @returns A comma-separated string of failed condition key/value pairs
136
+ */
137
+ getContextForMessage(results) {
138
+ return results
139
+ .filter((result) => !result.passed)
140
+ .map((result) => `${result.key}: ${result.value}`)
141
+ .join(', ');
142
+ }
143
+ /**
144
+ * Evaluates an AND condition item which can be a single condition or nested OR group.
145
+ *
146
+ * @param conditionItem - A single condition or an OR group nested inside AND
147
+ * @returns Whether the item passed and the individual evaluation results
148
+ */
149
+ evaluateAndConditionItem(conditionItem) {
150
+ if ((0, decorator_paths_1.isOrConditionGroup)(conditionItem)) {
151
+ return this.evaluateOrConditions(conditionItem.__orConditions);
152
+ }
153
+ const result = this.evaluateSingleCondition(conditionItem);
154
+ return { passed: result.passed, results: [result] };
155
+ }
156
+ /**
157
+ * Evaluates OR conditions (at least one must match).
158
+ *
159
+ * @param orConditions - Array of OR condition items (single conditions or AND groups)
160
+ * @returns Whether any condition passed and all individual evaluation results
161
+ */
162
+ evaluateOrConditions(orConditions) {
163
+ const allResults = [];
164
+ for (const conditionItem of orConditions) {
165
+ if ((0, decorator_paths_1.isAndConditionGroup)(conditionItem)) {
166
+ const andResults = [];
167
+ let allAndPassed = true;
168
+ for (const andItem of conditionItem.__andConditions) {
169
+ const { passed, results } = this.evaluateAndConditionItem(andItem);
170
+ andResults.push(...results);
171
+ if (!passed) {
172
+ allAndPassed = false;
173
+ }
174
+ }
175
+ allResults.push(...andResults);
176
+ if (allAndPassed) {
177
+ return { passed: true, results: allResults };
178
+ }
179
+ }
180
+ else {
181
+ const result = this.evaluateSingleCondition(conditionItem);
182
+ allResults.push(result);
183
+ if (result.passed) {
184
+ return { passed: true, results: allResults };
185
+ }
186
+ }
187
+ }
188
+ return { passed: false, results: allResults };
189
+ }
190
+ /**
191
+ * Evaluates AND conditions (all must match).
192
+ *
193
+ * @param andConditions - Array of AND condition items (single conditions or OR groups)
194
+ * @returns Whether all conditions passed and all individual evaluation results
195
+ */
196
+ evaluateAndConditions(andConditions) {
197
+ const allResults = [];
198
+ let allPassed = true;
199
+ for (const conditionItem of andConditions) {
200
+ const { passed, results } = this.evaluateAndConditionItem(conditionItem);
201
+ allResults.push(...results);
202
+ if (!passed) {
203
+ allPassed = false;
204
+ }
205
+ }
206
+ return { passed: allPassed, results: allResults };
207
+ }
208
+ }
209
+ exports.ConditionEvaluator = ConditionEvaluator;
210
+ //# sourceMappingURL=condition-evaluator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition-evaluator.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/condition-evaluator.ts"],"names":[],"mappings":";;;AAUA,iDAAyC;AACzC,uDAAiG;AA+BjG;;;GAGG;AACH,MAAa,kBAAkB;IAG3B;;;;OAIG;IACH,YAAY,OAAyB;QACjC,IAAI,CAAC,OAAO,GAAG;YACX,wFAAwF;YACxF,mGAAmG;YACnG,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM;YAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CAAC,YAAoB;QACpC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACjC,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,YAAY,EAAE,CAAC;YACnF,MAAM,OAAO,GAAG,IAAA,wBAAQ,EAAC;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,IAAI,CAAC,OAAO;gBAClB,UAAU,EAAE,KAAK;aACpB,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC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,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;YAE5B,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,SAAS,GAAG,KAAK,CAAC;YACtB,CAAC;QACL,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACtD,CAAC;CACJ;AAxOD,gDAwOC"}
@@ -56,6 +56,8 @@ import type { Manifest, v4, AndConditionItem, OrConditionItem, AndConditionGroup
56
56
  export type AppContext = {
57
57
  /** The application manifest */
58
58
  manifest: Manifest;
59
+ /** Returns the minimum UI5 version for the application */
60
+ minUI5Version: string;
59
61
  };
60
62
  /**
61
63
  * Page context (sourced from page.config).
@@ -64,7 +66,9 @@ export type AppContext = {
64
66
  * These properties are determined by the Page class and its configuration.
65
67
  * Extend this type when new config properties are added to Page.
66
68
  */
67
- export type PageContext = {};
69
+ export type PageContext = {
70
+ [key: string]: unknown;
71
+ };
68
72
  /**
69
73
  * Settings for the Table Class context, taken from manifest.
70
74
  *
@@ -75,6 +79,37 @@ export type LRTableContext = {
75
79
  creationMode?: v4.TableCreationModeLR;
76
80
  analyticalConfiguration?: v4.AnalyticalConfiguration;
77
81
  popinLayout?: string;
82
+ /** Whether the entity/navigation is insertable (based on Capabilities.InsertRestrictions) */
83
+ isInsertable?: boolean;
84
+ };
85
+ /**
86
+ * Settings for the Object Page Table Class context.
87
+ *
88
+ * This context is provided via `init()` when applying Object Page table decorators.
89
+ */
90
+ export type OPTableContext = {
91
+ type: v4.TableTypeV4;
92
+ /** Page-level section layout setting (affects rowCountMode behavior) */
93
+ sectionLayout?: v4.SectionLayoutType;
94
+ rowCountMode?: v4.RowCountMode;
95
+ rowCount?: number;
96
+ popinLayout?: string;
97
+ analyticalConfiguration?: v4.ObjectPageAnalyticalConfiguration;
98
+ creationMode?: {
99
+ name?: v4.TableCreationModeType;
100
+ createAtEnd?: boolean;
101
+ inlineCreationRowsHiddenInEditMode?: boolean;
102
+ createInPlace?: boolean;
103
+ isCreateEnabled?: string;
104
+ creationFields?: string[];
105
+ outbound?: string;
106
+ };
107
+ /** Whether navigation is defined in page settings (used to determine default creation mode) */
108
+ hasNavigation?: boolean;
109
+ /** Whether the entity/navigation is insertable (based on Capabilities.InsertRestrictions) */
110
+ isInsertable?: boolean;
111
+ /** Whether the table is in a collection section (affects rowCountMode Tabs restriction) */
112
+ isCollection?: boolean;
78
113
  };
79
114
  /**
80
115
  * Symbol used to store the path string within PathNode objects.
@@ -205,6 +240,28 @@ export declare const custom: PathBuilder<Record<string, unknown>, `${string}.`>
205
240
  * ```
206
241
  */
207
242
  export declare const tableContext: PathBuilder<LRTableContext, `${string}.`> & PathNode<string>;
243
+ /**
244
+ * Type-safe path builder for Object Page table decorator context.
245
+ *
246
+ * This context **must be provided** in the customContext parameter of `init()`.
247
+ * Use this for table-specific conditions in Object Page table decorators.
248
+ *
249
+ * Properties are accessed directly without nesting (e.g., `opTableContext.type` not `opTableContext.table.type`).
250
+ *
251
+ * @example
252
+ * ```typescript
253
+ * // In decorator - with full type safety
254
+ * @hide(when(opTableContext.type, 'TreeTable'))
255
+ * @hide(when(opTableContext.creationMode.name, 'Inline'))
256
+ *
257
+ * // In init - provide flat context object
258
+ * decorator.init({
259
+ * type: 'GridTable',
260
+ * creationMode: { name: 'NewPage' }
261
+ * });
262
+ * ```
263
+ */
264
+ export declare const opTableContext: PathBuilder<OPTableContext, `${string}.`> & PathNode<string>;
208
265
  /**
209
266
  * Symbol used to identify WhenCondition objects.
210
267
  */
@@ -478,26 +535,5 @@ export declare function isOrConditionGroup(item: AndConditionItem): item is OrCo
478
535
  * @returns True if item is an AndConditionGroup
479
536
  */
480
537
  export declare function isAndConditionGroup(item: OrConditionItem): item is AndConditionGroup;
481
- /**
482
- * The complete decorator context type used internally.
483
- * Contains app, page and custom context.
484
- */
485
- export type DecoratorContextType = {
486
- /**
487
- * App context - auto-injected from app.config.
488
- * Provides access to manifest and other app-level properties.
489
- */
490
- app?: Partial<AppContext>;
491
- /**
492
- * Page context - auto-injected from page.config.
493
- * Provides access to page-level properties like isALP, visualization, etc.
494
- */
495
- page?: Partial<PageContext>;
496
- /**
497
- * Custom context - provided via init().
498
- * Use for runtime-specific conditions like table state, section state, etc.
499
- */
500
- custom?: Record<string, unknown>;
501
- };
502
538
  export {};
503
539
  //# sourceMappingURL=decorator-paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorator-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,EAAE,EACF,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAMrC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,+BAA+B;IAC/B,QAAQ,EAAE,QAAQ,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,eAAmC,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9C,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF;;;;;;;;GAQG;AACH,KAAK,WAAW,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,IAAI;IACzC,QAAQ,EA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AEpE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAMD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,IAAI,gBAAgB,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,IAAI,iBAAiB,CAEpF;AAMD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"decorator-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,EAAE,EACF,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAMrC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,+BAA+B;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM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AAc,EAAE,GAAG,YAAY,CAKjE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,EAAE,CAAC,GAAG,UAAU,EAAE,cAAc,EAAE,GAAG,WAAW,CAK/D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAMD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,IAAI,gBAAgB,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,IAAI,iBAAiB,CAEpF"}
@@ -50,7 +50,7 @@
50
50
  * ```
51
51
  */
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.MSG_SYMBOL = exports.NOT_SYMBOL = exports.WHEN_SYMBOL = exports.tableContext = exports.custom = exports.page = exports.app = exports.PATH_SYMBOL = void 0;
53
+ exports.MSG_SYMBOL = exports.NOT_SYMBOL = exports.WHEN_SYMBOL = exports.opTableContext = exports.tableContext = exports.custom = exports.page = exports.app = exports.PATH_SYMBOL = void 0;
54
54
  exports.getPath = getPath;
55
55
  exports.isPathNode = isPathNode;
56
56
  exports.isWhenCondition = isWhenCondition;
@@ -219,6 +219,28 @@ exports.custom = createPathBuilder('custom');
219
219
  * ```
220
220
  */
221
221
  exports.tableContext = createPathBuilder('custom');
222
+ /**
223
+ * Type-safe path builder for Object Page table decorator context.
224
+ *
225
+ * This context **must be provided** in the customContext parameter of `init()`.
226
+ * Use this for table-specific conditions in Object Page table decorators.
227
+ *
228
+ * Properties are accessed directly without nesting (e.g., `opTableContext.type` not `opTableContext.table.type`).
229
+ *
230
+ * @example
231
+ * ```typescript
232
+ * // In decorator - with full type safety
233
+ * @hide(when(opTableContext.type, 'TreeTable'))
234
+ * @hide(when(opTableContext.creationMode.name, 'Inline'))
235
+ *
236
+ * // In init - provide flat context object
237
+ * decorator.init({
238
+ * type: 'GridTable',
239
+ * creationMode: { name: 'NewPage' }
240
+ * });
241
+ * ```
242
+ */
243
+ exports.opTableContext = createPathBuilder('custom');
222
244
  // ============================================
223
245
  // WHEN CONDITION HELPER
224
246
  // ============================================
@@ -1 +1 @@
1
- {"version":3,"file":"decorator-paths.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;;;AAsIH,0BAEC;AAQD,gCAEC;AAwHD,0CAEC;AAuBD,oBAMC;AAgCD,wCAEC;AA8BD,kBAkBC;AA2BD,wBAEC;AAoCD,0CAEC;AA0BD,kBAWC;AA4DD,kBAKC;AAgBD,gBAKC;AAQD,wCAEC;AAQD,sCAEC;AAQD,4CAEC;AAYD,gDAEC;AAQD,kDAEC;AAlkBD,+CAA+C;AAC/C,2BAA2B;AAC3B,+CAA+C;AAE/C;;;;;;GAMG;AACU,QAAA,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AA6B5D;;;;;;;;;;;;;;;GAeG;AACH,SAAS,iBAAiB,CACtB,MAAc;IAEd,MAAM,OAAO,GAAyB;QAClC,GAAG,CAAC,CAAC,EAAE,IAAqB;YACxB,IAAI,IAAI,KAAK,mBAAW,EAAE,CAAC;gBACvB,OAAO,MAAM,CAAC;YAClB,CAAC;YACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3B,OAAO,iBAAiB,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC;YAClD,CAAC;YACD,OAAO,SAAS,CAAC;QACrB,CAAC;QACD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,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,gBAAgB,IAAI,IAAI,CAAC;AACjF,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,IAAqB;IACrD,OAAO,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,iBAAiB,IAAI,IAAI,CAAC;AAClF,CAAC"}
1
+ {"version":3,"file":"decorator-paths.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;;;AAwKH,0BAEC;AAQD,gCAEC;AA+ID,0CAEC;AAuBD,oBAMC;AAgCD,wCAEC;AA8BD,kBAkBC;AA2BD,wBAEC;AAoCD,0CAEC;AA0BD,kBAWC;AA4DD,kBAKC;AAgBD,gBAKC;AAQD,wCAEC;AAQD,sCAEC;AAQD,4CAEC;AAYD,gDAEC;AAQD,kDAEC;AAzlBD,+CAA+C;AAC/C,2BAA2B;AAC3B,+CAA+C;AAE/C;;;;;;GAMG;AACU,QAAA,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AA6B5D;;;;;;;;;;;;;;;GAeG;AACH,SAAS,iBAAiB,CACtB,MAAc;IAEd,MAAM,OAAO,GAAyB;QAClC,GAAG,CAAC,CAAC,EAAE,IAAqB;YACxB,IAAI,IAAI,KAAK,mBAAW,EAAE,CAAC;gBACvB,OAAO,MAAM,CAAC;YAClB,CAAC;YACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3B,OAAO,iBAAiB,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC;YAClD,CAAC;YACD,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,gEAAgE;QAChE,GAAG,CAAC,CAAC,EAAE,IAAqB;YACxB,OAAO,IAAI,KAAK,mBAAW,CAAC;QAChC,CA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AK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,gBAAgB,IAAI,IAAI,CAAC;AACjF,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,IAAqB;IACrD,OAAO,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,iBAAiB,IAAI,IAAI,CAAC;AAClF,CAAC"}
@@ -39,14 +39,6 @@ export declare const descriptionUrlMetadataKey: unique symbol;
39
39
  export declare const descriptionSrcURL: (id: string) => any;
40
40
  export declare const getDescriptionSrcURL: (target: any, propertyName: string) => string;
41
41
  export declare const validity: (validity: Validity) => any;
42
- /**
43
- * Retrieves the validity metadata associated with a specific property of a target object.
44
- *
45
- * @param target - The object containing the property.
46
- * @param propertyName - The name of the property whose validity metadata is to be retrieved.
47
- * @returns The validity information of the property, or undefined if no metadata is found.
48
- */
49
- export declare function getValidityMetadata(target: object, propertyName: string): ValidityInformation | undefined;
50
42
  /**
51
43
  * Mark the target class with a metadata flag indicating it is a view node.
52
44
  *
@@ -69,42 +61,34 @@ export interface DecoratorMetadata extends DependsOnCondition {
69
61
  }
70
62
  /**
71
63
  * Decorator to conditionally hide a property based on conditions.
72
- * The property will be hidden if the condition(s) are NOT met (inverted logic).
64
+ * The property will be hidden when the condition(s) ARE met.
73
65
  *
74
66
  * @example
75
67
  * ```typescript
76
68
  * import { page, custom, when, and, or } from './decorator-paths';
77
69
  *
78
- * // Truthy check - hide if page.isALP is falsy
70
+ * // Truthy check - hide when page.isALP is truthy
79
71
  * @hide(page.isALP)
80
72
  *
81
- * // Equality check - hide if page.type !== 'GridTable'
73
+ * // Equality check - hide when page.type === 'GridTable'
82
74
  * @hide(when(page.type, 'GridTable'))
83
75
  *
84
- * // Custom function - hide if type === 'GridTable'
76
+ * // Custom function - hide when function returns true (type !== 'GridTable')
85
77
  * @hide(when(page.type, (type) => type !== 'GridTable'))
86
78
  *
87
79
  * // Always hide
88
80
  * @hide(true)
89
81
  *
90
- * // AND logic - hide if not (isALP AND type === 'GridTable')
82
+ * // AND logic - hide when isALP is truthy AND type === 'GridTable'
91
83
  * @hide(and(page.isALP, when(page.type, 'GridTable')))
92
84
  *
93
- * // OR logic - hide if not (actionType === 'Bound' OR actionType === 'Custom')
85
+ * // OR logic - hide when actionType === 'Bound' OR actionType === 'Custom'
94
86
  * @hide(or(when(page.actionType, 'Bound'), when(page.actionType, 'Custom')))
95
87
  * ```
96
88
  * @param condition - The condition to evaluate
97
89
  * @returns PropertyDecorator
98
90
  */
99
91
  export declare function hide(condition: ConditionInput): PropertyDecorator;
100
- /**
101
- * Retrieves the hide metadata associated with a specific property of a target object.
102
- *
103
- * @param target - The object containing the property.
104
- * @param propertyName - The name of the property whose hide metadata is to be retrieved.
105
- * @returns The hide information of the property, or undefined if no metadata is found.
106
- */
107
- export declare function getHideMetadata(target: object, propertyName: string): DecoratorMetadata | undefined;
108
92
  /**
109
93
  * Decorator to conditionally display a message based on conditions.
110
94
  * A message will be shown when the condition(s) are met.
@@ -135,15 +119,6 @@ export declare function getHideMetadata(target: object, propertyName: string): D
135
119
  * ```
136
120
  */
137
121
  export declare function message(condition: ConditionInput, messageConfig: MessageConfig): PropertyDecorator;
138
- /**
139
- * Retrieves the message metadata associated with a specific property of a target object.
140
- * Returns an array of DecoratorMetadata since multiple @message decorators can be applied.
141
- *
142
- * @param target - The object containing the property.
143
- * @param propertyName - The name of the property whose message metadata is to be retrieved.
144
- * @returns An array of message metadata, or undefined if no metadata is found.
145
- */
146
- export declare function getMessageMetadata(target: object, propertyName: string): DecoratorMetadata[] | undefined;
147
122
  /**
148
123
  * Decorator to conditionally mark a property as readonly based on conditions.
149
124
  * The property will be readonly when the condition(s) are met.
@@ -165,14 +140,6 @@ export declare function getMessageMetadata(target: object, propertyName: string)
165
140
  * @returns PropertyDecorator
166
141
  */
167
142
  export declare function readonly(condition: ConditionInput): PropertyDecorator;
168
- /**
169
- * Retrieves the readonly metadata associated with a specific property of a target object.
170
- *
171
- * @param target - The object containing the property.
172
- * @param propertyName - The name of the property whose readonly metadata is to be retrieved.
173
- * @returns The readonly information of the property, or undefined if no metadata is found.
174
- */
175
- export declare function getReadonlyMetadata(target: object, propertyName: string): DecoratorMetadata | undefined;
176
143
  /**
177
144
  * Metadata structure for the @enums decorator.
178
145
  * Extends DecoratorMetadata with the list of allowed enum values.
@@ -204,15 +171,6 @@ export interface EnumsDecoratorMetadata extends DecoratorMetadata {
204
171
  * @returns PropertyDecorator
205
172
  */
206
173
  export declare function enums(condition: ConditionInput, allowedValues: string[]): PropertyDecorator;
207
- /**
208
- * Retrieves the enums metadata associated with a specific property of a target object.
209
- * Returns an array of EnumsDecoratorMetadata since multiple @enums decorators can be applied.
210
- *
211
- * @param target - The object containing the property.
212
- * @param propertyName - The name of the property whose enums metadata is to be retrieved.
213
- * @returns An array of enums metadata, or undefined if no metadata is found.
214
- */
215
- export declare function getEnumsMetadata(target: object, propertyName: string): EnumsDecoratorMetadata[] | undefined;
216
174
  /**
217
175
  * Generates a deprecation message for a given key, optionally including additional validity information.
218
176
  *
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACR,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAIrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAQH,KAAK,cAAc,EAEnB,KAAK,aAAa,EAErB,MAAM,mBAAmB,CAAC;AAM3B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAC;AAMF,eAAO,MAAM,QAAQ,GAAI,UAAU,QAAQ,KAAG,GAE7C,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAM7F;A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