@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
@@ -1,18 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { StructuredListBody, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
8
2
  import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
3
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
9
4
  import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
10
5
  export const UsageAlerts = ({ title, description, loading, action, data, }) => {
11
6
  const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, action: action, loading: loading, children: _jsx(UsageAlertsStructuredList, { ...data }) }));
12
7
  return component;
13
8
  };
14
9
  const UsageAlertsStructuredList = ({ heading, rows, }) => {
15
- const listContent = (_jsxs(StructuredListRow, { head: true, children: [_jsx(StructuredListCell, { head: true, children: heading.metric }), _jsx(StructuredListCell, { head: true, children: heading.threshold }), _jsx(StructuredListCell, { head: true, children: heading.status }), _jsx(StructuredListCell, { head: true })] }));
16
- const component = (_jsxs(StructuredListWrapper, { isCondensed: true, isFlush: true, children: [_jsx(StructuredListHead, { children: listContent }), _jsx(StructuredListBody, { children: rows.map((row) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, children: row.metric }), _jsx(StructuredListCell, { noWrap: true, children: row.threshold }), _jsx(StructuredListCell, { noWrap: true, children: row.status }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() }) })] }, row.key))) })] }));
10
+ const listContent = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: heading.metric }), _jsx(C4StructuredListCell, { head: true, children: heading.threshold }), _jsx(C4StructuredListCell, { head: true, children: heading.status }), _jsx(C4StructuredListCell, { head: true })] }));
11
+ const component = (_jsxs(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: [_jsx(C4StructuredListHead, { children: listContent }), _jsx(C4StructuredListBody, { children: rows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: row.metric }), _jsx(C4StructuredListCell, { noWrap: true, children: row.threshold }), _jsx(C4StructuredListCell, { noWrap: true, children: row.status }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() }) })] }, row.key))) })] }));
17
12
  return component;
18
13
  };
@@ -4,6 +4,8 @@ export declare enum CHART_COLORS {
4
4
  RED = "#FF832B",// Orange color (original "red")
5
5
  GREEN = "#24a148"
6
6
  }
7
+ /** ds-mode equivalents of `CHART_COLORS`, shared with `cluster-load.tsx`. */
8
+ export declare const CHART_COLORS_DS: Record<CHART_COLORS, string>;
7
9
  export interface ValueMetricProps {
8
10
  title: string;
9
11
  loading: boolean;
@@ -5,17 +5,28 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { MeterChart } from '@carbon/charts-react';
8
- import { DefinitionTooltip, Stack } from '@carbon/react';
8
+ import { DefinitionTooltip } from '@carbon/react';
9
9
  import { WarningAlt } from '@carbon/react/icons/index.esm.js';
10
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
11
+ import { Stack, Tooltip } from '../../../ui/index.js';
10
12
  import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
11
13
  import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
14
+ import { DsMeterChart } from '../../shared-charts/ds-meter-chart.js';
15
+ import { DS_STATUS_COLORS } from '../../shared-charts/recharts-tokens.js';
12
16
  export var CHART_COLORS;
13
17
  (function (CHART_COLORS) {
14
18
  CHART_COLORS["BLUE"] = "#0F62FE";
15
19
  CHART_COLORS["RED"] = "#FF832B";
16
20
  CHART_COLORS["GREEN"] = "#24a148";
17
21
  })(CHART_COLORS || (CHART_COLORS = {}));
22
+ /** ds-mode equivalents of `CHART_COLORS`, shared with `cluster-load.tsx`. */
23
+ export const CHART_COLORS_DS = {
24
+ [CHART_COLORS.BLUE]: DS_STATUS_COLORS.info,
25
+ [CHART_COLORS.RED]: DS_STATUS_COLORS.danger,
26
+ [CHART_COLORS.GREEN]: DS_STATUS_COLORS.success,
27
+ };
18
28
  export const ValueMetric = ({ title, metric, loading, isEnterpriseOrg = false, }) => {
29
+ const designSystem = useC4DesignSystem();
19
30
  let chartProps;
20
31
  let simpleProps;
21
32
  switch (metric.kind) {
@@ -45,7 +56,7 @@ export const ValueMetric = ({ title, metric, loading, isEnterpriseOrg = false, }
45
56
  gap: '0.5rem',
46
57
  }, children: [_jsx(WarningAlt, { style: {
47
58
  color: CHART_COLORS.RED,
48
- } }), _jsxs("p", { children: [_jsx(DefinitionTooltip, { openOnHover: true, definition: metric.overagesDescription, children: _jsx("p", { children: "Overages" }) }), ' ', "applied"] })] }))] }) }));
59
+ } }), _jsxs("p", { children: [designSystem === 'ds' ? (_jsx(Tooltip, { label: metric.overagesDescription, children: _jsx("span", { style: { textDecoration: 'underline dotted' }, children: "Overages" }) })) : (_jsx(DefinitionTooltip, { openOnHover: true, definition: metric.overagesDescription, children: _jsx("p", { children: "Overages" }) })), ' ', "applied"] })] }))] }) }));
49
60
  return component;
