@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
|
@@ -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;
|
|
@@ -6,8 +6,25 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { C3DataTable, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { Button, DataTable, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Input, MultiSelect, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@camunda/design-system';
|
|
9
|
-
import { useCallback, useMemo, useRef, useState, } from 'react';
|
|
9
|
+
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
10
10
|
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
/**
|
|
12
|
+
* Delay (ms) between a keystroke in a search field and the row filter running.
|
|
13
|
+
* Typing echoes instantly; only the (potentially O(n)) filter pass is deferred.
|
|
14
|
+
*/
|
|
15
|
+
const SEARCH_DEBOUNCE_MS = 200;
|
|
16
|
+
/**
|
|
17
|
+
* Returns a copy of `value` that only updates after it has stopped changing for
|
|
18
|
+
* `delayMs`. Used to keep search-driven re-filtering off the per-keystroke path.
|
|
19
|
+
*/
|
|
20
|
+
function useDebouncedValue(value, delayMs) {
|
|
21
|
+
const [debounced, setDebounced] = useState(value);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const timer = setTimeout(() => setDebounced(value), delayMs);
|
|
24
|
+
return () => clearTimeout(timer);
|
|
25
|
+
}, [value, delayMs]);
|
|
26
|
+
return debounced;
|
|
27
|
+
}
|
|
11
28
|
/**
|
|
12
29
|
* Design-system-switchable data table.
|
|
13
30
|
*
|
|
@@ -204,6 +221,37 @@ function C4DataTableDs(props) {
|
|
|
204
221
|
item.type === 'multiSelect')
|
|
205
222
|
.map((item) => `${item.type}:${item.id}`)
|
|
206
223
|
.join('|');
|
|
224
|
+
// Debounced snapshot of the live filter state. Search inputs read from this so
|
|
225
|
+
// that typing does not re-scan the whole dataset on every keystroke; discrete
|
|
226
|
+
// filters (single/multi select) keep applying immediately (see below).
|
|
227
|
+
const debouncedFilterState = useDebouncedValue(filterState, SEARCH_DEBOUNCE_MS);
|
|
228
|
+
// The state that actually drives row filtering. For `search` items we take the
|
|
229
|
+
// debounced value; every other filter uses its live value so dropdowns still
|
|
230
|
+
// apply instantly. Rebuilt each render, but its *content* is identical between
|
|
231
|
+
// keystrokes (the search value stays at its last debounced value), so keying
|
|
232
|
+
// the filter memo on `effectiveFilterKey` keeps `filteredData` stable until the
|
|
233
|
+
// debounce settles or a non-search filter changes.
|
|
234
|
+
const effectiveFilterState = useMemo(() => {
|
|
235
|
+
const searchIds = new Set(allToolbarItems
|
|
236
|
+
.filter((item) => item.type === 'search')
|
|
237
|
+
.map((item) => item.id));
|
|
238
|
+
if (searchIds.size === 0) {
|
|
239
|
+
return filterState;
|
|
240
|
+
}
|
|
241
|
+
const merged = { ...filterState };
|
|
242
|
+
for (const id of searchIds) {
|
|
243
|
+
const debouncedValue = debouncedFilterState[id];
|
|
244
|
+
if (debouncedValue === undefined) {
|
|
245
|
+
delete merged[id];
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
merged[id] = debouncedValue;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return merged;
|
|
252
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: allToolbarItems is rebuilt every render and its filtering shape is subsumed by filterSignature
|
|
253
|
+
}, [filterState, debouncedFilterState, filterSignature]);
|
|
254
|
+
const effectiveFilterKey = useMemo(() => JSON.stringify(effectiveFilterState), [effectiveFilterState]);
|
|
207
255
|
// Keep the array reference stable across renders when neither the source
|
|
208
256
|
// `data` reference, the filter state, nor the filtering toolbar shape
|
|
209
257
|
// changed. The underlying DS `DataTable` is backed by TanStack Table, whose
|
|
@@ -216,10 +264,16 @@ function C4DataTableDs(props) {
|
|
|
216
264
|
// render, so it is intentionally not a dependency — `filterSignature`
|
|
217
265
|
// subsumes it; depending on the array directly would defeat the memo and
|
|
218
266
|
// reintroduce the reset.
|
|
219
|
-
//
|
|
267
|
+
// `effectiveFilterState` and `allToolbarItems` are used in the body but are
|
|
268
|
+
// intentionally not dependencies: `effectiveFilterKey` subsumes the effective
|
|
269
|
+
// filter contents (including the debounced search term) and `filterSignature`
|
|
270
|
+
// subsumes the toolbar shape. Depending on the objects directly would rebuild
|
|
271
|
+
// the array on every render — snapping TanStack back to page 1 and re-scanning
|
|
272
|
+
// the whole dataset on every keystroke.
|
|
273
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: effectiveFilterState/allToolbarItems are subsumed by effectiveFilterKey + filterSignature (see comment above)
|
|
220
274
|
const filteredData = useMemo(() => allToolbarItems.length
|
|
221
|
-
? data.filter((row) => keepRow(row, allToolbarItems,
|
|
222
|
-
: data, [data,
|
|
275
|
+
? data.filter((row) => keepRow(row, allToolbarItems, effectiveFilterState))
|
|
276
|
+
: data, [data, effectiveFilterKey, filterSignature]);
|
|
223
277
|
const renderToolbarItem = (item) => {
|
|
224
278
|
switch (item.type) {
|
|
225
279
|
case 'search': {
|
|
@@ -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 {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4InfoTooltipProps } from './c4-info-tooltip.types';
|
|
2
|
+
import type { C4InfoTooltipProps } from './c4-info-tooltip.types.js';
|
|
3
3
|
export declare const C4InfoTooltip: ({ label, align, kind, renderIcon, }: C4InfoTooltipProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4InviteUserToOrganizationModalHandle, C4InviteUserToOrganizationModalProps } from './c4-invite-user-to-organization-modal.types';
|
|
1
|
+
import type { C4InviteUserToOrganizationModalHandle, C4InviteUserToOrganizationModalProps } from './c4-invite-user-to-organization-modal.types.js';
|
|
2
2
|
export declare const C4InviteUserToOrganizationModal: import("react").ForwardRefExoticComponent<C4InviteUserToOrganizationModalProps & import("react").RefAttributes<C4InviteUserToOrganizationModalHandle>>;
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
import { OrganizationRole } from '@camunda/ccma-shared-types';
|
|
8
8
|
import { forwardRef, useCallback, useImperativeHandle, useMemo, useState, } from 'react';
|
|
9
9
|
import { Checkbox, Link, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
10
|
+
import { LEGACY_SECTION_ROLES, roleLabelDescription, } from '../../utils/role-labels.js';
|
|
10
11
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
11
12
|
function safeTranslate(t, key, defaultValue, options) {
|
|
12
13
|
if (!t)
|
|
@@ -23,47 +24,6 @@ function isValidEmail(email) {
|
|
|
23
24
|
// Intentionally simple: enough for UI validation without being overly strict.
|
|
24
25
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/u.test(email);
|
|
25
26
|
}
|
|
26
|
-
function roleLabelDescription(t, role) {
|
|
27
|
-
switch (role) {
|
|
28
|
-
case OrganizationRole.ADMIN:
|
|
29
|
-
return {
|
|
30
|
-
label: safeTranslate(t, 'orgroles:admin.label', 'Admin'),
|
|
31
|
-
description: safeTranslate(t, 'orgroles:admin.description', ''),
|
|
32
|
-
};
|
|
33
|
-
case OrganizationRole.MODELER:
|
|
34
|
-
return {
|
|
35
|
-
label: safeTranslate(t, 'orgroles:modeler.label', 'Modeler'),
|
|
36
|
-
description: safeTranslate(t, 'orgroles:modeler.description', ''),
|
|
37
|
-
};
|
|
38
|
-
case OrganizationRole.ANALYST:
|
|
39
|
-
return {
|
|
40
|
-
label: safeTranslate(t, 'orgroles:analyst.label', 'Analyst'),
|
|
41
|
-
description: safeTranslate(t, 'orgroles:analyst.description', ''),
|
|
42
|
-
};
|
|
43
|
-
case OrganizationRole.VISITOR:
|
|
44
|
-
return {
|
|
45
|
-
label: safeTranslate(t, 'orgroles:visitor.label', 'Visitor'),
|
|
46
|
-
description: safeTranslate(t, 'orgroles:visitor.description', ''),
|
|
47
|
-
};
|
|
48
|
-
case OrganizationRole.OPERATIONS_ENGINEER:
|
|
49
|
-
return {
|
|
50
|
-
label: safeTranslate(t, 'orgroles:operationsengineer.label', 'Operations engineer'),
|
|
51
|
-
description: safeTranslate(t, 'orgroles:operationsengineer.description', ''),
|
|
52
|
-
};
|
|
53
|
-
case OrganizationRole.TASK_USER:
|
|
54
|
-
return {
|
|
55
|
-
label: safeTranslate(t, 'orgroles:taskuser.label', 'Task user'),
|
|
56
|
-
description: safeTranslate(t, 'orgroles:taskuser.description', ''),
|
|
57
|
-
};
|
|
58
|
-
case OrganizationRole.DEVELOPER:
|
|
59
|
-
return {
|
|
60
|
-
label: safeTranslate(t, 'orgroles:developer.label', 'Developer'),
|
|
61
|
-
description: safeTranslate(t, 'orgroles:developer.description', ''),
|
|
62
|
-
};
|
|
63
|
-
default:
|
|
64
|
-
return { label: String(role), description: '' };
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
27
|
export const C4InviteUserToOrganizationModal = forwardRef(({ t, onInviteUser, showAdminRole = true, showLegacyClusterRoles = false, learnMoreUrl = 'https://docs.camunda.io/', telemetry, }, ref) => {
|
|
68
28
|
const [isOpen, setIsOpen] = useState(false);
|
|
69
29
|
const [orgId, setOrgId] = useState('');
|
|
@@ -167,12 +127,7 @@ export const C4InviteUserToOrganizationModal = forwardRef(({ t, onInviteUser, sh
|
|
|
167
127
|
if (!showLegacyClusterRoles) {
|
|
168
128
|
return [];
|
|
169
129
|
}
|
|
170
|
-
return
|
|
171
|
-
OrganizationRole.VISITOR,
|
|
172
|
-
OrganizationRole.OPERATIONS_ENGINEER,
|
|
173
|
-
OrganizationRole.TASK_USER,
|
|
174
|
-
OrganizationRole.DEVELOPER,
|
|
175
|
-
];
|
|
130
|
+
return LEGACY_SECTION_ROLES;
|
|
176
131
|
}, [showLegacyClusterRoles]);
|
|
177
132
|
return (_jsx(Modal, { open: isOpen, modalHeading: modalHeading, primaryButtonText: safeTranslate(t, 'invitations:invite.buttons.primary', 'Send invite'), secondaryButtonText: safeTranslate(t, 'orgmanagement:common.cancel', 'Cancel'), primaryButtonDisabled: inviteSaving, onRequestClose: close, onRequestSubmit: onSubmit, children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-invite-email', labelText: safeTranslate(t, 'invitations:invite.form.email', 'Email address'), value: inviteEmail, onChange: (e) => {
|
|
178
133
|
setInviteError(undefined);
|
package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4JobDashboardDetailsPageProps } from './c4-job-dashboard-details-page.types';
|
|
1
|
+
import type { C4JobDashboardDetailsPageProps } from './c4-job-dashboard-details-page.types.js';
|
|
2
2
|
export declare const defaultDetailsProps: C4JobDashboardDetailsPageProps;
|
package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types';
|
|
2
|
-
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler';
|
|
3
|
-
import type { Config, JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
4
|
-
import type { JobDashboardDropdownTranslationProps } from '../c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown';
|
|
1
|
+
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js';
|
|
2
|
+
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
3
|
+
import type { Config, JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
4
|
+
import type { JobDashboardDropdownTranslationProps } from '../c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js';
|
|
5
5
|
export interface ErrorTableData {
|
|
6
6
|
errorCode: string;
|
|
7
7
|
errorMessage: string;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
2
|
-
import type { ErrorTableData, JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types';
|
|
1
|
+
import type { JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
2
|
+
import type { ErrorTableData, JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types.js';
|
|
3
3
|
interface C4JobDashboardErrorTableProps {
|
|
4
4
|
errors: ErrorTableData[];
|
|
5
5
|
error?: JobsError;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
2
|
-
import { type ColorScale } from '../c4-job-dashboard-details-page';
|
|
3
|
-
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types';
|
|
1
|
+
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
2
|
+
import { type ColorScale } from '../c4-job-dashboard-details-page.js';
|
|
3
|
+
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types.js';
|
|
4
4
|
export interface C4JobDashboardPieChartProps {
|
|
5
5
|
jobData?: JobStatusSummary;
|
|
6
6
|
error?: JobsError;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
3
|
-
import { type ColorScale } from '../c4-job-dashboard-details-page';
|
|
4
|
-
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types';
|
|
2
|
+
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
3
|
+
import { type ColorScale } from '../c4-job-dashboard-details-page.js';
|
|
4
|
+
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types.js';
|
|
5
5
|
interface C4JobDashboardBarChartProps {
|
|
6
6
|
timeSeries: Array<{
|
|
7
7
|
time: string;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
2
|
-
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types';
|
|
1
|
+
import type { JobStatusSummary, JobsError } from '../../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
2
|
+
import type { JobDashboardDetailsTranslations } from '../c4-job-dashboard-details-page.types.js';
|
|
3
3
|
interface C4JobDashboardWorkerTableProps {
|
|
4
4
|
workerData: Array<{
|
|
5
5
|
worker: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4JobDashboardEntryPointProps } from './c4-job-dashboard-entry-point.types';
|
|
2
|
+
import type { C4JobDashboardEntryPointProps } from './c4-job-dashboard-entry-point.types.js';
|
|
3
3
|
declare function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, }: C4JobDashboardEntryPointProps): JSX.Element;
|
|
4
4
|
export default C4JobDashboardEntryPoint;
|
package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler';
|
|
2
|
-
import type { JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
1
|
+
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
2
|
+
import type { JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
3
3
|
export interface JobDashboardTranslations {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4JobDashboardOverviewPageProps } from './c4-job-dashboard-overview.types';
|
|
2
|
+
import type { C4JobDashboardOverviewPageProps } from './c4-job-dashboard-overview.types.js';
|
|
3
3
|
export declare const C4JobDashboardOverviewPage: ({ error, items, isIncomplete, config, onTimeRangeChange, breadcrumb, isLoadingConfig, isLoadingTable, translations, lastUpdatedAt, }: C4JobDashboardOverviewPageProps) => JSX.Element;
|
package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4JobDashboardOverviewPageProps } from './c4-job-dashboard-overview.types';
|
|
1
|
+
import type { C4JobDashboardOverviewPageProps } from './c4-job-dashboard-overview.types.js';
|
|
2
2
|
export declare const defaultOverviewProps: C4JobDashboardOverviewPageProps;
|
package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types';
|
|
2
|
-
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler';
|
|
3
|
-
import type { Config, JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
4
|
-
import type { JobDashboardDropdownTranslationProps } from '../c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown';
|
|
1
|
+
import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js';
|
|
2
|
+
import type { JobDashboardErrorHandlerTranslations } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
3
|
+
import type { Config, JobStatusSummary, JobsError } from '../c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
4
|
+
import type { JobDashboardDropdownTranslationProps } from '../c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js';
|
|
5
5
|
export interface JobDashboardOverviewDataRow extends JobStatusSummary {
|
|
6
6
|
jobType: string;
|
|
7
7
|
workers: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JobDashboardErrorHandlerTranslations } from './c4-job-dashboard-error-handler';
|
|
2
|
-
import type { JobDashboardDropdownTranslationProps } from './c4-job-dashboard-time-range-dropdown';
|
|
1
|
+
import type { JobDashboardErrorHandlerTranslations } from './c4-job-dashboard-error-handler.js';
|
|
2
|
+
import type { JobDashboardDropdownTranslationProps } from './c4-job-dashboard-time-range-dropdown.js';
|
|
3
3
|
export declare const getErrorHandlerTranslations: () => JobDashboardErrorHandlerTranslations;
|
|
4
4
|
export declare const getDropdownTranslations: () => JobDashboardDropdownTranslationProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4LeaveOrganizationModalProps } from './c4-leave-organization-modal.types';
|
|
2
|
+
import type { C4LeaveOrganizationModalProps } from './c4-leave-organization-modal.types.js';
|
|
3
3
|
export declare const C4LeaveOrganizationModal: ({ t, open, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4LeaveOrganizationModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4LinkButtonProps } from './c4-link-button.types';
|
|
2
|
+
import type { C4LinkButtonProps } from './c4-link-button.types.js';
|
|
3
3
|
export declare const C4LinkButton: ({ label, onClick, style, inline, icon, disabled, }: C4LinkButtonProps) => JSX.Element;
|