@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,14 +0,0 @@
1
- import type { JSX } from 'react';
2
- export declare namespace ComponentTile {
3
- interface Props {
4
- name: string;
5
- info: string;
6
- healthy: number;
7
- unhealthy: number;
8
- }
9
- const Component: (props: Props) => JSX.Element;
10
- const ManyClusterStatusElement: (props: {
11
- healthy: number;
12
- unhealthy: number;
13
- }) => JSX.Element;
14
- }
@@ -1,46 +0,0 @@
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 { Layer } from '@carbon/react';
8
- import { CheckmarkFilled, WarningFilled } from '@carbon/react/icons/index.esm.js';
9
- import { Stack, Tile } from '../../ui/index.js';
10
- import { ClusterStatusElement, StatusColor, } from '../c4-cluster-overview/applications.js';
11
- export var ComponentTile;
12
- (function (ComponentTile) {
13
- ComponentTile.Component = (props) => {
14
- const onlyOneComponent = props.healthy + props.unhealthy === 1;
15
- const component = (_jsx(Layer, { children: _jsx(Tile, { children: _jsxs(Stack, { gap: 3, children: [_jsxs("div", { style: { display: 'grid', gridTemplateColumns: '1fr auto' }, children: [_jsx("h4", { className: 'cds--type-heading-01', children: props.name }), onlyOneComponent && (_jsx(ClusterStatusElement, { status: props.healthy === 1 ? 'healthy' : 'unhealthy' })), !onlyOneComponent && (_jsx(ComponentTile.ManyClusterStatusElement, { healthy: props.healthy, unhealthy: props.unhealthy }))] }), _jsx("span", { children: props.info })] }) }) }));
16
- return component;
17
- };
18
- ComponentTile.ManyClusterStatusElement = (props) => {
19
- const statusElementProps = [];
20
- if (props.healthy > 0) {
21
- statusElementProps.push({
22
- icon: _jsx(CheckmarkFilled, {}),
23
- text: `${props.healthy} healthy`,
24
- color: StatusColor.HEALTHY,
25
- });
26
- }
27
- if (props.unhealthy > 0) {
28
- statusElementProps.push({
29
- icon: _jsx(WarningFilled, {}),
30
- text: `${props.unhealthy} unhealthy`,
31
- color: StatusColor.UNHEALTHY,
32
- });
33
- }
34
- const statusElements = statusElementProps.map((props, index) => {
35
- return (_jsx("div", { children: _jsxs("div", { style: { position: 'relative' }, children: [props.icon && (_jsx("div", { style: {
36
- position: 'absolute',
37
- top: '50%',
38
- transform: 'translateY(-50%)',
39
- display: 'flex',
40
- color: props.color,
41
- }, children: props.icon })), _jsx("span", { style: { paddingInlineStart: props.icon ? '1.1rem' : '0rem' }, children: props.text })] }) }, `status-${index}`));
42
- });
43
- const component = (_jsx(Stack, { orientation: 'horizontal', gap: 3, children: statusElements }));
44
- return component;
45
- };
46
- })(ComponentTile || (ComponentTile = {}));
@@ -1,20 +0,0 @@
1
- import type { JSX } from 'react';
2
- import type { DashboardActions } from './c4-sm-dashboard.types.js';
3
- export declare namespace Explore {
4
- interface GroupProps {
5
- title: string;
6
- links: Array<{
7
- label: string;
8
- url: string;
9
- }>;
10
- }
11
- export interface Props {
12
- title: string;
13
- groups: GroupProps[];
14
- }
15
- export interface InternalProps extends Props {
16
- actions: DashboardActions;
17
- }
18
- export const Component: (props: InternalProps) => JSX.Element;
19
- export {};
20
- }
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Stack, Tile } from '../../ui/index.js';
3
- import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
4
- export var Explore;
5
- (function (Explore) {
6
- Explore.Component = (props) => {
7
- const component = (_jsxs(Tile, { style: {
8
- height: '100%',
9
- display: 'grid',
10
- gridTemplateColumns: '1fr',
11
- gridTemplateRows: 'auto 1fr 3rem',
12
- gap: '1rem',
13
- }, children: [_jsx("h3", { children: props.title }), _jsx(Stack, { gap: 3, orientation: 'horizontal', children: props.groups.map((group, index) => {
14
- return _jsx(LinkGroupComponent, { ...group }, `group-${index}`);
15
- }) }), _jsx("div", { style: { alignSelf: 'end', justifySelf: 'end' } })] }));
16
- return component;
17
- };
18
- const LinkGroupComponent = (props) => {
19
- const component = (_jsxs(Stack, { gap: 4, children: [_jsx("p", { children: props.title }), props.links.map((link, index) => {
20
- return (_jsx(C4ExternalLink, { id: `link-${index}`, label: link.label, href: link.url }, `link-${index}`));
21
- })] }));
22
- return component;
23
- };
24
- })(Explore || (Explore = {}));
@@ -1,10 +0,0 @@
1
- import type { JSX } from 'react';
2
- import { type ClusterStatus } from '../c4-cluster-overview/applications.js';
3
- export declare const HealthStatus: (props: {
4
- status: ClusterStatus;
5
- text?: string;
6
- id: string;
7
- size?: "small";
8
- tooltip?: string;
9
- onClick?: () => void;
10
- }) => JSX.Element;
@@ -1,60 +0,0 @@
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 { CheckmarkFilled, WarningFilled } from '@carbon/react/icons/index.esm.js';
8
- import { DefinitionTooltip } from '../../ui/index.js';
9
- import { StatusColor, } from '../c4-cluster-overview/applications.js';
10
- import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
11
- export const HealthStatus = (props) => {
12
- let text = '';
13
- if (props.text) {
14
- text = props.text;
15
- }
16
- else {
17
- text = props.status === 'healthy' ? 'Healthy' : 'Unhealthy';
18
- }
19
- const statusProps = {
20
- icon: undefined,
21
- text,
22
- color: StatusColor.UPDATING,
23
- };
24
- switch (props.status) {
25
- case 'unhealthy':
26
- statusProps.icon = _jsx(WarningFilled, {});
27
- if (props.size === 'small') {
28
- statusProps.icon = _jsx(WarningFilled, { size: '16' });
29
- }
30
- statusProps.color = StatusColor.UNHEALTHY;
31
- break;
32
- case 'healthy':
33
- statusProps.icon = _jsx(CheckmarkFilled, {});
34
- if (props.size === 'small') {
35
- statusProps.icon = _jsx(CheckmarkFilled, { size: '16' });
36
- }
37
- statusProps.color = StatusColor.HEALTHY;
38
- break;
39
- }
40
- const StatusText = () => {
41
- let component = _jsx(_Fragment, { children: statusProps.text });
42
- if (props.onClick) {
43
- component = (_jsx(C4LinkButton, { onClick: () => props.onClick?.(), label: statusProps.text }));
44
- }
45
- return component;
46
- };
47
- const component = (_jsx("div", { children: _jsxs("div", { style: {
48
- position: 'relative',
49
- }, children: [statusProps.icon && (_jsx("div", { style: {
50
- position: 'absolute',
51
- top: '50%',
52
- transform: 'translateY(-50%)',
53
- display: 'flex',
54
- color: statusProps.color,
55
- }, children: statusProps.icon })), _jsxs("span", { style: {
56
- paddingInlineStart: statusProps.icon ? '1.1rem' : '0rem',
57
- marginTop: props.size === 'small' ? '0.5rem' : undefined,
58
- }, className: props.size === 'small' ? 'cds--label' : undefined, children: [props.tooltip && (_jsx(DefinitionTooltip, { openOnHover: true, definition: props.tooltip, children: _jsx(StatusText, {}) })), !props.tooltip && _jsx(StatusText, {})] })] }) }, props.id));
59
- return component;
60
- };
@@ -1,13 +0,0 @@
1
- import type { JSX } from 'react';
2
- import type { Cluster, DashboardActions } from './c4-sm-dashboard.types.js';
3
- export declare namespace Overview {
4
- interface Props {
5
- chartTitle: string;
6
- unhealthyClustersTitle: string;
7
- emptyState: string;
8
- automation: Cluster[];
9
- actions: DashboardActions;
10
- theme?: string;
11
- }
12
- const Component: (props: Props) => JSX.Element;
13
- }
@@ -1,148 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { DonutChart } from '@carbon/charts-react';
8
- import { ArrowRight, CheckmarkOutline } from '@carbon/react/icons/index.esm.js';
9
- import { Stack, Tile } from '../../ui/index.js';
10
- import { StatusColor } from '../c4-cluster-overview/applications.js';
11
- import { C4Divider } from '../c4-divider/c4-divider.js';
12
- import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
13
- import { HealthStatus } from './health-status.js';
14
- export var Overview;
15
- (function (Overview) {
16
- function getUnhealthyClusters(props) {
17
- const data = {
18
- healthy: 0,
19
- unhealthy: 0,
20
- unknown: 0,
21
- unhealthyComponents: [],
22
- };
23
- for (const cluster of props.automation) {
24
- if (cluster.components.length === 0) {
25
- data.unknown++;
26
- }
27
- else {
28
- const unhealthyComponents = cluster.components.filter((component) => component.status !== 'healthy');
29
- if (unhealthyComponents.length > 0) {
30
- data.unhealthy++;
31
- data.unhealthyComponents.push({
32
- clusterId: cluster.id,
33
- clusterName: cluster.name,
34
- components: unhealthyComponents.map((component) => component.name),
35
- });
36
- }
37
- else {
38
- data.healthy++;
39
- }
40
- }
41
- }
42
- return data;
43
- }
44
- Overview.Component = (props) => {
45
- const data = getUnhealthyClusters(props);
46
- const component = (_jsxs(Tile, { style: {
47
- height: '100%',
48
- display: 'grid',
49
- gridTemplateColumns: '1fr',
50
- gridTemplateRows: 'auto auto auto auto 1fr auto',
51
- gap: '1rem',
52
- }, children: [_jsx(MainHeader, { ...props }), _jsx(OverviewChart, { data: data, ...props }), _jsx(C4Divider, {}), _jsx(SubHeader, { ...props }), _jsxs("div", { style: {
53
- height: '100%',
54
- alignSelf: 'stretch',
55
- }, children: [data.unhealthyComponents.length > 0 && (_jsx(UnhealthyClusterComponent, { clusters: data.unhealthyComponents, actions: props.actions })), data.unhealthyComponents.length === 0 && (_jsx(HealthAlertsEmptyState, { ...props }))] }), _jsx(C4LinkButton, { onClick: () => props.actions.viewAllClusters.onClick(), label: props.actions.viewAllClusters.label, icon: _jsx(ArrowRight, {}) })] }));
56
- return component;
57
- };
58
- // //////////////////////////////////////////
59
- const MainHeader = (props) => {
60
- return _jsx("h3", { children: props.chartTitle });
61
- };
62
- const SubHeader = (props) => {
63
- return _jsx("h4", { children: props.unhealthyClustersTitle });
64
- };
65
- const OverviewChart = (props) => {
66
- const chartSize = '200px';
67
- const chartOptions = {
68
- height: chartSize,
69
- width: chartSize,
70
- theme: props.theme,
71
- legend: {
72
- enabled: false,
73
- },
74
- toolbar: {
75
- enabled: false,
76
- },
77
- color: {
78
- scale: {
79
- Healthy: StatusColor.HEALTHY,
80
- Unhealthy: StatusColor.UNHEALTHY,
81
- Unknown: StatusColor.UPDATING,
82
- },
83
- },
84
- pie: {
85
- labels: {
86
- enabled: false,
87
- },
88
- },
89
- };
90
- const chartData = [
91
- {
92
- group: 'Healthy',
93
- value: props.data.healthy,
94
- },
95
- {
96
- group: 'Unhealthy',
97
- value: props.data.unhealthy,
98
- },
99
- {
100
- group: 'Unknown',
101
- value: props.data.unknown,
102
- },
103
- ];
104
- return (_jsxs(Stack, { gap: 5, children: [_jsx("div", { style: {
105
- display: 'grid',
106
- justifyItems: 'center',
107
- }, children: _jsx(DonutChart, { data: chartData, options: chartOptions }) }), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx(ChartLegendItem, { count: props.data.healthy, status: 'healthy' }), _jsx(ChartLegendItem, { count: props.data.unhealthy, status: 'unhealthy' }), _jsx(ChartLegendItem, { count: props.data.unknown, status: 'unknown' })] })] }));
108
- };
109
- const UnhealthyClusterComponent = (props) => {
110
- if (props.clusters.length === 0) {
111
- return _jsx(_Fragment, {});
112
- }
113
- const clusterComponents = props.clusters.map((cluster) => {
114
- return (_jsx(HealthStatus, { status: 'unhealthy', text: cluster.clusterName, id: `status-${cluster.clusterName}`, onClick: () => {
115
- props.actions.clusterDetails.onClick(cluster.clusterId);
116
- } }, cluster.clusterId));
117
- });
118
- return _jsx(Stack, { gap: 3, children: clusterComponents });
119
- };
120
- const HealthAlertsEmptyState = (props) => {
121
- return (_jsxs("div", { style: {
122
- display: 'grid',
123
- justifyContent: 'center',
124
- gridTemplateColumns: 'auto',
125
- gridTemplateRows: '1fr auto auto 1fr',
126
- gap: '0.5rem',
127
- height: '100%',
128
- }, children: [_jsx("div", { style: { textAlign: 'center', gridRow: 2 }, children: _jsx(CheckmarkOutline, { size: 24 }) }), _jsx("p", { style: { gridRow: 3 }, children: props.emptyState })] }));
129
- };
130
- const ChartLegendItem = (props) => {
131
- if (props.count === 0) {
132
- return _jsx(_Fragment, {});
133
- }
134
- let color = StatusColor.UPDATING;
135
- switch (props.status) {
136
- case 'healthy':
137
- color = StatusColor.HEALTHY;
138
- break;
139
- case 'unhealthy':
140
- color = StatusColor.UNHEALTHY;
141
- break;
142
- }
143
- return (_jsxs("span", { children: [_jsx("span", { className: 'cds--type-heading-04', style: {
144
- marginRight: '0.3rem',
145
- color,
146
- }, children: props.count }), `${props.status.charAt(0).toUpperCase()}${props.status.slice(1)}`] }));
147
- };
148
- })(Overview || (Overview = {}));
@@ -1,22 +0,0 @@
1
- import type { JSX } from 'react';
2
- export declare namespace UsageTile {
3
- interface UsageValueProps {
4
- title: string;
5
- value: number;
6
- }
7
- interface Props {
8
- title: string;
9
- subTitle: string;
10
- actions: {
11
- view: {
12
- label: string;
13
- onClick: () => void;
14
- };
15
- };
16
- taskUsers: UsageValueProps;
17
- processInstances: UsageValueProps;
18
- decisionInstances: UsageValueProps;
19
- }
20
- const Component: (props: Props) => JSX.Element;
21
- const UsageValueTile: (props: UsageValueProps) => JSX.Element;
22
- }
@@ -1,36 +0,0 @@
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 { Column, Grid, Layer } from '@carbon/react';
8
- import { ArrowRight } from '@carbon/react/icons/index.esm.js';
9
- import { Stack, Tile } from '../../ui/index.js';
10
- import { STYLES } from '../c4-billing-page/c4-billing-page.js';
11
- import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
12
- export var UsageTile;
13
- (function (UsageTile) {
14
- UsageTile.Component = (props) => {
15
- const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 3, children: [_jsxs("div", { style: {
16
- display: 'grid',
17
- gap: '0.5rem',
18
- gridTemplateColumns: 'auto 1fr auto',
19
- height: '30px',
20
- }, children: [_jsx("h3", { children: props.title }), _jsx("p", { className: 'cds--label', style: { alignSelf: 'end' }, children: props.subTitle }), _jsx(C4LinkButton, { onClick: () => props.actions.view.onClick(), label: props.actions.view.label, icon: _jsx(ArrowRight, {}) })] }), _jsxs(Grid, { style: {
21
- ...STYLES.grid,
22
- }, children: [_jsx(Column, { span: 4, style: {
23
- ...STYLES.grid,
24
- }, children: _jsx(UsageTile.UsageValueTile, { ...props.taskUsers }) }), _jsx(Column, { span: 4, style: {
25
- ...STYLES.grid,
26
- }, children: _jsx(UsageTile.UsageValueTile, { ...props.processInstances }) }), _jsx(Column, { span: 4, style: {
27
- ...STYLES.grid,
28
- }, children: _jsx(UsageTile.UsageValueTile, { ...props.decisionInstances }) })] })] }) }));
29
- return component;
30
- };
31
- UsageTile.UsageValueTile = (props) => {
32
- const value = new Intl.NumberFormat('en-US').format(props.value);
33
- const component = (_jsx(Layer, { children: _jsx(Tile, { children: _jsxs(Stack, { gap: 3, children: [_jsx("h4", { className: 'cds--type-heading-01', children: props.title }), _jsx("p", { className: 'cds--type-heading-04', children: value })] }) }) }));
34
- return component;
35
- };
36
- })(UsageTile || (UsageTile = {}));
@@ -1,4 +0,0 @@
1
- import { type JSX } from 'react';
2
- import type { C4TelemetryPageProps } from './c4-telemetry-page.types.js';
3
- export declare const ID_UNSET_COMPONENT = "unset";
4
- export declare const C4TelemetryPage: ({ intro, managementCluster, automationClusters, texts, theme, loading, }: C4TelemetryPageProps) => JSX.Element;
@@ -1,114 +0,0 @@
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 { Column, Grid } from '@carbon/react';
8
- import { Download } from '@carbon/react/icons/index.esm.js';
9
- import { useState } from 'react';
10
- import { Button, Stack, Tile } from '../../ui/index.js';
11
- import { useTabsFamily } from '../../ui/tabs.js';
12
- import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
13
- import { STYLES } from '../c4-billing-page/c4-billing-page.js';
14
- import { ClusterStatusElement, } from '../c4-cluster-overview/applications.js';
15
- import { ComponentMetrics } from './component-metrics.js';
16
- import { TelemetryForComponent } from './telemetry-for-component.js';
17
- export const ID_UNSET_COMPONENT = 'unset';
18
- export const C4TelemetryPage = ({ intro, managementCluster, automationClusters, texts, theme, loading, }) => {
19
- const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
20
- const [selected, setSelected] = useState(managementCluster.components.length > 0
21
- ? managementCluster.components[0].id
22
- : ID_UNSET_COMPONENT);
23
- const getAllMetrics = () => {
24
- let foundComponent = managementCluster.components.find((component) => component.id === selected);
25
- if (!foundComponent) {
26
- for (const cluster of automationClusters) {
27
- foundComponent = cluster.components.find((component) => component.id === selected);
28
- if (foundComponent) {
29
- break;
30
- }
31
- }
32
- }
33
- const metrics = foundComponent ? foundComponent.allMetrics.metrics : [];
34
- return {
35
- id: selected,
36
- metrics,
37
- loading,
38
- title: foundComponent?.context.name || '',
39
- subtitle: texts.titles.metricsSubtitle,
40
- emptyState: texts.emptyState,
41
- };
42
- };
43
- const getClusterStatus = (cluster) => {
44
- const someUnhealthy = cluster.components.some((component) => component.context.status !== 'healthy');
45
- return someUnhealthy ? 'unhealthy' : 'healthy';
46
- };
47
- // /////////////////////////////////////////////
48
- const main = (_jsxs("div", { style: { overflowY: 'scroll' }, children: [_jsx(Intro, { intro: intro }), _jsx(MainHeader, { text: texts.titles.managementCluster }), _jsx(Tile, { children: _jsx(ComponentsGrid, { components: managementCluster.components,
49
- setSelected,
50
- currentSelected: selected,
51
- theme,
52
- loading }) }), _jsx(MainHeader, { text: texts.titles.automationClusters }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'Automation clusters', contained: true, children: automationClusters.map((cluster) => {
53
- return (_jsx(Tab, { secondaryLabel: (_jsx(ClusterStatusElement, { status: getClusterStatus(cluster) })), children: cluster.name }, cluster.id));
54
- }) }), _jsx(TabPanels, { children: automationClusters.map((cluster) => {
55
- return (_jsx(TabPanel, { style: { padding: 0 }, children: _jsx(Tile, { children: _jsx(ComponentsGrid, { components: cluster.components,
56
- setSelected,
57
- currentSelected: selected,
58
- theme,
59
- loading }) }) }, cluster.id));
60
- }) })] })] }));
61
- const side = (_jsx(Tile, { style: {
62
- width: '520px',
63
- maxWidth: '520px',
64
- borderLeft: '1px solid var(--cds-border-subtle-01)',
65
- overflowY: !loading && getAllMetrics().metrics.length > 0 ? 'scroll' : 'hidden',
66
- }, children: _jsx(ComponentMetrics.Component, { ...getAllMetrics() }) }));
67
- const component = (_jsxs("div", { style: {
68
- display: 'grid',
69
- gridTemplateColumns: '1fr 520px',
70
- gap: '1.5rem',
71
- alignContent: 'start',
72
- height: '85vh',
73
- overflowY: 'hidden',
74
- }, children: [main, side] }));
75
- return component;
76
- };
77
- // ELEMENTS OF COMPONENT
78
- const LOCAL_STORAGE_SHOW_NOTIFICATION_KEY = '@camunda/telemetry/notification/show';
79
- const Intro = ({ intro }) => {
80
- let showNotification = intro.notification.show;
81
- if (showNotification === undefined) {
82
- const fromLocalStorage = localStorage.getItem(LOCAL_STORAGE_SHOW_NOTIFICATION_KEY);
83
- if (['true', 'false'].includes(fromLocalStorage || '')) {
84
- showNotification = fromLocalStorage === 'true';
85
- }
86
- else {
87
- showNotification = true;
88
- }
89
- }
90
- const component = (_jsxs(Stack, { gap: 3, children: [_jsx("p", { className: 'cds--type-heading-02', children: intro.title }), _jsxs("div", { style: { display: 'grid', gridTemplateColumns: '1fr auto' }, children: [_jsx("p", { children: intro.description }), _jsx(Button, { kind: 'ghost', size: 'md', renderIcon: Download, onClick: intro.download.onClick, children: intro.download.label })] }), _jsx("p", { className: 'cds--type-italic cds--type-label-01', style: { color: 'var(--cds-text-secondary)' }, children: intro.customer.map((entry) => (_jsxs("span", { style: { paddingRight: '0.75rem' }, children: [entry.label, ": ", entry.value] }))) }), showNotification && (_jsx(C4ActionableNotification, { inline: true, title: intro.notification.title, subtitle: intro.notification.description, actionButtonLabel: intro.notification.action.label, onActionButtonClick: intro.notification.action.onClick, onCloseButtonClick: () => {
91
- localStorage.setItem(LOCAL_STORAGE_SHOW_NOTIFICATION_KEY, 'false');
92
- }, hideCloseButton: false, style: { maxWidth: '100%' }, lowContrast: true, kind: 'info', hasFocus: false }))] }));
93
- return component;
94
- };
95
- const MainHeader = ({ text }) => {
96
- const component = (_jsx("h2", { style: { marginTop: '1.5rem', marginBottom: '0.75rem' }, children: text }));
97
- return component;
98
- };
99
- const ComponentsGrid = (props) => {
100
- const component = (_jsx(Grid, { style: {
101
- ...STYLES.grid,
102
- gridAutoRows: 'auto',
103
- }, children: props.components.map((component) => {
104
- return (_jsx(Column, { span: 8, style: {
105
- ...STYLES.grid,
106
- alignSelf: 'stretch',
107
- }, children: _jsx(TelemetryForComponent.Component, { ...component, actions: {
108
- onClick: () => {
109
- props.setSelected(component.id);
110
- },
111
- }, checked: props.currentSelected === component.id, theme: props.theme, loading: props.loading }) }, component.id));
112
- }) }));
113
- return component;
114
- };
@@ -1,45 +0,0 @@
1
- import type { TelemetryForComponent } from './telemetry-for-component.js';
2
- export interface ClusterProps {
3
- id: string;
4
- name: string;
5
- components: TelemetryForComponent.Props[];
6
- }
7
- export interface TelemetryIntroProps {
8
- title: string;
9
- description: string;
10
- customer: Array<{
11
- label: string;
12
- value: string;
13
- }>;
14
- download: {
15
- label: string;
16
- onClick: () => void;
17
- };
18
- notification: {
19
- show?: boolean;
20
- title: string;
21
- description: string;
22
- action: {
23
- label: string;
24
- onClick: () => void;
25
- };
26
- };
27
- }
28
- export interface C4TelemetryPageProps {
29
- intro: TelemetryIntroProps;
30
- managementCluster: ClusterProps;
31
- automationClusters: ClusterProps[];
32
- texts: {
33
- titles: {
34
- managementCluster: string;
35
- automationClusters: string;
36
- metricsSubtitle: string;
37
- };
38
- emptyState: {
39
- title: string;
40
- subtitle: string;
41
- };
42
- };
43
- theme?: string;
44
- loading: boolean;
45
- }
@@ -1,6 +0,0 @@
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 {};
@@ -1,26 +0,0 @@
1
- import type { JSX } from 'react';
2
- export declare namespace ComponentMetrics {
3
- interface MetricsEntry {
4
- metricKey: string;
5
- metricValue: any;
6
- }
7
- export interface Props {
8
- metrics: MetricsEntry[];
9
- }
10
- export interface InternalProps extends Props {
11
- id: string;
12
- title: string;
13
- subtitle: string;
14
- loading: boolean;
15
- emptyState: {
16
- title: string;
17
- subtitle: string;
18
- };
19
- }
20
- export const Component: ({ id, subtitle, title, metrics, loading, emptyState, }: InternalProps) => JSX.Element;
21
- export const EmptyState: (props: {
22
- title: string;
23
- subtitle: string;
24
- }) => JSX.Element;
25
- export {};
26
- }
@@ -1,42 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { SkeletonText, Stack } from '../../ui/index.js';
3
- import { C4Divider } from '../c4-divider/c4-divider.js';
4
- import { ID_UNSET_COMPONENT } from './c4-telemetry-page.js';
5
- import { TelemetryMetricsEmptyStateImage } from './metrics-empty-state-image.js';
6
- export var ComponentMetrics;
7
- (function (ComponentMetrics) {
8
- ComponentMetrics.Component = ({ id, subtitle, title, metrics, loading, emptyState, }) => {
9
- let component = _jsx(_Fragment, {});
10
- if (id === ID_UNSET_COMPONENT) {
11
- component = _jsx(ComponentMetrics.EmptyState, { ...emptyState });
12
- }
13
- else {
14
- const panelElements = [];
15
- if (!loading) {
16
- for (let i = 0; i < metrics.length; i++) {
17
- panelElements.push(_jsx(MetricsElement, { ...metrics[i] }));
18
- if (i < metrics.length - 1) {
19
- panelElements.push(_jsx(C4Divider, {}, `divider-${i}`));
20
- }
21
- }
22
- }
23
- component = (_jsxs(Stack, { gap: 3, children: [_jsx(MetricsTitle, { title: title, subtitle: subtitle }), loading && _jsx(SkeletonText, {}), !loading && panelElements.length === 0 && (_jsx("p", { children: "No metrics available. Please select another Component." })), !loading &&
24
- panelElements.length > 0 &&
25
- panelElements.map((element) => element)] }));
26
- }
27
- return component;
28
- };
29
- // ELEMENTS OF COMPONENT
30
- const MetricsElement = ({ metricKey, metricValue, }) => {
31
- const component = (_jsxs(Stack, { gap: 1, children: [_jsx("p", { className: 'cds--label', style: { marginBottom: 0 }, children: metricKey }), _jsx("p", { style: { width: '100%' }, className: 'cds--type-code-01', children: JSON.stringify(metricValue, null, 2) })] }, metricKey));
32
- return component;
33
- };
34
- const MetricsTitle = (props) => {
35
- const component = (_jsx("div", { style: { paddingBottom: '1.5rem' }, children: _jsxs(Stack, { gap: 1, children: [_jsx("h4", { className: 'cds--type-body-01', children: props.subtitle }), _jsx("h1", { className: 'cds--type-heading-03', children: props.title })] }) }));
36
- return component;
37
- };
38
- ComponentMetrics.EmptyState = (props) => {
39
- const component = (_jsx("div", { style: { paddingTop: '10rem' }, children: _jsxs(Stack, { gap: 8, children: [_jsx("div", { style: { textAlign: 'center' }, children: _jsx(TelemetryMetricsEmptyStateImage, {}) }), _jsxs(Stack, { gap: 3, children: [_jsx("h3", { className: 'cds--type-heading-03', style: { textAlign: 'center' }, children: props.title }), _jsx("p", { className: 'cds--type-body-compact-02', style: { width: '248px', textAlign: 'center', margin: '0 auto' }, children: props.subtitle })] })] }) }));
40
- return component;
41
- };
42
- })(ComponentMetrics || (ComponentMetrics = {}));
@@ -1,2 +0,0 @@
1
- import type { SVGProps } from 'react';
2
- export declare const TelemetryMetricsEmptyStateImage: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;