@camunda/ccma-saas-frontend 0.18.11 → 0.19.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 (259) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
  3. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
  4. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
  5. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
  6. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
  7. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
  8. package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
  9. package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
  10. package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
  11. package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
  12. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
  13. package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
  14. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
  15. package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
  16. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
  17. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
  18. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
  19. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
  20. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
  21. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
  22. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
  23. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
  24. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
  25. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
  26. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
  27. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
  28. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
  29. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
  30. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
  31. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
  32. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
  33. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
  34. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
  35. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
  36. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
  37. package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
  38. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
  39. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
  40. package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
  41. package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
  42. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
  43. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
  44. package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
  45. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
  46. package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
  47. package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
  48. package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
  49. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
  50. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
  51. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
  52. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
  53. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
  54. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
  55. package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
  56. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
  57. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
  58. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
  59. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
  60. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
  61. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
  62. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
  63. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
  64. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
  65. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
  66. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
  67. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
  68. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
  69. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
  70. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
  71. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
  72. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
  73. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
  74. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
  75. package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
  76. package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
  77. package/lib/esm/components/c4-divider/c4-divider.js +5 -13
  78. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
  79. package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
  80. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
  81. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
  82. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
  83. package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
  84. package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
  85. package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
  86. package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
  87. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
  88. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
  89. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
  90. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
  91. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
  92. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
  93. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
  94. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
  95. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
  96. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
  97. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
  98. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
  99. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
  100. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
  101. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
  102. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
  103. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
  104. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
  105. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
  106. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
  107. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
  108. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
  109. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
  110. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
  111. package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
  112. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
  113. package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
  114. package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
  115. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
  116. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
  117. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
  118. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
  119. package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
  120. package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
  121. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
  122. package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
  123. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
  124. package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
  125. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
  126. package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
  127. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
  128. package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
  129. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
  130. package/lib/esm/components/c4-search/c4-search-results.js +44 -36
  131. package/lib/esm/components/c4-search/c4-search.js +5 -7
  132. package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
  133. package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
  134. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
  135. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
  136. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
  137. package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
  138. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
  139. package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
  140. package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
  141. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
  142. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
  143. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
  144. package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
  145. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
  146. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
  147. package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
  148. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
  149. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
  150. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
  151. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
  152. package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
  153. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
  154. package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
  155. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
  156. package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
  157. package/lib/esm/index.css +107 -74
  158. package/lib/esm/index.d.ts +1 -9
  159. package/lib/esm/index.js +1 -5
  160. package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
  161. package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
  162. package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
  163. package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
  164. package/lib/esm/runtime/c4-user-theme.js +4 -4
  165. package/lib/esm/runtime/index.d.ts +1 -1
  166. package/lib/esm/runtime/index.js +1 -1
  167. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
  168. package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
  169. package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
  170. package/lib/esm/ui/c4-cluster-tag.js +1 -1
  171. package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
  172. package/lib/esm/ui/c4-modal-dialog.js +18 -9
  173. package/lib/esm/ui/c4-password-input.d.ts +4 -8
  174. package/lib/esm/ui/c4-password-input.js +4 -8
  175. package/lib/esm/ui/c4-text-area.d.ts +19 -0
  176. package/lib/esm/ui/c4-text-area.js +30 -0
  177. package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
  178. package/lib/esm/ui/ds-compact-code-block.js +1 -1
  179. package/lib/esm/ui/families.d.ts +13 -46
  180. package/lib/esm/ui/families.js +8 -51
  181. package/lib/esm/ui/index.d.ts +11 -53
  182. package/lib/esm/ui/index.js +19 -152
  183. package/lib/esm/ui/tabs.d.ts +1 -21
  184. package/lib/esm/ui/tabs.js +1 -22
  185. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
  186. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
  187. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
  188. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
  189. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
  193. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
  194. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
  195. package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
  196. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
  197. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  198. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
  199. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
  200. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
  201. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
  202. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
  203. package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
  204. package/lib/esm/widgets/management/c4-management-app.js +6 -9
  205. package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
  206. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
  207. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
  208. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
  209. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
  210. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
  211. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
  212. package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
  213. package/package.json +3 -14
  214. package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
  215. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
  216. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
  217. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
  218. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
  219. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
  220. package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
  221. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
  222. package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
  223. package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
  224. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
  225. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
  226. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
  227. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
  228. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
  229. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
  230. package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
  231. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
  232. package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
  233. package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
  234. package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
  235. package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
  236. package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
  237. package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
  238. package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
  239. package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
  240. package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
  241. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
  242. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
  243. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
  244. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
  245. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
  246. package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
  247. package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
  248. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
  249. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
  250. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
  251. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
  252. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
  253. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
  254. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
  255. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
  256. package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
  257. package/lib/esm/ui/c4-definition-tooltip.js +0 -43
  258. package/lib/esm/ui/switchable.d.ts +0 -14
  259. package/lib/esm/ui/switchable.js +0 -27
@@ -1,6 +1,6 @@
1
1
  import type { JSX, ReactNode } from 'react';
