@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,83 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const mockText = {
3
+ title: 'Alerts',
4
+ createButton: 'Create new alert',
5
+ searchLabel: 'Search',
6
+ deliveryTypeHeader: 'Delivery method',
7
+ createdAtHeader: 'Created at',
8
+ createdByHeader: 'Created by',
9
+ updateAction: 'Update',
10
+ deleteAction: 'Delete',
11
+ targetWebhookLabel: 'Payload URL',
12
+ targetEmailLabel: 'Email address',
13
+ updatedLabel: 'Last updated',
14
+ updatedByLabel: 'Updated by',
15
+ lastTimeTriggeredLabel: 'Last time triggered',
16
+ numberOfTimesTriggeredLabel: 'Amount triggered',
17
+ hmacEnabledLabel: 'HMAC enabled',
18
+ noAlertsTitle: 'Alerts keep you informed',
19
+ noAlertsDescription: (_jsxs(_Fragment, { children: ["Click ", _jsx("strong", { children: "Create an alert" }), " to be notified about incidents in your process instances. ", _jsx("br", {}), "Go straight from an alert to Operate to resolve an incident and unblock your instances."] })),
20
+ noAlertsButton: 'Create an alert',
21
+ noAlertsLink: 'View the alerts documentation',
22
+ infoText: (_jsxs(_Fragment, { children: ["Alerts can be used to get notified about important events in the cluster. See the ", _jsx("a", { href: '#', children: "alerts" }), " documentation to learn more details."] })),
23
+ };
24
+ export const mockPermissions = {
25
+ canCreate: true,
26
+ canCreateDisabled: false,
27
+ canUpdate: true,
28
+ canDelete: true,
29
+ };
30
+ export const mockAlerts = [
31
+ {
32
+ id: '1',
33
+ deliveryMethod: 'Email',
34
+ createdAt: '10 Nov 2025, 14:30',
35
+ createdBy: 'John Doe',
36
+ updatedAt: '11 Nov 2025, 09:15',
37
+ updatedBy: 'Jane Smith',
38
+ lastTimeTriggered: '12 Nov 2025, 08:45',
39
+ triggerCount: 5,
40
+ userIdOrWebhook: 'john.doe@example.com',
41
+ reportType: 'Email',
42
+ hmacEnabled: false,
43
+ canEdit: true,
44
+ },
45
+ {
46
+ id: '2',
47
+ deliveryMethod: 'Webhook',
48
+ createdAt: '08 Nov 2025, 10:20',
49
+ createdBy: 'Alice Johnson',
50
+ updatedAt: '09 Nov 2025, 16:30',
51
+ updatedBy: 'Bob Williams',
52
+ lastTimeTriggered: undefined,
53
+ triggerCount: 0,
54
+ userIdOrWebhook: 'https://example.com/webhook',
55
+ reportType: 'Webhook',
56
+ hmacEnabled: true,
57
+ canEdit: true,
58
+ },
59
+ {
60
+ id: '3',
61
+ deliveryMethod: 'Email',
62
+ createdAt: '05 Nov 2025, 11:45',
63
+ createdBy: 'Charlie Brown',
64
+ updatedAt: undefined,
65
+ updatedBy: undefined,
66
+ lastTimeTriggered: '10 Nov 2025, 12:00',
67
+ triggerCount: 12,
68
+ userIdOrWebhook: 'charlie.brown@example.com',
69
+ reportType: 'Email',
70
+ hmacEnabled: false,
71
+ canEdit: false,
72
+ },
73
+ ];
74
+ export const withAlertsProps = {
75
+ alerts: mockAlerts,
76
+ isLoading: false,
77
+ text: mockText,
78
+ permissions: mockPermissions,
79
+ onCreateAlert: () => console.log('Create alert clicked'),
80
+ onUpdateAlert: (id) => console.log('Update alert clicked:', id),
81
+ onDeleteAlert: (id) => console.log('Delete alert clicked:', id),
82
+ onNoAlertsDocsClick: () => console.log('No alerts docs link clicked'),
83
+ };
@@ -1,13 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { Button, CodeSnippet, Stack } from '@carbon/react';
9
2
  import { Edit, Renew } from '@carbon/react/icons/index.esm.js';
