@camunda/ccma-saas-frontend 0.18.11 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +4 -17
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
- package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
- package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
- package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
- package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
- package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
- package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
- package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
- package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
- package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
- package/lib/esm/components/c4-divider/c4-divider.js +5 -13
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
- package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +0 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
- package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
- package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
- package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
- package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
- package/lib/esm/components/c4-search/c4-search-results.js +44 -36
- package/lib/esm/components/c4-search/c4-search.js +5 -7
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
- package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
- package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
- package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
- package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
- package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
- package/lib/esm/index.css +107 -74
- package/lib/esm/index.d.ts +1 -9
- package/lib/esm/index.js +1 -5
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
- package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
- package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
- package/lib/esm/runtime/c4-user-theme.js +4 -4
- package/lib/esm/runtime/index.d.ts +1 -1
- package/lib/esm/runtime/index.js +1 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
- package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
- package/lib/esm/ui/c4-cluster-tag.js +1 -1
- package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
- package/lib/esm/ui/c4-modal-dialog.js +18 -9
- package/lib/esm/ui/c4-password-input.d.ts +4 -8
- package/lib/esm/ui/c4-password-input.js +4 -8
- package/lib/esm/ui/c4-text-area.d.ts +19 -0
- package/lib/esm/ui/c4-text-area.js +30 -0
- package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
- package/lib/esm/ui/ds-compact-code-block.js +1 -1
- package/lib/esm/ui/families.d.ts +13 -46
- package/lib/esm/ui/families.js +8 -51
- package/lib/esm/ui/index.d.ts +11 -53
- package/lib/esm/ui/index.js +19 -152
- package/lib/esm/ui/tabs.d.ts +1 -21
- package/lib/esm/ui/tabs.js +1 -22
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
- package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
- package/lib/esm/widgets/management/c4-management-app.js +6 -9
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
- package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
- package/package.json +3 -14
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
- package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
- package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
- package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
- package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
- package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
- package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
- package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
- package/lib/esm/ui/c4-definition-tooltip.js +0 -43
- package/lib/esm/ui/switchable.d.ts +0 -14
- package/lib/esm/ui/switchable.js +0 -27
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
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
|
-
};
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { C4ActionableNotificationProps } from './c4-actionable-notification.types.js';
|
|
10
3
|
/**
|
|
11
|
-
*
|
|
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.
|
|
4
|
+
* Actionable notification on the DS `Alert`. The action renders as a link
|
|
5
|
+
* button below the text.
|
|
18
6
|
*/
|
|
19
7
|
export declare function C4ActionableNotification(props: C4ActionableNotificationProps): JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,58 +1,16 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
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 { C3ResponsiveStack } from '@camunda/camunda-composite-components';
|
|
8
7
|
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
8
|
import { kindToAlertVariant } from '../c4-inline-notification/c4-inline-notification.js';
|
|
12
|
-
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
13
9
|
/**
|
|
14
|
-
*
|
|
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.
|
|
10
|
+
* Actionable notification on the DS `Alert`. The action renders as a link
|
|
11
|
+
* button below the text.
|
|
21
12
|
*/
|
|
22
13
|
export function C4ActionableNotification(props) {
|
|
23
|
-
const
|
|
24
|
-
|
|
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 (_jsx(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick, children: _jsxs("div", { className: 'flex flex-wrap gap-4', 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] }) }));
|
|
14
|
+
const { kind, title, subtitle, actionButtonLabel, onActionButtonClick, hideCloseButton, onCloseButtonClick, secondaryActionButtonLabel, onSecondaryActionButtonClick, role, style, } = props;
|
|
15
|
+
return (_jsx(Alert, { role: role, style: style, variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: typeof title === 'string' || title === undefined ? (subtitle) : (_jsxs(_Fragment, { children: [_jsx("strong", { children: title }), " ", subtitle] })), dismissible: !hideCloseButton, onDismiss: onCloseButtonClick, children: _jsxs("div", { className: 'flex flex-wrap gap-4', 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
16
|
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
1
2
|
export interface C4ActionableNotificationProps {
|
|
2
|
-
kind
|
|
3
|
-
title
|
|
4
|
-
subtitle
|
|
5
|
-
actionButtonLabel
|
|
6
|
-
onActionButtonClick
|
|
7
|
-
|
|
3
|
+
kind?: string;
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
subtitle?: ReactNode;
|
|
6
|
+
actionButtonLabel?: string;
|
|
7
|
+
onActionButtonClick?: () => void;
|
|
8
|
+
hideCloseButton?: boolean;
|
|
9
|
+
onCloseButtonClick?: () => void;
|
|
10
|
+
secondaryActionButtonLabel?: string;
|
|
11
|
+
onSecondaryActionButtonClick?: () => void;
|
|
12
|
+
role?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
lowContrast?: boolean;
|
|
8
15
|
orientation?: 'horizontal' | 'vertical';
|
|
16
|
+
appearance?: 'notification' | 'banner' | 'static';
|
|
9
17
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Stack } from '../../ui/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Select, SelectItem } from '../../ui/families.js';
|
|
4
4
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
5
5
|
export const C4AlphaClusterAtCheckout = (props) => {
|
|
6
|
-
const { Select, SelectItem } = useSelectFamily();
|
|
7
6
|
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
7
|
};
|
|
@@ -6,13 +6,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { useCallback, useMemo } from 'react';
|
|
8
8
|
import { Checkbox } from '../../ui/index.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// card to zero padding there. The fallback holds the Carbon value.
|
|
13
|
-
const SPACING_02 = 'var(--cds-spacing-02, 0.25rem)';
|
|
14
|
-
const SPACING_05 = 'var(--cds-spacing-05, 1rem)';
|
|
15
|
-
const SPACING_06 = 'var(--cds-spacing-06, 1.5rem)';
|
|
9
|
+
const SPACING_02 = '0.25rem';
|
|
10
|
+
const SPACING_05 = '1rem';
|
|
11
|
+
const SPACING_06 = '1.5rem';
|
|
16
12
|
/**
|
|
17
13
|
* The scope groups flow into CSS columns instead of one tall list. The browser
|
|
18
14
|
* divides the available width by `columnWidth` to get the column count, so the
|
|
@@ -30,7 +26,7 @@ const COLUMNS_STYLE = {
|
|
|
30
26
|
const GROUP_CARD_STYLE = {
|
|
31
27
|
// A group must not split over two columns. The card is the unit that moves.
|
|
32
28
|
breakInside: 'avoid',
|
|
33
|
-
border: '1px solid var(--
|
|
29
|
+
border: '1px solid var(--border)',
|
|
34
30
|
padding: SPACING_05,
|
|
35
31
|
margin: `0 0 ${SPACING_05} 0`,
|
|
36
32
|
// A fieldset defaults to `min-inline-size: min-content`, which makes it wider
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
*/
|
|
8
8
|
import { Button, Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4AppTeaserCard } from '../c4-app-teaser-card/c4-app-teaster-card.js';
|
|
10
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
10
11
|
export const C4AppTeaserCards = ({ title, subtitle, cards, cta, subtext, }) => {
|
|
11
12
|
const innerColumns = new Array(cards.length).fill('340px');
|
|
12
13
|
const gridTemplateColumns = `1fr ${innerColumns.join(' ')} 1fr`;
|
|
@@ -14,9 +15,9 @@ export const C4AppTeaserCards = ({ title, subtitle, cards, cta, subtext, }) => {
|
|
|
14
15
|
return (_jsxs(Stack, { gap: 8, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h1", { style: { textAlign: 'center' }, children: title }), _jsx("p", { style: { textAlign: 'center' }, children: subtitle })] }), _jsx(Stack, { gap: 6, orientation: 'vertical', children: _jsx(Stack, { gap: 6, children: _jsx("div", { style: { display: 'grid', gridTemplateColumns, gap: gridGap }, children: cards.map((card, index) => (_createElement(C4AppTeaserCard, { ...card, key: `teasercardz${index}`, grid: { column: index + 2 } }))) }) }) }), _jsxs(Stack, { gap: 5, children: [_jsx("div", { style: {
|
|
15
16
|
display: 'grid',
|
|
16
17
|
justifyContent: 'center',
|
|
17
|
-
}, children: _jsx(Button, { id: 'teasercards-button', onClick: cta.action, renderIcon: cta.renderIcon, isExpressive: true, children: cta.text }) }), _jsx("div", { style: {
|
|
18
|
+
}, children: cta.disabled && cta.disabledMessage ? (_jsx(C4InlineNotification, { kind: 'info', title: cta.disabledMessage, hideCloseButton: true })) : (_jsx(Button, { id: 'teasercards-button', onClick: cta.action, disabled: cta.disabled, renderIcon: cta.renderIcon, isExpressive: true, children: cta.text })) }), !cta.disabled && subtext && (_jsx("div", { style: {
|
|
18
19
|
display: 'grid',
|
|
19
20
|
justifyContent: 'center',
|
|
20
21
|
fontSize: '14px',
|
|
21
|
-
}, children: subtext })] })] }));
|
|
22
|
+
}, children: subtext }))] })] }));
|
|
22
23
|
};
|
|
@@ -8,6 +8,9 @@ export interface C4AppTeaserCardsProps {
|
|
|
8
8
|
text: string;
|
|
9
9
|
action: () => void;
|
|
10
10
|
renderIcon?: any;
|
|
11
|
+
/** Shows `disabledMessage` instead of the button, or a disabled button without a message. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
disabledMessage?: string;
|
|
11
14
|
};
|
|
12
15
|
subtext: string;
|
|
13
16
|
}
|
|
@@ -58,7 +58,7 @@ export const C4AsyncModal = ({ open, loadingText, modalHeading, onRequestClose,
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
const content = isDoingAsyncWork ? _jsx(SkeletonText, {}) : children;
|
|
61
|
-
const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(C4ActionableNotification, { kind: 'error',
|
|
61
|
+
const body = (_jsxs(Stack, { gap: 6, children: [content, isError() ? (error.action ? (_jsx(C4ActionableNotification, { kind: 'error', 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: 'status' }))) : ('')] }));
|
|
62
62
|
// ///////////////////
|
|
63
63
|
// COMPONENT
|
|
64
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,12 +4,10 @@ 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 { Checkmark, Launch } from '@carbon/react/icons/index.esm.js';
|
|
7
|
+
import { Check, ExternalLink } from 'lucide-react';
|
|
9
8
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
9
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
-
import {
|
|
12
|
-
import { Button, Checkbox, Link, Modal, Stack } from '../../ui/index.js';
|
|
10
|
+
import { Button, Checkbox, Link, Loading, Modal, Stack } from '../../ui/index.js';
|
|
13
11
|
import { SettingsTile } from '../c4-cluster-settings/elements/settings-tile.js';
|
|
14
12
|
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
15
13
|
const AUDIT_LOG_DESCRIPTION = 'The audit log records user and client operations across administration, deployed resources, and user tasks. It helps your team trace events, when they occurred, what was affected, and whether they were successful.';
|
|
@@ -31,7 +29,6 @@ function arraysEqual(a, b) {
|
|
|
31
29
|
return sortedA.every((item, index) => item === sortedB[index]);
|
|
32
30
|
}
|
|
33
31
|
export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate, onEnable, onDisable, learnMoreUrl, permissions, }) => {
|
|
34
|
-
const isDs = useC4DesignSystem() === 'ds';
|
|
35
32
|
const [localUserCategories, setLocalUserCategories] = useState(userCategories);
|
|
36
33
|
const [localClientCategories, setLocalClientCategories] = useState(clientCategories);
|
|
37
34
|
const [isDirty, setIsDirty] = useState(false);
|
|
@@ -105,31 +102,31 @@ export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate
|
|
|
105
102
|
const settingsBody = (_jsxs(_Fragment, { children: [_jsxs("div", { children: [_jsx("p", { style: {
|
|
106
103
|
fontWeight: 'bold',
|
|
107
104
|
marginBottom: '0.5rem',
|
|
108
|
-
color: 'var(--
|
|
105
|
+
color: 'var(--neutral-foreground-strong)',
|
|
109
106
|
}, children: "User operations to log" }), _jsx("p", { style: {
|
|
110
|
-
fontSize: '
|
|
111
|
-
color: 'var(--
|
|
107
|
+
fontSize: '0.875rem',
|
|
108
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
112
109
|
marginBottom: '0.5rem',
|
|
113
110
|
}, children: "Operation categories" }), _jsx("div", { style: {
|
|
114
111
|
display: 'flex',
|
|
115
|
-
gap:
|
|
112
|
+
gap: '1.5rem',
|
|
116
113
|
flexWrap: 'wrap',
|
|
117
114
|
}, children: ALL_CATEGORIES.map((category) => (_jsx("div", { children: _jsx(Checkbox, { id: `user-category-${category}`, labelText: CATEGORY_LABELS[category], checked: localUserCategories.includes(category), disabled: !permissions.mayChange || isSaving, onChange: (_, { checked }) => handleUserCategoryChange(category, checked) }) }, `user-${category}`))) })] }), _jsxs("div", { children: [_jsx("p", { style: {
|
|
118
115
|
fontWeight: 'bold',
|
|
119
116
|
marginBottom: '0.5rem',
|
|
120
|
-
color: 'var(--
|
|
117
|
+
color: 'var(--neutral-foreground-strong)',
|
|
121
118
|
}, children: "Client operations to log" }), _jsx("p", { style: {
|
|
122
|
-
fontSize: '
|
|
123
|
-
color: 'var(--
|
|
119
|
+
fontSize: '0.875rem',
|
|
120
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
124
121
|
marginBottom: '0.5rem',
|
|
125
122
|
}, children: "Operation categories" }), _jsx("div", { style: {
|
|
126
123
|
display: 'flex',
|
|
127
|
-
gap:
|
|
124
|
+
gap: '1.5rem',
|
|
128
125
|
flexWrap: 'wrap',
|
|
129
126
|
}, children: ALL_CATEGORIES.map((category) => (_jsx("div", { children: _jsx(Checkbox, { id: `client-category-${category}`, labelText: CATEGORY_LABELS[category], checked: localClientCategories.includes(category), disabled: !permissions.mayChange || isSaving, onChange: (_, { checked }) => handleClientCategoryChange(category, checked) }) }, `client-${category}`))) })] }), permissions.mayChange && (_jsxs("div", { style: {
|
|
130
127
|
display: 'flex',
|
|
131
128
|
flexDirection: 'column',
|
|
132
|
-
gap: '
|
|
129
|
+
gap: '1rem',
|
|
133
130
|
}, children: [_jsx("div", { style: {
|
|
134
131
|
display: 'flex',
|
|
135
132
|
alignItems: 'center',
|
|
@@ -138,23 +135,10 @@ export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate
|
|
|
138
135
|
}, children: saveConfirmed ? (_jsxs("div", { style: {
|
|
139
136
|
display: 'flex',
|
|
140
137
|
alignItems: 'center',
|
|
141
|
-
gap: '
|
|
142
|
-
paddingLeft: '
|
|
138
|
+
gap: '0.5rem',
|
|
139
|
+
paddingLeft: '1rem',
|
|
143
140
|
height: '2.5rem',
|
|
144
|
-
fontSize: '
|
|
145
|
-
}, children: [_jsx(
|
|
146
|
-
|
|
147
|
-
// settings" block of the Settings tab.
|
|
148
|
-
const settingsPanel = isDs ? (_jsx(SettingsTile, { headingLevel: 'h2', title: 'Audit log of operations', description: AUDIT_LOG_DESCRIPTION, children: _jsx(Stack, { gap: 6, children: settingsBody }) })) : null;
|
|
149
|
-
return (_jsxs(Stack, { gap: 6, children: [settingsPanel ?? (_jsx("div", { style: {
|
|
150
|
-
backgroundColor: 'var(--cds-layer-01)',
|
|
151
|
-
padding: '2rem',
|
|
152
|
-
}, children: _jsxs(Stack, { gap: 6, children: [_jsxs("div", { children: [_jsx("h2", { style: {
|
|
153
|
-
fontSize: 'var(--cds-heading-04-font-size)',
|
|
154
|
-
fontWeight: 'var(--cds-heading-04-font-weight)',
|
|
155
|
-
marginBottom: '0.75rem',
|
|
156
|
-
}, children: "Audit log of operations" }), _jsx("p", { style: {
|
|
157
|
-
color: 'var(--cds-text-secondary)',
|
|
158
|
-
maxWidth: '40rem',
|
|
159
|
-
}, children: AUDIT_LOG_DESCRIPTION })] }), settingsBody] }) })), _jsx(Link, { href: learnMoreUrl, target: '_blank', rel: 'noopener noreferrer', renderIcon: Launch, children: "Learn more about audit log" }), _jsx(Modal, { open: showDisableModal, modalHeading: 'Disable the audit log', primaryButtonText: 'Disable', secondaryButtonText: 'Cancel', danger: true, onRequestClose: () => setShowDisableModal(false), onRequestSubmit: handleDisableConfirm, onSecondarySubmit: () => setShowDisableModal(false), children: _jsxs("p", { children: ["Are you sure you want to disable the audit log for the cluster?", _jsx("br", {}), "User and client operations will no longer be logged."] }) })] }));
|
|
141
|
+
fontSize: '0.875rem',
|
|
142
|
+
}, children: [_jsx(Check, { size: 16, style: { color: 'var(--success-action-default)' } }), _jsx("span", { style: { color: 'var(--neutral-foreground-subtle)' }, children: "Updated" })] })) : isSaving ? (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: [_jsx(Loading, { small: true, withOverlay: false, description: 'Saving...' }), _jsx("span", { children: "Saving..." })] })) : (_jsx(Button, { kind: 'tertiary', size: 'md', disabled: !isDirty, onClick: handleUpdate, children: "Update" })) }), _jsx("div", { children: _jsx(Button, { kind: 'ghost', size: 'md', style: { color: 'var(--danger-action-default)' }, onClick: () => setShowDisableModal(true), children: "Disable audit log" }) })] }))] }));
|
|
143
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx(SettingsTile, { headingLevel: 'h2', title: 'Audit log of operations', description: AUDIT_LOG_DESCRIPTION, children: _jsx(Stack, { gap: 6, children: settingsBody }) }), _jsx(Link, { href: learnMoreUrl, target: '_blank', rel: 'noopener noreferrer', renderIcon: ExternalLink, children: "Learn more about audit log" }), _jsx(Modal, { open: showDisableModal, modalHeading: 'Disable the audit log', primaryButtonText: 'Disable', secondaryButtonText: 'Cancel', danger: true, onRequestClose: () => setShowDisableModal(false), onRequestSubmit: handleDisableConfirm, onSecondarySubmit: () => setShowDisableModal(false), children: _jsxs("p", { children: ["Are you sure you want to disable the audit log for the cluster?", _jsx("br", {}), "User and client operations will no longer be logged."] }) })] }));
|
|
160
144
|
};
|
|
@@ -1,12 +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 { Column, Grid } from '@carbon/react';
|
|
8
2
|
import styled from 'styled-components';
|
|
9
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
10
3
|
import { Stack } from '../../ui/index.js';
|
|
11
4
|
import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
|
|
12
5
|
import { ClusterReservations } from './elements/cluster-reservations.js';
|
|
@@ -33,13 +26,12 @@ const Wrapper = styled.div `
|
|
|
33
26
|
}
|
|
34
27
|
`;
|
|
35
28
|
export const C4BillingPage = ({ title, subheading, planDetails, usageAlerts, clusterReservations, currentUsageMetrics, isEnterpriseOrg = false, }) => {
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, children: _jsx(ClusterReservations, { ...clusterReservations }) }) }) })] })] }) }) }));
|
|
29
|
+
// The page sits in a tab under the `h1` page title of the page template, so
|
|
30
|
+
// its own title is an `h2`.
|
|
31
|
+
const component = (_jsx(C4PageLayout, { children: _jsx(Wrapper, { children: _jsxs(Stack, { gap: 6, children: [_jsx("div", { style: { ...STYLES.grid }, children: _jsxs(Stack, { gap: 6, children: [title && _jsx("h2", { children: title }), subheading && (_jsx("span", { style: { color: 'var(--neutral-foreground-subtle)' }, 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("div", { style: { ...STYLES.grid }, children: _jsx(CurrentUsageMetrics, { ...currentUsageMetrics, isEnterpriseOrg: isEnterpriseOrg }) }), _jsx("div", { style: { ...STYLES.grid }, children: _jsx("div", { style: {
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexDirection: 'column',
|
|
34
|
+
overflowX: 'auto',
|
|
35
|
+
}, children: _jsx(ClusterReservations, { ...clusterReservations }) }) })] })] }) }) }));
|
|
44
36
|
return component;
|
|
45
37
|
};
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
6
|
export const BodyCompact01 = {
|
|
7
|
-
fontSize: '
|
|
8
|
-
fontWeight: '
|
|
9
|
-
lineHeight: '
|
|
10
|
-
letterSpacing: '
|
|
11
|
-
color: `var(--
|
|
7
|
+
fontSize: '0.875rem !important',
|
|
8
|
+
fontWeight: '400 !important',
|
|
9
|
+
lineHeight: '1.28572 !important',
|
|
10
|
+
letterSpacing: '0.16px !important',
|
|
11
|
+
color: `var(--neutral-foreground-subtle)`,
|
|
12
12
|
};
|
|
13
13
|
export const Heading03 = {
|
|
14
|
-
fontSize: '
|
|
15
|
-
fontWeight: '
|
|
16
|
-
lineHeight: '
|
|
17
|
-
letterSpacing: '
|
|
14
|
+
fontSize: '1.25rem',
|
|
15
|
+
fontWeight: '400',
|
|
16
|
+
lineHeight: '1.4',
|
|
17
|
+
letterSpacing: '0',
|
|
18
18
|
};
|
|
@@ -4,7 +4,6 @@ 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 } from '@carbon/react';
|
|
8
7
|
import { useEffect, useState } from 'react';
|
|
9
8
|
import { Stack } from '../../../ui/index.js';
|
|
10
9
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
@@ -50,11 +49,18 @@ export const CurrentUsageMetrics = ({ title, decisionInstances, description, gen
|
|
|
50
49
|
break;
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
|
-
const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, children: ['sm', 'md'].includes(mediaSize) ? (_jsx(Stack, { gap: 5, children: Array.from({ length: Math.ceil(metrics.length / 2) }, (_, rowIndex) => (_jsx(
|
|
52
|
+
const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, children: ['sm', 'md'].includes(mediaSize) ? (_jsx(Stack, { gap: 5, children: Array.from({ length: Math.ceil(metrics.length / 2) }, (_, rowIndex) => (_jsx("div", { style: metricGrid(2), children: metrics
|
|
54
53
|
.slice(rowIndex * 2, rowIndex * 2 + 2)
|
|
55
|
-
.map((metric, colIndex) => (_jsx(
|
|
54
|
+
.map((metric, colIndex) => (_jsx("div", { children: metric }, `metric-${metricsOrder[rowIndex * 2 + colIndex]}`))) }, `row-${rowIndex}`))) })) : (_jsx("div", { style: metricGrid(4), children: metrics.map((metric, index) => (_jsx("div", { children: metric }, `metric-${metricsOrder[index]}`))) })) }));
|
|
56
55
|
return component;
|
|
57
56
|
};
|
|
57
|
+
function metricGrid(columns) {
|
|
58
|
+
return {
|
|
59
|
+
...STYLES.grid,
|
|
60
|
+
display: 'grid',
|
|
61
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
58
64
|
export function mediaSizeByWidth(width) {
|
|
59
65
|
let size = 'sm';
|
|
60
66
|
if (width < 672) {
|
|
@@ -6,11 +6,11 @@ export const PlanDetails = ({ title, description, loading, plan, additional, })
|
|
|
6
6
|
return component;
|
|
7
7
|
};
|
|
8
8
|
const PlanDetailsItem = ({ description, subTitle, title, titleAdditional, }) => {
|
|
9
|
-
const component = (_jsxs("div", { style: { display: 'grid', gridTemplateRows: 'auto auto auto 1fr' }, children: [_jsx("p", { style: { ...BodyCompact01 }, children: subTitle }), _jsxs("p", { children: [_jsx("span", { style: { ...Heading03 }, children: title }), titleAdditional && (_jsx("span", { className: '
|
|
10
|
-
color: 'var(--
|
|
9
|
+
const component = (_jsxs("div", { style: { display: 'grid', gridTemplateRows: 'auto auto auto 1fr' }, children: [_jsx("p", { style: { ...BodyCompact01 }, children: subTitle }), _jsxs("p", { children: [_jsx("span", { style: { ...Heading03 }, children: title }), titleAdditional && (_jsx("span", { className: 'c4-label', style: {
|
|
10
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
11
11
|
alignSelf: 'end',
|
|
12
12
|
justifySelf: 'start',
|
|
13
13
|
paddingLeft: '0.5rem',
|
|
14
|
-
}, children: titleAdditional }))] }), description && (_jsx("p", { className: '
|
|
14
|
+
}, children: titleAdditional }))] }), description && (_jsx("p", { className: 'c4-label', style: { color: 'var(--neutral-foreground-subtle)' }, children: description }))] }));
|
|
15
15
|
return component;
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ export declare enum CHART_COLORS {
|
|
|
4
4
|
RED = "#FF832B",// Orange color (original "red")
|
|
5
5
|
GREEN = "#24a148"
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
7
|
+
/** Design-system colors for `CHART_COLORS`, shared with `cluster-load.tsx`. */
|
|
8
8
|
export declare const CHART_COLORS_DS: Record<CHART_COLORS, string>;
|
|
9
9
|
export interface ValueMetricProps {
|
|
10
10
|
title: string;
|
|
@@ -4,9 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { WarningAlt } from '@carbon/react/icons/index.esm.js';
|
|
9
|
-
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
7
|
+
import { TriangleAlert } from 'lucide-react';
|
|
10
8
|
import { DefinitionTooltip, Stack } from '../../../ui/index.js';
|
|
11
9
|
import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
|
|
12
10
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
@@ -18,7 +16,7 @@ export var CHART_COLORS;
|
|
|
18
16
|
CHART_COLORS["RED"] = "#FF832B";
|
|
19
17
|
CHART_COLORS["GREEN"] = "#24a148";
|
|
20
18
|
})(CHART_COLORS || (CHART_COLORS = {}));
|
|
21
|
-
/**
|
|
19
|
+
/** Design-system colors for `CHART_COLORS`, shared with `cluster-load.tsx`. */
|
|
22
20
|
export const CHART_COLORS_DS = {
|
|
23
21
|
[CHART_COLORS.BLUE]: DS_STATUS_COLORS.info,
|
|
24
22
|
[CHART_COLORS.RED]: DS_STATUS_COLORS.danger,
|
|
@@ -34,7 +32,6 @@ export const ValueMetric = ({ title, metric, loading, isEnterpriseOrg = false, }
|
|
|
34
32
|
max: Number(metric.value.max),
|
|
35
33
|
currentPostfix: metric.value.currentPostfix,
|
|
36
34
|
maxPostfix: metric.value.maxPostfix,
|
|
37
|
-
label: title,
|
|
38
35
|
isEnterpriseOrg,
|
|
39
36
|
};
|
|
40
37
|
break;
|
|
@@ -52,7 +49,7 @@ export const ValueMetric = ({ title, metric, loading, isEnterpriseOrg = false, }
|
|
|
52
49
|
display: 'grid',
|
|
53
50
|
gridTemplateColumns: 'auto 1fr',
|
|
54
51
|
gap: '0.5rem',
|
|
55
|
-
}, children: [_jsx(
|
|
52
|
+
}, children: [_jsx(TriangleAlert, { style: {
|
|
56
53
|
color: CHART_COLORS.RED,
|
|
57
54
|
} }), _jsxs("p", { children: [_jsx(DefinitionTooltip, { openOnHover: true, definition: metric.overagesDescription, children: _jsx("span", { children: "Overages" }) }), ' ', "applied"] })] }))] }) }));
|
|
58
55
|
return component;
|
|
@@ -62,11 +59,13 @@ const SimpleText = ({ title, subTitle }) => {
|
|
|
62
59
|
display: 'grid',
|
|
63
60
|
gridTemplateColumns: '1fr auto',
|
|
64
61
|
width: '100%',
|
|
65
|
-
}, children: [_jsx("p", { style: { fontSize: '18px' }, children: title }), subTitle && (_jsx("p", { style: {
|
|
62
|
+
}, children: [_jsx("p", { style: { fontSize: '18px' }, children: title }), subTitle && (_jsx("p", { style: {
|
|
63
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
64
|
+
alignSelf: 'end',
|
|
65
|
+
}, children: subTitle }))] }) }));
|
|
66
66
|
return component;
|
|
67
67
|
};
|
|
68
|
-
const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPostfix,
|
|
69
|
-
const designSystem = useC4DesignSystem();
|
|
68
|
+
const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPostfix, isEnterpriseOrg = false, }) => {
|
|
70
69
|
// Determine color based on usage and organization type
|
|
71
70
|
let barColor = CHART_COLORS.BLUE;
|
|
72
71
|
if (current > max) {
|
|
@@ -74,51 +73,24 @@ const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPo
|
|
|
74
73
|
// Non-enterprise orgs: use RED (#FF832B - orange)
|
|
75
74
|
barColor = isEnterpriseOrg ? CHART_COLORS.GREEN : CHART_COLORS.RED;
|
|
76
75
|
}
|
|
77
|
-
|
|
78
|
-
current: formatNumber(current),
|
|
79
|
-
max: maxPostfix
|
|
80
|
-
? `${formatNumber(max)} ${maxPostfix}`
|
|
81
|
-
: `${formatNumber(max)}`,
|
|
82
|
-
color: barColor,
|
|
83
|
-
};
|
|
76
|
+
let currentText = formatNumber(current);
|
|
84
77
|
if (currentPrefix) {
|
|
85
|
-
|
|
78
|
+
currentText = `${currentPrefix} ${currentText}`;
|
|
86
79
|
}
|
|
87
80
|
if (currentPostfix) {
|
|
88
|
-
|
|
81
|
+
currentText = `${currentText} ${currentPostfix}`;
|
|
89
82
|
}
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
meter: {
|
|
94
|
-
showLabels: false,
|
|
95
|
-
proportional: {
|
|
96
|
-
total: max,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
color: {
|
|
100
|
-
scale: {
|
|
101
|
-
valuemetrics: data.color,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
legend: {
|
|
105
|
-
enabled: false,
|
|
106
|
-
},
|
|
107
|
-
toolbar: {
|
|
108
|
-
enabled: false,
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
chartOptions.color.scale[group] = data.color;
|
|
83
|
+
const maxText = maxPostfix
|
|
84
|
+
? `${formatNumber(max)} ${maxPostfix}`
|
|
85
|
+
: `${formatNumber(max)}`;
|
|
112
86
|
const component = (_jsxs(Stack, { gap: 1, children: [_jsxs("div", { style: {
|
|
113
87
|
display: 'grid',
|
|
114
88
|
gridTemplateColumns: '1fr auto',
|
|
115
89
|
width: '100%',
|
|
116
|
-
}, children: [_jsx("p", { style: { fontSize: '18px' }, children:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
value: current,
|
|
120
|
-
},
|
|
121
|
-
], options: chartOptions }))] }));
|
|
90
|
+
}, children: [_jsx("p", { style: { fontSize: '18px' }, children: currentText }), _jsx("p", { style: {
|
|
91
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
92
|
+
alignSelf: 'end',
|
|
93
|
+
}, children: maxText })] }), max > 0 && (_jsx(DsMeterChart, { value: current, max: max, color: CHART_COLORS_DS[barColor] }))] }));
|
|
122
94
|
return component;
|
|
123
95
|
};
|
|
124
96
|
function formatNumber(number) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
3
2
|
import { BreadcrumbSkeleton, CodeSnippet, DsHeading, Link, OverflowMenu, OverflowMenuItem, Stack, Tag, } from '../../ui/index.js';
|
|
4
|
-
import {
|
|
3
|
+
import { Breadcrumb, BreadcrumbItem } from '../../ui/families.js';
|
|
5
4
|
const breadCrumbWrapperStyles = {
|
|
6
5
|
minHeight: '40px',
|
|
7
6
|
display: 'grid',
|
|
@@ -16,9 +15,6 @@ const headerRowStyles = {
|
|
|
16
15
|
gap: '1rem',
|
|
17
16
|
};
|
|
18
17
|
export const C4Breadcrumb = ({ loading, noTrailingSlash, elements, title, menu, tag, indicator, subtitleBadges, codeSnippet, }) => {
|
|
19
|
-
const { Breadcrumb, BreadcrumbItem } = useBreadcrumbFamily();
|
|
20
|
-
const designSystem = useC4DesignSystem();
|
|
21
|
-
const isDs = designSystem === 'ds';
|
|
22
18
|
let breadcrumb = null;
|
|
23
19
|
if (loading) {
|
|
24
20
|
// Same "no elements, no breadcrumb" rule as the loaded branch that
|
|
@@ -35,11 +31,9 @@ export const C4Breadcrumb = ({ loading, noTrailingSlash, elements, title, menu,
|
|
|
35
31
|
element.onClick();
|
|
36
32
|
}
|
|
37
33
|
}, style: { cursor: 'pointer' }, children: element.label }) }, element.key));
|
|
38
|
-
}) })), (menu || title || tag || indicator || codeSnippet) && (_jsxs("div", { style: headerRowStyles, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 4,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}) })), indicator && _jsx("div", { style: { marginLeft: 'auto' }, children: indicator })] })), subtitleBadges &&
|
|
42
|
-
(isDs ? (_jsx("div", { className: 'flex flex-wrap items-center gap-1.5', children: subtitleBadges })) : (_jsx("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: subtitleBadges })))] }));
|
|
34
|
+
}) })), (menu || title || tag || indicator || codeSnippet) && (_jsxs("div", { style: headerRowStyles, children: [_jsxs(Stack, { orientation: 'horizontal', gap: 4, className: 'items-center', children: [title && (_jsx(DsHeading, { as: 'h1', variant: 'heading-lg', className: 'm-0', children: title })), tag && _jsx(Tag, { type: 'blue', children: tag }), codeSnippet?.text && (_jsx(CodeSnippet, { feedback: codeSnippet?.copyFeedback, type: 'inline', children: codeSnippet.text }))] }), menu && (_jsx(OverflowMenu, { "aria-label": 'cluster operations', children: menu.map((item) => {
|
|
35
|
+
return (_jsx(OverflowMenuItem, { onClick: () => item.onClick(), itemText: item.label, isDelete: item.isDelete }, item.key));
|
|
36
|
+
}) })), indicator && _jsx("div", { style: { marginLeft: 'auto' }, children: indicator })] })), subtitleBadges && (_jsx("div", { className: 'flex flex-wrap items-center gap-1.5', children: subtitleBadges }))] }));
|
|
43
37
|
}
|
|
44
38
|
return _jsx("div", { style: breadCrumbWrapperStyles, children: breadcrumb });
|
|
45
39
|
};
|
|
@@ -3,4 +3,4 @@ import type { C4AlluvialChartDefinition } from '../c4-charts-dashboard.types.js'
|
|
|
3
3
|
export type C4AlluvialChartProps = C4AlluvialChartDefinition & {
|
|
4
4
|
theme: 'g10' | 'g100';
|
|
5
5
|
};
|
|
6
|
-
export declare const C4AlluvialChart: ({ title, dataPoints, nodes, height, gradient,
|
|
6
|
+
export declare const C4AlluvialChart: ({ title, dataPoints, nodes, height, gradient, }: C4AlluvialChartProps) => JSX.Element;
|