@camunda/ccma-saas-frontend 0.18.11 → 0.19.1
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-client-details/c4-cluster-client-details-app.js +2 -2
- 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 +8 -9
- 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 +7 -10
- 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
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js
CHANGED
|
@@ -4,16 +4,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { DonutChart } from '@carbon/charts-react';
|
|
8
7
|
import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip } from 'recharts';
|
|
9
|
-
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
10
8
|
import { JOB_STATUS_DS_COLORS } from '../../c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js';
|
|
11
9
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
12
10
|
import { DS_CHART_TOOLTIP_PROPS } from '../../shared-charts/recharts-tokens.js';
|
|
13
11
|
import { CHART_HEIGHT, PIE_CHART_MAX_WIDTH_PX, } from '../c4-job-dashboard-details-page.js';
|
|
14
12
|
import C4JobDashboardChartHeading from './c4-job-dashboard-chart-heading.js';
|
|
15
|
-
function C4JobDashboardPieChart({ jobData, error,
|
|
16
|
-
const designSystem = useC4DesignSystem();
|
|
13
|
+
function C4JobDashboardPieChart({ jobData, error, isLoading, translations, }) {
|
|
17
14
|
const completedCount = jobData?.completed?.count ?? 0;
|
|
18
15
|
const failedCount = jobData?.failed?.count ?? 0;
|
|
19
16
|
const createdCount = jobData?.created?.count ?? 0;
|
|
@@ -24,55 +21,6 @@ function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, transla
|
|
|
24
21
|
return `${count} ${count === 1 ? translations.charts.jobLabel.singular : translations.charts.jobLabel.plural} ${legendLabel.toLowerCase()}`;
|
|
25
22
|
};
|
|
26
23
|
const pieData = [
|
|
27
|
-
{
|
|
28
|
-
group: getPieChartLabel(completedCount, translations.charts.legend.completed),
|
|
29
|
-
value: completedCount,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
group: getPieChartLabel(failedCount, translations.charts.legend.failed),
|
|
33
|
-
value: failedCount,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
group: getPieChartLabel(createdCount, translations.charts.legend.created),
|
|
37
|
-
value: createdCount,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
const formattedColorScale = {
|
|
41
|
-
[getPieChartLabel(completedCount, translations.charts.legend.completed)]: colorScale.Completed,
|
|
42
|
-
[getPieChartLabel(failedCount, translations.charts.legend.failed)]: colorScale.Failed,
|
|
43
|
-
[getPieChartLabel(createdCount, translations.charts.legend.created)]: colorScale.Created,
|
|
44
|
-
};
|
|
45
|
-
const pieOptions = {
|
|
46
|
-
resizable: true,
|
|
47
|
-
toolbar: {
|
|
48
|
-
enabled: false,
|
|
49
|
-
},
|
|
50
|
-
donut: {
|
|
51
|
-
center: {
|
|
52
|
-
number: completionRate,
|
|
53
|
-
numberFormatter: (value) => (isLoading ? '' : `${value}%`),
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
legend: {
|
|
57
|
-
position: 'right',
|
|
58
|
-
truncation: {
|
|
59
|
-
type: 'none',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
height: CHART_HEIGHT,
|
|
63
|
-
pie: {
|
|
64
|
-
labels: {
|
|
65
|
-
enabled: false,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
color: {
|
|
69
|
-
scale: formattedColorScale,
|
|
70
|
-
},
|
|
71
|
-
data: {
|
|
72
|
-
loading: isLoading,
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
const dsPieData = [
|
|
76
24
|
{
|
|
77
25
|
key: 'completed',
|
|
78
26
|
label: getPieChartLabel(completedCount, translations.charts.legend.completed),
|
|
@@ -95,7 +43,7 @@ function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, transla
|
|
|
95
43
|
const noData = (jobData?.created.count === jobData?.failed.count &&
|
|
96
44
|
jobData?.completed.count === 0) ||
|
|
97
45
|
!jobData;
|
|
98
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: 25 }, children: _jsx(C4JobDashboardChartHeading, { title: translations.charts.createdVsCompleted.title, tooltipLabel: translations.charts.createdVsCompleted.tooltip }) }), (!jobData || noData || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: noData ? 0 : 1, showIcons: false, translations: translations.errorHandler, error: error })) :
|
|
46
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: 25 }, children: _jsx(C4JobDashboardChartHeading, { title: translations.charts.createdVsCompleted.title, tooltipLabel: translations.charts.createdVsCompleted.tooltip }) }), (!jobData || noData || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: noData ? 0 : 1, showIcons: false, translations: translations.errorHandler, error: error })) : (_jsxs("div", { style: { maxWidth: PIE_CHART_MAX_WIDTH_PX, margin: '0 auto' }, children: [_jsxs("div", { style: { position: 'relative', height: CHART_HEIGHT }, children: [_jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(PieChart, { children: [_jsx(Pie, { data: pieData, dataKey: 'value', nameKey: 'label', innerRadius: '62%', outerRadius: '88%', paddingAngle: 2, stroke: 'none', isAnimationActive: false, children: pieData.map((entry) => (_jsx(Cell, { fill: entry.color }, entry.key))) }), _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS })] }) }), _jsx("div", { style: {
|
|
99
47
|
position: 'absolute',
|
|
100
48
|
top: '50%',
|
|
101
49
|
left: '50%',
|
|
@@ -112,7 +60,7 @@ function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, transla
|
|
|
112
60
|
justifyContent: 'center',
|
|
113
61
|
marginTop: 12,
|
|
114
62
|
flexWrap: 'wrap',
|
|
115
|
-
}, children:
|
|
63
|
+
}, children: pieData.map((entry) => (_jsxs("div", { style: {
|
|
116
64
|
display: 'flex',
|
|
117
65
|
alignItems: 'center',
|
|
118
66
|
gap: 6,
|
|
@@ -124,6 +72,6 @@ function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, transla
|
|
|
124
72
|
borderRadius: '50%',
|
|
125
73
|
background: entry.color,
|
|
126
74
|
display: 'inline-block',
|
|
127
|
-
} }), entry.label] }, entry.key))) })] }))
|
|
75
|
+
} }), entry.label] }, entry.key))) })] }))] }));
|
|
128
76
|
}
|
|
129
77
|
export default C4JobDashboardPieChart;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
3
|
-
import { type ColorScale } from '../c4-job-dashboard-details-page.js';
|
|
4
3
|
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types.js';
|
|
5
4
|
interface C4JobDashboardBarChartProps {
|
|
6
5
|
timeSeries: Array<{
|
|
7
6
|
time: string;
|
|
8
7
|
} & JobStatusSummary>;
|
|
9
|
-
colorScale: ColorScale;
|
|
10
8
|
isLoading: boolean;
|
|
11
9
|
translations: JobDashboardDetailsTranslations;
|
|
12
10
|
error?: JobsError;
|
|
13
11
|
}
|
|
14
|
-
declare function C4JobDashboardTimeChart({ timeSeries, isLoading,
|
|
12
|
+
declare function C4JobDashboardTimeChart({ timeSeries, isLoading, translations, error, }: C4JobDashboardBarChartProps): JSX.Element;
|
|
15
13
|
export default C4JobDashboardTimeChart;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { TickRotations } from '@carbon/charts';
|
|
8
|
-
import { ScaleTypes, StackedAreaChart, } from '@carbon/charts-react';
|
|
9
2
|
import { Area, AreaChart, CartesianGrid, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts';
|
|
10
|
-
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
3
|
import { Stack } from '../../../ui/index.js';
|
|
12
4
|
import { JOB_STATUS_DS_COLORS } from '../../c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js';
|
|
13
5
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
@@ -23,25 +15,7 @@ function formatTooltipTimestamp(value) {
|
|
|
23
15
|
minute: '2-digit',
|
|
24
16
|
}).format(new Date(value));
|
|
25
17
|
}
|
|
26
|
-
function C4JobDashboardTimeChart({ timeSeries, isLoading,
|
|
27
|
-
const designSystem = useC4DesignSystem();
|
|
28
|
-
const chartData = timeSeries.flatMap((item) => [
|
|
29
|
-
{
|
|
30
|
-
group: translations.charts.legend.created,
|
|
31
|
-
key: new Date(item.time).toISOString(),
|
|
32
|
-
value: item.created.count,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
group: translations.charts.legend.completed,
|
|
36
|
-
key: new Date(item.time).toISOString(),
|
|
37
|
-
value: item.completed.count,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
group: translations.charts.legend.failed,
|
|
41
|
-
key: new Date(item.time).toISOString(),
|
|
42
|
-
value: item.failed.count,
|
|
43
|
-
},
|
|
44
|
-
]);
|
|
18
|
+
function C4JobDashboardTimeChart({ timeSeries, isLoading, translations, error, }) {
|
|
45
19
|
// Calculate the maximum stacked value for proper y-axis domain
|
|
46
20
|
const maxStackedValue = Math.max(...timeSeries.map((item) => item.created.count + item.completed.count + item.failed.count));
|
|
47
21
|
// Determine if the range spans multiple calendar days
|
|
@@ -49,13 +23,13 @@ function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translatio
|
|
|
49
23
|
const lastTimeDataPoint = Math.max(...timeSeries.map((t) => new Date(t.time).getTime()));
|
|
50
24
|
const coversMultipleDays = new Date(firstTimeDataPoint).toDateString() !==
|
|
51
25
|
new Date(lastTimeDataPoint).toDateString();
|
|
52
|
-
const
|
|
26
|
+
const rows = timeSeries.map((item) => ({
|
|
53
27
|
time: new Date(item.time).toISOString(),
|
|
54
28
|
[translations.charts.legend.created]: item.created.count,
|
|
55
29
|
[translations.charts.legend.completed]: item.completed.count,
|
|
56
30
|
[translations.charts.legend.failed]: item.failed.count,
|
|
57
31
|
}));
|
|
58
|
-
const
|
|
32
|
+
const formatTickLabel = (tick) => {
|
|
59
33
|
const date = new Date(tick);
|
|
60
34
|
return coversMultipleDays
|
|
61
35
|
? Intl.DateTimeFormat('en-US', { month: 'short', day: '2-digit' }).format(date)
|
|
@@ -69,65 +43,12 @@ function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translatio
|
|
|
69
43
|
// otherwise every k-th row. Recharts does not thin an explicit list.
|
|
70
44
|
const MAX_TICKS = 8;
|
|
71
45
|
const everyKth = (rows) => rows.filter((_, i) => i % Math.ceil(rows.length / MAX_TICKS) === 0);
|
|
72
|
-
const
|
|
73
|
-
?
|
|
46
|
+
const ticks = everyKth(coversMultipleDays
|
|
47
|
+
? rows.filter((row, i) => i === 0 ||
|
|
74
48
|
new Date(row.time).toDateString() !==
|
|
75
|
-
new Date(
|
|
76
|
-
:
|
|
77
|
-
|
|
78
|
-
[translations.charts.legend.completed]: colorScale.Completed,
|
|
79
|
-
[translations.charts.legend.failed]: colorScale.Failed,
|
|
80
|
-
[translations.charts.legend.created]: colorScale.Created,
|
|
81
|
-
};
|
|
82
|
-
const areaOptions = {
|
|
83
|
-
resizable: true,
|
|
84
|
-
toolbar: {
|
|
85
|
-
enabled: false,
|
|
86
|
-
},
|
|
87
|
-
tooltip: {
|
|
88
|
-
alwaysShowRulerTooltip: true,
|
|
89
|
-
},
|
|
90
|
-
locale: {
|
|
91
|
-
date: (value) => formatTooltipTimestamp(value),
|
|
92
|
-
time: (value) => formatTooltipTimestamp(value),
|
|
93
|
-
},
|
|
94
|
-
axes: {
|
|
95
|
-
bottom: {
|
|
96
|
-
title: translations.charts.axes.time,
|
|
97
|
-
mapsTo: 'key',
|
|
98
|
-
scaleType: ScaleTypes.TIME,
|
|
99
|
-
ticks: {
|
|
100
|
-
rotation: TickRotations.NEVER,
|
|
101
|
-
formatter: (tick, i) => {
|
|
102
|
-
// Only show every 2nd label to avoid overlap
|
|
103
|
-
if (i % 2 !== 0)
|
|
104
|
-
return '';
|
|
105
|
-
const d = tick instanceof Date ? tick : new Date(tick);
|
|
106
|
-
return coversMultipleDays
|
|
107
|
-
? Intl.DateTimeFormat('en-US', {
|
|
108
|
-
month: 'short',
|
|
109
|
-
day: '2-digit',
|
|
110
|
-
}).format(d)
|
|
111
|
-
: Intl.DateTimeFormat('en-US', {
|
|
112
|
-
hour12: false,
|
|
113
|
-
hour: '2-digit',
|
|
114
|
-
minute: '2-digit',
|
|
115
|
-
}).format(d);
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
left: {
|
|
120
|
-
title: translations.charts.axes.numberOfJobs,
|
|
121
|
-
mapsTo: 'value',
|
|
122
|
-
scaleType: ScaleTypes.LINEAR,
|
|
123
|
-
domain: [0, maxStackedValue],
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
color: {
|
|
127
|
-
scale: formattedColorScale,
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4JobDashboardChartHeading, { title: translations.charts.jobWorkload.title, tooltipLabel: translations.charts.jobWorkload.tooltip }), _jsxs("strong", { children: [translations.charts.jobWorkload.subtitle, " "] }), (!timeSeries || timeSeries.length === 0 || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: timeSeries.length, showIcons: false, translations: translations.errorHandler, error: error })) : designSystem === 'ds' ? (_jsx("div", { style: { height: CHART_HEIGHT }, children: _jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(AreaChart, { data: dsRows, margin: { top: 8, right: 16, left: 8, bottom: 24 }, children: [_jsx(CartesianGrid, { stroke: DS_CHART_GRID_COLOR, vertical: false }), _jsx(XAxis, { dataKey: 'time', ticks: dsTicks, tickFormatter: formatDsLabel, stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, label: {
|
|
49
|
+
new Date(rows[i - 1].time).toDateString())
|
|
50
|
+
: rows).map((row) => row.time);
|
|
51
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4JobDashboardChartHeading, { title: translations.charts.jobWorkload.title, tooltipLabel: translations.charts.jobWorkload.tooltip }), _jsxs("strong", { children: [translations.charts.jobWorkload.subtitle, " "] }), (!timeSeries || timeSeries.length === 0 || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: timeSeries.length, showIcons: false, translations: translations.errorHandler, error: error })) : (_jsx("div", { style: { height: CHART_HEIGHT }, children: _jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(AreaChart, { data: rows, margin: { top: 8, right: 16, left: 8, bottom: 24 }, children: [_jsx(CartesianGrid, { stroke: DS_CHART_GRID_COLOR, vertical: false }), _jsx(XAxis, { dataKey: 'time', ticks: ticks, tickFormatter: formatTickLabel, stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, label: {
|
|
131
52
|
value: translations.charts.axes.time,
|
|
132
53
|
position: 'insideBottom',
|
|
133
54
|
offset: -4,
|
|
@@ -139,6 +60,6 @@ function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translatio
|
|
|
139
60
|
position: 'insideLeft',
|
|
140
61
|
fill: DS_CHART_AXIS_COLOR,
|
|
141
62
|
fontSize: 12,
|
|
142
|
-
} }), _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS, labelFormatter: (label) => formatTooltipTimestamp(String(label)) }), _jsx(Legend, { verticalAlign: 'top', wrapperStyle: { color: DS_CHART_AXIS_COLOR, fontSize: 12 } }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.created, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.created, fill: JOB_STATUS_DS_COLORS.created, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.completed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.completed, fill: JOB_STATUS_DS_COLORS.completed, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.failed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.failed, fill: JOB_STATUS_DS_COLORS.failed, fillOpacity: 0.6 })] }) }) }))
|
|
63
|
+
} }), _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS, labelFormatter: (label) => formatTooltipTimestamp(String(label)) }), _jsx(Legend, { verticalAlign: 'top', wrapperStyle: { color: DS_CHART_AXIS_COLOR, fontSize: 12 } }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.created, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.created, fill: JOB_STATUS_DS_COLORS.created, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.completed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.completed, fill: JOB_STATUS_DS_COLORS.completed, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.failed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.failed, fill: JOB_STATUS_DS_COLORS.failed, fillOpacity: 0.6 })] }) }) }))] }));
|
|
143
64
|
}
|
|
144
65
|
export default C4JobDashboardTimeChart;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
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 { Layer } from '@carbon/react';
|
|
8
2
|
import styled from 'styled-components';
|
|
9
3
|
import { JobsCompletedIcon, JobsCreatedIcon, JobsFailedIcon, } from '../../icons/c4-icons.js';
|
|
10
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
4
|
import { Button, Loading, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
12
5
|
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
13
6
|
import { DsSection } from '../c4-cluster-overview/ds-section.js';
|
|
@@ -15,7 +8,7 @@ import { C4JobDashboardErrorHandler } from '../c4-job-dashboard-shared/c4-job-da
|
|
|
15
8
|
import C4TimestampInformation from '../c4-job-dashboard-shared/c4-timestamp-information.js';
|
|
16
9
|
const containerHeight = '30vh';
|
|
17
10
|
const TileDescription = styled.p `
|
|
18
|
-
color: var(--
|
|
11
|
+
color: var(--neutral-foreground-subtle);
|
|
19
12
|
`;
|
|
20
13
|
const TileHeader = styled.div `
|
|
21
14
|
display: flex;
|
|
@@ -42,21 +35,16 @@ const JobTilesGrid = styled.div `
|
|
|
42
35
|
grid-template-columns: repeat(3, 1fr);
|
|
43
36
|
}
|
|
44
37
|
`;
|
|
45
|
-
const JobTile = ({ title, description, icon, tooltip, }) => (_jsx(Tooltip, { align: 'top', label: tooltip, children: _jsx("div", { children:
|
|
38
|
+
const JobTile = ({ title, description, icon, tooltip, }) => (_jsx(Tooltip, { align: 'top', label: tooltip, children: _jsx("div", { children: _jsxs(Tile, { children: [_jsxs(TileHeader, { children: [_jsx("h6", { children: title }), icon] }), _jsx(TileDescription, { children: description })] }) }) }));
|
|
46
39
|
function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, variant = 'tile', }) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// the rest sit in one card, so the empty state drops its own card.
|
|
51
|
-
const isDsPlain = isDs && variant === 'plain';
|
|
52
|
-
// `secondary` is the DS secondary button. Carbon keeps its primary button.
|
|
53
|
-
const viewAllKind = isDs ? 'secondary' : undefined;
|
|
54
|
-
// The 30vh minimum height reserves room in the carbon tile. In the ds card
|
|
55
|
-
// it only leaves empty space under the content.
|
|
56
|
-
const dsPlainContainerStyle = isDsPlain ? { minHeight: 0 } : undefined;
|
|
40
|
+
// Embedded: only the heading stays on top. The description and the rest sit
|
|
41
|
+
// in one card, so the empty state drops its own card.
|
|
42
|
+
const isPlain = variant === 'plain';
|
|
57
43
|
// The loading state reserves about the height of the empty state, so the
|
|
58
44
|
// card does not collapse from 30vh when the data arrives.
|
|
59
|
-
const
|
|
45
|
+
const plainLoadingStyle = isPlain ? { minHeight: '10rem' } : undefined;
|
|
46
|
+
// The 30vh minimum height only leaves empty space in the card.
|
|
47
|
+
const plainContainerStyle = isPlain ? { minHeight: 0 } : undefined;
|
|
60
48
|
const hasError = !!error;
|
|
61
49
|
const shouldShowEmpty = !hasError &&
|
|
62
50
|
(!data ||
|
|
@@ -64,14 +52,12 @@ function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translation
|
|
|
64
52
|
data.failed.count === 0 &&
|
|
65
53
|
data.completed.count === 0));
|
|
66
54
|
const getTileDescription = (count) => `${count ?? 0} ${count === 1 ? translations.jobTileSingular.toLowerCase() : translations.jobTilePlural.toLowerCase()}`;
|
|
67
|
-
const body = (_jsxs(_Fragment, { children: [_jsx("p", { className:
|
|
68
|
-
if (
|
|
55
|
+
const body = (_jsxs(_Fragment, { children: [_jsx("p", { className: isPlain ? 'm-0' : undefined, children: translations.description }), isLoading ? (_jsx(LoadingContainer, { style: plainLoadingStyle, children: _jsx(Loading, { withOverlay: false }) })) : hasError || shouldShowEmpty ? (_jsx(Container, { style: plainContainerStyle, children: _jsxs(Stack, { gap: 4, children: [_jsx(C4JobDashboardErrorHandler, { itemsLength: shouldShowEmpty ? 0 : 1, error: hasError ? error : null, showIcons: true, translations: translations.errorHandler, unboxed: isPlain }), shouldShowEmpty && (_jsx(Button, { kind: 'secondary', onClick: onClick, children: translations.viewAllJobTypes }))] }) })) : (_jsx(Container, { style: plainContainerStyle, children: _jsxs(Stack, { gap: 4, children: [_jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: data?.lastUpdatedAt ?? '' }), _jsx(JobTilesContainer, { children: _jsxs(JobTilesGrid, { children: [_jsx(JobTile, { title: translations.jobTileCompleted, description: getTileDescription(data?.completed.count), icon: _jsx(JobsCompletedIcon, {}), tooltip: translations.jobTileCompletedTooltip }), _jsx(JobTile, { title: translations.jobTileFailed, description: getTileDescription(data?.failed.count), icon: _jsx(JobsFailedIcon, {}), tooltip: translations.jobTileFailedTooltip }), _jsx(JobTile, { title: translations.jobTileCreated, description: getTileDescription(data?.created.count), icon: _jsx(JobsCreatedIcon, {}), tooltip: translations.jobTileCreatedTooltip })] }) }), _jsx(Button, { kind: 'secondary', onClick: onClick, children: translations.viewAllJobTypes })] }) }))] }));
|
|
56
|
+
if (isPlain) {
|
|
69
57
|
return (_jsx(DsSection, { title: translations.title, card: true, children: body }));
|
|
70
58
|
}
|
|
71
59
|
const content = (_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: translations.title }), body] }));
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
// in 'plain'. (ds 'plain' returned above, with one card around the whole body.)
|
|
75
|
-
return variant === 'plain' ? content : _jsx(Tile, { children: content });
|
|
60
|
+
// The empty/error state and the job-count tiles keep their own tiles.
|
|
61
|
+
return _jsx(Tile, { children: content });
|
|
76
62
|
}
|
|
77
63
|
export default C4JobDashboardEntryPoint;
|
package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts
CHANGED
|
@@ -23,10 +23,9 @@ export interface C4JobDashboardEntryPointProps {
|
|
|
23
23
|
isLoading?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* `'tile'` (default) renders this section inside its own bordered card — Console's own look.
|
|
26
|
-
* `'plain'` is for a host that renders this section inline with its own sections.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* content sit in one DS card, so the empty/error state renders without its own card.
|
|
26
|
+
* `'plain'` is for a host that renders this section inline with its own sections. Only the
|
|
27
|
+
* heading is outside: the description and the content sit in one DS card, so the empty/error
|
|
28
|
+
* state renders without its own card.
|
|
30
29
|
*/
|
|
31
30
|
variant?: 'tile' | 'plain';
|
|
32
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ExternalLink } from 'lucide-react';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
|
|
5
5
|
import { Stack } from '../../ui/index.js';
|
|
@@ -51,7 +51,7 @@ export const C4JobDashboardOverviewPage = ({ error, items, isIncomplete, config,
|
|
|
51
51
|
};
|
|
52
52
|
return (_jsx(C4JobDashboardErrorHandler, { itemsLength: 0, showIcons: true, translations: translations.errorHandler, error: error }));
|
|
53
53
|
}
|
|
54
|
-
return (_jsx(C4PageLayout, { padding: padding, children: _jsxs(Stack, { gap: 3, children: [_jsx(C4Breadcrumb, { loading: false, elements: breadcrumb.elements, title: translations.title }), _jsxs("p", { children: [translations.description, ' ', _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.learnMoreLabel, icon: _jsx(
|
|
54
|
+
return (_jsx(C4PageLayout, { padding: padding, children: _jsxs(Stack, { gap: 3, children: [_jsx(C4Breadcrumb, { loading: false, elements: breadcrumb.elements, title: translations.title }), _jsxs("p", { children: [translations.description, ' ', _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.learnMoreLabel, icon: _jsx(ExternalLink, { size: 16 }) })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), shouldShowErrorHandler ? (_jsx(C4JobDashboardErrorHandler, { error: error, itemsLength: items.length, showIcons: true, translations: translations.errorHandler })) : (_jsxs(_Fragment, { children: [isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, toolbar: toolbar, headers: [
|
|
55
55
|
{
|
|
56
56
|
key: 'jobType',
|
|
57
57
|
label: translations.tableHeaders.jobType,
|
package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts
CHANGED
|
@@ -50,7 +50,6 @@ export interface C4JobDashboardOverviewPageProps {
|
|
|
50
50
|
* `C4JobWorkerOverviewPage`'s `scope: 'environment'`), where the host already
|
|
51
51
|
* provides its own spacing and this padding would double up.
|
|
52
52
|
*
|
|
53
|
-
* ds-mode only.
|
|
54
53
|
*/
|
|
55
54
|
padding?: 'default' | 'none';
|
|
56
55
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ProgressBar } from '../../ui/index.js';
|
|
3
3
|
export const C4BackgroundFetchingIndicator = ({ itemsLength, isLoading, loadingMoreDataText }) => {
|
|
4
|
-
return (_jsx(_Fragment, { children: itemsLength > 0 && isLoading && (_jsxs(_Fragment, { children: [_jsx(ProgressBar, { hideLabel: true, label: 'background fetching data', size: 'small', type: 'inline' }), _jsx("p", { style: { color: 'var(--
|
|
4
|
+
return (_jsx(_Fragment, { children: itemsLength > 0 && isLoading && (_jsxs(_Fragment, { children: [_jsx(ProgressBar, { hideLabel: true, label: 'background fetching data', size: 'small', type: 'inline' }), _jsx("p", { style: { color: 'var(--neutral-foreground-subtle)' }, children: loadingMoreDataText })] })) }));
|
|
5
5
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* keeps using the caller-supplied `colorScale` hex values unchanged.
|
|
2
|
+
* Job status colors, shared by the pie and area charts on the job dashboard
|
|
3
|
+
* details page so both use the same semantic mapping.
|
|
5
4
|
*/
|
|
6
5
|
export declare const JOB_STATUS_DS_COLORS: {
|
|
7
6
|
readonly created: "var(--info-action-default)";
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DS_STATUS_COLORS } from '../shared-charts/recharts-tokens.js';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* keeps using the caller-supplied `colorScale` hex values unchanged.
|
|
8
|
+
* Job status colors, shared by the pie and area charts on the job dashboard
|
|
9
|
+
* details page so both use the same semantic mapping.
|
|
11
10
|
*/
|
|
12
11
|
export const JOB_STATUS_DS_COLORS = {
|
|
13
12
|
created: DS_STATUS_COLORS.info,
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { ExternalLink } from 'lucide-react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
|
|
10
10
|
import { AccessRestrictedIcon, EmptyJobsIcon, ErrorIcon, } from '../../icons/c4-icons.js';
|
|
@@ -20,7 +20,7 @@ const Row = styled.div `
|
|
|
20
20
|
const Description = styled.p `
|
|
21
21
|
margin: 0;
|
|
22
22
|
font-size: 0.875rem;
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--neutral-foreground-subtle);
|
|
24
24
|
padding: 0.5rem 0;
|
|
25
25
|
`;
|
|
26
26
|
export const C4JobDashboardErrorHandler = ({ error, showIcons, itemsLength, translations, unboxed = false, }) => {
|
|
@@ -48,10 +48,10 @@ export const C4JobDashboardErrorHandler = ({ error, showIcons, itemsLength, tran
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
return (_jsx("div", { style: { width: '100%', margin: unboxed ? 0 : '1rem 0' }, children: box(_jsxs(Row, { children: [showIcons &&
|
|
51
|
-
(isAccessRestricted ? (_jsx(AccessRestrictedIcon, { size: 70 })) : (_jsx(ErrorIcon, { size: 80 }))), _jsxs("div", { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: title }), _jsx(Description, { children: description }), isAccessRestricted && (_jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.roles, '_blank', 'noopener,noreferrer'), label: translations.forbidden.learnMoreLabel, icon: _jsx(
|
|
51
|
+
(isAccessRestricted ? (_jsx(AccessRestrictedIcon, { size: 70 })) : (_jsx(ErrorIcon, { size: 80 }))), _jsxs("div", { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: title }), _jsx(Description, { children: description }), isAccessRestricted && (_jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.roles, '_blank', 'noopener,noreferrer'), label: translations.forbidden.learnMoreLabel, icon: _jsx(ExternalLink, { size: 16 }) }))] })] })) }));
|
|
52
52
|
}
|
|
53
53
|
if (itemsLength === 0) {
|
|
54
|
-
return box(_jsxs(Row, { children: [showIcons && _jsx(EmptyJobsIcon, { size: 84 }), _jsxs("div", { children: [_jsx(EmptyTitle, { style: SECTION_HEADING_STYLE, children: translations.empty.title }), _jsx(Description, { children: translations.empty.description }), _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.empty.learnMoreLabel, icon: _jsx(
|
|
54
|
+
return box(_jsxs(Row, { children: [showIcons && _jsx(EmptyJobsIcon, { size: 84 }), _jsxs("div", { children: [_jsx(EmptyTitle, { style: SECTION_HEADING_STYLE, children: translations.empty.title }), _jsx(Description, { children: translations.empty.description }), _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.empty.learnMoreLabel, icon: _jsx(ExternalLink, { size: 16 }) })] })] }));
|
|
55
55
|
}
|
|
56
56
|
return _jsx(_Fragment, {});
|
|
57
57
|
};
|
package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { Info } from 'lucide-react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { Tooltip } from '../../ui/index.js';
|
|
10
10
|
const HeadingWithIconWrapper = styled.div `
|
|
@@ -12,8 +12,8 @@ const HeadingWithIconWrapper = styled.div `
|
|
|
12
12
|
gap: 0.5rem;
|
|
13
13
|
`;
|
|
14
14
|
const TableHeading = styled.p `
|
|
15
|
-
font-weight:
|
|
15
|
+
font-weight: 600
|
|
16
16
|
`;
|
|
17
17
|
export const headerWithTooltip = (label, tooltipText, isLoading) => isLoading
|
|
18
18
|
? label
|
|
19
|
-
: (_jsxs(HeadingWithIconWrapper, { children: [_jsx(TableHeading, { children: label }), _jsx(Tooltip, { align: 'right-start', label: tooltipText, children: _jsx(
|
|
19
|
+
: (_jsxs(HeadingWithIconWrapper, { children: [_jsx(TableHeading, { children: label }), _jsx(Tooltip, { align: 'right-start', label: tooltipText, children: _jsx(Info, { size: 16, style: { margin: 1 }, role: 'img', "aria-label": tooltipText }) })] }));
|
|
@@ -4,11 +4,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { Info } from 'lucide-react';
|
|
8
8
|
export const C4TimestampInformation = ({ description, lastUpdatedAt, }) => (_jsxs("p", { style: {
|
|
9
|
-
color: 'var(--
|
|
9
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
10
10
|
display: 'flex',
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
gap: '6px',
|
|
13
|
-
}, children: [_jsx(
|
|
13
|
+
}, children: [_jsx(Info, { size: 16, "aria-hidden": 'true' }), _jsxs("span", { children: [description, ": ", lastUpdatedAt] })] }));
|
|
14
14
|
export default C4TimestampInformation;
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { CircleX, TriangleAlert } from 'lucide-react';
|
|
8
8
|
import { Link, ProgressBar, SkeletonPlaceholder, Stack, Tile } from '../../ui/index.js';
|
|
9
9
|
export const C4LLMUsageMeter = ({ usage, limit, title, description, isLoading = false, hasError = false, urls, text = {}, }) => {
|
|
10
10
|
const { usageLabel = 'Used', limitLabel = 'Limit', errorMessage = 'Failed to load usage data', cardTitle = 'Easy LLM (Camunda provided.)', learnMoreLabel = 'Learn more about Camunda provided LLM tokens', tokensRemainingLabel = 'tokens remaining', approachingLimitMessage, overLimitPrefix = 'You have reached your token limit. Please', overLimitContactLabel = 'contact our Camunda team to request more tokens', overLimitSuffix = 'and talk through your use cases.', } = text;
|
|
@@ -17,20 +17,20 @@ export const C4LLMUsageMeter = ({ usage, limit, title, description, isLoading =
|
|
|
17
17
|
display: 'flex',
|
|
18
18
|
alignItems: 'center',
|
|
19
19
|
gap: '8px',
|
|
20
|
-
color: 'var(--
|
|
21
|
-
}, children: [_jsx(
|
|
20
|
+
color: 'var(--danger-foreground-subtle)',
|
|
21
|
+
}, children: [_jsx(CircleX, { size: 20 }), _jsx("span", { children: errorMessage })] }) }));
|
|
22
22
|
}
|
|
23
23
|
const percentage = limit > 0 ? Math.min((usage / limit) * 100, 100) : 0;
|
|
24
24
|
const isNearLimit = percentage >= 80;
|
|
25
25
|
const isOverLimit = percentage >= 100;
|
|
26
26
|
const remaining = Math.max(limit - usage, 0);
|
|
27
27
|
return (_jsxs(Stack, { gap: 4, children: [_jsxs("div", { children: [_jsx("h4", { style: {
|
|
28
|
-
fontSize: '
|
|
29
|
-
fontWeight: '
|
|
28
|
+
fontSize: '0.875rem',
|
|
29
|
+
fontWeight: '600',
|
|
30
30
|
marginBottom: '4px',
|
|
31
31
|
}, children: title }), description && (_jsx("p", { style: {
|
|
32
|
-
fontSize: '
|
|
33
|
-
color: 'var(--
|
|
32
|
+
fontSize: '0.875rem',
|
|
33
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
34
34
|
}, children: description }))] }), _jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs("div", { style: {
|
|
35
35
|
display: 'flex',
|
|
36
36
|
justifyContent: 'space-between',
|
|
@@ -42,40 +42,40 @@ export const C4LLMUsageMeter = ({ usage, limit, title, description, isLoading =
|
|
|
42
42
|
gap: '8px',
|
|
43
43
|
alignItems: 'baseline',
|
|
44
44
|
}, children: [_jsx("span", { style: {
|
|
45
|
-
fontSize: '
|
|
46
|
-
fontWeight: '
|
|
45
|
+
fontSize: '0.75rem',
|
|
46
|
+
fontWeight: '400',
|
|
47
47
|
textTransform: 'uppercase',
|
|
48
48
|
letterSpacing: '0.32px',
|
|
49
|
-
color: 'var(--
|
|
50
|
-
}, children: cardTitle }), urls.learnMore && (_jsx(Link, { href: urls.learnMore, target: '_blank', rel: 'noopener noreferrer', style: { fontSize: '
|
|
49
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
50
|
+
}, children: cardTitle }), urls.learnMore && (_jsx(Link, { href: urls.learnMore, target: '_blank', rel: 'noopener noreferrer', style: { fontSize: '0.75rem' }, children: learnMoreLabel }))] }), _jsxs("div", { style: {
|
|
51
51
|
textAlign: 'right',
|
|
52
52
|
flexShrink: 0,
|
|
53
|
-
fontSize: '
|
|
54
|
-
color: 'var(--
|
|
53
|
+
fontSize: '0.875rem',
|
|
54
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
55
55
|
lineHeight: 1.4,
|
|
56
56
|
}, children: [_jsxs("div", { children: [usageLabel, ": ", formatCurrency(usage)] }), _jsxs("div", { children: [limitLabel, ": ", formatCurrency(limit)] })] })] }), _jsxs("p", { style: {
|
|
57
|
-
fontSize: '
|
|
58
|
-
fontWeight: '
|
|
59
|
-
color: 'var(--
|
|
57
|
+
fontSize: '1.25rem',
|
|
58
|
+
fontWeight: '400',
|
|
59
|
+
color: 'var(--neutral-foreground-strong)',
|
|
60
60
|
}, children: [formatCurrency(remaining), " ", tokensRemainingLabel] }), _jsx(ProgressBar, { label: '', hideLabel: true, value: percentage, max: 100, status: isOverLimit ? 'error' : 'active' }), isNearLimit && (_jsxs("div", { style: {
|
|
61
61
|
display: 'flex',
|
|
62
62
|
alignItems: 'flex-start',
|
|
63
63
|
gap: '12px',
|
|
64
64
|
padding: '12px 16px',
|
|
65
65
|
backgroundColor: isOverLimit
|
|
66
|
-
? 'var(--
|
|
67
|
-
: 'var(--
|
|
66
|
+
? 'var(--danger-background-subtle)'
|
|
67
|
+
: 'var(--warning-background-subtle)',
|
|
68
68
|
borderLeft: `3px solid ${isOverLimit
|
|
69
|
-
? 'var(--
|
|
70
|
-
: 'var(--
|
|
71
|
-
}, children: [isOverLimit ? (_jsx(
|
|
72
|
-
color: 'var(--
|
|
69
|
+
? 'var(--danger-action-default)'
|
|
70
|
+
: 'var(--warning-action-default)'}`,
|
|
71
|
+
}, children: [isOverLimit ? (_jsx(CircleX, { size: 16, style: {
|
|
72
|
+
color: 'var(--danger-action-default)',
|
|
73
73
|
flexShrink: 0,
|
|
74
74
|
marginTop: '2px',
|
|
75
|
-
} })) : (_jsx(
|
|
76
|
-
color: 'var(--
|
|
75
|
+
} })) : (_jsx(TriangleAlert, { size: 16, style: {
|
|
76
|
+
color: 'var(--warning-action-default)',
|
|
77
77
|
flexShrink: 0,
|
|
78
78
|
marginTop: '2px',
|
|
79
|
-
} })), _jsx("span", { style: { fontSize: '
|
|
79
|
+
} })), _jsx("span", { style: { fontSize: '0.875rem' }, children: isOverLimit ? (_jsxs(_Fragment, { children: [overLimitPrefix, ' ', urls.contact ? (_jsx(Link, { href: urls.contact, target: '_blank', rel: 'noopener noreferrer', inline: true, children: overLimitContactLabel })) : (overLimitContactLabel), ' ', overLimitSuffix] })) : ((approachingLimitMessage ??
|
|
80
80
|
`You are approaching your limit (${percentage.toFixed(0)}% of limit).`)) })] }))] }) })] }));
|
|
81
81
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
2
|
import type { C4ManagementActivityProps } from './c4-management-activity.types.js';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A single, searchable, paginated data table with Name / Timestamp / Audit
|
|
5
|
+
* columns. Any column can sort it. The default order is newest first.
|
|
6
|
+
*/
|
|
7
|
+
export declare const C4ManagementActivity: ({ activities, loading, downloading, onExportJSON, onExportCSV, exportLabel, exportingLabel, exportJSONLabel, exportCSVLabel, searchLabel, nameColumnLabel, timestampColumnLabel, auditColumnLabel, }: C4ManagementActivityProps) => JSX.Element;
|