10
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
+ import { Button, CodeSnippet, Stack } from '../../ui/index.js';
5
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
6
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
11
7
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
12
8
  export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }) => {
13
9
  const tableData = clients.map((client, originalIndex) => ({
@@ -165,7 +161,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
165
161
  },
166
162
  ];
167
163
  if (hasError) {
168
- return (_jsx(C3EmptyState, { icon: {
164
+ return (_jsx(C4EmptyState, { card: true, icon: {
169
165
  path: C4_ASSET_URLS.errorIcon,
170
166
  altText: 'errorIcon',
171
167
  }, heading: text.errorTitle, description: text.errorDescription, button: {
@@ -176,7 +172,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
176
172
  } }));
177
173
  }
178
174
  if (!isLoading && clients.length === 0) {
179
- return (_jsx(C3EmptyState, { icon: {
175
+ return (_jsx(C4EmptyState, { card: true, icon: {
180
176
  path: C4_ASSET_URLS.clientApiIcon,
181
177
  altText: 'clientApiIcon',
182
178
  }, heading: text.emptyTitle, description: text.emptyDescription, button: {
@@ -196,7 +192,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
196
192
  gap: '2rem',
197
193
  maxWidth: 'calc(100vw - 64px)',
198
194
  width: '100%',
199
- }, children: _jsx(C3DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: (() => {
195
+ }, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: (() => {
200
196
  if (hasIdentityIntegration && hasIdentityAuthorization) {
201
197
  return (_jsxs(Stack, { children: [_jsxs("p", { children: [text.subtitleIdentityPrefix, ' ', _jsx(C4LinkButton, { label: text.subtitleIdentityLinkLabel, onClick: onOpenDocs, inline: true }), text.subtitleIdentitySuffix] }), _jsx(Button, { kind: 'tertiary', size: 'md', onClick: onOpenIdentity, children: text.identityButton })] }));
202
198
  }
@@ -0,0 +1,6 @@
1
+ import type { C4ClusterDetailsClientsProps, ClientItem } from './c4-cluster-details-clients.types';
2
+ export declare const defaultText: C4ClusterDetailsClientsProps['text'];
3
+ export declare const defaultUrls: C4ClusterDetailsClientsProps['urls'];
4
+ export declare const defaultPermissions: C4ClusterDetailsClientsProps['permissions'];
5
+ export declare const sampleClients: ClientItem[];
6
+ export declare const defaultProps: C4ClusterDetailsClientsProps;
@@ -0,0 +1,79 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const defaultText = {
3
+ title: 'Client credentials',
4
+ subtitle: 'Open a set of credentials to see the base URLs, connection information, and more.',
5
+ subtitleIdentityPrefix: "To set up permissions, copy the client ID over to the cluster's Identity and configure the required access and roles. Learn more about",
6
+ subtitleIdentityLinkLabel: 'client credentials',
7
+ subtitleIdentitySuffix: '.',
8
+ identityButton: 'Configure authorizations in Identity',
9
+ createButton: 'Create new client',
10
+ createFirstClient: 'Create your first client',
11
+ searchLabel: 'Search',
12
+ headerName: 'Name',
13
+ headerClientId: 'Client Id',
14
+ headerScopes: 'Scopes',
15
+ headerCreated: 'Created',
16
+ headerLastUsed: 'Last Used',
17
+ renameAction: 'Rename',
18
+ deleteAction: 'Delete',
19
+ errorTitle: 'Error fetching clients',
20
+ errorDescription: 'An error occurred while fetching the client list.',
21
+ errorButton: 'Retry',
22
+ emptyTitle: 'Use our secure, scalable API',
23
+ emptyDescription: (_jsxs(_Fragment, { children: ["Click ", _jsx("strong", { children: "Create your first client" }), " to deploy processes, start instances, and interact with them programmatically."] })),
24
+ learnMoreLabel: 'View the Client Configuration documentation',
25
+ };
26
+ export const defaultUrls = {
27
+ clientDetails: (clientId) => `/org/123/clusters/456/clients/${clientId}`,
28
+ identity: 'https://identity.example.com',
29
+ docs: 'https://docs.camunda.io',
30
+ };
31
+ export const defaultPermissions = {
32
+ canCreate: true,
33
+ canUpdate: true,
34
+ canDelete: true,
35
+ };
36
+ export const sampleClients = [
37
+ {
38
+ id: 'client-1',
39
+ name: 'Production Client',
40
+ clientId: 'abc123def456',
41
+ scopes: ['Zeebe', 'Tasklist', 'Operate'],
42
+ created: new Date('2024-01-15T10:30:00Z'),
43
+ lastUsed: new Date('2024-11-15T14:20:00Z'),
44
+ },
45
+ {
46
+ id: 'client-2',
47
+ name: 'Development Client',
48
+ clientId: 'xyz789ghi012',
49
+ scopes: ['Orchestration', 'Optimize'],
50
+ created: new Date('2024-03-20T09:15:00Z'),
51
+ lastUsed: new Date('2024-11-10T11:45:00Z'),
52
+ },
53
+ {
54
+ id: 'client-3',
55
+ name: 'Test Client',
56
+ clientId: 'test123test456',
57
+ scopes: ['Zeebe'],
58
+ created: new Date('2024-06-10T15:00:00Z'),
59
+ lastUsed: undefined,
60
+ },
61
+ ];
62
+ export const defaultProps = {
63
+ clients: sampleClients,
64
+ isLoading: false,
65
+ hasError: false,
66
+ hasIdentityIntegration: false,
67
+ hasIdentityAuthorization: false,
68
+ hasZeebeUrl: true,
69
+ text: defaultText,
70
+ urls: defaultUrls,
71
+ permissions: defaultPermissions,
72
+ onNavigateToClient: (clientId) => console.log('Navigate to client:', clientId),
73
+ onCreateClient: () => console.log('Create client'),
74
+ onUpdateClient: (clientId) => console.log('Update client:', clientId),
75
+ onDeleteClient: (clientId) => console.log('Delete client:', clientId),
76
+ onRefresh: () => console.log('Refresh'),
77
+ onOpenIdentity: () => console.log('Open Identity'),
78
+ onOpenDocs: () => console.log('Open docs'),
79
+ };
@@ -1,13 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
8
- import { DataTableSkeleton, Stack, Tag } from '@carbon/react';
9
2
  import { Renew } from '@carbon/react/icons/index.esm.js';
10
3
  import { C4_ASSET_URLS } from '../../assetUrls.js';
4
+ import { Stack, Tag } from '../../ui/index.js';
5
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
6
+ import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
7
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
11
8
  export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError, hasImportFromClusterFeature, hasExportFeature, text, urls, permissions, onCreateSecret, onBulkImportSecrets, onImportFromCluster, onExportSecrets, onRevealSecret, onUpdateSecret, onDeleteSecret, onRefresh, onOpenDocs, }) => {
12
9
  const headerData = [
13
10
  {
@@ -127,10 +124,10 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
127
124
  ]
128
125
  : [];
129
126
  if (isLoading) {
130
- return _jsx(DataTableSkeleton, { showToolbar: false, showHeader: false });
127
+ return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
131
128
  }
132
129
  if (hasError) {
133
- return (_jsx(C3EmptyState, { icon: {
130
+ return (_jsx(C4EmptyState, { card: true, icon: {
134
131
  path: C4_ASSET_URLS.errorIcon,
135
132
  altText: 'errorIcon',
136
133
  }, heading: text.errorTitle, description: text.errorDescription, button: {
@@ -141,7 +138,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
141
138
  } }));
142
139
  }
143
140
  if (secrets.length === 0) {
144
- return (_jsx(C3EmptyState, { icon: {
141
+ return (_jsx(C4EmptyState, { card: true, icon: {
145
142
  path: C4_ASSET_URLS.connectorSecretIcon,
146
143
  altText: text.emptyIconAltText ?? 'Connector secrets icon',
147
144
  }, heading: text.emptyTitle, description: text.emptyDescription, buttons: [
@@ -187,7 +184,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
187
184
  onClick: onOpenDocs,
188
185
  } }));
189
186
  }
190
- return (_jsxs(Stack, { gap: 6, children: [_jsx(C3DataTable, { headers: headerData, data: secrets, actions: actions, toolbar: toolbar, title: text.title, options: {
187
+ return (_jsxs(Stack, { gap: 6, children: [_jsx(C4DataTable, { headers: headerData, data: secrets, actions: actions, toolbar: toolbar, title: text.title, options: {
191
188
  actionsUseOverflowMenuMinItems: 1,
192
189
  }, queryPrefix: 'cluster-details-connector-secrets' }), _jsx("span", { className: 'legalText', children: text.infoText })] }));
193
190
  };
@@ -0,0 +1,3 @@
1
+ import type { C4ClusterDetailsConnectorSecretsProps, ConnectorSecret } from './c4-cluster-details-connector-secrets.types';
2
+ export declare const mockSecrets: ConnectorSecret[];
3
+ export declare const withSecretsProps: C4ClusterDetailsConnectorSecretsProps;
@@ -0,0 +1,65 @@
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 mockSecrets = [
7
+ { id: 'api-key-1', key: 'api-key-1' },
8
+ { id: 'database-password', key: 'database-password' },
9
+ { id: 'oauth-secret', key: 'oauth-secret' },
10
+ { id: 'smtp-credentials', key: 'smtp-credentials' },
11
+ // CAMUNDA_PROVIDED_ secrets are system-managed and display the 'Hidden' badge
12
+ {
13
+ id: 'CAMUNDA_PROVIDED_example',
14
+ key: 'CAMUNDA_PROVIDED_example',
15
+ isProtected: true,
16
+ },
17
+ ];
18
+ export const withSecretsProps = {
19
+ secrets: mockSecrets,
20
+ isLoading: false,
21
+ hasError: false,
22
+ hasImportFromClusterFeature: false,
23
+ hasExportFeature: true,
24
+ text: {
25
+ title: 'Connector secrets',
26
+ createButton: 'Create new secret',
27
+ bulkImportButton: 'Import',
28
+ importFromFileLabel: 'from File',
29
+ importFromClusterButton: 'from Cluster',
30
+ exportButton: 'Export',
31
+ searchLabel: 'Search',
32
+ headerKey: 'Key',
33
+ revealAction: 'Reveal secret',
34
+ updateAction: 'Update',
35
+ deleteAction: 'Delete',
36
+ errorTitle: 'Oops ... something went wrong.',
37
+ errorDescription: 'Please try reloading!',
38
+ errorButton: 'Reload',
39
+ emptyTitle: 'Store Connector credentials safely using Camunda secrets',
40
+ emptyDescription: 'Accessing an external system requires authentication with credentials. To ensure the credentials are secure, use the Camunda secrets vault to store usernames, passwords, or API credentials without exposing sensitive information in your BPMN processes.',
41
+ emptyCreateButton: 'Create new secret',
42
+ emptyLearnMoreLabel: 'View the secrets documentation',
43
+ infoText: 'Secrets can be used to reference encrypted authentication credentials in Connectors. See the secrets documentation for more details.',
44
+ // Label for the badge shown on CAMUNDA_PROVIDED_ secrets
45
+ protectedBadge: 'Hidden',
46
+ },
47
+ urls: {
48
+ docs: 'https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets',
49
+ },
50
+ permissions: {
51
+ canCreate: true,
52
+ canRead: true,
53
+ canUpdate: true,
54
+ canDelete: true,
55
+ },
56
+ onCreateSecret: () => console.log('Create secret'),
57
+ onBulkImportSecrets: () => console.log('Bulk import secrets'),
58
+ onImportFromCluster: () => console.log('Import from cluster'),
59
+ onExportSecrets: () => console.log('Export secrets'),
60
+ onRevealSecret: (key) => console.log('Reveal secret:', key),
61
+ onUpdateSecret: (key) => console.log('Update secret:', key),
62
+ onDeleteSecret: (key) => console.log('Delete secret:', key),
63
+ onRefresh: () => console.log('Refresh'),
64
+ onOpenDocs: () => console.log('Open docs'),
65
+ };
@@ -4,10 +4,15 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Button, CodeSnippet, InlineLoading, InlineNotification, Layer, Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tab, TabList, TabPanel, TabPanels, Tabs, TextInput, Tile, } from '@carbon/react';
7
+ import { InlineLoading, Layer } from '@carbon/react';
8
8
  import { CheckmarkFilled, Download, ErrorFilled, RuleLocked, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
9
9
  import { useState } from 'react';
10
+ import { Button, CodeSnippet, Link, Stack, TextInput, Tile } from '../../ui/index.js';
11
+ import { useTabsFamily } from '../../ui/tabs.js';
12
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
13
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
10
14
  export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
15
+ const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
11
16
  const [selectedIndex, setSelectedIndex] = useState(0);
12
17
  const handleTabChange = (evt) => {
13
18
  setSelectedIndex(evt.selectedIndex);
@@ -102,11 +107,11 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text,
102
107
  })()] }));
103
108
  }
104
109
  if (cluster.status === 'Ready') {
105
- return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(StructuredListWrapper, { children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(StructuredListCell, { children: "External / AWS" })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(StructuredListCell, { children: status[cluster.status] })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] }));
110
+ return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] }));
106
111
  }
107
- return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(InlineNotification, { style: {
112
+ return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(C4InlineNotification, { style: {
108
113
  maxWidth: '100%',
109
114
  width: '100%',
110
115
  marginBottom: '24px',
111
- }, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(StructuredListWrapper, { isCondensed: true, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(StructuredListCell, { children: "External / AWS" })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(StructuredListCell, { children: status[cluster.status] })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(StructuredListCell, { children: cluster.backupRegion })] }))] }) }) }), _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: "1. Key creation & configuration (select preferred method)" }), _jsx(Layer, { children: _jsxs(Tabs, { selectedIndex: selectedIndex, onChange: handleTabChange, children: [_jsxs(TabList, { "aria-label": 'List of tabs', contained: true, children: [_jsx(Tab, { children: text.cliTabTitle }), _jsx(Tab, { children: text.manualTabTitle })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create your Key using the below CLI script" }), _jsx("p", { children: text.cliTabStep1 }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadScript, children: text.downloadCliScript }), _jsx("p", { children: text.cliTabStep2 }), _jsx("p", { children: text.cliTabStep3 }), _jsx("span", { children: _jsx(Link, { href: urls.cliScriptLearnMore, target: '_blank', children: text.cliTabLearnMore }) })] }) }), _jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create and configure your KMS key in your AWS console" }), _jsxs("p", { children: [text.manualTabStep1.replace('{region}', cluster.region), ' '] }), cluster.isDualRegion ? (_jsxs(_Fragment, { children: [_jsxs("p", { children: [text.manualTabStep2.replace('{region}', cluster.backupRegion || ''), ' '] }), _jsx("p", { children: text.manualTabStep3Dual })] })) : (_jsx("p", { children: text.manualTabStep2Single })), _jsx("label", { children: text.manualTabKeyPolicyLabel }), _jsx(CodeSnippet, { className: 'cds--layer-one', type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: scripts.keyPolicy }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadKeyPolicy, children: text.downloadKeyPolicy }), _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.learnMoreAboutCreatingKmsKey, children: text.snippedTileDokuLink }) })] }) })] })] }) })] }) }), _jsx(Tile, { children: _jsx(Layer, { children: inputTab }) })] })] })] }));
116
+ }, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] }))] }) }) }), _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: "1. Key creation & configuration (select preferred method)" }), _jsx(Layer, { children: _jsxs(Tabs, { selectedIndex: selectedIndex, onChange: handleTabChange, children: [_jsxs(TabList, { "aria-label": 'List of tabs', contained: true, children: [_jsx(Tab, { children: text.cliTabTitle }), _jsx(Tab, { children: text.manualTabTitle })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create your Key using the below CLI script" }), _jsx("p", { children: text.cliTabStep1 }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadScript, children: text.downloadCliScript }), _jsx("p", { children: text.cliTabStep2 }), _jsx("p", { children: text.cliTabStep3 }), _jsx("span", { children: _jsx(Link, { href: urls.cliScriptLearnMore, target: '_blank', children: text.cliTabLearnMore }) })] }) }), _jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create and configure your KMS key in your AWS console" }), _jsxs("p", { children: [text.manualTabStep1.replace('{region}', cluster.region), ' '] }), cluster.isDualRegion ? (_jsxs(_Fragment, { children: [_jsxs("p", { children: [text.manualTabStep2.replace('{region}', cluster.backupRegion || ''), ' '] }), _jsx("p", { children: text.manualTabStep3Dual })] })) : (_jsx("p", { children: text.manualTabStep2Single })), _jsx("label", { children: text.manualTabKeyPolicyLabel }), _jsx(CodeSnippet, { className: 'cds--layer-one', type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: scripts.keyPolicy }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadKeyPolicy, children: text.downloadKeyPolicy }), _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.learnMoreAboutCreatingKmsKey, children: text.snippedTileDokuLink }) })] }) })] })] }) })] }) }), _jsx(Tile, { children: _jsx(Layer, { children: inputTab }) })] })] })] }));
112
117
  };
