@camunda/ccma-saas-frontend 0.0.46 → 0.3.0

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 (371) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ export const mockClusters = [
7
+ {
8
+ id: 'cluster-1',
9
+ name: 'Production Cluster',
10
+ generation: 'Camunda 8.5',
11
+ type: 'Production',
12
+ region: 'us-east-1',
13
+ status: 'healthy',
14
+ tags: ['prod'],
15
+ currentClusterLoad: 45.5,
16
+ originalIndex: 0,
17
+ },
18
+ {
19
+ id: 'cluster-2',
20
+ name: 'Development Cluster',
21
+ generation: 'Camunda 8.4 - update available',
22
+ type: 'Development',
23
+ region: 'eu-central-1',
24
+ status: 'creating',
25
+ tags: ['dev'],
26
+ currentClusterLoad: 12.3,
27
+ originalIndex: 1,
28
+ },
29
+ {
30
+ id: 'cluster-3',
31
+ name: 'Test Cluster',
32
+ generation: 'Camunda 8.5',
33
+ type: 'Production - 2x',
34
+ region: 'us-west-2',
35
+ status: 'suspended',
36
+ tags: ['test'],
37
+ originalIndex: 2,
38
+ },
39
+ {
40
+ id: 'cluster-4',
41
+ name: 'Staging Cluster',
42
+ generation: 'Camunda 8.5',
43
+ type: 'Production',
44
+ region: 'ap-southeast-1',
45
+ status: 'healthy',
46
+ tags: [],
47
+ currentClusterLoad: 78.9,
48
+ originalIndex: 3,
49
+ },
50
+ {
51
+ id: 'cluster-5',
52
+ name: 'Encryption Setup Cluster',
53
+ generation: 'Camunda 8.9',
54
+ type: 'Production',
55
+ region: 'eu-west-1',
56
+ status: 'waitingForInput',
57
+ statusInfoTooltip: 'Waiting for external encryption to be configured',
58
+ tags: ['prod'],
59
+ currentClusterLoad: 0,
60
+ originalIndex: 4,
61
+ },
62
+ ];
63
+ export const defaultProps = {
64
+ orgId: 'org-123',
65
+ clusters: mockClusters,
66
+ loading: false,
67
+ urls: {
68
+ clusterDetails: (clusterId) => `/org/org-123/clusters/${clusterId}`,
69
+ createCluster: '/org/org-123/clusters/create',
70
+ },
71
+ permissions: {
72
+ canCreateCluster: true,
73
+ canEditCluster: true,
74
+ canDeleteCluster: true,
75
+ canUpdateTag: true,
76
+ canSeeClusterLoad: true,
77
+ canWakeCluster: true,
78
+ createClusterButtonDisabled: false,
79
+ },
80
+ onNavigate: (url) => console.log('Navigate to:', url),
81
+ onDeleteCluster: (id) => console.log('Delete cluster:', id),
82
+ onAssignTag: (id) => console.log('Assign tag to cluster:', id),
83
+ onWakeCluster: (id) => console.log('Wake cluster:', id),
84
+ translations: {
85
+ title: 'Clusters',
86
+ createButton: 'Create cluster',
87
+ searchLabel: 'Search',
88
+ // Not exercised by any story: `emptyStateContent` is always supplied
89
+ // where `clusters` is empty (see c4-cluster-list.tsx `renderDataTable`),
90
+ // so this fallback copy never renders. Present only to satisfy the
91
+ // (non-optional) `C4ClusterListProps['translations']['emptyState']` type
92
+ // outside the stories file (which TS excludes from typechecking).
93
+ emptyState: {
94
+ noClusters: 'No clusters found.',
95
+ },
96
+ headers: {
97
+ name: 'Name',
98
+ generation: 'Generation',
99
+ type: 'Type',
100
+ region: 'Region',
101
+ status: 'Status',
102
+ tags: 'Tags',
103
+ currentClusterLoad: 'Current cluster load',
104
+ },
105
+ overflowMenu: {
106
+ delete: 'Delete',
107
+ resume: 'Resume',
108
+ },
109
+ tags: {
110
+ addLabel: 'Add tag',
111
+ },
112
+ tooltips: {
113
+ clusterLoad: 'Current cluster load',
114
+ },
115
+ },
116
+ isClusterPaused: (clusterId) => clusterId === 'cluster-3',
117
+ isRunningOnUnsupportedGeneration: (clusterId) => clusterId === 'cluster-2',
118
+ };
119
+ // A single freshly created cluster, isolated (no other rows) - used to
120
+ // document the "just created a cluster" moment in the docs screenshots,
121
+ // once while it's still provisioning and once after it turns healthy.
122
+ export const newCluster = {
123
+ id: 'new-cluster',
124
+ name: 'new-cluster',
125
+ generation: 'Camunda 8.8',
126
+ type: 'Production',
127
+ region: 'us-east-1',
128
+ status: 'creating',
129
+ tags: [],
130
+ currentClusterLoad: 0,
131
+ originalIndex: 0,
132
+ };
@@ -66,6 +66,8 @@ export interface C4ClusterListProps {
66
66
  delete: string;
67
67
  resume: string;
68
68
  failover?: string;
69
+ /** Shown as the action label while the initial secondary bucket sync is pending. */
70
+ failoverSyncPending?: string;
69
71
  };