50
61
  };
51
62
  const SimpleText = ({ title, subTitle }) => {
@@ -57,6 +68,7 @@ const SimpleText = ({ title, subTitle }) => {
57
68
  return component;
58
69
  };
59
70
  const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPostfix, label, isEnterpriseOrg = false, }) => {
71
+ const designSystem = useC4DesignSystem();
60
72
  // Determine color based on usage and organization type
61
73
  let barColor = CHART_COLORS.BLUE;
62
74
  if (current > max) {
@@ -103,7 +115,7 @@ const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPo
103
115
  display: 'grid',
104
116
  gridTemplateColumns: '1fr auto',
105
117
  width: '100%',
106
- }, children: [_jsx("p", { style: { fontSize: '18px' }, children: data.current }), _jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: data.max })] }), max > 0 && (_jsx(MeterChart, { data: [
118
+ }, children: [_jsx("p", { style: { fontSize: '18px' }, children: data.current }), _jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: data.max })] }), max > 0 && designSystem === 'ds' && (_jsx(DsMeterChart, { value: current, max: max, color: CHART_COLORS_DS[barColor] })), max > 0 && designSystem !== 'ds' && (_jsx(MeterChart, { data: [
107
119
  {
108
120
  group,
109
121
  value: current,
@@ -7,9 +7,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { render, screen } from '@testing-library/react';
8
8
  import { vi } from 'vitest';
9
9
  import { ValueMetric } from './value-metric.js';
10
+ const { mockUseC4DesignSystem } = vi.hoisted(() => ({
11
+ mockUseC4DesignSystem: vi.fn(() => 'carbon'),
12
+ }));
10
13
  vi.mock('@carbon/charts-react', () => ({
11
14
  MeterChart: ({ data }) => (_jsx("div", { "data-testid": 'meter-chart', "data-value": data[0]?.value })),
12
15
  }));
16
+ vi.mock('../../../runtime/c4-console-runtime-context', () => ({
17
+ useC4DesignSystem: mockUseC4DesignSystem,
18
+ }));
19
+ vi.mock('../../shared-charts/ds-meter-chart', () => ({
20
+ DsMeterChart: () => _jsx("div", { "data-testid": 'ds-meter-chart' }),
21
+ }));
13
22
  function buildChartProps(current, max = 500000) {
14
23
  return {
15
24
  title: 'Process instances',
@@ -24,6 +33,9 @@ function buildChartProps(current, max = 500000) {
24
33
  };
25
34
  }
26
35
  describe('ValueMetric', () => {
36
+ beforeEach(() => {
37
+ mockUseC4DesignSystem.mockReturnValue('carbon');
38
+ });
27
39
  describe('MeterChart (progress bar)', () => {
28
40
  it('renders the progress bar when included (max) > 0', () => {
29
41
  render(_jsx(ValueMetric, { ...buildChartProps(0, 500000) }));
@@ -45,5 +57,11 @@ describe('ValueMetric', () => {
45
57
  render(_jsx(ValueMetric, { ...buildChartProps(0, 0) }));
46
58
  expect(screen.getAllByText('0')).toHaveLength(2);
47
59
  });
60
+ it('renders ds meter chart in ds mode', () => {
61
+ mockUseC4DesignSystem.mockReturnValue('ds');
62
+ render(_jsx(ValueMetric, { ...buildChartProps(400000, 500000) }));
63
+ expect(screen.getByTestId('ds-meter-chart')).toBeInTheDocument();
64
+ expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
65
+ });
48
66
  });
49
67
  });
@@ -1,9 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Stack } from '@carbon/react';
2
+ import { Stack } from '../../ui/index.js';
8
3
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
9
4
  export const C4BottomLinks = ({ links }) => (_jsx(Stack, { orientation: 'horizontal', gap: 6, children: links.map((link) => (_jsx(C4ExternalLink, { href: link.href, id: link.id, label: link.label, onClick: link.onClick, target: link.target }, link.id))) }));
@@ -1,10 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton, CodeSnippet, Link, OverflowMenu, OverflowMenuItem, Stack, Tag, } from '@carbon/react';
2
+ import { BreadcrumbSkeleton, CodeSnippet, Link, OverflowMenu, OverflowMenuItem, Stack, Tag, } from '../../ui/index.js';
3
+ import { useBreadcrumbFamily } from '../../ui/families.js';
8
4
  const breadCrumbWrapperStyles = {
9
5
  minHeight: '40px',
10
6
  display: 'grid',
@@ -19,6 +15,7 @@ const headerRowStyles = {
19
15
  gap: '1rem',
20
16
  };
21
17
  export const C4Breadcrumb = ({ loading, noTrailingSlash, elements, title, menu, tag, indicator, codeSnippet, }) => {
18
+ const { Breadcrumb, BreadcrumbItem } = useBreadcrumbFamily();
22
19
  let breadcrumb = null;
23
20
  if (loading) {
24
21
  breadcrumb = _jsx(BreadcrumbSkeleton, {});
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3Page } from '@camunda/camunda-composite-components';
8
- import { Stack } from '@carbon/react';
8
+ import { Stack } from '../../ui/index.js';
9
9
  import { C4AlluvialChart } from './elements/alluvial-chart.js';
10
10
  import { C4BarChart } from './elements/bar-chart.js';
11
11
  import { C4LineChart } from './elements/line-chart.js';
@@ -5,8 +5,55 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { AlluvialChart } from '@carbon/charts-react';
8
- import { Button, MultiSelect, Stack, Tile } from '@carbon/react';
9
8
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
9
+ import { ResponsiveContainer, Sankey, Tooltip } from 'recharts';
10
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
11
+ import { Button, MultiSelect, Stack, Tile } from '../../../ui/index.js';
12
+ import { DS_CHART_TOOLTIP_PROPS, getDsSeriesColor, } from '../../shared-charts/recharts-tokens.js';
13
+ /** Maps each node to a categorical color, keyed by its `category` (falls back to node order). */
14
+ function buildNodeColorByName(nodes) {
15
+ const categories = [];
16
+ for (const node of nodes) {
17
+ if (node.category && !categories.includes(node.category)) {
18
+ categories.push(node.category);
19
+ }
20
+ }
21
+ const colorByName = new Map();
22
+ nodes.forEach((node, index) => {
23
+ const colorIndex = node.category ? categories.indexOf(node.category) : index;
24
+ colorByName.set(node.name, getDsSeriesColor(colorIndex));
25
+ });
26
+ return colorByName;
27
+ }
28
+ function buildSankeyData(nodes, dataPoints) {
29
+ const indexByName = new Map(nodes.map((node, index) => [node.name, index]));
30
+ const links = dataPoints.flatMap((point) => {
31
+ const source = indexByName.get(point.source);
32
+ const target = indexByName.get(point.target);
33
+ return source === undefined || target === undefined
34
+ ? []
35
+ : [{ source, target, value: point.value }];
36
+ });
37
+ return { nodes: nodes.map((node) => ({ name: node.name })), links };
38
+ }
39
+ function renderSankeyNode(colorByName) {
40
+ return function SankeyNodeShape(props) {
41
+ const { x, y, width, height, payload } = props;
42
+ const color = colorByName.get(payload.name) ?? getDsSeriesColor(0);
43
+ const isSink = payload.sourceLinks.length === 0;
44
+ return (_jsxs("g", { children: [_jsx("rect", { x: x, y: y, width: width, height: height, fill: color, rx: 2 }), _jsx("text", { x: isSink ? x - 6 : x + width + 6, y: y + height / 2, dy: '0.32em', fontSize: 11, textAnchor: isSink ? 'end' : 'start', fill: 'var(--neutral-foreground-strong)', children: payload.name })] }));
45
+ };
46
+ }
47
+ function renderSankeyLink(colorByName, gradient) {
48
+ return function SankeyLinkShape(props) {
49
+ const { sourceX, sourceY, sourceControlX, targetX, targetY, targetControlX, linkWidth, index, payload, } = props;
50
+ const sourceColor = colorByName.get(payload.source.name) ?? getDsSeriesColor(0);
51
+ const targetColor = colorByName.get(payload.target.name) ?? sourceColor;
52
+ const gradientId = `c4-alluvial-link-${index}`;
53
+ const d = `M${sourceX},${sourceY} C${sourceControlX},${sourceY} ${targetControlX},${targetY} ${targetX},${targetY}`;
54
+ return (_jsxs("g", { children: [gradient && (_jsx("defs", { children: _jsxs("linearGradient", { id: gradientId, x1: '0', x2: '1', y1: '0', y2: '0', children: [_jsx("stop", { offset: '0%', stopColor: sourceColor, stopOpacity: 0.55 }), _jsx("stop", { offset: '100%', stopColor: targetColor, stopOpacity: 0.55 })] }) })), _jsx("path", { d: d, fill: 'none', stroke: gradient ? `url(#${gradientId})` : sourceColor, strokeOpacity: gradient ? 1 : 0.4, strokeWidth: linkWidth })] }));
55
+ };
56
+ }
10
57
  export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradient, theme, }) => {
11
58
  // Compute target node totals
12
59
  const targetTotals = useMemo(() => {
@@ -49,6 +96,11 @@ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradie
49
96
  }, [dataPoints, nodes, selectedTargets, sortedTargets]);
50
97
  // Key forces full re-render when the node set size or selectedTargets change materially
51
98
  const chartKey = useMemo(() => `alluvial-${filteredNodes.length}-${filteredDataPoints.length}-${selectedTargets.join(',')}`, [filteredNodes.length, filteredDataPoints.length, selectedTargets]);
99
+ const designSystem = useC4DesignSystem();
100
+ const nodeColorByName = useMemo(() => buildNodeColorByName(filteredNodes), [filteredNodes]);
101
+ const sankeyData = useMemo(() => buildSankeyData(filteredNodes, filteredDataPoints), [filteredNodes, filteredDataPoints]);
102
+ const sankeyNode = useMemo(() => renderSankeyNode(nodeColorByName), [nodeColorByName]);
103
+ const sankeyLink = useMemo(() => renderSankeyLink(nodeColorByName, gradient), [nodeColorByName, gradient]);
52
104
  const options = {
53
105
  title,
54
106
  alluvial: { nodes: filteredNodes, gradient },
@@ -83,5 +135,10 @@ export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradie
83
135
  }
84
136
  }, [sortedTargets, selectedTargets]);
85
137
  // Removed debug logging
86
- return (_jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 2, style: { alignItems: 'flex-end' }, children: [_jsx(MultiSelect, { id: `${title}-targets-filter`, titleText: 'Targets', label: 'Targets', items: multiSelectItems, selectedItems: multiSelectItems.filter((i) => selectedTargets.includes(i.id)), itemToString: (item) => (item ? item.text : ''), onChange: onChange, selectionFeedback: 'top-after-reopen', helperText: 'Select targets' }), _jsx(Button, { kind: 'tertiary', size: 'sm', onClick: selectAll, children: "Select all" })] }), _jsx(AlluvialChart, { data: filteredDataPoints, options: options }, chartKey)] }) }));
138
+ return (_jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 2, style: { alignItems: 'flex-end' }, children: [_jsx(MultiSelect, { id: `${title}-targets-filter`, titleText: 'Targets', label: 'Targets', items: multiSelectItems, selectedItems: multiSelectItems.filter((i) => selectedTargets.includes(i.id)), itemToString: (item) => (item ? item.text : ''), onChange: onChange, selectionFeedback: 'top-after-reopen', helperText: 'Select targets' }), _jsx(Button, { kind: 'tertiary', size: 'sm', onClick: selectAll, children: "Select all" })] }), designSystem === 'ds' ? (_jsxs("div", { children: [title && (_jsx("div", { style: {
139
+ fontWeight: 600,
140
+ fontSize: 14,
141
+ marginBottom: 8,
142
+ color: 'var(--neutral-foreground-strong)',
143
+ }, children: title })), _jsx(ResponsiveContainer, { width: '100%', height: height, children: _jsx(Sankey, { data: sankeyData, node: sankeyNode, link: sankeyLink, nodePadding: 20, margin: { top: 8, right: 96, left: 8, bottom: 8 }, children: _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS }) }, chartKey) })] })) : (_jsx(AlluvialChart, { data: filteredDataPoints, options: options }, chartKey))] }) }));
87
144
  };
