@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,143 @@
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
+ // Backup timestamps are computed relative to real "now" (rather than fixed
7
+ // 2024 dates, which read as obviously stale in a docs screenshot that renders
8
+ // this list) - matches this migration's dynamic-date convention (see
9
+ // stories/shared/billing-dates.ts).
10
+ const HOUR = 60 * 60 * 1000;
11
+ const backupsNow = Date.now();
12
+ const backupAgo = (offsetMs) => new Date(backupsNow - offsetMs);
13
+ export const defaultText = {
14
+ title: 'Backups',
15
+ teaserHeading: 'Upgrade your plan to enable backups',
16
+ teaserDescription: 'Create manual and scheduled backups to reduce downtime and disruption to your operations. With backups, you can restore instances up to 30 days old, letting you recover lost data and reverse errors.',
17
+ teaserAdditionalDescription: ' Additional information about backups.',
18
+ teaserButton: 'Request a Free Trial Extension',
19
+ teaserLink: 'Learn more',
20
+ createButton: 'Create backup',
21
+ searchLabel: 'Search',
22
+ headerName: 'Name',
23
+ headerStatus: 'Status',
24
+ headerType: 'Type',
25
+ headerStarted: 'Started at',
26
+ headerCompleted: 'Completed at',
27
+ deleteAction: 'Delete',
28
+ expansionVersionLabel: 'Version',
29
+ restoreAction: 'Restore',
30
+ restoreInProgressTitle: 'Restoring "{backupName}"',
31
+ restoreInProgressText: "You can't start another backup or restore while this is in progress.",
32
+ restoreErrorTitle: 'Restore failed',
33
+ restoreErrorMessage: 'Restore of "{backupName}" did not complete. Your cluster is unchanged. Contact support if the issue persists.',
34
+ errorTitle: 'Failed to load backups',
35
+ errorDescription: 'We could not load your backups. Please try again by refreshing the page.',
36
+ errorButton: 'Refresh',
37
+ emptyTitle: 'No backups available yet',
38
+ emptyDescription: 'Your backups will appear here when the backup starts. If you want to make a backup now, you can create a manual backup.',
39
+ noBackupsTitle: 'No backups created yet',
40
+ noBackupsDescription: 'Create manual and scheduled backups to reduce downtime and disruption to your operations.',
41
+ backupsUnavailableTitle: 'Backups temporarily unavailable',
42
+ backupsUnavailableText: 'You can only create one backup per hour. Please wait before creating another backup.',
43
+ disabledNotificationTitle: 'Backups are not available for this cluster',
44
+ disabledNotificationText: 'Backups require Zeebe version 8.2.4 or higher. Please upgrade your cluster to use this feature.',
45
+ scheduleTileTitle: 'Backup schedule',
46
+ scheduleTileDescription: 'Schedule regular backups to ensure your data is protected.',
47
+ scheduleTileButton: 'Create schedule',
48
+ scheduleStatusEnabled: 'Enabled',
49
+ scheduleStatusDisabled: 'Disabled',
50
+ scheduleStartTime: 'Start time',
51
+ scheduleFrequency: 'Frequency',
52
+ scheduleTimezone: 'local time',
53
+ scheduleRemoveButton: 'Remove',
54
+ infoText: 'Learn more about backups in our documentation.',
55
+ giveFeedback: 'Give feedback',
56
+ zeebeLabel: 'Zeebe',
57
+ operateLabel: 'Operate',
58
+ tasklistLabel: 'Tasklist',
59
+ optimizeLabel: 'Optimize',
60
+ };
61
+ export const defaultUrls = {
62
+ docs: 'https://docs.camunda.io/docs/components/console/manage-clusters/backups/',
63
+ support: 'https://support.camunda.io/',
64
+ talkToExpert: 'https://camunda.com/contact/',
65
+ };
66
+ export const defaultPermissions = {
67
+ canCreate: true,
68
+ canDelete: true,
69
+ canRestore: true,
70
+ };
71
+ export const withBackupsProps = {
72
+ backups: [
73
+ {
74
+ id: '1',
75
+ uuid: 'backup-on-demand-1',
76
+ name: 'Manual Backup 1',
77
+ status: 'Complete',
78
+ type: 'Manual',
79
+ started: backupAgo(5 * HOUR),
80
+ completed: backupAgo(5 * HOUR - 15 * 60 * 1000),
81
+ version: 'Camunda 8.10+gen3',
82
+ canRestore: true,
83
+ zeebeStatus: 'complete',
84
+ operateStatus: 'complete',
85
+ tasklistStatus: 'complete',
86
+ optimizeStatus: 'complete',
87
+ },
88
+ {
89
+ id: '2',
90
+ uuid: 'backup-scheduled-2',
91
+ name: 'Scheduled Backup 2',
92
+ status: 'In progress',
93
+ type: 'Scheduled',
94
+ started: backupAgo(2 * HOUR),
95
+ completed: '-',
96
+ version: 'Camunda 8.10+gen3',
97
+ canRestore: true,
98
+ zeebeStatus: 'creating',
99
+ operateStatus: 'creating',
100
+ tasklistStatus: 'creating',
101
+ optimizeStatus: 'creating',
102
+ },
103
+ {
104
+ id: '3',
105
+ uuid: 'backup-on-demand-3',
106
+ name: 'Manual Backup 3',
107
+ status: 'Failed',
108
+ type: 'Manual',
109
+ started: backupAgo(28 * HOUR),
110
+ completed: '-',
111
+ version: 'Camunda 8.9+gen18',
112
+ canRestore: true,
113
+ zeebeStatus: 'failed',
114
+ operateStatus: 'failed',
115
+ tasklistStatus: 'failed',
116
+ optimizeStatus: 'failed',
117
+ },
118
+ ],
119
+ backupSchedule: {
120
+ scheduling: 'Enabled',
121
+ startTime: '02:00',
122
+ frequency: 'Daily',
123
+ },
124
+ isLoading: false,
125
+ hasError: false,
126
+ showTeaser: false,
127
+ canCreateBackup: true,
128
+ canCreateBackupBasedOnTime: true,
129
+ clusterSupportsHotBackups: true,
130
+ text: defaultText,
131
+ urls: defaultUrls,
132
+ permissions: defaultPermissions,
133
+ onCreateBackup: () => console.log('Create backup'),
134
+ onDeleteBackup: (id) => console.log('Delete backup:', id),
135
+ onRestoreBackup: (id) => console.log('Restore backup:', id),
136
+ onCreateSchedule: () => console.log('Create schedule'),
137
+ onUpdateSchedule: () => console.log('Update schedule'),
138
+ onDeleteSchedule: () => console.log('Delete schedule'),
139
+ onRefresh: () => console.log('Refresh'),
140
+ onOpenDocs: () => console.log('Open docs'),
141
+ onTalkToExpert: () => console.log('Talk to expert'),
142
+ onGiveFeedback: () => console.log('Give feedback'),
143
+ };
@@ -4,8 +4,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { Checkbox, InlineNotification, Modal, Stack } from '@carbon/react';
8
7
  import { useState } from 'react';
