@camunda/ccma-saas-frontend 0.0.31

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 (656) hide show
  1. package/README.md +40 -0
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +3 -0
  3. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +25 -0
  4. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +9 -0
  5. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.js +6 -0
  6. package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +3 -0
  7. package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +135 -0
  8. package/lib/esm/components/c4-activity-graph/c4-activity-graph.types.d.ts +13 -0
  9. package/lib/esm/components/c4-activity-graph/c4-activity-graph.types.js +6 -0
  10. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +16 -0
  11. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +39 -0
  12. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +16 -0
  13. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +147 -0
  14. package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +14 -0
  15. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +133 -0
  16. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +13 -0
  17. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +63 -0
  18. package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +16 -0
  19. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +116 -0
  20. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +3 -0
  21. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +406 -0
  22. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +32 -0
  23. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.js +6 -0
  24. package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +14 -0
  25. package/lib/esm/components/c4-advanced-search-filters/state.types.js +6 -0
  26. package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +5 -0
  27. package/lib/esm/components/c4-advanced-search-filters/utils.js +58 -0
  28. package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +3 -0
  29. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +38 -0
  30. package/lib/esm/components/c4-ai-usage/c4-ai-usage.types.d.ts +59 -0
  31. package/lib/esm/components/c4-ai-usage/c4-ai-usage.types.js +6 -0
  32. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +3 -0
  33. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +8 -0
  34. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.types.d.ts +12 -0
  35. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.types.js +6 -0
  36. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +3 -0
  37. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +20 -0
  38. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.types.d.ts +12 -0
  39. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.types.js +6 -0
  40. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +2 -0
  41. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +22 -0
  42. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +13 -0
  43. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.js +6 -0
  44. package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +3 -0
  45. package/lib/esm/components/c4-async-modal/c4-async-modal.js +68 -0
  46. package/lib/esm/components/c4-async-modal/c4-async-modal.types.d.ts +28 -0
  47. package/lib/esm/components/c4-async-modal/c4-async-modal.types.js +6 -0
  48. package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +3 -0
  49. package/lib/esm/components/c4-audit-log/c4-audit-log.js +147 -0
  50. package/lib/esm/components/c4-audit-log/c4-audit-log.types.d.ts +13 -0
  51. package/lib/esm/components/c4-audit-log/c4-audit-log.types.js +6 -0
  52. package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +10 -0
  53. package/lib/esm/components/c4-billing-page/c4-billing-page.js +39 -0
  54. package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +13 -0
  55. package/lib/esm/components/c4-billing-page/c4-billing-page.types.js +6 -0
  56. package/lib/esm/components/c4-billing-page/custom-styles.d.ts +13 -0
  57. package/lib/esm/components/c4-billing-page/custom-styles.js +18 -0
  58. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.d.ts +29 -0
  59. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +32 -0
  60. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +16 -0
  61. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +62 -0
  62. package/lib/esm/components/c4-billing-page/elements/plan-details.d.ts +20 -0
  63. package/lib/esm/components/c4-billing-page/elements/plan-details.js +16 -0
  64. package/lib/esm/components/c4-billing-page/elements/usage-alerts.d.ts +30 -0
  65. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +18 -0
  66. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +28 -0
  67. package/lib/esm/components/c4-billing-page/elements/value-metric.js +116 -0
  68. package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +3 -0
  69. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +9 -0
  70. package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +4 -0
  71. package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.js +6 -0
  72. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +3 -0
  73. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +33 -0
  74. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.d.ts +22 -0
  75. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.js +6 -0
  76. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +3 -0
  77. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +56 -0
  78. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.types.d.ts +83 -0
  79. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.types.js +6 -0
  80. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +6 -0
  81. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +87 -0
  82. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +7 -0
  83. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +37 -0
  84. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +7 -0
  85. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +35 -0
  86. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +3 -0
  87. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +133 -0
  88. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.types.d.ts +43 -0
  89. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.types.js +6 -0
  90. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +4 -0
  91. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +58 -0
  92. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.types.d.ts +39 -0
  93. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.types.js +6 -0
  94. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +4 -0
  95. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +64 -0
  96. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.types.d.ts +45 -0
  97. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.types.js +6 -0
  98. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +3 -0
  99. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +46 -0
  100. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.types.d.ts +24 -0
  101. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.types.js +6 -0
  102. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +3 -0
  103. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +124 -0
  104. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.types.d.ts +51 -0
  105. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.types.js +6 -0
  106. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +3 -0
  107. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +206 -0
  108. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +58 -0
  109. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.js +6 -0
  110. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +3 -0
  111. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +192 -0
  112. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +53 -0
  113. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.js +6 -0
  114. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +3 -0
  115. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +104 -0
  116. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +76 -0
  117. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.js +6 -0
  118. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +3 -0
  119. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +222 -0
  120. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.types.d.ts +89 -0
  121. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.types.js +6 -0
  122. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +3 -0
  123. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +93 -0
  124. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.types.d.ts +36 -0
  125. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.types.js +6 -0
  126. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +3 -0
  127. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +174 -0
  128. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.types.d.ts +118 -0
  129. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.types.js +6 -0
  130. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +3 -0
  131. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +220 -0
  132. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +75 -0
  133. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.js +6 -0
  134. package/lib/esm/components/c4-cluster-overview/applications.d.ts +47 -0
  135. package/lib/esm/components/c4-cluster-overview/applications.js +132 -0
  136. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +20 -0
  137. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +101 -0
  138. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +22 -0
  139. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.js +6 -0
  140. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +116 -0
  141. package/lib/esm/components/c4-cluster-overview/cluster-details.js +170 -0
  142. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +35 -0
  143. package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +1 -0
  144. package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +38 -0
  145. package/lib/esm/components/c4-cluster-overview/cluster-load.js +334 -0
  146. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +3 -0
  147. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +17 -0
  148. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +12 -0
  149. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.js +6 -0
  150. package/lib/esm/components/c4-cluster-settings/elements/autoUpdate.d.ts +14 -0
  151. package/lib/esm/components/c4-cluster-settings/elements/autoUpdate.js +12 -0
  152. package/lib/esm/components/c4-cluster-settings/elements/business-id-uniqueness-toggle.d.ts +14 -0
  153. package/lib/esm/components/c4-cluster-settings/elements/business-id-uniqueness-toggle.js +12 -0
  154. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +23 -0
  155. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +34 -0
  156. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.d.ts +16 -0
  157. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +12 -0
  158. package/lib/esm/components/c4-cluster-settings/elements/enforce-groups.d.ts +14 -0
  159. package/lib/esm/components/c4-cluster-settings/elements/enforce-groups.js +12 -0
  160. package/lib/esm/components/c4-cluster-settings/elements/identity-based-authorizations.d.ts +13 -0
  161. package/lib/esm/components/c4-cluster-settings/elements/identity-based-authorizations.js +12 -0
  162. package/lib/esm/components/c4-cluster-settings/elements/low-latency-toggle.d.ts +14 -0
  163. package/lib/esm/components/c4-cluster-settings/elements/low-latency-toggle.js +12 -0
  164. package/lib/esm/components/c4-cluster-settings/elements/mcp-toggle.d.ts +14 -0
  165. package/lib/esm/components/c4-cluster-settings/elements/mcp-toggle.js +12 -0
  166. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.d.ts +13 -0
  167. package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.js +15 -0
  168. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.d.ts +27 -0
  169. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +20 -0
  170. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +7 -0
  171. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +12 -0
  172. package/lib/esm/components/c4-cluster-settings/elements/swagger-toggle.d.ts +14 -0
  173. package/lib/esm/components/c4-cluster-settings/elements/swagger-toggle.js +12 -0
  174. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +5 -0
  175. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.js +7 -0
  176. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.d.ts +13 -0
  177. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +13 -0
  178. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +3 -0
  179. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +64 -0
  180. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +15 -0
  181. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.js +6 -0
  182. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +3 -0
  183. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +44 -0
  184. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +25 -0
  185. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.js +6 -0
  186. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +3 -0
  187. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +15 -0
  188. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +6 -0
  189. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.js +6 -0
  190. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +3 -0
  191. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +216 -0
  192. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +130 -0
  193. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.js +6 -0
  194. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +13 -0
  195. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +21 -0
  196. package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +3 -0
  197. package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.js +66 -0
  198. package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +12 -0
  199. package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.js +6 -0
  200. package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +3 -0
  201. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +508 -0
  202. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +209 -0
  203. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.js +6 -0
  204. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +2 -0
  205. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +182 -0
  206. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +26 -0
  207. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.js +6 -0
  208. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +2 -0
  209. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +96 -0
  210. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types.d.ts +18 -0
  211. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types.js +6 -0
  212. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +2 -0
  213. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +352 -0
  214. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +20 -0
  215. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.js +6 -0
  216. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +3 -0
  217. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +52 -0
  218. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.types.d.ts +19 -0
  219. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.types.js +6 -0
  220. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +3 -0
  221. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +9 -0
  222. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +6 -0
  223. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.js +6 -0
  224. package/lib/esm/components/c4-divider/c4-divider.d.ts +2 -0
  225. package/lib/esm/components/c4-divider/c4-divider.js +11 -0
  226. package/lib/esm/components/c4-divider/c4-divider.types.d.ts +3 -0
  227. package/lib/esm/components/c4-divider/c4-divider.types.js +6 -0
  228. package/lib/esm/components/c4-external-link/c4-external-link.d.ts +3 -0
  229. package/lib/esm/components/c4-external-link/c4-external-link.js +10 -0
  230. package/lib/esm/components/c4-external-link/c4-external-link.types.d.ts +9 -0
  231. package/lib/esm/components/c4-external-link/c4-external-link.types.js +6 -0
  232. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +3 -0
  233. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +18 -0
  234. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.types.d.ts +6 -0
  235. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.types.js +6 -0
  236. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +2 -0
  237. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +187 -0
  238. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +22 -0
  239. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.js +6 -0
  240. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +8 -0
  241. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +46 -0
  242. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +101 -0
  243. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.js +6 -0
  244. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.d.ts +7 -0
  245. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +18 -0
  246. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +12 -0
  247. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +65 -0
  248. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +13 -0
  249. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +74 -0
  250. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +16 -0
  251. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +81 -0
  252. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +13 -0
  253. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +45 -0
  254. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +4 -0
  255. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +40 -0
  256. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +23 -0
  257. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.js +6 -0
  258. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +3 -0
  259. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +88 -0
  260. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +44 -0
  261. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.js +6 -0
  262. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.d.ts +8 -0
  263. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +10 -0
  264. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +30 -0
  265. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +51 -0
  266. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.d.ts +23 -0
  267. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.js +6 -0
  268. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts +17 -0
  269. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +47 -0
  270. package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +4 -0
  271. package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.js +30 -0
  272. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.d.ts +6 -0
  273. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +14 -0
  274. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +3 -0
  275. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +25 -0
  276. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.types.d.ts +7 -0
  277. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.types.js +6 -0
  278. package/lib/esm/components/c4-link-button/c4-link-button.d.ts +3 -0
  279. package/lib/esm/components/c4-link-button/c4-link-button.js +18 -0
  280. package/lib/esm/components/c4-link-button/c4-link-button.types.d.ts +8 -0
  281. package/lib/esm/components/c4-link-button/c4-link-button.types.js +6 -0
  282. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +3 -0
  283. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +81 -0
  284. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.types.d.ts +58 -0
  285. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.types.js +6 -0
  286. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +3 -0
  287. package/lib/esm/components/c4-management-activity/c4-management-activity.js +16 -0
  288. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +22 -0
  289. package/lib/esm/components/c4-management-activity/c4-management-activity.types.js +6 -0
  290. package/lib/esm/components/c4-management-api/c4-management-api.d.ts +3 -0
  291. package/lib/esm/components/c4-management-api/c4-management-api.js +204 -0
  292. package/lib/esm/components/c4-management-api/c4-management-api.types.d.ts +66 -0
  293. package/lib/esm/components/c4-management-api/c4-management-api.types.js +6 -0
  294. package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +3 -0
  295. package/lib/esm/components/c4-management-overview/c4-management-overview.js +22 -0
  296. package/lib/esm/components/c4-management-overview/c4-management-overview.types.d.ts +17 -0
  297. package/lib/esm/components/c4-management-overview/c4-management-overview.types.js +6 -0
  298. package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +3 -0
  299. package/lib/esm/components/c4-management-settings/c4-management-settings.js +131 -0
  300. package/lib/esm/components/c4-management-settings/c4-management-settings.types.d.ts +77 -0
  301. package/lib/esm/components/c4-management-settings/c4-management-settings.types.js +6 -0
  302. package/lib/esm/components/c4-management-users/c4-management-users.d.ts +3 -0
  303. package/lib/esm/components/c4-management-users/c4-management-users.js +17 -0
  304. package/lib/esm/components/c4-management-users/c4-management-users.types.d.ts +23 -0
  305. package/lib/esm/components/c4-management-users/c4-management-users.types.js +6 -0
  306. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +3 -0
  307. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +48 -0
  308. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.types.d.ts +31 -0
  309. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.types.js +6 -0
  310. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +2 -0
  311. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +45 -0
  312. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +18 -0
  313. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.js +6 -0
  314. package/lib/esm/components/c4-number-input/c4-number-input.d.ts +2 -0
  315. package/lib/esm/components/c4-number-input/c4-number-input.js +21 -0
  316. package/lib/esm/components/c4-number-input/c4-number-input.types.d.ts +11 -0
  317. package/lib/esm/components/c4-number-input/c4-number-input.types.js +6 -0
  318. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +3 -0
  319. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +62 -0
  320. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +60 -0
  321. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.js +6 -0
  322. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +29 -0
  323. package/lib/esm/components/c4-page-template/c4-page-template.js +17 -0
  324. package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +1 -0
  325. package/lib/esm/components/c4-page-template/c4-page-template.spec.js +58 -0
  326. package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +6 -0
  327. package/lib/esm/components/c4-page-template/c4-page-template.stories.js +73 -0
  328. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +3 -0
  329. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +44 -0
  330. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.types.d.ts +12 -0
  331. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.types.js +6 -0
  332. package/lib/esm/components/c4-pricing/c4-pricing.d.ts +3 -0
  333. package/lib/esm/components/c4-pricing/c4-pricing.js +59 -0
  334. package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +20 -0
  335. package/lib/esm/components/c4-pricing/c4-pricing.types.js +6 -0
  336. package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +3 -0
  337. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +51 -0
  338. package/lib/esm/components/c4-pricing-card/c4-pricing-card.types.d.ts +53 -0
  339. package/lib/esm/components/c4-pricing-card/c4-pricing-card.types.js +6 -0
  340. package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +13 -0
  341. package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.js +58 -0
  342. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +2 -0
  343. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +68 -0
  344. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.types.d.ts +15 -0
  345. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.types.js +6 -0
  346. package/lib/esm/components/c4-search/c4-search-results.d.ts +2 -0
  347. package/lib/esm/components/c4-search/c4-search-results.js +235 -0
  348. package/lib/esm/components/c4-search/c4-search-results.types.d.ts +33 -0
  349. package/lib/esm/components/c4-search/c4-search-results.types.js +6 -0
  350. package/lib/esm/components/c4-search/c4-search.d.ts +35 -0
  351. package/lib/esm/components/c4-search/c4-search.js +134 -0
  352. package/lib/esm/components/c4-search/c4-search.types.d.ts +20 -0
  353. package/lib/esm/components/c4-search/c4-search.types.js +6 -0
  354. package/lib/esm/components/c4-search/search.utils.d.ts +61 -0
  355. package/lib/esm/components/c4-search/search.utils.js +421 -0
  356. package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +3 -0
  357. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +20 -0
  358. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +3 -0
  359. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +27 -0
  360. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +71 -0
  361. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +6 -0
  362. package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +4 -0
  363. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +29 -0
  364. package/lib/esm/components/c4-sm-cluster-details/details.d.ts +7 -0
  365. package/lib/esm/components/c4-sm-cluster-details/details.js +24 -0
  366. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +3 -0
  367. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +43 -0
  368. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +3 -0
  369. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +34 -0
  370. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +40 -0
  371. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +6 -0
  372. package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +9 -0
  373. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +59 -0
  374. package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +14 -0
  375. package/lib/esm/components/c4-sm-dashboard/component-tile.js +45 -0
  376. package/lib/esm/components/c4-sm-dashboard/explore.d.ts +20 -0
  377. package/lib/esm/components/c4-sm-dashboard/explore.js +29 -0
  378. package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +10 -0
  379. package/lib/esm/components/c4-sm-dashboard/health-status.js +60 -0
  380. package/lib/esm/components/c4-sm-dashboard/overview.d.ts +13 -0
  381. package/lib/esm/components/c4-sm-dashboard/overview.js +148 -0
  382. package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +22 -0
  383. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +35 -0
  384. package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +3 -0
  385. package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +26 -0
  386. package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +12 -0
  387. package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.js +6 -0
  388. package/lib/esm/components/c4-stat/c4-stat.d.ts +3 -0
  389. package/lib/esm/components/c4-stat/c4-stat.js +11 -0
  390. package/lib/esm/components/c4-stat/c4-stat.types.d.ts +4 -0
  391. package/lib/esm/components/c4-stat/c4-stat.types.js +6 -0
  392. package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +3 -0
  393. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +38 -0
  394. package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +7 -0
  395. package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.js +6 -0
  396. package/lib/esm/components/c4-tabs/c4-tabs.d.ts +3 -0
  397. package/lib/esm/components/c4-tabs/c4-tabs.js +49 -0
  398. package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +1 -0
  399. package/lib/esm/components/c4-tabs/c4-tabs.spec.js +97 -0
  400. package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +6 -0
  401. package/lib/esm/components/c4-tabs/c4-tabs.stories.js +35 -0
  402. package/lib/esm/components/c4-tabs/c4-tabs.types.d.ts +14 -0
  403. package/lib/esm/components/c4-tabs/c4-tabs.types.js +6 -0
  404. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +4 -0
  405. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +110 -0
  406. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +45 -0
  407. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +6 -0
  408. package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +26 -0
  409. package/lib/esm/components/c4-telemetry-page/component-metrics.js +47 -0
  410. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +2 -0
  411. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +6 -0
  412. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +50 -0
  413. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +90 -0
  414. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +3 -0
  415. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +80 -0
  416. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +40 -0
  417. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +6 -0
  418. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +23 -0
  419. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +187 -0
  420. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.types.d.ts +23 -0
  421. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.types.js +6 -0
  422. package/lib/esm/components/c4-theme-switcher/cyberzee-removebg-preview-100.png +0 -0
  423. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +3 -0
  424. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +39 -0
  425. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +18 -0
  426. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.js +6 -0
  427. package/lib/esm/components/c4-toggle/c4-toggle.d.ts +3 -0
  428. package/lib/esm/components/c4-toggle/c4-toggle.js +16 -0
  429. package/lib/esm/components/c4-toggle/c4-toggle.types.d.ts +27 -0
  430. package/lib/esm/components/c4-toggle/c4-toggle.types.js +6 -0
  431. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +3 -0
  432. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +14 -0
  433. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.types.d.ts +14 -0
  434. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.types.js +6 -0
  435. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +6 -0
  436. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.js +21 -0
  437. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +3 -0
  438. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +15 -0
  439. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.types.d.ts +30 -0
  440. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.types.js +6 -0
  441. package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +3 -0
  442. package/lib/esm/components/c4-usage-history/c4-usage-history.js +79 -0
  443. package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +36 -0
  444. package/lib/esm/components/c4-usage-history/c4-usage-history.types.js +6 -0
  445. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +35 -0
  446. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +44 -0
  447. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +3 -0
  448. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +107 -0
  449. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.types.d.ts +50 -0
  450. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.types.js +6 -0
  451. package/lib/esm/components/c4-user-details/c4-user-details.d.ts +3 -0
  452. package/lib/esm/components/c4-user-details/c4-user-details.js +46 -0
  453. package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +22 -0
  454. package/lib/esm/components/c4-user-details/c4-user-details.types.js +6 -0
  455. package/lib/esm/components/c4-user-details/tabs/authorized-resources.d.ts +20 -0
  456. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +15 -0
  457. package/lib/esm/components/c4-user-details/tabs/details.d.ts +10 -0
  458. package/lib/esm/components/c4-user-details/tabs/details.js +17 -0
  459. package/lib/esm/components/c4-user-details/tabs/roles.d.ts +32 -0
  460. package/lib/esm/components/c4-user-details/tabs/roles.js +63 -0
  461. package/lib/esm/i18n/c4-console-i18n.d.ts +8 -0
  462. package/lib/esm/i18n/c4-console-i18n.js +138 -0
  463. package/lib/esm/i18n/en/components/fatalError.json +5 -0
  464. package/lib/esm/i18n/en/components/navbar.json +44 -0
  465. package/lib/esm/i18n/en/entities/orgroles.json +100 -0
  466. package/lib/esm/i18n/en/modals/alerts.json +99 -0
  467. package/lib/esm/i18n/en/modals/apiclients.json +151 -0
  468. package/lib/esm/i18n/en/modals/backups.json +66 -0
  469. package/lib/esm/i18n/en/modals/billing.json +192 -0
  470. package/lib/esm/i18n/en/modals/clusterclients.json +145 -0
  471. package/lib/esm/i18n/en/modals/clusters.json +177 -0
  472. package/lib/esm/i18n/en/modals/connectorsecrets.json +123 -0
  473. package/lib/esm/i18n/en/modals/createtrialorg.json +29 -0
  474. package/lib/esm/i18n/en/modals/invitations.json +48 -0
  475. package/lib/esm/i18n/en/modals/ipwhitelist.json +46 -0
  476. package/lib/esm/i18n/en/modals/usagealerts.json +40 -0
  477. package/lib/esm/i18n/en/modals/users.json +95 -0
  478. package/lib/esm/i18n/en/modals/validation.json +9 -0
  479. package/lib/esm/i18n/en/pages/clusterdetails.json +595 -0
  480. package/lib/esm/i18n/en/pages/clusters.json +77 -0
  481. package/lib/esm/i18n/en/pages/connectormanagement.json +8 -0
  482. package/lib/esm/i18n/en/pages/createcluster.json +90 -0
  483. package/lib/esm/i18n/en/pages/dashboard.json +94 -0
  484. package/lib/esm/i18n/en/pages/home.json +12 -0
  485. package/lib/esm/i18n/en/pages/job-dashboard.json +101 -0
  486. package/lib/esm/i18n/en/pages/orgmanagement.json +488 -0
  487. package/lib/esm/icons/c4-icons.d.ts +12 -0
  488. package/lib/esm/icons/c4-icons.js +28 -0
  489. package/lib/esm/icons/c4-icons.types.d.ts +3 -0
  490. package/lib/esm/icons/c4-icons.types.js +6 -0
  491. package/lib/esm/index.d.ts +210 -0
  492. package/lib/esm/index.js +112 -0
  493. package/lib/esm/index.scss +267 -0
  494. package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +3 -0
  495. package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.js +12 -0
  496. package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +3 -0
  497. package/lib/esm/modals/c4-create-connector-secret-modal-handle.js +12 -0
  498. package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +3 -0
  499. package/lib/esm/modals/c4-create-console-api-client-modal-handle.js +12 -0
  500. package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +3 -0
  501. package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.js +12 -0
  502. package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +3 -0
  503. package/lib/esm/modals/c4-rename-organization-modal-handle.js +12 -0
  504. package/lib/esm/notifications/c4-console-notifications-handle.d.ts +8 -0
  505. package/lib/esm/notifications/c4-console-notifications-handle.js +15 -0
  506. package/lib/esm/runtime/c4-console-authz.d.ts +31 -0
  507. package/lib/esm/runtime/c4-console-authz.js +191 -0
  508. package/lib/esm/runtime/c4-console-authz.spec.d.ts +1 -0
  509. package/lib/esm/runtime/c4-console-authz.spec.js +45 -0
  510. package/lib/esm/runtime/c4-console-data-context.d.ts +38 -0
  511. package/lib/esm/runtime/c4-console-data-context.js +229 -0
  512. package/lib/esm/runtime/c4-console-data-context.types.d.ts +49 -0
  513. package/lib/esm/runtime/c4-console-data-context.types.js +6 -0
  514. package/lib/esm/runtime/c4-console-data-store.d.ts +75 -0
  515. package/lib/esm/runtime/c4-console-data-store.js +440 -0
  516. package/lib/esm/runtime/c4-console-data-store.spec.d.ts +1 -0
  517. package/lib/esm/runtime/c4-console-data-store.spec.js +33 -0
  518. package/lib/esm/runtime/c4-console-notifications-context.d.ts +7 -0
  519. package/lib/esm/runtime/c4-console-notifications-context.js +76 -0
  520. package/lib/esm/runtime/c4-console-notifications-context.types.d.ts +34 -0
  521. package/lib/esm/runtime/c4-console-notifications-context.types.js +6 -0
  522. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -0
  523. package/lib/esm/runtime/c4-console-runtime-context.js +13 -0
  524. package/lib/esm/runtime/c4-console-runtime.types.d.ts +45 -0
  525. package/lib/esm/runtime/c4-console-runtime.types.js +6 -0
  526. package/lib/esm/runtime/to-api-config.d.ts +3 -0
  527. package/lib/esm/runtime/to-api-config.js +31 -0
  528. package/lib/esm/runtime/to-identity-api-base-url.d.ts +5 -0
  529. package/lib/esm/runtime/to-identity-api-base-url.js +22 -0
  530. package/lib/esm/setupTests.d.ts +1 -0
  531. package/lib/esm/setupTests.js +37 -0
  532. package/lib/esm/themes/barbie-light.css +446 -0
  533. package/lib/esm/themes/barbie.css +446 -0
  534. package/lib/esm/themes/cyberpunk-brutalism-light.css +748 -0
  535. package/lib/esm/themes/cyberpunk-brutalism.css +956 -0
  536. package/lib/esm/themes/cyberpunk-rose-light.css +750 -0
  537. package/lib/esm/themes/cyberpunk-rose.css +958 -0
  538. package/lib/esm/themes/terminal-light.css +422 -0
  539. package/lib/esm/themes/terminal.css +474 -0
  540. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +4 -0
  541. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +492 -0
  542. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +14 -0
  543. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.js +6 -0
  544. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +5 -0
  545. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +1029 -0
  546. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +44 -0
  547. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.js +6 -0
  548. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +3 -0
  549. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +116 -0
  550. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +1 -0
  551. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +67 -0
  552. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +31 -0
  553. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.js +6 -0
  554. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +12 -0
  555. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.js +31 -0
  556. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +32 -0
  557. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +232 -0
  558. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +12 -0
  559. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.js +5 -0
  560. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +20 -0
  561. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +289 -0
  562. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +20 -0
  563. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +483 -0
  564. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +17 -0
  565. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +466 -0
  566. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +15 -0
  567. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +256 -0
  568. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +18 -0
  569. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +454 -0
  570. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.d.ts +17 -0
  571. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +205 -0
  572. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +43 -0
  573. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +750 -0
  574. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +16 -0
  575. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +338 -0
  576. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +17 -0
  577. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +340 -0
  578. package/lib/esm/widgets/cluster-details/tabs/url-utils.d.ts +1 -0
  579. package/lib/esm/widgets/cluster-details/tabs/url-utils.js +28 -0
  580. package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +1 -0
  581. package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +34 -0
  582. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +4 -0
  583. package/lib/esm/widgets/clusters/c4-clusters-page.js +682 -0
  584. package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +1 -0
  585. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +155 -0
  586. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +49 -0
  587. package/lib/esm/widgets/clusters/c4-clusters-page.types.js +6 -0
  588. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +4 -0
  589. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +76 -0
  590. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.d.ts +24 -0
  591. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.js +6 -0
  592. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +4 -0
  593. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +76 -0
  594. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.d.ts +24 -0
  595. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.js +6 -0
  596. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +4 -0
  597. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +74 -0
  598. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +1 -0
  599. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +140 -0
  600. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +18 -0
  601. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.js +6 -0
  602. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +14 -0
  603. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +97 -0
  604. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +5 -0
  605. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +841 -0
  606. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +1 -0
  607. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +179 -0
  608. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.d.ts +29 -0
  609. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.js +6 -0
  610. package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +14 -0
  611. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +456 -0
  612. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +80 -0
  613. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.js +6 -0
  614. package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +5 -0
  615. package/lib/esm/widgets/group-details/c4-group-details-page.js +193 -0
  616. package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +1 -0
  617. package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +35 -0
  618. package/lib/esm/widgets/group-details/c4-group-details-page.types.d.ts +17 -0
  619. package/lib/esm/widgets/group-details/c4-group-details-page.types.js +6 -0
  620. package/lib/esm/widgets/management/c4-management-app.d.ts +5 -0
  621. package/lib/esm/widgets/management/c4-management-app.js +2303 -0
  622. package/lib/esm/widgets/management/c4-management-app.types.d.ts +69 -0
  623. package/lib/esm/widgets/management/c4-management-app.types.js +6 -0
  624. package/lib/esm/widgets/management/c4-management-page.d.ts +3 -0
  625. package/lib/esm/widgets/management/c4-management-page.js +35 -0
  626. package/lib/esm/widgets/management/c4-management-page.spec.d.ts +1 -0
  627. package/lib/esm/widgets/management/c4-management-page.spec.js +40 -0
  628. package/lib/esm/widgets/management/c4-management-page.types.d.ts +11 -0
  629. package/lib/esm/widgets/management/c4-management-page.types.js +6 -0
  630. package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +5 -0
  631. package/lib/esm/widgets/management/tabs/c4-management-activity-tab.js +5 -0
  632. package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +61 -0
  633. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +629 -0
  634. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +43 -0
  635. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +340 -0
  636. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.d.ts +13 -0
  637. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +26 -0
  638. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +12 -0
  639. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +85 -0
  640. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +20 -0
  641. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +266 -0
  642. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +39 -0
  643. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +103 -0
  644. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +49 -0
  645. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +72 -0
  646. package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +25 -0
  647. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +259 -0
  648. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +1 -0
  649. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +65 -0
  650. package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +5 -0
  651. package/lib/esm/widgets/user-details/c4-user-details-page.js +591 -0
  652. package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +1 -0
  653. package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +61 -0
  654. package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +29 -0
  655. package/lib/esm/widgets/user-details/c4-user-details-page.types.js +6 -0
  656. package/package.json +88 -0
