@cohesivesystems/presentation-core 0.1.0-alpha.1

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 (447) hide show
  1. package/LICENSE +55 -0
  2. package/dist/api-scope-request.d.ts +43 -0
  3. package/dist/api-scope-request.d.ts.map +1 -0
  4. package/dist/api-scope-request.js +96 -0
  5. package/dist/api-scope-request.js.map +1 -0
  6. package/dist/collection-chrome-icons.d.ts +18 -0
  7. package/dist/collection-chrome-icons.d.ts.map +1 -0
  8. package/dist/collection-chrome-icons.js +57 -0
  9. package/dist/collection-chrome-icons.js.map +1 -0
  10. package/dist/collection-chrome-runtime.d.ts +25 -0
  11. package/dist/collection-chrome-runtime.d.ts.map +1 -0
  12. package/dist/collection-chrome-runtime.js +72 -0
  13. package/dist/collection-chrome-runtime.js.map +1 -0
  14. package/dist/collection-chrome-slot-renderer-registry.d.ts +110 -0
  15. package/dist/collection-chrome-slot-renderer-registry.d.ts.map +1 -0
  16. package/dist/collection-chrome-slot-renderer-registry.js +136 -0
  17. package/dist/collection-chrome-slot-renderer-registry.js.map +1 -0
  18. package/dist/collection-selection-state.d.ts +18 -0
  19. package/dist/collection-selection-state.d.ts.map +1 -0
  20. package/dist/collection-selection-state.js +2 -0
  21. package/dist/collection-selection-state.js.map +1 -0
  22. package/dist/data-source-projection.d.ts +475 -0
  23. package/dist/data-source-projection.d.ts.map +1 -0
  24. package/dist/data-source-projection.js +880 -0
  25. package/dist/data-source-projection.js.map +1 -0
  26. package/dist/data-source-query-lowering.d.ts +35 -0
  27. package/dist/data-source-query-lowering.d.ts.map +1 -0
  28. package/dist/data-source-query-lowering.js +104 -0
  29. package/dist/data-source-query-lowering.js.map +1 -0
  30. package/dist/date-time-filter-model.d.ts +20 -0
  31. package/dist/date-time-filter-model.d.ts.map +1 -0
  32. package/dist/date-time-filter-model.js +115 -0
  33. package/dist/date-time-filter-model.js.map +1 -0
  34. package/dist/document-badge-icons.d.ts +4 -0
  35. package/dist/document-badge-icons.d.ts.map +1 -0
  36. package/dist/document-badge-icons.js +4 -0
  37. package/dist/document-badge-icons.js.map +1 -0
  38. package/dist/document-module.d.ts +268 -0
  39. package/dist/document-module.d.ts.map +1 -0
  40. package/dist/document-module.js +347 -0
  41. package/dist/document-module.js.map +1 -0
  42. package/dist/document-summary-model.d.ts +2 -0
  43. package/dist/document-summary-model.d.ts.map +1 -0
  44. package/dist/document-summary-model.js +2 -0
  45. package/dist/document-summary-model.js.map +1 -0
  46. package/dist/document-workspace-chrome-projection.d.ts +18 -0
  47. package/dist/document-workspace-chrome-projection.d.ts.map +1 -0
  48. package/dist/document-workspace-chrome-projection.js +35 -0
  49. package/dist/document-workspace-chrome-projection.js.map +1 -0
  50. package/dist/document-workspace-surface-slots.d.ts +75 -0
  51. package/dist/document-workspace-surface-slots.d.ts.map +1 -0
  52. package/dist/document-workspace-surface-slots.js +268 -0
  53. package/dist/document-workspace-surface-slots.js.map +1 -0
  54. package/dist/endpoint-executor.d.ts +62 -0
  55. package/dist/endpoint-executor.d.ts.map +1 -0
  56. package/dist/endpoint-executor.js +35 -0
  57. package/dist/endpoint-executor.js.map +1 -0
  58. package/dist/field-display-resolution.d.ts +5 -0
  59. package/dist/field-display-resolution.d.ts.map +1 -0
  60. package/dist/field-display-resolution.js +50 -0
  61. package/dist/field-display-resolution.js.map +1 -0
  62. package/dist/index.d.ts +90 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +89 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/module.d.ts +48 -0
  67. package/dist/module.d.ts.map +1 -0
  68. package/dist/module.js +108 -0
  69. package/dist/module.js.map +1 -0
  70. package/dist/navigation-shell-frame-renderer-registry.d.ts +12 -0
  71. package/dist/navigation-shell-frame-renderer-registry.d.ts.map +1 -0
  72. package/dist/navigation-shell-frame-renderer-registry.js +29 -0
  73. package/dist/navigation-shell-frame-renderer-registry.js.map +1 -0
  74. package/dist/navigation-shell-layout-runtime.d.ts +29 -0
  75. package/dist/navigation-shell-layout-runtime.d.ts.map +1 -0
  76. package/dist/navigation-shell-layout-runtime.js +50 -0
  77. package/dist/navigation-shell-layout-runtime.js.map +1 -0
  78. package/dist/navigation-shell-region-component-registry.d.ts +96 -0
  79. package/dist/navigation-shell-region-component-registry.d.ts.map +1 -0
  80. package/dist/navigation-shell-region-component-registry.js +108 -0
  81. package/dist/navigation-shell-region-component-registry.js.map +1 -0
  82. package/dist/navigation-shell-runtime.d.ts +48 -0
  83. package/dist/navigation-shell-runtime.d.ts.map +1 -0
  84. package/dist/navigation-shell-runtime.js +457 -0
  85. package/dist/navigation-shell-runtime.js.map +1 -0
  86. package/dist/navigation-shell-slot-renderer-registry.d.ts +15 -0
  87. package/dist/navigation-shell-slot-renderer-registry.d.ts.map +1 -0
  88. package/dist/navigation-shell-slot-renderer-registry.js +48 -0
  89. package/dist/navigation-shell-slot-renderer-registry.js.map +1 -0
  90. package/dist/navigation.d.ts +84 -0
  91. package/dist/navigation.d.ts.map +1 -0
  92. package/dist/navigation.js +167 -0
  93. package/dist/navigation.js.map +1 -0
  94. package/dist/object-path.d.ts +23 -0
  95. package/dist/object-path.d.ts.map +1 -0
  96. package/dist/object-path.js +63 -0
  97. package/dist/object-path.js.map +1 -0
  98. package/dist/page-host-renderer-registry.d.ts +119 -0
  99. package/dist/page-host-renderer-registry.d.ts.map +1 -0
  100. package/dist/page-host-renderer-registry.js +305 -0
  101. package/dist/page-host-renderer-registry.js.map +1 -0
  102. package/dist/presentation-action-endpoint-request-projection.d.ts +23 -0
  103. package/dist/presentation-action-endpoint-request-projection.d.ts.map +1 -0
  104. package/dist/presentation-action-endpoint-request-projection.js +117 -0
  105. package/dist/presentation-action-endpoint-request-projection.js.map +1 -0
  106. package/dist/presentation-action-endpoint.d.ts +24 -0
  107. package/dist/presentation-action-endpoint.d.ts.map +1 -0
  108. package/dist/presentation-action-endpoint.js +56 -0
  109. package/dist/presentation-action-endpoint.js.map +1 -0
  110. package/dist/presentation-action-icons.d.ts +4 -0
  111. package/dist/presentation-action-icons.d.ts.map +1 -0
  112. package/dist/presentation-action-icons.js +4 -0
  113. package/dist/presentation-action-icons.js.map +1 -0
  114. package/dist/presentation-action-result-state.d.ts +48 -0
  115. package/dist/presentation-action-result-state.d.ts.map +1 -0
  116. package/dist/presentation-action-result-state.js +109 -0
  117. package/dist/presentation-action-result-state.js.map +1 -0
  118. package/dist/presentation-action-runtime-binding.d.ts +48 -0
  119. package/dist/presentation-action-runtime-binding.d.ts.map +1 -0
  120. package/dist/presentation-action-runtime-binding.js +52 -0
  121. package/dist/presentation-action-runtime-binding.js.map +1 -0
  122. package/dist/presentation-action-runtime-diagnostics.d.ts +18 -0
  123. package/dist/presentation-action-runtime-diagnostics.d.ts.map +1 -0
  124. package/dist/presentation-action-runtime-diagnostics.js +69 -0
  125. package/dist/presentation-action-runtime-diagnostics.js.map +1 -0
  126. package/dist/presentation-action-runtime-labels.d.ts +15 -0
  127. package/dist/presentation-action-runtime-labels.d.ts.map +1 -0
  128. package/dist/presentation-action-runtime-labels.js +28 -0
  129. package/dist/presentation-action-runtime-labels.js.map +1 -0
  130. package/dist/presentation-action-runtime-projection.d.ts +17 -0
  131. package/dist/presentation-action-runtime-projection.d.ts.map +1 -0
  132. package/dist/presentation-action-runtime-projection.js +31 -0
  133. package/dist/presentation-action-runtime-projection.js.map +1 -0
  134. package/dist/presentation-badge-resolution.d.ts +8 -0
  135. package/dist/presentation-badge-resolution.d.ts.map +1 -0
  136. package/dist/presentation-badge-resolution.js +73 -0
  137. package/dist/presentation-badge-resolution.js.map +1 -0
  138. package/dist/presentation-collection-pagination.d.ts +32 -0
  139. package/dist/presentation-collection-pagination.d.ts.map +1 -0
  140. package/dist/presentation-collection-pagination.js +275 -0
  141. package/dist/presentation-collection-pagination.js.map +1 -0
  142. package/dist/presentation-content-diagnostics.d.ts +17 -0
  143. package/dist/presentation-content-diagnostics.d.ts.map +1 -0
  144. package/dist/presentation-content-diagnostics.js +61 -0
  145. package/dist/presentation-content-diagnostics.js.map +1 -0
  146. package/dist/presentation-content-resolution.d.ts +9 -0
  147. package/dist/presentation-content-resolution.d.ts.map +1 -0
  148. package/dist/presentation-content-resolution.js +19 -0
  149. package/dist/presentation-content-resolution.js.map +1 -0
  150. package/dist/presentation-data-source-binding-model.d.ts +81 -0
  151. package/dist/presentation-data-source-binding-model.d.ts.map +1 -0
  152. package/dist/presentation-data-source-binding-model.js +56 -0
  153. package/dist/presentation-data-source-binding-model.js.map +1 -0
  154. package/dist/presentation-data-source-runtime.d.ts +62 -0
  155. package/dist/presentation-data-source-runtime.d.ts.map +1 -0
  156. package/dist/presentation-data-source-runtime.js +80 -0
  157. package/dist/presentation-data-source-runtime.js.map +1 -0
  158. package/dist/presentation-design-intent-diagnostics.d.ts +25 -0
  159. package/dist/presentation-design-intent-diagnostics.d.ts.map +1 -0
  160. package/dist/presentation-design-intent-diagnostics.js +55 -0
  161. package/dist/presentation-design-intent-diagnostics.js.map +1 -0
  162. package/dist/presentation-icon-diagnostics.d.ts +45 -0
  163. package/dist/presentation-icon-diagnostics.d.ts.map +1 -0
  164. package/dist/presentation-icon-diagnostics.js +235 -0
  165. package/dist/presentation-icon-diagnostics.js.map +1 -0
  166. package/dist/presentation-icon-registry.d.ts +36 -0
  167. package/dist/presentation-icon-registry.d.ts.map +1 -0
  168. package/dist/presentation-icon-registry.js +81 -0
  169. package/dist/presentation-icon-registry.js.map +1 -0
  170. package/dist/presentation-navigation-action-runtime-bindings.d.ts +13 -0
  171. package/dist/presentation-navigation-action-runtime-bindings.d.ts.map +1 -0
  172. package/dist/presentation-navigation-action-runtime-bindings.js +29 -0
  173. package/dist/presentation-navigation-action-runtime-bindings.js.map +1 -0
  174. package/dist/presentation-pagination.d.ts +98 -0
  175. package/dist/presentation-pagination.d.ts.map +1 -0
  176. package/dist/presentation-pagination.js +427 -0
  177. package/dist/presentation-pagination.js.map +1 -0
  178. package/dist/presentation-projection-coverage.d.ts +38 -0
  179. package/dist/presentation-projection-coverage.d.ts.map +1 -0
  180. package/dist/presentation-projection-coverage.js +2429 -0
  181. package/dist/presentation-projection-coverage.js.map +1 -0
  182. package/dist/presentation-projection-diagnostics.d.ts +33 -0
  183. package/dist/presentation-projection-diagnostics.d.ts.map +1 -0
  184. package/dist/presentation-projection-diagnostics.js +17 -0
  185. package/dist/presentation-projection-diagnostics.js.map +1 -0
  186. package/dist/presentation-projection-trace.d.ts +97 -0
  187. package/dist/presentation-projection-trace.d.ts.map +1 -0
  188. package/dist/presentation-projection-trace.js +110 -0
  189. package/dist/presentation-projection-trace.js.map +1 -0
  190. package/dist/presentation-query-form-state.d.ts +15 -0
  191. package/dist/presentation-query-form-state.d.ts.map +1 -0
  192. package/dist/presentation-query-form-state.js +20 -0
  193. package/dist/presentation-query-form-state.js.map +1 -0
  194. package/dist/presentation-renderer-registry.d.ts +86 -0
  195. package/dist/presentation-renderer-registry.d.ts.map +1 -0
  196. package/dist/presentation-renderer-registry.js +108 -0
  197. package/dist/presentation-renderer-registry.js.map +1 -0
  198. package/dist/presentation-semantics.d.ts +288 -0
  199. package/dist/presentation-semantics.d.ts.map +1 -0
  200. package/dist/presentation-semantics.js +560 -0
  201. package/dist/presentation-semantics.js.map +1 -0
  202. package/dist/presentation-standards.d.ts +8 -0
  203. package/dist/presentation-standards.d.ts.map +1 -0
  204. package/dist/presentation-standards.js +9 -0
  205. package/dist/presentation-standards.js.map +1 -0
  206. package/dist/presentation-test-selectors.d.ts +146 -0
  207. package/dist/presentation-test-selectors.d.ts.map +1 -0
  208. package/dist/presentation-test-selectors.js +113 -0
  209. package/dist/presentation-test-selectors.js.map +1 -0
  210. package/dist/presentation-value-formatting.d.ts +12 -0
  211. package/dist/presentation-value-formatting.d.ts.map +1 -0
  212. package/dist/presentation-value-formatting.js +33 -0
  213. package/dist/presentation-value-formatting.js.map +1 -0
  214. package/dist/presentation-value-resolution.d.ts +7 -0
  215. package/dist/presentation-value-resolution.d.ts.map +1 -0
  216. package/dist/presentation-value-resolution.js +69 -0
  217. package/dist/presentation-value-resolution.js.map +1 -0
  218. package/dist/presentation-view-tree.d.ts +6 -0
  219. package/dist/presentation-view-tree.d.ts.map +1 -0
  220. package/dist/presentation-view-tree.js +15 -0
  221. package/dist/presentation-view-tree.js.map +1 -0
  222. package/dist/process-task-model.d.ts +80 -0
  223. package/dist/process-task-model.d.ts.map +1 -0
  224. package/dist/process-task-model.js +52 -0
  225. package/dist/process-task-model.js.map +1 -0
  226. package/dist/process-task-projection.d.ts +46 -0
  227. package/dist/process-task-projection.d.ts.map +1 -0
  228. package/dist/process-task-projection.js +233 -0
  229. package/dist/process-task-projection.js.map +1 -0
  230. package/dist/projected-action-status-projection.d.ts +18 -0
  231. package/dist/projected-action-status-projection.d.ts.map +1 -0
  232. package/dist/projected-action-status-projection.js +19 -0
  233. package/dist/projected-action-status-projection.js.map +1 -0
  234. package/dist/projected-activity-state-model.d.ts +22 -0
  235. package/dist/projected-activity-state-model.d.ts.map +1 -0
  236. package/dist/projected-activity-state-model.js +87 -0
  237. package/dist/projected-activity-state-model.js.map +1 -0
  238. package/dist/projected-collection-action-runtime-bindings.d.ts +12 -0
  239. package/dist/projected-collection-action-runtime-bindings.d.ts.map +1 -0
  240. package/dist/projected-collection-action-runtime-bindings.js +37 -0
  241. package/dist/projected-collection-action-runtime-bindings.js.map +1 -0
  242. package/dist/projected-collection-action-runtime-diagnostics.d.ts +23 -0
  243. package/dist/projected-collection-action-runtime-diagnostics.d.ts.map +1 -0
  244. package/dist/projected-collection-action-runtime-diagnostics.js +168 -0
  245. package/dist/projected-collection-action-runtime-diagnostics.js.map +1 -0
  246. package/dist/projected-collection-runtime.d.ts +475 -0
  247. package/dist/projected-collection-runtime.d.ts.map +1 -0
  248. package/dist/projected-collection-runtime.js +832 -0
  249. package/dist/projected-collection-runtime.js.map +1 -0
  250. package/dist/projected-document-action-diagnostics.d.ts +16 -0
  251. package/dist/projected-document-action-diagnostics.d.ts.map +1 -0
  252. package/dist/projected-document-action-diagnostics.js +113 -0
  253. package/dist/projected-document-action-diagnostics.js.map +1 -0
  254. package/dist/projected-document-action-enablements.d.ts +25 -0
  255. package/dist/projected-document-action-enablements.d.ts.map +1 -0
  256. package/dist/projected-document-action-enablements.js +38 -0
  257. package/dist/projected-document-action-enablements.js.map +1 -0
  258. package/dist/projected-document-action-projection.d.ts +45 -0
  259. package/dist/projected-document-action-projection.d.ts.map +1 -0
  260. package/dist/projected-document-action-projection.js +201 -0
  261. package/dist/projected-document-action-projection.js.map +1 -0
  262. package/dist/projected-document-action-runtime-profile-diagnostics.d.ts +16 -0
  263. package/dist/projected-document-action-runtime-profile-diagnostics.d.ts.map +1 -0
  264. package/dist/projected-document-action-runtime-profile-diagnostics.js +168 -0
  265. package/dist/projected-document-action-runtime-profile-diagnostics.js.map +1 -0
  266. package/dist/projected-document-action-runtime-profile.d.ts +64 -0
  267. package/dist/projected-document-action-runtime-profile.d.ts.map +1 -0
  268. package/dist/projected-document-action-runtime-profile.js +33 -0
  269. package/dist/projected-document-action-runtime-profile.js.map +1 -0
  270. package/dist/projected-document-action-status-notice-diagnostics.d.ts +10 -0
  271. package/dist/projected-document-action-status-notice-diagnostics.d.ts.map +1 -0
  272. package/dist/projected-document-action-status-notice-diagnostics.js +64 -0
  273. package/dist/projected-document-action-status-notice-diagnostics.js.map +1 -0
  274. package/dist/projected-document-badge-formatting.d.ts +2 -0
  275. package/dist/projected-document-badge-formatting.d.ts.map +1 -0
  276. package/dist/projected-document-badge-formatting.js +7 -0
  277. package/dist/projected-document-badge-formatting.js.map +1 -0
  278. package/dist/projected-document-editor-model.d.ts +4 -0
  279. package/dist/projected-document-editor-model.d.ts.map +1 -0
  280. package/dist/projected-document-editor-model.js +2 -0
  281. package/dist/projected-document-editor-model.js.map +1 -0
  282. package/dist/projected-document-field-navigation.d.ts +72 -0
  283. package/dist/projected-document-field-navigation.d.ts.map +1 -0
  284. package/dist/projected-document-field-navigation.js +143 -0
  285. package/dist/projected-document-field-navigation.js.map +1 -0
  286. package/dist/projected-document-field-semantics.d.ts +5 -0
  287. package/dist/projected-document-field-semantics.d.ts.map +1 -0
  288. package/dist/projected-document-field-semantics.js +16 -0
  289. package/dist/projected-document-field-semantics.js.map +1 -0
  290. package/dist/projected-document-workspace-data-source-bindings.d.ts +69 -0
  291. package/dist/projected-document-workspace-data-source-bindings.d.ts.map +1 -0
  292. package/dist/projected-document-workspace-data-source-bindings.js +81 -0
  293. package/dist/projected-document-workspace-data-source-bindings.js.map +1 -0
  294. package/dist/projected-document-workspace-notice-diagnostics.d.ts +12 -0
  295. package/dist/projected-document-workspace-notice-diagnostics.d.ts.map +1 -0
  296. package/dist/projected-document-workspace-notice-diagnostics.js +13 -0
  297. package/dist/projected-document-workspace-notice-diagnostics.js.map +1 -0
  298. package/dist/projected-input-form-runtime.d.ts +62 -0
  299. package/dist/projected-input-form-runtime.d.ts.map +1 -0
  300. package/dist/projected-input-form-runtime.js +2 -0
  301. package/dist/projected-input-form-runtime.js.map +1 -0
  302. package/dist/projected-process-task-notice-diagnostics.d.ts +13 -0
  303. package/dist/projected-process-task-notice-diagnostics.d.ts.map +1 -0
  304. package/dist/projected-process-task-notice-diagnostics.js +170 -0
  305. package/dist/projected-process-task-notice-diagnostics.js.map +1 -0
  306. package/dist/projected-query-form-runtime.d.ts +46 -0
  307. package/dist/projected-query-form-runtime.d.ts.map +1 -0
  308. package/dist/projected-query-form-runtime.js +2 -0
  309. package/dist/projected-query-form-runtime.js.map +1 -0
  310. package/dist/prompt-document-preview-projection.d.ts +46 -0
  311. package/dist/prompt-document-preview-projection.d.ts.map +1 -0
  312. package/dist/prompt-document-preview-projection.js +173 -0
  313. package/dist/prompt-document-preview-projection.js.map +1 -0
  314. package/dist/prompt-icons.d.ts +4 -0
  315. package/dist/prompt-icons.d.ts.map +1 -0
  316. package/dist/prompt-icons.js +4 -0
  317. package/dist/prompt-icons.js.map +1 -0
  318. package/dist/prompt-status-message-resolution.d.ts +18 -0
  319. package/dist/prompt-status-message-resolution.d.ts.map +1 -0
  320. package/dist/prompt-status-message-resolution.js +83 -0
  321. package/dist/prompt-status-message-resolution.js.map +1 -0
  322. package/dist/query-form-lowering.d.ts +16 -0
  323. package/dist/query-form-lowering.d.ts.map +1 -0
  324. package/dist/query-form-lowering.js +38 -0
  325. package/dist/query-form-lowering.js.map +1 -0
  326. package/dist/query-form-url-state.d.ts +44 -0
  327. package/dist/query-form-url-state.d.ts.map +1 -0
  328. package/dist/query-form-url-state.js +197 -0
  329. package/dist/query-form-url-state.js.map +1 -0
  330. package/dist/query-offset-page.d.ts +13 -0
  331. package/dist/query-offset-page.d.ts.map +1 -0
  332. package/dist/query-offset-page.js +24 -0
  333. package/dist/query-offset-page.js.map +1 -0
  334. package/dist/relation-query-input-form-target.d.ts +10 -0
  335. package/dist/relation-query-input-form-target.d.ts.map +1 -0
  336. package/dist/relation-query-input-form-target.js +30 -0
  337. package/dist/relation-query-input-form-target.js.map +1 -0
  338. package/dist/scope-selection.d.ts +94 -0
  339. package/dist/scope-selection.d.ts.map +1 -0
  340. package/dist/scope-selection.js +95 -0
  341. package/dist/scope-selection.js.map +1 -0
  342. package/dist/target-bindings.d.ts +39 -0
  343. package/dist/target-bindings.d.ts.map +1 -0
  344. package/dist/target-bindings.js +40 -0
  345. package/dist/target-bindings.js.map +1 -0
  346. package/dist/view-chrome-content-diagnostics.d.ts +8 -0
  347. package/dist/view-chrome-content-diagnostics.d.ts.map +1 -0
  348. package/dist/view-chrome-content-diagnostics.js +84 -0
  349. package/dist/view-chrome-content-diagnostics.js.map +1 -0
  350. package/dist/view-chrome-icons.d.ts +12 -0
  351. package/dist/view-chrome-icons.d.ts.map +1 -0
  352. package/dist/view-chrome-icons.js +50 -0
  353. package/dist/view-chrome-icons.js.map +1 -0
  354. package/dist/view-chrome-slot-renderer-registry.d.ts +19 -0
  355. package/dist/view-chrome-slot-renderer-registry.d.ts.map +1 -0
  356. package/dist/view-chrome-slot-renderer-registry.js +62 -0
  357. package/dist/view-chrome-slot-renderer-registry.js.map +1 -0
  358. package/package.json +53 -0
  359. package/src/api-scope-request.ts +186 -0
  360. package/src/collection-chrome-icons.ts +89 -0
  361. package/src/collection-chrome-runtime.ts +151 -0
  362. package/src/collection-chrome-slot-renderer-registry.ts +227 -0
  363. package/src/collection-selection-state.ts +32 -0
  364. package/src/data-source-projection.ts +2149 -0
  365. package/src/data-source-query-lowering.ts +217 -0
  366. package/src/date-time-filter-model.ts +156 -0
  367. package/src/document-badge-icons.ts +3 -0
  368. package/src/document-module.ts +741 -0
  369. package/src/document-summary-model.ts +1 -0
  370. package/src/document-workspace-chrome-projection.ts +62 -0
  371. package/src/document-workspace-surface-slots.ts +458 -0
  372. package/src/endpoint-executor.ts +122 -0
  373. package/src/field-display-resolution.ts +99 -0
  374. package/src/index.ts +104 -0
  375. package/src/module.ts +281 -0
  376. package/src/navigation-shell-frame-renderer-registry.ts +65 -0
  377. package/src/navigation-shell-layout-runtime.ts +124 -0
  378. package/src/navigation-shell-region-component-registry.ts +242 -0
  379. package/src/navigation-shell-runtime.ts +579 -0
  380. package/src/navigation-shell-slot-renderer-registry.ts +94 -0
  381. package/src/navigation.ts +364 -0
  382. package/src/object-path.ts +99 -0
  383. package/src/page-host-renderer-registry.ts +615 -0
  384. package/src/presentation-action-endpoint-request-projection.ts +223 -0
  385. package/src/presentation-action-endpoint.ts +130 -0
  386. package/src/presentation-action-icons.ts +3 -0
  387. package/src/presentation-action-result-state.ts +189 -0
  388. package/src/presentation-action-runtime-binding.ts +177 -0
  389. package/src/presentation-action-runtime-diagnostics.ts +120 -0
  390. package/src/presentation-action-runtime-labels.ts +57 -0
  391. package/src/presentation-action-runtime-projection.ts +67 -0
  392. package/src/presentation-badge-resolution.ts +138 -0
  393. package/src/presentation-collection-pagination.ts +436 -0
  394. package/src/presentation-content-diagnostics.ts +121 -0
  395. package/src/presentation-content-resolution.ts +46 -0
  396. package/src/presentation-data-source-binding-model.ts +140 -0
  397. package/src/presentation-data-source-runtime.ts +190 -0
  398. package/src/presentation-design-intent-diagnostics.ts +104 -0
  399. package/src/presentation-icon-diagnostics.ts +368 -0
  400. package/src/presentation-icon-registry.ts +181 -0
  401. package/src/presentation-navigation-action-runtime-bindings.ts +54 -0
  402. package/src/presentation-pagination.ts +694 -0
  403. package/src/presentation-projection-coverage.ts +3257 -0
  404. package/src/presentation-projection-diagnostics.ts +71 -0
  405. package/src/presentation-projection-trace.ts +293 -0
  406. package/src/presentation-query-form-state.ts +54 -0
  407. package/src/presentation-renderer-registry.ts +269 -0
  408. package/src/presentation-semantics.ts +1028 -0
  409. package/src/presentation-standards.ts +14 -0
  410. package/src/presentation-test-selectors.ts +312 -0
  411. package/src/presentation-value-formatting.ts +65 -0
  412. package/src/presentation-value-resolution.ts +100 -0
  413. package/src/presentation-view-tree.ts +33 -0
  414. package/src/process-task-model.ts +158 -0
  415. package/src/process-task-projection.ts +398 -0
  416. package/src/projected-action-status-projection.ts +43 -0
  417. package/src/projected-activity-state-model.ts +123 -0
  418. package/src/projected-collection-action-runtime-bindings.ts +76 -0
  419. package/src/projected-collection-action-runtime-diagnostics.ts +289 -0
  420. package/src/projected-collection-runtime.ts +1772 -0
  421. package/src/projected-document-action-diagnostics.ts +196 -0
  422. package/src/projected-document-action-enablements.ts +99 -0
  423. package/src/projected-document-action-projection.ts +464 -0
  424. package/src/projected-document-action-runtime-profile-diagnostics.ts +250 -0
  425. package/src/projected-document-action-runtime-profile.ts +133 -0
  426. package/src/projected-document-action-status-notice-diagnostics.ts +116 -0
  427. package/src/projected-document-badge-formatting.ts +7 -0
  428. package/src/projected-document-editor-model.ts +7 -0
  429. package/src/projected-document-field-navigation.ts +300 -0
  430. package/src/projected-document-field-semantics.ts +27 -0
  431. package/src/projected-document-workspace-data-source-bindings.ts +182 -0
  432. package/src/projected-document-workspace-notice-diagnostics.ts +41 -0
  433. package/src/projected-input-form-runtime.ts +86 -0
  434. package/src/projected-process-task-notice-diagnostics.ts +283 -0
  435. package/src/projected-query-form-runtime.ts +62 -0
  436. package/src/prompt-document-preview-projection.ts +345 -0
  437. package/src/prompt-icons.ts +3 -0
  438. package/src/prompt-status-message-resolution.ts +158 -0
  439. package/src/query-form-lowering.ts +77 -0
  440. package/src/query-form-url-state.ts +346 -0
  441. package/src/query-offset-page.ts +50 -0
  442. package/src/relation-query-input-form-target.ts +61 -0
  443. package/src/scope-selection.ts +201 -0
  444. package/src/target-bindings.ts +123 -0
  445. package/src/view-chrome-content-diagnostics.ts +139 -0
  446. package/src/view-chrome-icons.ts +81 -0
  447. package/src/view-chrome-slot-renderer-registry.ts +128 -0
