@camunda/ccma-saas-frontend 0.0.46 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -0,0 +1,43 @@
1
+ import type { C4ManagementApiProps, CloudClientItem } from './c4-management-api.types';
2
+ export declare const mockClients: CloudClientItem[];
3
+ export declare const defaultText: {
4
+ title: string;
5
+ description: string;
6
+ urlCopiedFeedback: string;
7
+ searchLabel: string;
8
+ createButtonLabel: string;
9
+ headerName: string;
10
+ headerClientId: string;
11
+ headerClusterScopes: string;
12
+ headerZeebeScopes: string;
13
+ headerByomClientScopes: string;
14
+ headerIpWhiteListScopes: string;
15
+ headerSecretsScopes: string;
16
+ headerModelerScopes: string;
17
+ headerMemberScopes: string;
18
+ headerHotBackupScopes: string;
19
+ headerActivityScopes: string;
20
+ actionDetails: string;
21
+ actionUpdate: string;
22
+ actionDelete: string;
23
+ expandedClientSecret: string;
24
+ expandedClientSecretNotVisible: string;
25
+ expandedApiUrl: string;
26
+ expandedOauthUrl: string;
27
+ emptyStateTitle: string;
28
+ emptyStateDescription: string;
29
+ emptyStateButton: string;
30
+ emptyStateLinkLabel: string;
31
+ };
32
+ export declare const defaultUrls: {
33
+ apiUrl: string;
34
+ oauthUrl: string;
35
+ docsLink: string;
36
+ };
37
+ export declare const defaultPermissions: {
38
+ canCreate: boolean;
39
+ canRead: boolean;
40
+ canUpdate: boolean;
41
+ canDelete: boolean;
42
+ };
43
+ export declare const defaultProps: C4ManagementApiProps;
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ export const mockClients = [
7
+ {
8
+ id: 'client-1',
9
+ name: 'Production API Client',
10
+ clientId: 'abc123def456',
11
+ clusterScopes: 'Create, Get, Delete',
12
+ zeebeScopes: 'Create, Get',
13
+ byomClientScopes: 'None',
14
+ modelerScopes: 'Create, Get, Update',
15
+ ipWhiteListScopes: 'Get, Update',
16
+ secretsScopes: 'Create, Get, Delete',
17
+ memberScopes: 'Get, Invite',
18
+ hotBackupScopes: 'Create, Get',
19
+ activityScopes: 'Get',
20
+ },
21
+ {
22
+ id: 'client-2',
23
+ name: 'Development API Client',
24
+ clientId: 'xyz789ghi012',
25
+ clusterScopes: 'Get',
26
+ zeebeScopes: 'Create, Get, Delete',
27
+ byomClientScopes: 'None',
28
+ modelerScopes: 'Get',
29
+ ipWhiteListScopes: 'None',
30
+ secretsScopes: 'Get',
31
+ memberScopes: 'Get',
32
+ hotBackupScopes: 'None',
33
+ activityScopes: 'None',
34
+ },
35
+ {
36
+ id: 'client-3',
37
+ name: 'Test Client',
38
+ clientId: 'test456abc789',
39
+ clusterScopes: 'None',
40
+ zeebeScopes: 'Get',
41
+ byomClientScopes: 'None',
42
+ modelerScopes: 'None',
43
+ ipWhiteListScopes: 'None',
44
+ secretsScopes: 'None',
45
+ memberScopes: 'None',
46
+ hotBackupScopes: 'None',
47
+ activityScopes: 'None',
48
+ },
49
+ ];
50
+ export const defaultText = {
51
+ title: 'Console API Clients',
52
+ description: 'Manage your Console API clients for programmatic access to Camunda.',
53
+ urlCopiedFeedback: 'Copied to clipboard',
54
+ searchLabel: 'Search',
55
+ createButtonLabel: 'Create new client',
56
+ headerName: 'Name',
57
+ headerClientId: 'Client ID',
58
+ headerClusterScopes: 'Cluster Scopes',
59
+ headerZeebeScopes: 'Zeebe Scopes',
60
+ headerByomClientScopes: 'External Monitoring Scopes',
61
+ headerIpWhiteListScopes: 'IP Whitelist Scopes',
62
+ headerSecretsScopes: 'Secrets Scopes',
63
+ headerModelerScopes: 'Modeler Scopes',
64
+ headerMemberScopes: 'Member Scopes',
65
+ headerHotBackupScopes: 'Hot Backup Scopes',
66
+ headerActivityScopes: 'Activity Scopes',
67
+ actionDetails: 'Show details',
68
+ actionUpdate: 'Update',
69
+ actionDelete: 'Delete',
70
+ expandedClientSecret: 'Client Secret',
71
+ expandedClientSecretNotVisible: 'Not visible after creation',
72
+ expandedApiUrl: 'API URL',
73
+ expandedOauthUrl: 'OAuth URL',
74
+ emptyStateTitle: 'No API clients yet',
75
+ emptyStateDescription: 'Create your first Console API client to access the API programmatically.',
76
+ emptyStateButton: 'Create first client',
77
+ emptyStateLinkLabel: 'Learn more about Console API',
78
+ };
79
+ export const defaultUrls = {
80
+ apiUrl: 'https://api.cloud.camunda.io',
81
+ oauthUrl: 'https://login.cloud.camunda.io',
82
+ docsLink: 'https://docs.camunda.io/docs/apis-tools/console-api/',
83
+ };
84
+ export const defaultPermissions = {
85
+ canCreate: true,
86
+ canRead: true,
87
+ canUpdate: true,
88
+ canDelete: true,
89
+ };
90
+ function onShowDetails(clientId) {
91
+ console.log('Show details:', clientId);
92
+ }
93
+ function onUpdateClient(clientId) {
94
+ console.log('Update client:', clientId);
95
+ }
96
+ function onDeleteClient(clientId) {
97
+ console.log('Delete client:', clientId);
98
+ }
99
+ function onCreate() {
100
+ console.log('Create new client');
101
+ }
102
+ function onOpenDocs() {
103
+ console.log('Open docs');
104
+ }
105
+ export const defaultProps = {
106
+ clients: mockClients,
107
+ loading: false,
108
+ showIpWhitelistColumn: true,
109
+ showHotBackupColumn: true,
110
+ text: defaultText,
111
+ urls: defaultUrls,
112
+ permissions: defaultPermissions,
113
+ onShowDetails,
114
+ onUpdateClient,
115
+ onDeleteClient,
116
+ onCreate,
117
+ onOpenDocs,
118
+ };
@@ -1,22 +1,20 @@
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, Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, } from '@carbon/react';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Button, Link, Stack } from '../../ui/index.js';
3
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
8
4
  export const C4ManagementOverview = ({ orgId, overviewItems, loading, }) => {
9
5
  if (loading) {
10
- return _jsx(StructuredListSkeleton, { rowCount: 6 });
6
+ return _jsx(C4StructuredListSkeleton, { rowCount: 6 });
11
7
  }
12
- const component = (_jsx(Stack, { gap: 6, children: _jsx(StructuredListWrapper, { isCondensed: true, children: _jsx(StructuredListBody, { children: overviewItems.map((item) => {
13
- return (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: {
8
+ const component = (_jsx(Stack, { gap: 6, children: _jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsx(C4StructuredListBody, { children: overviewItems.map((item) => {
9
+ return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: {
14
10
  width: '200px',
15
- }, children: _jsx("strong", { children: item.label }) }), _jsx(StructuredListCell, { noWrap: true, style: {
11
+ }, children: _jsx("strong", { children: item.label }) }), _jsx(C4StructuredListCell, { noWrap: true, style: {
16
12
  width: '200px',
17
- }, children: item.value }), _jsxs(StructuredListCell, { noWrap: true, children: [item.action?.kind === 'ghost' && (_jsx(Button, { size: 'sm', kind: item.action.kind, onClick: item.action.action, iconDescription: item.action.iconDescription, hasIconOnly: item.action.kind === 'ghost', renderIcon: item.action.renderIcon, style: { minHeight: '0px' }, children: item.action.kind !== 'ghost'
18
- ? item.action.iconDescription
19
- : undefined })), item.action && item.action.kind !== 'ghost' && (_jsx(Link, { onClick: item.action.action, style: { cursor: 'pointer' }, children: item.action.iconDescription })), item.additionalValue && _jsx("span", { children: item.additionalValue })] }), _jsx(StructuredListCell, { children: " " })] }, `overview-${orgId}-${item.id}`));
13
+ }, children: item.value }), _jsx(C4StructuredListCell, { noWrap: true, children: item.action && item.additionalValue ? (_jsxs(Stack, { orientation: 'horizontal', gap: 3, children: [_jsx("span", { children: item.additionalValue }), item.action.kind === 'ghost' ? (_jsx(Button, { size: 'sm', kind: item.action.kind, onClick: item.action.action, iconDescription: item.action.iconDescription, hasIconOnly: item.action.kind === 'ghost', renderIcon: item.action.renderIcon, style: { minHeight: '0px' }, children: item.action.kind !== 'ghost'
14
+ ? item.action.iconDescription
15
+ : undefined })) : (_jsx(Link, { onClick: item.action.action, style: { cursor: 'pointer' }, children: item.action.iconDescription }))] })) : (_jsxs(_Fragment, { children: [item.action?.kind === 'ghost' && (_jsx(Button, { size: 'sm', kind: item.action.kind, onClick: item.action.action, iconDescription: item.action.iconDescription, hasIconOnly: item.action.kind === 'ghost', renderIcon: item.action.renderIcon, style: { minHeight: '0px' }, children: item.action.kind !== 'ghost'
16
+ ? item.action.iconDescription
17
+ : undefined })), item.action && item.action.kind !== 'ghost' && (_jsx(Link, { onClick: item.action.action, style: { cursor: 'pointer' }, children: item.action.iconDescription })), item.additionalValue && (_jsx("span", { children: item.additionalValue }))] })) }), _jsx(C4StructuredListCell, { children: " " })] }, `overview-${orgId}-${item.id}`));
20
18
  }) }) }) }));