2
2
  /**
3
- * The heading of a section on the cluster details page, in ds mode. It is the
3
+ * The heading of a section on the cluster details page. It is the
4
4
  * section heading of the cluster and environment detail pages in Hub: an
5
5
  * 18px semibold `h2`. The DS `Heading` scale has no 18px step, thus Hub uses a
6
6
  * plain `h2` too.
@@ -11,7 +11,7 @@ export declare function DsSectionHeading(props: {
11
11
  action?: ReactNode;
12
12
  }): JSX.Element;
13
13
  /**
14
- * A section of the cluster details page in ds mode: the heading on top and the
14
+ * A section of the cluster details page: the heading on top and the
15
15
  * content under it, 12px apart, as in Hub. With `card`, the content sits in a
16
16
  * DS `Card`.
17
17
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { DsCard } from '../../ui/index.js';
3
3
  /**
4
- * The heading of a section on the cluster details page, in ds mode. It is the
4
+ * The heading of a section on the cluster details page. It is the
5
5
  * section heading of the cluster and environment detail pages in Hub: an
6
6
  * 18px semibold `h2`. The DS `Heading` scale has no 18px step, thus Hub uses a
7
7
  * plain `h2` too.
@@ -10,7 +10,7 @@ export function DsSectionHeading(props) {
10
10
  return (_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("h2", { className: 'm-0 text-lg font-semibold', children: props.children }), props.action] }));
11
11
  }
12
12
  /**
13
- * A section of the cluster details page in ds mode: the heading on top and the
13
+ * A section of the cluster details page: the heading on top and the
14
14
  * content under it, 12px apart, as in Hub. With `card`, the content sits in a
15
15
  * DS `Card`.
16
16
  */
@@ -1,7 +1,7 @@
1
1
  import { type LucideProps } from 'lucide-react';
2
2
  import type { ComponentType, CSSProperties, JSX, ReactNode } from 'react';
