@camunda/ccma-saas-frontend 0.0.45 → 0.1.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 +20 -3
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
- package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
- package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +2 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +19 -5
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +4 -0
- package/lib/esm/components/c4-cluster-overview/applications.js +2 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +12 -10
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +6 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +17 -0
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +75 -0
- package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +4 -2
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +44 -15
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +4 -2
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +2 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
- package/lib/esm/components/c4-data-table/c4-data-table.js +194 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
- package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
- package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
- package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +7 -9
- package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
- package/lib/esm/components/c4-management-overview/c4-management-overview.js +8 -12
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
- package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
- package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +2 -1
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
- package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
- package/lib/esm/components/c4-search/c4-search-results.js +2 -1
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +41 -0
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
- package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
- package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
- package/lib/esm/components/c4-stat/c4-stat.js +1 -6
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
- package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +2 -1
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
- package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +1 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
- package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -1
- package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
- package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
- package/lib/esm/i18n/c4-console-i18n.js +12 -0
- package/lib/esm/i18n/en/modals/clusters.json +0 -8
- package/lib/esm/i18n/en/pages/clusterdetails.json +5 -1
- package/lib/esm/i18n/en/pages/clusters.json +5 -1
- package/lib/esm/i18n/en/pages/orgmanagement.json +3 -1
- package/lib/esm/index.d.ts +17 -0
- package/lib/esm/index.js +13 -0
- package/lib/esm/runtime/c4-console-authz.d.ts +1 -0
- package/lib/esm/runtime/c4-console-authz.js +2 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +3 -3
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
- package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +8 -0
- package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
- package/lib/esm/ui/c4-modal-dialog.js +35 -0
- package/lib/esm/ui/families.d.ts +42 -0
- package/lib/esm/ui/families.js +46 -0
- package/lib/esm/ui/index.d.ts +31 -0
- package/lib/esm/ui/index.js +94 -0
- package/lib/esm/ui/switchable.d.ts +14 -0
- package/lib/esm/ui/switchable.js +27 -0
- package/lib/esm/ui/tabs.d.ts +21 -0
- package/lib/esm/ui/tabs.js +27 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +18 -3
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +10 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +7 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +8 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +49 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +7 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +54 -21
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +96 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +58 -4
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +276 -40
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +220 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
- 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 +3 -2
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +54 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +10 -2
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +14 -2
- package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +57 -4
- package/lib/esm/widgets/management/c4-management-app.spec.js +141 -1
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
- package/lib/esm/widgets/management/c4-management-page.js +1 -6
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +2 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +10 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +47 -5
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
- package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
- package/lib/esm/widgets/use-extend-trial.js +36 -0
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
- package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -4
- package/package.json +21 -14
|
@@ -4,8 +4,9 @@ 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 { Column, Grid, Layer
|
|
7
|
+
import { Column, Grid, Layer } from '@carbon/react';
|
|
8
8
|
import { ArrowRight } from '@carbon/react/icons/index.esm.js';
|
|
9
|
+
import { Stack, Tile } from '../../ui/index.js';
|
|
9
10
|
import { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
10
11
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
11
12
|
export var UsageTile;
|
|
@@ -1,10 +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 { Stack } from '@carbon/react';
|
|
2
|
+
import { Stack } from '../../ui/index.js';
|
|
8
3
|
export const C4Stat = ({ value, label }) => {
|
|
9
4
|
const component = (_jsxs(Stack, { gap: 5, children: [_jsx("p", { style: { lineHeight: '20px', fontSize: '40px', fontWeight: 400 }, children: value }), label && _jsx("p", { children: label })] }));
|
|
10
5
|
return component;
|
|
@@ -4,8 +4,9 @@ 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 { InlineLoading } from '@carbon/react';
|
|
8
8
|
import { useState } from 'react';
|
|
9
|
+
import { Button } from '../../ui/index.js';
|
|
9
10
|
const WAITING_TIME_IN_SECONDS = 3;
|
|
10
11
|
export const C4StatefulButton = (options) => {
|
|
11
12
|
const [state, setState] = useState('none');
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StructuredListBody as CarbonBody, StructuredListCell as CarbonCell, StructuredListHead as CarbonHead, StructuredListRow as CarbonRow, StructuredListSkeleton as CarbonSkeleton, StructuredListWrapper as CarbonWrapper } from '@carbon/react';
|
|
2
|
+
import type { ComponentProps, JSX } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Design-system-switchable structured list.
|
|
5
|
+
*
|
|
6
|
+
* Carbon has no DS equivalent and the DS ships no StructuredList, so the ds
|
|
7
|
+
* variants render the DS `Table` primitives — giving the DS table look for what
|
|
8
|
+
* is mostly a key/value layout (`StructuredListCell head` = the label, rendered
|
|
9
|
+
* as a row-scoped `<th>`; the value cell as `<td>`). All sub-components read the
|
|
10
|
+
* same `designSystem` flag, so a list never mixes Carbon and DS parts.
|
|
11
|
+
*
|
|
12
|
+
* Each sub-component mirrors its Carbon counterpart's name/props so call sites
|
|
13
|
+
* only swap the import. Carbon-only props (isFlush, selection, ...) are accepted
|
|
14
|
+
* and ignored in ds mode; `isCondensed` maps to the DS table `sm` size.
|
|
15
|
+
*/
|
|
16
|
+
export declare function C4StructuredListWrapper(props: ComponentProps<typeof CarbonWrapper>): JSX.Element;
|
|
17
|
+
export declare function C4StructuredListHead(props: ComponentProps<typeof CarbonHead>): JSX.Element;
|
|
18
|
+
export declare function C4StructuredListBody(props: ComponentProps<typeof CarbonBody>): JSX.Element;
|
|
19
|
+
export declare function C4StructuredListRow(props: ComponentProps<typeof CarbonRow>): JSX.Element;
|
|
20
|
+
export declare function C4StructuredListCell(props: ComponentProps<typeof CarbonCell>): JSX.Element;
|
|
21
|
+
export declare function C4StructuredListSkeleton(props: ComponentProps<typeof CarbonSkeleton>): JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx } 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 { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@camunda/design-system';
|
|
8
|
+
import { StructuredListBody as CarbonBody, StructuredListCell as CarbonCell, StructuredListHead as CarbonHead, StructuredListRow as CarbonRow, StructuredListSkeleton as CarbonSkeleton, StructuredListWrapper as CarbonWrapper, } from '@carbon/react';
|
|
9
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
/**
|
|
11
|
+
* Design-system-switchable structured list.
|
|
12
|
+
*
|
|
13
|
+
* Carbon has no DS equivalent and the DS ships no StructuredList, so the ds
|
|
14
|
+
* variants render the DS `Table` primitives — giving the DS table look for what
|
|
15
|
+
* is mostly a key/value layout (`StructuredListCell head` = the label, rendered
|
|
16
|
+
* as a row-scoped `<th>`; the value cell as `<td>`). All sub-components read the
|
|
17
|
+
* same `designSystem` flag, so a list never mixes Carbon and DS parts.
|
|
18
|
+
*
|
|
19
|
+
* Each sub-component mirrors its Carbon counterpart's name/props so call sites
|
|
20
|
+
* only swap the import. Carbon-only props (isFlush, selection, ...) are accepted
|
|
21
|
+
* and ignored in ds mode; `isCondensed` maps to the DS table `sm` size.
|
|
22
|
+
*/
|
|
23
|
+
export function C4StructuredListWrapper(props) {
|
|
24
|
+
const designSystem = useC4DesignSystem();
|
|
25
|
+
if (designSystem !== 'ds') {
|
|
26
|
+
return _jsx(CarbonWrapper, { ...props });
|
|
27
|
+
}
|
|
28
|
+
return (_jsx(Table, { size: props.isCondensed ? 'sm' : 'md', "aria-label": props['aria-label'], children: props.children }));
|
|
29
|
+
}
|
|
30
|
+
export function C4StructuredListHead(props) {
|
|
31
|
+
const designSystem = useC4DesignSystem();
|
|
32
|
+
if (designSystem !== 'ds') {
|
|
33
|
+
return _jsx(CarbonHead, { ...props });
|
|
34
|
+
}
|
|
35
|
+
return _jsx(TableHeader, { children: props.children });
|
|
36
|
+
}
|
|
37
|
+
export function C4StructuredListBody(props) {
|
|
38
|
+
const designSystem = useC4DesignSystem();
|
|
39
|
+
if (designSystem !== 'ds') {
|
|
40
|
+
return _jsx(CarbonBody, { ...props });
|
|
41
|
+
}
|
|
42
|
+
return _jsx(TableBody, { children: props.children });
|
|
43
|
+
}
|
|
44
|
+
export function C4StructuredListRow(props) {
|
|
45
|
+
const designSystem = useC4DesignSystem();
|
|
46
|
+
if (designSystem !== 'ds') {
|
|
47
|
+
return _jsx(CarbonRow, { ...props });
|
|
48
|
+
}
|
|
49
|
+
return _jsx(TableRow, { children: props.children });
|
|
50
|
+
}
|
|
51
|
+
export function C4StructuredListCell(props) {
|
|
52
|
+
const designSystem = useC4DesignSystem();
|
|
53
|
+
if (designSystem !== 'ds') {
|
|
54
|
+
return _jsx(CarbonCell, { ...props });
|
|
55
|
+
}
|
|
56
|
+
// Vertically center cell content so single-line rows read centered in their
|
|
57
|
+
// row height (the deployed lists set fixed row heights, which left top-aligned
|
|
58
|
+
// text floating at the top). `middle` also centers the CodeSnippet cells that
|
|
59
|
+
// wrap their content in a `height: 0` Layer (a Carbon trick): the zero-height
|
|
60
|
+
// box is centered and the snippet overflows symmetrically, so it stays in view
|
|
61
|
+
// (only `bottom`/`baseline` would drop it out). Call sites that need
|
|
62
|
+
// top-alignment (e.g. the multi-line description editor) pass `verticalAlign`
|
|
63
|
+
// via `style`, which wins over this default.
|
|
64
|
+
const style = { verticalAlign: 'middle', ...props.style };
|
|
65
|
+
// A `head` cell is the row label (Carbon's bold left column) → row-scoped th.
|
|
66
|
+
return props.head ? (_jsx(TableHead, { scope: 'row', style: style, children: props.children })) : (_jsx(TableCell, { style: style, children: props.children }));
|
|
67
|
+
}
|
|
68
|
+
export function C4StructuredListSkeleton(props) {
|
|
69
|
+
const designSystem = useC4DesignSystem();
|
|
70
|
+
if (designSystem !== 'ds') {
|
|
71
|
+
return _jsx(CarbonSkeleton, { ...props });
|
|
72
|
+
}
|
|
73
|
+
const rowCount = props.rowCount ?? 5;
|
|
74
|
+
return (_jsx("div", { className: 'overflow-hidden rounded-xl border bg-neutral-background-subtle', children: Array.from({ length: rowCount }).map((_, index) => (_jsx("div", { className: 'border-b px-4 py-3 last:border-0', children: _jsx("div", { className: 'h-4 w-3/4 animate-pulse rounded bg-neutral-background-strong' }) }, index))) }));
|
|
75
|
+
}
|
|
@@ -4,10 +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 { Tab, TabList, TabPanel, TabPanels, Tabs, TabsSkeleton, } from '@carbon/react';
|
|
8
7
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
8
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
9
9
|
const TabPanelStyles = { paddingLeft: 0, paddingRight: 0 };
|
|
10
10
|
export const C4Tabs = ({ tabs, desiredTabId, onTabChange, loading = false, }) => {
|
|
11
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels, TabsSkeleton } = useTabsFamily();
|
|
11
12
|
const initializedTabs = useRef(new Set());
|
|
12
13
|
const visibleTabs = useMemo(() => tabs.filter((tab) => tab.visible === undefined || tab.visible), [tabs]);
|
|
13
14
|
useEffect(() => {
|
|
@@ -4,15 +4,19 @@ 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 { Column, Grid } from '@carbon/react';
|
|
8
8
|
import { Download } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useState } from 'react';
|
|
10
|
+
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
11
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
12
|
+
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
10
13
|
import { STYLES } from '../c4-billing-page/c4-billing-page.js';
|
|
11
14
|
import { ClusterStatusElement, } from '../c4-cluster-overview/applications.js';
|
|
12
15
|
import { ComponentMetrics } from './component-metrics.js';
|
|
13
16
|
import { TelemetryForComponent } from './telemetry-for-component.js';
|
|
14
17
|
export const ID_UNSET_COMPONENT = 'unset';
|
|
15
18
|
export const C4TelemetryPage = ({ intro, managementCluster, automationClusters, texts, theme, loading, }) => {
|
|
19
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
16
20
|
const [selected, setSelected] = useState(managementCluster.components.length > 0
|
|
17
21
|
? managementCluster.components[0].id
|
|
18
22
|
: ID_UNSET_COMPONENT);
|
|
@@ -83,7 +87,7 @@ const Intro = ({ intro }) => {
|
|
|
83
87
|
showNotification = true;
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
|
-
const component = (_jsxs(Stack, { gap: 3, children: [_jsx("p", { className: 'cds--type-heading-02', children: intro.title }), _jsxs("div", { style: { display: 'grid', gridTemplateColumns: '1fr auto' }, children: [_jsx("p", { children: intro.description }), _jsx(Button, { kind: 'ghost', size: 'md', renderIcon: Download, onClick: intro.download.onClick, children: intro.download.label })] }), _jsx("p", { className: 'cds--type-italic cds--type-label-01', style: { color: 'var(--cds-text-secondary)' }, children: intro.customer.map((entry) => (_jsxs("span", { style: { paddingRight: '0.75rem' }, children: [entry.label, ": ", entry.value] }))) }), showNotification && (_jsx(
|
|
90
|
+
const component = (_jsxs(Stack, { gap: 3, children: [_jsx("p", { className: 'cds--type-heading-02', children: intro.title }), _jsxs("div", { style: { display: 'grid', gridTemplateColumns: '1fr auto' }, children: [_jsx("p", { children: intro.description }), _jsx(Button, { kind: 'ghost', size: 'md', renderIcon: Download, onClick: intro.download.onClick, children: intro.download.label })] }), _jsx("p", { className: 'cds--type-italic cds--type-label-01', style: { color: 'var(--cds-text-secondary)' }, children: intro.customer.map((entry) => (_jsxs("span", { style: { paddingRight: '0.75rem' }, children: [entry.label, ": ", entry.value] }))) }), showNotification && (_jsx(C4ActionableNotification, { inline: true, title: intro.notification.title, subtitle: intro.notification.description, actionButtonLabel: intro.notification.action.label, onActionButtonClick: intro.notification.action.onClick, onCloseButtonClick: () => {
|
|
87
91
|
localStorage.setItem(LOCAL_STORAGE_SHOW_NOTIFICATION_KEY, 'false');
|
|
88
92
|
}, hideCloseButton: false, style: { maxWidth: '100%' }, lowContrast: true, kind: 'info', hasFocus: false }))] }));
|
|
89
93
|
return component;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, 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 { SkeletonText, Stack } from '@carbon/react';
|
|
2
|
+
import { SkeletonText, Stack } from '../../ui/index.js';
|
|
8
3
|
import { C4Divider } from '../c4-divider/c4-divider.js';
|
|
9
4
|
import { ID_UNSET_COMPONENT } from './c4-telemetry-page.js';
|
|
10
5
|
import { TelemetryMetricsEmptyStateImage } from './metrics-empty-state-image.js';
|
|
@@ -6,7 +6,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* You may not use this file except in compliance with the commercial license.
|
|
7
7
|
*/
|
|
8
8
|
import { MeterChart } from '@carbon/charts-react';
|
|
9
|
-
import { RadioTile
|
|
9
|
+
import { RadioTile } from '@carbon/react';
|
|
10
|
+
import { SkeletonText, Stack } from '../../ui/index.js';
|
|
10
11
|
import { ClusterStatusElement, } from '../c4-cluster-overview/applications.js';
|
|
11
12
|
export var TelemetryForComponent;
|
|
12
13
|
(function (TelemetryForComponent) {
|
|
@@ -4,8 +4,8 @@ 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 { Button, Stack, Tile } from '@carbon/react';
|
|
8
7
|
import { ArrowDown, ArrowRight, DocumentMultiple_01 } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
9
9
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
10
10
|
const STYLES = {
|
|
11
11
|
CONTENT_WIDTH: '1120px',
|
|
@@ -5,8 +5,8 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { useC3Profile } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Button } from '@carbon/react';
|
|
9
8
|
import { useCallback, useEffect, useState } from 'react';
|
|
9
|
+
import { Button } from '../../ui/index.js';
|
|
10
10
|
import '../../themes/barbie-light.css';
|
|
11
11
|
import '../../themes/barbie.css';
|
|
12
12
|
import '../../themes/cyberpunk-brutalism-light.css';
|
|
@@ -4,8 +4,8 @@ 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 { Button, SkeletonPlaceholder, Stack, Tile, Tooltip, } from '@carbon/react';
|
|
8
7
|
import { Information } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { Button, SkeletonPlaceholder, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
9
9
|
import { C4InfoTooltip } from '../c4-info-tooltip/c4-info-tooltip.js';
|
|
10
10
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
11
11
|
export const C4TileWithTitleAndAction = ({ title, tooltip, description, descriptionTooltip, children, action, loading, options, }) => {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToastNotification as CarbonToastNotification } from '@carbon/react';
|
|
2
|
+
import type { ComponentProps, JSX } from 'react';
|
|
3
|
+
type C4ToastNotificationProps = ComponentProps<typeof CarbonToastNotification>;
|
|
4
|
+
/**
|
|
5
|
+
* Design-system-switchable toast notification.
|
|
6
|
+
*
|
|
7
|
+
* Carbon mode renders Carbon's `ToastNotification` unchanged. ds mode renders
|
|
8
|
+
* the DS-native `Alert` (kind→variant, title, subtitle→description, close →
|
|
9
|
+
* dismissible). The host keeps its own positioning/visibility logic; this only
|
|
10
|
+
* swaps the rendered notification. A full toast stack (sonner) is a separate,
|
|
11
|
+
* later step.
|
|
12
|
+
*/
|
|
13
|
+
export declare function C4ToastNotification(props: C4ToastNotificationProps): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } 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 { Alert } from '@camunda/design-system';
|
|
8
|
+
import { ToastNotification as CarbonToastNotification } from '@carbon/react';
|
|
9
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
|
|
11
|
+
/**
|
|
12
|
+
* Design-system-switchable toast notification.
|
|
13
|
+
*
|
|
14
|
+
* Carbon mode renders Carbon's `ToastNotification` unchanged. ds mode renders
|
|
15
|
+
* the DS-native `Alert` (kind→variant, title, subtitle→description, close →
|
|
16
|
+
* dismissible). The host keeps its own positioning/visibility logic; this only
|
|
17
|
+
* swaps the rendered notification. A full toast stack (sonner) is a separate,
|
|
18
|
+
* later step.
|
|
19
|
+
*/
|
|
20
|
+
export function C4ToastNotification(props) {
|
|
21
|
+
const designSystem = useC4DesignSystem();
|
|
22
|
+
if (designSystem !== 'ds') {
|
|
23
|
+
return _jsx(CarbonToastNotification, { ...props });
|
|
24
|
+
}
|
|
25
|
+
const { kind, title, subtitle, hideCloseButton, onCloseButtonClick } = props;
|
|
26
|
+
return (_jsx(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick }));
|
|
27
|
+
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
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 { InlineNotification, Stack, Toggle } from '@carbon/react';
|
|
2
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
3
|
+
import { Stack, Toggle } from '../../ui/index.js';
|
|
8
4
|
import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
|
|
5
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
9
6
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
10
7
|
export const C4Toggle = ({ id, enabled, notices, onClick, permissions, title, supported, unsupportedNotification, label, }) => {
|
|
11
|
-
const notification = !supported && unsupportedNotification ? (_jsx(
|
|
8
|
+
const notification = !supported && unsupportedNotification ? (_jsx(C4InlineNotification, { kind: unsupportedNotification.kind, hideCloseButton: true, style: { maxWidth: '100%' }, title: unsupportedNotification.title, subtitle: unsupportedNotification.subtitle })) : null;
|
|
9
|
+
const designSystem = useC4DesignSystem();
|
|
12
10
|
const disabled = !permissions.mayToggle || !supported;
|
|
13
|
-
const toggle = (_jsx("div", { children: _jsx(Toggle, { id: `c4-toggle-${id}`, toggled: enabled, disabled: disabled, "aria-disabled": disabled, "aria-label": `Switch ${title}`, labelA: label?.disabled ?? 'Disabled', labelB: label?.enabled ?? 'Enabled', onClick: permissions.mayToggle && supported ? onClick : undefined }) }));
|
|
11
|
+
const toggle = (_jsx("div", { className: designSystem === 'ds' ? 'c4-toggle' : undefined, children: _jsx(Toggle, { id: `c4-toggle-${id}`, toggled: enabled, disabled: disabled, "aria-disabled": disabled, "aria-label": `Switch ${title}`, labelA: label?.disabled ?? 'Disabled', labelB: label?.enabled ?? 'Enabled', onClick: permissions.mayToggle && supported ? onClick : undefined }) }));
|
|
14
12
|
const component = (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h6", { children: title }), toggle, notification] }), notices.map((notice, index) => (_jsxs("div", { style: { maxWidth: '650px' }, children: [typeof notice.notice === 'string' ? (_jsx("p", { children: notice.notice })) : (_jsx("div", { children: notice.notice })), notice.action?.onClick && (_jsxs(_Fragment, { children: [' ', _jsx(C4LinkButton, { label: notice.action.label, inline: true, onClick: () => notice.action?.onClick?.() })] })), notice.action?.url && (_jsxs(_Fragment, { children: [' ', _jsx(C4ExternalLink, { label: notice.action.label, href: notice.action.url, inline: true, id: 'notice-action' })] }))] }, `notice-${index}`)))] }));
|
|
15
13
|
return component;
|
|
16
14
|
};
|
|
@@ -4,8 +4,8 @@ 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 { Button, Stack, Tile } from '@carbon/react';
|
|
8
7
|
import { ArrowRight } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
9
9
|
export const C4TutorialTile = ({ title, img, description, cta, }) => (_jsxs(Tile, { style: {
|
|
10
10
|
display: 'grid',
|
|
11
11
|
gridAutoFlow: 'row',
|
|
@@ -4,9 +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 { NumberInput } from '@carbon/react';
|
|
8
|
+
import { Stack, Toggle } from '../../ui/index.js';
|
|
9
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
8
10
|
export const C4UsageAlertUpdateModal = ({ description, form, notification, }) => {
|
|
9
|
-
const component = (_jsxs(Stack, { gap: 6, children: [_jsx(
|
|
11
|
+
const component = (_jsxs(Stack, { gap: 6, children: [_jsx(C4InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: notification.title, subtitle: notification.subTitle }), _jsx("p", { children: description }), _jsx(NumberInput, { id: 'usage-alert-threshold', label: form.threashold.label, helperText: form.threashold.helperText, value: form.threashold.currentValue, min: form.threashold.min, max: form.threashold.max, invalid: form.threashold.errors.invalid, invalidText: form.threashold.errors.invalidText, hideSteppers: true, onChange: (event) => {
|
|
10
12
|
form.threashold.onChange(event.target.value);
|
|
11
13
|
} }), _jsx(Toggle, { id: 'usage-alert-toggle', labelText: form.status.label, toggled: form.status.currentValue, labelB: form.status.currentValue
|
|
12
14
|
? form.status.valueLabel.on
|
|
@@ -4,11 +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 { C3DataTable } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { SkeletonPlaceholder, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, } from '@carbon/react';
|
|
9
7
|
import { ChartLineData, TableSplit } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { SkeletonPlaceholder, Stack } from '../../ui/index.js';
|
|
9
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
10
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
10
11
|
import { UsageHistoryCharts } from './elements/usage-history-charts.js';
|
|
11
12
|
export const C4UsageHistory = ({ data, loading, }) => {
|
|
13
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
12
14
|
let content = null;
|
|
13
15
|
let table = null;
|
|
14
16
|
if (data.component) {
|
|
@@ -69,7 +71,7 @@ const SimpleHistory = ({ data, headers, displayingDataText, }) => {
|
|
|
69
71
|
? `${rows[rows.length - 1].periodFrom} - ${rows[0].periodTo}`
|
|
70
72
|
: '-',
|
|
71
73
|
};
|
|
72
|
-
const component = (_jsxs(Stack, { gap: 3, children: [_jsxs("p", { style: { width: '100%', textAlign: 'right' }, children: [_jsx("span", { style: { color: 'var(--cds-text-helper)' }, children: displayingData.prefix }), ' ', displayingData.period] }), _jsx(
|
|
74
|
+
const component = (_jsxs(Stack, { gap: 3, children: [_jsxs("p", { style: { width: '100%', textAlign: 'right' }, children: [_jsx("span", { style: { color: 'var(--cds-text-helper)' }, children: displayingData.prefix }), ' ', displayingData.period] }), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, headers: tableHeaders, options: {
|
|
73
75
|
pageSize: 10,
|
|
74
76
|
pageSizes: [10, 20, 30, 40, 50],
|
|
75
77
|
tableSize: 'lg',
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { LineChart } from '@carbon/charts-react';
|
|
8
|
-
import { Stack } from '
|
|
8
|
+
import { Stack } from '../../../ui/index.js';
|
|
9
9
|
export const UsageHistoryCharts = ({ pi, di, tu, }) => {
|
|
10
10
|
const component = (_jsxs(Stack, { gap: 4, children: [_jsx(ValueMetricsLineChart, { ...pi }), di && _jsx(ValueMetricsLineChart, { ...di }), tu && _jsx(ValueMetricsLineChart, { ...tu })] }));
|
|
11
11
|
return component;
|
|
@@ -4,9 +4,12 @@ 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 { C3ClusterTag,
|
|
8
|
-
import {
|
|
7
|
+
import { C3ClusterTag, } from '@camunda/camunda-composite-components';
|
|
8
|
+
import { DatePicker, DatePickerInput } from '@carbon/react';
|
|
9
9
|
import { Download } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { Button, MultiSelect, Stack } from '../../ui/index.js';
|
|
11
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
12
|
+
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
10
13
|
export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, download, }) => {
|
|
11
14
|
const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [range.start, range.end], onChange: (newValues) => {
|
|
12
15
|
range.onChange({
|
|
@@ -15,14 +18,12 @@ export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, do
|
|
|
15
18
|
});
|
|
16
19
|
}, children: [_jsx(DatePickerInput, { id: 'usage-metrics-start', placeholder: texts.range.placeHolder, labelText: texts.range.from, size: 'md' }), _jsx(DatePickerInput, { id: 'usage-metrics-end', placeholder: texts.range.placeHolder, labelText: texts.range.to, size: 'md' })] }));
|
|
17
20
|
const tagsAvailable = tags.allTags.length > 0;
|
|
18
|
-
const compTagSelection = tagsAvailable ? (
|
|
19
|
-
// hack to align date selection with tag selection
|
|
20
|
-
_jsx("div", { style: { marginTop: '-2px' }, children: _jsx(MultiSelect, { titleText: texts.tags, label: texts.tags, useTitleInItem: true, selectedItems: tags.values, id: 'cluster-usage-metrics-tag-selection', items: tags.allTags, onChange: (event) => {
|
|
21
|
+
const compTagSelection = tagsAvailable ? (_jsx("div", { style: { marginTop: '-2px' }, children: _jsx(MultiSelect, { titleText: texts.tags, label: texts.tags, useTitleInItem: true, selectedItems: tags.values, id: 'cluster-usage-metrics-tag-selection', items: tags.allTags, onChange: (event) => {
|
|
21
22
|
tags.onChange(event.selectedItems);
|
|
22
23
|
} }) })) : null;
|
|
23
24
|
let compData = _jsx(_Fragment, {});
|
|
24
25
|
if (loading) {
|
|
25
|
-
compData = _jsx(
|
|
26
|
+
compData = _jsx(C4DataTableSkeleton, { rowCount: 4 });
|
|
26
27
|
}
|
|
27
28
|
else {
|
|
28
29
|
const headers = [
|
|
@@ -93,7 +94,7 @@ export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, do
|
|
|
93
94
|
},
|
|
94
95
|
},
|
|
95
96
|
];
|
|
96
|
-
compData = (_jsxs("div", { style: { position: 'relative' }, children: [_jsx(
|
|
97
|
+
compData = (_jsxs("div", { style: { position: 'relative' }, children: [_jsx(C4DataTable, { title: texts.data.title, headers: headers, toolbar: toolbar, data: transformedData, options: {
|
|
97
98
|
pageSize: 10,
|
|
98
99
|
pageSizes: [10, 20, 30, 40, 50],
|
|
99
100
|
}, queryPrefix: 'usage-metrics-per-cluster' }), _jsx("div", { style: { position: 'absolute', right: '0', top: 0 }, children: _jsx(Button, { kind: 'ghost', renderIcon: () => (_jsx("div", { style: { marginLeft: '4px' }, children: _jsx(Download, { style: { fill: 'currentcolor' } }) })), onClick: download.onClick, children: download.label }) })] }));
|
|
@@ -4,8 +4,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { Stack } from '@carbon/react';
|
|
8
7
|
import { useState } from 'react';
|
|
8
|
+
import { Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
10
10
|
import { C4Tabs } from '../c4-tabs/c4-tabs.js';
|
|
11
11
|
import { AuthorizedResources } from './tabs/authorized-resources.js';
|
|
@@ -14,7 +14,7 @@ import { Roles } from './tabs/roles.js';
|
|
|
14
14
|
const noop = () => null;
|
|
15
15
|
export const C4UserDetails = ({ details, authorizedResources, roles, tabs, infoFor88, }) => {
|
|
16
16
|
const detailsComponent = _jsx(Details, { ...details });
|
|
17
|
-
const authorizedResourcesComponent = (_jsxs(_Fragment, { children: [infoFor88?.visible && (_jsx("div", { style: { marginBottom: '24px' }, children: _jsx(C4ActionableNotification, { kind: 'info', lowContrast: true, actionButtonLabel: infoFor88?.action?.label ?? '', onActionButtonClick: infoFor88?.action?.onClick ?? noop, title: infoFor88?.title, subtitle: (infoFor88?.description ?? ''), orientation: 'vertical' }) })), _jsx(AuthorizedResources, { ...authorizedResources })] }));
|
|
17
|
+
const authorizedResourcesComponent = (_jsxs(_Fragment, { children: [infoFor88?.visible && (_jsx("div", { style: { marginBottom: '24px' }, children: _jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', lowContrast: true, actionButtonLabel: infoFor88?.action?.label ?? '', onActionButtonClick: infoFor88?.action?.onClick ?? noop, title: infoFor88?.title, subtitle: (infoFor88?.description ?? ''), orientation: 'vertical' }) })), _jsx(AuthorizedResources, { ...authorizedResources })] }));
|
|
18
18
|
const rolesComponent = _jsx(Roles, { ...roles });
|
|
19
19
|
const tabsContent = [
|
|
20
20
|
{
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C4IdentityContextProvider, C4ResourceAuthorizations, } from '@camunda/c4-identity';
|
|
8
|
-
import { Stack } from '
|
|
8
|
+
import { Stack } from '../../../ui/index.js';
|
|
9
9
|
export const AuthorizedResources = ({ config, }) => {
|
|
10
10
|
const component = (_jsx(Stack, { gap: 6, children: _jsx(C4IdentityContextProvider, { camundaAuth: {
|
|
11
11
|
token: config.camundaAuth.token,
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
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 { Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
|
|
2
|
+
import { Stack } from '../../../ui/index.js';
|
|
3
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
|
|
8
4
|
export const Details = ({ items }) => {
|
|
9
|
-
const component = (_jsx(Stack, { gap: 6, children: _jsx(
|
|
10
|
-
return (_jsxs(
|
|
5
|
+
const component = (_jsx(Stack, { gap: 6, children: _jsx(C4StructuredListWrapper, { children: _jsx(C4StructuredListBody, { children: items.map((item) => {
|
|
6
|
+
return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: {
|
|
11
7
|
width: '200px',
|
|
12
|
-
}, children: _jsx("strong", { children: item.label }) }), _jsx(
|
|
8
|
+
}, children: _jsx("strong", { children: item.label }) }), _jsx(C4StructuredListCell, { noWrap: true, style: {
|
|
13
9
|
width: '200px',
|
|
14
|
-
}, children: item.value }), _jsx(
|
|
10
|
+
}, children: item.value }), _jsx(C4StructuredListCell, { children: " " })] }, item.key));
|
|
15
11
|
}) }) }) }));
|
|
16
12
|
return component;
|
|
17
13
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { C3DataTable, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Stack } from '@carbon/react';
|
|
2
|
+
import { Stack } from '../../../ui/index.js';
|
|
3
|
+
import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
|
|
9
4
|
export const Roles = ({ headers, data, actions, permissions, }) => {
|
|
10
5
|
const tableHeaders = [
|
|
11
6
|
{
|
|
@@ -46,7 +41,7 @@ export const Roles = ({ headers, data, actions, permissions, }) => {
|
|
|
46
41
|
},
|
|
47
42
|
});
|
|
48
43
|
}
|
|
49
|
-
const component = (_jsx(Stack, { gap: 6, children: _jsx(
|
|
44
|
+
const component = (_jsx(Stack, { gap: 6, children: _jsx(C4DataTable, { id: 'roles-table', data: rows, headers: tableHeaders, options: {
|
|
50
45
|
pageSize: 10,
|
|
51
46
|
tableSize: 'lg',
|
|
52
47
|
useZebraStyles: false,
|
|
@@ -51,6 +51,7 @@ const resources = {
|
|
|
51
51
|
overflowMenu: {
|
|
52
52
|
delete: 'Delete',
|
|
53
53
|
resume: 'Resume',
|
|
54
|
+
failover: 'Failover',
|
|
54
55
|
},
|
|
55
56
|
},
|
|
56
57
|
tags: {
|
|
@@ -65,6 +66,17 @@ const resources = {
|
|
|
65
66
|
text: 'Complete the remaining steps to finalize the cluster creation.',
|
|
66
67
|
},
|
|
67
68
|
},
|
|
69
|
+
details: {
|
|
70
|
+
jobDashboard: 'Job dashboard',
|
|
71
|
+
},
|
|
72
|
+
notifications: {
|
|
73
|
+
wake: {
|
|
74
|
+
error: {
|
|
75
|
+
title: 'Failed to resume cluster',
|
|
76
|
+
unknownError: 'Unknown error',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
68
80
|
},
|
|
69
81
|
clusterDetails: {
|
|
70
82
|
tag: {
|
|
@@ -199,14 +199,6 @@
|
|
|
199
199
|
"primary": "Create",
|
|
200
200
|
"secondary": "Cancel"
|
|
201
201
|
},
|
|
202
|
-
"resume": {
|
|
203
|
-
"title": "Resume cluster",
|
|
204
|
-
"line0": "Are you sure you want to resume {{name}}?",
|
|
205
|
-
"line1": "Will take up to 5min for the cluster to be fully available.",
|
|
206
|
-
"resuming": "Resuming cluster...",
|
|
207
|
-
"primary": "Resume cluster",
|
|
208
|
-
"secondary": "Cancel"
|
|
209
|
-
},
|
|
210
202
|
"suspend": {
|
|
211
203
|
"title": "Suspend cluster (internal)",
|
|
212
204
|
"line0": "Are you sure you want to suspend {{name}}?",
|
|
@@ -351,7 +351,11 @@
|
|
|
351
351
|
"label": "Status",
|
|
352
352
|
"wakeLabel": "Resume cluster",
|
|
353
353
|
"sleepLabel": "Suspend cluster (internal)",
|
|
354
|
-
"waitingForInputTooltip": "Waiting for external encryption to be configured"
|
|
354
|
+
"waitingForInputTooltip": "Waiting for external encryption to be configured",
|
|
355
|
+
"wakeError": {
|
|
356
|
+
"title": "Failed to resume cluster",
|
|
357
|
+
"unknownError": "Unknown error"
|
|
358
|
+
}
|
|
355
359
|
},
|
|
356
360
|
"title": "Cluster Details",
|
|
357
361
|
"clusterId": "Cluster Id",
|
|
@@ -32,9 +32,13 @@
|
|
|
32
32
|
"overflowMenu": {
|
|
33
33
|
"rename": "Rename",
|
|
34
34
|
"delete": "Delete",
|
|
35
|
-
"resume": "Resume"
|
|
35
|
+
"resume": "Resume",
|
|
36
|
+
"failover": "Failover"
|
|
36
37
|
}
|
|
37
38
|
},
|
|
39
|
+
"details": {
|
|
40
|
+
"jobDashboard": "Job dashboard"
|
|
41
|
+
},
|
|
38
42
|
"createModal": {
|
|
39
43
|
"title": "Create new cluster",
|
|
40
44
|
"createButton": "Create",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"rename": "Rename",
|
|
23
23
|
"deleteOrg": "Delete organization",
|
|
24
24
|
"upgrade": "Upgrade now",
|
|
25
|
-
"contact": "Contact us"
|
|
25
|
+
"contact": "Contact us",
|
|
26
|
+
"extendTrial": "Extend trial"
|
|
26
27
|
},
|
|
27
28
|
"plans": {
|
|
28
29
|
"trial": "Trial",
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
"users": {
|
|
43
44
|
"title": "Users",
|
|
44
45
|
"search": "Search",
|
|
46
|
+
"roleFilter": "Filter by role",
|
|
45
47
|
"table": {
|
|
46
48
|
"name": "Name",
|
|
47
49
|
"email": "Email",
|