21
19
  return component;
22
20
  };
@@ -1,14 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { Button, Link, Stack, StaticNotification, StructuredListSkeleton, } from '@carbon/react';
9
2
  import { ConnectionSend, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
10
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
+ import { Button, Link, Stack } from '../../ui/index.js';
5
+ import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
6
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
7
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
11
8
  import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
9
+ import { C4StructuredListSkeleton } from '../c4-structured-list/c4-structured-list.js';
12
10
  import { C4Toggle } from '../c4-toggle/c4-toggle.js';
13
11
  export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organizationName, hasAcceptedBetaTerms, suppressDropDisks, earlyAccessFeatures, recentlyAcceptedBeta, loading, error, permissions, onLeaveOrganization, onDeleteOrganization, onToggleSuppressDropDisks, onToggleEarlyAccessFeature, onOptInToBeta, onOpenFeatureOptIn, onShareFeedback, onRetry, text, earlyAccessDocsUrl, }) => {
14
12
  const canBeToggled = (feature) => {
@@ -80,7 +78,7 @@ export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organiz
80
78
  },
81
79
  ];
82
80
  if (loading) {
83
- return _jsx(StructuredListSkeleton, { rowCount: 6 });
81
+ return _jsx(C4StructuredListSkeleton, { rowCount: 6 });
84
82
  }