@@ -1,12 +1,51 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
3
  * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
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 { BarChart } from '@camunda/design-system';
7
8
  import { GroupedBarChart, SimpleBarChart, StackedBarChart, } from '@carbon/charts-react';
8
- import { Stack, Tile } from '@carbon/react';
9
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
10
+ import { Stack, Tile } from '../../../ui/index.js';
11
+ import { getDsSeriesColor } from '../../shared-charts/recharts-tokens.js';
12
+ /** Pivots flat {group, key, value} rows into one row per key, keyed by group. */
13
+ function pivotByKey(dataPoints) {
14
+ const groupSet = new Set();
15
+ const rowsByKey = new Map();
16
+ for (const point of dataPoints) {
17
+ groupSet.add(point.group);
18
+ const row = rowsByKey.get(point.key) ?? { key: point.key };
19
+ row[point.group] = point.value;
20
+ rowsByKey.set(point.key, row);
21
+ }
22
+ // Sort groups so the group→colour mapping stays stable regardless of the
23
+ // order the points arrive in.
24
+ return {
25
+ rows: Array.from(rowsByKey.values()),
26
+ groups: Array.from(groupSet).sort(),
27
+ };
28
+ }
9
29
  export const C4BarChart = ({ title, dataPoints, axes, stacked = false, mode, height = 400, theme, }) => {
30
+ const designSystem = useC4DesignSystem();
31
+ const effectiveMode = mode
32
+ ? mode
33
+ : stacked
34
+ ? 'stacked'
35
+ : 'grouped';
36
+ if (designSystem === 'ds') {
37
+ const { rows, groups } = pivotByKey(dataPoints);
38
+ const config = Object.fromEntries(groups.map((group, index) => [
39
+ group,
40
+ { label: group, color: getDsSeriesColor(index) },
41
+ ]));
42
+ return (_jsx(Tile, { children: _jsx(Stack, { children: _jsxs("div", { children: [title && (_jsx("div", { style: {
43
+ fontWeight: 600,
44
+ fontSize: 14,
45
+ marginBottom: 8,
46
+ color: 'var(--neutral-foreground-strong)',
47
+ }, children: title })), _jsx("div", { style: { height }, children: _jsx(BarChart, { className: 'h-full w-full', data: rows, categoryKey: 'key', config: config, stacked: effectiveMode === 'stacked' }) })] }) }) }));
48
+ }
10
49
  const data = dataPoints;
11
50
  const options = {
12
51
  title,
@@ -25,11 +64,6 @@ export const C4BarChart = ({ title, dataPoints, axes, stacked = false, mode, hei
25
64
  height: `${height}px`,
26
65
  theme: theme,
27
66
  };
28
- const effectiveMode = mode
29
- ? mode
30
- : stacked
31
- ? 'stacked'
32
- : 'grouped';
33
67
  if (effectiveMode === 'stacked') {
34
68
  options.axes.left.stacked = true;
35
69
  }
@@ -5,8 +5,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { LineChart } from '@carbon/charts-react';
8
- import { Stack, Tile } from '@carbon/react';
8
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
9
+ import { Stack, Tile } from '../../../ui/index.js';
10
+ import { DsLineChart } from '../../shared-charts/ds-line-chart.js';
9
11
  export const C4LineChart = ({ title, dataPoints, axes, toolbar = { enabled: true }, zoomBar = { enabled: true }, thresholds, height = 400, theme, }) => {
12
+ const designSystem = useC4DesignSystem();
13
+ if (designSystem === 'ds') {
14
+ return (_jsx(Tile, { children: _jsx(Stack, { children: _jsx(DsLineChart, { title: title, dataPoints: dataPoints, axes: axes, thresholds: thresholds, height: height, zoomBar: zoomBar }) }) }));
15
+ }
10
16
  const data = dataPoints;
11
17
  const options = {
12
18
  title,
@@ -1,13 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { CodeSnippet, Stack } from '@carbon/react';
9
2
  import { Launch, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
10
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
+ import { CodeSnippet, Stack } from '../../ui/index.js';
5
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
6
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
11
7
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
12
8
  export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls, permissions, onActivateEndpoint, onCreateClient, onRotatePassword, onDeleteClient, onRefresh, onOpenDocs, }) => {
13
9
  const tableData = clients.map((client, index) => ({
@@ -99,7 +95,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
99
95
  },
100
96
  ];
101
97
  if (hasError) {
102
- return (_jsx(C3EmptyState, { icon: {
98
+ return (_jsx(C4EmptyState, { card: true, icon: {
103
99
  path: C4_ASSET_URLS.errorIcon,
104
100
  altText: 'errorIcon',
105
101
  }, heading: text.errorTitle, description: text.errorDescription, button: {
@@ -110,7 +106,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
110
106
  } }));
111
107
  }
112
108
  if (!isLoading && clients.length === 0) {
113
- return (_jsx(C3EmptyState, { icon: {
109
+ return (_jsx(C4EmptyState, { card: true, icon: {
114
110
  path: C4_ASSET_URLS.monitoringIcon,
115
111
  altText: 'monitoringIcon',
116
112
  }, heading: text.emptyTitle, description: text.emptyDescription, button: {
@@ -130,5 +126,5 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
130
126
  gap: '2rem',
131
127
  maxWidth: 'calc(100vw - 64px)',
132
128
  width: '100%',
133
- }, children: _jsx(C3DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: text.subtitle, queryPrefix: 'cluster-byom-clients' }) }), _jsx(C4LinkButton, { label: text.learnMoreLabel, onClick: onOpenDocs, icon: _jsx(Launch, {}) })] }));
129
+ }, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: text.subtitle, queryPrefix: 'cluster-byom-clients' }) }), _jsx(C4LinkButton, { label: text.learnMoreLabel, onClick: onOpenDocs, icon: _jsx(Launch, {}) })] }));
134
130
  };
@@ -4,11 +4,16 @@ 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 { Button, CodeSnippet, InlineLoading, InlineNotification, Layer, Modal, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tab, TabList, TabPanel, TabPanels, Tabs, } from '@carbon/react';
7
+ import { InlineLoading, Layer } from '@carbon/react';
8
8
  import { Download, Save } from '@carbon/react/icons/index.esm.js';
9
9
  import { useState } from 'react';
10
+ import { Button, CodeSnippet, Modal, Stack } from '../../ui/index.js';
11
+ import { useTabsFamily } from '../../ui/tabs.js';
12
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
13
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
10
14
  export const C4ClusterClientCredentialsModal = (props) => {
11
- return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: 'md', children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { children: props.description }), _jsx(InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
15
+ const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
16
+ return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: 'md', children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { children: props.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
12
17
  const { key, ...variantProps } = variant;
13
18
  return (_jsxs(TabPanel, { children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsVariantItems, { ...variantProps }))] }, key));