8
+ import { Checkbox, Modal, Stack } from '../../ui/index.js';
9
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
9
10
  export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }) => {
10
11
  const isVersionMismatch = backup.version !== currentClusterVersion;
11
12
  const [acknowledged, setAcknowledged] = useState(false);
@@ -45,7 +46,7 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
45
46
  columnGap: '1rem',
46
47
  rowGap: '0.25rem',
47
48
  margin: 0,
48
- }, children: [_jsx("dt", { children: _jsx("strong", { children: text.backupLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.name }), _jsx("dt", { children: _jsx("strong", { children: text.dateLabel }) }), _jsx("dd", { style: { margin: 0 }, children: formatDateTime(backup.completedAt) }), _jsx("dt", { children: _jsx("strong", { children: text.versionLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.version })] }), isVersionMismatch ? (_jsxs(_Fragment, { children: [_jsx(InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: text.versionMismatchTitle, subtitle: text.versionMismatchBody
49
+ }, children: [_jsx("dt", { children: _jsx("strong", { children: text.backupLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.name }), _jsx("dt", { children: _jsx("strong", { children: text.dateLabel }) }), _jsx("dd", { style: { margin: 0 }, children: formatDateTime(backup.completedAt) }), _jsx("dt", { children: _jsx("strong", { children: text.versionLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.version })] }), isVersionMismatch ? (_jsxs(_Fragment, { children: [_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: text.versionMismatchTitle, subtitle: text.versionMismatchBody
49
50
  .replace('{currentVersion}', currentClusterVersion)
50
51
  .replace('{backupVersion}', backup.version) }), _jsx(Checkbox, { id: 'c4-cluster-details-hot-backups-restore-acknowledge', labelText: text.acknowledgmentLabel, checked: acknowledged, onChange: (_evt, { checked }) => setAcknowledged(checked) })] })) : (_jsx("p", { children: text.description }))] }) }));