85
83
  // Transform early access features to include originalIndex for C3DataTable
86
84
  const tableData = earlyAccessFeatures.map((feature, index) => ({
@@ -104,10 +102,10 @@ export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organiz
104
102
  }, children: [_jsx("h4", { children: text.earlyAccess.title }), _jsx("p", { style: { marginTop: '12px', color: 'var(--cds-text-helper)' }, children: text.earlyAccess.description0 }), _jsxs("p", { style: {
105
103
  marginBottom: '18px',
106
104
  color: 'var(--cds-text-helper)',
107
- }, children: [text.earlyAccess.description1, ' ', _jsx(C4ExternalLink, { id: 'docs-link', label: text.earlyAccess.learnMoreLabel, href: earlyAccessDocsUrl, target: '_blank' })] }), _jsxs(Stack, { children: [recentlyAcceptedBeta && (_jsx(StaticNotification, { lowContrast: true, titleId: 'optInNotification-feedback', "aria-describedby": 'optInNotification-feedback', title: text.earlyAccess.optInNotificationTitle, subtitle: text.earlyAccess.optInNotificationText, actionButtonLabel: text.earlyAccess.optInNotificationFeedback, onActionButtonClick: onShareFeedback, kind: 'success', style: {
105
+ }, children: [text.earlyAccess.description1, ' ', _jsx(C4ExternalLink, { id: 'docs-link', label: text.earlyAccess.learnMoreLabel, href: earlyAccessDocsUrl, target: '_blank' })] }), _jsxs(Stack, { children: [recentlyAcceptedBeta && (_jsx(C4ActionableNotification, { appearance: 'static', lowContrast: true, titleId: 'optInNotification-feedback', "aria-describedby": 'optInNotification-feedback', title: text.earlyAccess.optInNotificationTitle, subtitle: text.earlyAccess.optInNotificationText, actionButtonLabel: text.earlyAccess.optInNotificationFeedback, onActionButtonClick: onShareFeedback, kind: 'success', style: {
108
106
  maxWidth: '100%',
109
107
  marginBottom: '12px',
110
- } }, 'optin-notification')), error ? (_jsx(C3EmptyState, { icon: {
108
+ } }, 'optin-notification')), error ? (_jsx(C4EmptyState, { icon: {
111
109
  path: C4_ASSET_URLS.fatalErrorIcon,
112
110
  altText: 'errorIcon',
113
111
  }, heading: text.earlyAccess.errorTitle, description: text.earlyAccess.errorMessage, button: {
@@ -127,6 +125,6 @@ export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organiz
127
125
  display: 'flex',
128
126
  flexDirection: 'column',
129
127
  overflowX: 'auto',
130
- }, children: _jsx(C3DataTable, { headers: headers, data: tableData, isLoading: false, queryPrefix: 'management-settings' }) })), !hasAcceptedBetaTerms && permissions.mayOptInToBeta && (_jsx(Button, { style: { marginTop: '16px' }, onClick: onOptInToBeta, size: 'md', children: text.earlyAccess.optInButton }))] })] }) }))] }));
128
+ }, children: _jsx(C4DataTable, { headers: headers, data: tableData, isLoading: false, queryPrefix: 'management-settings' }) })), !hasAcceptedBetaTerms && permissions.mayOptInToBeta && (_jsx(Button, { style: { marginTop: '16px' }, onClick: onOptInToBeta, size: 'md', children: text.earlyAccess.optInButton }))] })] }) }))] }));
131
129
  return component;
132
130
  };
