@camunda/ccma-saas-frontend 0.18.10 → 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.
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
- package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
- package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
- package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
- package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
- package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
- package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
- package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
- package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
- package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
- package/lib/esm/components/c4-divider/c4-divider.js +5 -13
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
- package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
- package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
- package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
- package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
- package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
- package/lib/esm/components/c4-search/c4-search-results.js +44 -36
- package/lib/esm/components/c4-search/c4-search.js +5 -7
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
- package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
- package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
- package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
- package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
- package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
- package/lib/esm/index.css +107 -74
- package/lib/esm/index.d.ts +1 -9
- package/lib/esm/index.js +1 -5
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
- package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
- package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
- package/lib/esm/runtime/c4-user-theme.js +4 -4
- package/lib/esm/runtime/index.d.ts +1 -1
- package/lib/esm/runtime/index.js +1 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
- package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
- package/lib/esm/ui/c4-cluster-tag.js +1 -1
- package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
- package/lib/esm/ui/c4-modal-dialog.js +18 -9
- package/lib/esm/ui/c4-password-input.d.ts +4 -8
- package/lib/esm/ui/c4-password-input.js +4 -8
- package/lib/esm/ui/c4-text-area.d.ts +19 -0
- package/lib/esm/ui/c4-text-area.js +30 -0
- package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
- package/lib/esm/ui/ds-compact-code-block.js +1 -1
- package/lib/esm/ui/families.d.ts +13 -46
- package/lib/esm/ui/families.js +8 -51
- package/lib/esm/ui/index.d.ts +11 -53
- package/lib/esm/ui/index.js +19 -152
- package/lib/esm/ui/tabs.d.ts +1 -21
- package/lib/esm/ui/tabs.js +1 -22
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
- package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
- package/lib/esm/widgets/management/c4-management-app.js +6 -9
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
- package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
- package/package.json +3 -14
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
- package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
- package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
- package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
- package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
- package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
- package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
- package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
- package/lib/esm/ui/c4-definition-tooltip.js +0 -43
- package/lib/esm/ui/switchable.d.ts +0 -14
- package/lib/esm/ui/switchable.js +0 -27
|
@@ -3,14 +3,12 @@ import { C4DataTable } from '../../../components/c4-data-table/c4-data-table.js'
|
|
|
3
3
|
import { C4DataTableSkeleton } from '../../../components/c4-data-table/c4-data-table-skeleton.js';
|
|
4
4
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
|
|
5
5
|
import { C4UsageHistory } from '../../../components/c4-usage-history/c4-usage-history.js';
|
|
6
|
-
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
7
6
|
import { Stack } from '../../../ui/index.js';
|
|
8
7
|
function ExpandedRow({ clusters, text, isLicensingModel2025, showTenants, }) {
|
|
9
8
|
const headerRow = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: text.perCluster.clusterName }), _jsx(C4StructuredListCell, { head: true, children: text.perCluster.processInstances }), showTenants && (_jsx(C4StructuredListCell, { head: true, children: text.perCluster.tenants })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { head: true, children: text.perCluster.decisionInstances })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { head: true, children: text.perCluster.taskUsers }))] }));
|
|
10
9
|
return (_jsxs(C4StructuredListWrapper, { children: [_jsx(C4StructuredListHead, { children: headerRow }), _jsx(C4StructuredListBody, { children: clusters.map((cluster) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: cluster.clusterName }), _jsx(C4StructuredListCell, { children: cluster.processInstances }), showTenants && (_jsx(C4StructuredListCell, { children: cluster.tenants ?? '-' })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { children: cluster.decisionInstances })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { children: cluster.taskUsers }))] }, cluster.clusterId))) })] }));
|
|
11
10
|
}
|
|
12
11
|
export const C4ManagementUsageTab = ({ loading, groupBy, onGroupByChange, perClusterAvailable, history, charts, text, isLicensingModel2025 = false, showTenants = false, error, }) => {
|
|
13
|
-
const designSystem = useC4DesignSystem();
|
|
14
12
|
const headers = [
|
|
15
13
|
{
|
|
16
14
|
label: text.headers.period,
|
|
@@ -76,7 +74,7 @@ export const C4ManagementUsageTab = ({ loading, groupBy, onGroupByChange, perClu
|
|
|
76
74
|
},
|
|
77
75
|
},
|
|
78
76
|
];
|
|
79
|
-
const tableComponent = loading ? (_jsx(C4DataTableSkeleton, {
|
|
77
|
+
const tableComponent = loading ? (_jsx(C4DataTableSkeleton, {})) : (_jsx(Stack, { gap: 3, children: _jsx(C4DataTable, { headers: headers, data: history.map((item) => {
|
|
80
78
|
const hasPerCluster = perClusterAvailable && (item.perCluster?.length ?? 0) > 0;
|
|
81
79
|
return {
|
|
82
80
|
...item,
|
|
@@ -84,15 +82,9 @@ export const C4ManagementUsageTab = ({ loading, groupBy, onGroupByChange, perClu
|
|
|
84
82
|
};
|
|
85
83
|
}), toolbar: toolbar, title: undefined }, `usage-history-${groupBy}`) }));
|
|
86
84
|
return (
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
// to `auto` (CSS), adding a spurious vertical scrollbar (seen on the chart
|
|
91
|
-
// view). Keep it carbon-only.
|
|
92
|
-
_jsx("div", { style: {
|
|
93
|
-
width: '100%',
|
|
94
|
-
overflowX: designSystem === 'ds' ? 'visible' : 'auto',
|
|
95
|
-
}, children: _jsxs(Stack, { gap: 8, children: [error ? (_jsx("p", { style: { color: 'var(--cds-text-error)' }, children: error })) : null, _jsx(C4UsageHistory, { title: '', description: '', descriptionTooltip: '', loading: loading, data: {
|
|
85
|
+
// No `overflow-x: auto` here: the DS DataTable scrolls itself, and the
|
|
86
|
+
// wrapper would add a spurious vertical scrollbar (CSS promotes `overflow-y`).
|
|
87
|
+
_jsx("div", { style: { width: '100%' }, children: _jsxs(Stack, { gap: 8, children: [error ? (_jsx("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: error })) : null, _jsx(C4UsageHistory, { title: '', description: '', descriptionTooltip: '', loading: loading, data: {
|
|
96
88
|
titles: {
|
|
97
89
|
table: text.tableTabTitle,
|
|
98
90
|
charts: text.chartsTabTitle,
|
|
@@ -453,7 +453,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
453
453
|
setAssignOwnerSaving(false);
|
|
454
454
|
}
|
|
455
455
|
})();
|
|
456
|
-
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [assignOwnerError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: assignOwnerError })), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', hideCloseButton: true, title: '', subtitle: safeTranslate(t, 'users:assignNewOwner.warning', 'By assigning a new owner, you will no longer be the owner of this organization.') }), _jsx(TextInput, { id: 'c4-assign-new-owner-email', labelText: safeTranslate(t, 'users:assignNewOwner.form.email', 'New owner'), value: assignOwnerTarget.email, readOnly: true }), _jsxs("fieldset", { className: '
|
|
456
|
+
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [assignOwnerError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: assignOwnerError })), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', hideCloseButton: true, title: '', subtitle: safeTranslate(t, 'users:assignNewOwner.warning', 'By assigning a new owner, you will no longer be the owner of this organization.') }), _jsx(TextInput, { id: 'c4-assign-new-owner-email', labelText: safeTranslate(t, 'users:assignNewOwner.form.email', 'New owner'), value: assignOwnerTarget.email, readOnly: true }), _jsxs("fieldset", { className: 'c4-fieldset', children: [_jsx("legend", { className: 'c4-label', children: safeTranslate(t, 'users:assignNewOwner.form.rolesDescription', 'Select your new role(s) for this organization:') }), assignOwnerPrimaryRoles.map((role) => {
|
|
457
457
|
const enriched = roleLabelDescription(t, role, {
|
|
458
458
|
permissionsReworkEnabled,
|
|
459
459
|
});
|
|
@@ -466,11 +466,11 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
466
466
|
next.delete(role);
|
|
467
467
|
return next;
|
|
468
468
|
});
|
|
469
|
-
} }), enriched.description && (_jsx("span", { className: '
|
|
469
|
+
} }), enriched.description && (_jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description }))] }, `c4-assign-owner-role-${role}`));
|
|
470
470
|
}), assignOwnerLegacyRoles.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
471
|
-
color: 'var(--
|
|
472
|
-
letterSpacing: '
|
|
473
|
-
fontSize: '
|
|
471
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
472
|
+
letterSpacing: '0.32px',
|
|
473
|
+
fontSize: '0.75rem',
|
|
474
474
|
marginBlockEnd: '0.5rem',
|
|
475
475
|
}, children: moreRolesHeadingText(t, showLegacyClusterRoles) }), assignOwnerLegacyRoles.map((role) => {
|
|
476
476
|
const enriched = roleLabelDescription(t, role, {
|
|
@@ -485,7 +485,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
485
485
|
next.delete(role);
|
|
486
486
|
return next;
|
|
487
487
|
});
|
|
488
|
-
} }), enriched.description && (_jsx("span", { className: '
|
|
488
|
+
} }), enriched.description && (_jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description }))] }, `c4-assign-owner-role-legacy-${role}`));
|
|
489
489
|
})] }))] })] }) })), changeRolesOpen && changeRolesTarget && changeRolesModal && (_jsx(Modal, { open: true, modalHeading: safeTranslate(t, 'users:changeOrgRoles.heading', 'Edit user'), primaryButtonText: safeTranslate(t, 'users:changeOrgRoles.buttons.primary', 'Save'), secondaryButtonText: safeTranslate(t, 'users:changeOrgRoles.buttons.secondary', 'Cancel'), primaryButtonDisabled: changeRolesSaving, onRequestClose: () => {
|
|
490
490
|
setChangeRolesOpen(false);
|
|
491
491
|
}, onRequestSubmit: () => {
|
|
@@ -519,7 +519,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
519
519
|
setChangeRolesSaving(false);
|
|
520
520
|
}
|
|
521
521
|
})();
|
|
522
|
-
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-management-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: changeRolesTarget.email, readOnly: true }), changeRolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeRolesError })), _jsxs("fieldset", { className: '
|
|
522
|
+
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-management-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: changeRolesTarget.email, readOnly: true }), changeRolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeRolesError })), _jsxs("fieldset", { className: 'c4-fieldset', children: [_jsx("legend", { className: 'c4-label', children: safeTranslate(t, 'users:changeOrgRoles.form.roles', 'Roles') }), changeRolesVisiblePrimary.map((role) => {
|
|
523
523
|
const enriched = roleLabelDescription(t, role, {
|
|
524
524
|
permissionsReworkEnabled,
|
|
525
525
|
});
|
|
@@ -534,11 +534,11 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
534
534
|
}
|
|
535
535
|
return next;
|
|
536
536
|
});
|
|
537
|
-
} }), _jsx("span", { className: '
|
|
537
|
+
} }), _jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description })] }, `management-role-primary-${role}`));
|
|
538
538
|
}), changeRolesVisibleMore.length > 0 && (_jsx("div", { style: {
|
|
539
|
-
color: 'var(--
|
|
540
|
-
letterSpacing: '
|
|
541
|
-
fontSize: '
|
|
539
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
540
|
+
letterSpacing: '0.32px',
|
|
541
|
+
fontSize: '0.75rem',
|
|
542
542
|
marginBlockEnd: '0.5rem',
|
|
543
543
|
}, children: moreRolesHeadingText(t, showLegacyClusterRoles) })), changeRolesVisibleMore.map((role) => {
|
|
544
544
|
const enriched = roleLabelDescription(t, role, {
|
|
@@ -555,7 +555,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
|
|
|
555
555
|
}
|
|
556
556
|
return next;
|
|
557
557
|
});
|
|
558
|
-
} }), _jsx("span", { className: '
|
|
558
|
+
} }), _jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description })] }, `management-role-more-${role}`));
|
|
559
559
|
})] })] }) })), _jsx(C4InviteUserToOrganizationModal, { t: t, showAdminRole: inviteModal?.showAdminRole, showLegacyClusterRoles: showLegacyClusterRoles, permissionsReworkEnabled: permissionsReworkEnabled, environmentsEnabled: environmentsEnabled, learnMoreUrl: inviteModal?.learnMoreUrl, onInviteUser: async ({ email, roles }) => {
|
|
560
560
|
await onInviteUser(email, roles);
|
|
561
561
|
}, ref: (instance) => {
|
|
@@ -381,7 +381,7 @@ export const C4UserDetailsPage = observer(({ orgId, userEmail, externalLinks, on
|
|
|
381
381
|
setChangeOrgRolesSaving(false);
|
|
382
382
|
}
|
|
383
383
|
})();
|
|
384
|
-
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: userEmailAddress, readOnly: true }), changeOrgRolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeOrgRolesError })), _jsxs("fieldset", { className: '
|
|
384
|
+
}, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: userEmailAddress, readOnly: true }), changeOrgRolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeOrgRolesError })), _jsxs("fieldset", { className: 'c4-fieldset', children: [_jsx("legend", { className: 'c4-label', children: safeTranslate(t, 'users:changeOrgRoles.form.roles', 'Roles') }), editableRoles.primary.map((role) => {
|
|
385
385
|
const enriched = roleLabelDescription(t, role, {
|
|
386
386
|
permissionsReworkEnabled,
|
|
387
387
|
});
|
|
@@ -396,7 +396,7 @@ export const C4UserDetailsPage = observer(({ orgId, userEmail, externalLinks, on
|
|
|
396
396
|
}
|
|
397
397
|
return next;
|
|
398
398
|
});
|
|
399
|
-
} }), _jsx("span", { className: '
|
|
399
|
+
} }), _jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description })] }, `role-primary-${role}`));
|
|
400
400
|
}), _jsxs("div", { style: { margin: '16px 0' }, children: [_jsx(C4InlineNotification, { lowContrast: true, kind: 'info', hideCloseButton: true, title: '', subtitle: environmentsEnabled
|
|
401
401
|
? safeTranslate(t, 'users:changeOrgRoles.notification.titleEnvironments', 'Starting with version 8.8, user access to environments is managed independently.')
|
|
402
402
|
: safeTranslate(t, 'users:changeOrgRoles.notification.title', 'Starting with version 8.8, user access to clusters is managed independently.') }), _jsxs("p", { style: { paddingTop: '4px' }, children: [_jsx(Link, { href: 'https://docs.camunda.io/', onClick: (e) => {
|
|
@@ -409,9 +409,9 @@ export const C4UserDetailsPage = observer(({ orgId, userEmail, externalLinks, on
|
|
|
409
409
|
url: 'https://docs.camunda.io/',
|
|
410
410
|
});
|
|
411
411
|
}, children: safeTranslate(t, 'users:changeOrgRoles.notification.learnMore', 'Learn more') }), "."] })] }), editableRoles.more.length > 0 && (_jsx("div", { style: {
|
|
412
|
-
color: 'var(--
|
|
413
|
-
letterSpacing: '
|
|
414
|
-
fontSize: '
|
|
412
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
413
|
+
letterSpacing: '0.32px',
|
|
414
|
+
fontSize: '0.75rem',
|
|
415
415
|
marginBlockEnd: '0.5rem',
|
|
416
416
|
}, children: moreRolesHeadingText(t, !showOnly8_8Roles) })), editableRoles.more.map((role) => {
|
|
417
417
|
const enriched = roleLabelDescription(t, role, {
|
|
@@ -428,7 +428,7 @@ export const C4UserDetailsPage = observer(({ orgId, userEmail, externalLinks, on
|
|
|
428
428
|
}
|
|
429
429
|
return next;
|
|
430
430
|
});
|
|
431
|
-
} }), _jsx("span", { className: '
|
|
431
|
+
} }), _jsx("span", { className: 'c4-label', style: { marginLeft: '27px' }, children: enriched.description })] }, `role-more-${role}`));
|
|
432
432
|
})] })] }) }), _jsx(Modal, { open: removeOrgRoleOpen, modalHeading: safeTranslate(t, 'users:removeOrgRole.heading', 'Remove role'), primaryButtonText: safeTranslate(t, 'users:removeOrgRole.buttons.primary', 'Remove'), secondaryButtonText: safeTranslate(t, 'users:removeOrgRole.buttons.secondary', 'Cancel'), danger: true, primaryButtonDisabled: removeOrgRoleSaving, onRequestClose: () => {
|
|
433
433
|
setRemoveOrgRoleOpen(false);
|
|
434
434
|
}, onRequestSubmit: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -48,14 +48,7 @@
|
|
|
48
48
|
"@camunda/c4-identity": "0.0.45",
|
|
49
49
|
"@camunda/camunda-composite-components": "0.25.4",
|
|
50
50
|
"@camunda/design-system": "0.68.1",
|
|
51
|
-
"@carbon/charts": "1.27.20",
|
|
52
|
-
"@carbon/charts-react": "1.27.20",
|
|
53
|
-
"@carbon/layout": "11.60.0",
|
|
54
|
-
"@carbon/motion": "^11.46.0",
|
|
55
51
|
"@carbon/react": "1.117.0",
|
|
56
|
-
"@carbon/styles": "^1.116.0",
|
|
57
|
-
"@carbon/themes": "^11.74.0",
|
|
58
|
-
"@carbon/type": "11.68.0",
|
|
59
52
|
"recharts": "3.10.1",
|
|
60
53
|
"@chromatic-com/storybook": "5.4.0",
|
|
61
54
|
"@mdx-js/react": "3.1.1",
|
|
@@ -84,20 +77,16 @@
|
|
|
84
77
|
"@camunda/c4-identity": "0.x",
|
|
85
78
|
"@camunda/camunda-composite-components": "0.x",
|
|
86
79
|
"@camunda/design-system": "0.x",
|
|
87
|
-
"@carbon/charts": "1.x",
|
|
88
|
-
"@carbon/charts-react": "1.x",
|
|
89
|
-
"@carbon/motion": "11.x",
|
|
90
80
|
"recharts": "3.x",
|
|
91
81
|
"@carbon/react": "1.x",
|
|
92
|
-
"@carbon/themes": "11.x",
|
|
93
82
|
"lucide-react": ">=1.0.0 <2",
|
|
94
83
|
"react": "18.x || 19.x",
|
|
95
84
|
"react-dom": "18.x || 19.x",
|
|
96
85
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
97
86
|
},
|
|
98
87
|
"dependencies": {
|
|
99
|
-
"@camunda/ccma-api": "5.7.
|
|
100
|
-
"@camunda/ccma-shared-types": "
|
|
88
|
+
"@camunda/ccma-api": "5.7.2",
|
|
89
|
+
"@camunda/ccma-shared-types": "8.0.0",
|
|
101
90
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
102
91
|
"cron-parser": "5.10.1",
|
|
103
92
|
"mobx": "6.16.1",
|
|
@@ -1,21 +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 { Stack, Tile } from '../../ui/index.js';
|
|
9
|
-
import { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
10
|
-
import { ApplicationTile } from '../c4-cluster-overview/applications.js';
|
|
11
|
-
import { ZeebeComponentGroup } from './zeebe-components.js';
|
|
12
|
-
export const AutomationComponents = (props) => {
|
|
13
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(Layer, { children: _jsx(ZeebeComponentGroup, { ...props.zeebe }) }), _jsx(Grid, { style: {
|
|
14
|
-
...STYLES.grid,
|
|
15
|
-
}, children: props.webapps.map((webapp, index) => {
|
|
16
|
-
return (_jsx(Column, { span: 4, style: {
|
|
17
|
-
...STYLES.grid,
|
|
18
|
-
}, children: _jsx(ApplicationTile, { ...webapp }) }, `webapp-component-${index}`));
|
|
19
|
-
}) })] }) }));
|
|
20
|
-
return component;
|
|
21
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
import type { C4SmClusterDetailsProps } from './c4-sm-cluster-details.types.js';
|
|
3
|
-
export declare const C4SmClusterDetails: ({ details, customProperties, breadcrumb, automationComponents, jobDashboardEntryPoint, }: C4SmClusterDetailsProps) => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { Stack } from '../../ui/index.js';
|
|
4
|
-
import { C4Breadcrumb } from '../c4-breadcrumb/c4-breadcrumb.js';
|
|
5
|
-
import C4JobDashboardEntryPoint from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js';
|
|
6
|
-
import { AutomationComponents } from './automation-components.js';
|
|
7
|
-
import { CustomProperties, customPropertiesAvailable, } from './custom-properties.js';
|
|
8
|
-
import { Details } from './details.js';
|
|
9
|
-
const GridContainer = styled.div `
|
|
10
|
-
display: grid;
|
|
11
|
-
grid-template-columns: 1fr 1fr;
|
|
12
|
-
gap: 1rem;
|
|
13
|
-
`;
|
|
14
|
-
export const C4SmClusterDetails = ({ details, customProperties, breadcrumb, automationComponents, jobDashboardEntryPoint, }) => {
|
|
15
|
-
const breadcrumbComponent = _jsx(C4Breadcrumb, { ...breadcrumb });
|
|
16
|
-
const detailsComponent = _jsx(Details, { ...details });
|
|
17
|
-
const customPropertiesComponent = _jsx(CustomProperties, { ...customProperties });
|
|
18
|
-
const detailsAndCustomProperties = customPropertiesAvailable(customProperties) ? (_jsxs(GridContainer, { children: [detailsComponent, customPropertiesComponent] })) : (detailsComponent);
|
|
19
|
-
const automationComponentsComponent = (_jsx(AutomationComponents, { ...automationComponents }));
|
|
20
|
-
const automationAndJobsProperties = jobDashboardEntryPoint ? (_jsxs(GridContainer, { children: [automationComponentsComponent, _jsx(C4JobDashboardEntryPoint, { ...jobDashboardEntryPoint })] })) : (automationComponentsComponent);
|
|
21
|
-
return (_jsxs(Stack, { gap: 3, children: [breadcrumbComponent, _jsxs(Stack, { gap: 5, children: [detailsAndCustomProperties, automationAndJobsProperties] })] }));
|
|
22
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js';
|
|
2
|
-
import type { ApplicationTileProps, ClusterStatus } from '../c4-cluster-overview/applications.js';
|
|
3
|
-
import type { C4JobDashboardEntryPointProps } from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.js';
|
|
4
|
-
export interface ClusterDetailsGeneralProps {
|
|
5
|
-
title: string;
|
|
6
|
-
entries: {
|
|
7
|
-
name: {
|
|
8
|
-
label: string;
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
namespace: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
};
|
|
15
|
-
status: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: ClusterStatus;
|
|
18
|
-
tooltip?: string;
|
|
19
|
-
};
|
|
20
|
-
tags: {
|
|
21
|
-
label: string;
|
|
22
|
-
values: string[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface ClusterDetailsCustomPropertiesProps {
|
|
27
|
-
title: string;
|
|
28
|
-
props?: Array<{
|
|
29
|
-
description?: {
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
links?: Array<{
|
|
34
|
-
title: string;
|
|
35
|
-
label: string;
|
|
36
|
-
url: string;
|
|
37
|
-
}>;
|
|
38
|
-
}>;
|
|
39
|
-
}
|
|
40
|
-
export interface ZeebeComponentProps {
|
|
41
|
-
name: string;
|
|
42
|
-
status: ClusterStatus;
|
|
43
|
-
url?: string;
|
|
44
|
-
urls?: {
|
|
45
|
-
grpc: string;
|
|
46
|
-
http: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface ZeebeComponentGroupProps {
|
|
50
|
-
name: string;
|
|
51
|
-
components: ZeebeComponentProps[];
|
|
52
|
-
}
|
|
53
|
-
export interface ClusterDetailsZeebeComponentsProps {
|
|
54
|
-
title: string;
|
|
55
|
-
version: string;
|
|
56
|
-
status: ClusterStatus;
|
|
57
|
-
gateways: ZeebeComponentGroupProps;
|
|
58
|
-
brokers: ZeebeComponentGroupProps;
|
|
59
|
-
}
|
|
60
|
-
export interface ClusterDetailsAutomationComponentsProps {
|
|
61
|
-
title: string;
|
|
62
|
-
zeebe: ClusterDetailsZeebeComponentsProps;
|
|
63
|
-
webapps: ApplicationTileProps[];
|
|
64
|
-
}
|
|
65
|
-
export interface C4SmClusterDetailsProps {
|
|
66
|
-
breadcrumb: C4BreadcrumbProps;
|
|
67
|
-
details: ClusterDetailsGeneralProps;
|
|
68
|
-
customProperties: ClusterDetailsCustomPropertiesProps;
|
|
69
|
-
automationComponents: ClusterDetailsAutomationComponentsProps;
|
|
70
|
-
jobDashboardEntryPoint: C4JobDashboardEntryPointProps;
|
|
71
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsCustomPropertiesProps } from './c4-sm-cluster-details.types.js';
|
|
3
|
-
export declare const CustomProperties: (props: ClusterDetailsCustomPropertiesProps) => JSX.Element | null;
|
|
4
|
-
export declare function customPropertiesAvailable(props: ClusterDetailsCustomPropertiesProps): boolean;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Link, Stack, Tile } from '../../ui/index.js';
|
|
3
|
-
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
4
|
-
import { SLR } from './details.js';
|
|
5
|
-
export const CustomProperties = (props) => {
|
|
6
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(C4StructuredListWrapper, { children: _jsx(C4StructuredListBody, { children: props.props?.map((prop) => {
|
|
7
|
-
const elements = [];
|
|
8
|
-
if (prop.description) {
|
|
9
|
-
elements.push(_jsx(SLR, { label: prop.description.label, value: prop.description.value }));
|
|
10
|
-
}
|
|
11
|
-
if (prop.links) {
|
|
12
|
-
prop.links.forEach((link) => {
|
|
13
|
-
elements.push(_jsx(SLRLink, { title: link.title, label: link.label, value: link.url }, link.url));
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return elements;
|
|
17
|
-
}) }) })] }) }));
|
|
18
|
-
return component;
|
|
19
|
-
};
|
|
20
|
-
const SLRLink = (props) => {
|
|
21
|
-
return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.title }), _jsx(C4StructuredListCell, { children: _jsx(Link, { href: props.value, target: '_blank', children: props.label }) })] }));
|
|
22
|
-
};
|
|
23
|
-
export function customPropertiesAvailable(props) {
|
|
24
|
-
return !!props.props;
|
|
25
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
import type { ClusterDetailsGeneralProps } from './c4-sm-cluster-details.types.js';
|
|
3
|
-
export declare const Details: (props: ClusterDetailsGeneralProps) => JSX.Element;
|
|
4
|
-
export declare const SLR: (props: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: any;
|
|
7
|
-
}) => JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ClusterTag, Stack, Tile } from '../../ui/index.js';
|
|
3
|
-
import { HealthStatus } from '../c4-sm-dashboard/health-status.js';
|
|
4
|
-
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
5
|
-
export const Details = (props) => {
|
|
6
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { className: 'cds--type-heading-02', children: props.title }), _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsx(SLR, { label: props.entries.name.label, value: props.entries.name.value }), _jsx(SLR, { label: props.entries.namespace.label, value: props.entries.namespace.value }), _jsx(SLR, { label: props.entries.status.label, value: _jsx(HealthStatus, { id: 'cluster-status', status: props.entries.status.value, text: props.entries.status.value === 'healthy'
|
|
7
|
-
? 'Healthy'
|
|
8
|
-
: 'Unhealthy', tooltip: props.entries.status.tooltip }) }), _jsx(Tags, { label: props.entries.tags.label, values: props.entries.tags.values })] }) })] }) }));
|
|
9
|
-
return component;
|
|
10
|
-
};
|
|
11
|
-
export const SLR = (props) => {
|
|
12
|
-
return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(C4StructuredListCell, { children: props.value })] }));
|
|
13
|
-
};
|
|
14
|
-
const Tags = (props) => {
|
|
15
|
-
if (props.values.length === 0) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '9rem' }, children: props.label }), _jsx(C4StructuredListCell, { children: props.values.map((tag) => (_jsx(ClusterTag, { stage: tag }, tag))) })] }));
|
|
19
|
-
};
|
|
@@ -1,44 +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 { CodeSnippet, Stack, Tile } from '../../ui/index.js';
|
|
9
|
-
import { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
10
|
-
import { HealthStatus } from '../c4-sm-dashboard/health-status.js';
|
|
11
|
-
export const ZeebeComponentGroup = (props) => {
|
|
12
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 3, children: [_jsxs(Stack, { gap: 1, children: [_jsxs("div", { style: {
|
|
13
|
-
display: 'grid',
|
|
14
|
-
gridTemplateColumns: 'auto auto 1fr',
|
|
15
|
-
gap: '0.5rem',
|
|
16
|
-
}, children: [_jsx("h6", { children: props.title }), _jsx("div", { style: { marginTop: '-0.4rem' }, children: _jsx(HealthStatus, { status: props.status, id: 'zeebe', size: 'small' }) }), _jsx("div", {})] }), _jsx("span", { className: 'cds--label', style: { marginTop: '-0.5rem' }, children: props.version })] }), _jsx(ZeebeComponents, { ...props.gateways }), _jsx(ZeebeComponents, { ...props.brokers })] }) }));
|
|
17
|
-
return component;
|
|
18
|
-
};
|
|
19
|
-
const ZeebeComponents = (props) => {
|
|
20
|
-
const component = (_jsxs(Stack, { gap: 3, children: [_jsx("span", { className: 'cds--label', children: props.name }), _jsx(Grid, { style: {
|
|
21
|
-
...STYLES.grid,
|
|
22
|
-
}, children: props.components.map((component, index) => {
|
|
23
|
-
return (_jsx(Column, { span: 4, style: {
|
|
24
|
-
...STYLES.grid,
|
|
25
|
-
}, children: _jsx(ZeebeComponent, { name: component.name, url: component.url, urls: component.urls, status: component.status }, index) }, `zeebe-component-${index}`));
|
|
26
|
-
}) })] }));
|
|
27
|
-
return component;
|
|
28
|
-
};
|
|
29
|
-
const ZeebeComponent = (props) => {
|
|
30
|
-
const component = (_jsx(Layer, { children: _jsx(Tile, { children: _jsxs(Stack, { gap: 1, children: [_jsx(HealthStatus, { status: props.status, id: props.name, size: 'small' }), _jsx("p", { children: props.name }), props.url && (_jsx(CodeSnippet, { type: 'single', wrapText: true, style: {
|
|
31
|
-
minWidth: 0,
|
|
32
|
-
textOverflow: 'ellipsis',
|
|
33
|
-
background: 'var(--cds-layer-02)',
|
|
34
|
-
}, children: props.url })), props.urls && (_jsxs(Stack, { children: [_jsx(CodeSnippet, { type: 'single', wrapText: true, style: {
|
|
35
|
-
minWidth: 0,
|
|
36
|
-
textOverflow: 'ellipsis',
|
|
37
|
-
background: 'var(--cds-layer-02)',
|
|
38
|
-
}, children: props.urls.http }), _jsx(CodeSnippet, { type: 'single', wrapText: true, style: {
|
|
39
|
-
minWidth: 0,
|
|
40
|
-
textOverflow: 'ellipsis',
|
|
41
|
-
background: 'var(--cds-layer-02)',
|
|
42
|
-
}, children: props.urls.grpc })] }))] }) }) }));
|
|
43
|
-
return component;
|
|
44
|
-
};
|
|
@@ -1,34 +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 { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
9
|
-
import { ClusterTile } from './cluster-tile.js';
|
|
10
|
-
import { Explore } from './explore.js';
|
|
11
|
-
import { Overview } from './overview.js';
|
|
12
|
-
import { UsageTile } from './usage-tile.js';
|
|
13
|
-
export const C4SmDashboard = ({ automation, management, texts, explore, usage, actions, }) => {
|
|
14
|
-
const managementTile = (_jsx(ClusterTile.Component, { name: texts.managementTitle, clusters: management }));
|
|
15
|
-
const usageTile = _jsx(UsageTile.Component, { ...usage });
|
|
16
|
-
const overview = (_jsx(Overview.Component, { chartTitle: texts.chartTitle, unhealthyClustersTitle: texts.unhealthyClustersTitle, emptyState: texts.unhealthyEmptyState, automation: automation, actions: actions }));
|
|
17
|
-
const exploreComponent = _jsx(Explore.Component, { ...explore, actions: actions });
|
|
18
|
-
const component = (_jsxs(Grid, { style: {
|
|
19
|
-
...STYLES.grid,
|
|
20
|
-
}, children: [_jsx(Column, { span: 4, style: {
|
|
21
|
-
...STYLES.grid,
|
|
22
|
-
}, children: overview }), _jsx(Column, { span: 12, style: {
|
|
23
|
-
...STYLES.grid,
|
|
24
|
-
}, children: _jsxs(Grid, { style: {
|
|
25
|
-
...STYLES.grid,
|
|
26
|
-
}, children: [_jsx(Column, { span: 12, style: {
|
|
27
|
-
...STYLES.grid,
|
|
28
|
-
}, children: managementTile }), _jsx(Column, { span: 12, style: {
|
|
29
|
-
...STYLES.grid,
|
|
30
|
-
}, children: usageTile }), _jsx(Column, { span: 12, style: {
|
|
31
|
-
...STYLES.grid,
|
|
32
|
-
}, children: exploreComponent })] }) })] }));
|
|
33
|
-
return component;
|
|
34
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Explore } from './explore.js';
|
|
2
|
-
import type { UsageTile } from './usage-tile.js';
|
|
3
|
-
export interface ClusterComponent {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
status: 'healthy' | 'unhealthy';
|
|
7
|
-
version: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Cluster {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
components: ClusterComponent[];
|
|
13
|
-
}
|
|
14
|
-
export interface DashboardActions {
|
|
15
|
-
viewAllClusters: {
|
|
16
|
-
label: string;
|
|
17
|
-
onClick: () => void;
|
|
18
|
-
};
|
|
19
|
-
giveFeedback: {
|
|
20
|
-
label: string;
|
|
21
|
-
onClick: () => void;
|
|
22
|
-
};
|
|
23
|
-
clusterDetails: {
|
|
24
|
-
onClick: (clusterId: string) => void;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface C4SmDashboardProps {
|
|
28
|
-
management: Cluster[];
|
|
29
|
-
automation: Cluster[];
|
|
30
|
-
texts: {
|
|
31
|
-
chartTitle: string;
|
|
32
|
-
unhealthyClustersTitle: string;
|
|
33
|
-
unhealthyEmptyState: string;
|
|
34
|
-
managementTitle: string;
|
|
35
|
-
automationTitle: string;
|
|
36
|
-
};
|
|
37
|
-
explore: Explore.Props;
|
|
38
|
-
usage: UsageTile.Props;
|
|
39
|
-
actions: DashboardActions;
|
|
40
|
-
}
|
|
@@ -1,60 +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 { Stack, Tile } from '../../ui/index.js';
|
|
9
|
-
import { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
10
|
-
import { ComponentTile } from './component-tile.js';
|
|
11
|
-
export var ClusterTile;
|
|
12
|
-
(function (ClusterTile) {
|
|
13
|
-
ClusterTile.Component = (props) => {
|
|
14
|
-
const clusterComponents = [];
|
|
15
|
-
for (const cluster of props.clusters) {
|
|
16
|
-
for (const clusterComponent of cluster.components) {
|
|
17
|
-
const foundClusterComponent = clusterComponents.find((currentComponent) => currentComponent.name === clusterComponent.name);
|
|
18
|
-
if (foundClusterComponent) {
|
|
19
|
-
if (clusterComponent.status === 'healthy') {
|
|
20
|
-
foundClusterComponent.healthy++;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
foundClusterComponent.unhealthy++;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
let healthy = 0;
|
|
28
|
-
let unhealthy = 0;
|
|
29
|
-
if (clusterComponent.status === 'healthy') {
|
|
30
|
-
healthy++;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
unhealthy++;
|
|
34
|
-
}
|
|
35
|
-
clusterComponents.push({
|
|
36
|
-
name: clusterComponent.name,
|
|
37
|
-
healthy,
|
|
38
|
-
unhealthy,
|
|
39
|
-
version: clusterComponent.version,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 3, children: [_jsx("h3", { children: props.name }), _jsx(Grid, { style: {
|
|
45
|
-
...STYLES.grid,
|
|
46
|
-
}, children: clusterComponents.map((component, index) => {
|
|
47
|
-
let info = '';
|
|
48
|
-
if (component.healthy + component.unhealthy > 1) {
|
|
49
|
-
info = `${component.healthy + component.unhealthy} instances`;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
info = component.version;
|
|
53
|
-
}
|
|
54
|
-
return (_jsx(Column, { span: 4, style: {
|
|
55
|
-
...STYLES.grid,
|
|
56
|
-
}, children: _jsx(ComponentTile.Component, { name: component.name, info: info, healthy: component.healthy, unhealthy: component.unhealthy }) }, `${component.name}-${index}`));
|
|
57
|
-
}) })] }) }));
|
|
58
|
-
return component;
|
|
59
|
-
};
|
|
60
|
-
})(ClusterTile || (ClusterTile = {}));
|