14
19
  }) })] })] }) }));
@@ -47,7 +52,7 @@ export const C4ClusterClientCredentialsVariantCodeSnippet = (props) => {
47
52
  };
48
53
  export const C4ClusterClientCredentialsVariantItems = (props) => {
49
54
  const variant = props;
50
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(StructuredListCell, { children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
55
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
51
56
  zIndex: `${(variant.items.length - index) * 100}`,
52
57
  }, onClick: () => {
53
58
  if (item.onClick) {
@@ -4,11 +4,16 @@ 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 { Button, CodeSnippet, InlineLoading, InlineNotification, Layer, Modal, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tab, TabList, TabPanel, TabPanels, Tabs, } from '@carbon/react';
7
+ import { InlineLoading, Layer } from '@carbon/react';
8
8
  import { Download, Save } from '@carbon/react/icons/index.esm.js';
9
9
  import { useState } from 'react';
10
+ import { Button, CodeSnippet, Modal, Stack } from '../../ui/index.js';
11
+ import { useTabsFamily } from '../../ui/tabs.js';
10
12
  import { C4Divider } from '../c4-divider/c4-divider.js';
13
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
14
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
11
15
  export const C4ClusterClientCredentialsIdentityModal = (props) => {
16
+ const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
12
17
  return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, selectorPrimaryFocus: '.cds--btn--tertiary', size: 'md', children: _jsxs(Stack, { gap: 4, children: [_jsx("strong", { children: props.step1Header }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', contained: true, children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
13
18
  const { key, ...variantProps } = variant;
14
19
  return (_jsxs(TabPanel, { style: { marginTop: '-12px', padding: '1rem' }, children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsIdentitysVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsIdentitysVariantItems, { ...variantProps }))] }, key));
@@ -41,7 +46,7 @@ const C4ClusterClientCredentialsIdentitysVariantAdditionalAction = (props) => {
41
46
  };
42
47
  export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) => {
43
48
  const variant = props;
44
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(Layer, { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', maxCollapsedNumberOfRows: 4, maxExpandedNumberOfRows: 4, showMoreText: '', onClick: () => {
49
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(Layer, { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', maxCollapsedNumberOfRows: 4, maxExpandedNumberOfRows: 4, showMoreText: '', onClick: () => {
45
50
  if (variant.onClick) {
46
51
  variant.onClick();
47
52
  }
@@ -52,7 +57,7 @@ export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) =>
52
57
  };
53
58
  export const C4ClusterClientCredentialsIdentitysVariantItems = (props) => {
54
59
  const variant = props;
55
- const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(StructuredListCell, { style: { paddingRight: '0px' }, children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
60
+ const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { style: { paddingRight: '0px' }, children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
56
61
  zIndex: `${(variant.items.length - index) * 100}`,
57
62
  maxInlineSize: '100%',
58
63
  }, onClick: () => {
@@ -4,13 +4,14 @@ 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 { C3EmptyState } from '@camunda/camunda-composite-components';
8
- import { Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, } from '@carbon/react';
9
7
  import { Renew } from '@carbon/react/icons/index.esm.js';
10
8
  import { C4_ASSET_URLS } from '../../assetUrls.js';
9
+ import { Stack } from '../../ui/index.js';
10
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
11
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
11
12
  export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError, text, onRefresh, }) => {
12
13
  if (hasError) {
13
- return (_jsx(C3EmptyState, { icon: {
14
+ return (_jsx(C4EmptyState, { card: true, icon: {
14
15
  path: C4_ASSET_URLS.errorIcon,
15
16
  altText: 'errorIcon',
16
17
  }, heading: text.errorTitle, description: text.errorDescription, button: {
@@ -24,9 +25,9 @@ export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError,
24
25
  if (group.items.length === 0) {
25
26
  return null;
26
27
  }
27
- return (_jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: group.heading }), isLoading ? (_jsx(StructuredListSkeleton, {})) : (_jsx(StructuredListWrapper, { isCondensed: true, children: _jsx(StructuredListBody, { children: group.items.map((item) => {
28
+ return (_jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: group.heading }), isLoading ? (_jsx(C4StructuredListSkeleton, {})) : (_jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsx(C4StructuredListBody, { children: group.items.map((item) => {
28
29
  const formattedDateTime = formatDateTime(new Date(item.timestamp));
29
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '250px' }, children: _jsx("strong", { children: formattedDateTime }) }), _jsxs(StructuredListCell, { children: [item.userName, ": ", item.audit] })] }, `audit-row-${item.entityId}-${item.timestamp}`));
30
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '250px' }, children: _jsx("strong", { children: formattedDateTime }) }), _jsxs(C4StructuredListCell, { children: [item.userName, ": ", item.audit] })] }, `audit-row-${item.entityId}-${item.timestamp}`));
30
31
  }) }) }))] }, `activity-group-${groupIndex}`));
31
32
  }) }));