51
52
  };
@@ -1,13 +1,10 @@
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { DataTableSkeleton, Stack } 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';
11
8
  export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls, permissions, onCreateIpWhitelist, onUpdateIpWhitelist, onDeleteIpWhitelist, onOpenDocs, }) => {
12
9
  const headerData = [
13
10
  {
@@ -65,10 +62,10 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
65
62
  ]
66
63
  : [];
67
64
  if (isLoading) {
68
- return _jsx(DataTableSkeleton, { showToolbar: false, showHeader: false });
65
+ return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
69
66
  }
70
67
  if (ipWhitelist.length === 0) {
71
- return (_jsx(C3EmptyState, { icon: {
68
+ return (_jsx(C4EmptyState, { card: true, icon: {
72
69
  path: C4_ASSET_URLS.ipWhitelistIcon,
73
70
  altText: 'ipwhitelistIcon',
74
71
  }, heading: text.emptyTitle, description: text.emptyDescription, button: permissions.canCreate
@@ -90,5 +87,5 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
90
87
  gap: '2rem',
91
88
  maxWidth: 'calc(100vw - 64px)',
92
89
  width: '100%',
93
- }, children: [_jsx(C3DataTable, { headers: headerData, data: ipWhitelist, actions: actions, toolbar: toolbar, title: text.title, queryPrefix: 'cluster-details-ip-whitelist' }), _jsx("span", { className: 'legalText', children: text.infoText })] }) }));
90
+ }, children: [_jsx(C4DataTable, { headers: headerData, data: ipWhitelist, actions: actions, toolbar: toolbar, title: text.title, queryPrefix: 'cluster-details-ip-whitelist' }), _jsx("span", { className: 'legalText', children: text.infoText })] }) }));
94
91
  };
