@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
|
@@ -4,11 +4,16 @@ 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, Layer } from '@carbon/react';
|
|
8
8
|
import { Download, Save } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useState } from 'react';
|
|
10
|
+
import { Button, CodeSnippet, Modal, Stack } from '../../ui/index.js';
|
|
11
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
12
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
13
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
10
14
|
export const C4ClusterClientCredentialsModal = (props) => {
|
|
11
|
-
|
|
15
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
16
|
+
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, size: 'md', children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { children: props.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
|
|
12
17
|
const { key, ...variantProps } = variant;
|
|
13
18
|
return (_jsxs(TabPanel, { children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsVariantItems, { ...variantProps }))] }, key));
|
|
14
19
|
}) })] })] }) }));
|
|
@@ -47,7 +52,7 @@ export const C4ClusterClientCredentialsVariantCodeSnippet = (props) => {
|
|
|
47
52
|
};
|
|
48
53
|
export const C4ClusterClientCredentialsVariantItems = (props) => {
|
|
49
54
|
const variant = props;
|
|
50
|
-
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(
|
|
55
|
+
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
|
|
51
56
|
zIndex: `${(variant.items.length - index) * 100}`,
|
|
52
57
|
}, onClick: () => {
|
|
53
58
|
if (item.onClick) {
|
|
@@ -4,11 +4,16 @@ 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, Layer } from '@carbon/react';
|
|
8
8
|
import { Download, Save } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useState } from 'react';
|
|
10
|
+
import { Button, CodeSnippet, Modal, Stack } from '../../ui/index.js';
|
|
11
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
10
12
|
import { C4Divider } from '../c4-divider/c4-divider.js';
|
|
13
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
14
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
11
15
|
export const C4ClusterClientCredentialsIdentityModal = (props) => {
|
|
16
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
12
17
|
return (_jsx(Modal, { passiveModal: true, onRequestClose: props.onRequestClose, open: props.isOpen, modalHeading: props.heading, preventCloseOnClickOutside: true, selectorPrimaryFocus: '.cds--btn--tertiary', size: 'md', children: _jsxs(Stack, { gap: 4, children: [_jsx("strong", { children: props.step1Header }), _jsxs(Tabs, { children: [_jsx(TabList, { "aria-label": 'download', contained: true, children: props.variants.map((variant) => (_jsx(Tab, { children: variant.tabTitle }, variant.key))) }), _jsx(TabPanels, { children: props.variants.map((variant) => {
|
|
13
18
|
const { key, ...variantProps } = variant;
|
|
14
19
|
return (_jsxs(TabPanel, { style: { marginTop: '-12px', padding: '1rem' }, children: [variant.type === 'codesnippet' && (_jsx(C4ClusterClientCredentialsIdentitysVariantCodeSnippet, { ...variantProps })), variant.type === 'items' && (_jsx(C4ClusterClientCredentialsIdentitysVariantItems, { ...variantProps }))] }, key));
|
|
@@ -41,7 +46,7 @@ const C4ClusterClientCredentialsIdentitysVariantAdditionalAction = (props) => {
|
|
|
41
46
|
};
|
|
42
47
|
export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) => {
|
|
43
48
|
const variant = props;
|
|
44
|
-
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(
|
|
49
|
+
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(Layer, { style: { minWidth: '0' }, children: _jsx(CodeSnippet, { type: 'multi', maxCollapsedNumberOfRows: 4, maxExpandedNumberOfRows: 4, showMoreText: '', onClick: () => {
|
|
45
50
|
if (variant.onClick) {
|
|
46
51
|
variant.onClick();
|
|
47
52
|
}
|
|
@@ -52,7 +57,7 @@ export const C4ClusterClientCredentialsIdentitysVariantCodeSnippet = (props) =>
|
|
|
52
57
|
};
|
|
53
58
|
export const C4ClusterClientCredentialsIdentitysVariantItems = (props) => {
|
|
54
59
|
const variant = props;
|
|
55
|
-
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(
|
|
60
|
+
const content = (_jsxs(Stack, { gap: 5, children: [_jsx("div", { children: variant.description }), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', title: props.notificationText, hideCloseButton: true, style: { maxInlineSize: '100%' } }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { minWidth: '0' }, children: _jsx(C4StructuredListBody, { children: variant.items.map((item, index) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: { width: '200px' }, children: item.label }), _jsx(C4StructuredListCell, { style: { paddingRight: '0px' }, children: _jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', wrapText: true, copyText: item.value, style: {
|
|
56
61
|
zIndex: `${(variant.items.length - index) * 100}`,
|
|
57
62
|
maxInlineSize: '100%',
|
|
58
63
|
}, onClick: () => {
|
|
@@ -4,13 +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 { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, } from '@carbon/react';
|
|
9
7
|
import { Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
8
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
9
|
+
import { Stack } from '../../ui/index.js';
|
|
10
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
11
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
11
12
|
export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError, text, onRefresh, }) => {
|
|
12
13
|
if (hasError) {
|
|
13
|
-
return (_jsx(
|
|
14
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
14
15
|
path: C4_ASSET_URLS.errorIcon,
|
|
15
16
|
altText: 'errorIcon',
|
|
16
17
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
@@ -24,9 +25,9 @@ export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError,
|
|
|
24
25
|
if (group.items.length === 0) {
|
|
25
26
|
return null;
|
|
26
27
|
}
|
|
27
|
-
return (_jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: group.heading }), isLoading ? (_jsx(
|
|
28
|
+
return (_jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: group.heading }), isLoading ? (_jsx(C4StructuredListSkeleton, {})) : (_jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsx(C4StructuredListBody, { children: group.items.map((item) => {
|
|
28
29
|
const formattedDateTime = formatDateTime(new Date(item.timestamp));
|
|
29
|
-
return (_jsxs(
|
|
30
|
+
return (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '250px' }, children: _jsx("strong", { children: formattedDateTime }) }), _jsxs(C4StructuredListCell, { children: [item.userName, ": ", item.audit] })] }, `audit-row-${item.entityId}-${item.timestamp}`));
|
|
30
31
|
}) }) }))] }, `activity-group-${groupIndex}`));
|
|
31
32
|
}) }));
|
|
32
33
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { DataTableSkeleton, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
|
|
9
2
|
import { Edit } from '@carbon/react/icons/index.esm.js';
|
|
10
3
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
|
+
import { Stack } from '../../ui/index.js';
|
|
5
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
6
|
+
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
7
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
8
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
11
9
|
export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, onCreateAlert, onUpdateAlert, onDeleteAlert, onNoAlertsDocsClick, }) => {
|
|
12
10
|
const headerData = [
|
|
13
11
|
{
|
|
@@ -33,14 +31,14 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
|
|
|
33
31
|
},
|
|
34
32
|
];
|
|
35
33
|
const ExpandedRowContent = (alert) => {
|
|
36
|
-
return (_jsx(
|
|
34
|
+
return (_jsx(C4StructuredListWrapper, { isCondensed: true, style: {
|
|
37
35
|
marginLeft: '-56px',
|
|
38
|
-
}, children: _jsxs(
|
|
36
|
+
}, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: alert.reportType === 'Webhook'
|
|
39
37
|
? text.targetWebhookLabel
|
|
40
|
-
: text.targetEmailLabel }), _jsx(
|
|
38
|
+
: text.targetEmailLabel }), _jsx(C4StructuredListCell, { children: alert.userIdOrWebhook })] }), alert.reportType === 'Webhook' && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: {
|
|
41
39
|
minHeight: '50px',
|
|
42
40
|
width: '250px',
|
|
43
|
-
}, children: text.hmacEnabledLabel }), _jsx(
|
|
41
|
+
}, children: text.hmacEnabledLabel }), _jsx(C4StructuredListCell, { children: alert.hmacEnabled ? 'Yes' : 'No' })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedLabel }), _jsx(C4StructuredListCell, { children: alert.updatedAt ? alert.updatedAt : _jsx(_Fragment, {}) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.updatedByLabel }), _jsx(C4StructuredListCell, { children: alert.updatedBy })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px' }, children: text.lastTimeTriggeredLabel }), _jsx(C4StructuredListCell, { children: alert.lastTimeTriggered ? alert.lastTimeTriggered : '-' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, style: { minHeight: '50px', width: '250px' }, children: text.numberOfTimesTriggeredLabel }), _jsx(C4StructuredListCell, { children: alert.triggerCount })] })] }) }));
|
|
44
42
|
};
|
|
45
43
|
const toolbar = [
|
|
46
44
|
{
|
|
@@ -87,10 +85,10 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
|
|
|
87
85
|
},
|
|
88
86
|
];
|
|
89
87
|
if (isLoading) {
|
|
90
|
-
return _jsx(
|
|
88
|
+
return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
|
|
91
89
|
}
|
|
92
90
|
if (alerts.length === 0) {
|
|
93
|
-
return (_jsx(
|
|
91
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
94
92
|
path: C4_ASSET_URLS.alertsIcon,
|
|
95
93
|
altText: 'alertsIcon',
|
|
96
94
|
}, heading: text.noAlertsTitle, description: text.noAlertsDescription, button: permissions.canCreate
|
|
@@ -112,7 +110,7 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
|
|
|
112
110
|
gap: '2rem',
|
|
113
111
|
maxWidth: 'calc(100vw - 64px)',
|
|
114
112
|
width: '100%',
|
|
115
|
-
}, children: [_jsx(
|
|
113
|
+
}, children: [_jsx(C4DataTable, { headers: headerData, data: alerts.map((alert) => {
|
|
116
114
|
return {
|
|
117
115
|
id: alert.id,
|
|
118
116
|
deliveryMethod: alert.deliveryMethod,
|
|
@@ -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 { Button, CodeSnippet, Stack } from '@carbon/react';
|
|
9
2
|
import { Edit, Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
3
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
|
+
import { Button, 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 C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }) => {
|
|
13
9
|
const tableData = clients.map((client, originalIndex) => ({
|
|
@@ -165,7 +161,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
165
161
|
},
|
|
166
162
|
];
|
|
167
163
|
if (hasError) {
|
|
168
|
-
return (_jsx(
|
|
164
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
169
165
|
path: C4_ASSET_URLS.errorIcon,
|
|
170
166
|
altText: 'errorIcon',
|
|
171
167
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
@@ -176,7 +172,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
176
172
|
} }));
|
|
177
173
|
}
|
|
178
174
|
if (!isLoading && clients.length === 0) {
|
|
179
|
-
return (_jsx(
|
|
175
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
180
176
|
path: C4_ASSET_URLS.clientApiIcon,
|
|
181
177
|
altText: 'clientApiIcon',
|
|
182
178
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: {
|
|
@@ -196,7 +192,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
196
192
|
gap: '2rem',
|
|
197
193
|
maxWidth: 'calc(100vw - 64px)',
|
|
198
194
|
width: '100%',
|
|
199
|
-
}, children: _jsx(
|
|
195
|
+
}, children: _jsx(C4DataTable, { data: tableData, isLoading: isLoading, headers: headerData, actions: actions, toolbar: toolbar, title: text.title, description: (() => {
|
|
200
196
|
if (hasIdentityIntegration && hasIdentityAuthorization) {
|
|
201
197
|
return (_jsxs(Stack, { children: [_jsxs("p", { children: [text.subtitleIdentityPrefix, ' ', _jsx(C4LinkButton, { label: text.subtitleIdentityLinkLabel, onClick: onOpenDocs, inline: true }), text.subtitleIdentitySuffix] }), _jsx(Button, { kind: 'tertiary', size: 'md', onClick: onOpenIdentity, children: text.identityButton })] }));
|
|
202
198
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { DataTableSkeleton, Stack, Tag } from '@carbon/react';
|
|
9
2
|
import { Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
3
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
|
+
import { Stack, Tag } from '../../ui/index.js';
|
|
5
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
6
|
+
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
7
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
11
8
|
export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError, hasImportFromClusterFeature, hasExportFeature, text, urls, permissions, onCreateSecret, onBulkImportSecrets, onImportFromCluster, onExportSecrets, onRevealSecret, onUpdateSecret, onDeleteSecret, onRefresh, onOpenDocs, }) => {
|
|
12
9
|
const headerData = [
|
|
13
10
|
{
|
|
@@ -127,10 +124,10 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
|
|
|
127
124
|
]
|
|
128
125
|
: [];
|
|
129
126
|
if (isLoading) {
|
|
130
|
-
return _jsx(
|
|
127
|
+
return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
|
|
131
128
|
}
|
|
132
129
|
if (hasError) {
|
|
133
|
-
return (_jsx(
|
|
130
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
134
131
|
path: C4_ASSET_URLS.errorIcon,
|
|
135
132
|
altText: 'errorIcon',
|
|
136
133
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
@@ -141,7 +138,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
|
|
|
141
138
|
} }));
|
|
142
139
|
}
|
|
143
140
|
if (secrets.length === 0) {
|
|
144
|
-
return (_jsx(
|
|
141
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
145
142
|
path: C4_ASSET_URLS.connectorSecretIcon,
|
|
146
143
|
altText: text.emptyIconAltText ?? 'Connector secrets icon',
|
|
147
144
|
}, heading: text.emptyTitle, description: text.emptyDescription, buttons: [
|
|
@@ -187,7 +184,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
|
|
|
187
184
|
onClick: onOpenDocs,
|
|
188
185
|
} }));
|
|
189
186
|
}
|
|
190
|
-
return (_jsxs(Stack, { gap: 6, children: [_jsx(
|
|
187
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4DataTable, { headers: headerData, data: secrets, actions: actions, toolbar: toolbar, title: text.title, options: {
|
|
191
188
|
actionsUseOverflowMenuMinItems: 1,
|
|
192
189
|
}, queryPrefix: 'cluster-details-connector-secrets' }), _jsx("span", { className: 'legalText', children: text.infoText })] }));
|
|
193
190
|
};
|
|
@@ -4,10 +4,15 @@ 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 {
|
|
7
|
+
import { InlineLoading, Layer } from '@carbon/react';
|
|
8
8
|
import { CheckmarkFilled, Download, ErrorFilled, RuleLocked, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useState } from 'react';
|
|
10
|
+
import { Button, CodeSnippet, Link, Stack, TextInput, Tile } from '../../ui/index.js';
|
|
11
|
+
import { useTabsFamily } from '../../ui/tabs.js';
|
|
12
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
13
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
10
14
|
export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
|
|
15
|
+
const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
|
|
11
16
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
12
17
|
const handleTabChange = (evt) => {
|
|
13
18
|
setSelectedIndex(evt.selectedIndex);
|
|
@@ -102,11 +107,11 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, scripts, text,
|
|
|
102
107
|
})()] }));
|
|
103
108
|
}
|
|
104
109
|
if (cluster.status === 'Ready') {
|
|
105
|
-
return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(
|
|
110
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] }));
|
|
106
111
|
}
|
|
107
|
-
return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(
|
|
112
|
+
return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(C4InlineNotification, { style: {
|
|
108
113
|
maxWidth: '100%',
|
|
109
114
|
width: '100%',
|
|
110
115
|
marginBottom: '24px',
|
|
111
|
-
}, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(
|
|
116
|
+
}, lowContrast: true, kind: 'warning', title: text.notificationTitle, subtitle: text.notificationText, hideCloseButton: true })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: text.title }), _jsxs("p", { children: [text.infoText, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsxs(Stack, { orientation: 'vertical', gap: 6, style: { gridTemplateColumns: '1fr' }, children: [_jsx(Tile, { children: _jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] }))] }) }) }), _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: "1. Key creation & configuration (select preferred method)" }), _jsx(Layer, { children: _jsxs(Tabs, { selectedIndex: selectedIndex, onChange: handleTabChange, children: [_jsxs(TabList, { "aria-label": 'List of tabs', contained: true, children: [_jsx(Tab, { children: text.cliTabTitle }), _jsx(Tab, { children: text.manualTabTitle })] }), _jsxs(TabPanels, { children: [_jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create your Key using the below CLI script" }), _jsx("p", { children: text.cliTabStep1 }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadScript, children: text.downloadCliScript }), _jsx("p", { children: text.cliTabStep2 }), _jsx("p", { children: text.cliTabStep3 }), _jsx("span", { children: _jsx(Link, { href: urls.cliScriptLearnMore, target: '_blank', children: text.cliTabLearnMore }) })] }) }), _jsx(TabPanel, { style: { padding: '16px' }, children: _jsxs(Stack, { children: [_jsx("h4", { children: "Create and configure your KMS key in your AWS console" }), _jsxs("p", { children: [text.manualTabStep1.replace('{region}', cluster.region), ' '] }), cluster.isDualRegion ? (_jsxs(_Fragment, { children: [_jsxs("p", { children: [text.manualTabStep2.replace('{region}', cluster.backupRegion || ''), ' '] }), _jsx("p", { children: text.manualTabStep3Dual })] })) : (_jsx("p", { children: text.manualTabStep2Single })), _jsx("label", { children: text.manualTabKeyPolicyLabel }), _jsx(CodeSnippet, { className: 'cds--layer-one', type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: scripts.keyPolicy }), _jsx(Button, { size: 'md', kind: 'tertiary', renderIcon: Download, onClick: onDownloadKeyPolicy, children: text.downloadKeyPolicy }), _jsx("span", { children: _jsx(Link, { target: '_blank', href: urls.learnMoreAboutCreatingKmsKey, children: text.snippedTileDokuLink }) })] }) })] })] }) })] }) }), _jsx(Tile, { children: _jsx(Layer, { children: inputTab }) })] })] })] }));
|
|
112
117
|
};
|
|
@@ -4,11 +4,15 @@ 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 {
|
|
8
|
-
import { Button, DataTableSkeleton, InlineNotification, Stack, Tile, } from '@carbon/react';
|
|
7
|
+
import { C3ResponsiveStack, } from '@camunda/camunda-composite-components';
|
|
9
8
|
import { Add, Chat, Edit, EventSchedule, Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
9
|
import styled from 'styled-components';
|
|
11
10
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
+
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
12
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
13
|
+
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
14
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
15
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
12
16
|
const BackupScheduleWrapper = styled.div `
|
|
13
17
|
width: 100%;
|
|
14
18
|
|
|
@@ -168,7 +172,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
168
172
|
},
|
|
169
173
|
];
|
|
170
174
|
if (showTeaser) {
|
|
171
|
-
return (_jsx(
|
|
175
|
+
return (_jsx(C4EmptyState, { card: true, icon: { path: C4_ASSET_URLS.backupIcon, altText: 'backup' }, heading: text.teaserHeading, description: _jsxs(_Fragment, { children: [text.teaserDescription, _jsx("strong", { children: text.teaserAdditionalDescription })] }), button: {
|
|
172
176
|
onClick: onTalkToExpert,
|
|
173
177
|
disabled: false,
|
|
174
178
|
label: text.teaserButton,
|
|
@@ -181,10 +185,10 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
181
185
|
} }));
|
|
182
186
|
}
|
|
183
187
|
if (isLoading) {
|
|
184
|
-
return _jsx(
|
|
188
|
+
return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
|
|
185
189
|
}
|
|
186
190
|
if (hasError) {
|
|
187
|
-
return (_jsx(
|
|
191
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
188
192
|
path: C4_ASSET_URLS.errorIcon,
|
|
189
193
|
altText: 'errorIcon',
|
|
190
194
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
@@ -195,7 +199,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
195
199
|
} }));
|
|
196
200
|
}
|
|
197
201
|
if (backups.length === 0 && !backupSchedule) {
|
|
198
|
-
return (_jsxs(_Fragment, { children: [!clusterSupportsHotBackups && (_jsx(
|
|
202
|
+
return (_jsxs(_Fragment, { children: [!clusterSupportsHotBackups && (_jsx(C4InlineNotification, { style: {
|
|
199
203
|
maxWidth: '100%',
|
|
200
204
|
width: '100%',
|
|
201
205
|
marginBottom: '24px',
|
|
@@ -209,7 +213,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
209
213
|
!clusterSupportsHotBackups ||
|
|
210
214
|
isRestoring, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
|
|
211
215
|
}
|
|
212
|
-
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(
|
|
216
|
+
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onClose: restoreError.onDismiss, onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
|
|
213
217
|
display: 'grid',
|
|
214
218
|
gridTemplateColumns: '1fr 1fr',
|
|
215
219
|
gridGap: '5px 0px',
|
|
@@ -220,7 +224,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
220
224
|
gap: '2rem',
|
|
221
225
|
maxWidth: 'calc(100vw - 64px)',
|
|
222
226
|
width: '100%',
|
|
223
|
-
}, children: _jsx(
|
|
227
|
+
}, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data: backups.map((item) => {
|
|
224
228
|
return { ...item, expansion: expandedRow(item) };
|
|
225
229
|
}), toolbar: toolbar, actions: actions, options: {
|
|
226
230
|
actionsUseOverflowMenuMinItems: 3,
|
|
@@ -4,8 +4,9 @@ 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 { Checkbox, InlineNotification, Modal, Stack } from '@carbon/react';
|
|
8
7
|
import { useState } from 'react';
|
|
8
|
+
import { Checkbox, Modal, Stack } from '../../ui/index.js';
|
|
9
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
9
10
|
export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }) => {
|
|
10
11
|
const isVersionMismatch = backup.version !== currentClusterVersion;
|
|
11
12
|
const [acknowledged, setAcknowledged] = useState(false);
|
|
@@ -45,7 +46,7 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
45
46
|
columnGap: '1rem',
|
|
46
47
|
rowGap: '0.25rem',
|
|
47
48
|
margin: 0,
|
|
48
|
-
}, children: [_jsx("dt", { children: _jsx("strong", { children: text.backupLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.name }), _jsx("dt", { children: _jsx("strong", { children: text.dateLabel }) }), _jsx("dd", { style: { margin: 0 }, children: formatDateTime(backup.completedAt) }), _jsx("dt", { children: _jsx("strong", { children: text.versionLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.version })] }), isVersionMismatch ? (_jsxs(_Fragment, { children: [_jsx(
|
|
49
|
+
}, children: [_jsx("dt", { children: _jsx("strong", { children: text.backupLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.name }), _jsx("dt", { children: _jsx("strong", { children: text.dateLabel }) }), _jsx("dd", { style: { margin: 0 }, children: formatDateTime(backup.completedAt) }), _jsx("dt", { children: _jsx("strong", { children: text.versionLabel }) }), _jsx("dd", { style: { margin: 0 }, children: backup.version })] }), isVersionMismatch ? (_jsxs(_Fragment, { children: [_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: text.versionMismatchTitle, subtitle: text.versionMismatchBody
|
|
49
50
|
.replace('{currentVersion}', currentClusterVersion)
|
|
50
51
|
.replace('{backupVersion}', backup.version) }), _jsx(Checkbox, { id: 'c4-cluster-details-hot-backups-restore-acknowledge', labelText: text.acknowledgmentLabel, checked: acknowledged, onChange: (_evt, { checked }) => setAcknowledged(checked) })] })) : (_jsx("p", { children: text.description }))] }) }));
|
|
51
52
|
};
|
package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { DataTableSkeleton, Stack } from '@carbon/react';
|
|
9
2
|
import { Edit } from '@carbon/react/icons/index.esm.js';
|
|
10
3
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
|
+
import { Stack } from '../../ui/index.js';
|
|
5
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
6
|
+
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
7
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
11
8
|
export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls, permissions, onCreateIpWhitelist, onUpdateIpWhitelist, onDeleteIpWhitelist, onOpenDocs, }) => {
|
|
12
9
|
const headerData = [
|
|
13
10
|
{
|
|
@@ -65,10 +62,10 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
|
|
|
65
62
|
]
|
|
66
63
|
: [];
|
|
67
64
|
if (isLoading) {
|
|
68
|
-
return _jsx(
|
|
65
|
+
return _jsx(C4DataTableSkeleton, { showToolbar: false, showHeader: false });
|
|
69
66
|
}
|
|
70
67
|
if (ipWhitelist.length === 0) {
|
|
71
|
-
return (_jsx(
|
|
68
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
72
69
|
path: C4_ASSET_URLS.ipWhitelistIcon,
|
|
73
70
|
altText: 'ipwhitelistIcon',
|
|
74
71
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: permissions.canCreate
|
|
@@ -90,5 +87,5 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
|
|
|
90
87
|
gap: '2rem',
|
|
91
88
|
maxWidth: 'calc(100vw - 64px)',
|
|
92
89
|
width: '100%',
|
|
93
|
-
}, children: [_jsx(
|
|
90
|
+
}, children: [_jsx(C4DataTable, { headers: headerData, data: ipWhitelist, actions: actions, toolbar: toolbar, title: text.title, queryPrefix: 'cluster-details-ip-whitelist' }), _jsx("span", { className: 'legalText', children: text.infoText })] }) }));
|
|
94
91
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
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 { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Button, CodeSnippet, Layer, Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tile, } from '@carbon/react';
|
|
2
|
+
import { Layer } from '@carbon/react';
|
|
9
3
|
import { CheckmarkFilled, Edit, Launch, PendingFilled, } from '@carbon/react/icons/index.esm.js';
|
|
10
4
|
import { useEffect, useState } from 'react';
|
|
11
5
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
6
|
+
import { Button, CodeSnippet, Link, Stack, Tile } from '../../ui/index.js';
|
|
7
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
8
|
+
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
9
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
|
|
12
10
|
const singleSnippetMaxWidth = '48rem';
|
|
13
11
|
export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, connectInAwsUrl, isLoading, isDeactivating, text, permissions, urls, onOpenActivate, onOpenPrivateEndpoint, onOpenDocs, onDeactivate, onOpenConnectInAws, onEditAllowedPrincipals, onEditAllowedRegions, }) => {
|
|
14
12
|
const endpointRows = (privateEndpoints ?? []).map((endpoint, index) => ({
|
|
@@ -167,7 +165,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
167
165
|
? text.deactivatingButton
|
|
168
166
|
: (text.deactivateButton ?? 'Deactivate service') })) : undefined;
|
|
169
167
|
if (!isReady) {
|
|
170
|
-
return (_jsx(
|
|
168
|
+
return (_jsx(C4EmptyState, { card: true, icon: {
|
|
171
169
|
path: C4_ASSET_URLS.secureConnectivityIcon,
|
|
172
170
|
altText: 'secureConnectivityIcon',
|
|
173
171
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: isLoading || status?.status !== undefined
|
|
@@ -187,42 +185,38 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
187
185
|
display: 'flex',
|
|
188
186
|
alignItems: 'center',
|
|
189
187
|
gap: 'var(--cds-spacing-05)',
|
|
190
|
-
}, children: _jsx("h4", { style: { margin: 0 }, children: text.serviceDetailsTitle ?? 'Service details' }) }), _jsx("div", { children: isNarrowLayout ? (
|
|
191
|
-
// Single-column layout: each field on its own row
|
|
192
|
-
_jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none' }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(StructuredListCell, { style: { borderTop: 'none' }, children: _jsxs("div", { style: {
|
|
188
|
+
}, children: _jsx("h4", { style: { margin: 0 }, children: text.serviceDetailsTitle ?? 'Service details' }) }), _jsx("div", { children: isNarrowLayout ? (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none' }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(C4StructuredListCell, { style: { borderTop: 'none' }, children: _jsxs("div", { style: {
|
|
193
189
|
display: 'flex',
|
|
194
190
|
justifyContent: 'space-between',
|
|
195
191
|
alignItems: 'center',
|
|
196
|
-
}, children: [statusElement, deactivateLinkElement] }) })] }), _jsxs(
|
|
192
|
+
}, children: [statusElement, deactivateLinkElement] }) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.serviceName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.type) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
|
|
197
193
|
values: status?.spec.allowedPrincipals,
|
|
198
194
|
onEdit: onEditAllowedPrincipals,
|
|
199
195
|
editLabel: 'Edit allowed principals',
|
|
200
196
|
alignToSingleSnippet: true,
|
|
201
|
-
}) })] }), _jsxs(
|
|
197
|
+
}) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedRegionsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
|
|
202
198
|
values: status?.spec.allowedRegions,
|
|
203
199
|
onEdit: onEditAllowedRegions,
|
|
204
200
|
editLabel: 'Edit supported regions',
|
|
205
201
|
alignToSingleSnippet: true,
|
|
206
202
|
wrapItems: true,
|
|
207
|
-
}) })] })] }) })) : (
|
|
208
|
-
// Two-column layout: pairs of fields side-by-side
|
|
209
|
-
_jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none', overflowX: 'auto' }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(StructuredListCell, { style: { borderTop: 'none' }, children: statusElement }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: _jsx("span", { style: { opacity: 0 }, children: "\u2014" }) }), _jsx(StructuredListCell, { style: {
|
|
203
|
+
}) })] })] }) })) : (_jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none', overflowX: 'auto' }, children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(C4StructuredListCell, { style: { borderTop: 'none' }, children: statusElement }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: _jsx("span", { style: { opacity: 0 }, children: "\u2014" }) }), _jsx(C4StructuredListCell, { style: {
|
|
210
204
|
borderTop: 'none',
|
|
211
205
|
textAlign: 'right',
|
|
212
|
-
}, children: deactivateLinkElement })] }), _jsxs(
|
|
206
|
+
}, children: deactivateLinkElement })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceNameLabel ?? 'Service name' }), _jsx(C4StructuredListCell, { style: {
|
|
213
207
|
minWidth: 0,
|
|
214
208
|
paddingRight: '40px',
|
|
215
|
-
}, children: renderInlineCodeField(endpoint?.serviceName) }), _jsx(
|
|
209
|
+
}, children: renderInlineCodeField(endpoint?.serviceName) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.serviceRegionLabel ?? 'Service region' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.region) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.serviceTypeLabel ?? 'Service type' }), _jsx(C4StructuredListCell, { style: {
|
|
216
210
|
minWidth: 0,
|
|
217
211
|
paddingRight: '40px',
|
|
218
|
-
}, children: renderInlineCodeField(endpoint?.type) }), _jsx(
|
|
212
|
+
}, children: renderInlineCodeField(endpoint?.type) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.privateDnsNameLabel ?? 'Private DNS name' }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderInlineCodeField(endpoint?.privateDnsName) })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.allowedPrincipalsLabel }), _jsx(C4StructuredListCell, { style: {
|
|
219
213
|
minWidth: 0,
|
|
220
214
|
paddingRight: '40px',
|
|
221
215
|
}, children: renderListFieldWithEdit({
|
|
222
216
|
values: status?.spec.allowedPrincipals,
|
|
223
217
|
onEdit: onEditAllowedPrincipals,
|
|
224
218
|
editLabel: 'Edit allowed principals',
|
|
225
|
-
}) }), _jsx(
|
|
219
|
+
}) }), _jsx(C4StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: text.allowedRegionsLabel }), _jsx(C4StructuredListCell, { style: { minWidth: 0 }, children: renderListFieldWithEdit({
|
|
226
220
|
values: status?.spec.allowedRegions,
|
|
227
221
|
onEdit: onEditAllowedRegions,
|
|
228
222
|
editLabel: 'Edit supported regions',
|
|
@@ -245,5 +239,5 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
245
239
|
marginBottom: '16px',
|
|
246
240
|
}, children: text.endpointConnectionsEmptyText ??
|
|
247
241
|
text.privateEndpointsEmptyText ??
|
|
248
|
-
'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(
|
|
242
|
+
'Created endpoint connections will be listed here.' })) : (_jsx("div", { style: { maxWidth: 'calc(100vw - 64px)' }, children: _jsx(C4DataTable, { isLoading: isLoading, headers: headerData, data: endpointRows, toolbar: toolbar, options: { tableSize: 'md' }, queryPrefix: 'cluster-details-secure-connectivity' }) }))] })] })] }) }), _jsx("div", { children: _jsxs(Link, { href: urls.docs, onClick: onOpenDocs, children: [_jsx("span", { children: text.learnMoreLabel }), _jsx("span", { style: { paddingLeft: 'var(--cds-spacing-02)' }, children: _jsx(Launch, { size: 16 }) })] }) })] }));
|
|
249
243
|
};
|
|
@@ -4,12 +4,14 @@ 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 { Button, InlineNotification, Link } from '@carbon/react';
|
|
7
|
+
import { C3ClusterTag, } from '@camunda/camunda-composite-components';
|
|
9
8
|
import { Add, WarningAltFilled } from '@carbon/react/icons/index.esm.js';
|
|
10
9
|
import { useCallback, useEffect, useRef, } from 'react';
|
|
10
|
+
import { Button, Link } from '../../ui/index.js';
|
|
11
11
|
import { ClusterStatusElement, normalizeClusterStatus, } from '../c4-cluster-overview/applications.js';
|
|
12
12
|
import { C4IconAndTextElement, getClusterLoadConfig, } from '../c4-cluster-overview/c4-cluster-overview.js';
|
|
13
|
+
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
14
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
13
15
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
14
16
|
import { C4PageTemplate } from '../c4-page-template/c4-page-template.js';
|
|
15
17
|
const DEFAULT_PAGE_SIZE = 10;
|
|
@@ -337,11 +339,11 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
|
|
|
337
339
|
paddingBlockEnd: 'var(--cds-spacing-07)',
|
|
338
340
|
}, children: [_jsx("p", { style: { color: 'var(--cds-text-secondary)' }, children: translations.emptyState.noClusters }), permissions.canCreateCluster && (_jsx("div", { style: { marginTop: 'var(--cds-spacing-05)' }, children: _jsx(Button, { kind: 'primary', onClick: () => onNavigate(urls.createCluster), disabled: permissions.createClusterButtonDisabled, children: translations.createButton }) }))] })));
|
|
339
341
|
}
|
|
340
|
-
return (_jsx("div", { ref: tableContainerRef, children: _jsx(
|
|
342
|
+
return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list' }) }));
|
|
341
343
|
};
|
|
342
344
|
return (_jsxs(_Fragment, { children: [trialNotification, _jsxs(C4PageTemplate, { loading: loading, header: {
|
|
343
345
|
title: translations.title,
|
|
344
|
-
}, children: [encryptionNotification && (_jsx(
|
|
346
|
+
}, children: [encryptionNotification && (_jsx(C4InlineNotification, { style: {
|
|
345
347
|
maxWidth: '100%',
|
|
346
348
|
width: '100%',
|
|
347
349
|
marginBottom: '24px',
|