@wildo-ai/saas-frontend-lib 1.1.9 → 1.1.11

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 (1566) hide show
  1. package/dist/esm/companion-exports.d.ts +2 -1
  2. package/dist/esm/companion-exports.d.ts.map +1 -1
  3. package/dist/esm/companion-exports.js +2 -1
  4. package/dist/esm/companion-exports.js.map +1 -1
  5. package/dist/esm/components/actions/action-bar.d.ts +45 -1
  6. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  7. package/dist/esm/components/actions/action-bar.js +84 -0
  8. package/dist/esm/components/actions/action-bar.js.map +1 -1
  9. package/dist/esm/components/actions/button.d.ts +22 -0
  10. package/dist/esm/components/actions/button.d.ts.map +1 -1
  11. package/dist/esm/components/actions/button.js +45 -0
  12. package/dist/esm/components/actions/button.js.map +1 -1
  13. package/dist/esm/components/ai-elements/chat/conversation-thread.d.ts +109 -0
  14. package/dist/esm/components/ai-elements/chat/conversation-thread.d.ts.map +1 -0
  15. package/dist/esm/components/ai-elements/chat/conversation-thread.js +22 -0
  16. package/dist/esm/components/ai-elements/chat/conversation-thread.js.map +1 -0
  17. package/dist/esm/components/ai-elements/decision/approval.d.ts +103 -7
  18. package/dist/esm/components/ai-elements/decision/approval.d.ts.map +1 -1
  19. package/dist/esm/components/ai-elements/decision/approval.js.map +1 -1
  20. package/dist/esm/components/ai-elements/execution/tool.d.ts +6 -0
  21. package/dist/esm/components/ai-elements/execution/tool.d.ts.map +1 -1
  22. package/dist/esm/components/ai-elements/execution/tool.js.map +1 -1
  23. package/dist/esm/components/ai-elements/graph/canvas.d.ts +60 -1
  24. package/dist/esm/components/ai-elements/graph/canvas.d.ts.map +1 -1
  25. package/dist/esm/components/ai-elements/graph/canvas.js +26 -0
  26. package/dist/esm/components/ai-elements/graph/canvas.js.map +1 -1
  27. package/dist/esm/components/ai-elements/graph/node.d.ts +39 -4
  28. package/dist/esm/components/ai-elements/graph/node.d.ts.map +1 -1
  29. package/dist/esm/components/ai-elements/graph/node.js +18 -0
  30. package/dist/esm/components/ai-elements/graph/node.js.map +1 -1
  31. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts +6 -0
  32. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  33. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +29 -8
  34. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  35. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts +17 -0
  36. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -0
  37. package/dist/esm/components/app/AppLayout_DecisionInbox.js +24 -0
  38. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -0
  39. package/dist/esm/components/app/AppLayout_MainContainer.d.ts.map +1 -1
  40. package/dist/esm/components/app/AppLayout_MainContainer.js +3 -0
  41. package/dist/esm/components/app/AppLayout_MainContainer.js.map +1 -1
  42. package/dist/esm/components/app/PublicLayout_LegalNotice.d.ts +18 -0
  43. package/dist/esm/components/app/PublicLayout_LegalNotice.d.ts.map +1 -0
  44. package/dist/esm/components/app/PublicLayout_LegalNotice.js +8 -0
  45. package/dist/esm/components/app/PublicLayout_LegalNotice.js.map +1 -0
  46. package/dist/esm/components/app/PublicLayout_LegalNotice.labels.d.ts +3 -0
  47. package/dist/esm/components/app/PublicLayout_LegalNotice.labels.d.ts.map +1 -0
  48. package/dist/esm/components/app/PublicLayout_LegalNotice.labels.js +38 -0
  49. package/dist/esm/components/app/PublicLayout_LegalNotice.labels.js.map +1 -0
  50. package/dist/esm/components/auth/Auth_ChatIdentityLink.d.ts +15 -0
  51. package/dist/esm/components/auth/Auth_ChatIdentityLink.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_ChatIdentityLink.js +219 -0
  53. package/dist/esm/components/auth/Auth_ChatIdentityLink.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_ChatIdentityLink.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_ChatIdentityLink.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_ChatIdentityLink.labels.js +49 -0
  57. package/dist/esm/components/auth/Auth_ChatIdentityLink.labels.js.map +1 -0
  58. package/dist/esm/components/auth/Auth_Invitation.d.ts.map +1 -1
  59. package/dist/esm/components/auth/Auth_Invitation.js +3 -2
  60. package/dist/esm/components/auth/Auth_Invitation.js.map +1 -1
  61. package/dist/esm/components/auth/Auth_Invitation.labels.js +2 -2
  62. package/dist/esm/components/auth/Auth_Invitation.labels.js.map +1 -1
  63. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  64. package/dist/esm/components/auth/Auth_Main.js +40 -7
  65. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  66. package/dist/esm/components/auth/Auth_Main.labels.d.ts.map +1 -1
  67. package/dist/esm/components/auth/Auth_Main.labels.js +9 -0
  68. package/dist/esm/components/auth/Auth_Main.labels.js.map +1 -1
  69. package/dist/esm/components/auth/Auth_OAuthConsent.d.ts.map +1 -1
  70. package/dist/esm/components/auth/Auth_OAuthConsent.js +3 -2
  71. package/dist/esm/components/auth/Auth_OAuthConsent.js.map +1 -1
  72. package/dist/esm/components/auth/Auth_PasswordLost.labels.js +2 -2
  73. package/dist/esm/components/auth/Auth_PasswordLost.labels.js.map +1 -1
  74. package/dist/esm/components/auth/Auth_Register.d.ts.map +1 -1
  75. package/dist/esm/components/auth/Auth_Register.js +8 -1
  76. package/dist/esm/components/auth/Auth_Register.js.map +1 -1
  77. package/dist/esm/components/auth/Auth_Register.labels.js +2 -2
  78. package/dist/esm/components/auth/Auth_Register.labels.js.map +1 -1
  79. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +1 -1
  80. package/dist/esm/components/auth/StepUpAuthDialog.js +3 -3
  81. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  82. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.d.ts.map +1 -1
  83. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.js +94 -6
  84. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.js.map +1 -1
  85. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  86. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +21 -1
  87. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  88. package/dist/esm/components/auth/admin-config/ResourceLayoutPreset_Create_SamlWizard.d.ts.map +1 -1
  89. package/dist/esm/components/auth/admin-config/ResourceLayoutPreset_Create_SamlWizard.js +16 -13
  90. package/dist/esm/components/auth/admin-config/ResourceLayoutPreset_Create_SamlWizard.js.map +1 -1
  91. package/dist/esm/components/auth/admin-config/SsoConnectionSamlReadSection.js +3 -3
  92. package/dist/esm/components/auth/admin-config/SsoConnectionSamlReadSection.js.map +1 -1
  93. package/dist/esm/components/auth/enrollment/PasskeyEnrollmentMethod.d.ts.map +1 -1
  94. package/dist/esm/components/auth/enrollment/PasskeyEnrollmentMethod.js +1 -1
  95. package/dist/esm/components/auth/enrollment/PasskeyEnrollmentMethod.js.map +1 -1
  96. package/dist/esm/components/auth/methods/OrgSamlAuthMethod.d.ts +1 -1
  97. package/dist/esm/components/auth/methods/OrgSamlAuthMethod.d.ts.map +1 -1
  98. package/dist/esm/components/auth/methods/OrgSamlAuthMethod.js +3 -4
  99. package/dist/esm/components/auth/methods/OrgSamlAuthMethod.js.map +1 -1
  100. package/dist/esm/components/auth/pages/AuthPage_ChatIdentityLink.d.ts +11 -0
  101. package/dist/esm/components/auth/pages/AuthPage_ChatIdentityLink.d.ts.map +1 -0
  102. package/dist/esm/components/auth/pages/AuthPage_ChatIdentityLink.js +25 -0
  103. package/dist/esm/components/auth/pages/AuthPage_ChatIdentityLink.js.map +1 -0
  104. package/dist/esm/components/auth/utils/AuthPrivacyNoticeLink.d.ts +39 -0
  105. package/dist/esm/components/auth/utils/AuthPrivacyNoticeLink.d.ts.map +1 -0
  106. package/dist/esm/components/auth/utils/AuthPrivacyNoticeLink.js +45 -0
  107. package/dist/esm/components/auth/utils/AuthPrivacyNoticeLink.js.map +1 -0
  108. package/dist/esm/components/auth/utils/PasswordStrengthIndicator.js +1 -1
  109. package/dist/esm/components/auth/utils/PasswordStrengthIndicator.js.map +1 -1
  110. package/dist/esm/components/compliance/GovernedDocumentAcceptanceControl.d.ts.map +1 -1
  111. package/dist/esm/components/compliance/GovernedDocumentAcceptanceControl.js +2 -1
  112. package/dist/esm/components/compliance/GovernedDocumentAcceptanceControl.js.map +1 -1
  113. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  114. package/dist/esm/components/data-display/AutomaticDisplayer.js +21 -35
  115. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  116. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  117. package/dist/esm/components/data-display/DisplayField.js +98 -70
  118. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  119. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  120. package/dist/esm/components/data-display/DisplayFieldEditable.js +48 -8
  121. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  122. package/dist/esm/components/data-display/DisplayFieldEditableArray.d.ts +3 -1
  123. package/dist/esm/components/data-display/DisplayFieldEditableArray.d.ts.map +1 -1
  124. package/dist/esm/components/data-display/DisplayFieldEditableArray.js +30 -4
  125. package/dist/esm/components/data-display/DisplayFieldEditableArray.js.map +1 -1
  126. package/dist/esm/components/data-display/DisplayFieldReadOnly.d.ts.map +1 -1
  127. package/dist/esm/components/data-display/DisplayFieldReadOnly.js +2 -2
  128. package/dist/esm/components/data-display/DisplayFieldReadOnly.js.map +1 -1
  129. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts +1 -1
  130. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  131. package/dist/esm/components/data-display/DisplayValueDispatcher.js +45 -94
  132. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  133. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  134. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +14 -8
  135. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  136. package/dist/esm/components/data-display/ResourceSummaryDisplayer.d.ts +41 -3
  137. package/dist/esm/components/data-display/ResourceSummaryDisplayer.d.ts.map +1 -1
  138. package/dist/esm/components/data-display/ResourceSummaryDisplayer.js +49 -5
  139. package/dist/esm/components/data-display/ResourceSummaryDisplayer.js.map +1 -1
  140. package/dist/esm/components/data-display/SummaryContext.d.ts +2 -2
  141. package/dist/esm/components/data-display/SummaryContext.js.map +1 -1
  142. package/dist/esm/components/data-display/automatic-displayer.utils.d.ts +22 -1
  143. package/dist/esm/components/data-display/automatic-displayer.utils.d.ts.map +1 -1
  144. package/dist/esm/components/data-display/automatic-displayer.utils.js +29 -0
  145. package/dist/esm/components/data-display/automatic-displayer.utils.js.map +1 -1
  146. package/dist/esm/components/data-display/badge.d.ts +9 -0
  147. package/dist/esm/components/data-display/badge.d.ts.map +1 -1
  148. package/dist/esm/components/data-display/badge.js.map +1 -1
  149. package/dist/esm/components/data-display/chromes/DisplayFieldChrome.d.ts +14 -2
  150. package/dist/esm/components/data-display/chromes/DisplayFieldChrome.d.ts.map +1 -1
  151. package/dist/esm/components/data-display/chromes/DisplayFieldChrome.js +42 -12
  152. package/dist/esm/components/data-display/chromes/DisplayFieldChrome.js.map +1 -1
  153. package/dist/esm/components/data-display/chromes/display-chrome-mode-resolution.d.ts +10 -0
  154. package/dist/esm/components/data-display/chromes/display-chrome-mode-resolution.d.ts.map +1 -0
  155. package/dist/esm/components/data-display/chromes/display-chrome-mode-resolution.js +18 -0
  156. package/dist/esm/components/data-display/chromes/display-chrome-mode-resolution.js.map +1 -0
  157. package/dist/esm/components/data-display/chromes/field-tile-boundaries.d.ts +38 -0
  158. package/dist/esm/components/data-display/chromes/field-tile-boundaries.d.ts.map +1 -0
  159. package/dist/esm/components/data-display/chromes/field-tile-boundaries.js +30 -0
  160. package/dist/esm/components/data-display/chromes/field-tile-boundaries.js.map +1 -0
  161. package/dist/esm/components/data-display/chromes/field-tiles.utils.d.ts +22 -0
  162. package/dist/esm/components/data-display/chromes/field-tiles.utils.d.ts.map +1 -0
  163. package/dist/esm/components/data-display/chromes/field-tiles.utils.js +52 -0
  164. package/dist/esm/components/data-display/chromes/field-tiles.utils.js.map +1 -0
  165. package/dist/esm/components/data-display/display-field-resolved-props.d.ts +4 -0
  166. package/dist/esm/components/data-display/display-field-resolved-props.d.ts.map +1 -1
  167. package/dist/esm/components/data-display/display-field-resolved-props.js.map +1 -1
  168. package/dist/esm/components/data-display/display-layout-template.utils.d.ts +18 -0
  169. package/dist/esm/components/data-display/display-layout-template.utils.d.ts.map +1 -0
  170. package/dist/esm/components/data-display/display-layout-template.utils.js +18 -0
  171. package/dist/esm/components/data-display/display-layout-template.utils.js.map +1 -0
  172. package/dist/esm/components/data-display/display-value-emptiness.utils.d.ts +44 -0
  173. package/dist/esm/components/data-display/display-value-emptiness.utils.d.ts.map +1 -0
  174. package/dist/esm/components/data-display/display-value-emptiness.utils.js +61 -0
  175. package/dist/esm/components/data-display/display-value-emptiness.utils.js.map +1 -0
  176. package/dist/esm/components/data-display/empty-value-mark.d.ts +31 -0
  177. package/dist/esm/components/data-display/empty-value-mark.d.ts.map +1 -0
  178. package/dist/esm/components/data-display/empty-value-mark.js +49 -0
  179. package/dist/esm/components/data-display/empty-value-mark.js.map +1 -0
  180. package/dist/esm/components/data-display/external-data-provenance/DisplayFieldProvenanceNote.d.ts +3 -2
  181. package/dist/esm/components/data-display/external-data-provenance/DisplayFieldProvenanceNote.d.ts.map +1 -1
  182. package/dist/esm/components/data-display/external-data-provenance/DisplayFieldProvenanceNote.js +4 -4
  183. package/dist/esm/components/data-display/external-data-provenance/DisplayFieldProvenanceNote.js.map +1 -1
  184. package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.d.ts +6 -3
  185. package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.d.ts.map +1 -1
  186. package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js +22 -12
  187. package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js.map +1 -1
  188. package/dist/esm/components/data-display/external-data-provenance/useExternalDataFieldProvenance.js +2 -2
  189. package/dist/esm/components/data-display/external-data-provenance/useExternalDataFieldProvenance.js.map +1 -1
  190. package/dist/esm/components/data-display/reference-display-target.d.ts +98 -0
  191. package/dist/esm/components/data-display/reference-display-target.d.ts.map +1 -0
  192. package/dist/esm/components/data-display/reference-display-target.js +154 -0
  193. package/dist/esm/components/data-display/reference-display-target.js.map +1 -0
  194. package/dist/esm/components/data-display/summary-value-naming.context.d.ts +15 -0
  195. package/dist/esm/components/data-display/summary-value-naming.context.d.ts.map +1 -0
  196. package/dist/esm/components/data-display/summary-value-naming.context.js +18 -0
  197. package/dist/esm/components/data-display/summary-value-naming.context.js.map +1 -0
  198. package/dist/esm/components/data-display/tone-marker.d.ts +38 -0
  199. package/dist/esm/components/data-display/tone-marker.d.ts.map +1 -0
  200. package/dist/esm/components/data-display/tone-marker.js +56 -0
  201. package/dist/esm/components/data-display/tone-marker.js.map +1 -0
  202. package/dist/esm/components/data-display/useFileActivation.d.ts.map +1 -1
  203. package/dist/esm/components/data-display/useFileActivation.js +2 -9
  204. package/dist/esm/components/data-display/useFileActivation.js.map +1 -1
  205. package/dist/esm/components/feedback/features/feature-limit-indicator.d.ts.map +1 -1
  206. package/dist/esm/components/feedback/features/feature-limit-indicator.js +12 -4
  207. package/dist/esm/components/feedback/features/feature-limit-indicator.js.map +1 -1
  208. package/dist/esm/components/feedback/operations-confirm-critical.d.ts +8 -0
  209. package/dist/esm/components/feedback/operations-confirm-critical.d.ts.map +1 -1
  210. package/dist/esm/components/feedback/operations-confirm-critical.js.map +1 -1
  211. package/dist/esm/components/files/Files_UploadGrantDrop.d.ts +0 -5
  212. package/dist/esm/components/files/Files_UploadGrantDrop.d.ts.map +1 -1
  213. package/dist/esm/components/files/Files_UploadGrantDrop.js +5 -17
  214. package/dist/esm/components/files/Files_UploadGrantDrop.js.map +1 -1
  215. package/dist/esm/components/flows-actors/actor.d.ts +21 -4
  216. package/dist/esm/components/flows-actors/actor.d.ts.map +1 -1
  217. package/dist/esm/components/flows-actors/actor.js +114 -192
  218. package/dist/esm/components/flows-actors/actor.js.map +1 -1
  219. package/dist/esm/components/flows-actors/actor.labels.d.ts.map +1 -1
  220. package/dist/esm/components/flows-actors/actor.labels.js +5 -10
  221. package/dist/esm/components/flows-actors/actor.labels.js.map +1 -1
  222. package/dist/esm/components/flows-actors/agent-config.labels.js +1 -1
  223. package/dist/esm/components/flows-actors/agent-config.labels.js.map +1 -1
  224. package/dist/esm/components/flows-actors/approval-modification-refusal.utils.d.ts.map +1 -1
  225. package/dist/esm/components/flows-actors/approval-modification-refusal.utils.js +1 -0
  226. package/dist/esm/components/flows-actors/approval-modification-refusal.utils.js.map +1 -1
  227. package/dist/esm/components/flows-actors/approval.d.ts +26 -16
  228. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  229. package/dist/esm/components/flows-actors/approval.js +208 -70
  230. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  231. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  232. package/dist/esm/components/flows-actors/approval.labels.js +67 -22
  233. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  234. package/dist/esm/components/flows-actors/artifact-browser.labels.js +1 -1
  235. package/dist/esm/components/flows-actors/artifact-browser.labels.js.map +1 -1
  236. package/dist/esm/components/flows-actors/execution-plan.d.ts +19 -7
  237. package/dist/esm/components/flows-actors/execution-plan.d.ts.map +1 -1
  238. package/dist/esm/components/flows-actors/execution-plan.js +55 -41
  239. package/dist/esm/components/flows-actors/execution-plan.js.map +1 -1
  240. package/dist/esm/components/flows-actors/execution-plan.labels.d.ts.map +1 -1
  241. package/dist/esm/components/flows-actors/execution-plan.labels.js +25 -8
  242. package/dist/esm/components/flows-actors/execution-plan.labels.js.map +1 -1
  243. package/dist/esm/components/flows-actors/execution-usage.d.ts +69 -0
  244. package/dist/esm/components/flows-actors/execution-usage.d.ts.map +1 -0
  245. package/dist/esm/components/flows-actors/execution-usage.js +189 -0
  246. package/dist/esm/components/flows-actors/execution-usage.js.map +1 -0
  247. package/dist/esm/components/flows-actors/execution-usage.labels.d.ts +3 -0
  248. package/dist/esm/components/flows-actors/execution-usage.labels.d.ts.map +1 -0
  249. package/dist/esm/components/flows-actors/execution-usage.labels.js +27 -0
  250. package/dist/esm/components/flows-actors/execution-usage.labels.js.map +1 -0
  251. package/dist/esm/components/flows-actors/flow-execution.d.ts +23 -6
  252. package/dist/esm/components/flows-actors/flow-execution.d.ts.map +1 -1
  253. package/dist/esm/components/flows-actors/flow-execution.js +56 -208
  254. package/dist/esm/components/flows-actors/flow-execution.js.map +1 -1
  255. package/dist/esm/components/flows-actors/flow-execution.labels.d.ts.map +1 -1
  256. package/dist/esm/components/flows-actors/flow-execution.labels.js +3 -10
  257. package/dist/esm/components/flows-actors/flow-execution.labels.js.map +1 -1
  258. package/dist/esm/components/flows-actors/flow-node-badges.d.ts +54 -21
  259. package/dist/esm/components/flows-actors/flow-node-badges.d.ts.map +1 -1
  260. package/dist/esm/components/flows-actors/flow-node-badges.js +80 -6
  261. package/dist/esm/components/flows-actors/flow-node-badges.js.map +1 -1
  262. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  263. package/dist/esm/components/flows-actors/flow-node.labels.js +0 -8
  264. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  265. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts +31 -0
  266. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -0
  267. package/dist/esm/components/flows-actors/flow-step-visuals.js +98 -0
  268. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -0
  269. package/dist/esm/components/flows-actors/flows-actors-graph-runtime.d.ts +18 -19
  270. package/dist/esm/components/flows-actors/flows-actors-graph-runtime.d.ts.map +1 -1
  271. package/dist/esm/components/flows-actors/flows-actors-graph-runtime.js +18 -19
  272. package/dist/esm/components/flows-actors/flows-actors-graph-runtime.js.map +1 -1
  273. package/dist/esm/components/flows-actors/flows-actors-graph.lazy.d.ts +27 -42
  274. package/dist/esm/components/flows-actors/flows-actors-graph.lazy.d.ts.map +1 -1
  275. package/dist/esm/components/flows-actors/flows-actors-graph.lazy.js +28 -43
  276. package/dist/esm/components/flows-actors/flows-actors-graph.lazy.js.map +1 -1
  277. package/dist/esm/components/flows-actors/flows-actors-ui.utils.d.ts +15 -10
  278. package/dist/esm/components/flows-actors/flows-actors-ui.utils.d.ts.map +1 -1
  279. package/dist/esm/components/flows-actors/flows-actors-ui.utils.js +16 -42
  280. package/dist/esm/components/flows-actors/flows-actors-ui.utils.js.map +1 -1
  281. package/dist/esm/components/flows-actors/graph-viewer.d.ts +112 -0
  282. package/dist/esm/components/flows-actors/graph-viewer.d.ts.map +1 -0
  283. package/dist/esm/components/flows-actors/graph-viewer.js +431 -0
  284. package/dist/esm/components/flows-actors/graph-viewer.js.map +1 -0
  285. package/dist/esm/components/flows-actors/graph-viewer.labels.d.ts +3 -0
  286. package/dist/esm/components/flows-actors/graph-viewer.labels.d.ts.map +1 -0
  287. package/dist/esm/components/flows-actors/graph-viewer.labels.js +67 -0
  288. package/dist/esm/components/flows-actors/graph-viewer.labels.js.map +1 -0
  289. package/dist/esm/components/flows-actors/graph-viewer.models.d.ts +16 -0
  290. package/dist/esm/components/flows-actors/graph-viewer.models.d.ts.map +1 -0
  291. package/dist/esm/components/flows-actors/graph-viewer.models.js +18 -0
  292. package/dist/esm/components/flows-actors/graph-viewer.models.js.map +1 -0
  293. package/dist/esm/components/flows-actors/human-decision-form.d.ts +57 -0
  294. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -0
  295. package/dist/esm/components/flows-actors/human-decision-form.js +128 -0
  296. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -0
  297. package/dist/esm/components/flows-actors/system-catalog.d.ts +6 -1
  298. package/dist/esm/components/flows-actors/system-catalog.d.ts.map +1 -1
  299. package/dist/esm/components/flows-actors/system-catalog.js +22 -20
  300. package/dist/esm/components/flows-actors/system-catalog.js.map +1 -1
  301. package/dist/esm/components/flows-actors/system-catalog.labels.d.ts.map +1 -1
  302. package/dist/esm/components/flows-actors/system-catalog.labels.js +3 -2
  303. package/dist/esm/components/flows-actors/system-catalog.labels.js.map +1 -1
  304. package/dist/esm/components/flows-actors/task-detail.d.ts +17 -3
  305. package/dist/esm/components/flows-actors/task-detail.d.ts.map +1 -1
  306. package/dist/esm/components/flows-actors/task-detail.js +32 -25
  307. package/dist/esm/components/flows-actors/task-detail.js.map +1 -1
  308. package/dist/esm/components/flows-actors/task-memory.d.ts.map +1 -1
  309. package/dist/esm/components/flows-actors/task-memory.js +3 -2
  310. package/dist/esm/components/flows-actors/task-memory.js.map +1 -1
  311. package/dist/esm/components/form/Form.d.ts +2 -0
  312. package/dist/esm/components/form/Form.d.ts.map +1 -1
  313. package/dist/esm/components/form/Form.js +4 -0
  314. package/dist/esm/components/form/Form.js.map +1 -1
  315. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts +16 -1
  316. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  317. package/dist/esm/components/form/automated/AutomatedArrayField.js +101 -21
  318. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  319. package/dist/esm/components/form/automated/AutomatedForm.d.ts +19 -2
  320. package/dist/esm/components/form/automated/AutomatedForm.d.ts.map +1 -1
  321. package/dist/esm/components/form/automated/AutomatedForm.js +40 -6
  322. package/dist/esm/components/form/automated/AutomatedForm.js.map +1 -1
  323. package/dist/esm/components/form/automated/AutosaveContext.d.ts +22 -1
  324. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  325. package/dist/esm/components/form/automated/AutosaveContext.js +53 -0
  326. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  327. package/dist/esm/components/form/automated/FormField.d.ts +1 -1
  328. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  329. package/dist/esm/components/form/automated/FormField.js +127 -53
  330. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  331. package/dist/esm/components/form/automated/FormFieldComposite.d.ts.map +1 -1
  332. package/dist/esm/components/form/automated/FormFieldComposite.js +12 -10
  333. package/dist/esm/components/form/automated/FormFieldComposite.js.map +1 -1
  334. package/dist/esm/components/form/automated/FormFieldRecord.d.ts.map +1 -1
  335. package/dist/esm/components/form/automated/FormFieldRecord.js +16 -7
  336. package/dist/esm/components/form/automated/FormFieldRecord.js.map +1 -1
  337. package/dist/esm/components/form/automated/FormTemplateContext.d.ts +27 -0
  338. package/dist/esm/components/form/automated/FormTemplateContext.d.ts.map +1 -1
  339. package/dist/esm/components/form/automated/FormTemplateContext.js +0 -48
  340. package/dist/esm/components/form/automated/FormTemplateContext.js.map +1 -1
  341. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +4 -3
  342. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  343. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +616 -149
  344. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  345. package/dist/esm/components/form/automated/automated-form-submit.utils.d.ts +105 -5
  346. package/dist/esm/components/form/automated/automated-form-submit.utils.d.ts.map +1 -1
  347. package/dist/esm/components/form/automated/automated-form-submit.utils.js +225 -6
  348. package/dist/esm/components/form/automated/automated-form-submit.utils.js.map +1 -1
  349. package/dist/esm/components/form/automated/bulk-field-clear-context.d.ts +59 -0
  350. package/dist/esm/components/form/automated/bulk-field-clear-context.d.ts.map +1 -0
  351. package/dist/esm/components/form/automated/bulk-field-clear-context.js +77 -0
  352. package/dist/esm/components/form/automated/bulk-field-clear-context.js.map +1 -0
  353. package/dist/esm/components/form/automated/generated-relationship-field.hooks.d.ts +1 -1
  354. package/dist/esm/components/form/automated/unplaced-request-fields.context.d.ts +19 -0
  355. package/dist/esm/components/form/automated/unplaced-request-fields.context.d.ts.map +1 -0
  356. package/dist/esm/components/form/automated/unplaced-request-fields.context.js +13 -0
  357. package/dist/esm/components/form/automated/unplaced-request-fields.context.js.map +1 -0
  358. package/dist/esm/components/form/automated/useArrayItemAutosaveField.d.ts +7 -0
  359. package/dist/esm/components/form/automated/useArrayItemAutosaveField.d.ts.map +1 -1
  360. package/dist/esm/components/form/automated/useArrayItemAutosaveField.js +10 -2
  361. package/dist/esm/components/form/automated/useArrayItemAutosaveField.js.map +1 -1
  362. package/dist/esm/components/form/automated/useReferenceRecordLabels.d.ts +16 -0
  363. package/dist/esm/components/form/automated/useReferenceRecordLabels.d.ts.map +1 -0
  364. package/dist/esm/components/form/automated/useReferenceRecordLabels.js +66 -0
  365. package/dist/esm/components/form/automated/useReferenceRecordLabels.js.map +1 -0
  366. package/dist/esm/components/form/automated/useRequestFieldOffer.d.ts +18 -0
  367. package/dist/esm/components/form/automated/useRequestFieldOffer.d.ts.map +1 -0
  368. package/dist/esm/components/form/automated/useRequestFieldOffer.js +107 -0
  369. package/dist/esm/components/form/automated/useRequestFieldOffer.js.map +1 -0
  370. package/dist/esm/components/form/chromes/FormFieldChrome.d.ts +7 -1
  371. package/dist/esm/components/form/chromes/FormFieldChrome.d.ts.map +1 -1
  372. package/dist/esm/components/form/chromes/FormFieldChrome.js +6 -3
  373. package/dist/esm/components/form/chromes/FormFieldChrome.js.map +1 -1
  374. package/dist/esm/components/form/controls/date-time/date-range-picker.d.ts +11 -0
  375. package/dist/esm/components/form/controls/date-time/date-range-picker.d.ts.map +1 -1
  376. package/dist/esm/components/form/controls/date-time/date-range-picker.js.map +1 -1
  377. package/dist/esm/components/form/controls/date-time/datepicker.d.ts +21 -0
  378. package/dist/esm/components/form/controls/date-time/datepicker.d.ts.map +1 -1
  379. package/dist/esm/components/form/controls/date-time/datepicker.js.map +1 -1
  380. package/dist/esm/components/form/controls/date-time/datetime-picker.d.ts +9 -0
  381. package/dist/esm/components/form/controls/date-time/datetime-picker.d.ts.map +1 -1
  382. package/dist/esm/components/form/controls/date-time/datetime-picker.js.map +1 -1
  383. package/dist/esm/components/form/controls/date-time/datetime-range-picker.d.ts +9 -0
  384. package/dist/esm/components/form/controls/date-time/datetime-range-picker.d.ts.map +1 -1
  385. package/dist/esm/components/form/controls/date-time/datetime-range-picker.js.map +1 -1
  386. package/dist/esm/components/form/controls/date-time/time-range-picker.d.ts +1 -0
  387. package/dist/esm/components/form/controls/date-time/time-range-picker.d.ts.map +1 -1
  388. package/dist/esm/components/form/controls/date-time/time-range-picker.js.map +1 -1
  389. package/dist/esm/components/form/controls/enum/radio.d.ts +10 -0
  390. package/dist/esm/components/form/controls/enum/radio.d.ts.map +1 -1
  391. package/dist/esm/components/form/controls/enum/radio.js.map +1 -1
  392. package/dist/esm/components/form/controls/enum/toggle-group.d.ts +14 -10
  393. package/dist/esm/components/form/controls/enum/toggle-group.d.ts.map +1 -1
  394. package/dist/esm/components/form/controls/enum/toggle-group.js +14 -6
  395. package/dist/esm/components/form/controls/enum/toggle-group.js.map +1 -1
  396. package/dist/esm/components/form/controls/form-field-checkbox-group.d.ts.map +1 -1
  397. package/dist/esm/components/form/controls/form-field-checkbox-group.js +7 -3
  398. package/dist/esm/components/form/controls/form-field-checkbox-group.js.map +1 -1
  399. package/dist/esm/components/form/controls/string/chips-input.d.ts +65 -0
  400. package/dist/esm/components/form/controls/string/chips-input.d.ts.map +1 -0
  401. package/dist/esm/components/form/controls/string/chips-input.js +9 -0
  402. package/dist/esm/components/form/controls/string/chips-input.js.map +1 -0
  403. package/dist/esm/components/form/fields/form-field-address.d.ts.map +1 -1
  404. package/dist/esm/components/form/fields/form-field-address.js +7 -5
  405. package/dist/esm/components/form/fields/form-field-address.js.map +1 -1
  406. package/dist/esm/components/form/fields/form-field-address.labels.js +1 -1
  407. package/dist/esm/components/form/fields/form-field-address.labels.js.map +1 -1
  408. package/dist/esm/components/form/fields/form-field-bigdecimal.js +2 -2
  409. package/dist/esm/components/form/fields/form-field-bigdecimal.js.map +1 -1
  410. package/dist/esm/components/form/fields/form-field-boolean.js +2 -2
  411. package/dist/esm/components/form/fields/form-field-boolean.js.map +1 -1
  412. package/dist/esm/components/form/fields/form-field-code.labels.js +1 -1
  413. package/dist/esm/components/form/fields/form-field-code.labels.js.map +1 -1
  414. package/dist/esm/components/form/fields/form-field-date.d.ts.map +1 -1
  415. package/dist/esm/components/form/fields/form-field-date.js +16 -11
  416. package/dist/esm/components/form/fields/form-field-date.js.map +1 -1
  417. package/dist/esm/components/form/fields/form-field-datetime.d.ts.map +1 -1
  418. package/dist/esm/components/form/fields/form-field-datetime.js +10 -5
  419. package/dist/esm/components/form/fields/form-field-datetime.js.map +1 -1
  420. package/dist/esm/components/form/fields/form-field-duration.d.ts.map +1 -1
  421. package/dist/esm/components/form/fields/form-field-duration.js +5 -7
  422. package/dist/esm/components/form/fields/form-field-duration.js.map +1 -1
  423. package/dist/esm/components/form/fields/form-field-duration.labels.d.ts.map +1 -1
  424. package/dist/esm/components/form/fields/form-field-duration.labels.js +8 -2
  425. package/dist/esm/components/form/fields/form-field-duration.labels.js.map +1 -1
  426. package/dist/esm/components/form/fields/form-field-enum.d.ts.map +1 -1
  427. package/dist/esm/components/form/fields/form-field-enum.js +31 -31
  428. package/dist/esm/components/form/fields/form-field-enum.js.map +1 -1
  429. package/dist/esm/components/form/fields/form-field-file.d.ts.map +1 -1
  430. package/dist/esm/components/form/fields/form-field-file.js +13 -12
  431. package/dist/esm/components/form/fields/form-field-file.js.map +1 -1
  432. package/dist/esm/components/form/fields/form-field-file.labels.js +6 -6
  433. package/dist/esm/components/form/fields/form-field-file.labels.js.map +1 -1
  434. package/dist/esm/components/form/fields/form-field-money.d.ts.map +1 -1
  435. package/dist/esm/components/form/fields/form-field-money.js +5 -4
  436. package/dist/esm/components/form/fields/form-field-money.js.map +1 -1
  437. package/dist/esm/components/form/fields/form-field-money.labels.d.ts.map +1 -1
  438. package/dist/esm/components/form/fields/form-field-money.labels.js +8 -2
  439. package/dist/esm/components/form/fields/form-field-money.labels.js.map +1 -1
  440. package/dist/esm/components/form/fields/form-field-number.js +2 -2
  441. package/dist/esm/components/form/fields/form-field-number.js.map +1 -1
  442. package/dist/esm/components/form/fields/form-field-range-bigdecimal.js +2 -2
  443. package/dist/esm/components/form/fields/form-field-range-bigdecimal.js.map +1 -1
  444. package/dist/esm/components/form/fields/form-field-range-date.d.ts.map +1 -1
  445. package/dist/esm/components/form/fields/form-field-range-date.js +7 -2
  446. package/dist/esm/components/form/fields/form-field-range-date.js.map +1 -1
  447. package/dist/esm/components/form/fields/form-field-range-datetime.d.ts.map +1 -1
  448. package/dist/esm/components/form/fields/form-field-range-datetime.js +5 -2
  449. package/dist/esm/components/form/fields/form-field-range-datetime.js.map +1 -1
  450. package/dist/esm/components/form/fields/form-field-range-money.d.ts.map +1 -1
  451. package/dist/esm/components/form/fields/form-field-range-money.js +6 -19
  452. package/dist/esm/components/form/fields/form-field-range-money.js.map +1 -1
  453. package/dist/esm/components/form/fields/form-field-range-money.labels.d.ts.map +1 -1
  454. package/dist/esm/components/form/fields/form-field-range-money.labels.js +8 -2
  455. package/dist/esm/components/form/fields/form-field-range-money.labels.js.map +1 -1
  456. package/dist/esm/components/form/fields/form-field-range-number.js +2 -2
  457. package/dist/esm/components/form/fields/form-field-range-number.js.map +1 -1
  458. package/dist/esm/components/form/fields/form-field-range-time.js +2 -2
  459. package/dist/esm/components/form/fields/form-field-range-time.js.map +1 -1
  460. package/dist/esm/components/form/fields/form-field-resource-reference.d.ts +56 -0
  461. package/dist/esm/components/form/fields/form-field-resource-reference.d.ts.map +1 -0
  462. package/dist/esm/components/form/fields/form-field-resource-reference.js +51 -0
  463. package/dist/esm/components/form/fields/form-field-resource-reference.js.map +1 -0
  464. package/dist/esm/components/form/fields/form-field-string-organization-role.d.ts +36 -6
  465. package/dist/esm/components/form/fields/form-field-string-organization-role.d.ts.map +1 -1
  466. package/dist/esm/components/form/fields/form-field-string-organization-role.js +30 -11
  467. package/dist/esm/components/form/fields/form-field-string-organization-role.js.map +1 -1
  468. package/dist/esm/components/form/fields/form-field-string.d.ts +5 -0
  469. package/dist/esm/components/form/fields/form-field-string.d.ts.map +1 -1
  470. package/dist/esm/components/form/fields/form-field-string.js +9 -7
  471. package/dist/esm/components/form/fields/form-field-string.js.map +1 -1
  472. package/dist/esm/components/form/fields/form-field-time.d.ts.map +1 -1
  473. package/dist/esm/components/form/fields/form-field-time.js +6 -3
  474. package/dist/esm/components/form/fields/form-field-time.js.map +1 -1
  475. package/dist/esm/components/form/fields/themed-native-select.d.ts +29 -0
  476. package/dist/esm/components/form/fields/themed-native-select.d.ts.map +1 -0
  477. package/dist/esm/components/form/fields/themed-native-select.js +36 -0
  478. package/dist/esm/components/form/fields/themed-native-select.js.map +1 -0
  479. package/dist/esm/components/form/form-context.d.ts +11 -0
  480. package/dist/esm/components/form/form-context.d.ts.map +1 -1
  481. package/dist/esm/components/form/form-context.js +11 -0
  482. package/dist/esm/components/form/form-context.js.map +1 -1
  483. package/dist/esm/components/form/form-context.utils.d.ts +2 -0
  484. package/dist/esm/components/form/form-context.utils.d.ts.map +1 -1
  485. package/dist/esm/components/form/form-context.utils.js +6 -2
  486. package/dist/esm/components/form/form-context.utils.js.map +1 -1
  487. package/dist/esm/components/form/validation-errors/FormErrorSummary.d.ts.map +1 -1
  488. package/dist/esm/components/form/validation-errors/FormErrorSummary.js +17 -15
  489. package/dist/esm/components/form/validation-errors/FormErrorSummary.js.map +1 -1
  490. package/dist/esm/components/form/validation-errors/field-reveal.d.ts +41 -0
  491. package/dist/esm/components/form/validation-errors/field-reveal.d.ts.map +1 -0
  492. package/dist/esm/components/form/validation-errors/field-reveal.js +108 -0
  493. package/dist/esm/components/form/validation-errors/field-reveal.js.map +1 -0
  494. package/dist/esm/components/form/validation-errors/form-level-error-recheck.d.ts +3 -0
  495. package/dist/esm/components/form/validation-errors/form-level-error-recheck.d.ts.map +1 -0
  496. package/dist/esm/components/form/validation-errors/form-level-error-recheck.js +37 -0
  497. package/dist/esm/components/form/validation-errors/form-level-error-recheck.js.map +1 -0
  498. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +6 -0
  499. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  500. package/dist/esm/components/form/validation-errors/getFieldError.js +9 -2
  501. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  502. package/dist/esm/components/form/validation-errors/scroll-to-first-error.utils.d.ts +8 -1
  503. package/dist/esm/components/form/validation-errors/scroll-to-first-error.utils.d.ts.map +1 -1
  504. package/dist/esm/components/form/validation-errors/scroll-to-first-error.utils.js +46 -3
  505. package/dist/esm/components/form/validation-errors/scroll-to-first-error.utils.js.map +1 -1
  506. package/dist/esm/components/form/validation-errors/useServerErrorInjection.d.ts.map +1 -1
  507. package/dist/esm/components/form/validation-errors/useServerErrorInjection.js +8 -3
  508. package/dist/esm/components/form/validation-errors/useServerErrorInjection.js.map +1 -1
  509. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +32 -0
  510. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -0
  511. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +60 -0
  512. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -0
  513. package/dist/esm/components/form/validation-errors/zod-issue-resolver.d.ts +10 -0
  514. package/dist/esm/components/form/validation-errors/zod-issue-resolver.d.ts.map +1 -1
  515. package/dist/esm/components/form/validation-errors/zod-issue-resolver.js +12 -3
  516. package/dist/esm/components/form/validation-errors/zod-issue-resolver.js.map +1 -1
  517. package/dist/esm/components/navigation/app-level/ApplicationLevel_QuickActionButton.d.ts +7 -0
  518. package/dist/esm/components/navigation/app-level/ApplicationLevel_QuickActionButton.d.ts.map +1 -1
  519. package/dist/esm/components/navigation/app-level/ApplicationLevel_QuickActionButton.js.map +1 -1
  520. package/dist/esm/components/navigation/app-level/ApplicationLevel_UtilityPanel.d.ts +6 -0
  521. package/dist/esm/components/navigation/app-level/ApplicationLevel_UtilityPanel.d.ts.map +1 -1
  522. package/dist/esm/components/navigation/app-level/ApplicationLevel_UtilityPanel.js.map +1 -1
  523. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  524. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +11 -28
  525. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  526. package/dist/esm/components/navigation/app-level/engine-launcher-entries.d.ts +46 -0
  527. package/dist/esm/components/navigation/app-level/engine-launcher-entries.d.ts.map +1 -0
  528. package/dist/esm/components/navigation/app-level/engine-launcher-entries.js +165 -0
  529. package/dist/esm/components/navigation/app-level/engine-launcher-entries.js.map +1 -0
  530. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  531. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +8 -3
  532. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  533. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  534. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +41 -20
  535. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  536. package/dist/esm/components/navigation/app-level/useNavigationBehaviors.d.ts +1 -2
  537. package/dist/esm/components/navigation/app-level/useNavigationBehaviors.d.ts.map +1 -1
  538. package/dist/esm/components/navigation/app-level/useNavigationBehaviors.js +1 -15
  539. package/dist/esm/components/navigation/app-level/useNavigationBehaviors.js.map +1 -1
  540. package/dist/esm/components/navigation/app-level/useOwnOrganizationSearch.d.ts +32 -0
  541. package/dist/esm/components/navigation/app-level/useOwnOrganizationSearch.d.ts.map +1 -0
  542. package/dist/esm/components/navigation/app-level/useOwnOrganizationSearch.js +91 -0
  543. package/dist/esm/components/navigation/app-level/useOwnOrganizationSearch.js.map +1 -0
  544. package/dist/esm/components/navigation/app-level/useQuickSwitcherBehavior.d.ts.map +1 -1
  545. package/dist/esm/components/navigation/app-level/useQuickSwitcherBehavior.js +3 -1
  546. package/dist/esm/components/navigation/app-level/useQuickSwitcherBehavior.js.map +1 -1
  547. package/dist/esm/components/navigation/app-level/useSidebarBehavior.d.ts +18 -1
  548. package/dist/esm/components/navigation/app-level/useSidebarBehavior.d.ts.map +1 -1
  549. package/dist/esm/components/navigation/app-level/useSidebarBehavior.js +66 -9
  550. package/dist/esm/components/navigation/app-level/useSidebarBehavior.js.map +1 -1
  551. package/dist/esm/components/navigation/app-level/useUtilityPanelBehavior.d.ts +15 -10
  552. package/dist/esm/components/navigation/app-level/useUtilityPanelBehavior.d.ts.map +1 -1
  553. package/dist/esm/components/navigation/app-level/useUtilityPanelBehavior.js +89 -12
  554. package/dist/esm/components/navigation/app-level/useUtilityPanelBehavior.js.map +1 -1
  555. package/dist/esm/components/progression/ProgressionMilestoneTracker.labels.js +2 -2
  556. package/dist/esm/components/progression/ProgressionMilestoneTracker.labels.js.map +1 -1
  557. package/dist/esm/components/resources/CollectionSelectAllCheckbox.d.ts +39 -0
  558. package/dist/esm/components/resources/CollectionSelectAllCheckbox.d.ts.map +1 -0
  559. package/dist/esm/components/resources/CollectionSelectAllCheckbox.js +21 -0
  560. package/dist/esm/components/resources/CollectionSelectAllCheckbox.js.map +1 -0
  561. package/dist/esm/components/resources/CollectionSelectionControls.d.ts +4 -3
  562. package/dist/esm/components/resources/CollectionSelectionControls.d.ts.map +1 -1
  563. package/dist/esm/components/resources/CollectionSelectionControls.js.map +1 -1
  564. package/dist/esm/components/resources/ResourceCollectionBody_Table.d.ts +7 -2
  565. package/dist/esm/components/resources/ResourceCollectionBody_Table.d.ts.map +1 -1
  566. package/dist/esm/components/resources/ResourceCollectionBody_Table.js +38 -14
  567. package/dist/esm/components/resources/ResourceCollectionBody_Table.js.map +1 -1
  568. package/dist/esm/components/resources/ResourceCollectionFilterPresets.d.ts +4 -4
  569. package/dist/esm/components/resources/ResourceCollectionFilterPresets.d.ts.map +1 -1
  570. package/dist/esm/components/resources/ResourceCollectionFilterPresets.js +20 -13
  571. package/dist/esm/components/resources/ResourceCollectionFilterPresets.js.map +1 -1
  572. package/dist/esm/components/resources/ResourceCollectionQuickFilterTabs.d.ts +4 -3
  573. package/dist/esm/components/resources/ResourceCollectionQuickFilterTabs.d.ts.map +1 -1
  574. package/dist/esm/components/resources/ResourceCollectionQuickFilterTabs.js +40 -6
  575. package/dist/esm/components/resources/ResourceCollectionQuickFilterTabs.js.map +1 -1
  576. package/dist/esm/components/resources/ResourceCollectionToolbar.d.ts +65 -23
  577. package/dist/esm/components/resources/ResourceCollectionToolbar.d.ts.map +1 -1
  578. package/dist/esm/components/resources/ResourceCollectionToolbar.js +73 -10
  579. package/dist/esm/components/resources/ResourceCollectionToolbar.js.map +1 -1
  580. package/dist/esm/components/resources/ResourceLayout_Action.labels.d.ts.map +1 -1
  581. package/dist/esm/components/resources/ResourceLayout_Action.labels.js +5 -0
  582. package/dist/esm/components/resources/ResourceLayout_Action.labels.js.map +1 -1
  583. package/dist/esm/components/resources/ResourceLayout_Breadcrumb.d.ts +18 -0
  584. package/dist/esm/components/resources/ResourceLayout_Breadcrumb.d.ts.map +1 -1
  585. package/dist/esm/components/resources/ResourceLayout_Breadcrumb.js +57 -48
  586. package/dist/esm/components/resources/ResourceLayout_Breadcrumb.js.map +1 -1
  587. package/dist/esm/components/resources/ResourceLayout_CollectionActions.d.ts +1 -1
  588. package/dist/esm/components/resources/ResourceLayout_CollectionActions.d.ts.map +1 -1
  589. package/dist/esm/components/resources/ResourceLayout_CollectionActions.js +1 -1
  590. package/dist/esm/components/resources/ResourceLayout_CollectionActions.js.map +1 -1
  591. package/dist/esm/components/resources/ResourceLayout_ContainerNested.d.ts.map +1 -1
  592. package/dist/esm/components/resources/ResourceLayout_ContainerNested.js +7 -1
  593. package/dist/esm/components/resources/ResourceLayout_ContainerNested.js.map +1 -1
  594. package/dist/esm/components/resources/ResourceLayout_Create.d.ts.map +1 -1
  595. package/dist/esm/components/resources/ResourceLayout_Create.js +3 -4
  596. package/dist/esm/components/resources/ResourceLayout_Create.js.map +1 -1
  597. package/dist/esm/components/resources/ResourceLayout_Create.labels.d.ts.map +1 -1
  598. package/dist/esm/components/resources/ResourceLayout_Create.labels.js +10 -0
  599. package/dist/esm/components/resources/ResourceLayout_Create.labels.js.map +1 -1
  600. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +5 -3
  601. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  602. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +4 -3
  603. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  604. package/dist/esm/components/resources/ResourceLayout_FilterChips.d.ts +8 -1
  605. package/dist/esm/components/resources/ResourceLayout_FilterChips.d.ts.map +1 -1
  606. package/dist/esm/components/resources/ResourceLayout_FilterChips.js +83 -11
  607. package/dist/esm/components/resources/ResourceLayout_FilterChips.js.map +1 -1
  608. package/dist/esm/components/resources/ResourceLayout_Filters.labels.js +1 -1
  609. package/dist/esm/components/resources/ResourceLayout_Filters.labels.js.map +1 -1
  610. package/dist/esm/components/resources/ResourceLayout_FiltersControl.d.ts +5 -8
  611. package/dist/esm/components/resources/ResourceLayout_FiltersControl.d.ts.map +1 -1
  612. package/dist/esm/components/resources/ResourceLayout_FiltersControl.js +68 -19
  613. package/dist/esm/components/resources/ResourceLayout_FiltersControl.js.map +1 -1
  614. package/dist/esm/components/resources/ResourceLayout_Header.d.ts.map +1 -1
  615. package/dist/esm/components/resources/ResourceLayout_Header.js +150 -44
  616. package/dist/esm/components/resources/ResourceLayout_Header.js.map +1 -1
  617. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  618. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +62 -40
  619. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  620. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  621. package/dist/esm/components/resources/ResourceLayout_List.js +68 -70
  622. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  623. package/dist/esm/components/resources/ResourceLayout_List.labels.d.ts.map +1 -1
  624. package/dist/esm/components/resources/ResourceLayout_List.labels.js +4 -10
  625. package/dist/esm/components/resources/ResourceLayout_List.labels.js.map +1 -1
  626. package/dist/esm/components/resources/ResourceLayout_OperationBulk.d.ts +8 -9
  627. package/dist/esm/components/resources/ResourceLayout_OperationBulk.d.ts.map +1 -1
  628. package/dist/esm/components/resources/ResourceLayout_OperationBulk.js +67 -25
  629. package/dist/esm/components/resources/ResourceLayout_OperationBulk.js.map +1 -1
  630. package/dist/esm/components/resources/ResourceLayout_OperationBulk.labels.js +8 -8
  631. package/dist/esm/components/resources/ResourceLayout_OperationBulk.labels.js.map +1 -1
  632. package/dist/esm/components/resources/ResourceLayout_OperationsItems.d.ts +8 -2
  633. package/dist/esm/components/resources/ResourceLayout_OperationsItems.d.ts.map +1 -1
  634. package/dist/esm/components/resources/ResourceLayout_OperationsItems.js +12 -7
  635. package/dist/esm/components/resources/ResourceLayout_OperationsItems.js.map +1 -1
  636. package/dist/esm/components/resources/ResourceLayout_OperationsItems.labels.d.ts.map +1 -1
  637. package/dist/esm/components/resources/ResourceLayout_OperationsItems.labels.js +11 -6
  638. package/dist/esm/components/resources/ResourceLayout_OperationsItems.labels.js.map +1 -1
  639. package/dist/esm/components/resources/ResourceLayout_Read.d.ts +2 -0
  640. package/dist/esm/components/resources/ResourceLayout_Read.d.ts.map +1 -1
  641. package/dist/esm/components/resources/ResourceLayout_Read.js +23 -5
  642. package/dist/esm/components/resources/ResourceLayout_Read.js.map +1 -1
  643. package/dist/esm/components/resources/ResourceLayout_ReadSummary.d.ts.map +1 -1
  644. package/dist/esm/components/resources/ResourceLayout_ReadSummary.js +5 -3
  645. package/dist/esm/components/resources/ResourceLayout_ReadSummary.js.map +1 -1
  646. package/dist/esm/components/resources/ResourceLayout_ReadSummary_TableRow.d.ts.map +1 -1
  647. package/dist/esm/components/resources/ResourceLayout_ReadSummary_TableRow.js +18 -7
  648. package/dist/esm/components/resources/ResourceLayout_ReadSummary_TableRow.js.map +1 -1
  649. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +56 -0
  650. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -0
  651. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +184 -0
  652. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -0
  653. package/dist/esm/components/resources/ResourceLayout_RecordSharing.labels.d.ts +3 -0
  654. package/dist/esm/components/resources/ResourceLayout_RecordSharing.labels.d.ts.map +1 -0
  655. package/dist/esm/components/resources/ResourceLayout_RecordSharing.labels.js +106 -0
  656. package/dist/esm/components/resources/ResourceLayout_RecordSharing.labels.js.map +1 -0
  657. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  658. package/dist/esm/components/resources/ResourceLayout_Search.js +55 -42
  659. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  660. package/dist/esm/components/resources/ResourceLayout_Search.labels.d.ts.map +1 -1
  661. package/dist/esm/components/resources/ResourceLayout_Search.labels.js +0 -6
  662. package/dist/esm/components/resources/ResourceLayout_Search.labels.js.map +1 -1
  663. package/dist/esm/components/resources/ResourceLayout_SemanticOperationFallback.d.ts +8 -0
  664. package/dist/esm/components/resources/ResourceLayout_SemanticOperationFallback.d.ts.map +1 -1
  665. package/dist/esm/components/resources/ResourceLayout_SemanticOperationFallback.js +2 -3
  666. package/dist/esm/components/resources/ResourceLayout_SemanticOperationFallback.js.map +1 -1
  667. package/dist/esm/components/resources/ResourceLayout_SortControl.d.ts.map +1 -1
  668. package/dist/esm/components/resources/ResourceLayout_SortControl.js +3 -2
  669. package/dist/esm/components/resources/ResourceLayout_SortControl.js.map +1 -1
  670. package/dist/esm/components/resources/ResourceListItemRenderer.d.ts +29 -5
  671. package/dist/esm/components/resources/ResourceListItemRenderer.d.ts.map +1 -1
  672. package/dist/esm/components/resources/ResourceListItemRenderer.js +123 -41
  673. package/dist/esm/components/resources/ResourceListItemRenderer.js.map +1 -1
  674. package/dist/esm/components/resources/ResourceViewModeToggle.d.ts +6 -1
  675. package/dist/esm/components/resources/ResourceViewModeToggle.d.ts.map +1 -1
  676. package/dist/esm/components/resources/ResourceViewModeToggle.js +9 -7
  677. package/dist/esm/components/resources/ResourceViewModeToggle.js.map +1 -1
  678. package/dist/esm/components/resources/collection-card-layout.utils.d.ts +37 -15
  679. package/dist/esm/components/resources/collection-card-layout.utils.d.ts.map +1 -1
  680. package/dist/esm/components/resources/collection-card-layout.utils.js +37 -15
  681. package/dist/esm/components/resources/collection-card-layout.utils.js.map +1 -1
  682. package/dist/esm/components/resources/collection-selection-bar-density.d.ts +113 -0
  683. package/dist/esm/components/resources/collection-selection-bar-density.d.ts.map +1 -0
  684. package/dist/esm/components/resources/collection-selection-bar-density.js +175 -0
  685. package/dist/esm/components/resources/collection-selection-bar-density.js.map +1 -0
  686. package/dist/esm/components/resources/embeds/EmbeddedResourceDescent.d.ts +2 -1
  687. package/dist/esm/components/resources/embeds/EmbeddedResourceDescent.d.ts.map +1 -1
  688. package/dist/esm/components/resources/embeds/EmbeddedResourceDescent.js.map +1 -1
  689. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts.map +1 -1
  690. package/dist/esm/components/resources/embeds/RelatedResourceSections.js +14 -2
  691. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  692. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +61 -1
  693. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  694. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +151 -15
  695. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  696. package/dist/esm/components/resources/embeds/child-operation-addressability.utils.d.ts +11 -0
  697. package/dist/esm/components/resources/embeds/child-operation-addressability.utils.d.ts.map +1 -1
  698. package/dist/esm/components/resources/embeds/child-operation-addressability.utils.js +13 -0
  699. package/dist/esm/components/resources/embeds/child-operation-addressability.utils.js.map +1 -1
  700. package/dist/esm/components/resources/embeds/useEmbeddedResourceContext.d.ts +24 -1
  701. package/dist/esm/components/resources/embeds/useEmbeddedResourceContext.d.ts.map +1 -1
  702. package/dist/esm/components/resources/embeds/useEmbeddedResourceContext.js +47 -3
  703. package/dist/esm/components/resources/embeds/useEmbeddedResourceContext.js.map +1 -1
  704. package/dist/esm/components/resources/resource-filter-field-type.frontend.schemas.d.ts +35 -0
  705. package/dist/esm/components/resources/resource-filter-field-type.frontend.schemas.d.ts.map +1 -0
  706. package/dist/esm/components/resources/resource-filter-field-type.frontend.schemas.js +36 -0
  707. package/dist/esm/components/resources/resource-filter-field-type.frontend.schemas.js.map +1 -0
  708. package/dist/esm/components/resources/resource-header-geometry.d.ts +19 -0
  709. package/dist/esm/components/resources/resource-header-geometry.d.ts.map +1 -0
  710. package/dist/esm/components/resources/resource-header-geometry.js +19 -0
  711. package/dist/esm/components/resources/resource-header-geometry.js.map +1 -0
  712. package/dist/esm/components/resources/resourceLayout.utils.d.ts +28 -2
  713. package/dist/esm/components/resources/resourceLayout.utils.d.ts.map +1 -1
  714. package/dist/esm/components/resources/resourceLayout.utils.js +45 -12
  715. package/dist/esm/components/resources/resourceLayout.utils.js.map +1 -1
  716. package/dist/esm/components/resources/skeleton/ArrayField.d.ts.map +1 -1
  717. package/dist/esm/components/resources/skeleton/ArrayField.js +10 -0
  718. package/dist/esm/components/resources/skeleton/ArrayField.js.map +1 -1
  719. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts +20 -4
  720. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  721. package/dist/esm/components/resources/skeleton/DisplayLayout.js +19 -2
  722. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  723. package/dist/esm/components/resources/skeleton/FieldTiles.d.ts +48 -0
  724. package/dist/esm/components/resources/skeleton/FieldTiles.d.ts.map +1 -0
  725. package/dist/esm/components/resources/skeleton/FieldTiles.js +51 -0
  726. package/dist/esm/components/resources/skeleton/FieldTiles.js.map +1 -0
  727. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  728. package/dist/esm/components/resources/skeleton/FormLayout.js +2 -1
  729. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  730. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  731. package/dist/esm/components/resources/skeleton/Group.js +5 -2
  732. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  733. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +77 -14
  734. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts.map +1 -1
  735. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +98 -25
  736. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  737. package/dist/esm/components/resources/skeleton/Section.d.ts +7 -0
  738. package/dist/esm/components/resources/skeleton/Section.d.ts.map +1 -1
  739. package/dist/esm/components/resources/skeleton/Section.js +9 -3
  740. package/dist/esm/components/resources/skeleton/Section.js.map +1 -1
  741. package/dist/esm/components/resources/skeleton/SummaryLayout.d.ts +3 -3
  742. package/dist/esm/components/resources/skeleton/SummaryLayout.js +3 -3
  743. package/dist/esm/components/resources/skeleton/SummaryLayout.js.map +1 -1
  744. package/dist/esm/components/resources/skeleton/WizardLayout.d.ts +7 -5
  745. package/dist/esm/components/resources/skeleton/WizardLayout.d.ts.map +1 -1
  746. package/dist/esm/components/resources/skeleton/WizardLayout.js +176 -65
  747. package/dist/esm/components/resources/skeleton/WizardLayout.js.map +1 -1
  748. package/dist/esm/components/resources/skeleton/WizardLayoutContext.d.ts +9 -1
  749. package/dist/esm/components/resources/skeleton/WizardLayoutContext.d.ts.map +1 -1
  750. package/dist/esm/components/resources/skeleton/WizardLayoutContext.js +7 -0
  751. package/dist/esm/components/resources/skeleton/WizardLayoutContext.js.map +1 -1
  752. package/dist/esm/components/resources/skeleton/WizardStep.d.ts +1 -1
  753. package/dist/esm/components/resources/skeleton/WizardStep.d.ts.map +1 -1
  754. package/dist/esm/components/resources/skeleton/WizardStep.js +9 -5
  755. package/dist/esm/components/resources/skeleton/WizardStep.js.map +1 -1
  756. package/dist/esm/components/resources/skeleton/section-consolidation.utils.d.ts.map +1 -1
  757. package/dist/esm/components/resources/skeleton/section-consolidation.utils.js +31 -2
  758. package/dist/esm/components/resources/skeleton/section-consolidation.utils.js.map +1 -1
  759. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.d.ts.map +1 -1
  760. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js +176 -61
  761. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js.map +1 -1
  762. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.d.ts.map +1 -1
  763. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.js +14 -7
  764. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.js.map +1 -1
  765. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.d.ts.map +1 -1
  766. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.js +18 -1
  767. package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.js.map +1 -1
  768. package/dist/esm/components/resources-fields/resource-reference/resource-reference.shared.utils.d.ts +8 -0
  769. package/dist/esm/components/resources-fields/resource-reference/resource-reference.shared.utils.d.ts.map +1 -1
  770. package/dist/esm/components/resources-fields/resource-reference/resource-reference.shared.utils.js +3 -0
  771. package/dist/esm/components/resources-fields/resource-reference/resource-reference.shared.utils.js.map +1 -1
  772. package/dist/esm/components/resources-fields/resource-reference/useResourceSearch.d.ts.map +1 -1
  773. package/dist/esm/components/resources-fields/resource-reference/useResourceSearch.js +48 -17
  774. package/dist/esm/components/resources-fields/resource-reference/useResourceSearch.js.map +1 -1
  775. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  776. package/dist/esm/components/sections/ContentSectionContainer.js +226 -74
  777. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  778. package/dist/esm/components/sections/ContentSectionContainer.labels.d.ts.map +1 -1
  779. package/dist/esm/components/sections/ContentSectionContainer.labels.js +2 -3
  780. package/dist/esm/components/sections/ContentSectionContainer.labels.js.map +1 -1
  781. package/dist/esm/components/sections/content-section.d.ts +2 -2
  782. package/dist/esm/components/sections/content-section.js.map +1 -1
  783. package/dist/esm/components/sections/section-grouping.shared.d.ts +19 -0
  784. package/dist/esm/components/sections/section-grouping.shared.d.ts.map +1 -1
  785. package/dist/esm/components/sections/section-grouping.shared.js +24 -0
  786. package/dist/esm/components/sections/section-grouping.shared.js.map +1 -1
  787. package/dist/esm/components/sections/section-legend-voice.context.d.ts +19 -0
  788. package/dist/esm/components/sections/section-legend-voice.context.d.ts.map +1 -0
  789. package/dist/esm/components/sections/section-legend-voice.context.js +21 -0
  790. package/dist/esm/components/sections/section-legend-voice.context.js.map +1 -0
  791. package/dist/esm/components/sections/section-legend-voice.d.ts +41 -0
  792. package/dist/esm/components/sections/section-legend-voice.d.ts.map +1 -0
  793. package/dist/esm/components/sections/section-legend-voice.js +67 -0
  794. package/dist/esm/components/sections/section-legend-voice.js.map +1 -0
  795. package/dist/esm/components/sections/stepper.d.ts +14 -0
  796. package/dist/esm/components/sections/stepper.d.ts.map +1 -1
  797. package/dist/esm/components/sections/stepper.js.map +1 -1
  798. package/dist/esm/components/sections/surface.d.ts.map +1 -1
  799. package/dist/esm/components/sections/surface.js +10 -2
  800. package/dist/esm/components/sections/surface.js.map +1 -1
  801. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.d.ts +39 -0
  802. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.d.ts.map +1 -0
  803. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.js +187 -0
  804. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.js.map +1 -0
  805. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.labels.d.ts +3 -0
  806. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.labels.d.ts.map +1 -0
  807. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.labels.js +34 -0
  808. package/dist/esm/components/settings/AppPage_AgentWorkEvaluationExportSettings.labels.js.map +1 -0
  809. package/dist/esm/components/settings/AppPage_AgentWorkOverrideRateSettings.d.ts +1 -1
  810. package/dist/esm/components/settings/AppPage_AgentWorkOverrideRateSettings.js +1 -1
  811. package/dist/esm/components/settings/AppPage_AgentWorkOverrideRateSettings.js.map +1 -1
  812. package/dist/esm/components/settings/AppPage_AgentWorkOverrideRateSettings.labels.js +8 -8
  813. package/dist/esm/components/settings/AppPage_AgentWorkOverrideRateSettings.labels.js.map +1 -1
  814. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.d.ts +43 -0
  815. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.d.ts.map +1 -0
  816. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.js +142 -0
  817. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.js.map +1 -0
  818. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.labels.d.ts +3 -0
  819. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.labels.d.ts.map +1 -0
  820. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.labels.js +62 -0
  821. package/dist/esm/components/settings/AppPage_AutonomousAgentsSettings.labels.js.map +1 -0
  822. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +25 -8
  823. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  824. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +275 -71
  825. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  826. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.labels.d.ts.map +1 -1
  827. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.labels.js +91 -14
  828. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.labels.js.map +1 -1
  829. package/dist/esm/components/settings/AppPage_InvitationsSettings.d.ts +13 -8
  830. package/dist/esm/components/settings/AppPage_InvitationsSettings.d.ts.map +1 -1
  831. package/dist/esm/components/settings/AppPage_InvitationsSettings.js +95 -23
  832. package/dist/esm/components/settings/AppPage_InvitationsSettings.js.map +1 -1
  833. package/dist/esm/components/settings/AppPage_InvitationsSettings.labels.d.ts.map +1 -1
  834. package/dist/esm/components/settings/AppPage_InvitationsSettings.labels.js +25 -2
  835. package/dist/esm/components/settings/AppPage_InvitationsSettings.labels.js.map +1 -1
  836. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.d.ts +67 -0
  837. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.d.ts.map +1 -0
  838. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.js +177 -0
  839. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.js.map +1 -0
  840. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.labels.d.ts +3 -0
  841. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.labels.d.ts.map +1 -0
  842. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.labels.js +45 -0
  843. package/dist/esm/components/settings/AppPage_ModelCostBreakdownSettings.labels.js.map +1 -0
  844. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.d.ts +35 -0
  845. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.d.ts.map +1 -0
  846. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.js +137 -0
  847. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.js.map +1 -0
  848. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.labels.d.ts +3 -0
  849. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.labels.d.ts.map +1 -0
  850. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.labels.js +38 -0
  851. package/dist/esm/components/settings/AppPage_RepresentativeActivitySettings.labels.js.map +1 -0
  852. package/dist/esm/components/settings/SettingsHub.d.ts +3 -3
  853. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  854. package/dist/esm/components/settings/SettingsHub.js +98 -48
  855. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  856. package/dist/esm/components/settings/SettingsHub.labels.d.ts.map +1 -1
  857. package/dist/esm/components/settings/SettingsHub.labels.js +2 -0
  858. package/dist/esm/components/settings/SettingsHub.labels.js.map +1 -1
  859. package/dist/esm/components/settings/SettingsResourceOperationPanel.d.ts.map +1 -1
  860. package/dist/esm/components/settings/SettingsResourceOperationPanel.js +21 -1
  861. package/dist/esm/components/settings/SettingsResourceOperationPanel.js.map +1 -1
  862. package/dist/esm/components/settings/useOwnerProviderConnections.d.ts +24 -5
  863. package/dist/esm/components/settings/useOwnerProviderConnections.d.ts.map +1 -1
  864. package/dist/esm/components/settings/useOwnerProviderConnections.js +67 -9
  865. package/dist/esm/components/settings/useOwnerProviderConnections.js.map +1 -1
  866. package/dist/esm/components/views/chart-view/ChartView.js +3 -3
  867. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  868. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  869. package/dist/esm/components/views/chart-view/chart-export.utils.js +2 -9
  870. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  871. package/dist/esm/components/views/chart-view/enum-color-bridge.d.ts +1 -0
  872. package/dist/esm/components/views/chart-view/enum-color-bridge.d.ts.map +1 -1
  873. package/dist/esm/components/views/chart-view/enum-color-bridge.js +10 -1
  874. package/dist/esm/components/views/chart-view/enum-color-bridge.js.map +1 -1
  875. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +8 -6
  876. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  877. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +10 -8
  878. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  879. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +2 -2
  880. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  881. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  882. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  883. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +1 -1
  884. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  885. package/dist/esm/components/views/chart-view/option-builder/builders/scatter-family.builder.js +1 -1
  886. package/dist/esm/components/views/chart-view/option-builder/builders/scatter-family.builder.js.map +1 -1
  887. package/dist/esm/components/views/chart-view/option-builder/chart-type-builder.interface.d.ts +6 -0
  888. package/dist/esm/components/views/chart-view/option-builder/chart-type-builder.interface.d.ts.map +1 -1
  889. package/dist/esm/components/views/chart-view/option-builder/chart-type-builder.interface.js.map +1 -1
  890. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts +3 -1
  891. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  892. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +4 -1
  893. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  894. package/dist/esm/components/views/composite-view/CompositeLayout.d.ts +0 -1
  895. package/dist/esm/components/views/composite-view/CompositeLayout.d.ts.map +1 -1
  896. package/dist/esm/components/views/composite-view/CompositeLayout.js.map +1 -1
  897. package/dist/esm/components/views/composite-view/useCompositeResourceOperationContextBuilder.d.ts.map +1 -1
  898. package/dist/esm/components/views/composite-view/useCompositeResourceOperationContextBuilder.js +24 -1
  899. package/dist/esm/components/views/composite-view/useCompositeResourceOperationContextBuilder.js.map +1 -1
  900. package/dist/esm/components/views/flows-actors-view/AgentReplyReportAction.d.ts +29 -0
  901. package/dist/esm/components/views/flows-actors-view/AgentReplyReportAction.d.ts.map +1 -0
  902. package/dist/esm/components/views/flows-actors-view/AgentReplyReportAction.js +104 -0
  903. package/dist/esm/components/views/flows-actors-view/AgentReplyReportAction.js.map +1 -0
  904. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +16 -5
  905. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  906. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +219 -230
  907. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  908. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts +5 -0
  909. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts.map +1 -1
  910. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js +15 -13
  911. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js.map +1 -1
  912. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts +13 -0
  913. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts.map +1 -0
  914. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js +44 -0
  915. package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js.map +1 -0
  916. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts.map +1 -1
  917. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +6 -2
  918. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  919. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +64 -9
  920. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  921. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  922. package/dist/esm/core/app-shell/hosted-components.utils.d.ts +11 -1
  923. package/dist/esm/core/app-shell/hosted-components.utils.d.ts.map +1 -1
  924. package/dist/esm/core/app-shell/hosted-components.utils.js +25 -0
  925. package/dist/esm/core/app-shell/hosted-components.utils.js.map +1 -1
  926. package/dist/esm/core/app-shell/shell-layout.d.ts +138 -0
  927. package/dist/esm/core/app-shell/shell-layout.d.ts.map +1 -0
  928. package/dist/esm/core/app-shell/shell-layout.js +143 -0
  929. package/dist/esm/core/app-shell/shell-layout.js.map +1 -0
  930. package/dist/esm/core/app-shell/shell-motion/shell-layout-stylesheet.d.ts +13 -0
  931. package/dist/esm/core/app-shell/shell-motion/shell-layout-stylesheet.d.ts.map +1 -0
  932. package/dist/esm/core/app-shell/shell-motion/shell-layout-stylesheet.js +49 -0
  933. package/dist/esm/core/app-shell/shell-motion/shell-layout-stylesheet.js.map +1 -0
  934. package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.d.ts +95 -0
  935. package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.d.ts.map +1 -0
  936. package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js +316 -0
  937. package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js.map +1 -0
  938. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +217 -0
  939. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts.map +1 -0
  940. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +197 -0
  941. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -0
  942. package/dist/esm/core/app-shell/shell-motion/shell-view-transition.d.ts +46 -0
  943. package/dist/esm/core/app-shell/shell-motion/shell-view-transition.d.ts.map +1 -0
  944. package/dist/esm/core/app-shell/shell-motion/shell-view-transition.js +139 -0
  945. package/dist/esm/core/app-shell/shell-motion/shell-view-transition.js.map +1 -0
  946. package/dist/esm/core/app-shell/shell-motion/use-shell-motion.d.ts +108 -0
  947. package/dist/esm/core/app-shell/shell-motion/use-shell-motion.d.ts.map +1 -0
  948. package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js +423 -0
  949. package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js.map +1 -0
  950. package/dist/esm/core/app-shell/useAppShellLayout.d.ts.map +1 -1
  951. package/dist/esm/core/app-shell/useAppShellLayout.js +6 -1
  952. package/dist/esm/core/app-shell/useAppShellLayout.js.map +1 -1
  953. package/dist/esm/core/app-shell/usePublicShellLayout.d.ts.map +1 -1
  954. package/dist/esm/core/app-shell/usePublicShellLayout.js +11 -4
  955. package/dist/esm/core/app-shell/usePublicShellLayout.js.map +1 -1
  956. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +18 -1
  957. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  958. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +26 -4
  959. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  960. package/dist/esm/core/automated-layout/composite-value-defaults.frontend.utils.d.ts.map +1 -1
  961. package/dist/esm/core/automated-layout/composite-value-defaults.frontend.utils.js +3 -22
  962. package/dist/esm/core/automated-layout/composite-value-defaults.frontend.utils.js.map +1 -1
  963. package/dist/esm/core/automated-layout/default-layout-generator.frontend.utils.d.ts +19 -3
  964. package/dist/esm/core/automated-layout/default-layout-generator.frontend.utils.d.ts.map +1 -1
  965. package/dist/esm/core/automated-layout/default-layout-generator.frontend.utils.js +100 -13
  966. package/dist/esm/core/automated-layout/default-layout-generator.frontend.utils.js.map +1 -1
  967. package/dist/esm/core/automated-layout/summary-value-naming.utils.d.ts +67 -0
  968. package/dist/esm/core/automated-layout/summary-value-naming.utils.d.ts.map +1 -0
  969. package/dist/esm/core/automated-layout/summary-value-naming.utils.js +100 -0
  970. package/dist/esm/core/automated-layout/summary-value-naming.utils.js.map +1 -0
  971. package/dist/esm/core/billing/BillingContext.d.ts +0 -17
  972. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  973. package/dist/esm/core/billing/BillingContext.js +6 -1
  974. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  975. package/dist/esm/core/branding/OrganizationBrandingPublisher.d.ts +2 -0
  976. package/dist/esm/core/branding/OrganizationBrandingPublisher.d.ts.map +1 -0
  977. package/dist/esm/core/branding/OrganizationBrandingPublisher.js +78 -0
  978. package/dist/esm/core/branding/OrganizationBrandingPublisher.js.map +1 -0
  979. package/dist/esm/core/branding/useBrandIdentity.d.ts +21 -0
  980. package/dist/esm/core/branding/useBrandIdentity.d.ts.map +1 -1
  981. package/dist/esm/core/branding/useBrandIdentity.js +31 -5
  982. package/dist/esm/core/branding/useBrandIdentity.js.map +1 -1
  983. package/dist/esm/core/branding/useBrandPresentation.d.ts +5 -0
  984. package/dist/esm/core/branding/useBrandPresentation.d.ts.map +1 -1
  985. package/dist/esm/core/branding/useBrandPresentation.js +1 -0
  986. package/dist/esm/core/branding/useBrandPresentation.js.map +1 -1
  987. package/dist/esm/core/branding/useDisplayableImageUrl.d.ts +4 -0
  988. package/dist/esm/core/branding/useDisplayableImageUrl.d.ts.map +1 -0
  989. package/dist/esm/core/branding/useDisplayableImageUrl.js +66 -0
  990. package/dist/esm/core/branding/useDisplayableImageUrl.js.map +1 -0
  991. package/dist/esm/core/branding/useOrganizationDocumentTitle.d.ts +2 -0
  992. package/dist/esm/core/branding/useOrganizationDocumentTitle.d.ts.map +1 -0
  993. package/dist/esm/core/branding/useOrganizationDocumentTitle.js +23 -0
  994. package/dist/esm/core/branding/useOrganizationDocumentTitle.js.map +1 -0
  995. package/dist/esm/core/commons/save-blob-as-file.frontend.utils.d.ts +16 -0
  996. package/dist/esm/core/commons/save-blob-as-file.frontend.utils.d.ts.map +1 -0
  997. package/dist/esm/core/commons/save-blob-as-file.frontend.utils.js +35 -0
  998. package/dist/esm/core/commons/save-blob-as-file.frontend.utils.js.map +1 -0
  999. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map +1 -1
  1000. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js +8 -0
  1001. package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
  1002. package/dist/esm/core/components-registry/component-resolver.frontend.helper.d.ts.map +1 -1
  1003. package/dist/esm/core/components-registry/component-resolver.frontend.helper.js +34 -5
  1004. package/dist/esm/core/components-registry/component-resolver.frontend.helper.js.map +1 -1
  1005. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  1006. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  1007. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  1008. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +36 -0
  1009. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  1010. package/dist/esm/core/config/app-configuration-frontend.schemas.js +29 -2
  1011. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  1012. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +10 -16
  1013. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts.map +1 -1
  1014. package/dist/esm/core/config/app-level-components.frontend.schemas.js +10 -16
  1015. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  1016. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +12 -8
  1017. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  1018. package/dist/esm/core/config/chart-view.frontend.schemas.js +10 -0
  1019. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  1020. package/dist/esm/core/config/composite-view.schemas.d.ts +2 -2
  1021. package/dist/esm/core/config/config-merge-utilities.d.ts +31 -3
  1022. package/dist/esm/core/config/config-merge-utilities.d.ts.map +1 -1
  1023. package/dist/esm/core/config/config-merge-utilities.js +61 -7
  1024. package/dist/esm/core/config/config-merge-utilities.js.map +1 -1
  1025. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +83 -0
  1026. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -0
  1027. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +100 -0
  1028. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -0
  1029. package/dist/esm/core/config/directory-provisioning-capabilities.frontend.utils.d.ts +69 -0
  1030. package/dist/esm/core/config/directory-provisioning-capabilities.frontend.utils.d.ts.map +1 -0
  1031. package/dist/esm/core/config/directory-provisioning-capabilities.frontend.utils.js +65 -0
  1032. package/dist/esm/core/config/directory-provisioning-capabilities.frontend.utils.js.map +1 -0
  1033. package/dist/esm/core/config/engine-settings-destinations.d.ts +13 -1
  1034. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  1035. package/dist/esm/core/config/engine-settings-destinations.js +588 -155
  1036. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  1037. package/dist/esm/core/config/execution-view.schemas.d.ts +17 -3
  1038. package/dist/esm/core/config/execution-view.schemas.d.ts.map +1 -1
  1039. package/dist/esm/core/config/execution-view.schemas.js +1 -1
  1040. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  1041. package/dist/esm/core/config/flows-actors-view.schemas.d.ts +12 -2
  1042. package/dist/esm/core/config/flows-actors-view.schemas.d.ts.map +1 -1
  1043. package/dist/esm/core/config/flows-actors-view.schemas.js +13 -1
  1044. package/dist/esm/core/config/flows-actors-view.schemas.js.map +1 -1
  1045. package/dist/esm/core/config/inserted-view-launcher.schemas.d.ts +12 -11
  1046. package/dist/esm/core/config/inserted-view-launcher.schemas.d.ts.map +1 -1
  1047. package/dist/esm/core/config/inserted-view-launcher.schemas.js +14 -13
  1048. package/dist/esm/core/config/inserted-view-launcher.schemas.js.map +1 -1
  1049. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +77 -27
  1050. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  1051. package/dist/esm/core/config/launcher-items.frontend.schemas.js +18 -13
  1052. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  1053. package/dist/esm/core/config/relationship-side-capabilities.frontend.utils.d.ts +79 -0
  1054. package/dist/esm/core/config/relationship-side-capabilities.frontend.utils.d.ts.map +1 -0
  1055. package/dist/esm/core/config/relationship-side-capabilities.frontend.utils.js +95 -0
  1056. package/dist/esm/core/config/relationship-side-capabilities.frontend.utils.js.map +1 -0
  1057. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +19 -7
  1058. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  1059. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +45 -10
  1060. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  1061. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts +2 -2
  1062. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts.map +1 -1
  1063. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js +38 -5
  1064. package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js.map +1 -1
  1065. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +94 -10
  1066. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  1067. package/dist/esm/core/config/settings-hub.frontend.schemas.js +40 -3
  1068. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  1069. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  1070. package/dist/esm/core/config/useSettingsHubConfig.js +4 -1
  1071. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  1072. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +2 -2
  1073. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  1074. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +7 -8
  1075. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  1076. package/dist/esm/core/config/verify-launcher-content.d.ts +16 -2
  1077. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  1078. package/dist/esm/core/config/verify-launcher-content.js +64 -4
  1079. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  1080. package/dist/esm/core/config/verify-settings-hub-content.d.ts +4 -0
  1081. package/dist/esm/core/config/verify-settings-hub-content.d.ts.map +1 -1
  1082. package/dist/esm/core/config/verify-settings-hub-content.js +34 -0
  1083. package/dist/esm/core/config/verify-settings-hub-content.js.map +1 -1
  1084. package/dist/esm/core/enums/common-enum-registry.d.ts +16 -23
  1085. package/dist/esm/core/enums/common-enum-registry.d.ts.map +1 -1
  1086. package/dist/esm/core/enums/common-enum-registry.js +26 -29
  1087. package/dist/esm/core/enums/common-enum-registry.js.map +1 -1
  1088. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  1089. package/dist/esm/core/errors/GlobalErrorHandler.js +71 -9
  1090. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  1091. package/dist/esm/core/errors/error-management.frontend.service.d.ts +0 -4
  1092. package/dist/esm/core/errors/error-management.frontend.service.d.ts.map +1 -1
  1093. package/dist/esm/core/errors/error-management.frontend.service.js +5 -8
  1094. package/dist/esm/core/errors/error-management.frontend.service.js.map +1 -1
  1095. package/dist/esm/core/errors/errors.frontend.schemas.d.ts +21 -10
  1096. package/dist/esm/core/errors/errors.frontend.schemas.d.ts.map +1 -1
  1097. package/dist/esm/core/errors/errors.frontend.schemas.js.map +1 -1
  1098. package/dist/esm/core/errors/user-facing-error-message.frontend.utils.d.ts +35 -0
  1099. package/dist/esm/core/errors/user-facing-error-message.frontend.utils.d.ts.map +1 -1
  1100. package/dist/esm/core/errors/user-facing-error-message.frontend.utils.js +44 -5
  1101. package/dist/esm/core/errors/user-facing-error-message.frontend.utils.js.map +1 -1
  1102. package/dist/esm/core/events/EventBusContext.js.map +1 -1
  1103. package/dist/esm/core/events/NotificationContext.d.ts +13 -1
  1104. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  1105. package/dist/esm/core/events/NotificationContext.js +89 -22
  1106. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  1107. package/dist/esm/core/events/events.frontend.schemas.d.ts +68 -4
  1108. package/dist/esm/core/events/events.frontend.schemas.d.ts.map +1 -1
  1109. package/dist/esm/core/events/events.frontend.schemas.js +67 -3
  1110. package/dist/esm/core/events/events.frontend.schemas.js.map +1 -1
  1111. package/dist/esm/core/events/useNotificationPreferenceKinds.d.ts +9 -0
  1112. package/dist/esm/core/events/useNotificationPreferenceKinds.d.ts.map +1 -0
  1113. package/dist/esm/core/events/useNotificationPreferenceKinds.js +50 -0
  1114. package/dist/esm/core/events/useNotificationPreferenceKinds.js.map +1 -0
  1115. package/dist/esm/core/execution/useExecution.js +1 -1
  1116. package/dist/esm/core/execution/useExecution.js.map +1 -1
  1117. package/dist/esm/core/execution/useExecutionParticipationRMM.d.ts.map +1 -1
  1118. package/dist/esm/core/execution/useExecutionParticipationRMM.js +4 -0
  1119. package/dist/esm/core/execution/useExecutionParticipationRMM.js.map +1 -1
  1120. package/dist/esm/core/execution/useExecutionResourceOperationSurface.d.ts.map +1 -1
  1121. package/dist/esm/core/execution/useExecutionResourceOperationSurface.js +3 -3
  1122. package/dist/esm/core/execution/useExecutionResourceOperationSurface.js.map +1 -1
  1123. package/dist/esm/core/external-providers/chat-sign-in-completion.frontend.d.ts +52 -0
  1124. package/dist/esm/core/external-providers/chat-sign-in-completion.frontend.d.ts.map +1 -0
  1125. package/dist/esm/core/external-providers/chat-sign-in-completion.frontend.js +88 -0
  1126. package/dist/esm/core/external-providers/chat-sign-in-completion.frontend.js.map +1 -0
  1127. package/dist/esm/core/external-providers/frontend-provider-registry.frontend.service.d.ts +20 -2
  1128. package/dist/esm/core/external-providers/frontend-provider-registry.frontend.service.d.ts.map +1 -1
  1129. package/dist/esm/core/external-providers/frontend-provider-registry.frontend.service.js +18 -1
  1130. package/dist/esm/core/external-providers/frontend-provider-registry.frontend.service.js.map +1 -1
  1131. package/dist/esm/core/external-providers/provider-scope-reauthorization-offers.frontend.d.ts +7 -5
  1132. package/dist/esm/core/external-providers/provider-scope-reauthorization-offers.frontend.d.ts.map +1 -1
  1133. package/dist/esm/core/external-providers/provider-scope-reauthorization-offers.frontend.js +9 -6
  1134. package/dist/esm/core/external-providers/provider-scope-reauthorization-offers.frontend.js.map +1 -1
  1135. package/dist/esm/core/features/FeaturesContext.d.ts +9 -1
  1136. package/dist/esm/core/features/FeaturesContext.d.ts.map +1 -1
  1137. package/dist/esm/core/features/FeaturesContext.js +38 -12
  1138. package/dist/esm/core/features/FeaturesContext.js.map +1 -1
  1139. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  1140. package/dist/esm/core/features/useOperationFeatureAvailability.js +4 -0
  1141. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  1142. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +90 -33
  1143. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  1144. package/dist/esm/core/flows-actors/FlowsActorsContext.js +153 -100
  1145. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  1146. package/dist/esm/core/flows-actors/conversation-history.model.d.ts +41 -0
  1147. package/dist/esm/core/flows-actors/conversation-history.model.d.ts.map +1 -0
  1148. package/dist/esm/core/flows-actors/conversation-history.model.js +65 -0
  1149. package/dist/esm/core/flows-actors/conversation-history.model.js.map +1 -0
  1150. package/dist/esm/core/flows-actors/conversation-thread.model.d.ts +144 -0
  1151. package/dist/esm/core/flows-actors/conversation-thread.model.d.ts.map +1 -0
  1152. package/dist/esm/core/flows-actors/conversation-thread.model.js +315 -0
  1153. package/dist/esm/core/flows-actors/conversation-thread.model.js.map +1 -0
  1154. package/dist/esm/core/flows-actors/execution-usages-batch.frontend.utils.d.ts +29 -0
  1155. package/dist/esm/core/flows-actors/execution-usages-batch.frontend.utils.d.ts.map +1 -0
  1156. package/dist/esm/core/flows-actors/execution-usages-batch.frontend.utils.js +67 -0
  1157. package/dist/esm/core/flows-actors/execution-usages-batch.frontend.utils.js.map +1 -0
  1158. package/dist/esm/core/flows-actors/graph-view.layout.d.ts +77 -0
  1159. package/dist/esm/core/flows-actors/graph-view.layout.d.ts.map +1 -0
  1160. package/dist/esm/core/flows-actors/graph-view.layout.js +169 -0
  1161. package/dist/esm/core/flows-actors/graph-view.layout.js.map +1 -0
  1162. package/dist/esm/core/flows-actors/graph-view.model.d.ts +245 -0
  1163. package/dist/esm/core/flows-actors/graph-view.model.d.ts.map +1 -0
  1164. package/dist/esm/core/flows-actors/graph-view.model.js +414 -0
  1165. package/dist/esm/core/flows-actors/graph-view.model.js.map +1 -0
  1166. package/dist/esm/core/flows-actors/model-cost-money.frontend.utils.d.ts +12 -0
  1167. package/dist/esm/core/flows-actors/model-cost-money.frontend.utils.d.ts.map +1 -0
  1168. package/dist/esm/core/flows-actors/model-cost-money.frontend.utils.js +20 -0
  1169. package/dist/esm/core/flows-actors/model-cost-money.frontend.utils.js.map +1 -0
  1170. package/dist/esm/core/flows-actors/usePendingDecisions.d.ts +36 -11
  1171. package/dist/esm/core/flows-actors/usePendingDecisions.d.ts.map +1 -1
  1172. package/dist/esm/core/flows-actors/usePendingDecisions.js +114 -29
  1173. package/dist/esm/core/flows-actors/usePendingDecisions.js.map +1 -1
  1174. package/dist/esm/core/guidance/GuidanceContext.d.ts.map +1 -1
  1175. package/dist/esm/core/guidance/GuidanceContext.js +1 -2
  1176. package/dist/esm/core/guidance/GuidanceContext.js.map +1 -1
  1177. package/dist/esm/core/guidance/renderers/GuidanceChecklist.labels.js +2 -2
  1178. package/dist/esm/core/guidance/renderers/GuidanceChecklist.labels.js.map +1 -1
  1179. package/dist/esm/core/hotkey/DefaultHotkeyHandler.d.ts +3 -9
  1180. package/dist/esm/core/hotkey/DefaultHotkeyHandler.d.ts.map +1 -1
  1181. package/dist/esm/core/hotkey/DefaultHotkeyHandler.js +3 -15
  1182. package/dist/esm/core/hotkey/DefaultHotkeyHandler.js.map +1 -1
  1183. package/dist/esm/core/hotkey/merge-hotkey-emit-shortcuts.d.ts +2 -2
  1184. package/dist/esm/core/hotkey/merge-hotkey-emit-shortcuts.js +2 -2
  1185. package/dist/esm/core/hotkey/merge-hotkey-emit-shortcuts.js.map +1 -1
  1186. package/dist/esm/core/i18n/I18nContext.d.ts +52 -3
  1187. package/dist/esm/core/i18n/I18nContext.d.ts.map +1 -1
  1188. package/dist/esm/core/i18n/I18nContext.js +80 -7
  1189. package/dist/esm/core/i18n/I18nContext.js.map +1 -1
  1190. package/dist/esm/core/i18n/regional-preference-resolution.frontend.utils.d.ts +82 -1
  1191. package/dist/esm/core/i18n/regional-preference-resolution.frontend.utils.d.ts.map +1 -1
  1192. package/dist/esm/core/i18n/regional-preference-resolution.frontend.utils.js +121 -6
  1193. package/dist/esm/core/i18n/regional-preference-resolution.frontend.utils.js.map +1 -1
  1194. package/dist/esm/core/i18n/useI18n.d.ts +3 -1
  1195. package/dist/esm/core/i18n/useI18n.d.ts.map +1 -1
  1196. package/dist/esm/core/i18n/useI18n.js +3 -1
  1197. package/dist/esm/core/i18n/useI18n.js.map +1 -1
  1198. package/dist/esm/core/icons/IconRegistryBridge.d.ts +38 -4
  1199. package/dist/esm/core/icons/IconRegistryBridge.d.ts.map +1 -1
  1200. package/dist/esm/core/icons/IconRegistryBridge.js +103 -63
  1201. package/dist/esm/core/icons/IconRegistryBridge.js.map +1 -1
  1202. package/dist/esm/core/icons/IconRegistryContext.d.ts.map +1 -1
  1203. package/dist/esm/core/icons/IconRegistryContext.js +41 -0
  1204. package/dist/esm/core/icons/IconRegistryContext.js.map +1 -1
  1205. package/dist/esm/core/icons/icon-registry.frontend.schemas.d.ts +44 -0
  1206. package/dist/esm/core/icons/icon-registry.frontend.schemas.d.ts.map +1 -1
  1207. package/dist/esm/core/icons/icon-registry.frontend.schemas.js +46 -0
  1208. package/dist/esm/core/icons/icon-registry.frontend.schemas.js.map +1 -1
  1209. package/dist/esm/core/monitoring/analytics/providers/backend-proxy-analytics.provider.js +2 -2
  1210. package/dist/esm/core/monitoring/analytics/providers/backend-proxy-analytics.provider.js.map +1 -1
  1211. package/dist/esm/core/navigation/NavigationContentAreas.d.ts +64 -20
  1212. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  1213. package/dist/esm/core/navigation/NavigationContentAreas.js +82 -51
  1214. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  1215. package/dist/esm/core/navigation/NavigationContext.d.ts.map +1 -1
  1216. package/dist/esm/core/navigation/NavigationContext.js +130 -23
  1217. package/dist/esm/core/navigation/NavigationContext.js.map +1 -1
  1218. package/dist/esm/core/navigation/NavigationRequestBridge.d.ts +4 -0
  1219. package/dist/esm/core/navigation/NavigationRequestBridge.d.ts.map +1 -1
  1220. package/dist/esm/core/navigation/NavigationRequestBridge.js +17 -1
  1221. package/dist/esm/core/navigation/NavigationRequestBridge.js.map +1 -1
  1222. package/dist/esm/core/navigation/ZoneChromeContext.d.ts +80 -0
  1223. package/dist/esm/core/navigation/ZoneChromeContext.d.ts.map +1 -0
  1224. package/dist/esm/core/navigation/ZoneChromeContext.js +130 -0
  1225. package/dist/esm/core/navigation/ZoneChromeContext.js.map +1 -0
  1226. package/dist/esm/core/navigation/launcher-resolution.d.ts +102 -2
  1227. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  1228. package/dist/esm/core/navigation/launcher-resolution.js +194 -9
  1229. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  1230. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +35 -5
  1231. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  1232. package/dist/esm/core/navigation/launcher-runtime-availability.js +147 -18
  1233. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  1234. package/dist/esm/core/navigation/navigation-cascade.d.ts +44 -14
  1235. package/dist/esm/core/navigation/navigation-cascade.d.ts.map +1 -1
  1236. package/dist/esm/core/navigation/navigation-cascade.js +87 -19
  1237. package/dist/esm/core/navigation/navigation-cascade.js.map +1 -1
  1238. package/dist/esm/core/navigation/navigation-commit.d.ts +45 -0
  1239. package/dist/esm/core/navigation/navigation-commit.d.ts.map +1 -0
  1240. package/dist/esm/core/navigation/navigation-commit.js +68 -0
  1241. package/dist/esm/core/navigation/navigation-commit.js.map +1 -0
  1242. package/dist/esm/core/navigation/navigation-controller-internals.d.ts +54 -3
  1243. package/dist/esm/core/navigation/navigation-controller-internals.d.ts.map +1 -1
  1244. package/dist/esm/core/navigation/navigation-controller-internals.js +91 -3
  1245. package/dist/esm/core/navigation/navigation-controller-internals.js.map +1 -1
  1246. package/dist/esm/core/navigation/navigation-policy-resolver.service.d.ts +3 -3
  1247. package/dist/esm/core/navigation/navigation-policy-resolver.service.js +3 -3
  1248. package/dist/esm/core/navigation/navigation-policy-resolver.service.js.map +1 -1
  1249. package/dist/esm/core/navigation/navigation.utils.d.ts +95 -22
  1250. package/dist/esm/core/navigation/navigation.utils.d.ts.map +1 -1
  1251. package/dist/esm/core/navigation/navigation.utils.js +190 -63
  1252. package/dist/esm/core/navigation/navigation.utils.js.map +1 -1
  1253. package/dist/esm/core/navigation/sidebar-resource-browser-operation.d.ts +8 -0
  1254. package/dist/esm/core/navigation/sidebar-resource-browser-operation.d.ts.map +1 -0
  1255. package/dist/esm/core/navigation/sidebar-resource-browser-operation.js +27 -0
  1256. package/dist/esm/core/navigation/sidebar-resource-browser-operation.js.map +1 -0
  1257. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +64 -0
  1258. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -0
  1259. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js +212 -0
  1260. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -0
  1261. package/dist/esm/core/navigation/useLauncherResolutionContext.d.ts +1 -1
  1262. package/dist/esm/core/navigation/useLauncherResolutionContext.d.ts.map +1 -1
  1263. package/dist/esm/core/navigation/useLauncherResolutionContext.js +17 -2
  1264. package/dist/esm/core/navigation/useLauncherResolutionContext.js.map +1 -1
  1265. package/dist/esm/core/navigation/useNavigationController.d.ts +1 -0
  1266. package/dist/esm/core/navigation/useNavigationController.d.ts.map +1 -1
  1267. package/dist/esm/core/navigation/useNavigationController.js +51 -67
  1268. package/dist/esm/core/navigation/useNavigationController.js.map +1 -1
  1269. package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
  1270. package/dist/esm/core/navigation/useNavigationRouterSync.js +17 -1
  1271. package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
  1272. package/dist/esm/core/navigation/useZoneEntryOrganizationHold.d.ts +17 -0
  1273. package/dist/esm/core/navigation/useZoneEntryOrganizationHold.d.ts.map +1 -0
  1274. package/dist/esm/core/navigation/useZoneEntryOrganizationHold.js +32 -0
  1275. package/dist/esm/core/navigation/useZoneEntryOrganizationHold.js.map +1 -0
  1276. package/dist/esm/core/navigation/zone-collapse.d.ts +2 -1
  1277. package/dist/esm/core/navigation/zone-collapse.d.ts.map +1 -1
  1278. package/dist/esm/core/navigation/zone-collapse.js +2 -1
  1279. package/dist/esm/core/navigation/zone-collapse.js.map +1 -1
  1280. package/dist/esm/core/navigation/zone-entry-organization.d.ts +34 -0
  1281. package/dist/esm/core/navigation/zone-entry-organization.d.ts.map +1 -0
  1282. package/dist/esm/core/navigation/zone-entry-organization.js +77 -0
  1283. package/dist/esm/core/navigation/zone-entry-organization.js.map +1 -0
  1284. package/dist/esm/core/requests/auth-refresh-resilience.frontend.d.ts +15 -0
  1285. package/dist/esm/core/requests/auth-refresh-resilience.frontend.d.ts.map +1 -1
  1286. package/dist/esm/core/requests/auth-refresh-resilience.frontend.js +24 -0
  1287. package/dist/esm/core/requests/auth-refresh-resilience.frontend.js.map +1 -1
  1288. package/dist/esm/core/requests/automatic-resend-safety.frontend.d.ts +74 -0
  1289. package/dist/esm/core/requests/automatic-resend-safety.frontend.d.ts.map +1 -0
  1290. package/dist/esm/core/requests/automatic-resend-safety.frontend.js +52 -0
  1291. package/dist/esm/core/requests/automatic-resend-safety.frontend.js.map +1 -0
  1292. package/dist/esm/core/requests/websockets/WebSocketContext.d.ts.map +1 -1
  1293. package/dist/esm/core/requests/websockets/WebSocketContext.js +31 -0
  1294. package/dist/esm/core/requests/websockets/WebSocketContext.js.map +1 -1
  1295. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  1296. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  1297. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  1298. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +162 -98
  1299. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  1300. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +283 -157
  1301. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  1302. package/dist/esm/core/requests/wildo-http-client-resources.frontend.service.d.ts +9 -13
  1303. package/dist/esm/core/requests/wildo-http-client-resources.frontend.service.d.ts.map +1 -1
  1304. package/dist/esm/core/requests/wildo-http-client-resources.frontend.service.js +45 -97
  1305. package/dist/esm/core/requests/wildo-http-client-resources.frontend.service.js.map +1 -1
  1306. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts +25 -5
  1307. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  1308. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +56 -11
  1309. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  1310. package/dist/esm/core/resources/ScopedResourceRegistryProvider.d.ts.map +1 -1
  1311. package/dist/esm/core/resources/ScopedResourceRegistryProvider.js +1 -2
  1312. package/dist/esm/core/resources/ScopedResourceRegistryProvider.js.map +1 -1
  1313. package/dist/esm/core/resources/calendar-date-fields.frontend.utils.d.ts +14 -0
  1314. package/dist/esm/core/resources/calendar-date-fields.frontend.utils.d.ts.map +1 -0
  1315. package/dist/esm/core/resources/calendar-date-fields.frontend.utils.js +29 -0
  1316. package/dist/esm/core/resources/calendar-date-fields.frontend.utils.js.map +1 -0
  1317. package/dist/esm/core/resources/caller-identity-record.frontend.utils.d.ts +23 -0
  1318. package/dist/esm/core/resources/caller-identity-record.frontend.utils.d.ts.map +1 -0
  1319. package/dist/esm/core/resources/caller-identity-record.frontend.utils.js +26 -0
  1320. package/dist/esm/core/resources/caller-identity-record.frontend.utils.js.map +1 -0
  1321. package/dist/esm/core/resources/collection-export-url.frontend.utils.d.ts +1 -1
  1322. package/dist/esm/core/resources/collection-export-url.frontend.utils.d.ts.map +1 -1
  1323. package/dist/esm/core/resources/collection-export-url.frontend.utils.js +34 -16
  1324. package/dist/esm/core/resources/collection-export-url.frontend.utils.js.map +1 -1
  1325. package/dist/esm/core/resources/collection-filter-presets.frontend.utils.d.ts +54 -11
  1326. package/dist/esm/core/resources/collection-filter-presets.frontend.utils.d.ts.map +1 -1
  1327. package/dist/esm/core/resources/collection-filter-presets.frontend.utils.js +131 -63
  1328. package/dist/esm/core/resources/collection-filter-presets.frontend.utils.js.map +1 -1
  1329. package/dist/esm/core/resources/date-filter-window.frontend.utils.d.ts +58 -0
  1330. package/dist/esm/core/resources/date-filter-window.frontend.utils.d.ts.map +1 -0
  1331. package/dist/esm/core/resources/date-filter-window.frontend.utils.js +70 -0
  1332. package/dist/esm/core/resources/date-filter-window.frontend.utils.js.map +1 -0
  1333. package/dist/esm/core/resources/frontend-resource.utils.d.ts +146 -7
  1334. package/dist/esm/core/resources/frontend-resource.utils.d.ts.map +1 -1
  1335. package/dist/esm/core/resources/frontend-resource.utils.js +194 -22
  1336. package/dist/esm/core/resources/frontend-resource.utils.js.map +1 -1
  1337. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts +18 -4
  1338. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  1339. package/dist/esm/core/resources/hooks/useOperationEnabled.js +26 -6
  1340. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  1341. package/dist/esm/core/resources/operation-semantics.frontend.utils.d.ts +95 -2
  1342. package/dist/esm/core/resources/operation-semantics.frontend.utils.d.ts.map +1 -1
  1343. package/dist/esm/core/resources/operation-semantics.frontend.utils.js +126 -13
  1344. package/dist/esm/core/resources/operation-semantics.frontend.utils.js.map +1 -1
  1345. package/dist/esm/core/resources/read-through-organization-unit.frontend.utils.d.ts +45 -0
  1346. package/dist/esm/core/resources/read-through-organization-unit.frontend.utils.d.ts.map +1 -0
  1347. package/dist/esm/core/resources/read-through-organization-unit.frontend.utils.js +46 -0
  1348. package/dist/esm/core/resources/read-through-organization-unit.frontend.utils.js.map +1 -0
  1349. package/dist/esm/core/resources/referenced-record-scope.frontend.utils.d.ts +46 -0
  1350. package/dist/esm/core/resources/referenced-record-scope.frontend.utils.d.ts.map +1 -0
  1351. package/dist/esm/core/resources/referenced-record-scope.frontend.utils.js +86 -0
  1352. package/dist/esm/core/resources/referenced-record-scope.frontend.utils.js.map +1 -0
  1353. package/dist/esm/core/resources/relationship-quick-create.frontend.utils.d.ts.map +1 -1
  1354. package/dist/esm/core/resources/relationship-quick-create.frontend.utils.js +5 -1
  1355. package/dist/esm/core/resources/relationship-quick-create.frontend.utils.js.map +1 -1
  1356. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +28 -1
  1357. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  1358. package/dist/esm/core/resources/resource-addressability.frontend.utils.js +43 -3
  1359. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  1360. package/dist/esm/core/resources/resource-discriminators.frontend.utils.d.ts +26 -0
  1361. package/dist/esm/core/resources/resource-discriminators.frontend.utils.d.ts.map +1 -0
  1362. package/dist/esm/core/resources/resource-discriminators.frontend.utils.js +37 -0
  1363. package/dist/esm/core/resources/resource-discriminators.frontend.utils.js.map +1 -0
  1364. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts +40 -8
  1365. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  1366. package/dist/esm/core/resources/resources-repository.frontend.service.js +333 -73
  1367. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  1368. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +175 -65
  1369. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  1370. package/dist/esm/core/resources/resources.frontend.schemas.js +245 -75
  1371. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  1372. package/dist/esm/core/resources/rmm/HttpTransportAdapter.d.ts +9 -1
  1373. package/dist/esm/core/resources/rmm/HttpTransportAdapter.d.ts.map +1 -1
  1374. package/dist/esm/core/resources/rmm/HttpTransportAdapter.js +57 -22
  1375. package/dist/esm/core/resources/rmm/HttpTransportAdapter.js.map +1 -1
  1376. package/dist/esm/core/resources/rmm/RMMRegistry.d.ts.map +1 -1
  1377. package/dist/esm/core/resources/rmm/RMMRegistry.js +1 -0
  1378. package/dist/esm/core/resources/rmm/RMMRegistry.js.map +1 -1
  1379. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts +3 -0
  1380. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  1381. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +94 -35
  1382. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  1383. package/dist/esm/core/resources/rmm/types.d.ts +58 -6
  1384. package/dist/esm/core/resources/rmm/types.d.ts.map +1 -1
  1385. package/dist/esm/core/resources/rmm/types.js +17 -0
  1386. package/dist/esm/core/resources/rmm/types.js.map +1 -1
  1387. package/dist/esm/core/resources/rmm/update-like-mutation-fallback.frontend.d.ts +43 -6
  1388. package/dist/esm/core/resources/rmm/update-like-mutation-fallback.frontend.d.ts.map +1 -1
  1389. package/dist/esm/core/resources/rmm/update-like-mutation-fallback.frontend.js +49 -6
  1390. package/dist/esm/core/resources/rmm/update-like-mutation-fallback.frontend.js.map +1 -1
  1391. package/dist/esm/core/resources/rmm/useResourceMutationManager.d.ts.map +1 -1
  1392. package/dist/esm/core/resources/rmm/useResourceMutationManager.js +2 -0
  1393. package/dist/esm/core/resources/rmm/useResourceMutationManager.js.map +1 -1
  1394. package/dist/esm/core/resources/rmm/useResourceRMM.d.ts +2 -0
  1395. package/dist/esm/core/resources/rmm/useResourceRMM.d.ts.map +1 -1
  1396. package/dist/esm/core/resources/rmm/useResourceRMM.js +10 -3
  1397. package/dist/esm/core/resources/rmm/useResourceRMM.js.map +1 -1
  1398. package/dist/esm/core/resources/temporal-day-groups.frontend.utils.d.ts +22 -0
  1399. package/dist/esm/core/resources/temporal-day-groups.frontend.utils.d.ts.map +1 -0
  1400. package/dist/esm/core/resources/temporal-day-groups.frontend.utils.js +31 -0
  1401. package/dist/esm/core/resources/temporal-day-groups.frontend.utils.js.map +1 -0
  1402. package/dist/esm/core/resources/ui-behavior-presentation.frontend.utils.d.ts +36 -0
  1403. package/dist/esm/core/resources/ui-behavior-presentation.frontend.utils.d.ts.map +1 -0
  1404. package/dist/esm/core/resources/ui-behavior-presentation.frontend.utils.js +88 -0
  1405. package/dist/esm/core/resources/ui-behavior-presentation.frontend.utils.js.map +1 -0
  1406. package/dist/esm/core/resources/useBulkJobProgress.d.ts +6 -0
  1407. package/dist/esm/core/resources/useBulkJobProgress.d.ts.map +1 -1
  1408. package/dist/esm/core/resources/useBulkJobProgress.js +1 -0
  1409. package/dist/esm/core/resources/useBulkJobProgress.js.map +1 -1
  1410. package/dist/esm/core/resources/useCollectionFilterPresetScope.d.ts +14 -0
  1411. package/dist/esm/core/resources/useCollectionFilterPresetScope.d.ts.map +1 -0
  1412. package/dist/esm/core/resources/useCollectionFilterPresetScope.js +29 -0
  1413. package/dist/esm/core/resources/useCollectionFilterPresetScope.js.map +1 -0
  1414. package/dist/esm/core/resources/useHostlessResourceNavigation.d.ts +7 -6
  1415. package/dist/esm/core/resources/useHostlessResourceNavigation.d.ts.map +1 -1
  1416. package/dist/esm/core/resources/useHostlessResourceNavigation.js +35 -21
  1417. package/dist/esm/core/resources/useHostlessResourceNavigation.js.map +1 -1
  1418. package/dist/esm/core/resources/useOperationDirectExecution.d.ts.map +1 -1
  1419. package/dist/esm/core/resources/useOperationDirectExecution.js +25 -10
  1420. package/dist/esm/core/resources/useOperationDirectExecution.js.map +1 -1
  1421. package/dist/esm/core/resources/useRecordSharing.d.ts +58 -0
  1422. package/dist/esm/core/resources/useRecordSharing.d.ts.map +1 -0
  1423. package/dist/esm/core/resources/useRecordSharing.js +220 -0
  1424. package/dist/esm/core/resources/useRecordSharing.js.map +1 -0
  1425. package/dist/esm/core/resources/useResourceLabels.d.ts +4 -1
  1426. package/dist/esm/core/resources/useResourceLabels.d.ts.map +1 -1
  1427. package/dist/esm/core/resources/useResourceLabels.js +31 -32
  1428. package/dist/esm/core/resources/useResourceLabels.js.map +1 -1
  1429. package/dist/esm/core/resources/useResourceOperationActions.d.ts +23 -4
  1430. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  1431. package/dist/esm/core/resources/useResourceOperationActions.js +219 -51
  1432. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  1433. package/dist/esm/core/resources/useResourceOperationOutcomeEmitter.d.ts +10 -1
  1434. package/dist/esm/core/resources/useResourceOperationOutcomeEmitter.d.ts.map +1 -1
  1435. package/dist/esm/core/resources/useResourceOperationOutcomeEmitter.js +7 -2
  1436. package/dist/esm/core/resources/useResourceOperationOutcomeEmitter.js.map +1 -1
  1437. package/dist/esm/core/resources/useResourceOperationSurface.d.ts +5 -5
  1438. package/dist/esm/core/resources/useResourceOperationSurface.d.ts.map +1 -1
  1439. package/dist/esm/core/resources/useResourceOperationSurface.js +5 -4
  1440. package/dist/esm/core/resources/useResourceOperationSurface.js.map +1 -1
  1441. package/dist/esm/core/resources/useResourceSelection.d.ts +6 -0
  1442. package/dist/esm/core/resources/useResourceSelection.d.ts.map +1 -1
  1443. package/dist/esm/core/resources/useResourceSelection.js.map +1 -1
  1444. package/dist/esm/core/resources/utils/operation-enabled-condition.frontend.utils.d.ts +47 -0
  1445. package/dist/esm/core/resources/utils/operation-enabled-condition.frontend.utils.d.ts.map +1 -1
  1446. package/dist/esm/core/resources/utils/operation-enabled-condition.frontend.utils.js +117 -4
  1447. package/dist/esm/core/resources/utils/operation-enabled-condition.frontend.utils.js.map +1 -1
  1448. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  1449. package/dist/esm/core/runtime/AppRouter.js +5 -2
  1450. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  1451. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +10 -1
  1452. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  1453. package/dist/esm/core/runtime/ApplicationMainContext.js +17 -2
  1454. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  1455. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +5 -0
  1456. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  1457. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +4 -2
  1458. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  1459. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -3
  1460. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  1461. package/dist/esm/core/runtime/routes.frontend.definitions.js +23 -7
  1462. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  1463. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  1464. package/dist/esm/core/runtime/start-application.frontend.service.js +3 -1
  1465. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  1466. package/dist/esm/core/scope/AppScopeContext.d.ts +7 -2
  1467. package/dist/esm/core/scope/AppScopeContext.d.ts.map +1 -1
  1468. package/dist/esm/core/scope/AppScopeContext.js +56 -10
  1469. package/dist/esm/core/scope/AppScopeContext.js.map +1 -1
  1470. package/dist/esm/core/security/ApplicationRoleTablesContext.d.ts +23 -0
  1471. package/dist/esm/core/security/ApplicationRoleTablesContext.d.ts.map +1 -0
  1472. package/dist/esm/core/security/ApplicationRoleTablesContext.js +27 -0
  1473. package/dist/esm/core/security/ApplicationRoleTablesContext.js.map +1 -0
  1474. package/dist/esm/core/security/AuthSessionContext.d.ts +26 -8
  1475. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  1476. package/dist/esm/core/security/AuthSessionContext.js +81 -17
  1477. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  1478. package/dist/esm/core/security/RouteOrganizationDecisionContext.d.ts +13 -0
  1479. package/dist/esm/core/security/RouteOrganizationDecisionContext.d.ts.map +1 -0
  1480. package/dist/esm/core/security/RouteOrganizationDecisionContext.js +12 -0
  1481. package/dist/esm/core/security/RouteOrganizationDecisionContext.js.map +1 -0
  1482. package/dist/esm/core/security/StepUpAuthContext.js +5 -5
  1483. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  1484. package/dist/esm/core/security/UserOrgsContext.d.ts +13 -0
  1485. package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
  1486. package/dist/esm/core/security/UserOrgsContext.js +272 -103
  1487. package/dist/esm/core/security/UserOrgsContext.js.map +1 -1
  1488. package/dist/esm/core/security/auth-redirect.frontend.utils.d.ts +1 -0
  1489. package/dist/esm/core/security/auth-redirect.frontend.utils.d.ts.map +1 -1
  1490. package/dist/esm/core/security/auth-redirect.frontend.utils.js +3 -2
  1491. package/dist/esm/core/security/auth-redirect.frontend.utils.js.map +1 -1
  1492. package/dist/esm/core/security/effective-permissions.frontend.utils.d.ts +43 -0
  1493. package/dist/esm/core/security/effective-permissions.frontend.utils.d.ts.map +1 -0
  1494. package/dist/esm/core/security/effective-permissions.frontend.utils.js +73 -0
  1495. package/dist/esm/core/security/effective-permissions.frontend.utils.js.map +1 -0
  1496. package/dist/esm/core/security/route-organization-access.frontend.utils.d.ts +175 -5
  1497. package/dist/esm/core/security/route-organization-access.frontend.utils.d.ts.map +1 -1
  1498. package/dist/esm/core/security/route-organization-access.frontend.utils.js +147 -6
  1499. package/dist/esm/core/security/route-organization-access.frontend.utils.js.map +1 -1
  1500. package/dist/esm/core/security/security.frontend.schemas.d.ts +17 -5
  1501. package/dist/esm/core/security/security.frontend.schemas.d.ts.map +1 -1
  1502. package/dist/esm/core/security/security.frontend.schemas.js +0 -5
  1503. package/dist/esm/core/security/security.frontend.schemas.js.map +1 -1
  1504. package/dist/esm/core/security/useApplicationRoleTables.d.ts +3 -0
  1505. package/dist/esm/core/security/useApplicationRoleTables.d.ts.map +1 -0
  1506. package/dist/esm/core/security/useApplicationRoleTables.js +11 -0
  1507. package/dist/esm/core/security/useApplicationRoleTables.js.map +1 -0
  1508. package/dist/esm/core/security/useRouteOrganizationAccess.d.ts +9 -0
  1509. package/dist/esm/core/security/useRouteOrganizationAccess.d.ts.map +1 -1
  1510. package/dist/esm/core/security/useRouteOrganizationAccess.js +31 -10
  1511. package/dist/esm/core/security/useRouteOrganizationAccess.js.map +1 -1
  1512. package/dist/esm/core/security/useRouteOrganizationFollow.d.ts +24 -0
  1513. package/dist/esm/core/security/useRouteOrganizationFollow.d.ts.map +1 -0
  1514. package/dist/esm/core/security/useRouteOrganizationFollow.js +76 -0
  1515. package/dist/esm/core/security/useRouteOrganizationFollow.js.map +1 -0
  1516. package/dist/esm/core/ui/UIContext.d.ts +25 -2
  1517. package/dist/esm/core/ui/UIContext.d.ts.map +1 -1
  1518. package/dist/esm/core/ui/UIContext.js +49 -37
  1519. package/dist/esm/core/ui/UIContext.js.map +1 -1
  1520. package/dist/esm/core/ui/design-token.utils.d.ts +0 -11
  1521. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  1522. package/dist/esm/core/ui/design-token.utils.js +51 -83
  1523. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  1524. package/dist/esm/core/ui/themes/default.theme.d.ts.map +1 -1
  1525. package/dist/esm/core/ui/themes/default.theme.js +151 -59
  1526. package/dist/esm/core/ui/themes/default.theme.js.map +1 -1
  1527. package/dist/esm/core/ui/themes/focus-indicator.d.ts +221 -0
  1528. package/dist/esm/core/ui/themes/focus-indicator.d.ts.map +1 -0
  1529. package/dist/esm/core/ui/themes/focus-indicator.js +229 -0
  1530. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -0
  1531. package/dist/esm/core/ui/ui.frontend.schemas.d.ts +7 -0
  1532. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  1533. package/dist/esm/core/ui/useThemePreferenceControl.d.ts.map +1 -1
  1534. package/dist/esm/core/ui/useThemePreferenceControl.js +1 -2
  1535. package/dist/esm/core/ui/useThemePreferenceControl.js.map +1 -1
  1536. package/dist/esm/index.d.ts +34 -0
  1537. package/dist/esm/index.d.ts.map +1 -1
  1538. package/dist/esm/index.js +45 -7
  1539. package/dist/esm/index.js.map +1 -1
  1540. package/dist/esm/tailwind/index.d.ts.map +1 -1
  1541. package/dist/esm/tailwind/index.js +3 -0
  1542. package/dist/esm/tailwind/index.js.map +1 -1
  1543. package/dist/esm/testing/app-shell-placement-coverage.d.ts.map +1 -1
  1544. package/dist/esm/testing/app-shell-placement-coverage.js +6 -2
  1545. package/dist/esm/testing/app-shell-placement-coverage.js.map +1 -1
  1546. package/dist/esm/testing/mock-builders.d.ts +13 -1
  1547. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  1548. package/dist/esm/testing/mock-builders.js +35 -1
  1549. package/dist/esm/testing/mock-builders.js.map +1 -1
  1550. package/dist/esm/testing/rmm-helpers.d.ts +5 -3
  1551. package/dist/esm/testing/rmm-helpers.d.ts.map +1 -1
  1552. package/dist/esm/testing/rmm-helpers.js +3 -0
  1553. package/dist/esm/testing/rmm-helpers.js.map +1 -1
  1554. package/dist/esm/testing/test-providers.d.ts.map +1 -1
  1555. package/dist/esm/testing/test-providers.js +3 -0
  1556. package/dist/esm/testing/test-providers.js.map +1 -1
  1557. package/package.json +7 -6
  1558. package/dist/esm/components/flows-actors/flow-node.d.ts +0 -28
  1559. package/dist/esm/components/flows-actors/flow-node.d.ts.map +0 -1
  1560. package/dist/esm/components/flows-actors/flow-node.js +0 -115
  1561. package/dist/esm/components/flows-actors/flow-node.js.map +0 -1
  1562. package/dist/esm/components/resources/CollectionSelectionHeaderRail.d.ts +0 -30
  1563. package/dist/esm/components/resources/CollectionSelectionHeaderRail.d.ts.map +0 -1
  1564. package/dist/esm/components/resources/CollectionSelectionHeaderRail.js +0 -17
  1565. package/dist/esm/components/resources/CollectionSelectionHeaderRail.js.map +0 -1
  1566. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceFieldDisplayPreset_ResourceReference_Default.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxH,OAAO,EAAE,qBAA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,CAAC;IAED,gCAAgC;IAChC,IAAI,CAAC,YAAY,IAAI,oBAAoB,KAAK,qBAAqB,CAAC,EAAE,EAAE,CAAC;QACvE,0CAA0C;QAC1C,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAC,qCAAqC,YACnE,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACrB,eAAM,SAAS,EAAC,mBAAmB,YAAE,MAAM,CAAC,CAAC,CAAC,GAAQ,CACvD,CAAC,CAAC,CAAC,CACF,aAAI,SAAS,EAAC,gCAAgC,YAC3C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAChB,aAAa,SAAS,EAAC,mBAAmB,YAAE,EAAE,IAArC,EAAE,CAAyC,CACrD,CAAC,GACC,CACN,GACG,CACP,CAAC;IACJ,CAAC;IAED,eAAe;IACf,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,cAAK,SAAS,EAAE,SAAS,YAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAO,CAAC;IACnE,CAAC;IAED,mCAAmC;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACD,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,gCAAgC,EAAE,SAAS,CAAC,YAC3D,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAChB,uBAAc,WAAW,CAAC,EAAE,CAAC,IAApB,EAAE,CAAwB,CACpC,CAAC,GACC,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * ResourceFieldDisplayPreset_ResourceReference_Default\n *\n * Displays relationship selectors by resolving target ids to human-readable labels.\n *\n * Callers may come from plain FK fields or from relationship-object display\n * bridges (`user`, `products`, ...). When the resource type is not passed\n * explicitly, the preset resolves it from relationship/FK metadata in the\n * frontend registry rather than from local naming guesses alone.\n */\n\nimport React, { useEffect, useState, useCallback, useMemo, useRef } from 'react';\nimport { z } from 'zod';\nimport { Link } from 'react-router-dom';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { Badge } from '~wildo-frontend-lib/components/data-display/badge';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { DEFAULT_FOREIGN_KEY_DISPLAY_MODE, ForeignKeyDisplayMode, getForeignKeyParams } from '@wildo-ai/zod-decorators';\nimport { FrontendComponentType, TextVariant } from '@wildo-ai/presets-components-models';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { FrontendResourceUtils, frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { pickPreferredOperationForCoreSemanticAddressability } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport { useResourceDisplayContext } from '~wildo-frontend-lib/components/data-display/automatic-displayer.utils';\nimport { useOptionalFormSchemaContext } from '~wildo-frontend-lib/components/form/useFormSchemaContext';\nimport { CoreResourceOperation, ParentDisplay, ResourcesConfigOperationsUrlsBuilderUtils } from '@wildo-ai/saas-models';\nimport { NavigationContentType, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { ResourceSummaryDisplayer } from '~wildo-frontend-lib/components/data-display/ResourceSummaryDisplayer';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport type { ResourceFieldDisplayPreset_ResourceReference_DefaultProps } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldDisplay_ResourceReference';\nimport {\n fetchResourceReferenceRecordAndLabel,\n normalizeResourceReferenceSelectionValue,\n} from '~wildo-frontend-lib/components/resources-fields/resource-reference/resource-reference.shared.utils';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { ResourceOperationFrontendSurface } from '@wildo-ai/saas-models';\n\n// =============================================================================\n// TYPES (internal)\n// =============================================================================\n\ninterface ResolvedForeignKey {\n id: string;\n label: string | null;\n /** Full fetched data for SUMMARY display mode rendering. */\n data?: Record<string, unknown>;\n error: string | null;\n isLoading: boolean;\n}\n\nfunction resolvePrePopulatedRecordIdentifier(params: {\n record: Record<string, unknown>;\n resourceType: string;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): string | undefined {\n const configuredFieldIdentifier = params.registry.resourceConfigurations?.[params.resourceType]?.resourceFieldIdentifier\n ?? params.registry.allResourceFieldIdentifiers?.[params.resourceType];\n const rawId = (configuredFieldIdentifier ? params.record[configuredFieldIdentifier] : undefined)\n ?? params.record._id\n ?? params.record.id;\n\n return typeof rawId === 'string' && rawId !== '' ? rawId : undefined;\n}\n\n// =============================================================================\n// COMPONENT IMPLEMENTATION\n// =============================================================================\n\n/**\n * A reference's resolved LABEL, set in the body text recipe.\n *\n * It was a bare `<span>`, which takes its size from whatever encloses the value: every other display\n * value is a `Text` (the string formatter's own output), so a reference printed at the page's root\n * size while the facts around it printed at the body size — measured on the workbench's Build plan\n * and Roadmap pages, where each linked requirement read a size larger than the text it sat among.\n * `as=\"span\"` because the label sits inside a link or a button, where a block `<p>` is not allowed.\n *\n * `TextVariant.INHERIT` because the COLOUR is the wrapper's: the link or button around the label\n * carries `text-primary`, and the default variant would paint the label in the foreground colour —\n * every linkable reference in every application would stop looking like a link.\n */\nfunction ReferenceLabel({ label }: { readonly label: string }): React.JSX.Element {\n return <Text as=\"span\" variant={TextVariant.INHERIT}>{label}</Text>;\n}\n\nexport const ResourceFieldDisplayPreset_ResourceReference_Default = ({\n fieldName,\n value,\n resourceType: resourceTypeProp,\n data: prePopulatedData,\n displayParams,\n labelFallback,\n schema,\n className,\n}: ResourceFieldDisplayPreset_ResourceReference_DefaultProps): React.JSX.Element => {\n const { registry, doOperation } = useResourceRegistry();\n const { emit } = useEventBus();\n const displayContext = useResourceDisplayContext();\n const formSchemaContext = useOptionalFormSchemaContext();\n\n /*\n * Target resolution precedence: an explicit prop (the dispatcher's per-record polymorphic\n * resolution) → the decorator's declared `referencedResourceType` (an FK named in its own\n * vocabulary — see the param's JSDoc) → the field-name map, which THROWS on a miss because an\n * unresolvable FK is a configuration error.\n */\n const declaredReferencedType = schema ? getForeignKeyParams(schema)?.referencedResourceType : undefined;\n const resourceType = resourceTypeProp\n || declaredReferencedType\n || FrontendResourceUtils.resolveResourceTypeForForeignKey(fieldName, schema, registry);\n\n const { t, formatDate, formatDateTime, isReady } = useI18n({ component: FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, resource: resourceType });\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n\n // Resolve contextual parameters for scoped FK READ calls.\n // Display path: AutomaticDisplayer already built contextualParameters from contextResourceIdentifiers.\n // Form path: FormSchemaContext provides contextResourceIdentifiers, build params from them.\n const scopedContextualParameters = useMemo(() => {\n // Display path — pre-built contextualParameters available\n if (displayContext?.contextualParameters && Object.keys(displayContext.contextualParameters).length > 0) {\n return displayContext.contextualParameters;\n }\n // Form path — build from FormSchemaContext's contextResourceIdentifiers\n if (formSchemaContext?.contextResourceIdentifiers) {\n return FrontendResourceUtils.buildContextualParameters(\n formSchemaContext.contextResourceIdentifiers, registry\n );\n }\n return {};\n }, [displayContext?.contextualParameters, formSchemaContext?.contextResourceIdentifiers, registry]);\n\n // State for resolved labels (drives rendering)\n const [resolvedFKs, setResolvedFKs] = useState<Map<string, ResolvedForeignKey>>(new Map());\n // Ref for non-reactive reads in callbacks/effects — avoids stale closure & dependency cycle.\n // Mutated in place for synchronous accuracy across concurrent calls within the same loop.\n const resolvedFKsRef = useRef(new Map<string, ResolvedForeignKey>());\n\n /** Update both ref (immediate, for concurrent call detection) and state (for rendering). */\n const trackResolvedFK = useCallback((id: string, entry: ResolvedForeignKey) => {\n resolvedFKsRef.current.set(id, entry);\n setResolvedFKs(new Map(resolvedFKsRef.current));\n }, []);\n\n // The fallback for a caller that supplies no display params at all — today the\n // relationship-object branch of `DisplayValueDispatcher`, which renders a related\n // record rather than a decorated FK field. It derives from the SAME named source the\n // FK metadata reader (`getForeignKeyUIDisplay`) falls back to, so an unconfigured\n // reference reads identically whichever branch reached this preset. Restating a\n // `ForeignKeyDisplayMode` member here is what previously made the two disagree: this\n // site said SUMMARY while the metadata reader said LABEL, and which one an app author\n // saw depended on the branch.\n const displayMode = displayParams?.mode ?? DEFAULT_FOREIGN_KEY_DISPLAY_MODE;\n\n // ── C1 (P5-02): Parent reference display mode reconciliation ──────────\n const parentRefConfig = displayContext?.parentReferenceConfig;\n\n const isParentReference = Boolean(\n parentRefConfig && resourceType && parentRefConfig.parentResourceType === resourceType\n );\n\n /**\n * Effective display mode after reconciliation with ParentDisplay enum:\n * - CONTEXT / BREADCRUMB → forces linkable, keeps current FK mode\n * - BADGE → renders as Badge component\n * - SUMMARY → renders as inline summary text\n * - NONE → suppresses the parent reference rendering\n * - Not a parent reference → uses the decorator-based displayMode as-is\n */\n const effectiveDisplayMode = useMemo<ForeignKeyDisplayMode | ParentDisplay>(() => {\n if (!isParentReference || !parentRefConfig) return displayMode;\n\n switch (parentRefConfig.displayMode) {\n case ParentDisplay.CONTEXT:\n case ParentDisplay.BREADCRUMB:\n return displayMode;\n case ParentDisplay.BADGE:\n case ParentDisplay.SUMMARY:\n case ParentDisplay.NONE:\n return parentRefConfig.displayMode;\n default: return displayMode;\n }\n }, [isParentReference, parentRefConfig, displayMode]);\n\n const isLinkable = useMemo(() => {\n if (isParentReference) {\n if (parentRefConfig?.showParentLink === false) {\n return false;\n }\n if (\n parentRefConfig?.displayMode === ParentDisplay.CONTEXT ||\n parentRefConfig?.displayMode === ParentDisplay.BREADCRUMB\n ) {\n return true;\n }\n }\n return displayParams?.linkable ?? true;\n }, [isParentReference, parentRefConfig, displayParams?.linkable]);\n const navigationZone = displayContext?.navigationZone ?? formSchemaContext?.navigationZone;\n\n // Normalize value to array\n const values = React.useMemo(() => {\n return normalizeResourceReferenceSelectionValue(value);\n }, [value]);\n\n // Check if pre-populated data is usable through the configured resource id field.\n const prePopulatedLabel = React.useMemo(() => {\n if (!prePopulatedData || typeof prePopulatedData !== 'object' || !resourceType) return null;\n\n // For single FK: prePopulatedData._id should match value\n // For array FK: prePopulatedData is not applicable (arrays need per-item population)\n if (Array.isArray(value)) return null;\n const prePopulatedId = resolvePrePopulatedRecordIdentifier({\n record: prePopulatedData,\n resourceType,\n registry,\n });\n if (!prePopulatedId || prePopulatedId !== value) return null;\n\n // An IDENTITY-ONLY object carries no label. A context read declared `ID_ONLY`, or a parent whose\n // fetch degraded, arrives as `{ _id }`, and labelling it would fall through to the id itself —\n // seeding an ObjectId as the \"resolved\" label and suppressing the fetch that would have found\n // the name (#579). Only content beyond the identity counts as pre-populated.\n const carriesContent = Object.entries(prePopulatedData as Record<string, unknown>)\n .some(([key, fieldValue]) => key !== '_id' && key !== 'id' && fieldValue !== null && fieldValue !== undefined && fieldValue !== prePopulatedId);\n if (!carriesContent) return null;\n\n return FrontendResourceUtils.computeFrontendResourceLabel({\n resourceType,\n registry,\n currentObject: prePopulatedData,\n t,\n formatDate,\n formatDateTime,\n });\n }, [prePopulatedData, resourceType, value, registry, t, formatDate, formatDateTime]);\n\n // ── B1 (P4-03): FK link URL infrastructure ───────────────────────────\n // Memoize route path selection for the referenced resource type when linkable.\n const fkLinkUrlInfo = useMemo(() => {\n if (!resourceType || !isLinkable) return null;\n\n const refResourceConfig = registry.resourceConfigurations[resourceType];\n if (!refResourceConfig) return null;\n\n // Gather parent context identifiers for route path matching\n // (display context or form context — same source as scopedContextualParameters)\n const parentContextIdentifiers: Record<string, string> = {};\n const contextIds = displayContext?.contextResourceIdentifiers || formSchemaContext?.contextResourceIdentifiers;\n if (contextIds) {\n for (const [resType, idOrObj] of Object.entries(contextIds)) {\n const idValue = typeof idOrObj === 'string' ? idOrObj : (idOrObj as { resourceId?: string })?.resourceId;\n if (idValue) parentContextIdentifiers[resType] = idValue;\n }\n }\n\n const currentContextResourceType = displayContext?.resourceType || formSchemaContext?.resourceType;\n const currentParentRequirements = currentContextResourceType && contextIds\n ? frontendResourceUtils.buildParentResourcesRequirements(\n currentContextResourceType,\n contextIds,\n registry,\n )\n : [];\n\n // The resource's own field identifier (e.g., 'userId' for USERS) — for URL param substitution\n const ownFieldIdentifier = registry.allResourceFieldIdentifiers?.[resourceType];\n\n return { refResourceConfig, parentContextIdentifiers, ownFieldIdentifier, currentParentRequirements };\n }, [\n resourceType,\n isLinkable,\n registry,\n displayContext?.contextResourceIdentifiers,\n displayContext?.resourceType,\n formSchemaContext?.contextResourceIdentifiers,\n formSchemaContext?.resourceType,\n ]);\n\n /**\n * Resolve a concrete link URL for a given FK value.\n * Builds scoped URLs like /organizations/org-123/users/user-456 instead of /USERS/user-456.\n */\n const resolveFkNavigationTarget = useCallback((id: string): {\n url: string;\n parentResourcesRequirements: ReturnType<typeof frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams>;\n readOp: FrontendResourceConfiguration_Operation;\n } | null => {\n if (!fkLinkUrlInfo || !resourceType) return null;\n\n const { refResourceConfig, parentContextIdentifiers, ownFieldIdentifier, currentParentRequirements } = fkLinkUrlInfo;\n\n // Add the FK's own resource type → ID for route matching\n const fullContextIdentifiers = { ...parentContextIdentifiers, [resourceType]: id };\n const contextualParameters = {\n ...scopedContextualParameters,\n ...(ownFieldIdentifier ? { [ownFieldIdentifier]: id } : {}),\n };\n const readOp = pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig: refResourceConfig,\n operations: refResourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: true,\n requireFrontendAddressable: true,\n contextResourceIdentifiers: fullContextIdentifiers,\n contextualParameters,\n });\n if (!readOp) return null;\n\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(\n refResourceConfig,\n readOp,\n registry.allResourceFieldIdentifiers,\n );\n if (routePaths.length === 0) return null;\n\n try {\n const matchingPath = frontendResourceUtils.selectMatchingRoutePath(\n routePaths,\n fullContextIdentifiers,\n resourceType,\n ownFieldIdentifier,\n currentParentRequirements,\n registry.allResourceFieldIdentifiers,\n );\n if (!matchingPath?.url) return null;\n const targetParentResourcesRequirements = frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n matchingPath.parameters ?? [],\n resourceType,\n registry,\n );\n\n // Build field identifiers for URL parameter substitution\n const fieldIdentifiers: Record<string, string> = {};\n // Parent field identifiers from scoped contextual parameters\n for (const [key, val] of Object.entries(scopedContextualParameters)) {\n if (val !== undefined && val !== null) fieldIdentifiers[key] = String(val);\n }\n // Resource's own field identifier → FK value\n if (ownFieldIdentifier) {\n fieldIdentifiers[ownFieldIdentifier] = id;\n }\n\n const resolved = NavigationUtils.resolveUrlPath(matchingPath.url, fieldIdentifiers);\n // Only return if fully resolved (no remaining :param placeholders)\n if (resolved && !NavigationUtils.hasUnresolvedPlaceholders(resolved)) {\n return {\n url: resolved,\n parentResourcesRequirements: targetParentResourcesRequirements,\n readOp,\n };\n }\n } catch {\n // selectMatchingRoutePath may throw — graceful fallback\n }\n\n return null;\n }, [fkLinkUrlInfo, registry, resourceType, scopedContextualParameters]);\n\n /**\n * The OVERLAY fallback — a reference whose target READ is `EMBEDDED` (decided 2026-09-01).\n *\n * An EMBEDDED read has no route by contract (\"rendered within a host — overlay/drill-in when\n * standalone\"), so the URL resolver above answers null and the reference used to render as a\n * DEAD label. The navigation layer already escalates EMBEDDED content to an overlay\n * (`navigation-policy-resolver`: EMBEDDED never becomes THE PAGE) — all this resolver adds is\n * the read operation to hand it. API_ONLY stays dead on purpose: headless means no interface.\n */\n const resolveFkOverlayTarget = useCallback((id: string): {\n readOp: FrontendResourceConfiguration_Operation;\n } | null => {\n if (!fkLinkUrlInfo || !resourceType) return null;\n const { refResourceConfig, parentContextIdentifiers, ownFieldIdentifier } = fkLinkUrlInfo;\n const fullContextIdentifiers = { ...parentContextIdentifiers, [resourceType]: id };\n const readOp = pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig: refResourceConfig,\n operations: refResourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: true,\n requireFrontendAddressable: false,\n contextResourceIdentifiers: fullContextIdentifiers,\n contextualParameters: {\n ...scopedContextualParameters,\n ...(ownFieldIdentifier ? { [ownFieldIdentifier]: id } : {}),\n },\n });\n if (!readOp) return null;\n if (readOp.operationFrontendConfig?.surface !== ResourceOperationFrontendSurface.EMBEDDED) return null;\n return { readOp };\n }, [fkLinkUrlInfo, registry, resourceType, scopedContextualParameters]);\n\n // Resolve a single FK value via API\n const resolveForeignKey = useCallback(async (id: string) => {\n if (!resourceType || !id) return;\n\n // Skip if already resolved or loading (read from ref for synchronous accuracy)\n const existing = resolvedFKsRef.current.get(id);\n if (existing && (existing.label !== null || existing.isLoading)) {\n return;\n }\n\n // Mark as loading — ref update is immediate for concurrent call detection\n trackResolvedFK(id, { id, label: null, error: null, isLoading: true });\n\n try {\n const { record: fetchedRecord, label } = await fetchResourceReferenceRecordAndLabel({\n resourceType,\n id,\n registry,\n doOperation,\n contextualParameters: scopedContextualParameters,\n t,\n formatDate,\n formatDateTime,\n });\n\n trackResolvedFK(id, { id, label, data: fetchedRecord, error: null, isLoading: false });\n } catch (err) {\n // Shown as the id's tooltip, so resolved to localized text — `extractErrorInfo(err).message` was the\n // backend's i18n REFERENCE (#1160).\n trackResolvedFK(id, { id, label: null, error: toUserFacingErrorMessage(err), isLoading: false });\n }\n }, [resourceType, registry, doOperation, trackResolvedFK, t, formatDate, formatDateTime, scopedContextualParameters, fkLinkUrlInfo, toUserFacingErrorMessage]);\n\n // Resolve all FK values on mount/change — skip API when pre-populated data is available\n useEffect(() => {\n if (!resourceType || values.length === 0) return;\n\n // Only resolve if mode requires it — skip for ID display and suppressed parent reference\n if (effectiveDisplayMode === ForeignKeyDisplayMode.ID || effectiveDisplayMode === ParentDisplay.NONE) return;\n\n // If pre-populated label is available for single value, seed it into resolvedFKs\n if (prePopulatedLabel && values.length === 1 && !resolvedFKsRef.current.has(values[0])) {\n trackResolvedFK(values[0], {\n id: values[0],\n label: prePopulatedLabel,\n data: prePopulatedData as Record<string, unknown> | undefined,\n error: null,\n isLoading: false,\n });\n return;\n }\n\n values.forEach(id => {\n if (id && !resolvedFKsRef.current.has(id)) {\n resolveForeignKey(id);\n }\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps -- resolvedFKsRef used for non-reactive reads; resolvedFKs state intentionally excluded to break re-render cycle\n }, [resourceType, values, effectiveDisplayMode, resolveForeignKey, trackResolvedFK, prePopulatedLabel]);\n\n /**\n * Wrap content in a link/clickable element when linkable.\n * Parent references use onNavigateToParent (controller-managed) with URL fallback.\n */\n const wrapWithLink = useCallback((id: string, content: React.ReactNode): React.ReactNode => {\n if (!isLinkable || !resourceType) return content;\n\n const navigationTarget = resolveFkNavigationTarget(id);\n const shouldUseControllerNavigation = Boolean(navigationZone && navigationTarget?.readOp && navigationTarget?.url);\n\n const handleReferenceNavigation = (e: React.MouseEvent) => {\n if (\n !shouldUseControllerNavigation\n || !navigationTarget\n || e.button !== 0\n || e.ctrlKey\n || e.metaKey\n || e.shiftKey\n || e.altKey\n ) {\n return;\n }\n\n const fullContextIdentifiers = {\n ...fkLinkUrlInfo.parentContextIdentifiers,\n [resourceType]: id,\n };\n const readContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation: navigationTarget.readOp,\n contextResourceIdentifiers: fullContextIdentifiers,\n parentResourcesRequirements: navigationTarget.parentResourcesRequirements,\n });\n\n e.preventDefault();\n emit(FrontendEvents.NAVIGATION_REQUEST, {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: readContext,\n },\n initiator: { sourceZone: navigationZone },\n urlPath: navigationTarget.url,\n });\n };\n\n if (isParentReference && parentRefConfig?.onNavigateToParent) {\n const handleClick = (e: React.MouseEvent) => {\n if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;\n const handled = parentRefConfig.onNavigateToParent!(id);\n if (handled !== false) {\n e.preventDefault();\n }\n };\n\n if (navigationTarget?.url) {\n return (\n <Link to={navigationTarget.url} className=\"text-primary hover:underline\" onClick={handleClick}>\n {content}\n </Link>\n );\n }\n return (\n <button\n type=\"button\"\n /*\n * `block`, not the button default `inline-block` — and `inline` cannot work here.\n *\n * An inline-block's baseline is the baseline of its LAST line box, so inside a bulleted\n * list item a two-line reference dragged the ::marker down to its final line (measured on\n * the workbench's Requirements page, where every multi-valued \"Serves jobs\" link wraps).\n * The obvious fix, `display: inline`, is silently overridden: browsers fix up `inline` on\n * form controls to `inline-block` (verified via CDP — the cascade applied `.inline` and\n * the computed value stayed `inline-block`), so the class sat in the DOM doing nothing.\n * A BLOCK child is the shape that works: an outside marker aligns with the first line box\n * of a list item's block content, exactly like `<li><p>…</p></li>`.\n */\n className=\"block text-primary hover:underline bg-transparent border-none p-0 cursor-pointer text-left\"\n onClick={() => {\n parentRefConfig.onNavigateToParent!(id);\n }}\n >\n {content}\n </button>\n );\n }\n\n if (navigationTarget?.url) {\n return (\n <Link to={navigationTarget.url} className=\"text-primary hover:underline\" onClick={handleReferenceNavigation}>\n {content}\n </Link>\n );\n }\n\n /*\n * No route — the EMBEDDED-read overlay fallback (see `resolveFkOverlayTarget`).\n *\n * The source zone DEFAULTS to PRIMARY rather than gating on a context-provided zone: a\n * reference rendered by a display host that never plumbed `navigationZone` (an artifact\n * document, a composite view) would otherwise render its resolved label as dead text — the\n * silent-degradation shape this fallback exists to remove. PRIMARY is where such hosts live.\n */\n const overlayTarget = resolveFkOverlayTarget(id);\n if (overlayTarget) {\n const openOverlay = (e: React.MouseEvent) => {\n if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;\n e.preventDefault();\n const readContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation: overlayTarget.readOp,\n contextResourceIdentifiers: {\n ...fkLinkUrlInfo?.parentContextIdentifiers,\n [resourceType]: id,\n },\n parentResourcesRequirements: fkLinkUrlInfo?.currentParentRequirements ?? [],\n });\n // No urlPath on purpose: an overlay is not a place — nothing to deep-link, nothing to pop.\n emit(FrontendEvents.NAVIGATION_REQUEST, {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: readContext,\n },\n initiator: { sourceZone: navigationZone ?? NavigationZone.PRIMARY },\n });\n };\n return (\n <button\n type=\"button\"\n /*\n * `block`, not the button default `inline-block` — and `inline` cannot work here.\n *\n * An inline-block's baseline is the baseline of its LAST line box, so inside a bulleted\n * list item a two-line reference dragged the ::marker down to its final line (measured on\n * the workbench's Requirements page, where every multi-valued \"Serves jobs\" link wraps).\n * The obvious fix, `display: inline`, is silently overridden: browsers fix up `inline` on\n * form controls to `inline-block` (verified via CDP — the cascade applied `.inline` and\n * the computed value stayed `inline-block`), so the class sat in the DOM doing nothing.\n * A BLOCK child is the shape that works: an outside marker aligns with the first line box\n * of a list item's block content, exactly like `<li><p>…</p></li>`.\n */\n className=\"block text-primary hover:underline bg-transparent border-none p-0 cursor-pointer text-left\"\n onClick={openOverlay}\n >\n {content}\n </button>\n );\n }\n\n return content;\n }, [emit, fkLinkUrlInfo, isLinkable, isParentReference, navigationZone, parentRefConfig, resolveFkNavigationTarget, resolveFkOverlayTarget, resourceType]);\n\n // Render a single value\n const renderValue = useCallback((id: string) => {\n if (effectiveDisplayMode === ForeignKeyDisplayMode.ID) {\n return <span className=\"font-mono text-sm\">{id}</span>;\n }\n\n if (effectiveDisplayMode === ParentDisplay.NONE) {\n return null;\n }\n\n const resolved = resolvedFKs.get(id);\n const isLoading = resolved?.isLoading ?? false;\n\n if (isLoading || !resolved) {\n return <Skeleton className=\"h-4 w-24 inline-block\" />;\n }\n\n if (resolved.error) {\n // A FAILED resolution is exactly where the record's own readable copy earns its keep — more\n // so than an empty one. Measured 2026-09-19 on the member directory: reading another user's\n // record answers 403 for most rows, so this branch (not the empty-label one below) is what\n // printed `6aaba6b3a2d3b6b0ad61f33e` in the USER column.\n //\n // The error is NOT swallowed: it stays on `title`, so the failure is still discoverable, and a\n // field that declares no `labelFallbackField` still shows the id exactly as before. What\n // changes is only that a readable value present on the row is preferred to an opaque one.\n if (labelFallback) {\n return (\n <span className=\"text-muted-foreground text-sm\" title={resolved.error}>\n {labelFallback}\n </span>\n );\n }\n return (\n <span className=\"text-muted-foreground font-mono text-sm\" title={resolved.error}>\n {id}\n </span>\n );\n }\n\n // The id is the LAST resort, not the first. A record carrying a readable copy of the reference\n // (`labelFallbackField`) shows that instead — which is what keeps a member directory readable\n // for people who have no profile for a label to be built from.\n /*\n * Named from the fetched record with the CURRENT `t`, not the label frozen at fetch time (#1851 review). A\n * record whose name reads another label section (a product named by `billing_products.<key>.name`) could be\n * fetched before those words arrived, and the stored label then kept its key for the life of the component.\n * The stored label is used only when there is no stored record (`data`) or the resource declares no label\n * strategy: such a name cannot change with the words, and the resolver would log its configuration gap on every\n * render. A strategy that returns an empty name for some record also logs on each render; accepted, since\n * that is a labelling defect in the strategy and the log names it.\n */\n const hasLabelStrategy = !!resourceType\n && !!(registry.resourceConfigurations?.[resourceType] as AnyFrontendResourceConfiguration | undefined)?.frontendConfiguration?.getFrontendResourceLabel;\n const currentLabel = resolved.data && resourceType && hasLabelStrategy\n ? FrontendResourceUtils.computeFrontendResourceLabel({ resourceType, registry, currentObject: resolved.data, t, formatDate, formatDateTime })\n : null;\n const label = currentLabel || resolved.label || labelFallback || id;\n\n if (effectiveDisplayMode === ParentDisplay.BADGE) {\n const handleBadgeClick = isLinkable && parentRefConfig?.onNavigateToParent\n ? () => parentRefConfig.onNavigateToParent!(id)\n : undefined;\n return (\n <Badge\n variant=\"secondary\"\n className={handleBadgeClick ? 'cursor-pointer hover:opacity-[var(--opacity-hover)]' : undefined}\n onClick={handleBadgeClick}\n >\n {label}\n </Badge>\n );\n }\n\n // \"summary\" mode — ParentDisplay.SUMMARY and ForeignKeyDisplayMode.SUMMARY share\n // the same string value, so we distinguish by isParentReference.\n if (effectiveDisplayMode === ParentDisplay.SUMMARY) {\n if (isParentReference) {\n const handleInlineClick = isLinkable && parentRefConfig?.onNavigateToParent\n ? () => parentRefConfig.onNavigateToParent!(id)\n : undefined;\n return (\n <span\n className={`text-muted-foreground text-sm ${handleInlineClick ? 'cursor-pointer hover:text-foreground transition-colors' : ''}`}\n onClick={handleInlineClick}\n role={handleInlineClick ? 'button' : undefined}\n tabIndex={handleInlineClick ? 0 : undefined}\n onKeyDown={handleInlineClick ? (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleInlineClick(); }} : undefined}\n >\n {label}\n </span>\n );\n }\n\n // FK field SUMMARY mode — render ResourceSummaryDisplayer\n if (resolved.data && resourceType) {\n const refConfig = registry.resourceConfigurations[resourceType];\n const summarySchema = refConfig?.mainSchema;\n if (summarySchema) {\n const summaryContent = (\n <ResourceSummaryDisplayer\n resourceType={resourceType}\n schema={summarySchema}\n data={resolved.data}\n // The referenced record's NAME. The field's own label names the FIELD (\"Target todo\"),\n // never the record, and this card REPLACES the one-line label — so without it nothing on\n // screen says which record is referenced. Measured on Wonder Todos: a relationship row\n // read \"Blocks → Pending –\", the blocked todo's badges with no title. The edit picker\n // passes its option label for the same reason.\n primaryLabel={label}\n />\n );\n return isLinkable ? wrapWithLink(id, summaryContent) : summaryContent;\n }\n }\n\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }\n\n // ForeignKeyDisplayMode.LABEL — resolved label, optionally linkable\n if (effectiveDisplayMode === ForeignKeyDisplayMode.LABEL) {\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }\n\n // Fallback — render as label\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }, [effectiveDisplayMode, resolvedFKs, resourceType, isParentReference, parentRefConfig, wrapWithLink, registry, isLinkable, t, formatDate, formatDateTime, labelFallback]);\n\n // Handle empty values\n if (values.length === 0) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n\n if (effectiveDisplayMode === ParentDisplay.NONE) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n\n // Unknown resource type warning\n if (!resourceType && effectiveDisplayMode !== ForeignKeyDisplayMode.ID) {\n // Fall back to showing IDs with a warning\n return (\n <div className={className} title=\"Unknown resource type - showing IDs\">\n {values.length === 1 ? (\n <span className=\"font-mono text-sm\">{values[0]}</span>\n ) : (\n <ul className=\"list-disc ps-4 space-y-item-xs\">\n {values.map(id => (\n <li key={id} className=\"font-mono text-sm\">{id}</li>\n ))}\n </ul>\n )}\n </div>\n );\n }\n\n // Single value\n if (values.length === 1) {\n return <div className={className}>{renderValue(values[0])}</div>;\n }\n\n // Multiple values - render as list\n/*\n * `list-outside` (the default) with a start PADDING, NOT `list-inside`.\n *\n * `list-inside` puts the marker into the item's INLINE FLOW, where it has to share the first line\n * with the item's content — and the content here is a reference button, which is `inline-block`. An\n * inline-block box cannot break across lines, so as soon as its label is longer than the remaining\n * first line it wraps as ONE unit to the next, leaving the bullet stranded alone on a line of its\n * own. Measured on the workbench's Requirements page: every \"Serves jobs\" entry rendered as a bare\n * dot above its link, while \"Serves ICPs\" looked fine purely because it had ONE short-labelled\n * value — the single-value branch above renders no list at all, and a short label happened to fit.\n *\n * Outside markers sit in the margin and take no part in the inline flow, so the content may wrap\n * freely and the marker stays on the first line.\n *\n * PADDING rather than the `ms-4` margin this used until 2026-09-25, because the list is the value's\n * ROOT and a vertical field chrome stretches its children to `w-full`: a margin then pushes a\n * full-width box 1rem past its column, measured on the workbench's Build plan page where every\n * \"Serves functional requirements\" link ran to the pane's edge. An outside marker is drawn in the\n * list's padding box, so `ps-4` keeps the same inset inside the width instead of beyond it.\n */\n return (\n <ul className={cn('list-disc ps-4 space-y-item-xs', className)}>\n {values.map(id => (\n <li key={id}>{renderValue(id)}</li>\n ))}\n </ul>\n );\n};\n"]}
1
+ {"version":3,"file":"ResourceFieldDisplayPreset_ResourceReference_Default.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAChH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAC1H,OAAO,EAAE,mDAAmD,EAAE,MAAM,2EAA2E,CAAC;AAChJ,OAAO,EAAE,qBAAqB,EAAE,MAAM,2EAA2E,CAAC;AAClH,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,uEAAuE,CAAC;AAChJ,OAAO,EAAE,uCAAuC,EAAE,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,MAAM,CAAC,CAAC,CAAC,GAAQ,CACvD,CAAC,CAAC,CAAC,CACF,aAAI,SAAS,EAAC,gCAAgC,YAC3C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAChB,aAAa,SAAS,EAAC,mBAAmB,YAAE,EAAE,IAArC,EAAE,CAAyC,CACrD,CAAC,GACC,CACN,GACG,CACP,CAAC;IACJ,CAAC;IAED,eAAe;IACf,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,cAAK,SAAS,EAAE,SAAS,YAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAO,CAAC;IACnE,CAAC;IAED,mCAAmC;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACD,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,gCAAgC,EAAE,SAAS,CAAC,YAC3D,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAChB,uBAAc,WAAW,CAAC,EAAE,CAAC,IAApB,EAAE,CAAwB,CACpC,CAAC,GACC,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * ResourceFieldDisplayPreset_ResourceReference_Default\n *\n * Displays relationship selectors by resolving target ids to human-readable labels.\n *\n * Callers may come from plain FK fields or from relationship-object display\n * bridges (`user`, `products`, ...). When the resource type is not passed\n * explicitly, the preset resolves it from relationship/FK metadata in the\n * frontend registry rather than from local naming guesses alone.\n */\n\nimport React, { useEffect, useState, useCallback, useMemo, useRef } from 'react';\nimport { z } from 'zod';\nimport { Link } from 'react-router-dom';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { Badge } from '~wildo-frontend-lib/components/data-display/badge';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { DEFAULT_FOREIGN_KEY_DISPLAY_MODE, ForeignKeyDisplayMode } from '@wildo-ai/zod-decorators';\nimport { FrontendComponentType, TextVariant } from '@wildo-ai/presets-components-models';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { FocusIndicatorShape, focusIndicatorClasses } from '~wildo-frontend-lib/core/ui/themes/focus-indicator';\nimport { FrontendResourceUtils, frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { pickPreferredOperationForCoreSemanticAddressability } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport { scopeReferencedRecord } from '~wildo-frontend-lib/core/resources/referenced-record-scope.frontend.utils';\nimport { useResourceDisplayContext, withoutHiddenParentReference } from '~wildo-frontend-lib/components/data-display/automatic-displayer.utils';\nimport { resolveForeignKeyReferencedResourceType } from '~wildo-frontend-lib/components/data-display/reference-display-target';\nimport { useOptionalFormSchemaContext } from '~wildo-frontend-lib/components/form/useFormSchemaContext';\nimport { CoreResourceOperation, ParentDisplay, ResourcesConfigOperationsUrlsBuilderUtils } from '@wildo-ai/saas-models';\nimport { NavigationContentType, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { ResourceSummaryDisplayer } from '~wildo-frontend-lib/components/data-display/ResourceSummaryDisplayer';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport type { ResourceFieldDisplayPreset_ResourceReference_DefaultProps } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldDisplay_ResourceReference';\nimport {\n fetchResourceReferenceRecordAndLabel,\n normalizeResourceReferenceSelectionValue,\n} from '~wildo-frontend-lib/components/resources-fields/resource-reference/resource-reference.shared.utils';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { ResourceOperationFrontendSurface } from '@wildo-ai/saas-models';\n\n// =============================================================================\n// TYPES (internal)\n// =============================================================================\n\ninterface ResolvedForeignKey {\n id: string;\n label: string | null;\n /** Full fetched data for SUMMARY display mode rendering. */\n data?: Record<string, unknown>;\n error: string | null;\n isLoading: boolean;\n}\n\nfunction resolvePrePopulatedRecordIdentifier(params: {\n record: Record<string, unknown>;\n resourceType: string;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): string | undefined {\n const configuredFieldIdentifier = params.registry.resourceConfigurations?.[params.resourceType]?.resourceFieldIdentifier\n ?? params.registry.allResourceFieldIdentifiers?.[params.resourceType];\n const rawId = (configuredFieldIdentifier ? params.record[configuredFieldIdentifier] : undefined)\n ?? params.record._id\n ?? params.record.id;\n\n return typeof rawId === 'string' && rawId !== '' ? rawId : undefined;\n}\n\n// =============================================================================\n// COMPONENT IMPLEMENTATION\n// =============================================================================\n\n/**\n * A reference's resolved LABEL, set in the body text recipe.\n *\n * It was a bare `<span>`, which takes its size from whatever encloses the value: every other display\n * value is a `Text` (the string formatter's own output), so a reference printed at the page's root\n * size while the facts around it printed at the body size — measured on the workbench's Build plan\n * and Roadmap pages, where each linked requirement read a size larger than the text it sat among.\n * `as=\"span\"` because the label sits inside a link or a button, where a block `<p>` is not allowed.\n *\n * `TextVariant.INHERIT` because the COLOUR is the wrapper's: the link or button around the label\n * carries `text-primary`, and the default variant would paint the label in the foreground colour —\n * every linkable reference in every application would stop looking like a link.\n */\n/**\n * A SUMMARY reference's link: a block in the text colour around its card, with the focus contract's offset ring and a\n * quiet hover, never the inline link's colour and underline.\n */\nconst SUMMARY_LINK_CLASSES = cn('block rounded-md text-inherit no-underline transition-colors hover:bg-muted/40', focusIndicatorClasses(FocusIndicatorShape.OFFSET));\n\nfunction ReferenceLabel({ label }: { readonly label: string }): React.JSX.Element {\n return <Text as=\"span\" variant={TextVariant.INHERIT}>{label}</Text>;\n}\n\nexport const ResourceFieldDisplayPreset_ResourceReference_Default = ({\n fieldName,\n value,\n resourceType: resourceTypeProp,\n data: prePopulatedData,\n displayParams,\n labelFallback,\n schema,\n className,\n}: ResourceFieldDisplayPreset_ResourceReference_DefaultProps): React.JSX.Element => {\n const { registry, doOperation } = useResourceRegistry();\n const { emit } = useEventBus();\n const displayContext = useResourceDisplayContext();\n const formSchemaContext = useOptionalFormSchemaContext();\n\n /*\n * Target resolution precedence: an explicit prop (the dispatcher's per-record polymorphic\n * resolution) → the decorator's declared `referencedResourceType` (an FK named in its own\n * vocabulary — see the param's JSDoc) → the field-name map (`resolveForeignKeyReferencedResourceType`, the\n * resolver `DisplayField` reads too) — and on a miss the field-name lookup THROWS, because an unresolvable FK\n * is a configuration error.\n */\n const resourceType = resolveForeignKeyReferencedResourceType({ explicitResourceType: resourceTypeProp, schema, fieldName, registry })\n || FrontendResourceUtils.resolveResourceTypeForForeignKey(fieldName, schema, registry);\n\n const { t, tComponent, formatDate, formatDateTime, isReady } = useI18n({ component: FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, resource: resourceType });\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n\n // Resolve contextual parameters for scoped FK READ calls.\n // Display path: AutomaticDisplayer already built contextualParameters from contextResourceIdentifiers.\n // Form path: FormSchemaContext provides contextResourceIdentifiers, build params from them.\n const scopedContextualParameters = useMemo(() => {\n // Display path — pre-built contextualParameters available\n if (displayContext?.contextualParameters && Object.keys(displayContext.contextualParameters).length > 0) {\n return displayContext.contextualParameters;\n }\n // Form path — build from FormSchemaContext's contextResourceIdentifiers\n if (formSchemaContext?.contextResourceIdentifiers) {\n return FrontendResourceUtils.buildContextualParameters(\n formSchemaContext.contextResourceIdentifiers, registry\n );\n }\n return {};\n }, [displayContext?.contextualParameters, formSchemaContext?.contextResourceIdentifiers, registry]);\n\n // State for resolved labels (drives rendering)\n const [resolvedFKs, setResolvedFKs] = useState<Map<string, ResolvedForeignKey>>(new Map());\n // Ref for non-reactive reads in callbacks/effects — avoids stale closure & dependency cycle.\n // Mutated in place for synchronous accuracy across concurrent calls within the same loop.\n const resolvedFKsRef = useRef(new Map<string, ResolvedForeignKey>());\n\n /** Update both ref (immediate, for concurrent call detection) and state (for rendering). */\n const trackResolvedFK = useCallback((id: string, entry: ResolvedForeignKey) => {\n resolvedFKsRef.current.set(id, entry);\n setResolvedFKs(new Map(resolvedFKsRef.current));\n }, []);\n\n // The fallback for a caller that supplies no display params at all — today the\n // relationship-object branch of `DisplayValueDispatcher`, which renders a related\n // record rather than a decorated FK field. It derives from the SAME named source the\n // FK metadata reader (`getForeignKeyUIDisplay`) falls back to, so an unconfigured\n // reference reads identically whichever branch reached this preset. Restating a\n // `ForeignKeyDisplayMode` member here is what previously made the two disagree: this\n // site said SUMMARY while the metadata reader said LABEL, and which one an app author\n // saw depended on the branch.\n const displayMode = displayParams?.mode ?? DEFAULT_FOREIGN_KEY_DISPLAY_MODE;\n\n // ── C1 (P5-02): Parent reference display mode reconciliation ──────────\n const parentRefConfig = displayContext?.parentReferenceConfig;\n\n /*\n * The referenced ids, with a parent reference declared hidden (`ParentDisplay.NONE`) taken out — by the rule\n * `DisplayField` reads too (`withoutHiddenParentReference`), against the type resolved above, so the field box and\n * its value cannot disagree (#2195). A reference to ANOTHER record of the parent's type still renders; an array\n * holding the parent and others renders the others.\n */\n const { hidesWholeReference, visibleIds: values } = React.useMemo(\n () => withoutHiddenParentReference({\n parentReferenceConfig: parentRefConfig,\n referencedResourceType: resourceType,\n referencedIds: normalizeResourceReferenceSelectionValue(value),\n }),\n [parentRefConfig, resourceType, value],\n );\n\n /*\n * Under NONE nothing that remains is the parent — the parent's id was taken out above — so the remaining ids\n * render as the ordinary reference they are, not in a parent mode.\n */\n const isParentReference = Boolean(\n parentRefConfig\n && resourceType\n && parentRefConfig.parentResourceType === resourceType\n && parentRefConfig.displayMode !== ParentDisplay.NONE\n );\n\n /**\n * Effective display mode after reconciliation with ParentDisplay enum:\n * - CONTEXT / BREADCRUMB → forces linkable, keeps current FK mode\n * - BADGE → renders as Badge component\n * - SUMMARY → renders as inline summary text\n * - NONE → never reaches here: the hidden parent's id was taken out of `values`, and what remains is not the parent\n * - Not a parent reference → uses the decorator-based displayMode as-is\n */\n const effectiveDisplayMode = useMemo<ForeignKeyDisplayMode | ParentDisplay>(() => {\n if (!isParentReference || !parentRefConfig) return displayMode;\n\n switch (parentRefConfig.displayMode) {\n case ParentDisplay.CONTEXT:\n case ParentDisplay.BREADCRUMB:\n return displayMode;\n case ParentDisplay.BADGE:\n case ParentDisplay.SUMMARY:\n return parentRefConfig.displayMode;\n default: return displayMode;\n }\n }, [isParentReference, parentRefConfig, displayMode]);\n\n const isLinkable = useMemo(() => {\n if (isParentReference) {\n if (parentRefConfig?.showParentLink === false) {\n return false;\n }\n if (\n parentRefConfig?.displayMode === ParentDisplay.CONTEXT ||\n parentRefConfig?.displayMode === ParentDisplay.BREADCRUMB\n ) {\n return true;\n }\n }\n return displayParams?.linkable ?? true;\n }, [isParentReference, parentRefConfig, displayParams?.linkable]);\n const navigationZone = displayContext?.navigationZone ?? formSchemaContext?.navigationZone;\n\n // Check if pre-populated data is usable through the configured resource id field.\n const prePopulatedLabel = React.useMemo(() => {\n if (!prePopulatedData || typeof prePopulatedData !== 'object' || !resourceType) return null;\n\n // For single FK: prePopulatedData._id should match value\n // For array FK: prePopulatedData is not applicable (arrays need per-item population)\n if (Array.isArray(value)) return null;\n const prePopulatedId = resolvePrePopulatedRecordIdentifier({\n record: prePopulatedData,\n resourceType,\n registry,\n });\n if (!prePopulatedId || prePopulatedId !== value) return null;\n\n // An IDENTITY-ONLY object carries no label. A context read declared `ID_ONLY`, or a parent whose\n // fetch degraded, arrives as `{ _id }`, and labelling it would fall through to the id itself —\n // seeding an ObjectId as the \"resolved\" label and suppressing the fetch that would have found\n // the name (#579). Only content beyond the identity counts as pre-populated.\n const carriesContent = Object.entries(prePopulatedData as Record<string, unknown>)\n .some(([key, fieldValue]) => key !== '_id' && key !== 'id' && fieldValue !== null && fieldValue !== undefined && fieldValue !== prePopulatedId);\n if (!carriesContent) return null;\n\n return FrontendResourceUtils.computeFrontendResourceLabel({\n resourceType,\n registry,\n currentObject: prePopulatedData,\n t,\n formatDate,\n formatDateTime,\n });\n }, [prePopulatedData, resourceType, value, registry, t, formatDate, formatDateTime]);\n\n // The HOST's context identifiers, flattened to ids: the page this reference sits on (display context or\n // form context — the same source as scopedContextualParameters).\n const hostContextIdentifiers = useMemo(() => {\n const identifiers: Record<string, string> = {};\n const contextIds = displayContext?.contextResourceIdentifiers || formSchemaContext?.contextResourceIdentifiers;\n if (contextIds) {\n for (const [resType, idOrObj] of Object.entries(contextIds)) {\n const idValue = typeof idOrObj === 'string' ? idOrObj : (idOrObj as { resourceId?: string })?.resourceId;\n if (idValue) identifiers[resType] = idValue;\n }\n }\n return identifiers;\n }, [displayContext?.contextResourceIdentifiers, formSchemaContext?.contextResourceIdentifiers]);\n\n // ── B1 (P4-03): FK route infrastructure ──────────────────────────────\n // Memoize route path selection for the referenced resource type. Computed for a NON-linkable reference too: its READ\n // is sent on the same route its link would take (#2741), and whether it is drawn as a link is `wrapWithLink`'s call.\n const fkLinkUrlInfo = useMemo(() => {\n if (!resourceType) return null;\n\n const refResourceConfig = registry.resourceConfigurations[resourceType];\n if (!refResourceConfig) return null;\n\n const contextIds = displayContext?.contextResourceIdentifiers || formSchemaContext?.contextResourceIdentifiers;\n\n const currentContextResourceType = displayContext?.resourceType || formSchemaContext?.resourceType;\n const currentParentRequirements = currentContextResourceType && contextIds\n ? frontendResourceUtils.buildParentResourcesRequirements(\n currentContextResourceType,\n contextIds,\n registry,\n )\n : [];\n\n // The resource's own field identifier (e.g., 'userId' for USERS) — for URL param substitution\n const ownFieldIdentifier = registry.allResourceFieldIdentifiers?.[resourceType];\n\n return { refResourceConfig, ownFieldIdentifier, currentParentRequirements };\n }, [\n resourceType,\n registry,\n displayContext?.contextResourceIdentifiers,\n displayContext?.resourceType,\n formSchemaContext?.contextResourceIdentifiers,\n formSchemaContext?.resourceType,\n ]);\n\n /**\n * The host's context scoped to ONE referenced record (#2144): the identifiers, parameters and parent\n * requirements every per-target step below starts from — the link URL, the overlay, the label fetch and both\n * clicks. A self-referencing parent the host carries (`parentUnitId`) describes the host's own record, so it\n * is kept only for a reference to that record; a unit's link to its parent no longer names the parent as its\n * own parent. See `frontendResourceUtils.scopeHostContextToReferencedRecord`.\n */\n // The record the host renders — a display's or a form's own type and id, never read off its type slot. The\n // display context has a default value outside a provider, so it is the host only when it names a type.\n const hostRecord = displayContext?.resourceType\n ? { resourceType: displayContext.resourceType, id: displayContext.resourceId }\n : formSchemaContext\n ? { resourceType: formSchemaContext.resourceType, id: formSchemaContext.resourceId }\n : undefined;\n const hostRecordType = hostRecord?.resourceType;\n const hostRecordId = hostRecord?.id;\n const scopeToTarget = useCallback((id: string) => scopeReferencedRecord({\n hostIdentifiers: hostContextIdentifiers,\n hostContextualParameters: scopedContextualParameters,\n hostParentRequirements: fkLinkUrlInfo?.currentParentRequirements,\n hostRecord: { resourceType: hostRecordType, id: hostRecordId },\n targetResourceType: resourceType ?? '',\n targetId: id,\n registry,\n }), [hostContextIdentifiers, scopedContextualParameters, fkLinkUrlInfo?.currentParentRequirements, hostRecordType, hostRecordId, resourceType, registry]);\n\n /**\n * Resolve a concrete link URL for a given FK value.\n * Builds scoped URLs like /organizations/org-123/users/user-456 instead of /USERS/user-456.\n */\n const resolveFkNavigationTarget = useCallback((id: string): {\n url: string;\n parentResourcesRequirements: ReturnType<typeof frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams>;\n readOp: FrontendResourceConfiguration_Operation;\n } | null => {\n if (!fkLinkUrlInfo || !resourceType) return null;\n\n const { refResourceConfig, ownFieldIdentifier } = fkLinkUrlInfo;\n const targetScope = scopeToTarget(id);\n\n // Add the FK's own resource type → ID for route matching\n const fullContextIdentifiers = { ...targetScope.identifiers, [resourceType]: id };\n const contextualParameters = {\n ...targetScope.contextualParameters,\n ...(ownFieldIdentifier ? { [ownFieldIdentifier]: id } : {}),\n };\n const readOp = pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig: refResourceConfig,\n operations: refResourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: true,\n requireFrontendAddressable: true,\n contextResourceIdentifiers: fullContextIdentifiers,\n contextualParameters,\n });\n if (!readOp) return null;\n\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(\n refResourceConfig,\n readOp,\n registry.allResourceFieldIdentifiers,\n );\n if (routePaths.length === 0) return null;\n\n try {\n const matchingPath = frontendResourceUtils.selectMatchingRoutePath(\n routePaths,\n fullContextIdentifiers,\n resourceType,\n ownFieldIdentifier,\n targetScope.parentRequirements,\n registry.allResourceFieldIdentifiers,\n );\n if (!matchingPath?.url) return null;\n const targetParentResourcesRequirements = frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n matchingPath.parameters ?? [],\n resourceType,\n registry,\n );\n\n // Build field identifiers for URL parameter substitution\n const fieldIdentifiers: Record<string, string> = {};\n // Parent field identifiers from the target's scoped contextual parameters\n for (const [key, val] of Object.entries(targetScope.contextualParameters)) {\n if (val !== undefined && val !== null) fieldIdentifiers[key] = String(val);\n }\n // Resource's own field identifier → FK value\n if (ownFieldIdentifier) {\n fieldIdentifiers[ownFieldIdentifier] = id;\n }\n\n const resolved = NavigationUtils.resolveUrlPath(matchingPath.url, fieldIdentifiers);\n // Only return if fully resolved (no remaining :param placeholders)\n if (resolved && !NavigationUtils.hasUnresolvedPlaceholders(resolved)) {\n return {\n url: resolved,\n parentResourcesRequirements: targetParentResourcesRequirements,\n readOp,\n };\n }\n } catch {\n // selectMatchingRoutePath may throw — graceful fallback\n }\n\n return null;\n }, [fkLinkUrlInfo, registry, resourceType, scopeToTarget]);\n\n /**\n * The OVERLAY fallback — a reference whose target READ is `EMBEDDED` (decided 2026-09-01).\n *\n * An EMBEDDED read has no route by contract (\"rendered within a host — overlay/drill-in when\n * standalone\"), so the URL resolver above answers null and the reference used to render as a\n * DEAD label. The navigation layer already escalates EMBEDDED content to an overlay\n * (`navigation-policy-resolver`: EMBEDDED never becomes THE PAGE) — all this resolver adds is\n * the read operation to hand it. API_ONLY stays dead on purpose: headless means no interface.\n */\n const resolveFkOverlayTarget = useCallback((id: string): {\n readOp: FrontendResourceConfiguration_Operation;\n } | null => {\n if (!fkLinkUrlInfo || !resourceType) return null;\n const { refResourceConfig, ownFieldIdentifier } = fkLinkUrlInfo;\n const targetScope = scopeToTarget(id);\n const fullContextIdentifiers = { ...targetScope.identifiers, [resourceType]: id };\n const readOp = pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig: refResourceConfig,\n operations: refResourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: true,\n requireFrontendAddressable: false,\n contextResourceIdentifiers: fullContextIdentifiers,\n contextualParameters: {\n ...targetScope.contextualParameters,\n ...(ownFieldIdentifier ? { [ownFieldIdentifier]: id } : {}),\n },\n });\n if (!readOp) return null;\n if (readOp.operationFrontendConfig?.surface !== ResourceOperationFrontendSurface.EMBEDDED) return null;\n return { readOp };\n }, [fkLinkUrlInfo, registry, resourceType, scopeToTarget]);\n\n /**\n * The route a reference's READ is sent on: the route it links to, else — for a target with no page to link to (an\n * EMBEDDED or API_ONLY read) — the READ's own most specific HTTP route its target-scoped parameters satisfy. Either\n * way the read carries that route's parent chain, so a working scope the scoped registry injects into every call (a\n * selected list) cannot reroute it under a parent the record need not have (#2741). `null` when no READ addresses the\n * target from its scope: the read is then sent unpinned.\n */\n const resolveReadPin = useCallback((id: string): {\n readOp: FrontendResourceConfiguration_Operation;\n parentResourcesRequirements: ReturnType<typeof frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams>;\n } | null => {\n const linkTarget = resolveFkNavigationTarget(id);\n if (linkTarget) return { readOp: linkTarget.readOp, parentResourcesRequirements: linkTarget.parentResourcesRequirements };\n if (!fkLinkUrlInfo || !resourceType) return null;\n const { refResourceConfig, ownFieldIdentifier } = fkLinkUrlInfo;\n const targetScope = scopeToTarget(id);\n const contextualParameters = { ...targetScope.contextualParameters, ...(ownFieldIdentifier ? { [ownFieldIdentifier]: id } : {}) };\n const readOp = pickPreferredOperationForCoreSemanticAddressability({\n resourceConfig: refResourceConfig,\n operations: refResourceConfig.operations ?? [],\n coreOperation: CoreResourceOperation.READ,\n registry,\n hasResourceId: true,\n requireFrontendAddressable: false,\n contextResourceIdentifiers: { ...targetScope.identifiers, [resourceType]: id },\n contextualParameters,\n });\n if (!readOp) return null;\n const initiator = FrontendResourceUtils.selectOperationUrlInitiatorInfo({\n initiatorInfos: readOp.initiatorInfos ?? [],\n contextualParameters,\n targetResourceType: resourceType,\n targetDefaultFieldIdentifier: ownFieldIdentifier ?? '',\n });\n if (!initiator) return null;\n return {\n readOp,\n parentResourcesRequirements: frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(initiator.parameters, resourceType, registry),\n };\n }, [resolveFkNavigationTarget, fkLinkUrlInfo, resourceType, scopeToTarget, registry]);\n\n // Resolve a single FK value via API\n const resolveForeignKey = useCallback(async (id: string) => {\n if (!resourceType || !id) return;\n\n // Skip if already resolved or loading (read from ref for synchronous accuracy)\n const existing = resolvedFKsRef.current.get(id);\n if (existing && (existing.label !== null || existing.isLoading)) {\n return;\n }\n\n // Mark as loading — ref update is immediate for concurrent call detection\n trackResolvedFK(id, { id, label: null, error: null, isLoading: true });\n\n try {\n /*\n * Read on the route the reference links to (#2741): the most specific route its target-scoped context\n * satisfies, which `scopeReferencedRecord` keeps to the tenancy unless the target is the host's own record or is\n * readable only under a parent. Without the pin the request takes the most specific route its PARAMETERS\n * satisfy, and the scoped registry injects the viewer's whole working scope into every call: with a list\n * selected in a quick-switcher, a todo of another list was read under the selected one, refused, and shown as\n * unavailable. A target with no page to link to is pinned to its READ's own route (`resolveReadPin`).\n */\n const routeTarget = resolveReadPin(id);\n const { record: fetchedRecord, label } = await fetchResourceReferenceRecordAndLabel({\n resourceType,\n id,\n registry,\n doOperation,\n ...(routeTarget ? { readOperation: routeTarget.readOp, parentResourcesRequirements: routeTarget.parentResourcesRequirements } : {}),\n // The target's own scope: a parent the host carries for ITS record is not the target's parent.\n contextualParameters: scopeToTarget(id).contextualParameters,\n t,\n formatDate,\n formatDateTime,\n });\n\n trackResolvedFK(id, { id, label, data: fetchedRecord, error: null, isLoading: false });\n } catch (err) {\n // Shown as the id's tooltip, so resolved to localized text — `extractErrorInfo(err).message` was the\n // backend's i18n REFERENCE (#1160).\n trackResolvedFK(id, { id, label: null, error: toUserFacingErrorMessage(err), isLoading: false });\n }\n }, [resourceType, registry, doOperation, trackResolvedFK, t, formatDate, formatDateTime, scopeToTarget, toUserFacingErrorMessage, resolveReadPin]);\n\n // Resolve all FK values on mount/change — skip API when pre-populated data is available\n useEffect(() => {\n if (!resourceType || values.length === 0) return;\n\n // Only resolve if mode requires it — skip for ID display\n if (effectiveDisplayMode === ForeignKeyDisplayMode.ID) return;\n\n // If pre-populated label is available for single value, seed it into resolvedFKs\n if (prePopulatedLabel && values.length === 1 && !resolvedFKsRef.current.has(values[0])) {\n trackResolvedFK(values[0], {\n id: values[0],\n label: prePopulatedLabel,\n data: prePopulatedData as Record<string, unknown> | undefined,\n error: null,\n isLoading: false,\n });\n return;\n }\n\n values.forEach(id => {\n if (id && !resolvedFKsRef.current.has(id)) {\n resolveForeignKey(id);\n }\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps -- resolvedFKsRef used for non-reactive reads; resolvedFKs state intentionally excluded to break re-render cycle\n }, [resourceType, values, effectiveDisplayMode, resolveForeignKey, trackResolvedFK, prePopulatedLabel]);\n\n /**\n * Wrap content in a link/clickable element when linkable.\n * Parent references use onNavigateToParent (controller-managed) with URL fallback.\n */\n const wrapWithLink = useCallback((id: string, content: React.ReactNode): React.ReactNode => {\n if (!isLinkable || !resourceType) return content;\n // A SUMMARY card is block content: underlining it and painting it in the link colour underlined every line and\n // badge of the card. It is a block link instead, drawn by the focus contract, as a selectable card is.\n const summaryLink = effectiveDisplayMode === ForeignKeyDisplayMode.SUMMARY;\n\n const navigationTarget = resolveFkNavigationTarget(id);\n const shouldUseControllerNavigation = Boolean(navigationZone && navigationTarget?.readOp && navigationTarget?.url);\n\n const handleReferenceNavigation = (e: React.MouseEvent) => {\n if (\n !shouldUseControllerNavigation\n || !navigationTarget\n || e.button !== 0\n || e.ctrlKey\n || e.metaKey\n || e.shiftKey\n || e.altKey\n ) {\n return;\n }\n\n const fullContextIdentifiers = {\n ...scopeToTarget(id).identifiers,\n [resourceType]: id,\n };\n const readContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation: navigationTarget.readOp,\n contextResourceIdentifiers: fullContextIdentifiers,\n parentResourcesRequirements: navigationTarget.parentResourcesRequirements,\n });\n\n e.preventDefault();\n emit(FrontendEvents.NAVIGATION_REQUEST, {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: readContext,\n },\n initiator: { sourceZone: navigationZone },\n urlPath: navigationTarget.url,\n });\n };\n\n if (isParentReference && parentRefConfig?.onNavigateToParent) {\n const handleClick = (e: React.MouseEvent) => {\n if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;\n const handled = parentRefConfig.onNavigateToParent!(id);\n if (handled !== false) {\n e.preventDefault();\n }\n };\n\n if (navigationTarget?.url) {\n return (\n <Link to={navigationTarget.url} className=\"text-primary hover:underline\" onClick={handleClick}>\n {content}\n </Link>\n );\n }\n return (\n <button\n type=\"button\"\n /*\n * `block`, not the button default `inline-block` — and `inline` cannot work here.\n *\n * An inline-block's baseline is the baseline of its LAST line box, so inside a bulleted\n * list item a two-line reference dragged the ::marker down to its final line (measured on\n * the workbench's Requirements page, where every multi-valued \"Serves jobs\" link wraps).\n * The obvious fix, `display: inline`, is silently overridden: browsers fix up `inline` on\n * form controls to `inline-block` (verified via CDP — the cascade applied `.inline` and\n * the computed value stayed `inline-block`), so the class sat in the DOM doing nothing.\n * A BLOCK child is the shape that works: an outside marker aligns with the first line box\n * of a list item's block content, exactly like `<li><p>…</p></li>`.\n */\n className=\"block text-primary hover:underline bg-transparent border-none p-0 cursor-pointer text-left\"\n onClick={() => {\n parentRefConfig.onNavigateToParent!(id);\n }}\n >\n {content}\n </button>\n );\n }\n\n if (navigationTarget?.url) {\n return (\n <Link to={navigationTarget.url} className={summaryLink ? SUMMARY_LINK_CLASSES : 'text-primary hover:underline'} onClick={handleReferenceNavigation}>\n {content}\n </Link>\n );\n }\n\n /*\n * No route — the EMBEDDED-read overlay fallback (see `resolveFkOverlayTarget`).\n *\n * The source zone DEFAULTS to PRIMARY rather than gating on a context-provided zone: a\n * reference rendered by a display host that never plumbed `navigationZone` (an artifact\n * document, a composite view) would otherwise render its resolved label as dead text — the\n * silent-degradation shape this fallback exists to remove. PRIMARY is where such hosts live.\n */\n const overlayTarget = resolveFkOverlayTarget(id);\n if (overlayTarget) {\n const openOverlay = (e: React.MouseEvent) => {\n if (e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;\n e.preventDefault();\n const targetScope = scopeToTarget(id);\n const readContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation: overlayTarget.readOp,\n contextResourceIdentifiers: {\n ...targetScope.identifiers,\n [resourceType]: id,\n },\n parentResourcesRequirements: targetScope.parentRequirements,\n });\n // No urlPath on purpose: an overlay is not a place — nothing to deep-link, nothing to pop.\n emit(FrontendEvents.NAVIGATION_REQUEST, {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: readContext,\n },\n initiator: { sourceZone: navigationZone ?? NavigationZone.PRIMARY },\n });\n };\n return (\n <button\n type=\"button\"\n /*\n * `block`, not the button default `inline-block` — and `inline` cannot work here.\n *\n * An inline-block's baseline is the baseline of its LAST line box, so inside a bulleted\n * list item a two-line reference dragged the ::marker down to its final line (measured on\n * the workbench's Requirements page, where every multi-valued \"Serves jobs\" link wraps).\n * The obvious fix, `display: inline`, is silently overridden: browsers fix up `inline` on\n * form controls to `inline-block` (verified via CDP — the cascade applied `.inline` and\n * the computed value stayed `inline-block`), so the class sat in the DOM doing nothing.\n * A BLOCK child is the shape that works: an outside marker aligns with the first line box\n * of a list item's block content, exactly like `<li><p>…</p></li>`.\n */\n className={summaryLink\n ? cn(SUMMARY_LINK_CLASSES, 'w-full bg-transparent border-none p-0 cursor-pointer text-left')\n : 'block text-primary hover:underline bg-transparent border-none p-0 cursor-pointer text-left'}\n onClick={openOverlay}\n >\n {content}\n </button>\n );\n }\n\n return content;\n }, [emit, effectiveDisplayMode, fkLinkUrlInfo, isLinkable, isParentReference, navigationZone, parentRefConfig, resolveFkNavigationTarget, resolveFkOverlayTarget, resourceType, scopeToTarget]);\n\n // Render a single value\n const renderValue = useCallback((id: string) => {\n if (effectiveDisplayMode === ForeignKeyDisplayMode.ID) {\n return <span className=\"font-mono text-sm\">{id}</span>;\n }\n\n const resolved = resolvedFKs.get(id);\n const isLoading = resolved?.isLoading ?? false;\n\n if (isLoading || !resolved) {\n return <Skeleton className=\"h-4 w-24 inline-block\" />;\n }\n\n if (resolved.error) {\n // A FAILED resolution is exactly where the record's own readable copy earns its keep — more\n // so than an empty one. Measured 2026-09-19 on the member directory: reading another user's\n // record answers 403 for most rows, so this branch (not the empty-label one below) is what\n // printed `6aaba6b3a2d3b6b0ad61f33e` in the USER column.\n //\n // The error is NOT swallowed: it stays on `title`, so the failure is still discoverable, and a\n // field that declares no `labelFallbackField` still shows the id exactly as before. What\n // changes is only that a readable value present on the row is preferred to an opaque one.\n if (labelFallback) {\n return (\n <span className=\"text-muted-foreground text-sm\" title={resolved.error}>\n {labelFallback}\n </span>\n );\n }\n // No readable copy: the field says the record cannot be shown, and keeps the id (and why) on hover for whoever\n // needs to trace it. An id told a reader nothing (#2329). The words claim no reason on purpose: a 404 is not proof\n // the record is gone, because a read across a tenant boundary answers 404 by design, so a refusal and a deletion\n // are the same answer here, and \"no longer exists\" would be false for the first.\n return (\n <span className=\"text-muted-foreground text-sm italic\" title={`${id} · ${resolved.error}`}>\n {tComponent(FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, 'recordUnavailable')}\n </span>\n );\n }\n\n // The id is the LAST resort, not the first. A record carrying a readable copy of the reference\n // (`labelFallbackField`) shows that instead — which is what keeps a member directory readable\n // for people who have no profile for a label to be built from.\n /*\n * Named from the fetched record with the CURRENT `t`, not the label frozen at fetch time (#1851 review). A\n * record whose name reads another label section (a product named by `billing_products.<key>.name`) could be\n * fetched before those words arrived, and the stored label then kept its key for the life of the component.\n * The stored label is used only when there is no stored record (`data`) or the resource declares no label\n * strategy: such a name cannot change with the words, and the resolver would log its configuration gap on every\n * render. A strategy that returns an empty name for some record also logs on each render; accepted, since\n * that is a labelling defect in the strategy and the log names it.\n */\n const hasLabelStrategy = !!resourceType\n && !!FrontendResourceUtils.frontendResourceLabelDefinitionOf(registry.resourceConfigurations?.[resourceType] as AnyFrontendResourceConfiguration | undefined);\n const currentLabel = resolved.data && resourceType && hasLabelStrategy\n ? FrontendResourceUtils.computeFrontendResourceLabel({ resourceType, registry, currentObject: resolved.data, t, formatDate, formatDateTime })\n : null;\n const label = currentLabel || resolved.label || labelFallback || id;\n\n if (effectiveDisplayMode === ParentDisplay.BADGE) {\n const handleBadgeClick = isLinkable && parentRefConfig?.onNavigateToParent\n ? () => parentRefConfig.onNavigateToParent!(id)\n : undefined;\n return (\n <Badge\n variant=\"secondary\"\n className={handleBadgeClick ? 'cursor-pointer hover:opacity-[var(--opacity-hover)]' : undefined}\n onClick={handleBadgeClick}\n >\n {label}\n </Badge>\n );\n }\n\n // \"summary\" mode — ParentDisplay.SUMMARY and ForeignKeyDisplayMode.SUMMARY share\n // the same string value, so we distinguish by isParentReference.\n if (effectiveDisplayMode === ParentDisplay.SUMMARY) {\n if (isParentReference) {\n const handleInlineClick = isLinkable && parentRefConfig?.onNavigateToParent\n ? () => parentRefConfig.onNavigateToParent!(id)\n : undefined;\n return (\n <span\n className={`text-muted-foreground text-sm ${handleInlineClick ? 'cursor-pointer hover:text-foreground transition-colors' : ''}`}\n onClick={handleInlineClick}\n role={handleInlineClick ? 'button' : undefined}\n tabIndex={handleInlineClick ? 0 : undefined}\n onKeyDown={handleInlineClick ? (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleInlineClick(); }} : undefined}\n >\n {label}\n </span>\n );\n }\n\n // FK field SUMMARY mode — render ResourceSummaryDisplayer\n if (resolved.data && resourceType) {\n const refConfig = registry.resourceConfigurations[resourceType];\n // The referenced record's own schema (#2455): for an inheritance resource, the variant its discriminators name.\n const summarySchema = FrontendResourceUtils.resolveRowSchema(refConfig, resolved.data as Record<string, unknown>);\n if (summarySchema) {\n const summaryContent = (\n <ResourceSummaryDisplayer\n resourceType={resourceType}\n schema={summarySchema}\n data={resolved.data}\n // The referenced record's NAME. The field's own label names the FIELD (\"Target todo\"),\n // never the record, and this card REPLACES the one-line label — so without it nothing on\n // screen says which record is referenced. Measured on Wonder Todos: a relationship row\n // read \"Blocks → Pending –\", the blocked todo's badges with no title. The edit picker\n // passes its option label for the same reason.\n primaryLabel={label}\n // The host's scope narrowed to the referenced record (#2144): the record's own fields read there (#2198).\n contextResourceIdentifiers={scopeToTarget(id).identifiers}\n />\n );\n return isLinkable ? wrapWithLink(id, summaryContent) : summaryContent;\n }\n }\n\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }\n\n // ForeignKeyDisplayMode.LABEL — resolved label, optionally linkable\n if (effectiveDisplayMode === ForeignKeyDisplayMode.LABEL) {\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }\n\n // Fallback — render as label\n return wrapWithLink(id, <ReferenceLabel label={label} />);\n }, [effectiveDisplayMode, resolvedFKs, resourceType, isParentReference, parentRefConfig, wrapWithLink, registry, isLinkable, t, tComponent, formatDate, formatDateTime, labelFallback]);\n\n // NONE is \"don't show any parent reference\": when the parent was all there was, the reference is absent — never an\n // empty-value mark in its place (#2195). A display field omits the whole field by the same rule.\n if (hidesWholeReference) {\n return null;\n }\n\n // Handle empty values\n if (values.length === 0) {\n return <span className=\"text-muted-foreground\">-</span>;\n }\n\n // Unknown resource type warning\n if (!resourceType && effectiveDisplayMode !== ForeignKeyDisplayMode.ID) {\n // Fall back to showing IDs with a warning\n return (\n <div className={className} title=\"Unknown resource type - showing IDs\">\n {values.length === 1 ? (\n <span className=\"font-mono text-sm\">{values[0]}</span>\n ) : (\n <ul className=\"list-disc ps-4 space-y-item-xs\">\n {values.map(id => (\n <li key={id} className=\"font-mono text-sm\">{id}</li>\n ))}\n </ul>\n )}\n </div>\n );\n }\n\n // Single value\n if (values.length === 1) {\n return <div className={className}>{renderValue(values[0])}</div>;\n }\n\n // Multiple values - render as list\n/*\n * `list-outside` (the default) with a start PADDING, NOT `list-inside`.\n *\n * `list-inside` puts the marker into the item's INLINE FLOW, where it has to share the first line\n * with the item's content — and the content here is a reference button, which is `inline-block`. An\n * inline-block box cannot break across lines, so as soon as its label is longer than the remaining\n * first line it wraps as ONE unit to the next, leaving the bullet stranded alone on a line of its\n * own. Measured on the workbench's Requirements page: every \"Serves jobs\" entry rendered as a bare\n * dot above its link, while \"Serves ICPs\" looked fine purely because it had ONE short-labelled\n * value — the single-value branch above renders no list at all, and a short label happened to fit.\n *\n * Outside markers sit in the margin and take no part in the inline flow, so the content may wrap\n * freely and the marker stays on the first line.\n *\n * PADDING rather than the `ms-4` margin this used until 2026-09-25, because the list is the value's\n * ROOT and a vertical field chrome stretches its children to `w-full`: a margin then pushes a\n * full-width box 1rem past its column, measured on the workbench's Build plan page where every\n * \"Serves functional requirements\" link ran to the pane's edge. An outside marker is drawn in the\n * list's padding box, so `ps-4` keeps the same inset inside the width instead of beyond it.\n */\n return (\n <ul className={cn('list-disc ps-4 space-y-item-xs', className)}>\n {values.map(id => (\n <li key={id}>{renderValue(id)}</li>\n ))}\n </ul>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,wGAAwG,CAAC;AAmBrL,eAAO,MAAM,iDAAiD,kIA4P5D,CAAC"}
1
+ {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAKhE,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,wGAAwG,CAAC;AAmBrL,eAAO,MAAM,iDAAiD,kIA8P5D,CAAC"}
@@ -12,7 +12,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  *
13
13
  * Chrome (label, description, error, save state) is rendered externally by FormFieldChrome.
14
14
  */
15
- import { useCallback, useMemo, forwardRef } from 'react';
15
+ import { useCallback, forwardRef } from 'react';
16
+ import { FrontendResourceUtils } from '../../../../core/resources/frontend-resource.utils.js';
16
17
  import { cn } from '../../../../core/ui/cn.js';
17
18
  import { Combobox, ComboboxMultiple } from '../../../../components/form/combobox.js';
18
19
  import { useResourceSearch } from '../../../../components/resources-fields/resource-reference/useResourceSearch.js';
@@ -54,7 +55,8 @@ export const ResourceFieldEditPreset_ResourceReference_Default = forwardRef(({ n
54
55
  const optionDisplayMode = optionDisplayModeProp
55
56
  ?? getForeignKeyUI(schema)?.edit?.optionDisplayMode
56
57
  ?? DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE;
57
- const targetSummarySchema = useMemo(() => (resourceType ? registry.resourceConfigurations[resourceType]?.mainSchema : undefined), [registry, resourceType]);
58
+ const targetConfiguration = resourceType ? registry.resourceConfigurations[resourceType] : undefined;
59
+ const targetSummarySchema = targetConfiguration?.mainSchema;
58
60
  // E-4: when the options fetch fails, surface the error message in place of
59
61
  // the default empty/no-results text. The chrome around the field still
60
62
  // shows save/validation errors via FormFieldChrome.
@@ -107,18 +109,23 @@ export const ResourceFieldEditPreset_ResourceReference_Default = forwardRef(({ n
107
109
  // on `option.data`. Falls back to the plain label when data/schema is unavailable.
108
110
  const renderSummaryOption = useCallback((option) => {
109
111
  if (resourceType && targetSummarySchema && option.data && typeof option.data === 'object') {
110
- return (_jsx(ResourceSummaryDisplayer, { resourceType: resourceType, schema: targetSummarySchema, data: option.data,
112
+ return (_jsx(ResourceSummaryDisplayer, { resourceType: resourceType,
113
+ // The option's own schema (#2455): for an inheritance resource, the variant its discriminators name.
114
+ schema: FrontendResourceUtils.resolveRowSchema(targetConfiguration, option.data) ?? targetSummarySchema, data: option.data,
111
115
  // The option's own label IS the record's resolved primary label, and a
112
116
  // PICKER ROW is not a body-only surface: nothing else on the row names
113
117
  // the record. Without this the host cedes title rendering to the
114
118
  // template, the template renders no title, and every summary option
115
119
  // shows its body alone — a column of identical status badges with no
116
- // way to tell one record from another. (Body-only surfaces — an inline
117
- // FK reference under its own field label — deliberately omit it.)
118
- primaryLabel: option.label }));
120
+ // way to tell one record from another. (A host that draws the record's
121
+ // name itself — the no-template list card, the read summary — omits it,
122
+ // and the template then titles nothing.)
123
+ primaryLabel: option.label,
124
+ // The form's scope: an option's own fields read there, the option and its own primary scope added (#2198).
125
+ contextResourceIdentifiers: formSchemaContext?.contextResourceIdentifiers }));
119
126
  }
120
127
  return option.label;
121
- }, [resourceType, targetSummarySchema]);
128
+ }, [resourceType, targetConfiguration, targetSummarySchema, formSchemaContext?.contextResourceIdentifiers]);
122
129
  // Only override option rendering in SUMMARY mode; LABEL leaves the combobox's
123
130
  // default (`option.label`) untouched — zero behavior change for existing fields.
124
131
  const renderResultOption = optionDisplayMode === ForeignKeyDisplayMode.SUMMARY ? renderSummaryOption : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sFAAsF,CAAC;AAGzH,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6EAA6E,CAAC;AACzH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAC;AACvG,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAC;AAChH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,uCAAuC,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC3H,wDAAwD;AAExD,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,MAAM,CAAC,MAAM,iDAAiD,GAAG,UAAU,CAGzE,CAAC,EACD,IAA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AS,EACvB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,KAAK,EACnB,IAAI,EAAE,YAAY,EAClB,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,GAClC,EACD,WAAW,CAAC,cAAc,IAAI,CAC7B,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,qBAAqB,EAC3B,OAAO,EAAE,sBAAsB,CAAC,OAAO,EACvC,SAAS,EAAC,UAAU,EACpB,OAAO,EAAE,WAAW,CAAC,iBAAiB,EACtC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,IAAI,WAAW,CAAC,WAAW,gBAC7C,UAAU,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,YAE7E,WAAW,CAAC,WAAW;oBACtB,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE;wBACzC,IAAI,EAAE,QAAQ,CAAC,EAAE;wBACjB,SAAS,EAAE,yCAAyC;qBACrD,CAAC;oBACJ,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,GAC1D,CACV,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,iDAAiD,CAAC,WAAW,GAAG,mDAAmD,CAAC","sourcesContent":["/**\n * ResourceFieldEditPreset_ResourceReference_Default\n *\n * Chrome-free selector for reference-style relationship targets.\n * Renders a searchable combobox (single or multi) that:\n * 1. Pre-loads first N items on open\n * 2. Resolves current value to display label\n * 3. Searches on type (debounced, server-side)\n * 4. Supports single and multiple selection\n * 5. Can launch quick create when the owning relationship allows it\n *\n * Chrome (label, description, error, save state) is rendered externally by FormFieldChrome.\n */\n\nimport React, { useCallback, useMemo, forwardRef } from 'react';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Combobox, ComboboxMultiple } from '~wildo-frontend-lib/components/form/combobox';\nimport { useResourceSearch } from '~wildo-frontend-lib/components/resources-fields/resource-reference/useResourceSearch';\nimport type { ResourceFieldEditPreset_ResourceReference_DefaultProps } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldEdit_ResourceReference';\nimport type { FieldOption } from '~wildo-frontend-lib/components/form/form-field-types';\nimport { useOptionalFormSchemaContext } from '~wildo-frontend-lib/components/form/useFormSchemaContext';\nimport { useRelationshipQuickCreate } from '~wildo-frontend-lib/core/resources/relationship-quick-create.frontend.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize, ControlSize, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { ResourceSummaryDisplayer } from '~wildo-frontend-lib/components/data-display/ResourceSummaryDisplayer';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE, getForeignKeyUI, ForeignKeyDisplayMode } from '@wildo-ai/zod-decorators';\n// FieldOption used by renderSelectedValue callback type\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport const ResourceFieldEditPreset_ResourceReference_Default = forwardRef<\n HTMLButtonElement,\n ResourceFieldEditPreset_ResourceReference_DefaultProps\n>(({\n name,\n value,\n onChange,\n onBlur,\n schema,\n disabled,\n readOnly,\n className,\n placeholder,\n controlSize = ControlSize.MD,\n targetResourceType,\n optionDisplayMode: optionDisplayModeProp,\n onClear,\n leadingAdornment,\n quickCreateSourceFieldName,\n onQuickCreateCreated,\n}, ref): React.JSX.Element | null => {\n const formSchemaContext = useOptionalFormSchemaContext();\n const { tComponent, isReady } = useI18n({\n component: [FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, FrontendComponentType.RESOURCES_LAYOUTS_LIST],\n });\n const { renderIcon } = useIconRegistry();\n const comboboxSize = controlSize === ControlSize.SM ? 'sm' : 'md';\n const quickCreateButtonSize = controlSize === ControlSize.SM ? ButtonSize.XS : ButtonSize.SM;\n const {\n options,\n isLoading,\n isLoadingCurrentValue,\n setIsOpen,\n handleSearchChange,\n getDisplayLabel,\n resourceType,\n isMultiple,\n normalizedValue,\n emptyMessage,\n defaultPlaceholder,\n fetchError,\n } = useResourceSearch({ schema, name, value, targetResourceType });\n const { registry } = useResourceRegistry();\n\n // Reference-picker result display mode, authored on the FK field via\n // `.foreignKeyUI({ edit: { optionDisplayMode } })`: LABEL (one-line label) or SUMMARY\n // (the referenced resource's summary card, no action bar). The unauthored fallback\n // derives from `DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE` — the single source for the\n // PICKER default, deliberately separate from the stored-VALUE default.\n // Read from the field schema so it applies in both forms and collection filters.\n // Explicit prop wins over the schema decorator: a caller whose control is not\n // schema-backed (the app-scope quick switcher, whose primary-key-fallback\n // schema carries no FK metadata) declares the mode itself. Schema-backed form\n // fields pass nothing and keep reading `.foreignKeyUI(...)`.\n const optionDisplayMode = optionDisplayModeProp\n ?? getForeignKeyUI(schema)?.edit?.optionDisplayMode\n ?? DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE;\n const targetSummarySchema = useMemo(\n () => (resourceType ? registry.resourceConfigurations[resourceType]?.mainSchema : undefined),\n [registry, resourceType],\n );\n\n // E-4: when the options fetch fails, surface the error message in place of\n // the default empty/no-results text. The chrome around the field still\n // shows save/validation errors via FormFieldChrome.\n const effectiveEmptyMessage = fetchError\n ? resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE,\n key: 'fetchErrorEmptyMessage',\n params: { message: fetchError.message },\n })\n : emptyMessage;\n const quickCreate = useRelationshipQuickCreate({\n sourceResourceType: formSchemaContext?.resourceType,\n sourceResourceId: formSchemaContext?.resourceId,\n sourceFieldName: quickCreateSourceFieldName ?? name,\n sourceOperation: formSchemaContext?.operationType,\n relatedResourceType: resourceType,\n contextResourceIdentifiers: formSchemaContext?.contextResourceIdentifiers,\n navigationZone: formSchemaContext?.navigationZone,\n operationType: formSchemaContext?.operationType,\n onCreated: async ({ resourceId }) => {\n if (onQuickCreateCreated) {\n await onQuickCreateCreated(resourceId);\n return;\n }\n\n if (isMultiple) {\n const nextIds = [...new Set([...normalizedValue, resourceId])];\n onChange(nextIds.length > 0 ? nextIds : undefined);\n return;\n }\n\n onChange(resourceId);\n },\n });\n\n // =========================================================================\n // HANDLERS\n // =========================================================================\n\n const handleSingleChange = useCallback((selectedId: string) => {\n onChange(selectedId || undefined);\n }, [onChange]);\n\n const handleMultiChange = useCallback((selectedIds: string[]) => {\n onChange(selectedIds.length > 0 ? selectedIds : undefined);\n }, [onChange]);\n\n const renderSelectedValue = useCallback((option: FieldOption<string>) => {\n if (isLoadingCurrentValue) return '...';\n return getDisplayLabel(option.value);\n }, [isLoadingCurrentValue, getDisplayLabel]);\n\n // SUMMARY mode renders each dropdown OPTION as the referenced resource's summary\n // card (no actions, via ResourceSummaryDisplayer), reusing the summary DTO carried\n // on `option.data`. Falls back to the plain label when data/schema is unavailable.\n const renderSummaryOption = useCallback((option: FieldOption<string>): React.ReactNode => {\n if (resourceType && targetSummarySchema && option.data && typeof option.data === 'object') {\n return (\n <ResourceSummaryDisplayer\n resourceType={resourceType}\n schema={targetSummarySchema}\n data={option.data as Record<string, unknown>}\n // The option's own label IS the record's resolved primary label, and a\n // PICKER ROW is not a body-only surface: nothing else on the row names\n // the record. Without this the host cedes title rendering to the\n // template, the template renders no title, and every summary option\n // shows its body alone — a column of identical status badges with no\n // way to tell one record from another. (Body-only surfaces — an inline\n // FK reference under its own field label — deliberately omit it.)\n primaryLabel={option.label}\n />\n );\n }\n return option.label;\n }, [resourceType, targetSummarySchema]);\n // Only override option rendering in SUMMARY mode; LABEL leaves the combobox's\n // default (`option.label`) untouched — zero behavior change for existing fields.\n const renderResultOption = optionDisplayMode === ForeignKeyDisplayMode.SUMMARY ? renderSummaryOption : undefined;\n\n // =========================================================================\n // ERROR STATE — unknown resource type\n // =========================================================================\n\n if (!resourceType) {\n return (\n <div className={cn(\n \"flex items-center gap-element px-card-sm py-card-sm rounded-md border border-destructive bg-destructive/10 text-destructive text-sm\",\n className\n )}>\n <span>Unknown resource type for field: {name}</span>\n </div>\n );\n }\n\n // =========================================================================\n // RENDER\n // =========================================================================\n\n if (!isReady) return null;\n\n if (isMultiple) {\n return (\n <div className={cn('flex items-start gap-element', className)}>\n <ComboboxMultiple\n ref={ref}\n name={name}\n schema={schema}\n options={options}\n value={normalizedValue}\n onChange={handleMultiChange}\n renderOption={renderResultOption}\n onBlur={onBlur}\n disabled={disabled || readOnly}\n className=\"flex-1\"\n placeholder={placeholder || defaultPlaceholder}\n emptyMessage={effectiveEmptyMessage}\n onSearchChange={handleSearchChange}\n onOpenChange={setIsOpen}\n isLoading={isLoading}\n shouldFilter={false}\n size={comboboxSize}\n renderSelectedValue={renderSelectedValue}\n />\n {quickCreate.canQuickCreate && (\n <Button\n type=\"button\"\n size={quickCreateButtonSize}\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"shrink-0\"\n onClick={quickCreate.launchQuickCreate}\n disabled={disabled || readOnly || quickCreate.isLaunching}\n aria-label={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'create')}\n >\n {quickCreate.isLaunching\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })\n : renderIcon(StandardIconReference.PLUS, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n );\n }\n\n return (\n <div className={cn('flex items-start gap-element', className)}>\n <Combobox\n ref={ref}\n name={name}\n schema={schema}\n options={options}\n value={normalizedValue[0] ?? ''}\n onChange={handleSingleChange}\n renderOption={renderResultOption}\n onBlur={onBlur}\n disabled={disabled || readOnly}\n className=\"flex-1\"\n placeholder={placeholder || defaultPlaceholder}\n emptyMessage={effectiveEmptyMessage}\n onSearchChange={handleSearchChange}\n onOpenChange={setIsOpen}\n isLoading={isLoading}\n shouldFilter={false}\n size={comboboxSize}\n renderSelectedValue={renderSelectedValue}\n onClear={onClear}\n leadingAdornment={leadingAdornment}\n />\n {quickCreate.canQuickCreate && (\n <Button\n type=\"button\"\n size={quickCreateButtonSize}\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"shrink-0\"\n onClick={quickCreate.launchQuickCreate}\n disabled={disabled || readOnly || quickCreate.isLaunching}\n aria-label={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'create')}\n >\n {quickCreate.isLaunching\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })\n : renderIcon(StandardIconReference.PLUS, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n );\n});\nResourceFieldEditPreset_ResourceReference_Default.displayName = 'ResourceFieldEditPreset_ResourceReference_Default';\n"]}
1
+ {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAc,EAAE,WAAW,EAAW,UAAU,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sFAAsF,CAAC;AAGzH,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AACxG,OAAO,EAAE,0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AAiB,EACtC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,IAAI,WAAW,CAAC,WAAW,gBAC7C,UAAU,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,YAE7E,WAAW,CAAC,WAAW;oBACtB,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE;wBACzC,IAAI,EAAE,QAAQ,CAAC,EAAE;wBACjB,SAAS,EAAE,yCAAyC;qBACrD,CAAC;oBACJ,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,GAC1D,CACV,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,iDAAiD,CAAC,WAAW,GAAG,mDAAmD,CAAC","sourcesContent":["/**\n * ResourceFieldEditPreset_ResourceReference_Default\n *\n * Chrome-free selector for reference-style relationship targets.\n * Renders a searchable combobox (single or multi) that:\n * 1. Pre-loads first N items on open\n * 2. Resolves current value to display label\n * 3. Searches on type (debounced, server-side)\n * 4. Supports single and multiple selection\n * 5. Can launch quick create when the owning relationship allows it\n *\n * Chrome (label, description, error, save state) is rendered externally by FormFieldChrome.\n */\n\nimport React, { useCallback, useMemo, forwardRef } from 'react';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Combobox, ComboboxMultiple } from '~wildo-frontend-lib/components/form/combobox';\nimport { useResourceSearch } from '~wildo-frontend-lib/components/resources-fields/resource-reference/useResourceSearch';\nimport type { ResourceFieldEditPreset_ResourceReference_DefaultProps } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldEdit_ResourceReference';\nimport type { FieldOption } from '~wildo-frontend-lib/components/form/form-field-types';\nimport { useOptionalFormSchemaContext } from '~wildo-frontend-lib/components/form/useFormSchemaContext';\nimport { useRelationshipQuickCreate } from '~wildo-frontend-lib/core/resources/relationship-quick-create.frontend.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize, ControlSize, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { ResourceSummaryDisplayer } from '~wildo-frontend-lib/components/data-display/ResourceSummaryDisplayer';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE, getForeignKeyUI, ForeignKeyDisplayMode } from '@wildo-ai/zod-decorators';\n// FieldOption used by renderSelectedValue callback type\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport const ResourceFieldEditPreset_ResourceReference_Default = forwardRef<\n HTMLButtonElement,\n ResourceFieldEditPreset_ResourceReference_DefaultProps\n>(({\n name,\n value,\n onChange,\n onBlur,\n schema,\n disabled,\n readOnly,\n className,\n placeholder,\n controlSize = ControlSize.MD,\n targetResourceType,\n optionDisplayMode: optionDisplayModeProp,\n onClear,\n leadingAdornment,\n quickCreateSourceFieldName,\n onQuickCreateCreated,\n}, ref): React.JSX.Element | null => {\n const formSchemaContext = useOptionalFormSchemaContext();\n const { tComponent, isReady } = useI18n({\n component: [FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, FrontendComponentType.RESOURCES_LAYOUTS_LIST],\n });\n const { renderIcon } = useIconRegistry();\n const comboboxSize = controlSize === ControlSize.SM ? 'sm' : 'md';\n const quickCreateButtonSize = controlSize === ControlSize.SM ? ButtonSize.XS : ButtonSize.SM;\n const {\n options,\n isLoading,\n isLoadingCurrentValue,\n setIsOpen,\n handleSearchChange,\n getDisplayLabel,\n resourceType,\n isMultiple,\n normalizedValue,\n emptyMessage,\n defaultPlaceholder,\n fetchError,\n } = useResourceSearch({ schema, name, value, targetResourceType });\n const { registry } = useResourceRegistry();\n\n // Reference-picker result display mode, authored on the FK field via\n // `.foreignKeyUI({ edit: { optionDisplayMode } })`: LABEL (one-line label) or SUMMARY\n // (the referenced resource's summary card, no action bar). The unauthored fallback\n // derives from `DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE` — the single source for the\n // PICKER default, deliberately separate from the stored-VALUE default.\n // Read from the field schema so it applies in both forms and collection filters.\n // Explicit prop wins over the schema decorator: a caller whose control is not\n // schema-backed (the app-scope quick switcher, whose primary-key-fallback\n // schema carries no FK metadata) declares the mode itself. Schema-backed form\n // fields pass nothing and keep reading `.foreignKeyUI(...)`.\n const optionDisplayMode = optionDisplayModeProp\n ?? getForeignKeyUI(schema)?.edit?.optionDisplayMode\n ?? DEFAULT_FOREIGN_KEY_OPTION_DISPLAY_MODE;\n const targetConfiguration = resourceType ? registry.resourceConfigurations[resourceType] : undefined;\n const targetSummarySchema = targetConfiguration?.mainSchema;\n\n // E-4: when the options fetch fails, surface the error message in place of\n // the default empty/no-results text. The chrome around the field still\n // shows save/validation errors via FormFieldChrome.\n const effectiveEmptyMessage = fetchError\n ? resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE,\n key: 'fetchErrorEmptyMessage',\n params: { message: fetchError.message },\n })\n : emptyMessage;\n const quickCreate = useRelationshipQuickCreate({\n sourceResourceType: formSchemaContext?.resourceType,\n sourceResourceId: formSchemaContext?.resourceId,\n sourceFieldName: quickCreateSourceFieldName ?? name,\n sourceOperation: formSchemaContext?.operationType,\n relatedResourceType: resourceType,\n contextResourceIdentifiers: formSchemaContext?.contextResourceIdentifiers,\n navigationZone: formSchemaContext?.navigationZone,\n operationType: formSchemaContext?.operationType,\n onCreated: async ({ resourceId }) => {\n if (onQuickCreateCreated) {\n await onQuickCreateCreated(resourceId);\n return;\n }\n\n if (isMultiple) {\n const nextIds = [...new Set([...normalizedValue, resourceId])];\n onChange(nextIds.length > 0 ? nextIds : undefined);\n return;\n }\n\n onChange(resourceId);\n },\n });\n\n // =========================================================================\n // HANDLERS\n // =========================================================================\n\n const handleSingleChange = useCallback((selectedId: string) => {\n onChange(selectedId || undefined);\n }, [onChange]);\n\n const handleMultiChange = useCallback((selectedIds: string[]) => {\n onChange(selectedIds.length > 0 ? selectedIds : undefined);\n }, [onChange]);\n\n const renderSelectedValue = useCallback((option: FieldOption<string>) => {\n if (isLoadingCurrentValue) return '...';\n return getDisplayLabel(option.value);\n }, [isLoadingCurrentValue, getDisplayLabel]);\n\n // SUMMARY mode renders each dropdown OPTION as the referenced resource's summary\n // card (no actions, via ResourceSummaryDisplayer), reusing the summary DTO carried\n // on `option.data`. Falls back to the plain label when data/schema is unavailable.\n const renderSummaryOption = useCallback((option: FieldOption<string>): React.ReactNode => {\n if (resourceType && targetSummarySchema && option.data && typeof option.data === 'object') {\n return (\n <ResourceSummaryDisplayer\n resourceType={resourceType}\n // The option's own schema (#2455): for an inheritance resource, the variant its discriminators name.\n schema={FrontendResourceUtils.resolveRowSchema(targetConfiguration, option.data as Record<string, unknown>) ?? targetSummarySchema}\n data={option.data as Record<string, unknown>}\n // The option's own label IS the record's resolved primary label, and a\n // PICKER ROW is not a body-only surface: nothing else on the row names\n // the record. Without this the host cedes title rendering to the\n // template, the template renders no title, and every summary option\n // shows its body alone — a column of identical status badges with no\n // way to tell one record from another. (A host that draws the record's\n // name itself — the no-template list card, the read summary — omits it,\n // and the template then titles nothing.)\n primaryLabel={option.label}\n // The form's scope: an option's own fields read there, the option and its own primary scope added (#2198).\n contextResourceIdentifiers={formSchemaContext?.contextResourceIdentifiers}\n />\n );\n }\n return option.label;\n }, [resourceType, targetConfiguration, targetSummarySchema, formSchemaContext?.contextResourceIdentifiers]);\n // Only override option rendering in SUMMARY mode; LABEL leaves the combobox's\n // default (`option.label`) untouched — zero behavior change for existing fields.\n const renderResultOption = optionDisplayMode === ForeignKeyDisplayMode.SUMMARY ? renderSummaryOption : undefined;\n\n // =========================================================================\n // ERROR STATE — unknown resource type\n // =========================================================================\n\n if (!resourceType) {\n return (\n <div className={cn(\n \"flex items-center gap-element px-card-sm py-card-sm rounded-md border border-destructive bg-destructive/10 text-destructive text-sm\",\n className\n )}>\n <span>Unknown resource type for field: {name}</span>\n </div>\n );\n }\n\n // =========================================================================\n // RENDER\n // =========================================================================\n\n if (!isReady) return null;\n\n if (isMultiple) {\n return (\n <div className={cn('flex items-start gap-element', className)}>\n <ComboboxMultiple\n ref={ref}\n name={name}\n schema={schema}\n options={options}\n value={normalizedValue}\n onChange={handleMultiChange}\n renderOption={renderResultOption}\n onBlur={onBlur}\n disabled={disabled || readOnly}\n className=\"flex-1\"\n placeholder={placeholder || defaultPlaceholder}\n emptyMessage={effectiveEmptyMessage}\n onSearchChange={handleSearchChange}\n onOpenChange={setIsOpen}\n isLoading={isLoading}\n shouldFilter={false}\n size={comboboxSize}\n renderSelectedValue={renderSelectedValue}\n />\n {quickCreate.canQuickCreate && (\n <Button\n type=\"button\"\n size={quickCreateButtonSize}\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"shrink-0\"\n onClick={quickCreate.launchQuickCreate}\n disabled={disabled || readOnly || quickCreate.isLaunching}\n aria-label={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'create')}\n >\n {quickCreate.isLaunching\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })\n : renderIcon(StandardIconReference.PLUS, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n );\n }\n\n return (\n <div className={cn('flex items-start gap-element', className)}>\n <Combobox\n ref={ref}\n name={name}\n schema={schema}\n options={options}\n value={normalizedValue[0] ?? ''}\n onChange={handleSingleChange}\n renderOption={renderResultOption}\n onBlur={onBlur}\n disabled={disabled || readOnly}\n className=\"flex-1\"\n placeholder={placeholder || defaultPlaceholder}\n emptyMessage={effectiveEmptyMessage}\n onSearchChange={handleSearchChange}\n onOpenChange={setIsOpen}\n isLoading={isLoading}\n shouldFilter={false}\n size={comboboxSize}\n renderSelectedValue={renderSelectedValue}\n onClear={onClear}\n leadingAdornment={leadingAdornment}\n />\n {quickCreate.canQuickCreate && (\n <Button\n type=\"button\"\n size={quickCreateButtonSize}\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"shrink-0\"\n onClick={quickCreate.launchQuickCreate}\n disabled={disabled || readOnly || quickCreate.isLaunching}\n aria-label={tComponent(FrontendComponentType.RESOURCES_LAYOUTS_LIST, 'create')}\n >\n {quickCreate.isLaunching\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })\n : renderIcon(StandardIconReference.PLUS, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n );\n});\nResourceFieldEditPreset_ResourceReference_Default.displayName = 'ResourceFieldEditPreset_ResourceReference_Default';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.labels.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,mBAAmB,EAA2B,MAAM,qCAAqC,CAAC;AAM1I,eAAO,MAAM,sCAAsC,EAAE,mBAAmB,EA8BvE,CAAC"}
1
+ {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.labels.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,mBAAmB,EAA2B,MAAM,qCAAqC,CAAC;AAM1I,eAAO,MAAM,sCAAsC,EAAE,mBAAmB,EA+CvE,CAAC"}
@@ -12,7 +12,7 @@ export const ResourcesFieldsResourceReferenceLabels = [
12
12
  ref: 'minSearchChars',
13
13
  kind: LabelKind.MESSAGE,
14
14
  purpose: 'Prompts the user to type more characters before the reference search runs',
15
- params: [{ key: 'count', meaning: 'minimum number of characters required to trigger the search' }],
15
+ params: [{ key: 'count', meaning: 'minimum number of characters required to trigger the search', isCount: true }],
16
16
  },
17
17
  {
18
18
  ref: 'selectPlaceholder',
@@ -31,6 +31,23 @@ export const ResourcesFieldsResourceReferenceLabels = [
31
31
  purpose: 'Shown in place of options when fetching the reference candidates fails (network/server error)',
32
32
  params: [{ key: 'message', meaning: 'human-readable error message from the failed fetch' }],
33
33
  },
34
+ {
35
+ // A reference whose resource TYPE is chosen first (`.isResourceReference`, #2471): the type choice's placeholder.
36
+ ref: 'selectTypePlaceholder',
37
+ kind: LabelKind.PLACEHOLDER,
38
+ purpose: 'Placeholder of the first choice in a reference whose record type is not fixed: pick which kind of record (for example a matter or a ticket) before picking the record itself; short',
39
+ },
40
+ {
41
+ ref: 'noTypesAvailable',
42
+ kind: LabelKind.EMPTY_STATE,
43
+ purpose: 'Shown in that first choice when the application has no kind of record the reference can name, so there is nothing to pick; short',
44
+ },
45
+ {
46
+ // The display preset of the same component: a reference whose record could not be read (#2329).
47
+ ref: 'recordUnavailable',
48
+ kind: LabelKind.LABEL,
49
+ purpose: 'Shown in place of a linked record that cannot be shown, because it was deleted or is outside what the viewer may see; says neither, short, a few words',
50
+ },
34
51
  ];
35
52
  registerComponentLabels(FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, ResourcesFieldsResourceReferenceLabels);
36
53
  //# sourceMappingURL=ResourceFieldEditPreset_ResourceReference_Default.labels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.labels.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAA4B,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE1I,2EAA2E;AAC3E,6EAA6E;AAC7E,+EAA+E;AAE/E,MAAM,CAAC,MAAM,sCAAsC,GAA0B;IAC3E;QACE,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,wEAAwE;KAClF;IACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,2EAA2E;QACpF,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,6DAA6D,EAAE,CAAC;KACnG;IACD;QACE,GAAG,EAAE,mBAAmB;QACxB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,yJAAyJ;KACnK;IACD;QACE,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EACL,2OAA2O;QAC7O,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,6FAA6F,EAAE,CAAC;KACpI;IACD;QACE,GAAG,EAAE,wBAAwB;QAC7B,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,+FAA+F;QACxG,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;KAC5F;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,mCAAmC,EAAE,sCAAsC,CAAC,CAAC","sourcesContent":["import { FrontendComponentType, LabelKind, type LabellingUnitaryDef, registerComponentLabels } from '@wildo-ai/presets-components-models';\n\n// Companion-only label metadata for this component: keys + params + (where\n// authored) per-key purpose / kind / variable meaning. Statically scanned by\n// the dev companion; NOT imported at runtime, so it never ships in the bundle.\n\nexport const ResourcesFieldsResourceReferenceLabels: LabellingUnitaryDef[] = [\n {\n ref: 'noResults',\n kind: LabelKind.EMPTY_STATE,\n purpose: 'Shown when the resource-reference search returns no selectable options',\n },\n {\n ref: 'minSearchChars',\n kind: LabelKind.MESSAGE,\n purpose: 'Prompts the user to type more characters before the reference search runs',\n params: [{ key: 'count', meaning: 'minimum number of characters required to trigger the search' }],\n },\n {\n ref: 'selectPlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose: 'Generic placeholder for the resource-reference picker before a related record is chosen (fallback when the target-named placeholder key is unavailable)',\n },\n {\n ref: 'selectReferencePlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose:\n 'Target-named placeholder for a SINGLE-selection resource-reference picker (e.g. \"Select a Todo list…\"). Preferred over the generic selectPlaceholder; the runtime falls back to the generic key when this one is missing from the bundle.',\n params: [{ key: 'target', meaning: \"the referenced field's resolved edit label (singular record-type wording, e.g. 'Todo list')\" }],\n },\n {\n ref: 'fetchErrorEmptyMessage',\n kind: LabelKind.MESSAGE,\n purpose: 'Shown in place of options when fetching the reference candidates fails (network/server error)',\n params: [{ key: 'message', meaning: 'human-readable error message from the failed fetch' }],\n },\n];\nregisterComponentLabels(FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, ResourcesFieldsResourceReferenceLabels);\n"]}
1
+ {"version":3,"file":"ResourceFieldEditPreset_ResourceReference_Default.labels.js","sourceRoot":"","sources":["../../../../../../../src/components/resources-fields/_presets/resource-reference/ResourceFieldEditPreset_ResourceReference_Default.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAA4B,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE1I,2EAA2E;AAC3E,6EAA6E;AAC7E,+EAA+E;AAE/E,MAAM,CAAC,MAAM,sCAAsC,GAA0B;IAC3E;QACE,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,wEAAwE;KAClF;IACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,2EAA2E;QACpF,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,6DAA6D,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAClH;IACD;QACE,GAAG,EAAE,mBAAmB;QACxB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,yJAAyJ;KACnK;IACD;QACE,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EACL,2OAA2O;QAC7O,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,6FAA6F,EAAE,CAAC;KACpI;IACD;QACE,GAAG,EAAE,wBAAwB;QAC7B,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,+FAA+F;QACxG,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;KAC5F;IACD;QACE,kHAAkH;QAClH,GAAG,EAAE,uBAAuB;QAC5B,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,qLAAqL;KAC/L;IACD;QACE,GAAG,EAAE,kBAAkB;QACvB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,kIAAkI;KAC5I;IACD;QACE,gGAAgG;QAChG,GAAG,EAAE,mBAAmB;QACxB,IAAI,EAAE,SAAS,CAAC,KAAK;QACrB,OAAO,EAAE,wJAAwJ;KAClK;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,mCAAmC,EAAE,sCAAsC,CAAC,CAAC","sourcesContent":["import { FrontendComponentType, LabelKind, type LabellingUnitaryDef, registerComponentLabels } from '@wildo-ai/presets-components-models';\n\n// Companion-only label metadata for this component: keys + params + (where\n// authored) per-key purpose / kind / variable meaning. Statically scanned by\n// the dev companion; NOT imported at runtime, so it never ships in the bundle.\n\nexport const ResourcesFieldsResourceReferenceLabels: LabellingUnitaryDef[] = [\n {\n ref: 'noResults',\n kind: LabelKind.EMPTY_STATE,\n purpose: 'Shown when the resource-reference search returns no selectable options',\n },\n {\n ref: 'minSearchChars',\n kind: LabelKind.MESSAGE,\n purpose: 'Prompts the user to type more characters before the reference search runs',\n params: [{ key: 'count', meaning: 'minimum number of characters required to trigger the search', isCount: true }],\n },\n {\n ref: 'selectPlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose: 'Generic placeholder for the resource-reference picker before a related record is chosen (fallback when the target-named placeholder key is unavailable)',\n },\n {\n ref: 'selectReferencePlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose:\n 'Target-named placeholder for a SINGLE-selection resource-reference picker (e.g. \"Select a Todo list…\"). Preferred over the generic selectPlaceholder; the runtime falls back to the generic key when this one is missing from the bundle.',\n params: [{ key: 'target', meaning: \"the referenced field's resolved edit label (singular record-type wording, e.g. 'Todo list')\" }],\n },\n {\n ref: 'fetchErrorEmptyMessage',\n kind: LabelKind.MESSAGE,\n purpose: 'Shown in place of options when fetching the reference candidates fails (network/server error)',\n params: [{ key: 'message', meaning: 'human-readable error message from the failed fetch' }],\n },\n {\n // A reference whose resource TYPE is chosen first (`.isResourceReference`, #2471): the type choice's placeholder.\n ref: 'selectTypePlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose: 'Placeholder of the first choice in a reference whose record type is not fixed: pick which kind of record (for example a matter or a ticket) before picking the record itself; short',\n },\n {\n ref: 'noTypesAvailable',\n kind: LabelKind.EMPTY_STATE,\n purpose: 'Shown in that first choice when the application has no kind of record the reference can name, so there is nothing to pick; short',\n },\n {\n // The display preset of the same component: a reference whose record could not be read (#2329).\n ref: 'recordUnavailable',\n kind: LabelKind.LABEL,\n purpose: 'Shown in place of a linked record that cannot be shown, because it was deleted or is outside what the viewer may see; says neither, short, a few words',\n },\n];\nregisterComponentLabels(FrontendComponentType.RESOURCES_FIELDS_RESOURCE_REFERENCE, ResourcesFieldsResourceReferenceLabels);\n"]}
@@ -1,6 +1,7 @@
1
1
  import { type ResourceType } from '@wildo-ai/saas-models';
2
2
  import type { FieldOption } from '../../../components/form/form-field-types';
3
3
  import type { ResourceRegistryContextType } from '../../../core/resources/ResourceRegistryContext';
4
+ import type { FrontendResource_ParentResourceRequirement } from '../../../core/resources/resource-path.frontend.schemas';
4
5
  import type { FrontendResourceConfiguration_Operation, FrontendResourcesRegistry } from '../../../core/resources/resources.frontend.schemas';
5
6
  type ResourceReferenceDateFormatter = (value: Date | string | number) => string;
6
7
  type ResourceReferenceTranslator = (toTranslate: string, translateParams?: {
@@ -39,6 +40,13 @@ export declare function fetchResourceReferenceRecordAndLabel(params: {
39
40
  doOperation: ResourceRegistryContextType['doOperation'];
40
41
  contextualParameters?: Record<string, string | number>;
41
42
  readOperation?: FrontendResourceConfiguration_Operation | null;
43
+ /**
44
+ * The parent chain the READ must be sent through, when the caller knows the record's own route — a reference drawn
45
+ * with no host record passes the chain of the route it links to. Without it the request takes the most specific
46
+ * route its parameters satisfy, and the scoped registry injects the viewer's whole working scope into every call (a
47
+ * selected list included), which can route the read under a parent the record does not belong to.
48
+ */
49
+ parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];
42
50
  t: ResourceReferenceTranslator;
43
51
  formatDate: ResourceReferenceDateFormatter;
44
52
  formatDateTime: ResourceReferenceDateFormatter;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-reference.shared.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/resources-fields/resource-reference/resource-reference.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4E,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAG9G,OAAO,KAAK,EACV,uCAAuC,EACvC,yBAAyB,EAC1B,MAAM,+DAA+D,CAAC;AAEvE,KAAK,8BAA8B,GAAG,CAAC,KAAK,EAAE,IAA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/D,CAAC,EAAE,2BAA2B,CAAC;IAE/B,UAAU,EAAE,8BAA8B,CAAC;IAE3C,cAAc,EAAE,8BAA8B,CAAC;CAChD,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAkHD"}
1
+ {"version":3,"file":"resource-reference.shared.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/resources-fields/resource-reference/resource-reference.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4E,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAC9G,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAGpI,OAAO,KAAK,EACV,uCAAuC,EACvC,yBAAyB,EAC1B,MAAM,+DAA+D,CAAC;AAEvE,KAAK,8BAA8B,GAAG,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;AAEhF,KAAK,2BAA2B,GAAG,CACjC,WAAW,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,KACrC,MAAM,CAAC;AAEZ;;;;;;;;;;;GAWG;AACH,wBAAgB,uCAAuC,CAAC,MAAM,EAAE;IAC9D,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,yBAAyB,CAAC;IACpC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACvD,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAc9C;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC1C,MAAM,EAAE,CAQV;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,yBAAyB,CAAC;IAEpC,CAAC,EAAE,2BAA2B,CAAC;IAE/B,UAAU,EAAE,8BAA8B,CAAC;IAE3C,cAAc,EAAE,8BAA8B,CAAC;CAChD,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,CA8BxB;AAED,wBAAsB,oCAAoC,CAAC,MAAM,EAAE;IACjE,YAAY,EAAE,YAAY,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,yBAAyB,CAAC;IACpC,WAAW,EAAE,2BAA2B,CAAC,aAAa,CAAC,CAAC;IACxD,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACvD,aAAa,CAAC,EAAE,uCAAuC,GAAG,IAAI,CAAC;IAC/D;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,0CAA0C,EAAE,CAAC;IAE3E,CAAC,EAAE,2BAA2B,CAAC;IAE/B,UAAU,EAAE,8BAA8B,CAAC;IAE3C,cAAc,EAAE,8BAA8B,CAAC;CAChD,GAAG,OAAO,CAAC;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAqHD"}
@@ -142,6 +142,9 @@ export async function fetchResourceReferenceRecordAndLabel(params) {
142
142
  */
143
143
  const record = await params.doOperation(operationPath, {
144
144
  contextualParameters,
145
+ ...(params.parentResourcesRequirements && params.parentResourcesRequirements.length > 0
146
+ ? { parentResourcesRequirements: params.parentResourcesRequirements }
147
+ : {}),
145
148
  }, {
146
149
  silent: true,
147
150
  riskLevel: ResourceOperationRiskLevel.LOW,