@@ -0,0 +1,6 @@
1
+ import type { C4ClusterDetailsIpWhitelistProps, IpWhitelistItem } from './c4-cluster-details-ip-whitelist.types';
2
+ export declare const baseText: C4ClusterDetailsIpWhitelistProps['text'];
3
+ export declare const baseUrls: C4ClusterDetailsIpWhitelistProps['urls'];
4
+ export declare const basePermissions: C4ClusterDetailsIpWhitelistProps['permissions'];
5
+ export declare const ipWhitelistEntries: IpWhitelistItem[];
6
+ export declare const withEntriesProps: C4ClusterDetailsIpWhitelistProps;
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ export const baseText = {
3
+ title: 'IP Allowlist',
4
+ createButton: 'Create new entry',
5
+ searchLabel: 'Search',
6
+ headerIp: 'IP',
7
+ headerDescription: 'Description',
8
+ updateAction: 'Update',
9
+ deleteAction: 'Delete',
10
+ emptyTitle: 'Restrict access to clusters with an IP Allowlist',
11
+ emptyDescription: (_jsxs(_Fragment, { children: [_jsxs("p", { children: ["Click ", _jsx("strong", { children: "Create an entry" }), " to configure allowed networks IP(s) which can access the cluster."] }), _jsx("br", {}), _jsx("p", { children: "Web Modeler has access to clusters by default, as allowlist assignments for IP addresses used by Web Modeler are managed automatically." })] })),
12
+ emptyButton: 'Create an entry',
13
+ emptyLink: 'View the IP Allowlist documentation',
14
+ infoText: (_jsxs(_Fragment, { children: ["IP Allowlist can be used to limit access to the cluster. See the", ' ', _jsx("a", { href: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/', children: "IP Allowlist" }), ' ', "documentation to configure allowed networks."] })),
15
+ };
16
+ export const baseUrls = {
17
+ docs: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/',
18
+ };
19
+ export const basePermissions = {
20
+ canCreate: true,
21
+ canUpdate: true,
22
+ canDelete: true,
23
+ };
24
+ export const ipWhitelistEntries = [
25
+ {
26
+ id: '0',
27
+ ip: '192.168.1.0/24',
28
+ description: 'Office network',
29
+ },
30
+ {
31
+ id: '1',
32
+ ip: '10.0.0.0/8',
33
+ description: 'VPN network',
34
+ },
35
+ {
36
+ id: '2',
37
+ ip: '172.16.0.0/16',
38
+ description: 'Development environment',
39
+ },
40
+ ];
41
+ export const withEntriesProps = {
42
+ ipWhitelist: ipWhitelistEntries,
43
+ isLoading: false,
44
+ text: baseText,
45
+ urls: baseUrls,
46
+ permissions: basePermissions,
47
+ onCreateIpWhitelist: () => console.log('Create IP whitelist'),
48
+ onUpdateIpWhitelist: (index) => console.log('Update IP whitelist', index),
49
+ onDeleteIpWhitelist: (index) => console.log('Delete IP whitelist', index),
50
+ onOpenDocs: () => console.log('Open docs'),
51
+ };
@@ -1,14 +1,12 @@
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { Button, CodeSnippet, Layer, Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tile, } from '@carbon/react';
2
+ import { Layer } from '@carbon/react';
9
3
  import { CheckmarkFilled, Edit, Launch, PendingFilled, } from '@carbon/react/icons/index.esm.js';
10
4
  import { useEffect, useState } from 'react';
11
5
  import { C4_ASSET_URLS } from '../../assetUrls.js';
6
+ import { Button, CodeSnippet, Link, Stack, Tile } from '../../ui/index.js';
7
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
8
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
9
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
12
10
  const singleSnippetMaxWidth = '48rem';
13
11
  export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, connectInAwsUrl, isLoading, isDeactivating, text, permissions, urls, onOpenActivate, onOpenPrivateEndpoint, onOpenDocs, onDeactivate, onOpenConnectInAws, onEditAllowedPrincipals, onEditAllowedRegions, }) => {
14
12
  const endpointRows = (privateEndpoints ?? []).map((endpoint, index) => ({
@@ -167,7 +165,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
167
165
  ? text.deactivatingButton
168
166
  : (text.deactivateButton ?? 'Deactivate service') })) : undefined;
169
167
  if (!isReady) {
170
- return (_jsx(C3EmptyState, { icon: {
168
+ return (_jsx(C4EmptyState, { card: true, icon: {
171
169
  path: C4_ASSET_URLS.secureConnectivityIcon,
172
170
  altText: 'secureConnectivityIcon',
173
171
  }, heading: text.emptyTitle, description: text.emptyDescription, button: isLoading || status?.status !== undefined
@@ -187,42 +185,38 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
187
185
  display: 'flex',
188
186
  alignItems: 'center',
189
187
  gap: 'var(--cds-spacing-05)',
190
- }, children: _jsx("h4", { style: { margin: 0 }, children: text.serviceDetailsTitle ?? 'Service details' }) }), _jsx("div", { children: isNarrowLayout ? (
191
- // Single-column layout: each field on its own row
192
- _jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none' }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(StructuredListCell, { style: { borderTop: 'none' }, children: _jsxs("div", { style: {
188
+ }, children: _jsx("h4", { style: { margin: 0 }, children: text.serviceDetailsTitle ?? 'Service details' }) }), _jsx("div", { children: isNarrowLayout ? (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none' }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(C4StructuredListCell, { style: { borderTop: 'none' }, children: _jsxs("div", { style: {
193
189
  display: 'flex',
194
190
  justifyContent: 'space-between',
195
191
  alignItems: 'center',
196
- }, children: [statusElement, deactivateLinkElement] }) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.serviceName) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.type) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
192
+ }, children: [statusElement, deactivateLinkElement] }) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.serviceName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.type) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
197
193
  values: status?.spec.allowedPrincipals,
198
194
  onEdit: onEditAllowedPrincipals,
199
195
  editLabel: 'Edit allowed principals',
200
196
  alignToSingleSnippet: true,
201
- }) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedRegionsLabel }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
197
+ }) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedRegionsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
202
198
  values: status?.spec.allowedRegions,