32
33
  };
@@ -1,13 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { DataTableSkeleton, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
9
2
  import { Edit } from '@carbon/react/icons/index.esm.js';
10
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
+ import { Stack } from '../../ui/index.js';
5
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
6
+ import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
7
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
8
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
11
9
  export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, onCreateAlert, onUpdateAlert, onDeleteAlert, onNoAlertsDocsClick, }) => {
12
10
  const headerData = [
13
11
  {
@@ -33,14 +31,14 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
33
31
  },
34
32
  ];
35
33
  const ExpandedRowContent = (alert) => {
36
- return (_jsx(StructuredListWrapper, { isCondensed: true, style: {
34
+ return (_jsx(C4StructuredListWrapper, { isCondensed: true, style: {
37
35
  marginLeft: '-56px',
38
- }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: alert.reportType === 'Webhook'
36
+ }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: alert.reportType === 'Webhook'
39
37
  ? text.targetWebhookLabel
40
- : text.targetEmailLabel }), _jsx(StructuredListCell, { children: alert.userIdOrWebhook })] }), alert.reportType === 'Webhook' && (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: {
38
+ : text.targetEmailLabel }), _jsx(C4StructuredListCell, { children: alert.userIdOrWebhook })] }), alert.reportType === 'Webhook' && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: {
41
39
  minHeight: '50px',
42
40
  width: '250px',
43
- }, children: text.hmacEnabledLabel }), _jsx(StructuredListCell, { children: alert.hmacEnabled ? 'Yes' : 'No' })] })), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedLabel }), _jsx(StructuredListCell, { children: alert.updatedAt ? alert.updatedAt : _jsx(_Fragment, {}) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedByLabel }), _jsx(StructuredListCell, { children: alert.updatedBy })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: { minHeight: '50px' }, children: text.lastTimeTriggeredLabel }), _jsx(StructuredListCell, { children: alert.lastTimeTriggered ? alert.lastTimeTriggered : '-' })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.numberOfTimesTriggeredLabel }), _jsx(StructuredListCell, { children: alert.triggerCount })] })] }) }));
41
+ }, children: text.hmacEnabledLabel }), _jsx(C4StructuredListCell, { children: alert.hmacEnabled ? 'Yes' : 'No' })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedLabel }), _jsx(C4StructuredListCell, { children: alert.updatedAt ? alert.updatedAt : _jsx(_Fragment, {}) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedByLabel }), _jsx(C4StructuredListCell, { children: alert.updatedBy })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px' }, children: text.lastTimeTriggeredLabel }), _jsx(C4StructuredListCell, { children: alert.lastTimeTriggered ? alert.lastTimeTriggered : '-' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.numberOfTimesTriggeredLabel }), _jsx(C4StructuredListCell, { children: alert.triggerCount })] })] }) }));
44
42
  };