@@ -0,0 +1,682 @@
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 { OrgsService } from '@camunda/ccma-api';
8
+ import { ClusterEncryptionKey, OrganizationRole, SalesPlanType, } from '@camunda/ccma-shared-types';
9
+ import { InlineNotification, Modal, Select, SelectItem, Stack, TextInput, } from '@carbon/react';
10
+ import { observer } from 'mobx-react-lite';
11
+ import { useCallback, useEffect, useMemo, useState } from 'react';
12
+ import { C4ClusterList } from '../../components/c4-cluster-list/c4-cluster-list.js';
13
+ import { C4ClustersEmptyState } from '../../components/c4-clusters-empty-state/c4-clusters-empty-state.js';
14
+ import { C4ClustersTrialNotification } from '../../components/c4-clusters-trial-notification/c4-clusters-trial-notification.js';
15
+ import { useC4ConsoleAuthz } from '../../runtime/c4-console-authz.js';
16
+ import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
17
+ import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
18
+ import { toApiConfig } from '../../runtime/to-api-config.js';
19
+ function getString(record, key) {
20
+ const value = record[key];
21
+ return typeof value === 'string' ? value : undefined;
22
+ }
23
+ function getPathString(record, path) {
24
+ let current = record;
25
+ for (const key of path) {
26
+ if (!current || typeof current !== 'object') {
27
+ return undefined;
28
+ }
29
+ current = current[key];
30
+ }
31
+ return typeof current === 'string' ? current : undefined;
32
+ }
33
+ function getBoolean(record, key) {
34
+ const value = record[key];
35
+ return typeof value === 'boolean' ? value : undefined;
36
+ }
37
+ function openUrlInNewTab(url) {
38
+ if (typeof window === 'undefined') {
39
+ return;
40
+ }
41
+ window.open(url, '_blank', 'noopener,noreferrer');
42
+ }
43
+ function getOptionalNumber(record, key) {
44
+ const value = record[key];
45
+ return typeof value === 'number' ? value : undefined;
46
+ }
47
+ function getPathUnknown(record, path) {
48
+ let current = record;
49
+ for (const key of path) {
50
+ if (!current || typeof current !== 'object') {
51
+ return undefined;
52
+ }
53
+ current = current[key];
54
+ }
55
+ return current;
56
+ }
57
+ function normalizeStatus(input) {
58
+ if (typeof input !== 'string') {
59
+ return 'unknown';
60
+ }
61
+ return input.toLowerCase();
62
+ }
63
+ function mapClusterToListItem(rawCluster, index) {
64
+ const id = getString(rawCluster, 'id') ??
65
+ getString(rawCluster, 'clusterId') ??
66
+ getString(rawCluster, 'uuid') ??
67
+ getString(rawCluster, 'clusterUuid');
68
+ if (!id) {
69
+ return undefined;
70
+ }
71
+ const name = getString(rawCluster, 'name') ?? getString(rawCluster, 'clusterName') ?? id;
72
+ const generation = getString(rawCluster, 'generation') ??
73
+ getPathString(rawCluster, ['generation', 'name']) ??
74
+ getString(rawCluster, 'generationId') ??
75
+ getString(rawCluster, 'generationName') ??
76
+ 'unknown';
77
+ const type = getString(rawCluster, 'type') ??
78
+ getPathString(rawCluster, ['planType', 'name']) ??
79
+ getString(rawCluster, 'planType') ??
80
+ getString(rawCluster, 'planTypeId') ??
81
+ 'unknown';
82
+ const region = getString(rawCluster, 'region') ??
83
+ getPathString(rawCluster, ['k8sContext', 'name']) ??
84
+ getPathString(rawCluster, ['k8sContext', 'config', 'name']) ??
85
+ 'unknown';
86
+ const status = normalizeStatus(getPathString(rawCluster, ['status', 'ready']) ?? 'unknown');
87
+ // Extract tags from labels.camunda and labels.custom
88
+ const labelsObj = rawCluster.labels;
89
+ const camundaTags = labelsObj?.camunda;
90
+ const customTags = labelsObj?.custom;
91
+ const camundaArray = Array.isArray(camundaTags)
92
+ ? camundaTags.filter((t) => typeof t === 'string')
93
+ : [];
94
+ const customArray = Array.isArray(customTags)
95
+ ? customTags.filter((t) => typeof t === 'string')
96
+ : [];
97
+ const tags = [...camundaArray, ...customArray];
98
+ const currentClusterLoad = getOptionalNumber(rawCluster, 'currentClusterLoad');
99
+ return {
100
+ id,
101
+ name,
102
+ generation,
103
+ type,
104
+ region,
105
+ status,
106
+ tags,
107
+ currentClusterLoad,
108
+ originalIndex: index,
109
+ };
110
+ }
111
+ function buildDefaultTranslations(t) {
112
+ const translate = (key, fallback) => {
113
+ try {
114
+ const translated = t?.(key);
115
+ return translated && translated !== key ? translated : fallback;
116
+ }
117
+ catch {
118
+ return fallback;
119
+ }
120
+ };
121
+ return {
122
+ title: translate('c4console:clusters.list.title', 'Clusters'),
123
+ createButton: translate('c4console:clusters.list.createButton', 'Create new cluster'),
124
+ searchLabel: translate('c4console:clusters.list.searchLabel', 'Search'),
125
+ emptyState: {
126
+ noClusters: translate('c4console:clusters.list.emptyState.noClusters', 'No clusters found.'),
127
+ },
128
+ headers: {
129
+ name: translate('c4console:clusters.list.headers.name', 'Name'),
130
+ generation: translate('c4console:clusters.list.headers.generation', 'Generation'),
131
+ type: translate('c4console:clusters.list.headers.type', 'Type'),
132
+ region: translate('c4console:clusters.list.headers.region', 'Region'),
133
+ status: translate('c4console:clusters.list.headers.status', 'Status'),
134
+ tags: translate('c4console:clusters.list.headers.tags', 'Tags'),
135
+ currentClusterLoad: translate('c4console:clusters.list.headers.currentClusterLoad', 'Load'),
136
+ },
137
+ overflowMenu: {
138
+ delete: translate('c4console:clusters.list.overflowMenu.delete', 'Delete'),
139
+ resume: translate('c4console:clusters.list.overflowMenu.resume', 'Resume'),
140
+ },
141
+ tags: {
142
+ addLabel: translate('c4console:clusters.tags.addLabel', 'Add tag'),
143
+ },
144
+ tooltips: {
145
+ clusterLoad: translate('c4console:clusters.tooltips.clusterLoad', 'Cluster load'),
146
+ },
147
+ };
148
+ }
149
+ function encodeClusterDetailsUrl(orgId, clusterId) {
150
+ return `/org/${encodeURIComponent(orgId)}/cluster/${encodeURIComponent(clusterId)}`;
151
+ }
152
+ function encodeCreateClusterUrl(orgId) {
153
+ return `createCluster:${orgId}`;
154
+ }
155
+ function decodeNavigateUrl(url) {
156
+ if (url.startsWith('clusterDetails:')) {
157
+ const [, orgId, clusterId] = url.split(':');
158
+ if (orgId && clusterId) {
159
+ return { kind: 'clusterDetails', orgId, clusterId };
160
+ }
161
+ }
162
+ // Support real hrefs so browser features (open in new tab) work.
163
+ // Example: /org/<orgId>/cluster/<clusterId>
164
+ try {
165
+ const parsed = new URL(url, 'https://example.invalid');
166
+ const match = parsed.pathname.match(/^\/org\/([^/]+)\/cluster\/([^/]+)(?:\/|$)/);
167
+ if (match) {
168
+ const orgId = decodeURIComponent(match[1] ?? '');
169
+ const clusterId = decodeURIComponent(match[2] ?? '');
170
+ if (orgId && clusterId) {
171
+ return { kind: 'clusterDetails', orgId, clusterId };
172
+ }
173
+ }
174
+ }
175
+ catch {
176
+ // ignore
177
+ }
178
+ if (url.startsWith('createCluster:')) {
179
+ const [, orgId] = url.split(':');
180
+ if (orgId) {
181
+ return { kind: 'createCluster', orgId };
182
+ }
183
+ }
184
+ return undefined;
185
+ }
186
+ function mergePermissions(base, override) {
187
+ if (!override) {
188
+ return base;
189
+ }
190
+ return { ...base, ...override };
191
+ }
192
+ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, }) => {
193
+ const runtime = useC4ConsoleRuntime();
194
+ const authz = useC4ConsoleAuthz({ orgId });
195
+ const data = useC4ConsoleData();
196
+ const apiConfig = useMemo(() => {
197
+ return toApiConfig(runtime);
198
+ }, [runtime]);
199
+ const [deleteModalOpen, setDeleteModalOpen] = useState(false);
200
+ const [deleteTarget, setDeleteTarget] = useState(undefined);
201
+ const [deleteConfirmation, setDeleteConfirmation] = useState('');
202
+ const [deleteBusy, setDeleteBusy] = useState(false);
203
+ const [deleteError, setDeleteError] = useState(undefined);
204
+ const [tagModalOpen, setTagModalOpen] = useState(false);
205
+ const [tagTarget, setTagTarget] = useState(undefined);
206
+ const [selectedTag, setSelectedTag] = useState('');
207
+ const [tagBusy, setTagBusy] = useState(false);
208
+ const [tagError, setTagError] = useState(undefined);
209
+ const [wakeModalOpen, setWakeModalOpen] = useState(false);
210
+ const [wakeTarget, setWakeTarget] = useState(undefined);
211
+ const [wakeBusy, setWakeBusy] = useState(false);
212
+ const [wakeError, setWakeError] = useState(undefined);
213
+ const [orgInfo, setOrgInfo] = useState(undefined);
214
+ useEffect(() => {
215
+ if (!orgId) {
216
+ setOrgInfo(undefined);
217
+ return;
218
+ }
219
+ let cancelled = false;
220
+ OrgsService.getOrgInfo({ config: apiConfig, orgUuid: orgId })
221
+ .then((result) => {
222
+ if (cancelled)
223
+ return;
224
+ setOrgInfo(result);
225
+ })
226
+ .catch((error) => {
227
+ if (cancelled)
228
+ return;
229
+ setOrgInfo(undefined);
230
+ runtime.telemetry?.captureException?.(error, {
231
+ widget: 'C4ClustersPage',
232
+ action: 'loadOrgInfo',
233
+ orgId,
234
+ });
235
+ });
236
+ return () => {
237
+ cancelled = true;
238
+ };
239
+ }, [apiConfig, orgId, runtime.telemetry]);
240
+ // Fetch data on mount/orgId change (idempotent, cached in context)
241
+ useEffect(() => {
242
+ if (!orgId)
243
+ return;
244
+ // Trigger fetch (context handles caching/deduplication)
245
+ data.fetchClusters(orgId).then(() => {
246
+ // Once clusters are loaded, fetch capacity data
247
+ const clusters = data.getClusters(orgId) ?? [];
248
+ if (clusters.length > 0) {
249
+ const clusterIds = clusters
250
+ .map((cluster) => {
251
+ return (getString(cluster, 'uuid') ??
252
+ getString(cluster, 'id') ??
253
+ getString(cluster, 'clusterId'));
254
+ })
255
+ .filter((id) => Boolean(id));
256
+ if (clusterIds.length > 0) {
257
+ data.fetchClusterCapacity(orgId, clusterIds);
258
+ }
259
+ }
260
+ });
261
+ }, [orgId, data.fetchClusterCapacity, data.fetchClusters, data.getClusters]);
262
+ // Get data from context (reactive via MobX)
263
+ const clustersCache = data.clusters[orgId];
264
+ const clusterCapacityMap = data.clusterCapacity[orgId] ?? new Map();
265
+ const rawClusters = (clustersCache?.data ?? []);
266
+ const isLoading = clustersCache?.isLoading ?? false;
267
+ const error = clustersCache?.error;
268
+ // Map cluster load from context
269
+ const clusterLoadData = useMemo(() => {
270
+ return clusterCapacityMap;
271
+ }, [clusterCapacityMap]);
272
+ const clusters = useMemo(() => {
273
+ return rawClusters
274
+ .map((rawCluster, index) => {
275
+ const item = mapClusterToListItem(rawCluster, index);
276
+ if (!item)
277
+ return undefined;
278
+ // Add cluster load data if available
279
+ const clusterLoad = clusterLoadData.get(item.id);
280
+ const clusterWithLoad = {
281
+ ...item,
282
+ currentClusterLoad: clusterLoad,
283
+ };
284
+ return clusterWithLoad;
285
+ })
286
+ .filter((item) => Boolean(item));
287
+ }, [rawClusters, clusterLoadData]);
288
+ const clusterById = useMemo(() => {
289
+ const map = new Map();
290
+ for (const cluster of clusters) {
291
+ map.set(cluster.id, cluster);
292
+ }
293
+ return map;
294
+ }, [clusters]);
295
+ const clusterStatusById = useMemo(() => {
296
+ const statusMap = new Map();
297
+ for (const cluster of clusters) {
298
+ if (cluster) {
299
+ statusMap.set(cluster.id, normalizeStatus(cluster.status));
300
+ }
301
+ }
302
+ return statusMap;
303
+ }, [clusters]);
304
+ const unsupportedGenerationById = useMemo(() => {
305
+ const map = new Map();
306
+ for (const rawCluster of rawClusters) {
307
+ const clusterId = getString(rawCluster, 'uuid') ??
308
+ getString(rawCluster, 'id') ??
309
+ getString(rawCluster, 'clusterId');
310
+ if (!clusterId) {
311
+ continue;
312
+ }
313
+ const isUnsupportedStarting = getPathUnknown(rawCluster, [
314
+ 'generation',
315
+ 'isUnsupportedStarting',
316
+ ]);
317
+ if (typeof isUnsupportedStarting !== 'string' ||
318
+ !isUnsupportedStarting) {
319
+ map.set(clusterId, false);
320
+ continue;
321
+ }
322
+ const start = new Date(isUnsupportedStarting).getTime();
323
+ map.set(clusterId, Number.isFinite(start) && Date.now() > start);
324
+ }
325
+ return map;
326
+ }, [rawClusters]);
327
+ const hasEncryptionWarning = useMemo(() => {
328
+ return rawClusters.some((cluster) => {
329
+ return (cluster.primaryEncryptionKeyId === null &&
330
+ cluster.encryption === ClusterEncryptionKey.EXTERNAL);
331
+ });
332
+ }, [rawClusters]);
333
+ const safeTranslate = (key, fallback, options) => {
334
+ try {
335
+ const translated = runtime.i18n?.t(key, options);
336
+ if (!translated || translated === key) {
337
+ return fallback;
338
+ }
339
+ // i18next can return the key *without* the namespace when the namespace is missing.
340
+ // Example: `c4console:clusters.list.trialExpired.title` -> `clusters.list.trialExpired.title`
341
+ if (key.includes(':')) {
342
+ const withoutNamespace = key.split(':').slice(1).join(':');
343
+ if (translated === withoutNamespace) {
344
+ return fallback;
345
+ }
346
+ }
347
+ return translated;
348
+ }
349
+ catch {
350
+ return fallback;
351
+ }
352
+ };
353
+ const trialState = useMemo(() => {
354
+ if (!orgInfo || typeof orgInfo !== 'object') {
355
+ return {
356
+ isTrial: false,
357
+ trialStateExpired: false,
358
+ showClusterListBanner: false,
359
+ };
360
+ }
361
+ const orgInfoRecord = orgInfo;
362
+ const organizationToSalesPlan = getPathUnknown(orgInfoRecord, ['organizationToSalesPlan']) ?? {};
363
+ const salesPlanTypeRaw = getPathString(organizationToSalesPlan, [
364
+ 'salesPlan',
365
+ 'salesPlanType',
366
+ ]);
367
+ const isTrial = salesPlanTypeRaw === SalesPlanType.TRIAL;
368
+ const trialStateExpired = getBoolean(organizationToSalesPlan, 'trialStateExpired') ?? false;
369
+ const trialExpirationDateRaw = getString(organizationToSalesPlan, 'trialExpirationDate');
370
+ const trialExpirationMs = trialExpirationDateRaw
371
+ ? new Date(trialExpirationDateRaw).getTime()
372
+ : Number.NaN;
373
+ const countdownDays = Number.isFinite(trialExpirationMs)
374
+ ? Math.round((trialExpirationMs - Date.now()) / 1000 / 60 / 60 / 24)
375
+ : undefined;
376
+ const showClusterListBanner = isTrial &&
377
+ !trialStateExpired &&
378
+ typeof countdownDays === 'number' &&
379
+ countdownDays <= 7 &&
380
+ countdownDays >= 0;
381
+ return {
382
+ isTrial,
383
+ trialStateExpired,
384
+ showClusterListBanner,
385
+ };
386
+ }, [orgInfo]);
387
+ const isOrgAdmin = useMemo(() => {
388
+ const orgAdminRoles = new Set([
389
+ OrganizationRole.ADMIN,
390
+ OrganizationRole.OWNER,
391
+ OrganizationRole.ORGANIZATION_ADMIN,
392
+ OrganizationRole.ORGANIZATION_OWNER,
393
+ ]);
394
+ const roles = authz.orgRoles ?? [];
395
+ return roles.some((role) => orgAdminRoles.has(role));
396
+ }, [authz]);
397
+ const contactUrl = 'https://camunda.com/contact';
398
+ const derivedTrialNotification = useMemo(() => {
399
+ if (!trialState.showClusterListBanner) {
400
+ return undefined;
401
+ }
402
+ const prelude = safeTranslate('c4console:clusters.list.banner.trialIsAboutToExpirePrelude', 'Your trial is about to expire.');
403
+ const actionText = isOrgAdmin
404
+ ? safeTranslate('c4console:clusters.list.banner.actionAdmin', 'Upgrade your plan to keep using Camunda.')
405
+ : safeTranslate('c4console:clusters.list.banner.actionMember', 'Contact your admin to upgrade your plan.');
406
+ return (_jsx(C4ClustersTrialNotification, { title: `${prelude} ${actionText}`, showUpgradeAction: isOrgAdmin, upgradeButtonLabel: safeTranslate('c4console:clusters.list.banner.upgradeButton', 'Upgrade'), onUpgradeClick: () => openUrlInNewTab(contactUrl) }));
407
+ }, [
408
+ contactUrl,
409
+ isOrgAdmin,
410
+ safeTranslate,
411
+ trialState.showClusterListBanner,
412
+ ]);
413
+ const encryptionNotification = hasEncryptionWarning
414
+ ? {
415
+ kind: 'warning',
416
+ title: safeTranslate('c4console:clusters.encryption.notification.title', 'Action Required'),
417
+ subtitle: safeTranslate('c4console:clusters.encryption.notification.text', 'Complete the remaining steps to finalize the cluster creation.'),
418
+ lowContrast: true,
419
+ hideCloseButton: true,
420
+ }
421
+ : undefined;
422
+ const derivedPermissions = useMemo(() => {
423
+ const clustersVisibility = authz.visibilities.clusters;
424
+ const base = {
425
+ canCreateCluster: clustersVisibility?.canCreate ?? false,
426
+ canEditCluster: clustersVisibility?.canEdit ?? false,
427
+ canDeleteCluster: clustersVisibility?.canDelete ?? false,
428
+ canUpdateTag: clustersVisibility?.canUpdateTag ?? false,
429
+ canSeeClusterLoad: clustersVisibility?.canSeeClusterLoad ?? false,
430
+ canWakeCluster: clustersVisibility?.canWake ?? false,
431
+ createClusterButtonDisabled: !(clustersVisibility?.canCreate ?? false),
432
+ };
433
+ return mergePermissions(base, permissionsOverride);
434
+ }, [authz.visibilities.clusters, permissionsOverride]);
435
+ const resolvedTranslations = useMemo(() => {
436
+ if (translations) {
437
+ return translations;
438
+ }
439
+ const t = runtime.i18n?.t;
440
+ return buildDefaultTranslations((key) => t?.(key) ?? key);
441
+ }, [runtime.i18n, translations]);
442
+ const urls = useMemo(() => {
443
+ return {
444
+ clusterDetails: (clusterId) => encodeClusterDetailsUrl(orgId, clusterId),
445
+ createCluster: encodeCreateClusterUrl(orgId),
446
+ };
447
+ }, [orgId]);
448
+ const handleNavigate = useCallback((url) => {
449
+ const event = decodeNavigateUrl(url);
450
+ if (event) {
451
+ onNavigate?.(event);
452
+ return;
453
+ }
454
+ runtime.telemetry?.track?.('c4Clusters.navigate.unknown', { url });
455
+ }, [onNavigate, runtime.telemetry]);
456
+ const derivedEmptyStateContent = useMemo(() => {
457
+ // Avoid flashing the empty state before we know whether clusters exist.
458
+ if (isLoading || authz.isLoading) {
459
+ return undefined;
460
+ }
461
+ if (trialState.isTrial && trialState.trialStateExpired) {
462
+ const variant = isOrgAdmin ? 'trialExpiredAdmin' : 'trialExpiredMember';
463
+ return (_jsx(C4ClustersEmptyState, { variant: variant, onUpgrade: isOrgAdmin ? () => openUrlInNewTab(contactUrl) : undefined, texts: {
464
+ noClusters: {
465
+ heading: safeTranslate('c4console:clusters.emptyState.noClusters.heading', 'Processes run on clusters'),
466
+ description: safeTranslate('c4console:clusters.emptyState.noClusters.description', 'Create a cluster to get started.'),
467
+ createButtonLabel: resolvedTranslations.createButton,
468
+ docsLinkLabel: safeTranslate('c4console:clusters.emptyState.noClusters.docsLinkLabel', 'View The Getting Started Guide'),
469
+ },
470
+ trialExpired: {
471
+ heading: safeTranslate('c4console:clusters.list.trialExpired.title', 'Your trial has expired'),
472
+ adminDescription: safeTranslate('c4console:clusters.list.trialExpired.admin.text', 'Upgrade your plan to continue using Camunda.'),
473
+ memberDescription: safeTranslate('c4console:clusters.list.trialExpired.member.text', 'Contact your admin to upgrade your plan.'),
474
+ upgradeButtonLabel: safeTranslate('c4console:clusters.list.trialExpired.admin.upgradeButton', 'Upgrade'),
475
+ },
476
+ } }));
477
+ }
478
+ if (clusters.length !== 0) {
479
+ return undefined;
480
+ }
481
+ const createButtonLabel = safeTranslate('c4console:clusters.emptyState.noClusters.createButtonLabel', 'Create new cluster');
482
+ const descriptionPrefix = safeTranslate('c4console:clusters.emptyState.noClusters.descriptionPrefix', 'Click ');
483
+ const descriptionSuffix = safeTranslate('c4console:clusters.emptyState.noClusters.descriptionSuffix', ' to have a place to execute your processes');
484
+ return (_jsx(C4ClustersEmptyState, { variant: 'noClusters', docsHref: gettingStartedHref, onCreateCluster: derivedPermissions.canCreateCluster
485
+ ? () => handleNavigate(urls.createCluster)
486
+ : undefined, createClusterButtonDisabled: derivedPermissions.createClusterButtonDisabled, texts: {
487
+ noClusters: {
488
+ heading: safeTranslate('c4console:clusters.emptyState.noClusters.heading', 'Processes run on clusters'),
489
+ description: (_jsxs("span", { children: [descriptionPrefix, _jsx("strong", { children: createButtonLabel }), descriptionSuffix] })),
490
+ createButtonLabel,
491
+ docsLinkLabel: safeTranslate('c4console:clusters.emptyState.noClusters.docsLinkLabel', 'View The Getting Started Guide'),
492
+ },
493
+ trialExpired: {
494
+ heading: safeTranslate('c4console:clusters.list.trialExpired.title', 'Your trial has expired'),
495
+ adminDescription: safeTranslate('c4console:clusters.list.trialExpired.admin.text', 'Upgrade your plan to continue using Camunda.'),
496
+ memberDescription: safeTranslate('c4console:clusters.list.trialExpired.member.text', 'Contact your admin to upgrade your plan.'),
497
+ upgradeButtonLabel: safeTranslate('c4console:clusters.list.trialExpired.admin.upgradeButton', 'Upgrade'),
498
+ },
499
+ } }));
500
+ }, [
501
+ authz.isLoading,
502
+ clusters.length,
503
+ contactUrl,
504
+ derivedPermissions.canCreateCluster,
505
+ derivedPermissions.createClusterButtonDisabled,
506
+ gettingStartedHref,
507
+ handleNavigate,
508
+ isLoading,
509
+ isOrgAdmin,
510
+ resolvedTranslations.createButton,
511
+ safeTranslate,
512
+ trialState.isTrial,
513
+ trialState.trialStateExpired,
514
+ urls.createCluster,
515
+ ]);
516
+ const handleDeleteCluster = (clusterId) => {
517
+ onRequestDeleteCluster?.(clusterId);
518
+ if (!onRequestDeleteCluster) {
519
+ const cluster = clusterById.get(clusterId);
520
+ setDeleteTarget({
521
+ clusterId,
522
+ clusterName: cluster?.name ?? clusterId,
523
+ });
524
+ setDeleteConfirmation('');
525
+ setDeleteError(undefined);
526
+ setDeleteModalOpen(true);
527
+ runtime.telemetry?.track?.('c4Clusters.delete.requested', { clusterId });
528
+ }
529
+ };
530
+ const handleAssignTag = (clusterId) => {
531
+ onRequestAssignTag?.(clusterId);
532
+ if (!onRequestAssignTag) {
533
+ const cluster = clusterById.get(clusterId);
534
+ setTagTarget({
535
+ clusterId,
536
+ clusterName: cluster?.name ?? clusterId,
537
+ });
538
+ setSelectedTag('');
539
+ setTagError(undefined);
540
+ setTagModalOpen(true);
541
+ runtime.telemetry?.track?.('c4Clusters.tag.requested', { clusterId });
542
+ }
543
+ };
544
+ const handleWakeCluster = (clusterId) => {
545
+ onRequestWakeCluster?.(clusterId);
546
+ if (!onRequestWakeCluster) {
547
+ const cluster = clusterById.get(clusterId);
548
+ setWakeTarget({
549
+ clusterId,
550
+ clusterName: cluster?.name ?? clusterId,
551
+ });
552
+ setWakeError(undefined);
553
+ setWakeModalOpen(true);
554
+ runtime.telemetry?.track?.('c4Clusters.wake.requested', { clusterId });
555
+ }
556
+ };
557
+ const isClusterPausedFallback = (clusterId) => {
558
+ const status = clusterStatusById.get(clusterId);
559
+ return status === 'suspended';
560
+ };
561
+ const isRunningOnUnsupportedGenerationFallback = (clusterId) => {
562
+ return unsupportedGenerationById.get(clusterId) ?? false;
563
+ };
564
+ const isPageLoading = isLoading || authz.isLoading;
565
+ useEffect(() => {
566
+ if (!error) {
567
+ return;
568
+ }
569
+ runtime.telemetry?.captureException?.(error, {
570
+ widget: 'C4ClustersPage',
571
+ orgId,
572
+ });
573
+ }, [error, orgId, runtime.telemetry]);
574
+ return (_jsxs(_Fragment, { children: [_jsx(C4ClusterList, { orgId: orgId, clusters: clusters, loading: isPageLoading, urls: urls, permissions: derivedPermissions, onNavigate: handleNavigate, onDeleteCluster: handleDeleteCluster, onAssignTag: handleAssignTag, onWakeCluster: handleWakeCluster, trialNotification: derivedTrialNotification, encryptionNotification: encryptionNotification, clusterCapMessage: clusterCapMessage, emptyStateContent: derivedEmptyStateContent, translations: resolvedTranslations, isClusterPaused: isClusterPausedOverride ?? isClusterPausedFallback, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride ??
575
+ isRunningOnUnsupportedGenerationFallback }), deleteTarget ? (_jsx(Modal, { open: deleteModalOpen, danger: true, modalHeading: safeTranslate('clustermodals:delete.heading', 'Delete cluster'), primaryButtonText: safeTranslate('clustermodals:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate('clustermodals:delete.buttons.secondary', 'Cancel'), primaryButtonDisabled: deleteBusy || deleteConfirmation.trim() !== 'DELETE', onRequestClose: () => {
576
+ if (deleteBusy)
577
+ return;
578
+ setDeleteModalOpen(false);
579
+ }, onRequestSubmit: async () => {
580
+ if (deleteBusy)
581
+ return;
582
+ setDeleteError(undefined);
583
+ setDeleteBusy(true);
584
+ try {
585
+ const { ConsoleClusterService } = await import('@camunda/ccma-api');
586
+ await ConsoleClusterService.deleteCluster({
587
+ config: apiConfig,
588
+ params: { orgId, clusterId: deleteTarget.clusterId },
589
+ });
590
+ data.invalidateClusters(orgId);
591
+ data.invalidateClusterCapacity(orgId);
592
+ await data.fetchClusters(orgId, { force: true });
593
+ setDeleteModalOpen(false);
594
+ }
595
+ catch (error) {
596
+ const message = error instanceof Error ? error.message : 'Unknown error';
597
+ setDeleteError(message);
598
+ runtime.telemetry?.captureException?.(error, {
599
+ widget: 'C4ClustersPage',
600
+ action: 'delete',
601
+ orgId,
602
+ clusterId: deleteTarget.clusterId,
603
+ });
604
+ }
605
+ finally {
606
+ setDeleteBusy(false);
607
+ }
608
+ }, children: _jsxs(Stack, { gap: 4, children: [deleteError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:delete.error.generic', 'Error deleting cluster'), subtitle: deleteError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:delete.description', `This will permanently delete ${deleteTarget.clusterName}.`, { clusterName: deleteTarget.clusterName }) }), _jsx(TextInput, { id: 'c4-delete-cluster-confirmation', labelText: safeTranslate('clustermodals:delete.confirm.label', 'Type the word DELETE to confirm'), value: deleteConfirmation, onChange: (e) => setDeleteConfirmation(e.target.value), disabled: deleteBusy })] }) })) : null, tagTarget ? (_jsx(Modal, { open: tagModalOpen, modalHeading: safeTranslate('clustermodals:assignTag.heading', 'Assign cluster tag'), primaryButtonText: safeTranslate('clustermodals:assignTag.buttons.primary', 'Assign'), secondaryButtonText: safeTranslate('clustermodals:assignTag.buttons.secondary', 'Cancel'), primaryButtonDisabled: tagBusy || selectedTag === '', onRequestClose: () => {
609
+ if (tagBusy)
610
+ return;
611
+ setTagModalOpen(false);
612
+ }, onRequestSubmit: async () => {
613
+ if (tagBusy || selectedTag === '')
614
+ return;
615
+ setTagError(undefined);
616
+ setTagBusy(true);
617
+ try {
618
+ const { ConsoleClusterService } = await import('@camunda/ccma-api');
619
+ await ConsoleClusterService.updateCluster({
620
+ config: apiConfig,
621
+ params: { orgId, clusterId: tagTarget.clusterId },
622
+ body: {
623
+ labels: {
624
+ custom: [],
625
+ camunda: [selectedTag],
626
+ },
627
+ },
628
+ });
629
+ data.invalidateClusters(orgId);
630
+ await data.fetchClusters(orgId, { force: true });
631
+ setTagModalOpen(false);
632
+ }
633
+ catch (error) {
634
+ const message = error instanceof Error ? error.message : 'Unknown error';
635
+ setTagError(message);
636
+ runtime.telemetry?.captureException?.(error, {
637
+ widget: 'C4ClustersPage',
638
+ action: 'assignTag',
639
+ orgId,
640
+ clusterId: tagTarget.clusterId,
641
+ });
642
+ }
643
+ finally {
644
+ setTagBusy(false);
645
+ }
646
+ }, children: _jsxs(Stack, { gap: 4, children: [tagError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:assignTag.errorMessage', 'Error assigning tag'), subtitle: tagError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:assignTag.description', `Assign an environment tag to ${tagTarget.clusterName}.`) }), _jsxs(Select, { id: 'c4-assign-cluster-tag', labelText: safeTranslate('clustermodals:assignTag.label', 'Tag'), value: selectedTag, disabled: tagBusy, onChange: (e) => {
647
+ const value = e.target.value;
648
+ setSelectedTag(value);
649
+ }, children: [_jsx(SelectItem, { value: '', text: 'Select a tag' }), _jsx(SelectItem, { value: 'dev', text: 'dev' }), _jsx(SelectItem, { value: 'test', text: 'test' }), _jsx(SelectItem, { value: 'stage', text: 'stage' }), _jsx(SelectItem, { value: 'prod', text: 'prod' })] })] }) })) : null, wakeTarget ? (_jsx(Modal, { open: wakeModalOpen, modalHeading: safeTranslate('clustermodals:resume.heading', 'Resume cluster'), primaryButtonText: safeTranslate('clustermodals:resume.buttons.primary', 'Resume'), secondaryButtonText: safeTranslate('clustermodals:resume.buttons.secondary', 'Cancel'), primaryButtonDisabled: wakeBusy, onRequestClose: () => {
650
+ if (wakeBusy)
651
+ return;
652
+ setWakeModalOpen(false);
653
+ }, onRequestSubmit: async () => {
654
+ if (wakeBusy)
655
+ return;
656
+ setWakeError(undefined);
657
+ setWakeBusy(true);
658
+ try {
659
+ const { ConsoleClusterService } = await import('@camunda/ccma-api');
660
+ await ConsoleClusterService.wakeCluster({
661
+ config: apiConfig,
662
+ params: { orgId, clusterId: wakeTarget.clusterId },
663
+ });
664
+ data.invalidateClusters(orgId);
665
+ await data.fetchClusters(orgId, { force: true });
666
+ setWakeModalOpen(false);
667
+ }
668
+ catch (error) {
669
+ const message = error instanceof Error ? error.message : 'Unknown error';
670
+ setWakeError(message);
671
+ runtime.telemetry?.captureException?.(error, {
672
+ widget: 'C4ClustersPage',
673
+ action: 'wake',
674
+ orgId,
675
+ clusterId: wakeTarget.clusterId,
676
+ });
677
+ }
678
+ finally {
679
+ setWakeBusy(false);
680
+ }
681
+ }, children: _jsxs(Stack, { gap: 4, children: [wakeError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:resume.errorMessage', 'Error resuming cluster'), subtitle: wakeError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:resume.description', `Resume ${wakeTarget.clusterName}?`) })] }) })) : null] }));
682
+ });