3
3
  /**
4
- * Icon colors for status indicators in ds mode. They are the
4
+ * Icon colors for status indicators. They are the
5
5
  * `*-foreground-subtle` tokens that the DS `StatusIcon` uses. We do not use
6
6
  * `StatusIcon` itself: it has four fixed glyphs, and a cluster status also
7
7
  * needs a spinner, a pause and other icons. Do not use `DS_STATUS_COLORS` of
@@ -15,7 +15,7 @@ export declare const DS_STATUS_ICON_COLORS: {
15
15
  readonly warning: "var(--warning-foreground-subtle)";
16
16
  readonly neutral: "var(--neutral-foreground-subtle)";
17
17
  };
18
- /** A lucide icon and its color, for a status indicator in ds mode. */
18
+ /** A lucide icon and its color, for a status indicator. */
19
19
  export interface DsStatusIcon {
20
20
  icon: ComponentType<LucideProps>;
21
21
  color: string;
@@ -23,7 +23,7 @@ export interface DsStatusIcon {
23
23
  /** Spins wherever it renders, so no caller has to special-case it. */
24
24
  export declare function SpinningLoader({ className, ...props }: LucideProps): JSX.Element;
25
25
  /**
26
- * The icon + text layout of the environment status in Hub, for ds mode only.
26
+ * The icon + text layout of the environment status in Hub.
27
27
  * Only the icon has the status color. The text stays neutral.
28
28
  */
29
29
  export declare function DsStatusIconText(props: {
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  */
7
7
  import { LoaderCircle } from 'lucide-react';
8
8
  /**
9
- * Icon colors for status indicators in ds mode. They are the
9
+ * Icon colors for status indicators. They are the
10
10
  * `*-foreground-subtle` tokens that the DS `StatusIcon` uses. We do not use
11
11
  * `StatusIcon` itself: it has four fixed glyphs, and a cluster status also
12
12
  * needs a spinner, a pause and other icons. Do not use `DS_STATUS_COLORS` of
@@ -25,7 +25,7 @@ export function SpinningLoader({ className, ...props }) {
25
25
  return (_jsx(LoaderCircle, { className: `animate-spin motion-reduce:animate-none ${className ?? ''}`, ...props }));
26
26
  }
27
27
  /**
28
- * The icon + text layout of the environment status in Hub, for ds mode only.
28
+ * The icon + text layout of the environment status in Hub.
29
29
  * Only the icon has the status color. The text stays neutral.
30
30
  */
31
31
  export function DsStatusIconText(props) {
@@ -1,16 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
3
2
  import { Button, Stack } from '../../../ui/index.js';
4
3
  import { SECTION_SUBHEADING_STYLE } from '../../../utils/section-heading-style.js';
5
4
  import { SettingsTile } from './settings-tile.js';
6
5
  export const DangerZone = ({ deleteCluster, title, permissions, }) => {
7
- const designSystem = useC4DesignSystem();
8
6
  // The DS Stack adapter is a `flex flex-col` div, and a flex column stretches
9
7
  // its items across the full width. That made the delete button as wide as the
10
8
  // card, which reads as a page-wide destructive area and not as one button.
11
- // `align-self` keeps the button at its own width. Carbon gets no style, thus
12
- // carbon mode does not change.
13
- const deleteButtonStyle = designSystem === 'ds' ? { alignSelf: 'flex-start' } : undefined;
9
+ // `align-self` keeps the button at its own width.
10
+ const deleteButtonStyle = { alignSelf: 'flex-start' };
14
11
  const component = (_jsx(SettingsTile, { title: title, children: _jsx("div", { children: _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h4", { style: SECTION_SUBHEADING_STYLE, children: deleteCluster.title }), _jsx("p", { children: deleteCluster.description })] }), _jsx(Button, { onClick: deleteCluster.action.onClick, kind: 'danger', disabled: !permissions.mayDeleteCluster, size: 'md', style: deleteButtonStyle, children: deleteCluster.action.label })] }) }) }));
15
12
  return component;
16
13
  };
@@ -139,7 +139,7 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
139
139
  };
140
140
  return (_jsx(Modal, { open: open, modalHeading: isEdit
141
141
  ? 'Edit external identity provider'
142
- : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [callbackUrl && (_jsxs("div", { children: [_jsx("p", { className: 'cds--label', children: "Redirect URI" }), _jsx("p", { className: 'cds--form__helper-text', children: "Add this to your provider's allowed redirect URIs before you save." }), _jsx(CodeSnippet, { type: 'single', "aria-label": 'Redirect URI', feedback: 'Copied', children: callbackUrl })] })), _jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Lowercase letters and digits, starting with a letter (e.g. acmesso).', value: name, maxLength: MAX_NAME_LENGTH, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: name === RESERVED_NAME
142
+ : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [callbackUrl && (_jsxs("div", { children: [_jsx("p", { className: 'c4-label', children: "Redirect URI" }), _jsx("p", { className: 'c4-helper-text', children: "Add this to your provider's allowed redirect URIs before you save." }), _jsx(CodeSnippet, { type: 'single', "aria-label": 'Redirect URI', feedback: 'Copied', children: callbackUrl })] })), _jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Lowercase letters and digits, starting with a letter (e.g. acmesso).', value: name, maxLength: MAX_NAME_LENGTH, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: name === RESERVED_NAME
143
143
  ? "'oidc' is reserved for the default identity provider"
144
144
  : 'Must match ^[a-z][a-z0-9]*$', onChange: (e) => {
145
145
  setNameEdited(true);
@@ -128,8 +128,8 @@ export const OptimizeFilteringSettings = ({ filtering, permissions, onToggle, on
128
128
  notice: 'When enabled, the Optimize exporter will only process data matching the configured include/exclude filters.',
129
129
  },
130
130
  ], onClick: handleToggle, permissions: { mayToggle: permissions.mayChange && !isPending } }), isActive && (_jsxs(_Fragment, { children: [_jsx(C4Divider, {}), _jsx("p", { style: {
131
- color: 'var(--cds-text-secondary)',
132
- fontSize: 'var(--cds-body-compact-01-font-size)',
131
+ color: 'var(--neutral-foreground-subtle)',
132
+ fontSize: '0.875rem',
133
133
  maxWidth: '650px',
134
134
  }, children: "Separate values with spaces or new lines." }), _jsxs(Stack, { gap: 5, style: { maxWidth: '650px' }, children: [_jsx(TextArea, { id: 'optimize-include-process-ids', labelText: 'Include process definitions', helperText: 'Only process definitions with a matching bpmnProcessId will be exported. All records for those processes follow the same rule.', value: includeProcessIds, onChange: (e) => {
135
135
  setIncludeProcessIds(e.target.value);
@@ -160,8 +160,8 @@ export const OptimizeFilteringSettings = ({ filtering, permissions, onToggle, on
160
160
  form: undefined,
161
161
  }));
162
162
  }, disabled: !permissions.mayChange || isPending, invalid: !!errors.excludeVariableNames, invalidText: errors.excludeVariableNames, rows: 3 }), permissions.mayChange && (_jsxs("div", { children: [errors.form && (_jsx("p", { role: 'alert', style: {
163
- color: 'var(--cds-text-error)',
164
- fontSize: 'var(--cds-body-compact-01-font-size)',
165
- marginBottom: 'var(--cds-spacing-03)',
163
+ color: 'var(--danger-foreground-subtle)',
164
+ fontSize: '0.875rem',
165
+ marginBottom: '0.5rem',
166
166
  }, children: errors.form })), _jsx(Button, { size: 'md', kind: 'primary', onClick: handleSave, disabled: isPending, children: isSaving ? 'Saving…' : 'Save filters' })] }))] })] }))] }));
167
167
  };
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Stack } from '../../../ui/index.js';
3
- import { useSelectFamily } from '../../../ui/families.js';
3
+ import { Select, SelectItem } from '../../../ui/families.js';
4
4
  export const SecretsFilterModeToggle = (props) => {
5
- const { Select, SelectItem } = useSelectFamily();
6
5
  const component = (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h6", { children: props.action.label }), _jsx("div", { style: { maxWidth: '400px' }, children: _jsxs(Select, { id: 'secrets-filter-mode-select', labelText: props.action.label, hideLabel: true, value: props.mode, disabled: !props.permissions.mayChange || props.action.disabled, onChange: (event) => {
7
6
  props.action.onChange(event.target.value);
8
7
  }, children: [_jsx(SelectItem, { value: 'DISABLED', text: 'Disabled' }), _jsx(SelectItem, { value: 'LAX', text: 'Lax' }), _jsx(SelectItem, { value: 'STRICT', text: 'Strict' })] }) })] }), props.description && (_jsx("div", { style: { maxWidth: '650px' }, children: typeof props.description === 'string' ? (_jsx("p", { children: props.description })) : (props.description) }))] }));
@@ -14,8 +14,8 @@ import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
14
14
  export const SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES = 1;
15
15
  export const SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES = 1440;
16
16
  const helperTextStyle = {
17
- color: 'var(--cds-text-secondary)',
18
- fontSize: 'var(--cds-body-compact-01-font-size)',
17
+ color: 'var(--neutral-foreground-subtle)',
18
+ fontSize: '0.875rem',
19
19
  maxWidth: '650px',
20
20
  };