203
199
  onEdit: onEditAllowedRegions,
204
200
  editLabel: 'Edit supported regions',
205
201
  alignToSingleSnippet: true,
206
202
  wrapItems: true,
207
- }) })] })] }) })) : (
208
- // Two-column layout: pairs of fields side-by-side
209
- _jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none', overflowX: 'auto' }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(StructuredListCell, { style: { borderTop: 'none' }, children: statusElement }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: _jsx("span", { style: { opacity: 0 }, children: "\u2014" }) }), _jsx(StructuredListCell, { style: {
203
+ }) })] })] }) })) : (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none', overflowX: 'auto' }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(C4StructuredListCell, { style: { borderTop: 'none' }, children: statusElement }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: _jsx("span", { style: { opacity: 0 }, children: "\u2014" }) }), _jsx(C4StructuredListCell, { style: {
210
204
  borderTop: 'none',
211
205
  textAlign: 'right',
212
- }, children: deactivateLinkElement })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(StructuredListCell, { style: {
206
+ }, children: deactivateLinkElement })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(C4StructuredListCell, { style: {
213
207
  minWidth: 0,
214
208
  paddingRight: '40px',
215
- }, children: renderInlineCodeField(endpoint?.serviceName) }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(StructuredListCell, { style: {
209
+ }, children: renderInlineCodeField(endpoint?.serviceName) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(C4StructuredListCell, { style: {
216
210
  minWidth: 0,
217
211
  paddingRight: '40px',
218
- }, children: renderInlineCodeField(endpoint?.type) }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(StructuredListCell, { style: {
212
+ }, children: renderInlineCodeField(endpoint?.type) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(C4StructuredListCell, { style: {
219
213
  minWidth: 0,
220
214
  paddingRight: '40px',
221
215
  }, children: renderListFieldWithEdit({
222
216
  values: status?.spec.allowedPrincipals,
223
217
  onEdit: onEditAllowedPrincipals,
224
218
  editLabel: 'Edit allowed principals',
225
- }) }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.allowedRegionsLabel }), _jsx(StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
219
+ }) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.allowedRegionsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
226
220
  values: status?.spec.allowedRegions,
227
221
  onEdit: onEditAllowedRegions,
228
222
  editLabel: 'Edit supported regions',
@@ -245,5 +239,5 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
245
239
  marginBottom: '16px',
246
240
  }, children: text.endpointConnectionsEmptyText ??
247
241
  text.privateEndpointsEmptyText ??
248
- 'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(C3DataTable, { isLoading: isLoading, headers: headerData, data: endpointRows, toolbar: toolbar, options: { tableSize: 'md' }, queryPrefix: 'cluster-details-secure-connectivity' }) }))] })] })] }) }), _jsx("div", { children: _jsxs(Link, { href: urls.docs, onClick: onOpenDocs, children: [_jsx("span", { children: text.learnMoreLabel }), _jsx("span", { style: { paddingLeft: 'var(--cds-spacing-02)' }, children: _jsx(Launch, { size: 16 }) })] }) })] }));
242
+ 'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(C4DataTable, { isLoading: isLoading, headers: headerData, data: endpointRows, toolbar: toolbar, options: { tableSize: 'md' }, queryPrefix: 'cluster-details-secure-connectivity' }) }))] })] })] }) }), _jsx("div", { children: _jsxs(Link, { href: urls.docs, onClick: onOpenDocs, children: [_jsx("span", { children: text.learnMoreLabel }), _jsx("span", { style: { paddingLeft: 'var(--cds-spacing-02)' }, children: _jsx(Launch, { size: 16 }) })] }) })] }));
249
243
  };
@@ -1,3 +1,3 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ClusterListProps } from './c4-cluster-list.types';
3
- export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
3
+ export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
@@ -4,14 +4,26 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { C3ClusterTag, C3DataTable, } from '@camunda/camunda-composite-components';
8
- import { Button, InlineNotification, Link } from '@carbon/react';
7
+ import { C3ClusterTag, } from '@camunda/camunda-composite-components';
9
8
  import { Add, WarningAltFilled } from '@carbon/react/icons/index.esm.js';
10
9
  import { useCallback, useEffect, useRef, } from 'react';
10
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
11
+ import { Button, Link } from '../../ui/index.js';
11
12
  import { ClusterStatusElement, normalizeClusterStatus, } from '../c4-cluster-overview/applications.js';
12
13
  import { C4IconAndTextElement, getClusterLoadConfig, } from '../c4-cluster-overview/c4-cluster-overview.js';
14
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
15
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
13
16
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
14
17
  import { C4PageTemplate } from '../c4-page-template/c4-page-template.js';
18
+ // ds-only column-width hints (see `docs/c4-carbon-compat.md`) so the Status
19
+ // column has room for its icon + label and doesn't wrap on narrower (~14")
20
+ // viewports, while Generation/Region — the widest columns, which can carry
21
+ // long deprecated-version or region strings — wrap instead of stretching the
22
+ // table. Carbon's DataTable already auto-sizes columns to content and must
23
+ // stay byte-for-byte unchanged, so these are only applied in `ds` mode.
24
+ const DS_STATUS_COLUMN_MIN_WIDTH = '11rem';
25
+ const DS_GENERATION_COLUMN_MAX_WIDTH = '10rem';
26
+ const DS_REGION_COLUMN_MAX_WIDTH = '9rem';
15
27
  const DEFAULT_PAGE_SIZE = 10;
16
28
  const PAGE_NUMBER_SELECTOR = '.cds--select__page-number select';
17
29
  const PAGE_SIZE_SELECTOR = '.cds--select__item-count select';
@@ -25,7 +37,9 @@ function isPlainLeftClick(event) {
25
37
  !event.ctrlKey &&
26
38
  !event.shiftKey);
27
39
  }