70
72
  tags: {
71
73
  addLabel: string;
@@ -76,5 +78,10 @@ export interface C4ClusterListProps {
76
78
  };
77
79
  isClusterPaused: (clusterId: string) => boolean;
78
80
  isMultiRegionCluster?: (clusterId: string) => boolean;
81
+ /**
82
+ * True while a failover-eligible cluster's initial primary→secondary bucket
83
+ * sync has not completed — the action is shown disabled with a reason.
84
+ */
85
+ isFailoverSyncPending?: (clusterId: string) => boolean;
79
86
  isRunningOnUnsupportedGeneration: (clusterId: string) => boolean;
80
87
  }
@@ -4,9 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { preview__IconIndicator as IconIndicator, Layer, Link, Loading, Stack, Tile, Tooltip, } from '@carbon/react';
7
+ import { preview__IconIndicator as IconIndicator, Layer } from '@carbon/react';
8
8
  import { ArrowRight, CheckmarkFilled, Information, PauseOutlineFilled, PendingFilled, WarningFilled, } from '@carbon/react/icons/index.esm.js';
9
9
  import { useEffect, useState } from 'react';
10
+ import { Link, Loading, Stack, Tile, Tooltip } from '../../ui/index.js';
10
11
  import { mediaSizeByWidth } from '../c4-billing-page/elements/current-usage-metrics.js';
11
12
  import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
12
13
  const MAINTENANCE_STATUS_TEXT = 'Maintenance';
@@ -162,10 +163,24 @@ export const ApplicationTile = (props) => {
162
163
  alignSelf: 'end',
163
164
  cursor: 'pointer',
164
165
  }, onClick: (e) => {
165
- if (normalizedLink?.onClick) {
166
- e.preventDefault();
167
- normalizedLink.onClick();
166
+ if (!normalizedLink?.onClick) {
167
+ return;
168
168
  }
169
+ // Preserve native open-in-new-tab / new-window behaviour:
170
+ // when there's a real href, let the browser handle modifier
171
+ // and non-left clicks (Ctrl/Cmd/Shift/Alt or middle click)
172
+ // instead of routing in-app. Only plain left-clicks are
173
+ // intercepted for client-side navigation.
174
+ if (normalizedLink.url &&
175
+ (e.metaKey ||
176
+ e.ctrlKey ||
177
+ e.shiftKey ||
178
+ e.altKey ||
179
+ e.button !== 0)) {
180
+ return;
181
+ }
182
+ e.preventDefault();
183
+ normalizedLink.onClick();
169
184
  }, children: [normalizedLink.label, ' ', _jsx(ArrowRight, { style: { marginLeft: '0.5rem', marginBottom: '-0.2rem' } })] }))] })] }) }) }));
170
185
  return component;
171
186
  };
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { render, screen } from '@testing-library/react';
8
8
  import userEvent from '@testing-library/user-event';