45
43
  const toolbar = [
46
44
  {
@@ -87,10 +85,10 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
87
85
  },
88
86
  ];
89
87
  if (isLoading) {
90
- return _jsx(DataTableSkeleton, { showToolbar: false, showHeader: false });
88
+ return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
91
89
  }
92
90
  if (alerts.length === 0) {
93
- return (_jsx(C3EmptyState, { icon: {
91
+ return (_jsx(C4EmptyState, { card: true, icon: {
94
92
  path: C4_ASSET_URLS.alertsIcon,
95
93
  altText: 'alertsIcon',
96
94
  }, heading: text.noAlertsTitle, description: text.noAlertsDescription, button: permissions.canCreate
@@ -112,7 +110,7 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
112
110
  gap: '2rem',
113
111
  maxWidth: 'calc(100vw - 64px)',
114
112
  width: '100%',
115
- }, children: [_jsx(C3DataTable, { headers: headerData, data: alerts.map((alert) => {
113
+ }, children: [_jsx(C4DataTable, { headers: headerData, data: alerts.map((alert) => {
116
114
  return {
117
115
  id: alert.id,
118
116
  deliveryMethod: alert.deliveryMethod,
@@ -0,0 +1,5 @@
1
+ import type { Alert, C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types';
2
+ export declare const mockText: C4ClusterDetailsAlertsProps['text'];
3
+ export declare const mockPermissions: C4ClusterDetailsAlertsProps['permissions'];
4
+ export declare const mockAlerts: Alert[];
5
+ export declare const withAlertsProps: C4ClusterDetailsAlertsProps;