21
21
  export const SessionSettings = ({ maxInactiveIntervalMinutes, heartbeatEnabled, permissions, onSaveMaxInactiveInterval, onToggleHeartbeat, }) => {
@@ -4,8 +4,8 @@ export interface SettingsTileProps {
4
4
  description?: any;
5
5
  children?: any;
6
6
  /**
7
- * The heading element of the title. Defaults to `h2` in ds mode, where the
8
- * page title is an `h1`, and to `h3` in carbon mode.
7
+ * The heading element of the title. Defaults to `h2`, because the page title
8
+ * is an `h1`.
9
9
  */
10
10
  headingLevel?: 'h2' | 'h3';
11
11
  }
@@ -1,11 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
3
2
  import { Stack, Tile } from '../../../ui/index.js';
4
3
  import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
5
4
  import { C4Divider } from '../../c4-divider/c4-divider.js';
6
5
  export const SettingsTile = ({ description, title, children, headingLevel, }) => {
7
- const designSystem = useC4DesignSystem();
8
- const Heading = headingLevel ?? (designSystem === 'ds' ? 'h2' : 'h3');
6
+ const Heading = headingLevel ?? 'h2';
9
7
  const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx(Heading, { style: SECTION_HEADING_STYLE, children: title }), description && _jsx("p", { style: { maxWidth: '650px' }, children: description }), _jsx(C4Divider, {})] }), children] }) }));
10
8
  return component;
11
9
  };
@@ -1,3 +1,3 @@
1
- import { type JSX } from 'react';
1
+ import type { JSX } from 'react';
2
2
  import type { C4ClusterTagSelectorProps } from './c4-cluster-tag-selector.types.js';
