@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
package/README.md
CHANGED
|
@@ -24,7 +24,9 @@ Pushing to `main` will update the storybook available under [cloudflare page](ht
|
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The package has two entry points.
|
|
28
|
+
|
|
29
|
+
### `@camunda/ccma-saas-frontend` — components and widgets
|
|
28
30
|
|
|
29
31
|
```tsx
|
|
30
32
|
import { C4WorkflowInformation } from '@camunda/ccma-saas-frontend'
|
|
@@ -38,3 +40,24 @@ return (
|
|
|
38
40
|
/>
|
|
39
41
|
)
|
|
40
42
|
```
|
|
43
|
+
|
|
44
|
+
### `@camunda/ccma-saas-frontend/runtime` — the headless data layer
|
|
45
|
+
|
|
46
|
+
Providers, hooks, SSE and Camunda entity logic, with no presentational
|
|
47
|
+
dependencies — 14 modules instead of 287, and no Carbon, `lucide-react`,
|
|
48
|
+
`recharts` or `react-markdown` in the graph. This is the entry point for
|
|
49
|
+
external consumers that only need the data (e.g. feeding the Camunda Design
|
|
50
|
+
System navigation components).
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import { useC4ClusterNavEntries } from '@camunda/ccma-saas-frontend/runtime'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Every runtime name is exported from both entry points, so importing from the
|
|
57
|
+
package root still works exactly as before. See
|
|
58
|
+
[`docs/runtime.md`](./docs/runtime.md) for the integration guide and for what
|
|
59
|
+
the subpath does and does not shrink.
|
|
60
|
+
|
|
61
|
+
Deep imports (`@camunda/ccma-saas-frontend/lib/esm/…`) still resolve, but are a
|
|
62
|
+
deprecated compatibility shim scheduled for removal in the next major — they
|
|
63
|
+
hard-code unversioned internal paths. Use one of the two entry points above.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ActivityGraphProps } from './c4-activity-graph.types';
|
|
3
|
-
export declare const C4ActivityGraph: ({ dataPoints, options, }: C4ActivityGraphProps) => JSX.Element
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4ActivityGraphProps } from './c4-activity-graph.types.js';
|
|
3
|
+
export declare const C4ActivityGraph: import("react").MemoExoticComponent<({ dataPoints, options, }: C4ActivityGraphProps) => JSX.Element>;
|
|
@@ -1,86 +1,102 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
+
* You may not use this file except in compliance with the commercial license.
|
|
6
|
+
*/
|
|
7
|
+
import { memo, useMemo } from 'react';
|
|
8
|
+
const DAY = 24 * 60 * 60 * 1000;
|
|
9
|
+
const getDayOfWeek = (date) => {
|
|
10
|
+
const dayOfWeek = date.getDay();
|
|
11
|
+
return dayOfWeek === 0 ? 6 : dayOfWeek - 1;
|
|
12
|
+
};
|
|
13
|
+
const colors = ['#edf5ff', '#a6c8ff', '#4589ff', '#0f62fe', '#0043ce'];
|
|
14
|
+
const DAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
|
15
|
+
const MONTHS = [
|
|
16
|
+
'Jan',
|
|
17
|
+
'Feb',
|
|
18
|
+
'Mar',
|
|
19
|
+
'Apr',
|
|
20
|
+
'May',
|
|
21
|
+
'Jun',
|
|
22
|
+
'Jul',
|
|
23
|
+
'Aug',
|
|
24
|
+
'Sep',
|
|
25
|
+
'Oct',
|
|
26
|
+
'Nov',
|
|
27
|
+
'Dec',
|
|
28
|
+
];
|
|
29
|
+
const C4ActivityGraphComponent = ({ dataPoints, options, }) => {
|
|
3
30
|
const componentOptions = {
|
|
4
31
|
lastWeeks: options?.lastWeeks ?? 25,
|
|
5
32
|
width: options?.width ?? '100%',
|
|
6
33
|
height: options?.height ?? '300px',
|
|
7
34
|
gap: options?.gap ?? '0.5rem',
|
|
8
35
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
// Aggregating ~25 weeks of activity is O(days × dataPoints); memoize it so it
|
|
37
|
+
// only re-runs when the inputs change, not on every parent re-render.
|
|
38
|
+
const { activityDataPoints, months, maxActivities } = useMemo(() => {
|
|
39
|
+
const lastWeeks = componentOptions.lastWeeks;
|
|
40
|
+
let currentStart = new Date();
|
|
41
|
+
currentStart.setHours(0, 0, 0, 0);
|
|
42
|
+
const currentDayOfWeek = getDayOfWeek(currentStart);
|
|
43
|
+
const numberOfDays = lastWeeks * 7 - (7 - currentDayOfWeek);
|
|
44
|
+
const aggregated = [];
|
|
45
|
+
let currentWeek = -1;
|
|
46
|
+
let weekIndex = lastWeeks;
|
|
47
|
+
let monthMarkers = [];
|
|
48
|
+
let currentMonth = -1;
|
|
49
|
+
let maxCount = 0;
|
|
50
|
+
for (let i = 0; i < numberOfDays; i++) {
|
|
51
|
+
const range = {
|
|
52
|
+
start: currentStart.getTime(),
|
|
53
|
+
end: currentStart.getTime() + DAY,
|
|
54
|
+
};
|
|
55
|
+
const dayOfWeek = getDayOfWeek(currentStart);
|
|
56
|
+
if (currentWeek < 0) {
|
|
57
|
+
currentWeek = Math.ceil((currentStart.getTime() -
|
|
58
|
+
new Date(currentStart.getFullYear(), 0, 1).getTime()) /
|
|
59
|
+
DAY /
|
|
60
|
+
7);
|
|
61
|
+
}
|
|
62
|
+
if (dayOfWeek === 6) {
|
|
63
|
+
weekIndex--;
|
|
64
|
+
currentWeek--;
|
|
65
|
+
}
|
|
66
|
+
const dataPoint = {
|
|
67
|
+
index: numberOfDays - i,
|
|
68
|
+
range,
|
|
69
|
+
dataPoints: dataPoints.filter((dataPoint) => dataPoint.timestamp >= range.start &&
|
|
70
|
+
dataPoint.timestamp < range.end),
|
|
71
|
+
dayOfWeek,
|
|
72
|
+
weekOfYear: currentWeek,
|
|
73
|
+
grid: {
|
|
74
|
+
x: weekIndex,
|
|
75
|
+
y: dayOfWeek,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
maxCount = Math.max(maxCount, dataPoint.dataPoints.length);
|
|
79
|
+
aggregated.push(dataPoint);
|
|
80
|
+
currentStart = new Date(currentStart.getTime() - DAY);
|
|
36
81
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
82
|
+
aggregated.reverse();
|
|
83
|
+
for (const dataPoint of aggregated) {
|
|
84
|
+
const start = new Date(dataPoint.range.start);
|
|
85
|
+
if (currentMonth < 0 || currentMonth !== start.getMonth()) {
|
|
86
|
+
currentMonth = start.getMonth();
|
|
87
|
+
monthMarkers = monthMarkers.filter((month) => month.column !== dataPoint.grid.x);
|
|
88
|
+
monthMarkers.push({
|
|
89
|
+
month: currentMonth,
|
|
90
|
+
column: dataPoint.grid.x,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
40
93
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
dayOfWeek,
|
|
46
|
-
weekOfYear: currentWeek,
|
|
47
|
-
grid: {
|
|
48
|
-
x: weekIndex,
|
|
49
|
-
y: dayOfWeek,
|
|
50
|
-
},
|
|
94
|
+
return {
|
|
95
|
+
activityDataPoints: aggregated,
|
|
96
|
+
months: monthMarkers,
|
|
97
|
+
maxActivities: maxCount,
|
|
51
98
|
};
|
|
52
|
-
|
|
53
|
-
activityDataPoints.push(dataPoint);
|
|
54
|
-
currentStart = new Date(currentStart.getTime() - DAY);
|
|
55
|
-
}
|
|
56
|
-
activityDataPoints.reverse();
|
|
57
|
-
for (const dataPoint of activityDataPoints) {
|
|
58
|
-
const currentStart = new Date(dataPoint.range.start);
|
|
59
|
-
if (currentMonth < 0 || currentMonth !== currentStart.getMonth()) {
|
|
60
|
-
currentMonth = currentStart.getMonth();
|
|
61
|
-
months = months.filter((month) => month.column !== dataPoint.grid.x);
|
|
62
|
-
months.push({
|
|
63
|
-
month: currentMonth,
|
|
64
|
-
column: dataPoint.grid.x,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const colors = ['#edf5ff', '#a6c8ff', '#4589ff', '#0f62fe', '#0043ce'];
|
|
69
|
-
const DAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
|
|
70
|
-
const MONTHS = [
|
|
71
|
-
'Jan',
|
|
72
|
-
'Feb',
|
|
73
|
-
'Mar',
|
|
74
|
-
'Apr',
|
|
75
|
-
'May',
|
|
76
|
-
'Jun',
|
|
77
|
-
'Jul',
|
|
78
|
-
'Aug',
|
|
79
|
-
'Sep',
|
|
80
|
-
'Oct',
|
|
81
|
-
'Nov',
|
|
82
|
-
'Dec',
|
|
83
|
-
];
|
|
99
|
+
}, [dataPoints, componentOptions.lastWeeks]);
|
|
84
100
|
const component = (_jsxs("div", { style: {
|
|
85
101
|
display: 'grid',
|
|
86
102
|
gridTemplateRows: 'repeat(9, 1fr)',
|
|
@@ -133,3 +149,4 @@ export const C4ActivityGraph = ({ dataPoints, options, }) => {
|
|
|
133
149
|
// TODO: Add component content
|
|
134
150
|
return component;
|
|
135
151
|
};
|
|
152
|
+
export const C4ActivityGraph = memo(C4ActivityGraphComponent);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface ArrayFieldContainerProps {
|
|
6
6
|
fieldName: string;
|
|
7
7
|
spec: FieldSpec;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
3
|
-
import type { FilterFieldState } from './state.types';
|
|
2
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
3
|
+
import type { FilterFieldState } from './state.types.js';
|
|
4
4
|
interface FieldRowProps {
|
|
5
5
|
field: FilterFieldState;
|
|
6
6
|
spec: FieldSpec;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface FiltersSectionProps {
|
|
6
6
|
fields: Record<string, FieldSpec>;
|
|
7
7
|
filterFields: FilterFieldState[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { FieldSpec } from './c4-advanced-search-filters.types';
|
|
4
|
-
import type { FilterFieldState } from './state.types';
|
|
3
|
+
import type { FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
4
|
+
import type { FilterFieldState } from './state.types.js';
|
|
5
5
|
interface OrSectionProps {
|
|
6
6
|
sectionId: string;
|
|
7
7
|
fieldsConfig: Record<string, FieldSpec>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AdvancedSearchFiltersProps } from './c4-advanced-search-filters.types';
|
|
2
|
+
import type { C4AdvancedSearchFiltersProps } from './c4-advanced-search-filters.types.js';
|
|
3
3
|
export declare const C4AdvancedSearchFilters: ({ fields, onFilterChange, }: C4AdvancedSearchFiltersProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { Add } from '@carbon/react/icons/index.esm.js';
|
|
8
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
8
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { Button, Stack } from '../../ui/index.js';
|
|
10
10
|
import { useSelectFamily } from '../../ui/families.js';
|
|
11
11
|
import { FieldRow } from './FieldRow.js';
|
|
@@ -342,7 +342,11 @@ export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
|
|
|
342
342
|
updateFilter([...filterFields, ...newFields]);
|
|
343
343
|
}, [fields, filterFields, createInitialField, updateFilter]);
|
|
344
344
|
const renderFieldRow = (field, spec) => (_jsx(FieldRow, { field: field, spec: spec, onFieldChange: handleFieldChange, onRemove: spec.optional ? removeField : undefined, onAddArrayValue: addArrayValue, onRemoveArrayValue: removeArrayValue }, field.id));
|
|
345
|
-
|
|
345
|
+
// Root-section fields and the still-available optional fields are both pure
|
|
346
|
+
// functions of `filterFields`/`fields` but were recomputed several times per
|
|
347
|
+
// render; memoize them so each render does the work at most once.
|
|
348
|
+
const rootFilterFields = useMemo(() => filterFields.filter((f) => f.orSectionId === 'root'), [filterFields]);
|
|
349
|
+
const availableOptionalFields = useMemo(() => {
|
|
346
350
|
const addedFields = new Set(filterFields
|
|
347
351
|
.filter((f) => f.orSectionId === 'root' && !f.parentArrayField)
|
|
348
352
|
.map((f) => f.fieldName));
|
|
@@ -356,14 +360,14 @@ export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
|
|
|
356
360
|
!addedArrayFields.has(fieldName))
|
|
357
361
|
.map(([fieldName, spec]) => ({ fieldName, spec }))
|
|
358
362
|
.sort((a, b) => a.spec.label.localeCompare(b.spec.label));
|
|
359
|
-
};
|
|
363
|
+
}, [filterFields, fields]);
|
|
360
364
|
return (_jsx(Stack, { gap: 5, children: Object.keys(fields).length === 0 ? (_jsx("div", { style: {
|
|
361
365
|
textAlign: 'center',
|
|
362
366
|
padding: '2rem',
|
|
363
367
|
color: 'var(--cds-text-secondary)',
|
|
364
368
|
fontSize: '0.875rem',
|
|
365
|
-
}, children: "No fields are configured for this filter component." })) : (_jsxs(_Fragment, { children: [
|
|
366
|
-
|
|
369
|
+
}, children: "No fields are configured for this filter component." })) : (_jsxs(_Fragment, { children: [rootFilterFields.length === 0 &&
|
|
370
|
+
availableOptionalFields.length > 0 ? (_jsx("div", { style: {
|
|
367
371
|
textAlign: 'center',
|
|
368
372
|
padding: '1rem',
|
|
369
373
|
color: 'var(--cds-text-secondary)',
|
|
@@ -384,13 +388,9 @@ export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
|
|
|
384
388
|
borderRadius: '4px',
|
|
385
389
|
fontSize: '0.75rem',
|
|
386
390
|
fontWeight: '500',
|
|
387
|
-
}, children: "AND" }), "Main Filter Conditions"] }), _jsx(FiltersSection, { fields: fields, filterFields:
|
|
388
|
-
marginTop:
|
|
389
|
-
|
|
390
|
-
? '0'
|
|
391
|
-
: '1rem',
|
|
392
|
-
}, children: [filterFields.filter((f) => f.orSectionId === 'root').length ===
|
|
393
|
-
0 && (_jsx("div", { style: {
|
|
391
|
+
}, children: "AND" }), "Main Filter Conditions"] }), _jsx(FiltersSection, { fields: fields, filterFields: rootFilterFields, addArrayItem: addArrayItem, updateFilter: updateFilter, renderFieldRow: renderFieldRow })] })), availableOptionalFields.length > 0 && (_jsxs("div", { style: {
|
|
392
|
+
marginTop: rootFilterFields.length === 0 ? '0' : '1rem',
|
|
393
|
+
}, children: [rootFilterFields.length === 0 && (_jsx("div", { style: {
|
|
394
394
|
marginBottom: '1rem',
|
|
395
395
|
color: 'var(--cds-text-primary)',
|
|
396
396
|
fontSize: '0.875rem',
|
|
@@ -400,7 +400,7 @@ export const C4AdvancedSearchFilters = ({ fields, onFilterChange, }) => {
|
|
|
400
400
|
if (fieldName) {
|
|
401
401
|
addOptionalField(fieldName);
|
|
402
402
|
}
|
|
403
|
-
}, children: [_jsx(SelectItem, { value: '', text: 'Select field to add...' }),
|
|
403
|
+
}, children: [_jsx(SelectItem, { value: '', text: 'Select field to add...' }), availableOptionalFields.map((field) => (_jsx(SelectItem, { value: field.fieldName, text: field.spec.label }, field.fieldName)))] })] })), orSections.map((sectionId) => (_jsx(OrSection, { sectionId: sectionId, fieldsConfig: fields, filterFields: filterFields.filter((f) => f.orSectionId === sectionId), addArrayItem: addArrayItem, removeOrSection: removeOrSection, addOptionalFieldToSection: addOptionalFieldToSection, updateFilter: updateFilter, renderFieldRow: renderFieldRow }, sectionId))), _jsxs("div", { style: { marginTop: '1rem' }, children: [_jsx(Button, { kind: 'tertiary', size: 'sm', renderIcon: Add, onClick: addOrSection, children: "Add OR Condition" }), _jsx("div", { style: {
|
|
404
404
|
fontSize: '0.75rem',
|
|
405
405
|
color: 'var(--cds-text-secondary)',
|
|
406
406
|
marginTop: '0.5rem',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AdvancedFilterOperator, FieldDataType, FieldSpec } from './c4-advanced-search-filters.types';
|
|
1
|
+
import type { AdvancedFilterOperator, FieldDataType, FieldSpec } from './c4-advanced-search-filters.types.js';
|
|
2
2
|
export declare const validateComparisonOperatorValue: (value: string | number | boolean | Date, operator: AdvancedFilterOperator, fieldType?: FieldDataType) => string | undefined;
|
|
3
3
|
export declare const isArrayOperator: (operator?: AdvancedFilterOperator) => boolean;
|
|
4
4
|
export declare const convertDateToISOString: (value: unknown) => unknown;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AiUsageProps } from './c4-ai-usage.types';
|
|
2
|
+
import type { C4AiUsageProps } from './c4-ai-usage.types.js';
|
|
3
3
|
export declare const C4AiUsage: ({ usage, limit, isLoading, hasError, emptyStateIconPath, text, urls, onViewBlueprints, onLearnMore, }: C4AiUsageProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AlphaClusterAtCheckoutProps } from './c4-alpha-cluster-at-checkout.types';
|
|
2
|
+
import type { C4AlphaClusterAtCheckoutProps } from './c4-alpha-cluster-at-checkout.types.js';
|
|
3
3
|
export declare const C4AlphaClusterAtCheckout: (props: C4AlphaClusterAtCheckoutProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types';
|
|
1
|
+
import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types.js';
|
|
2
2
|
export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AppTeaserCardProps } from '../c4-app-teaser-card/c4-app-teaster-card.types';
|
|
2
|
+
import type { C4AppTeaserCardProps } from '../c4-app-teaser-card/c4-app-teaster-card.types.js';
|
|
3
3
|
export interface C4AppTeaserCardsProps {
|
|
4
4
|
title: string;
|
|
5
5
|
subtitle: JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AsyncModalProps } from './c4-async-modal.types';
|
|
2
|
+
import type { C4AsyncModalProps } from './c4-async-modal.types.js';
|
|
3
3
|
export declare const C4AsyncModal: ({ open, loadingText, modalHeading, onRequestClose, onRequestSubmit, primaryButtonText, secondaryButtonText, children, danger, primaryButtonDisabled, size, preventCloseOnClickOutside, }: C4AsyncModalProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4AuditLogProps } from './c4-audit-log.types';
|
|
2
|
+
import type { C4AuditLogProps } from './c4-audit-log.types.js';
|
|
3
3
|
export declare const C4AuditLog: ({ enabled, userCategories, clientCategories, onUpdate, onEnable, onDisable, learnMoreUrl, permissions, }: C4AuditLogProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4BillingPageProps } from './c4-billing-page.types';
|
|
1
|
+
import type { C4BillingPageProps } from './c4-billing-page.types.js';
|
|
2
2
|
export declare const enterpriseProps: C4BillingPageProps;
|
|
3
3
|
export declare const enterpriseLicensingModel2025Props: C4BillingPageProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClusterReservationsProps } from './elements/cluster-reservations';
|
|
2
|
-
import type { CurrentUsageMetricsProps } from './elements/current-usage-metrics';
|
|
3
|
-
import type { PlanDetailsProps } from './elements/plan-details';
|
|
4
|
-
import type { UsageAlertsProps } from './elements/usage-alerts';
|
|
1
|
+
import type { ClusterReservationsProps } from './elements/cluster-reservations.js';
|
|
2
|
+
import type { CurrentUsageMetricsProps } from './elements/current-usage-metrics.js';
|
|
3
|
+
import type { PlanDetailsProps } from './elements/plan-details.js';
|
|
4
|
+
import type { UsageAlertsProps } from './elements/usage-alerts.js';
|
|
5
5
|
export interface C4BillingPageProps {
|
|
6
6
|
title?: string;
|
|
7
7
|
subheading?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import { type ValueMetricProps } from './value-metric';
|
|
3
|
-
export type MetricsOrder = 'tu' | 'gu' | 'pi' | 'di';
|
|
2
|
+
import { type ValueMetricProps } from './value-metric.js';
|
|
3
|
+
export type MetricsOrder = 'tu' | 'gu' | 'pi' | 'di' | 'tenants';
|
|
4
4
|
export interface CurrentUsageMetricsProps {
|
|
5
5
|
title: JSX.Element;
|
|
6
6
|
description: string;
|
|
@@ -10,7 +10,8 @@ export interface CurrentUsageMetricsProps {
|
|
|
10
10
|
generalUsers: ValueMetricProps;
|
|
11
11
|
processInstances: ValueMetricProps;
|
|
12
12
|
decisionInstances: ValueMetricProps;
|
|
13
|
+
tenants?: ValueMetricProps;
|
|
13
14
|
}
|
|
14
|
-
export declare const CurrentUsageMetrics: ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, isEnterpriseOrg, }: CurrentUsageMetricsProps) => JSX.Element;
|
|
15
|
+
export declare const CurrentUsageMetrics: ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, tenants, isEnterpriseOrg, }: CurrentUsageMetricsProps) => JSX.Element;
|
|
15
16
|
export type MediaSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
16
17
|
export declare function mediaSizeByWidth(width: number): MediaSize;
|
|
@@ -10,14 +10,20 @@ import { Stack } from '../../../ui/index.js';
|
|
|
10
10
|
import { C4TileWithTitleAndAction } from '../../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
11
11
|
import { STYLES } from '../c4-billing-page.js';
|
|
12
12
|
import { ValueMetric } from './value-metric.js';
|
|
13
|
-
export const CurrentUsageMetrics = ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, isEnterpriseOrg = false, }) => {
|
|
13
|
+
export const CurrentUsageMetrics = ({ title, decisionInstances, description, generalUsers, order, processInstances, taskUsers, tenants, isEnterpriseOrg = false, }) => {
|
|
14
14
|
const [mediaSize, setMediaSize] = useState(mediaSizeByWidth(window.innerWidth));
|
|
15
15
|
useEffect(() => {
|
|
16
|
+
let frame = 0;
|
|
16
17
|
const handleWindowResize = () => {
|
|
17
|
-
|
|
18
|
+
// Coalesce bursts of resize events into one update per animation frame.
|
|
19
|
+
cancelAnimationFrame(frame);
|
|
20
|
+
frame = requestAnimationFrame(() => {
|
|
21
|
+
setMediaSize(mediaSizeByWidth(window.innerWidth));
|
|
22
|
+
});
|
|
18
23
|
};
|
|
19
24
|
window.addEventListener('resize', handleWindowResize);
|
|
20
25
|
return () => {
|
|
26
|
+
cancelAnimationFrame(frame);
|
|
21
27
|
window.removeEventListener('resize', handleWindowResize);
|
|
22
28
|
};
|
|
23
29
|
}, []);
|
|
@@ -37,6 +43,11 @@ export const CurrentUsageMetrics = ({ title, decisionInstances, description, gen
|
|
|
37
43
|
case 'di':
|
|
38
44
|
metrics.push(_jsx(ValueMetric, { ...decisionInstances, isEnterpriseOrg: isEnterpriseOrg }));
|
|
39
45
|
break;
|
|
46
|
+
case 'tenants':
|
|
47
|
+
if (tenants) {
|
|
48
|
+
metrics.push(_jsx(ValueMetric, { ...tenants, isEnterpriseOrg: isEnterpriseOrg }));
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
40
51
|
}
|
|
41
52
|
}
|
|
42
53
|
const component = (_jsx(C4TileWithTitleAndAction, { title: title, description: description, children: ['sm', 'md'].includes(mediaSize) ? (_jsx(Stack, { gap: 5, children: Array.from({ length: Math.ceil(metrics.length / 2) }, (_, rowIndex) => (_jsx(Grid, { style: { ...STYLES.grid }, children: metrics
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4BreadcrumbProps } from './c4-breadcrumb.types';
|
|
2
|
+
import type { C4BreadcrumbProps } from './c4-breadcrumb.types.js';
|
|
3
3
|
export declare const C4Breadcrumb: ({ loading, noTrailingSlash, elements, title, menu, tag, indicator, codeSnippet, }: C4BreadcrumbProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ChartsDashboardProps } from './c4-charts-dashboard.types';
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { C4ChartsDashboardProps } from './c4-charts-dashboard.types.js';
|
|
3
3
|
export declare const C4ChartsDashboard: ({ charts, theme, title, menuItems, isLoading, }: C4ChartsDashboardProps) => JSX.Element;
|
|
@@ -5,38 +5,44 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C3Page } from '@camunda/camunda-composite-components';
|
|
8
|
+
import { useMemo } from 'react';
|
|
8
9
|
import { Stack } from '../../ui/index.js';
|
|
9
10
|
import { C4AlluvialChart } from './elements/alluvial-chart.js';
|
|
10
11
|
import { C4BarChart } from './elements/bar-chart.js';
|
|
11
12
|
import { C4LineChart } from './elements/line-chart.js';
|
|
12
13
|
export const C4ChartsDashboard = ({ charts, theme, title, menuItems, isLoading, }) => {
|
|
13
14
|
const carbonTheme = theme === 'dark' ? 'g100' : 'g10';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
// Memoize the per-tab grouping + sort and the tab tree so each chart receives
|
|
16
|
+
// a stable `dataPoints` identity; otherwise every parent re-render hands the
|
|
17
|
+
// underlying chart libraries fresh arrays and forces a full re-init.
|
|
18
|
+
const tabs = useMemo(() => {
|
|
19
|
+
const chartsByTab = new Map();
|
|
20
|
+
charts.forEach((chartConfig) => {
|
|
21
|
+
const key = chartConfig.tab;
|
|
22
|
+
const list = chartsByTab.get(key) ?? [];
|
|
23
|
+
list.push({
|
|
24
|
+
...chartConfig,
|
|
25
|
+
dataPoints: chartConfig.dataPoints.toSorted((a, b) => {
|
|
26
|
+
if ('date' in a && 'date' in b) {
|
|
27
|
+
return String(a.date).localeCompare(String(b.date));
|
|
28
|
+
}
|
|
29
|
+
if ('key' in a && 'key' in b) {
|
|
30
|
+
return String(a.key).localeCompare(String(b.key));
|
|
31
|
+
}
|
|
32
|
+
return 0;
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
chartsByTab.set(key, list);
|
|
29
36
|
});
|
|
30
|
-
chartsByTab.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}));
|
|
37
|
+
return Array.from(chartsByTab.entries()).map(([tab, defs]) => ({
|
|
38
|
+
id: tab,
|
|
39
|
+
label: tab,
|
|
40
|
+
content: (_jsx(Stack, { gap: 4, children: defs.map((def, i) => {
|
|
41
|
+
const key = def.id ?? `${tab}-${def.title}-${i}`;
|
|
42
|
+
return _jsx(ChartItem, { ...def, theme: carbonTheme }, key);
|
|
43
|
+
}) })),
|
|
44
|
+
}));
|
|
45
|
+
}, [charts, carbonTheme]);
|
|
40
46
|
return (_jsx(C3Page, { isLoading: isLoading, header: { title, menuItems }, tabs: { list: tabs } }));
|
|
41
47
|
};
|
|
42
48
|
const ChartItem = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4AlluvialChartDefinition } from '../c4-charts-dashboard.types';
|
|
2
|
+
import type { C4AlluvialChartDefinition } from '../c4-charts-dashboard.types.js';
|
|
3
3
|
export type C4AlluvialChartProps = C4AlluvialChartDefinition & {
|
|
4
4
|
theme: 'g10' | 'g100';
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4LineChartDefinition } from '../c4-charts-dashboard.types';
|
|
2
|
+
import type { C4LineChartDefinition } from '../c4-charts-dashboard.types.js';
|
|
3
3
|
type C4LineChartProps = C4LineChartDefinition & {
|
|
4
4
|
theme: 'g10' | 'g100';
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterByomClientsProps } from './c4-cluster-byom-clients.types';
|
|
2
|
+
import type { C4ClusterByomClientsProps } from './c4-cluster-byom-clients.types.js';
|
|
3
3
|
export declare const C4ClusterByomClients: ({ clients, isLoading, hasError, text, urls, permissions, onActivateEndpoint, onCreateClient, onRotatePassword, onDeleteClient, onRefresh, onOpenDocs, }: C4ClusterByomClientsProps) => JSX.Element;
|