@camunda/ccma-saas-frontend 0.4.0 → 0.6.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/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +6 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- 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 +2 -2
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +24 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +14 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +2 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +29 -11
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +6 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +15 -53
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +1 -1
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/ds-line-chart.js +2 -2
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +29 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +54 -6
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +28 -0
- package/lib/esm/i18n/en/modals/backups.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +15 -3
- package/lib/esm/i18n/en/pages/clusters.json +4 -1
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +2 -2
- package/lib/esm/runtime/c4-console-data-store.d.ts +1 -1
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +39 -15
- package/lib/esm/runtime/to-api-config.d.ts +1 -1
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +38 -0
- package/lib/esm/utils/role-labels.js +160 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +66 -4
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +16 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +20 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +134 -63
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +21 -7
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +111 -47
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +20 -3
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +5 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +1 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +157 -55
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +18 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +5 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +98 -93
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +2 -2
- package/lib/esm/widgets/user-details/c4-user-details-page.js +46 -85
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +2 -0
- package/package.json +46 -29
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -122
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -25
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-context.spec.js +0 -354
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -122
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -409
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -82
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsIpWhitelistProps, IpWhitelistItem } from './c4-cluster-details-ip-whitelist.types';
|
|
1
|
+
import type { C4ClusterDetailsIpWhitelistProps, IpWhitelistItem } from './c4-cluster-details-ip-whitelist.types.js';
|
|
2
2
|
export declare const baseText: C4ClusterDetailsIpWhitelistProps['text'];
|
|
3
3
|
export declare const baseUrls: C4ClusterDetailsIpWhitelistProps['urls'];
|
|
4
4
|
export declare const basePermissions: C4ClusterDetailsIpWhitelistProps['permissions'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsSecureConnectivityProps } from './c4-cluster-details-secure-connectivity.types';
|
|
2
|
+
import type { C4ClusterDetailsSecureConnectivityProps } from './c4-cluster-details-secure-connectivity.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsSecureConnectivity: ({ status, privateEndpoints, connectInAwsUrl, isLoading, isDeactivating, text, permissions, urls, onOpenActivate, onOpenPrivateEndpoint, onOpenDocs, onDeactivate, onOpenConnectInAws, onEditAllowedPrincipals, onEditAllowedRegions, }: C4ClusterDetailsSecureConnectivityProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterListProps } from './c4-cluster-list.types';
|
|
3
|
-
export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
|
|
2
|
+
import type { C4ClusterListProps } from './c4-cluster-list.types.js';
|
|
3
|
+
export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isFailoverSource, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
|
|
@@ -24,7 +24,7 @@ import { C4PageTemplate } from '../c4-page-template/c4-page-template.js';
|
|
|
24
24
|
const DS_STATUS_COLUMN_MIN_WIDTH = '11rem';
|
|
25
25
|
const DS_GENERATION_COLUMN_MAX_WIDTH = '10rem';
|
|
26
26
|
const DS_REGION_COLUMN_MAX_WIDTH = '9rem';
|
|
27
|
-
const DEFAULT_PAGE_SIZE =
|
|
27
|
+
const DEFAULT_PAGE_SIZE = 25;
|
|
28
28
|
const PAGE_NUMBER_SELECTOR = '.cds--select__page-number select';
|
|
29
29
|
const PAGE_SIZE_SELECTOR = '.cds--select__item-count select';
|
|
30
30
|
const PAGE_FORWARD_BUTTON_SELECTOR = '.cds--pagination__button--forward';
|
|
@@ -37,7 +37,7 @@ function isPlainLeftClick(event) {
|
|
|
37
37
|
!event.ctrlKey &&
|
|
38
38
|
!event.shiftKey);
|
|
39
39
|
}
|
|
40
|
-
export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }) => {
|
|
40
|
+
export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isFailoverSource, isRunningOnUnsupportedGeneration, }) => {
|
|
41
41
|
const designSystem = useC4DesignSystem();
|
|
42
42
|
const isDsMode = designSystem === 'ds';
|
|
43
43
|
const tableContainerRef = useRef(null);
|
|
@@ -359,24 +359,39 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
|
|
|
359
359
|
const actions = [
|
|
360
360
|
{
|
|
361
361
|
id: 'wake-cluster',
|
|
362
|
-
|
|
362
|
+
// A failed-over source cluster stays visible in the list (so it can
|
|
363
|
+
// still be inspected) but can never be resumed — the label explains why.
|
|
364
|
+
label: (row) => isFailoverSource?.(row.id)
|
|
365
|
+
? (translations.overflowMenu.resumeUnavailableFailoverSource ??
|
|
366
|
+
'Resume (unavailable — this cluster was failed over)')
|
|
367
|
+
: translations.overflowMenu.resume,
|
|
363
368
|
kind: 'ghost',
|
|
364
369
|
onClick: (row) => onWakeCluster(row.id),
|
|
370
|
+
disabled: (row) => isFailoverSource?.(row.id) ?? false,
|
|
365
371
|
visible: (row) => isClusterPaused(row.id) && permissions.canWakeCluster,
|
|
366
372
|
},
|
|
367
373
|
...(onFailoverCluster && isMultiRegionCluster
|
|
368
374
|
? [
|
|
369
375
|
{
|
|
370
376
|
id: 'failover-cluster',
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
+
// Two reasons this stays visible but disabled, with the reason in
|
|
378
|
+
// the label: the cluster was already failed over (a source cluster
|
|
379
|
+
// can never be failed over again), or the initial secondary bucket
|
|
380
|
+
// sync is still pending (#9141).
|
|
381
|
+
label: (row) => {
|
|
382
|
+
if (isFailoverSource?.(row.id)) {
|
|
383
|
+
return (translations.overflowMenu.failoverAlreadyFailedOver ??
|
|
384
|
+
'Failover (unavailable — this cluster was already failed over)');
|
|
385
|
+
}
|
|
386
|
+
return isFailoverSyncPending?.(row.id)
|
|
387
|
+
? (translations.overflowMenu.failoverSyncPending ??
|
|
388
|
+
'Failover (unavailable until backup data is synced to the secondary region)')
|
|
389
|
+
: (translations.overflowMenu.failover ?? 'Failover');
|
|
390
|
+
},
|
|
377
391
|
kind: 'ghost',
|
|
378
392
|
onClick: (row) => onFailoverCluster(row.id),
|
|
379
|
-
disabled: (row) =>
|
|
393
|
+
disabled: (row) => (isFailoverSource?.(row.id) ?? false) ||
|
|
394
|
+
(isFailoverSyncPending?.(row.id) ?? false),
|
|
380
395
|
visible: (row) => (permissions.canFailoverCluster ?? false) &&
|
|
381
396
|
isMultiRegionCluster(row.id),
|
|
382
397
|
},
|
|
@@ -400,7 +415,10 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
|
|
|
400
415
|
paddingBlockEnd: 'var(--cds-spacing-07)',
|
|
401
416
|
}, 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 }) }))] })));
|
|
402
417
|
}
|
|
403
|
-
return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list'
|
|
418
|
+
return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list', options: {
|
|
419
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
|
420
|
+
pageSizes: [10, DEFAULT_PAGE_SIZE, 50, 100],
|
|
421
|
+
} }) }));
|
|
404
422
|
};
|
|
405
423
|
return (_jsxs(_Fragment, { children: [trialNotification, _jsxs(C4PageTemplate, { loading: loading, header: {
|
|
406
424
|
title: translations.title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterListProps, ClusterListItem } from './c4-cluster-list.types';
|
|
1
|
+
import type { C4ClusterListProps, ClusterListItem } from './c4-cluster-list.types.js';
|
|
2
2
|
export declare const mockClusters: ClusterListItem[];
|
|
3
3
|
export declare const defaultProps: C4ClusterListProps;
|
|
4
4
|
export declare const newCluster: ClusterListItem;
|
|
@@ -65,9 +65,13 @@ export interface C4ClusterListProps {
|
|
|
65
65
|
overflowMenu: {
|
|
66
66
|
delete: string;
|
|
67
67
|
resume: string;
|
|
68
|
+
/** Shown as the action label for a cluster that was failed over and can never be resumed. */
|
|
69
|
+
resumeUnavailableFailoverSource?: string;
|
|
68
70
|
failover?: string;
|
|
69
71
|
/** Shown as the action label while the initial secondary bucket sync is pending. */
|
|
70
72
|
failoverSyncPending?: string;
|
|
73
|
+
/** Shown as the action label for a cluster that was already failed over. */
|
|
74
|
+
failoverAlreadyFailedOver?: string;
|
|
71
75
|
};
|
|
72
76
|
tags: {
|
|
73
77
|
addLabel: string;
|
|
@@ -83,5 +87,7 @@ export interface C4ClusterListProps {
|
|
|
83
87
|
* sync has not completed — the action is shown disabled with a reason.
|
|
84
88
|
*/
|
|
85
89
|
isFailoverSyncPending?: (clusterId: string) => boolean;
|
|
90
|
+
/** True for a cluster that was failed over to a sibling — it can never be resumed. */
|
|
91
|
+
isFailoverSource?: (clusterId: string) => boolean;
|
|
86
92
|
isRunningOnUnsupportedGeneration: (clusterId: string) => boolean;
|
|
87
93
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, JSX } from 'react';
|
|
2
|
-
import type { C4ClusterOverviewProps } from './c4-cluster-overview.types';
|
|
2
|
+
import type { C4ClusterOverviewProps } from './c4-cluster-overview.types.js';
|
|
3
3
|
export declare const C4ClusterOverview: ({ applications, details, clusterLoad, rbaNotification, jobDashboard, }: C4ClusterOverviewProps) => JSX.Element;
|
|
4
4
|
export declare const C4IconAndTextElement: (props: {
|
|
5
5
|
icon: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApplicationsProps, ClusterStatus } from './applications';
|
|
2
|
-
import type { ClusterDetailsProps } from './cluster-details';
|
|
3
|
-
import type { ClusterLoadProps } from './cluster-load';
|
|
1
|
+
import type { ApplicationsProps, ClusterStatus } from './applications.js';
|
|
2
|
+
import type { ClusterDetailsProps } from './cluster-details.js';
|
|
3
|
+
import type { ClusterLoadProps } from './cluster-load.js';
|
|
4
4
|
export declare const getClusterLoadProps: () => ClusterLoadProps;
|
|
5
5
|
export declare const getApps: (status: ClusterStatus) => ApplicationsProps;
|
|
6
6
|
export declare const getDetails: (update?: "update-available" | "update-available-no-permissions" | "no-update-latest" | "updating" | "update-available-wait-needed", options?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { C4JobDashboardEntryPointProps } from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types';
|
|
2
|
-
import type { ApplicationsProps } from './applications';
|
|
3
|
-
import type { ClusterDetailsProps } from './cluster-details';
|
|
4
|
-
import type { ClusterLoadProps } from './cluster-load';
|
|
1
|
+
import type { C4JobDashboardEntryPointProps } from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.js';
|
|
2
|
+
import type { ApplicationsProps } from './applications.js';
|
|
3
|
+
import type { ClusterDetailsProps } from './cluster-details.js';
|
|
4
|
+
import type { ClusterLoadProps } from './cluster-load.js';
|
|
5
5
|
export type { ClusterDetailsProps, ClusterLoadProps };
|
|
6
6
|
export interface RbaNotificationProps {
|
|
7
7
|
visible: boolean;
|
|
@@ -33,6 +33,8 @@ export interface ClusterDetailsProps {
|
|
|
33
33
|
wakeAction: () => void;
|
|
34
34
|
wakeLabel: string;
|
|
35
35
|
wakeVisibility: boolean;
|
|
36
|
+
/** When set, the resume button is shown disabled with this reason as a tooltip (e.g. a failed-over source cluster). */
|
|
37
|
+
wakeDisabledReason?: string;
|
|
36
38
|
sleepAction?: () => void;
|
|
37
39
|
sleepLabel?: string;
|
|
38
40
|
infoTooltip?: string;
|
|
@@ -97,7 +97,16 @@ export const ClusterDetails = (props) => {
|
|
|
97
97
|
};
|
|
98
98
|
const renderStatusButton = () => {
|
|
99
99
|
if (normalizedStatus === 'suspended' && props?.status?.wakeVisibility) {
|
|
100
|
-
|
|
100
|
+
const wakeDisabledReason = props.status.wakeDisabledReason;
|
|
101
|
+
const button = (_jsx(Button, { onClick: () => props.status?.wakeAction(), size: 'sm', renderIcon: Play, disabled: !!wakeDisabledReason, children: props.status.wakeLabel }));
|
|
102
|
+
if (!wakeDisabledReason) {
|
|
103
|
+
return button;
|
|
104
|
+
}
|
|
105
|
+
return (_jsx(Tooltip, { align: 'bottom', description: _jsx("span", { style: {
|
|
106
|
+
display: 'block',
|
|
107
|
+
whiteSpace: 'normal',
|
|
108
|
+
maxWidth: '16rem',
|
|
109
|
+
}, children: wakeDisabledReason }), children: _jsx("span", { style: { display: 'inline-block' }, children: button }) }));
|
|
101
110
|
}
|
|
102
111
|
if (props?.status?.sleepAction) {
|
|
103
112
|
return (_jsx(Button, { onClick: () => props.status?.sleepAction?.(), size: 'sm', renderIcon: Pause, children: props.status.sleepLabel }));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterSettingsProps } from './c4-cluster-settings.types';
|
|
2
|
+
import type { C4ClusterSettingsProps } from './c4-cluster-settings.types.js';
|
|
3
3
|
export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { C4ClusterSettingsProps } from './c4-cluster-settings.types';
|
|
2
|
-
import type { AutoUpdateProps } from './elements/autoUpdate';
|
|
3
|
-
import type { BusinessIdUniquenessToggleProps } from './elements/business-id-uniqueness-toggle';
|
|
4
|
-
import type { DangerZoneProps } from './elements/danger-zone';
|
|
5
|
-
import type { IdentityBasedAuthorizationsProps } from './elements/identity-based-authorizations';
|
|
6
|
-
import type { LowLatencyToggleProps } from './elements/low-latency-toggle';
|
|
7
|
-
import type { McpToggleProps } from './elements/mcp-toggle';
|
|
8
|
-
import type { SwaggerToggleProps } from './elements/swagger-toggle';
|
|
1
|
+
import type { C4ClusterSettingsProps } from './c4-cluster-settings.types.js';
|
|
2
|
+
import type { AutoUpdateProps } from './elements/autoUpdate.js';
|
|
3
|
+
import type { BusinessIdUniquenessToggleProps } from './elements/business-id-uniqueness-toggle.js';
|
|
4
|
+
import type { DangerZoneProps } from './elements/danger-zone.js';
|
|
5
|
+
import type { IdentityBasedAuthorizationsProps } from './elements/identity-based-authorizations.js';
|
|
6
|
+
import type { LowLatencyToggleProps } from './elements/low-latency-toggle.js';
|
|
7
|
+
import type { McpToggleProps } from './elements/mcp-toggle.js';
|
|
8
|
+
import type { SwaggerToggleProps } from './elements/swagger-toggle.js';
|
|
9
9
|
export declare const identityBasedAuthorizations: IdentityBasedAuthorizationsProps;
|
|
10
10
|
export declare const autoUpdate: AutoUpdateProps;
|
|
11
11
|
export declare const lowLatencyToggle: LowLatencyToggleProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ClusterSettingsProps } from './elements/cluster-settings';
|
|
2
|
-
import type { DangerZoneProps } from './elements/danger-zone';
|
|
3
|
-
import type { OptimizeFilteringSettingsProps } from './elements/optimize-filtering-settings';
|
|
4
|
-
import type { SwaggerToggleProps } from './elements/swagger-toggle';
|
|
5
|
-
import type { TasklistModeToggleProps } from './elements/tasklist-mode-toggle';
|
|
1
|
+
import type { ClusterSettingsProps } from './elements/cluster-settings.js';
|
|
2
|
+
import type { DangerZoneProps } from './elements/danger-zone.js';
|
|
3
|
+
import type { OptimizeFilteringSettingsProps } from './elements/optimize-filtering-settings.js';
|
|
4
|
+
import type { SwaggerToggleProps } from './elements/swagger-toggle.js';
|
|
5
|
+
import type { TasklistModeToggleProps } from './elements/tasklist-mode-toggle.js';
|
|
6
6
|
export interface C4ClusterSettingsProps {
|
|
7
7
|
settings: ClusterSettingsProps;
|
|
8
8
|
tasklistSettings?: TasklistModeToggleProps & {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { type AppIntegrationsToggleProps } from './app-integrations-toggle';
|
|
3
|
-
import { type AutoUpdateProps } from './autoUpdate';
|
|
4
|
-
import { type BusinessIdUniquenessToggleProps } from './business-id-uniqueness-toggle';
|
|
5
|
-
import { type EnforceGroupsProps } from './enforce-groups';
|
|
6
|
-
import { type ExternalIdentityProviderProps } from './external-identity-provider';
|
|
7
|
-
import { type IdentityBasedAuthorizationsProps } from './identity-based-authorizations';
|
|
8
|
-
import { type LowLatencyToggleProps } from './low-latency-toggle';
|
|
9
|
-
import { type McpToggleProps } from './mcp-toggle';
|
|
10
|
-
import { type MultiTenancyProps } from './multi-tenancy';
|
|
11
|
-
import { type ResourceBasedAuthorizationsProps } from './resource-based-authorizations';
|
|
12
|
-
import { type SwaggerToggleProps } from './swagger-toggle';
|
|
2
|
+
import { type AppIntegrationsToggleProps } from './app-integrations-toggle.js';
|
|
3
|
+
import { type AutoUpdateProps } from './autoUpdate.js';
|
|
4
|
+
import { type BusinessIdUniquenessToggleProps } from './business-id-uniqueness-toggle.js';
|
|
5
|
+
import { type EnforceGroupsProps } from './enforce-groups.js';
|
|
6
|
+
import { type ExternalIdentityProviderProps } from './external-identity-provider.js';
|
|
7
|
+
import { type IdentityBasedAuthorizationsProps } from './identity-based-authorizations.js';
|
|
8
|
+
import { type LowLatencyToggleProps } from './low-latency-toggle.js';
|
|
9
|
+
import { type McpToggleProps } from './mcp-toggle.js';
|
|
10
|
+
import { type MultiTenancyProps } from './multi-tenancy.js';
|
|
11
|
+
import { type ResourceBasedAuthorizationsProps } from './resource-based-authorizations.js';
|
|
12
|
+
import { type SwaggerToggleProps } from './swagger-toggle.js';
|
|
13
13
|
export interface ClusterSettingsProps {
|
|
14
14
|
title: string;
|
|
15
15
|
resourceBasedAuthorizations?: ResourceBasedAuthorizationsProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { type TasklistModeToggleProps } from './tasklist-mode-toggle';
|
|
2
|
+
import { type TasklistModeToggleProps } from './tasklist-mode-toggle.js';
|
|
3
3
|
export declare const TasklistSettings: ({ title, ...props }: TasklistModeToggleProps & {
|
|
4
4
|
title: string;
|
|
5
5
|
}) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterTagSelectorProps } from './c4-cluster-tag-selector.types';
|
|
2
|
+
import type { C4ClusterTagSelectorProps } from './c4-cluster-tag-selector.types.js';
|
|
3
3
|
export declare const C4ClusterTagSelector: (props: C4ClusterTagSelectorProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClustersEmptyStateProps } from './c4-clusters-empty-state.types';
|
|
2
|
+
import type { C4ClustersEmptyStateProps } from './c4-clusters-empty-state.types.js';
|
|
3
3
|
export declare const C4ClustersEmptyState: (props: C4ClustersEmptyStateProps) => JSX.Element;
|
package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClustersTrialNotificationProps } from './c4-clusters-trial-notification.types';
|
|
2
|
+
import type { C4ClustersTrialNotificationProps } from './c4-clusters-trial-notification.types.js';
|
|
3
3
|
export declare const C4ClustersTrialNotification: (props: C4ClustersTrialNotificationProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ConsoleDashboardProps } from './c4-console-dashboard.types';
|
|
2
|
+
import type { C4ConsoleDashboardProps } from './c4-console-dashboard.types.js';
|
|
3
3
|
export declare const C4ConsoleDashboard: ({ orgId, usersAmount, taskUsersAmount, clustersAmount, clientsAmount, clusters, processInstancesChart, decisionInstancesChart, activityEntries, alerts, quickLinks, permissions, actions, urls, texts, getClusterLoad, getClusterLoadConfig: getClusterLoadConfigProp, clusterLoadTooltip, }: C4ConsoleDashboardProps) => JSX.Element;
|
|
@@ -18,6 +18,10 @@ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4Str
|
|
|
18
18
|
import { ValueMetricsLineChart } from '../c4-usage-history/elements/usage-history-charts.js';
|
|
19
19
|
import { EmptyState } from './elements/empty-state.js';
|
|
20
20
|
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
21
|
+
// Dashboard is a summary widget, not the full clusters list ("View clusters"
|
|
22
|
+
// already links to the paginated `/org/:id/clusters` page) — cap it to a
|
|
23
|
+
// small, fixed number of rows.
|
|
24
|
+
const DASHBOARD_CLUSTERS_LIMIT = 5;
|
|
21
25
|
const limitChartToLastNDays = (chart, days) => {
|
|
22
26
|
if (days <= 0 || chart.dataPoints.length === 0) {
|
|
23
27
|
return chart;
|
|
@@ -46,6 +50,13 @@ export const C4ConsoleDashboard = ({ orgId, usersAmount, taskUsersAmount, cluste
|
|
|
46
50
|
const [totalDiHeight, setTotalDiHeight] = useState(400);
|
|
47
51
|
const decisionInstancesChartLast14Days = useMemo(() => limitChartToLastNDays(decisionInstancesChart, 14), [decisionInstancesChart]);
|
|
48
52
|
const processInstancesChartLast14Days = useMemo(() => limitChartToLastNDays(processInstancesChart, 14), [processInstancesChart]);
|
|
53
|
+
// Show prod clusters first (they're what operators care about most on a
|
|
54
|
+
// summary widget), then the rest, capped to DASHBOARD_CLUSTERS_LIMIT rows.
|
|
55
|
+
const visibleClusters = useMemo(() => {
|
|
56
|
+
const prodClusters = clusters.filter((cluster) => cluster.tags === 'prod');
|
|
57
|
+
const otherClusters = clusters.filter((cluster) => cluster.tags !== 'prod');
|
|
58
|
+
return [...prodClusters, ...otherClusters].slice(0, DASHBOARD_CLUSTERS_LIMIT);
|
|
59
|
+
}, [clusters]);
|
|
49
60
|
const piCallbackRef = useCallback((node) => {
|
|
50
61
|
if (node) {
|
|
51
62
|
const legend = node.querySelector('.legend');
|
|
@@ -92,10 +103,20 @@ export const C4ConsoleDashboard = ({ orgId, usersAmount, taskUsersAmount, cluste
|
|
|
92
103
|
justifyContent: 'space-between',
|
|
93
104
|
alignItems: 'center',
|
|
94
105
|
marginBottom: '8px',
|
|
95
|
-
}, children: [_jsx("h3", { children: texts.clusters.title }),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
}, children: [_jsx("h3", { children: texts.clusters.title }), _jsxs("div", { style: {
|
|
107
|
+
display: 'flex',
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
gap: 'var(--cds-spacing-04)',
|
|
110
|
+
}, children: [visibleClusters.length < clusters.length && (_jsx("span", { style: {
|
|
111
|
+
color: 'var(--cds-text-secondary)',
|
|
112
|
+
fontSize: 'var(--cds-label-01-font-size)',
|
|
113
|
+
lineHeight: 'var(--cds-label-01-line-height)',
|
|
114
|
+
}, children: texts.clusters.showingCount
|
|
115
|
+
.replace('{{shown}}', String(visibleClusters.length))
|
|
116
|
+
.replace('{{total}}', String(clusters.length)) })), _jsx(Link, { href: urls.clusters, onClick: (e) => {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
actions.onNavigateToClusters();
|
|
119
|
+
}, children: texts.clusters.viewClusters })] })] }), _jsx("div", { style: { overflowX: 'auto' }, children: _jsx(Stack, { gap: 6, children: visibleClusters.length > 0 ? (_jsxs(C4StructuredListWrapper, { isCondensed: true, children: [_jsx(C4StructuredListHead, { children: _jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: texts.clusters.table.name }), _jsx(C4StructuredListCell, { head: true, children: texts.clusters.table.tags }), _jsx(C4StructuredListCell, { head: true, children: texts.clusters.table.status }), _jsx(C4StructuredListCell, { head: true, children: texts.clusters.table.version }), permissions.showClusterLoad && (_jsx(C4StructuredListCell, { head: true, children: texts.clusters.table.load }))] }) }), _jsx(C4StructuredListBody, { children: visibleClusters.map((item) => {
|
|
99
120
|
const currentClusterLoad = getClusterLoad?.(item.id);
|
|
100
121
|
const hasClusterLoad = typeof currentClusterLoad === 'number' &&
|
|
101
122
|
Number.isFinite(currentClusterLoad);
|
|
@@ -123,7 +144,7 @@ export const C4ConsoleDashboard = ({ orgId, usersAmount, taskUsersAmount, cluste
|
|
|
123
144
|
align: 'bottom',
|
|
124
145
|
} })), (!hasClusterLoad ||
|
|
125
146
|
!currentClusterLoadConfig ||
|
|
126
|
-
item.status === 'Suspended') && (_jsx("span", { children: "-" }))] }))] },
|
|
147
|
+
item.status === 'Suspended') && (_jsx("span", { children: "-" }))] }))] }, item.id));
|
|
127
148
|
}) })] })) : (_jsx("div", { style: { minHeight: '180px' }, children: _jsx(EmptyState, { iconName: 'SoftwareResourceCluster', text: texts.clusters.noClustersFound, action: {
|
|
128
149
|
text: texts.clusters.createCluster,
|
|
129
150
|
disabled: permissions.clusterCreateDisabled,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4ConsoleDashboardProps } from './c4-console-dashboard.types';
|
|
1
|
+
import type { C4ConsoleDashboardProps } from './c4-console-dashboard.types.js';
|
|
2
2
|
export declare const defaultProps: C4ConsoleDashboardProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ConvertTrialOrganizationModalProps } from './c4-convert-trial-organization-modal.types';
|
|
2
|
+
import type { C4ConvertTrialOrganizationModalProps } from './c4-convert-trial-organization-modal.types.js';
|
|
3
3
|
export declare const C4ConvertTrialOrganizationModal: ({ t, open, orgName, error, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4ConvertTrialOrganizationModalProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4LegacyModalError } from '../c4-create-trial-organization-modal/c4-create-trial-organization-modal.types';
|
|
1
|
+
import type { C4LegacyModalError } from '../c4-create-trial-organization-modal/c4-create-trial-organization-modal.types.js';
|
|
2
2
|
export interface C4ConvertTrialOrganizationModalProps {
|
|
3
3
|
t?: (key: string, options?: Record<string, unknown>) => string;
|
|
4
4
|
open: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateAlertModalHandle, C4CreateAlertModalProps } from './c4-create-alert-modal.types';
|
|
1
|
+
import type { C4CreateAlertModalHandle, C4CreateAlertModalProps } from './c4-create-alert-modal.types.js';
|
|
2
2
|
export declare const C4CreateAlertModal: import("react").ForwardRefExoticComponent<C4CreateAlertModalProps & import("react").RefAttributes<C4CreateAlertModalHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateAlertModalProps } from './c4-create-alert-modal.types';
|
|
1
|
+
import type { C4CreateAlertModalProps } from './c4-create-alert-modal.types.js';
|
|
2
2
|
export declare const basicCreateAlertModalProps: C4CreateAlertModalProps;
|
|
@@ -51,12 +51,27 @@ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescriptio
|
|
|
51
51
|
const gridColumns = `repeat(auto-fill, minmax(${columnWidth}, 1fr))`;
|
|
52
52
|
const renderGrid = () => {
|
|
53
53
|
if (designSystem === 'ds') {
|
|
54
|
-
return (_jsx(ChoiceCardGroup, { "aria-label": ariaLabel, value: value ?? '', onValueChange: onChange,
|
|
54
|
+
return (_jsx(ChoiceCardGroup, { "aria-label": ariaLabel, value: value ?? '', onValueChange: onChange,
|
|
55
|
+
// ChoiceCard's title has no overflow handling of its own (no
|
|
56
|
+
// min-width: 0 / overflow-wrap), so a long unbroken label (e.g. a
|
|
57
|
+
// generation name with no spaces, like "GENERATED_Connectors_8.7.22-rc1")
|
|
58
|
+
// reports its full unwrapped width as the grid item's min-content
|
|
59
|
+
// size and spills past the card's border instead of wrapping.
|
|
60
|
+
// `overflow-wrap: anywhere` is inherited by the title/description
|
|
61
|
+
// text and — unlike `break-word` — also counts toward the
|
|
62
|
+
// automatic minimum size, so it both wraps the label and stops the
|
|
63
|
+
// grid track from blowing out to fit it.
|
|
64
|
+
style: {
|
|
65
|
+
gridTemplateColumns: gridColumns,
|
|
66
|
+
gap: '1rem',
|
|
67
|
+
overflowWrap: 'anywhere',
|
|
68
|
+
}, children: visibleItems.map((item) => (_jsx(ChoiceCard, { value: getKey(item), title: getLabel(item), description: getDescription?.(item), disabled: getDisabled?.(item) }, getKey(item)))) }));
|
|
55
69
|
}
|
|
56
70
|
return (_jsx("div", { style: {
|
|
57
71
|
display: 'grid',
|
|
58
72
|
gridTemplateColumns: gridColumns,
|
|
59
73
|
gap: '1rem',
|
|
74
|
+
overflowWrap: 'anywhere',
|
|
60
75
|
}, children: visibleItems.map((item) => {
|
|
61
76
|
const description = getDescription?.(item);
|
|
62
77
|
return (_jsx("div", { style: { height: '100%', display: 'grid' }, children: _jsx(C4SelectableTile, { value: getKey(item), checked: getKey(item) === value, onChange: () => onChange(getKey(item)), disabled: getDisabled?.(item), style: { height: '100%' }, children: description ? (_jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: getLabel(item) }), _jsx("p", { style: { color: 'var(--cds-text-helper)' }, children: description })] })) : (getLabel(item)) }) }, getKey(item)));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4CreateClusterProps } from './c4-create-cluster.types';
|
|
2
|
+
import type { C4CreateClusterProps } from './c4-create-cluster.types.js';
|
|
3
3
|
export declare const C4CreateCluster: ({ loading, cta, formElements, autoUpdate, tasklistModeToggle, authorizationToggle, banner: { noSlotsLeft }, }: C4CreateClusterProps) => JSX.Element;
|
|
@@ -514,12 +514,15 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
514
514
|
option.category === ClusterPlanTypeCategory.ADVANCED_OFFERING &&
|
|
515
515
|
option.availabilityClass !== 'unset' &&
|
|
516
516
|
option.availabilityClass !== undefined) !== undefined && (_jsxs(Stack, { gap: 2, children: [_jsx(Grid, { children: _jsx(Column, { span: 12, children: formElements.allocatedHardwarePackages.title }) }), _jsx("div", { style: { marginLeft: '1rem' }, children: Array.from(Array(formElements.allocatedHardwarePackages.max), (_d, i) => i).map((val) => {
|
|
517
|
-
|
|
517
|
+
const isHwPackageDisabled = (getClusterPlanType()?.available ?? 0) < val + 1;
|
|
518
518
|
return (_jsxs(Tag, { id: `allocatedHardwarePackages-${val + 1}`, onClick: () => {
|
|
519
519
|
updateNumberOfAllocatedHwPackages(val + 1);
|
|
520
520
|
}, type: numberOfAllocatedHwPackages === val + 1
|
|
521
521
|
? 'high-contrast'
|
|
522
|
-
: 'outline', style: {
|
|
522
|
+
: 'outline', style: {
|
|
523
|
+
borderWidth: '0px',
|
|
524
|
+
cursor: isHwPackageDisabled ? 'not-allowed' : 'pointer',
|
|
525
|
+
}, disabled: isHwPackageDisabled, children: [val + 1, "x"] }, `allocatedHardwarePackages-${val + 1}`));
|
|
523
526
|
}) }), _jsx("p", { style: { marginLeft: '1rem' }, children: formElements.allocatedHardwarePackages.description }), _jsx("p", { style: { marginLeft: '1rem' }, children: _jsxs("strong", { children: [formElements.allocatedHardwarePackages.bold, ":", ' ', getClusterPlanType()?.used, " Used /", ' ', (getClusterPlanType()?.used ?? 0) +
|
|
524
527
|
(getClusterPlanType()?.available ?? 0), ' ', "Total"] }) }), _jsx("p", { style: { marginLeft: '1rem' }, children: _jsx(C4ExternalLink, { id: 'allocatedHardwarePackages-docs', inline: true, label: formElements.allocatedHardwarePackages.link.label, href: formElements.allocatedHardwarePackages.link.href }) })] })), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(C4Divider, {}) }) }), _jsxs(Stack, { gap: 5, children: [_jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(FormElementTitle, { title: formElements.stageLabel.title }) }) }), _jsx(Grid, { children: _jsx(Column, { span: 16, children: _jsx(C4ClusterTagSelector, { boxes: formElements.stageLabel.boxes, isDevCluster: !!(getClusterPlanType() && getClusterPlanType()?.type === 'dev'), onChange: (selected) => {
|
|
525
528
|
setSelectedTag(selected);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4CreateClusterChannelWithGenerations, C4CreateClusterClusterPlanType, C4CreateClusterCtaParameters, C4CreateClusterProps, C4CreateClusterRegion } from './c4-create-cluster.types';
|
|
1
|
+
import type { C4CreateClusterChannelWithGenerations, C4CreateClusterClusterPlanType, C4CreateClusterCtaParameters, C4CreateClusterProps, C4CreateClusterRegion } from './c4-create-cluster.types.js';
|
|
2
2
|
export declare const stageLabel: {
|
|
3
3
|
title: string;
|
|
4
4
|
textBelow: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateClusterApiClientModalHandle, C4CreateClusterApiClientModalProps } from './c4-create-cluster-api-client-modal.types';
|
|
1
|
+
import type { C4CreateClusterApiClientModalHandle, C4CreateClusterApiClientModalProps } from './c4-create-cluster-api-client-modal.types.js';
|
|
2
2
|
export declare const C4CreateClusterApiClientModal: import("react").ForwardRefExoticComponent<C4CreateClusterApiClientModalProps & import("react").RefAttributes<C4CreateClusterApiClientModalHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateClusterApiClientModalProps } from './c4-create-cluster-api-client-modal.types';
|
|
1
|
+
import type { C4CreateClusterApiClientModalProps } from './c4-create-cluster-api-client-modal.types.js';
|
|
2
2
|
export declare const basicCreateClusterApiClientModalProps: C4CreateClusterApiClientModalProps;
|
package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateConnectorSecretModalHandle, C4CreateConnectorSecretModalProps } from './c4-create-connector-secret-modal.types';
|
|
1
|
+
import type { C4CreateConnectorSecretModalHandle, C4CreateConnectorSecretModalProps } from './c4-create-connector-secret-modal.types.js';
|
|
2
2
|
export declare const C4CreateConnectorSecretModal: import("react").ForwardRefExoticComponent<C4CreateConnectorSecretModalProps & import("react").RefAttributes<C4CreateConnectorSecretModalHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateConnectorSecretModalProps } from './c4-create-connector-secret-modal.types';
|
|
1
|
+
import type { C4CreateConnectorSecretModalProps } from './c4-create-connector-secret-modal.types.js';
|
|
2
2
|
export declare const basicCreateConnectorSecretModalProps: C4CreateConnectorSecretModalProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateConsoleApiClientModalHandle, C4CreateConsoleApiClientModalProps } from './c4-create-console-api-client-modal.types';
|
|
1
|
+
import type { C4CreateConsoleApiClientModalHandle, C4CreateConsoleApiClientModalProps } from './c4-create-console-api-client-modal.types.js';
|
|
2
2
|
export declare const C4CreateConsoleApiClientModal: import("react").ForwardRefExoticComponent<C4CreateConsoleApiClientModalProps & import("react").RefAttributes<C4CreateConsoleApiClientModalHandle>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateConsoleApiClientModalProps } from './c4-create-console-api-client-modal.types';
|
|
1
|
+
import type { C4CreateConsoleApiClientModalProps } from './c4-create-console-api-client-modal.types.js';
|
|
2
2
|
export declare const basicCreateConsoleApiClientModalProps: C4CreateConsoleApiClientModalProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateIpWhitelistModalHandle, C4CreateIpWhitelistModalProps } from './c4-create-ip-whitelist-modal.types';
|
|
1
|
+
import type { C4CreateIpWhitelistModalHandle, C4CreateIpWhitelistModalProps } from './c4-create-ip-whitelist-modal.types.js';
|
|
2
2
|
export declare const C4CreateIpWhitelistModal: import("react").ForwardRefExoticComponent<C4CreateIpWhitelistModalProps & import("react").RefAttributes<C4CreateIpWhitelistModalHandle>>;
|
package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4CreateIpWhitelistModalProps } from './c4-create-ip-whitelist-modal.types';
|
|
1
|
+
import type { C4CreateIpWhitelistModalProps } from './c4-create-ip-whitelist-modal.types.js';
|
|
2
2
|
export declare const basicCreateIpWhitelistModalProps: C4CreateIpWhitelistModalProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4CreateTrialOrganizationModalProps } from './c4-create-trial-organization-modal.types';
|
|
2
|
+
import type { C4CreateTrialOrganizationModalProps } from './c4-create-trial-organization-modal.types.js';
|
|
3
3
|
export declare const C4CreateTrialOrganizationModal: ({ t, open, name, nameInvalid, nameInvalidText, error, onNameChange, onNameBlur, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4CreateTrialOrganizationModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4DashboardFirstLaunchProps } from './c4-dashboard-first-launch.types';
|
|
2
|
+
import type { C4DashboardFirstLaunchProps } from './c4-dashboard-first-launch.types.js';
|
|
3
3
|
export declare const C4DashboardFirstLaunch: ({ title, subtitle, tutorials, }: C4DashboardFirstLaunchProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4DeleteOrganizationModalProps } from './c4-delete-organization-modal.types';
|
|
2
|
+
import type { C4DeleteOrganizationModalProps } from './c4-delete-organization-modal.types.js';
|
|
3
3
|
export declare const C4DeleteOrganizationModal: ({ t, open, loading, error, organizationName, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4DeleteOrganizationModalProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4DividerProps } from './c4-divider.types';
|
|
1
|
+
import type { C4DividerProps } from './c4-divider.types.js';
|
|
2
2
|
export declare const C4Divider: ({ width }: C4DividerProps) => import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ExtendTrialModalProps } from './c4-extend-trial-modal.types';
|
|
2
|
+
import type { C4ExtendTrialModalProps } from './c4-extend-trial-modal.types.js';
|
|
3
3
|
export declare const C4ExtendTrialModal: ({ isOpen, onClose, onSubmit, isSubmitting, error, }: C4ExtendTrialModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ExternalLinkProps } from './c4-external-link.types';
|
|
2
|
+
import type { C4ExternalLinkProps } from './c4-external-link.types.js';
|
|
3
3
|
export declare const C4ExternalLink: ({ href, label, onClick, target, inline, }: C4ExternalLinkProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import { type C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal';
|
|
2
|
+
import { type C4FeedbackPayload } from '../c4-feedback-modal/c4-feedback-modal.js';
|
|
3
3
|
/** Reserved tab ID for the inline feedback form. */
|
|
4
4
|
export declare const FEEDBACK_TAB_ID = "feedback";
|
|
5
5
|
export interface C4HelpCenterTile {
|