@@ -0,0 +1,268 @@
1
+ import type { ActionPlacementDefinition, DocumentActionStatusNoticeDefinition, DocumentProcessTaskNoticeDefinition, PresentationModuleDefinition, ProcessTaskSelectorDefinition, WorkspaceRefDefinition } from './module.js';
2
+ import type { PresentationDataSourceBinding } from './presentation-data-source-binding-model.js';
3
+ import { type PresentationDataSourceBindingProjectionRegistry, type PresentationDataSourceProjectionContext } from './data-source-projection.js';
4
+ import type { DataSourceRefDefinition, DocumentActionRuntimeProfileDefinition, DocumentDataSourceActivationPolicyDefinition, DocumentAddressDefinition, DocumentDataSourceRole, DocumentIdentityDefinition, DocumentMetricSourceDefinition, PageHostDefinition } from '@cohesivesystems/presentation-contracts';
5
+ /**
6
+ * Frontend projection of a backend document profile.
7
+ *
8
+ * A document profile describes the semantic document being edited or viewed,
9
+ * the document-kind discriminator, and the profile-scoped data sources that
10
+ * supply resource, metadata, summary, or auxiliary state.
11
+ */
12
+ export interface DocumentProfileProjection {
13
+ readonly Actions?: readonly ActionPlacementDefinition[];
14
+ readonly DataSources?: readonly DocumentProfileDataSourceProjection[];
15
+ readonly Document?: {
16
+ readonly Address?: DocumentAddressDefinition | null;
17
+ readonly DataSource?: DataSourceRefDefinition | null;
18
+ readonly Id?: string;
19
+ readonly Identity?: DocumentIdentityDefinition | null;
20
+ readonly Kind: string | number;
21
+ } | null;
22
+ readonly Id: string;
23
+ readonly Name?: string;
24
+ readonly MetricSources?: readonly DocumentMetricSourceDefinition[];
25
+ readonly ActionStatusNotices?: readonly DocumentActionStatusNoticeDefinition[];
26
+ readonly ActionRuntimeProfiles?: readonly DocumentActionRuntimeProfileDefinition[];
27
+ readonly ProcessTaskNotices?: readonly DocumentProcessTaskNoticeDefinition[];
28
+ readonly ProcessTaskSelectors?: readonly ProcessTaskSelectorDefinition[];
29
+ }
30
+ /**
31
+ * Runtime identity for a presentation document kind.
32
+ *
33
+ * The backend owns the enum value; this projection provides stable frontend
34
+ * text and key forms without requiring document-specific handwritten unions.
35
+ */
36
+ export interface ProjectedDocumentKind {
37
+ readonly id: string;
38
+ readonly label: string;
39
+ readonly value: string | number;
40
+ }
41
+ /**
42
+ * Opaque runtime resource loaded for a document profile.
43
+ *
44
+ * Generic document helpers read identity, document payload, display metadata,
45
+ * and version metadata through DocumentWorkspaceResourceProjection instead of
46
+ * assuming product-specific property names.
47
+ */
48
+ export type ProjectedDocumentResource = Readonly<Record<string, unknown>>;
49
+ /**
50
+ * Generic runtime projection for a document workspace profile.
51
+ *
52
+ * Product-specific workspaces can extend this with extra capabilities while
53
+ * relying on the shared document module for resource, summary, metadata, and
54
+ * editor-address interpretation.
55
+ */
56
+ export interface DocumentWorkspaceProfileProjection {
57
+ /** Data source that loads and saves the primary JSON document resource. */
58
+ readonly dataSourceId: string;
59
+ /** Backend-declared document kind projected into stable runtime identity metadata. */
60
+ readonly documentKind: ProjectedDocumentKind;
61
+ /** Stable editor URI shown for local preview/editor integrations. */
62
+ readonly editorPath: (resourceId: string) => string;
63
+ /** Human-readable label for workspace chrome and fallback messages. */
64
+ readonly label: string;
65
+ /** Optional metadata data source projection attached to the profile. */
66
+ readonly metadata?: DocumentWorkspaceMetadataProjection;
67
+ /** Original document profile that produced this runtime projection. */
68
+ readonly profile: DocumentProfileProjection;
69
+ /** Stable profile id used for document-instance and editor-state identity. */
70
+ readonly profileId: string;
71
+ /** IR-derived field paths used to interpret otherwise opaque resource shapes. */
72
+ readonly resource: DocumentWorkspaceResourceProjection;
73
+ /** Optional summary data source projection for header metrics. */
74
+ readonly summary?: DocumentWorkspaceSummaryProjection;
75
+ }
76
+ /** Resource field-path projection for generic document workspace state. */
77
+ export interface DocumentWorkspaceResourceProjection {
78
+ readonly createdAtPath?: string | null;
79
+ readonly documentPath: string;
80
+ readonly idPath: string;
81
+ readonly titlePath?: string | null;
82
+ readonly updatedAtPath?: string | null;
83
+ readonly versionPath?: string | null;
84
+ }
85
+ /** Data source projection for resource metadata associated with a document. */
86
+ export interface DocumentWorkspaceMetadataProjection {
87
+ readonly dataSourceId: string;
88
+ }
89
+ /**
90
+ * Summary projection for document header metrics.
91
+ *
92
+ * Field paths come from profile metric sources that target the summary data
93
+ * source, allowing summary rendering to stay profile-driven.
94
+ */
95
+ export interface DocumentWorkspaceSummaryProjection {
96
+ readonly dataSourceId: string;
97
+ readonly fieldPaths: readonly string[];
98
+ }
99
+ /** Options for projecting a document profile into a workspace runtime shape. */
100
+ export interface ProjectDocumentWorkspaceProfileOptions {
101
+ /** URI scheme used when the profile does not declare a document source address template. */
102
+ readonly fallbackAddressScheme?: string;
103
+ }
104
+ /**
105
+ * Profile-scoped reference to a presentation data source.
106
+ *
107
+ * The role and activation policy let a workspace decide which data sources
108
+ * should be bound for the current document state without hard-coding concrete
109
+ * resource types in React components.
110
+ */
111
+ export interface DocumentProfileDataSourceProjection {
112
+ readonly Activation?: DocumentDataSourceActivationPolicyDefinition | null;
113
+ readonly DataSource: DataSourceRefDefinition;
114
+ readonly Description?: string | null;
115
+ readonly Id: string;
116
+ readonly IsRequired: boolean;
117
+ readonly Role: DocumentDataSourceRole;
118
+ }
119
+ /** Metric source projection preserved from the presentation IR document profile. */
120
+ export type DocumentMetricSourceProjection = DocumentMetricSourceDefinition;
121
+ /**
122
+ * Minimal workspace shape required by document-profile resolution.
123
+ *
124
+ * The generated presentation module may contain richer workspace definitions;
125
+ * these utilities only depend on the document-profile subset.
126
+ */
127
+ interface DocumentWorkspaceProjection {
128
+ readonly DefaultDocumentProfileId?: string | null;
129
+ readonly DocumentProfiles: readonly DocumentProfileProjection[];
130
+ readonly Id: string;
131
+ }
132
+ type DocumentWorkspaceRefProjection = Pick<WorkspaceRefDefinition, 'DocumentProfileId' | 'WorkspaceId'>;
133
+ /** Options for projecting active document-profile data sources into bindings. */
134
+ export interface ProjectDocumentProfileDataSourceBindingsOptions {
135
+ /** Current view/projection/route state used to evaluate activation policies. */
136
+ readonly activation?: DocumentDataSourceActivationState;
137
+ /** Optional projection context forwarded to lower-level data-source binding projection. */
138
+ readonly context?: PresentationDataSourceProjectionContext;
139
+ /** Presentation module that owns canonical data-source definitions. */
140
+ readonly module: PresentationModuleDefinition | null;
141
+ /** Document profile whose scoped data sources should be projected. */
142
+ readonly profile: DocumentProfileProjection | null;
143
+ /** Registry used to interpret concrete data-source binding kinds. */
144
+ readonly registry: PresentationDataSourceBindingProjectionRegistry;
145
+ /** Optional role filter applied before activation and binding projection. */
146
+ readonly roles?: readonly DocumentDataSourceRole[];
147
+ }
148
+ /**
149
+ * Runtime state used to determine whether profile-scoped data sources are
150
+ * active for the current document view.
151
+ */
152
+ export interface DocumentDataSourceActivationState {
153
+ readonly activeLayoutModeId?: string | null;
154
+ readonly activeProjectionId?: string | null;
155
+ readonly activeViewId?: string | null;
156
+ readonly routeParameters?: Readonly<Record<string, string | null | undefined>>;
157
+ }
158
+ /**
159
+ * Resolves the document profile referenced by a page host.
160
+ *
161
+ * Page hosts refer to workspaces; workspaces own one or more document profiles.
162
+ * This helper follows that indirection and returns the selected profile, or
163
+ * null when the page host does not identify a usable document profile.
164
+ */
165
+ export declare function resolvePageHostDocumentProfile<TProfile extends DocumentProfileProjection>(module: {
166
+ readonly Workspaces: readonly DocumentWorkspaceProjection[];
167
+ }, pageHost: Pick<PageHostDefinition, 'Workspace'>): TProfile | null;
168
+ /**
169
+ * Resolves the active document profile for a workspace reference.
170
+ *
171
+ * Selection order is explicit workspace-ref profile id, workspace default
172
+ * profile id, then the first profile declared on the workspace.
173
+ */
174
+ export declare function resolveWorkspaceDocumentProfile<TProfile extends DocumentProfileProjection>(module: {
175
+ readonly Workspaces: readonly DocumentWorkspaceProjection[];
176
+ }, workspaceRef: DocumentWorkspaceRefProjection | null): TProfile | null;
177
+ /** Finds a document workspace by id from the presentation module workspace set. */
178
+ export declare function findDocumentWorkspace<TWorkspace extends DocumentWorkspaceProjection>(module: {
179
+ readonly Workspaces: readonly DocumentWorkspaceProjection[];
180
+ }, workspaceId: string): TWorkspace | null;
181
+ /**
182
+ * Finds a profile data source by semantic role and optional profile-local id.
183
+ *
184
+ * Role matching accepts generated enum values, numeric values, and generated
185
+ * labels so callers are insulated from representation differences in emitted
186
+ * presentation IR.
187
+ */
188
+ export declare function findDocumentProfileDataSource(profile: DocumentProfileProjection | null, role: DocumentDataSourceRole, id?: string): DocumentProfileDataSourceProjection | null;
189
+ /**
190
+ * Returns profile data sources, optionally filtered by semantic role.
191
+ *
192
+ * This does not evaluate activation policy; use
193
+ * projectDocumentProfileDataSourceBindings when the current view state matters.
194
+ */
195
+ export declare function getDocumentProfileDataSources(profile: DocumentProfileProjection | null, roles?: readonly DocumentDataSourceRole[]): readonly DocumentProfileDataSourceProjection[];
196
+ /** Returns data-source ids for the selected profile-scoped data-source roles. */
197
+ export declare function getDocumentProfileDataSourceIds(profile: DocumentProfileProjection | null, roles?: readonly DocumentDataSourceRole[]): readonly string[];
198
+ /** Returns profile data sources marked as required by the backend profile. */
199
+ export declare function getRequiredDocumentProfileDataSources(profile: DocumentProfileProjection | null): readonly DocumentProfileDataSourceProjection[];
200
+ /**
201
+ * Resolves route parameter names that can identify the profile's primary
202
+ * document resource.
203
+ *
204
+ * Resource identity should come from the resource data-source contract when it
205
+ * exists. Falling back to document identity keeps locally declared profiles
206
+ * usable even before their resource endpoint is modeled as a parameterized
207
+ * data source.
208
+ */
209
+ export declare function resolveDocumentProfileResourceRouteParameterNames(module: Pick<PresentationModuleDefinition, 'DataSources'> | null, profile: DocumentProfileProjection | null): readonly string[];
210
+ /** Returns the source-address template declared for the profile document. */
211
+ export declare function getDocumentSourceAddressTemplate(profile: DocumentProfileProjection | null): string | null;
212
+ /** Projects the backend document kind into stable runtime identity metadata. */
213
+ export declare function projectDocumentKind(profile: DocumentProfileProjection | null): ProjectedDocumentKind | null;
214
+ /**
215
+ * Projects a backend document profile into the generic runtime shape consumed
216
+ * by document-backed workspaces.
217
+ *
218
+ * Returns null when the profile is missing, unsupported, or lacks a primary
219
+ * resource data source.
220
+ */
221
+ export declare function projectDocumentWorkspaceProfile(profile: DocumentProfileProjection | null, options?: ProjectDocumentWorkspaceProfileOptions): DocumentWorkspaceProfileProjection | null;
222
+ /**
223
+ * Creates the editor identity key used to decide whether local editor state
224
+ * still belongs to the currently loaded resource revision.
225
+ */
226
+ export declare function createDocumentResourceEditorKey(projection: Pick<DocumentWorkspaceProfileProjection, 'documentKind' | 'profileId' | 'resource'>, resource: ProjectedDocumentResource): string;
227
+ /** Reads the semantic document id from an opaque resource using profile IR. */
228
+ export declare function readDocumentResourceId(projection: Pick<DocumentWorkspaceProfileProjection, 'resource'>, resource: unknown): string | null;
229
+ /** Reads the JSON document payload from an opaque resource using profile IR. */
230
+ export declare function readDocumentResourceDocument(projection: Pick<DocumentWorkspaceProfileProjection, 'resource'>, resource: unknown): unknown;
231
+ /** Reads a human-facing resource title from an opaque resource using profile IR. */
232
+ export declare function readDocumentResourceTitle(projection: Pick<DocumentWorkspaceProfileProjection, 'label' | 'resource'>, resource: unknown): string;
233
+ /** Reads the resource version from an opaque resource using profile IR. */
234
+ export declare function readDocumentResourceVersion(projection: Pick<DocumentWorkspaceProfileProjection, 'resource'>, resource: unknown): string | number | null;
235
+ /**
236
+ * Tests document kind values across generated numeric and backend string enum
237
+ * representations.
238
+ */
239
+ export declare function isDocumentKind(value: string | number | null | undefined, expected: string | number): boolean;
240
+ /**
241
+ * Formats a profile document source address from a declared address template.
242
+ *
243
+ * Template placeholders are resolved from exact property names first and then
244
+ * lower-camel-case names. Returns null when the profile has no template or any
245
+ * placeholder value is missing.
246
+ */
247
+ export declare function formatDocumentSourceAddress(profile: DocumentProfileProjection | null, values: Readonly<Record<string, string | number | boolean | null | undefined>>): string | null;
248
+ /**
249
+ * Projects active profile-scoped data sources into runtime binding
250
+ * descriptors.
251
+ *
252
+ * Profile data sources are first filtered by role and activation policy. The
253
+ * remaining ids are then interpreted through the generic presentation
254
+ * data-source projection registry, with local-state fallback definitions for
255
+ * data sources that are only scoped by the document profile.
256
+ */
257
+ export declare function projectDocumentProfileDataSourceBindings({ activation, context, module, profile, registry, roles, }: ProjectDocumentProfileDataSourceBindingsOptions): readonly PresentationDataSourceBinding[];
258
+ /**
259
+ * Evaluates whether a profile data source is active for the current document
260
+ * runtime state.
261
+ *
262
+ * A source is active when all required route parameters are present and, when
263
+ * projection/view/layout constraints are declared, at least one active semantic
264
+ * id matches the policy.
265
+ */
266
+ export declare function isDocumentProfileDataSourceActive(dataSource: DocumentProfileDataSourceProjection, state: DocumentDataSourceActivationState | undefined): boolean;
267
+ export {};
268
+ //# sourceMappingURL=document-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-module.d.ts","sourceRoot":"","sources":["../src/document-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EAEzB,oCAAoC,EACpC,mCAAmC,EACnC,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAA;AAC7F,OAAO,EAEL,KAAK,+CAA+C,EACpD,KAAK,uCAAuC,EAC7C,MAAM,0BAA0B,CAAA;AAIjC,OAAO,KAAK,EACV,uBAAuB,EACvB,sCAAsC,EACtC,4CAA4C,EAC5C,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,8BAA8B,EAC9B,kBAAkB,EACnB,MAAM,yCAAyC,CAAA;AAQhD;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;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,gFAAgF;AAChF,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,IAAI,CAAC,kCAAkC,EAAE,UAAU,CAAC,EAChE,QAAQ,EAAE,OAAO,WAGlB;AAED,oFAAoF;AACpF,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,IAAI,CAAC,kCAAkC,EAAE,OAAO,GAAG,UAAU,CAAC,EAC1E,QAAQ,EAAE,OAAO,UAIlB;AAED,2EAA2E;AAC3E,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,IAAI,CAAC,kCAAkC,EAAE,UAAU,CAAC,EAChE,QAAQ,EAAE,OAAO,0BAMlB;AAgBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,QAAQ,EAAE,MAAM,GAAG,MAAM,WAS1B;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,yBAAyB,GAAG,IAAI,EACzC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC,iBAmB/E;AAED;;;;;;;;GAQG;AACH,wBAAgB,wCAAwC,CAAC,EACvD,UAAU,EACV,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,KAAK,GACN,EAAE,+CAA+C,GAAG,SAAS,6BAA6B,EAAE,CAgB5F;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,mCAAmC,EAC/C,KAAK,EAAE,iCAAiC,GAAG,SAAS,WA6BrD"}
@@ -0,0 +1,347 @@
1
+ import { projectPresentationDataSourceBindings, } from './data-source-projection.js';
2
+ import { readPresentationFieldValue, } from './presentation-value-resolution.js';
3
+ import { dataSourceKinds, documentKindLabels, documentDataSourceRoles, documentDataSourceRoleLabels, } from '@cohesivesystems/presentation-contracts';
4
+ /**
5
+ * Resolves the document profile referenced by a page host.
6
+ *
7
+ * Page hosts refer to workspaces; workspaces own one or more document profiles.
8
+ * This helper follows that indirection and returns the selected profile, or
9
+ * null when the page host does not identify a usable document profile.
10
+ */
11
+ export function resolvePageHostDocumentProfile(module, pageHost) {
12
+ return resolveWorkspaceDocumentProfile(module, pageHost.Workspace ?? null);
13
+ }
14
+ /**
15
+ * Resolves the active document profile for a workspace reference.
16
+ *
17
+ * Selection order is explicit workspace-ref profile id, workspace default
18
+ * profile id, then the first profile declared on the workspace.
19
+ */
20
+ export function resolveWorkspaceDocumentProfile(module, workspaceRef) {
21
+ if (!workspaceRef) {
22
+ return null;
23
+ }
24
+ const workspace = findDocumentWorkspace(module, workspaceRef.WorkspaceId);
25
+ if (!workspace) {
26
+ return null;
27
+ }
28
+ const documentProfileId = workspaceRef.DocumentProfileId ??
29
+ workspace.DefaultDocumentProfileId ??
30
+ workspace.DocumentProfiles?.[0]?.Id ??
31
+ null;
32
+ return documentProfileId
33
+ ? (workspace.DocumentProfiles?.find((profile) => profile.Id === documentProfileId) ??
34
+ null)
35
+ : null;
36
+ }
37
+ /** Finds a document workspace by id from the presentation module workspace set. */
38
+ export function findDocumentWorkspace(module, workspaceId) {
39
+ return (module.Workspaces?.find((workspace) => workspace.Id === workspaceId) ?? null);
40
+ }
41
+ /**
42
+ * Finds a profile data source by semantic role and optional profile-local id.
43
+ *
44
+ * Role matching accepts generated enum values, numeric values, and generated
45
+ * labels so callers are insulated from representation differences in emitted
46
+ * presentation IR.
47
+ */
48
+ export function findDocumentProfileDataSource(profile, role, id) {
49
+ return profile?.DataSources?.find((dataSource) => isDocumentDataSourceRole(dataSource.Role, role) && (!id || dataSource.Id === id)) ?? null;
50
+ }
51
+ /**
52
+ * Returns profile data sources, optionally filtered by semantic role.
53
+ *
54
+ * This does not evaluate activation policy; use
55
+ * projectDocumentProfileDataSourceBindings when the current view state matters.
56
+ */
57
+ export function getDocumentProfileDataSources(profile, roles) {
58
+ const dataSources = profile?.DataSources ?? [];
59
+ if (!roles?.length) {
60
+ return dataSources;
61
+ }
62
+ const roleSet = new Set(roles);
63
+ return dataSources.filter((dataSource) => Array.from(roleSet).some((role) => isDocumentDataSourceRole(dataSource.Role, role)));
64
+ }
65
+ /** Returns data-source ids for the selected profile-scoped data-source roles. */
66
+ export function getDocumentProfileDataSourceIds(profile, roles) {
67
+ return getDocumentProfileDataSources(profile, roles).map((dataSource) => dataSource.DataSource.DataSourceId);
68
+ }
69
+ /** Returns profile data sources marked as required by the backend profile. */
70
+ export function getRequiredDocumentProfileDataSources(profile) {
71
+ return profile?.DataSources?.filter((dataSource) => dataSource.IsRequired) ?? [];
72
+ }
73
+ /**
74
+ * Resolves route parameter names that can identify the profile's primary
75
+ * document resource.
76
+ *
77
+ * Resource identity should come from the resource data-source contract when it
78
+ * exists. Falling back to document identity keeps locally declared profiles
79
+ * usable even before their resource endpoint is modeled as a parameterized
80
+ * data source.
81
+ */
82
+ export function resolveDocumentProfileResourceRouteParameterNames(module, profile) {
83
+ const resourceDataSource = findDocumentProfileDataSource(profile, documentDataSourceRoles.resource);
84
+ const dataSource = module?.DataSources?.find((candidate) => candidate.Id === resourceDataSource?.DataSource.DataSourceId);
85
+ const parameterNames = dataSource?.Parameters
86
+ ?.map((parameter) => parameter.Name?.trim() ?? '')
87
+ .filter((name) => name.length > 0) ?? [];
88
+ if (parameterNames.length > 0) {
89
+ return parameterNames;
90
+ }
91
+ const documentIdField = profile?.Document?.Identity?.DocumentIdField?.trim();
92
+ return documentIdField ? [lowercaseFirstCharacter(documentIdField)] : [];
93
+ }
94
+ /** Returns the source-address template declared for the profile document. */
95
+ export function getDocumentSourceAddressTemplate(profile) {
96
+ return profile?.Document?.Address?.Root ?? null;
97
+ }
98
+ /** Projects the backend document kind into stable runtime identity metadata. */
99
+ export function projectDocumentKind(profile) {
100
+ const value = profile?.Document?.Kind;
101
+ if (value === null || value === undefined) {
102
+ return null;
103
+ }
104
+ const label = resolveDocumentKindLabel(value);
105
+ return {
106
+ id: toKebabCase(label ?? String(value)),
107
+ label: label ? formatPascalCaseLabel(label) : String(value),
108
+ value,
109
+ };
110
+ }
111
+ /**
112
+ * Projects a backend document profile into the generic runtime shape consumed
113
+ * by document-backed workspaces.
114
+ *
115
+ * Returns null when the profile is missing, unsupported, or lacks a primary
116
+ * resource data source.
117
+ */
118
+ export function projectDocumentWorkspaceProfile(profile, options = {}) {
119
+ const documentKind = projectDocumentKind(profile);
120
+ const resourceDataSource = findDocumentProfileDataSource(profile, documentDataSourceRoles.resource);
121
+ if (!profile || !documentKind || !resourceDataSource) {
122
+ return null;
123
+ }
124
+ const metadataDataSource = findDocumentProfileDataSource(profile, documentDataSourceRoles.metadata);
125
+ const summaryDataSource = findDocumentProfileDataSource(profile, documentDataSourceRoles.summary);
126
+ return {
127
+ dataSourceId: resourceDataSource.DataSource.DataSourceId,
128
+ documentKind,
129
+ editorPath: (resourceId) => formatDocumentSourceAddress(profile, { Id: resourceId, id: resourceId }) ??
130
+ formatFallbackDocumentSourceAddress(options.fallbackAddressScheme ?? 'document', documentKind, resourceId),
131
+ label: profile.Name ?? documentKind.label,
132
+ metadata: metadataDataSource
133
+ ? { dataSourceId: metadataDataSource.DataSource.DataSourceId }
134
+ : undefined,
135
+ profile,
136
+ profileId: profile.Id,
137
+ resource: projectDocumentWorkspaceResource(profile, resourceDataSource),
138
+ summary: summaryDataSource
139
+ ? {
140
+ dataSourceId: summaryDataSource.DataSource.DataSourceId,
141
+ fieldPaths: projectDocumentSummaryFieldPaths(profile.MetricSources ?? [], summaryDataSource.DataSource.DataSourceId),
142
+ }
143
+ : undefined,
144
+ };
145
+ }
146
+ function projectDocumentWorkspaceResource(profile, resourceDataSource) {
147
+ return {
148
+ createdAtPath: firstAvailablePath('CreatedAtUtc', 'CreatedAt', 'createdAtUtc'),
149
+ documentPath: profile.Document?.DataSource?.FieldPath ??
150
+ resourceDataSource.DataSource.FieldPath ??
151
+ 'Document',
152
+ idPath: profile.Document?.Identity?.DocumentIdField?.trim() || 'Id',
153
+ titlePath: firstAvailablePath('Name', 'Title', 'Label'),
154
+ updatedAtPath: firstAvailablePath('UpdatedAtUtc', 'UpdatedAt', 'updatedAtUtc'),
155
+ versionPath: profile.Document?.Identity?.VersionField ?? 'EntityVersion',
156
+ };
157
+ }
158
+ /**
159
+ * Creates the editor identity key used to decide whether local editor state
160
+ * still belongs to the currently loaded resource revision.
161
+ */
162
+ export function createDocumentResourceEditorKey(projection, resource) {
163
+ const resourceId = readDocumentResourceId(projection, resource);
164
+ const version = readDocumentResourceVersion(projection, resource);
165
+ const updatedAt = readDocumentResourceTextPath(resource, projection.resource.updatedAtPath);
166
+ const createdAt = readDocumentResourceTextPath(resource, projection.resource.createdAtPath);
167
+ return [
168
+ projection.profileId,
169
+ projection.documentKind.id,
170
+ resourceId ?? 'unknown',
171
+ version ?? 'unversioned',
172
+ updatedAt ?? createdAt,
173
+ ].join(':');
174
+ }
175
+ /** Reads the semantic document id from an opaque resource using profile IR. */
176
+ export function readDocumentResourceId(projection, resource) {
177
+ return readDocumentResourceTextPath(resource, projection.resource.idPath);
178
+ }
179
+ /** Reads the JSON document payload from an opaque resource using profile IR. */
180
+ export function readDocumentResourceDocument(projection, resource) {
181
+ return readPresentationFieldValue(resource, projection.resource.documentPath);
182
+ }
183
+ /** Reads a human-facing resource title from an opaque resource using profile IR. */
184
+ export function readDocumentResourceTitle(projection, resource) {
185
+ const title = readDocumentResourceTextPath(resource, projection.resource.titlePath);
186
+ return title ?? projection.label;
187
+ }
188
+ /** Reads the resource version from an opaque resource using profile IR. */
189
+ export function readDocumentResourceVersion(projection, resource) {
190
+ const version = readPresentationFieldValue(resource, projection.resource.versionPath);
191
+ return typeof version === 'number' || typeof version === 'string'
192
+ ? version
193
+ : null;
194
+ }
195
+ function readDocumentResourceTextPath(resource, path) {
196
+ const value = readPresentationFieldValue(resource, path);
197
+ return typeof value === 'string' && value.trim().length > 0
198
+ ? value.trim()
199
+ : null;
200
+ }
201
+ function firstAvailablePath(...paths) {
202
+ return paths.find((path) => path.trim().length > 0) ?? null;
203
+ }
204
+ /**
205
+ * Tests document kind values across generated numeric and backend string enum
206
+ * representations.
207
+ */
208
+ export function isDocumentKind(value, expected) {
209
+ const expectedLabel = resolveDocumentKindLabel(expected)?.toLocaleLowerCase();
210
+ const normalizedValue = String(value).toLocaleLowerCase();
211
+ return (value === expected ||
212
+ normalizedValue === String(expected).toLocaleLowerCase() ||
213
+ normalizedValue === expectedLabel);
214
+ }
215
+ /**
216
+ * Formats a profile document source address from a declared address template.
217
+ *
218
+ * Template placeholders are resolved from exact property names first and then
219
+ * lower-camel-case names. Returns null when the profile has no template or any
220
+ * placeholder value is missing.
221
+ */
222
+ export function formatDocumentSourceAddress(profile, values) {
223
+ const template = getDocumentSourceAddressTemplate(profile);
224
+ if (!template) {
225
+ return null;
226
+ }
227
+ let hasMissingValue = false;
228
+ const address = template.replace(/\{([^}]+)\}/g, (match, key) => {
229
+ const value = values[key] ?? values[lowercaseFirstCharacter(key)];
230
+ if (value === null || value === undefined) {
231
+ hasMissingValue = true;
232
+ return match;
233
+ }
234
+ return encodeURIComponent(String(value));
235
+ });
236
+ return hasMissingValue ? null : address;
237
+ }
238
+ /**
239
+ * Projects active profile-scoped data sources into runtime binding
240
+ * descriptors.
241
+ *
242
+ * Profile data sources are first filtered by role and activation policy. The
243
+ * remaining ids are then interpreted through the generic presentation
244
+ * data-source projection registry, with local-state fallback definitions for
245
+ * data sources that are only scoped by the document profile.
246
+ */
247
+ export function projectDocumentProfileDataSourceBindings({ activation, context, module, profile, registry, roles, }) {
248
+ const profileDataSources = getDocumentProfileDataSources(profile, roles).filter((dataSource) => isDocumentProfileDataSourceActive(dataSource, activation));
249
+ return projectPresentationDataSourceBindings({
250
+ context,
251
+ dataSourceDefinitions: profileDataSources.map(createDocumentProfileDataSourceFallbackDefinition),
252
+ dataSourceIds: profileDataSources.map((dataSource) => dataSource.DataSource.DataSourceId),
253
+ module,
254
+ registry,
255
+ });
256
+ }
257
+ /**
258
+ * Evaluates whether a profile data source is active for the current document
259
+ * runtime state.
260
+ *
261
+ * A source is active when all required route parameters are present and, when
262
+ * projection/view/layout constraints are declared, at least one active semantic
263
+ * id matches the policy.
264
+ */
265
+ export function isDocumentProfileDataSourceActive(dataSource, state) {
266
+ const policy = dataSource.Activation;
267
+ if (!policy) {
268
+ return true;
269
+ }
270
+ if (!policy.RequiredRouteParameterNames.every((parameterName) => hasRouteParameterValue(state?.routeParameters, parameterName))) {
271
+ return false;
272
+ }
273
+ const hasStateKey = policy.ProjectionIds.length > 0 ||
274
+ policy.ViewIds.length > 0 ||
275
+ policy.LayoutModeIds.length > 0;
276
+ if (!hasStateKey) {
277
+ return true;
278
+ }
279
+ return (includesSemanticId(policy.ProjectionIds, state?.activeProjectionId) ||
280
+ includesSemanticId(policy.ViewIds, state?.activeViewId) ||
281
+ includesSemanticId(policy.LayoutModeIds, state?.activeLayoutModeId));
282
+ }
283
+ function createDocumentProfileDataSourceFallbackDefinition(dataSource) {
284
+ return {
285
+ Annotations: [],
286
+ Binding: null,
287
+ Cache: null,
288
+ DefaultSort: [],
289
+ Id: dataSource.DataSource.DataSourceId,
290
+ Invalidation: null,
291
+ Kind: dataSourceKinds.localState,
292
+ Name: dataSource.Description ?? dataSource.Id,
293
+ Parameters: [],
294
+ Residency: null,
295
+ ResultShape: 'unknown',
296
+ };
297
+ }
298
+ function formatFallbackDocumentSourceAddress(scheme, documentKind, resourceId) {
299
+ return `${scheme}://${documentKind.id}/${encodeURIComponent(resourceId)}.json`;
300
+ }
301
+ function projectDocumentSummaryFieldPaths(metricSources, dataSourceId) {
302
+ return Array.from(new Set((metricSources ?? [])
303
+ .filter((metricSource) => metricSource.Source.DataSourceId === dataSourceId)
304
+ .map((metricSource) => metricSource.Source.FieldPath ?? '')
305
+ .filter(Boolean)));
306
+ }
307
+ function lowercaseFirstCharacter(value) {
308
+ return value.length > 0
309
+ ? `${value.slice(0, 1).toLocaleLowerCase()}${value.slice(1)}`
310
+ : value;
311
+ }
312
+ function resolveDocumentKindLabel(value) {
313
+ if (typeof value === 'number') {
314
+ return documentKindLabels[value] ?? null;
315
+ }
316
+ const normalizedValue = value.toLocaleLowerCase();
317
+ const match = Object.values(documentKindLabels).find((label) => label.toLocaleLowerCase() === normalizedValue);
318
+ return match ?? value;
319
+ }
320
+ function formatPascalCaseLabel(value) {
321
+ return value.replace(/([a-z0-9])([A-Z])/g, '$1 $2');
322
+ }
323
+ function toKebabCase(value) {
324
+ return formatPascalCaseLabel(value)
325
+ .trim()
326
+ .replace(/[^a-zA-Z0-9]+/g, '-')
327
+ .replace(/^-+|-+$/g, '')
328
+ .toLocaleLowerCase();
329
+ }
330
+ function hasRouteParameterValue(routeParameters, parameterName) {
331
+ const value = routeParameters?.[parameterName];
332
+ return typeof value === 'string' && value.length > 0;
333
+ }
334
+ function includesSemanticId(ids, value) {
335
+ if (!value) {
336
+ return false;
337
+ }
338
+ return ids.some((id) => id.toLocaleLowerCase() === value.toLocaleLowerCase());
339
+ }
340
+ function isDocumentDataSourceRole(value, role) {
341
+ const roleLabel = documentDataSourceRoleLabels[role]?.toLocaleLowerCase();
342
+ const normalizedValue = String(value).toLocaleLowerCase();
343
+ return (value === role ||
344
+ normalizedValue === String(role).toLocaleLowerCase() ||
345
+ normalizedValue === roleLabel);
346
+ }
347
+ //# sourceMappingURL=document-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-module.js","sourceRoot":"","sources":["../src/document-module.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qCAAqC,GAGtC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,0BAA0B,GAC3B,MAAM,iCAAiC,CAAA;AAWxC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,yCAAyC,CAAA;AA4KhD;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAuE,EACvE,QAA+C;IAE/C,OAAO,+BAA+B,CAAC,MAAM,EAAE,QAAQ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C,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,iBAAiB,EAAE,KAAK,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAA;AAC/E,CAAC;AAED,SAAS,wBAAwB,CAC/B,KAAyD,EACzD,IAA4B;IAE5B,MAAM,SAAS,GAAG,4BAA4B,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACzE,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAA;IACzD,OAAO,CACL,KAAK,KAAK,IAAI;QACd,eAAe,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE;QACpD,eAAe,KAAK,SAAS,CAC9B,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const documentSummaryStructuralMessageFieldPath = "StructuralMessage";
2
+ //# sourceMappingURL=document-summary-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-summary-model.d.ts","sourceRoot":"","sources":["../src/document-summary-model.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yCAAyC,sBAAsB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const documentSummaryStructuralMessageFieldPath = 'StructuralMessage';
2
+ //# sourceMappingURL=document-summary-model.js.map