3
3
  export declare const C4ClusterTagSelector: (props: C4ClusterTagSelectorProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /*
3
3
  * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
@@ -6,85 +6,20 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
6
6
  */
7
7
  import { StageClusterLabels, } from '@camunda/camunda-composite-components';
8
8
  import { ChoiceCard, ChoiceCardGroup } from '@camunda/design-system';
9
- import { Column, Grid } from '@carbon/react';
10
- import { Information } from '@carbon/react/icons/index.esm.js';
11
- import { useEffect, useState } from 'react';
12
- import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
13
- import { ClusterTag, Stack } from '../../ui/index.js';
14
- import { STYLES } from '../c4-billing-page/c4-billing-page.js';
15
- import { mediaSizeByWidth } from '../c4-billing-page/elements/current-usage-metrics.js';
16
- import { C4SelectableTile } from '../c4-selectable-tile/c4-selectable-tile.js';
9
+ import { ClusterTag } from '../../ui/index.js';
17
10
  export const C4ClusterTagSelector = (props) => {
18
- const designSystem = useC4DesignSystem();
19
- const [mediaSize, setMediaSize] = useState(mediaSizeByWidth(window.innerWidth));
20
- useEffect(() => {
21
- let frame = 0;
22
- const handleWindowResize = () => {
23
- // Coalesce bursts of resize events into one update per animation frame.
24
- cancelAnimationFrame(frame);
25
- frame = requestAnimationFrame(() => {
26
- setMediaSize(mediaSizeByWidth(window.innerWidth));
27
- });
28
- };
29
- window.addEventListener('resize', handleWindowResize);
30
- return () => {
31
- cancelAnimationFrame(frame);
32
- window.removeEventListener('resize', handleWindowResize);
33
- };
34
- }, []);
35
11
  const tagsToRender = Object.keys(StageClusterLabels).filter((item) => !props.isDevCluster || item !== 'prod');
36
12
  const isTagDisabled = (item) => !props.save.allowed ||
37
13
  (!!props.allowedTags && !props.allowedTags.includes(item));
38
- if (designSystem === 'ds') {
39
- return (_jsx(ChoiceCardGroup, { "aria-label": 'Cluster tag', value: props.currentStage ?? '', onValueChange: (value) => props.onChange(value), style: {
40
- gridTemplateColumns: 'repeat(auto-fill, minmax(220px, 1fr))',
41
- gap: '1rem',
42
- }, children: tagsToRender.map((item) => {
43
- const stage = item;
44
- const { text, info } = props.boxes[stage];
45
- return (_jsx(ChoiceCard, { value: item,
46
- // ChoiceCard renders `title` as node children; pass the stage
47
- // chip so the colored badge itself serves as the card title.
48
- title: (_jsx(ClusterTag, { stage: stage })), description: info ? `${text} ${info}` : text, disabled: isTagDisabled(item) }, `tag-option-${item}`));
49
- }) }));
50
- }
51
- const buildSingleTile = (item) => (_jsxs(C4SelectableTile, { value: item, checked: item === props.currentStage, onChange: () => {
52
- props.onChange(item);
53
- }, disabled: !props.save.allowed ||
54
- (props.allowedTags && !props.allowedTags?.includes(item)), style: { height: '100%' }, children: [_jsxs("div", { style: {
55
- marginBottom: props.boxes[item].info ? '24px' : '0px',
56
- paddingBottom: props.boxes[item].info ? '24px' : '0px',
57
- }, children: [_jsx(ClusterTag, { stage: item }, `tag-options-name-${item}`), _jsx("p", { children: props.boxes[item].text }, `tag-options-description-${item}`)] }), (() => {
58
- if (props.boxes[item].info) {
59
- return (_jsx("div", { children: _jsxs("div", { style: {
60
- display: 'grid',
61
- gridTemplateColumns: '16px auto 1fr',
62
- gap: '0.5rem',
63
- bottom: '10px',
64
- position: 'absolute',
65
- }, children: [_jsx(Information, {}), _jsx("p", { children: props.boxes[item].info }, `tag-options-info-${item}`)] }) }));
66
- }
67
- return _jsx(_Fragment, {});
68
- })()] }, `tag-option-${item}`));
69
- const buildTagTiles = () => {
70
- const returnValue = [];
71
- const renderedColumns = tagsToRender.map((item) => (_jsx(Column, { span: 8, style: { ...STYLES.grid }, children: _jsx("div", { style: {
72
- height: '100%',
73
- display: 'grid',
74
- }, children: buildSingleTile(item) }) }, `tag-options-colum-${item}`)));
75
- for (let i = 0; i < tagsToRender.length; i += 2) {
76
- const newGrid = (_jsxs(Grid, { style: { ...STYLES.grid }, children: [renderedColumns[i], renderedColumns[i + 1]] }));
77
- returnValue.push(newGrid);
78
- }
79
- return returnValue;
80
- };
81
- return props.forceSmallScreen || ['sm', 'md'].includes(mediaSize) ? (_jsx(Stack, { gap: 5, children: buildTagTiles() })) : (_jsx(Grid, { style: { ...STYLES.grid }, children: Object.keys(StageClusterLabels).map((item) => {
82
- if (item === 'prod' && props.isDevCluster) {
83
- return _jsx(_Fragment, {});
84
- }
85
- return (_jsx(Column, { span: 4, style: { ...STYLES.grid }, children: _jsx("div", { style: {
86
- height: '100%',
87
- display: 'grid',
88
- }, children: buildSingleTile(item) }) }, `tag-options-colum-${item}`));
14
+ return (_jsx(ChoiceCardGroup, { "aria-label": 'Cluster tag', value: props.currentStage ?? '', onValueChange: (value) => props.onChange(value), style: {
15
+ gridTemplateColumns: 'repeat(auto-fill, minmax(220px, 1fr))',
16
+ gap: '1rem',
17
+ }, children: tagsToRender.map((item) => {
18
+ const stage = item;
19
+ const { text, info } = props.boxes[stage];
20
+ return (_jsx(ChoiceCard, { value: item,
21
+ // ChoiceCard renders `title` as node children; pass the stage
22
+ // chip so the colored badge itself serves as the card title.
23
+ title: (_jsx(ClusterTag, { stage: stage })), description: info ? `${text} ${info}` : text, disabled: isTagDisabled(item) }, `tag-option-${item}`));
89
24
  }) }));
90
25
  };
@@ -10,6 +10,5 @@ export interface C4ClusterTagSelectorProps {
10
10
  save: {
11
11
  allowed: boolean;
12
12
  };
13
- forceSmallScreen?: boolean;
14
13
  allowedTags?: string[];
15
14
  }
@@ -4,18 +4,17 @@ 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 { Column, Grid } from '@carbon/react';
8
- import * as Icons from '@carbon/react/icons/index.esm.js';
9
- import { Chat, Help, WarningAltFilled } from '@carbon/react/icons/index.esm.js';
10
- import { useCallback, useMemo, useState } from 'react';
7
+ import { CircleHelp, MessageSquare, TriangleAlert } from 'lucide-react';
8
+ import { useMemo } from 'react';
11
9
  import { Button, ClusterTag, Link, Stack, Tile, Tooltip } from '../../ui/index.js';
12
10
  import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
13
11
  import { ClusterStatusElement } from '../c4-cluster-overview/applications.js';
14
12
  import { C4IconAndTextElement, getClusterLoadConfig, getDsClusterLoadPresentation, } from '../c4-cluster-overview/c4-cluster-overview.js';
13
+ import { DS_STATUS_ICON_COLORS } from '../c4-cluster-overview/ds-status-icon-text.js';
15
14
  import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
16
15
  import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
17
16
  import { ValueMetricsLineChart } from '../c4-usage-history/elements/usage-history-charts.js';
18
- import { EmptyState } from './elements/empty-state.js';
17
+ import { EmptyState, getDashboardIcon } from './elements/empty-state.js';
19
18
  const DAY_MS = 24 * 60 * 60 * 1000;
20
19
  // Dashboard is a summary widget, not the full clusters list ("View clusters"
21
20
  // already links to the paginated `/org/:id/clusters` page) — cap it to a
@@ -45,8 +44,6 @@ const limitChartToLastNDays = (chart, days) => {
45
44
  };
46
45
  };
47
46
  export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskUsersAmount, clustersAmount, clientsAmount, clusters, processInstancesChart, decisionInstancesChart, activityEntries, alerts, quickLinks, permissions, actions, urls, texts, getClusterLoad, getClusterLoadConfig: getClusterLoadConfigProp, clusterLoadTooltip, }) => {
48
- const [totalPiHeight, setTotalPiHeight] = useState(400);
49
- const [totalDiHeight, setTotalDiHeight] = useState(400);
50
47
  const decisionInstancesChartLast14Days = useMemo(() => limitChartToLastNDays(decisionInstancesChart, 14), [decisionInstancesChart]);
51
48
  const processInstancesChartLast14Days = useMemo(() => limitChartToLastNDays(processInstancesChart, 14), [processInstancesChart]);
52
49
  // Show prod clusters first (they're what operators care about most on a
@@ -56,48 +53,41 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
56
53
  const otherClusters = clusters.filter((cluster) => cluster.tags !== 'prod');
57
54
  return [...prodClusters, ...otherClusters].slice(0, DASHBOARD_CLUSTERS_LIMIT);
58
55
  }, [clusters]);
59
- const piCallbackRef = useCallback((node) => {
60
- if (node) {
61
- const legend = node.querySelector('.legend');
62
- if (legend) {
63
- const rect = legend.getBoundingClientRect();
64
- setTotalPiHeight(rect.height + 400);
65
- }
66
- }
67
- }, []);
68
- const diCallbackRef = useCallback((node) => {
69
- if (node) {
70
- const legend = node.querySelector('.legend');
71
- if (legend) {
72
- const rect = legend.getBoundingClientRect();
73
- setTotalDiHeight(rect.height + 400);
74
- }
75
- }
76
- }, []);
77
- const component = (_jsx(C4PageLayout, { padding: embedded ? 'none' : 'default', children: _jsxs(Grid, { style: { gap: '16px' }, children: [!embedded && (_jsx(Column, { lg: 16, md: 8, sm: 4, children: _jsx("div", { style: {
56
+ const component = (_jsx(C4PageLayout, { padding: embedded ? 'none' : 'default', children: _jsxs("div", { style: {
57
+ display: 'flex',
58
+ flexWrap: 'wrap',
59
+ gap: '16px',
60
+ // The Carbon grid had 16px of padding on each side.
61
+ paddingInline: '16px',
62
+ }, children: [!embedded && (_jsx("div", { style: { flex: '1 1 100%' }, children: _jsx("div", { style: {
78
63
  display: 'flex',
79
64
  justifyContent: 'flex-end',
80
- }, children: _jsx(Button, { onClick: actions.onFeedbackClick, kind: 'ghost', renderIcon: Chat, style: {
65
+ }, children: _jsx(Button, { onClick: actions.onFeedbackClick, kind: 'ghost', renderIcon: MessageSquare, style: {
81
66
  marginTop: '-13px',
82
67
  marginRight: '0px',
83
68
  marginLeft: 'auto',
84
- color: 'var(--cds-text-secondary)',
85
- }, children: texts.feedback }) }) })), _jsx(Column, { lg: 11, md: 8, sm: 4, children: _jsxs(Grid, { condensed: true, style: { gap: '16px' }, children: [_jsx(Column, { lg: 12, md: 8, sm: 4, children: _jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.overview.title }), _jsxs(Grid, { condensed: true, style: { paddingBottom: '8px' }, children: [_jsx(Column, { lg: 3, md: 3, sm: 3, children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.users, onClick: (e) => {
69
+ color: 'var(--neutral-foreground-subtle)',
70
+ }, children: texts.feedback }) }) })), _jsx("div", { style: { flex: '11 1 36rem', minWidth: 0 }, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' }, children: [_jsx("div", { children: _jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.overview.title }), _jsxs("div", { style: {
71
+ display: 'grid',
72
+ gridTemplateColumns: 'repeat(auto-fit, minmax(8rem, 1fr))',
73
+ gap: '16px',
74
+ paddingBottom: '8px',
75
+ }, children: [_jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.users, onClick: (e) => {
86
76
  e.preventDefault();
87
77
  actions.onNavigateToUsers();
88
78
  }, children: texts.overview.users }) }), _jsx("div", { style: {
89
79
  display: 'flex',
90
80
  gap: '8px',
91
- }, children: _jsx("p", { style: { fontSize: '18px' }, children: permissions.showUsers ? usersAmount : 'N/A' }) })] }) }), _jsx(Column, { lg: 3, md: 3, sm: 3, children: _jsxs(Stack, { gap: 3, children: [_jsx(Link, { href: urls.taskUsers, onClick: (e) => {
81
+ }, children: _jsx("p", { style: { fontSize: '18px' }, children: permissions.showUsers ? usersAmount : 'N/A' }) })] }) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx(Link, { href: urls.taskUsers, onClick: (e) => {
92
82
  e.preventDefault();
93
83
  actions.onNavigateToTaskUsers();
94
- }, children: texts.overview.taskUsers }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: taskUsersAmount }) })] }) }), _jsx(Column, { lg: 3, md: 3, sm: 3, children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.clusters, onClick: (e) => {
84
+ }, children: texts.overview.taskUsers }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: taskUsersAmount }) })] }) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.clusters, onClick: (e) => {
95
85
  e.preventDefault();
96
86
  actions.onNavigateToClusters();
97
- }, children: texts.overview.clusters }) }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: clustersAmount }) })] }) }), _jsx(Column, { lg: 3, md: 3, sm: 3, children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.adminAPIs, onClick: (e) => {
87
+ }, children: texts.overview.clusters }) }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: clustersAmount }) })] }) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("div", { children: _jsx(Link, { href: urls.adminAPIs, onClick: (e) => {
98
88
  e.preventDefault();
99
89
  actions.onNavigateToAdminAPIs();
100
- }, children: texts.overview.adminAPIs }) }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: clientsAmount }) })] }) })] })] }) }) }), _jsx(Column, { lg: 12, md: 8, sm: 4, children: _jsxs(Tile, { children: [_jsxs("div", { style: {
90
+ }, children: texts.overview.adminAPIs }) }), _jsx("div", { style: { display: 'flex', gap: '8px' }, children: _jsx("p", { style: { fontSize: '18px' }, children: clientsAmount }) })] }) })] })] }) }) }), _jsx("div", { children: _jsxs(Tile, { children: [_jsxs("div", { style: {
101
91
  display: 'flex',
102
92
  justifyContent: 'space-between',
103
93
  alignItems: 'center',
@@ -105,11 +95,11 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
105
95
  }, children: [_jsx("h3", { children: texts.clusters.title }), _jsxs("div", { style: {
106
96
  display: 'flex',
107
97
  alignItems: 'center',
108
- gap: 'var(--cds-spacing-04)',
98
+ gap: '0.75rem',
109
99
  }, children: [visibleClusters.length < clusters.length && (_jsx("span", { style: {
110
- color: 'var(--cds-text-secondary)',
111
- fontSize: 'var(--cds-label-01-font-size)',
112
- lineHeight: 'var(--cds-label-01-line-height)',
100
+ color: 'var(--neutral-foreground-subtle)',
101
+ fontSize: '0.75rem',
102
+ lineHeight: '1.33333',
113
103
  }, children: texts.clusters.showingCount
114
104
  .replace('{{shown}}', String(visibleClusters.length))
115
105
  .replace('{{total}}', String(clusters.length)) })), _jsx(Link, { href: urls.clusters, onClick: (e) => {
@@ -133,12 +123,12 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
133
123
  top: '50%',
134
124
  transform: 'translateY(-50%)',
135
125
  display: 'flex',
136
- color: 'var(--cds-support-warning)',
137
- }, children: _jsx(WarningAltFilled, {}) }), _jsx("span", { style: {
126
+ color: DS_STATUS_ICON_COLORS.warning,
127
+ }, children: _jsx(TriangleAlert, { size: 16, "aria-hidden": true }) }), _jsx("span", { style: {
138
128
  paddingInlineStart: '1.1rem',
139
129
  }, children: item.version })] })) : (item.version) }) }), permissions.showClusterLoad && (_jsxs(C4StructuredListCell, { children: [hasClusterLoad &&
140
130
  currentClusterLoadConfig &&
141
- item.status !== 'Suspended' && (_jsx(C4IconAndTextElement, { text: `${currentClusterLoad.toFixed(2)}%`, color: currentClusterLoadConfig.color, icon: currentClusterLoadConfig.icon, dsIcon: getDsClusterLoadPresentation(currentClusterLoad), tooltip: {
131
+ item.status !== 'Suspended' && (_jsx(C4IconAndTextElement, { text: `${currentClusterLoad.toFixed(2)}%`, dsIcon: getDsClusterLoadPresentation(currentClusterLoad), tooltip: {
142
132
  label: clusterLoadTooltip || '',
143
133
  align: 'bottom',
144
134
  } })), (!hasClusterLoad ||
@@ -148,7 +138,12 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
148
138
  text: texts.clusters.createCluster,
149
139
  disabled: permissions.clusterCreateDisabled,
150
140
  onClick: actions.onCreateCluster,
151
- } }) })) }) })] }) }), _jsx(Column, { lg: 12, md: 8, sm: 4, children: _jsxs(Grid, { condensed: true, style: { gap: '16px', minHeight: '320px' }, children: [_jsx(Column, { lg: 6, md: 8, sm: 4, children: _jsx(Tile, { style: { height: '100%' }, children: _jsxs("div", { style: {
141
+ } }) })) }) })] }) }), _jsx("div", { children: _jsxs("div", { style: {
142
+ display: 'flex',
143
+ flexWrap: 'wrap',
144
+ gap: '16px',
145
+ minHeight: '320px',
146
+ }, children: [_jsx("div", { style: { flex: '1 1 20rem', minWidth: 0 }, children: _jsx(Tile, { style: { height: '100%' }, children: _jsxs("div", { style: {
152
147
  display: 'flex',
153
148
  gap: '8px',
154
149
  flexDirection: 'column',
@@ -162,11 +157,11 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
162
157
  display: 'flex',
163
158
  gap: '8px',
164
159
  alignItems: 'center',
165
- }, children: [_jsx("h3", { children: texts.charts.decisionInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', children: _jsx(Help, {}) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
160
+ }, children: [_jsx("h3", { children: texts.charts.decisionInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
166
161
  e.preventDefault();
167
162
  actions.onNavigateToUsage();
168
163
  }, children: texts.charts.viewUsage }) })] }), decisionInstancesChartLast14Days.dataPoints.length >
169
- 0 ? (_jsx("div", { ref: diCallbackRef, style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...decisionInstancesChartLast14Days, height: totalDiHeight }, `${orgId}-di`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) }), _jsx(Column, { lg: 6, md: 8, sm: 4, children: _jsx(Tile, { style: { height: '100%' }, children: _jsxs("div", { style: {
164
+ 0 ? (_jsx("div", { style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...decisionInstancesChartLast14Days }, `${orgId}-di`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) }), _jsx("div", { style: { flex: '1 1 20rem', minWidth: 0 }, children: _jsx(Tile, { style: { height: '100%' }, children: _jsxs("div", { style: {
170
165
  display: 'flex',
171
166
  gap: '8px',
172
167
  flexDirection: 'column',
@@ -180,11 +175,11 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
180
175
  display: 'flex',
181
176
  gap: '8px',
182
177
  alignItems: 'center',
183
- }, children: [_jsx("h3", { children: texts.charts.processInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', children: _jsx(Help, {}) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
178
+ }, children: [_jsx("h3", { children: texts.charts.processInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
184
179
  e.preventDefault();
185
180
  actions.onNavigateToUsage();
186
- }, children: texts.charts.viewUsage }) })] }), processInstancesChartLast14Days.dataPoints.length > 0 ? (_jsx("div", { ref: piCallbackRef, style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...processInstancesChartLast14Days, height: totalPiHeight }, `${orgId}-pi`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) })] }) })] }) }), _jsx(Column, { lg: 5, md: 8, sm: 4, children: _jsx(Grid, { condensed: true, children: _jsx(Column, { lg: 5, md: 8, sm: 4, children: _jsxs(Stack, { gap: 5, children: [_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.alerts.title }), _jsx(Stack, { gap: 4, children: alerts.length > 0 ? (alerts.map((alert) => {
187
- return (_jsx(C4ActionableNotification, { role: 'banner', title: alert.text, kind: alert.kind, actionButtonLabel: texts.alerts.inspectButton, lowContrast: true, onActionButtonClick: actions.onNavigateToClusters, inline: true, style: { marginBottom: '.5rem' }, onCloseButtonClick: () => {
181
+ }, children: texts.charts.viewUsage }) })] }), processInstancesChartLast14Days.dataPoints.length > 0 ? (_jsx("div", { style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...processInstancesChartLast14Days }, `${orgId}-pi`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) })] }) })] }) }), _jsx("div", { style: { flex: '5 1 18rem', minWidth: 0 }, children: _jsx("div", { children: _jsx("div", { children: _jsxs(Stack, { gap: 5, children: [_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.alerts.title }), _jsx(Stack, { gap: 4, children: alerts.length > 0 ? (alerts.map((alert) => {
182
+ return (_jsx(C4ActionableNotification, { role: 'status', title: alert.text, kind: alert.kind, actionButtonLabel: texts.alerts.inspectButton, lowContrast: true, onActionButtonClick: actions.onNavigateToClusters, style: { marginBottom: '.5rem' }, onCloseButtonClick: () => {
188
183
  actions.onCloseAlert(alert);
189
184
  } }, alert.text));
190
185
  })) : (_jsx(EmptyState, { iconName: 'CheckmarkOutline', text: texts.alerts.noAlertsFound })) })] }) }), _jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs("div", { style: {
@@ -202,10 +197,10 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
202
197
  }, children: [_jsx("div", { style: {
203
198
  height: '8px',
204
199
  width: '8px',
205
- backgroundColor: 'var(--cds-text-secondary)',
200
+ backgroundColor: 'var(--neutral-foreground-subtle)',
206
201
  borderRadius: '100%',
207
202
  } }), _jsx("p", { style: {
208
- color: 'var(--cds-text-secondary)',
203
+ color: 'var(--neutral-foreground-subtle)',
209
204
  fontSize: '0.875rem',
210
205
  }, children: entry.date })] }), (entryIndex === 0 ||
211
206
  entryIndex <
@@ -215,7 +210,7 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
215
210
  top: '12px',
216
211
  bottom: '-20px',
217
212
  width: '2px',
218
- backgroundColor: 'var(--cds-text-secondary)',
213
+ backgroundColor: 'var(--neutral-foreground-subtle)',
219
214
  } })), _jsx("p", { style: {
220
215
  whiteSpace: 'nowrap',
221
216
  overflow: 'hidden',
@@ -224,7 +219,7 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
224
219
  paddingInlineStart: '20px',
225
220
  }, children: entry.entry })] }) }, entryIndex));
