@orchestrator-ui/orchestrator-ui-components 1.13.0 → 1.13.2
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/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +10 -10
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +43 -1
- package/dist/index.js +472 -401
- package/package.json +1 -1
- package/src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx +27 -0
- package/src/components/WfoWorkflowSteps/WfoTraceback/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/{WfoWorkflowStepList → WfoTraceback}/styles.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx +3 -11
- package/src/messages/en-GB.json +7 -1
- package/src/messages/nl-NL.json +7 -1
- package/src/pages/startPage/WfoStartPage.tsx +76 -139
- package/src/pages/startPage/mappers.ts +21 -0
- package/src/pages/startPage/queryVariables.ts +111 -0
- package/src/pages/startPage/useStartPageSummaryCardConfigurationOverride.ts +13 -0
- package/src/rtk/endpoints/processListSummary.ts +4 -1
- package/src/rtk/slices/orchestratorComponentOverride.ts +6 -0
- package/src/utils/index.ts +1 -1
- package/src/utils/optionalArray.spec.ts +32 -0
- package/src/utils/optionalArray.ts +9 -0
- package/src/utils/toOptionalArrayEntry.spec.ts +0 -17
- package/src/utils/toOptionalArrayEntry.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -23127,10 +23127,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
23127
23127
|
var require_jsx = __commonJS({
|
|
23128
23128
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
23129
23129
|
"use strict";
|
|
23130
|
-
module.exports =
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
function
|
|
23130
|
+
module.exports = jsx190;
|
|
23131
|
+
jsx190.displayName = "jsx";
|
|
23132
|
+
jsx190.aliases = [];
|
|
23133
|
+
function jsx190(Prism) {
|
|
23134
23134
|
;
|
|
23135
23135
|
(function(Prism2) {
|
|
23136
23136
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -44317,8 +44317,9 @@ var snakeToKebab = (value) => {
|
|
|
44317
44317
|
return value.replace(/_/g, "-");
|
|
44318
44318
|
};
|
|
44319
44319
|
|
|
44320
|
-
// src/utils/
|
|
44320
|
+
// src/utils/optionalArray.ts
|
|
44321
44321
|
var toOptionalArrayEntry = (data, condition) => condition ? [data] : [];
|
|
44322
|
+
var optionalArrayMapper = (data = [], mapper) => data.map(mapper);
|
|
44322
44323
|
|
|
44323
44324
|
// src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx
|
|
44324
44325
|
import { Fragment as Fragment3, jsx as jsx51, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
@@ -52697,7 +52698,7 @@ var WfoDropdownButton = ({
|
|
|
52697
52698
|
};
|
|
52698
52699
|
|
|
52699
52700
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
52700
|
-
import { useTranslations as
|
|
52701
|
+
import { useTranslations as useTranslations59 } from "next-intl";
|
|
52701
52702
|
import Link9 from "next/link";
|
|
52702
52703
|
|
|
52703
52704
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
@@ -54230,8 +54231,7 @@ WfoStepList.displayName = "WfoStepList";
|
|
|
54230
54231
|
|
|
54231
54232
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
54232
54233
|
import React51, { useEffect as useEffect23, useState as useState37 } from "react";
|
|
54233
|
-
import { useTranslations as
|
|
54234
|
-
import { EuiCodeBlock } from "@elastic/eui";
|
|
54234
|
+
import { useTranslations as useTranslations51 } from "next-intl";
|
|
54235
54235
|
|
|
54236
54236
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
54237
54237
|
var refractor = __toESM(require_refractor(), 1);
|
|
@@ -54320,9 +54320,37 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
54320
54320
|
};
|
|
54321
54321
|
var WfoDiff_default = WfoDiff;
|
|
54322
54322
|
|
|
54323
|
+
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
54324
|
+
import { useTranslations as useTranslations49 } from "next-intl";
|
|
54325
|
+
import { EuiCodeBlock, EuiText as EuiText32 } from "@elastic/eui";
|
|
54326
|
+
|
|
54327
|
+
// src/components/WfoWorkflowSteps/WfoTraceback/styles.ts
|
|
54328
|
+
import { css as css24 } from "@emotion/react";
|
|
54329
|
+
var getStyles14 = (theme) => {
|
|
54330
|
+
const codeBlockStyle = css24({
|
|
54331
|
+
marginTop: theme.size.m,
|
|
54332
|
+
marginBottom: theme.size.l,
|
|
54333
|
+
borderRadius: theme.border.radius.medium
|
|
54334
|
+
});
|
|
54335
|
+
return {
|
|
54336
|
+
codeBlockStyle
|
|
54337
|
+
};
|
|
54338
|
+
};
|
|
54339
|
+
|
|
54340
|
+
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
54341
|
+
import { Fragment as Fragment39, jsx as jsx163, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
54342
|
+
var WfoTraceback = ({ children }) => {
|
|
54343
|
+
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles14);
|
|
54344
|
+
const t = useTranslations49("processes.steps");
|
|
54345
|
+
return /* @__PURE__ */ jsxs90(Fragment39, { children: [
|
|
54346
|
+
/* @__PURE__ */ jsx163(EuiText32, { children: /* @__PURE__ */ jsx163("h3", { children: t("traceback") }) }),
|
|
54347
|
+
/* @__PURE__ */ jsx163(EuiCodeBlock, { css: codeBlockStyle, children })
|
|
54348
|
+
] });
|
|
54349
|
+
};
|
|
54350
|
+
|
|
54323
54351
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
54324
54352
|
import { useState as useState36 } from "react";
|
|
54325
|
-
import { useTranslations as
|
|
54353
|
+
import { useTranslations as useTranslations50 } from "next-intl";
|
|
54326
54354
|
import {
|
|
54327
54355
|
EuiButton as EuiButton11,
|
|
54328
54356
|
EuiFlexGroup as EuiFlexGroup19,
|
|
@@ -54330,16 +54358,16 @@ import {
|
|
|
54330
54358
|
EuiFormRow as EuiFormRow20,
|
|
54331
54359
|
EuiPopover as EuiPopover5,
|
|
54332
54360
|
EuiSwitch as EuiSwitch3,
|
|
54333
|
-
EuiText as
|
|
54361
|
+
EuiText as EuiText34
|
|
54334
54362
|
} from "@elastic/eui";
|
|
54335
54363
|
|
|
54336
54364
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
54337
|
-
import { EuiText as
|
|
54365
|
+
import { EuiText as EuiText33 } from "@elastic/eui";
|
|
54338
54366
|
|
|
54339
54367
|
// src/components/WfoTextAnchor/styles.ts
|
|
54340
|
-
import { css as
|
|
54341
|
-
var
|
|
54342
|
-
const textAnchorStyle =
|
|
54368
|
+
import { css as css25 } from "@emotion/react";
|
|
54369
|
+
var getStyles15 = (theme) => {
|
|
54370
|
+
const textAnchorStyle = css25({
|
|
54343
54371
|
marginTop: theme.size.xxs,
|
|
54344
54372
|
marginLeft: 0,
|
|
54345
54373
|
fontSize: theme.size.m,
|
|
@@ -54353,14 +54381,14 @@ var getStyles14 = (theme) => {
|
|
|
54353
54381
|
};
|
|
54354
54382
|
|
|
54355
54383
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
54356
|
-
import { jsx as
|
|
54384
|
+
import { jsx as jsx164 } from "@emotion/react/jsx-runtime";
|
|
54357
54385
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
54358
|
-
const { textAnchorStyle } = useWithOrchestratorTheme(
|
|
54359
|
-
return /* @__PURE__ */
|
|
54386
|
+
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles15);
|
|
54387
|
+
return /* @__PURE__ */ jsx164(EuiText33, { onClick, css: textAnchorStyle, children: text });
|
|
54360
54388
|
};
|
|
54361
54389
|
|
|
54362
54390
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
54363
|
-
import { jsx as
|
|
54391
|
+
import { jsx as jsx165, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
54364
54392
|
var WfoStepListHeader = ({
|
|
54365
54393
|
showHiddenKeys,
|
|
54366
54394
|
showRaw,
|
|
@@ -54375,7 +54403,7 @@ var WfoStepListHeader = ({
|
|
|
54375
54403
|
onShowTraceback,
|
|
54376
54404
|
isTask
|
|
54377
54405
|
}) => {
|
|
54378
|
-
const t =
|
|
54406
|
+
const t = useTranslations50("processes.steps");
|
|
54379
54407
|
const { theme } = useOrchestratorTheme();
|
|
54380
54408
|
const {
|
|
54381
54409
|
stepListHeaderStyle,
|
|
@@ -54386,20 +54414,20 @@ var WfoStepListHeader = ({
|
|
|
54386
54414
|
const [isViewOptionOpen, setIsViewOptionOpen] = useState36(false);
|
|
54387
54415
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
54388
54416
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
54389
|
-
const viewOptionButton = /* @__PURE__ */
|
|
54417
|
+
const viewOptionButton = /* @__PURE__ */ jsx165(
|
|
54390
54418
|
EuiButton11,
|
|
54391
54419
|
{
|
|
54392
54420
|
onClick: onViewOptionClick,
|
|
54393
|
-
iconType: () => /* @__PURE__ */
|
|
54421
|
+
iconType: () => /* @__PURE__ */ jsx165(WfoEyeFill, { color: theme.colors.link }),
|
|
54394
54422
|
iconSide: "right",
|
|
54395
54423
|
size: "s",
|
|
54396
54424
|
children: t("viewOptions")
|
|
54397
54425
|
}
|
|
54398
54426
|
);
|
|
54399
|
-
return /* @__PURE__ */
|
|
54400
|
-
/* @__PURE__ */
|
|
54401
|
-
/* @__PURE__ */
|
|
54402
|
-
!showRaw && /* @__PURE__ */
|
|
54427
|
+
return /* @__PURE__ */ jsxs91(EuiFlexGroup19, { css: stepListHeaderStyle, children: [
|
|
54428
|
+
/* @__PURE__ */ jsxs91(EuiFlexGroup19, { css: stepListContentStyle, children: [
|
|
54429
|
+
/* @__PURE__ */ jsx165(EuiText34, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
54430
|
+
!showRaw && /* @__PURE__ */ jsx165(
|
|
54403
54431
|
WfoTextAnchor,
|
|
54404
54432
|
{
|
|
54405
54433
|
text: allDetailToggleText,
|
|
@@ -54407,7 +54435,7 @@ var WfoStepListHeader = ({
|
|
|
54407
54435
|
}
|
|
54408
54436
|
)
|
|
54409
54437
|
] }),
|
|
54410
|
-
/* @__PURE__ */
|
|
54438
|
+
/* @__PURE__ */ jsxs91(
|
|
54411
54439
|
EuiFlexGroup19,
|
|
54412
54440
|
{
|
|
54413
54441
|
justifyContent: "flexEnd",
|
|
@@ -54415,7 +54443,7 @@ var WfoStepListHeader = ({
|
|
|
54415
54443
|
css: stepListOptionsContainerStyle,
|
|
54416
54444
|
gutterSize: "s",
|
|
54417
54445
|
children: [
|
|
54418
|
-
showTracebackButton && /* @__PURE__ */
|
|
54446
|
+
showTracebackButton && /* @__PURE__ */ jsx165(
|
|
54419
54447
|
EuiButton11,
|
|
54420
54448
|
{
|
|
54421
54449
|
onClick: () => onShowTraceback(!showTraceback),
|
|
@@ -54423,25 +54451,25 @@ var WfoStepListHeader = ({
|
|
|
54423
54451
|
children: showTraceback ? t("hideTraceback") : t("showTraceback")
|
|
54424
54452
|
}
|
|
54425
54453
|
),
|
|
54426
|
-
/* @__PURE__ */
|
|
54454
|
+
/* @__PURE__ */ jsx165(
|
|
54427
54455
|
EuiButton11,
|
|
54428
54456
|
{
|
|
54429
54457
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
54430
54458
|
iconSide: "right",
|
|
54431
54459
|
size: "s",
|
|
54432
|
-
iconType: () => /* @__PURE__ */
|
|
54460
|
+
iconType: () => /* @__PURE__ */ jsx165(WfoCode, { color: theme.colors.link }),
|
|
54433
54461
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
54434
54462
|
}
|
|
54435
54463
|
),
|
|
54436
|
-
/* @__PURE__ */
|
|
54464
|
+
/* @__PURE__ */ jsx165(
|
|
54437
54465
|
EuiPopover5,
|
|
54438
54466
|
{
|
|
54439
54467
|
button: viewOptionButton,
|
|
54440
54468
|
isOpen: isViewOptionOpen,
|
|
54441
54469
|
closePopover: closeViewOption,
|
|
54442
54470
|
display: "block",
|
|
54443
|
-
children: /* @__PURE__ */
|
|
54444
|
-
/* @__PURE__ */
|
|
54471
|
+
children: /* @__PURE__ */ jsx165("div", { children: /* @__PURE__ */ jsxs91(EuiForm2, { component: "form", children: [
|
|
54472
|
+
/* @__PURE__ */ jsx165(EuiFormRow20, { children: /* @__PURE__ */ jsx165(
|
|
54445
54473
|
EuiSwitch3,
|
|
54446
54474
|
{
|
|
54447
54475
|
label: "Hidden keys",
|
|
@@ -54454,7 +54482,7 @@ var WfoStepListHeader = ({
|
|
|
54454
54482
|
}
|
|
54455
54483
|
}
|
|
54456
54484
|
) }),
|
|
54457
|
-
/* @__PURE__ */
|
|
54485
|
+
/* @__PURE__ */ jsx165(EuiFormRow20, { children: /* @__PURE__ */ jsx165(
|
|
54458
54486
|
EuiSwitch3,
|
|
54459
54487
|
{
|
|
54460
54488
|
label: "Raw JSON data",
|
|
@@ -54474,23 +54502,11 @@ var WfoStepListHeader = ({
|
|
|
54474
54502
|
] });
|
|
54475
54503
|
};
|
|
54476
54504
|
|
|
54477
|
-
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/styles.ts
|
|
54478
|
-
import { css as css25 } from "@emotion/react";
|
|
54479
|
-
var getStyles15 = (theme) => {
|
|
54480
|
-
const codeBlockStyle = css25({
|
|
54481
|
-
marginBottom: theme.size.l,
|
|
54482
|
-
borderRadius: theme.border.radius.medium
|
|
54483
|
-
});
|
|
54484
|
-
return {
|
|
54485
|
-
codeBlockStyle
|
|
54486
|
-
};
|
|
54487
|
-
};
|
|
54488
|
-
|
|
54489
54505
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
54490
|
-
import { Fragment as
|
|
54506
|
+
import { Fragment as Fragment40, jsx as jsx166, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
54491
54507
|
var WfoProcessRawData = ({ processId }) => {
|
|
54492
54508
|
const { data, isFetching } = useRawProcessDetails(processId);
|
|
54493
|
-
return isFetching ? /* @__PURE__ */
|
|
54509
|
+
return isFetching ? /* @__PURE__ */ jsx166(WfoLoading, {}) : /* @__PURE__ */ jsx166(WfoJsonCodeBlock, { data: data || {} });
|
|
54494
54510
|
};
|
|
54495
54511
|
var WfoProcessSubscriptionDelta = ({
|
|
54496
54512
|
processId
|
|
@@ -54500,7 +54516,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
54500
54516
|
const subscriptionKey = (_c = (_b = (_a = data == null ? void 0 : data.current_state) == null ? void 0 : _a.subscription) == null ? void 0 : _b.subscription_id) != null ? _c : "";
|
|
54501
54517
|
const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
|
|
54502
54518
|
const oldText = ((_f = data == null ? void 0 : data.current_state) == null ? void 0 : _f.__old_subscriptions__) && subscriptionKey in ((_g = data == null ? void 0 : data.current_state) == null ? void 0 : _g.__old_subscriptions__) ? (_h = data == null ? void 0 : data.current_state) == null ? void 0 : _h.__old_subscriptions__[subscriptionKey] : null;
|
|
54503
|
-
return isFetching ? /* @__PURE__ */
|
|
54519
|
+
return isFetching ? /* @__PURE__ */ jsx166(WfoLoading, {}) : /* @__PURE__ */ jsx166(
|
|
54504
54520
|
WfoDiff_default,
|
|
54505
54521
|
{
|
|
54506
54522
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -54518,12 +54534,11 @@ var WfoWorkflowStepList = React51.forwardRef(
|
|
|
54518
54534
|
isTask,
|
|
54519
54535
|
userInputForm
|
|
54520
54536
|
}, reference) => {
|
|
54521
|
-
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles15);
|
|
54522
54537
|
const [showHiddenKeys, setShowHiddenKeys] = useState37(false);
|
|
54523
54538
|
const [showRaw, setShowRaw] = useState37(false);
|
|
54524
54539
|
const [showDelta, setShowDelta] = useState37(false);
|
|
54525
54540
|
const [showTraceback, setShowTraceback] = useState37(false);
|
|
54526
|
-
const t =
|
|
54541
|
+
const t = useTranslations51("processes.steps");
|
|
54527
54542
|
const initialStepListItems = steps.map((step) => ({
|
|
54528
54543
|
step,
|
|
54529
54544
|
isExpanded: false
|
|
@@ -54576,8 +54591,8 @@ var WfoWorkflowStepList = React51.forwardRef(
|
|
|
54576
54591
|
const handleExpandStepListItem = (stepListItem) => updateStepListItem(stepListItem, (item) => __spreadProps(__spreadValues({}, item), {
|
|
54577
54592
|
isExpanded: true
|
|
54578
54593
|
}));
|
|
54579
|
-
return /* @__PURE__ */
|
|
54580
|
-
/* @__PURE__ */
|
|
54594
|
+
return /* @__PURE__ */ jsxs92(Fragment40, { children: [
|
|
54595
|
+
/* @__PURE__ */ jsx166(
|
|
54581
54596
|
WfoStepListHeader,
|
|
54582
54597
|
{
|
|
54583
54598
|
showHiddenKeys,
|
|
@@ -54594,10 +54609,10 @@ var WfoWorkflowStepList = React51.forwardRef(
|
|
|
54594
54609
|
isTask
|
|
54595
54610
|
}
|
|
54596
54611
|
),
|
|
54597
|
-
showTraceback && /* @__PURE__ */
|
|
54598
|
-
showRaw && /* @__PURE__ */
|
|
54599
|
-
showDelta && /* @__PURE__ */
|
|
54600
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
54612
|
+
showTraceback && /* @__PURE__ */ jsx166(WfoTraceback, { children: traceBack }),
|
|
54613
|
+
showRaw && /* @__PURE__ */ jsx166(WfoProcessRawData, { processId }),
|
|
54614
|
+
showDelta && /* @__PURE__ */ jsx166(WfoProcessSubscriptionDelta, { processId }),
|
|
54615
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx166(
|
|
54601
54616
|
WfoStepList,
|
|
54602
54617
|
{
|
|
54603
54618
|
ref: reference,
|
|
@@ -54617,7 +54632,7 @@ WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
|
54617
54632
|
|
|
54618
54633
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
54619
54634
|
import { useContext as useContext13 } from "react";
|
|
54620
|
-
import { useTranslations as
|
|
54635
|
+
import { useTranslations as useTranslations52 } from "next-intl";
|
|
54621
54636
|
import { useRouter as useRouter10 } from "next/router";
|
|
54622
54637
|
import {
|
|
54623
54638
|
EuiButton as EuiButton12,
|
|
@@ -54626,7 +54641,7 @@ import {
|
|
|
54626
54641
|
EuiPageHeader as EuiPageHeader3,
|
|
54627
54642
|
EuiPanel as EuiPanel5,
|
|
54628
54643
|
EuiSpacer as EuiSpacer17,
|
|
54629
|
-
EuiText as
|
|
54644
|
+
EuiText as EuiText35
|
|
54630
54645
|
} from "@elastic/eui";
|
|
54631
54646
|
|
|
54632
54647
|
// src/pages/processes/timelineUtils.ts
|
|
@@ -54704,14 +54719,14 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
54704
54719
|
};
|
|
54705
54720
|
|
|
54706
54721
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
54707
|
-
import { Fragment as
|
|
54722
|
+
import { Fragment as Fragment41, jsx as jsx167, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
54708
54723
|
var ProcessHeaderValue = ({
|
|
54709
54724
|
translationKey,
|
|
54710
54725
|
value = ""
|
|
54711
54726
|
}) => {
|
|
54712
|
-
const t =
|
|
54727
|
+
const t = useTranslations52("processes.detail");
|
|
54713
54728
|
const { theme } = useOrchestratorTheme();
|
|
54714
|
-
return /* @__PURE__ */
|
|
54729
|
+
return /* @__PURE__ */ jsxs93(
|
|
54715
54730
|
EuiFlexGroup20,
|
|
54716
54731
|
{
|
|
54717
54732
|
direction: "column",
|
|
@@ -54722,9 +54737,9 @@ var ProcessHeaderValue = ({
|
|
|
54722
54737
|
overflow: "hidden"
|
|
54723
54738
|
},
|
|
54724
54739
|
children: [
|
|
54725
|
-
/* @__PURE__ */
|
|
54726
|
-
/* @__PURE__ */
|
|
54727
|
-
|
|
54740
|
+
/* @__PURE__ */ jsx167(EuiText35, { size: "xs", children: t(translationKey) }),
|
|
54741
|
+
/* @__PURE__ */ jsx167(
|
|
54742
|
+
EuiText35,
|
|
54728
54743
|
{
|
|
54729
54744
|
css: {
|
|
54730
54745
|
fontWeight: theme.font.weight.bold,
|
|
@@ -54751,7 +54766,7 @@ var WfoProcessDetail = ({
|
|
|
54751
54766
|
hasError = false
|
|
54752
54767
|
}) => {
|
|
54753
54768
|
var _a, _b;
|
|
54754
|
-
const t =
|
|
54769
|
+
const t = useTranslations52("processes.detail");
|
|
54755
54770
|
const { theme } = useOrchestratorTheme();
|
|
54756
54771
|
const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
|
|
54757
54772
|
const { deleteProcess, abortProcess, retryProcess } = useMutateProcess();
|
|
@@ -54810,14 +54825,14 @@ var WfoProcessDetail = ({
|
|
|
54810
54825
|
router.push(PATH_TASKS);
|
|
54811
54826
|
}
|
|
54812
54827
|
});
|
|
54813
|
-
return /* @__PURE__ */
|
|
54814
|
-
/* @__PURE__ */
|
|
54815
|
-
/* @__PURE__ */
|
|
54816
|
-
/* @__PURE__ */
|
|
54817
|
-
/* @__PURE__ */
|
|
54818
|
-
/* @__PURE__ */
|
|
54828
|
+
return /* @__PURE__ */ jsxs93(Fragment41, { children: [
|
|
54829
|
+
/* @__PURE__ */ jsxs93(EuiFlexGroup20, { children: [
|
|
54830
|
+
/* @__PURE__ */ jsxs93(EuiFlexItem27, { children: [
|
|
54831
|
+
/* @__PURE__ */ jsx167(EuiPageHeader3, { pageTitle }),
|
|
54832
|
+
/* @__PURE__ */ jsx167(EuiSpacer17, {}),
|
|
54833
|
+
/* @__PURE__ */ jsx167(EuiText35, { size: "s", children: productNames })
|
|
54819
54834
|
] }),
|
|
54820
|
-
/* @__PURE__ */
|
|
54835
|
+
/* @__PURE__ */ jsxs93(
|
|
54821
54836
|
EuiFlexGroup20,
|
|
54822
54837
|
{
|
|
54823
54838
|
justifyContent: "flexEnd",
|
|
@@ -54825,15 +54840,15 @@ var WfoProcessDetail = ({
|
|
|
54825
54840
|
css: { flexGrow: 0 },
|
|
54826
54841
|
gutterSize: "s",
|
|
54827
54842
|
children: [
|
|
54828
|
-
/* @__PURE__ */
|
|
54843
|
+
/* @__PURE__ */ jsx167(
|
|
54829
54844
|
WfoIsAllowedToRender,
|
|
54830
54845
|
{
|
|
54831
54846
|
resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */,
|
|
54832
|
-
children: /* @__PURE__ */
|
|
54847
|
+
children: /* @__PURE__ */ jsx167(
|
|
54833
54848
|
EuiButton12,
|
|
54834
54849
|
{
|
|
54835
54850
|
onClick: handleActionButtonClick(retryAction),
|
|
54836
|
-
iconType: () => /* @__PURE__ */
|
|
54851
|
+
iconType: () => /* @__PURE__ */ jsx167(
|
|
54837
54852
|
WfoRefresh,
|
|
54838
54853
|
{
|
|
54839
54854
|
color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
|
|
@@ -54845,15 +54860,15 @@ var WfoProcessDetail = ({
|
|
|
54845
54860
|
)
|
|
54846
54861
|
}
|
|
54847
54862
|
),
|
|
54848
|
-
/* @__PURE__ */
|
|
54863
|
+
/* @__PURE__ */ jsx167(
|
|
54849
54864
|
WfoIsAllowedToRender,
|
|
54850
54865
|
{
|
|
54851
54866
|
resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */,
|
|
54852
|
-
children: /* @__PURE__ */
|
|
54867
|
+
children: /* @__PURE__ */ jsx167(
|
|
54853
54868
|
EuiButton12,
|
|
54854
54869
|
{
|
|
54855
54870
|
onClick: handleActionButtonClick(abortAction),
|
|
54856
|
-
iconType: () => /* @__PURE__ */
|
|
54871
|
+
iconType: () => /* @__PURE__ */ jsx167(
|
|
54857
54872
|
WfoXCircleFill,
|
|
54858
54873
|
{
|
|
54859
54874
|
color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54866,11 +54881,11 @@ var WfoProcessDetail = ({
|
|
|
54866
54881
|
)
|
|
54867
54882
|
}
|
|
54868
54883
|
),
|
|
54869
|
-
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */
|
|
54884
|
+
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx167(
|
|
54870
54885
|
EuiButton12,
|
|
54871
54886
|
{
|
|
54872
54887
|
onClick: handleActionButtonClick(deleteAction),
|
|
54873
|
-
iconType: () => /* @__PURE__ */
|
|
54888
|
+
iconType: () => /* @__PURE__ */ jsx167(
|
|
54874
54889
|
WfoXCircleFill,
|
|
54875
54890
|
{
|
|
54876
54891
|
color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54885,44 +54900,44 @@ var WfoProcessDetail = ({
|
|
|
54885
54900
|
}
|
|
54886
54901
|
)
|
|
54887
54902
|
] }),
|
|
54888
|
-
/* @__PURE__ */
|
|
54889
|
-
/* @__PURE__ */
|
|
54903
|
+
/* @__PURE__ */ jsx167(EuiSpacer17, {}),
|
|
54904
|
+
/* @__PURE__ */ jsx167(
|
|
54890
54905
|
EuiPanel5,
|
|
54891
54906
|
{
|
|
54892
54907
|
hasShadow: false,
|
|
54893
54908
|
hasBorder: false,
|
|
54894
54909
|
color: "subdued",
|
|
54895
54910
|
element: "div",
|
|
54896
|
-
children: isLoading && !hasError && /* @__PURE__ */
|
|
54897
|
-
/* @__PURE__ */
|
|
54911
|
+
children: isLoading && !hasError && /* @__PURE__ */ jsx167(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs93(EuiFlexGroup20, { direction: "row", gutterSize: "m", children: [
|
|
54912
|
+
/* @__PURE__ */ jsx167(
|
|
54898
54913
|
ProcessHeaderValue,
|
|
54899
54914
|
{
|
|
54900
54915
|
translationKey: "status",
|
|
54901
54916
|
value: processDetail.lastStatus
|
|
54902
54917
|
}
|
|
54903
54918
|
),
|
|
54904
|
-
/* @__PURE__ */
|
|
54919
|
+
/* @__PURE__ */ jsx167(
|
|
54905
54920
|
ProcessHeaderValue,
|
|
54906
54921
|
{
|
|
54907
54922
|
translationKey: "lastStep",
|
|
54908
54923
|
value: processDetail == null ? void 0 : processDetail.lastStep
|
|
54909
54924
|
}
|
|
54910
54925
|
),
|
|
54911
|
-
processDetail.customer && /* @__PURE__ */
|
|
54926
|
+
processDetail.customer && /* @__PURE__ */ jsx167(
|
|
54912
54927
|
ProcessHeaderValue,
|
|
54913
54928
|
{
|
|
54914
54929
|
translationKey: "customer",
|
|
54915
54930
|
value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
|
|
54916
54931
|
}
|
|
54917
54932
|
),
|
|
54918
|
-
/* @__PURE__ */
|
|
54933
|
+
/* @__PURE__ */ jsx167(
|
|
54919
54934
|
ProcessHeaderValue,
|
|
54920
54935
|
{
|
|
54921
54936
|
translationKey: "startedBy",
|
|
54922
54937
|
value: processDetail == null ? void 0 : processDetail.createdBy
|
|
54923
54938
|
}
|
|
54924
54939
|
),
|
|
54925
|
-
/* @__PURE__ */
|
|
54940
|
+
/* @__PURE__ */ jsx167(
|
|
54926
54941
|
ProcessHeaderValue,
|
|
54927
54942
|
{
|
|
54928
54943
|
translationKey: "startedOn",
|
|
@@ -54931,7 +54946,7 @@ var WfoProcessDetail = ({
|
|
|
54931
54946
|
)(processDetail == null ? void 0 : processDetail.startedAt) : ""
|
|
54932
54947
|
}
|
|
54933
54948
|
),
|
|
54934
|
-
/* @__PURE__ */
|
|
54949
|
+
/* @__PURE__ */ jsx167(
|
|
54935
54950
|
ProcessHeaderValue,
|
|
54936
54951
|
{
|
|
54937
54952
|
translationKey: "lastUpdate",
|
|
@@ -54942,7 +54957,7 @@ var WfoProcessDetail = ({
|
|
|
54942
54957
|
),
|
|
54943
54958
|
process && isAllowed(
|
|
54944
54959
|
"/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */
|
|
54945
|
-
) && processDetail.subscriptions && /* @__PURE__ */
|
|
54960
|
+
) && processDetail.subscriptions && /* @__PURE__ */ jsxs93(
|
|
54946
54961
|
EuiFlexGroup20,
|
|
54947
54962
|
{
|
|
54948
54963
|
gutterSize: "xs",
|
|
@@ -54952,9 +54967,9 @@ var WfoProcessDetail = ({
|
|
|
54952
54967
|
overflow: "hidden"
|
|
54953
54968
|
},
|
|
54954
54969
|
children: [
|
|
54955
|
-
/* @__PURE__ */
|
|
54956
|
-
/* @__PURE__ */
|
|
54957
|
-
|
|
54970
|
+
/* @__PURE__ */ jsx167(EuiText35, { size: "xs", children: t("relatedSubscriptions") }),
|
|
54971
|
+
/* @__PURE__ */ jsx167(
|
|
54972
|
+
EuiText35,
|
|
54958
54973
|
{
|
|
54959
54974
|
css: {
|
|
54960
54975
|
flex: 1,
|
|
@@ -54963,7 +54978,7 @@ var WfoProcessDetail = ({
|
|
|
54963
54978
|
textOverflow: "ellipsis",
|
|
54964
54979
|
fontSize: theme.size.m
|
|
54965
54980
|
},
|
|
54966
|
-
children: /* @__PURE__ */
|
|
54981
|
+
children: /* @__PURE__ */ jsx167(
|
|
54967
54982
|
WfoProcessListSubscriptionsCell,
|
|
54968
54983
|
{
|
|
54969
54984
|
subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
|
|
@@ -54983,8 +54998,8 @@ var WfoProcessDetail = ({
|
|
|
54983
54998
|
] })
|
|
54984
54999
|
}
|
|
54985
55000
|
),
|
|
54986
|
-
/* @__PURE__ */
|
|
54987
|
-
/* @__PURE__ */
|
|
55001
|
+
/* @__PURE__ */ jsx167(EuiSpacer17, { size: "s" }),
|
|
55002
|
+
/* @__PURE__ */ jsx167(
|
|
54988
55003
|
WfoTimeline,
|
|
54989
55004
|
{
|
|
54990
55005
|
timelineItems,
|
|
@@ -54997,7 +55012,7 @@ var WfoProcessDetail = ({
|
|
|
54997
55012
|
};
|
|
54998
55013
|
|
|
54999
55014
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
55000
|
-
import { jsx as
|
|
55015
|
+
import { jsx as jsx168 } from "@emotion/react/jsx-runtime";
|
|
55001
55016
|
var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
|
|
55002
55017
|
var WfoProcessDetailPage = ({
|
|
55003
55018
|
processId,
|
|
@@ -55041,7 +55056,7 @@ var WfoProcessDetailPage = ({
|
|
|
55041
55056
|
const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
|
|
55042
55057
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
55043
55058
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
55044
|
-
return /* @__PURE__ */
|
|
55059
|
+
return /* @__PURE__ */ jsx168(
|
|
55045
55060
|
WfoProcessDetail,
|
|
55046
55061
|
{
|
|
55047
55062
|
pageTitle,
|
|
@@ -55055,7 +55070,7 @@ var WfoProcessDetailPage = ({
|
|
|
55055
55070
|
},
|
|
55056
55071
|
isLoading,
|
|
55057
55072
|
hasError: isError3,
|
|
55058
|
-
children: isError3 && /* @__PURE__ */
|
|
55073
|
+
children: isError3 && /* @__PURE__ */ jsx168(WfoError, {}) || isLoading && /* @__PURE__ */ jsx168(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx168(
|
|
55059
55074
|
WfoWorkflowStepList,
|
|
55060
55075
|
{
|
|
55061
55076
|
ref: stepListRef,
|
|
@@ -55068,23 +55083,23 @@ var WfoProcessDetailPage = ({
|
|
|
55068
55083
|
startedAt: process2.startedAt,
|
|
55069
55084
|
isTask
|
|
55070
55085
|
}
|
|
55071
|
-
) || /* @__PURE__ */
|
|
55086
|
+
) || /* @__PURE__ */ jsx168("h1", { children: "Invalid processId" })
|
|
55072
55087
|
}
|
|
55073
55088
|
);
|
|
55074
55089
|
};
|
|
55075
55090
|
|
|
55076
55091
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
55077
55092
|
import { useCallback as useCallback6, useEffect as useEffect25, useMemo as useMemo5, useState as useState39 } from "react";
|
|
55078
|
-
import { useTranslations as
|
|
55093
|
+
import { useTranslations as useTranslations53 } from "next-intl";
|
|
55079
55094
|
import { useRouter as useRouter11 } from "next/router";
|
|
55080
55095
|
import {
|
|
55081
55096
|
EuiFlexGroup as EuiFlexGroup21,
|
|
55082
55097
|
EuiFlexItem as EuiFlexItem28,
|
|
55083
55098
|
EuiHorizontalRule as EuiHorizontalRule6,
|
|
55084
55099
|
EuiPanel as EuiPanel6,
|
|
55085
|
-
EuiText as
|
|
55100
|
+
EuiText as EuiText36
|
|
55086
55101
|
} from "@elastic/eui";
|
|
55087
|
-
import { jsx as
|
|
55102
|
+
import { jsx as jsx169, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
55088
55103
|
var getInitialProcessPayload = ({
|
|
55089
55104
|
productId,
|
|
55090
55105
|
subscriptionId
|
|
@@ -55106,7 +55121,7 @@ var WfoStartProcessPage = ({
|
|
|
55106
55121
|
isTask = false
|
|
55107
55122
|
}) => {
|
|
55108
55123
|
const apiClient = useAxiosApiClient();
|
|
55109
|
-
const t =
|
|
55124
|
+
const t = useTranslations53("processes.steps");
|
|
55110
55125
|
const router = useRouter11();
|
|
55111
55126
|
const [hasError, setHasError] = useState39(false);
|
|
55112
55127
|
const { theme } = useOrchestratorTheme();
|
|
@@ -55191,7 +55206,7 @@ var WfoStartProcessPage = ({
|
|
|
55191
55206
|
workflowName: processName,
|
|
55192
55207
|
createdBy: "-"
|
|
55193
55208
|
};
|
|
55194
|
-
return /* @__PURE__ */
|
|
55209
|
+
return /* @__PURE__ */ jsx169(
|
|
55195
55210
|
WfoProcessDetail,
|
|
55196
55211
|
{
|
|
55197
55212
|
pageTitle: processName,
|
|
@@ -55200,18 +55215,18 @@ var WfoStartProcessPage = ({
|
|
|
55200
55215
|
processDetail,
|
|
55201
55216
|
timelineItems: timeLineItems,
|
|
55202
55217
|
isLoading,
|
|
55203
|
-
children: /* @__PURE__ */
|
|
55204
|
-
/* @__PURE__ */
|
|
55205
|
-
/* @__PURE__ */
|
|
55206
|
-
/* @__PURE__ */
|
|
55207
|
-
/* @__PURE__ */
|
|
55208
|
-
/* @__PURE__ */
|
|
55218
|
+
children: /* @__PURE__ */ jsxs94(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
|
|
55219
|
+
/* @__PURE__ */ jsxs94(EuiFlexGroup21, { css: getStepHeaderStyle(false), children: [
|
|
55220
|
+
/* @__PURE__ */ jsx169(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
55221
|
+
/* @__PURE__ */ jsxs94(EuiFlexItem28, { grow: 0, children: [
|
|
55222
|
+
/* @__PURE__ */ jsx169(EuiText36, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
55223
|
+
/* @__PURE__ */ jsx169(EuiText36, { children: t(
|
|
55209
55224
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
55210
55225
|
) })
|
|
55211
55226
|
] })
|
|
55212
55227
|
] }),
|
|
55213
|
-
/* @__PURE__ */
|
|
55214
|
-
hasError && /* @__PURE__ */
|
|
55228
|
+
/* @__PURE__ */ jsx169(EuiHorizontalRule6, {}),
|
|
55229
|
+
hasError && /* @__PURE__ */ jsx169(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx169(
|
|
55215
55230
|
UserInputFormWizardDeprecated_default,
|
|
55216
55231
|
{
|
|
55217
55232
|
stepUserInput,
|
|
@@ -55222,14 +55237,14 @@ var WfoStartProcessPage = ({
|
|
|
55222
55237
|
hasNext,
|
|
55223
55238
|
isTask
|
|
55224
55239
|
}
|
|
55225
|
-
) || /* @__PURE__ */
|
|
55240
|
+
) || /* @__PURE__ */ jsx169(WfoLoading, {})
|
|
55226
55241
|
] })
|
|
55227
55242
|
}
|
|
55228
55243
|
);
|
|
55229
55244
|
};
|
|
55230
55245
|
|
|
55231
55246
|
// src/pages/startPage/WfoStartPage.tsx
|
|
55232
|
-
import { useTranslations as
|
|
55247
|
+
import { useTranslations as useTranslations54 } from "next-intl";
|
|
55233
55248
|
import { EuiFlexItem as EuiFlexItem33 } from "@elastic/eui";
|
|
55234
55249
|
|
|
55235
55250
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
@@ -55262,7 +55277,7 @@ import {
|
|
|
55262
55277
|
EuiFlexGroup as EuiFlexGroup22,
|
|
55263
55278
|
EuiFlexItem as EuiFlexItem29,
|
|
55264
55279
|
EuiPanel as EuiPanel7,
|
|
55265
|
-
EuiText as
|
|
55280
|
+
EuiText as EuiText37
|
|
55266
55281
|
} from "@elastic/eui";
|
|
55267
55282
|
|
|
55268
55283
|
// src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
|
|
@@ -55289,7 +55304,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
|
|
|
55289
55304
|
};
|
|
55290
55305
|
|
|
55291
55306
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
55292
|
-
import { jsx as
|
|
55307
|
+
import { jsx as jsx170, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
55293
55308
|
var WfoSummaryCardHeader = ({
|
|
55294
55309
|
text,
|
|
55295
55310
|
value,
|
|
@@ -55298,8 +55313,8 @@ var WfoSummaryCardHeader = ({
|
|
|
55298
55313
|
}) => {
|
|
55299
55314
|
const { theme } = useOrchestratorTheme();
|
|
55300
55315
|
const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
|
|
55301
|
-
return /* @__PURE__ */
|
|
55302
|
-
/* @__PURE__ */
|
|
55316
|
+
return /* @__PURE__ */ jsx170(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx170(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs95(EuiFlexGroup22, { children: [
|
|
55317
|
+
/* @__PURE__ */ jsx170(
|
|
55303
55318
|
EuiAvatar2,
|
|
55304
55319
|
{
|
|
55305
55320
|
iconSize: "l",
|
|
@@ -55312,9 +55327,9 @@ var WfoSummaryCardHeader = ({
|
|
|
55312
55327
|
color: iconColor
|
|
55313
55328
|
}
|
|
55314
55329
|
),
|
|
55315
|
-
/* @__PURE__ */
|
|
55316
|
-
/* @__PURE__ */
|
|
55317
|
-
/* @__PURE__ */
|
|
55330
|
+
/* @__PURE__ */ jsxs95("div", { css: totalSectionStyle, children: [
|
|
55331
|
+
/* @__PURE__ */ jsx170(EuiText37, { color: "subdued", children: text }),
|
|
55332
|
+
/* @__PURE__ */ jsx170(EuiText37, { css: valueStyle, children: value })
|
|
55318
55333
|
] })
|
|
55319
55334
|
] }) }) });
|
|
55320
55335
|
};
|
|
@@ -55336,15 +55351,15 @@ import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem30, EuiIcon a
|
|
|
55336
55351
|
|
|
55337
55352
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
55338
55353
|
import Link6 from "next/link";
|
|
55339
|
-
import { jsx as
|
|
55354
|
+
import { jsx as jsx171 } from "@emotion/react/jsx-runtime";
|
|
55340
55355
|
var WfoOptionalLink = ({
|
|
55341
55356
|
children,
|
|
55342
55357
|
href
|
|
55343
55358
|
}) => {
|
|
55344
55359
|
if (!href) {
|
|
55345
|
-
return /* @__PURE__ */
|
|
55360
|
+
return /* @__PURE__ */ jsx171("span", { children });
|
|
55346
55361
|
}
|
|
55347
|
-
return /* @__PURE__ */
|
|
55362
|
+
return /* @__PURE__ */ jsx171(Link6, { href, children });
|
|
55348
55363
|
};
|
|
55349
55364
|
|
|
55350
55365
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -55393,7 +55408,7 @@ var getWfoSummaryCardListStyles = (theme) => {
|
|
|
55393
55408
|
};
|
|
55394
55409
|
|
|
55395
55410
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
55396
|
-
import { jsx as
|
|
55411
|
+
import { jsx as jsx172, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
55397
55412
|
var WfoSummaryCardListItem = ({
|
|
55398
55413
|
title,
|
|
55399
55414
|
value,
|
|
@@ -55406,9 +55421,9 @@ var WfoSummaryCardListItem = ({
|
|
|
55406
55421
|
listItemSubtitleStyle,
|
|
55407
55422
|
listItemHighlightIconStyle
|
|
55408
55423
|
} = getWfoSummaryCardListStyles(theme);
|
|
55409
|
-
return /* @__PURE__ */
|
|
55410
|
-
/* @__PURE__ */
|
|
55411
|
-
/* @__PURE__ */
|
|
55424
|
+
return /* @__PURE__ */ jsx172(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs96(EuiFlexGroup23, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
55425
|
+
/* @__PURE__ */ jsxs96(EuiFlexItem30, { children: [
|
|
55426
|
+
/* @__PURE__ */ jsx172(
|
|
55412
55427
|
EuiTextColor,
|
|
55413
55428
|
{
|
|
55414
55429
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -55416,22 +55431,22 @@ var WfoSummaryCardListItem = ({
|
|
|
55416
55431
|
children: title
|
|
55417
55432
|
}
|
|
55418
55433
|
),
|
|
55419
|
-
/* @__PURE__ */
|
|
55434
|
+
/* @__PURE__ */ jsx172(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
55420
55435
|
] }),
|
|
55421
|
-
/* @__PURE__ */
|
|
55436
|
+
/* @__PURE__ */ jsx172(
|
|
55422
55437
|
EuiFlexItem30,
|
|
55423
55438
|
{
|
|
55424
55439
|
className: url ? "highlight-icon" : void 0,
|
|
55425
55440
|
grow: false,
|
|
55426
55441
|
css: listItemHighlightIconStyle,
|
|
55427
|
-
children: /* @__PURE__ */
|
|
55442
|
+
children: /* @__PURE__ */ jsx172(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
55428
55443
|
}
|
|
55429
55444
|
)
|
|
55430
55445
|
] }) });
|
|
55431
55446
|
};
|
|
55432
55447
|
|
|
55433
55448
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
55434
|
-
import { jsx as
|
|
55449
|
+
import { jsx as jsx173, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
55435
55450
|
var WfoSummaryCardList = ({
|
|
55436
55451
|
title,
|
|
55437
55452
|
items,
|
|
@@ -55441,7 +55456,7 @@ var WfoSummaryCardList = ({
|
|
|
55441
55456
|
const router = useRouter12();
|
|
55442
55457
|
const euiScrollBarStyle = useEuiScrollBar2();
|
|
55443
55458
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
55444
|
-
return /* @__PURE__ */
|
|
55459
|
+
return /* @__PURE__ */ jsx173(EuiFlexItem31, { children: /* @__PURE__ */ jsxs97(
|
|
55445
55460
|
EuiPanel8,
|
|
55446
55461
|
{
|
|
55447
55462
|
css: listContainerStyle,
|
|
@@ -55449,11 +55464,11 @@ var WfoSummaryCardList = ({
|
|
|
55449
55464
|
hasBorder: true,
|
|
55450
55465
|
paddingSize: "l",
|
|
55451
55466
|
children: [
|
|
55452
|
-
/* @__PURE__ */
|
|
55453
|
-
/* @__PURE__ */
|
|
55454
|
-
/* @__PURE__ */
|
|
55455
|
-
/* @__PURE__ */
|
|
55456
|
-
/* @__PURE__ */
|
|
55467
|
+
/* @__PURE__ */ jsxs97("div", { children: [
|
|
55468
|
+
/* @__PURE__ */ jsx173("p", { css: listHeaderStyle, children: title }),
|
|
55469
|
+
/* @__PURE__ */ jsx173(EuiSpacer18, { size: "m" }),
|
|
55470
|
+
/* @__PURE__ */ jsx173(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx173("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs97("div", { children: [
|
|
55471
|
+
/* @__PURE__ */ jsx173(
|
|
55457
55472
|
WfoSummaryCardListItem,
|
|
55458
55473
|
{
|
|
55459
55474
|
title: item.title,
|
|
@@ -55461,11 +55476,11 @@ var WfoSummaryCardList = ({
|
|
|
55461
55476
|
url: item.url
|
|
55462
55477
|
}
|
|
55463
55478
|
),
|
|
55464
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
55479
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx173(EuiHorizontalRule7, { margin: "none" })
|
|
55465
55480
|
] }, index)) }) })
|
|
55466
55481
|
] }),
|
|
55467
|
-
/* @__PURE__ */
|
|
55468
|
-
button && /* @__PURE__ */
|
|
55482
|
+
/* @__PURE__ */ jsx173(EuiSpacer18, { size: "m" }),
|
|
55483
|
+
button && /* @__PURE__ */ jsx173(
|
|
55469
55484
|
EuiButton13,
|
|
55470
55485
|
{
|
|
55471
55486
|
fullWidth: true,
|
|
@@ -55491,7 +55506,7 @@ var getWfoSummaryCardsStyles = (theme) => {
|
|
|
55491
55506
|
};
|
|
55492
55507
|
|
|
55493
55508
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
55494
|
-
import { jsx as
|
|
55509
|
+
import { jsx as jsx174, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
55495
55510
|
var WfoSummaryCards = ({ summaryCards }) => {
|
|
55496
55511
|
const { theme } = useOrchestratorTheme();
|
|
55497
55512
|
const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
|
|
@@ -55516,7 +55531,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
55516
55531
|
};
|
|
55517
55532
|
}
|
|
55518
55533
|
};
|
|
55519
|
-
return /* @__PURE__ */
|
|
55534
|
+
return /* @__PURE__ */ jsx174(
|
|
55520
55535
|
EuiFlexGrid2,
|
|
55521
55536
|
{
|
|
55522
55537
|
responsive: false,
|
|
@@ -55531,8 +55546,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
55531
55546
|
listItems,
|
|
55532
55547
|
button,
|
|
55533
55548
|
isLoading
|
|
55534
|
-
}, index) => /* @__PURE__ */
|
|
55535
|
-
/* @__PURE__ */
|
|
55549
|
+
}, index) => /* @__PURE__ */ jsxs98(EuiFlexItem32, { css: cardContainerStyle, children: [
|
|
55550
|
+
/* @__PURE__ */ jsx174(
|
|
55536
55551
|
WfoSummaryCardHeader,
|
|
55537
55552
|
__spreadValues({
|
|
55538
55553
|
text: headerTitle,
|
|
@@ -55541,8 +55556,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
55541
55556
|
headerStatus
|
|
55542
55557
|
))
|
|
55543
55558
|
),
|
|
55544
|
-
/* @__PURE__ */
|
|
55545
|
-
/* @__PURE__ */
|
|
55559
|
+
/* @__PURE__ */ jsx174(EuiSpacer19, { size: "m" }),
|
|
55560
|
+
/* @__PURE__ */ jsx174(
|
|
55546
55561
|
WfoSummaryCardList,
|
|
55547
55562
|
{
|
|
55548
55563
|
title: listTitle,
|
|
@@ -55607,12 +55622,121 @@ var subscriptionListSummaryApi = orchestratorApi.injectEndpoints({
|
|
|
55607
55622
|
});
|
|
55608
55623
|
var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
|
|
55609
55624
|
|
|
55625
|
+
// src/pages/startPage/mappers.ts
|
|
55626
|
+
var mapProcessSummaryToSummaryCardListItem = (processSummary) => ({
|
|
55627
|
+
title: processSummary.workflowName,
|
|
55628
|
+
value: formatDate(processSummary == null ? void 0 : processSummary.startedAt),
|
|
55629
|
+
url: `${PATH_WORKFLOWS}/${processSummary.processId}`
|
|
55630
|
+
});
|
|
55631
|
+
var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
|
|
55632
|
+
title: subscription.description,
|
|
55633
|
+
value: formatDate(subscription.startDate),
|
|
55634
|
+
url: `${PATH_SUBSCRIPTIONS}/${subscription.subscriptionId}`
|
|
55635
|
+
});
|
|
55636
|
+
|
|
55637
|
+
// src/pages/startPage/queryVariables.ts
|
|
55638
|
+
var baseQueryVariables = {
|
|
55639
|
+
first: 5,
|
|
55640
|
+
after: 0
|
|
55641
|
+
};
|
|
55642
|
+
var baseQueryVariablesForSubscription = __spreadProps(__spreadValues({}, baseQueryVariables), {
|
|
55643
|
+
sortBy: {
|
|
55644
|
+
field: "startDate",
|
|
55645
|
+
order: "DESC" /* DESC */
|
|
55646
|
+
}
|
|
55647
|
+
});
|
|
55648
|
+
var baseQueryVariablesForProcess = __spreadProps(__spreadValues({}, baseQueryVariables), {
|
|
55649
|
+
sortBy: {
|
|
55650
|
+
field: "startedAt",
|
|
55651
|
+
order: "DESC" /* DESC */
|
|
55652
|
+
}
|
|
55653
|
+
});
|
|
55654
|
+
var getTaskFilter = (isTask) => {
|
|
55655
|
+
return {
|
|
55656
|
+
// Todo: isTask is not a key of Process
|
|
55657
|
+
// However, backend still supports it. Field should not be a keyof ProcessListItem (or process)
|
|
55658
|
+
// https://github.com/workfloworchestrator/orchestrator-ui/issues/290
|
|
55659
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
55660
|
+
// @ts-ignore waiting for fix in backend
|
|
55661
|
+
field: "isTask",
|
|
55662
|
+
value: isTask ? "true" : "false"
|
|
55663
|
+
};
|
|
55664
|
+
};
|
|
55665
|
+
var subscriptionsListSummaryQueryVariables = __spreadProps(__spreadValues({}, baseQueryVariablesForSubscription), {
|
|
55666
|
+
filterBy: [
|
|
55667
|
+
{
|
|
55668
|
+
field: "status",
|
|
55669
|
+
value: "Active"
|
|
55670
|
+
}
|
|
55671
|
+
]
|
|
55672
|
+
});
|
|
55673
|
+
var outOfSyncSubscriptionsListSummaryQueryVariables = __spreadProps(__spreadValues({}, baseQueryVariablesForSubscription), {
|
|
55674
|
+
query: "insync:false",
|
|
55675
|
+
filterBy: [
|
|
55676
|
+
{
|
|
55677
|
+
field: "status",
|
|
55678
|
+
value: "Active-Provisioning"
|
|
55679
|
+
}
|
|
55680
|
+
]
|
|
55681
|
+
});
|
|
55682
|
+
var getMyWorkflowListSummaryQueryVariables = (username) => __spreadProps(__spreadValues({}, baseQueryVariablesForProcess), {
|
|
55683
|
+
filterBy: [
|
|
55684
|
+
getTaskFilter(false),
|
|
55685
|
+
{
|
|
55686
|
+
field: "createdBy",
|
|
55687
|
+
value: username
|
|
55688
|
+
}
|
|
55689
|
+
]
|
|
55690
|
+
});
|
|
55691
|
+
var activeWorkflowsListSummaryQueryVariables = __spreadProps(__spreadValues({}, baseQueryVariablesForProcess), {
|
|
55692
|
+
filterBy: [
|
|
55693
|
+
getTaskFilter(false),
|
|
55694
|
+
{
|
|
55695
|
+
field: "lastStatus",
|
|
55696
|
+
value: "created-running-suspended-waiting-failed-resumed-inconsistent_data-api_unavailable-awaiting_callback"
|
|
55697
|
+
}
|
|
55698
|
+
]
|
|
55699
|
+
});
|
|
55700
|
+
var taskListSummaryQueryVariables = __spreadProps(__spreadValues({}, baseQueryVariablesForProcess), {
|
|
55701
|
+
filterBy: [
|
|
55702
|
+
getTaskFilter(true),
|
|
55703
|
+
{
|
|
55704
|
+
field: "lastStatus",
|
|
55705
|
+
value: "failed-inconsistent_data-api_unavailable"
|
|
55706
|
+
}
|
|
55707
|
+
]
|
|
55708
|
+
});
|
|
55709
|
+
var productsSummaryQueryVariables = {
|
|
55710
|
+
first: 1e3,
|
|
55711
|
+
after: 0,
|
|
55712
|
+
sortBy: {
|
|
55713
|
+
field: "name",
|
|
55714
|
+
order: "ASC" /* ASC */
|
|
55715
|
+
}
|
|
55716
|
+
};
|
|
55717
|
+
|
|
55718
|
+
// src/pages/startPage/useStartPageSummaryCardConfigurationOverride.ts
|
|
55719
|
+
var useStartPageSummaryCardConfigurationOverride = () => {
|
|
55720
|
+
const overrideSummaryCards = useAppSelector(
|
|
55721
|
+
(state) => {
|
|
55722
|
+
var _a, _b;
|
|
55723
|
+
return (_b = (_a = state.orchestratorComponentOverride) == null ? void 0 : _a.startPage) == null ? void 0 : _b.summaryCardConfigurationOverride;
|
|
55724
|
+
}
|
|
55725
|
+
);
|
|
55726
|
+
return {
|
|
55727
|
+
overrideSummaryCards
|
|
55728
|
+
};
|
|
55729
|
+
};
|
|
55730
|
+
|
|
55610
55731
|
// src/pages/startPage/WfoStartPage.tsx
|
|
55611
|
-
import { jsx as
|
|
55732
|
+
import { jsx as jsx175, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
55612
55733
|
var WfoStartPage = () => {
|
|
55613
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
55614
|
-
const t =
|
|
55734
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
55735
|
+
const t = useTranslations54("startPage");
|
|
55736
|
+
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
55615
55737
|
const { isAllowed } = usePolicy();
|
|
55738
|
+
const { session } = useWfoSession();
|
|
55739
|
+
const username = (_b = (_a = session == null ? void 0 : session.user) == null ? void 0 : _a.name) != null ? _b : "";
|
|
55616
55740
|
const {
|
|
55617
55741
|
data: subscriptionsSummaryResult,
|
|
55618
55742
|
isLoading: subscriptionsSummaryIsFetching
|
|
@@ -55626,9 +55750,15 @@ var WfoStartPage = () => {
|
|
|
55626
55750
|
outOfSyncSubscriptionsListSummaryQueryVariables
|
|
55627
55751
|
);
|
|
55628
55752
|
const {
|
|
55629
|
-
data:
|
|
55630
|
-
isFetching:
|
|
55631
|
-
} = useGetProcessListSummaryQuery(
|
|
55753
|
+
data: activeWorkflowsSummaryResponse,
|
|
55754
|
+
isFetching: activeWorkflowsSummaryIsFetching
|
|
55755
|
+
} = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
|
|
55756
|
+
const {
|
|
55757
|
+
data: myWorkflowsSummaryResponse,
|
|
55758
|
+
isFetching: myWorkflowsSummaryIsFetching
|
|
55759
|
+
} = useGetProcessListSummaryQuery(
|
|
55760
|
+
getMyWorkflowListSummaryQueryVariables(username)
|
|
55761
|
+
);
|
|
55632
55762
|
const {
|
|
55633
55763
|
data: failedTasksSummaryResponse,
|
|
55634
55764
|
isFetching: failedTasksSummaryIsFetching
|
|
@@ -55639,14 +55769,13 @@ var WfoStartPage = () => {
|
|
|
55639
55769
|
} = useGetProductsSummaryQuery(productsSummaryQueryVariables);
|
|
55640
55770
|
const latestActiveSubscriptionsSummaryCard = {
|
|
55641
55771
|
headerTitle: t("activeSubscriptions.headerTitle"),
|
|
55642
|
-
headerValue: (
|
|
55772
|
+
headerValue: (_c = subscriptionsSummaryResult == null ? void 0 : subscriptionsSummaryResult.pageInfo.totalItems) != null ? _c : 0,
|
|
55643
55773
|
headerStatus: "Neutral" /* Neutral */,
|
|
55644
55774
|
listTitle: t("activeSubscriptions.listTitle"),
|
|
55645
|
-
listItems: (
|
|
55646
|
-
|
|
55647
|
-
|
|
55648
|
-
|
|
55649
|
-
}))) != null ? _b : [],
|
|
55775
|
+
listItems: optionalArrayMapper(
|
|
55776
|
+
subscriptionsSummaryResult == null ? void 0 : subscriptionsSummaryResult.subscriptions,
|
|
55777
|
+
mapSubscriptionSummaryToSummaryCardListItem
|
|
55778
|
+
),
|
|
55650
55779
|
button: {
|
|
55651
55780
|
name: t("activeSubscriptions.buttonText"),
|
|
55652
55781
|
url: PATH_SUBSCRIPTIONS
|
|
@@ -55655,48 +55784,58 @@ var WfoStartPage = () => {
|
|
|
55655
55784
|
};
|
|
55656
55785
|
const latestOutOfSyncSubscriptionsSummaryCard = {
|
|
55657
55786
|
headerTitle: t("outOfSyncSubscriptions.headerTitle"),
|
|
55658
|
-
headerValue: (
|
|
55787
|
+
headerValue: (_d = outOfSyncSubscriptionsSummaryResult == null ? void 0 : outOfSyncSubscriptionsSummaryResult.pageInfo.totalItems) != null ? _d : 0,
|
|
55659
55788
|
headerStatus: "Error" /* Error */,
|
|
55660
55789
|
listTitle: t("outOfSyncSubscriptions.listTitle"),
|
|
55661
|
-
listItems: (
|
|
55662
|
-
|
|
55663
|
-
|
|
55664
|
-
|
|
55665
|
-
url: `${PATH_SUBSCRIPTIONS}/${subscription.subscriptionId}`
|
|
55666
|
-
})
|
|
55667
|
-
)) != null ? _d : [],
|
|
55790
|
+
listItems: optionalArrayMapper(
|
|
55791
|
+
outOfSyncSubscriptionsSummaryResult == null ? void 0 : outOfSyncSubscriptionsSummaryResult.subscriptions,
|
|
55792
|
+
mapSubscriptionSummaryToSummaryCardListItem
|
|
55793
|
+
),
|
|
55668
55794
|
button: {
|
|
55669
55795
|
name: t("outOfSyncSubscriptions.buttonText"),
|
|
55670
55796
|
url: `${PATH_SUBSCRIPTIONS}?activeTab=ALL&sortBy=field-startDate_order-ASC&queryString=status%3A%28provisioning%7Cactive%29+insync%3Afalse`
|
|
55671
55797
|
},
|
|
55672
55798
|
isLoading: outOfSyncsubscriptionsSummaryIsFetching
|
|
55673
55799
|
};
|
|
55674
|
-
const
|
|
55800
|
+
const activeWorkflowsSummaryCard = {
|
|
55675
55801
|
headerTitle: t("activeWorkflows.headerTitle"),
|
|
55676
|
-
headerValue: (_e =
|
|
55802
|
+
headerValue: (_e = activeWorkflowsSummaryResponse == null ? void 0 : activeWorkflowsSummaryResponse.pageInfo.totalItems) != null ? _e : 0,
|
|
55677
55803
|
headerStatus: "Success" /* Success */,
|
|
55678
55804
|
listTitle: t("activeWorkflows.listTitle"),
|
|
55679
|
-
listItems: (
|
|
55680
|
-
|
|
55681
|
-
|
|
55682
|
-
|
|
55683
|
-
}))) != null ? _f : [],
|
|
55805
|
+
listItems: optionalArrayMapper(
|
|
55806
|
+
activeWorkflowsSummaryResponse == null ? void 0 : activeWorkflowsSummaryResponse.processes,
|
|
55807
|
+
mapProcessSummaryToSummaryCardListItem
|
|
55808
|
+
),
|
|
55684
55809
|
button: {
|
|
55685
55810
|
name: t("activeWorkflows.buttonText"),
|
|
55686
55811
|
url: PATH_WORKFLOWS
|
|
55687
55812
|
},
|
|
55688
|
-
isLoading:
|
|
55813
|
+
isLoading: activeWorkflowsSummaryIsFetching
|
|
55814
|
+
};
|
|
55815
|
+
const myWorkflowsSummaryCard = {
|
|
55816
|
+
headerTitle: t("myWorkflows.headerTitle"),
|
|
55817
|
+
headerValue: (_f = myWorkflowsSummaryResponse == null ? void 0 : myWorkflowsSummaryResponse.pageInfo.totalItems) != null ? _f : 0,
|
|
55818
|
+
headerStatus: "Success" /* Success */,
|
|
55819
|
+
listTitle: t("myWorkflows.listTitle"),
|
|
55820
|
+
listItems: optionalArrayMapper(
|
|
55821
|
+
myWorkflowsSummaryResponse == null ? void 0 : myWorkflowsSummaryResponse.processes,
|
|
55822
|
+
mapProcessSummaryToSummaryCardListItem
|
|
55823
|
+
),
|
|
55824
|
+
button: username ? {
|
|
55825
|
+
name: t("myWorkflows.buttonText"),
|
|
55826
|
+
url: `${PATH_WORKFLOWS}?activeTab=COMPLETED&sortBy=field-lastModifiedAt_order-DESC&queryString=createdBy%3A${username}`
|
|
55827
|
+
} : void 0,
|
|
55828
|
+
isLoading: myWorkflowsSummaryIsFetching
|
|
55689
55829
|
};
|
|
55690
55830
|
const failedTasksSummaryCard = {
|
|
55691
55831
|
headerTitle: t("failedTasks.headerTitle"),
|
|
55692
55832
|
headerValue: (_g = failedTasksSummaryResponse == null ? void 0 : failedTasksSummaryResponse.pageInfo.totalItems) != null ? _g : 0,
|
|
55693
55833
|
headerStatus: "Error" /* Error */,
|
|
55694
55834
|
listTitle: t("failedTasks.listTitle"),
|
|
55695
|
-
listItems: (
|
|
55696
|
-
|
|
55697
|
-
|
|
55698
|
-
|
|
55699
|
-
}))) != null ? _h : [],
|
|
55835
|
+
listItems: optionalArrayMapper(
|
|
55836
|
+
failedTasksSummaryResponse == null ? void 0 : failedTasksSummaryResponse.processes,
|
|
55837
|
+
mapProcessSummaryToSummaryCardListItem
|
|
55838
|
+
),
|
|
55700
55839
|
button: {
|
|
55701
55840
|
name: t("failedTasks.buttonText"),
|
|
55702
55841
|
url: PATH_TASKS
|
|
@@ -55705,17 +55844,17 @@ var WfoStartPage = () => {
|
|
|
55705
55844
|
};
|
|
55706
55845
|
const productsSummaryCard = {
|
|
55707
55846
|
headerTitle: t("products.headerTitle"),
|
|
55708
|
-
headerValue: (
|
|
55847
|
+
headerValue: (_h = productsSummaryResult == null ? void 0 : productsSummaryResult.pageInfo.totalItems) != null ? _h : 0,
|
|
55709
55848
|
headerStatus: "Neutral" /* Neutral */,
|
|
55710
55849
|
listTitle: t("products.listTitle"),
|
|
55711
|
-
listItems: (
|
|
55850
|
+
listItems: (_j = [...(_i = productsSummaryResult == null ? void 0 : productsSummaryResult.products) != null ? _i : []].sort(
|
|
55712
55851
|
(left, right) => {
|
|
55713
55852
|
var _a2, _b2;
|
|
55714
55853
|
return ((_a2 = right.subscriptions.pageInfo.totalItems) != null ? _a2 : 0) - ((_b2 = left.subscriptions.pageInfo.totalItems) != null ? _b2 : 0);
|
|
55715
55854
|
}
|
|
55716
55855
|
).map((product) => ({
|
|
55717
55856
|
title: "",
|
|
55718
|
-
value: /* @__PURE__ */
|
|
55857
|
+
value: /* @__PURE__ */ jsxs99(
|
|
55719
55858
|
"div",
|
|
55720
55859
|
{
|
|
55721
55860
|
css: {
|
|
@@ -55723,122 +55862,41 @@ var WfoStartPage = () => {
|
|
|
55723
55862
|
justifyContent: "space-between"
|
|
55724
55863
|
},
|
|
55725
55864
|
children: [
|
|
55726
|
-
/* @__PURE__ */
|
|
55727
|
-
/* @__PURE__ */
|
|
55865
|
+
/* @__PURE__ */ jsx175("div", { children: product.name }),
|
|
55866
|
+
/* @__PURE__ */ jsx175("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
55728
55867
|
]
|
|
55729
55868
|
}
|
|
55730
55869
|
)
|
|
55731
|
-
}))) != null ?
|
|
55870
|
+
}))) != null ? _j : [],
|
|
55732
55871
|
isLoading: productsSummaryIsFetching
|
|
55733
55872
|
};
|
|
55734
|
-
function getFailedTasksSummarycard() {
|
|
55735
|
-
return isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */) ? [failedTasksSummaryCard] : [];
|
|
55736
|
-
}
|
|
55737
55873
|
const allowedSummaryCards = [
|
|
55738
|
-
|
|
55739
|
-
|
|
55874
|
+
...toOptionalArrayEntry(myWorkflowsSummaryCard, !!username),
|
|
55875
|
+
activeWorkflowsSummaryCard,
|
|
55876
|
+
...toOptionalArrayEntry(
|
|
55877
|
+
failedTasksSummaryCard,
|
|
55878
|
+
isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */)
|
|
55879
|
+
),
|
|
55740
55880
|
latestOutOfSyncSubscriptionsSummaryCard,
|
|
55741
55881
|
latestActiveSubscriptionsSummaryCard,
|
|
55742
55882
|
productsSummaryCard
|
|
55743
55883
|
];
|
|
55744
|
-
|
|
55745
|
-
};
|
|
55746
|
-
var subscriptionsListSummaryQueryVariables = {
|
|
55747
|
-
first: 5,
|
|
55748
|
-
after: 0,
|
|
55749
|
-
sortBy: {
|
|
55750
|
-
field: "startDate",
|
|
55751
|
-
order: "DESC" /* DESC */
|
|
55752
|
-
},
|
|
55753
|
-
filterBy: [
|
|
55754
|
-
{
|
|
55755
|
-
field: "status",
|
|
55756
|
-
value: "Active"
|
|
55757
|
-
}
|
|
55758
|
-
]
|
|
55759
|
-
};
|
|
55760
|
-
var outOfSyncSubscriptionsListSummaryQueryVariables = {
|
|
55761
|
-
first: 5,
|
|
55762
|
-
after: 0,
|
|
55763
|
-
sortBy: {
|
|
55764
|
-
field: "startDate",
|
|
55765
|
-
order: "ASC" /* ASC */
|
|
55766
|
-
},
|
|
55767
|
-
query: "insync:false",
|
|
55768
|
-
filterBy: [
|
|
55769
|
-
{
|
|
55770
|
-
field: "status",
|
|
55771
|
-
value: "Active-Provisioning"
|
|
55772
|
-
}
|
|
55773
|
-
]
|
|
55774
|
-
};
|
|
55775
|
-
var processListSummaryQueryVariables = {
|
|
55776
|
-
first: 5,
|
|
55777
|
-
after: 0,
|
|
55778
|
-
sortBy: {
|
|
55779
|
-
field: "startedAt",
|
|
55780
|
-
order: "DESC" /* DESC */
|
|
55781
|
-
},
|
|
55782
|
-
filterBy: [
|
|
55783
|
-
{
|
|
55784
|
-
// Todo: isTask is not a key of Process
|
|
55785
|
-
// However, backend still supports it. Field should not be a keyof ProcessListItem (or process)
|
|
55786
|
-
// https://github.com/workfloworchestrator/orchestrator-ui/issues/290
|
|
55787
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
55788
|
-
// @ts-ignore waiting for fix in backend
|
|
55789
|
-
field: "isTask",
|
|
55790
|
-
value: "false"
|
|
55791
|
-
},
|
|
55792
|
-
{
|
|
55793
|
-
field: "lastStatus",
|
|
55794
|
-
value: "created-running-suspended-waiting-failed-resumed-inconsistent_data-api_unavailable-awaiting_callback"
|
|
55795
|
-
}
|
|
55796
|
-
]
|
|
55797
|
-
};
|
|
55798
|
-
var taskListSummaryQueryVariables = {
|
|
55799
|
-
first: 5,
|
|
55800
|
-
after: 0,
|
|
55801
|
-
sortBy: {
|
|
55802
|
-
field: "startedAt",
|
|
55803
|
-
order: "DESC" /* DESC */
|
|
55804
|
-
},
|
|
55805
|
-
filterBy: [
|
|
55806
|
-
{
|
|
55807
|
-
// Todo: isTask is not a key of Process
|
|
55808
|
-
// However, backend still supports it. Field should not be a keyof ProcessListItem (or process)
|
|
55809
|
-
// https://github.com/workfloworchestrator/orchestrator-ui/issues/290
|
|
55810
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
55811
|
-
// @ts-ignore waiting for fix in backend
|
|
55812
|
-
field: "isTask",
|
|
55813
|
-
value: "true"
|
|
55814
|
-
},
|
|
55815
|
-
{
|
|
55816
|
-
field: "lastStatus",
|
|
55817
|
-
value: "failed-inconsistent_data-api_unavailable"
|
|
55818
|
-
}
|
|
55819
|
-
]
|
|
55820
|
-
};
|
|
55821
|
-
var productsSummaryQueryVariables = {
|
|
55822
|
-
first: 1e3,
|
|
55823
|
-
after: 0,
|
|
55824
|
-
sortBy: {
|
|
55825
|
-
field: "name",
|
|
55826
|
-
order: "ASC" /* ASC */
|
|
55827
|
-
}
|
|
55884
|
+
const summaryCards = (overrideSummaryCards == null ? void 0 : overrideSummaryCards(allowedSummaryCards)) || allowedSummaryCards;
|
|
55885
|
+
return /* @__PURE__ */ jsx175(EuiFlexItem33, { children: /* @__PURE__ */ jsx175(WfoSummaryCards, { summaryCards }) });
|
|
55828
55886
|
};
|
|
55829
55887
|
|
|
55830
55888
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
55831
55889
|
import { useRouter as useRouter13 } from "next/router";
|
|
55832
|
-
import { Fragment as
|
|
55890
|
+
import { Fragment as Fragment42, jsx as jsx176 } from "@emotion/react/jsx-runtime";
|
|
55833
55891
|
var WfoSubscriptionDetailPage = () => {
|
|
55834
55892
|
const router = useRouter13();
|
|
55835
55893
|
const { subscriptionId } = router.query;
|
|
55836
|
-
return subscriptionId && /* @__PURE__ */
|
|
55894
|
+
return subscriptionId && /* @__PURE__ */ jsx176(TreeProvider, { children: /* @__PURE__ */ jsx176(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx176(Fragment42, {});
|
|
55837
55895
|
};
|
|
55838
55896
|
|
|
55839
55897
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55840
55898
|
import { useEffect as useEffect26, useState as useState40 } from "react";
|
|
55841
|
-
import { useTranslations as
|
|
55899
|
+
import { useTranslations as useTranslations56 } from "next-intl";
|
|
55842
55900
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
55843
55901
|
import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
55844
55902
|
|
|
@@ -55921,7 +55979,7 @@ var subscriptionListTabs = [
|
|
|
55921
55979
|
];
|
|
55922
55980
|
|
|
55923
55981
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55924
|
-
import { useTranslations as
|
|
55982
|
+
import { useTranslations as useTranslations55 } from "next-intl";
|
|
55925
55983
|
import Link7 from "next/link";
|
|
55926
55984
|
import { useRouter as useRouter14 } from "next/router";
|
|
55927
55985
|
|
|
@@ -55993,7 +56051,7 @@ var subscriptionListApi = orchestratorApi.injectEndpoints({
|
|
|
55993
56051
|
var { useGetSubscriptionListQuery, useLazyGetSubscriptionListQuery } = subscriptionListApi;
|
|
55994
56052
|
|
|
55995
56053
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55996
|
-
import { jsx as
|
|
56054
|
+
import { jsx as jsx177 } from "@emotion/react/jsx-runtime";
|
|
55997
56055
|
var WfoSubscriptionsList = ({
|
|
55998
56056
|
alwaysOnFilters,
|
|
55999
56057
|
dataDisplayParams,
|
|
@@ -56002,34 +56060,34 @@ var WfoSubscriptionsList = ({
|
|
|
56002
56060
|
}) => {
|
|
56003
56061
|
var _a, _b, _c;
|
|
56004
56062
|
const router = useRouter14();
|
|
56005
|
-
const t =
|
|
56006
|
-
const tError =
|
|
56063
|
+
const t = useTranslations55("subscriptions.index");
|
|
56064
|
+
const tError = useTranslations55("errors");
|
|
56007
56065
|
const { showToastMessage } = useShowToastMessage();
|
|
56008
56066
|
const tableColumns = {
|
|
56009
56067
|
subscriptionId: {
|
|
56010
56068
|
field: "subscriptionId",
|
|
56011
56069
|
name: t("id"),
|
|
56012
56070
|
width: "100",
|
|
56013
|
-
render: (value) => /* @__PURE__ */
|
|
56071
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoFirstPartUUID, { UUID: value }),
|
|
56014
56072
|
renderDetails: (value) => value
|
|
56015
56073
|
},
|
|
56016
56074
|
description: {
|
|
56017
56075
|
field: "description",
|
|
56018
56076
|
name: t("description"),
|
|
56019
56077
|
width: "400",
|
|
56020
|
-
render: (value, record) => /* @__PURE__ */
|
|
56078
|
+
render: (value, record) => /* @__PURE__ */ jsx177(Link7, { href: `/subscriptions/${record.subscriptionId}`, children: value })
|
|
56021
56079
|
},
|
|
56022
56080
|
status: {
|
|
56023
56081
|
field: "status",
|
|
56024
56082
|
name: t("status"),
|
|
56025
56083
|
width: "110",
|
|
56026
|
-
render: (value) => /* @__PURE__ */
|
|
56084
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoSubscriptionStatusBadge, { status: value })
|
|
56027
56085
|
},
|
|
56028
56086
|
insync: {
|
|
56029
56087
|
field: "insync",
|
|
56030
56088
|
name: t("insync"),
|
|
56031
56089
|
width: "110",
|
|
56032
|
-
render: (value) => /* @__PURE__ */
|
|
56090
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoInsyncIcon, { inSync: value })
|
|
56033
56091
|
},
|
|
56034
56092
|
productName: {
|
|
56035
56093
|
field: "productName",
|
|
@@ -56054,7 +56112,7 @@ var WfoSubscriptionsList = ({
|
|
|
56054
56112
|
field: "startDate",
|
|
56055
56113
|
name: t("startDate"),
|
|
56056
56114
|
width: "150",
|
|
56057
|
-
render: (value) => /* @__PURE__ */
|
|
56115
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoDateTime, { dateOrIsoString: value }),
|
|
56058
56116
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56059
56117
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56060
56118
|
},
|
|
@@ -56062,7 +56120,7 @@ var WfoSubscriptionsList = ({
|
|
|
56062
56120
|
field: "endDate",
|
|
56063
56121
|
name: t("endDate"),
|
|
56064
56122
|
width: "150",
|
|
56065
|
-
render: (value) => /* @__PURE__ */
|
|
56123
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoDateTime, { dateOrIsoString: value }),
|
|
56066
56124
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56067
56125
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56068
56126
|
},
|
|
@@ -56073,8 +56131,8 @@ var WfoSubscriptionsList = ({
|
|
|
56073
56131
|
metadata: {
|
|
56074
56132
|
field: "metadata",
|
|
56075
56133
|
name: t("metadata"),
|
|
56076
|
-
render: (value) => /* @__PURE__ */
|
|
56077
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
56134
|
+
render: (value) => /* @__PURE__ */ jsx177(WfoInlineJson, { data: value }),
|
|
56135
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx177(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
|
|
56078
56136
|
}
|
|
56079
56137
|
};
|
|
56080
56138
|
const { sortBy, queryString, pageIndex, pageSize } = dataDisplayParams;
|
|
@@ -56108,7 +56166,7 @@ var WfoSubscriptionsList = ({
|
|
|
56108
56166
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
56109
56167
|
totalItemCount: totalItems != null ? totalItems : 0
|
|
56110
56168
|
};
|
|
56111
|
-
return /* @__PURE__ */
|
|
56169
|
+
return /* @__PURE__ */ jsx177(
|
|
56112
56170
|
WfoTableWithFilter,
|
|
56113
56171
|
{
|
|
56114
56172
|
queryString: dataDisplayParams.queryString,
|
|
@@ -56149,10 +56207,10 @@ var WfoSubscriptionsList = ({
|
|
|
56149
56207
|
};
|
|
56150
56208
|
|
|
56151
56209
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
56152
|
-
import { Fragment as
|
|
56210
|
+
import { Fragment as Fragment43, jsx as jsx178, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
56153
56211
|
var WfoSubscriptionsListPage = () => {
|
|
56154
56212
|
var _a;
|
|
56155
|
-
const t =
|
|
56213
|
+
const t = useTranslations56("subscriptions.detail");
|
|
56156
56214
|
const [tableDefaults, setTableDefaults] = useState40();
|
|
56157
56215
|
const getStoredTableConfig = useStoredTableConfig(
|
|
56158
56216
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
@@ -56189,11 +56247,11 @@ var WfoSubscriptionsListPage = () => {
|
|
|
56189
56247
|
const alwaysOnFilters = (_a = subscriptionListTabs.find(
|
|
56190
56248
|
({ id }) => id === activeTab
|
|
56191
56249
|
)) == null ? void 0 : _a.alwaysOnFilters;
|
|
56192
|
-
return /* @__PURE__ */
|
|
56193
|
-
/* @__PURE__ */
|
|
56194
|
-
/* @__PURE__ */
|
|
56195
|
-
/* @__PURE__ */
|
|
56196
|
-
/* @__PURE__ */
|
|
56250
|
+
return /* @__PURE__ */ jsxs100(Fragment43, { children: [
|
|
56251
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, {}),
|
|
56252
|
+
/* @__PURE__ */ jsx178(EuiPageHeader4, { pageTitle: t("title") }),
|
|
56253
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, { size: "m" }),
|
|
56254
|
+
/* @__PURE__ */ jsx178(
|
|
56197
56255
|
WfoFilterTabs,
|
|
56198
56256
|
{
|
|
56199
56257
|
tabs: subscriptionListTabs,
|
|
@@ -56202,8 +56260,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
56202
56260
|
onChangeTab: handleChangeSubscriptionsTab
|
|
56203
56261
|
}
|
|
56204
56262
|
),
|
|
56205
|
-
/* @__PURE__ */
|
|
56206
|
-
/* @__PURE__ */
|
|
56263
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, { size: "xxl" }),
|
|
56264
|
+
/* @__PURE__ */ jsx178(
|
|
56207
56265
|
WfoSubscriptionsList,
|
|
56208
56266
|
{
|
|
56209
56267
|
hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -56217,7 +56275,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
56217
56275
|
|
|
56218
56276
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
56219
56277
|
import { useContext as useContext14, useEffect as useEffect27, useState as useState41 } from "react";
|
|
56220
|
-
import { useTranslations as
|
|
56278
|
+
import { useTranslations as useTranslations57 } from "next-intl";
|
|
56221
56279
|
import Link8 from "next/link";
|
|
56222
56280
|
import { useRouter as useRouter15 } from "next/router";
|
|
56223
56281
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
@@ -56292,11 +56350,11 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
56292
56350
|
};
|
|
56293
56351
|
|
|
56294
56352
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
56295
|
-
import { Fragment as
|
|
56353
|
+
import { Fragment as Fragment44, jsx as jsx179, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
56296
56354
|
var WfoTasksListPage = () => {
|
|
56297
56355
|
var _a;
|
|
56298
56356
|
const router = useRouter15();
|
|
56299
|
-
const t =
|
|
56357
|
+
const t = useTranslations57("tasks.page");
|
|
56300
56358
|
const [activeTab, setActiveTab] = useQueryParam3(
|
|
56301
56359
|
"activeTab",
|
|
56302
56360
|
withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
|
|
@@ -56349,7 +56407,7 @@ var WfoTasksListPage = () => {
|
|
|
56349
56407
|
workflowName: {
|
|
56350
56408
|
field: "workflowName",
|
|
56351
56409
|
name: t("taskName"),
|
|
56352
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56410
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx179(Link8, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
56353
56411
|
},
|
|
56354
56412
|
lastStep: defaultTableColumns.lastStep,
|
|
56355
56413
|
lastStatus: defaultTableColumns.lastStatus,
|
|
@@ -56365,21 +56423,21 @@ var WfoTasksListPage = () => {
|
|
|
56365
56423
|
startedAt: defaultTableColumns.startedAt,
|
|
56366
56424
|
lastModifiedAt: defaultTableColumns.lastModifiedAt
|
|
56367
56425
|
});
|
|
56368
|
-
return /* @__PURE__ */
|
|
56369
|
-
/* @__PURE__ */
|
|
56370
|
-
/* @__PURE__ */
|
|
56371
|
-
/* @__PURE__ */
|
|
56372
|
-
/* @__PURE__ */
|
|
56426
|
+
return /* @__PURE__ */ jsxs101(Fragment44, { children: [
|
|
56427
|
+
/* @__PURE__ */ jsx179(EuiSpacer21, {}),
|
|
56428
|
+
/* @__PURE__ */ jsxs101(EuiFlexGroup24, { children: [
|
|
56429
|
+
/* @__PURE__ */ jsx179(EuiFlexItem34, { children: /* @__PURE__ */ jsx179(EuiPageHeader5, { pageTitle: "Tasks" }) }),
|
|
56430
|
+
/* @__PURE__ */ jsx179(EuiFlexItem34, { children: /* @__PURE__ */ jsxs101(EuiFlexGroup24, { justifyContent: "flexEnd", children: [
|
|
56373
56431
|
" ",
|
|
56374
|
-
/* @__PURE__ */
|
|
56432
|
+
/* @__PURE__ */ jsx179(
|
|
56375
56433
|
WfoIsAllowedToRender,
|
|
56376
56434
|
{
|
|
56377
56435
|
resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
|
|
56378
|
-
children: /* @__PURE__ */
|
|
56436
|
+
children: /* @__PURE__ */ jsx179(
|
|
56379
56437
|
EuiButton14,
|
|
56380
56438
|
{
|
|
56381
56439
|
onClick: handleRerunAllButtonClick,
|
|
56382
|
-
iconType: () => /* @__PURE__ */
|
|
56440
|
+
iconType: () => /* @__PURE__ */ jsx179(
|
|
56383
56441
|
WfoRefresh,
|
|
56384
56442
|
{
|
|
56385
56443
|
color: theme.colors.primaryText
|
|
@@ -56390,16 +56448,16 @@ var WfoTasksListPage = () => {
|
|
|
56390
56448
|
)
|
|
56391
56449
|
}
|
|
56392
56450
|
),
|
|
56393
|
-
/* @__PURE__ */
|
|
56451
|
+
/* @__PURE__ */ jsx179(
|
|
56394
56452
|
WfoIsAllowedToRender,
|
|
56395
56453
|
{
|
|
56396
56454
|
resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
|
|
56397
|
-
children: /* @__PURE__ */
|
|
56455
|
+
children: /* @__PURE__ */ jsx179(WfoStartTaskButtonComboBox, {})
|
|
56398
56456
|
}
|
|
56399
56457
|
)
|
|
56400
56458
|
] }) })
|
|
56401
56459
|
] }),
|
|
56402
|
-
/* @__PURE__ */
|
|
56460
|
+
/* @__PURE__ */ jsx179(
|
|
56403
56461
|
WfoFilterTabs,
|
|
56404
56462
|
{
|
|
56405
56463
|
tabs: defaultTasksListTabs,
|
|
@@ -56408,8 +56466,8 @@ var WfoTasksListPage = () => {
|
|
|
56408
56466
|
onChangeTab: handleChangeTasksListTab
|
|
56409
56467
|
}
|
|
56410
56468
|
),
|
|
56411
|
-
/* @__PURE__ */
|
|
56412
|
-
/* @__PURE__ */
|
|
56469
|
+
/* @__PURE__ */ jsx179(EuiSpacer21, { size: "xxl" }),
|
|
56470
|
+
/* @__PURE__ */ jsx179(
|
|
56413
56471
|
WfoProcessesList,
|
|
56414
56472
|
{
|
|
56415
56473
|
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -56425,7 +56483,7 @@ var WfoTasksListPage = () => {
|
|
|
56425
56483
|
|
|
56426
56484
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
56427
56485
|
import { useEffect as useEffect28, useState as useState42 } from "react";
|
|
56428
|
-
import { useTranslations as
|
|
56486
|
+
import { useTranslations as useTranslations58 } from "next-intl";
|
|
56429
56487
|
import { useRouter as useRouter16 } from "next/router";
|
|
56430
56488
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
56431
56489
|
import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer22 } from "@elastic/eui";
|
|
@@ -56493,11 +56551,11 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
56493
56551
|
};
|
|
56494
56552
|
|
|
56495
56553
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
56496
|
-
import { Fragment as
|
|
56554
|
+
import { Fragment as Fragment45, jsx as jsx180, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
56497
56555
|
var WfoWorkflowsListPage = () => {
|
|
56498
56556
|
var _a;
|
|
56499
56557
|
const router = useRouter16();
|
|
56500
|
-
const t =
|
|
56558
|
+
const t = useTranslations58("workflows.index");
|
|
56501
56559
|
const [activeTab, setActiveTab] = useQueryParam4(
|
|
56502
56560
|
"activeTab",
|
|
56503
56561
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
@@ -56532,11 +56590,11 @@ var WfoWorkflowsListPage = () => {
|
|
|
56532
56590
|
router.replace(PATH_WORKFLOWS);
|
|
56533
56591
|
return null;
|
|
56534
56592
|
}
|
|
56535
|
-
return /* @__PURE__ */
|
|
56536
|
-
/* @__PURE__ */
|
|
56537
|
-
/* @__PURE__ */
|
|
56538
|
-
/* @__PURE__ */
|
|
56539
|
-
/* @__PURE__ */
|
|
56593
|
+
return /* @__PURE__ */ jsxs102(Fragment45, { children: [
|
|
56594
|
+
/* @__PURE__ */ jsx180(EuiSpacer22, {}),
|
|
56595
|
+
/* @__PURE__ */ jsx180(EuiPageHeader6, { pageTitle: t("title") }),
|
|
56596
|
+
/* @__PURE__ */ jsx180(EuiSpacer22, { size: "m" }),
|
|
56597
|
+
/* @__PURE__ */ jsx180(
|
|
56540
56598
|
WfoFilterTabs,
|
|
56541
56599
|
{
|
|
56542
56600
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -56545,8 +56603,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
56545
56603
|
onChangeTab: handleChangeWorkflowsListTab
|
|
56546
56604
|
}
|
|
56547
56605
|
),
|
|
56548
|
-
/* @__PURE__ */
|
|
56549
|
-
/* @__PURE__ */
|
|
56606
|
+
/* @__PURE__ */ jsx180(EuiSpacer22, { size: "xxl" }),
|
|
56607
|
+
/* @__PURE__ */ jsx180(
|
|
56550
56608
|
WfoProcessesList,
|
|
56551
56609
|
{
|
|
56552
56610
|
alwaysOnFilters,
|
|
@@ -56656,7 +56714,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
|
|
|
56656
56714
|
}));
|
|
56657
56715
|
|
|
56658
56716
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
56659
|
-
import { jsx as
|
|
56717
|
+
import { jsx as jsx181 } from "@emotion/react/jsx-runtime";
|
|
56660
56718
|
var WfoProcessesList = ({
|
|
56661
56719
|
alwaysOnFilters,
|
|
56662
56720
|
defaultHiddenColumns = [],
|
|
@@ -56666,15 +56724,15 @@ var WfoProcessesList = ({
|
|
|
56666
56724
|
overrideDefaultTableColumns
|
|
56667
56725
|
}) => {
|
|
56668
56726
|
var _a, _b;
|
|
56669
|
-
const t =
|
|
56670
|
-
const tError =
|
|
56727
|
+
const t = useTranslations59("processes.index");
|
|
56728
|
+
const tError = useTranslations59("errors");
|
|
56671
56729
|
const { showToastMessage } = useShowToastMessage();
|
|
56672
56730
|
const defaultTableColumns = {
|
|
56673
56731
|
workflowName: {
|
|
56674
56732
|
field: "workflowName",
|
|
56675
56733
|
name: t("workflowName"),
|
|
56676
56734
|
width: "20%",
|
|
56677
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56735
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx181(Link9, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
|
|
56678
56736
|
},
|
|
56679
56737
|
lastStep: {
|
|
56680
56738
|
field: "lastStep",
|
|
@@ -56685,13 +56743,13 @@ var WfoProcessesList = ({
|
|
|
56685
56743
|
field: "lastStatus",
|
|
56686
56744
|
name: t("status"),
|
|
56687
56745
|
width: "100",
|
|
56688
|
-
render: (cellValue) => /* @__PURE__ */
|
|
56746
|
+
render: (cellValue) => /* @__PURE__ */ jsx181(WfoProcessStatusBadge, { processStatus: cellValue })
|
|
56689
56747
|
},
|
|
56690
56748
|
workflowTarget: {
|
|
56691
56749
|
field: "workflowTarget",
|
|
56692
56750
|
name: t("workflowTarget"),
|
|
56693
56751
|
width: "100",
|
|
56694
|
-
render: (target) => /* @__PURE__ */
|
|
56752
|
+
render: (target) => /* @__PURE__ */ jsx181(WfoWorkflowTargetBadge, { target })
|
|
56695
56753
|
},
|
|
56696
56754
|
tag: {
|
|
56697
56755
|
field: "tag",
|
|
@@ -56717,14 +56775,14 @@ var WfoProcessesList = ({
|
|
|
56717
56775
|
field: "subscriptions",
|
|
56718
56776
|
name: t("subscriptions"),
|
|
56719
56777
|
width: "15%",
|
|
56720
|
-
render: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56778
|
+
render: ({ page: subscriptions }) => /* @__PURE__ */ jsx181(
|
|
56721
56779
|
WfoProcessListSubscriptionsCell,
|
|
56722
56780
|
{
|
|
56723
56781
|
subscriptions,
|
|
56724
56782
|
numberOfSubscriptionsToRender: 1
|
|
56725
56783
|
}
|
|
56726
56784
|
),
|
|
56727
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56785
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx181(
|
|
56728
56786
|
WfoProcessListSubscriptionsCell,
|
|
56729
56787
|
{
|
|
56730
56788
|
subscriptions
|
|
@@ -56746,14 +56804,14 @@ var WfoProcessesList = ({
|
|
|
56746
56804
|
field: "processId",
|
|
56747
56805
|
name: t("processId"),
|
|
56748
56806
|
width: "90",
|
|
56749
|
-
render: (value) => /* @__PURE__ */
|
|
56807
|
+
render: (value) => /* @__PURE__ */ jsx181(WfoFirstPartUUID, { UUID: value }),
|
|
56750
56808
|
renderDetails: (value) => value
|
|
56751
56809
|
},
|
|
56752
56810
|
startedAt: {
|
|
56753
56811
|
field: "startedAt",
|
|
56754
56812
|
name: t("started"),
|
|
56755
56813
|
width: "100",
|
|
56756
|
-
render: (value) => /* @__PURE__ */
|
|
56814
|
+
render: (value) => /* @__PURE__ */ jsx181(WfoDateTime, { dateOrIsoString: value }),
|
|
56757
56815
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56758
56816
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56759
56817
|
},
|
|
@@ -56761,7 +56819,7 @@ var WfoProcessesList = ({
|
|
|
56761
56819
|
field: "lastModifiedAt",
|
|
56762
56820
|
name: t("lastModified"),
|
|
56763
56821
|
width: "100",
|
|
56764
|
-
render: (value) => /* @__PURE__ */
|
|
56822
|
+
render: (value) => /* @__PURE__ */ jsx181(WfoDateTime, { dateOrIsoString: value }),
|
|
56765
56823
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56766
56824
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56767
56825
|
}
|
|
@@ -56791,7 +56849,7 @@ var WfoProcessesList = ({
|
|
|
56791
56849
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
56792
56850
|
getQueryVariablesForExport(processListQueryVars)
|
|
56793
56851
|
).unwrap();
|
|
56794
|
-
return /* @__PURE__ */
|
|
56852
|
+
return /* @__PURE__ */ jsx181(
|
|
56795
56853
|
WfoTableWithFilter,
|
|
56796
56854
|
{
|
|
56797
56855
|
queryString,
|
|
@@ -56855,14 +56913,14 @@ var getStyles16 = (theme) => {
|
|
|
56855
56913
|
};
|
|
56856
56914
|
|
|
56857
56915
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
56858
|
-
import { jsx as
|
|
56916
|
+
import { jsx as jsx182 } from "@emotion/react/jsx-runtime";
|
|
56859
56917
|
var WfoJsonCodeBlock = ({
|
|
56860
56918
|
data,
|
|
56861
56919
|
isBasicStyle = false
|
|
56862
56920
|
}) => {
|
|
56863
56921
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles16);
|
|
56864
56922
|
const json = JSON.stringify(data, null, 4);
|
|
56865
|
-
return /* @__PURE__ */
|
|
56923
|
+
return /* @__PURE__ */ jsx182(
|
|
56866
56924
|
EuiCodeBlock2,
|
|
56867
56925
|
{
|
|
56868
56926
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -56876,18 +56934,18 @@ var WfoJsonCodeBlock = ({
|
|
|
56876
56934
|
|
|
56877
56935
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
56878
56936
|
import { useState as useState43 } from "react";
|
|
56879
|
-
import { useTranslations as
|
|
56937
|
+
import { useTranslations as useTranslations60 } from "next-intl";
|
|
56880
56938
|
import {
|
|
56881
56939
|
EuiButton as EuiButton15,
|
|
56882
56940
|
EuiComboBox,
|
|
56883
56941
|
EuiPanel as EuiPanel9,
|
|
56884
56942
|
EuiSpacer as EuiSpacer23,
|
|
56885
|
-
EuiText as
|
|
56943
|
+
EuiText as EuiText38
|
|
56886
56944
|
} from "@elastic/eui";
|
|
56887
|
-
import { jsx as
|
|
56945
|
+
import { jsx as jsx183, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
56888
56946
|
var WfoFlushSettings = () => {
|
|
56889
56947
|
const [clearCache] = useClearCacheMutation();
|
|
56890
|
-
const t =
|
|
56948
|
+
const t = useTranslations60("settings.page");
|
|
56891
56949
|
const [selectedOptions, setSelected] = useState43(
|
|
56892
56950
|
[]
|
|
56893
56951
|
);
|
|
@@ -56919,7 +56977,7 @@ var WfoFlushSettings = () => {
|
|
|
56919
56977
|
);
|
|
56920
56978
|
});
|
|
56921
56979
|
};
|
|
56922
|
-
return /* @__PURE__ */
|
|
56980
|
+
return /* @__PURE__ */ jsxs103(
|
|
56923
56981
|
EuiPanel9,
|
|
56924
56982
|
{
|
|
56925
56983
|
hasShadow: false,
|
|
@@ -56927,9 +56985,9 @@ var WfoFlushSettings = () => {
|
|
|
56927
56985
|
paddingSize: "l",
|
|
56928
56986
|
style: { width: "50%" },
|
|
56929
56987
|
children: [
|
|
56930
|
-
/* @__PURE__ */
|
|
56931
|
-
/* @__PURE__ */
|
|
56932
|
-
/* @__PURE__ */
|
|
56988
|
+
/* @__PURE__ */ jsx183(EuiText38, { size: "s", children: /* @__PURE__ */ jsx183("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
56989
|
+
/* @__PURE__ */ jsx183(EuiSpacer23, { size: "m" }),
|
|
56990
|
+
/* @__PURE__ */ jsx183(
|
|
56933
56991
|
EuiComboBox,
|
|
56934
56992
|
{
|
|
56935
56993
|
"aria-label": "Flush settings",
|
|
@@ -56941,26 +56999,26 @@ var WfoFlushSettings = () => {
|
|
|
56941
56999
|
fullWidth: true
|
|
56942
57000
|
}
|
|
56943
57001
|
),
|
|
56944
|
-
/* @__PURE__ */
|
|
56945
|
-
/* @__PURE__ */
|
|
57002
|
+
/* @__PURE__ */ jsx183(EuiSpacer23, { size: "m" }),
|
|
57003
|
+
/* @__PURE__ */ jsx183(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
56946
57004
|
]
|
|
56947
57005
|
}
|
|
56948
57006
|
);
|
|
56949
57007
|
};
|
|
56950
57008
|
|
|
56951
57009
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
56952
|
-
import { useTranslations as
|
|
57010
|
+
import { useTranslations as useTranslations61 } from "next-intl";
|
|
56953
57011
|
import { EuiButton as EuiButton16 } from "@elastic/eui";
|
|
56954
|
-
import { jsx as
|
|
57012
|
+
import { jsx as jsx184 } from "@emotion/react/jsx-runtime";
|
|
56955
57013
|
var WfoEngineStatusButton = () => {
|
|
56956
57014
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
56957
57015
|
const { engineStatus } = data || {};
|
|
56958
57016
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
56959
|
-
const t =
|
|
57017
|
+
const t = useTranslations61("settings.page");
|
|
56960
57018
|
if (isLoading || isSettingEngineStatus) {
|
|
56961
|
-
return /* @__PURE__ */
|
|
57019
|
+
return /* @__PURE__ */ jsx184(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
|
|
56962
57020
|
}
|
|
56963
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
57021
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx184(
|
|
56964
57022
|
EuiButton16,
|
|
56965
57023
|
{
|
|
56966
57024
|
onClick: () => setEngineStatus(true),
|
|
@@ -56969,7 +57027,7 @@ var WfoEngineStatusButton = () => {
|
|
|
56969
57027
|
iconType: "pause",
|
|
56970
57028
|
children: t("pauseEngine")
|
|
56971
57029
|
}
|
|
56972
|
-
) : /* @__PURE__ */
|
|
57030
|
+
) : /* @__PURE__ */ jsx184(
|
|
56973
57031
|
EuiButton16,
|
|
56974
57032
|
{
|
|
56975
57033
|
onClick: () => setEngineStatus(false),
|
|
@@ -56982,17 +57040,17 @@ var WfoEngineStatusButton = () => {
|
|
|
56982
57040
|
};
|
|
56983
57041
|
|
|
56984
57042
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56985
|
-
import { useTranslations as
|
|
56986
|
-
import { EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer24, EuiText as
|
|
57043
|
+
import { useTranslations as useTranslations63 } from "next-intl";
|
|
57044
|
+
import { EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer24, EuiText as EuiText39 } from "@elastic/eui";
|
|
56987
57045
|
|
|
56988
57046
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
56989
|
-
import { useTranslations as
|
|
57047
|
+
import { useTranslations as useTranslations62 } from "next-intl";
|
|
56990
57048
|
import { EuiButton as EuiButton17 } from "@elastic/eui";
|
|
56991
|
-
import { jsx as
|
|
57049
|
+
import { jsx as jsx185 } from "@emotion/react/jsx-runtime";
|
|
56992
57050
|
var WfoResetTextSearchIndexButton = () => {
|
|
56993
57051
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
56994
|
-
const t =
|
|
56995
|
-
return /* @__PURE__ */
|
|
57052
|
+
const t = useTranslations62("settings.page");
|
|
57053
|
+
return /* @__PURE__ */ jsx185(
|
|
56996
57054
|
EuiButton17,
|
|
56997
57055
|
{
|
|
56998
57056
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -57003,11 +57061,11 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
57003
57061
|
};
|
|
57004
57062
|
|
|
57005
57063
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
57006
|
-
import { jsx as
|
|
57064
|
+
import { jsx as jsx186, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
57007
57065
|
var WfoModifySettings = () => {
|
|
57008
|
-
const t =
|
|
57009
|
-
return /* @__PURE__ */
|
|
57010
|
-
/* @__PURE__ */
|
|
57066
|
+
const t = useTranslations63("settings.page");
|
|
57067
|
+
return /* @__PURE__ */ jsxs104(EuiFlexItem35, { children: [
|
|
57068
|
+
/* @__PURE__ */ jsxs104(
|
|
57011
57069
|
EuiPanel10,
|
|
57012
57070
|
{
|
|
57013
57071
|
hasShadow: false,
|
|
@@ -57015,14 +57073,14 @@ var WfoModifySettings = () => {
|
|
|
57015
57073
|
paddingSize: "l",
|
|
57016
57074
|
css: { width: "50%" },
|
|
57017
57075
|
children: [
|
|
57018
|
-
/* @__PURE__ */
|
|
57019
|
-
/* @__PURE__ */
|
|
57020
|
-
/* @__PURE__ */
|
|
57076
|
+
/* @__PURE__ */ jsx186(EuiText39, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("resetTextSearchIndex") }) }),
|
|
57077
|
+
/* @__PURE__ */ jsx186(EuiSpacer24, { size: "m" }),
|
|
57078
|
+
/* @__PURE__ */ jsx186(WfoResetTextSearchIndexButton, {})
|
|
57021
57079
|
]
|
|
57022
57080
|
}
|
|
57023
57081
|
),
|
|
57024
|
-
/* @__PURE__ */
|
|
57025
|
-
/* @__PURE__ */
|
|
57082
|
+
/* @__PURE__ */ jsx186(EuiSpacer24, {}),
|
|
57083
|
+
/* @__PURE__ */ jsxs104(
|
|
57026
57084
|
EuiPanel10,
|
|
57027
57085
|
{
|
|
57028
57086
|
hasShadow: false,
|
|
@@ -57030,9 +57088,9 @@ var WfoModifySettings = () => {
|
|
|
57030
57088
|
paddingSize: "l",
|
|
57031
57089
|
css: { width: "50%" },
|
|
57032
57090
|
children: [
|
|
57033
|
-
/* @__PURE__ */
|
|
57034
|
-
/* @__PURE__ */
|
|
57035
|
-
/* @__PURE__ */
|
|
57091
|
+
/* @__PURE__ */ jsx186(EuiText39, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("modifyEngine") }) }),
|
|
57092
|
+
/* @__PURE__ */ jsx186(EuiSpacer24, { size: "m" }),
|
|
57093
|
+
/* @__PURE__ */ jsx186(WfoEngineStatusButton, {})
|
|
57036
57094
|
]
|
|
57037
57095
|
}
|
|
57038
57096
|
)
|
|
@@ -57040,22 +57098,22 @@ var WfoModifySettings = () => {
|
|
|
57040
57098
|
};
|
|
57041
57099
|
|
|
57042
57100
|
// src/components/WfoSettings/WfoStatus.tsx
|
|
57043
|
-
import { useTranslations as
|
|
57101
|
+
import { useTranslations as useTranslations64 } from "next-intl";
|
|
57044
57102
|
import {
|
|
57045
57103
|
EuiFlexGroup as EuiFlexGroup25,
|
|
57046
57104
|
EuiFlexItem as EuiFlexItem36,
|
|
57047
57105
|
EuiPanel as EuiPanel11,
|
|
57048
57106
|
EuiSpacer as EuiSpacer25,
|
|
57049
|
-
EuiText as
|
|
57107
|
+
EuiText as EuiText40
|
|
57050
57108
|
} from "@elastic/eui";
|
|
57051
|
-
import { jsx as
|
|
57109
|
+
import { jsx as jsx187, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
|
|
57052
57110
|
var WfoStatus = () => {
|
|
57053
57111
|
const { theme } = useOrchestratorTheme();
|
|
57054
57112
|
const { data } = useGetEngineStatusQuery();
|
|
57055
57113
|
const { engineStatus, runningProcesses } = data || {};
|
|
57056
57114
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
57057
|
-
const t =
|
|
57058
|
-
return /* @__PURE__ */
|
|
57115
|
+
const t = useTranslations64("settings.page");
|
|
57116
|
+
return /* @__PURE__ */ jsxs105(
|
|
57059
57117
|
EuiPanel11,
|
|
57060
57118
|
{
|
|
57061
57119
|
hasShadow: false,
|
|
@@ -57063,21 +57121,21 @@ var WfoStatus = () => {
|
|
|
57063
57121
|
paddingSize: "l",
|
|
57064
57122
|
style: { width: "50%" },
|
|
57065
57123
|
children: [
|
|
57066
|
-
/* @__PURE__ */
|
|
57067
|
-
/* @__PURE__ */
|
|
57068
|
-
/* @__PURE__ */
|
|
57124
|
+
/* @__PURE__ */ jsxs105(EuiFlexGroup25, { children: [
|
|
57125
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("h4", { children: t("runningProcesses") }) }) }),
|
|
57126
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("p", { children: runningProcesses || "-" }) }) })
|
|
57069
57127
|
] }),
|
|
57070
|
-
/* @__PURE__ */
|
|
57071
|
-
/* @__PURE__ */
|
|
57072
|
-
/* @__PURE__ */
|
|
57073
|
-
/* @__PURE__ */
|
|
57074
|
-
/* @__PURE__ */
|
|
57128
|
+
/* @__PURE__ */ jsx187(EuiSpacer25, { size: "m" }),
|
|
57129
|
+
/* @__PURE__ */ jsxs105(EuiFlexGroup25, { children: [
|
|
57130
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("h4", { children: t("engineStatus") }) }) }),
|
|
57131
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs105(EuiFlexGroup25, { gutterSize: "xs", children: [
|
|
57132
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { children: /* @__PURE__ */ jsx187(
|
|
57075
57133
|
WfoStatusDotIcon,
|
|
57076
57134
|
{
|
|
57077
57135
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
57078
57136
|
}
|
|
57079
57137
|
) }),
|
|
57080
|
-
/* @__PURE__ */
|
|
57138
|
+
/* @__PURE__ */ jsx187(EuiFlexItem36, { children: /* @__PURE__ */ jsx187(EuiText40, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx187("p", { children: engineStatus }) }) })
|
|
57081
57139
|
] }) })
|
|
57082
57140
|
] })
|
|
57083
57141
|
]
|
|
@@ -57087,7 +57145,7 @@ var WfoStatus = () => {
|
|
|
57087
57145
|
|
|
57088
57146
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
57089
57147
|
import React59 from "react";
|
|
57090
|
-
import { jsx as
|
|
57148
|
+
import { jsx as jsx188, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
|
|
57091
57149
|
var WfoErrorBoundary = class extends React59.Component {
|
|
57092
57150
|
constructor(props) {
|
|
57093
57151
|
super(props);
|
|
@@ -57104,10 +57162,10 @@ var WfoErrorBoundary = class extends React59.Component {
|
|
|
57104
57162
|
if (this.props.fallback) {
|
|
57105
57163
|
return this.props.fallback;
|
|
57106
57164
|
}
|
|
57107
|
-
return /* @__PURE__ */
|
|
57165
|
+
return /* @__PURE__ */ jsxs106("p", { children: [
|
|
57108
57166
|
"An unexpected error occurred, try to go back to the",
|
|
57109
57167
|
" ",
|
|
57110
|
-
/* @__PURE__ */
|
|
57168
|
+
/* @__PURE__ */ jsx188("a", { href: "/", children: "home page" })
|
|
57111
57169
|
] });
|
|
57112
57170
|
}
|
|
57113
57171
|
return this.props.children;
|
|
@@ -57139,11 +57197,11 @@ var getStyles17 = (theme) => {
|
|
|
57139
57197
|
};
|
|
57140
57198
|
|
|
57141
57199
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
57142
|
-
import { jsxs as
|
|
57200
|
+
import { jsxs as jsxs107 } from "@emotion/react/jsx-runtime";
|
|
57143
57201
|
var WfoNoResults = ({ text, icon }) => {
|
|
57144
57202
|
const { theme } = useOrchestratorTheme();
|
|
57145
57203
|
const { panelStyle } = getStyles17(theme);
|
|
57146
|
-
return /* @__PURE__ */
|
|
57204
|
+
return /* @__PURE__ */ jsxs107(EuiFlexGroup26, { css: panelStyle, children: [
|
|
57147
57205
|
icon,
|
|
57148
57206
|
" ",
|
|
57149
57207
|
text
|
|
@@ -57151,12 +57209,12 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
57151
57209
|
};
|
|
57152
57210
|
|
|
57153
57211
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
57154
|
-
import { useTranslations as
|
|
57212
|
+
import { useTranslations as useTranslations65 } from "next-intl";
|
|
57155
57213
|
import { useRouter as useRouter17 } from "next/router";
|
|
57156
|
-
import { jsx as
|
|
57214
|
+
import { jsx as jsx189 } from "@emotion/react/jsx-runtime";
|
|
57157
57215
|
var WfoStartTaskButtonComboBox = () => {
|
|
57158
57216
|
const router = useRouter17();
|
|
57159
|
-
const t =
|
|
57217
|
+
const t = useTranslations65("common");
|
|
57160
57218
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
57161
57219
|
const { data } = useGetTaskOptionsQuery();
|
|
57162
57220
|
const taskOptions = (data == null ? void 0 : data.startOptions) || [];
|
|
@@ -57176,7 +57234,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
57176
57234
|
});
|
|
57177
57235
|
}
|
|
57178
57236
|
});
|
|
57179
|
-
return /* @__PURE__ */
|
|
57237
|
+
return /* @__PURE__ */ jsx189(
|
|
57180
57238
|
WfoStartButtonComboBox,
|
|
57181
57239
|
{
|
|
57182
57240
|
buttonText: t("newTask"),
|
|
@@ -57418,7 +57476,8 @@ var en_GB_default = {
|
|
|
57418
57476
|
duration: "Duration",
|
|
57419
57477
|
userInput: "User input",
|
|
57420
57478
|
submitTaskFormLabel: "Please submit the form to start this task",
|
|
57421
|
-
submitWorkflowFormLabel: "Please submit the form to start this workflow"
|
|
57479
|
+
submitWorkflowFormLabel: "Please submit the form to start this workflow",
|
|
57480
|
+
traceback: "Traceback"
|
|
57422
57481
|
},
|
|
57423
57482
|
delta: {
|
|
57424
57483
|
title: "Subscription delta"
|
|
@@ -57564,6 +57623,11 @@ var en_GB_default = {
|
|
|
57564
57623
|
}
|
|
57565
57624
|
},
|
|
57566
57625
|
startPage: {
|
|
57626
|
+
myWorkflows: {
|
|
57627
|
+
buttonText: "Show my completed workflows",
|
|
57628
|
+
headerTitle: "My completed workflows",
|
|
57629
|
+
listTitle: "My most recent workflows"
|
|
57630
|
+
},
|
|
57567
57631
|
activeSubscriptions: {
|
|
57568
57632
|
buttonText: "Show all active subscriptions",
|
|
57569
57633
|
headerTitle: "Total active subscriptions",
|
|
@@ -57817,7 +57881,8 @@ var nl_NL_default = {
|
|
|
57817
57881
|
duration: "Looptijd",
|
|
57818
57882
|
userInput: "Invoer gebruiker",
|
|
57819
57883
|
submitTaskFormLabel: "Verstuur het formulier om deze taak te starten",
|
|
57820
|
-
submitWorkflowFormLabel: "Verstuur het formulier om deze workflow te starten"
|
|
57884
|
+
submitWorkflowFormLabel: "Verstuur het formulier om deze workflow te starten",
|
|
57885
|
+
traceback: "Traceback"
|
|
57821
57886
|
},
|
|
57822
57887
|
delta: {
|
|
57823
57888
|
title: "Subscription delta"
|
|
@@ -57963,6 +58028,11 @@ var nl_NL_default = {
|
|
|
57963
58028
|
}
|
|
57964
58029
|
},
|
|
57965
58030
|
startPage: {
|
|
58031
|
+
myWorkflows: {
|
|
58032
|
+
buttonText: "Toon mijn afgeronde workflows",
|
|
58033
|
+
headerTitle: "Mijn afgeronde workflows",
|
|
58034
|
+
listTitle: "Mijn recente afgeronde workflows"
|
|
58035
|
+
},
|
|
57966
58036
|
activeSubscriptions: {
|
|
57967
58037
|
buttonText: "Toon alle actieve subscriptions",
|
|
57968
58038
|
headerTitle: "Totaal aantal actieve subscriptions",
|
|
@@ -58407,6 +58477,7 @@ export {
|
|
|
58407
58477
|
mapWorkflowDefinitionToWorkflowListItem,
|
|
58408
58478
|
metaDataTabs,
|
|
58409
58479
|
onlyUnique,
|
|
58480
|
+
optionalArrayMapper,
|
|
58410
58481
|
orchestratorApi,
|
|
58411
58482
|
parseDate,
|
|
58412
58483
|
parseDateOrTimeRelativeToToday,
|