@camunda/ccma-saas-frontend 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/assetUrls.d.ts +19 -0
- package/lib/esm/assetUrls.js +41 -0
- package/lib/esm/assets/ai.svg +14 -0
- package/lib/esm/assets/alerts.svg +5 -0
- package/lib/esm/assets/auditlogs.svg +9 -0
- package/lib/esm/assets/backup.svg +3 -0
- package/lib/esm/assets/clientApi.svg +10 -0
- package/lib/esm/assets/cluster.svg +4 -0
- package/lib/esm/assets/connectorSecret.svg +3 -0
- package/lib/esm/assets/consoleAPI.svg +3 -0
- package/lib/esm/assets/error.svg +11 -0
- package/lib/esm/assets/fatalError.svg +5 -0
- package/lib/esm/assets/ipwhitelist.svg +3 -0
- package/lib/esm/assets/monitoring.svg +6 -0
- package/lib/esm/assets/operatePreview.jpg +0 -0
- package/lib/esm/assets/optimizePreview.jpg +0 -0
- package/lib/esm/assets/secureConnectivity.svg +11 -0
- package/lib/esm/assets/tasklistPreview.jpg +0 -0
- package/lib/esm/assets/upgrade.svg +4 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +2 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +3 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +1 -0
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +49 -0
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +3 -2
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +3 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +3 -2
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +3 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +5 -4
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +4 -3
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +48 -7
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +1 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +303 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +4 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +3 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +41 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.types.d.ts +10 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +5 -2
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +6 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +4 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.js +2 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +2 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +25 -2
- package/lib/esm/externalUrls.const.d.ts +90 -0
- package/lib/esm/externalUrls.const.js +191 -0
- package/lib/esm/externalUrls.const.spec.d.ts +1 -0
- package/lib/esm/externalUrls.const.spec.js +108 -0
- package/lib/esm/i18n/en/modals/clusterclients.json +3 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +4 -0
- package/lib/esm/i18n/en/pages/createcluster.json +4 -1
- package/lib/esm/index.d.ts +4 -0
- package/lib/esm/index.js +3 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +2 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +2 -2
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +53 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +34 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +69 -38
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +3 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +19 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +6 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +5 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +33 -41
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +64 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.js +5 -3
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +37 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +2 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +26 -15
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +8 -7
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +9 -8
- package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
- package/lib/esm/widgets/group-details/c4-group-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +116 -89
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -15
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +3 -4
- package/lib/esm/widgets/user-details/c4-user-details-page.js +2 -3
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const C4_ASSET_URLS: {
|
|
2
|
+
readonly aiIcon: string;
|
|
3
|
+
readonly alertsIcon: string;
|
|
4
|
+
readonly auditLogIcon: string;
|
|
5
|
+
readonly backupIcon: string;
|
|
6
|
+
readonly clientApiIcon: string;
|
|
7
|
+
readonly clusterIcon: string;
|
|
8
|
+
readonly connectorSecretIcon: string;
|
|
9
|
+
readonly consoleApiIcon: string;
|
|
10
|
+
readonly errorIcon: string;
|
|
11
|
+
readonly fatalErrorIcon: string;
|
|
12
|
+
readonly ipWhitelistIcon: string;
|
|
13
|
+
readonly monitoringIcon: string;
|
|
14
|
+
readonly operatePreviewImage: string;
|
|
15
|
+
readonly optimizePreviewImage: string;
|
|
16
|
+
readonly secureConnectivityIcon: string;
|
|
17
|
+
readonly tasklistPreviewImage: string;
|
|
18
|
+
readonly upgradeIcon: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import aiIcon from './assets/ai.svg';
|
|
7
|
+
import alertsIcon from './assets/alerts.svg';
|
|
8
|
+
import auditLogIcon from './assets/auditlogs.svg';
|
|
9
|
+
import backupIcon from './assets/backup.svg';
|
|
10
|
+
import clientApiIcon from './assets/clientApi.svg';
|
|
11
|
+
import clusterIcon from './assets/cluster.svg';
|
|
12
|
+
import connectorSecretIcon from './assets/connectorSecret.svg';
|
|
13
|
+
import consoleApiIcon from './assets/consoleAPI.svg';
|
|
14
|
+
import errorIcon from './assets/error.svg';
|
|
15
|
+
import fatalErrorIcon from './assets/fatalError.svg';
|
|
16
|
+
import ipWhitelistIcon from './assets/ipwhitelist.svg';
|
|
17
|
+
import monitoringIcon from './assets/monitoring.svg';
|
|
18
|
+
import operatePreviewImage from './assets/operatePreview.jpg';
|
|
19
|
+
import optimizePreviewImage from './assets/optimizePreview.jpg';
|
|
20
|
+
import secureConnectivityIcon from './assets/secureConnectivity.svg';
|
|
21
|
+
import tasklistPreviewImage from './assets/tasklistPreview.jpg';
|
|
22
|
+
import upgradeIcon from './assets/upgrade.svg';
|
|
23
|
+
export const C4_ASSET_URLS = {
|
|
24
|
+
aiIcon,
|
|
25
|
+
alertsIcon,
|
|
26
|
+
auditLogIcon,
|
|
27
|
+
backupIcon,
|
|
28
|
+
clientApiIcon,
|
|
29
|
+
clusterIcon,
|
|
30
|
+
connectorSecretIcon,
|
|
31
|
+
consoleApiIcon,
|
|
32
|
+
errorIcon,
|
|
33
|
+
fatalErrorIcon,
|
|
34
|
+
ipWhitelistIcon,
|
|
35
|
+
monitoringIcon,
|
|
36
|
+
operatePreviewImage,
|
|
37
|
+
optimizePreviewImage,
|
|
38
|
+
secureConnectivityIcon,
|
|
39
|
+
tasklistPreviewImage,
|
|
40
|
+
upgradeIcon,
|
|
41
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="100" height="97" viewBox="0 0 100 97" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="99.8044" height="97" rx="5.60884" fill="#E8E8E8"/>
|
|
3
|
+
<path d="M82.1292 39.3945L72.2833 35.0908C67.6821 33.0837 64.1984 29.2146 62.7101 24.4815L59.5263 14.3285C58.2015 10.1052 54.2981 7.27173 49.8113 7.27173C45.3245 7.27173 41.4211 10.1105 40.0963 14.3285L36.9125 24.4815C35.4296 29.2146 31.9406 33.0838 27.3393 35.0908L17.4935 39.3945C13.77 41.0206 11.453 44.5247 11.453 48.5388C11.453 52.5528 13.77 56.0569 17.4935 57.683L27.3393 61.9867C31.9406 63.9991 35.4242 67.8629 36.9126 72.596L40.0963 82.7491C41.4157 86.9725 45.3191 89.8058 49.8113 89.8058C54.2981 89.8058 58.2015 86.9669 59.5263 82.7491L62.7101 72.596C64.1929 67.8629 67.6821 63.9938 72.2833 61.9867L82.1292 57.683C85.8527 56.0569 88.1697 52.5528 88.1697 48.5388C88.1697 44.5248 85.8527 41.0206 82.1292 39.3945Z" fill="#6967FF"/>
|
|
4
|
+
<path d="M72.7581 80.3015L72.0477 77.5889H68.9637L68.2695 80.3015H65.8152L68.8669 69.0314H72.2899L75.3415 80.3015H72.7581ZM70.5784 71.3726H70.4492L69.3513 75.6353H71.6763L70.5784 71.3726ZM77.2727 80.3015V78.5093H79.6947V70.8237H77.2727V69.0314H84.5386V70.8237H82.1166V78.5093H84.5386V80.3015H77.2727Z" fill="#EB6200"/>
|
|
5
|
+
<g clip-path="url(#clip0_16_664)">
|
|
6
|
+
<path d="M49.8097 57.0059C54.1055 57.0059 56.3165 54.4731 56.3494 50.0163V46.3313H52.2145V50.3053C52.2145 52.2931 51.3477 52.9991 49.9377 52.9991C48.5588 52.9991 47.6609 52.2931 47.6609 50.3053V35.2799C47.6609 33.292 48.5277 32.5221 49.9377 32.555C51.3166 32.555 52.2145 33.3231 52.2145 35.311V38.2846H56.3494V35.5908C56.3494 31.1341 54.1366 28.603 49.8408 28.603C45.5449 28.603 43.3285 31.1341 43.301 35.5908V50.0492C43.301 54.442 45.523 57.0059 49.8097 57.0059Z" fill="white"/>
|
|
7
|
+
<path d="M56.3494 61.0768H43.301V68.4505H56.3494V61.0768Z" fill="white"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_16_664">
|
|
11
|
+
<rect width="56.5095" height="56.5095" fill="white" transform="translate(21.5659 20.2838)"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="80" height="55" viewBox="0 0 80 55" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M64.1463 41.0722L60.3339 37.2598C64.5231 31.4968 64.5231 23.6725 60.3339 17.9095L64.1463 14.0971C70.3526 22.0323 70.3526 33.1592 64.1463 41.0722Z" fill="#BBBCBC"/>
|
|
3
|
+
<path d="M72.5691 7.33673L68.801 11.1048C76.6254 20.7024 76.6254 34.4892 68.801 44.0646L72.5691 47.8327C82.477 36.1737 82.477 19.0178 72.5691 7.33673Z" fill="#BBBCBC"/>
|
|
4
|
+
<path d="M49.0961 0V0.110826L49.0518 0.0443305L27.4406 11.9028H0V39.964H10.6172L6.69391 54.7925L22.1209 54.7482L26.1329 39.964H27.3741L49.0518 51.8446L49.0961 51.7781V51.8224H54.4601V0H49.0961ZM18.0869 49.3842H13.676L16.1807 39.9418H20.5915L18.0869 49.3842ZM34.6222 37.814L28.7484 34.5778L28.704 34.6443V34.5778H5.364V17.2667H28.7262V17.2446L28.7705 17.3111L34.6443 14.0971L34.6222 37.814ZM49.0961 45.7491L39.9862 40.7619V11.127L49.0961 6.13978V45.7491Z" fill="#FF8201"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="80" height="80" fill="white" fill-opacity="0.01" style="mix-blend-mode:multiply"/>
|
|
3
|
+
<path d="M30 42.5H17.5V47.5H30V42.5Z" fill="#BBBCBC"/>
|
|
4
|
+
<path d="M47.5 30H17.5V35H47.5V30Z" fill="#BBBCBC"/>
|
|
5
|
+
<path d="M47.5 17.5H17.5V22.5H47.5V17.5Z" fill="#BBBCBC"/>
|
|
6
|
+
<path d="M55 5H10C8.67509 5.00383 7.40555 5.53184 6.46869 6.46869C5.53184 7.40555 5.00383 8.67509 5 10V70C5.00383 71.3249 5.53184 72.5945 6.46869 73.5313C7.40555 74.4682 8.67509 74.9962 10 75H30V70H10V10H55V37.5H60V10C59.9962 8.67509 59.4682 7.40555 58.5313 6.46869C57.5945 5.53184 56.3249 5.00383 55 5Z" fill="#BBBCBC"/>
|
|
7
|
+
<path d="M55 65C57.7614 65 60 62.7614 60 60C60 57.2386 57.7614 55 55 55C52.2386 55 50 57.2386 50 60C50 62.7614 52.2386 65 55 65Z" fill="#FF8201"/>
|
|
8
|
+
<path d="M74.4422 58.6963C72.8974 54.7612 70.2318 51.366 66.7758 48.9314C63.3198 46.4969 59.2254 45.1299 55 45C50.7746 45.1299 46.6802 46.4969 43.2242 48.9314C39.7682 51.366 37.1026 54.7612 35.5577 58.6963L35 60L35.5577 61.3037C37.1026 65.2388 39.7682 68.634 43.2242 71.0686C46.6802 73.5031 50.7746 74.8701 55 75C59.2254 74.8701 63.3198 73.5031 66.7758 71.0686C70.2318 68.634 72.8974 65.2388 74.4422 61.3037L75 60L74.4422 58.6963ZM55 70C53.0222 70 51.0888 69.4135 49.4443 68.3147C47.7998 67.2159 46.5181 65.6541 45.7612 63.8268C45.0043 61.9996 44.8063 59.9889 45.1921 58.0491C45.578 56.1093 46.5304 54.3275 47.9289 52.9289C49.3275 51.5304 51.1093 50.578 53.0491 50.1921C54.9889 49.8063 56.9996 50.0043 58.8268 50.7612C60.6541 51.5181 62.2159 52.7998 63.3147 54.4443C64.4135 56.0888 65 58.0222 65 60C64.997 62.6513 63.9425 65.1931 62.0678 67.0678C60.1931 68.9425 57.6513 69.997 55 70Z" fill="#FF8201"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="44" height="38" viewBox="0 0 44 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path id="Vector" d="M18.25 6.0399H8.49996V4.9599H18.25V6.0399ZM18.25 18.4599H8.49996V19.5399H18.25V18.4599ZM8.49996 33.0399H18.25V31.9599H8.49996V33.0399ZM43.54 5.4999V18.9999C43.54 19.2984 43.2985 19.5399 43 19.5399H37.54V23.4999C37.54 23.7984 37.2985 24.0399 37 24.0399H6.99996C6.70146 24.0399 6.45996 23.7984 6.45996 23.4999V19.5399H1.53996V31.9599H6.45996V27.9999C6.45996 27.7014 6.70146 27.4599 6.99996 27.4599H37C37.2985 27.4599 37.54 27.7014 37.54 27.9999V36.9999C37.54 37.2984 37.2985 37.5399 37 37.5399H6.99996C6.70146 37.5399 6.45996 37.2984 6.45996 36.9999V33.0399H0.999961C0.701461 33.0399 0.459961 32.7984 0.459961 32.4999V18.9999C0.459961 18.7014 0.701461 18.4599 0.999961 18.4599H6.45996V14.4999C6.45996 14.2014 6.70146 13.9599 6.99996 13.9599H37C37.2985 13.9599 37.54 14.2014 37.54 14.4999V18.4599H42.4585V6.0399H37.54V9.9999C37.54 10.2984 37.2985 10.5399 37 10.5399H6.99996C6.70146 10.5399 6.45996 10.2984 6.45996 9.9999V0.9999C6.45996 0.7014 6.70146 0.4599 6.99996 0.4599H37C37.2985 0.4599 37.54 0.7014 37.54 0.9999V4.9599H43C43.2985 4.9599 43.54 5.2014 43.54 5.4999ZM36.46 1.5399H7.53996V9.4599H36.46V1.5399ZM7.53996 36.4599H36.46V28.5399H7.53996V36.4599ZM36.46 15.0399H7.53996V22.9599H36.46V15.0399ZM34 5.4999C34 5.0859 33.664 4.7499 33.25 4.7499C32.836 4.7499 32.5 5.0859 32.5 5.4999C32.5 5.9139 32.836 6.2499 33.25 6.2499C33.664 6.2499 34 5.9139 34 5.4999ZM34 18.9999C34 18.5859 33.664 18.2499 33.25 18.2499C32.836 18.2499 32.5 18.5859 32.5 18.9999C32.5 19.4139 32.836 19.7499 33.25 19.7499C33.664 19.7499 34 19.4139 34 18.9999ZM34 32.4999C34 32.0859 33.664 31.7499 33.25 31.7499C32.836 31.7499 32.5 32.0859 32.5 32.4999C32.5 32.9139 32.836 33.2499 33.25 33.2499C33.664 33.2499 34 32.9139 34 32.4999Z" fill="#EB6200"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M20.4016 40.6947V39.3053C20.4016 36.9531 21.794 35.4566 24.7925 35.4566C27.791 35.4566 29.1837 36.9531 29.1837 39.3053V40.6947C29.1837 43.0469 27.7913 44.5435 24.7925 44.5435C21.7937 44.5435 20.4016 43.0469 20.4016 40.6947ZM35.6091 40.6947V39.3053C35.6091 36.9531 37.0013 35.4566 40 35.4566C42.9988 35.4566 44.391 36.9531 44.391 39.3053V40.6947C44.391 43.0469 42.9988 44.5435 40 44.5435C37.0013 44.5435 35.6091 43.0469 35.6091 40.6947ZM50.8164 40.6947V39.3053C50.8164 36.9531 52.2088 35.4566 55.2073 35.4566C58.2059 35.4566 59.5985 36.9531 59.5985 39.3053V40.6947C59.5985 43.0469 58.2061 44.5435 55.2073 44.5435C52.2086 44.5435 50.8164 43.0469 50.8164 40.6947Z" fill="#BBBCBC"/>
|
|
3
|
+
<path d="M9.21049 64C6.58642 64 4.65879 62.5035 4.65879 59.1894V47.109C4.65879 44.2225 2.89168 42.8862 0 42.8862V37.1138C2.89168 37.1138 4.65879 35.7775 4.65879 32.8911V20.8111C4.65879 17.4971 6.58642 16 9.21049 16H14.8331V21.1315H11.1918V33.4253C11.1918 37.8618 8.67505 39.6257 3.9626 39.6257V40.3743C8.67505 40.3743 11.1918 42.1382 11.1918 46.5747V58.8685H14.8331V64H9.21049ZM70.7898 16C73.4136 16 75.3412 17.497 75.3412 20.811V32.891C75.3412 35.7775 77.1083 37.1138 80 37.1138V42.8862C77.1083 42.8862 75.3412 44.2225 75.3412 47.1089V59.1894C75.3412 62.5034 73.4136 64 70.7898 64H65.1669V58.8685H68.8085V46.5747C68.8085 42.1382 71.3252 40.3742 76.0374 40.3742V39.6257C71.3252 39.6257 68.8085 37.8618 68.8085 33.4253V21.1315H65.1669V16H70.7898Z" fill="url(#paint0_linear_32_9565)"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear_32_9565" x1="40" y1="16" x2="40" y2="64" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#FF8200"/>
|
|
7
|
+
<stop offset="1" stop-color="#FF8201"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M17.0216 53.0826C17.0216 53.7928 17.0869 54.4857 17.1806 55.1694C17.0963 55.1213 17.0107 55.0798 16.9266 55.0302L12.7961 59.1932L5.39969 51.5969L9.53327 47.4338C8.6966 45.9266 8.0528 44.3241 7.61419 42.6424L2 42.6075V31.9174L7.67636 31.9491C7.90652 31.1019 8.18332 30.2832 8.50682 29.5059C8.83345 28.719 9.21284 27.9447 9.64218 27.1927L5.72315 23.1692L13.1941 15.649L17.1101 19.6693C18.5907 18.8158 20.1645 18.1653 21.8067 17.7179L21.7757 12H32.3416L32.3229 17.7718C33.1534 18.0035 33.962 18.289 34.7396 18.619C35.5111 18.949 36.273 19.3393 37.0165 19.7772L41.066 15.6872L48.4563 23.2866L44.7674 27.0181C44.0206 26.8803 43.2597 26.7847 42.4741 26.7847C40.5899 26.7847 38.8063 27.2098 37.1931 27.9534C34.6648 25.1495 31.0546 23.3825 27.0321 23.3825C19.3903 23.3825 13.1953 29.721 13.1953 37.5401C13.1953 41.7546 15.0052 45.5277 17.8612 48.1212C17.3251 49.675 17.0216 51.3411 17.0216 53.0826Z" fill="#BBBCBC"/>
|
|
3
|
+
<path d="M68.3605 42.0543C66.9215 36.3807 61.883 32.1913 55.8878 32.1913C54.9286 32.1913 53.9942 32.2995 53.0948 32.5029C51.1856 29.6649 48.2103 27.6534 44.7674 27.0181C44.0206 26.8803 43.2597 26.7847 42.4741 26.7847C40.5899 26.7847 38.8063 27.2098 37.1931 27.9534C33.1885 29.7993 30.2657 33.6663 29.6921 38.2926C24.1857 39.0295 19.6574 42.9155 17.8612 48.1212C17.3251 49.675 17.0216 51.3411 17.0216 53.0826C17.0216 53.7928 17.0869 54.4857 17.1806 55.1694C18.175 62.4173 24.2431 68 31.601 68H65.1148C72.2311 68 78 62.0973 78 54.816C78 48.6819 73.9055 43.5265 68.3605 42.0543Z" fill="#FF8201"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="59" height="70" viewBox="0 0 59 70" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M50.3171 25.8367V0H8.52353V23.7342H15.5401V20.4871L12.8795 17.824V14.904H15.5401V6.96142H43.2769V25.8367H0V69.7544H58.8406V25.8367H50.3171ZM32.9404 46.9546V55.1541C32.9404 57.0696 31.3628 58.6348 29.4321 58.6348C27.5013 58.6348 25.9238 57.0696 25.9238 55.1541V46.9546C24.511 45.9033 23.5927 44.2214 23.5927 42.3292C23.5927 39.1288 26.2063 36.5358 29.4321 36.5358C32.6578 36.5358 35.2714 39.1288 35.2714 42.3292C35.2714 44.2214 34.3531 45.9033 32.9404 46.9546Z" fill="#FF8201"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="80" height="53" viewBox="0 0 80 53" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M67.3596 19.5769C65.4792 12.3061 58.8561 6.93654 51.0003 6.93654C49.7467 6.93654 48.514 7.08279 47.344 7.33351C44.8368 3.69809 40.9297 1.10734 36.4168 0.292505C35.4348 0.125359 34.432 0 33.4082 0C30.9428 0 28.6028 0.543223 26.4717 1.50431C21.2275 3.86524 17.3831 8.83782 16.631 14.7715C9.40193 15.7117 3.46827 20.6842 1.10734 27.3701C0.396971 29.3549 0 31.486 0 33.7216C0 34.6409 0.0835727 35.5184 0.208932 36.3959C1.50431 45.6934 9.46461 52.8598 19.1382 52.8598H63.0974C72.4367 52.8598 80 45.2964 80 35.9572C80 28.0804 74.6305 21.4782 67.3596 19.5769ZM29.9817 28.7699L25.7822 31.298L29.9817 33.8261V39.8851L19.4307 33.1575V29.4385L29.9817 22.7109V28.7699ZM37.5868 41.7028H32.071L39.8433 21.2066H45.3591L37.5868 41.7028ZM58.2084 33.1575L47.6574 39.8851V33.8261L51.8569 31.298L47.6574 28.7699V22.7109L58.2084 29.4385V33.1575Z" fill="#FF8201"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_115_9081)">
|
|
3
|
+
<path d="M70.8507 31.5708C70.1521 28.9493 69.1155 26.4408 67.7859 24.0905L74.2535 17.6951L62.4225 5.76285L55.9549 12.1583C54.7606 11.4804 53.5437 10.8702 52.3268 10.3504C51.0873 9.83065 49.8028 9.37867 48.4732 9.01709L48.4958 -0.0224609H31.6169L31.662 8.92669C29.0479 9.62726 26.5239 10.6442 24.1577 11.9775L17.893 5.71765L5.9493 17.4917L12.2141 23.7967C11.538 24.9719 10.9296 26.1922 10.3887 27.4126C9.87042 28.6329 9.41972 29.921 9.05915 31.2318L0 31.1866V47.9323L8.96901 47.9775C9.66761 50.6216 10.7042 53.1301 12.0338 55.4804L5.43099 62.0114L17.262 73.8984L23.8648 67.3674C25.0592 68.0679 26.2986 68.6781 27.5155 69.1753C28.7775 69.6951 30.062 70.147 31.369 70.5086V80.0001H48.1577V70.6442C50.7944 69.9436 53.3859 68.8815 55.7521 67.5482L48.6761 60.3843C46.0169 61.5369 43.0873 62.1696 40 62.1696C27.7859 62.1696 17.893 52.2487 17.893 40.0001C17.893 27.7516 27.7859 17.8306 40 17.8306C52.2141 17.8306 62.107 27.7516 62.107 40.0001C62.107 43.0058 61.5211 45.8758 60.4394 48.4747L67.6507 55.7064C68.3042 54.5538 68.9127 53.3787 69.431 52.1583C69.9493 50.9154 70.4 49.6499 70.7606 48.3165L80.0225 48.3391V31.5708H70.8507Z" fill="#FF8200"/>
|
|
4
|
+
<path d="M68.6197 58.7798C67.3803 58.7798 66.1859 59.0284 65.0817 59.4578L50.4113 44.7459C50.8394 43.6386 51.0873 42.4408 51.0873 41.1979C51.0873 35.8193 46.738 31.4804 41.3972 31.4804C40.0451 31.4804 38.7831 31.7516 37.6113 32.2487L44.2817 38.938L38.9859 44.2487L32.3831 37.6273C31.9549 38.7346 31.707 39.9323 31.707 41.1979C31.707 46.5764 36.0563 50.9154 41.3972 50.9154C42.6366 50.9154 43.8085 50.6894 44.8901 50.26L59.5831 64.9945C59.1549 66.0792 58.9296 67.2544 58.9296 68.4973C58.9296 73.8758 63.2789 78.2148 68.6197 78.2148C69.9718 78.2148 71.2338 77.9436 72.4056 77.4465L65.7352 70.7572L71.031 65.4465L77.6338 72.0679C78.062 70.9606 78.3099 69.7629 78.3099 68.4973C78.3099 63.1188 73.9831 58.7798 68.6197 58.7798Z" fill="#BBBCBC"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_115_9081">
|
|
8
|
+
<rect width="80" height="80" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="80" height="80" viewBox="0 0 512 512">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>.cls-1{fill:#939598;}.cls-2{fill:url(#linear-gradient);}</style>
|
|
4
|
+
<linearGradient id="linear-gradient" x1="71.72" y1="256" x2="440.28" y2="256" gradientUnits="userSpaceOnUse">
|
|
5
|
+
<stop offset="0.11" stop-color="#ff1e00"/><stop offset="0.25" stop-color="#ff2700"/><stop offset="0.48" stop-color="#ff3f00"/><stop offset="0.77" stop-color="#ff6700"/><stop offset="1" stop-color="#ff8b00"/></linearGradient></defs><path class="cls-1" d="M256,10a246.06,246.06,0,0,1,95.75,472.67A246.06,246.06,0,0,1,160.25,29.33,244.37,244.37,0,0,1,256,10m0-10C114.62,0,0,114.62,0,256S114.62,512,256,512,512,397.38,512,256,397.38,0,256,0Z"/><path class="cls-2" d="M276.34,345.31a20.68,20.68,0,1,1-20.68-20.68A20.68,20.68,0,0,1,276.34,345.31Zm163.94-93v28.48a10.94,10.94,0,0,1-9,8.46,10.67,10.67,0,0,1-1.68.1,10.82,10.82,0,0,1-8.82-4.35A13.37,13.37,0,0,0,410,279.75h-3.75c.35,4,.58,8,.59,12.07a141.73,141.73,0,0,1-3.74,32.8c-10.43,46.9-44.75,85.33-90.21,103.1a156,156,0,0,1-56.88,10.65H256a156,156,0,0,1-56.88-10.65c-45.46-17.77-79.78-56.2-90.21-103.1a141.73,141.73,0,0,1-3.74-32.8c0-4.07.24-8.09.59-12.07H102A13.37,13.37,0,0,0,91.25,285a10.82,10.82,0,0,1-8.82,4.35,10.67,10.67,0,0,1-1.68-.1,10.94,10.94,0,0,1-9-8.46V252.35a10.92,10.92,0,0,1,9-8.46,10.72,10.72,0,0,1,1.69-.1,10.88,10.88,0,0,1,4.42.89,204.75,204.75,0,0,1,19.1-64l.31-.64c.42-.85.85-1.69,1.28-2.53.28-.56.57-1.12.86-1.68l.89-1.68c.47-.87,1-1.74,1.43-2.61l.45-.82A185.82,185.82,0,0,1,152,120.56l-7.38-20.24a13.41,13.41,0,1,1,10-6.6l16,13a157.51,157.51,0,0,1,70.8-24.83l1-.09,2.1-.17,1.73-.12,2.23-.13,2.63-.1,1.28,0,2.57,0h2.2l2.57,0,1.28,0,2.63.1,2.23.13,1.73.12,2.1.17,1,.09a157.51,157.51,0,0,1,70.8,24.83l16-13a13.39,13.39,0,1,1,10,6.6L360,120.56a185.82,185.82,0,0,1,40.79,50.13l.45.82c.48.87,1,1.74,1.43,2.61l.89,1.68c.29.56.58,1.12.86,1.68.43.84.86,1.68,1.28,2.52.1.22.21.44.32.66a205,205,0,0,1,19.09,64,10.88,10.88,0,0,1,4.42-.89,10.72,10.72,0,0,1,1.69.1A10.92,10.92,0,0,1,440.28,252.35ZM299.79,206.79H212.21a83.8,83.8,0,0,0-83.8,83.79v7.58c0,46.28,37.52,102.6,83.8,102.6h87.58c46.28,0,83.8-56.32,83.8-102.6v-7.58A83.8,83.8,0,0,0,299.79,206.79ZM410,253.43a13.57,13.57,0,0,0,6.57-1.71c-18.54-68.94-83.22-120.08-160.12-120.36h-1c-76.9.28-141.58,51.42-160.12,120.36a13.57,13.57,0,0,0,6.57,1.71h8.62c17.61-61.46,76-106.71,145.14-106.77h.56c69.13.06,127.53,45.31,145.14,106.77ZM234.79,293.08l-16.62-16.62,16.62-16.62a9.4,9.4,0,0,0-13.3-13.29l-16.61,16.62-16.62-16.62A9.4,9.4,0,0,0,175,259.84l16.61,16.62L175,293.08a9.4,9.4,0,0,0,13.29,13.29l16.62-16.62,16.61,16.62a9.4,9.4,0,1,0,13.3-13.29ZM336.3,246.55a9.41,9.41,0,0,0-13.3,0l-16.61,16.62-16.62-16.62a9.4,9.4,0,0,0-13.29,13.29l16.62,16.62-16.62,16.62a9.4,9.4,0,0,0,13.29,13.29l16.62-16.62L323,306.37a9.4,9.4,0,0,0,13.3-13.29l-16.62-16.62,16.62-16.62A9.4,9.4,0,0,0,336.3,246.55Z"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="61" height="72" viewBox="0 0 61 72" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M30.5101 0L0 13.5191L4.20343 38.1716C5.51072 45.7978 9.3119 52.7511 14.9835 57.9099L30.4899 72L45.9964 57.9099C51.6881 52.7511 55.4893 45.7978 56.7765 38.1716L60.9799 13.5191L30.5101 0ZM25.7435 45.7774L15.4863 35.3577L20.3333 30.4435L25.7636 35.949L40.6868 20.819L45.5338 25.7332L25.7435 45.7774Z" fill="#FF8201"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="64" height="64" fill="white" fill-opacity="0.01" style="mix-blend-mode:multiply"/>
|
|
3
|
+
<path d="M56 32.0002V44.0002H8V12.0002H22V8.00021H8C6.93913 8.00021 5.92172 8.42164 5.17157 9.17179C4.42143 9.92193 4 10.9393 4 12.0002V44.0002C4 45.0611 4.42143 46.0785 5.17157 46.8286C5.92172 47.5788 6.93913 48.0002 8 48.0002H24V56.0002H16V60.0002H48V56.0002H40V48.0002H56C57.0609 48.0002 58.0783 47.5788 58.8284 46.8286C59.5786 46.0785 60 45.0611 60 44.0002V32.0002H56ZM36 56.0002H28V48.0002H36V56.0002Z" fill="#BBBCBC"/>
|
|
4
|
+
<path d="M36 36.0002H35.98C35.549 35.9957 35.1309 35.8521 34.7881 35.5907C34.4453 35.3293 34.1962 34.9641 34.0778 34.5496L30.4912 22.0002H22V18.0002H32C32.4346 18.0002 32.8574 18.1418 33.2043 18.4035C33.5513 18.6652 33.8036 19.0328 33.923 19.4506L36.0714 26.9684L42.089 7.41181C42.2187 7.00548 42.4731 6.65037 42.8162 6.39695C43.1593 6.14354 43.5735 6.00471 44 6.00021C44.4212 5.99398 44.8333 6.12364 45.175 6.36998C45.5168 6.61631 45.7701 6.96621 45.8974 7.36781L49.4414 18.0002H60V22.0002H48C47.5802 22.0002 47.1711 21.8681 46.8305 21.6227C46.49 21.3772 46.2353 21.0309 46.1026 20.6326L44.0762 14.5526L37.9112 34.5886C37.7854 34.9973 37.5319 35.3549 37.1879 35.609C36.844 35.863 36.4276 36.0002 36 36.0002Z" fill="#BBBCBC"/>
|
|
5
|
+
<path d="M36 36.0002H35.98C35.5489 35.9957 35.1309 35.8521 34.7881 35.5907C34.4453 35.3293 34.1962 34.9641 34.0778 34.5496L30.4912 22.0002H22V18.0002H32C32.4346 18.0002 32.8574 18.1418 33.2043 18.4035C33.5513 18.6652 33.8036 19.0328 33.923 19.4506L36.0714 26.9684L42.089 7.41181C42.2187 7.00548 42.4731 6.65037 42.8162 6.39695C43.1593 6.14354 43.5735 6.00471 44 6.00021C44.4212 5.99398 44.8333 6.12364 45.175 6.36998C45.5168 6.61631 45.7701 6.96621 45.8974 7.36781L49.4414 18.0002H60V22.0002H48C47.5802 22.0002 47.1711 21.8681 46.8305 21.6227C46.49 21.3772 46.2353 21.0309 46.1026 20.6326L44.0762 14.5526L37.9112 34.5886C37.7854 34.9973 37.5319 35.3549 37.1879 35.609C36.844 35.863 36.4276 36.0002 36 36.0002Z" fill="#FF8201"/>
|
|
6
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_7028_24080)">
|
|
3
|
+
<path d="M40 40V34C40 31.8783 39.1571 29.8434 37.6569 28.3431C36.1566 26.8429 34.1217 26 32 26C29.8783 26 27.8434 26.8429 26.3431 28.3431C24.8429 29.8434 24 31.8783 24 34V40C22.9395 40.0013 21.9229 40.4232 21.173 41.173C20.4232 41.9229 20.0013 42.9395 20 44V56C20.0013 57.0605 20.4232 58.0771 21.173 58.827C21.9229 59.5768 22.9395 59.9987 24 60H40C41.0605 59.9987 42.0771 59.5768 42.827 58.827C43.5768 58.0771 43.9987 57.0605 44 56V44C43.9987 42.9395 43.5768 41.9229 42.827 41.173C42.0771 40.4232 41.0605 40.0013 40 40ZM28 34C28 32.9391 28.4214 31.9217 29.1716 31.1716C29.9217 30.4214 30.9391 30 32 30C33.0609 30 34.0783 30.4214 34.8284 31.1716C35.5786 31.9217 36 32.9391 36 34V40H28V34ZM24 56V44H40L40.0024 56H24Z" fill="#FF8201"/>
|
|
4
|
+
<path d="M51.6576 20.2303C50.9005 16.3014 48.983 12.6896 46.1528 9.86118C43.3225 7.0328 39.7095 5.11771 35.78 4.36313C33.199 3.86453 30.5449 3.87952 27.9697 4.40725C25.3944 4.93498 22.9484 5.9651 20.7715 7.43871C18.5946 8.91232 16.7294 10.8005 15.2827 12.9954C13.836 15.1903 12.836 17.6488 12.34 20.2303C8.65359 20.8954 5.34928 22.9154 3.07667 25.8932C0.804058 28.871 -0.272466 32.5912 0.0587283 36.3225C0.389922 40.0538 2.10488 43.5262 4.86646 46.0572C7.62804 48.5881 11.2365 49.9946 14.9824 49.9999H16V45.9999H14.9906C12.2431 45.9965 9.5962 44.9654 7.57043 43.1092C5.54466 41.2531 4.28658 38.7062 4.04355 35.9695C3.80052 33.2327 4.59013 30.504 6.25712 28.3199C7.92411 26.1359 10.3479 24.6544 13.0518 24.1669L15.7494 23.6787L16.2676 20.9873C16.9733 17.3327 18.9294 14.0378 21.8001 11.6685C24.6707 9.29914 28.2767 8.0032 31.9988 8.0032C35.721 8.0032 39.327 9.29914 42.1976 11.6685C45.0682 14.0378 47.0243 17.3327 47.73 20.9873L48.248 23.6787L50.9458 24.1669C53.6491 24.6543 56.0723 26.1351 57.7393 28.3183C59.4063 30.5015 60.1965 33.2292 59.9545 35.9654C59.7126 38.7016 58.456 41.2483 56.4318 43.1051C54.4076 44.9619 51.7621 45.9945 49.0152 45.9999H48V49.9999H49.0152C52.7612 49.9946 56.3696 48.5881 59.1312 46.0572C61.8928 43.5262 63.6077 40.0538 63.9389 36.3225C64.2701 32.5912 63.1936 28.871 60.921 25.8932C58.6484 22.9154 55.344 20.8954 51.6576 20.2303Z" fill="#BBBCBC"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_7028_24080">
|
|
8
|
+
<rect width="64" height="64" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M40.0001 6.66675C21.6254 6.66675 6.66675 21.6254 6.66675 40.0001C6.66675 58.3748 21.6254 73.3334 40.0001 73.3334C58.3748 73.3334 73.3334 58.3748 73.3334 40.0001C73.3334 21.6254 58.3748 6.66675 40.0001 6.66675ZM40.0001 68.3172C24.3762 68.3172 11.6829 55.606 11.6829 40.0001C11.6829 24.3942 24.3762 11.665 40.0001 11.665C55.624 11.665 68.3172 24.3762 68.3172 39.9821C68.3172 55.588 55.624 68.3172 40.0001 68.3172Z" fill="#BBBCBC"/>
|
|
3
|
+
<path d="M50.0001 41.0754L40.0001 20.3922L30.0001 41.0754H34.9911V55.8824H44.9911V41.0754H50.0001Z" fill="#FF8201"/>
|
|
4
|
+
</svg>
|
|
@@ -5,11 +5,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
8
9
|
import { C4LLMUsageMeter } from '../c4-llm-usage-meter/c4-llm-usage-meter.js';
|
|
9
10
|
export const C4AiUsage = ({ usage, limit, isLoading = false, hasError = false, emptyStateIconPath, text, urls, onViewBlueprints, onLearnMore, }) => {
|
|
10
11
|
if (!isLoading && !hasError && usage === 0) {
|
|
11
12
|
return (_jsx(C3EmptyState, { icon: {
|
|
12
|
-
path: emptyStateIconPath ??
|
|
13
|
+
path: emptyStateIconPath ?? C4_ASSET_URLS.aiIcon,
|
|
13
14
|
altText: 'aiIcon',
|
|
14
15
|
}, heading: text.emptyStateTitle, description: text.emptyStateDescription, button: {
|
|
15
16
|
onClick: onViewBlueprints,
|
|
@@ -8,6 +8,7 @@ import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
|
8
8
|
import { Button, Checkbox, InlineLoading, Link, Modal, Stack, } from '@carbon/react';
|
|
9
9
|
import { Checkmark, Launch } from '@carbon/react/icons/index.esm.js';
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
12
|
const ALL_CATEGORIES = [
|
|
12
13
|
'ADMIN',
|
|
13
14
|
'DEPLOYED_RESOURCES',
|
|
@@ -83,7 +84,7 @@ export const C4AuditLog = ({ enabled, userCategories, clientCategories, onUpdate
|
|
|
83
84
|
};
|
|
84
85
|
if (!enabled) {
|
|
85
86
|
return (_jsx(C3EmptyState, { icon: {
|
|
86
|
-
path:
|
|
87
|
+
path: C4_ASSET_URLS.auditLogIcon,
|
|
87
88
|
altText: 'auditLogIcon',
|
|
88
89
|
}, heading: 'Audit log of operations', description: 'The audit log records user and client operations across processes, decisions, user tasks and identity. It helps your team trace events, when they occurred, what was affected, and whether they were successful.', button: permissions.mayChange
|
|
89
90
|
? {
|
|
@@ -103,14 +103,14 @@ const MeterVisualization = ({ currentPrefix, current, currentPostfix, max, maxPo
|
|
|
103
103
|
display: 'grid',
|
|
104
104
|
gridTemplateColumns: '1fr auto',
|
|
105
105
|
width: '100%',
|
|
106
|
-
}, children: [_jsx("p", { style: { fontSize: '18px' }, children: data.current }), _jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: data.max })] }), _jsx(MeterChart, { data: [
|
|
106
|
+
}, children: [_jsx("p", { style: { fontSize: '18px' }, children: data.current }), _jsx("p", { style: { color: 'var(--cds-text-helper)', alignSelf: 'end' }, children: data.max })] }), max > 0 && (_jsx(MeterChart, { data: [
|
|
107
107
|
{
|
|
108
108
|
group,
|
|
109
109
|
value: current,
|
|
110
110
|
},
|
|
111
|
-
], options: chartOptions })] }));
|
|
111
|
+
], options: chartOptions }))] }));
|
|
112
112
|
return component;
|
|
113
113
|
};
|
|
114
114
|
function formatNumber(number) {
|
|
115
|
-
return new Intl.NumberFormat('en-US'
|
|
115
|
+
return new Intl.NumberFormat('en-US').format(number);
|
|
116
116
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
+
* You may not use this file except in compliance with the commercial license.
|
|
6
|
+
*/
|
|
7
|
+
import { render, screen } from '@testing-library/react';
|
|
8
|
+
import { vi } from 'vitest';
|
|
9
|
+
import { ValueMetric } from './value-metric.js';
|
|
10
|
+
vi.mock('@carbon/charts-react', () => ({
|
|
11
|
+
MeterChart: ({ data }) => (_jsx("div", { "data-testid": 'meter-chart', "data-value": data[0]?.value })),
|
|
12
|
+
}));
|
|
13
|
+
function buildChartProps(current, max = 500000) {
|
|
14
|
+
return {
|
|
15
|
+
title: 'Process instances',
|
|
16
|
+
loading: false,
|
|
17
|
+
metric: {
|
|
18
|
+
kind: 'chart',
|
|
19
|
+
value: {
|
|
20
|
+
current,
|
|
21
|
+
max,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
describe('ValueMetric', () => {
|
|
27
|
+
describe('MeterChart (progress bar)', () => {
|
|
28
|
+
it('renders the progress bar when included (max) > 0', () => {
|
|
29
|
+
render(_jsx(ValueMetric, { ...buildChartProps(0, 500000) }));
|
|
30
|
+
expect(screen.getByTestId('meter-chart')).toBeInTheDocument();
|
|
31
|
+
});
|
|
32
|
+
it('renders the progress bar when both current and max are > 0', () => {
|
|
33
|
+
render(_jsx(ValueMetric, { ...buildChartProps(400000, 500000) }));
|
|
34
|
+
expect(screen.getByTestId('meter-chart')).toBeInTheDocument();
|
|
35
|
+
});
|
|
36
|
+
it('does NOT render the progress bar when included (max) is zero', () => {
|
|
37
|
+
render(_jsx(ValueMetric, { ...buildChartProps(0, 0) }));
|
|
38
|
+
expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
|
|
39
|
+
});
|
|
40
|
+
it('does NOT render the progress bar when max is zero even if current > 0', () => {
|
|
41
|
+
render(_jsx(ValueMetric, { ...buildChartProps(5, 0) }));
|
|
42
|
+
expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
|
|
43
|
+
});
|
|
44
|
+
it('still renders the current and max values when included (max) is zero', () => {
|
|
45
|
+
render(_jsx(ValueMetric, { ...buildChartProps(0, 0) }));
|
|
46
|
+
expect(screen.getAllByText('0')).toHaveLength(2);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { CodeSnippet, Stack } from '@carbon/react';
|
|
9
9
|
import { Launch, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
11
12
|
export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls, permissions, onActivateEndpoint, onCreateClient, onRotatePassword, onDeleteClient, onRefresh, onOpenDocs, }) => {
|
|
12
13
|
const tableData = clients.map((client, index) => ({
|
|
@@ -99,7 +100,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
|
|
|
99
100
|
];
|
|
100
101
|
if (hasError) {
|
|
101
102
|
return (_jsx(C3EmptyState, { icon: {
|
|
102
|
-
path:
|
|
103
|
+
path: C4_ASSET_URLS.errorIcon,
|
|
103
104
|
altText: 'errorIcon',
|
|
104
105
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
105
106
|
onClick: onRefresh,
|
|
@@ -110,7 +111,7 @@ export const C4ClusterByomClients = ({ clients, isLoading, hasError, text, urls,
|
|
|
110
111
|
}
|
|
111
112
|
if (!isLoading && clients.length === 0) {
|
|
112
113
|
return (_jsx(C3EmptyState, { icon: {
|
|
113
|
-
path:
|
|
114
|
+
path: C4_ASSET_URLS.monitoringIcon,
|
|
114
115
|
altText: 'monitoringIcon',
|
|
115
116
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: {
|
|
116
117
|
onClick: () => onActivateEndpoint(),
|
|
@@ -7,10 +7,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, } from '@carbon/react';
|
|
9
9
|
import { Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
export const C4ClusterDetailsActivity = ({ activityGroups, isLoading, hasError, text, onRefresh, }) => {
|
|
11
12
|
if (hasError) {
|
|
12
13
|
return (_jsx(C3EmptyState, { icon: {
|
|
13
|
-
path:
|
|
14
|
+
path: C4_ASSET_URLS.errorIcon,
|
|
14
15
|
altText: 'errorIcon',
|
|
15
16
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
16
17
|
onClick: onRefresh,
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { DataTableSkeleton, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
|
|
9
9
|
import { Edit } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, onCreateAlert, onUpdateAlert, onDeleteAlert, onNoAlertsDocsClick, }) => {
|
|
11
12
|
const headerData = [
|
|
12
13
|
{
|
|
@@ -90,8 +91,8 @@ export const C4ClusterDetailsAlerts = ({ alerts, isLoading, text, permissions, o
|
|
|
90
91
|
}
|
|
91
92
|
if (alerts.length === 0) {
|
|
92
93
|
return (_jsx(C3EmptyState, { icon: {
|
|
93
|
-
path:
|
|
94
|
-
altText: '
|
|
94
|
+
path: C4_ASSET_URLS.alertsIcon,
|
|
95
|
+
altText: 'alertsIcon',
|
|
95
96
|
}, heading: text.noAlertsTitle, description: text.noAlertsDescription, button: permissions.canCreate
|
|
96
97
|
? {
|
|
97
98
|
onClick: onCreateAlert,
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { Button, CodeSnippet, Stack } from '@carbon/react';
|
|
9
9
|
import { Edit, Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
11
12
|
export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdentityIntegration, hasIdentityAuthorization, hasZeebeUrl, text, urls, permissions, onNavigateToClient, onCreateClient, onUpdateClient, onDeleteClient, onRefresh, onOpenIdentity, onOpenDocs, }) => {
|
|
12
13
|
const tableData = clients.map((client, originalIndex) => ({
|
|
@@ -165,7 +166,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
165
166
|
];
|
|
166
167
|
if (hasError) {
|
|
167
168
|
return (_jsx(C3EmptyState, { icon: {
|
|
168
|
-
path:
|
|
169
|
+
path: C4_ASSET_URLS.errorIcon,
|
|
169
170
|
altText: 'errorIcon',
|
|
170
171
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
171
172
|
onClick: onRefresh,
|
|
@@ -176,7 +177,7 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
|
|
|
176
177
|
}
|
|
177
178
|
if (!isLoading && clients.length === 0) {
|
|
178
179
|
return (_jsx(C3EmptyState, { icon: {
|
|
179
|
-
path:
|
|
180
|
+
path: C4_ASSET_URLS.clientApiIcon,
|
|
180
181
|
altText: 'clientApiIcon',
|
|
181
182
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: {
|
|
182
183
|
onClick: onCreateClient,
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { DataTableSkeleton, Stack, Tag } from '@carbon/react';
|
|
9
9
|
import { Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError, hasImportFromClusterFeature, hasExportFeature, text, urls, permissions, onCreateSecret, onBulkImportSecrets, onImportFromCluster, onExportSecrets, onRevealSecret, onUpdateSecret, onDeleteSecret, onRefresh, onOpenDocs, }) => {
|
|
11
12
|
const headerData = [
|
|
12
13
|
{
|
|
@@ -130,7 +131,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
|
|
|
130
131
|
}
|
|
131
132
|
if (hasError) {
|
|
132
133
|
return (_jsx(C3EmptyState, { icon: {
|
|
133
|
-
path:
|
|
134
|
+
path: C4_ASSET_URLS.errorIcon,
|
|
134
135
|
altText: 'errorIcon',
|
|
135
136
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
136
137
|
onClick: onRefresh,
|
|
@@ -141,7 +142,7 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
|
|
|
141
142
|
}
|
|
142
143
|
if (secrets.length === 0) {
|
|
143
144
|
return (_jsx(C3EmptyState, { icon: {
|
|
144
|
-
path:
|
|
145
|
+
path: C4_ASSET_URLS.connectorSecretIcon,
|
|
145
146
|
altText: 'connectorSecretIcon',
|
|
146
147
|
}, heading: text.emptyTitle, description: text.emptyDescription, buttons: [
|
|
147
148
|
{
|
|
@@ -8,6 +8,7 @@ import { C3DataTable, C3EmptyState, C3ResponsiveStack, } from '@camunda/camunda-
|
|
|
8
8
|
import { Button, DataTableSkeleton, InlineNotification, Stack, Tile, } from '@carbon/react';
|
|
9
9
|
import { Add, Chat, Edit, EventSchedule, Renew } from '@carbon/react/icons/index.esm.js';
|
|
10
10
|
import styled from 'styled-components';
|
|
11
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
12
|
const BackupScheduleWrapper = styled.div `
|
|
12
13
|
width: 100%;
|
|
13
14
|
|
|
@@ -156,7 +157,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
156
157
|
},
|
|
157
158
|
];
|
|
158
159
|
if (showTeaser) {
|
|
159
|
-
return (_jsx(C3EmptyState, { icon: { path:
|
|
160
|
+
return (_jsx(C3EmptyState, { icon: { path: C4_ASSET_URLS.backupIcon, altText: 'backup' }, heading: text.teaserHeading, description: _jsxs(_Fragment, { children: [text.teaserDescription, _jsx("strong", { children: text.teaserAdditionalDescription })] }), button: {
|
|
160
161
|
onClick: onTalkToExpert,
|
|
161
162
|
disabled: false,
|
|
162
163
|
label: text.teaserButton,
|
|
@@ -173,7 +174,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
173
174
|
}
|
|
174
175
|
if (hasError) {
|
|
175
176
|
return (_jsx(C3EmptyState, { icon: {
|
|
176
|
-
path:
|
|
177
|
+
path: C4_ASSET_URLS.errorIcon,
|
|
177
178
|
altText: 'errorIcon',
|
|
178
179
|
}, heading: text.errorTitle, description: text.errorDescription, button: {
|
|
179
180
|
onClick: onRefresh,
|
|
@@ -191,7 +192,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
191
192
|
paddingLeft: '5rem',
|
|
192
193
|
paddingTop: '3rem',
|
|
193
194
|
paddingBottom: '3rem',
|
|
194
|
-
}, children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [_jsx("div", { style: { maxWidth: '80px', width: '100%' }, children: _jsx("img", { src:
|
|
195
|
+
}, children: _jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: 6, children: [_jsx("div", { style: { maxWidth: '80px', width: '100%' }, children: _jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon', style: { width: '100%' } }) }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: text.noBackupsTitle }), _jsxs(Stack, { gap: 6, children: [_jsx("p", { style: { maxWidth: '400px' }, children: text.noBackupsDescription }), _jsxs(Stack, { gap: 5, children: [_jsxs(C3ResponsiveStack, { orientation: 'horizontal', gap: '1rem', children: [_jsx(Button, { id: 'createBackupCTA', size: 'md', onClick: onCreateBackup, renderIcon: Add, disabled: !permissions.canCreate || !clusterSupportsHotBackups, children: text.createButton }), _jsx(Button, { id: 'createScheduleCTA', size: 'md', onClick: onCreateSchedule, renderIcon: EventSchedule, disabled: !permissions.canCreate || !clusterSupportsHotBackups, kind: 'tertiary', children: text.scheduleTileButton })] }), _jsx("div", { children: text.infoText })] })] })] })] }) })] }));
|
|
195
196
|
}
|
|
196
197
|
return (_jsxs(Stack, { gap: 6, children: [!canCreateBackupBasedOnTime && (_jsx(InlineNotification, { style: { maxWidth: '100%', width: '100%' }, kind: 'info', title: text.backupsUnavailableTitle, subtitle: text.backupsUnavailableText, hideCloseButton: true })), !backupSchedule ? (_jsx(BackupScheduleWrapper, { children: _jsx(Tile, { children: _jsxs(Stack, { children: [_jsx("h3", { children: text.scheduleTileTitle }), _jsx("p", { children: text.scheduleTileDescription }), _jsx(Button, { disabled: !permissions.canCreate, size: 'sm', onClick: onCreateSchedule, kind: 'tertiary', renderIcon: EventSchedule, children: text.scheduleTileButton })] }) }) })) : (_jsx(Tile, { style: { width: '450px' }, children: _jsx(Stack, { gap: 2, children: _jsxs("div", { style: {
|
|
197
198
|
display: 'grid',
|
|
@@ -213,7 +214,7 @@ export const C4ClusterDetailsHotBackups = ({ backups, backupSchedule, isLoading,
|
|
|
213
214
|
paddingLeft: '5rem',
|
|
214
215
|
paddingTop: '3rem',
|
|
215
216
|
paddingBottom: '3rem',
|
|
216
|
-
}, children: _jsxs(Stack, { orientation: 'horizontal', gap: 6, children: [_jsx("img", { src:
|
|
217
|
+
}, children: _jsxs(Stack, { orientation: 'horizontal', gap: 6, children: [_jsx("img", { src: C4_ASSET_URLS.backupIcon, alt: 'backupsIcon' }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: text.emptyTitle }), _jsx(Stack, { gap: 6, children: _jsx("p", { style: { maxWidth: '400px' }, children: text.emptyDescription }) })] })] }) })), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx("span", { className: 'legalText', children: text.infoText }), _jsx(Button, { onClick: onGiveFeedback, kind: 'ghost', renderIcon: Chat, style: {
|
|
217
218
|
marginTop: '-13px',
|
|
218
219
|
marginRight: '0px',
|
|
219
220
|
marginLeft: 'auto',
|
package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js
CHANGED
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { DataTableSkeleton, Stack } from '@carbon/react';
|
|
9
9
|
import { Edit } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls, permissions, onCreateIpWhitelist, onUpdateIpWhitelist, onDeleteIpWhitelist, onOpenDocs, }) => {
|
|
11
12
|
const headerData = [
|
|
12
13
|
{
|
|
@@ -68,7 +69,7 @@ export const C4ClusterDetailsIpWhitelist = ({ ipWhitelist, isLoading, text, urls
|
|
|
68
69
|
}
|
|
69
70
|
if (ipWhitelist.length === 0) {
|
|
70
71
|
return (_jsx(C3EmptyState, { icon: {
|
|
71
|
-
path:
|
|
72
|
+
path: C4_ASSET_URLS.ipWhitelistIcon,
|
|
72
73
|
altText: 'ipwhitelistIcon',
|
|
73
74
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: permissions.canCreate
|
|
74
75
|
? {
|
|
@@ -8,6 +8,7 @@ import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-component
|
|
|
8
8
|
import { Button, CodeSnippet, Layer, Link, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, Tile, } from '@carbon/react';
|
|
9
9
|
import { CheckmarkFilled, Edit, Launch, PendingFilled, } from '@carbon/react/icons/index.esm.js';
|
|
10
10
|
import { useEffect, useState } from 'react';
|
|
11
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
12
|
const singleSnippetMaxWidth = '48rem';
|
|
12
13
|
export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, connectInAwsUrl, isLoading, isDeactivating, text, permissions, urls, onOpenActivate, onOpenPrivateEndpoint, onOpenDocs, onDeactivate, onOpenConnectInAws, onEditAllowedPrincipals, onEditAllowedRegions, }) => {
|
|
13
14
|
const endpointRows = (privateEndpoints ?? []).map((endpoint, index) => ({
|
|
@@ -117,7 +118,12 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
117
118
|
: undefined,
|
|
118
119
|
gap: 'var(--cds-spacing-02)',
|
|
119
120
|
alignItems: values.length > 1 ? 'flex-start' : 'center',
|
|
120
|
-
}, children: [_jsx("div", { style: { flex: 1, minWidth: 0 }, children: values.length ? (
|
|
121
|
+
}, children: [_jsx("div", { style: { flex: 1, minWidth: 0 }, children: values.length ? (options.wrapItems ? (_jsx("div", { style: {
|
|
122
|
+
display: 'flex',
|
|
123
|
+
flexWrap: 'wrap',
|
|
124
|
+
gap: 'var(--cds-spacing-03)',
|
|
125
|
+
width: '100%',
|
|
126
|
+
}, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) })) : (_jsx(Stack, { gap: 1, children: values.map((value) => (_jsx(CodeSnippet, { type: 'inline', align: 'top', children: value }, value))) }))) : (_jsx("span", { children: "\u2014" })) }), options.onEdit ? (_jsx(Button, { kind: 'ghost', size: 'md', hasIconOnly: true, renderIcon: Edit, iconDescription: options.editLabel, onClick: () => options.onEdit?.() })) : undefined] }));
|
|
121
127
|
};
|
|
122
128
|
const labelCellLeftStyle = {
|
|
123
129
|
width: '12rem',
|
|
@@ -162,7 +168,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
162
168
|
: (text.deactivateButton ?? 'Deactivate service') })) : undefined;
|
|
163
169
|
if (!isReady) {
|
|
164
170
|
return (_jsx(C3EmptyState, { icon: {
|
|
165
|
-
path:
|
|
171
|
+
path: C4_ASSET_URLS.secureConnectivityIcon,
|
|
166
172
|
altText: 'secureConnectivityIcon',
|
|
167
173
|
}, heading: text.emptyTitle, description: text.emptyDescription, button: isLoading || status?.status !== undefined
|
|
168
174
|
? undefined
|
|
@@ -197,6 +203,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
197
203
|
onEdit: onEditAllowedRegions,
|
|
198
204
|
editLabel: 'Edit supported regions',
|
|
199
205
|
alignToSingleSnippet: true,
|
|
206
|
+
wrapItems: true,
|
|
200
207
|
}) })] })] }) })) : (
|
|
201
208
|
// Two-column layout: pairs of fields side-by-side
|
|
202
209
|
_jsx(StructuredListWrapper, { isCondensed: true, isFlush: true, style: { borderTop: 'none', overflowX: 'auto' }, children: _jsxs(StructuredListBody, { children: [_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, style: labelCellLeftStyle, children: text.enabledStatusLabel ?? 'Status' }), _jsx(StructuredListCell, { style: { borderTop: 'none' }, children: statusElement }), _jsx(StructuredListCell, { noWrap: true, style: labelCellRightStyle, children: _jsx("span", { style: { opacity: 0 }, children: "\u2014" }) }), _jsx(StructuredListCell, { style: {
|
|
@@ -219,6 +226,7 @@ export const C4ClusterDetailsSecureConnectivity = ({ status, privateEndpoints, c
|
|
|
219
226
|
values: status?.spec.allowedRegions,
|
|
220
227
|
onEdit: onEditAllowedRegions,
|
|
221
228
|
editLabel: 'Edit supported regions',
|
|
229
|
+
wrapItems: true,
|
|
222
230
|
}) })] })] }) })) }), _jsx("div", { children: _jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: { margin: 0, marginTop: '12px' }, children: text.connectTitle ?? 'Connect to the service' }), connectInAwsUrl ? (_jsx(Button, { kind: 'tertiary', size: 'md', renderIcon: Launch, style: { whiteSpace: 'nowrap', maxWidth: '100%' }, onClick: () => {
|
|
223
231
|
if (onOpenConnectInAws) {
|
|
224
232
|
onOpenConnectInAws(connectInAwsUrl);
|
|
@@ -5,6 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
8
9
|
export const C4ClustersEmptyState = (props) => {
|
|
9
10
|
const { variant, texts, onCreateCluster, createClusterButtonDisabled, docsHref, onDocsClick, onUpgrade, } = props;
|
|
10
11
|
if (variant === 'noClusters') {
|
|
@@ -24,13 +25,13 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
24
25
|
}
|
|
25
26
|
: undefined;
|
|
26
27
|
return (_jsx(C3EmptyState, { icon: {
|
|
27
|
-
path:
|
|
28
|
+
path: C4_ASSET_URLS.clusterIcon,
|
|
28
29
|
altText: 'clusterIcon',
|
|
29
30
|
}, heading: texts.noClusters.heading, description: texts.noClusters.description, button: button, link: link }));
|
|
30
31
|
}
|
|
31
32
|
if (variant === 'trialExpiredAdmin') {
|
|
32
33
|
return (_jsx(C3EmptyState, { icon: {
|
|
33
|
-
path:
|
|
34
|
+
path: C4_ASSET_URLS.upgradeIcon,
|
|
34
35
|
altText: 'upgradeIcon',
|
|
35
36
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.adminDescription, button: {
|
|
36
37
|
onClick: onUpgrade ?? (() => undefined),
|
|
@@ -38,7 +39,7 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
38
39
|
} }));
|
|
39
40
|
}
|
|
40
41
|
return (_jsx(C3EmptyState, { icon: {
|
|
41
|
-
path:
|
|
42
|
+
path: C4_ASSET_URLS.upgradeIcon,
|
|
42
43
|
altText: 'upgradeIcon',
|
|
43
44
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.memberDescription }));
|
|
44
45
|
};
|