226
221
  }) }) })) : (_jsx("div", { style: { minHeight: '180px' }, children: _jsx(EmptyState, { iconName: 'Table', text: texts.activity.noActivityFound }) }))] }) }), _jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: texts.quickLinks.title }), _jsx("div", { children: quickLinks.map((link, index) => {
227
- const Icon = Icons[link.iconName];
222
+ const Icon = getDashboardIcon(link.iconName);
228
223
  return (_jsxs("div", { style: {
229
224
  display: 'flex',
230
225
  alignItems: 'center',
@@ -232,9 +227,9 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
232
227
  paddingTop: '16px',
233
228
  paddingBottom: '16px',
234
229
  borderBottom: index !== quickLinks.length - 1
235
- ? '1px solid var(--cds-border-subtle)'
230
+ ? '1px solid var(--border)'
236
231
  : 'none',
237
- }, children: [_jsx("div", { children: _jsx(Icon, {}) }), _jsx("a", { href: link.to, target: '_blank', className: 'cds--link', rel: 'noreferrer', children: _jsx("span", { children: link.text }) })] }, index));
232
+ }, children: [_jsx("div", { children: _jsx(Icon, { size: 16, "aria-hidden": true }) }), _jsx(Link, { href: link.to, target: '_blank', rel: 'noreferrer', children: _jsx("span", { children: link.text }) })] }, index));
238
233
  }) })] }) })] }) }) }) })] }) }));