@@ -1,15 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable } from '@camunda/camunda-composite-components';
8
- import { Stack } from '@carbon/react';
2
+ import { Stack } from '../../ui/index.js';
9
3
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
4
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
10
5
  export const C4ManagementUsers = ({ users, loading, headers, actions, toolbar, banner, }) => {
11
- const bannerNotification = banner.show ? (_jsx(C4ActionableNotification, { kind: 'info', title: '', subtitle: banner.subtitle, actionButtonLabel: banner.actionButtonLabel, onActionButtonClick: banner.onActionClick, lowContrast: false })) : null;
12
- const dataTable = (_jsx(C3DataTable, { headers: headers, data: users, actions: actions, toolbar: toolbar, title: 'Users', isLoading: loading, options: {
6
+ const bannerNotification = banner.show ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', title: '', subtitle: banner.subtitle, actionButtonLabel: banner.actionButtonLabel, onActionButtonClick: banner.onActionClick, lowContrast: false })) : null;
7
+ const dataTable = (_jsx(C4DataTable, { headers: headers, data: users, actions: actions, toolbar: toolbar, title: 'Users', isLoading: loading, options: {
13
8
  actionsUseOverflowMenuMinItems: 2,
14
9
  }, queryPrefix: 'management-users' }));
15
10
  const component = (_jsxs(Stack, { gap: 3, children: [bannerNotification, _jsx("div", { style: { display: 'flex', flexDirection: 'column', overflowX: 'auto' }, children: dataTable })] }));
@@ -4,15 +4,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, ComposedModal, InlineLoading, InlineNotification, ModalBody, ModalFooter, ModalHeader, ProgressIndicator, ProgressStep, Stack, } from '@carbon/react';
7
+ import { InlineLoading, ProgressIndicator, ProgressStep } from '@carbon/react';
8
8
  import { useState } from 'react';
9
+ import { Button, ComposedModal, ModalBody, ModalFooter, ModalHeader, Stack, } from '../../ui/index.js';
10
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
9
11
  export const C4MultiStepModal = ({ title, subtitle, steps, isOpen, onClose, preventCloseOnClickOutside, }) => {
10
12
  const [step, setStep] = useState(0);
11
13
  const [error, setError] = useState('');
12
14
  const [asyncWork, setAsyncWork] = useState(false);
13
15
  const currentStep = steps[step];
14
16
  const { primary, secondary } = currentStep.actions;
15
- const component = (_jsxs(ComposedModal, { open: isOpen, onClose: onClose, preventCloseOnClickOutside: preventCloseOnClickOutside ?? false, children: [_jsx(ModalHeader, { title: title, label: subtitle }), _jsx(ModalBody, { children: _jsxs(Stack, { gap: 8, children: [_jsx(ProgressIndicator, { currentIndex: step, spaceEqually: true, children: steps.map((step, index) => (_jsx(ProgressStep, { label: step.title, secondaryLabel: step.subtitle }, index))) }), currentStep.content, error.length > 0 && (_jsx(InlineNotification, { kind: 'error', title: 'Error', subtitle: error }))] }) }), _jsxs(ModalFooter, { children: [_jsx(Button, { kind: secondary.kind, disabled: asyncWork || secondary.disabled, onClick: () => {
17
+ const component = (_jsxs(ComposedModal, { open: isOpen, onClose: onClose, preventCloseOnClickOutside: preventCloseOnClickOutside ?? false, children: [_jsx(ModalHeader, { title: title, label: subtitle }), _jsx(ModalBody, { children: _jsxs(Stack, { gap: 8, children: [_jsx(ProgressIndicator, { currentIndex: step, spaceEqually: true, children: steps.map((step, index) => (_jsx(ProgressStep, { label: step.title, secondaryLabel: step.subtitle }, index))) }), currentStep.content, error.length > 0 && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error }))] }) }), _jsxs(ModalFooter, { children: [_jsx(Button, { kind: secondary.kind, disabled: asyncWork || secondary.disabled, onClick: () => {
16
18
  if (step > 0) {
17
19
  setError('');
18
20
  setStep(step - 1);
@@ -4,8 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, ButtonSet, ComposedModal, InlineLoading, InlineNotification, ModalBody, ModalFooter, ModalHeader, } from '@carbon/react';
7
+ import { ButtonSet, InlineLoading } from '@carbon/react';
8
8
  import { useState } from 'react';
9
+ import { Button, ComposedModal, ModalBody, ModalFooter, ModalHeader, } from '../../ui/index.js';
10
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
9
11
  export const C4MultiStepUglyModal = ({ open, steps, onClose, size, }) => {
10
12
  const [currentStep, setCurrentStep] = useState(1);
11
13
  const [error, setError] = useState('');
@@ -20,7 +22,7 @@ export const C4MultiStepUglyModal = ({ open, steps, onClose, size, }) => {
20
22
  const resolvedHeaderLabel = typeof headerLabel === 'string' && headerLabel.trim().length === 0
21
23
  ? undefined
22
24
  : headerLabel;
23
- return (_jsxs(ComposedModal, { open: open, size: size ?? 'sm', onClose: onClose, preventCloseOnClickOutside: true, children: [_jsx(ModalHeader, { title: step.title, label: resolvedHeaderLabel }), _jsxs(ModalBody, { children: [step.content, error.length > 0 && (_jsx(InlineNotification, { kind: 'error', title: 'Error', subtitle: error }))] }), _jsx(ModalFooter, { children: _jsx(ButtonSet, { style: { width: '100%' }, children: buttons.map((button, index) => {
25
+ return (_jsxs(ComposedModal, { open: open, size: size ?? 'sm', onClose: onClose, preventCloseOnClickOutside: true, children: [_jsx(ModalHeader, { title: step.title, label: resolvedHeaderLabel }), _jsxs(ModalBody, { children: [step.content, error.length > 0 && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error }))] }), _jsx(ModalFooter, { children: _jsx(ButtonSet, { style: { width: '100%' }, children: buttons.map((button, index) => {
24
26
  return (_jsx(Button, { kind: button.kind, onClick: async () => {
25
27
  setError('');
26
28
  setLoadingStatus('active');
@@ -0,0 +1,55 @@
1
+ import { type C3NavigationProps } from '@camunda/camunda-composite-components';
2
+ import { type JSX, type ReactNode } from 'react';
3
+ import type { C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal';
4
+ import { type C4HelpCenterData } from '../c4-help-center/c4-help-center';
5
+ export type C4NavigationProps = C3NavigationProps & {
6
+ /**
7
+ * ds-mode only: navigate to a cluster by uuid (the Cluster dropdown). Carbon
8
+ * mode ignores it. Org switching reuses orgSideBar.switchToOrg.
9
+ */
10
+ onSelectCluster?: (clusterUuid: string) => void;
11
+ /**
12
+ * ds-mode only: the page content rendered inside the DS app shell (right of
13
+ * the AppSidebar, below the AppHeader). Carbon mode renders it after the c3
14
+ * navigation, preserving the existing sibling layout.
15
+ */
16
+ children?: ReactNode;
17
+ /**
18
+ * ds-mode only: help destinations shown in a modal behind the header's help
19
+ * icon. The c3 help center (CMS recommendations + feedback) has no public
20
+ * equivalent, so ds mode surfaces a simple link list provided by the host.
21
+ * Omitted/empty hides the help icon. Carbon mode ignores it.
22
+ */
23
+ helpLinks?: Array<{
24
+ key: string;
25
+ label: string;
26
+ href: string;
27
+ }>;
28
+ /**
29
+ * ds-mode only: the host's app links. ds derives cluster-scoped apps from the
30
+ * cluster endpoints in c3Profile, but org-scoped apps (the Modeler) can't be —
31
+ * their URL comes from the host, so ds reads it from here. Carbon builds the
32
+ * full app list inside c3 and ignores this.
33
+ */
34
+ appElements?: Array<{
35
+ key: string;
36
+ label: string;
37
+ href?: string;
38
+ }>;
39
+ /**
40
+ * ds-mode only: submit handler for the DS-native "Share your feedback" modal.
41
+ * When provided, ds mode renders {@link C4FeedbackModal} (driven by the c3
42
+ * help-center open state) instead of the Carbon c3 help center. Carbon mode
43
+ * keeps the c3 help center and ignores this.
44
+ */
45
+ onSubmitFeedback?: (payload: C4FeedbackPayload) => Promise<void>;
46
+ /** ds-mode only: enterprise orgs get the Jira-support notice in the feedback modal. */
47
+ feedbackEnterprise?: boolean;
48
+ /**
49
+ * ds-mode only: async function that fetches help-center config and tiles from
50
+ * the CMS API. Called once when the help panel opens. Returns structured tabs
51
+ * and links for {@link C4HelpCenter}. Carbon mode ignores it.
52
+ */
53
+ onFetchHelpCenterData?: () => Promise<C4HelpCenterData | undefined>;
54
+ };
55
+ export declare const C4Navigation: (props: C4NavigationProps) => JSX.Element;
@@ -0,0 +1,175 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { C3Navigation, useC3HelpCenter, useC3Profile, } from '@camunda/camunda-composite-components';
8
+ import { AppHeader, AppSidebar, Badge, Button, DropdownMenuItem, NavBreadcrumb, NavBreadcrumbItem, SidebarProvider, TooltipProvider, UserMenu, } from '@camunda/design-system';
9
+ import { Activity, BarChart3, HelpCircle, LayoutDashboard, ListChecks, Moon, Sun, Workflow, } from 'lucide-react';
10
+ import { useEffect, useRef, useState } from 'react';
11
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
12
+ import { C4HelpCenter, FEEDBACK_TAB_ID, } from '../c4-help-center/c4-help-center.js';
13
+ /**
14
+ * Design-system-switchable navigation.
15
+ *
16
+ * Keeps the stable C3Navigation interface ('carbon' renders unchanged c3; 'ds'
17
+ * transforms onto DS patterns; c3 untouched). See docs/superpowers/specs/
18
+ * 2026-06-24-c3navigation-ds-transformation-design.md.
19
+ *
20
+ * ds shell: AppSidebar (Camunda apps; cluster-scoped apps grouped with one
21
+ * child per cluster linking to that cluster's app endpoint) + AppHeader (a
22
+ * clickable "Console" → dashboard, a NavBreadcrumb Organization/Cluster context
23
+ * switcher, and a UserMenu). Notifications and Help are deferred (their data /
24
+ * widgets are produced inside c3, not exposed in these props).
25
+ */
26
+ // C3 routeProps is opaque (`any`); navigate via the embedded mobx-router.
27
+ const navigate = (routeProps) => {
28
+ const rp = routeProps;
29
+ rp?.router?.goTo?.(rp.route, rp.params);
30
+ };
31
+ // Cluster-scoped Camunda apps (each cluster exposes its own endpoint URL).
32
+ const CLUSTER_APPS = [
33
+ { app: 'operate', label: 'Operate', icon: Activity },
34
+ { app: 'tasklist', label: 'Tasklist', icon: ListChecks },
35
+ { app: 'optimize', label: 'Optimize', icon: BarChart3 },
36
+ ];
37
+ function buildAppSidebarItems(clusters, onConsoleClick, modeler) {
38
+ const consoleItem = {
39
+ type: 'item',
40
+ key: 'console',
41
+ label: 'Console',
42
+ icon: LayoutDashboard,
43
+ isActive: true,
44
+ onClick: onConsoleClick,
45
+ };
46
+ // Org-scoped (not cluster-scoped): a single external link, like the cluster
47
+ // apps' children.
48
+ const modelerItem = modeler
49
+ ? [
50
+ {
51
+ type: 'item',
52
+ key: 'modeler',
53
+ label: modeler.label,
54
+ icon: Workflow,
55
+ linkProps: { href: modeler.href, target: '_blank' },
56
+ },
57
+ ]
58
+ : [];
59
+ const appGroups = CLUSTER_APPS.flatMap(({ app, label, icon }) => {
60
+ const children = (clusters ?? [])
61
+ .filter((cluster) => cluster.endpoints?.[app])
62
+ .map((cluster) => ({
63
+ type: 'item',
64
+ key: `${app}:${cluster.uuid}`,
65
+ label: cluster.name,
66
+ icon,
67
+ linkProps: { href: cluster.endpoints[app], target: '_blank' },
68
+ }));
69
+ return children.length > 0
70
+ ? [{ type: 'group', key: app, label, icon, children }]
71
+ : [];
72
+ });
73
+ return [consoleItem, ...modelerItem, ...appGroups];
74
+ }
75
+ function renderUserMenu(props) {
76
+ const userSideBar = props.userSideBar;
77
+ if (!userSideBar) {
78
+ return undefined;
79
+ }
80
+ const user = userSideBar.customElements?.profile?.user;
81
+ const allElements = [
82
+ ...(userSideBar.elements ?? []),
83
+ ...(userSideBar.bottomElements ?? []),
84
+ ];
85
+ const logout = allElements.find((e) => e.key === 'logout');
86
+ const items = allElements
87
+ .filter((e) => e.key !== 'logout' && e.onClick)
88
+ .map((e) => ({
89
+ key: e.key,
90
+ label: e.label,
91
+ onClick: e.onClick,
92
+ }));
93
+ return (_jsx(UserMenu, { userName: user?.name ?? '', userEmail: user?.email ?? '', items: items, onLogout: logout?.onClick ?? (() => { }), customSection: userSideBar.customElements?.customSection }));
94
+ }
95
+ export const C4Navigation = (props) => {
96
+ const designSystem = useC4DesignSystem();
97
+ const { orgs, activeOrg, clusters, resolvedTheme, onThemeChange } = useC3Profile();
98
+ // Same context pages use for `openHelpCenter('feedback')`. In carbon mode
99
+ // C3Navigation renders the help-center modal; in ds mode we render our own.
100
+ const { openHelpCenter, isHelpCenterOpen, setIsHelpCenterOpen, showTabId } = useC3HelpCenter();
101
+ // CMS-driven help center data (tabs + tiles + links).
102
+ const [helpCenterData, setHelpCenterData] = useState(undefined);
103
+ const [helpCenterLoading, setHelpCenterLoading] = useState(false);
104
+ // Ref to the fetch function so the effect doesn't re-run when the callback
105
+ // identity changes on every render (common for inline functions in the host).
106
+ const onFetchHelpCenterDataRef = useRef(props.onFetchHelpCenterData);
107
+ onFetchHelpCenterDataRef.current = props.onFetchHelpCenterData;
108
+ // Fetch CMS data once when the help panel opens; reset when it closes so
109
+ // re-opening always fetches fresh content.
110
+ useEffect(() => {
111
+ if (designSystem !== 'ds')
112
+ return;
113
+ if (!isHelpCenterOpen || isHelpCenterOpen === undefined) {
114
+ setHelpCenterData(undefined);
115
+ setHelpCenterLoading(false);
116
+ return;
117
+ }
118
+ const fn = onFetchHelpCenterDataRef.current;
119
+ if (!fn || helpCenterData !== undefined || helpCenterLoading)
120
+ return;
121
+ setHelpCenterLoading(true);
122
+ fn()
123
+ .then((d) => setHelpCenterData(d ?? undefined))
124
+ .catch(() => setHelpCenterData(undefined))
125
+ .finally(() => setHelpCenterLoading(false));
126
+ }, [designSystem, isHelpCenterOpen, helpCenterData, helpCenterLoading]);
127
+ if (designSystem !== 'ds') {
128
+ const { onSelectCluster: _onSelectCluster, helpLinks: _helpLinks, appElements: _appElements, onSubmitFeedback: _onSubmitFeedback, feedbackEnterprise: _feedbackEnterprise, onFetchHelpCenterData: _onFetchHelpCenterData, children, ...c3Props } = props;
129
+ return (_jsxs(_Fragment, { children: [_jsx(C3Navigation, { ...c3Props }), children] }));
130
+ }
131
+ const { onSelectCluster, helpLinks, children } = props;
132
+ const switchToOrg = props.orgSideBar?.switchToOrg;
133
+ const manageOrg = props.orgSideBar?.manageOrg;
134
+ const clustersElement = props.navbar?.elements?.find((e) => e.key === 'clusters');
135
+ const onConsoleClick = () => navigate(props.app?.routeProps);
136
+ const consoleButton = (_jsx("button", { type: 'button', onClick: onConsoleClick, style: {
137
+ background: 'none',
138
+ border: 0,
139
+ padding: 0,
140
+ cursor: 'pointer',
141
+ font: 'inherit',
142
+ fontWeight: 600,
143
+ color: 'inherit',
144
+ }, children: props.app?.name ?? 'Console' }));
145
+ const breadcrumb = (_jsxs(NavBreadcrumb, { "aria-label": 'Navigation', children: [_jsx(NavBreadcrumbItem, { label: activeOrg?.name ?? 'Organization', switchLabel: 'Switch organization', onClick: activeOrg && manageOrg ? () => manageOrg(activeOrg.uuid) : undefined, children: orgs && orgs.length > 0 && switchToOrg
146
+ ? orgs.map((org) => (_jsx(DropdownMenuItem, { onClick: () => switchToOrg(org.uuid), children: org.name }, org.uuid)))
147
+ : undefined }), _jsx(NavBreadcrumbItem, { label: 'Clusters', switchLabel: 'Switch cluster', onClick: clustersElement
148
+ ? () => navigate(clustersElement.routeProps)
149
+ : undefined, children: clusters && clusters.length > 0 && onSelectCluster
150
+ ? clusters.map((cluster) => (_jsx(DropdownMenuItem, { onClick: () => onSelectCluster(cluster.uuid), children: cluster.name }, cluster.uuid)))
151
+ : undefined })] }));
152
+ const modelerElement = props.appElements?.find((e) => e.key === 'modeler');
153
+ const appItems = buildAppSidebarItems(clusters, onConsoleClick, modelerElement?.href
154
+ ? { label: modelerElement.label, href: modelerElement.href }
155
+ : undefined);
156
+ // Internal/admin context tags (support-agent, forced org role) — pure UI from
157
+ // props.navbar.tags. Carbon's TagColor maps to the nearest Badge variant.
158
+ const tags = props.navbar?.tags;
159
+ const tagBadges = tags && tags.length > 0 ? (_jsx("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: tags.map((tag) => (_jsx(Badge, { variant: tag.color === 'red' ? 'danger' : 'neutral', children: tag.label }, tag.key))) })) : undefined;
160
+ // Show the help icon whenever there is anything to open.
161
+ const hasHelp = (helpLinks && helpLinks.length > 0) ||
162
+ !!props.onSubmitFeedback ||
163
+ !!props.helpCenter ||
164
+ !!props.onFetchHelpCenterData;
165
+ const helpControl = hasHelp ? (_jsx(Button, { variant: 'ghost', size: 'icon', "aria-label": 'Help', type: 'button', onClick: () => openHelpCenter(), children: _jsx(HelpCircle, { "aria-hidden": true, className: 'size-4' }) })) : undefined;
166
+ // Light/dark toggle. Drives the c3 theme (data-carbon-theme), which the
167
+ // runtime bridge mirrors to `.dark` for DS components — so both switch.
168
+ const isDark = resolvedTheme === 'dark';
169
+ const themeToggle = (_jsx(Button, { variant: 'ghost', size: 'icon', type: 'button', "aria-label": isDark ? 'Switch to light theme' : 'Switch to dark theme', onClick: () => onThemeChange(isDark ? 'light' : 'dark'), children: isDark ? (_jsx(Sun, { "aria-hidden": true, className: 'size-4' })) : (_jsx(Moon, { "aria-hidden": true, className: 'size-4' })) }));
170
+ const trailing = (_jsxs(_Fragment, { children: [themeToggle, helpControl, renderUserMenu(props)] }));
171
+ return (_jsx(TooltipProvider, { delayDuration: 0, children: _jsx(SidebarProvider, { children: _jsxs("div", { className: 'min-h-screen bg-background text-neutral-foreground-strong', children: [_jsx(AppHeader, { skipToContentTargetId: 'main-content', logo: consoleButton, breadcrumb: breadcrumb, trailing: trailing, children: tagBadges }), _jsx(AppSidebar, { ariaLabel: 'Camunda apps', items: appItems }), _jsx("main", { id: 'main-content', tabIndex: -1, style: { marginLeft: 'var(--app-sidebar-width, 16rem)' }, children: children }), _jsx(C4HelpCenter, { open: isHelpCenterOpen, onOpenChange: (open) => {
172
+ if (!open)
173
+ setIsHelpCenterOpen(false);
174
+ }, data: helpCenterData, isLoading: helpCenterLoading, helpLinks: helpLinks, onSubmitFeedback: props.onSubmitFeedback, feedbackEnterprise: props.feedbackEnterprise, initialTabId: showTabId === 'feedback' ? FEEDBACK_TAB_ID : undefined })] }) }) }));
175
+ };
@@ -5,7 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C3ResponsiveStack } from '@camunda/camunda-composite-components';
8
- import { Button, Link, ListItem, OrderedList, Stack, Tile } from '@carbon/react';
8
+ import { ListItem, OrderedList } from '@carbon/react';
9
+ import { Button, Link, Stack, Tile } from '../../ui/index.js';
9
10
  export const C4OldDashboard = ({ usersAmount, invitationsAmount, clustersAmount, healthyClustersAmount, updateAvailable, permissions, actions, urls, texts, displayFirstCTA = true, }) => {
10
11
  const welcomeTile = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs("h3", { children: [texts.welcome.title, _jsx("span", { id: 'welcomeHeader' })] }), _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.text } }), _jsxs(OrderedList, { style: { marginLeft: '3rem' }, children: [_jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item1 } }) }), _jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item2 } }) }), _jsx(ListItem, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: texts.welcome.item3 } }) })] }), _jsx("div", { children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [displayFirstCTA && (_jsx(Button, { onClick: actions.onModelProcess, id: 'modelAProcess', children: texts.welcome.cta })), _jsx(Button, { onClick: actions.onGettingStartedGuide, id: 'gettingStartedGuide', kind: 'tertiary', children: texts.welcome.gsg }), _jsx(Button, { onClick: actions.onWatchDemo, id: 'gettingStartedAcademy', kind: 'tertiary', children: texts.welcome.watchADemo })] }) })] }) }));
11
12
  const usersTile = permissions.showUsers && (_jsx(Tile, { style: {
@@ -41,7 +42,7 @@ export const C4OldDashboard = ({ usersAmount, invitationsAmount, clustersAmount,
41
42
  ? texts.clusters.noClusters
42
43
  : clustersAmount === 1
43
44
  ? texts.clusters.oneCluster
44
- : texts.clusters.multipleClusters.replace('{{variable}}', clustersAmount.toString()) }), clustersAmount === 0 ? (_jsx("div", { children: _jsx(Button, { kind: 'tertiary', size: 'md', onClick: actions.onCreateCluster, children: texts.clusters.createACluster }) })) : (_jsx(_Fragment, {})), clustersAmount > 0 ? (_jsx("p", { dangerouslySetInnerHTML: {
45
+ : texts.clusters.multipleClusters.replace('{{variable}}', clustersAmount.toString()) }), clustersAmount === 0 ? (_jsx("div", { children: _jsx(Button, { kind: 'tertiary', size: 'md', onClick: actions.onCreateCluster, disabled: permissions.clusterCreateDisabled ?? false, children: texts.clusters.createACluster }) })) : (_jsx(_Fragment, {})), clustersAmount > 0 ? (_jsx("p", { dangerouslySetInnerHTML: {
45
46
  __html: texts.clusters.status
46
47
  .replace('<0>', '<strong>')
47
48
  .replace('</0>', '</strong>')
@@ -7,6 +7,7 @@ export interface C4OldDashboardProps {
7
7
  permissions: {
8
8
  showUsers: boolean;
9
9
  showMembersLink: boolean;
10
+ clusterCreateDisabled?: boolean;
10
11
  };
11
12
  actions: {
12
13
  onModelProcess: () => void;
@@ -0,0 +1,13 @@
1
+ import { PageLayout } from '@camunda/design-system';
2
+ import type { ComponentProps, JSX } from 'react';
3
+ type C4PageLayoutProps = ComponentProps<typeof PageLayout>;
4
+ /**
5
+ * Design-system-switchable page container.
6
+ *
7
+ * ds mode wraps the page content in the DS `PageLayout` (consistent padding +
8
+ * width), matching the pages that go through `C4PageTemplate`. Carbon mode is a
9
+ * transparent passthrough, leaving the page's existing layout untouched. Use it
10
+ * for bespoke pages that don't route through `C4PageTemplate`.
11
+ */
12
+ export declare function C4PageLayout(props: C4PageLayoutProps): JSX.Element;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { PageLayout } from '@camunda/design-system';
8
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
9
+ /**
10
+ * Design-system-switchable page container.
11
+ *
12
+ * ds mode wraps the page content in the DS `PageLayout` (consistent padding +
13
+ * width), matching the pages that go through `C4PageTemplate`. Carbon mode is a
14
+ * transparent passthrough, leaving the page's existing layout untouched. Use it
15
+ * for bespoke pages that don't route through `C4PageTemplate`.
16
+ */
17
+ export function C4PageLayout(props) {
18
+ const designSystem = useC4DesignSystem();
19
+ if (designSystem !== 'ds') {
20
+ return _jsx(_Fragment, { children: props.children });
21
+ }
22
+ return _jsx(PageLayout, { ...props });
23
+ }