@camunda/ccma-saas-frontend 0.0.46 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -1,18 +1,65 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  /*
3
3
  * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3ClusterTag, } from '@camunda/camunda-composite-components';
8
- import { Button, CodeSnippet, Layer, Link, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextArea, Tooltip, } from '@carbon/react';
9
- import { Add, Information, Launch, Pause, Play, UpdateNow, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
8
+ import { Layer } from '@carbon/react';
9
+ import { Add, Checkmark, Copy, Information, Launch, Pause, Play, UpdateNow, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
10
10
  import { useEffect, useRef, useState } from 'react';
11
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
+ import { Button, CodeSnippet, Link, TextArea, Tooltip } from '../../ui/index.js';
11
13
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
12
14
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
15
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
13
16
  import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
14
17
  import { ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
18
+ // Carbon's `CodeSnippet` ships a built-in copy button; the DS carbon-compat
19
+ // adapter drops it (no equivalent yet), so DS mode needs its own copy
20
+ // affordance. The `height: 0` `Layer` wrapper is a Carbon-only trick to keep
21
+ // the snippet from growing the fixed-height row — it doesn't apply in DS
22
+ // mode, which renders the snippet inline and lets the cell's own vertical
23
+ // centering handle alignment.
24
+ const ClusterDetailsIdValue = (props) => {
25
+ const designSystem = useC4DesignSystem();
26
+ const [copied, setCopied] = useState(false);
27
+ const resetTimerRef = useRef(null);
28
+ useEffect(() => {
29
+ return () => {
30
+ if (resetTimerRef.current !== null) {
31
+ window.clearTimeout(resetTimerRef.current);
32
+ }
33
+ };
34
+ }, []);
35
+ if (designSystem !== 'ds') {
36
+ return (_jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.value }) }));
37
+ }
38
+ const handleCopy = async () => {
39
+ if (!navigator.clipboard?.writeText) {
40
+ return;
41
+ }
42
+ try {
43
+ await navigator.clipboard.writeText(props.value);
44
+ setCopied(true);
45
+ if (resetTimerRef.current !== null) {
46
+ window.clearTimeout(resetTimerRef.current);
47
+ }
48
+ resetTimerRef.current = window.setTimeout(() => setCopied(false), 2000);
49
+ }
50
+ catch {
51
+ // Clipboard access might be denied / unavailable.
52
+ }
53
+ };
54
+ return (_jsxs("div", { style: {
55
+ display: 'inline-flex',
56
+ alignItems: 'center',
57
+ gap: 'var(--cds-spacing-02)',
58
+ maxWidth: '22rem',
59
+ }, children: [_jsx(CodeSnippet, { type: 'single', children: props.value }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: copied ? Checkmark : Copy, iconDescription: copied ? props.copiedLabel : props.copyLabel, "aria-label": copied ? props.copiedLabel : props.copyLabel, onClick: handleCopy })] }));
60
+ };
15
61
  export const ClusterDetails = (props) => {
62
+ const isDsMode = useC4DesignSystem() === 'ds';
16
63
  const [isEditingDescription, setIsEditingDescription] = useState(false);
17
64
  const [descriptionValue, setDescriptionValue] = useState('');
18
65
  const [descriptionError, setDescriptionError] = useState('');
@@ -66,16 +113,21 @@ export const ClusterDetails = (props) => {
66
113
  };
67
114
  const component = (_jsxs(C4TileWithTitleAndAction, { title: props.title, children: [(() => {
68
115
  if (props.cta) {
69
- return (_jsx(C4ActionableNotification, { kind: 'info', title: props.cta.title, subtitle: props.cta.text, actionButtonLabel: props.cta.actionLabel, onActionButtonClick: props.cta.action, lowContrast: true, orientation: 'vertical' }));
116
+ return (_jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', title: props.cta.title, subtitle: props.cta.text, actionButtonLabel: props.cta.actionLabel, onActionButtonClick: props.cta.action, lowContrast: true, orientation: 'vertical' }));
70
117
  }
71
118
  else {
72
119
  return _jsx(_Fragment, {});
73
120
  }
74
- })(), _jsx(StructuredListWrapper, { children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, style: { width: '10rem' }, children: props.name.label }), _jsx(StructuredListCell, { noWrap: true, children: props.name.value })] }), props.description && (_jsxs(StructuredListRow, { style: { minHeight: isEditingDescription ? 'auto' : '61px' }, children: [_jsx(StructuredListCell, { noWrap: true, style: {
121
+ })(), _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '10rem' }, children: props.name.label }), _jsx(C4StructuredListCell, { noWrap: true, children: props.name.value })] }), props.description && (_jsxs(C4StructuredListRow, { style: {
122
+ minHeight: isDsMode && isEditingDescription ? 'auto' : '61px',
123
+ }, children: [_jsx(C4StructuredListCell, { noWrap: true, style: {
75
124
  width: '10rem',
76
- verticalAlign: 'top',
77
- paddingTop: '1rem',
78
- }, children: props.description.label }), _jsx(StructuredListCell, { children: isEditingDescription ? (_jsxs("div", { style: {
125
+ ...(isDsMode && isEditingDescription
126
+ ? { verticalAlign: 'top', paddingTop: '1rem' }
127
+ : {}),
128
+ }, children: props.description.label }), _jsx(C4StructuredListCell, { style: isDsMode && isEditingDescription
129
+ ? { verticalAlign: 'top' }
130
+ : {}, children: isEditingDescription ? (_jsxs("div", { style: {
79
131
  display: 'flex',
80
132
  flexDirection: 'column',
81
133
  gap: '0.5rem',
@@ -86,33 +138,33 @@ export const ClusterDetails = (props) => {
86
138
  display: 'inline-grid',
87
139
  gridAutoFlow: 'column',
88
140
  gap: '1.5rem',
89
- alignItems: 'start',
141
+ alignItems: 'center',
90
142
  }, children: [_jsx("span", { style: {
91
143
  color: props.description.value
92
144
  ? 'inherit'
93
145
  : 'var(--cds-text-secondary)',
94
146
  wordBreak: 'break-word',
95
147
  }, children: props.description.value ||
96
- props.description.noDescription }), (props.description.updateVisible ?? true) && (_jsx(C4LinkButton, { label: props.description.editLabel, onClick: handleEditDescription, disabled: props.description.updateDisabled ?? false }))] })) })] })), props.status && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, style: { width: '10rem' }, children: props.status.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsxs("div", { style: {
148
+ props.description.noDescription }), (props.description.updateVisible ?? true) && (_jsx(C4LinkButton, { label: props.description.editLabel, onClick: handleEditDescription, disabled: props.description.updateDisabled ?? false }))] })) })] })), props.status && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '10rem' }, children: props.status.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsxs("div", { style: {
97
149
  display: 'inline-grid',
98
150
  gridAutoFlow: 'column',
99
151
  gap: '1.5rem',
100
152
  alignItems: 'center',
101
- }, children: [normalizedStatus ? (_jsx(ClusterStatusElement, { status: normalizedStatus, infoTooltip: props.status.infoTooltip, onInfoClick: props.status.onInfoClick })) : (props.status.value), renderStatusButton()] }) })] })), _jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.generation.label }), _jsx(StructuredListCell, { children: _jsxs("div", { style: {
153
+ }, children: [normalizedStatus ? (_jsx(ClusterStatusElement, { status: normalizedStatus, infoTooltip: props.status.infoTooltip, onInfoClick: props.status.onInfoClick })) : (props.status.value), renderStatusButton()] }) })] })), _jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.generation.label }), _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
102
154
  display: 'grid',
103
155
  gridTemplateColumns: 'auto 1fr',
104
156
  gap: '0.5rem',
105
157
  alignItems: 'center',
106
- }, children: [_jsx("p", { children: props.generation.value }), props.status?.value.toLowerCase() === 'healthy' && (_jsx(ClusterDetailsGenerationUpdate, { ...props.generation.update }))] }) })] }), props.type && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.type.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsxs("div", { style: {
158
+ }, children: [_jsx("p", { children: props.generation.value }), props.status?.value.toLowerCase() === 'healthy' && (_jsx(ClusterDetailsGenerationUpdate, { ...props.generation.update }))] }) })] }), props.type && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.type.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsxs("div", { style: {
107
159
  display: 'inline-grid',
108
160
  gridAutoFlow: 'column',
109
161
  gap: '1.5rem',
110
162
  alignItems: 'center',
111
- }, children: [props.type.value, renderUpdateHwPackageButton()] }) })] })), props.provider.value && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { children: props.provider.label }), _jsx(StructuredListCell, { children: props.provider.value })] })), props.region && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.region.label }), _jsx(StructuredListCell, { noWrap: true, children: props.region.value })] })), props.backupRegion && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.backupRegion.label }), _jsx(StructuredListCell, { noWrap: true, children: props.backupRegion.value })] })), props.encryption && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.encryption.label }), _jsx(StructuredListCell, { noWrap: true, children: props.encryption.value })] })), props.tags && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.tags.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx("div", { style: {
163
+ }, children: [props.type.value, renderUpdateHwPackageButton()] }) })] })), props.provider.value && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { children: props.provider.label }), _jsx(C4StructuredListCell, { children: props.provider.value })] })), props.region && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.region.label }), _jsx(C4StructuredListCell, { noWrap: true, children: props.region.value })] })), props.backupRegion && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.backupRegion.label }), _jsx(C4StructuredListCell, { noWrap: true, children: props.backupRegion.value })] })), props.encryption && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.encryption.label }), _jsx(C4StructuredListCell, { noWrap: true, children: props.encryption.value })] })), props.tags && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.tags.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsx("div", { style: {
112
164
  display: 'grid',
113
165
  gridTemplateColumns: 'auto 1fr',
114
166
  gap: '0.5rem',
115
- }, children: props.tags.value?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { children: props.tags.value.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, `cluster-tag-${tag}`))) }), props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.updateTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, disabled: props.tags.updateDisabled }))] })) : (props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.addTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, icon: _jsx(Add, {}), disabled: props.tags.updateDisabled }))) }) })] })), props.regionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.regionId.label }), _jsx(StructuredListCell, { children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.regionId.value }) }) })] })), props.backupRegionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.backupRegionId.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.backupRegionId.value }) }) })] })), _jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.id.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.id.value }) }) })] }), props.swaggerUrl && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.swaggerUrl.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsxs("span", { style: {
167
+ }, children: props.tags.value?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { children: props.tags.value.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, `cluster-tag-${tag}`))) }), props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.updateTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, disabled: props.tags.updateDisabled }))] })) : (props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.addTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, icon: _jsx(Add, {}), disabled: props.tags.updateDisabled }))) }) })] })), props.regionId && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.regionId.label }), _jsx(C4StructuredListCell, { children: _jsx(ClusterDetailsIdValue, { value: props.regionId.value, copyLabel: props.copyValueLabel ?? 'Copy', copiedLabel: props.copyValueCopiedLabel ?? 'Copied!' }) })] })), props.backupRegionId && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.backupRegionId.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsx(ClusterDetailsIdValue, { value: props.backupRegionId.value, copyLabel: props.copyValueLabel ?? 'Copy', copiedLabel: props.copyValueCopiedLabel ?? 'Copied!' }) })] })), _jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.id.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsx(ClusterDetailsIdValue, { value: props.id.value, copyLabel: props.copyValueLabel ?? 'Copy', copiedLabel: props.copyValueCopiedLabel ?? 'Copied!' }) })] }), props.swaggerUrl && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.swaggerUrl.label }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsxs("span", { style: {
116
168
  display: 'inline-flex',
117
169
  alignItems: 'center',
118
170
  gap: 'var(--cds-spacing-02)',
@@ -131,7 +183,7 @@ export const ClusterDetails = (props) => {
131
183
  }, children: _jsx(WarningAltFilled, {}) }) })), _jsxs(Link, { href: props.swaggerUrl.url, target: '_blank', rel: 'noopener noreferrer', children: [props.swaggerUrl.linkLabel, _jsx(Launch, { style: {
132
184
  marginLeft: 'var(--cds-spacing-02)',
133
185
  verticalAlign: 'middle',
134
- } })] })] }) })] })), props.created && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.created.label }), _jsx(StructuredListCell, { noWrap: true, children: props.created.value })] }))] }) })] }));
186
+ } })] })] }) })] })), props.created && (_jsxs(C4StructuredListRow, { style: rowStyle, children: [_jsx(C4StructuredListCell, { noWrap: true, children: props.created.label }), _jsx(C4StructuredListCell, { noWrap: true, children: props.created.value })] }))] }) })] }));
135
187
  return component;
136
188
  };
137
189
  export const ClusterDetailsGenerationUpdate = (props) => {
@@ -139,7 +191,7 @@ export const ClusterDetailsGenerationUpdate = (props) => {
139
191
  const latestMessage = 'No updates available - running on latest available version';
140
192
  switch (props.updateType) {
141
193
  case 'update-available':
142
- component = (_jsx(Button, { onClick: () => props.updateStates.updateAvailable.action?.(), disabled: !props.updateStates.updateAvailable.action, size: 'sm', renderIcon: UpdateNow, children: props.updateStates.updateAvailable.label }));
194
+ component = (_jsx(Button, { onClick: () => props.updateStates.updateAvailable.action?.(), disabled: !props.updateStates.updateAvailable.action, size: 'sm', renderIcon: UpdateNow, style: { justifySelf: 'start' }, children: props.updateStates.updateAvailable.label }));
143
195
  break;
144
196
  case 'update-available-no-permissions':
145
197
  component = (_jsxs("div", { style: {
@@ -5,13 +5,17 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { AreaChart, MeterChart, ScaleTypes, } from '@carbon/charts-react';
8
- import { Loading, Stack, Tag, Tooltip } from '@carbon/react';
9
8
  import { Renew } from '@carbon/react/icons/index.esm.js';
10
9
  import { useState } from 'react';
10
+ import { Area, CartesianGrid, AreaChart as DsAreaChart, Legend, Tooltip as RechartsTooltip, ResponsiveContainer, XAxis, YAxis, } from 'recharts';
11
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
+ import { Loading, Stack, Tag, Tooltip } from '../../ui/index.js';
11
13
  import { CHART_COLORS } from '../c4-billing-page/elements/value-metric.js';
12
14
  import { C4Divider } from '../c4-divider/c4-divider.js';
13
15
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
14
16
  import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
17
+ import { DsMeterChart } from '../shared-charts/ds-meter-chart.js';
18
+ import { DS_CHART_AXIS_COLOR, DS_CHART_GRID_COLOR, DS_CHART_TOOLTIP_PROPS, DS_STATUS_COLORS, getDsSeriesColor, } from '../shared-charts/recharts-tokens.js';
15
19
  import { getClusterLoadConfig } from './c4-cluster-overview.js';
16
20
  export const ClusterLoad = (props) => {
17
21
  const component = (_jsx("div", { style: { position: 'relative' }, className: 'cluster-load', children: _jsx(C4TileWithTitleAndAction, { title: props.texts.title, action: {
@@ -24,6 +28,7 @@ export const ClusterLoad = (props) => {
24
28
  return component;
25
29
  };
26
30
  const HistoricChart = (props) => {
31
+ const designSystem = useC4DesignSystem();
27
32
  const initialChartOption = '24h';
28
33
  const generateChartData = (option) => {
29
34
  const data = [];
@@ -118,6 +123,19 @@ const HistoricChart = (props) => {
118
123
  minute: '2-digit',
119
124
  }).format(date);
120
125
  };
126
+ const dsRows = chartData.reduce((rows, point) => {
127
+ const row = rows[point.date] ?? { date: point.date };
128
+ row[point.group] = point.value;
129
+ rows[point.date] = row;
130
+ return rows;
131
+ }, {});
132
+ const dsChartData = Object.values(dsRows);
133
+ const DsHistoricTooltip = ({ active, payload, label, }) => {
134
+ if (!active || !payload?.length || !label)
135
+ return null;
136
+ const byGroup = Object.fromEntries(payload.map((entry) => [entry.dataKey, entry.value]));
137
+ return (_jsxs("div", { style: DS_CHART_TOOLTIP_PROPS.contentStyle, children: [_jsx("div", { style: DS_CHART_TOOLTIP_PROPS.labelStyle, children: formatDateTime(new Date(label)) }), ['avg', 'max', 'min'].map((group, index) => byGroup[group] === undefined ? null : (_jsxs("div", { style: { color: getDsSeriesColor(index) }, children: [group, ": ", Number(byGroup[group]).toFixed(2), "%"] }, group)))] }));
138
+ };
121
139
  const options = {
122
140
  axes: {
123
141
  bottom: {
@@ -256,14 +274,30 @@ const HistoricChart = (props) => {
256
274
  }, type: currentOption === currentChartOption.option
257
275
  ? 'high-contrast'
258
276
  : 'outline', style: { borderWidth: '0px', cursor: 'pointer' }, children: currentChartOption.text }, `chart-option-${currentChartOption.option}`));
259
- })] }), _jsx(AreaChart, { data: chartData, options: options }, props.theme)] }));
277
+ })] }), designSystem === 'ds' ? (_jsx(ResponsiveContainer, { width: '100%', height: 300, children: _jsxs(DsAreaChart, { data: dsChartData, margin: { top: 8, right: 16, left: 8, bottom: 8 }, children: [_jsx(CartesianGrid, { stroke: DS_CHART_GRID_COLOR, vertical: false }), _jsx(XAxis, { dataKey: 'date', stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, tickFormatter: (value) => Intl.DateTimeFormat('en-US', {
278
+ month: 'short',
279
+ day: '2-digit',
280
+ }).format(new Date(value)) }), _jsx(YAxis, { stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, tickFormatter: (value) => `${value}%`, label: {
281
+ value: 'Percentage %',
282
+ angle: -90,
283
+ position: 'insideLeft',
284
+ fill: DS_CHART_AXIS_COLOR,
285
+ fontSize: 12,
286
+ } }), _jsx(RechartsTooltip, { content: DsHistoricTooltip }), _jsx(Legend, { wrapperStyle: { color: DS_CHART_AXIS_COLOR, fontSize: 12 } }), _jsx(Area, { type: 'monotone', dataKey: 'avg', stroke: getDsSeriesColor(0), fill: getDsSeriesColor(0), fillOpacity: 0.15, dot: false }), _jsx(Area, { type: 'monotone', dataKey: 'max', stroke: getDsSeriesColor(1), fill: getDsSeriesColor(1), fillOpacity: 0.1, dot: false }), _jsx(Area, { type: 'monotone', dataKey: 'min', stroke: getDsSeriesColor(2), fill: getDsSeriesColor(2), fillOpacity: 0.1, dot: false })] }) })) : (_jsx(AreaChart, { data: chartData, options: options }, props.theme))] }));
260
287
  return component;
261
288
  };
262
289
  // LATEST CHART
263
290
  const LatestChart = (props) => {
264
291
  return _jsx(MeterVisualization, { ...props });
265
292
  };
293
+ const DS_CLUSTER_LOAD_ZONE_COLOR = {
294
+ green: DS_STATUS_COLORS.success,
295
+ warning: DS_STATUS_COLORS.warning,
296
+ red: DS_STATUS_COLORS.danger,
297
+ unknown: DS_STATUS_COLORS.warning,
298
+ };
266
299
  export const MeterVisualization = (props) => {
300
+ const designSystem = useC4DesignSystem();
267
301
  const suspended = props.suspended;
268
302
  const currentPrefix = `${props.texts.current} -`;
269
303
  const currentPostfix = '%';
@@ -318,12 +352,13 @@ export const MeterVisualization = (props) => {
318
352
  }, children: [_jsx("p", { children: data.current }), !suspended && (_jsx("p", { style: {
319
353
  color: currentClusterLoadConfig.color,
320
354
  alignSelf: 'end',
321
- }, children: currentClusterLoadConfig.icon }))] }), _jsx(MeterChart, { data: [
355
+ }, children: currentClusterLoadConfig.icon }))] }), designSystem === 'ds' ? (_jsx(DsMeterChart, { value: currentValue, max: max, color: DS_CLUSTER_LOAD_ZONE_COLOR[currentClusterLoadConfig.type] ??
356
+ DS_STATUS_COLORS.info })) : (_jsx(MeterChart, { data: [
322
357
  {
323
358
  group,
324
359
  value: currentValue,
325
360
  },
326
- ], options: chartOptions }, theme)] }) }) }));
361
+ ], options: chartOptions }, theme))] }) }) }));
327
362
  return component;
328
363
  };
329
364
  function formatNumber(number) {
@@ -1,10 +1,5 @@
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 { Stack } from '@carbon/react';
2
+ import { Stack } from '../../ui/index.js';
8
3
  import { ClusterSettings } from './elements/cluster-settings.js';
9
4
  import { DangerZone } from './elements/danger-zone.js';
10
5
  import { OptimizeFilteringSettings } from './elements/optimize-filtering-settings.js';
@@ -0,0 +1,16 @@
1
+ import type { C4ClusterSettingsProps } from './c4-cluster-settings.types';
2
+ import type { AutoUpdateProps } from './elements/autoUpdate';
3
+ import type { BusinessIdUniquenessToggleProps } from './elements/business-id-uniqueness-toggle';
4
+ import type { DangerZoneProps } from './elements/danger-zone';
5
+ import type { IdentityBasedAuthorizationsProps } from './elements/identity-based-authorizations';
6
+ import type { LowLatencyToggleProps } from './elements/low-latency-toggle';
7
+ import type { McpToggleProps } from './elements/mcp-toggle';
8
+ import type { SwaggerToggleProps } from './elements/swagger-toggle';
9
+ export declare const identityBasedAuthorizations: IdentityBasedAuthorizationsProps;
10
+ export declare const autoUpdate: AutoUpdateProps;
11
+ export declare const lowLatencyToggle: LowLatencyToggleProps;
12
+ export declare const mcpToggle: McpToggleProps;
13
+ export declare const swaggerToggle: SwaggerToggleProps;
14
+ export declare const businessIdUniquenessToggle: BusinessIdUniquenessToggleProps;
15
+ export declare const dangerZone: DangerZoneProps;
16
+ export declare const withSettingsPageProps: C4ClusterSettingsProps;
@@ -0,0 +1,104 @@
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 { Link } from '../../ui/index.js';
8
+ // Mirrors the copy assembled by
9
+ // packages/c4/src/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.tsx
10
+ // for a cluster with authorizations, auto-update, low latency and Swagger
11
+ // enabled (and MCP support / Business ID uniqueness disabled), so the
12
+ // "Settings" tab screenshot matches the deployed page exactly.
13
+ export const identityBasedAuthorizations = {
14
+ enabled: true,
15
+ action: {
16
+ label: 'Enable authorizations',
17
+ onClick: () => console.log('Enable authorizations'),
18
+ },
19
+ permissions: {
20
+ mayToggleIdentityBasedAuthorizations: true,
21
+ },
22
+ description: (_jsxs(_Fragment, { children: [_jsx("p", { children: "When enabled, users and clients will no longer have access to cluster resources and applications, requiring you to define authorizations in the cluster's Admin component." }), _jsx("p", { children: "Organization admins will keep all permissions and access to all resources." }), _jsx("br", {}), _jsx("p", { children: "When disabled, authorizations can be configured for users and clients, but they will remain inactive until the feature is enabled." }), _jsx("br", {}), _jsxs("p", { children: ["Learn more about", ' ', _jsx(Link, { href: 'https://docs.camunda.io/docs/components/console/manage-clusters/manage-authorizations/', target: '_blank', rel: 'noopener noreferrer', children: "managing authorizations" })] })] })),
23
+ };
24
+ export const autoUpdate = {
25
+ enabled: true,
26
+ description: 'When enabled, the cluster will be updated to the latest patch release. For entirely new cluster versions, updates will need to be performed manually. Please note that during the update, there may be a brief period of unavailability for the cluster.',
27
+ permissions: {
28
+ mayChange: true,
29
+ },
30
+ action: {
31
+ label: 'Automatic cluster patch updates',
32
+ onClick: () => console.log('Toggle automatic cluster patch updates'),
33
+ },
34
+ };
35
+ export const lowLatencyToggle = {
36
+ enabled: true,
37
+ description: (_jsxs(_Fragment, { children: ["When enabled, updates and changes in Modeler Play, Operate and Tasklist are applied quicker, which is ideal for testing purposes.", _jsx("br", {}), _jsx("br", {}), "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput."] })),
38
+ permissions: {
39
+ mayChange: true,
40
+ },
41
+ action: {
42
+ label: 'Low latency updates',
43
+ onClick: () => console.log('Toggle low latency updates'),
44
+ },
45
+ };
46
+ export const mcpToggle = {
47
+ enabled: false,
48
+ description: (_jsxs(_Fragment, { children: ["When enabled, the cluster supports Model Context Protocol (MCP) for enhanced orchestration capabilities.", _jsx("br", {}), _jsx("br", {}), "Learn more about the", ' ', _jsx(Link, { href: 'https://docs.camunda.io/docs/next/components/orchestration-cluster/orchestration-cluster-mcp-server/', target: '_blank', rel: 'noopener noreferrer', children: "Orchestration Cluster MCP Server" }), "."] })),
49
+ permissions: {
50
+ mayChange: true,
51
+ },
52
+ action: {
53
+ label: 'Enable MCP Support',
54
+ onClick: () => console.log('Toggle MCP support'),
55
+ },
56
+ };
57
+ export const swaggerToggle = {
58
+ enabled: true,
59
+ description: (_jsxs(_Fragment, { children: ["The Orchestration Cluster REST API is documented using the", ' ', _jsx(Link, { href: 'https://github.com/camunda/camunda/blob/main/zeebe/gateway-protocol/src/main/proto/rest-api.yaml', target: '_blank', children: "OpenAPI specification" }), ". When enabled, it is accessible via Swagger UI.", _jsx("br", {}), _jsx("br", {}), "Learn more about", ' ', _jsx(Link, { href: 'https://docs.camunda.io/docs/apis-tools/orchestration-cluster-api-rest/orchestration-cluster-api-rest-overview/', target: '_blank', children: "accessing API endpoints via Swagger UI." })] })),
60
+ permissions: {
61
+ mayChange: true,
62
+ },
63
+ action: {
64
+ label: 'Enable Swagger',
65
+ onClick: () => console.log('Toggle Swagger'),
66
+ },
67
+ };
68
+ export const businessIdUniquenessToggle = {
69
+ enabled: false,
70
+ description: 'When enabled, the cluster enforces uniqueness constraints on business identifiers to prevent duplicate process instances.',
71
+ permissions: {
72
+ mayChange: true,
73
+ },
74
+ action: {
75
+ label: 'Enable Business ID Uniqueness',
76
+ onClick: () => console.log('Toggle Business ID Uniqueness'),
77
+ },
78
+ };
79
+ export const dangerZone = {
80
+ title: 'Danger zone',
81
+ deleteCluster: {
82
+ title: 'Delete this cluster',
83
+ description: 'This action is permanent and you will not be able to reuse this cluster in the future.',
84
+ action: {
85
+ label: 'Delete',
86
+ onClick: () => console.log('Delete cluster'),
87
+ },
88
+ },
89
+ permissions: {
90
+ mayDeleteCluster: true,
91
+ },
92
+ };
93
+ export const withSettingsPageProps = {
94
+ settings: {
95
+ title: 'Cluster settings',
96
+ identityBasedAuthorizations,
97
+ autoUpdate,
98
+ lowLatencyToggle,
99
+ mcpToggle,
100
+ swaggerToggle,
101
+ businessIdUniquenessToggle,
102
+ },
103
+ dangerZone,
104
+ };
@@ -0,0 +1,14 @@
1
+ import type { JSX } from 'react';
2
+ export interface AppIntegrationsToggleProps {
3
+ enabled: boolean;
4
+ action: {
5
+ label: string;
6
+ onClick: () => void;
7
+ disabled?: boolean;
8
+ };
9
+ description: any;
10
+ permissions: {
11
+ mayChange: boolean;
12
+ };
13
+ }
14
+ export declare const AppIntegrationsToggle: (props: AppIntegrationsToggleProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
3
+ export const AppIntegrationsToggle = (props) => {
4
+ const component = (_jsx(C4Toggle, { id: 'app-integrations-toggle', supported: true, enabled: props.enabled, title: props.action.label, notices: [
5
+ {
6
+ notice: props.description,
7
+ },
8
+ ], onClick: props.action.onClick, permissions: {
9
+ mayToggle: props.permissions.mayChange && !props.action.disabled,
10
+ } }));
11
+ return component;
12
+ };
@@ -1,7 +1,9 @@
1
1
  import type { JSX } from 'react';
2
+ import { type AppIntegrationsToggleProps } from './app-integrations-toggle';
2
3
  import { type AutoUpdateProps } from './autoUpdate';
3
4
  import { type BusinessIdUniquenessToggleProps } from './business-id-uniqueness-toggle';
4
5
  import { type EnforceGroupsProps } from './enforce-groups';
6
+ import { type ExternalIdentityProviderProps } from './external-identity-provider';
5
7
  import { type IdentityBasedAuthorizationsProps } from './identity-based-authorizations';
6
8
  import { type LowLatencyToggleProps } from './low-latency-toggle';
7
9
  import { type McpToggleProps } from './mcp-toggle';
@@ -13,11 +15,13 @@ export interface ClusterSettingsProps {
13
15
  resourceBasedAuthorizations?: ResourceBasedAuthorizationsProps;
14
16
  identityBasedAuthorizations?: IdentityBasedAuthorizationsProps;
15
17
  multiTenancy?: MultiTenancyProps;
18
+ externalIdentityProvider?: ExternalIdentityProviderProps;
16
19
  autoUpdate?: AutoUpdateProps;
17
20
  enforceGroups?: EnforceGroupsProps;
18
21
  lowLatencyToggle?: LowLatencyToggleProps;
19
22
  mcpToggle?: McpToggleProps;
20
23
  swaggerToggle?: SwaggerToggleProps;
21
24
  businessIdUniquenessToggle?: BusinessIdUniquenessToggleProps;
25
+ appIntegrationsToggle?: AppIntegrationsToggleProps;
22
26
  }
23
- export declare const ClusterSettings: ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, }: ClusterSettingsProps) => JSX.Element;
27
+ export declare const ClusterSettings: ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, }: ClusterSettingsProps) => JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { C4Divider } from '../../c4-divider/c4-divider.js';
3
+ import { AppIntegrationsToggle, } from './app-integrations-toggle.js';
3
4
  import { AutoUpdate } from './autoUpdate.js';
4
5
  import { BusinessIdUniquenessToggle, } from './business-id-uniqueness-toggle.js';
5
6
  import { EnforeGroups } from './enforce-groups.js';
7
+ import { ExternalIdentityProvider, } from './external-identity-provider.js';
6
8
  import { IdentityBasedAuthorizations, } from './identity-based-authorizations.js';
7
9
  import { LowLatencyToggle, } from './low-latency-toggle.js';
8
10
  import { McpToggle } from './mcp-toggle.js';
@@ -10,25 +12,30 @@ import { MultiTenancy } from './multi-tenancy.js';
10
12
  import { ResourceBasedAuthorizations, } from './resource-based-authorizations.js';
11
13
  import { SettingsTile } from './settings-tile.js';
12
14
  import { SwaggerToggle } from './swagger-toggle.js';
13
- export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, }) => {
15
+ export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, }) => {
14
16
  const resourceBasedAuthorizationsComponent = resourceBasedAuthorizations ? (_jsx(ResourceBasedAuthorizations, { ...resourceBasedAuthorizations })) : undefined;
15
17
  const identityBasedAuthorizationsComponent = identityBasedAuthorizations ? (_jsx(IdentityBasedAuthorizations, { ...identityBasedAuthorizations })) : undefined;
16
18
  const multiTenancyComponent = multiTenancy ? (_jsx(MultiTenancy, { ...multiTenancy })) : undefined;
19
+ const externalIdentityProviderComponent = externalIdentityProvider ? (_jsx(ExternalIdentityProvider, { ...externalIdentityProvider })) : undefined;
17
20
  const autoUpdateComponent = autoUpdate ? (_jsx(AutoUpdate, { ...autoUpdate })) : undefined;
18
21
  const enforceGroupsComponent = enforceGroups ? (_jsx(EnforeGroups, { ...enforceGroups })) : undefined;
19
22
  const lowLatencyToggleComponent = lowLatencyToggle ? (_jsx(LowLatencyToggle, { ...lowLatencyToggle })) : undefined;
20
23
  const mcpToggleComponent = mcpToggle ? (_jsx(McpToggle, { ...mcpToggle })) : undefined;
21
24
  const swaggerToggleComponent = swaggerToggle ? (_jsx(SwaggerToggle, { ...swaggerToggle })) : undefined;
22
25
  const businessIdUniquenessToggleComponent = businessIdUniquenessToggle ? (_jsx(BusinessIdUniquenessToggle, { ...businessIdUniquenessToggle })) : undefined;
26
+ const appIntegrationsToggleComponent = appIntegrationsToggle ? (_jsx(AppIntegrationsToggle, { ...appIntegrationsToggle })) : undefined;
23
27
  const oneComponentVisible = resourceBasedAuthorizationsComponent ||
24
28
  identityBasedAuthorizationsComponent ||
25
29
  multiTenancyComponent ||
30
+ externalIdentityProviderComponent ||
26
31
  autoUpdateComponent ||
27
32
  enforceGroupsComponent ||
28
33
  lowLatencyToggleComponent ||
29
34
  mcpToggleComponent ||
30
35
  swaggerToggleComponent ||
31
- businessIdUniquenessToggleComponent;
32
- const component = oneComponentVisible ? (_jsxs(SettingsTile, { title: title, children: [resourceBasedAuthorizationsComponent, resourceBasedAuthorizationsComponent && _jsx(C4Divider, {}), identityBasedAuthorizationsComponent, identityBasedAuthorizationsComponent && _jsx(C4Divider, {}), multiTenancyComponent, multiTenancyComponent && _jsx(C4Divider, {}), autoUpdateComponent, autoUpdateComponent && _jsx(C4Divider, {}), enforceGroupsComponent, enforceGroupsComponent && _jsx(C4Divider, {}), lowLatencyToggleComponent, lowLatencyToggleComponent && _jsx(C4Divider, {}), mcpToggleComponent, mcpToggleComponent && _jsx(C4Divider, {}), swaggerToggleComponent, swaggerToggleComponent && _jsx(C4Divider, {}), businessIdUniquenessToggleComponent] })) : (_jsx(_Fragment, {}));
36
+ businessIdUniquenessToggleComponent ||
37
+ appIntegrationsToggleComponent;
38
+ const component = oneComponentVisible ? (_jsxs(SettingsTile, { title: title, children: [resourceBasedAuthorizationsComponent, resourceBasedAuthorizationsComponent && _jsx(C4Divider, {}), identityBasedAuthorizationsComponent, identityBasedAuthorizationsComponent && _jsx(C4Divider, {}), multiTenancyComponent, multiTenancyComponent && _jsx(C4Divider, {}), externalIdentityProviderComponent, externalIdentityProviderComponent && _jsx(C4Divider, {}), autoUpdateComponent, autoUpdateComponent && _jsx(C4Divider, {}), enforceGroupsComponent, enforceGroupsComponent && _jsx(C4Divider, {}), lowLatencyToggleComponent, lowLatencyToggleComponent && _jsx(C4Divider, {}), mcpToggleComponent, mcpToggleComponent && _jsx(C4Divider, {}), swaggerToggleComponent, swaggerToggleComponent && _jsx(C4Divider, {}), businessIdUniquenessToggleComponent, businessIdUniquenessToggleComponent &&
39
+ appIntegrationsToggleComponent && _jsx(C4Divider, {}), appIntegrationsToggleComponent] })) : (_jsx(_Fragment, {}));
33
40
  return component;
34
41
  };
@@ -1,10 +1,5 @@
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 { Button, Stack } from '@carbon/react';
2
+ import { Button, Stack } from '../../../ui/index.js';
8
3
  import { SettingsTile } from './settings-tile.js';
9
4
  export const DangerZone = ({ deleteCluster, title, permissions, }) => {
10
5
  const component = (_jsx(SettingsTile, { title: title, children: _jsx("div", { children: _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h4", { children: deleteCluster.title }), _jsx("p", { children: deleteCluster.description })] }), _jsx(Button, { onClick: deleteCluster.action.onClick, kind: 'danger', disabled: !permissions.mayDeleteCluster, size: 'md', children: deleteCluster.action.label })] }) }) }));
@@ -0,0 +1,20 @@
1
+ import type { ExternalIdpConfig } from '@camunda/ccma-shared-types';
2
+ import { type JSX } from 'react';
3
+ export type ExternalIdpFormValues = Omit<ExternalIdpConfig, 'secretUpdatedAt'>;
4
+ export interface ExternalIdentityProviderModalProps {
5
+ open: boolean;
6
+ /** Prefill on edit; undefined for first-time configuration. */
7
+ initialConfig?: ExternalIdpConfig;
8
+ saving?: boolean;
9
+ error?: string;
10
+ onClose: () => void;
11
+ /**
12
+ * clientSecret is undefined when the admin left the field blank on edit
13
+ * ("keep current"). On first configuration it is required (validated here).
14
+ */
15
+ onSubmit: (values: {
16
+ config: ExternalIdpFormValues;
17
+ clientSecret?: string;
18
+ }) => void;
19
+ }
20
+ export declare const ExternalIdentityProviderModal: ({ open, initialConfig, saving, error, onClose, onSubmit, }: ExternalIdentityProviderModalProps) => JSX.Element;