239
234
  return component;
240
235
  };
@@ -43,7 +43,7 @@ export interface C4ConsoleDashboardProps {
43
43
  orgId: string;
44
44
  /**
45
45
  * When true, the host owns the outer page chrome. The "Send feedback"
46
- * button is hidden, and in DS mode the page padding is removed. Dashboard
46
+ * button is hidden, and the page padding is removed. Dashboard
47
47
  * section headings stay visible.
48
48
  */
49
49
  embedded?: boolean;
@@ -1,5 +1,14 @@
1
- import * as Icons from '@carbon/react/icons/index.esm.js';
2
- type IconNames = keyof typeof Icons;
1
+ declare const ICONS: {
2
+ SoftwareResourceCluster: import("lucide-react").LucideIcon;
3
+ Document: import("lucide-react").LucideIcon;
4
+ FlowConnection: import("lucide-react").LucideIcon;
5
+ ChartLine: import("lucide-react").LucideIcon;
6
+ CheckmarkOutline: import("lucide-react").LucideIcon;
7
+ Table: import("lucide-react").LucideIcon;
8
+ };
9
+ type IconNames = keyof typeof ICONS;
10
+ /** The icon of a name. An unknown name gets a generic link icon. */
11
+ export declare const getDashboardIcon: (name: string) => import("lucide-react").LucideIcon;
3
12
  interface EmptyStateProps {
4
13
  iconName: IconNames;
5
14
  text: string;