@camunda/ccma-saas-frontend 0.0.46 → 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.js +6 -4
- 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.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +3 -3
- 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 +8 -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/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.js +1 -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 +7 -2
- 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.js +3 -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 +5 -4
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +122 -66
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +133 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -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/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 +13 -6
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import { ActionableNotification as CarbonActionableNotification } from '@carbon/react';
|
|
2
|
+
import type { ComponentProps, JSX } from 'react';
|
|
3
|
+
type C4ActionableNotificationProps = ComponentProps<typeof CarbonActionableNotification> & {
|
|
4
|
+
orientation?: 'horizontal' | 'vertical';
|
|
5
|
+
titleId?: string;
|
|
6
|
+
appearance?: 'notification' | 'banner' | 'static';
|
|
7
|
+
secondaryActionButtonLabel?: string;
|
|
8
|
+
onSecondaryActionButtonClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Design-system-switchable actionable notification.
|
|
12
|
+
*
|
|
13
|
+
* Carbon mode renders Carbon's `ActionableNotification` (or the full-width
|
|
14
|
+
* `Callout` banner when `appearance='banner'`). ds mode renders the DS-native
|
|
15
|
+
* `Alert` with the action as a link button (kind→variant, title,
|
|
16
|
+
* subtitle→description, hideCloseButton→non-dismissible). Accepts the Carbon
|
|
17
|
+
* prop API so call sites only swap the import.
|
|
18
|
+
*/
|
|
19
|
+
export declare function C4ActionableNotification(props: C4ActionableNotificationProps): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -5,21 +5,54 @@ 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 { C3ResponsiveStack } from '@camunda/camunda-composite-components';
|
|
8
|
-
import {
|
|
8
|
+
import { Alert, Button } from '@camunda/design-system';
|
|
9
|
+
import { Callout, ActionableNotification as CarbonActionableNotification, StaticNotification, } from '@carbon/react';
|
|
10
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
|
|
9
12
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Design-system-switchable actionable notification.
|
|
15
|
+
*
|
|
16
|
+
* Carbon mode renders Carbon's `ActionableNotification` (or the full-width
|
|
17
|
+
* `Callout` banner when `appearance='banner'`). ds mode renders the DS-native
|
|
18
|
+
* `Alert` with the action as a link button (kind→variant, title,
|
|
19
|
+
* subtitle→description, hideCloseButton→non-dismissible). Accepts the Carbon
|
|
20
|
+
* prop API so call sites only swap the import.
|
|
21
|
+
*/
|
|
22
|
+
export function C4ActionableNotification(props) {
|
|
23
|
+
const designSystem = useC4DesignSystem();
|
|
24
|
+
if (designSystem !== 'ds') {
|
|
25
|
+
if (props.appearance !== 'banner') {
|
|
26
|
+
const { orientation: _orientation, titleId: _titleId, appearance, ...carbonProps } = props;
|
|
27
|
+
// 'static' matches deployed call sites that used Carbon's
|
|
28
|
+
// StaticNotification; otherwise Carbon's ActionableNotification (the
|
|
29
|
+
// default the rest of the deployed call sites used directly).
|
|
30
|
+
return appearance === 'static' ? (_jsx(StaticNotification, { ...carbonProps })) : (_jsx(CarbonActionableNotification, { ...carbonProps }));
|
|
31
|
+
}
|
|
32
|
+
// appearance='banner': reproduce the deployed Callout-based banner exactly —
|
|
33
|
+
// a full-width Callout with the title/subtitle and action laid out via
|
|
34
|
+
// C3ResponsiveStack. The hidden duplicate sets the Callout's height (the
|
|
35
|
+
// visible copy is absolutely positioned). Kept as two literal copies to
|
|
36
|
+
// match the deployed render pixel-for-pixel.
|
|
37
|
+
const label = props.actionButtonLabel ?? '';
|
|
38
|
+
const onClick = props.onActionButtonClick ??
|
|
39
|
+
(() => undefined);
|
|
40
|
+
const secondaryLabel = props.secondaryActionButtonLabel;
|
|
41
|
+
const onSecondaryClick = props.onSecondaryActionButtonClick;
|
|
42
|
+
const buttonSlot = secondaryLabel && onSecondaryClick ? (_jsxs("div", { style: { display: 'flex', gap: '8px', flexShrink: 0 }, children: [_jsx(C4LinkButton, { label: label, onClick: onClick, style: { alignSelf: 'flex-start', whiteSpace: 'nowrap' } }), _jsx(C4LinkButton, { label: secondaryLabel, onClick: onSecondaryClick, style: { alignSelf: 'flex-start', whiteSpace: 'nowrap' } })] })) : (_jsx(C4LinkButton, { label: label, onClick: onClick, style: {
|
|
43
|
+
alignSelf: 'flex-start',
|
|
44
|
+
whiteSpace: 'nowrap',
|
|
45
|
+
flexShrink: 0,
|
|
46
|
+
} }));
|
|
47
|
+
return (_jsxs(Callout, { title: '', kind: props.kind, lowContrast: props.lowContrast, style: { maxWidth: '100%', overflow: 'hidden' }, children: [_jsx("div", { style: {
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
paddingRight: '62px',
|
|
50
|
+
width: '100%',
|
|
51
|
+
}, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), buttonSlot] }) }), _jsx("div", { style: {
|
|
52
|
+
width: '100%',
|
|
53
|
+
visibility: 'hidden',
|
|
54
|
+
}, children: _jsxs(C3ResponsiveStack, { alignItems: 'center', justifyContent: 'space-between', children: [_jsxs(C3ResponsiveStack, { orientation: props?.orientation ?? 'horizontal', gap: 1, children: [_jsx("span", { className: 'cds--actionable-notification__title', children: props.title }), _jsx("p", { children: props.subtitle })] }), buttonSlot] }) })] }));
|
|
55
|
+
}
|
|
56
|
+
const { kind, title, subtitle, actionButtonLabel, onActionButtonClick, hideCloseButton, onCloseButtonClick, secondaryActionButtonLabel, onSecondaryActionButtonClick, } = props;
|
|
57
|
+
return (_jsxs(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick, children: [actionButtonLabel ? (_jsx(Button, { variant: 'link', className: 'h-auto p-0', onClick: onActionButtonClick, children: actionButtonLabel })) : undefined, secondaryActionButtonLabel && onSecondaryActionButtonClick ? (_jsx(Button, { variant: 'link', className: 'h-auto p-0', onClick: onSecondaryActionButtonClick, children: secondaryActionButtonLabel })) : undefined] }));
|
|
58
|
+
}
|
|
@@ -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 { FormLabel } from '@carbon/react';
|
|
8
8
|
import { Add, Close } from '@carbon/react/icons/index.esm.js';
|
|
9
|
+
import { Button, Stack } from '../../ui/index.js';
|
|
9
10
|
export const ArrayFieldContainer = ({ fieldName, spec, title, groups, onAddItem, onRemoveItem, onRemoveAll, renderRow, }) => {
|
|
10
11
|
return (_jsxs(Stack, { gap: 2, children: [_jsxs("div", { style: {
|
|
11
12
|
display: 'flex',
|
|
@@ -1,11 +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 { Button, TextInput } from '@carbon/react';
|
|
8
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { Button, TextInput } from '../../ui/index.js';
|
|
9
4
|
export const AutosuggestInput = ({ id, value, placeholder, labelText = 'Value', invalid, invalidText, fetchSuggestions, isArrayOp, onChange, onEnterAdd, onPick, }) => {
|
|
10
5
|
const [focused, setFocused] = useState(false);
|
|
11
6
|
const [loading, setLoading] = useState(false);
|
|
@@ -4,11 +4,14 @@ 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 { DatePicker, DatePickerInput, FormLabel, NumberInput, } from '@carbon/react';
|
|
8
8
|
import { Close } from '@carbon/react/icons/index.esm.js';
|
|
9
|
+
import { Button, Checkbox, Tag } from '../../ui/index.js';
|
|
10
|
+
import { useSelectFamily } from '../../ui/families.js';
|
|
9
11
|
import { AutosuggestInput } from './AutosuggestInput.js';
|
|
10
12
|
import { isArrayOperator } from './utils.js';
|
|
11
13
|
export const FieldRow = ({ field, spec, onFieldChange, onRemove, onAddArrayValue, onRemoveArrayValue, }) => {
|
|
14
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
12
15
|
const isOptional = spec.optional;
|
|
13
16
|
const showOperator = field.matchType === 'advanced-filter' && spec.operators?.length;
|
|
14
17
|
const showEqualSign = field.matchType === 'exact-match' || spec.matchType === 'exact-match';
|
|
@@ -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
|
import { ArrayFieldContainer } from './ArrayFieldContainer.js';
|
|
9
4
|
export const FiltersSection = ({ fields, filterFields, addArrayItem, updateFilter, renderFieldRow, }) => {
|
|
10
5
|
const groupedFields = filterFields.reduce((groups, field) => {
|
|
@@ -4,10 +4,12 @@ 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, Select, SelectItem } from '@carbon/react';
|
|
8
7
|
import { Close } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { Button } from '../../ui/index.js';
|
|
9
|
+
import { useSelectFamily } from '../../ui/families.js';
|
|
9
10
|
import { ArrayFieldContainer } from './ArrayFieldContainer.js';
|
|
10
11
|
export const OrSection = ({ sectionId, fieldsConfig, filterFields, addArrayItem, removeOrSection, addOptionalFieldToSection, updateFilter, renderFieldRow, }) => {
|
|
12
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
11
13
|
const sectionFields = filterFields;
|
|
12
14
|
const availableFields = Object.entries(fieldsConfig)
|
|
13
15
|
.filter(([fieldName, spec]) => {
|
|
@@ -4,14 +4,16 @@ 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 { Button, Select, SelectItem, Stack } from '@carbon/react';
|
|
8
7
|
import { Add } from '@carbon/react/icons/index.esm.js';
|
|
9
8
|
import { useCallback, useEffect, useState } from 'react';
|
|
9
|
+
import { Button, Stack } from '../../ui/index.js';
|
|
10
|
+
import { useSelectFamily } from '../../ui/families.js';
|
|
10
11
|
import { FieldRow } from './FieldRow.js';
|
|
11
12
|
import { FiltersSection } from './FiltersSection.js';
|
|
12
13
|
import { OrSection } from './OrSection.js';
|
|
13
14
|
import { convertDateToISOString, getInitialValue, isArrayOperator, validateComparisonOperatorValue, } from './utils.js';
|
|
14
15
|
export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
|
|
16
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
15
17
|
const [filterFields, setFilterFields] = useState([]);
|
|
16
18
|
const [orSections, setOrSections] = useState([]);
|
|
17
19
|
const [nextId, setNextId] = useState(1);
|
|
@@ -1,15 +1,10 @@
|
|
|
1
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 { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
2
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
3
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
9
4
|
import { C4LLMUsageMeter } from '../c4-llm-usage-meter/c4-llm-usage-meter.js';
|
|
10
5
|
export const C4AiUsage = ({ usage, limit, isLoading = false, hasError = false, emptyStateIconPath, text, urls, onViewBlueprints, onLearnMore, }) => {
|
|
11
6
|
if (!isLoading && !hasError && usage === 0) {
|
|
12
|
-
return (_jsx(
|
|
7
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
13
8
|
path: emptyStateIconPath ?? C4_ASSET_URLS.aiIcon,
|
|
14
9
|
altText: 'aiIcon',
|
|
15
10
|
}, heading: text.emptyStateTitle, description: text.emptyStateDescription, button: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { Stack } from '../../ui/index.js';
|
|
3
|
+
import { useSelectFamily } from '../../ui/families.js';
|
|
4
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
5
|
+
export const C4AlphaClusterAtCheckout = (props) => {
|
|
6
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
7
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4InlineNotification, { kind: 'info', title: props.warning, hideCloseButton: true, lowContrast: true }), props.description, _jsxs(Select, { id: 'what-to-do-with-alpha-cluster', labelText: props.question, onChange: (event) => props.selectionChanged(event.target.value), defaultValue: 'empty', size: 'lg', children: [_jsx(SelectItem, { id: 'empty', value: 'empty', text: props.options.empty }, 'empty'), _jsx(SelectItem, { id: 'delete', value: 'delete', text: props.options.delete }, 'delete'), _jsx(SelectItem, { id: 'keep', value: 'keep', text: props.options.keep }, 'keep')] }, 'what-to-do-with-alpha-cluster')] }));
|
|
8
|
+
};
|
|
@@ -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 { Tile } from '@carbon/react';
|
|
2
|
+
import { Tile } from '../../ui/index.js';
|
|
8
3
|
export const C4AppTeaserCard = (props) => {
|
|
9
4
|
const gap = 1;
|
|
10
5
|
return (_jsx(Tile, { style: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { render, screen } from '@testing-library/react';
|
|
8
|
+
import { C4ConsoleRuntimeProvider } from '../../runtime/c4-console-runtime-context.js';
|
|
9
|
+
import { C4AppTeaserCard } from './c4-app-teaster-card.js';
|
|
10
|
+
const PROPS = {
|
|
11
|
+
id: 'operate',
|
|
12
|
+
title: 'Operate',
|
|
13
|
+
img: { path: '/operate.png', altText: 'Operate preview' },
|
|
14
|
+
description: 'Monitor processes',
|
|
15
|
+
};
|
|
16
|
+
function renderCard(designSystem) {
|
|
17
|
+
if (!designSystem) {
|
|
18
|
+
return render(_jsx(C4AppTeaserCard, { ...PROPS }));
|
|
19
|
+
}
|
|
20
|
+
const wrapper = ({ children }) => (_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
21
|
+
stage: 'dev',
|
|
22
|
+
designSystem,
|
|
23
|
+
auth: { getAccessToken: async () => '' },
|
|
24
|
+
backendUrls: {},
|
|
25
|
+
}, children: children }));
|
|
26
|
+
return render(_jsx(C4AppTeaserCard, { ...PROPS }), { wrapper });
|
|
27
|
+
}
|
|
28
|
+
describe('C4AppTeaserCard design-system switch', () => {
|
|
29
|
+
it('renders the Carbon Tile by default (no runtime provider)', () => {
|
|
30
|
+
const { container } = renderCard();
|
|
31
|
+
expect(screen.getByText('Operate')).toBeInTheDocument();
|
|
32
|
+
expect(container.querySelector('.cds--tile')).toBeTruthy();
|
|
33
|
+
});
|
|
34
|
+
it("renders the Carbon Tile when designSystem is 'carbon'", () => {
|
|
35
|
+
const { container } = renderCard('carbon');
|
|
36
|
+
expect(container.querySelector('.cds--tile')).toBeTruthy();
|
|
37
|
+
});
|
|
38
|
+
it("renders the Design System adapter (not Carbon Tile) when designSystem is 'ds'", () => {
|
|
39
|
+
const { container } = renderCard('ds');
|
|
40
|
+
expect(screen.getByText('Operate')).toBeInTheDocument();
|
|
41
|
+
expect(container.querySelector('.cds--tile')).toBeNull();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
6
6
|
* You may not use this file except in compliance with the commercial license.
|
|
7
7
|
*/
|
|
8
|
-
import { Button, Stack } from '
|
|
8
|
+
import { Button, Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4AppTeaserCard } from '../c4-app-teaser-card/c4-app-teaster-card.js';
|
|
10
10
|
export const C4AppTeaserCards = ({ title, subtitle, cards, cta, subtext, }) => {
|
|
11
11
|
const innerColumns = new Array(cards.length).fill('340px');
|
|
@@ -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 { ActionableNotification, Modal, SkeletonText, Stack, } from '@carbon/react';
|
|
8
7
|
import { useEffect, useState } from 'react';
|
|
8
|
+
import { Modal, SkeletonText, Stack } from '../../ui/index.js';
|
|
9
|
+
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
9
10
|
export const C4AsyncModal = ({ open, loadingText, modalHeading, onRequestClose, onRequestSubmit, primaryButtonText, secondaryButtonText, children, danger, primaryButtonDisabled, size, preventCloseOnClickOutside, }) => {
|
|
10
11
|
// ///////////////////
|
|
11
12
|
// STATES
|
|
@@ -57,7 +58,7 @@ export const C4AsyncModal = ({ open, loadingText, modalHeading, onRequestClose,
|
|
|
57
58
|
});
|
|
58
59
|
};
|
|
59
60
|
const content = isDoingAsyncWork ? _jsx(SkeletonText, {}) : children;
|
|
60
|
-
const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(
|
|
61
|
+
const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(C4ActionableNotification, { kind: 'error', inline: true, lowContrast: true, hideCloseButton: true, style: { position: 'sticky', bottom: '0' }, actionButtonLabel: error.action.title, onActionButtonClick: error.action.action, title: error.title, subtitle: error.description })) : (_jsx(C4ActionableNotification, { kind: 'error', lowContrast: true, title: error.title, style: { position: 'sticky', bottom: '0', maxInlineSize: 'none' }, subtitle: error.description, hideCloseButton: true, role: 'banner' }))) : ('')] }));
|
|
61
62
|
// ///////////////////
|
|
62
63
|
// COMPONENT
|
|
63
64
|
const component = (_jsx(Modal, { open: isModalOpen, preventCloseOnClickOutside: !!(isDoingAsyncWork || preventCloseOnClickOutside), size: size, loadingStatus: isDoingAsyncWork ? 'active' : 'inactive', loadingDescription: loadingText, modalHeading: modalHeading, primaryButtonText: primaryButtonText, secondaryButtonText: secondaryButtonText, primaryButtonDisabled: primaryButtonDisabled, onRequestSubmit: handleSubmitRequest,
|
|
@@ -4,11 +4,12 @@ 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 {
|
|
8
|
-
import { Button, Checkbox, InlineLoading, Link, Modal, Stack, } from '@carbon/react';
|
|
7
|
+
import { InlineLoading } from '@carbon/react';
|
|
9
8
|
import { Checkmark, Launch } from '@carbon/react/icons/index.esm.js';
|
|
10
9
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
10
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
+
import { Button, Checkbox, Link, Modal, Stack } from '../../ui/index.js';
|
|
12
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
12
13
|
const ALL_CATEGORIES = [
|
|
13
14
|
'ADMIN',
|
|
14
15
|
'DEPLOYED_RESOURCES',
|
|
@@ -83,7 +84,7 @@ export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate
|
|
|
83
84
|
await onDisable();
|
|
84
85
|
};
|
|
85
86
|
if (!enabled) {
|
|
86
|
-
return (_jsx(
|
|
87
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
87
88
|
path: C4_ASSET_URLS.auditLogIcon,
|
|
88
89
|
altText: 'auditLogIcon',
|
|
89
90
|
}, heading: 'Audit log of operations', description: 'The audit log records user and client operations across processes, decisions, user tasks and identity. It helps your team trace events, when they occurred, what was affected, and whether they were successful.', button: permissions.mayChange
|
|
@@ -4,8 +4,10 @@ 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
|
|
7
|
+
import { Column, Grid } from '@carbon/react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
|
+
import { Stack } from '../../ui/index.js';
|
|
10
|
+
import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
|
|
9
11
|
import { ClusterReservations } from './elements/cluster-reservations.js';
|
|
10
12
|
import { CurrentUsageMetrics } from './elements/current-usage-metrics.js';
|
|
11
13
|
import { PlanDetails } from './elements/plan-details.js';
|
|
@@ -30,10 +32,10 @@ const Wrapper = styled.div `
|
|
|
30
32
|
}
|
|
31
33
|
`;
|
|
32
34
|
export const C4BillingPage = ({ title, subheading, planDetails, usageAlerts, clusterReservations, currentUsageMetrics, isEnterpriseOrg = false, }) => {
|
|
33
|
-
const component = (_jsx(Wrapper, { children: _jsxs(Stack, { gap: 6, children: [_jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsxs(Stack, { gap: 6, children: [title && _jsx("h1", { children: title }), subheading && (_jsx("span", { style: { color: 'var(--cds-text-secondary)' }, children: subheading }))] }) }) }), _jsxs(Stack, { gap: 5, children: [_jsxs(TopRowWrapper, { style: { ...STYLES.grid }, children: [_jsx("div", { children: _jsx(PlanDetails, { ...planDetails }) }), _jsx("div", { children: usageAlerts && _jsx(UsageAlerts, { ...usageAlerts }) })] }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx(CurrentUsageMetrics, { ...currentUsageMetrics, isEnterpriseOrg: isEnterpriseOrg }) }) }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx("div", { style: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const component = (_jsx(C4PageLayout, { children: _jsx(Wrapper, { children: _jsxs(Stack, { gap: 6, children: [_jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsxs(Stack, { gap: 6, children: [title && _jsx("h1", { children: title }), subheading && (_jsx("span", { style: { color: 'var(--cds-text-secondary)' }, children: subheading }))] }) }) }), _jsxs(Stack, { gap: 5, children: [_jsxs(TopRowWrapper, { style: { ...STYLES.grid }, children: [_jsx("div", { children: _jsx(PlanDetails, { ...planDetails }) }), _jsx("div", { children: usageAlerts && _jsx(UsageAlerts, { ...usageAlerts }) })] }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx(CurrentUsageMetrics, { ...currentUsageMetrics, isEnterpriseOrg: isEnterpriseOrg }) }) }), _jsx(Grid, { style: { ...STYLES.grid }, children: _jsx(Column, { span: 16, style: { ...STYLES.grid }, children: _jsx("div", { style: {
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'column',
|
|
38
|
+
overflowX: 'auto',
|
|
39
|
+
}, children: _jsx(ClusterReservations, { ...clusterReservations }) }) }) })] })] }) }) }));
|
|
38
40
|
return component;
|
|
39
41
|
};
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { StructuredListBody, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
|
|
2
|
+
import { C4EmptyState } from '../../c4-empty-state/c4-empty-state.js';
|
|
9
3
|
import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
|
|
4
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
|
|
10
5
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
11
6
|
export const ClusterReservations = ({ title, description, tooltip, loading, data, }) => {
|
|
12
7
|
if (data.rows.length === 0) {
|
|
13
|
-
return (_jsx(
|
|
8
|
+
return (_jsx(C4EmptyState, { heading: 'No clusters have been created', description: 'To enable cluster creation for this team, first reserve clusters.' }));
|
|
14
9
|
}
|
|
15
10
|
const component = (_jsx(C4TileWithTitleAndAction, { title: title, tooltip: tooltip, description: description, loading: loading, children: _jsx(ClusterReservationsStructuredList, { ...data }) }));
|
|
16
11
|
return component;
|
|
17
12
|
};
|
|
18
13
|
const ClusterReservationsStructuredList = ({ heading, rows, }) => {
|
|
19
|
-
const listContent = (_jsxs(
|
|
14
|
+
const listContent = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: heading.type }), (() => {
|
|
20
15
|
if (heading.clusters) {
|
|
21
|
-
return (_jsx(
|
|
16
|
+
return (_jsx(C4StructuredListCell, { head: true, children: heading.clusters }));
|
|
22
17
|
}
|
|
23
18
|
return _jsx(_Fragment, {});
|
|
24
|
-
})(), _jsx(
|
|
25
|
-
const component = (_jsxs(
|
|
19
|
+
})(), _jsx(C4StructuredListCell, { head: true, children: heading.used }), _jsx(C4StructuredListCell, { head: true, children: heading.totalReserved }), _jsx(C4StructuredListCell, { head: true })] }));
|
|
20
|
+
const component = (_jsxs(C4StructuredListWrapper, { isFlush: true, children: [_jsx(C4StructuredListHead, { children: listContent }), _jsx(C4StructuredListBody, { children: rows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: row.type }), (() => {
|
|
26
21
|
if (heading.clusters && row.clusters !== undefined) {
|
|
27
|
-
return (_jsx(
|
|
22
|
+
return (_jsx(C4StructuredListCell, { noWrap: true, children: row.clusters }));
|
|
28
23
|
}
|
|
29
24
|
return _jsx(_Fragment, {});
|
|
30
|
-
})(), _jsx(
|
|
25
|
+
})(), _jsx(C4StructuredListCell, { noWrap: true, children: row.used }), _jsx(C4StructuredListCell, { noWrap: true, children: row.totalReserved }), _jsx(C4StructuredListCell, { noWrap: true, children: row.action && (_jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() })) })] }, row.key))) })] }));
|
|
31
26
|
return component;
|
|
32
27
|
};
|
|
@@ -4,8 +4,9 @@ import { jsx as _jsx } 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
|
|
7
|
+
import { Column, Grid } from '@carbon/react';
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
|
+
import { Stack } from '../../../ui/index.js';
|
|
9
10
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
10
11
|
import { STYLES } from '../c4-billing-page.js';
|
|
11
12
|
import { ValueMetric } from './value-metric.js';
|
|
@@ -1,18 +1,13 @@
|
|
|
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 { StructuredListBody, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
|
|
8
2
|
import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
|
|
3
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../c4-structured-list/c4-structured-list.js';
|
|
9
4
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
10
5
|
export const UsageAlerts = ({ title, description, loading, action, data, }) => {
|
|
11
6
|
const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, action: action, loading: loading, children: _jsx(UsageAlertsStructuredList, { ...data }) }));
|
|
12
7
|
return component;
|
|
13
8
|
};
|
|
14
9
|
const UsageAlertsStructuredList = ({ heading, rows, }) => {
|
|
15
|
-
const listContent = (_jsxs(
|
|
16
|
-
const component = (_jsxs(
|
|
10
|
+
const listContent = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: heading.metric }), _jsx(C4StructuredListCell, { head: true, children: heading.threshold }), _jsx(C4StructuredListCell, { head: true, children: heading.status }), _jsx(C4StructuredListCell, { head: true })] }));
|
|
11
|
+
const component = (_jsxs(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: [_jsx(C4StructuredListHead, { children: listContent }), _jsx(C4StructuredListBody, { children: rows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: row.metric }), _jsx(C4StructuredListCell, { noWrap: true, children: row.threshold }), _jsx(C4StructuredListCell, { noWrap: true, children: row.status }), _jsx(C4StructuredListCell, { noWrap: true, children: _jsx(C4LinkButton, { label: row.action?.label, onClick: () => row.action?.onClick() }) })] }, row.key))) })] }));
|
|
17
12
|
return component;
|
|
18
13
|
};
|
|
@@ -5,8 +5,9 @@ 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 { MeterChart } from '@carbon/charts-react';
|
|
8
|
-
import { DefinitionTooltip
|
|
8
|
+
import { DefinitionTooltip } from '@carbon/react';
|
|
9
9
|
import { WarningAlt } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { Stack } from '../../../ui/index.js';
|
|
10
11
|
import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
|
|
11
12
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
12
13
|
export var CHART_COLORS;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
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 { Stack } from '@carbon/react';
|
|
2
|
+
import { Stack } from '../../ui/index.js';
|
|
8
3
|
import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
|
|
9
4
|
export const C4BottomLinks = ({ links }) => (_jsx(Stack, { orientation: 'horizontal', gap: 6, children: links.map((link) => (_jsx(C4ExternalLink, { href: link.href, id: link.id, label: link.label, onClick: link.onClick, target: link.target }, link.id))) }));
|
|
@@ -1,10 +1,6 @@
|
|
|
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 { Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton, CodeSnippet, Link, OverflowMenu, OverflowMenuItem, Stack, Tag, } from '@carbon/react';
|
|
2
|
+
import { BreadcrumbSkeleton, CodeSnippet, Link, OverflowMenu, OverflowMenuItem, Stack, Tag, } from '../../ui/index.js';
|
|
3
|
+
import { useBreadcrumbFamily } from '../../ui/families.js';
|
|
8
4
|
const breadCrumbWrapperStyles = {
|
|
9
5
|
minHeight: '40px',
|
|
10
6
|
display: 'grid',
|
|
@@ -19,6 +15,7 @@ const headerRowStyles = {
|
|
|
19
15
|
gap: '1rem',
|
|
20
16
|
};
|
|
21
17
|
export const C4Breadcrumb = ({ loading, noTrailingSlash, elements, title, menu, tag, indicator, codeSnippet, }) => {
|
|
18
|
+
const { Breadcrumb, BreadcrumbItem } = useBreadcrumbFamily();
|
|
22
19
|
let breadcrumb = null;
|
|
23
20
|
if (loading) {
|
|
24
21
|
breadcrumb = _jsx(BreadcrumbSkeleton, {});
|
|
@@ -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 { C3Page } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Stack } from '
|
|
8
|
+
import { Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4AlluvialChart } from './elements/alluvial-chart.js';
|
|
10
10
|
import { C4BarChart } from './elements/bar-chart.js';
|
|
11
11
|
import { C4LineChart } from './elements/line-chart.js';
|
|
@@ -5,8 +5,8 @@ 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 { AlluvialChart } from '@carbon/charts-react';
|
|
8
|
-
import { Button, MultiSelect, Stack, Tile } from '@carbon/react';
|
|
9
8
|
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
9
|
+
import { Button, MultiSelect, Stack, Tile } from '../../../ui/index.js';
|
|
10
10
|
export const C4AlluvialChart = ({ title, dataPoints, nodes, height = 600, gradient, theme, }) => {
|
|
11
11
|
// Compute target node totals
|
|
12
12
|
const targetTotals = useMemo(() => {
|
|
@@ -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 { GroupedBarChart, SimpleBarChart, StackedBarChart, } from '@carbon/charts-react';
|
|
8
|
-
import { Stack, Tile } from '
|
|
8
|
+
import { Stack, Tile } from '../../../ui/index.js';
|
|
9
9
|
export const C4BarChart = ({ title, dataPoints, axes, stacked = false, mode, height = 400, theme, }) => {
|
|
10
10
|
const data = dataPoints;
|
|
11
11
|
const options = {
|
|
@@ -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 { LineChart } from '@carbon/charts-react';
|
|
8
|
-
import { Stack, Tile } from '
|
|
8
|
+
import { Stack, Tile } from '../../../ui/index.js';
|
|
9
9
|
export const C4LineChart = ({ title, dataPoints, axes, toolbar = { enabled: true }, zoomBar = { enabled: true }, thresholds, height = 400, theme, }) => {
|
|
10
10
|
const data = dataPoints;
|
|
11
11
|
const options = {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { CodeSnippet, Stack } from '@carbon/react';
|
|
9
2
|
import { Launch, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
|
|
10
3
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
|
+
import { CodeSnippet, Stack } from '../../ui/index.js';
|
|
5
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
6
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
11
7
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
12
8
|
export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls, permissions, onActivateEndpoint, onCreateClient, onRotatePassword, onDeleteClient, onRefresh, onOpenDocs, }) => {
|
|
13
9
|
const tableData = clients.map((client, index) => ({
|
|
@@ -99,7 +95,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
|
|
|
99
95
|
},
|
|
100
96
|
];
|
|
101
97
|
if (hasError) {
|
|
102
|
-
return (_jsx(
|
|
98
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
103
99
|
path: C4_ASSET_URLS.errorIcon,
|
|
104
100
|
altText: 'errorIcon',
|
|
105
101
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
@@ -110,7 +106,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
|
|
|
110
106
|
} }));
|
|
111
107
|
}
|
|
112
108
|
if (!isLoading && clients.length === 0) {
|
|
113
|
-
return (_jsx(
|
|
109
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
114
110
|
path: C4_ASSET_URLS.monitoringIcon,
|
|
115
111
|
altText: 'monitoringIcon',
|
|
116
112
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: {
|
|
@@ -130,5 +126,5 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
|
|
|
130
126
|
gap: '2rem',
|
|
131
127
|
maxWidth: 'calc(100vw - 64px)',
|
|
132
128
|
width: '100%',
|
|
133
|
-
}, children: _jsx(
|
|
129
|
+
}, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: text.subtitle, queryPrefix: 'cluster-byom-clients' }) }), _jsx(C4LinkButton, { label: text.learnMoreLabel, onClick: onOpenDocs, icon: _jsx(Launch, {}) })] }));
|
|
134
130
|
};
|