9
9
  import { describe, expect, it, vi } from 'vitest';
10
- import { ClusterStatusElement, normalizeClusterStatus } from './applications.js';
10
+ import { ApplicationTile, ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
11
11
  describe('ClusterStatusElement', () => {
12
12
  it('renders waiting for input as waiting and forwards info clicks', async () => {
13
13
  const onInfoClick = vi.fn();
@@ -30,3 +30,29 @@ describe('ClusterStatusElement', () => {
30
30
  expect(container.querySelector('.cds--icon-indicator--undefined')).toBeInTheDocument();
31
31
  });
32
32
  });
33
+ describe('ApplicationTile link click handling', () => {
34
+ const renderTile = (onClick) => render(_jsx(ApplicationTile, { name: 'Connectors', status: 'healthy', version: '8.8.8', link: {
35
+ url: '/org/org-1/cluster/cluster-1/connectors/management',
36
+ label: 'Manage',
37
+ visible: true,
38
+ onClick,
39
+ } }));
40
+ it('routes in-app on a plain left click', async () => {
41
+ const onClick = vi.fn();
42
+ const user = userEvent.setup();
43
+ renderTile(onClick);
44
+ await user.click(screen.getByRole('link', { name: /Manage/ }));
45
+ expect(onClick).toHaveBeenCalledTimes(1);
46
+ });
47
+ it('lets the browser handle modifier clicks so the link opens in a new tab', async () => {
48
+ const onClick = vi.fn();
49
+ const user = userEvent.setup();
50
+ renderTile(onClick);
51
+ // Cmd/Ctrl-click should fall through to the native href instead of routing
52
+ // in-app, preserving open-in-new-tab.
53
+ await user.keyboard('[ControlLeft>]');
54
+ await user.click(screen.getByRole('link', { name: /Manage/ }));
55
+ await user.keyboard('[/ControlLeft]');
56
+ expect(onClick).not.toHaveBeenCalled();
57
+ });
58
+ });
@@ -4,10 +4,11 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { InlineNotification, Stack, Tooltip } from '@carbon/react';
8
7
  import { Caution, CheckmarkFilled } from '@carbon/react/icons/index.esm.js';
9
8
  import styled from 'styled-components';
9
+ import { Stack, Tooltip } from '../../ui/index.js';
10
10
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
11
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
11
12
  import C4JobDashboardEntryPoint from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js';
12
13
  import { Applications } from './applications.js';
13
14
  import { ClusterDetails } from './cluster-details.js';
@@ -38,10 +39,10 @@ export const C4ClusterOverview = ({ applications, details, clusterLoad, rbaNotif
38
39
  let rbaNotificationElement = null;
39
40
  if (rbaNotification?.visible) {
40
41
  if (rbaNotification.canManageUsers) {
41
- rbaNotificationElement = (_jsx(C4ActionableNotification, { kind: 'info', actionButtonLabel: rbaNotification.texts.actionLabel, onActionButtonClick: rbaNotification.onActionButtonClick, title: rbaNotification.texts.title, subtitle: rbaNotification.texts.subtitle, lowContrast: true }));
42
+ rbaNotificationElement = (_jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', actionButtonLabel: rbaNotification.texts.actionLabel, onActionButtonClick: rbaNotification.onActionButtonClick, title: rbaNotification.texts.title, subtitle: rbaNotification.texts.subtitle, lowContrast: true }));
42
43
  }
43
44
  else {
44
- rbaNotificationElement = (_jsx(InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: rbaNotification.texts.title, subtitle: '', lowContrast: true }));
45
+ rbaNotificationElement = (_jsx(C4InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: rbaNotification.texts.title, subtitle: '', lowContrast: true }));
45
46
  }
46
47
  }
47
48
  let secondRow = _jsx(_Fragment, {});
@@ -0,0 +1,8 @@
1
+ import type { ApplicationsProps, ClusterStatus } from './applications';
2
+ import type { ClusterDetailsProps } from './cluster-details';
3
+ import type { ClusterLoadProps } from './cluster-load';
4
+ export declare const getClusterLoadProps: () => ClusterLoadProps;
5
+ export declare const getApps: (status: ClusterStatus) => ApplicationsProps;
6
+ export declare const getDetails: (update?: "update-available" | "update-available-no-permissions" | "no-update-latest" | "updating" | "update-available-wait-needed", options?: {
7
+ cta?: boolean;
8
+ }) => ClusterDetailsProps;
@@ -0,0 +1,203 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ // "Created ~6 weeks ago" relative to real "now" (rather than a fixed past
7
+ // date, which reads as obviously stale in a docs screenshot) - matches this
8
+ // migration's dynamic-date convention (see stories/shared/billing-dates.ts).
9
+ // Clamped to no earlier than Jan 1 of the current year so the screenshot's
10
+ // "Created" date always shows the current year (in early January the raw
11
+ // 6-weeks-ago date would otherwise fall into the previous year). Formatted
12
+ // "D Month, YYYY" to match the original mock's style (e.g. "10 May, 2023").
13
+ const nowForCreated = new Date();
14
+ const createdDate = new Date(nowForCreated);
15
+ createdDate.setDate(createdDate.getDate() - 42);
16
+ const startOfYear = new Date(nowForCreated.getFullYear(), 0, 1);
17
+ if (createdDate < startOfYear) {
18
+ createdDate.setTime(startOfYear.getTime());
19
+ }
20
+ const createdDisplay = `${createdDate.getDate()} ${createdDate.toLocaleDateString('en-US', { month: 'long' })}, ${createdDate.getFullYear()}`;
21
+ // Deterministic percent (0-100) load point: `avg` follows a sine wave over
22
+ // `index`/`period`, with `min`/`max` symmetric around it so min <= avg <= max
23
+ // always holds (unlike independently-randomized values, which could produce
24
+ // min > max).
25
+ const loadPoint = (ts, index, period) => {
26
+ const avg = 50 + 30 * Math.sin((index / period) * Math.PI * 2);
27
+ const spread = 10 + 5 * Math.cos((index / period) * Math.PI * 2);
28
+ return {
29
+ ts,
30
+ avg: Math.round(avg),
31
+ min: Math.round(Math.max(0, avg - spread)),
32
+ max: Math.round(Math.min(100, avg + spread)),
33
+ };
34
+ };
35
+ export const getClusterLoadProps = () => {
36
+ const now = Date.now();
37
+ const clusterLoadProps = {
38
+ texts: {
39
+ title: 'Cluster Load',
40
+ last: 'Last',
41
+ day30: '30 days',
42
+ day7: '7 days',
43
+ last24h: 'Last 24h',
44
+ current: 'Current',
45
+ clusterLoadTooltip: "Cluster capacity load: Indicates how much of the cluster's resources are in use.",
46
+ docs: 'Learn more about cluster capacity',
47
+ },
48
+ docs: {
49
+ url: 'https://docs.camunda.io/',
50
+ onClick: () => {
51
+ console.log('docs clicked');
52
+ },
53
+ },
54
+ values: {
55
+ latest: {
56
+ ts: now,
57
+ min: 25,
58
+ max: 25,
59
+ avg: 25,
60
+ },
61
+ last24h: Array.from({ length: 24 }, (_, i) => loadPoint(now - i * 60000 * 60, i, 24)),
62
+ perDay: Array.from({ length: 30 }, (_, i) => loadPoint(now - i * 1000 * 60 * 60 * 24, i, 30)),
63
+ },
64
+ reload: () => {
65
+ console.log('Reload triggered');
66
+ },
67
+ suspended: false,
68
+ };
69
+ return clusterLoadProps;
70
+ };
71
+ export const getApps = (status) => {
72
+ return {
73
+ title: 'Applications',
74
+ applications: {
75
+ zeebe: {
76
+ name: 'Zeebe',
77
+ description: 'The engine that powers Camunda',
78
+ version: '8.7.0',
79
+ status,
80
+ },
81
+ tasklist: {
82
+ name: 'Tasklist',
83
+ description: 'Assign & execute user tasks',
84
+ version: '8.7.0',
85
+ status,
86
+ link: {
87
+ url: 'https://camunda.io',
88
+ label: 'Launch',
89
+ visible: true,
90
+ },
91
+ },
92
+ operate: {
93
+ name: 'Operate',
94
+ description: 'Monitor and fix running processes',
95
+ version: '8.7.0',
96
+ status,
97
+ link: {
98
+ url: 'https://camunda.io',
99
+ label: 'Launch',
100
+ visible: true,
101
+ },
102
+ },
103
+ optimize: {
104
+ name: 'Optimize',
105
+ description: 'Get insights to improve your processes',
106
+ version: '8.7.0',
107
+ status,
108
+ link: {
109
+ url: 'https://camunda.io',
110
+ label: 'Launch',
111
+ visible: true,
112
+ },
113
+ },
114
+ },
115
+ };
116
+ };
117
+ export const getDetails = (update = 'no-update-latest', options) => {
118
+ const details = {
119
+ title: 'Cluster details',
120
+ provider: { label: 'asd' },
121
+ cta: options?.cta === true
122
+ ? {
123
+ title: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
124
+ text: "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
125
+ actionLabel: 'Start using Lorem Ipsum!!',
126
+ action: () => { },
127
+ }
128
+ : undefined,
129
+ name: {
130
+ label: 'Name',
131
+ value: 'test-cluster',
132
+ },
133
+ description: {
134
+ label: 'Description',
135
+ value: 'This is a test cluster for development purposes',
136
+ placeholder: 'Enter a description for your cluster',
137
+ noDescription: 'No description provided',
138
+ saveLabel: 'Save',
139
+ cancelLabel: 'Cancel',
140
+ editLabel: 'Edit',
141
+ errorMaxLength: 'Description must be 150 characters or less',
142
+ updateAction: async (newDescription) => {
143
+ console.log(`Description updated to: ${newDescription}`);
144
+ },
145
+ },
146
+ generation: {
147
+ label: 'Generation',
148
+ value: 'Zeebe over 9000',
149
+ update: {
150
+ updateType: update,
151
+ updateStates: {
152
+ updateAvailable: {
153
+ action: () => {
154
+ console.log(`Update triggered`);
155
+ },
156
+ label: 'Update cluster',
157
+ },
158
+ updateAvailableNoPermission: {
159
+ label: 'Update cluster',
160
+ description: 'Contact the organization admin to update.',
161
+ },
162
+ updateAvailableWaitNeeded: {
163
+ label: 'Update cluster',
164
+ description: 'To ensure cluster stabilization, your cluster can only be upgraded in 12 hours, at 2024-12-25 18:00. Learn more',
165
+ },
166
+ noUpdateLatest: {
167
+ label: 'No updates available - running on latest available version',
168
+ },
169
+ },
170
+ },
171
+ },
172
+ type: {
173
+ label: 'Type',
174
+ value: 'Production',
175
+ },
176
+ region: {
177
+ label: 'Region',
178
+ value: 'Europe',
179
+ },
180
+ regionId: {
181
+ label: 'Region Id',
182
+ value: 'eur-1',
183
+ },
184
+ id: {
185
+ label: 'ID',
186
+ value: 'c4a16eb2-f194-47b0-8f60-bb89183065e5',
187
+ },
188
+ created: {
189
+ label: 'Created',
190
+ value: createdDisplay,
191
+ },
192
+ tags: {
193
+ label: 'Tags',
194
+ addTagLabel: 'add label',
195
+ value: ['prod'],
196
+ updateAction: () => { },
197
+ updateTagLabel: 'edit label',
198
+ updateDisabled: false,
199
+ updateVisible: true,
200
+ },
201
+ };
202
+ return details;
203
+ };
@@ -2,6 +2,8 @@ import type React from 'react';
2
2
  import { type JSX } from 'react';
3
3
  export interface ClusterDetailsProps {
4
4
  title: string;
5
+ copyValueLabel?: string;
6
+ copyValueCopiedLabel?: string;
5
7
  name: {
6
8
  label: string;
7
9
  value: string;