@@ -4,11 +4,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { C3DataTable, C3EmptyState, C3ResponsiveStack, } from '@camunda/camunda-composite-components';
8
- import { Button, DataTableSkeleton, InlineNotification, Stack, Tile, } from '@carbon/react';
7
+ import { C3ResponsiveStack, } from '@camunda/camunda-composite-components';
9
8
  import { Add, Chat, Edit, EventSchedule, Renew } from '@carbon/react/icons/index.esm.js';
10
9
  import styled from 'styled-components';
11
10
  import { C4_ASSET_URLS } from '../../assetUrls.js';
11
+ import { Button, Stack, Tile } from '../../ui/index.js';
12
+ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
13
+ import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
14
+ import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
15
+ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
12
16
  const BackupScheduleWrapper = styled.div `
13
17
  width: 100%;
14
18
 
@@ -168,7 +172,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
168
172
  },
169
173
  ];
170
174
  if (showTeaser) {
171
- return (_jsx(C3EmptyState, { icon: { path: C4_ASSET_URLS.backupIcon, altText: 'backup' }, heading: text.teaserHeading, description: _jsxs(_Fragment, { children: [text.teaserDescription, _jsx("strong", { children: text.teaserAdditionalDescription })] }), button: {
175
+ return (_jsx(C4EmptyState, { card: true, icon: { path: C4_ASSET_URLS.backupIcon, altText: 'backup' }, heading: text.teaserHeading, description: _jsxs(_Fragment, { children: [text.teaserDescription, _jsx("strong", { children: text.teaserAdditionalDescription })] }), button: {
172
176
  onClick: onTalkToExpert,
173
177
  disabled: false,
174
178
  label: text.teaserButton,
@@ -181,10 +185,10 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
181
185
  } }));
182
186
  }
183
187
  if (isLoading) {
184
- return _jsx(DataTableSkeleton, { showToolbar: false, showHeader: false });
188
+ return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
185
189
  }
186
190
  if (hasError) {
187
- return (_jsx(C3EmptyState, { icon: {
191
+ return (_jsx(C4EmptyState, { card: true, icon: {
188
192
  path: C4_ASSET_URLS.errorIcon,
189
193
  altText: 'errorIcon',
190
194
  }, heading: text.errorTitle, description: text.errorDescription, button: {
@@ -195,7 +199,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
195
199
  } }));
196
200
  }
197
201
  if (backups.length === 0 && !backupSchedule) {
198
- return (_jsxs(_Fragment, { children: [!clusterSupportsHotBackups && (_jsx(InlineNotification, { style: {
202
+ return (_jsxs(_Fragment, { children: [!clusterSupportsHotBackups && (_jsx(C4InlineNotification, { style: {
199
203
  maxWidth: '100%',
200
204
  width: '100%',
201
205
  marginBottom: '24px',
@@ -209,7 +213,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
209
213
  !clusterSupportsHotBackups ||
210
214
  isRestoring, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
211
215
  }
212
- return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onClose: restoreError.onDismiss, onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
216
+ return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onClose: restoreError.onDismiss, onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
213
217
  display: 'grid',
214
218
  gridTemplateColumns: '1fr 1fr',
215
219
  gridGap: '5px 0px',
@@ -220,7 +224,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
220
224
  gap: '2rem',
221
225
  maxWidth: 'calc(100vw - 64px)',
222
226
  width: '100%',
223
- }, children: _jsx(C3DataTable, { title: text.title, headers: headerData, data: backups.map((item) => {
227
+ }, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data: backups.map((item) => {
224
228
  return { ...item, expansion: expandedRow(item) };
225
229
  }), toolbar: toolbar, actions: actions, options: {
226
230
  actionsUseOverflowMenuMinItems: 3,
@@ -0,0 +1,60 @@
1
+ import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
2
+ export declare const defaultText: {
3
+ title: string;
4
+ teaserHeading: string;
5
+ teaserDescription: string;
6
+ teaserAdditionalDescription: string;
7
+ teaserButton: string;
8
+ teaserLink: string;
9
+ createButton: string;
10
+ searchLabel: string;
11
+ headerName: string;
12
+ headerStatus: string;
13
+ headerType: string;
14
+ headerStarted: string;
15
+ headerCompleted: string;
16
+ deleteAction: string;
17
+ expansionVersionLabel: string;
18
+ restoreAction: string;
19
+ restoreInProgressTitle: string;
20
+ restoreInProgressText: string;
21
+ restoreErrorTitle: string;
22
+ restoreErrorMessage: string;
23
+ errorTitle: string;
24
+ errorDescription: string;
25
+ errorButton: string;
26
+ emptyTitle: string;
27
+ emptyDescription: string;
28
+ noBackupsTitle: string;
29
+ noBackupsDescription: string;
30
+ backupsUnavailableTitle: string;
31
+ backupsUnavailableText: string;
32
+ disabledNotificationTitle: string;
33
+ disabledNotificationText: string;
34
+ scheduleTileTitle: string;
35
+ scheduleTileDescription: string;
36
+ scheduleTileButton: string;
37
+ scheduleStatusEnabled: string;
38
+ scheduleStatusDisabled: string;
39
+ scheduleStartTime: string;
40
+ scheduleFrequency: string;
41
+ scheduleTimezone: string;
42
+ scheduleRemoveButton: string;
43
+ infoText: string;
44
+ giveFeedback: string;
45
+ zeebeLabel: string;
46
+ operateLabel: string;
47
+ tasklistLabel: string;
48
+ optimizeLabel: string;
49
+ };
50
+ export declare const defaultUrls: {
51
+ docs: string;
52
+ support: string;
53
+ talkToExpert: string;
54
+ };
55
+ export declare const defaultPermissions: {
56
+ canCreate: boolean;
57
+ canDelete: boolean;
58
+ canRestore: boolean;
59
+ };
60
+ export declare const withBackupsProps: C4ClusterDetailsHotBackupsProps;