@wildo-ai/saas-frontend-lib 1.1.17 → 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 (586) 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/data-display/AutomaticDisplayer.d.ts.map +1 -1
  83. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  84. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  85. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/DisplayField.js +67 -45
  87. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  90. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  93. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  94. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  96. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  97. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  98. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  99. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  100. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  101. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  102. package/dist/esm/components/feedback/empty-state.js +2 -1
  103. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  104. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  105. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  106. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  107. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  108. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  109. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  110. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  111. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  112. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  113. package/dist/esm/components/flows-actors/approval.js +14 -9
  114. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  115. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  116. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  117. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  118. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  119. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  120. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  121. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  122. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  123. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  124. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  125. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  126. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  127. package/dist/esm/components/form/Form.d.ts +2 -0
  128. package/dist/esm/components/form/Form.d.ts.map +1 -1
  129. package/dist/esm/components/form/Form.js +1 -0
  130. package/dist/esm/components/form/Form.js.map +1 -1
  131. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  132. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  133. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  134. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  135. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  136. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  137. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  138. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  139. package/dist/esm/components/form/automated/FormField.js +38 -13
  140. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  141. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  142. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
  144. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  145. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  146. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  147. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  148. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  149. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  150. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  151. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  152. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  153. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  154. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  155. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  156. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  157. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  158. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  159. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  160. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  161. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  162. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  163. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  164. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  165. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  166. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  167. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  168. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  169. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  170. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  171. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  172. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  173. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
  174. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  175. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  176. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  177. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
  178. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  179. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  180. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
  181. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  182. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  183. package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
  184. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  185. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  186. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  187. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  188. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  189. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  190. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  191. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  192. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  193. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  194. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  195. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  196. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  197. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  198. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  199. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  200. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  201. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  202. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  203. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  204. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  205. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  206. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  207. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  208. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  209. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  210. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  211. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  212. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  213. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  214. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  215. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  216. package/dist/esm/components/settings/SettingsHub.js +14 -4
  217. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  218. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  219. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  220. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  221. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  222. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  223. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  224. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  225. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  226. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  227. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  228. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  229. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  230. package/dist/esm/components/views/chart-view/ChartView.js +33 -7
  231. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  232. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  233. package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
  234. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  235. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  236. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  237. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  238. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  239. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  240. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  241. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  242. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  243. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  244. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  245. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  246. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  247. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  248. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  249. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
  250. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  251. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
  252. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  253. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  254. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
  255. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  256. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  257. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  258. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
  259. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  260. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  261. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  262. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
  263. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  264. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  265. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  266. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
  267. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  268. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  269. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
  270. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  271. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  272. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  273. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  274. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  275. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  276. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  277. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  278. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  279. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  280. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  281. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  282. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  283. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  284. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  285. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  286. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  287. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  288. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  289. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  290. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  291. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  292. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  293. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  294. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  295. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  296. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  297. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  298. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  299. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  300. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  301. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  302. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  303. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  304. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  305. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  306. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  307. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  308. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  309. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  310. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  311. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  312. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  313. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  314. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  315. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  316. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  317. package/dist/esm/core/billing/BillingContext.js +61 -2
  318. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  319. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  320. package/dist/esm/core/billing/useBillingAction.js +3 -2
  321. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  322. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  323. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  324. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  325. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  326. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  327. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  328. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  329. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  330. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  331. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  332. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  333. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  334. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  335. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  336. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  337. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  338. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  339. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  340. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  341. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  342. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  343. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  344. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  345. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  346. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  347. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  348. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  349. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  350. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  351. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  352. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  353. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  354. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  355. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  356. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  357. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  358. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  359. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  360. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  361. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  362. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  363. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  364. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  365. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  366. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  367. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  368. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  369. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  370. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  371. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  372. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  373. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  374. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  375. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  376. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  377. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  378. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  379. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  380. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  381. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  382. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  383. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  384. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  385. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  386. package/dist/esm/core/events/NotificationContext.js +19 -2
  387. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  388. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  389. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  390. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  391. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  392. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  393. package/dist/esm/core/execution/useExecution.js.map +1 -1
  394. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  395. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  396. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  397. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  398. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  399. package/dist/esm/core/features/FeatureGate.js +6 -1
  400. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  401. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  402. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  403. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  404. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  405. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  406. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  407. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  408. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  409. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  410. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  411. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  412. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  413. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  414. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  415. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  416. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  417. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  418. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  419. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  420. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  421. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  422. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  423. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  424. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  425. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  426. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  427. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  428. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  429. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  430. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  431. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  432. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  433. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  434. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  435. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  436. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  437. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  438. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  439. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  440. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  441. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  442. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  443. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  444. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  445. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  446. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  447. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  448. package/dist/esm/core/navigation/home-resolution.js +46 -0
  449. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  450. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  451. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  452. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  453. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  454. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  455. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  456. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  457. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  458. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  459. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  460. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  461. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  462. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  463. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  464. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  465. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  466. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  467. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  468. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  469. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  470. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  471. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  472. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  473. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  474. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  475. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  476. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  477. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  478. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  479. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  480. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  481. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  482. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  483. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  484. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  485. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  486. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  487. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  488. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  489. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  490. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  491. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
  492. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  493. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
  494. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  495. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  496. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  497. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  498. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  499. package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
  500. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  501. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  502. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  503. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  504. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  505. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  506. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  507. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  508. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  509. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  510. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  511. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  512. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  513. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  514. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  515. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  516. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  517. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  518. package/dist/esm/core/runtime/AppRouter.js +11 -33
  519. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  520. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  521. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  522. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  523. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  524. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  525. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  526. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  527. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  528. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  529. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  530. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  531. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  532. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  533. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  534. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  535. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  536. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  537. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  538. package/dist/esm/core/runtime/identity-routes.js +50 -0
  539. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  540. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  541. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  542. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  543. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  544. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  545. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  546. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  547. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  548. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  549. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  550. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  551. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  552. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  553. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  554. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  555. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  556. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  557. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  558. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  559. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  560. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  561. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  562. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  563. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  564. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  565. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  566. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  567. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  568. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  569. package/dist/esm/core/ui/design-token.utils.js +24 -3
  570. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  571. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  572. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  573. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  574. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  575. package/dist/esm/index.d.ts +14 -1
  576. package/dist/esm/index.d.ts.map +1 -1
  577. package/dist/esm/index.js +17 -1
  578. package/dist/esm/index.js.map +1 -1
  579. package/dist/esm/testing/mock-builders.d.ts +1 -1
  580. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  581. package/dist/esm/testing/mock-builders.js +1 -0
  582. package/dist/esm/testing/mock-builders.js.map +1 -1
  583. package/dist/tsconfig.build.tsbuildinfo +1 -1
  584. package/package.json +9 -6
  585. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  586. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -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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,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,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,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C7B,CAAC;CACF;AAeD;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,QAAQ,EACR,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,MAAM,EACf,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,eAAe,GAAG,wBAAwB,CAAC;QAC/C,OAAO,EAAE,QAAQ;QACjB,QAAQ;KACT,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC;IAC9B,MAAM,gBAAgB,GAAG,eAAe,EAAE,gBAAgB,CAAC;IAC3D,oHAAoH;IACpH,0CAA0C;IAC1C,MAAM,YAAY,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAC3D,IAAI,YAAY,KAAK,iBAAiB,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE5D,OAAO,CACL,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,YAC1C,KAAC,oBAAoB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,gCAAgC,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,YACrI,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,GACU,GACE,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 { 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,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;IAED,0DAA0D;IAC1D,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,C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,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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,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"]}
@@ -3,8 +3,9 @@
3
3
  * ────────────────────────────────────────────────────────────── */
4
4
  import { TimeGranularity } from '@wildo-ai/saas-models';
5
5
  import type { ChartBuildContext, ChartI18nResolver } from './chart-type-builder.interface';
6
- import type { ChartSeriesDefinition, AggregationQueryResponseRow } from '@wildo-ai/saas-models';
6
+ import type { ChartDefinition, ChartSeriesDefinition, AggregationQueryResponseRow } from '@wildo-ai/saas-models';
7
7
  import type { ChartStylePreset } from '@wildo-ai/presets-components-models';
8
+ import { FrontendComponentType } from '@wildo-ai/presets-components-models';
8
9
  import type { DimensionEnumColors } from '../../../../components/views/chart-view/enum-color-bridge';
9
10
  /** Get the first dimension ref from the chart definition */
10
11
  export declare function getPrimaryDimensionRef(ctx: ChartBuildContext): string;
@@ -61,17 +62,42 @@ export declare function resolveSplitColor(splitValue: string, splitIndex: number
61
62
  *
62
63
  * Resolution order:
63
64
  * 1. chart-level i18n.splitValueKeys (via i18n resolver)
64
- * 2. series.splitConfig.labelMap
65
- * 3. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
66
- * 4. raw split value
65
+ * 2. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
66
+ * 3. raw split value
67
+ *
68
+ * There is no per-series map of words: words written into a definition reach no translation.
67
69
  */
68
70
  export declare function resolveSplitLabel(splitValue: string, series: ChartSeriesDefinition, ctx?: ChartBuildContext, dimensionRef?: string): string;
69
71
  /**
70
- * Resolve series display name.
72
+ * The definition with every series named by a label key: the key it declares in `nameKey`, else its own key under the
73
+ * chart view's label keys (`labelKeyOf(series.ref)`, `buildChartSeriesLabelKey` for a resource chart view). Each mark
74
+ * line and mark point with a ref and no `labelKey` gets its own key the same way (`markLabelKeyOf(mark.ref)`,
75
+ * `buildChartMarkLabelKey`). The chart view applies it before building the option, so the builders always have a key.
76
+ */
77
+ export declare function withSeriesLabelKeys(definition: ChartDefinition, labelKeyOf: (seriesRef: string) => string, markLabelKeyOf?: (markRef: string) => string): ChartDefinition;
78
+ /** Every label key a definition's series and marks name: what the chart view loads before it draws. */
79
+ export declare function chartDefinitionLabelKeys(definition: ChartDefinition | undefined): string[];
80
+ /**
81
+ * The resolver a chart view hands its builders.
71
82
  *
72
- * Resolution order:
73
- * 1. series.nameKey (via i18n resolver)
74
- * 2. series.name (static fallback)
83
+ * - A bare ref (no dot, such as `densifiedSeriesName` or `waterfallGainLabel`) is one of the chart component's own
84
+ * labels, which live under `components.HIGH_LEVEL_VIEWS_CHART`. A missing one answers the bare ref, never the
85
+ * prefixed path, so a builder that tells a missing label by "the answer is the key" still can.
86
+ * - Any other key (a series' label key, or a `nameKey` naming another label such as a resource field's) is a path from
87
+ * the root of the label tree.
88
+ */
89
+ export declare function createChartLabelResolver(params: {
90
+ tComponent: (componentType: FrontendComponentType, key: string, values?: Record<string, string | number>) => string;
91
+ t: ChartI18nResolver;
92
+ }): ChartI18nResolver;
93
+ /**
94
+ * The name a series shows in the legend and the tooltip: always a LABEL, never `series.name`.
95
+ *
96
+ * The chart view fills `nameKey` with the series' own label key (`buildChartSeriesLabelKey`) unless the definition names
97
+ * another, so the words come from the label tree like every other string a person reads. A key with no word yet is shown
98
+ * as the key, so the missing label looks missing; `series.name` is English written into the definition, which no
99
+ * translation reaches, and is never shown. A series with no key at all (a definition rendered outside any chart view, as
100
+ * a development preview is) shows its `ref`.
75
101
  */
76
102
  export declare function resolveSeriesName(series: ChartSeriesDefinition, t?: ChartI18nResolver): string;
77
103
  /**
@@ -211,5 +237,5 @@ export declare function hasDensifiedRows(data: AggregationQueryResponseRow[]): b
211
237
  */
212
238
  export declare function buildResponsiveMedia(preset: ChartStylePreset | undefined, hasCartesianAxes: boolean, compensatesPieLabelsOnSmall?: boolean): unknown[];
213
239
  /** Apply ChartSeriesStyle to an ECharts series item */
214
- export declare function applySeriesStyle(echartsSeriesItem: Record<string, unknown>, seriesDef: ChartSeriesDefinition): void;
240
+ export declare function applySeriesStyle(echartsSeriesItem: Record<string, unknown>, seriesDef: ChartSeriesDefinition, t: ChartI18nResolver): void;
215
241
  //# sourceMappingURL=builder-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/views/chart-view/option-builder/builder-utils.ts"],"names":[],"mappings":"AAAA;;oEAEoE;AAEpE,OAAO,EAAqB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AAI7G,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAErE;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,2BAA2B,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,EAAE,CAE3G;AAED,gDAAgD;AAChD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAE/G;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIhE;AAID,2DAA2D;AAC3D,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EAAE,GAChB,MAAM,CAER;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,2BAA2B,EAAE,EACnC,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,EAAE,GACd,2BAA2B,EAAE,CAU/B;AAID,+DAA+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AAgB,CAC9B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,SAAS,EAAE,qBAAqB,GAC/B,IAAI,CAyFN"}
1
+ {"version":3,"file":"builder-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/views/chart-view/option-builder/builder-utils.ts"],"names":[],"mappings":"AAAA;;oEAEoE;AAEpE,OAAO,EAAqB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACjH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAkB,MAAM,qCAAqC,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AAI7G,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAErE;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,2BAA2B,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,EAAE,CAE3G;AAED,gDAAgD;AAChD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAE/G;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIhE;AAID,2DAA2D;AAC3D,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EAAE,GAChB,MAAM,CAER;AAID;;;;;;;;;;GAUG;AACH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B,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAYxG;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,2BAA2B,EAAE,EACnC,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,eAAe,GAAG,SAAS,EACxC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,gBAAgB,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAazB;AAID,8DAA8D;AAC9D,wBAAgB,WAAW,CAAC,GAAG,EAAE,2BAA2B,GAAG,OAAO,CAErE;AAED,qDAAqD;AACrD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAE7E;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,gBAAgB,EAAE,OAAO,EACzB,2BAA2B,GAAE,OAAe,GAC3C,OAAO,EAAE,CAkCX;AAID,uDAAuD;AACvD,wBAAgB,gBAAgB,CAC9B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,SAAS,EAAE,qBAAqB,EAChC,CAAC,EAAE,iBAAiB,GACnB,IAAI,CAyFN"}
@@ -2,6 +2,7 @@
2
2
  * Builder Utilities — shared helpers for option builders
3
3
  * ────────────────────────────────────────────────────────────── */
4
4
  import { AggregateFunction, TimeGranularity } from '@wildo-ai/saas-models';
5
+ import { FrontendComponentType, LabellingTypes } from '@wildo-ai/presets-components-models';
5
6
  // ── Data Extraction ──────────────────────────────────────────
6
7
  /** Get the first dimension ref from the chart definition */
7
8
  export function getPrimaryDimensionRef(ctx) {
@@ -114,9 +115,10 @@ export function resolveSplitColor(splitValue, splitIndex, series, palette, enumC
114
115
  *
115
116
  * Resolution order:
116
117
  * 1. chart-level i18n.splitValueKeys (via i18n resolver)
117
- * 2. series.splitConfig.labelMap
118
- * 3. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
119
- * 4. raw split value
118
+ * 2. the value's enum label, when `dimensionRef` names an enum dimension (`ctx.dimensionEnumLabels`)
119
+ * 3. raw split value
120
+ *
121
+ * There is no per-series map of words: words written into a definition reach no translation.
120
122
  */
121
123
  export function resolveSplitLabel(splitValue, series, ctx, dimensionRef) {
122
124
  // Try i18n key resolution first
@@ -128,24 +130,70 @@ export function resolveSplitLabel(splitValue, series, ctx, dimensionRef) {
128
130
  return resolved;
129
131
  }
130
132
  }
131
- return series.splitConfig?.labelMap?.[splitValue]
132
- ?? (dimensionRef ? ctx?.dimensionEnumLabels?.[dimensionRef]?.[splitValue] : undefined)
133
- ?? splitValue;
133
+ return (dimensionRef ? ctx?.dimensionEnumLabels?.[dimensionRef]?.[splitValue] : undefined) ?? splitValue;
134
+ }
135
+ /**
136
+ * The definition with every series named by a label key: the key it declares in `nameKey`, else its own key under the
137
+ * chart view's label keys (`labelKeyOf(series.ref)`, `buildChartSeriesLabelKey` for a resource chart view). Each mark
138
+ * line and mark point with a ref and no `labelKey` gets its own key the same way (`markLabelKeyOf(mark.ref)`,
139
+ * `buildChartMarkLabelKey`). The chart view applies it before building the option, so the builders always have a key.
140
+ */
141
+ export function withSeriesLabelKeys(definition, labelKeyOf, markLabelKeyOf) {
142
+ const withMarkKey = (mark) => markLabelKeyOf && mark.labelKey === undefined && mark.ref !== undefined ? { ...mark, labelKey: markLabelKeyOf(mark.ref) } : mark;
143
+ return {
144
+ ...definition,
145
+ series: definition.series.map((series) => {
146
+ const named = series.nameKey === undefined ? { ...series, nameKey: labelKeyOf(series.ref) } : series;
147
+ if (!named.style?.markLines && !named.style?.markPoints)
148
+ return named;
149
+ return {
150
+ ...named,
151
+ style: {
152
+ ...named.style,
153
+ ...(named.style.markLines ? { markLines: named.style.markLines.map(withMarkKey) } : {}),
154
+ ...(named.style.markPoints ? { markPoints: named.style.markPoints.map(withMarkKey) } : {}),
155
+ },
156
+ };
157
+ }),
158
+ };
159
+ }
160
+ /** Every label key a definition's series and marks name: what the chart view loads before it draws. */
161
+ export function chartDefinitionLabelKeys(definition) {
162
+ return (definition?.series ?? []).flatMap((series) => [
163
+ ...(series.nameKey === undefined ? [] : [series.nameKey]),
164
+ ...[...(series.style?.markLines ?? []), ...(series.style?.markPoints ?? [])].flatMap((mark) => mark.labelKey !== undefined && mark.labelKey.includes('.') ? [mark.labelKey] : []),
165
+ ]);
134
166
  }
135
167
  /**
136
- * Resolve series display name.
168
+ * The resolver a chart view hands its builders.
137
169
  *
138
- * Resolution order:
139
- * 1. series.nameKey (via i18n resolver)
140
- * 2. series.name (static fallback)
170
+ * - A bare ref (no dot, such as `densifiedSeriesName` or `waterfallGainLabel`) is one of the chart component's own
171
+ * labels, which live under `components.HIGH_LEVEL_VIEWS_CHART`. A missing one answers the bare ref, never the
172
+ * prefixed path, so a builder that tells a missing label by "the answer is the key" still can.
173
+ * - Any other key (a series' label key, or a `nameKey` naming another label such as a resource field's) is a path from
174
+ * the root of the label tree.
175
+ */
176
+ export function createChartLabelResolver(params) {
177
+ return (key, values) => {
178
+ if (key.includes('.'))
179
+ return params.t(key, values);
180
+ const answer = params.tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, key, values);
181
+ return answer === `${LabellingTypes.COMPONENTS}.${FrontendComponentType.HIGH_LEVEL_VIEWS_CHART}.${key}` ? key : answer;
182
+ };
183
+ }
184
+ /**
185
+ * The name a series shows in the legend and the tooltip: always a LABEL, never `series.name`.
186
+ *
187
+ * The chart view fills `nameKey` with the series' own label key (`buildChartSeriesLabelKey`) unless the definition names
188
+ * another, so the words come from the label tree like every other string a person reads. A key with no word yet is shown
189
+ * as the key, so the missing label looks missing; `series.name` is English written into the definition, which no
190
+ * translation reaches, and is never shown. A series with no key at all (a definition rendered outside any chart view, as
191
+ * a development preview is) shows its `ref`.
141
192
  */
142
193
  export function resolveSeriesName(series, t) {
143
- if (series.nameKey && t) {
144
- const resolved = t(series.nameKey);
145
- if (resolved !== series.nameKey)
146
- return resolved;
147
- }
148
- return series.name;
194
+ if (series.nameKey === undefined)
195
+ return series.ref;
196
+ return t ? t(series.nameKey) : series.nameKey;
149
197
  }
150
198
  // ── Axis Builders ────────────────────────────────────────────
151
199
  /**
@@ -430,7 +478,7 @@ export function buildResponsiveMedia(preset, hasCartesianAxes, compensatesPieLab
430
478
  }
431
479
  // ── Common Series Style ──────────────────────────────────────
432
480
  /** Apply ChartSeriesStyle to an ECharts series item */
433
- export function applySeriesStyle(echartsSeriesItem, seriesDef) {
481
+ export function applySeriesStyle(echartsSeriesItem, seriesDef, t) {
434
482
  const style = seriesDef.style;
435
483
  if (!style)
436
484
  return;
@@ -490,7 +538,7 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
490
538
  if (ml.type) {
491
539
  return {
492
540
  type: ml.type,
493
- ...(ml.label ? { label: { formatter: ml.label } } : {}),
541
+ ...(ml.labelKey ? { label: { formatter: t(ml.labelKey) } } : {}),
494
542
  ...(ml.color ? { lineStyle: { color: ml.color, type: ml.lineType ?? 'dashed' } } : { lineStyle: { type: ml.lineType ?? 'dashed' } }),
495
543
  };
496
544
  }
@@ -500,8 +548,8 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
500
548
  lineData.yAxis = ml.yValue;
501
549
  if (ml.xValue != null)
502
550
  lineData.xAxis = ml.xValue;
503
- if (ml.label)
504
- lineData.label = { formatter: ml.label };
551
+ if (ml.labelKey)
552
+ lineData.label = { formatter: t(ml.labelKey) };
505
553
  lineData.lineStyle = { color: ml.color, type: ml.lineType ?? 'dashed' };
506
554
  return lineData;
507
555
  }),
@@ -512,7 +560,7 @@ export function applySeriesStyle(echartsSeriesItem, seriesDef) {
512
560
  echartsSeriesItem.markPoint = {
513
561
  data: style.markPoints.map(mp => ({
514
562
  ...(mp.type ? { type: mp.type } : {}),
515
- ...(mp.label ? { label: { formatter: mp.label } } : {}),
563
+ ...(mp.labelKey ? { label: { formatter: t(mp.labelKey) } } : {}),
516
564
  ...(mp.symbol ? { symbol: mp.symbol } : {}),
517
565
  ...(mp.symbolSize ? { symbolSize: mp.symbolSize } : {}),
518
566
  })),