@camunda/ccma-saas-frontend 0.3.1 → 0.5.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 +3 -3
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +90 -73
- 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/c4-advanced-search-filters.js +13 -13
- 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 +13 -2
- 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 +2 -2
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +31 -25
- 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/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-identity/c4-cluster-client-credentials-identity.d.ts +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-activity/c4-cluster-details-activity.js +11 -8
- 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 +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +21 -20
- 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 +1 -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-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +5 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +7 -1
- 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-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-cluster-tag-selector/c4-cluster-tag-selector.js +7 -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-data-table/c4-data-table.js +58 -4
- 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 +2 -47
- 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 +2 -2
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +9 -4
- 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 +2 -2
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -5
- 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-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 +2 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +2 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +14 -8
- 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/recharts-tokens.d.ts +14 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +22 -1
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -3
- 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 +19 -7
- package/lib/esm/runtime/c4-console-data-context.js +40 -15
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +12 -1
- package/lib/esm/runtime/c4-console-data-store.js +74 -34
- 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.js +11 -3
- package/lib/esm/runtime/to-api-config.d.ts +2 -2
- package/lib/esm/runtime/to-api-config.js +6 -0
- 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 +20 -0
- package/lib/esm/utils/role-labels.js +79 -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 +55 -2
- 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-connector-secrets-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +6 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +31 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +23 -8
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +5 -1
- 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 +115 -45
- 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 +2 -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.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/connector-management/c4-connector-management.shared.js +12 -3
- 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 +25 -6
- 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 +142 -22
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -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 +4 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +63 -87
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +29 -82
- package/package.json +50 -30
- 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 -71
- 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 -26
- 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-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -121
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -263
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -80
- 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 { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types';
|
|
1
|
+
import type { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types.js';
|
|
2
2
|
export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react").JSX.Element;
|
|
3
3
|
export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
4
|
export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types';
|
|
1
|
+
import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types.js';
|
|
2
2
|
export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react").JSX.Element;
|
|
3
3
|
export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
4
|
export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsActivityProps } from './c4-cluster-details-activity.types';
|
|
2
|
+
import type { C4ClusterDetailsActivityProps } from './c4-cluster-details-activity.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsActivity: ({ activityGroups, isLoading, hasError, text, onRefresh, }: C4ClusterDetailsActivityProps) => JSX.Element;
|
|
@@ -31,16 +31,19 @@ export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError,
|
|
|
31
31
|
}) }) }))] }, `activity-group-${groupIndex}`));
|
|
32
32
|
}) }));
|
|
33
33
|
};
|
|
34
|
+
// Module-level singleton: constructing an Intl.DateTimeFormat is expensive, and
|
|
35
|
+
// this was previously rebuilt for every row on every render.
|
|
36
|
+
const DATE_TIME_FORMATTER = Intl.DateTimeFormat('en-GB', {
|
|
37
|
+
hour12: false,
|
|
38
|
+
day: '2-digit',
|
|
39
|
+
month: 'short',
|
|
40
|
+
year: 'numeric',
|
|
41
|
+
hour: '2-digit',
|
|
42
|
+
minute: '2-digit',
|
|
43
|
+
});
|
|
34
44
|
const formatDateTime = (date) => {
|
|
35
45
|
try {
|
|
36
|
-
return
|
|
37
|
-
hour12: false,
|
|
38
|
-
day: '2-digit',
|
|
39
|
-
month: 'short',
|
|
40
|
-
year: 'numeric',
|
|
41
|
-
hour: '2-digit',
|
|
42
|
-
minute: '2-digit',
|
|
43
|
-
}).format(date);
|
|
46
|
+
return DATE_TIME_FORMATTER.format(date);
|
|
44
47
|
}
|
|
45
48
|
catch (_error) {
|
|
46
49
|
return '';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types';
|
|
2
|
+
import type { C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsAlerts: ({ alerts, isLoading, text, permissions, onCreateAlert, onUpdateAlert, onDeleteAlert, onNoAlertsDocsClick, }: C4ClusterDetailsAlertsProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Alert, C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types';
|
|
1
|
+
import type { Alert, C4ClusterDetailsAlertsProps } from './c4-cluster-details-alerts.types.js';
|
|
2
2
|
export declare const mockText: C4ClusterDetailsAlertsProps['text'];
|
|
3
3
|
export declare const mockPermissions: C4ClusterDetailsAlertsProps['permissions'];
|
|
4
4
|
export declare const mockAlerts: Alert[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ClusterDetailsClientsProps } from './c4-cluster-details-clients.types';
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4ClusterDetailsClientsProps } from './c4-cluster-details-clients.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsClients: ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }: C4ClusterDetailsClientsProps) => JSX.Element;
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Edit, Renew } from '@carbon/react/icons/index.esm.js';
|
|
3
|
+
import { useMemo } from 'react';
|
|
3
4
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
4
5
|
import { Button, CodeSnippet, Stack } from '../../ui/index.js';
|
|
5
6
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
6
7
|
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
7
8
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
9
|
+
// Module-level singletons: constructing Intl formatters is expensive, and these
|
|
10
|
+
// were previously rebuilt for every cell on every render. `toLocaleString(loc,
|
|
11
|
+
// opts)` is specified to construct an Intl.DateTimeFormat(loc, opts) internally,
|
|
12
|
+
// so formatting through this shared instance yields byte-identical output.
|
|
13
|
+
const SCOPES_LIST_FORMATTER = new Intl.ListFormat('en', {
|
|
14
|
+
style: 'long',
|
|
15
|
+
type: 'conjunction',
|
|
16
|
+
});
|
|
17
|
+
const CLIENT_DATE_TIME_FORMATTER = new Intl.DateTimeFormat('en-US', {
|
|
18
|
+
year: 'numeric',
|
|
19
|
+
month: 'short',
|
|
20
|
+
day: 'numeric',
|
|
21
|
+
hour: '2-digit',
|
|
22
|
+
minute: '2-digit',
|
|
23
|
+
});
|
|
8
24
|
export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }) => {
|
|
9
|
-
const tableData = clients.map((client, originalIndex) => ({
|
|
25
|
+
const tableData = useMemo(() => clients.map((client, originalIndex) => ({
|
|
10
26
|
...client,
|
|
11
27
|
originalIndex,
|
|
12
|
-
}));
|
|
28
|
+
})), [clients]);
|
|
13
29
|
const headerData = [
|
|
14
30
|
{
|
|
15
31
|
label: text.headerName,
|
|
@@ -59,10 +75,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
59
75
|
wrapperOptions: {
|
|
60
76
|
wrapper: (row) => {
|
|
61
77
|
const clientRow = row;
|
|
62
|
-
return
|
|
63
|
-
style: 'long',
|
|
64
|
-
type: 'conjunction',
|
|
65
|
-
}).format(clientRow.scopes) }));
|
|
78
|
+
return _jsx(_Fragment, { children: SCOPES_LIST_FORMATTER.format(clientRow.scopes) });
|
|
66
79
|
},
|
|
67
80
|
},
|
|
68
81
|
},
|
|
@@ -81,13 +94,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
81
94
|
const clientRow = row;
|
|
82
95
|
if (!clientRow.created)
|
|
83
96
|
return _jsx(_Fragment, { children: "-" });
|
|
84
|
-
return
|
|
85
|
-
year: 'numeric',
|
|
86
|
-
month: 'short',
|
|
87
|
-
day: 'numeric',
|
|
88
|
-
hour: '2-digit',
|
|
89
|
-
minute: '2-digit',
|
|
90
|
-
}) }));
|
|
97
|
+
return _jsx(_Fragment, { children: CLIENT_DATE_TIME_FORMATTER.format(clientRow.created) });
|
|
91
98
|
},
|
|
92
99
|
},
|
|
93
100
|
},
|
|
@@ -106,13 +113,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
106
113
|
const clientRow = row;
|
|
107
114
|
if (!clientRow.lastUsed)
|
|
108
115
|
return _jsx(_Fragment, { children: "-" });
|
|
109
|
-
return (_jsx(_Fragment, { children: clientRow.lastUsed
|
|
110
|
-
year: 'numeric',
|
|
111
|
-
month: 'short',
|
|
112
|
-
day: 'numeric',
|
|
113
|
-
hour: '2-digit',
|
|
114
|
-
minute: '2-digit',
|
|
115
|
-
}) }));
|
|
116
|
+
return (_jsx(_Fragment, { children: CLIENT_DATE_TIME_FORMATTER.format(clientRow.lastUsed) }));
|
|
116
117
|
},
|
|
117
118
|
},
|
|
118
119
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsClientsProps, ClientItem } from './c4-cluster-details-clients.types';
|
|
1
|
+
import type { C4ClusterDetailsClientsProps, ClientItem } from './c4-cluster-details-clients.types.js';
|
|
2
2
|
export declare const defaultText: C4ClusterDetailsClientsProps['text'];
|
|
3
3
|
export declare const defaultUrls: C4ClusterDetailsClientsProps['urls'];
|
|
4
4
|
export declare const defaultPermissions: C4ClusterDetailsClientsProps['permissions'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsConnectorSecretsProps } from './c4-cluster-details-connector-secrets.types';
|
|
2
|
+
import type { C4ClusterDetailsConnectorSecretsProps } from './c4-cluster-details-connector-secrets.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsConnectorSecrets: ({ secrets, isLoading, hasError, hasImportFromClusterFeature, hasExportFeature, text, urls, permissions, onCreateSecret, onBulkImportSecrets, onImportFromCluster, onExportSecrets, onRevealSecret, onUpdateSecret, onDeleteSecret, onRefresh, onOpenDocs, }: C4ClusterDetailsConnectorSecretsProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4ClusterDetailsConnectorSecretsProps, ConnectorSecret } from './c4-cluster-details-connector-secrets.types';
|
|
1
|
+
import type { C4ClusterDetailsConnectorSecretsProps, ConnectorSecret } from './c4-cluster-details-connector-secrets.types.js';
|
|
2
2
|
export declare const mockSecrets: ConnectorSecret[];
|
|
3
3
|
export declare const withSecretsProps: C4ClusterDetailsConnectorSecretsProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsEncryptionProps } from './c4-cluster-details-encryption.types';
|
|
2
|
+
import type { C4ClusterDetailsEncryptionProps } from './c4-cluster-details-encryption.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsEncryption: ({ cluster, encryption, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled, }: C4ClusterDetailsEncryptionProps) => JSX.Element;
|
package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
|
|
2
|
+
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsHotBackups: ({ backups, backupSchedule, isLoading, hasError, showTeaser, canCreateBackup, canCreateBackupBasedOnTime, clusterSupportsHotBackups, restoreInProgress, text, urls, permissions, restoreError, onCreateBackup, onDeleteBackup, onRestoreBackup, onCreateSchedule, onUpdateSchedule, onDeleteSchedule, onRefresh, onOpenDocs, onTalkToExpert, onGiveFeedback, }: C4ClusterDetailsHotBackupsProps) => JSX.Element;
|
|
@@ -8,6 +8,7 @@ import { C3ResponsiveStack, } from '@camunda/camunda-composite-components';
|
|
|
8
8
|
import { Add, Chat, Edit, EventSchedule, Renew } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import styled from 'styled-components';
|
|
10
10
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
12
|
import { Button, Stack, Tile } from '../../ui/index.js';
|
|
12
13
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
13
14
|
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
@@ -46,10 +47,16 @@ const getStatusIndicator = (status) => {
|
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading, hasError, showTeaser, canCreateBackup, canCreateBackupBasedOnTime, clusterSupportsHotBackups, restoreInProgress, text, urls, permissions, restoreError, onCreateBackup, onDeleteBackup, onRestoreBackup, onCreateSchedule, onUpdateSchedule, onDeleteSchedule, onRefresh, onOpenDocs, onTalkToExpert, onGiveFeedback, }) => {
|
|
50
|
+
const designSystem = useC4DesignSystem();
|
|
49
51
|
const expandedRow = (row) => {
|
|
50
52
|
const backup = backups.find((b) => b.id === row.id);
|
|
51
53
|
return (_jsx("div", { style: {
|
|
52
|
-
|
|
54
|
+
// Carbon's TableExpandedRow insets its content by the expand-toggle
|
|
55
|
+
// column width; the negative margin pulls the labels back to align
|
|
56
|
+
// with the first data column. The DS DataTable's expansion region has
|
|
57
|
+
// no such inset, so the same offset would push the content off the
|
|
58
|
+
// left edge and clip it — keep the offset Carbon-only.
|
|
59
|
+
marginLeft: designSystem === 'ds' ? undefined : '-38px',
|
|
53
60
|
fontSize: '12px',
|
|
54
61
|
marginTop: '16px',
|
|
55
62
|
marginBottom: '16px',
|
|
@@ -213,6 +220,19 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
213
220
|
!clusterSupportsHotBackups ||
|
|
214
221
|
isRestoring, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
|
|
215
222
|
}
|
|
223
|
+
// Default sort: newest "Started at" first (descending). Backups without a
|
|
224
|
+
// start date sort to the bottom. This only sets the initial display order —
|
|
225
|
+
// clicking any column header still re-sorts via the header `sorting`
|
|
226
|
+
// comparators above.
|
|
227
|
+
const sortedBackups = [...backups].sort((a, b) => {
|
|
228
|
+
if (a.started === '-' && b.started === '-')
|
|
229
|
+
return 0;
|
|
230
|
+
if (a.started === '-')
|
|
231
|
+
return 1;
|
|
232
|
+
if (b.started === '-')
|
|
233
|
+
return -1;
|
|
234
|
+
return b.started.getTime() - a.started.getTime();
|
|
235
|
+
});
|
|
216
236
|
return (_jsxs(Stack, { gap: 6, children: [restoreInProgress && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.restoreInProgressTitle.replace('{backupName}', restoreInProgress.backupName), subtitle: text.restoreInProgressText, hideCloseButton: true })), restoreError && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'error', lowContrast: true, title: text.restoreErrorTitle, subtitle: text.restoreErrorMessage.replace('{backupName}', restoreError.backupName), onClose: restoreError.onDismiss, onCloseButtonClick: restoreError.onDismiss })), !canCreateBackupBasedOnTime && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate || isRestoring, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
|
|
217
237
|
display: 'grid',
|
|
218
238
|
gridTemplateColumns: '1fr 1fr',
|
|
@@ -224,7 +244,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
224
244
|
gap: '2rem',
|
|
225
245
|
maxWidth: 'calc(100vw - 64px)',
|
|
226
246
|
width: '100%',
|
|
227
|
-
}, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data:
|
|
247
|
+
}, children: _jsx(C4DataTable, { title: text.title, headers: headerData, data: sortedBackups.map((item) => {
|
|
228
248
|
return { ...item, expansion: expandedRow(item) };
|
|
229
249
|
}), toolbar: toolbar, actions: actions, options: {
|
|
230
250
|
actionsUseOverflowMenuMinItems: 3,
|
package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
|
|
1
|
+
import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types.js';
|
|
2
2
|
export declare const defaultText: {
|
|
3
3
|
title: string;
|
|
4
4
|
teaserHeading: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsHotBackupsRestoreProps } from './c4-cluster-details-hot-backups-restore.types';
|
|
3
|
-
export declare const C4ClusterDetailsHotBackupsRestore: ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }: C4ClusterDetailsHotBackupsRestoreProps) => JSX.Element;
|
|
2
|
+
import type { C4ClusterDetailsHotBackupsRestoreProps } from './c4-cluster-details-hot-backups-restore.types.js';
|
|
3
|
+
export declare const C4ClusterDetailsHotBackupsRestore: ({ open, backup, currentClusterVersion, isSubmitting, onRequestClose, onConfirm, text, }: C4ClusterDetailsHotBackupsRestoreProps) => JSX.Element;
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
import { useState } from 'react';
|
|
8
8
|
import { Checkbox, Modal, Stack } from '../../ui/index.js';
|
|
9
9
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
10
|
-
export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, onRequestClose, onConfirm, text, }) => {
|
|
10
|
+
export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentClusterVersion, isSubmitting, onRequestClose, onConfirm, text, }) => {
|
|
11
11
|
const isVersionMismatch = backup.version !== currentClusterVersion;
|
|
12
12
|
const [acknowledged, setAcknowledged] = useState(false);
|
|
13
13
|
const handleRequestSubmit = () => {
|
|
@@ -17,6 +17,8 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
17
17
|
onConfirm(backup.id);
|
|
18
18
|
};
|
|
19
19
|
const handleRequestClose = () => {
|
|
20
|
+
if (isSubmitting)
|
|
21
|
+
return;
|
|
20
22
|
setAcknowledged(false);
|
|
21
23
|
onRequestClose();
|
|
22
24
|
};
|
|
@@ -37,7 +39,7 @@ export const C4ClusterDetailsHotBackupsRestore = ({ open, backup, currentCluster
|
|
|
37
39
|
hour12: false,
|
|
38
40
|
});
|
|
39
41
|
};
|
|
40
|
-
return (_jsx(Modal, { id: 'c4-cluster-details-hot-backups-restore', open: open, modalHeading: text.title, primaryButtonText: text.confirmButton, secondaryButtonText: text.cancelButton, primaryButtonDisabled: isVersionMismatch && !acknowledged, onRequestSubmit: handleRequestSubmit, onRequestClose: handleRequestClose, size: 'sm', preventCloseOnClickOutside: true,
|
|
42
|
+
return (_jsx(Modal, { id: 'c4-cluster-details-hot-backups-restore', open: open, modalHeading: text.title, primaryButtonText: text.confirmButton, secondaryButtonText: text.cancelButton, primaryButtonDisabled: isSubmitting || (isVersionMismatch && !acknowledged), onRequestSubmit: handleRequestSubmit, onRequestClose: handleRequestClose, size: 'sm', preventCloseOnClickOutside: true,
|
|
41
43
|
// Restore is irreversible — per project spec, initial keyboard focus
|
|
42
44
|
// lands on Cancel rather than the destructive primary action.
|
|
43
45
|
selectorPrimaryFocus: '.cds--btn--secondary', children: _jsxs(Stack, { gap: 5, children: [_jsxs("dl", { style: {
|
|
@@ -7,6 +7,8 @@ export interface C4ClusterDetailsHotBackupsRestoreProps {
|
|
|
7
7
|
completedAt: Date | string;
|
|
8
8
|
};
|
|
9
9
|
currentClusterVersion: string;
|
|
10
|
+
/** Disables the primary action and blocks dismissal while a restore request is in flight. */
|
|
11
|
+
isSubmitting: boolean;
|
|
10
12
|
onRequestClose: () => void;
|
|
11
13
|
onConfirm: (backupId: string) => void;
|
|
12
14
|
text: {
|
package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsIpWhitelistProps } from './c4-cluster-details-ip-whitelist.types';
|
|
2
|
+
import type { C4ClusterDetailsIpWhitelistProps } from './c4-cluster-details-ip-whitelist.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsIpWhitelist: ({ ipWhitelist, isLoading, text, urls, permissions, onCreateIpWhitelist, onUpdateIpWhitelist, onDeleteIpWhitelist, onOpenDocs, }: C4ClusterDetailsIpWhitelistProps) => JSX.Element;
|
|
@@ -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;
|
|
@@ -147,9 +147,17 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
147
147
|
// thresholds that would be needed to detect this breakpoint.
|
|
148
148
|
const [isNarrowLayout, setIsNarrowLayout] = useState(() => typeof window !== 'undefined' && window.innerWidth < 1520);
|
|
149
149
|
useEffect(() => {
|
|
150
|
-
|
|
150
|
+
let frame = 0;
|
|
151
|
+
const handleResize = () => {
|
|
152
|
+
// Coalesce bursts of resize events into one update per animation frame.
|
|
153
|
+
cancelAnimationFrame(frame);
|
|
154
|
+
frame = requestAnimationFrame(() => setIsNarrowLayout(window.innerWidth < 1520));
|
|
155
|
+
};
|
|
151
156
|
window.addEventListener('resize', handleResize);
|
|
152
|
-
return () =>
|
|
157
|
+
return () => {
|
|
158
|
+
cancelAnimationFrame(frame);
|
|
159
|
+
window.removeEventListener('resize', handleResize);
|
|
160
|
+
};
|
|
153
161
|
}, []);
|
|
154
162
|
const deactivateLinkElement = onDeactivate ? (_jsx(Link, { href: '#', "aria-disabled": !permissions.canDeactivate || !!isDeactivating, tabIndex: !permissions.canDeactivate || isDeactivating ? -1 : undefined, onClick: (e) => {
|
|
155
163
|
e.preventDefault();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterListProps } from './c4-cluster-list.types';
|
|
2
|
+
import type { C4ClusterListProps } from './c4-cluster-list.types.js';
|
|
3
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;
|
|
@@ -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';
|
|
@@ -400,7 +400,10 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
|
|
|
400
400
|
paddingBlockEnd: 'var(--cds-spacing-07)',
|
|
401
401
|
}, 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
402
|
}
|
|
403
|
-
return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list'
|
|
403
|
+
return (_jsx("div", { ref: tableContainerRef, children: _jsx(C4DataTable, { headers: headerData, isLoading: loading, toolbar: toolbar, actions: actions, data: stableClusters, queryPrefix: 'cluster-list', options: {
|
|
404
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
|
405
|
+
pageSizes: [10, DEFAULT_PAGE_SIZE, 50, 100],
|
|
406
|
+
} }) }));
|
|
404
407
|
};
|
|
405
408
|
return (_jsxs(_Fragment, { children: [trialNotification, _jsxs(C4PageTemplate, { loading: loading, header: {
|
|
406
409
|
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;
|
|
@@ -194,11 +194,17 @@ const templateColumnsBySize = {
|
|
|
194
194
|
export const Applications = (props) => {
|
|
195
195
|
const [mediaSize, setMediaSize] = useState(mediaSizeByWidth(window.innerWidth));
|
|
196
196
|
useEffect(() => {
|
|
197
|
+
let frame = 0;
|
|
197
198
|
const handleWindowResize = () => {
|
|
198
|
-
|
|
199
|
+
// Coalesce bursts of resize events into one update per animation frame.
|
|
200
|
+
cancelAnimationFrame(frame);
|
|
201
|
+
frame = requestAnimationFrame(() => {
|
|
202
|
+
setMediaSize(mediaSizeByWidth(window.innerWidth));
|
|
203
|
+
});
|
|
199
204
|
};
|
|
200
205
|
window.addEventListener('resize', handleWindowResize);
|
|
201
206
|
return () => {
|
|
207
|
+
cancelAnimationFrame(frame);
|
|
202
208
|
window.removeEventListener('resize', handleWindowResize);
|
|
203
209
|
};
|
|
204
210
|
}, []);
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -18,11 +18,17 @@ export const C4ClusterTagSelector = (props) => {
|
|
|
18
18
|
const designSystem = useC4DesignSystem();
|
|
19
19
|
const [mediaSize, setMediaSize] = useState(mediaSizeByWidth(window.innerWidth));
|
|
20
20
|
useEffect(() => {
|
|
21
|
+
let frame = 0;
|
|
21
22
|
const handleWindowResize = () => {
|
|
22
|
-
|
|
23
|
+
// Coalesce bursts of resize events into one update per animation frame.
|
|
24
|
+
cancelAnimationFrame(frame);
|
|
25
|
+
frame = requestAnimationFrame(() => {
|
|
26
|
+
setMediaSize(mediaSizeByWidth(window.innerWidth));
|
|
27
|
+
});
|
|
23
28
|
};
|
|
24
29
|
window.addEventListener('resize', handleWindowResize);
|
|
25
30
|
return () => {
|
|
31
|
+
cancelAnimationFrame(frame);
|
|
26
32
|
window.removeEventListener('resize', handleWindowResize);
|
|
27
33
|
};
|
|
28
34
|
}, []);
|
|
@@ -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;
|