@orchestrator-ui/orchestrator-ui-components 0.1.0 → 0.1.1
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/CHANGELOG.md +6 -0
- package/dist/index.js +1159 -886
- package/package.json +18 -18
- package/src/components/Badges/Badge/Badge.tsx +1 -1
- package/src/components/Badges/EngineStatusBadge/EngineStatusBadge.stories.tsx +1 -1
- package/src/components/Badges/EngineStatusBadge/EngineStatusBadge.tsx +1 -1
- package/src/components/Badges/EnvironmentBadge/EnvironmentBadge.stories.tsx +1 -1
- package/src/components/Badges/FailedTasksBadge/FailedTasksBadge.tsx +1 -1
- package/src/components/Badges/HeaderBadge/HeaderBadge.stories.tsx +1 -1
- package/src/components/Loading/Loading.tsx +1 -1
- package/src/components/OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.stories.tsx +1 -1
- package/src/components/SearchBar/SearchField.tsx +0 -1
- package/src/components/SettingsPage/FlushSettings.tsx +4 -1
- package/src/components/StartPage/ListStartPage.stories.tsx +1 -1
- package/src/components/Subscription/ProductBlock.tsx +1 -1
- package/src/components/Table/DataGridTable/DataGridTable.tsx +1 -1
- package/src/components/Table/Table.tsx +1 -2
- package/src/contexts/OrchestratorConfigContext.tsx +1 -1
- package/src/hooks/DataFetchHooks.ts +1 -1
- package/src/icons/StatusDotIcon.tsx +1 -1
- package/tsconfig.json +7 -6
- package/react-shim.js +0 -3
- package/src/components/custom-button/custom-button.spec.tsx +0 -11
- package/src/components/custom-button/custom-button.tsx +0 -24
package/dist/index.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
// src/components/Badges/Badge/Badge.tsx
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { EuiBadge, EuiText } from "@elastic/eui";
|
|
3
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
4
4
|
var Badge = ({
|
|
5
5
|
textColor,
|
|
6
6
|
children,
|
|
7
7
|
...restProps
|
|
8
|
-
}) => /* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
// src/components/Badges/WFOStatusBadge/WFOStatusBadge.tsx
|
|
11
|
-
import React3 from "react";
|
|
8
|
+
}) => /* @__PURE__ */ jsx(EuiBadge, { ...restProps, children: /* @__PURE__ */ jsx(EuiText, { color: textColor, size: "xs", children: /* @__PURE__ */ jsx("b", { children }) }) });
|
|
12
9
|
|
|
13
10
|
// src/hooks/useQueryWithGraphql.ts
|
|
14
11
|
import { useContext } from "react";
|
|
@@ -16,7 +13,6 @@ import { GraphQLClient } from "graphql-request";
|
|
|
16
13
|
import { useQuery } from "react-query";
|
|
17
14
|
|
|
18
15
|
// src/contexts/OrchestratorConfigContext.tsx
|
|
19
|
-
import React2 from "react";
|
|
20
16
|
import { createContext } from "react";
|
|
21
17
|
|
|
22
18
|
// src/hooks/useOrchestratorConfig.ts
|
|
@@ -34,6 +30,7 @@ var useOrchestratorConfig = (initialOrchestratorConfig) => {
|
|
|
34
30
|
};
|
|
35
31
|
|
|
36
32
|
// src/contexts/OrchestratorConfigContext.tsx
|
|
33
|
+
import { jsx as jsx2 } from "@emotion/react/jsx-runtime";
|
|
37
34
|
var OrchestratorConfigContext = createContext({
|
|
38
35
|
engineStatusEndpoint: "",
|
|
39
36
|
environmentName: "",
|
|
@@ -48,7 +45,7 @@ var OrchestratorConfigProvider = ({ initialOrchestratorConfig, children }) => {
|
|
|
48
45
|
const { orchestratorConfig } = useOrchestratorConfig(
|
|
49
46
|
initialOrchestratorConfig
|
|
50
47
|
);
|
|
51
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ jsx2(OrchestratorConfigContext.Provider, { value: orchestratorConfig, children });
|
|
52
49
|
};
|
|
53
50
|
|
|
54
51
|
// src/hooks/useQueryWithGraphql.ts
|
|
@@ -190,7 +187,7 @@ var useProcessesAttention = () => {
|
|
|
190
187
|
);
|
|
191
188
|
const initialData = {
|
|
192
189
|
type: "process",
|
|
193
|
-
title: "Processes that need attention
|
|
190
|
+
title: "Processes that need attention",
|
|
194
191
|
items: [],
|
|
195
192
|
buttonName: "Show all active processes"
|
|
196
193
|
};
|
|
@@ -301,6 +298,7 @@ var useDataDisplayParams = (initialParams) => {
|
|
|
301
298
|
};
|
|
302
299
|
|
|
303
300
|
// src/components/Badges/WFOStatusBadge/WFOStatusBadge.tsx
|
|
301
|
+
import { jsx as jsx3 } from "@emotion/react/jsx-runtime";
|
|
304
302
|
var WFOStatusBadge = ({ status }) => {
|
|
305
303
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
306
304
|
const getBadgeColorFromStatus = (status2) => {
|
|
@@ -331,27 +329,27 @@ var WFOStatusBadge = ({ status }) => {
|
|
|
331
329
|
}
|
|
332
330
|
};
|
|
333
331
|
const { badgeColor, textColor } = getBadgeColorFromStatus(status);
|
|
334
|
-
return /* @__PURE__ */
|
|
332
|
+
return /* @__PURE__ */ jsx3(Badge, { textColor, color: badgeColor, children: status });
|
|
335
333
|
};
|
|
336
334
|
|
|
337
335
|
// src/components/Badges/WFOProductBlockBadge/WFOProductBlockBadge.tsx
|
|
338
|
-
import
|
|
336
|
+
import { jsx as jsx4 } from "@emotion/react/jsx-runtime";
|
|
339
337
|
var WFOProductBlockBadge = ({
|
|
340
338
|
children
|
|
341
339
|
}) => {
|
|
342
340
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
343
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ jsx4(
|
|
344
342
|
Badge,
|
|
345
343
|
{
|
|
346
344
|
textColor: theme.colors.link,
|
|
347
|
-
color: toSecondaryColor(theme.colors.primary)
|
|
348
|
-
|
|
349
|
-
|
|
345
|
+
color: toSecondaryColor(theme.colors.primary),
|
|
346
|
+
children
|
|
347
|
+
}
|
|
350
348
|
);
|
|
351
349
|
};
|
|
352
350
|
|
|
353
351
|
// src/components/Badges/ProcessStatusBadge/ProcessStatusBadge.tsx
|
|
354
|
-
import
|
|
352
|
+
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
355
353
|
var ProcessStatusBadge = ({
|
|
356
354
|
processStatus
|
|
357
355
|
}) => {
|
|
@@ -377,15 +375,14 @@ var ProcessStatusBadge = ({
|
|
|
377
375
|
}
|
|
378
376
|
};
|
|
379
377
|
const { badgeColor, textColor } = getBadgeColorFromProcessStatus(processStatus);
|
|
380
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsx5(Badge, { textColor, color: badgeColor, children: processStatus });
|
|
381
379
|
};
|
|
382
380
|
|
|
383
381
|
// src/components/Badges/FailedTasksBadge/FailedTasksBadge.tsx
|
|
384
|
-
import React8 from "react";
|
|
385
382
|
import { EuiToolTip } from "@elastic/eui";
|
|
386
383
|
|
|
387
384
|
// src/components/Badges/HeaderBadge/HeaderBadge.tsx
|
|
388
|
-
import
|
|
385
|
+
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
389
386
|
var HeaderBadge = ({
|
|
390
387
|
children,
|
|
391
388
|
...restProps
|
|
@@ -398,45 +395,48 @@ var HeaderBadge = ({
|
|
|
398
395
|
height: 24,
|
|
399
396
|
display: "flex"
|
|
400
397
|
};
|
|
401
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ jsx6(Badge, { ...restProps, css: css2, children });
|
|
402
399
|
};
|
|
403
400
|
|
|
404
401
|
// src/icons/XCircleFill.tsx
|
|
405
|
-
import
|
|
402
|
+
import { jsx as jsx7, jsxs } from "@emotion/react/jsx-runtime";
|
|
406
403
|
var XCircleFill = ({
|
|
407
404
|
width = 24,
|
|
408
405
|
height = 24,
|
|
409
406
|
color = "#000000"
|
|
410
|
-
}) => /* @__PURE__ */
|
|
407
|
+
}) => /* @__PURE__ */ jsxs(
|
|
411
408
|
"svg",
|
|
412
409
|
{
|
|
413
410
|
width,
|
|
414
411
|
height,
|
|
415
412
|
viewBox: "0 0 24 24",
|
|
416
413
|
version: "1.1",
|
|
417
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
414
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ jsx7("title", { children: "icon/x-circle-fill" }),
|
|
417
|
+
/* @__PURE__ */ jsx7(
|
|
418
|
+
"g",
|
|
419
|
+
{
|
|
420
|
+
id: "Symbols",
|
|
421
|
+
stroke: "none",
|
|
422
|
+
strokeWidth: "1",
|
|
423
|
+
fill: "none",
|
|
424
|
+
fillRule: "evenodd",
|
|
425
|
+
children: /* @__PURE__ */ jsx7("g", { id: "icon/x-circle-fill", fill: color, children: /* @__PURE__ */ jsx7(
|
|
426
|
+
"path",
|
|
427
|
+
{
|
|
428
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
|
|
429
|
+
id: "Shape"
|
|
430
|
+
}
|
|
431
|
+
) })
|
|
432
|
+
}
|
|
433
|
+
)
|
|
434
|
+
]
|
|
435
|
+
}
|
|
437
436
|
);
|
|
438
437
|
|
|
439
438
|
// src/components/Badges/FailedTasksBadge/FailedTasksBadge.tsx
|
|
439
|
+
import { Fragment, jsx as jsx8, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
|
|
440
440
|
var getTaskCountsSummary = (processStatusCounts) => {
|
|
441
441
|
const failed = (processStatusCounts == null ? void 0 : processStatusCounts.task_counts.failed) || 0;
|
|
442
442
|
const inconsistentData = (processStatusCounts == null ? void 0 : processStatusCounts.task_counts.inconsistent_data) || 0;
|
|
@@ -452,92 +452,108 @@ var FailedTasksBadge = () => {
|
|
|
452
452
|
const { theme } = useOrchestratorTheme();
|
|
453
453
|
const { data: processStatusCounts } = useProcessStatusCountsQuery();
|
|
454
454
|
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
455
|
-
return /* @__PURE__ */
|
|
455
|
+
return /* @__PURE__ */ jsx8(
|
|
456
456
|
EuiToolTip,
|
|
457
457
|
{
|
|
458
458
|
position: "bottom",
|
|
459
|
-
content: /* @__PURE__ */
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
459
|
+
content: /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
460
|
+
/* @__PURE__ */ jsxs2("div", { children: [
|
|
461
|
+
"Failed: ",
|
|
462
|
+
taskCountsSummary.failed
|
|
463
|
+
] }),
|
|
464
|
+
/* @__PURE__ */ jsxs2("div", { children: [
|
|
465
|
+
"Inconsistent data: ",
|
|
466
|
+
taskCountsSummary.inconsistentData
|
|
467
|
+
] }),
|
|
468
|
+
/* @__PURE__ */ jsxs2("div", { children: [
|
|
469
|
+
"API unavailable: ",
|
|
470
|
+
taskCountsSummary.apiUnavailable
|
|
471
|
+
] })
|
|
472
|
+
] }),
|
|
473
|
+
children: /* @__PURE__ */ jsx8(
|
|
474
|
+
HeaderBadge,
|
|
475
|
+
{
|
|
476
|
+
color: theme.colors.emptyShade,
|
|
477
|
+
textColor: theme.colors.shadow,
|
|
478
|
+
iconType: () => /* @__PURE__ */ jsx8(XCircleFill, { color: theme.colors.danger }),
|
|
479
|
+
children: taskCountsSummary.total
|
|
480
|
+
}
|
|
481
|
+
)
|
|
482
|
+
}
|
|
470
483
|
);
|
|
471
484
|
};
|
|
472
485
|
|
|
473
486
|
// src/components/Badges/EnvironmentBadge/EnvironmentBadge.tsx
|
|
474
|
-
import
|
|
487
|
+
import { useContext as useContext7 } from "react";
|
|
488
|
+
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
475
489
|
var EnvironmentBadge = () => {
|
|
476
490
|
const { environmentName } = useContext7(OrchestratorConfigContext);
|
|
477
491
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
478
492
|
if (environmentName !== "Production" /* PRODUCTION */) {
|
|
479
|
-
return /* @__PURE__ */
|
|
493
|
+
return /* @__PURE__ */ jsx9(HeaderBadge, { color: "warning", textColor: theme.colors.shadow, children: environmentName });
|
|
480
494
|
}
|
|
481
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ jsx9(
|
|
482
496
|
HeaderBadge,
|
|
483
497
|
{
|
|
484
498
|
color: toSecondaryColor(theme.colors.primary),
|
|
485
|
-
textColor: theme.colors.primary
|
|
486
|
-
|
|
487
|
-
|
|
499
|
+
textColor: theme.colors.primary,
|
|
500
|
+
children: environmentName
|
|
501
|
+
}
|
|
488
502
|
);
|
|
489
503
|
};
|
|
490
504
|
|
|
491
|
-
// src/components/Badges/EngineStatusBadge/EngineStatusBadge.tsx
|
|
492
|
-
import React11 from "react";
|
|
493
|
-
|
|
494
505
|
// src/icons/StatusDotIcon.tsx
|
|
495
|
-
import
|
|
506
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
496
507
|
var StatusDotIcon = ({
|
|
497
508
|
width = 24,
|
|
498
509
|
height = 24,
|
|
499
510
|
color = "#000000"
|
|
500
|
-
}) => /* @__PURE__ */
|
|
511
|
+
}) => /* @__PURE__ */ jsxs3(
|
|
501
512
|
"svg",
|
|
502
513
|
{
|
|
503
514
|
width,
|
|
504
515
|
height,
|
|
505
516
|
viewBox: "0 0 24 24",
|
|
506
517
|
version: "1.1",
|
|
507
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
519
|
+
children: [
|
|
520
|
+
/* @__PURE__ */ jsx10("title", { children: "icon/statusdot" }),
|
|
521
|
+
/* @__PURE__ */ jsx10(
|
|
522
|
+
"g",
|
|
523
|
+
{
|
|
524
|
+
id: "Symbols",
|
|
525
|
+
stroke: "none",
|
|
526
|
+
strokeWidth: "1",
|
|
527
|
+
fill: "none",
|
|
528
|
+
fillRule: "evenodd",
|
|
529
|
+
children: /* @__PURE__ */ jsxs3("g", { id: "icon/statusdot", fill: color, fillRule: "nonzero", children: [
|
|
530
|
+
/* @__PURE__ */ jsx10("circle", { id: "Oval", opacity: "0.25", cx: "12", cy: "12", r: "8" }),
|
|
531
|
+
/* @__PURE__ */ jsx10("circle", { id: "Oval", cx: "12", cy: "12", r: "4" })
|
|
532
|
+
] })
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
]
|
|
536
|
+
}
|
|
521
537
|
);
|
|
522
538
|
|
|
523
539
|
// src/components/Badges/EngineStatusBadge/EngineStatusBadge.tsx
|
|
540
|
+
import { jsx as jsx11 } from "@emotion/react/jsx-runtime";
|
|
524
541
|
var EngineStatusBadge = () => {
|
|
525
542
|
const { theme } = useOrchestratorTheme();
|
|
526
543
|
const { data: engineStatus } = useEngineStatusQuery();
|
|
527
544
|
const engineStatusText = (engineStatus == null ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : "Engine status is unavailable";
|
|
528
|
-
return /* @__PURE__ */
|
|
545
|
+
return /* @__PURE__ */ jsx11(
|
|
529
546
|
HeaderBadge,
|
|
530
547
|
{
|
|
531
548
|
color: theme.colors.emptyShade,
|
|
532
549
|
textColor: theme.colors.shadow,
|
|
533
|
-
iconType: () => /* @__PURE__ */
|
|
534
|
-
|
|
535
|
-
|
|
550
|
+
iconType: () => /* @__PURE__ */ jsx11(StatusDotIcon, { color: theme.colors.success }),
|
|
551
|
+
children: engineStatusText
|
|
552
|
+
}
|
|
536
553
|
);
|
|
537
554
|
};
|
|
538
555
|
|
|
539
556
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
540
|
-
import React12 from "react";
|
|
541
557
|
import { EuiBreadcrumbs, EuiSpacer } from "@elastic/eui";
|
|
542
558
|
import { useRouter } from "next/router";
|
|
543
559
|
|
|
@@ -599,6 +615,7 @@ var removeSuffix = (value, splitChar = "?") => {
|
|
|
599
615
|
};
|
|
600
616
|
|
|
601
617
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
618
|
+
import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs4 } from "@emotion/react/jsx-runtime";
|
|
602
619
|
var Breadcrumbs = () => {
|
|
603
620
|
const router = useRouter();
|
|
604
621
|
const breadcrumbs = [
|
|
@@ -626,18 +643,20 @@ var Breadcrumbs = () => {
|
|
|
626
643
|
});
|
|
627
644
|
}
|
|
628
645
|
});
|
|
629
|
-
return /* @__PURE__ */
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
646
|
+
return /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
647
|
+
/* @__PURE__ */ jsx12(
|
|
648
|
+
EuiBreadcrumbs,
|
|
649
|
+
{
|
|
650
|
+
breadcrumbs,
|
|
651
|
+
truncate: false,
|
|
652
|
+
"aria-label": "Current page"
|
|
653
|
+
}
|
|
654
|
+
),
|
|
655
|
+
/* @__PURE__ */ jsx12(EuiSpacer, { size: "m" })
|
|
656
|
+
] });
|
|
637
657
|
};
|
|
638
658
|
|
|
639
659
|
// src/components/OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.tsx
|
|
640
|
-
import React14 from "react";
|
|
641
660
|
import {
|
|
642
661
|
EuiBadgeGroup,
|
|
643
662
|
EuiButtonIcon,
|
|
@@ -648,83 +667,97 @@ import {
|
|
|
648
667
|
} from "@elastic/eui";
|
|
649
668
|
|
|
650
669
|
// src/icons/LogoutIcon.tsx
|
|
651
|
-
import
|
|
670
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
|
|
652
671
|
var LogoutIcon = ({
|
|
653
672
|
width = 24,
|
|
654
673
|
height = 24,
|
|
655
674
|
color = "#000000"
|
|
656
|
-
}) => /* @__PURE__ */
|
|
675
|
+
}) => /* @__PURE__ */ jsxs5(
|
|
657
676
|
"svg",
|
|
658
677
|
{
|
|
659
678
|
width,
|
|
660
679
|
height,
|
|
661
680
|
viewBox: "0 0 24 24",
|
|
662
681
|
version: "1.1",
|
|
663
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ jsx13("title", { children: "icon/logout" }),
|
|
685
|
+
/* @__PURE__ */ jsx13(
|
|
686
|
+
"g",
|
|
687
|
+
{
|
|
688
|
+
id: "Symbols",
|
|
689
|
+
stroke: "none",
|
|
690
|
+
strokeWidth: "1",
|
|
691
|
+
fill: "none",
|
|
692
|
+
fillRule: "evenodd",
|
|
693
|
+
children: /* @__PURE__ */ jsx13("g", { id: "icon/logout", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx13(
|
|
694
|
+
"path",
|
|
695
|
+
{
|
|
696
|
+
d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
|
|
697
|
+
id: "Combined-Shape"
|
|
698
|
+
}
|
|
699
|
+
) })
|
|
700
|
+
}
|
|
701
|
+
)
|
|
702
|
+
]
|
|
703
|
+
}
|
|
683
704
|
);
|
|
684
705
|
|
|
685
706
|
// src/components/OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.tsx
|
|
707
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
|
|
686
708
|
var OrchestratorPageHeader = ({
|
|
687
709
|
navigationHeight,
|
|
688
710
|
getAppLogo,
|
|
689
711
|
handleLogoutClick
|
|
690
712
|
}) => {
|
|
691
713
|
const { theme, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
692
|
-
return /* @__PURE__ */
|
|
714
|
+
return /* @__PURE__ */ jsxs6(
|
|
693
715
|
EuiHeader,
|
|
694
716
|
{
|
|
695
717
|
css: {
|
|
696
718
|
backgroundColor: theme.colors.primary,
|
|
697
719
|
height: navigationHeight
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
720
|
+
},
|
|
721
|
+
children: [
|
|
722
|
+
/* @__PURE__ */ jsxs6(EuiHeaderSection, { children: [
|
|
723
|
+
/* @__PURE__ */ jsx14(EuiHeaderSectionItem, { children: /* @__PURE__ */ jsx14(
|
|
724
|
+
EuiHeaderLogo,
|
|
725
|
+
{
|
|
726
|
+
iconType: () => getAppLogo(navigationHeight)
|
|
727
|
+
}
|
|
728
|
+
) }),
|
|
729
|
+
/* @__PURE__ */ jsx14(EuiHeaderSectionItem, { children: /* @__PURE__ */ jsx14(EnvironmentBadge, {}) })
|
|
730
|
+
] }),
|
|
731
|
+
/* @__PURE__ */ jsx14(EuiHeaderSection, { children: /* @__PURE__ */ jsxs6(EuiHeaderSectionItem, { children: [
|
|
732
|
+
/* @__PURE__ */ jsxs6(EuiBadgeGroup, { css: { marginRight: multiplyByBaseUnit(2) }, children: [
|
|
733
|
+
/* @__PURE__ */ jsx14(EngineStatusBadge, {}),
|
|
734
|
+
/* @__PURE__ */ jsx14(FailedTasksBadge, {})
|
|
735
|
+
] }),
|
|
736
|
+
/* @__PURE__ */ jsx14(
|
|
737
|
+
EuiButtonIcon,
|
|
738
|
+
{
|
|
739
|
+
"aria-label": "Logout",
|
|
740
|
+
display: "empty",
|
|
741
|
+
iconType: () => /* @__PURE__ */ jsx14(LogoutIcon, { color: theme.colors.emptyShade }),
|
|
742
|
+
css: { width: 48, height: 48 },
|
|
743
|
+
color: "ghost",
|
|
744
|
+
onClick: () => handleLogoutClick()
|
|
745
|
+
}
|
|
746
|
+
)
|
|
747
|
+
] }) })
|
|
748
|
+
]
|
|
749
|
+
}
|
|
717
750
|
);
|
|
718
751
|
};
|
|
719
752
|
|
|
720
753
|
// src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.tsx
|
|
721
|
-
import
|
|
754
|
+
import { useState as useState2 } from "react";
|
|
722
755
|
import { EuiPageTemplate } from "@elastic/eui";
|
|
723
756
|
|
|
724
757
|
// src/components/OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.tsx
|
|
725
|
-
import React15 from "react";
|
|
726
758
|
import { EuiButton, EuiSideNav, EuiSpacer as EuiSpacer2 } from "@elastic/eui";
|
|
727
759
|
import { useRouter as useRouter2 } from "next/router";
|
|
760
|
+
import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
|
|
728
761
|
var PATH_START = "/";
|
|
729
762
|
var PATH_NEW_PROCESS = "/new-process";
|
|
730
763
|
var PATH_PROCESSES = "/processes";
|
|
@@ -738,25 +771,28 @@ var PATH_TASKS = "/tasks";
|
|
|
738
771
|
var PATH_SETTINGS = "/settings";
|
|
739
772
|
var OrchestratorSidebar = () => {
|
|
740
773
|
const router = useRouter2();
|
|
741
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ jsx15(
|
|
742
775
|
EuiSideNav,
|
|
743
776
|
{
|
|
744
777
|
mobileTitle: "Nav Items",
|
|
745
778
|
isOpenOnMobile: false,
|
|
746
779
|
items: [
|
|
747
780
|
{
|
|
748
|
-
renderItem: () => /* @__PURE__ */
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
e
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
781
|
+
renderItem: () => /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
782
|
+
/* @__PURE__ */ jsx15(
|
|
783
|
+
EuiButton,
|
|
784
|
+
{
|
|
785
|
+
onClick: (e) => {
|
|
786
|
+
e.preventDefault();
|
|
787
|
+
router.push(PATH_NEW_PROCESS);
|
|
788
|
+
},
|
|
789
|
+
iconType: "plus",
|
|
790
|
+
fullWidth: true,
|
|
791
|
+
children: "New Process"
|
|
792
|
+
}
|
|
793
|
+
),
|
|
794
|
+
/* @__PURE__ */ jsx15(EuiSpacer2, { size: "m" })
|
|
795
|
+
] }),
|
|
760
796
|
name: "Menu",
|
|
761
797
|
id: "1",
|
|
762
798
|
items: [
|
|
@@ -875,6 +911,7 @@ var OrchestratorSidebar = () => {
|
|
|
875
911
|
};
|
|
876
912
|
|
|
877
913
|
// src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.tsx
|
|
914
|
+
import { Fragment as Fragment4, jsx as jsx16, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
878
915
|
var OrchestratorPageTemplate = ({
|
|
879
916
|
children,
|
|
880
917
|
getAppLogo
|
|
@@ -882,49 +919,54 @@ var OrchestratorPageTemplate = ({
|
|
|
882
919
|
const { theme, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
883
920
|
const [isSideMenuVisible, setIsSideMenuVisible] = useState2(true);
|
|
884
921
|
const navigationHeight = multiplyByBaseUnit(3);
|
|
885
|
-
return /* @__PURE__ */
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
getAppLogo,
|
|
889
|
-
navigationHeight,
|
|
890
|
-
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
891
|
-
}
|
|
892
|
-
), /* @__PURE__ */ React16.createElement(
|
|
893
|
-
EuiPageTemplate,
|
|
894
|
-
{
|
|
895
|
-
panelled: false,
|
|
896
|
-
grow: false,
|
|
897
|
-
contentBorder: false,
|
|
898
|
-
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
899
|
-
restrictWidth: false
|
|
900
|
-
},
|
|
901
|
-
isSideMenuVisible && /* @__PURE__ */ React16.createElement(
|
|
902
|
-
EuiPageTemplate.Sidebar,
|
|
922
|
+
return /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
923
|
+
/* @__PURE__ */ jsx16(
|
|
924
|
+
OrchestratorPageHeader,
|
|
903
925
|
{
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}
|
|
908
|
-
/* @__PURE__ */ React16.createElement(OrchestratorSidebar, null)
|
|
926
|
+
getAppLogo,
|
|
927
|
+
navigationHeight,
|
|
928
|
+
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
929
|
+
}
|
|
909
930
|
),
|
|
910
|
-
/* @__PURE__ */
|
|
911
|
-
EuiPageTemplate
|
|
931
|
+
/* @__PURE__ */ jsxs8(
|
|
932
|
+
EuiPageTemplate,
|
|
912
933
|
{
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
934
|
+
panelled: false,
|
|
935
|
+
grow: false,
|
|
936
|
+
contentBorder: false,
|
|
937
|
+
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
938
|
+
restrictWidth: false,
|
|
939
|
+
children: [
|
|
940
|
+
isSideMenuVisible && /* @__PURE__ */ jsx16(
|
|
941
|
+
EuiPageTemplate.Sidebar,
|
|
942
|
+
{
|
|
943
|
+
css: {
|
|
944
|
+
backgroundColor: theme.colors.body
|
|
945
|
+
},
|
|
946
|
+
children: /* @__PURE__ */ jsx16(OrchestratorSidebar, {})
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
/* @__PURE__ */ jsx16(
|
|
950
|
+
EuiPageTemplate.Section,
|
|
951
|
+
{
|
|
952
|
+
css: {
|
|
953
|
+
backgroundColor: theme.colors.emptyShade
|
|
954
|
+
},
|
|
955
|
+
children
|
|
956
|
+
}
|
|
957
|
+
)
|
|
958
|
+
]
|
|
959
|
+
}
|
|
918
960
|
)
|
|
919
|
-
)
|
|
961
|
+
] });
|
|
920
962
|
};
|
|
921
963
|
|
|
922
964
|
// src/components/SearchBar/SearchField.tsx
|
|
923
|
-
import React17 from "react";
|
|
924
965
|
import {
|
|
925
966
|
EuiFormRow,
|
|
926
967
|
EuiSearchBar
|
|
927
968
|
} from "@elastic/eui";
|
|
969
|
+
import { jsx as jsx17 } from "@emotion/react/jsx-runtime";
|
|
928
970
|
var SearchField = ({
|
|
929
971
|
__filterQuery,
|
|
930
972
|
__setFilterQuery,
|
|
@@ -945,31 +987,30 @@ var SearchField = ({
|
|
|
945
987
|
}
|
|
946
988
|
}
|
|
947
989
|
};
|
|
948
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ jsx17(
|
|
949
991
|
EuiFormRow,
|
|
950
992
|
{
|
|
951
993
|
fullWidth: true,
|
|
952
994
|
isInvalid: !queryIsValid,
|
|
953
|
-
error: ["The query contains invalid parts"]
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
995
|
+
error: ["The query contains invalid parts"],
|
|
996
|
+
children: /* @__PURE__ */ jsx17(
|
|
997
|
+
EuiSearchBar,
|
|
998
|
+
{
|
|
999
|
+
query: queryString,
|
|
1000
|
+
onChange,
|
|
1001
|
+
box: {
|
|
1002
|
+
// Todo: possible bug in EUI component EuiSearchBar
|
|
1003
|
+
// https://github.com/workfloworchestrator/orchestrator-ui/issues/129
|
|
1004
|
+
// setting the property 'isInvalid' to true has no effect
|
|
1005
|
+
isInvalid: !queryIsValid
|
|
1006
|
+
}
|
|
965
1007
|
}
|
|
966
|
-
|
|
967
|
-
|
|
1008
|
+
)
|
|
1009
|
+
}
|
|
968
1010
|
);
|
|
969
1011
|
};
|
|
970
1012
|
|
|
971
1013
|
// src/components/SettingsModal/SettingsModal.tsx
|
|
972
|
-
import React18 from "react";
|
|
973
1014
|
import {
|
|
974
1015
|
EuiButton as EuiButton2,
|
|
975
1016
|
EuiButtonEmpty,
|
|
@@ -981,17 +1022,25 @@ import {
|
|
|
981
1022
|
EuiModalHeaderTitle,
|
|
982
1023
|
EuiSpacer as EuiSpacer3
|
|
983
1024
|
} from "@elastic/eui";
|
|
1025
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
984
1026
|
var SettingsModal = ({
|
|
985
1027
|
title,
|
|
986
1028
|
onClose,
|
|
987
1029
|
onResetToDefaults,
|
|
988
1030
|
onUpdateTableConfig,
|
|
989
1031
|
children
|
|
990
|
-
}) => /* @__PURE__ */
|
|
1032
|
+
}) => /* @__PURE__ */ jsxs9(EuiModal, { onClose, maxWidth: 400, children: [
|
|
1033
|
+
/* @__PURE__ */ jsx18(EuiModalHeader, { children: /* @__PURE__ */ jsx18(EuiModalHeaderTitle, { size: "xs", children: title }) }),
|
|
1034
|
+
/* @__PURE__ */ jsx18(EuiSpacer3, { size: "s" }),
|
|
1035
|
+
/* @__PURE__ */ jsx18(EuiModalBody, { children }),
|
|
1036
|
+
/* @__PURE__ */ jsx18(EuiModalFooter, { children: /* @__PURE__ */ jsxs9(EuiFlexGroup, { justifyContent: "spaceBetween", children: [
|
|
1037
|
+
/* @__PURE__ */ jsx18(EuiButtonEmpty, { onClick: onResetToDefaults, flush: "left", children: "Reset to default" }),
|
|
1038
|
+
/* @__PURE__ */ jsx18(EuiButton2, { onClick: onUpdateTableConfig, fill: true, children: "Save preference" })
|
|
1039
|
+
] }) })
|
|
1040
|
+
] });
|
|
991
1041
|
|
|
992
1042
|
// src/components/SettingsPage/Settings.tsx
|
|
993
1043
|
import { EuiHorizontalRule, EuiPageHeader, EuiSpacer as EuiSpacer7 } from "@elastic/eui";
|
|
994
|
-
import React29 from "react";
|
|
995
1044
|
|
|
996
1045
|
// src/components/SettingsPage/FlushSettings.tsx
|
|
997
1046
|
import {
|
|
@@ -1002,7 +1051,8 @@ import {
|
|
|
1002
1051
|
EuiComboBox,
|
|
1003
1052
|
EuiGlobalToastList
|
|
1004
1053
|
} from "@elastic/eui";
|
|
1005
|
-
import
|
|
1054
|
+
import { useContext as useContext8, useState as useState3 } from "react";
|
|
1055
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
1006
1056
|
var clearCache = async (apiUrl, settingName) => {
|
|
1007
1057
|
const response = await fetch(apiUrl + `/settings/cache/${settingName}`, {
|
|
1008
1058
|
method: "DELETE"
|
|
@@ -1039,104 +1089,115 @@ var FlushSettings = () => {
|
|
|
1039
1089
|
title: `Cache cleared`,
|
|
1040
1090
|
color: "success",
|
|
1041
1091
|
iconType: "check",
|
|
1042
|
-
text: /* @__PURE__ */
|
|
1092
|
+
text: /* @__PURE__ */ jsxs10("p", { children: [
|
|
1093
|
+
'Cache for cache key "',
|
|
1094
|
+
cacheKey,
|
|
1095
|
+
'" flushed successfully'
|
|
1096
|
+
] })
|
|
1043
1097
|
});
|
|
1044
1098
|
});
|
|
1045
1099
|
};
|
|
1046
1100
|
const addToast = (toast) => {
|
|
1047
1101
|
setToasts((toasts2) => [...toasts2, toast]);
|
|
1048
1102
|
};
|
|
1049
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsxs10(
|
|
1050
1104
|
EuiPanel,
|
|
1051
1105
|
{
|
|
1052
1106
|
hasShadow: false,
|
|
1053
1107
|
color: "subdued",
|
|
1054
1108
|
paddingSize: "l",
|
|
1055
|
-
style: { width: "50%" }
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1109
|
+
style: { width: "50%" },
|
|
1110
|
+
children: [
|
|
1111
|
+
/* @__PURE__ */ jsx19(EuiText2, { size: "s", children: /* @__PURE__ */ jsx19("h4", { children: "Flush Settings" }) }),
|
|
1112
|
+
/* @__PURE__ */ jsx19(EuiSpacer4, { size: "m" }),
|
|
1113
|
+
/* @__PURE__ */ jsx19(
|
|
1114
|
+
EuiComboBox,
|
|
1115
|
+
{
|
|
1116
|
+
"aria-label": "Flush settings",
|
|
1117
|
+
placeholder: "Select settings",
|
|
1118
|
+
singleSelection: { asPlainText: true },
|
|
1119
|
+
options,
|
|
1120
|
+
selectedOptions,
|
|
1121
|
+
onChange,
|
|
1122
|
+
fullWidth: true
|
|
1123
|
+
}
|
|
1124
|
+
),
|
|
1125
|
+
/* @__PURE__ */ jsx19(EuiSpacer4, { size: "m" }),
|
|
1126
|
+
/* @__PURE__ */ jsx19(EuiButton3, { onClick: flushCache, iconType: "refresh", children: "Flush" }),
|
|
1127
|
+
/* @__PURE__ */ jsx19(
|
|
1128
|
+
EuiGlobalToastList,
|
|
1129
|
+
{
|
|
1130
|
+
toasts,
|
|
1131
|
+
dismissToast: () => setToasts([]),
|
|
1132
|
+
toastLifeTimeMs: 5e3
|
|
1133
|
+
}
|
|
1134
|
+
)
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1081
1137
|
);
|
|
1082
1138
|
};
|
|
1083
1139
|
|
|
1084
1140
|
// src/components/SettingsPage/ModifySettings.tsx
|
|
1085
1141
|
import { EuiPanel as EuiPanel2, EuiSpacer as EuiSpacer5, EuiText as EuiText3 } from "@elastic/eui";
|
|
1086
|
-
import React21 from "react";
|
|
1087
1142
|
|
|
1088
1143
|
// src/components/SettingsPage/EngineStatusButton.tsx
|
|
1089
1144
|
import { EuiButton as EuiButton4 } from "@elastic/eui";
|
|
1090
|
-
import
|
|
1145
|
+
import { jsx as jsx20 } from "@emotion/react/jsx-runtime";
|
|
1091
1146
|
var EngineStatusButton = ({
|
|
1092
1147
|
engineStatus,
|
|
1093
1148
|
changeEngineStatus
|
|
1094
1149
|
}) => {
|
|
1095
1150
|
if (!engineStatus) {
|
|
1096
|
-
return /* @__PURE__ */
|
|
1151
|
+
return /* @__PURE__ */ jsx20(EuiButton4, { isLoading: true, fill: true, children: "Loading..." });
|
|
1097
1152
|
}
|
|
1098
|
-
return engineStatus === "RUNNING" ? /* @__PURE__ */
|
|
1153
|
+
return engineStatus === "RUNNING" ? /* @__PURE__ */ jsx20(
|
|
1099
1154
|
EuiButton4,
|
|
1100
1155
|
{
|
|
1101
1156
|
onClick: changeEngineStatus,
|
|
1102
1157
|
color: "warning",
|
|
1103
1158
|
fill: true,
|
|
1104
|
-
iconType: "pause"
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
) : /* @__PURE__ */
|
|
1159
|
+
iconType: "pause",
|
|
1160
|
+
children: "Pause the engine"
|
|
1161
|
+
}
|
|
1162
|
+
) : /* @__PURE__ */ jsx20(
|
|
1108
1163
|
EuiButton4,
|
|
1109
1164
|
{
|
|
1110
1165
|
onClick: changeEngineStatus,
|
|
1111
1166
|
color: "primary",
|
|
1112
1167
|
fill: true,
|
|
1113
|
-
iconType: "play"
|
|
1114
|
-
|
|
1115
|
-
|
|
1168
|
+
iconType: "play",
|
|
1169
|
+
children: "Start the engine"
|
|
1170
|
+
}
|
|
1116
1171
|
);
|
|
1117
1172
|
};
|
|
1118
1173
|
|
|
1119
1174
|
// src/components/SettingsPage/ModifySettings.tsx
|
|
1175
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
1120
1176
|
var ModifySettings = ({
|
|
1121
1177
|
engineStatus,
|
|
1122
1178
|
changeEngineStatus
|
|
1123
|
-
}) => /* @__PURE__ */
|
|
1179
|
+
}) => /* @__PURE__ */ jsxs11(
|
|
1124
1180
|
EuiPanel2,
|
|
1125
1181
|
{
|
|
1126
1182
|
hasShadow: false,
|
|
1127
1183
|
color: "subdued",
|
|
1128
1184
|
paddingSize: "l",
|
|
1129
|
-
css: { width: "50%" }
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1185
|
+
css: { width: "50%" },
|
|
1186
|
+
children: [
|
|
1187
|
+
/* @__PURE__ */ jsxs11(EuiText3, { size: "s", children: [
|
|
1188
|
+
/* @__PURE__ */ jsx21("h4", { children: "Modify the engine settings" }),
|
|
1189
|
+
/* @__PURE__ */ jsx21("p", { children: "Stop or start workflows through this menu" })
|
|
1190
|
+
] }),
|
|
1191
|
+
/* @__PURE__ */ jsx21(EuiSpacer5, { size: "m" }),
|
|
1192
|
+
/* @__PURE__ */ jsx21(
|
|
1193
|
+
EngineStatusButton,
|
|
1194
|
+
{
|
|
1195
|
+
engineStatus,
|
|
1196
|
+
changeEngineStatus
|
|
1197
|
+
}
|
|
1198
|
+
)
|
|
1199
|
+
]
|
|
1200
|
+
}
|
|
1140
1201
|
);
|
|
1141
1202
|
|
|
1142
1203
|
// src/components/SettingsPage/Status.tsx
|
|
@@ -1147,243 +1208,267 @@ import {
|
|
|
1147
1208
|
EuiPanel as EuiPanel3,
|
|
1148
1209
|
EuiText as EuiText4
|
|
1149
1210
|
} from "@elastic/eui";
|
|
1150
|
-
import React28 from "react";
|
|
1151
1211
|
|
|
1152
1212
|
// src/icons/CheckmarkCircleFill.tsx
|
|
1153
|
-
import
|
|
1213
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
1154
1214
|
var CheckmarkCircleFill = ({
|
|
1155
1215
|
width = 24,
|
|
1156
1216
|
height = 24,
|
|
1157
1217
|
color = "#000000"
|
|
1158
|
-
}) => /* @__PURE__ */
|
|
1218
|
+
}) => /* @__PURE__ */ jsxs12(
|
|
1159
1219
|
"svg",
|
|
1160
1220
|
{
|
|
1161
1221
|
width,
|
|
1162
1222
|
height,
|
|
1163
1223
|
viewBox: "0 0 24 24",
|
|
1164
1224
|
version: "1.1",
|
|
1165
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1225
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1226
|
+
children: [
|
|
1227
|
+
/* @__PURE__ */ jsx22("title", { children: "icon/checkmark-circle-fill" }),
|
|
1228
|
+
/* @__PURE__ */ jsx22(
|
|
1229
|
+
"g",
|
|
1230
|
+
{
|
|
1231
|
+
id: "Symbols",
|
|
1232
|
+
stroke: "none",
|
|
1233
|
+
strokeWidth: "1",
|
|
1234
|
+
fill: "none",
|
|
1235
|
+
fillRule: "evenodd",
|
|
1236
|
+
children: /* @__PURE__ */ jsx22("g", { id: "icon/checkmark-circle-fill", fill: color, children: /* @__PURE__ */ jsx22(
|
|
1237
|
+
"path",
|
|
1238
|
+
{
|
|
1239
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M15.7071,10.70711 C16.0976,10.31658 16.0976,9.68342 15.7071,9.29289 C15.3166,8.90237 14.6834,8.90237 14.2929,9.29289 L11,12.5858 L9.70711,11.29289 C9.31658,10.90237 8.68342,10.90237 8.29289,11.29289 C7.90237,11.68342 7.90237,12.3166 8.29289,12.7071 L10.29289,14.7071 C10.68342,15.0976 11.31658,15.0976 11.70711,14.7071 L15.7071,10.70711 Z",
|
|
1240
|
+
id: "Shape"
|
|
1241
|
+
}
|
|
1242
|
+
) })
|
|
1243
|
+
}
|
|
1244
|
+
)
|
|
1245
|
+
]
|
|
1246
|
+
}
|
|
1185
1247
|
);
|
|
1186
1248
|
|
|
1187
1249
|
// src/icons/MinusCircleOutline.tsx
|
|
1188
|
-
import
|
|
1250
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
1189
1251
|
var MinusCircleOutline = ({
|
|
1190
1252
|
width = 24,
|
|
1191
1253
|
height = 24,
|
|
1192
1254
|
color = "#000000"
|
|
1193
|
-
}) => /* @__PURE__ */
|
|
1255
|
+
}) => /* @__PURE__ */ jsxs13(
|
|
1194
1256
|
"svg",
|
|
1195
1257
|
{
|
|
1196
1258
|
width,
|
|
1197
1259
|
height,
|
|
1198
1260
|
viewBox: "0 0 24 24",
|
|
1199
1261
|
version: "1.1",
|
|
1200
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1262
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1263
|
+
children: [
|
|
1264
|
+
/* @__PURE__ */ jsx23("title", { children: "icon/minus-circle-outline" }),
|
|
1265
|
+
/* @__PURE__ */ jsx23(
|
|
1266
|
+
"g",
|
|
1267
|
+
{
|
|
1268
|
+
id: "Symbols",
|
|
1269
|
+
stroke: "none",
|
|
1270
|
+
strokeWidth: "1",
|
|
1271
|
+
fill: "none",
|
|
1272
|
+
fillRule: "evenodd",
|
|
1273
|
+
children: /* @__PURE__ */ jsx23("g", { id: "icon/minus-circle-outline", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx23(
|
|
1274
|
+
"path",
|
|
1275
|
+
{
|
|
1276
|
+
d: "M12,4 C16.4183,4 20,7.58172 20,12 C20,16.4183 16.4183,20 12,20 C7.58172,20 4,16.4183 4,12 C4,7.58172 7.58172,4 12,4 Z M12,6 C8.6862895,6 6,8.6862895 6,12 C6,15.3137228 8.68628182,18 12,18 C15.3137305,18 18,15.3137305 18,12 C18,8.68628182 15.3137228,6 12,6 Z M15,11 C15.5523,11 16,11.44772 16,12 C16,12.5523 15.5523,13 15,13 L9,13 C8.44772,13 8,12.5523 8,12 C8,11.44772 8.44772,11 9,11 Z",
|
|
1277
|
+
id: "Combined-Shape"
|
|
1278
|
+
}
|
|
1279
|
+
) })
|
|
1280
|
+
}
|
|
1281
|
+
)
|
|
1282
|
+
]
|
|
1283
|
+
}
|
|
1220
1284
|
);
|
|
1221
1285
|
|
|
1222
1286
|
// src/icons/PlusCircleFill.tsx
|
|
1223
|
-
import
|
|
1287
|
+
import { jsx as jsx24, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
1224
1288
|
var PlusCircleFill = ({
|
|
1225
1289
|
width = 24,
|
|
1226
1290
|
height = 24,
|
|
1227
1291
|
color = "#000000"
|
|
1228
|
-
}) => /* @__PURE__ */
|
|
1292
|
+
}) => /* @__PURE__ */ jsxs14(
|
|
1229
1293
|
"svg",
|
|
1230
1294
|
{
|
|
1231
1295
|
width,
|
|
1232
1296
|
height,
|
|
1233
1297
|
viewBox: "0 0 24 24",
|
|
1234
1298
|
version: "1.1",
|
|
1235
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1299
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1300
|
+
children: [
|
|
1301
|
+
/* @__PURE__ */ jsx24("title", { children: "icon/plus-circle-fill" }),
|
|
1302
|
+
/* @__PURE__ */ jsx24(
|
|
1303
|
+
"g",
|
|
1304
|
+
{
|
|
1305
|
+
id: "Symbols",
|
|
1306
|
+
stroke: "none",
|
|
1307
|
+
strokeWidth: "1",
|
|
1308
|
+
fill: "none",
|
|
1309
|
+
fillRule: "evenodd",
|
|
1310
|
+
children: /* @__PURE__ */ jsx24("g", { id: "icon/plus-circle-fill", fill: color, children: /* @__PURE__ */ jsx24(
|
|
1311
|
+
"path",
|
|
1312
|
+
{
|
|
1313
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M13,9 C13,8.44772 12.5523,8 12,8 C11.44772,8 11,8.44772 11,9 L11,11 L9,11 C8.44772,11 8,11.44771 8,12 C8,12.5523 8.44772,13 9,13 L11,13 L11,15 C11,15.5523 11.44772,16 12,16 C12.5523,16 13,15.5523 13,15 L13,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.44772 15.5523,11 15,11 L13,11 L13,9 Z",
|
|
1314
|
+
id: "Shape"
|
|
1315
|
+
}
|
|
1316
|
+
) })
|
|
1317
|
+
}
|
|
1318
|
+
)
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1255
1321
|
);
|
|
1256
1322
|
|
|
1257
1323
|
// src/icons/ChevronDown.tsx
|
|
1258
|
-
import
|
|
1324
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
1259
1325
|
var ChevronDown = ({
|
|
1260
1326
|
width = 24,
|
|
1261
1327
|
height = 24,
|
|
1262
1328
|
color = "#000000"
|
|
1263
|
-
}) => /* @__PURE__ */
|
|
1329
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
1264
1330
|
"svg",
|
|
1265
1331
|
{
|
|
1266
1332
|
width,
|
|
1267
1333
|
height,
|
|
1268
1334
|
viewBox: "0 0 24 24",
|
|
1269
1335
|
version: "1.1",
|
|
1270
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1336
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1337
|
+
children: [
|
|
1338
|
+
/* @__PURE__ */ jsx25("title", { children: "icon/chevron-down" }),
|
|
1339
|
+
/* @__PURE__ */ jsx25(
|
|
1340
|
+
"g",
|
|
1341
|
+
{
|
|
1342
|
+
id: "Symbols",
|
|
1343
|
+
stroke: "none",
|
|
1344
|
+
strokeWidth: "1",
|
|
1345
|
+
fill: "none",
|
|
1346
|
+
fillRule: "evenodd",
|
|
1347
|
+
children: /* @__PURE__ */ jsx25("g", { id: "icon/chevron-down", fill: color, children: /* @__PURE__ */ jsx25(
|
|
1348
|
+
"path",
|
|
1349
|
+
{
|
|
1350
|
+
d: "M7.29289,9.29289 C7.68342,8.90237 8.31658,8.90237 8.70711,9.29289 L12,12.5858 L15.2929,9.29289 C15.6834,8.90237 16.3166,8.90237 16.7071,9.29289 C17.0976,9.68342 17.0976,10.31658 16.7071,10.70711 L12.7071,14.7071 C12.3166,15.0976 11.68342,15.0976 11.29289,14.7071 L7.29289,10.70711 C6.90237,10.31658 6.90237,9.68342 7.29289,9.29289 Z",
|
|
1351
|
+
id: "Path"
|
|
1352
|
+
}
|
|
1353
|
+
) })
|
|
1354
|
+
}
|
|
1355
|
+
)
|
|
1356
|
+
]
|
|
1357
|
+
}
|
|
1290
1358
|
);
|
|
1291
1359
|
|
|
1292
1360
|
// src/icons/ArrowNarrowDown.tsx
|
|
1293
|
-
import
|
|
1361
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
1294
1362
|
var ArrowNarrowDown = ({
|
|
1295
1363
|
width = 16,
|
|
1296
1364
|
height = 20,
|
|
1297
1365
|
color = "#000000"
|
|
1298
|
-
}) => /* @__PURE__ */
|
|
1366
|
+
}) => /* @__PURE__ */ jsxs16(
|
|
1299
1367
|
"svg",
|
|
1300
1368
|
{
|
|
1301
1369
|
width,
|
|
1302
1370
|
height,
|
|
1303
1371
|
viewBox: "0 0 16 20",
|
|
1304
1372
|
version: "1.1",
|
|
1305
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1373
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1374
|
+
children: [
|
|
1375
|
+
/* @__PURE__ */ jsx26("title", { children: "icon/arrow-narrow-down" }),
|
|
1376
|
+
/* @__PURE__ */ jsx26(
|
|
1377
|
+
"g",
|
|
1378
|
+
{
|
|
1379
|
+
id: "Symbols",
|
|
1380
|
+
stroke: "none",
|
|
1381
|
+
strokeWidth: "1",
|
|
1382
|
+
fill: "none",
|
|
1383
|
+
fillRule: "evenodd",
|
|
1384
|
+
children: /* @__PURE__ */ jsx26("g", { id: "icon/arrow-narrow-down", fill: color, children: /* @__PURE__ */ jsx26(
|
|
1385
|
+
"path",
|
|
1386
|
+
{
|
|
1387
|
+
d: "M4.29289,9.70711 C3.90237,9.31658 3.90237,8.68342 4.29289,8.29289 L7.29289,5.29289 C7.68342,4.90237 8.3166,4.90237 8.7071,5.29289 L11.7071,8.29289 C12.0976,8.68342 12.0976,9.31658 11.7071,9.70711 C11.3166,10.09763 10.6834,10.09763 10.2929,9.70711 L9,8.41421 L9,14 C9,14.5523 8.5523,15 8,15 C7.44772,15 7,14.5523 7,14 L7,8.41421 L5.70711,9.70711 C5.31658,10.09763 4.68342,10.09763 4.29289,9.70711 Z",
|
|
1388
|
+
id: "Path",
|
|
1389
|
+
transform: "translate(7.999988, 10.000000) rotate(-180.000000) translate(-7.999988, -10.000000) "
|
|
1390
|
+
}
|
|
1391
|
+
) })
|
|
1392
|
+
}
|
|
1393
|
+
)
|
|
1394
|
+
]
|
|
1395
|
+
}
|
|
1326
1396
|
);
|
|
1327
1397
|
|
|
1328
1398
|
// src/icons/ArrowNarrowUp.tsx
|
|
1329
|
-
import
|
|
1399
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
1330
1400
|
var ArrowNarrowUp = ({
|
|
1331
1401
|
width = 16,
|
|
1332
1402
|
height = 20,
|
|
1333
1403
|
color = "#000000"
|
|
1334
|
-
}) => /* @__PURE__ */
|
|
1404
|
+
}) => /* @__PURE__ */ jsxs17(
|
|
1335
1405
|
"svg",
|
|
1336
1406
|
{
|
|
1337
1407
|
width,
|
|
1338
1408
|
height,
|
|
1339
1409
|
viewBox: "0 0 16 20",
|
|
1340
1410
|
version: "1.1",
|
|
1341
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1411
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1412
|
+
children: [
|
|
1413
|
+
/* @__PURE__ */ jsx27("title", { children: "icon/arrow-narrow-up" }),
|
|
1414
|
+
/* @__PURE__ */ jsx27(
|
|
1415
|
+
"g",
|
|
1416
|
+
{
|
|
1417
|
+
id: "Symbols",
|
|
1418
|
+
stroke: "none",
|
|
1419
|
+
strokeWidth: "1",
|
|
1420
|
+
fill: "none",
|
|
1421
|
+
fillRule: "evenodd",
|
|
1422
|
+
children: /* @__PURE__ */ jsx27("g", { id: "icon/arrow-narrow-up", fill: color, children: /* @__PURE__ */ jsx27(
|
|
1423
|
+
"path",
|
|
1424
|
+
{
|
|
1425
|
+
d: "M4.29289,9.70711 C3.90237,9.31658 3.90237,8.68342 4.29289,8.29289 L7.29289,5.29289 C7.68342,4.90237 8.3166,4.90237 8.7071,5.29289 L11.7071,8.29289 C12.0976,8.68342 12.0976,9.31658 11.7071,9.70711 C11.3166,10.09763 10.6834,10.09763 10.2929,9.70711 L9,8.41421 L9,14 C9,14.5523 8.5523,15 8,15 C7.44772,15 7,14.5523 7,14 L7,8.41421 L5.70711,9.70711 C5.31658,10.09763 4.68342,10.09763 4.29289,9.70711 Z",
|
|
1426
|
+
id: "Path"
|
|
1427
|
+
}
|
|
1428
|
+
) })
|
|
1429
|
+
}
|
|
1430
|
+
)
|
|
1431
|
+
]
|
|
1432
|
+
}
|
|
1361
1433
|
);
|
|
1362
1434
|
|
|
1363
1435
|
// src/components/SettingsPage/Status.tsx
|
|
1436
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
1364
1437
|
var Status = ({ engineStatus }) => {
|
|
1365
1438
|
const { theme } = useOrchestratorTheme();
|
|
1366
1439
|
const isRunning = engineStatus === "RUNNING";
|
|
1367
|
-
return /* @__PURE__ */
|
|
1440
|
+
return /* @__PURE__ */ jsxs18(
|
|
1368
1441
|
EuiPanel3,
|
|
1369
1442
|
{
|
|
1370
1443
|
hasShadow: false,
|
|
1371
1444
|
color: "subdued",
|
|
1372
1445
|
paddingSize: "l",
|
|
1373
|
-
style: { width: "50%" }
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1446
|
+
style: { width: "50%" },
|
|
1447
|
+
children: [
|
|
1448
|
+
/* @__PURE__ */ jsxs18(EuiFlexGroup2, { children: [
|
|
1449
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { grow: false, style: { minWidth: 140 }, children: /* @__PURE__ */ jsx28(EuiText4, { size: "s", children: /* @__PURE__ */ jsx28("h4", { children: "Running processes" }) }) }),
|
|
1450
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { grow: false, children: /* @__PURE__ */ jsx28(EuiText4, { size: "s", children: /* @__PURE__ */ jsx28("p", { children: "0" }) }) })
|
|
1451
|
+
] }),
|
|
1452
|
+
/* @__PURE__ */ jsx28(EuiSpacer6, { size: "m" }),
|
|
1453
|
+
/* @__PURE__ */ jsxs18(EuiFlexGroup2, { children: [
|
|
1454
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { grow: false, style: { minWidth: 132 }, children: /* @__PURE__ */ jsx28(EuiText4, { size: "s", children: /* @__PURE__ */ jsx28("h4", { children: "Engine status" }) }) }),
|
|
1455
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { grow: false, children: /* @__PURE__ */ jsxs18(EuiFlexGroup2, { gutterSize: "xs", children: [
|
|
1456
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { children: /* @__PURE__ */ jsx28(
|
|
1457
|
+
StatusDotIcon,
|
|
1458
|
+
{
|
|
1459
|
+
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
1460
|
+
}
|
|
1461
|
+
) }),
|
|
1462
|
+
/* @__PURE__ */ jsx28(EuiFlexItem, { children: /* @__PURE__ */ jsx28(EuiText4, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx28("p", { children: engineStatus }) }) })
|
|
1463
|
+
] }) })
|
|
1464
|
+
] })
|
|
1465
|
+
]
|
|
1466
|
+
}
|
|
1383
1467
|
);
|
|
1384
1468
|
};
|
|
1385
1469
|
|
|
1386
1470
|
// src/components/SettingsPage/Settings.tsx
|
|
1471
|
+
import { Fragment as Fragment5, jsx as jsx29, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
1387
1472
|
var Settings = () => {
|
|
1388
1473
|
const { data: engineStatus } = useEngineStatusQuery();
|
|
1389
1474
|
const { mutate, data: newEngineStatus } = useEngineStatusMutation();
|
|
@@ -1392,24 +1477,33 @@ var Settings = () => {
|
|
|
1392
1477
|
const changeEngineStatus = () => {
|
|
1393
1478
|
mutate({ global_lock: isRunning });
|
|
1394
1479
|
};
|
|
1395
|
-
return /* @__PURE__ */
|
|
1396
|
-
|
|
1397
|
-
{
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1480
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
1481
|
+
/* @__PURE__ */ jsx29(EuiPageHeader, { pageTitle: "Settings" }),
|
|
1482
|
+
/* @__PURE__ */ jsx29(EuiHorizontalRule, {}),
|
|
1483
|
+
/* @__PURE__ */ jsx29(FlushSettings, {}),
|
|
1484
|
+
/* @__PURE__ */ jsx29(EuiSpacer7, {}),
|
|
1485
|
+
/* @__PURE__ */ jsx29(
|
|
1486
|
+
ModifySettings,
|
|
1487
|
+
{
|
|
1488
|
+
engineStatus: currentEngineStatus,
|
|
1489
|
+
changeEngineStatus
|
|
1490
|
+
}
|
|
1491
|
+
),
|
|
1492
|
+
/* @__PURE__ */ jsx29(EuiSpacer7, {}),
|
|
1493
|
+
/* @__PURE__ */ jsx29(Status, { engineStatus: currentEngineStatus })
|
|
1494
|
+
] });
|
|
1402
1495
|
};
|
|
1403
1496
|
|
|
1404
1497
|
// src/components/StartPage/FrequentlyUsed.tsx
|
|
1405
1498
|
import { EuiButton as EuiButton5, EuiFlexGroup as EuiFlexGroup3, EuiFlexItem as EuiFlexItem2 } from "@elastic/eui";
|
|
1406
|
-
import
|
|
1407
|
-
var FrequentlyUsed = ({ values }) => /* @__PURE__ */
|
|
1499
|
+
import { jsx as jsx30 } from "@emotion/react/jsx-runtime";
|
|
1500
|
+
var FrequentlyUsed = ({ values }) => /* @__PURE__ */ jsx30(EuiFlexGroup3, { wrap: true, gutterSize: "m", children: values.map((value, index) => /* @__PURE__ */ jsx30(EuiFlexItem2, { grow: false, children: /* @__PURE__ */ jsx30(EuiButton5, { size: "xs", style: { minWidth: 0 }, children: value }) }, index)) });
|
|
1408
1501
|
|
|
1409
1502
|
// src/components/StartPage/ListItemStartPage.tsx
|
|
1410
|
-
import
|
|
1503
|
+
import { useState as useState4 } from "react";
|
|
1411
1504
|
import { EuiFlexGroup as EuiFlexGroup4, EuiFlexItem as EuiFlexItem3, EuiIcon, EuiTextColor } from "@elastic/eui";
|
|
1412
1505
|
import moment from "moment";
|
|
1506
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
1413
1507
|
var ListItemStartPage = ({
|
|
1414
1508
|
item,
|
|
1415
1509
|
type
|
|
@@ -1418,55 +1512,67 @@ var ListItemStartPage = ({
|
|
|
1418
1512
|
const renderItem = (item2, type2) => {
|
|
1419
1513
|
if (type2 === "subscription") {
|
|
1420
1514
|
item2 = item2;
|
|
1421
|
-
return /* @__PURE__ */
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1515
|
+
return /* @__PURE__ */ jsxs20(EuiFlexItem3, { children: [
|
|
1516
|
+
/* @__PURE__ */ jsx31(
|
|
1517
|
+
EuiTextColor,
|
|
1518
|
+
{
|
|
1519
|
+
color: hoverState ? "#397dc2" : "black",
|
|
1520
|
+
style: { fontWeight: 500, transition: "0.2s" },
|
|
1521
|
+
children: item2.product.name
|
|
1522
|
+
}
|
|
1523
|
+
),
|
|
1524
|
+
/* @__PURE__ */ jsx31(EuiTextColor, { style: { fontWeight: 400 }, children: item2.subscription_id.slice(0, 8) })
|
|
1525
|
+
] });
|
|
1429
1526
|
} else if (type2 === "process") {
|
|
1430
1527
|
item2 = item2;
|
|
1431
1528
|
const date = new Date(item2.last_modified_at * 1e3);
|
|
1432
1529
|
const formattedDate = moment(date).format("DD-MM-YYYY, HH:mm");
|
|
1433
|
-
return /* @__PURE__ */
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1530
|
+
return /* @__PURE__ */ jsxs20(EuiFlexItem3, { children: [
|
|
1531
|
+
/* @__PURE__ */ jsx31(
|
|
1532
|
+
EuiTextColor,
|
|
1533
|
+
{
|
|
1534
|
+
color: hoverState ? "#397dc2" : "black",
|
|
1535
|
+
style: { fontWeight: 500, transition: "0.2s" },
|
|
1536
|
+
children: item2.workflow
|
|
1537
|
+
}
|
|
1538
|
+
),
|
|
1539
|
+
/* @__PURE__ */ jsxs20(EuiTextColor, { style: { fontWeight: 400 }, children: [
|
|
1540
|
+
formattedDate,
|
|
1541
|
+
" for",
|
|
1542
|
+
" ",
|
|
1543
|
+
/* @__PURE__ */ jsx31("span", { style: { color: "#397dc2" }, children: "KLM" })
|
|
1544
|
+
] })
|
|
1545
|
+
] });
|
|
1441
1546
|
}
|
|
1442
1547
|
};
|
|
1443
|
-
return /* @__PURE__ */
|
|
1548
|
+
return /* @__PURE__ */ jsx31(
|
|
1444
1549
|
"a",
|
|
1445
1550
|
{
|
|
1446
|
-
href: `/subscriptions/${"subscription_id" in item ? item.subscription_id : ""}
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
EuiFlexGroup4,
|
|
1450
|
-
{
|
|
1451
|
-
style: { cursor: "pointer", paddingBlock: 10 },
|
|
1452
|
-
onMouseOver: () => setHoverState(true),
|
|
1453
|
-
onMouseLeave: () => setHoverState(false)
|
|
1454
|
-
},
|
|
1455
|
-
renderItem(item, type),
|
|
1456
|
-
/* @__PURE__ */ React31.createElement(
|
|
1457
|
-
EuiFlexItem3,
|
|
1551
|
+
href: `/subscriptions/${"subscription_id" in item ? item.subscription_id : ""}`,
|
|
1552
|
+
children: /* @__PURE__ */ jsxs20(
|
|
1553
|
+
EuiFlexGroup4,
|
|
1458
1554
|
{
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1555
|
+
style: { cursor: "pointer", paddingBlock: 10 },
|
|
1556
|
+
onMouseOver: () => setHoverState(true),
|
|
1557
|
+
onMouseLeave: () => setHoverState(false),
|
|
1558
|
+
children: [
|
|
1559
|
+
renderItem(item, type),
|
|
1560
|
+
/* @__PURE__ */ jsx31(
|
|
1561
|
+
EuiFlexItem3,
|
|
1562
|
+
{
|
|
1563
|
+
grow: false,
|
|
1564
|
+
style: { display: hoverState ? "block" : "none" },
|
|
1565
|
+
children: /* @__PURE__ */ jsx31(EuiIcon, { type: "sortRight", color: "primary" })
|
|
1566
|
+
}
|
|
1567
|
+
)
|
|
1568
|
+
]
|
|
1569
|
+
}
|
|
1463
1570
|
)
|
|
1464
|
-
|
|
1571
|
+
}
|
|
1465
1572
|
);
|
|
1466
1573
|
};
|
|
1467
1574
|
|
|
1468
1575
|
// src/components/StartPage/ListStartPage.tsx
|
|
1469
|
-
import React32 from "react";
|
|
1470
1576
|
import {
|
|
1471
1577
|
EuiButton as EuiButton6,
|
|
1472
1578
|
EuiFlexItem as EuiFlexItem4,
|
|
@@ -1474,22 +1580,36 @@ import {
|
|
|
1474
1580
|
EuiPanel as EuiPanel4,
|
|
1475
1581
|
EuiSpacer as EuiSpacer8
|
|
1476
1582
|
} from "@elastic/eui";
|
|
1583
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
1477
1584
|
function ListStartPage({ list }) {
|
|
1478
|
-
return (list == null ? void 0 : list.items) && /* @__PURE__ */
|
|
1585
|
+
return (list == null ? void 0 : list.items) && /* @__PURE__ */ jsx32(EuiFlexItem4, { style: { minWidth: 300 }, children: /* @__PURE__ */ jsxs21(EuiPanel4, { hasShadow: false, hasBorder: true, paddingSize: "l", children: [
|
|
1586
|
+
/* @__PURE__ */ jsx32("p", { style: { fontWeight: 600 }, children: list.title }),
|
|
1587
|
+
/* @__PURE__ */ jsx32(EuiSpacer8, { size: "m" }),
|
|
1588
|
+
list.items.map((item, index) => /* @__PURE__ */ jsxs21("div", { children: [
|
|
1589
|
+
/* @__PURE__ */ jsx32(ListItemStartPage, { item, type: list.type }),
|
|
1590
|
+
index === list.items.length - 1 ? null : /* @__PURE__ */ jsx32(EuiHorizontalRule2, { margin: "none" })
|
|
1591
|
+
] }, index)),
|
|
1592
|
+
/* @__PURE__ */ jsx32(EuiSpacer8, { size: "m" }),
|
|
1593
|
+
/* @__PURE__ */ jsx32(EuiButton6, { fullWidth: true, children: list.buttonName })
|
|
1594
|
+
] }) });
|
|
1479
1595
|
}
|
|
1480
1596
|
|
|
1481
1597
|
// src/components/StartPage/MultiListSection.tsx
|
|
1482
|
-
import React33 from "react";
|
|
1483
1598
|
import { EuiFlexGroup as EuiFlexGroup5 } from "@elastic/eui";
|
|
1599
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
1484
1600
|
var MultiListSection = () => {
|
|
1485
1601
|
const favouriteSubscriptionsList = useFavouriteSubscriptions();
|
|
1486
1602
|
const processesAttentionList = useProcessesAttention();
|
|
1487
1603
|
const completedProcessesList = useRecentProcesses();
|
|
1488
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ jsxs22(EuiFlexGroup5, { wrap: true, children: [
|
|
1605
|
+
/* @__PURE__ */ jsx33(ListStartPage, { list: favouriteSubscriptionsList }),
|
|
1606
|
+
/* @__PURE__ */ jsx33(ListStartPage, { list: processesAttentionList }),
|
|
1607
|
+
/* @__PURE__ */ jsx33(ListStartPage, { list: completedProcessesList })
|
|
1608
|
+
] });
|
|
1489
1609
|
};
|
|
1490
1610
|
|
|
1491
1611
|
// src/components/StartPage/NewProcessPanel.tsx
|
|
1492
|
-
import
|
|
1612
|
+
import { useState as useState5 } from "react";
|
|
1493
1613
|
import {
|
|
1494
1614
|
EuiFieldSearch,
|
|
1495
1615
|
EuiPanel as EuiPanel5,
|
|
@@ -1497,6 +1617,7 @@ import {
|
|
|
1497
1617
|
EuiText as EuiText5,
|
|
1498
1618
|
EuiTextColor as EuiTextColor2
|
|
1499
1619
|
} from "@elastic/eui";
|
|
1620
|
+
import { jsx as jsx34, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
1500
1621
|
var NewProcessPanel = () => {
|
|
1501
1622
|
const [value, setValue] = useState5("");
|
|
1502
1623
|
const onChange = (e) => {
|
|
@@ -1509,20 +1630,28 @@ var NewProcessPanel = () => {
|
|
|
1509
1630
|
"NL8 Service Port 100G",
|
|
1510
1631
|
"SN8 AGGSP"
|
|
1511
1632
|
];
|
|
1512
|
-
return /* @__PURE__ */
|
|
1513
|
-
|
|
1514
|
-
{
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1633
|
+
return /* @__PURE__ */ jsxs23(EuiPanel5, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
1634
|
+
/* @__PURE__ */ jsx34(EuiText5, { children: /* @__PURE__ */ jsx34("b", { children: "Start a new process" }) }),
|
|
1635
|
+
/* @__PURE__ */ jsx34(EuiSpacer9, { size: "m" }),
|
|
1636
|
+
/* @__PURE__ */ jsx34(
|
|
1637
|
+
EuiFieldSearch,
|
|
1638
|
+
{
|
|
1639
|
+
fullWidth: true,
|
|
1640
|
+
placeholder: "Search and select process",
|
|
1641
|
+
value,
|
|
1642
|
+
onChange: (e) => onChange(e),
|
|
1643
|
+
"aria-label": "Search and select process"
|
|
1644
|
+
}
|
|
1645
|
+
),
|
|
1646
|
+
/* @__PURE__ */ jsx34(EuiSpacer9, { size: "m" }),
|
|
1647
|
+
/* @__PURE__ */ jsx34(EuiTextColor2, { color: "subdued", children: "Frequently used:" }),
|
|
1648
|
+
/* @__PURE__ */ jsx34(EuiSpacer9, { size: "s" }),
|
|
1649
|
+
/* @__PURE__ */ jsx34(FrequentlyUsed, { values: frequentlyUsedValues })
|
|
1650
|
+
] });
|
|
1522
1651
|
};
|
|
1523
1652
|
|
|
1524
1653
|
// src/components/StartPage/StatCards.tsx
|
|
1525
|
-
import
|
|
1654
|
+
import { useState as useState6 } from "react";
|
|
1526
1655
|
import {
|
|
1527
1656
|
EuiAvatar,
|
|
1528
1657
|
EuiFlexGroup as EuiFlexGroup6,
|
|
@@ -1530,6 +1659,7 @@ import {
|
|
|
1530
1659
|
EuiPanel as EuiPanel6,
|
|
1531
1660
|
EuiText as EuiText6
|
|
1532
1661
|
} from "@elastic/eui";
|
|
1662
|
+
import { jsx as jsx35, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
1533
1663
|
var totalStats = [
|
|
1534
1664
|
{
|
|
1535
1665
|
icon: "kubernetesPod",
|
|
@@ -1553,27 +1683,34 @@ var totalStats = [
|
|
|
1553
1683
|
var StatCards = () => {
|
|
1554
1684
|
const [stats] = useState6(totalStats);
|
|
1555
1685
|
const { theme } = useOrchestratorTheme();
|
|
1556
|
-
return /* @__PURE__ */
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1686
|
+
return /* @__PURE__ */ jsx35(EuiFlexGroup6, { wrap: true, children: stats.map((stat, index) => /* @__PURE__ */ jsx35(EuiFlexItem5, { children: /* @__PURE__ */ jsx35(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs24(EuiFlexGroup6, { children: [
|
|
1687
|
+
/* @__PURE__ */ jsx35(EuiFlexItem5, { grow: false, children: /* @__PURE__ */ jsx35(
|
|
1688
|
+
EuiAvatar,
|
|
1689
|
+
{
|
|
1690
|
+
iconSize: "l",
|
|
1691
|
+
size: "xl",
|
|
1692
|
+
type: "space",
|
|
1693
|
+
name: stat.name,
|
|
1694
|
+
style: { maxHeight: 55, maxWidth: 55 },
|
|
1695
|
+
iconType: stat.icon,
|
|
1696
|
+
iconColor: theme.colors.ghost,
|
|
1697
|
+
color: theme.colors[stat.color]
|
|
1698
|
+
}
|
|
1699
|
+
) }),
|
|
1700
|
+
/* @__PURE__ */ jsxs24(EuiFlexItem5, { children: [
|
|
1701
|
+
/* @__PURE__ */ jsx35(EuiText6, { color: "subdued", children: /* @__PURE__ */ jsxs24("h4", { style: { fontWeight: 300 }, children: [
|
|
1702
|
+
"Total ",
|
|
1703
|
+
stat.name
|
|
1704
|
+
] }) }),
|
|
1705
|
+
/* @__PURE__ */ jsx35(EuiText6, { children: /* @__PURE__ */ jsx35("h2", { style: { fontWeight: 500 }, children: stat.value.toLocaleString("de-DE") }) })
|
|
1706
|
+
] })
|
|
1707
|
+
] }) }) }, index)) });
|
|
1569
1708
|
};
|
|
1570
1709
|
|
|
1571
1710
|
// src/components/Subscription/FixedInputBlock.tsx
|
|
1572
|
-
import React37 from "react";
|
|
1573
1711
|
import { EuiFlexGroup as EuiFlexGroup8, EuiFlexItem as EuiFlexItem7, EuiSpacer as EuiSpacer11, EuiText as EuiText8 } from "@elastic/eui";
|
|
1574
1712
|
|
|
1575
1713
|
// src/components/Subscription/SubscriptionBlock.tsx
|
|
1576
|
-
import React36 from "react";
|
|
1577
1714
|
import {
|
|
1578
1715
|
EuiButtonEmpty as EuiButtonEmpty2,
|
|
1579
1716
|
EuiFlexGroup as EuiFlexGroup7,
|
|
@@ -1600,14 +1737,15 @@ var subscriptionValueCellStyle = css({
|
|
|
1600
1737
|
});
|
|
1601
1738
|
|
|
1602
1739
|
// src/components/Subscription/SubscriptionBlock.tsx
|
|
1740
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
1603
1741
|
var RenderField = (field, data) => {
|
|
1604
1742
|
if (field === "status")
|
|
1605
|
-
return /* @__PURE__ */
|
|
1743
|
+
return /* @__PURE__ */ jsx36(WFOStatusBadge, { status: data[field] });
|
|
1606
1744
|
else if (field === "insync")
|
|
1607
|
-
return /* @__PURE__ */
|
|
1745
|
+
return /* @__PURE__ */ jsx36("div", { style: { position: "relative", top: 5 }, children: data[field] ? /* @__PURE__ */ jsx36(CheckmarkCircleFill, { color: "#007832" }) : /* @__PURE__ */ jsx36(MinusCircleOutline, { color: "#BD271F" }) });
|
|
1608
1746
|
else if (field === "product.name")
|
|
1609
|
-
return /* @__PURE__ */
|
|
1610
|
-
return /* @__PURE__ */
|
|
1747
|
+
return /* @__PURE__ */ jsx36("div", { children: data.product.name });
|
|
1748
|
+
return /* @__PURE__ */ jsx36("div", { children: data[field] });
|
|
1611
1749
|
};
|
|
1612
1750
|
var SubscriptionBlock = (title, data) => {
|
|
1613
1751
|
const keys = [];
|
|
@@ -1618,34 +1756,53 @@ var SubscriptionBlock = (title, data) => {
|
|
|
1618
1756
|
}
|
|
1619
1757
|
if (keys.length === 0)
|
|
1620
1758
|
return;
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
"
|
|
1623
|
-
{
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1759
|
+
return /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
1760
|
+
/* @__PURE__ */ jsx36(EuiSpacer10, { size: "m" }),
|
|
1761
|
+
/* @__PURE__ */ jsx36("div", { children: /* @__PURE__ */ jsxs25("div", { style: { marginTop: 5 }, children: [
|
|
1762
|
+
/* @__PURE__ */ jsxs25(EuiFlexGroup7, { justifyContent: "spaceBetween", children: [
|
|
1763
|
+
/* @__PURE__ */ jsx36(EuiFlexItem6, { children: /* @__PURE__ */ jsx36(EuiText7, { grow: false, children: /* @__PURE__ */ jsx36("h3", { children: title }) }) }),
|
|
1764
|
+
/* @__PURE__ */ jsx36(EuiFlexItem6, { grow: false, children: /* @__PURE__ */ jsx36(EuiButtonEmpty2, { size: "s", iconType: "starEmpty", children: "Add to favorites" }) })
|
|
1765
|
+
] }),
|
|
1766
|
+
/* @__PURE__ */ jsx36(EuiSpacer10, { size: "s" }),
|
|
1767
|
+
/* @__PURE__ */ jsx36("table", { width: "100%", children: /* @__PURE__ */ jsxs25("tbody", { children: [
|
|
1768
|
+
/* @__PURE__ */ jsxs25("tr", { css: subscriptionTableRowStyle, children: [
|
|
1769
|
+
/* @__PURE__ */ jsx36(
|
|
1770
|
+
"td",
|
|
1771
|
+
{
|
|
1772
|
+
valign: "top",
|
|
1773
|
+
css: subscriptionDefinitionCellStyle,
|
|
1774
|
+
children: /* @__PURE__ */ jsx36("b", { children: "Product" })
|
|
1775
|
+
}
|
|
1776
|
+
),
|
|
1777
|
+
/* @__PURE__ */ jsx36("td", { css: subscriptionValueCellStyle, children: data.product.name })
|
|
1778
|
+
] }, 0),
|
|
1779
|
+
keys.map((k, i) => /* @__PURE__ */ jsxs25(
|
|
1780
|
+
"tr",
|
|
1781
|
+
{
|
|
1782
|
+
style: {
|
|
1783
|
+
backgroundColor: i % 2 ? "#F1F5F9" : "#FFF"
|
|
1784
|
+
},
|
|
1785
|
+
children: [
|
|
1786
|
+
/* @__PURE__ */ jsx36(
|
|
1787
|
+
"td",
|
|
1788
|
+
{
|
|
1789
|
+
valign: "top",
|
|
1790
|
+
css: subscriptionDefinitionCellStyle,
|
|
1791
|
+
children: /* @__PURE__ */ jsx36("b", { children: k })
|
|
1792
|
+
}
|
|
1793
|
+
),
|
|
1794
|
+
/* @__PURE__ */ jsx36("td", { css: subscriptionValueCellStyle, children: RenderField(k, data) })
|
|
1795
|
+
]
|
|
1796
|
+
},
|
|
1797
|
+
i
|
|
1798
|
+
))
|
|
1799
|
+
] }) })
|
|
1800
|
+
] }) })
|
|
1801
|
+
] });
|
|
1646
1802
|
};
|
|
1647
1803
|
|
|
1648
1804
|
// src/components/Subscription/FixedInputBlock.tsx
|
|
1805
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
1649
1806
|
var FixedInputBlock = (title, data) => {
|
|
1650
1807
|
const keys = [];
|
|
1651
1808
|
for (const key in data) {
|
|
@@ -1653,28 +1810,36 @@ var FixedInputBlock = (title, data) => {
|
|
|
1653
1810
|
}
|
|
1654
1811
|
if (keys.length === 0)
|
|
1655
1812
|
return;
|
|
1656
|
-
return /* @__PURE__ */
|
|
1657
|
-
"
|
|
1658
|
-
{
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1813
|
+
return /* @__PURE__ */ jsxs26(Fragment7, { children: [
|
|
1814
|
+
/* @__PURE__ */ jsx37(EuiSpacer11, { size: "m" }),
|
|
1815
|
+
/* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsxs26("div", { style: { marginTop: 5 }, children: [
|
|
1816
|
+
/* @__PURE__ */ jsx37(EuiFlexGroup8, { justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx37(EuiFlexItem7, { children: /* @__PURE__ */ jsx37(EuiText8, { grow: false, children: /* @__PURE__ */ jsx37("h3", { children: title }) }) }) }),
|
|
1817
|
+
/* @__PURE__ */ jsx37(EuiSpacer11, { size: "s" }),
|
|
1818
|
+
/* @__PURE__ */ jsx37("table", { width: "100%", children: /* @__PURE__ */ jsx37("tbody", { children: keys.map((k, i) => /* @__PURE__ */ jsxs26(
|
|
1819
|
+
"tr",
|
|
1820
|
+
{
|
|
1821
|
+
style: {
|
|
1822
|
+
backgroundColor: i % 2 ? "#FFF" : "#F1F5F9"
|
|
1823
|
+
},
|
|
1824
|
+
children: [
|
|
1825
|
+
/* @__PURE__ */ jsx37(
|
|
1826
|
+
"td",
|
|
1827
|
+
{
|
|
1828
|
+
valign: "top",
|
|
1829
|
+
css: subscriptionDefinitionCellStyle,
|
|
1830
|
+
children: /* @__PURE__ */ jsx37("b", { children: k })
|
|
1831
|
+
}
|
|
1832
|
+
),
|
|
1833
|
+
/* @__PURE__ */ jsx37("td", { css: subscriptionValueCellStyle, children: RenderField(k, data) })
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
i
|
|
1837
|
+
)) }) })
|
|
1838
|
+
] }) })
|
|
1839
|
+
] });
|
|
1674
1840
|
};
|
|
1675
1841
|
|
|
1676
1842
|
// src/components/Subscription/ProcessesTimeline.tsx
|
|
1677
|
-
import React38 from "react";
|
|
1678
1843
|
import {
|
|
1679
1844
|
EuiAvatar as EuiAvatar2,
|
|
1680
1845
|
EuiComment,
|
|
@@ -1682,62 +1847,84 @@ import {
|
|
|
1682
1847
|
EuiSpacer as EuiSpacer12,
|
|
1683
1848
|
EuiLoadingContent
|
|
1684
1849
|
} from "@elastic/eui";
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
{
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1850
|
+
import { Fragment as Fragment8, jsx as jsx38, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
1851
|
+
var Card = (processInfo) => /* @__PURE__ */ jsx38("div", { style: { marginTop: 5 }, children: /* @__PURE__ */ jsxs27("table", { width: "100%", bgcolor: "#F1F5F9", children: [
|
|
1852
|
+
/* @__PURE__ */ jsxs27("tr", { children: [
|
|
1853
|
+
/* @__PURE__ */ jsx38(
|
|
1854
|
+
"td",
|
|
1855
|
+
{
|
|
1856
|
+
valign: "top",
|
|
1857
|
+
style: {
|
|
1858
|
+
width: 250,
|
|
1859
|
+
padding: 10,
|
|
1860
|
+
borderBottom: "solid 1px #ddd"
|
|
1861
|
+
},
|
|
1862
|
+
children: /* @__PURE__ */ jsx38("b", { children: "ID" })
|
|
1863
|
+
}
|
|
1864
|
+
),
|
|
1865
|
+
/* @__PURE__ */ jsx38("td", { style: { padding: 10, borderBottom: "solid 1px #ddd" }, children: /* @__PURE__ */ jsx38(
|
|
1866
|
+
"a",
|
|
1867
|
+
{
|
|
1868
|
+
href: `https://orchestrator.dev.automation.surf.net/processes/${processInfo.process.pid}`,
|
|
1869
|
+
children: processInfo.pid
|
|
1870
|
+
}
|
|
1871
|
+
) })
|
|
1872
|
+
] }),
|
|
1873
|
+
/* @__PURE__ */ jsxs27("tr", { children: [
|
|
1874
|
+
/* @__PURE__ */ jsx38(
|
|
1875
|
+
"td",
|
|
1876
|
+
{
|
|
1877
|
+
valign: "top",
|
|
1878
|
+
style: { padding: 10, borderBottom: "solid 1px #ddd" },
|
|
1879
|
+
children: /* @__PURE__ */ jsx38("b", { children: "Status" })
|
|
1880
|
+
}
|
|
1881
|
+
),
|
|
1882
|
+
/* @__PURE__ */ jsx38("td", { style: { padding: 10, borderBottom: "solid 1px #ddd" }, children: /* @__PURE__ */ jsx38(
|
|
1883
|
+
ProcessStatusBadge,
|
|
1884
|
+
{
|
|
1885
|
+
processStatus: processInfo.process.last_status
|
|
1886
|
+
}
|
|
1887
|
+
) })
|
|
1888
|
+
] }),
|
|
1889
|
+
/* @__PURE__ */ jsxs27("tr", { children: [
|
|
1890
|
+
/* @__PURE__ */ jsx38(
|
|
1891
|
+
"td",
|
|
1892
|
+
{
|
|
1893
|
+
valign: "top",
|
|
1894
|
+
style: { padding: 10, borderBottom: "solid 1px #ddd" },
|
|
1895
|
+
children: /* @__PURE__ */ jsx38("b", { children: "Started at" })
|
|
1896
|
+
}
|
|
1897
|
+
),
|
|
1898
|
+
/* @__PURE__ */ jsx38("td", { style: { padding: 10, borderBottom: "solid 1px #ddd" }, children: "2-11-2021 13:47:43 - Duration: 00:00:024" })
|
|
1899
|
+
] }),
|
|
1900
|
+
/* @__PURE__ */ jsxs27("tr", { children: [
|
|
1901
|
+
/* @__PURE__ */ jsx38("td", { valign: "top", style: { padding: 10 }, children: /* @__PURE__ */ jsx38("b", { children: "Started by" }) }),
|
|
1902
|
+
/* @__PURE__ */ jsx38("td", { style: { padding: 10 }, children: processInfo.process.created_by })
|
|
1903
|
+
] })
|
|
1904
|
+
] }) });
|
|
1905
|
+
var RenderProcess = (processInfo) => /* @__PURE__ */ jsx38(
|
|
1723
1906
|
EuiComment,
|
|
1724
1907
|
{
|
|
1725
1908
|
username: processInfo.workflow_target ?? "",
|
|
1726
1909
|
timelineAvatarAriaLabel: processInfo.process.workflow,
|
|
1727
|
-
timelineAvatar: /* @__PURE__ */
|
|
1728
|
-
|
|
1729
|
-
|
|
1910
|
+
timelineAvatar: /* @__PURE__ */ jsx38(EuiAvatar2, { name: "C" }),
|
|
1911
|
+
children: Card(processInfo)
|
|
1912
|
+
}
|
|
1730
1913
|
);
|
|
1731
1914
|
var ProcessesTimeline = ({
|
|
1732
1915
|
subscriptionId
|
|
1733
1916
|
}) => {
|
|
1734
1917
|
const { data: subscriptionProcesses } = useSubscriptionProcesses(subscriptionId);
|
|
1735
1918
|
console.log("SUB", subscriptionProcesses);
|
|
1736
|
-
return /* @__PURE__ */
|
|
1919
|
+
return /* @__PURE__ */ jsxs27(Fragment8, { children: [
|
|
1920
|
+
/* @__PURE__ */ jsx38(EuiSpacer12, { size: "m" }),
|
|
1921
|
+
!subscriptionProcesses && /* @__PURE__ */ jsx38(EuiLoadingContent, {}),
|
|
1922
|
+
/* @__PURE__ */ jsx38(EuiCommentList, { "aria-label": "Processes", children: subscriptionProcesses && /* @__PURE__ */ jsx38(EuiCommentList, { "aria-label": "Processes", children: subscriptionProcesses.map((i) => RenderProcess(i)) }) })
|
|
1923
|
+
] });
|
|
1737
1924
|
};
|
|
1738
1925
|
|
|
1739
1926
|
// src/components/Subscription/ProductBlock.tsx
|
|
1740
|
-
import
|
|
1927
|
+
import React9 from "react";
|
|
1741
1928
|
import { EuiAccordion, EuiCodeBlock } from "@elastic/eui";
|
|
1742
1929
|
import {
|
|
1743
1930
|
EuiButtonIcon as EuiButtonIcon2,
|
|
@@ -1749,7 +1936,8 @@ import {
|
|
|
1749
1936
|
} from "@elastic/eui";
|
|
1750
1937
|
|
|
1751
1938
|
// src/contexts/SubscriptionContext.tsx
|
|
1752
|
-
import * as
|
|
1939
|
+
import * as React7 from "react";
|
|
1940
|
+
import { jsx as jsx39 } from "@emotion/react/jsx-runtime";
|
|
1753
1941
|
var subscriptionDetailInit = {
|
|
1754
1942
|
subscriptionId: "",
|
|
1755
1943
|
description: "",
|
|
@@ -1772,37 +1960,38 @@ var InitialSubscriptionContext = {
|
|
|
1772
1960
|
loadingStatus: 0,
|
|
1773
1961
|
setSubscriptionData: () => null
|
|
1774
1962
|
};
|
|
1775
|
-
var SubscriptionContext =
|
|
1963
|
+
var SubscriptionContext = React7.createContext(
|
|
1776
1964
|
InitialSubscriptionContext
|
|
1777
1965
|
);
|
|
1778
1966
|
var SubscriptionProvider = ({
|
|
1779
1967
|
children
|
|
1780
1968
|
}) => {
|
|
1781
|
-
const [subscriptionData, setInternalSubscriptionData] =
|
|
1782
|
-
const [loadingStatus, setLoadingStatus] =
|
|
1969
|
+
const [subscriptionData, setInternalSubscriptionData] = React7.useState(subscriptionDetailInit);
|
|
1970
|
+
const [loadingStatus, setLoadingStatus] = React7.useState(0);
|
|
1783
1971
|
const setSubscriptionData = (data, loadingStatus2) => {
|
|
1784
1972
|
setInternalSubscriptionData(data);
|
|
1785
1973
|
setLoadingStatus(loadingStatus2);
|
|
1786
1974
|
};
|
|
1787
|
-
return /* @__PURE__ */
|
|
1975
|
+
return /* @__PURE__ */ jsx39(
|
|
1788
1976
|
SubscriptionContext.Provider,
|
|
1789
1977
|
{
|
|
1790
1978
|
value: {
|
|
1791
1979
|
subscriptionData,
|
|
1792
1980
|
loadingStatus,
|
|
1793
1981
|
setSubscriptionData
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
|
|
1982
|
+
},
|
|
1983
|
+
children
|
|
1984
|
+
}
|
|
1797
1985
|
);
|
|
1798
1986
|
};
|
|
1799
1987
|
|
|
1800
1988
|
// src/contexts/TreeContext.tsx
|
|
1801
|
-
import * as
|
|
1802
|
-
|
|
1989
|
+
import * as React8 from "react";
|
|
1990
|
+
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
1991
|
+
var TreeContext = React8.createContext(null);
|
|
1803
1992
|
var TreeProvider = ({ children }) => {
|
|
1804
|
-
const [selectedIds, setSelectedIds] =
|
|
1805
|
-
const [expandedIds, setExpandedIds] =
|
|
1993
|
+
const [selectedIds, setSelectedIds] = React8.useState([]);
|
|
1994
|
+
const [expandedIds, setExpandedIds] = React8.useState([0]);
|
|
1806
1995
|
const toggleSelectedId = (id) => {
|
|
1807
1996
|
if (selectedIds.includes(id)) {
|
|
1808
1997
|
const newSelectedIds = selectedIds.filter(
|
|
@@ -1854,7 +2043,7 @@ var TreeProvider = ({ children }) => {
|
|
|
1854
2043
|
console.log("Removed all selected id's");
|
|
1855
2044
|
setSelectedIds([]);
|
|
1856
2045
|
};
|
|
1857
|
-
return /* @__PURE__ */
|
|
2046
|
+
return /* @__PURE__ */ jsx40(
|
|
1858
2047
|
TreeContext.Provider,
|
|
1859
2048
|
{
|
|
1860
2049
|
value: {
|
|
@@ -1865,18 +2054,19 @@ var TreeProvider = ({ children }) => {
|
|
|
1865
2054
|
expandAll,
|
|
1866
2055
|
collapseAll,
|
|
1867
2056
|
resetSelection
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
|
|
2057
|
+
},
|
|
2058
|
+
children
|
|
2059
|
+
}
|
|
1871
2060
|
);
|
|
1872
2061
|
};
|
|
1873
2062
|
|
|
1874
2063
|
// src/components/Subscription/ProductBlock.tsx
|
|
2064
|
+
import { Fragment as Fragment9, jsx as jsx41, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
1875
2065
|
var ProductBlock = (resourceTypes, id) => {
|
|
1876
|
-
const { toggleSelectedId } =
|
|
2066
|
+
const { toggleSelectedId } = React9.useContext(
|
|
1877
2067
|
TreeContext
|
|
1878
2068
|
);
|
|
1879
|
-
const { subscriptionData } =
|
|
2069
|
+
const { subscriptionData } = React9.useContext(SubscriptionContext);
|
|
1880
2070
|
const keys = [];
|
|
1881
2071
|
for (const key in resourceTypes) {
|
|
1882
2072
|
if (typeof resourceTypes[key] !== "object") {
|
|
@@ -1908,91 +2098,107 @@ var ProductBlock = (resourceTypes, id) => {
|
|
|
1908
2098
|
} else
|
|
1909
2099
|
return "";
|
|
1910
2100
|
};
|
|
1911
|
-
return /* @__PURE__ */
|
|
1912
|
-
|
|
1913
|
-
{
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
bgcolor: "#F1F5F9",
|
|
1923
|
-
style: {
|
|
1924
|
-
borderCollapse: "separate",
|
|
1925
|
-
borderRadius: 8
|
|
1926
|
-
}
|
|
1927
|
-
},
|
|
1928
|
-
keys.map(
|
|
1929
|
-
(k, i) => !k.startsWith("ims_ci") ? /* @__PURE__ */ React41.createElement("tr", { key: i }, /* @__PURE__ */ React41.createElement(
|
|
1930
|
-
"td",
|
|
1931
|
-
{
|
|
1932
|
-
valign: "top",
|
|
1933
|
-
style: {
|
|
1934
|
-
width: 250,
|
|
1935
|
-
padding: 10,
|
|
1936
|
-
borderBottom: `solid ${i === keys.length - 1 ? 0 : 1}px #ddd`
|
|
1937
|
-
}
|
|
1938
|
-
},
|
|
1939
|
-
/* @__PURE__ */ React41.createElement("b", null, k)
|
|
1940
|
-
), /* @__PURE__ */ React41.createElement(
|
|
1941
|
-
"td",
|
|
1942
|
-
{
|
|
1943
|
-
style: {
|
|
1944
|
-
padding: 10,
|
|
1945
|
-
borderBottom: `solid ${i === keys.length - 1 ? 0 : 1}px #ddd`
|
|
2101
|
+
return /* @__PURE__ */ jsxs28(Fragment9, { children: [
|
|
2102
|
+
/* @__PURE__ */ jsx41(EuiSpacer13, { size: "m" }),
|
|
2103
|
+
/* @__PURE__ */ jsx41(EuiPanel7, { children: /* @__PURE__ */ jsxs28("div", { style: { marginTop: 5 }, children: [
|
|
2104
|
+
/* @__PURE__ */ jsxs28(EuiFlexGroup9, { justifyContent: "spaceBetween", children: [
|
|
2105
|
+
/* @__PURE__ */ jsx41(EuiFlexItem8, { children: /* @__PURE__ */ jsx41(EuiText9, { grow: false, children: /* @__PURE__ */ jsx41("h3", { children: resourceTypes.title ?? resourceTypes.name }) }) }),
|
|
2106
|
+
/* @__PURE__ */ jsx41(EuiFlexItem8, { grow: false, children: /* @__PURE__ */ jsx41(
|
|
2107
|
+
EuiButtonIcon2,
|
|
2108
|
+
{
|
|
2109
|
+
size: "m",
|
|
2110
|
+
iconType: "cross",
|
|
2111
|
+
onClick: () => toggleSelectedId(id)
|
|
1946
2112
|
}
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2113
|
+
) })
|
|
2114
|
+
] }),
|
|
2115
|
+
/* @__PURE__ */ jsx41(EuiSpacer13, { size: "xs" }),
|
|
2116
|
+
/* @__PURE__ */ jsx41(
|
|
2117
|
+
"table",
|
|
1951
2118
|
{
|
|
1952
|
-
|
|
2119
|
+
width: "100%",
|
|
2120
|
+
bgcolor: "#F1F5F9",
|
|
1953
2121
|
style: {
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
2122
|
+
borderCollapse: "separate",
|
|
2123
|
+
borderRadius: 8
|
|
2124
|
+
},
|
|
2125
|
+
children: keys.map(
|
|
2126
|
+
(k, i) => !k.startsWith("ims_ci") ? /* @__PURE__ */ jsxs28("tr", { children: [
|
|
2127
|
+
/* @__PURE__ */ jsx41(
|
|
2128
|
+
"td",
|
|
2129
|
+
{
|
|
2130
|
+
valign: "top",
|
|
2131
|
+
style: {
|
|
2132
|
+
width: 250,
|
|
2133
|
+
padding: 10,
|
|
2134
|
+
borderBottom: `solid ${i === keys.length - 1 ? 0 : 1}px #ddd`
|
|
2135
|
+
},
|
|
2136
|
+
children: /* @__PURE__ */ jsx41("b", { children: k })
|
|
2137
|
+
}
|
|
2138
|
+
),
|
|
2139
|
+
/* @__PURE__ */ jsx41(
|
|
2140
|
+
"td",
|
|
2141
|
+
{
|
|
2142
|
+
style: {
|
|
2143
|
+
padding: 10,
|
|
2144
|
+
borderBottom: `solid ${i === keys.length - 1 ? 0 : 1}px #ddd`
|
|
2145
|
+
},
|
|
2146
|
+
children: resourceTypes[k]
|
|
2147
|
+
}
|
|
2148
|
+
)
|
|
2149
|
+
] }, i) : /* @__PURE__ */ jsx41("tr", { children: /* @__PURE__ */ jsx41(
|
|
1964
2150
|
"td",
|
|
1965
2151
|
{
|
|
1966
|
-
|
|
2152
|
+
colSpan: 3,
|
|
1967
2153
|
style: {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2154
|
+
padding: 10,
|
|
2155
|
+
borderBottom: `solid ${i === keys.length - 1 ? 0 : 1}px #ddd`
|
|
2156
|
+
},
|
|
2157
|
+
children: /* @__PURE__ */ jsx41(
|
|
2158
|
+
EuiAccordion,
|
|
2159
|
+
{
|
|
2160
|
+
id: k,
|
|
2161
|
+
arrowDisplay: "left",
|
|
2162
|
+
buttonContent: /* @__PURE__ */ jsxs28("div", { children: [
|
|
2163
|
+
/* @__PURE__ */ jsx41(
|
|
2164
|
+
"td",
|
|
2165
|
+
{
|
|
2166
|
+
valign: "top",
|
|
2167
|
+
style: {
|
|
2168
|
+
width: 222
|
|
2169
|
+
},
|
|
2170
|
+
children: /* @__PURE__ */ jsx41("b", { children: k })
|
|
2171
|
+
}
|
|
2172
|
+
),
|
|
2173
|
+
/* @__PURE__ */ jsx41("td", { children: resourceTypes[k] })
|
|
2174
|
+
] }),
|
|
2175
|
+
children: /* @__PURE__ */ jsx41(EuiPanel7, { color: "subdued", children: /* @__PURE__ */ jsx41(
|
|
2176
|
+
EuiCodeBlock,
|
|
2177
|
+
{
|
|
2178
|
+
language: "json",
|
|
2179
|
+
fontSize: "m",
|
|
2180
|
+
lineNumbers: true,
|
|
2181
|
+
isCopyable: true,
|
|
2182
|
+
children: getExternalData(
|
|
2183
|
+
resourceTypes[k],
|
|
2184
|
+
"ims"
|
|
2185
|
+
// Todo #102: Federative GraphQL
|
|
2186
|
+
)
|
|
2187
|
+
}
|
|
2188
|
+
) })
|
|
2189
|
+
}
|
|
2190
|
+
)
|
|
2191
|
+
}
|
|
2192
|
+
) }, i)
|
|
2193
|
+
)
|
|
2194
|
+
}
|
|
2195
|
+
)
|
|
2196
|
+
] }) })
|
|
2197
|
+
] });
|
|
1992
2198
|
};
|
|
1993
2199
|
|
|
1994
2200
|
// src/components/Subscription/SubscriptionActions.tsx
|
|
1995
|
-
import
|
|
2201
|
+
import { useState as useState9 } from "react";
|
|
1996
2202
|
import {
|
|
1997
2203
|
EuiButton as EuiButton7,
|
|
1998
2204
|
EuiContextMenuItem,
|
|
@@ -2002,8 +2208,9 @@ import {
|
|
|
2002
2208
|
EuiTitle,
|
|
2003
2209
|
EuiPopover
|
|
2004
2210
|
} from "@elastic/eui";
|
|
2005
|
-
|
|
2006
|
-
var
|
|
2211
|
+
import { Fragment as Fragment10, jsx as jsx42, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
2212
|
+
var MenuItem = ({ icon, description, key }) => /* @__PURE__ */ jsx42(EuiContextMenuItem, { icon: /* @__PURE__ */ jsx42(EuiAvatar3, { name: icon, size: "s" }), children: description }, key);
|
|
2213
|
+
var MenuBlock = ({ title }) => /* @__PURE__ */ jsx42(EuiTitle, { size: "xxxs", children: /* @__PURE__ */ jsx42("h3", { children: title }) });
|
|
2007
2214
|
var SubscriptionActions = ({
|
|
2008
2215
|
subscriptionId
|
|
2009
2216
|
}) => {
|
|
@@ -2015,16 +2222,16 @@ var SubscriptionActions = ({
|
|
|
2015
2222
|
const closePopover = () => {
|
|
2016
2223
|
setPopover(false);
|
|
2017
2224
|
};
|
|
2018
|
-
const button = /* @__PURE__ */
|
|
2225
|
+
const button = /* @__PURE__ */ jsx42(
|
|
2019
2226
|
EuiButton7,
|
|
2020
2227
|
{
|
|
2021
2228
|
iconType: "arrowDown",
|
|
2022
2229
|
iconSide: "right",
|
|
2023
|
-
onClick: onButtonClick
|
|
2024
|
-
|
|
2025
|
-
|
|
2230
|
+
onClick: onButtonClick,
|
|
2231
|
+
children: "Actions"
|
|
2232
|
+
}
|
|
2026
2233
|
);
|
|
2027
|
-
return /* @__PURE__ */
|
|
2234
|
+
return /* @__PURE__ */ jsx42(
|
|
2028
2235
|
EuiPopover,
|
|
2029
2236
|
{
|
|
2030
2237
|
id: "subscriptionActionPopover",
|
|
@@ -2032,57 +2239,71 @@ var SubscriptionActions = ({
|
|
|
2032
2239
|
isOpen: isPopoverOpen,
|
|
2033
2240
|
closePopover,
|
|
2034
2241
|
panelPaddingSize: "none",
|
|
2035
|
-
anchorPosition: "downLeft"
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2242
|
+
anchorPosition: "downLeft",
|
|
2243
|
+
children: /* @__PURE__ */ jsx42(EuiContextMenuPanel, { children: /* @__PURE__ */ jsxs29(EuiPanel8, { color: "transparent", paddingSize: "s", children: [
|
|
2244
|
+
subscriptionActions && subscriptionActions.create && /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
|
2245
|
+
/* @__PURE__ */ jsx42(MenuBlock, { title: "Create workflow" }),
|
|
2246
|
+
subscriptionActions.create.map((item, index) => /* @__PURE__ */ jsx42(
|
|
2247
|
+
MenuItem,
|
|
2248
|
+
{
|
|
2249
|
+
icon: "CreateLong",
|
|
2250
|
+
description: item.description,
|
|
2251
|
+
index
|
|
2252
|
+
},
|
|
2253
|
+
`c_${index}`
|
|
2254
|
+
))
|
|
2255
|
+
] }),
|
|
2256
|
+
subscriptionActions && subscriptionActions.modify && /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
|
2257
|
+
/* @__PURE__ */ jsx42(MenuBlock, { title: "Modify workflow" }),
|
|
2258
|
+
subscriptionActions.modify.map((item, index) => /* @__PURE__ */ jsx42(
|
|
2259
|
+
MenuItem,
|
|
2260
|
+
{
|
|
2261
|
+
icon: "M",
|
|
2262
|
+
description: item.description,
|
|
2263
|
+
index
|
|
2264
|
+
},
|
|
2265
|
+
`m_${index}`
|
|
2266
|
+
))
|
|
2267
|
+
] }),
|
|
2268
|
+
subscriptionActions && subscriptionActions.system && /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
|
2269
|
+
/* @__PURE__ */ jsx42(MenuBlock, { title: "System workflow" }),
|
|
2270
|
+
subscriptionActions.system.map((item, index) => /* @__PURE__ */ jsx42(
|
|
2271
|
+
MenuItem,
|
|
2272
|
+
{
|
|
2273
|
+
icon: "Syste",
|
|
2274
|
+
description: item.description,
|
|
2275
|
+
index
|
|
2276
|
+
},
|
|
2277
|
+
`s_${index}`
|
|
2278
|
+
))
|
|
2279
|
+
] }),
|
|
2280
|
+
subscriptionActions && subscriptionActions.terminate && /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
|
2281
|
+
/* @__PURE__ */ jsx42(MenuBlock, { title: "Terminate workflow" }),
|
|
2282
|
+
subscriptionActions.terminate.map(
|
|
2283
|
+
(item, index) => /* @__PURE__ */ jsx42(
|
|
2284
|
+
MenuItem,
|
|
2285
|
+
{
|
|
2286
|
+
icon: "Terminate",
|
|
2287
|
+
description: item.description,
|
|
2288
|
+
index
|
|
2289
|
+
},
|
|
2290
|
+
`t_${index}`
|
|
2291
|
+
)
|
|
2292
|
+
)
|
|
2293
|
+
] })
|
|
2294
|
+
] }) })
|
|
2295
|
+
}
|
|
2072
2296
|
);
|
|
2073
2297
|
};
|
|
2074
2298
|
|
|
2075
2299
|
// src/components/Subscription/SubscriptionDetailTree.tsx
|
|
2076
|
-
import
|
|
2077
|
-
|
|
2078
|
-
// src/components/Tree/Tree.tsx
|
|
2079
|
-
import React45 from "react";
|
|
2300
|
+
import React13, { useState as useState10 } from "react";
|
|
2080
2301
|
|
|
2081
2302
|
// src/components/Tree/TreeBranch.tsx
|
|
2082
|
-
import
|
|
2303
|
+
import React12 from "react";
|
|
2083
2304
|
|
|
2084
2305
|
// src/components/Tree/TreeNode.tsx
|
|
2085
|
-
import
|
|
2306
|
+
import React11 from "react";
|
|
2086
2307
|
import {
|
|
2087
2308
|
EuiFlexGroup as EuiFlexGroup10,
|
|
2088
2309
|
EuiFlexItem as EuiFlexItem9,
|
|
@@ -2090,71 +2311,80 @@ import {
|
|
|
2090
2311
|
EuiIcon as EuiIcon2,
|
|
2091
2312
|
EuiListGroupItem
|
|
2092
2313
|
} from "@elastic/eui";
|
|
2314
|
+
import { jsx as jsx43, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
2093
2315
|
var TreeNode = ({ item, hasChildren, level }) => {
|
|
2094
|
-
const { expandedIds, toggleExpandedId, selectedIds, toggleSelectedId } =
|
|
2316
|
+
const { expandedIds, toggleExpandedId, selectedIds, toggleSelectedId } = React11.useContext(TreeContext);
|
|
2095
2317
|
const expanded = expandedIds.includes(item.id);
|
|
2096
2318
|
const selected = selectedIds.includes(item.id);
|
|
2097
2319
|
let expandIcon = expanded ? "arrowDown" : "arrowRight";
|
|
2098
2320
|
if (item.id === 0) {
|
|
2099
2321
|
expandIcon = expanded ? "folderOpen" : "folderClosed";
|
|
2100
2322
|
}
|
|
2101
|
-
return /* @__PURE__ */
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
grow: false,
|
|
2105
|
-
style: { width: 0, marginTop: 8, marginRight: -8 }
|
|
2106
|
-
},
|
|
2107
|
-
hasChildren ? /* @__PURE__ */ React43.createElement(
|
|
2108
|
-
EuiIcon2,
|
|
2323
|
+
return /* @__PURE__ */ jsx43("div", { style: { paddingLeft: `${level * 16}px` }, children: /* @__PURE__ */ jsxs30(EuiFlexGroup10, { children: [
|
|
2324
|
+
/* @__PURE__ */ jsx43(
|
|
2325
|
+
EuiFlexItem9,
|
|
2109
2326
|
{
|
|
2110
|
-
|
|
2111
|
-
|
|
2327
|
+
grow: false,
|
|
2328
|
+
style: { width: 0, marginTop: 8, marginRight: -8 },
|
|
2329
|
+
children: hasChildren ? /* @__PURE__ */ jsx43(
|
|
2330
|
+
EuiIcon2,
|
|
2331
|
+
{
|
|
2332
|
+
type: expandIcon,
|
|
2333
|
+
onClick: () => toggleExpandedId(item.id)
|
|
2334
|
+
}
|
|
2335
|
+
) : /* @__PURE__ */ jsx43(EuiToken, { iconType: item.icon })
|
|
2112
2336
|
}
|
|
2113
|
-
)
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
color: "primary",
|
|
2121
|
-
extraAction: {
|
|
2337
|
+
),
|
|
2338
|
+
/* @__PURE__ */ jsx43(EuiFlexItem9, { grow: true, children: selected ? /* @__PURE__ */ jsx43(
|
|
2339
|
+
EuiListGroupItem,
|
|
2340
|
+
{
|
|
2341
|
+
onClick: () => toggleSelectedId(item.id),
|
|
2342
|
+
label: item.label,
|
|
2343
|
+
isActive: selected,
|
|
2122
2344
|
color: "primary",
|
|
2345
|
+
extraAction: {
|
|
2346
|
+
color: "primary",
|
|
2347
|
+
onClick: () => toggleSelectedId(item.id),
|
|
2348
|
+
iconType: "error",
|
|
2349
|
+
iconSize: "s",
|
|
2350
|
+
"aria-label": "Deselect",
|
|
2351
|
+
alwaysShow: true
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
) : /* @__PURE__ */ jsx43(
|
|
2355
|
+
EuiListGroupItem,
|
|
2356
|
+
{
|
|
2123
2357
|
onClick: () => toggleSelectedId(item.id),
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
"aria-label": "Deselect",
|
|
2127
|
-
alwaysShow: true
|
|
2358
|
+
label: item.label,
|
|
2359
|
+
isActive: selected
|
|
2128
2360
|
}
|
|
2129
|
-
}
|
|
2130
|
-
)
|
|
2131
|
-
EuiListGroupItem,
|
|
2132
|
-
{
|
|
2133
|
-
onClick: () => toggleSelectedId(item.id),
|
|
2134
|
-
label: item.label,
|
|
2135
|
-
isActive: selected
|
|
2136
|
-
}
|
|
2137
|
-
))));
|
|
2361
|
+
) })
|
|
2362
|
+
] }) });
|
|
2138
2363
|
};
|
|
2139
2364
|
|
|
2140
2365
|
// src/components/Tree/TreeBranch.tsx
|
|
2141
2366
|
import { EuiListGroup } from "@elastic/eui";
|
|
2367
|
+
import { Fragment as Fragment11, jsx as jsx44, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
2142
2368
|
var TreeBranch = ({ item, level }) => {
|
|
2143
|
-
const { expandedIds } =
|
|
2369
|
+
const { expandedIds } = React12.useContext(TreeContext);
|
|
2144
2370
|
const selected = expandedIds.includes(item.id);
|
|
2145
2371
|
const hasChildren = item.children && item.children.length !== 0;
|
|
2146
2372
|
const renderBranches = () => {
|
|
2147
2373
|
if (hasChildren) {
|
|
2148
2374
|
const newLevel = level + 1;
|
|
2149
|
-
return item.children.map((child) => /* @__PURE__ */
|
|
2375
|
+
return item.children.map((child) => /* @__PURE__ */ jsx44(TreeBranch, { item: child, level: newLevel }, child.id));
|
|
2150
2376
|
}
|
|
2151
2377
|
return null;
|
|
2152
2378
|
};
|
|
2153
|
-
return /* @__PURE__ */
|
|
2379
|
+
return /* @__PURE__ */ jsxs31(Fragment11, { children: [
|
|
2380
|
+
/* @__PURE__ */ jsx44(EuiListGroup, { flush: true, color: "primary", maxWidth: 455, children: /* @__PURE__ */ jsx44(TreeNode, { item, hasChildren, level }) }),
|
|
2381
|
+
selected && renderBranches()
|
|
2382
|
+
] });
|
|
2154
2383
|
};
|
|
2155
2384
|
|
|
2156
2385
|
// src/components/Tree/Tree.tsx
|
|
2157
|
-
|
|
2386
|
+
import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
|
|
2387
|
+
var Tree = ({ data }) => /* @__PURE__ */ jsx45("div", { style: { width: "500px" }, children: data.map((item) => /* @__PURE__ */ jsx45(TreeBranch, { item, level: 0 }, item.id)) });
|
|
2158
2388
|
|
|
2159
2389
|
// src/components/Subscription/SubscriptionDetailTree.tsx
|
|
2160
2390
|
import {
|
|
@@ -2181,6 +2411,7 @@ function getTokenName(name) {
|
|
|
2181
2411
|
}
|
|
2182
2412
|
|
|
2183
2413
|
// src/components/Subscription/SubscriptionDetailTree.tsx
|
|
2414
|
+
import { jsx as jsx46, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
2184
2415
|
var MAX_LABEL_LENGTH = 45;
|
|
2185
2416
|
var MAX_EXPAND_ALL = 100;
|
|
2186
2417
|
function getProductBlockTitle(resourceType) {
|
|
@@ -2192,10 +2423,10 @@ function getProductBlockTitle(resourceType) {
|
|
|
2192
2423
|
var SubscriptionDetailTree = () => {
|
|
2193
2424
|
const [expandAllActive, setExpandAllActive] = useState10(false);
|
|
2194
2425
|
const [selectedTreeNode, setSelectedTreeNode] = useState10(-1);
|
|
2195
|
-
const { subscriptionData, loadingStatus } =
|
|
2426
|
+
const { subscriptionData, loadingStatus } = React13.useContext(
|
|
2196
2427
|
SubscriptionContext
|
|
2197
2428
|
);
|
|
2198
|
-
const { selectedIds, collapseAll, expandAll, resetSelection } =
|
|
2429
|
+
const { selectedIds, collapseAll, expandAll, resetSelection } = React13.useContext(TreeContext);
|
|
2199
2430
|
const toggleExpandAll = () => {
|
|
2200
2431
|
if (expandAllActive) {
|
|
2201
2432
|
collapseAll();
|
|
@@ -2234,63 +2465,88 @@ var SubscriptionDetailTree = () => {
|
|
|
2234
2465
|
}
|
|
2235
2466
|
if (!tree)
|
|
2236
2467
|
return null;
|
|
2237
|
-
return /* @__PURE__ */
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
},
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2468
|
+
return /* @__PURE__ */ jsxs32(EuiFlexGroup11, { style: { marginTop: 15 }, children: [
|
|
2469
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { style: { maxWidth: 450, width: 450 }, children: /* @__PURE__ */ jsxs32(EuiFlexGroup11, { direction: "column", children: [
|
|
2470
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { grow: false, children: /* @__PURE__ */ jsxs32(EuiFlexGroup11, { children: [
|
|
2471
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { grow: false, children: /* @__PURE__ */ jsx46(EuiText10, { children: /* @__PURE__ */ jsx46("h3", { children: "Product blocks" }) }) }),
|
|
2472
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { grow: false, children: /* @__PURE__ */ jsx46(
|
|
2473
|
+
EuiButtonIcon3,
|
|
2474
|
+
{
|
|
2475
|
+
iconType: expandAllActive ? "minimize" : "expand",
|
|
2476
|
+
onClick: toggleExpandAll
|
|
2477
|
+
}
|
|
2478
|
+
) }),
|
|
2479
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { grow: true, children: selectedIds.length > 0 && /* @__PURE__ */ jsx46(
|
|
2480
|
+
EuiButtonIcon3,
|
|
2481
|
+
{
|
|
2482
|
+
iconType: "error",
|
|
2483
|
+
onClick: resetSelection
|
|
2484
|
+
}
|
|
2485
|
+
) })
|
|
2486
|
+
] }) }),
|
|
2487
|
+
/* @__PURE__ */ jsxs32(EuiFlexItem10, { grow: true, children: [
|
|
2488
|
+
!tree && /* @__PURE__ */ jsx46(EuiLoadingContent2, {}),
|
|
2489
|
+
tree && /* @__PURE__ */ jsx46(Tree, { data: [tree] })
|
|
2490
|
+
] })
|
|
2491
|
+
] }) }),
|
|
2492
|
+
/* @__PURE__ */ jsx46(EuiFlexItem10, { grow: true, children: /* @__PURE__ */ jsxs32("div", { children: [
|
|
2493
|
+
/* @__PURE__ */ jsx46(EuiSearchBar2, {}),
|
|
2494
|
+
selectedIds.length === 0 && /* @__PURE__ */ jsx46(
|
|
2495
|
+
EuiCallOut,
|
|
2496
|
+
{
|
|
2497
|
+
style: {
|
|
2498
|
+
marginTop: 15,
|
|
2499
|
+
minHeight: 600
|
|
2500
|
+
},
|
|
2501
|
+
size: "m",
|
|
2502
|
+
title: "No product block selected",
|
|
2503
|
+
iconType: "inspect",
|
|
2504
|
+
children: /* @__PURE__ */ jsx46("p", { children: "Select one or more product blocks to view their details" })
|
|
2505
|
+
}
|
|
2506
|
+
),
|
|
2507
|
+
selectedIds.length !== 0 && selectedIds.reverse().map(
|
|
2508
|
+
(id, index) => ProductBlock(
|
|
2509
|
+
subscriptionData.productBlocks[selectedIds[index]].resourceTypes,
|
|
2510
|
+
id
|
|
2511
|
+
)
|
|
2512
|
+
)
|
|
2513
|
+
] }) })
|
|
2514
|
+
] });
|
|
2267
2515
|
};
|
|
2268
2516
|
|
|
2269
2517
|
// src/components/Subscription/SubscriptionGeneral.tsx
|
|
2270
|
-
import
|
|
2518
|
+
import React14 from "react";
|
|
2271
2519
|
import {
|
|
2272
2520
|
EuiFlexGrid,
|
|
2273
2521
|
EuiFlexItem as EuiFlexItem11,
|
|
2274
2522
|
EuiLoadingContent as EuiLoadingContent3,
|
|
2275
2523
|
EuiSpacer as EuiSpacer14
|
|
2276
2524
|
} from "@elastic/eui";
|
|
2525
|
+
import { Fragment as Fragment12, jsx as jsx47, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
2277
2526
|
var SubscriptionGeneral = () => {
|
|
2278
|
-
const { subscriptionData, loadingStatus } =
|
|
2527
|
+
const { subscriptionData, loadingStatus } = React14.useContext(SubscriptionContext);
|
|
2279
2528
|
if (!loadingStatus) {
|
|
2280
|
-
return /* @__PURE__ */
|
|
2529
|
+
return /* @__PURE__ */ jsxs33(Fragment12, { children: [
|
|
2530
|
+
/* @__PURE__ */ jsx47(EuiSpacer14, { size: "m" }),
|
|
2531
|
+
/* @__PURE__ */ jsx47(EuiLoadingContent3, {})
|
|
2532
|
+
] });
|
|
2281
2533
|
}
|
|
2282
|
-
return /* @__PURE__ */
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2534
|
+
return /* @__PURE__ */ jsx47(EuiFlexGrid, { direction: "row", children: /* @__PURE__ */ jsxs33(Fragment12, { children: [
|
|
2535
|
+
/* @__PURE__ */ jsx47(EuiFlexItem11, { children: SubscriptionBlock(
|
|
2536
|
+
"Subscription details",
|
|
2537
|
+
subscriptionData
|
|
2538
|
+
) }),
|
|
2539
|
+
/* @__PURE__ */ jsx47(EuiFlexItem11, { children: FixedInputBlock(
|
|
2540
|
+
"Fixed inputs",
|
|
2541
|
+
subscriptionData.fixedInputs
|
|
2542
|
+
) }),
|
|
2543
|
+
/* @__PURE__ */ jsx47(EuiFlexItem11, { children: FixedInputBlock("Product info", subscriptionData.product) })
|
|
2544
|
+
] }) });
|
|
2289
2545
|
};
|
|
2290
2546
|
|
|
2291
2547
|
// src/components/SubscriptionsTabs/SubscriptionsTabs.tsx
|
|
2292
2548
|
import { EuiTab, EuiTabs } from "@elastic/eui";
|
|
2293
|
-
import
|
|
2549
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
2294
2550
|
var SubscriptionsTabType = /* @__PURE__ */ ((SubscriptionsTabType2) => {
|
|
2295
2551
|
SubscriptionsTabType2["ACTIVE"] = "ACTIVE";
|
|
2296
2552
|
SubscriptionsTabType2["TERMINATED"] = "TERMINATED";
|
|
@@ -2338,15 +2594,15 @@ var SubscriptionsTabs = ({
|
|
|
2338
2594
|
tabs,
|
|
2339
2595
|
selectedSubscriptionsTab,
|
|
2340
2596
|
onChangeSubscriptionsTab
|
|
2341
|
-
}) => /* @__PURE__ */
|
|
2597
|
+
}) => /* @__PURE__ */ jsx48(EuiTabs, { children: tabs.map(({ id, name }) => /* @__PURE__ */ jsx48(
|
|
2342
2598
|
EuiTab,
|
|
2343
2599
|
{
|
|
2344
|
-
key: id,
|
|
2345
2600
|
isSelected: id === selectedSubscriptionsTab,
|
|
2346
|
-
onClick: () => id !== selectedSubscriptionsTab && onChangeSubscriptionsTab(id)
|
|
2601
|
+
onClick: () => id !== selectedSubscriptionsTab && onChangeSubscriptionsTab(id),
|
|
2602
|
+
children: name
|
|
2347
2603
|
},
|
|
2348
|
-
|
|
2349
|
-
)));
|
|
2604
|
+
id
|
|
2605
|
+
)) });
|
|
2350
2606
|
|
|
2351
2607
|
// src/components/SubscriptionsTabs/getSubscriptionsTabTypeFromString.ts
|
|
2352
2608
|
var getSubscriptionsTabTypeFromString = (tabId) => {
|
|
@@ -2368,7 +2624,6 @@ var getSubscriptionsTabTypeFromString = (tabId) => {
|
|
|
2368
2624
|
};
|
|
2369
2625
|
|
|
2370
2626
|
// src/components/Table/DataGridTable/DataGridTable.tsx
|
|
2371
|
-
import React49 from "react";
|
|
2372
2627
|
import {
|
|
2373
2628
|
EuiDataGrid
|
|
2374
2629
|
} from "@elastic/eui";
|
|
@@ -2422,6 +2677,7 @@ var mapColumnSortToEuiDataGridSorting = (columnSort, updateColumnSort) => {
|
|
|
2422
2677
|
};
|
|
2423
2678
|
|
|
2424
2679
|
// src/components/Table/DataGridTable/DataGridTable.tsx
|
|
2680
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
2425
2681
|
var EUI_DATA_GRID_HEIGHT_OFFSET = 103;
|
|
2426
2682
|
var EUI_DATA_GRID_ROW_HEIGHT = 40;
|
|
2427
2683
|
var GRID_STYLE = {
|
|
@@ -2488,7 +2744,7 @@ var DataGridTable = ({
|
|
|
2488
2744
|
mapControlColumnToEuiDataGridControlColumn
|
|
2489
2745
|
);
|
|
2490
2746
|
const gridHeightValue = pagination.pageSize * EUI_DATA_GRID_ROW_HEIGHT + EUI_DATA_GRID_HEIGHT_OFFSET;
|
|
2491
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsx49(
|
|
2492
2748
|
EuiDataGrid,
|
|
2493
2749
|
{
|
|
2494
2750
|
"aria-label": "Data Grid",
|
|
@@ -2510,7 +2766,7 @@ var DataGridTable = ({
|
|
|
2510
2766
|
};
|
|
2511
2767
|
|
|
2512
2768
|
// src/components/Table/TableSettingsModal/TableSettingsModal.tsx
|
|
2513
|
-
import
|
|
2769
|
+
import { useState as useState12 } from "react";
|
|
2514
2770
|
import {
|
|
2515
2771
|
EuiForm,
|
|
2516
2772
|
EuiFormRow as EuiFormRow2,
|
|
@@ -2519,6 +2775,7 @@ import {
|
|
|
2519
2775
|
EuiSpacer as EuiSpacer15,
|
|
2520
2776
|
EuiSwitch
|
|
2521
2777
|
} from "@elastic/eui";
|
|
2778
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
2522
2779
|
var TableSettingsModal = ({
|
|
2523
2780
|
tableConfig,
|
|
2524
2781
|
pageSizeOptions,
|
|
@@ -2543,7 +2800,7 @@ var TableSettingsModal = ({
|
|
|
2543
2800
|
);
|
|
2544
2801
|
setColumns(updatedColumns);
|
|
2545
2802
|
};
|
|
2546
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ jsx50(
|
|
2547
2804
|
SettingsModal,
|
|
2548
2805
|
{
|
|
2549
2806
|
title: "Table settings",
|
|
@@ -2552,46 +2809,53 @@ var TableSettingsModal = ({
|
|
|
2552
2809
|
onUpdateTableConfig: () => onUpdateTableConfig({
|
|
2553
2810
|
columns,
|
|
2554
2811
|
selectedPageSize
|
|
2555
|
-
})
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2812
|
+
}),
|
|
2813
|
+
children: /* @__PURE__ */ jsxs34(EuiForm, { children: [
|
|
2814
|
+
columns.map(({ field, name, isVisible }) => /* @__PURE__ */ jsxs34("div", { children: [
|
|
2815
|
+
/* @__PURE__ */ jsx50(
|
|
2816
|
+
EuiFormRow2,
|
|
2817
|
+
{
|
|
2818
|
+
display: "columnCompressedSwitch",
|
|
2819
|
+
label: name,
|
|
2820
|
+
css: {
|
|
2821
|
+
justifyContent: "space-between"
|
|
2822
|
+
},
|
|
2823
|
+
children: /* @__PURE__ */ jsx50(
|
|
2824
|
+
EuiSwitch,
|
|
2825
|
+
{
|
|
2826
|
+
showLabel: false,
|
|
2827
|
+
label: name,
|
|
2828
|
+
checked: isVisible,
|
|
2829
|
+
onChange: () => {
|
|
2830
|
+
handleUpdateColumnVisibility(field);
|
|
2831
|
+
},
|
|
2832
|
+
compressed: true
|
|
2833
|
+
}
|
|
2834
|
+
)
|
|
2835
|
+
}
|
|
2836
|
+
),
|
|
2837
|
+
/* @__PURE__ */ jsx50(EuiHorizontalRule3, { margin: "xs" })
|
|
2838
|
+
] }, field.toString())),
|
|
2839
|
+
/* @__PURE__ */ jsx50(EuiSpacer15, { size: "xs" }),
|
|
2840
|
+
/* @__PURE__ */ jsx50(
|
|
2841
|
+
EuiFormRow2,
|
|
2842
|
+
{
|
|
2843
|
+
hasEmptyLabelSpace: true,
|
|
2844
|
+
label: "Number of Rows",
|
|
2845
|
+
display: "columnCompressed",
|
|
2846
|
+
children: /* @__PURE__ */ jsx50(
|
|
2847
|
+
EuiSelect,
|
|
2848
|
+
{
|
|
2849
|
+
compressed: true,
|
|
2850
|
+
onChange: (event) => setSelectedPageSize(parseInt(event.target.value)),
|
|
2851
|
+
value: selectedPageSize,
|
|
2852
|
+
options
|
|
2853
|
+
}
|
|
2854
|
+
)
|
|
2855
|
+
}
|
|
2856
|
+
)
|
|
2857
|
+
] })
|
|
2858
|
+
}
|
|
2595
2859
|
);
|
|
2596
2860
|
};
|
|
2597
2861
|
|
|
@@ -2673,26 +2937,22 @@ var getEsQueryStringHandler = (setDataDisplayParam) => (esQueryString) => {
|
|
|
2673
2937
|
};
|
|
2674
2938
|
|
|
2675
2939
|
// src/components/Table/Table.tsx
|
|
2676
|
-
import React53 from "react";
|
|
2677
2940
|
import { EuiBasicTable } from "@elastic/eui";
|
|
2678
2941
|
|
|
2679
|
-
// src/components/Table/TableHeaderCell.tsx
|
|
2680
|
-
import React52 from "react";
|
|
2681
|
-
|
|
2682
2942
|
// src/components/Table/SortDirectionIcon.tsx
|
|
2683
|
-
import
|
|
2943
|
+
import { jsx as jsx51 } from "@emotion/react/jsx-runtime";
|
|
2684
2944
|
var SortDirectionIcon = ({
|
|
2685
2945
|
sortDirection
|
|
2686
2946
|
}) => {
|
|
2687
2947
|
const { theme } = useOrchestratorTheme();
|
|
2688
|
-
return sortDirection === "ASC" /* ASC */ ? /* @__PURE__ */
|
|
2948
|
+
return sortDirection === "ASC" /* ASC */ ? /* @__PURE__ */ jsx51(
|
|
2689
2949
|
ArrowNarrowUp,
|
|
2690
2950
|
{
|
|
2691
2951
|
color: theme.colors.subduedText,
|
|
2692
2952
|
height: 24,
|
|
2693
2953
|
width: 24
|
|
2694
2954
|
}
|
|
2695
|
-
) : /* @__PURE__ */
|
|
2955
|
+
) : /* @__PURE__ */ jsx51(
|
|
2696
2956
|
ArrowNarrowDown,
|
|
2697
2957
|
{
|
|
2698
2958
|
color: theme.colors.subduedText,
|
|
@@ -2703,11 +2963,12 @@ var SortDirectionIcon = ({
|
|
|
2703
2963
|
};
|
|
2704
2964
|
|
|
2705
2965
|
// src/components/Table/TableHeaderCell.tsx
|
|
2966
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
2706
2967
|
var TableHeaderCell = ({
|
|
2707
2968
|
sortDirection,
|
|
2708
2969
|
children,
|
|
2709
2970
|
onClick
|
|
2710
|
-
}) => /* @__PURE__ */
|
|
2971
|
+
}) => /* @__PURE__ */ jsxs35(
|
|
2711
2972
|
"div",
|
|
2712
2973
|
{
|
|
2713
2974
|
css: {
|
|
@@ -2715,13 +2976,16 @@ var TableHeaderCell = ({
|
|
|
2715
2976
|
alignItems: "center",
|
|
2716
2977
|
cursor: "pointer"
|
|
2717
2978
|
},
|
|
2718
|
-
onClick
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2979
|
+
onClick,
|
|
2980
|
+
children: [
|
|
2981
|
+
/* @__PURE__ */ jsx52("div", { children }),
|
|
2982
|
+
sortDirection ? /* @__PURE__ */ jsx52(SortDirectionIcon, { sortDirection }) : null
|
|
2983
|
+
]
|
|
2984
|
+
}
|
|
2722
2985
|
);
|
|
2723
2986
|
|
|
2724
2987
|
// src/components/Table/Table.tsx
|
|
2988
|
+
import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
|
|
2725
2989
|
var Table = ({
|
|
2726
2990
|
data,
|
|
2727
2991
|
columns,
|
|
@@ -2731,7 +2995,7 @@ var Table = ({
|
|
|
2731
2995
|
isLoading,
|
|
2732
2996
|
onCriteriaChange,
|
|
2733
2997
|
onDataSort
|
|
2734
|
-
}) => /* @__PURE__ */
|
|
2998
|
+
}) => /* @__PURE__ */ jsx53(
|
|
2735
2999
|
EuiBasicTable,
|
|
2736
3000
|
{
|
|
2737
3001
|
items: data,
|
|
@@ -2759,13 +3023,13 @@ function mapTableColumnsToEuiColumns(columns, hiddenColumns, dataSorting, onData
|
|
|
2759
3023
|
return {
|
|
2760
3024
|
...column,
|
|
2761
3025
|
field: typedColumnKey,
|
|
2762
|
-
name: name && /* @__PURE__ */
|
|
3026
|
+
name: name && /* @__PURE__ */ jsx53(
|
|
2763
3027
|
TableHeaderCell,
|
|
2764
3028
|
{
|
|
2765
3029
|
sortDirection,
|
|
2766
|
-
onClick: handleClick
|
|
2767
|
-
|
|
2768
|
-
|
|
3030
|
+
onClick: handleClick,
|
|
3031
|
+
children: name
|
|
3032
|
+
}
|
|
2769
3033
|
),
|
|
2770
3034
|
truncateText: true,
|
|
2771
3035
|
textOnly: true
|
|
@@ -2775,13 +3039,14 @@ function mapTableColumnsToEuiColumns(columns, hiddenColumns, dataSorting, onData
|
|
|
2775
3039
|
}
|
|
2776
3040
|
|
|
2777
3041
|
// src/components/Table/TableWithFilter/TableWithFilter.tsx
|
|
2778
|
-
import
|
|
3042
|
+
import { useState as useState13 } from "react";
|
|
2779
3043
|
import {
|
|
2780
3044
|
EuiButton as EuiButton8,
|
|
2781
3045
|
EuiFlexGroup as EuiFlexGroup12,
|
|
2782
3046
|
EuiFlexItem as EuiFlexItem12,
|
|
2783
3047
|
EuiSpacer as EuiSpacer16
|
|
2784
3048
|
} from "@elastic/eui";
|
|
3049
|
+
import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
2785
3050
|
var TableWithFilter = ({
|
|
2786
3051
|
data,
|
|
2787
3052
|
tableColumns,
|
|
@@ -2842,42 +3107,50 @@ var TableWithFilter = ({
|
|
|
2842
3107
|
onUpdatePage(criterion.page);
|
|
2843
3108
|
}
|
|
2844
3109
|
};
|
|
2845
|
-
return /* @__PURE__ */
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
3110
|
+
return /* @__PURE__ */ jsxs36(Fragment13, { children: [
|
|
3111
|
+
/* @__PURE__ */ jsxs36(EuiFlexGroup12, { children: [
|
|
3112
|
+
/* @__PURE__ */ jsx54(EuiFlexItem12, { children: /* @__PURE__ */ jsx54(
|
|
3113
|
+
SearchField,
|
|
3114
|
+
{
|
|
3115
|
+
esQueryString,
|
|
3116
|
+
onUpdateEsQueryString
|
|
3117
|
+
}
|
|
3118
|
+
) }),
|
|
3119
|
+
/* @__PURE__ */ jsx54(EuiButton8, { onClick: () => setShowSettingsModal(true), children: "Edit columns" })
|
|
3120
|
+
] }),
|
|
3121
|
+
/* @__PURE__ */ jsx54(EuiSpacer16, { size: "m" }),
|
|
3122
|
+
/* @__PURE__ */ jsx54(
|
|
3123
|
+
Table,
|
|
3124
|
+
{
|
|
3125
|
+
data,
|
|
3126
|
+
columns: tableColumnsWithControlColumns,
|
|
3127
|
+
hiddenColumns,
|
|
3128
|
+
dataSorting,
|
|
3129
|
+
onDataSort: onUpdateDataSort,
|
|
3130
|
+
pagination,
|
|
3131
|
+
isLoading,
|
|
3132
|
+
onCriteriaChange
|
|
3133
|
+
}
|
|
3134
|
+
),
|
|
3135
|
+
showSettingsModal && /* @__PURE__ */ jsx54(
|
|
3136
|
+
TableSettingsModal,
|
|
3137
|
+
{
|
|
3138
|
+
tableConfig: {
|
|
3139
|
+
columns: tableSettingsColumns,
|
|
3140
|
+
selectedPageSize: (tableConfigFromLocalStorage == null ? void 0 : tableConfigFromLocalStorage.selectedPageSize) ?? pagination.pageSize
|
|
3141
|
+
},
|
|
3142
|
+
pageSizeOptions: pagination.pageSizeOptions ?? DEFAULT_PAGE_SIZES,
|
|
3143
|
+
onClose: () => setShowSettingsModal(false),
|
|
3144
|
+
onUpdateTableConfig: handleUpdateTableConfig,
|
|
3145
|
+
onResetToDefaults: handleResetToDefaults
|
|
3146
|
+
}
|
|
3147
|
+
)
|
|
3148
|
+
] });
|
|
2876
3149
|
};
|
|
2877
3150
|
|
|
2878
3151
|
// src/components/Loading/Loading.tsx
|
|
2879
|
-
import
|
|
2880
|
-
var Loading = () => /* @__PURE__ */
|
|
3152
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
3153
|
+
var Loading = () => /* @__PURE__ */ jsx55("h1", { children: "Loading..." });
|
|
2881
3154
|
|
|
2882
3155
|
// src/theme/defaultOrchestratorTheme.ts
|
|
2883
3156
|
var defaultOrchestratorTheme = {
|