@wildo-ai/saas-frontend-lib 1.1.16 → 1.1.18

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 (685) hide show
  1. package/LICENSE +114 -26
  2. package/LICENSE.enterprise +129 -0
  3. package/dist/esm/companion-exports.d.ts +5 -2
  4. package/dist/esm/companion-exports.d.ts.map +1 -1
  5. package/dist/esm/companion-exports.js +4 -2
  6. package/dist/esm/companion-exports.js.map +1 -1
  7. package/dist/esm/components/actions/action-bar.d.ts +16 -1
  8. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  9. package/dist/esm/components/actions/action-bar.js.map +1 -1
  10. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  11. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
  12. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  13. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
  14. package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
  15. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
  16. package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
  17. package/dist/esm/components/app/AppLayout_Home.js +14 -7
  18. package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
  19. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
  20. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
  21. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
  22. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
  23. package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
  24. package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
  25. package/dist/esm/components/app/DecisionInboxSection.js +15 -0
  26. package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
  27. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
  28. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
  29. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
  30. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
  31. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
  32. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
  33. package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
  34. package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
  35. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
  36. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
  37. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
  38. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
  39. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
  40. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
  41. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
  42. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
  43. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
  44. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
  45. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
  46. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
  47. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  48. package/dist/esm/components/auth/Auth_Main.js +5 -0
  49. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  50. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
  51. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
  53. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
  57. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
  58. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
  59. package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
  60. package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
  61. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  62. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  63. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
  64. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  65. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
  66. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
  67. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
  68. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
  69. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
  70. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
  71. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
  72. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
  73. package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
  74. package/dist/esm/components/billing/billing-pricing-table.js +40 -7
  75. package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
  76. package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
  77. package/dist/esm/components/billing/billing-subscription-status.js +9 -1
  78. package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
  79. package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
  80. package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
  81. package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
  82. package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  83. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  84. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  85. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  87. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayField.js +67 -45
  90. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  93. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  94. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  96. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  97. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  98. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  99. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  100. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  101. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  102. package/dist/esm/components/data-display/approval-seal.js +10 -4
  103. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  104. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  105. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  106. package/dist/esm/components/data-display/signature-requests.js +123 -0
  107. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  108. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  109. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  110. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  111. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  112. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  113. package/dist/esm/components/feedback/empty-state.js +2 -1
  114. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  115. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  116. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  117. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  118. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  119. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  120. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  121. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  122. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  123. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  124. package/dist/esm/components/flows-actors/approval.js +22 -24
  125. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  126. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  127. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  128. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  129. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  130. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  131. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  132. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  133. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  134. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  135. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  136. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  137. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  138. package/dist/esm/components/form/Form.d.ts +2 -0
  139. package/dist/esm/components/form/Form.d.ts.map +1 -1
  140. package/dist/esm/components/form/Form.js +1 -0
  141. package/dist/esm/components/form/Form.js.map +1 -1
  142. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  144. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  145. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  146. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  147. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  148. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  149. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  150. package/dist/esm/components/form/automated/FormField.js +38 -13
  151. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  152. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  153. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  154. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
  155. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  156. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  157. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  158. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  159. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  160. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  161. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  162. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  163. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  164. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  165. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  166. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  167. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  168. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  169. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  170. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  171. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  172. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  173. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  174. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  175. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  176. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  177. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  178. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  179. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  180. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  181. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  182. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  183. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  184. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  185. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  186. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  187. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  188. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  189. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  190. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  191. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  192. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  193. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  194. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  195. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  196. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  197. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  198. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  199. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  200. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
  201. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  202. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  203. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  204. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  205. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  206. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  207. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  208. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  209. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  210. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  211. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  212. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  213. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  214. package/dist/esm/components/navigation/command.d.ts +5 -0
  215. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  216. package/dist/esm/components/navigation/command.js.map +1 -1
  217. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  218. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  219. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
  220. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  221. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  222. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
  223. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  224. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  225. package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
  226. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  227. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  228. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  229. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  230. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  231. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  232. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  233. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  234. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  235. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  236. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  237. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  238. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  239. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  240. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  241. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  242. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  243. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  244. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  245. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  246. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  247. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  248. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  249. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  250. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  251. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  252. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  253. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  254. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  255. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  256. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  257. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  258. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  259. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  260. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  261. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  262. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  263. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  264. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  265. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  266. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  267. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  268. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  269. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  270. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  271. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  272. package/dist/esm/components/sections/content-section.d.ts +1 -3
  273. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  274. package/dist/esm/components/sections/content-section.js.map +1 -1
  275. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
  276. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
  277. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
  278. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  279. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  280. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  281. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  282. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  283. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  284. package/dist/esm/components/settings/SettingsHub.js +14 -4
  285. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  286. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  287. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  288. package/dist/esm/components/typography/document-heading-level.js +63 -0
  289. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  290. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  291. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  292. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  293. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  294. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  295. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  296. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  297. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  298. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  299. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  300. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  301. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  302. package/dist/esm/components/views/chart-view/ChartView.js +52 -22
  303. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  304. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  305. package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
  306. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  307. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  308. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  309. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  310. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  311. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  312. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  313. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  314. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  315. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  316. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  317. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  318. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  319. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  320. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  321. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
  322. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  323. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
  324. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  325. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  326. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
  327. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  328. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  329. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  330. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  331. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  332. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  333. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  334. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  335. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  336. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  337. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
  338. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  339. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  340. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  341. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  342. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  343. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  344. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
  345. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  346. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  347. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  348. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  349. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  350. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  351. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
  352. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  353. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  354. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  355. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  356. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  357. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  358. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  359. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  360. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
  361. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  362. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  363. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  364. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  365. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  366. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  367. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  368. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  369. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  370. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  371. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  372. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  373. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  374. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  375. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  376. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  377. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  378. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  379. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  380. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  381. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  382. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  383. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  384. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  385. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  386. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  387. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  388. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  389. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  390. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  391. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  392. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  393. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  394. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  395. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  396. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  397. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  398. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  399. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  400. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  401. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  402. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  403. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  404. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  405. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  406. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  407. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  408. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  409. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  410. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  411. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  412. package/dist/esm/core/billing/BillingContext.js +61 -2
  413. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  414. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  415. package/dist/esm/core/billing/useBillingAction.js +3 -2
  416. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  417. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  418. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  419. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  420. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  421. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  422. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  423. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  424. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  425. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  426. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  427. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  428. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  429. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  430. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  431. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  432. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  433. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  434. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  435. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  436. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  437. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  438. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  439. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  440. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  441. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  442. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  443. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  444. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  445. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  446. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  447. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  448. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  449. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  450. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  451. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  452. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  453. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  454. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  455. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  456. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  457. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  458. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  459. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  460. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  461. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  462. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  463. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  464. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  465. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  466. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  467. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  468. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  469. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  470. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  471. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  472. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  473. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  474. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  475. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  476. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  477. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  478. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  479. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  480. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  481. package/dist/esm/core/events/NotificationContext.js +19 -2
  482. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  483. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  484. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  485. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  486. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  487. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  488. package/dist/esm/core/execution/useExecution.js.map +1 -1
  489. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  490. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  491. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  492. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  493. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  494. package/dist/esm/core/features/FeatureGate.js +6 -1
  495. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  496. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  497. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  498. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  499. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  500. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  501. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  502. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  503. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  504. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  505. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  506. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  507. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  508. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  509. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  510. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  511. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  512. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  513. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  514. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  515. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  516. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  517. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  518. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  519. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  520. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  521. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  522. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  523. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  524. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  525. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  526. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  527. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  528. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  529. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  530. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  531. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  532. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  533. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  534. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  535. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  536. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  537. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  538. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  539. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  540. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  541. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  542. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  543. package/dist/esm/core/navigation/home-resolution.js +46 -0
  544. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  545. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  546. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  547. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  548. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  549. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  550. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  551. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  552. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  553. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  554. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  555. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  556. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  557. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  558. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  559. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  560. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  561. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  562. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  563. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  564. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  565. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  566. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  567. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  568. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  569. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  570. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  571. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  572. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  573. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  574. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  575. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  576. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  577. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  578. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  579. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  580. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  581. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  582. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  583. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  584. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  585. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  586. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
  587. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  588. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
  589. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  590. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  591. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  592. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  593. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  594. package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
  595. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  596. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  597. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  598. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  599. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  600. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  601. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  602. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  603. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  604. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  605. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  606. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  607. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  608. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  609. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  610. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  611. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  612. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  613. package/dist/esm/core/runtime/AppRouter.js +11 -33
  614. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  615. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  616. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  617. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  618. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  619. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  620. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  621. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  622. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  623. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  624. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  625. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  626. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  627. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  628. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  629. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  630. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  631. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  632. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  633. package/dist/esm/core/runtime/identity-routes.js +50 -0
  634. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  635. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  636. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  637. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  638. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  639. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  640. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  641. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  642. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  643. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  644. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  645. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  646. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  647. package/dist/esm/core/search/command-score.d.ts +33 -0
  648. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  649. package/dist/esm/core/search/command-score.js +109 -0
  650. package/dist/esm/core/search/command-score.js.map +1 -0
  651. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  652. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  653. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  654. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  655. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  656. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  657. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  658. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  659. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  660. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  661. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  662. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  663. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  664. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  665. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  666. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  667. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  668. package/dist/esm/core/ui/design-token.utils.js +24 -3
  669. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  670. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  671. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  672. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  673. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  674. package/dist/esm/index.d.ts +19 -1
  675. package/dist/esm/index.d.ts.map +1 -1
  676. package/dist/esm/index.js +22 -1
  677. package/dist/esm/index.js.map +1 -1
  678. package/dist/esm/testing/mock-builders.d.ts +1 -1
  679. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  680. package/dist/esm/testing/mock-builders.js +1 -0
  681. package/dist/esm/testing/mock-builders.js.map +1 -1
  682. package/dist/tsconfig.build.tsbuildinfo +1 -1
  683. package/package.json +9 -6
  684. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  685. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ChartView.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.tsx"],"names":[],"mappings":";AAAA;;;;;;;;oEAQoE;AAEpE,OAAc,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,SAAS,EAA+C,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,YAA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,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAE9C,KAAC,WAAW;QACV,wEAAwE;QACxE,8DAA8D;YAE9D,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,iBAAiB,EAAE,EAC1B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EACxC,QAAQ,EAAE,IAAI;YACZ,uEAAuE;YACvE,wEAAwE;YACxE,kEAAkE;YAClE,sEAAsE;YACtE,uEAAuE;YACvE,uEAAuE;YACvE,sEAAsE;YACtE,uEAAuE;YACvE,oEAAoE;YACpE,oBAAoB;YACtB,UAAU,EAAE,KAAK,EACjB,YAAY,EAAE,YAAY,IAhBrB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAiB9B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * ChartView — ECharts-based chart component\n *\n * Fetches data from backend via POST /api/charts/:chartRef/data,\n * combines with the visual encoding from the chart definition,\n * and renders via ECharts.\n *\n * This file is lazy-loaded via React.lazy() in AppRouter.\n * ────────────────────────────────────────────────────────────── */\n\nimport React, { useRef, useCallback, useMemo } from 'react';\nimport { ChartType, type ChartDefinition, type ChartInputValues } from '@wildo-ai/saas-models';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useChartData } from './chart-view.utils';\nimport { useResolvedChartRuntimeDescriptor } from './chart-runtime.utils';\nimport { useChartTheme, getWildoThemeName } from './chart-theme-bridge';\nimport { buildDimensionEnumMeta } from './enum-color-bridge';\nimport { buildEChartsOption } from './option-builder/echarts-option-builder';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\nimport { ChartErrorState } from './ChartErrorState';\nimport { ChartEmptyState } from './ChartEmptyState';\nimport { ChartKpiFigure } from './ChartKpiFigure';\nimport {\n buildResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport type {\n InsertedChartDeclaration,\n ResolvedInsertedChartDescriptor,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\n\n// Direct ECharts binding. Replaces `echarts-for-react`, whose `'finished'`-gated\n// double-init hangs on ECharts 6.0.0 (see WildoEChart for the full analysis).\n// ECharts stays behind this file's app-level React.lazy boundary via WildoEChart's\n// static `echarts-setup` import.\nimport { WildoEChart } from './WildoEChart';\n\nexport interface ChartViewProps {\n /** View reference — resolved from UIContext internally. */\n viewRef?: string;\n /** Pre-resolved bare chart definition. Useful for dev previews and direct renderers. */\n document?: ChartDefinition;\n /** Pre-resolved chart surface definition. When provided, `viewRef` is ignored. */\n viewDefinition?: InsertedChartDeclaration;\n /** Pre-resolved runtime descriptor for inserted or already-bound charts. */\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n /** Explicit navigation-time or host-time context bindings. */\n contextResourceIdentifiers?: Record<string, string>;\n /** Explicit standalone-route URL param values for URL_PARAM chart bindings. */\n urlParamValues?: Record<string, string>;\n /** Explicit chart input overrides. These win over binding/default-derived values. */\n inputs?: ChartInputValues;\n /** Custom class name */\n className?: string;\n /** Width */\n width?: string | number;\n /** Height */\n height?: string | number;\n /**\n * When true, a data-fetch failure degrades LOCALLY (this chart card shows the\n * error, with retry) WITHOUT raising the global error toast. Set by EMBEDDED\n * hosts (composite tiles, detail-page charts) so one sub-surface's 403/5xx does\n * not read as a page-level failure. Standalone chart pages leave it `false` and\n * keep the global error pipeline. The error is still emitted/logged either way.\n */\n localErrorOnly?: boolean;\n}\n\n/**\n * ChartView — renders an ECharts chart from a ChartDefinition.\n *\n * Data flow:\n * 1. Resolve definition from UIContext or props\n * 2. Fetch aggregated data from backend\n * 3. Build ECharts option from definition + data\n * 4. Render with echarts-for-react\n */\nexport const ChartView: React.FC<ChartViewProps> = ({\n viewRef,\n document: documentProp,\n viewDefinition: viewDefinitionProp,\n runtimeDescriptor,\n contextResourceIdentifiers,\n urlParamValues,\n inputs,\n className = '',\n width = '100%',\n height = 400,\n localErrorOnly = false,\n}) => {\n const { registry } = useResourceRegistry();\n const { getChartStylePreset, isDark } = useUI();\n const chartStylePreset = getChartStylePreset();\n const { t, isReady, resolvedRegionalPreferences } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART });\n const resizeObserverRef = useRef<ResizeObserver | null>(null);\n const echartsRef = useRef<any>(null);\n\n // Register/update chart theme with current style preset\n useChartTheme(chartStylePreset);\n\n const resolvedInsertedChart = useMemo(\n () => (viewDefinitionProp ? undefined : resolveInsertedChartView({ viewRef, registry })),\n [viewDefinitionProp, viewRef, registry],\n );\n const viewDefinition = viewDefinitionProp ?? resolvedInsertedChart?.chartView;\n const effectiveRuntimeDescriptor = useMemo(\n () => runtimeDescriptor ?? (\n resolvedInsertedChart\n ? buildResolvedInsertedChartDescriptor({\n identity: resolvedInsertedChart.identity,\n chartView: resolvedInsertedChart.chartView,\n contextResourceIdentifiers: contextResourceIdentifiers ?? {},\n })\n : undefined\n ),\n [runtimeDescriptor, resolvedInsertedChart, contextResourceIdentifiers],\n );\n const runtime = useResolvedChartRuntimeDescriptor({\n surfaceDefinition: viewDefinition,\n chartDefinition: documentProp,\n runtimeDescriptor: effectiveRuntimeDescriptor,\n explicitContextResourceIdentifiers: contextResourceIdentifiers,\n explicitInputs: inputs,\n urlParamValues,\n });\n const definition = runtime?.chartDefinition;\n\n // Fetch chart data\n const { data, loading, error, refetch } = useChartData(\n definition,\n runtime?.executionChartRef,\n runtime?.resolvedInputs,\n runtime?.contextResourceIdentifiers,\n urlParamValues,\n localErrorOnly,\n resolvedRegionalPreferences.timezone,\n );\n\n // ResizeObserver for container.\n //\n // ECharts reflows to the container natively via `instance.resize()`; we do NOT\n // rebuild the ECharts `option` on resize. An earlier implementation pushed the\n // observed size into React state (a `containerSize` that fed `buildEChartsOption`\n // and sat in the `option` useMemo deps), so every resize tick produced a brand-new\n // option object. Combined with `notMerge`+`lazyUpdate` below, that scheduled a\n // frame-deferred atomic option replacement that raced the in-flight `resize()`\n // relayout — surfacing as `Cannot read properties of undefined (reading 'group')`\n // in ECharts' `CartesianAxisView.render` one frame late, plus the tell-tale\n // \"ResizeObserver loop completed with undelivered notifications\" (the observer\n // callback's state update re-triggered layout). `containerSize` was in any case\n // dead context — no chart-type builder reads it — so dropping the rebuild is\n // behaviour-preserving. Native resize is the whole job here.\n // The observer must arm when the REAL container mounts, which happens strictly\n // AFTER the loading/error/empty early returns below stop short-circuiting —\n // i.e. potentially many renders after the initial mount. A mount-time\n // `useEffect(…, [])` reading a plain ref (the previous implementation) ran\n // exactly once, while the container was still null (the first render always\n // takes the loading/skeleton branch), so the observer NEVER armed and charts\n // never reflowed to container resizes. A callback ref is the structural fix:\n // React invokes it at the moment the container node attaches (and with `null`\n // when it detaches, including unmount), so arming/disarming exactly tracks the\n // real DOM node regardless of which render branch produced it.\n const containerRefCallback = useCallback((el: HTMLDivElement | null) => {\n resizeObserverRef.current?.disconnect();\n resizeObserverRef.current = null;\n if (!el) return;\n\n const observer = new ResizeObserver(() => {\n const instance = echartsRef.current?.getEchartsInstance?.();\n // Guard against a disposed instance: on theme toggle the chart remounts\n // (see the `key` prop below) and the observer closure can fire against an\n // instance that ECharts has already torn down — `resize()` would throw.\n if (instance && !instance.isDisposed?.()) {\n instance.resize();\n }\n });\n\n observer.observe(el);\n resizeObserverRef.current = observer;\n }, []);\n\n // Save echarts instance ref\n const onChartReady = useCallback((instance: unknown) => {\n echartsRef.current = { getEchartsInstance: () => instance };\n }, []);\n\n // Build ECharts option — memoized, placed before early returns to respect Rules of Hooks.\n // Deliberately NOT keyed on container size: the option carries no size-dependent\n // fields (no builder reads `containerSize`), and rebuilding it on resize is what\n // raced the native `resize()` into the `CartesianAxisView` crash (see the observer\n // above). The option now rebuilds only on genuine content/appearance changes.\n // Enum coherence: when a chart dimension is an enum, resolve — once, from the\n // resource registry's decorated schema — both the value→color map (slices/bars\n // match the value's badge) and the enum's declared member order (categories sort\n // by declaration order, not the backend's alphabetical order). Keyed on `isDark`\n // because the colors resolve live CSS vars (`--info`, `--muted-foreground`, …)\n // that flip with the theme; ChartView does not remount on toggle (only its child\n // chart does), so without this the memo would keep the previous mode's colors.\n // See `enum-color-bridge.ts`.\n //\n // Labels ride the same pass: an enum dimension's values are DISPLAYED through the i18n tree (axis\n // categories, slice and split names) while the data stays keyed on the raw value. The resource's\n // label bundle is requested here so its enum labels are loaded before the chart renders.\n const { tResourceFieldEnumValue, isReady: isResourceLabelsReady } = useI18n({ resource: definition?.dataQuery.mainResourceType });\n const dimensionEnumMeta = useMemo(\n () => (definition\n ? buildDimensionEnumMeta(definition, (type) => registry.resourceConfigurations[type], tResourceFieldEnumValue)\n : { colors: {}, order: {}, labels: {} }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [definition, registry, isDark, tResourceFieldEnumValue, isResourceLabelsReady],\n );\n\n // A KPI is a figure, not a drawing (#2299): it builds no ECharts option and renders `ChartKpiFigure` below.\n const isKpi = definition?.chartType === ChartType.KPI;\n const option = useMemo(\n () => (definition && !isKpi && data && data.data.length > 0)\n ? buildEChartsOption(definition, data, undefined, chartStylePreset, t, dimensionEnumMeta, resolvedRegionalPreferences.locale)\n : null,\n [definition, isKpi, data, chartStylePreset, t, dimensionEnumMeta, resolvedRegionalPreferences.locale],\n );\n\n // Not found\n if (!definition) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n // Loading\n if (loading && !data) {\n return <ChartLoadingSkeleton height={height} />;\n }\n\n // Error\n if (error) {\n return <ChartErrorState error={error} onRetry={refetch} />;\n }\n\n // A figure: one row, always, from a backend that completes an empty scope; no row only from one that does not.\n if (isKpi) {\n return data && data.data.length > 0\n ? <ChartKpiFigure definition={definition} data={data} className={className} />\n : <ChartEmptyState />;\n }\n\n // Empty\n if (!option) {\n return <ChartEmptyState />;\n }\n\n if (!isReady || !isResourceLabelsReady) return null;\n\n return (\n <div\n ref={containerRefCallback}\n className={cn('chart-view', className)}\n style={{ width, height, position: 'relative' }}\n >\n <WildoEChart\n // Remount on dark-mode toggle: the theme name is stable but its content\n // is re-registered, and ECharts bakes the theme at init time.\n key={isDark ? 'dark' : 'light'}\n option={option}\n theme={getWildoThemeName()}\n style={{ width: '100%', height: '100%' }}\n notMerge={true}\n // lazyUpdate MUST stay false. With lazyUpdate={true}, ECharts 6 defers\n // the setOption flush to its next animation frame (`_onframe`); ECharts\n // 6.0.0 then crashes on that deferred path for cartesian charts —\n // `CartesianAxisView.render` dereferences `axisModel.axis.axisBuilder\n // .group` while `axisBuilder` is still undefined (ECharts 6 \"promoted\"\n // axis-element building to the coordinate-system resize stage, but the\n // deferred-flush ordering skips it). Symptom: `TypeError: Cannot read\n // properties of undefined (reading 'group')`. A synchronous flush runs\n // the full resize→render pipeline in order and renders cleanly with\n // animation intact.\n lazyUpdate={false}\n onChartReady={onChartReady}\n />\n </div>\n );\n};\n\nexport default ChartView;\n"]}
1
+ {"version":3,"file":"ChartView.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.tsx"],"names":[],"mappings":";AAAA;;;;;;;;oEAQoE;AAEpE,OAAc,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,SAAS,EAA+C,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CA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CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * ChartView — ECharts-based chart component\n *\n * Fetches data from backend via POST /api/charts/:chartRef/data,\n * combines with the visual encoding from the chart definition,\n * and renders via ECharts.\n *\n * This file is lazy-loaded via React.lazy() in AppRouter.\n * ────────────────────────────────────────────────────────────── */\n\nimport React, { useRef, useCallback, useMemo } from 'react';\nimport { CHART_VIEW_DEFAULT_HEIGHT } from './chart-view-defaults';\nimport { ChartType, type ChartDefinition, type ChartInputValues } from '@wildo-ai/saas-models';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useChartData } from './chart-view.utils';\nimport { useResolvedChartRuntimeDescriptor } from './chart-runtime.utils';\nimport { useChartTheme, getWildoThemeName } from './chart-theme-bridge';\nimport { buildDimensionEnumMeta } from './enum-color-bridge';\nimport { buildEChartsOption } from './option-builder/echarts-option-builder';\nimport { chartDefinitionLabelKeys, createChartLabelResolver, withSeriesLabelKeys } from './option-builder/builder-utils';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\nimport { ChartErrorState } from './ChartErrorState';\nimport { ChartEmptyState } from './ChartEmptyState';\nimport { ChartKpiFigure } from './ChartKpiFigure';\nimport {\n buildResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport type {\n InsertedChartDeclaration,\n ResolvedInsertedChartDescriptor,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { FrontendInsertedViewHostKind } from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { buildChartMarkLabelKey, buildChartSeriesLabelKey, buildResourceViewTranslationRef } from '~wildo-frontend-lib/core/navigation/view-title-resolution';\n\n// Direct ECharts binding. Replaces `echarts-for-react`, whose `'finished'`-gated\n// double-init hangs on ECharts 6.0.0 (see WildoEChart for the full analysis).\n// ECharts stays behind this file's app-level React.lazy boundary via WildoEChart's\n// static `echarts-setup` import.\nimport { WildoEChart } from './WildoEChart';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\n\nexport interface ChartViewProps {\n /** View reference — resolved from UIContext internally. */\n viewRef?: string;\n /** Pre-resolved bare chart definition. Useful for dev previews and direct renderers. */\n document?: ChartDefinition;\n /** Pre-resolved chart surface definition. When provided, `viewRef` is ignored. */\n viewDefinition?: InsertedChartDeclaration;\n /** Pre-resolved runtime descriptor for inserted or already-bound charts. */\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n /** Explicit navigation-time or host-time context bindings. */\n contextResourceIdentifiers?: Record<string, string>;\n /** Explicit standalone-route URL param values for URL_PARAM chart bindings. */\n urlParamValues?: Record<string, string>;\n /** Explicit chart input overrides. These win over binding/default-derived values. */\n inputs?: ChartInputValues;\n /** Custom class name */\n className?: string;\n /** Width */\n width?: string | number;\n /** Height */\n height?: string | number;\n /**\n * When true, a data-fetch failure degrades LOCALLY (this chart card shows the\n * error, with retry) WITHOUT raising the global error toast. Set by EMBEDDED\n * hosts (composite tiles, detail-page charts) so one sub-surface's 403/5xx does\n * not read as a page-level failure. Standalone chart pages leave it `false` and\n * keep the global error pipeline. The error is still emitted/logged either way.\n */\n localErrorOnly?: boolean;\n}\n\n/**\n * ChartView — renders an ECharts chart from a ChartDefinition.\n *\n * Data flow:\n * 1. Resolve definition from UIContext or props\n * 2. Fetch aggregated data from backend\n * 3. Build ECharts option from definition + data\n * 4. Render with echarts-for-react\n */\nexport const ChartView: React.FC<ChartViewProps> = ({\n viewRef,\n document: documentProp,\n viewDefinition: viewDefinitionProp,\n runtimeDescriptor,\n contextResourceIdentifiers,\n urlParamValues,\n inputs,\n className = '',\n width = '100%',\n height = CHART_VIEW_DEFAULT_HEIGHT,\n localErrorOnly = false,\n}) => {\n const { registry } = useResourceRegistry();\n const { getChartStylePreset, isDark } = useUI();\n const chartStylePreset = getChartStylePreset();\n const { t, tComponent, isReady, resolvedRegionalPreferences } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART });\n const resizeObserverRef = useRef<ResizeObserver | null>(null);\n const echartsRef = useRef<any>(null);\n\n // Register/update chart theme with current style preset\n useChartTheme(chartStylePreset);\n\n const resolvedInsertedChart = useMemo(\n () => (viewDefinitionProp ? undefined : resolveInsertedChartView({ viewRef, registry })),\n [viewDefinitionProp, viewRef, registry],\n );\n const viewDefinition = viewDefinitionProp ?? resolvedInsertedChart?.chartView;\n const effectiveRuntimeDescriptor = useMemo(\n () => runtimeDescriptor ?? (\n resolvedInsertedChart\n ? buildResolvedInsertedChartDescriptor({\n identity: resolvedInsertedChart.identity,\n chartView: resolvedInsertedChart.chartView,\n contextResourceIdentifiers: contextResourceIdentifiers ?? {},\n })\n : undefined\n ),\n [runtimeDescriptor, resolvedInsertedChart, contextResourceIdentifiers],\n );\n const runtime = useResolvedChartRuntimeDescriptor({\n surfaceDefinition: viewDefinition,\n chartDefinition: documentProp,\n runtimeDescriptor: effectiveRuntimeDescriptor,\n explicitContextResourceIdentifiers: contextResourceIdentifiers,\n explicitInputs: inputs,\n urlParamValues,\n });\n const runtimeDefinition = runtime?.chartDefinition;\n\n /*\n * Each series is named by a LABEL (`resolveSeriesName`): the key the definition names in `nameKey`, else the series'\n * own key under this chart view's label keys, which the labelling pipeline plans beside the chart's title. A chart\n * drawn outside any resource view (a development preview) has no view keys, and its series show their refs.\n */\n const identity = effectiveRuntimeDescriptor?.identity;\n const seriesTranslationRef = identity?.hostKind === FrontendInsertedViewHostKind.RESOURCE\n ? buildResourceViewTranslationRef(identity.hostRef, identity.localRef)\n : undefined;\n const definition = useMemo(\n () => (runtimeDefinition && seriesTranslationRef\n ? withSeriesLabelKeys(\n runtimeDefinition,\n (seriesRef) => buildChartSeriesLabelKey(seriesTranslationRef, seriesRef),\n (markRef) => buildChartMarkLabelKey(seriesTranslationRef, markRef),\n )\n : runtimeDefinition),\n [runtimeDefinition, seriesTranslationRef],\n );\n const seriesLabelKeys = useMemo(() => chartDefinitionLabelKeys(definition), [definition]);\n const { isReady: isSeriesLabelsReady } = useI18n({ keys: seriesLabelKeys });\n /*\n * The builders' resolver (`createChartLabelResolver`): a bare ref is a chart component label, any other key a path\n * from the root. The series keys are requested above only so they are loaded before the chart draws; they are read\n * through the same `t`. Rebuilt when they settle, so the legend shows the words rather than the keys.\n */\n const tChart = useMemo(\n () => createChartLabelResolver({ tComponent, t }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [tComponent, t, isSeriesLabelsReady],\n );\n\n // Fetch chart data\n const { data, loading, error, refetch } = useChartData(\n definition,\n runtime?.executionChartRef,\n runtime?.resolvedInputs,\n runtime?.contextResourceIdentifiers,\n urlParamValues,\n localErrorOnly,\n resolvedRegionalPreferences.timezone,\n );\n\n // ResizeObserver for container.\n //\n // ECharts reflows to the container natively via `instance.resize()`; we do NOT\n // rebuild the ECharts `option` on resize. An earlier implementation pushed the\n // observed size into React state (a `containerSize` that fed `buildEChartsOption`\n // and sat in the `option` useMemo deps), so every resize tick produced a brand-new\n // option object. Combined with `notMerge`+`lazyUpdate` below, that scheduled a\n // frame-deferred atomic option replacement that raced the in-flight `resize()`\n // relayout — surfacing as `Cannot read properties of undefined (reading 'group')`\n // in ECharts' `CartesianAxisView.render` one frame late, plus the tell-tale\n // \"ResizeObserver loop completed with undelivered notifications\" (the observer\n // callback's state update re-triggered layout). `containerSize` was in any case\n // dead context — no chart-type builder reads it — so dropping the rebuild is\n // behaviour-preserving. Native resize is the whole job here.\n // The observer must arm when the REAL container mounts, which happens strictly\n // AFTER the loading/error/empty early returns below stop short-circuiting —\n // i.e. potentially many renders after the initial mount. A mount-time\n // `useEffect(…, [])` reading a plain ref (the previous implementation) ran\n // exactly once, while the container was still null (the first render always\n // takes the loading/skeleton branch), so the observer NEVER armed and charts\n // never reflowed to container resizes. A callback ref is the structural fix:\n // React invokes it at the moment the container node attaches (and with `null`\n // when it detaches, including unmount), so arming/disarming exactly tracks the\n // real DOM node regardless of which render branch produced it.\n const containerRefCallback = useCallback((el: HTMLDivElement | null) => {\n resizeObserverRef.current?.disconnect();\n resizeObserverRef.current = null;\n if (!el) return;\n\n const observer = new ResizeObserver(() => {\n const instance = echartsRef.current?.getEchartsInstance?.();\n // Guard against a disposed instance: on theme toggle the chart remounts\n // (see the `key` prop below) and the observer closure can fire against an\n // instance that ECharts has already torn down — `resize()` would throw.\n if (instance && !instance.isDisposed?.()) {\n instance.resize();\n }\n });\n\n observer.observe(el);\n resizeObserverRef.current = observer;\n }, []);\n\n // Save echarts instance ref\n const onChartReady = useCallback((instance: unknown) => {\n echartsRef.current = { getEchartsInstance: () => instance };\n }, []);\n\n // Build ECharts option — memoized, placed before early returns to respect Rules of Hooks.\n // Deliberately NOT keyed on container size: the option carries no size-dependent\n // fields (no builder reads `containerSize`), and rebuilding it on resize is what\n // raced the native `resize()` into the `CartesianAxisView` crash (see the observer\n // above). The option now rebuilds only on genuine content/appearance changes.\n // Enum coherence: when a chart dimension is an enum, resolve — once, from the\n // resource registry's decorated schema — both the value→color map (slices/bars\n // match the value's badge) and the enum's declared member order (categories sort\n // by declaration order, not the backend's alphabetical order). Keyed on `isDark`\n // because the colors resolve live CSS vars (`--info`, `--muted-foreground`, …)\n // that flip with the theme; ChartView does not remount on toggle (only its child\n // chart does), so without this the memo would keep the previous mode's colors.\n // See `enum-color-bridge.ts`.\n //\n // Labels ride the same pass: an enum dimension's values are DISPLAYED through the i18n tree (axis\n // categories, slice and split names) while the data stays keyed on the raw value. The resource's\n // label bundle is requested here so its enum labels are loaded before the chart renders.\n const { tResourceFieldEnumValue, isReady: isResourceLabelsReady } = useI18n({ resource: definition?.dataQuery.mainResourceType });\n const dimensionEnumMeta = useMemo(\n () => (definition\n ? buildDimensionEnumMeta(definition, (type) => registry.resourceConfigurations[type], tResourceFieldEnumValue)\n : { colors: {}, order: {}, labels: {} }),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [definition, registry, isDark, tResourceFieldEnumValue, isResourceLabelsReady],\n );\n\n // A KPI is a figure, not a drawing (#2299): it builds no ECharts option and renders `ChartKpiFigure` below.\n const isKpi = definition?.chartType === ChartType.KPI;\n const option = useMemo(\n () => (definition && !isKpi && data && data.data.length > 0)\n ? buildEChartsOption(definition, data, undefined, chartStylePreset, tChart, dimensionEnumMeta, resolvedRegionalPreferences.locale)\n : null,\n [definition, isKpi, data, chartStylePreset, tChart, dimensionEnumMeta, resolvedRegionalPreferences.locale],\n );\n\n // Not found\n if (!definition) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n // Loading\n if (loading && !data) {\n return <ChartLoadingSkeleton height={height} />;\n }\n\n // Error\n if (error) {\n return <ChartErrorState error={error} onRetry={refetch} />;\n }\n\n // A figure: one row, always, from a backend that completes an empty scope; no row only from one that does not.\n if (isKpi) {\n return data && data.data.length > 0\n ? <ChartKpiFigure definition={definition} data={data} className={className} />\n : <ChartEmptyState />;\n }\n\n // Empty\n if (!option) {\n return <ChartEmptyState />;\n }\n\n if (!isReady || !isResourceLabelsReady || !isSeriesLabelsReady) return null;\n\n // #4084: groups of a resource declaring `auditReads` too small to show carry no figures, and are drawn as no value\n // (`measureValueOrNull`). The line says so, so a missing slice or bar is not read as an empty group.\n const suppressedGroupCount = data?.queryMeta?.suppressedGroupCount ?? 0;\n\n return (\n <div\n ref={containerRefCallback}\n className={cn('chart-view', className)}\n style={{ width, height, position: 'relative', display: 'flex', flexDirection: 'column' }}\n >\n <div style={{ flex: 1, minHeight: 0 }}>\n <WildoEChart\n // Remount on dark-mode toggle: the theme name is stable but its content\n // is re-registered, and ECharts bakes the theme at init time.\n key={isDark ? 'dark' : 'light'}\n option={option}\n theme={getWildoThemeName()}\n style={{ width: '100%', height: '100%' }}\n notMerge={true}\n // lazyUpdate MUST stay false. With lazyUpdate={true}, ECharts 6 defers\n // the setOption flush to its next animation frame (`_onframe`); ECharts\n // 6.0.0 then crashes on that deferred path for cartesian charts —\n // `CartesianAxisView.render` dereferences `axisModel.axis.axisBuilder\n // .group` while `axisBuilder` is still undefined (ECharts 6 \"promoted\"\n // axis-element building to the coordinate-system resize stage, but the\n // deferred-flush ordering skips it). Symptom: `TypeError: Cannot read\n // properties of undefined (reading 'group')`. A synchronous flush runs\n // the full resize→render pipeline in order and renders cleanly with\n // animation intact.\n lazyUpdate={false}\n onChartReady={onChartReady}\n />\n </div>\n {suppressedGroupCount > 0 && (\n <Text className=\"text-xs text-muted-foreground\">{tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, 'suppressedGroupsNotice', { count: suppressedGroupCount })}</Text>\n )}\n </div>\n );\n};\n\nexport default ChartView;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartView.labels.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAM7C,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,EA6B1D,CAAC"}
1
+ {"version":3,"file":"ChartView.labels.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAM7C,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,EAsG1D,CAAC"}
@@ -16,17 +16,90 @@ export const HighLevelViewsChartLabels = [
16
16
  { ref: 'errorLoading', kind: LabelKind.MESSAGE, purpose: 'Error-state text shown when the chart fails to load its data' },
17
17
  { ref: 'loading', kind: LabelKind.MESSAGE, purpose: 'Loading-state text shown while the chart data is being fetched' },
18
18
  { ref: 'retry', kind: LabelKind.BUTTON, purpose: 'Button that re-attempts the chart data fetch after a load error' },
19
+ {
20
+ ref: 'suppressedGroupsNotice',
21
+ kind: LabelKind.MESSAGE,
22
+ purpose: 'Line under a chart saying that some of its groups hold too few records to show their figures, so they are drawn with no value (a privacy protection on data whose reads are audited)',
23
+ params: [{ key: 'count', meaning: 'How many groups had their figures withheld', isCount: true }],
24
+ notes: ['Say the figures are withheld because the groups are too small, not that data is missing or an error occurred.'],
25
+ },
26
+ {
27
+ ref: 'densifiedSeriesName',
28
+ kind: LabelKind.LABEL,
29
+ purpose: 'Tooltip name of the dashed part of a line series: the buckets the chart filled in because no record fell in them (shown as zero)',
30
+ params: [{ key: 'series', meaning: 'The series\' own name, already in the reader\'s language' }],
31
+ notes: ['Default: "{{series}} (filled)". Say the values were filled in for buckets with no records, not that they are estimates.'],
32
+ },
33
+ // KPI figure context
34
+ {
35
+ ref: 'kpiPeriod',
36
+ kind: LabelKind.LABEL,
37
+ purpose: 'Caption under a KPI figure naming the period it covers: the last few days up to now',
38
+ params: [{ key: 'count', meaning: 'How many days the period covers', isCount: true }],
39
+ notes: ['Default: "Last {{count}} days".'],
40
+ },
41
+ {
42
+ ref: 'kpiChangeFromPrevious',
43
+ kind: LabelKind.LABEL,
44
+ purpose: 'Line under a KPI figure giving its change since the same number of days before its period',
45
+ params: [
46
+ { key: 'change', meaning: 'The change, already written as a signed number in the figure\'s format, e.g. "+12" or "-3"' },
47
+ { key: 'count', meaning: 'How many days each period covers', isCount: true },
48
+ ],
49
+ notes: ['Default: "{{change}} vs the previous {{count}} days". Do not say whether the change is good: the colour and the target line say that.'],
50
+ },
51
+ {
52
+ ref: 'kpiChangeFromPreviousPoints',
53
+ kind: LabelKind.LABEL,
54
+ purpose: 'Line under a percentage KPI figure giving its change since the previous period, in percentage points',
55
+ params: [
56
+ { key: 'change', meaning: 'The change in percentage points, already written as a signed number, e.g. "+5"' },
57
+ { key: 'count', meaning: 'How many days each period covers', isCount: true },
58
+ ],
59
+ notes: ['Default: "{{change}} pts vs the previous {{count}} days". Points, never a percent sign: 42% after 37% is +5 points, a 13.5% rise.'],
60
+ },
61
+ {
62
+ ref: 'kpiTarget',
63
+ kind: LabelKind.LABEL,
64
+ purpose: 'Line under a KPI figure naming the target it is measured against, when the figure has no value',
65
+ params: [{ key: 'target', meaning: 'The target value, already written in the figure\'s format' }],
66
+ notes: ['Default: "Target {{target}}".'],
67
+ },
68
+ {
69
+ ref: 'kpiTargetMet',
70
+ kind: LabelKind.LABEL,
71
+ purpose: 'Line under a KPI figure naming its target and saying the figure meets it',
72
+ params: [{ key: 'target', meaning: 'The target value, already written in the figure\'s format' }],
73
+ notes: ['Default: "Target {{target}} · on target".'],
74
+ },
75
+ {
76
+ ref: 'kpiTargetMissed',
77
+ kind: LabelKind.LABEL,
78
+ purpose: 'Line under a KPI figure naming its target and saying the figure does not meet it, shown in the destructive colour',
79
+ params: [{ key: 'target', meaning: 'The target value, already written in the figure\'s format' }],
80
+ notes: ['Default: "Target {{target}} · off target". A plain statement the reader acts on, not an alarm.'],
81
+ },
19
82
  // Waterfall chart series labels
20
83
  { ref: 'waterfallGainLabel', kind: LabelKind.LABEL, purpose: 'Default series name for positive (gain) bars in a waterfall chart', notes: ['Default: "Increase"'] },
21
84
  { ref: 'waterfallLossLabel', kind: LabelKind.LABEL, purpose: 'Default series name for negative (loss) bars in a waterfall chart', notes: ['Default: "Decrease"'] },
22
- // Densified overlay series labels
23
- { ref: 'densifiedOverlaySuffix', kind: LabelKind.LABEL, purpose: 'Suffix appended to a series name when it is rendered as a densified (gap-filled) overlay', notes: ['Default: "(filled)"'] },
24
85
  // Pie chart labels
25
- { ref: 'pieItemFallback', kind: LabelKind.LABEL, purpose: 'Fallback display name used for pie-chart slices that have no name', notes: ['Default: "Item"'] },
86
+ {
87
+ ref: 'pieItemFallback',
88
+ kind: LabelKind.LABEL,
89
+ purpose: 'Name of a pie-chart slice whose value has no name, numbered by its row in the chart\'s data',
90
+ params: [{ key: 'index', meaning: 'The slice\'s row number in the chart\'s data, counted from 1 (not its place once sorted)' }],
91
+ notes: ['Default: "Item {index}"'],
92
+ },
26
93
  // Toolbox (ECharts toolbar) labels
27
94
  { ref: 'toolboxSaveAsImage', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that exports the chart as an image' },
28
95
  { ref: 'toolboxDataView', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that opens the raw data view' },
29
96
  { ref: 'toolboxRestore', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that restores the chart to its initial state' },
97
+ { ref: 'toolboxDataViewClose', kind: LabelKind.BUTTON, purpose: 'Button that closes the chart toolbox\'s raw data view' },
98
+ { ref: 'toolboxDataViewRefresh', kind: LabelKind.BUTTON, purpose: 'Button that refreshes the chart toolbox\'s raw data view' },
99
+ { ref: 'toolboxSwitchToLine', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that redraws the chart as lines' },
100
+ { ref: 'toolboxSwitchToBar', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that redraws the chart as bars' },
101
+ { ref: 'toolboxSwitchToStack', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that stacks the chart\'s series' },
102
+ { ref: 'toolboxSwitchToTiled', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action, shown once the series are stacked, that sets them side by side again' },
30
103
  // Axis labels
31
104
  { ref: 'xAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart X axis when none is authored' },
32
105
  { ref: 'yAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart Y axis when none is authored' },
@@ -1 +1 @@
1
- {"version":3,"file":"ChartView.labels.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EAET,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAE7C,2EAA2E;AAC3E,6EAA6E;AAC7E,+EAA+E;AAE/E,MAAM,CAAC,MAAM,yBAAyB,GAA0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oB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,yDAAyD,EAAE;IACzH,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,mDAAmD,EAAE;IAChH,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,mEAAmE,EAAE;IAC/H,cAAc;IACd,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,0DAA0D,EAAE;IACjH,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,0DAA0D,EAAE;IACjH,EAAE,GAAG,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,6DAA6D,EAAE;CAC9H,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import {\n FrontendComponentType,\n LabelKind,\n type LabellingUnitaryDef,\n registerComponentLabels,\n} 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 HighLevelViewsChartLabels: LabellingUnitaryDef[] = [\n { ref: 'noData', kind: LabelKind.EMPTY_STATE, purpose: 'Empty-state heading shown when the chart query returns no data' },\n {\n ref: 'noDataDescription',\n kind: LabelKind.EMPTY_STATE,\n purpose: 'Empty-state supporting text shown when the chart query returns no data',\n // Steer the label generator away from filter-referencing copy: this state renders on\n // ANY chart surface, including dashboards and embedded metric cards that expose no\n // filter UI at all — \"Try adjusting your filters.\" (a previous generation) misleads there.\n notes: ['Must not reference filters or other UI the chart may not have. Neutral phrasing, e.g. \"Data will appear here once there is activity to chart.\"'],\n },\n { ref: 'errorLoading', kind: LabelKind.MESSAGE, purpose: 'Error-state text shown when the chart fails to load its data' },\n { ref: 'loading', kind: LabelKind.MESSAGE, purpose: 'Loading-state text shown while the chart data is being fetched' },\n { ref: 'retry', kind: LabelKind.BUTTON, purpose: 'Button that re-attempts the chart data fetch after a load error' },\n // Waterfall chart series labels\n { ref: 'waterfallGainLabel', kind: LabelKind.LABEL, purpose: 'Default series name for positive (gain) bars in a waterfall chart', notes: ['Default: \"Increase\"'] },\n { ref: 'waterfallLossLabel', kind: LabelKind.LABEL, purpose: 'Default series name for negative (loss) bars in a waterfall chart', notes: ['Default: \"Decrease\"'] },\n // Densified overlay series labels\n { ref: 'densifiedOverlaySuffix', kind: LabelKind.LABEL, purpose: 'Suffix appended to a series name when it is rendered as a densified (gap-filled) overlay', notes: ['Default: \"(filled)\"'] },\n // Pie chart labels\n { ref: 'pieItemFallback', kind: LabelKind.LABEL, purpose: 'Fallback display name used for pie-chart slices that have no name', notes: ['Default: \"Item\"'] },\n // Toolbox (ECharts toolbar) labels\n { ref: 'toolboxSaveAsImage', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that exports the chart as an image' },\n { ref: 'toolboxDataView', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that opens the raw data view' },\n { ref: 'toolboxRestore', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that restores the chart to its initial state' },\n // Axis labels\n { ref: 'xAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart X axis when none is authored' },\n { ref: 'yAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart Y axis when none is authored' },\n { ref: 'yAxisSecondaryLabel', kind: LabelKind.LABEL, purpose: 'Default title for the secondary Y axis on a dual-axis chart' },\n];\nregisterComponentLabels(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, HighLevelViewsChartLabels);\n"]}
1
+ {"version":3,"file":"ChartView.labels.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.labels.ts"],"names":[],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SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,uDAAuD,EAAE;IACzH,EAAE,GAAG,EAAE,wBAAwB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,0DAA0D,EAAE;IAC9H,EAAE,GAAG,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,sDAAsD,EAAE;IACvH,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,qDAAqD,EAAE;IACrH,EAAE,GAAG,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,sDAAsD,EAAE;IACxH,EAAE,GAAG,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,4FAA4F,EAAE;IAC9J,cAAc;IACd,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,0DAA0D,EAAE;IACjH,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,0DAA0D,EAAE;IACjH,EAAE,GAAG,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,6DAA6D,EAAE;CAC9H,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import {\n FrontendComponentType,\n LabelKind,\n type LabellingUnitaryDef,\n registerComponentLabels,\n} 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 HighLevelViewsChartLabels: LabellingUnitaryDef[] = [\n { ref: 'noData', kind: LabelKind.EMPTY_STATE, purpose: 'Empty-state heading shown when the chart query returns no data' },\n {\n ref: 'noDataDescription',\n kind: LabelKind.EMPTY_STATE,\n purpose: 'Empty-state supporting text shown when the chart query returns no data',\n // Steer the label generator away from filter-referencing copy: this state renders on\n // ANY chart surface, including dashboards and embedded metric cards that expose no\n // filter UI at all — \"Try adjusting your filters.\" (a previous generation) misleads there.\n notes: ['Must not reference filters or other UI the chart may not have. Neutral phrasing, e.g. \"Data will appear here once there is activity to chart.\"'],\n },\n { ref: 'errorLoading', kind: LabelKind.MESSAGE, purpose: 'Error-state text shown when the chart fails to load its data' },\n { ref: 'loading', kind: LabelKind.MESSAGE, purpose: 'Loading-state text shown while the chart data is being fetched' },\n { ref: 'retry', kind: LabelKind.BUTTON, purpose: 'Button that re-attempts the chart data fetch after a load error' },\n {\n ref: 'suppressedGroupsNotice',\n kind: LabelKind.MESSAGE,\n purpose: 'Line under a chart saying that some of its groups hold too few records to show their figures, so they are drawn with no value (a privacy protection on data whose reads are audited)',\n params: [{ key: 'count', meaning: 'How many groups had their figures withheld', isCount: true }],\n notes: ['Say the figures are withheld because the groups are too small, not that data is missing or an error occurred.'],\n },\n {\n ref: 'densifiedSeriesName',\n kind: LabelKind.LABEL,\n purpose: 'Tooltip name of the dashed part of a line series: the buckets the chart filled in because no record fell in them (shown as zero)',\n params: [{ key: 'series', meaning: 'The series\\' own name, already in the reader\\'s language' }],\n notes: ['Default: \"{{series}} (filled)\". Say the values were filled in for buckets with no records, not that they are estimates.'],\n },\n // KPI figure context\n {\n ref: 'kpiPeriod',\n kind: LabelKind.LABEL,\n purpose: 'Caption under a KPI figure naming the period it covers: the last few days up to now',\n params: [{ key: 'count', meaning: 'How many days the period covers', isCount: true }],\n notes: ['Default: \"Last {{count}} days\".'],\n },\n {\n ref: 'kpiChangeFromPrevious',\n kind: LabelKind.LABEL,\n purpose: 'Line under a KPI figure giving its change since the same number of days before its period',\n params: [\n { key: 'change', meaning: 'The change, already written as a signed number in the figure\\'s format, e.g. \"+12\" or \"-3\"' },\n { key: 'count', meaning: 'How many days each period covers', isCount: true },\n ],\n notes: ['Default: \"{{change}} vs the previous {{count}} days\". Do not say whether the change is good: the colour and the target line say that.'],\n },\n {\n ref: 'kpiChangeFromPreviousPoints',\n kind: LabelKind.LABEL,\n purpose: 'Line under a percentage KPI figure giving its change since the previous period, in percentage points',\n params: [\n { key: 'change', meaning: 'The change in percentage points, already written as a signed number, e.g. \"+5\"' },\n { key: 'count', meaning: 'How many days each period covers', isCount: true },\n ],\n notes: ['Default: \"{{change}} pts vs the previous {{count}} days\". Points, never a percent sign: 42% after 37% is +5 points, a 13.5% rise.'],\n },\n {\n ref: 'kpiTarget',\n kind: LabelKind.LABEL,\n purpose: 'Line under a KPI figure naming the target it is measured against, when the figure has no value',\n params: [{ key: 'target', meaning: 'The target value, already written in the figure\\'s format' }],\n notes: ['Default: \"Target {{target}}\".'],\n },\n {\n ref: 'kpiTargetMet',\n kind: LabelKind.LABEL,\n purpose: 'Line under a KPI figure naming its target and saying the figure meets it',\n params: [{ key: 'target', meaning: 'The target value, already written in the figure\\'s format' }],\n notes: ['Default: \"Target {{target}} · on target\".'],\n },\n {\n ref: 'kpiTargetMissed',\n kind: LabelKind.LABEL,\n purpose: 'Line under a KPI figure naming its target and saying the figure does not meet it, shown in the destructive colour',\n params: [{ key: 'target', meaning: 'The target value, already written in the figure\\'s format' }],\n notes: ['Default: \"Target {{target}} · off target\". A plain statement the reader acts on, not an alarm.'],\n },\n // Waterfall chart series labels\n { ref: 'waterfallGainLabel', kind: LabelKind.LABEL, purpose: 'Default series name for positive (gain) bars in a waterfall chart', notes: ['Default: \"Increase\"'] },\n { ref: 'waterfallLossLabel', kind: LabelKind.LABEL, purpose: 'Default series name for negative (loss) bars in a waterfall chart', notes: ['Default: \"Decrease\"'] },\n // Pie chart labels\n {\n ref: 'pieItemFallback',\n kind: LabelKind.LABEL,\n purpose: 'Name of a pie-chart slice whose value has no name, numbered by its row in the chart\\'s data',\n params: [{ key: 'index', meaning: 'The slice\\'s row number in the chart\\'s data, counted from 1 (not its place once sorted)' }],\n notes: ['Default: \"Item {index}\"'],\n },\n // Toolbox (ECharts toolbar) labels\n { ref: 'toolboxSaveAsImage', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that exports the chart as an image' },\n { ref: 'toolboxDataView', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that opens the raw data view' },\n { ref: 'toolboxRestore', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that restores the chart to its initial state' },\n { ref: 'toolboxDataViewClose', kind: LabelKind.BUTTON, purpose: 'Button that closes the chart toolbox\\'s raw data view' },\n { ref: 'toolboxDataViewRefresh', kind: LabelKind.BUTTON, purpose: 'Button that refreshes the chart toolbox\\'s raw data view' },\n { ref: 'toolboxSwitchToLine', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that redraws the chart as lines' },\n { ref: 'toolboxSwitchToBar', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that redraws the chart as bars' },\n { ref: 'toolboxSwitchToStack', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action that stacks the chart\\'s series' },\n { ref: 'toolboxSwitchToTiled', kind: LabelKind.BUTTON, purpose: 'Chart toolbox action, shown once the series are stacked, that sets them side by side again' },\n // Axis labels\n { ref: 'xAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart X axis when none is authored' },\n { ref: 'yAxisLabel', kind: LabelKind.LABEL, purpose: 'Default title for the chart Y axis when none is authored' },\n { ref: 'yAxisSecondaryLabel', kind: LabelKind.LABEL, purpose: 'Default title for the secondary Y axis on a dual-axis chart' },\n];\nregisterComponentLabels(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, HighLevelViewsChartLabels);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartView.lazy.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.lazy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA2BlD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAM9C,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ChartView.lazy.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.lazy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA2BlD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAM9C,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAe,SAAS,CAAC"}
@@ -6,6 +6,7 @@ import { LazyDoorErrorBoundary } from '../../../components/feedback/lazy-door-er
6
6
  import { StandardIconReference } from '../../../core/icons/icon-registry.frontend.schemas.js';
7
7
  import { useI18n } from '../../../core/i18n/useI18n.js';
8
8
  import { ChartLoadingSkeleton } from './ChartLoadingSkeleton.js';
9
+ import { CHART_VIEW_DEFAULT_HEIGHT } from './chart-view-defaults.js';
9
10
  const LazyChartViewInner = React.lazy(() => import('./ChartView.js'));
10
11
  /**
11
12
  * What a chart degrades TO when the ECharts chunk never arrives (#963): the chart widget's own
@@ -29,6 +30,6 @@ function ChartUnavailableFallback({ height }) {
29
30
  * chunk that fails to download rather than letting the failure take down the
30
31
  * surface around the chart.
31
32
  */
32
- export const ChartView = (props) => (_jsx(LazyDoorErrorBoundary, { doorName: "ChartView", fallback: _jsx(ChartUnavailableFallback, { height: props.height ?? 400 }), children: _jsx(Suspense, { fallback: _jsx(ChartLoadingSkeleton, { height: props.height ?? 400 }), children: _jsx(LazyChartViewInner, { ...props }) }) }));
33
+ export const ChartView = (props) => (_jsx(LazyDoorErrorBoundary, { doorName: "ChartView", fallback: _jsx(ChartUnavailableFallback, { height: props.height ?? CHART_VIEW_DEFAULT_HEIGHT }), children: _jsx(Suspense, { fallback: _jsx(ChartLoadingSkeleton, { height: props.height ?? CHART_VIEW_DEFAULT_HEIGHT }), children: _jsx(LazyChartViewInner, { ...props }) }) }));
33
34
  export default ChartView;
34
35
  //# sourceMappingURL=ChartView.lazy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartView.lazy.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.lazy.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,EAAE,MAAM,EAA+B;IACvE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,qBAAqB,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAC5G,qHAAqH;IACrH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,oBAAiB,aAAa,YAC7D,KAAC,UAAU,IACT,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,qBAAqB,CAAC,iBAAiB,EAChD,KAAK,EAAE,UAAU,CAAC,qBAAqB,CAAC,6BAA6B,EAAE,aAAa,CAAC,EACrF,0BAA0B,EAAE,KAAK,EACjC,SAAS,EAAC,+BAA+B,GACzC,GACE,CACP,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC5D,KAAC,qBAAqB,IAAC,QAAQ,EAAC,WAAW,EAAC,QAAQ,EAAE,KAAC,wBAAwB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,GAAG,GAAI,YAC7G,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,oBAAoB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,GAAG,GAAI,YACvE,KAAC,kBAAkB,OAAK,KAAK,GAAI,GACxB,GACW,CACzB,CAAC;AAIF,eAAe,SAAS,CAAC","sourcesContent":["import React, { Suspense } from 'react';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { EmptyState } from '~wildo-frontend-lib/components/feedback/empty-state';\nimport { LazyDoorErrorBoundary } from '~wildo-frontend-lib/components/feedback/lazy-door-error-boundary';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\nimport type { ChartViewProps } from './ChartView';\n\nconst LazyChartViewInner = React.lazy(() => import('./ChartView'));\n\n/**\n * What a chart degrades TO when the ECharts chunk never arrives (#963): the chart widget's own\n * worded failure state, at the chart's height so the dashboard does not reflow. The word is the\n * `chartFailed` label the widget already authors — a door invents none of its own — and there is no\n * retry: a chunk that failed to download is not re-fetched by re-rendering.\n */\nfunction ChartUnavailableFallback({ height }: { height: string | number }): React.JSX.Element | null {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET });\n // Same gate as `ChartWidgetErrorFallback`: before the bundle settles there is no word to show, and a key is not one.\n if (!isReady) return null;\n return (\n <div style={{ minHeight: height }} data-lazy-door=\"unavailable\">\n <EmptyState\n variant=\"compact\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'chartFailed')}\n respectSurfaceEmptyDisplay={false}\n className=\"h-full min-h-[120px] border-0\"\n />\n </div>\n );\n}\n\n/**\n * Lazy barrel-safe ChartView export.\n *\n * This wrapper keeps the ECharts runtime behind a dynamic import boundary so\n * package-root consumers can still render charts without pulling the heavy\n * chart bundle into the main application chunk — and, since #963, catches a\n * chunk that fails to download rather than letting the failure take down the\n * surface around the chart.\n */\nexport const ChartView: React.FC<ChartViewProps> = (props) => (\n <LazyDoorErrorBoundary doorName=\"ChartView\" fallback={<ChartUnavailableFallback height={props.height ?? 400} />}>\n <Suspense fallback={<ChartLoadingSkeleton height={props.height ?? 400} />}>\n <LazyChartViewInner {...props} />\n </Suspense>\n </LazyDoorErrorBoundary>\n);\n\nexport type { ChartViewProps } from './ChartView';\n\nexport default ChartView;\n"]}
1
+ {"version":3,"file":"ChartView.lazy.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartView.lazy.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,EAAE,MAAM,EAA+B;IACvE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,qBAAqB,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAC5G,qHAAqH;IACrH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,oBAAiB,aAAa,YAC7D,KAAC,UAAU,IACT,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,qBAAqB,CAAC,iBAAiB,EAChD,KAAK,EAAE,UAAU,CAAC,qBAAqB,CAAC,6BAA6B,EAAE,aAAa,CAAC,EACrF,0BAA0B,EAAE,KAAK,EACjC,SAAS,EAAC,+BAA+B,GACzC,GACE,CACP,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC5D,KAAC,qBAAqB,IAAC,QAAQ,EAAC,WAAW,EAAC,QAAQ,EAAE,KAAC,wBAAwB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,yBAAyB,GAAI,YACnI,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,oBAAoB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,yBAAyB,GAAI,YAC7F,KAAC,kBAAkB,OAAK,KAAK,GAAI,GACxB,GACW,CACzB,CAAC;AAIF,eAAe,SAAS,CAAC","sourcesContent":["import React, { Suspense } from 'react';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { EmptyState } from '~wildo-frontend-lib/components/feedback/empty-state';\nimport { LazyDoorErrorBoundary } from '~wildo-frontend-lib/components/feedback/lazy-door-error-boundary';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\nimport { CHART_VIEW_DEFAULT_HEIGHT } from './chart-view-defaults';\nimport type { ChartViewProps } from './ChartView';\n\nconst LazyChartViewInner = React.lazy(() => import('./ChartView'));\n\n/**\n * What a chart degrades TO when the ECharts chunk never arrives (#963): the chart widget's own\n * worded failure state, at the chart's height so the dashboard does not reflow. The word is the\n * `chartFailed` label the widget already authors — a door invents none of its own — and there is no\n * retry: a chunk that failed to download is not re-fetched by re-rendering.\n */\nfunction ChartUnavailableFallback({ height }: { height: string | number }): React.JSX.Element | null {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET });\n // Same gate as `ChartWidgetErrorFallback`: before the bundle settles there is no word to show, and a key is not one.\n if (!isReady) return null;\n return (\n <div style={{ minHeight: height }} data-lazy-door=\"unavailable\">\n <EmptyState\n variant=\"compact\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'chartFailed')}\n respectSurfaceEmptyDisplay={false}\n className=\"h-full min-h-[120px] border-0\"\n />\n </div>\n );\n}\n\n/**\n * Lazy barrel-safe ChartView export.\n *\n * This wrapper keeps the ECharts runtime behind a dynamic import boundary so\n * package-root consumers can still render charts without pulling the heavy\n * chart bundle into the main application chunk — and, since #963, catches a\n * chunk that fails to download rather than letting the failure take down the\n * surface around the chart.\n */\nexport const ChartView: React.FC<ChartViewProps> = (props) => (\n <LazyDoorErrorBoundary doorName=\"ChartView\" fallback={<ChartUnavailableFallback height={props.height ?? CHART_VIEW_DEFAULT_HEIGHT} />}>\n <Suspense fallback={<ChartLoadingSkeleton height={props.height ?? CHART_VIEW_DEFAULT_HEIGHT} />}>\n <LazyChartViewInner {...props} />\n </Suspense>\n </LazyDoorErrorBoundary>\n);\n\nexport type { ChartViewProps } from './ChartView';\n\nexport default ChartView;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;oEAUoE;AAEpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA2EnD,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0BlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ChartWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;oEAUoE;AAEpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6EnD,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+BlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -15,8 +15,10 @@ import { EmptyState } from '../../../components/feedback/empty-state.js';
15
15
  import { StandardIconReference } from '../../../core/icons/icon-registry.frontend.schemas.js';
16
16
  import { FrontendComponentType } from '@wildo-ai/presets-components-models';
17
17
  import { useI18n } from '../../../core/i18n/useI18n.js';
18
- import { FeatureRouteGuard } from '../../../core/features/FeatureRouteGuard.js';
18
+ import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
19
+ import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
19
20
  import { useResourceRegistry } from '../../../core/resources/useResourceRegistry.js';
21
+ import { ChartReadDecision, useChartReadDecision } from '../../../core/navigation/useChartReadDecision.js';
20
22
  import { resolveInsertedChartView } from '../../../core/config/chart-view.frontend.schemas.js';
21
23
  import { ChartLoadingSkeleton } from './ChartLoadingSkeleton.js';
22
24
  // Lazy-load ChartView — keeps ECharts completely out of the main bundle
@@ -52,11 +54,17 @@ class ChartWidgetErrorBoundary extends Component {
52
54
  */
53
55
  export const ChartWidget = ({ chartRef, width = '100%', height = '100%', className, }) => {
54
56
  const { registry } = useResourceRegistry();
55
- const requiredFeatures = resolveInsertedChartView({
57
+ const chartDefinition = resolveInsertedChartView({
56
58
  viewRef: chartRef,
57
59
  registry,
58
- })?.chartView.chartDefinition.requiredFeatures;
59
- return (_jsx(ChartWidgetErrorBoundary, { chartRef: chartRef, children: _jsx(FeatureRouteGuard, { requiredFeatures: requiredFeatures, children: _jsx(Suspense, { fallback: _jsx(ChartLoadingSkeleton, { height: height }), children: _jsx(LazyChartView, { viewRef: chartRef, width: width, height: height, className: className }) }) }) }));
60
+ })?.chartView.chartDefinition;
61
+ const requiredFeatures = chartDefinition?.requiredFeatures;
62
+ // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load), as on
63
+ // every other surface that shows a chart.
64
+ const readDecision = useChartReadDecision(chartDefinition);
65
+ if (readDecision !== ChartReadDecision.ALLOWED)
66
+ return null;
67
+ return (_jsx(ChartWidgetErrorBoundary, { chartRef: chartRef, children: _jsx(RequiredFeaturesGate, { requiredFeatures: requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: height, children: _jsx(Suspense, { fallback: _jsx(ChartLoadingSkeleton, { height: height }), children: _jsx(LazyChartView, { viewRef: chartRef, width: width, height: height, className: className }) }) }) }));
60
68
  };
61
69
  export default ChartWidget;
62
70
  //# sourceMappingURL=ChartWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartWidget.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartWidget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;oEAUoE;AAEpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,wEAAwE;AACxE,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AAE9D,+DAA+D;AAE/D,MAAM,wBAAwB,GAAsC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAClF,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,qBAAqB,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAE5G,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,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ACf,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;QAChD,OAAO,EAAE,QAAQ;QACjB,QAAQ;KACT,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,gBAAgB,CAAC;IAE/C,OAAO,CACL,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,YAC1C,KAAC,iBAAiB,IAAC,gBAAgB,EAAE,gBAAgB,YACnD,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,GAAI,YAC1D,KAAC,aAAa,IACZ,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,GACO,GACO,GACK,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * ChartWidget — Lazy-loaded chart for CompositeView grids\n *\n * Wraps ChartView in:\n * - React.lazy (code-split)\n * - Error boundary (chart failure doesn't crash the dashboard)\n * - Suspense (loading skeleton)\n *\n * Usage in CompositeView grid config:\n * { type: 'chart', chartRef: 'orders-per-month', x: 0, y: 0, w: 6, h: 4 }\n * ────────────────────────────────────────────────────────────── */\n\nimport React, { Component, Suspense } from 'react';\nimport type { ReactNode, ErrorInfo } from 'react';\nimport { EmptyState } from '~wildo-frontend-lib/components/feedback/empty-state';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { resolveInsertedChartView } from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\n\n// Lazy-load ChartView — keeps ECharts completely out of the main bundle\nconst LazyChartView = React.lazy(() => import('./ChartView'));\n\n// ── Error Fallback (functional — can use hooks) ─────────────\n\nconst ChartWidgetErrorFallback: React.FC<{ onRetry: () => void }> = ({ onRetry }) => {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET });\n\n if (!isReady) return null;\n\n return (\n <EmptyState\n variant=\"compact\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'chartFailed')}\n primaryActionLabel={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'retry')}\n onPrimaryAction={onRetry}\n respectSurfaceEmptyDisplay={false}\n className=\"h-full min-h-[120px] border-0\"\n />\n );\n};\n\n// ── Error Boundary ──────────────────────────────────────────\n\ninterface ErrorBoundaryProps {\n chartRef: string;\n children: ReactNode;\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error?: Error;\n}\n\nclass ChartWidgetErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError(error: Error): ErrorBoundaryState {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error(`ChartWidget error (ref: ${this.props.chartRef}):`, error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n <ChartWidgetErrorFallback\n onRetry={() => this.setState({ hasError: false, error: undefined })}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// ── ChartWidget Component ───────────────────────────────────\n\nexport interface ChartWidgetProps {\n /** Chart reference — resolved by `ChartView` from the resource registry. */\n chartRef: string;\n /** Width (default: 100% — fills grid cell) */\n width?: string | number;\n /** Height (default: 100% — fills grid cell) */\n height?: string | number;\n /** Additional CSS class */\n className?: string;\n}\n\n/**\n * ChartWidget — drop-in chart component for dashboard grids.\n * Includes lazy loading, error boundary, and suspense fallback.\n */\nexport const ChartWidget: React.FC<ChartWidgetProps> = ({\n chartRef,\n width = '100%',\n height = '100%',\n className,\n}) => {\n const { registry } = useResourceRegistry();\n const requiredFeatures = resolveInsertedChartView({\n viewRef: chartRef,\n registry,\n })?.chartView.chartDefinition.requiredFeatures;\n\n return (\n <ChartWidgetErrorBoundary chartRef={chartRef}>\n <FeatureRouteGuard requiredFeatures={requiredFeatures}>\n <Suspense fallback={<ChartLoadingSkeleton height={height} />}>\n <LazyChartView\n viewRef={chartRef}\n width={width}\n height={height}\n className={className}\n />\n </Suspense>\n </FeatureRouteGuard>\n </ChartWidgetErrorBoundary>\n );\n};\n\nexport default ChartWidget;\n"]}
1
+ {"version":3,"file":"ChartWidget.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/ChartWidget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;oEAUoE;AAEpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AACzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AACvG,OAAO,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AC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * ChartWidget — Lazy-loaded chart for CompositeView grids\n *\n * Wraps ChartView in:\n * - React.lazy (code-split)\n * - Error boundary (chart failure doesn't crash the dashboard)\n * - Suspense (loading skeleton)\n *\n * Usage in CompositeView grid config:\n * { type: 'chart', chartRef: 'orders-per-month', x: 0, y: 0, w: 6, h: 4 }\n * ────────────────────────────────────────────────────────────── */\n\nimport React, { Component, Suspense } from 'react';\nimport type { ReactNode, ErrorInfo } from 'react';\nimport { EmptyState } from '~wildo-frontend-lib/components/feedback/empty-state';\nimport { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { ChartReadDecision, useChartReadDecision } from '~wildo-frontend-lib/core/navigation/useChartReadDecision';\nimport { resolveInsertedChartView } from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { ChartLoadingSkeleton } from './ChartLoadingSkeleton';\n\n// Lazy-load ChartView — keeps ECharts completely out of the main bundle\nconst LazyChartView = React.lazy(() => import('./ChartView'));\n\n// ── Error Fallback (functional — can use hooks) ─────────────\n\nconst ChartWidgetErrorFallback: React.FC<{ onRetry: () => void }> = ({ onRetry }) => {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET });\n\n if (!isReady) return null;\n\n return (\n <EmptyState\n variant=\"compact\"\n iconRef={StandardIconReference.ERROR_APPLICATION}\n title={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'chartFailed')}\n primaryActionLabel={tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_WIDGET, 'retry')}\n onPrimaryAction={onRetry}\n respectSurfaceEmptyDisplay={false}\n className=\"h-full min-h-[120px] border-0\"\n />\n );\n};\n\n// ── Error Boundary ──────────────────────────────────────────\n\ninterface ErrorBoundaryProps {\n chartRef: string;\n children: ReactNode;\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error?: Error;\n}\n\nclass ChartWidgetErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError(error: Error): ErrorBoundaryState {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error(`ChartWidget error (ref: ${this.props.chartRef}):`, error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n <ChartWidgetErrorFallback\n onRetry={() => this.setState({ hasError: false, error: undefined })}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// ── ChartWidget Component ───────────────────────────────────\n\nexport interface ChartWidgetProps {\n /** Chart reference — resolved by `ChartView` from the resource registry. */\n chartRef: string;\n /** Width (default: 100% — fills grid cell) */\n width?: string | number;\n /** Height (default: 100% — fills grid cell) */\n height?: string | number;\n /** Additional CSS class */\n className?: string;\n}\n\n/**\n * ChartWidget — drop-in chart component for dashboard grids.\n * Includes lazy loading, error boundary, and suspense fallback.\n */\nexport const ChartWidget: React.FC<ChartWidgetProps> = ({\n chartRef,\n width = '100%',\n height = '100%',\n className,\n}) => {\n const { registry } = useResourceRegistry();\n const chartDefinition = resolveInsertedChartView({\n viewRef: chartRef,\n registry,\n })?.chartView.chartDefinition;\n const requiredFeatures = chartDefinition?.requiredFeatures;\n // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load), as on\n // every other surface that shows a chart.\n const readDecision = useChartReadDecision(chartDefinition);\n if (readDecision !== ChartReadDecision.ALLOWED) return null;\n\n return (\n <ChartWidgetErrorBoundary chartRef={chartRef}>\n <RequiredFeaturesGate requiredFeatures={requiredFeatures} presentation={RequiredFeaturesGatePresentation.TILE} lockedTileHeight={height}>\n <Suspense fallback={<ChartLoadingSkeleton height={height} />}>\n <LazyChartView\n viewRef={chartRef}\n width={width}\n height={height}\n className={className}\n />\n </Suspense>\n </RequiredFeaturesGate>\n </ChartWidgetErrorBoundary>\n );\n};\n\nexport default ChartWidget;\n"]}
@@ -30,5 +30,13 @@ export declare function exportChartAsPNG(echartsInstance: EChartsExportable | nu
30
30
  * @param filename - The file name for the download (default: 'chart-data.csv')
31
31
  */
32
32
  export declare function exportChartAsCSV(response: AggregationQueryResponse, definition: ChartDefinition, filename?: string): void;
33
+ /**
34
+ * The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.
35
+ *
36
+ * Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed
37
+ * that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet
38
+ * does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.
39
+ */
40
+ export declare function buildChartCsvContent(response: AggregationQueryResponse, definition: ChartDefinition): string;
33
41
  export {};
34
42
  //# sourceMappingURL=chart-export.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-export.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D;;;;;;GAMG;AACH,0DAA0D;AAC1D,UAAU,iBAAiB;IACzB,UAAU,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CAC7F;AAED,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACrD,QAAQ,SAAc,EACtB,UAAU,SAAI,GACb,IAAI,CAkBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,wBAAwB,EAClC,UAAU,EAAE,eAAe,EAC3B,QAAQ,SAAmB,GAC1B,IAAI,CAwCN"}
1
+ {"version":3,"file":"chart-export.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D;;;;;;GAMG;AACH,0DAA0D;AAC1D,UAAU,iBAAiB;IACzB,UAAU,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CAC7F;AAED,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACrD,QAAQ,SAAc,EACtB,UAAU,SAAI,GACb,IAAI,CAkBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,wBAAwB,EAClC,UAAU,EAAE,eAAe,EAC3B,QAAQ,SAAmB,GAC1B,IAAI,CAMN;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,wBAAwB,EAAE,UAAU,EAAE,eAAe,GAAG,MAAM,CA0B5G"}
@@ -4,6 +4,7 @@
4
4
  * - PNG export via ECharts `getDataURL()`
5
5
  * - CSV export from aggregation response data
6
6
  * ────────────────────────────────────────────────────────────── */
7
+ import { toCsvCell } from '@wildo-ai/saas-models';
7
8
  import { saveBlobAsFile } from '../../../core/commons/save-blob-as-file.frontend.utils.js';
8
9
  export function exportChartAsPNG(echartsInstance, filename = 'chart.png', pixelRatio = 2) {
9
10
  if (!echartsInstance?.getDataURL) {
@@ -34,6 +35,16 @@ export function exportChartAsCSV(response, definition, filename = 'chart-data.cs
34
35
  console.warn('Chart export: no data to export');
35
36
  return;
36
37
  }
38
+ saveBlobAsFile(new Blob([buildChartCsvContent(response, definition)], { type: 'text/csv;charset=utf-8;' }), filename);
39
+ }
40
+ /**
41
+ * The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.
42
+ *
43
+ * Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed
44
+ * that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet
45
+ * does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.
46
+ */
47
+ export function buildChartCsvContent(response, definition) {
37
48
  // Determine column order: dimensions first, then measures
38
49
  const dimensionRefs = definition.dataQuery.dimensions.map(d => d.ref);
39
50
  const measureRefs = definition.dataQuery.measures.map(m => m.ref);
@@ -48,31 +59,10 @@ export function exportChartAsCSV(response, definition, filename = 'chart-data.cs
48
59
  const headers = [...dimensionLabels, ...measureLabels, ...computedLabels, ...windowLabels];
49
60
  // Build rows (headers are also escaped to handle labels with commas/quotes/newlines)
50
61
  const rows = [];
51
- rows.push(headers.map(h => escapeCSV(h)));
52
- for (const row of response.data) {
53
- const csvRow = allRefs.map(ref => {
54
- const value = row[ref];
55
- if (value == null)
56
- return '';
57
- if (typeof value === 'string')
58
- return escapeCSV(value);
59
- if (value instanceof Date)
60
- return value.toISOString();
61
- return String(value);
62
- });
63
- rows.push(csvRow);
64
- }
65
- // Build CSV string
66
- const csvContent = rows.map(row => row.join(',')).join('\n');
67
- saveBlobAsFile(new Blob([csvContent], { type: 'text/csv;charset=utf-8;' }), filename);
68
- }
69
- /**
70
- * Escape a value for CSV: wrap in quotes if it contains commas, quotes, or newlines.
71
- */
72
- function escapeCSV(value) {
73
- if (value.includes(',') || value.includes('"') || value.includes('\n')) {
74
- return `"${value.replace(/"/g, '""')}"`;
62
+ rows.push(headers.map((header) => toCsvCell(header)));
63
+ for (const row of response.data ?? []) {
64
+ rows.push(allRefs.map((ref) => toCsvCell(row[ref])));
75
65
  }
76
- return value;
66
+ return rows.map((row) => row.join(',')).join('\n');
77
67
  }
78
68
  //# sourceMappingURL=chart-export.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-export.utils.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAIpE,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAcnG,MAAM,UAAU,gBAAgB,CAC9B,eAAqD,EACrD,QAAQ,GAAG,WAAW,EACtB,UAAU,GAAG,CAAC;IAEd,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC;QACzC,IAAI,EAAE,KAAK;QACX,UAAU;QACV,eAAe,EAAE,MAAM;KACxB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAkC,EAClC,UAA2B,EAC3B,QAAQ,GAAG,gBAAgB;IAE3B,IA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AAI,CAAC,CAAC;IAC7D,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;AACxF,CAAC;AAED;;GAEG;AACH,SAAS,SAAS,CAAC,KAAa;IAC9B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACvE,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * Chart Export Utilities\n * \n * - PNG export via ECharts `getDataURL()`\n * - CSV export from aggregation response data\n * ────────────────────────────────────────────────────────────── */\n\nimport type { AggregationQueryResponse } from '@wildo-ai/saas-models';\nimport type { ChartDefinition } from '@wildo-ai/saas-models';\nimport { saveBlobAsFile } from '~wildo-frontend-lib/core/commons/save-blob-as-file.frontend.utils';\n\n/**\n * Export the chart as a PNG image.\n * \n * @param echartsInstance - The ECharts instance (from `onChartReady`)\n * @param filename - The file name for the download (default: 'chart.png')\n * @param pixelRatio - Resolution multiplier (default: 2 for retina)\n */\n/** Minimal interface for the ECharts getDataURL method */\ninterface EChartsExportable {\n getDataURL: (opts: { type: string; pixelRatio: number; backgroundColor: string }) => string;\n}\n\nexport function exportChartAsPNG(\n echartsInstance: EChartsExportable | null | undefined,\n filename = 'chart.png',\n pixelRatio = 2,\n): void {\n if (!echartsInstance?.getDataURL) {\n console.warn('Chart export: no ECharts instance available');\n return;\n }\n\n const dataURL = echartsInstance.getDataURL({\n type: 'png',\n pixelRatio,\n backgroundColor: '#fff',\n });\n\n const link = document.createElement('a');\n link.download = filename;\n link.href = dataURL;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n}\n\n/**\n * Export the chart data as a CSV file.\n * \n * @param response - The aggregation query response\n * @param definition - The chart definition (for column headers)\n * @param filename - The file name for the download (default: 'chart-data.csv')\n */\nexport function exportChartAsCSV(\n response: AggregationQueryResponse,\n definition: ChartDefinition,\n filename = 'chart-data.csv',\n): void {\n if (!response.data || response.data.length === 0) {\n console.warn('Chart export: no data to export');\n return;\n }\n\n // Determine column order: dimensions first, then measures\n const dimensionRefs = definition.dataQuery.dimensions.map(d => d.ref);\n const measureRefs = definition.dataQuery.measures.map(m => m.ref);\n const computedRefs = (definition.dataQuery.computedMeasures || []).map(cm => cm.ref);\n const windowRefs = (definition.dataQuery.windowFunctions || []).map(wf => wf.ref);\n\n const allRefs = [...dimensionRefs, ...measureRefs, ...computedRefs, ...windowRefs];\n\n // Build headers — use labels when available\n const dimensionLabels = definition.dataQuery.dimensions.map(d => d.label || d.ref);\n const measureLabels = definition.dataQuery.measures.map(m => m.label || m.ref);\n const computedLabels = (definition.dataQuery.computedMeasures || []).map(cm => cm.label || cm.ref);\n const windowLabels = (definition.dataQuery.windowFunctions || []).map(wf => wf.label || wf.ref);\n\n const headers = [...dimensionLabels, ...measureLabels, ...computedLabels, ...windowLabels];\n\n // Build rows (headers are also escaped to handle labels with commas/quotes/newlines)\n const rows: string[][] = [];\n rows.push(headers.map(h => escapeCSV(h)));\n\n for (const row of response.data) {\n const csvRow = allRefs.map(ref => {\n const value = row[ref];\n if (value == null) return '';\n if (typeof value === 'string') return escapeCSV(value);\n if (value instanceof Date) return value.toISOString();\n return String(value);\n });\n rows.push(csvRow);\n }\n\n // Build CSV string\n const csvContent = rows.map(row => row.join(',')).join('\\n');\n saveBlobAsFile(new Blob([csvContent], { type: 'text/csv;charset=utf-8;' }), filename);\n}\n\n/**\n * Escape a value for CSV: wrap in quotes if it contains commas, quotes, or newlines.\n */\nfunction escapeCSV(value: string): string {\n if (value.includes(',') || value.includes('\"') || value.includes('\\n')) {\n return `\"${value.replace(/\"/g, '\"\"')}\"`;\n }\n return value;\n}\n"]}
1
+ {"version":3,"file":"chart-export.utils.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-export.utils.ts"],"names":[],"mappings":"AAAA;;;;;oEAKoE;AAIpE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAcnG,MAAM,UAAU,gBAAgB,CAC9B,eAAqD,EACrD,QAAQ,GAAG,WAAW,EACtB,UAAU,GAAG,CAAC;IAEd,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC;QACzC,IAAI,EAAE,KAAK;QACX,UAAU;QACV,eAAe,EAAE,MAAM;KACxB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAkC,EAClC,UAA2B,EAC3B,QAAQ,GAAG,gBAAgB;IAE3B,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QAChD,OAAO;IACT,CAAC;IACD,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,oBAAoB,CAAC,Q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AC,gBAAgB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACnG,MAAM,YAAY,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IAEhG,MAAM,OAAO,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,aAAa,EAAE,GAAG,cAAc,EAAE,GAAG,YAAY,CAAC,CAAC;IAE3F,qFAAqF;IACrF,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAEtD,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC","sourcesContent":["/** ──────────────────────────────────────────────────────────────\n * Chart Export Utilities\n * \n * - PNG export via ECharts `getDataURL()`\n * - CSV export from aggregation response data\n * ────────────────────────────────────────────────────────────── */\n\nimport type { AggregationQueryResponse } from '@wildo-ai/saas-models';\nimport type { ChartDefinition } from '@wildo-ai/saas-models';\nimport { toCsvCell } from '@wildo-ai/saas-models';\nimport { saveBlobAsFile } from '~wildo-frontend-lib/core/commons/save-blob-as-file.frontend.utils';\n\n/**\n * Export the chart as a PNG image.\n * \n * @param echartsInstance - The ECharts instance (from `onChartReady`)\n * @param filename - The file name for the download (default: 'chart.png')\n * @param pixelRatio - Resolution multiplier (default: 2 for retina)\n */\n/** Minimal interface for the ECharts getDataURL method */\ninterface EChartsExportable {\n getDataURL: (opts: { type: string; pixelRatio: number; backgroundColor: string }) => string;\n}\n\nexport function exportChartAsPNG(\n echartsInstance: EChartsExportable | null | undefined,\n filename = 'chart.png',\n pixelRatio = 2,\n): void {\n if (!echartsInstance?.getDataURL) {\n console.warn('Chart export: no ECharts instance available');\n return;\n }\n\n const dataURL = echartsInstance.getDataURL({\n type: 'png',\n pixelRatio,\n backgroundColor: '#fff',\n });\n\n const link = document.createElement('a');\n link.download = filename;\n link.href = dataURL;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n}\n\n/**\n * Export the chart data as a CSV file.\n * \n * @param response - The aggregation query response\n * @param definition - The chart definition (for column headers)\n * @param filename - The file name for the download (default: 'chart-data.csv')\n */\nexport function exportChartAsCSV(\n response: AggregationQueryResponse,\n definition: ChartDefinition,\n filename = 'chart-data.csv',\n): void {\n if (!response.data || response.data.length === 0) {\n console.warn('Chart export: no data to export');\n return;\n }\n saveBlobAsFile(new Blob([buildChartCsvContent(response, definition)], { type: 'text/csv;charset=utf-8;' }), filename);\n}\n\n/**\n * The CSV text of a chart's data: one header row of labels, then one row per data point, dimensions first.\n *\n * Every cell goes through `toCsvCell`, the one cell writer the listing and subject exports use, so a value a person typed\n * that starts like a formula (a customer named `=HYPERLINK(…)` grouped as a dimension) is written as text the spreadsheet\n * does not run, and a carriage return is quoted like a line feed. This function had its own escaping, which did neither.\n */\nexport function buildChartCsvContent(response: AggregationQueryResponse, definition: ChartDefinition): string {\n // Determine column order: dimensions first, then measures\n const dimensionRefs = definition.dataQuery.dimensions.map(d => d.ref);\n const measureRefs = definition.dataQuery.measures.map(m => m.ref);\n const computedRefs = (definition.dataQuery.computedMeasures || []).map(cm => cm.ref);\n const windowRefs = (definition.dataQuery.windowFunctions || []).map(wf => wf.ref);\n\n const allRefs = [...dimensionRefs, ...measureRefs, ...computedRefs, ...windowRefs];\n\n // Build headers — use labels when available\n const dimensionLabels = definition.dataQuery.dimensions.map(d => d.label || d.ref);\n const measureLabels = definition.dataQuery.measures.map(m => m.label || m.ref);\n const computedLabels = (definition.dataQuery.computedMeasures || []).map(cm => cm.label || cm.ref);\n const windowLabels = (definition.dataQuery.windowFunctions || []).map(wf => wf.label || wf.ref);\n\n const headers = [...dimensionLabels, ...measureLabels, ...computedLabels, ...windowLabels];\n\n // Build rows (headers are also escaped to handle labels with commas/quotes/newlines)\n const rows: string[][] = [];\n rows.push(headers.map((header) => toCsvCell(header)));\n\n for (const row of response.data ?? []) {\n rows.push(allRefs.map((ref) => toCsvCell(row[ref])));\n }\n\n return rows.map((row) => row.join(',')).join('\\n');\n}\n"]}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked
3
+ * tile can size themselves like the chart without importing the chart chunk.
4
+ */
5
+ export declare const CHART_VIEW_DEFAULT_HEIGHT = 400;
6
+ //# sourceMappingURL=chart-view-defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-view-defaults.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-view-defaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked
3
+ * tile can size themselves like the chart without importing the chart chunk.
4
+ */
5
+ export const CHART_VIEW_DEFAULT_HEIGHT = 400;
6
+ //# sourceMappingURL=chart-view-defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-view-defaults.js","sourceRoot":"","sources":["../../../../../src/components/views/chart-view/chart-view-defaults.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC","sourcesContent":["/**\n * A chart view's height when its host gives none. In a module of its own so the lazy wrapper, its fallbacks and a locked\n * tile can size themselves like the chart without importing the chart chunk.\n */\nexport const CHART_VIEW_DEFAULT_HEIGHT = 400;\n"]}