28
- export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }) => {
40
+ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }) => {
41
+ const designSystem = useC4DesignSystem();
42
+ const isDsMode = designSystem === 'ds';
29
43
  const tableContainerRef = useRef(null);
30
44
  const stableClustersRef = useRef(clusters.map((cluster) => ({ ...cluster })));
31
45
  const selectedPageRef = useRef(1);
@@ -170,6 +184,9 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
170
184
  position: 'relative',
171
185
  display: 'flex',
172
186
  gap: '8px',
187
+ ...(isDsMode
188
+ ? { maxWidth: DS_GENERATION_COLUMN_MAX_WIDTH }
189
+ : {}),
173
190
  }, children: [isRunningOnUnsupportedGeneration(row.id) && (_jsx("div", { style: {
174
191
  position: 'absolute',
175
192
  top: '50%',
@@ -180,6 +197,20 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
180
197
  paddingInlineStart: isRunningOnUnsupportedGeneration(row.id)
181
198
  ? '1.1rem'
182
199
  : '0rem',
200
+ ...(isDsMode
201
+ ? {
202
+ // Flex items default to `min-width: auto`, which
203
+ // would stop this span from shrinking/wrapping
204
+ // below its content's intrinsic width and defeat
205
+ // maxWidth above. `whiteSpace`/`overflowWrap`
206
+ // make wrapping actually happen, including for
207
+ // long unbroken strings with no natural break
208
+ // points.
209
+ minWidth: 0,
210
+ whiteSpace: 'normal',
211
+ overflowWrap: 'anywhere',
212
+ }
213
+ : {}),
183
214
  }, children: row.generation })] }));
184
215
  },
185
216
  },
@@ -199,6 +230,30 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
199
230
  {
200
231
  label: translations.headers.region,
201
232
  key: 'region',
233
+ type: {
234
+ type: 'wrapper',
235
+ options: {
236
+ wrapperOptions: {
237
+ wrapper: (row) => {
238
+ // Carbon parity: return the raw value unchanged so this
239
+ // matches the previous untyped (`type: undefined`) rendering
240
+ // exactly. Only cap the width in ds mode.
241
+ if (!isDsMode) {
242
+ return row.region;
243
+ }
244
+ return (_jsx("span", { style: {
245
+ display: 'inline-block',
246
+ maxWidth: DS_REGION_COLUMN_MAX_WIDTH,
247
+ // Ensure the maxWidth cap actually forces a wrap rather
248
+ // than overflowing/cutting off region values with no
249
+ // natural break points (e.g. underscore-joined tokens).
250
+ whiteSpace: 'normal',
251
+ overflowWrap: 'anywhere',
252
+ }, children: row.region }));
253
+ },
254
+ },
255
+ },
256
+ },
202
257
  sorting: (a, b) => {
203
258
  return a.region.localeCompare(b.region);
204
259
  },
@@ -214,6 +269,8 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
214
269
  const normalizedStatus = normalizeClusterStatus(row.status);
215
270
  return normalizedStatus ? (_jsx(ClusterStatusElement, { status: normalizedStatus, infoTooltip: row.statusInfoTooltip, onInfoClick: normalizedStatus === 'waitingForInput'
216
271
  ? () => onNavigate(`${urls.clusterDetails(row.id)}/encryption`)
272
+ : undefined, style: isDsMode
273
+ ? { minWidth: DS_STATUS_COLUMN_MIN_WIDTH }
217
274
  : undefined })) : (row.status);
218
275
  },
219
276
  },
@@ -311,9 +368,15 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
311
368
  ? [
312
369
  {
313
370
  id: 'failover-cluster',
314
- label: translations.overflowMenu.failover ?? 'Failover',
371
+ // While the initial secondary bucket sync is pending the action stays
372
+ // visible but disabled, with the reason in the label (#9141).
373
+ label: (row) => isFailoverSyncPending?.(row.id)
374
+ ? (translations.overflowMenu.failoverSyncPending ??
375
+ 'Failover (unavailable until backup data is synced to the secondary region)')
376
+ : (translations.overflowMenu.failover ?? 'Failover'),
315
377
  kind: 'ghost',
316
378
  onClick: (row) => onFailoverCluster(row.id),
379
+ disabled: (row) => isFailoverSyncPending?.(row.id) ?? false,
317
380
  visible: (row) => (permissions.canFailoverCluster ?? false) &&
318
381
  isMultiRegionCluster(row.id),
319
382
  },
@@ -337,11 +400,11 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
337
400
  paddingBlockEnd: 'var(--cds-spacing-07)',
338
401
  }, children: [_jsx("p", { style: { color: 'var(--cds-text-secondary)' }, children: translations.emptyState.noClusters }), permissions.canCreateCluster && (_jsx("div", { style: { marginTop: 'var(--cds-spacing-05)' }, children: _jsx(Button, { kind: 'primary', onClick: () => onNavigate(urls.createCluster), disabled: permissions.createClusterButtonDisabled, children: translations.createButton }) }))] })));
339
402
  }
340
- return (_jsx("div", { ref: tableContainerRef, children: _jsx(C3DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list' }) }));
403
+ return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list' }) }));
341
404
  };
342
405
  return (_jsxs(_Fragment, { children: [trialNotification, _jsxs(C4PageTemplate, { loading: loading, header: {
343
406
  title: translations.title,
344
- }, children: [encryptionNotification && (_jsx(InlineNotification, { style: {
407
+ }, children: [encryptionNotification && (_jsx(C4InlineNotification, { style: {
345
408
  maxWidth: '100%',
346
409
  width: '100%',
347
410
  marginBottom: '24px',
@@ -0,0 +1,4 @@
1
+ import type { C4ClusterListProps, ClusterListItem } from './c4-cluster-list.types';
2
+ export declare const mockClusters: ClusterListItem[];
3
+ export declare const defaultProps: C4ClusterListProps;
4
+ export declare const newCluster: ClusterListItem;