@orchestrator-ui/orchestrator-ui-components 7.6.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +63 -45
- package/dist/index.js +766 -639
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.tsx +3 -1
- package/src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx +9 -3
- package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx +34 -3
- package/src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx +3 -2
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +57 -40
- package/src/components/WfoWorkflowSteps/WfoStep/useStepDetailOverride.ts +9 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx +0 -1
- package/src/configuration/version.ts +1 -1
- package/src/messages/en-GB.json +2 -0
- package/src/messages/nl-NL.json +2 -0
- package/src/pages/metadata/WfoScheduleTaskFormPage.tsx +153 -35
- package/src/rtk/endpoints/forms.ts +1 -1
- package/src/rtk/endpoints/metadata/scheduledTasks.ts +9 -17
- package/src/rtk/endpoints/streamMessages.ts +10 -23
- package/src/rtk/slices/orchestratorComponentOverride.ts +5 -1
- package/src/utils/compareVersions.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
64
64
|
})(PolicyResource || {});
|
|
65
65
|
|
|
66
66
|
// src/configuration/version.ts
|
|
67
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.
|
|
67
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.0";
|
|
68
68
|
|
|
69
69
|
// src/types/types.ts
|
|
70
70
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
|
|
@@ -185,11 +185,11 @@ var CacheTagType = /* @__PURE__ */ ((CacheTagType2) => {
|
|
|
185
185
|
return CacheTagType2;
|
|
186
186
|
})(CacheTagType || {});
|
|
187
187
|
var CACHETAG_TYPE_LIST = "LIST";
|
|
188
|
-
var TaskType = /* @__PURE__ */ ((
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
return
|
|
188
|
+
var TaskType = /* @__PURE__ */ ((TaskType2) => {
|
|
189
|
+
TaskType2["DATE"] = "date";
|
|
190
|
+
TaskType2["INTERVAL"] = "interval";
|
|
191
|
+
TaskType2["CRON"] = "cron";
|
|
192
|
+
return TaskType2;
|
|
193
193
|
})(TaskType || {});
|
|
194
194
|
var Intervals = /* @__PURE__ */ ((Intervals2) => {
|
|
195
195
|
Intervals2["ONE_HOUR"] = "1hour";
|
|
@@ -1306,21 +1306,13 @@ var scheduledTasksApi = orchestratorApi.injectEndpoints({
|
|
|
1306
1306
|
}),
|
|
1307
1307
|
createScheduledTask: builder.mutation({
|
|
1308
1308
|
query: (payload) => {
|
|
1309
|
-
const scheduleTaskPayload = {
|
|
1310
|
-
scheduled_type: "create",
|
|
1311
|
-
name: payload.workflowDescription,
|
|
1312
|
-
workflow_name: payload.workflowName,
|
|
1313
|
-
workflow_id: payload.workflowId,
|
|
1314
|
-
trigger: payload.type,
|
|
1315
|
-
trigger_kwargs: payload.kwargs
|
|
1316
|
-
};
|
|
1317
1309
|
return {
|
|
1318
1310
|
url: METADATA_SCHEDULES_ENDPOINT,
|
|
1319
1311
|
method: "POST",
|
|
1320
1312
|
headers: {
|
|
1321
1313
|
"Content-Type": "application/json"
|
|
1322
1314
|
},
|
|
1323
|
-
body:
|
|
1315
|
+
body: payload
|
|
1324
1316
|
};
|
|
1325
1317
|
},
|
|
1326
1318
|
extraOptions: {
|
|
@@ -2006,24 +1998,17 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
2006
1998
|
queryFn: () => {
|
|
2007
1999
|
return { data: true };
|
|
2008
2000
|
},
|
|
2009
|
-
async onCacheEntryAdded(
|
|
2001
|
+
async onCacheEntryAdded(wsEndpoint, { cacheDataLoaded, cacheEntryRemoved, dispatch, updateCachedData }) {
|
|
2010
2002
|
const cleanUp = () => {
|
|
2011
2003
|
clearInterval(pingInterval);
|
|
2012
2004
|
updateCachedData(() => false);
|
|
2013
2005
|
};
|
|
2014
2006
|
const invalidateTag = (cacheTag) => {
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
dispatch(cacheInvalidationAction);
|
|
2018
|
-
} else {
|
|
2019
|
-
console.error(`Trying to invalidate a cache entry with an unknown tag: ${cacheTag.type}`);
|
|
2020
|
-
}
|
|
2007
|
+
const cacheInvalidationAction = orchestratorApi.util.invalidateTags([cacheTag]);
|
|
2008
|
+
dispatch(cacheInvalidationAction);
|
|
2021
2009
|
};
|
|
2022
2010
|
await cacheDataLoaded;
|
|
2023
2011
|
let initialConnection = true;
|
|
2024
|
-
const state = getState();
|
|
2025
|
-
const { orchestratorWebsocketUrl } = state.orchestratorConfig;
|
|
2026
|
-
const validCacheTags = Object.values(CacheTagType);
|
|
2027
2012
|
const getDebounce = (delay) => {
|
|
2028
2013
|
return debounce(() => {
|
|
2029
2014
|
webSocket.close();
|
|
@@ -2032,15 +2017,13 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
2032
2017
|
};
|
|
2033
2018
|
const closeConnectionAfterFirstPing = getDebounce(INITIAL_CONNECTION_CHECK_INTERVAL_MS);
|
|
2034
2019
|
const debounceClosingConnection = getDebounce(NO_PONG_RECEIVED_TIMEOUT_MS);
|
|
2035
|
-
const webSocket = await getWebSocket(
|
|
2020
|
+
const webSocket = await getWebSocket(wsEndpoint);
|
|
2036
2021
|
const sendPing = () => {
|
|
2037
2022
|
if (webSocket.readyState === WebSocket.OPEN) {
|
|
2038
2023
|
webSocket.send("__ping__");
|
|
2039
2024
|
}
|
|
2040
2025
|
};
|
|
2041
|
-
const pingInterval = setInterval(
|
|
2042
|
-
sendPing();
|
|
2043
|
-
}, PING_INTERVAL_MS);
|
|
2026
|
+
const pingInterval = setInterval(sendPing, PING_INTERVAL_MS);
|
|
2044
2027
|
webSocket.onopen = () => {
|
|
2045
2028
|
closeConnectionAfterFirstPing();
|
|
2046
2029
|
sendPing();
|
|
@@ -2064,9 +2047,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
2064
2047
|
console.error("Unknown message type", message);
|
|
2065
2048
|
}
|
|
2066
2049
|
});
|
|
2067
|
-
webSocket.onerror = (event) =>
|
|
2068
|
-
console.error("WebSocket error", event);
|
|
2069
|
-
};
|
|
2050
|
+
webSocket.onerror = (event) => console.error("WebSocket error", event);
|
|
2070
2051
|
webSocket.onclose = () => {
|
|
2071
2052
|
console.error("WebSocket closed");
|
|
2072
2053
|
cleanUp();
|
|
@@ -2360,7 +2341,7 @@ var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
|
|
|
2360
2341
|
// src/rtk/endpoints/forms.ts
|
|
2361
2342
|
var PROCESS_ENDPOINT = "processes";
|
|
2362
2343
|
var RESUME_ENDPOINT = "resume";
|
|
2363
|
-
var FORMS_ENDPOINT = "
|
|
2344
|
+
var FORMS_ENDPOINT = "forms/";
|
|
2364
2345
|
var formsApi = orchestratorApi.injectEndpoints({
|
|
2365
2346
|
endpoints: (build) => ({
|
|
2366
2347
|
startProcess: build.mutation({
|
|
@@ -6503,9 +6484,10 @@ var WfoEngineStatusBadge = () => {
|
|
|
6503
6484
|
const { data } = useGetEngineStatusQuery();
|
|
6504
6485
|
const { engineStatus } = data || {};
|
|
6505
6486
|
const { useWebSockets } = useGetOrchestratorConfig();
|
|
6487
|
+
const { orchestratorWebsocketUrl } = useGetOrchestratorConfig();
|
|
6506
6488
|
const [websocketTrigger, { isUninitialized }] = useLazyStreamMessagesQuery();
|
|
6507
6489
|
if (useWebSockets && isUninitialized) {
|
|
6508
|
-
websocketTrigger();
|
|
6490
|
+
websocketTrigger(orchestratorWebsocketUrl);
|
|
6509
6491
|
}
|
|
6510
6492
|
const engineStatusText = engineStatus ? `Engine is ${engineStatus}` : "Engine status is unavailable";
|
|
6511
6493
|
const engineColor = engineStatus === "RUNNING" /* RUNNING */ ? theme.colors.success : theme.colors.warning;
|
|
@@ -6620,12 +6602,16 @@ var getStyles2 = ({ theme, isDarkModeActive }) => {
|
|
|
6620
6602
|
|
|
6621
6603
|
// src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx
|
|
6622
6604
|
import { Fragment as Fragment7, jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
6623
|
-
var WfoWebsocketStatusBadge = ({
|
|
6605
|
+
var WfoWebsocketStatusBadge = ({
|
|
6606
|
+
hideWhenConnected = false,
|
|
6607
|
+
wsUrl = void 0
|
|
6608
|
+
}) => {
|
|
6624
6609
|
const dispatch = useDispatch2();
|
|
6625
6610
|
const { connectedStyle, disconnectedStyle } = useWithOrchestratorTheme(getStyles2);
|
|
6626
6611
|
const t = useTranslations13("main");
|
|
6627
6612
|
const { theme } = useOrchestratorTheme();
|
|
6628
|
-
const {
|
|
6613
|
+
const { orchestratorWebsocketUrl } = useGetOrchestratorConfig();
|
|
6614
|
+
const { data: websocketConnected } = useStreamMessagesQuery(wsUrl || orchestratorWebsocketUrl);
|
|
6629
6615
|
const showBadge = !(websocketConnected && hideWhenConnected);
|
|
6630
6616
|
const reconnect = useCallback5(() => {
|
|
6631
6617
|
dispatch(orchestratorApi.util.resetApiState());
|
|
@@ -7397,10 +7383,21 @@ var useSubscriptionDetailGeneralSectionConfigurationOverride = () => {
|
|
|
7397
7383
|
|
|
7398
7384
|
// src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx
|
|
7399
7385
|
import { useTranslations as useTranslations20 } from "next-intl";
|
|
7400
|
-
import
|
|
7386
|
+
import Link4 from "next/link";
|
|
7387
|
+
import { jsx as jsx120, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
7401
7388
|
var WfoSubscriptionDetailSection = ({ subscriptionDetail }) => {
|
|
7402
7389
|
const t = useTranslations20("subscriptions.detail");
|
|
7403
|
-
const {
|
|
7390
|
+
const {
|
|
7391
|
+
subscriptionId,
|
|
7392
|
+
product,
|
|
7393
|
+
description,
|
|
7394
|
+
startDate,
|
|
7395
|
+
endDate,
|
|
7396
|
+
status,
|
|
7397
|
+
customer,
|
|
7398
|
+
customerDescriptions,
|
|
7399
|
+
processes
|
|
7400
|
+
} = subscriptionDetail;
|
|
7404
7401
|
const subscriptionDetailBlockData = [
|
|
7405
7402
|
{
|
|
7406
7403
|
key: t("subscriptionId"),
|
|
@@ -7431,6 +7428,22 @@ var WfoSubscriptionDetailSection = ({ subscriptionDetail }) => {
|
|
|
7431
7428
|
key: t("insync"),
|
|
7432
7429
|
value: /* @__PURE__ */ jsx120(WfoInSyncField, { subscriptionDetail })
|
|
7433
7430
|
},
|
|
7431
|
+
{
|
|
7432
|
+
key: t("lastRunValidation"),
|
|
7433
|
+
value: (() => {
|
|
7434
|
+
const lastValidate = processes?.page?.filter((process3) => process3.workflowTarget.toLowerCase() === "validate" /* VALIDATE */.toLowerCase()).slice(-1)[0];
|
|
7435
|
+
if (!lastValidate) {
|
|
7436
|
+
return t("noValidateWorkflows");
|
|
7437
|
+
}
|
|
7438
|
+
const processUrl = `${PATH_TASKS}/${lastValidate.processId}`;
|
|
7439
|
+
return /* @__PURE__ */ jsxs60(Link4, { href: processUrl, children: [
|
|
7440
|
+
lastValidate.lastStatus,
|
|
7441
|
+
" (",
|
|
7442
|
+
formatDate(lastValidate.startedAt),
|
|
7443
|
+
")"
|
|
7444
|
+
] });
|
|
7445
|
+
})()
|
|
7446
|
+
},
|
|
7434
7447
|
{
|
|
7435
7448
|
key: t("customer"),
|
|
7436
7449
|
value: subscriptionDetail && subscriptionDetail.customer ? `${customer?.fullname}` : "-"
|
|
@@ -7523,12 +7536,12 @@ var WfoSubscriptionProductInfoSection = ({ product }) => {
|
|
|
7523
7536
|
|
|
7524
7537
|
// src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx
|
|
7525
7538
|
import { EuiFlexGroup as EuiFlexGroup9, EuiFlexItem as EuiFlexItem6, EuiSpacer as EuiSpacer10, EuiText as EuiText7 } from "@elastic/eui";
|
|
7526
|
-
import { Fragment as Fragment15, jsx as jsx124, jsxs as
|
|
7539
|
+
import { Fragment as Fragment15, jsx as jsx124, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
7527
7540
|
var SubscriptionKeyValueBlock = ({ title, keyValues }) => {
|
|
7528
7541
|
const { theme } = useOrchestratorTheme();
|
|
7529
|
-
return /* @__PURE__ */
|
|
7542
|
+
return /* @__PURE__ */ jsxs61(Fragment15, { children: [
|
|
7530
7543
|
/* @__PURE__ */ jsx124(EuiSpacer10, { size: "m" }),
|
|
7531
|
-
/* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */
|
|
7544
|
+
/* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsxs61("div", { style: { marginTop: 5 }, children: [
|
|
7532
7545
|
/* @__PURE__ */ jsx124(EuiFlexGroup9, { justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx124(EuiFlexItem6, { children: /* @__PURE__ */ jsx124(EuiText7, { grow: false, css: { fontWeight: theme.font.weight.semiBold }, children: title }) }) }),
|
|
7533
7546
|
/* @__PURE__ */ jsx124(EuiSpacer10, { size: "m" }),
|
|
7534
7547
|
/* @__PURE__ */ jsx124(WfoKeyValueTable, { keyValues, showCopyToClipboardIcon: true })
|
|
@@ -7539,19 +7552,19 @@ var SubscriptionKeyValueBlock = ({ title, keyValues }) => {
|
|
|
7539
7552
|
// src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
|
|
7540
7553
|
import { useContext as useContext5, useEffect as useEffect8, useState as useState11 } from "react";
|
|
7541
7554
|
import { useTranslations as useTranslations24 } from "next-intl";
|
|
7542
|
-
import
|
|
7555
|
+
import Link6 from "next/link";
|
|
7543
7556
|
import { EuiButton as EuiButton7, EuiContextMenuItem, EuiLoadingSpinner, EuiToolTip as EuiToolTip6 } from "@elastic/eui";
|
|
7544
7557
|
|
|
7545
7558
|
// src/components/WfoSubscription/WfoInSyncField/WfoInSyncErrorToastMessage.tsx
|
|
7546
|
-
import
|
|
7547
|
-
import { jsx as jsx125, jsxs as
|
|
7559
|
+
import Link5 from "next/link";
|
|
7560
|
+
import { jsx as jsx125, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
7548
7561
|
var WfoInSyncErrorToastMessage = ({ errorDetail }) => {
|
|
7549
7562
|
const { failedIds, filteredInput } = parseErrorDetail(errorDetail);
|
|
7550
|
-
return /* @__PURE__ */
|
|
7563
|
+
return /* @__PURE__ */ jsxs62("div", { css: { whiteSpace: "normal", wordBreak: "break-word" }, children: [
|
|
7551
7564
|
/* @__PURE__ */ jsx125("div", { children: filteredInput }),
|
|
7552
7565
|
failedIds.map((processId) => {
|
|
7553
7566
|
const processUrl = `${PATH_WORKFLOWS}/${processId}`;
|
|
7554
|
-
return /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(
|
|
7567
|
+
return /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(Link5, { href: processUrl, children: processId }) }, processId);
|
|
7555
7568
|
})
|
|
7556
7569
|
] });
|
|
7557
7570
|
};
|
|
@@ -7674,7 +7687,7 @@ var WfoInSyncCompactIcon = ({ disabled }) => {
|
|
|
7674
7687
|
};
|
|
7675
7688
|
|
|
7676
7689
|
// src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
|
|
7677
|
-
import { Fragment as Fragment16, jsx as jsx127, jsxs as
|
|
7690
|
+
import { Fragment as Fragment16, jsx as jsx127, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
7678
7691
|
var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) => {
|
|
7679
7692
|
const t = useTranslations24("subscriptions.detail");
|
|
7680
7693
|
const { theme } = useOrchestratorTheme();
|
|
@@ -7716,9 +7729,9 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
|
|
|
7716
7729
|
};
|
|
7717
7730
|
const getProcessLink = () => {
|
|
7718
7731
|
const processUrl = `${lastUncompletedProcess?.isTask ? PATH_TASKS : PATH_WORKFLOWS}/${lastUncompletedProcess?.processId}`;
|
|
7719
|
-
return /* @__PURE__ */
|
|
7720
|
-
/* @__PURE__ */
|
|
7721
|
-
|
|
7732
|
+
return /* @__PURE__ */ jsxs63(Fragment16, { children: [
|
|
7733
|
+
/* @__PURE__ */ jsxs63(
|
|
7734
|
+
Link6,
|
|
7722
7735
|
{
|
|
7723
7736
|
href: processUrl,
|
|
7724
7737
|
css: {
|
|
@@ -7737,24 +7750,24 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
|
|
|
7737
7750
|
};
|
|
7738
7751
|
const allowInSyncButton = !inSync && lastUncompletedProcess;
|
|
7739
7752
|
const showDate = inSync && lastTaskRunDate;
|
|
7740
|
-
const InSyncDetails = () => /* @__PURE__ */ jsx127(Fragment16, { children: /* @__PURE__ */
|
|
7753
|
+
const InSyncDetails = () => /* @__PURE__ */ jsx127(Fragment16, { children: /* @__PURE__ */ jsxs63("div", { css: { display: "flex" }, children: [
|
|
7741
7754
|
/* @__PURE__ */ jsx127("div", { css: { paddingRight: theme.base / 4, display: "flex" }, children: /* @__PURE__ */ jsx127(WfoInsyncIcon, { inSync }) }),
|
|
7742
7755
|
showDate && `(${formatDate(lastTaskRunDate)})`,
|
|
7743
7756
|
!showDate && compactMode && t("subscriptionIsInSync")
|
|
7744
7757
|
] }) });
|
|
7745
|
-
const InSyncDetailsWithButton = () => /* @__PURE__ */
|
|
7758
|
+
const InSyncDetailsWithButton = () => /* @__PURE__ */ jsxs63(Fragment16, { children: [
|
|
7746
7759
|
/* @__PURE__ */ jsx127(InSyncDetails, {}),
|
|
7747
7760
|
allowInSyncButton && getProcessLink()
|
|
7748
7761
|
] });
|
|
7749
7762
|
const InSyncCompactMenuIcon = () => {
|
|
7750
7763
|
const LoadingSecondaryIcon = () => /* @__PURE__ */ jsx127("div", { css: spinnerSecondaryIconStyle, children: /* @__PURE__ */ jsx127(EuiLoadingSpinner, { size: "s" }) });
|
|
7751
7764
|
if (!allowInSyncButton) {
|
|
7752
|
-
return /* @__PURE__ */
|
|
7765
|
+
return /* @__PURE__ */ jsxs63("div", { css: disabledIconStyle, children: [
|
|
7753
7766
|
/* @__PURE__ */ jsx127(WfoInSyncCompactIcon, { disabled: true }),
|
|
7754
7767
|
isLoading ? /* @__PURE__ */ jsx127(LoadingSecondaryIcon, {}) : /* @__PURE__ */ jsx127("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx127(WfoCheckmarkCircleFill, { width: 20, height: 20, color: theme.colors.primary }) })
|
|
7755
7768
|
] });
|
|
7756
7769
|
}
|
|
7757
|
-
return /* @__PURE__ */
|
|
7770
|
+
return /* @__PURE__ */ jsxs63("div", { css: disabledIconStyle, children: [
|
|
7758
7771
|
/* @__PURE__ */ jsx127(WfoInSyncCompactIcon, { disabled: false }),
|
|
7759
7772
|
isLoading && /* @__PURE__ */ jsx127(LoadingSecondaryIcon, {})
|
|
7760
7773
|
] });
|
|
@@ -7777,7 +7790,7 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
|
|
|
7777
7790
|
// src/components/WfoSubscription/WfoProcessesTimeline.tsx
|
|
7778
7791
|
import React22 from "react";
|
|
7779
7792
|
import { useTranslations as useTranslations25 } from "next-intl";
|
|
7780
|
-
import
|
|
7793
|
+
import Link7 from "next/link";
|
|
7781
7794
|
import { EuiComment, EuiCommentList, EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem7, EuiSpacer as EuiSpacer11, EuiText as EuiText8 } from "@elastic/eui";
|
|
7782
7795
|
|
|
7783
7796
|
// src/components/WfoSubscription/styles.ts
|
|
@@ -7842,7 +7855,7 @@ var getSubscriptionDetailStyles = ({ theme, isDarkModeActive }) => {
|
|
|
7842
7855
|
};
|
|
7843
7856
|
|
|
7844
7857
|
// src/components/WfoSubscription/WfoProcessesTimeline.tsx
|
|
7845
|
-
import { Fragment as Fragment17, jsx as jsx128, jsxs as
|
|
7858
|
+
import { Fragment as Fragment17, jsx as jsx128, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
7846
7859
|
var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
7847
7860
|
const t = useTranslations25("subscriptions.detail.processDetail");
|
|
7848
7861
|
const { tableStyle, labelCellStyle, cellGroupStyle, borderStyle, rowStyle } = useWithOrchestratorTheme(getSubscriptionDetailStyles);
|
|
@@ -7850,7 +7863,7 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
|
7850
7863
|
const rows = [
|
|
7851
7864
|
{
|
|
7852
7865
|
label: t("id"),
|
|
7853
|
-
content: /* @__PURE__ */ jsx128(
|
|
7866
|
+
content: /* @__PURE__ */ jsx128(Link7, { href: `${processUrl}/${subscriptionDetailProcess.processId}`, children: subscriptionDetailProcess.processId })
|
|
7854
7867
|
},
|
|
7855
7868
|
{
|
|
7856
7869
|
label: t("status"),
|
|
@@ -7865,21 +7878,21 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
|
7865
7878
|
content: subscriptionDetailProcess.createdBy
|
|
7866
7879
|
}
|
|
7867
7880
|
];
|
|
7868
|
-
return /* @__PURE__ */ jsx128("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx128("div", { css: rowStyle, children: /* @__PURE__ */ jsx128("div", { className: "border", css: borderStyle, children: /* @__PURE__ */
|
|
7881
|
+
return /* @__PURE__ */ jsx128("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx128("div", { css: rowStyle, children: /* @__PURE__ */ jsx128("div", { className: "border", css: borderStyle, children: /* @__PURE__ */ jsxs64(EuiFlexGroup10, { css: cellGroupStyle, children: [
|
|
7869
7882
|
/* @__PURE__ */ jsx128(EuiFlexItem7, { css: labelCellStyle, grow: 2, children: label }),
|
|
7870
7883
|
/* @__PURE__ */ jsx128(EuiFlexItem7, { grow: 9, children: content })
|
|
7871
7884
|
] }, label) }) }, idx)) });
|
|
7872
7885
|
};
|
|
7873
7886
|
var WfoRenderSubscriptionProcess = ({ subscriptionDetailProcess }) => {
|
|
7874
7887
|
const { timeLineStyle, workflowTargetStyle } = useWithOrchestratorTheme(getSubscriptionDetailStyles);
|
|
7875
|
-
return /* @__PURE__ */
|
|
7888
|
+
return /* @__PURE__ */ jsxs64(
|
|
7876
7889
|
EuiComment,
|
|
7877
7890
|
{
|
|
7878
7891
|
username: subscriptionDetailProcess.workflowTarget ?? "",
|
|
7879
7892
|
timelineAvatarAriaLabel: subscriptionDetailProcess.workflowName,
|
|
7880
7893
|
timelineAvatar: /* @__PURE__ */ jsx128(WfoTargetTypeIcon, { target: subscriptionDetailProcess.workflowTarget }),
|
|
7881
7894
|
children: [
|
|
7882
|
-
/* @__PURE__ */
|
|
7895
|
+
/* @__PURE__ */ jsxs64(EuiFlexGroup10, { alignItems: "center", gutterSize: "s", css: timeLineStyle, children: [
|
|
7883
7896
|
/* @__PURE__ */ jsx128(EuiText8, { css: workflowTargetStyle, children: upperCaseFirstChar(subscriptionDetailProcess.workflowTarget) }),
|
|
7884
7897
|
/* @__PURE__ */ jsx128(EuiText8, { children: "-" }),
|
|
7885
7898
|
/* @__PURE__ */ jsx128(EuiText8, { children: subscriptionDetailProcess.workflowName })
|
|
@@ -7908,7 +7921,7 @@ var WfoProcessesTimeline = ({ subscriptionDetailProcesses }) => {
|
|
|
7908
7921
|
setSelectedOption(option);
|
|
7909
7922
|
};
|
|
7910
7923
|
const sortedProcesses = sortProcessesByDate(subscriptionDetailProcesses, selectedOption.value);
|
|
7911
|
-
return /* @__PURE__ */
|
|
7924
|
+
return /* @__PURE__ */ jsxs64(Fragment17, { children: [
|
|
7912
7925
|
/* @__PURE__ */ jsx128(EuiSpacer11, { size: "m" }),
|
|
7913
7926
|
!subscriptionDetailProcesses && /* @__PURE__ */ jsx128(WfoLoading, {}),
|
|
7914
7927
|
/* @__PURE__ */ jsx128(WfoRadioDropdown, { options, onUpdateOption: handleOnSelectOption, selectedOption }),
|
|
@@ -7919,7 +7932,7 @@ var WfoProcessesTimeline = ({ subscriptionDetailProcesses }) => {
|
|
|
7919
7932
|
// src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
|
|
7920
7933
|
import { useState as useState16 } from "react";
|
|
7921
7934
|
import { useTranslations as useTranslations30 } from "next-intl";
|
|
7922
|
-
import
|
|
7935
|
+
import Link8 from "next/link";
|
|
7923
7936
|
import { EuiFlexGroup as EuiFlexGroup12, EuiFlexItem as EuiFlexItem8, EuiSpacer as EuiSpacer14, EuiSwitch } from "@elastic/eui";
|
|
7924
7937
|
|
|
7925
7938
|
// src/components/WfoSubscription/utils/relatedSubscriptionsListItemsObjectMappers.ts
|
|
@@ -8349,7 +8362,7 @@ var usePageIndexBoundsGuard = ({
|
|
|
8349
8362
|
};
|
|
8350
8363
|
|
|
8351
8364
|
// src/components/WfoTable/WfoTable/WfoTableDataRows.tsx
|
|
8352
|
-
import { Fragment as Fragment20, jsx as jsx130, jsxs as
|
|
8365
|
+
import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
8353
8366
|
var DATA_ROW_CLASS = "data-row";
|
|
8354
8367
|
var CONTROL_CELL_CLASS = "control-cell";
|
|
8355
8368
|
var DATA_CELL_CLASS = "data-cell";
|
|
@@ -8364,7 +8377,7 @@ var WfoTableDataRows = ({
|
|
|
8364
8377
|
}) => {
|
|
8365
8378
|
const { cellStyle, cellContentStyle, rowStyle, dataRowStyle, clickableStyle, setWidth } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
8366
8379
|
const sortedVisibleColumns = getSortedVisibleColumns(columnConfig, columnOrder, hiddenColumns);
|
|
8367
|
-
return /* @__PURE__ */ jsx130(Fragment20, { children: data.map((row, index) => /* @__PURE__ */
|
|
8380
|
+
return /* @__PURE__ */ jsx130(Fragment20, { children: data.map((row, index) => /* @__PURE__ */ jsxs65(Fragment19, { children: [
|
|
8368
8381
|
/* @__PURE__ */ jsx130(
|
|
8369
8382
|
"tr",
|
|
8370
8383
|
{
|
|
@@ -8513,7 +8526,7 @@ var WfoPopoverContent = ({ onSearch, closePopover, fieldName }) => {
|
|
|
8513
8526
|
};
|
|
8514
8527
|
|
|
8515
8528
|
// src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoTableHeaderCell.tsx
|
|
8516
|
-
import { jsx as jsx134, jsxs as
|
|
8529
|
+
import { jsx as jsx134, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
8517
8530
|
var WfoTableHeaderCell = ({
|
|
8518
8531
|
fieldName,
|
|
8519
8532
|
sortOrder,
|
|
@@ -8539,8 +8552,8 @@ var WfoTableHeaderCell = ({
|
|
|
8539
8552
|
const closePopover = () => setPopover(false);
|
|
8540
8553
|
const WfoHeaderCellContentButton = () => /* @__PURE__ */ jsx134("button", { onClick: handleButtonClick, disabled: !isFilterable, children: /* @__PURE__ */ jsx134("div", { css: getHeaderCellContentStyle(isFilterable), children }) });
|
|
8541
8554
|
const WfoPopoverHeader = () => /* @__PURE__ */ jsx134("div", { css: headerCellPopoverHeaderStyle, children: /* @__PURE__ */ jsx134(EuiText9, { size: "xs", css: headerCellPopoverHeaderTitleStyle, children }) });
|
|
8542
|
-
return /* @__PURE__ */
|
|
8543
|
-
/* @__PURE__ */
|
|
8555
|
+
return /* @__PURE__ */ jsxs66("div", { css: headerCellStyle, children: [
|
|
8556
|
+
/* @__PURE__ */ jsxs66(
|
|
8544
8557
|
EuiPopover3,
|
|
8545
8558
|
{
|
|
8546
8559
|
className: HEADER_CELL_TITLE_BUTTON_CLASS,
|
|
@@ -8572,7 +8585,7 @@ var WfoTableHeaderCell = ({
|
|
|
8572
8585
|
};
|
|
8573
8586
|
|
|
8574
8587
|
// src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx
|
|
8575
|
-
import { jsx as jsx135, jsxs as
|
|
8588
|
+
import { jsx as jsx135, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
8576
8589
|
var WfoTableHeaderRow = ({
|
|
8577
8590
|
columnConfig,
|
|
8578
8591
|
columnOrder = [],
|
|
@@ -8599,7 +8612,7 @@ var WfoTableHeaderRow = ({
|
|
|
8599
8612
|
...toOptionalArrayEntry(sortableHeaderCellStyle, !!columnConfig2.isSortable),
|
|
8600
8613
|
setWidth(columnConfig2.width)
|
|
8601
8614
|
],
|
|
8602
|
-
children: /* @__PURE__ */
|
|
8615
|
+
children: /* @__PURE__ */ jsxs67("div", { css: headerCellContainer, children: [
|
|
8603
8616
|
/* @__PURE__ */ jsx135(
|
|
8604
8617
|
WfoTableHeaderCell,
|
|
8605
8618
|
{
|
|
@@ -8647,7 +8660,7 @@ var WfoTableHeaderRow = ({
|
|
|
8647
8660
|
};
|
|
8648
8661
|
|
|
8649
8662
|
// src/components/WfoTable/WfoTable/WfoTable.tsx
|
|
8650
|
-
import { Fragment as Fragment21, jsx as jsx136, jsxs as
|
|
8663
|
+
import { Fragment as Fragment21, jsx as jsx136, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
8651
8664
|
var ColumnType = /* @__PURE__ */ ((ColumnType2) => {
|
|
8652
8665
|
ColumnType2["DATA"] = "data";
|
|
8653
8666
|
ColumnType2["CONTROL"] = "control";
|
|
@@ -8733,14 +8746,14 @@ var WfoTable = ({
|
|
|
8733
8746
|
const lastVirtualItemEnd = virtualItems.length > 0 ? virtualItems[virtualItems.length - 1].end : 0;
|
|
8734
8747
|
const virtualTrHeight = virtualItems[0]?.start ?? 0;
|
|
8735
8748
|
const bottomSpacerHeight = totalSize - lastVirtualItemEnd;
|
|
8736
|
-
return /* @__PURE__ */
|
|
8749
|
+
return /* @__PURE__ */ jsxs68(Fragment21, { children: [
|
|
8737
8750
|
/* @__PURE__ */ jsx136(
|
|
8738
8751
|
"div",
|
|
8739
8752
|
{
|
|
8740
8753
|
ref: parentRef,
|
|
8741
8754
|
css: [tableContainerStyle, useEuiScrollBar()],
|
|
8742
8755
|
style: isVirtualized && height ? { maxHeight: height, overflow: "auto" } : {},
|
|
8743
|
-
children: /* @__PURE__ */
|
|
8756
|
+
children: /* @__PURE__ */ jsxs68("table", { className, css: tableStyle, children: [
|
|
8744
8757
|
overrideHeader ? overrideHeader(sortedVisibleColumns) : /* @__PURE__ */ jsx136("thead", { css: headerStyle, children: /* @__PURE__ */ jsx136(
|
|
8745
8758
|
WfoTableHeaderRow,
|
|
8746
8759
|
{
|
|
@@ -8753,7 +8766,7 @@ var WfoTable = ({
|
|
|
8753
8766
|
onUpdateColumWidth
|
|
8754
8767
|
}
|
|
8755
8768
|
) }),
|
|
8756
|
-
dataLength === 0 ? /* @__PURE__ */ jsx136("tbody", { css: isLoading && bodyLoadingStyle, children: /* @__PURE__ */ jsx136("tr", { css: rowStyle, children: /* @__PURE__ */ jsx136("td", { colSpan: sortedVisibleColumns.length, css: [cellStyle, emptyTableMessageStyle], children: isLoading ? t("loading") : t("noItemsFound") }) }) }) : isVirtualized && height ? /* @__PURE__ */
|
|
8769
|
+
dataLength === 0 ? /* @__PURE__ */ jsx136("tbody", { css: isLoading && bodyLoadingStyle, children: /* @__PURE__ */ jsx136("tr", { css: rowStyle, children: /* @__PURE__ */ jsx136("td", { colSpan: sortedVisibleColumns.length, css: [cellStyle, emptyTableMessageStyle], children: isLoading ? t("loading") : t("noItemsFound") }) }) }) : isVirtualized && height ? /* @__PURE__ */ jsxs68("tbody", { children: [
|
|
8757
8770
|
/* @__PURE__ */ jsx136(
|
|
8758
8771
|
"tr",
|
|
8759
8772
|
{
|
|
@@ -8796,7 +8809,7 @@ var WfoTable = ({
|
|
|
8796
8809
|
] })
|
|
8797
8810
|
}
|
|
8798
8811
|
),
|
|
8799
|
-
pagination && /* @__PURE__ */
|
|
8812
|
+
pagination && /* @__PURE__ */ jsxs68("div", { css: paginationStyle, children: [
|
|
8800
8813
|
/* @__PURE__ */ jsx136(EuiSpacer12, { size: "xs" }),
|
|
8801
8814
|
/* @__PURE__ */ jsx136(
|
|
8802
8815
|
EuiTablePagination,
|
|
@@ -8856,7 +8869,7 @@ var getWfoGroupedTableStyles = ({ theme }) => {
|
|
|
8856
8869
|
};
|
|
8857
8870
|
|
|
8858
8871
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandableRow.tsx
|
|
8859
|
-
import { jsx as jsx137, jsxs as
|
|
8872
|
+
import { jsx as jsx137, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
8860
8873
|
var WfoExpandableRow = ({
|
|
8861
8874
|
groupName,
|
|
8862
8875
|
numberOfRowsInGroup,
|
|
@@ -8866,7 +8879,7 @@ var WfoExpandableRow = ({
|
|
|
8866
8879
|
const { expandableRowContainerStyle, expandableRowTextStyle } = useWithOrchestratorTheme(getWfoGroupedTableStyles);
|
|
8867
8880
|
const t = useTranslations28("wfoComponents");
|
|
8868
8881
|
const hasData = numberOfRowsInGroup > 0;
|
|
8869
|
-
return /* @__PURE__ */
|
|
8882
|
+
return /* @__PURE__ */ jsxs69("div", { css: expandableRowContainerStyle, children: [
|
|
8870
8883
|
/* @__PURE__ */ jsx137(
|
|
8871
8884
|
EuiButtonIcon6,
|
|
8872
8885
|
{
|
|
@@ -8923,13 +8936,13 @@ var WfoGroupedTableGroups = React30.forwardRef(
|
|
|
8923
8936
|
WfoGroupedTableGroups.displayName = "WfoGroupedTableGroups";
|
|
8924
8937
|
|
|
8925
8938
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx
|
|
8926
|
-
import { Fragment as Fragment22, jsx as jsx139, jsxs as
|
|
8939
|
+
import { Fragment as Fragment22, jsx as jsx139, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
8927
8940
|
var WfoExpandedGroupRow = React31.forwardRef(
|
|
8928
8941
|
({ data, columnConfig, nestingLevel = 1, groupNameLabel, onExpandRowChange }, reference) => {
|
|
8929
8942
|
const { expandedRowStyle } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
8930
8943
|
const { innerTableHeaderStyle, getNestingStyle } = useWithOrchestratorTheme(getWfoGroupedTableStyles);
|
|
8931
8944
|
if (Array.isArray(data)) {
|
|
8932
|
-
return /* @__PURE__ */
|
|
8945
|
+
return /* @__PURE__ */ jsxs70(Fragment22, { children: [
|
|
8933
8946
|
/* @__PURE__ */ jsx139(WfoTableHeaderRow, { css: [innerTableHeaderStyle, getNestingStyle(nestingLevel)], columnConfig }),
|
|
8934
8947
|
/* @__PURE__ */ jsx139(
|
|
8935
8948
|
WfoTableDataRows,
|
|
@@ -9115,7 +9128,7 @@ var useGroupedTableConfig = ({
|
|
|
9115
9128
|
};
|
|
9116
9129
|
|
|
9117
9130
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx
|
|
9118
|
-
import { Fragment as Fragment23, jsx as jsx141, jsxs as
|
|
9131
|
+
import { Fragment as Fragment23, jsx as jsx141, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
9119
9132
|
var WfoGroupedTable = ({
|
|
9120
9133
|
data,
|
|
9121
9134
|
columnConfig,
|
|
@@ -9141,7 +9154,7 @@ var WfoGroupedTable = ({
|
|
|
9141
9154
|
columnConfig
|
|
9142
9155
|
});
|
|
9143
9156
|
const ExpandCollapseButton = () => /* @__PURE__ */ jsx141(EuiButtonEmpty4, { size: "xs", onClick: () => isAllGroupsAndSubgroupsExpanded ? collapseAllRows() : expandAllRows(), children: isAllGroupsAndSubgroupsExpanded ? t("collapse") : t("expand") });
|
|
9144
|
-
return /* @__PURE__ */
|
|
9157
|
+
return /* @__PURE__ */ jsxs71(Fragment23, { children: [
|
|
9145
9158
|
/* @__PURE__ */ jsx141(EuiFlexGroup11, { justifyContent: "flexEnd", children: overrideHeaderSection ? overrideHeaderSection(/* @__PURE__ */ jsx141(ExpandCollapseButton, {})) : /* @__PURE__ */ jsx141(ExpandCollapseButton, {}) }),
|
|
9146
9159
|
/* @__PURE__ */ jsx141(EuiSpacer13, { size: "xs" }),
|
|
9147
9160
|
/* @__PURE__ */ jsx141(
|
|
@@ -9221,7 +9234,7 @@ var WfoToolTip = ({ tooltipContent, children, className }) => {
|
|
|
9221
9234
|
};
|
|
9222
9235
|
|
|
9223
9236
|
// src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
|
|
9224
|
-
import { Fragment as Fragment25, jsx as jsx146, jsxs as
|
|
9237
|
+
import { Fragment as Fragment25, jsx as jsx146, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
9225
9238
|
var WfoRelatedSubscriptions = ({
|
|
9226
9239
|
subscriptionId,
|
|
9227
9240
|
subscriptionPath = PATH_SUBSCRIPTIONS
|
|
@@ -9259,7 +9272,7 @@ var WfoRelatedSubscriptions = ({
|
|
|
9259
9272
|
description: {
|
|
9260
9273
|
columnType: "data" /* DATA */,
|
|
9261
9274
|
label: t("description"),
|
|
9262
|
-
renderData: (value, record) => /* @__PURE__ */ jsx146(
|
|
9275
|
+
renderData: (value, record) => /* @__PURE__ */ jsx146(Link8, { target: "_blank", href: `${subscriptionPath}/${record.subscriptionId}`, children: value })
|
|
9263
9276
|
},
|
|
9264
9277
|
status: {
|
|
9265
9278
|
columnType: "data" /* DATA */,
|
|
@@ -9303,7 +9316,7 @@ var WfoRelatedSubscriptions = ({
|
|
|
9303
9316
|
const toggleTerminatedSubscriptions = () => {
|
|
9304
9317
|
setHideTerminatedSubscriptions((currentValue) => !currentValue);
|
|
9305
9318
|
};
|
|
9306
|
-
return /* @__PURE__ */
|
|
9319
|
+
return /* @__PURE__ */ jsxs72(Fragment25, { children: [
|
|
9307
9320
|
/* @__PURE__ */ jsx146(EuiSpacer14, { size: "xl" }),
|
|
9308
9321
|
/* @__PURE__ */ jsx146(EuiFlexGroup12, { justifyContent: "flexEnd", children: /* @__PURE__ */ jsx146(EuiFlexItem8, { grow: 0, children: /* @__PURE__ */ jsx146(
|
|
9309
9322
|
EuiSwitch,
|
|
@@ -9363,7 +9376,7 @@ var subscriptionDetailTabs = [
|
|
|
9363
9376
|
];
|
|
9364
9377
|
|
|
9365
9378
|
// src/components/WfoSubscription/WfoSubscription.tsx
|
|
9366
|
-
import { Fragment as Fragment26, jsx as jsx148, jsxs as
|
|
9379
|
+
import { Fragment as Fragment26, jsx as jsx148, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
9367
9380
|
var WfoSubscription = ({ subscriptionId }) => {
|
|
9368
9381
|
const [activeTab, setActiveTab] = useQueryParam(
|
|
9369
9382
|
"activeTab",
|
|
@@ -9379,12 +9392,12 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
9379
9392
|
setActiveTab(tab);
|
|
9380
9393
|
};
|
|
9381
9394
|
const subscriptionDetail = data?.subscription;
|
|
9382
|
-
return /* @__PURE__ */ jsx148(Fragment26, { children: isError && /* @__PURE__ */ jsx148(WfoError, {}) || isLoading && /* @__PURE__ */ jsx148(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */
|
|
9395
|
+
return /* @__PURE__ */ jsx148(Fragment26, { children: isError && /* @__PURE__ */ jsx148(WfoError, {}) || isLoading && /* @__PURE__ */ jsx148(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */ jsxs73(Fragment26, { children: [
|
|
9383
9396
|
/* @__PURE__ */ jsx148(
|
|
9384
9397
|
WfoContentHeader,
|
|
9385
9398
|
{
|
|
9386
9399
|
title: /* @__PURE__ */ jsx148(WfoTitleWithWebsocketBadge, { title: subscriptionDetail.description }),
|
|
9387
|
-
subtitle: /* @__PURE__ */
|
|
9400
|
+
subtitle: /* @__PURE__ */ jsxs73(Fragment26, { children: [
|
|
9388
9401
|
/* @__PURE__ */ jsx148(WfoSubscriptionStatusBadge, { status: subscriptionDetail.status }),
|
|
9389
9402
|
/* @__PURE__ */ jsx148(WfoSubscriptionSyncStatusBadge, { insync: subscriptionDetail.insync })
|
|
9390
9403
|
] }),
|
|
@@ -9410,7 +9423,7 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
9410
9423
|
selectedTab === "general" /* GENERAL_TAB */ && /* @__PURE__ */ jsx148(WfoSubscriptionGeneral, { subscriptionDetail }),
|
|
9411
9424
|
selectedTab === "processes" /* PROCESSES_TAB */ && data && subscriptionDetail.processes?.page && /* @__PURE__ */ jsx148(WfoProcessesTimeline, { subscriptionDetailProcesses: subscriptionDetail.processes?.page }),
|
|
9412
9425
|
selectedTab === "related-subscriptions" /* RELATED_SUBSCRIPTIONS_TAB */ && data && /* @__PURE__ */ jsx148(WfoRelatedSubscriptions, { subscriptionId: subscriptionDetail.subscriptionId })
|
|
9413
|
-
] }) || /* @__PURE__ */
|
|
9426
|
+
] }) || /* @__PURE__ */ jsxs73("h1", { children: [
|
|
9414
9427
|
"Unknown subscriptionId: ",
|
|
9415
9428
|
subscriptionId
|
|
9416
9429
|
] }) });
|
|
@@ -9429,9 +9442,9 @@ import { EuiContextMenuItem as EuiContextMenuItem2, EuiToolTip as EuiToolTip8 }
|
|
|
9429
9442
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
|
|
9430
9443
|
import { useState as useState17 } from "react";
|
|
9431
9444
|
import { useTranslations as useTranslations31 } from "next-intl";
|
|
9432
|
-
import
|
|
9445
|
+
import Link9 from "next/link";
|
|
9433
9446
|
import { EuiButtonIcon as EuiButtonIcon7, EuiText as EuiText11 } from "@elastic/eui";
|
|
9434
|
-
import { jsx as jsx149, jsxs as
|
|
9447
|
+
import { jsx as jsx149, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
9435
9448
|
var WfoSubscriptionActionExpandableMenuItem = ({
|
|
9436
9449
|
subscriptionAction,
|
|
9437
9450
|
onClickLockedRelation,
|
|
@@ -9441,8 +9454,8 @@ var WfoSubscriptionActionExpandableMenuItem = ({
|
|
|
9441
9454
|
const { clickableStyle, expandableMenuItemStyle, expandButtonStyle, expandedContentStyle, linkStyle } = useWithOrchestratorTheme(getSubscriptionActionStyles);
|
|
9442
9455
|
const [isExpanded, setIsExpanded] = useState17(false);
|
|
9443
9456
|
const { locked_relations: lockedRelations } = subscriptionAction;
|
|
9444
|
-
return /* @__PURE__ */
|
|
9445
|
-
/* @__PURE__ */
|
|
9457
|
+
return /* @__PURE__ */ jsxs74("div", { children: [
|
|
9458
|
+
/* @__PURE__ */ jsxs74(
|
|
9446
9459
|
"div",
|
|
9447
9460
|
{
|
|
9448
9461
|
css: [expandableMenuItemStyle, lockedRelations && clickableStyle],
|
|
@@ -9461,10 +9474,10 @@ var WfoSubscriptionActionExpandableMenuItem = ({
|
|
|
9461
9474
|
]
|
|
9462
9475
|
}
|
|
9463
9476
|
),
|
|
9464
|
-
lockedRelations && isExpanded && /* @__PURE__ */
|
|
9477
|
+
lockedRelations && isExpanded && /* @__PURE__ */ jsxs74("div", { css: expandedContentStyle, children: [
|
|
9465
9478
|
/* @__PURE__ */ jsx149(EuiText11, { size: "xs", children: t("lockedBySubscriptions") }),
|
|
9466
9479
|
lockedRelations.map((relation) => /* @__PURE__ */ jsx149(EuiText11, { size: "xs", children: /* @__PURE__ */ jsx149(
|
|
9467
|
-
|
|
9480
|
+
Link9,
|
|
9468
9481
|
{
|
|
9469
9482
|
css: linkStyle,
|
|
9470
9483
|
href: `${PATH_SUBSCRIPTIONS}/${relation}`,
|
|
@@ -9478,7 +9491,7 @@ var WfoSubscriptionActionExpandableMenuItem = ({
|
|
|
9478
9491
|
};
|
|
9479
9492
|
|
|
9480
9493
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx
|
|
9481
|
-
import { jsx as jsx150, jsxs as
|
|
9494
|
+
import { jsx as jsx150, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
9482
9495
|
var WfoSubscriptionActionsMenuItem = ({
|
|
9483
9496
|
subscriptionAction,
|
|
9484
9497
|
onClick,
|
|
@@ -9511,7 +9524,7 @@ var WfoSubscriptionActionsMenuItem = ({
|
|
|
9511
9524
|
}
|
|
9512
9525
|
) }) });
|
|
9513
9526
|
};
|
|
9514
|
-
const getIcon = () => subscriptionAction.reason ? /* @__PURE__ */
|
|
9527
|
+
const getIcon = () => subscriptionAction.reason ? /* @__PURE__ */ jsxs75("div", { css: disabledIconStyle, children: [
|
|
9515
9528
|
/* @__PURE__ */ jsx150(WfoTargetTypeIcon, { target, disabled: true }),
|
|
9516
9529
|
/* @__PURE__ */ jsx150("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx150(WfoXCircleFill, { width: 20, height: 20, color: theme.colors.danger }) })
|
|
9517
9530
|
] }) : /* @__PURE__ */ jsx150("div", { css: iconStyle, children: /* @__PURE__ */ jsx150(WfoTargetTypeIcon, { target }) });
|
|
@@ -9530,8 +9543,8 @@ var WfoSubscriptionActionsMenuItem = ({
|
|
|
9530
9543
|
};
|
|
9531
9544
|
|
|
9532
9545
|
// src/icons/WfoDotsHorizontal.tsx
|
|
9533
|
-
import { jsx as jsx151, jsxs as
|
|
9534
|
-
var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) => /* @__PURE__ */
|
|
9546
|
+
import { jsx as jsx151, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
9547
|
+
var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) => /* @__PURE__ */ jsxs76("svg", { width, height, viewBox: "0 0 24 24", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
9535
9548
|
/* @__PURE__ */ jsx151("title", { children: "icon/dots-horizontal" }),
|
|
9536
9549
|
/* @__PURE__ */ jsx151("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx151("g", { id: "icon/dots-horizontal", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx151(
|
|
9537
9550
|
"path",
|
|
@@ -9543,7 +9556,7 @@ var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) =>
|
|
|
9543
9556
|
] });
|
|
9544
9557
|
|
|
9545
9558
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
|
|
9546
|
-
import { Fragment as Fragment27, jsx as jsx152, jsxs as
|
|
9559
|
+
import { Fragment as Fragment27, jsx as jsx152, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
9547
9560
|
var MenuBlock = ({ title }) => /* @__PURE__ */ jsx152(EuiTitle, { size: "xxxs", children: /* @__PURE__ */ jsx152("h3", { children: title }) });
|
|
9548
9561
|
var WfoSubscriptionActions = ({
|
|
9549
9562
|
subscriptionId,
|
|
@@ -9610,8 +9623,8 @@ var WfoSubscriptionActions = ({
|
|
|
9610
9623
|
redirectToUrl(actionName, isTask);
|
|
9611
9624
|
}
|
|
9612
9625
|
};
|
|
9613
|
-
const compactItems = /* @__PURE__ */
|
|
9614
|
-
isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */
|
|
9626
|
+
const compactItems = /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9627
|
+
isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9615
9628
|
!compactMode && /* @__PURE__ */ jsx152(MenuBlock, { title: t("tasks") }),
|
|
9616
9629
|
subscriptionActions.validate.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
|
|
9617
9630
|
WfoSubscriptionActionsMenuItem,
|
|
@@ -9624,7 +9637,7 @@ var WfoSubscriptionActions = ({
|
|
|
9624
9637
|
`s_${index}`
|
|
9625
9638
|
))
|
|
9626
9639
|
] }),
|
|
9627
|
-
isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */
|
|
9640
|
+
isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9628
9641
|
!compactMode && /* @__PURE__ */ jsx152(MenuBlock, { title: t("reconcile") }),
|
|
9629
9642
|
subscriptionActions?.reconcile.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
|
|
9630
9643
|
WfoSubscriptionActionsMenuItem,
|
|
@@ -9646,8 +9659,8 @@ var WfoSubscriptionActions = ({
|
|
|
9646
9659
|
}
|
|
9647
9660
|
) })
|
|
9648
9661
|
] });
|
|
9649
|
-
const fullItems = /* @__PURE__ */
|
|
9650
|
-
isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */
|
|
9662
|
+
const fullItems = /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9663
|
+
isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9651
9664
|
/* @__PURE__ */ jsx152(MenuBlock, { title: t("modify") }),
|
|
9652
9665
|
subscriptionActions.modify.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
|
|
9653
9666
|
WfoSubscriptionActionsMenuItem,
|
|
@@ -9663,7 +9676,7 @@ var WfoSubscriptionActions = ({
|
|
|
9663
9676
|
))
|
|
9664
9677
|
] }),
|
|
9665
9678
|
compactItems,
|
|
9666
|
-
isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */
|
|
9679
|
+
isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */ jsxs77(Fragment27, { children: [
|
|
9667
9680
|
/* @__PURE__ */ jsx152(MenuBlock, { title: t("terminate") }),
|
|
9668
9681
|
subscriptionActions.terminate.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
|
|
9669
9682
|
WfoSubscriptionActionsMenuItem,
|
|
@@ -9709,7 +9722,7 @@ import {
|
|
|
9709
9722
|
|
|
9710
9723
|
// src/components/WfoSubscription/WfoInUseByRelations.tsx
|
|
9711
9724
|
import { useTranslations as useTranslations34 } from "next-intl";
|
|
9712
|
-
import
|
|
9725
|
+
import Link10 from "next/link";
|
|
9713
9726
|
import { Fragment as Fragment28, jsx as jsx153 } from "@emotion/react/jsx-runtime";
|
|
9714
9727
|
var WfoInUseByRelations = ({ inUseByRelations }) => {
|
|
9715
9728
|
const t = useTranslations34("subscriptions.detail");
|
|
@@ -9733,7 +9746,7 @@ var WfoInUseByRelations = ({ inUseByRelations }) => {
|
|
|
9733
9746
|
},
|
|
9734
9747
|
{
|
|
9735
9748
|
key: t("description"),
|
|
9736
|
-
value: /* @__PURE__ */ jsx153(
|
|
9749
|
+
value: /* @__PURE__ */ jsx153(Link10, { href: `${PATH_SUBSCRIPTIONS}/${inUseByRelationDetails.subscriptionId}`, target: "_blank", children: inUseByRelationDetails.description }),
|
|
9737
9750
|
textToCopy: inUseByRelationDetails.description
|
|
9738
9751
|
},
|
|
9739
9752
|
{
|
|
@@ -9815,7 +9828,7 @@ var getStyles6 = ({ theme, toSecondaryColor }) => {
|
|
|
9815
9828
|
};
|
|
9816
9829
|
|
|
9817
9830
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
|
|
9818
|
-
import { Fragment as Fragment29, jsx as jsx154, jsxs as
|
|
9831
|
+
import { Fragment as Fragment29, jsx as jsx154, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
9819
9832
|
var HIDDEN_KEYS = ["title", "name", "label", "inUseByIds"];
|
|
9820
9833
|
var WfoSubscriptionProductBlock = ({
|
|
9821
9834
|
productBlock,
|
|
@@ -9843,18 +9856,18 @@ var WfoSubscriptionProductBlock = ({
|
|
|
9843
9856
|
const isEmpty = (value) => {
|
|
9844
9857
|
return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
|
|
9845
9858
|
};
|
|
9846
|
-
return /* @__PURE__ */
|
|
9859
|
+
return /* @__PURE__ */ jsxs78(Fragment29, { children: [
|
|
9847
9860
|
/* @__PURE__ */ jsx154(EuiSpacer15, { size: "m" }),
|
|
9848
|
-
/* @__PURE__ */
|
|
9861
|
+
/* @__PURE__ */ jsxs78(
|
|
9849
9862
|
EuiPanel,
|
|
9850
9863
|
{
|
|
9851
9864
|
color: "transparent",
|
|
9852
9865
|
hasShadow: false,
|
|
9853
9866
|
css: isOutsideCurrentSubscription ? panelStyleOutsideCurrentSubscription : panelStyle,
|
|
9854
9867
|
children: [
|
|
9855
|
-
/* @__PURE__ */
|
|
9868
|
+
/* @__PURE__ */ jsxs78(EuiFlexGroup14, { children: [
|
|
9856
9869
|
/* @__PURE__ */ jsx154(EuiFlexItem10, { grow: false, children: /* @__PURE__ */ jsx154("div", { css: isOutsideCurrentSubscription ? iconOutsideCurrentSubscriptionStyle : iconStyle, children: /* @__PURE__ */ jsx154(EuiIcon2, { type: "filebeatApp", color: "currentColor" }) }) }),
|
|
9857
|
-
/* @__PURE__ */
|
|
9870
|
+
/* @__PURE__ */ jsxs78(EuiFlexItem10, { children: [
|
|
9858
9871
|
/* @__PURE__ */ jsx154(EuiText12, { grow: true, children: /* @__PURE__ */ jsx154("h3", { children: getProductBlockTitle(productBlock.productBlockInstanceValues) }) }),
|
|
9859
9872
|
/* @__PURE__ */ jsx154(EuiText12, { size: "s", children: getFieldFromProductBlockInstanceValues(productBlock.productBlockInstanceValues, "name") })
|
|
9860
9873
|
] }),
|
|
@@ -9869,13 +9882,13 @@ var WfoSubscriptionProductBlock = ({
|
|
|
9869
9882
|
) })
|
|
9870
9883
|
] }),
|
|
9871
9884
|
/* @__PURE__ */ jsx154(EuiSpacer15, { size: "m" }),
|
|
9872
|
-
/* @__PURE__ */ jsx154("table", { width: "100%", children: /* @__PURE__ */
|
|
9873
|
-
isOutsideCurrentSubscription && /* @__PURE__ */
|
|
9885
|
+
/* @__PURE__ */ jsx154("table", { width: "100%", children: /* @__PURE__ */ jsxs78("tbody", { children: [
|
|
9886
|
+
isOutsideCurrentSubscription && /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
|
|
9874
9887
|
/* @__PURE__ */ jsx154("td", { css: leftColumnStyleWithAlignSelf, children: /* @__PURE__ */ jsx154("b", { children: t("ownerSubscriptionId") }) }),
|
|
9875
9888
|
/* @__PURE__ */ jsx154("td", { children: /* @__PURE__ */ jsx154(
|
|
9876
9889
|
WfoValueCell,
|
|
9877
9890
|
{
|
|
9878
|
-
value: /* @__PURE__ */
|
|
9891
|
+
value: /* @__PURE__ */ jsxs78(Fragment29, { children: [
|
|
9879
9892
|
/* @__PURE__ */ jsx154("a", { href: `${subscriptionPath}/${ownerSubscriptionId}`, target: "_blank", children: productBlock.subscription.description }),
|
|
9880
9893
|
/* @__PURE__ */ jsx154(EuiText12, { css: outsideSubscriptionIdTextStyle, children: "-" }),
|
|
9881
9894
|
getFirstUuidPart(ownerSubscriptionId)
|
|
@@ -9886,16 +9899,16 @@ var WfoSubscriptionProductBlock = ({
|
|
|
9886
9899
|
}
|
|
9887
9900
|
) })
|
|
9888
9901
|
] }, -1),
|
|
9889
|
-
showDetails && /* @__PURE__ */
|
|
9890
|
-
/* @__PURE__ */
|
|
9902
|
+
showDetails && /* @__PURE__ */ jsxs78(Fragment29, { children: [
|
|
9903
|
+
/* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
|
|
9891
9904
|
/* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("subscriptionInstanceId") }) }),
|
|
9892
9905
|
/* @__PURE__ */ jsx154("td", { children: productBlock.subscriptionInstanceId })
|
|
9893
9906
|
] }, -2),
|
|
9894
|
-
!isOutsideCurrentSubscription && /* @__PURE__ */
|
|
9907
|
+
!isOutsideCurrentSubscription && /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
|
|
9895
9908
|
/* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("ownerSubscriptionId") }) }),
|
|
9896
9909
|
/* @__PURE__ */ jsx154("td", { children: /* @__PURE__ */ jsx154(Fragment29, { children: /* @__PURE__ */ jsx154(EuiBadge2, { children: t("self") }) }) })
|
|
9897
9910
|
] }, -3),
|
|
9898
|
-
/* @__PURE__ */
|
|
9911
|
+
/* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
|
|
9899
9912
|
/* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("inUseByRelations") }) }),
|
|
9900
9913
|
/* @__PURE__ */ jsx154("td", { children: inUseByRelations.length === 0 && "None" || /* @__PURE__ */ jsx154(WfoInUseByRelations, { inUseByRelations }) })
|
|
9901
9914
|
] }, -4)
|
|
@@ -9929,7 +9942,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
9929
9942
|
|
|
9930
9943
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
|
|
9931
9944
|
import { EuiBadge as EuiBadge3 } from "@elastic/eui";
|
|
9932
|
-
import { Fragment as Fragment30, jsx as jsx155, jsxs as
|
|
9945
|
+
import { Fragment as Fragment30, jsx as jsx155, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
9933
9946
|
var KEY_CELL_CLASS_NAME = "key-cell";
|
|
9934
9947
|
var VALUE_CELL_CLASS_NAME = "value-cell";
|
|
9935
9948
|
var WfoProductBlockKeyValueRow = ({
|
|
@@ -9950,7 +9963,7 @@ var WfoProductBlockKeyValueRow = ({
|
|
|
9950
9963
|
return /* @__PURE__ */ jsx155(Fragment30, { children: value2 });
|
|
9951
9964
|
}
|
|
9952
9965
|
};
|
|
9953
|
-
return /* @__PURE__ */
|
|
9966
|
+
return /* @__PURE__ */ jsxs79("tr", { className, css: rowStyle, children: [
|
|
9954
9967
|
/* @__PURE__ */ jsx155("td", { className: KEY_CELL_CLASS_NAME, css: leftColumnStyle, children: /* @__PURE__ */ jsx155("b", { children: camelToHuman(field) }) }),
|
|
9955
9968
|
/* @__PURE__ */ jsx155("td", { className: VALUE_CELL_CLASS_NAME, children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx155(WfoProductBlockValue, { value }) })
|
|
9956
9969
|
] });
|
|
@@ -9990,7 +10003,7 @@ var getWfoButtonComboBoxStyles = ({ theme }) => {
|
|
|
9990
10003
|
};
|
|
9991
10004
|
|
|
9992
10005
|
// src/components/WfoButtonComboBox/WfoButtonComboBox.tsx
|
|
9993
|
-
import { Fragment as Fragment31, jsx as jsx156, jsxs as
|
|
10006
|
+
import { Fragment as Fragment31, jsx as jsx156, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
9994
10007
|
var WfoButtonComboBox = ({
|
|
9995
10008
|
options,
|
|
9996
10009
|
onOptionChange,
|
|
@@ -10006,7 +10019,7 @@ var WfoButtonComboBox = ({
|
|
|
10006
10019
|
setOptionsState(options);
|
|
10007
10020
|
}
|
|
10008
10021
|
}, [isPopoverOpen, options]);
|
|
10009
|
-
return /* @__PURE__ */
|
|
10022
|
+
return /* @__PURE__ */ jsxs80(
|
|
10010
10023
|
EuiPopover4,
|
|
10011
10024
|
{
|
|
10012
10025
|
initialFocus: `.euiSelectable .euiFieldSearch`,
|
|
@@ -10014,7 +10027,7 @@ var WfoButtonComboBox = ({
|
|
|
10014
10027
|
isOpen: isPopoverOpen,
|
|
10015
10028
|
closePopover: () => setPopoverOpen(false),
|
|
10016
10029
|
children: [
|
|
10017
|
-
title && /* @__PURE__ */
|
|
10030
|
+
title && /* @__PURE__ */ jsxs80(Fragment31, { children: [
|
|
10018
10031
|
/* @__PURE__ */ jsx156(EuiText13, { size: "s", css: titleStyle, children: title }),
|
|
10019
10032
|
/* @__PURE__ */ jsx156(EuiSpacer16, { size: "s" })
|
|
10020
10033
|
] }),
|
|
@@ -10030,7 +10043,7 @@ var WfoButtonComboBox = ({
|
|
|
10030
10043
|
setOptionsState(options2);
|
|
10031
10044
|
},
|
|
10032
10045
|
height: 200,
|
|
10033
|
-
children: (list, search) => /* @__PURE__ */
|
|
10046
|
+
children: (list, search) => /* @__PURE__ */ jsxs80(Fragment31, { children: [
|
|
10034
10047
|
search,
|
|
10035
10048
|
/* @__PURE__ */ jsx156(EuiSpacer16, { size: "s" }),
|
|
10036
10049
|
list
|
|
@@ -10114,14 +10127,14 @@ var getStyles7 = ({ theme, toSecondaryColor }) => {
|
|
|
10114
10127
|
};
|
|
10115
10128
|
|
|
10116
10129
|
// src/icons/WfoXMarkSmall.tsx
|
|
10117
|
-
import { jsx as jsx157, jsxs as
|
|
10118
|
-
var WfoXMarkSmall = ({ width = 20, height = 20 }) => /* @__PURE__ */
|
|
10130
|
+
import { jsx as jsx157, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
10131
|
+
var WfoXMarkSmall = ({ width = 20, height = 20 }) => /* @__PURE__ */ jsxs81("svg", { width, height, viewBox: "0 -2 16 16", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
10119
10132
|
/* @__PURE__ */ jsx157("title", { children: "icon/x-mark" }),
|
|
10120
10133
|
/* @__PURE__ */ jsx157("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx157("g", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ jsx157("path", { d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z" }) }) })
|
|
10121
10134
|
] });
|
|
10122
10135
|
|
|
10123
10136
|
// src/components/WfoTree/WfoTreeNodeListItem.tsx
|
|
10124
|
-
import { jsx as jsx158, jsxs as
|
|
10137
|
+
import { jsx as jsx158, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
10125
10138
|
var WfoTreeNodeListItem = ({ item, selected }) => {
|
|
10126
10139
|
const t = useTranslations36("common");
|
|
10127
10140
|
const { toggleSelectedId } = useContext6(TreeContext);
|
|
@@ -10129,7 +10142,7 @@ var WfoTreeNodeListItem = ({ item, selected }) => {
|
|
|
10129
10142
|
const { selectedTreeItemStyle, treeItemStyle } = useWithOrchestratorTheme(getStyles7);
|
|
10130
10143
|
const { isOutsideCurrentSubscription, id, label } = item;
|
|
10131
10144
|
const textLabel = label.toString();
|
|
10132
|
-
return /* @__PURE__ */
|
|
10145
|
+
return /* @__PURE__ */ jsxs82(
|
|
10133
10146
|
EuiFlexGroup15,
|
|
10134
10147
|
{
|
|
10135
10148
|
alignItems: "center",
|
|
@@ -10155,7 +10168,7 @@ var WfoTreeNodeListItem = ({ item, selected }) => {
|
|
|
10155
10168
|
};
|
|
10156
10169
|
|
|
10157
10170
|
// src/components/WfoTree/WfoTreeNode.tsx
|
|
10158
|
-
import { jsx as jsx159, jsxs as
|
|
10171
|
+
import { jsx as jsx159, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
10159
10172
|
var WfoTreeNode = ({ item, hasChildren, level }) => {
|
|
10160
10173
|
const { theme } = useOrchestratorTheme();
|
|
10161
10174
|
const { expandIconContainerStyle, treeContainerStyle } = useWithOrchestratorTheme(getStyles7);
|
|
@@ -10163,7 +10176,7 @@ var WfoTreeNode = ({ item, hasChildren, level }) => {
|
|
|
10163
10176
|
const expanded = expandedIds.includes(item.id);
|
|
10164
10177
|
const selected = selectedIds.includes(item.id);
|
|
10165
10178
|
const expandIcon = expanded ? "arrowDown" : "arrowRight";
|
|
10166
|
-
return /* @__PURE__ */ jsx159("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */
|
|
10179
|
+
return /* @__PURE__ */ jsx159("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs83(EuiFlexGroup16, { children: [
|
|
10167
10180
|
/* @__PURE__ */ jsx159(EuiFlexItem12, { grow: false, css: treeContainerStyle, children: hasChildren ? /* @__PURE__ */ jsx159(
|
|
10168
10181
|
EuiIcon3,
|
|
10169
10182
|
{
|
|
@@ -10178,7 +10191,7 @@ var WfoTreeNode = ({ item, hasChildren, level }) => {
|
|
|
10178
10191
|
};
|
|
10179
10192
|
|
|
10180
10193
|
// src/components/WfoTree/WfoTreeBranch.tsx
|
|
10181
|
-
import { Fragment as Fragment32, jsx as jsx160, jsxs as
|
|
10194
|
+
import { Fragment as Fragment32, jsx as jsx160, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
10182
10195
|
var WfoTreeBranch = ({ item, level }) => {
|
|
10183
10196
|
const { expandedIds } = React40.useContext(TreeContext);
|
|
10184
10197
|
const selected = expandedIds.includes(item.id);
|
|
@@ -10191,7 +10204,7 @@ var WfoTreeBranch = ({ item, level }) => {
|
|
|
10191
10204
|
}
|
|
10192
10205
|
return null;
|
|
10193
10206
|
};
|
|
10194
|
-
return /* @__PURE__ */
|
|
10207
|
+
return /* @__PURE__ */ jsxs84(Fragment32, { children: [
|
|
10195
10208
|
/* @__PURE__ */ jsx160(EuiListGroup, { flush: true, color: "primary", maxWidth: productBlockTreeWidth, children: /* @__PURE__ */ jsx160(WfoTreeNode, { item, hasChildren, level }) }),
|
|
10196
10209
|
selected && renderBranches()
|
|
10197
10210
|
] });
|
|
@@ -10268,7 +10281,7 @@ var getPositionInTree = (tree, id) => {
|
|
|
10268
10281
|
};
|
|
10269
10282
|
|
|
10270
10283
|
// src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
|
|
10271
|
-
import { jsx as jsx162, jsxs as
|
|
10284
|
+
import { jsx as jsx162, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
10272
10285
|
var EUI_OPTION_CHECKED_STATE_ON = "on";
|
|
10273
10286
|
var WfoSubscriptionDetailTree = ({
|
|
10274
10287
|
productBlockInstances,
|
|
@@ -10346,7 +10359,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10346
10359
|
expandAll();
|
|
10347
10360
|
return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids);
|
|
10348
10361
|
};
|
|
10349
|
-
return /* @__PURE__ */
|
|
10362
|
+
return /* @__PURE__ */ jsxs85(
|
|
10350
10363
|
EuiFlexGroup17,
|
|
10351
10364
|
{
|
|
10352
10365
|
css: {
|
|
@@ -10364,10 +10377,10 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10364
10377
|
overflowY: "auto"
|
|
10365
10378
|
},
|
|
10366
10379
|
grow: true,
|
|
10367
|
-
children: /* @__PURE__ */
|
|
10368
|
-
/* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */
|
|
10380
|
+
children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { direction: "column", children: [
|
|
10381
|
+
/* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { justifyContent: "spaceBetween", alignItems: "center", children: [
|
|
10369
10382
|
/* @__PURE__ */ jsx162(EuiFlexItem13, { children: /* @__PURE__ */ jsx162(EuiText15, { children: /* @__PURE__ */ jsx162("h3", { children: t("productBlocks") }) }) }),
|
|
10370
|
-
/* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */
|
|
10383
|
+
/* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { children: [
|
|
10371
10384
|
/* @__PURE__ */ jsx162(
|
|
10372
10385
|
WfoTextAnchor,
|
|
10373
10386
|
{
|
|
@@ -10386,7 +10399,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10386
10399
|
)
|
|
10387
10400
|
] }) })
|
|
10388
10401
|
] }) }),
|
|
10389
|
-
/* @__PURE__ */
|
|
10402
|
+
/* @__PURE__ */ jsxs85(EuiFlexItem13, { grow: true, children: [
|
|
10390
10403
|
!tree && /* @__PURE__ */ jsx162(WfoLoading, {}),
|
|
10391
10404
|
tree && /* @__PURE__ */ jsx162(WfoTree, { treeBlocks: [tree], depthList })
|
|
10392
10405
|
] })
|
|
@@ -10401,7 +10414,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10401
10414
|
minWidth: 350
|
|
10402
10415
|
},
|
|
10403
10416
|
grow: true,
|
|
10404
|
-
children: /* @__PURE__ */
|
|
10417
|
+
children: /* @__PURE__ */ jsxs85("div", { children: [
|
|
10405
10418
|
/* @__PURE__ */ jsx162("div", { children: "\xA0" }),
|
|
10406
10419
|
" ",
|
|
10407
10420
|
selectedIds.length === 0 && /* @__PURE__ */ jsx162(
|
|
@@ -10414,7 +10427,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10414
10427
|
size: "m",
|
|
10415
10428
|
title: t("noProductBlockSelected"),
|
|
10416
10429
|
iconType: "inspect",
|
|
10417
|
-
children: /* @__PURE__ */
|
|
10430
|
+
children: /* @__PURE__ */ jsxs85(EuiText15, { children: [
|
|
10418
10431
|
t("ctaSelectProductBlock"),
|
|
10419
10432
|
" "
|
|
10420
10433
|
] })
|
|
@@ -10634,7 +10647,7 @@ var WfoInlineEdit = ({ value, onlyShowOnHover = false, onSave = () => {
|
|
|
10634
10647
|
};
|
|
10635
10648
|
|
|
10636
10649
|
// src/components/WfoSubscription/WfoCustomerDescriptionsField.tsx
|
|
10637
|
-
import { jsx as jsx165, jsxs as
|
|
10650
|
+
import { jsx as jsx165, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
10638
10651
|
var WfoCustomerDescriptionsField = ({
|
|
10639
10652
|
customerDescriptions,
|
|
10640
10653
|
subscriptionCustomerId,
|
|
@@ -10668,8 +10681,8 @@ var WfoCustomerDescriptionsField = ({
|
|
|
10668
10681
|
description,
|
|
10669
10682
|
id,
|
|
10670
10683
|
subscriptionId: subscriptionId2
|
|
10671
|
-
}) => /* @__PURE__ */
|
|
10672
|
-
/* @__PURE__ */
|
|
10684
|
+
}) => /* @__PURE__ */ jsxs86("div", { css: { display: "flex" }, children: [
|
|
10685
|
+
/* @__PURE__ */ jsxs86("div", { css: customerDescriptionsCustomerNameStyle, children: [
|
|
10673
10686
|
fullname ?? customerId,
|
|
10674
10687
|
" ",
|
|
10675
10688
|
`${shortcode ?? customerId}`,
|
|
@@ -10706,7 +10719,7 @@ var WfoCustomerDescriptionsField = ({
|
|
|
10706
10719
|
const currentCustomerSubscriptionDescription = customerDescriptionsWithName.find(
|
|
10707
10720
|
({ customerId }) => customerId === subscriptionCustomerId
|
|
10708
10721
|
);
|
|
10709
|
-
return /* @__PURE__ */
|
|
10722
|
+
return /* @__PURE__ */ jsxs86("div", { css: customerDescriptionsFormStyle, children: [
|
|
10710
10723
|
currentCustomerSubscriptionDescription && customerDescriptionEditForm(currentCustomerSubscriptionDescription) || customerDescriptionCreateForm(),
|
|
10711
10724
|
customerDescriptionsWithName.filter(({ customerId }) => customerId !== subscriptionCustomerId).map((customerDescriptionWithName) => customerDescriptionEditForm(customerDescriptionWithName))
|
|
10712
10725
|
] });
|
|
@@ -10734,7 +10747,7 @@ var getWfoTableSettingsModalStyles = (wfoThemeHelpers) => {
|
|
|
10734
10747
|
};
|
|
10735
10748
|
|
|
10736
10749
|
// src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx
|
|
10737
|
-
import { jsx as jsx166, jsxs as
|
|
10750
|
+
import { jsx as jsx166, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
10738
10751
|
var TableSettingsModal = ({
|
|
10739
10752
|
tableConfig,
|
|
10740
10753
|
pageSizeOptions,
|
|
@@ -10769,8 +10782,8 @@ var TableSettingsModal = ({
|
|
|
10769
10782
|
columns,
|
|
10770
10783
|
selectedPageSize
|
|
10771
10784
|
}),
|
|
10772
|
-
children: /* @__PURE__ */
|
|
10773
|
-
columns.map(({ field, name, isVisible }) => /* @__PURE__ */
|
|
10785
|
+
children: /* @__PURE__ */ jsxs87(EuiForm2, { children: [
|
|
10786
|
+
columns.map(({ field, name, isVisible }) => /* @__PURE__ */ jsxs87("div", { children: [
|
|
10774
10787
|
/* @__PURE__ */ jsx166(EuiFormRow5, { display: "columnCompressed", label: name, css: formRowStyle, children: /* @__PURE__ */ jsx166(
|
|
10775
10788
|
EuiSwitch2,
|
|
10776
10789
|
{
|
|
@@ -10913,10 +10926,10 @@ var WfoSortButton = ({ WfoIconComponent, isActive, onClick }) => {
|
|
|
10913
10926
|
};
|
|
10914
10927
|
|
|
10915
10928
|
// src/components/WfoTable/WfoSortButtons/WfoSortButtons.tsx
|
|
10916
|
-
import { jsx as jsx169, jsxs as
|
|
10929
|
+
import { jsx as jsx169, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
10917
10930
|
var WfoSortButtons = ({ sortOrder, onChangeSortOrder }) => {
|
|
10918
10931
|
const { sortButtonsContainerStyle } = getStyles8();
|
|
10919
|
-
return /* @__PURE__ */
|
|
10932
|
+
return /* @__PURE__ */ jsxs88("div", { css: sortButtonsContainerStyle, children: [
|
|
10920
10933
|
/* @__PURE__ */ jsx169(
|
|
10921
10934
|
WfoSortButton,
|
|
10922
10935
|
{
|
|
@@ -10965,11 +10978,11 @@ var getStyles9 = ({ theme }) => {
|
|
|
10965
10978
|
};
|
|
10966
10979
|
|
|
10967
10980
|
// src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx
|
|
10968
|
-
import { jsx as jsx170, jsxs as
|
|
10981
|
+
import { jsx as jsx170, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
10969
10982
|
var WfoFirstPartUUID = ({ UUID, showCopyIcon = true }) => {
|
|
10970
10983
|
const { uuidFieldStyle, clickable } = useWithOrchestratorTheme(getStyles9);
|
|
10971
10984
|
const { theme } = useOrchestratorTheme();
|
|
10972
|
-
return /* @__PURE__ */
|
|
10985
|
+
return /* @__PURE__ */ jsxs89("span", { css: uuidFieldStyle, children: [
|
|
10973
10986
|
getFirstUuidPart(UUID),
|
|
10974
10987
|
showCopyIcon && /* @__PURE__ */ jsx170(EuiCopy2, { textToCopy: UUID, children: (copy) => /* @__PURE__ */ jsx170("div", { className: COPY_ICON_CLASS, onClick: copy, css: clickable, children: /* @__PURE__ */ jsx170(WfoClipboardCopy, { width: 16, height: 16, color: theme.colors.backgroundBaseAccent }) }) })
|
|
10975
10988
|
] });
|
|
@@ -11049,7 +11062,7 @@ var toSortedTableColumnConfig = (columnConfig, columnKeys) => columnKeys.reduce(
|
|
|
11049
11062
|
import { useEffect as useEffect15, useState as useState25 } from "react";
|
|
11050
11063
|
import { useTranslations as useTranslations39 } from "next-intl";
|
|
11051
11064
|
import { EuiButton as EuiButton9, EuiButtonIcon as EuiButtonIcon11, EuiFlexGroup as EuiFlexGroup18, EuiFlexItem as EuiFlexItem15, EuiSpacer as EuiSpacer18, EuiText as EuiText16 } from "@elastic/eui";
|
|
11052
|
-
import { Fragment as Fragment34, jsx as jsx174, jsxs as
|
|
11065
|
+
import { Fragment as Fragment34, jsx as jsx174, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
11053
11066
|
var WfoAdvancedTable = ({
|
|
11054
11067
|
tableColumnConfig,
|
|
11055
11068
|
defaultHiddenColumns = [],
|
|
@@ -11126,8 +11139,8 @@ var WfoAdvancedTable = ({
|
|
|
11126
11139
|
span: (chunks) => /* @__PURE__ */ jsx174("span", { children: chunks }),
|
|
11127
11140
|
b: (chunks) => /* @__PURE__ */ jsx174("b", { children: chunks })
|
|
11128
11141
|
});
|
|
11129
|
-
return /* @__PURE__ */
|
|
11130
|
-
/* @__PURE__ */
|
|
11142
|
+
return /* @__PURE__ */ jsxs90(Fragment34, { children: [
|
|
11143
|
+
/* @__PURE__ */ jsxs90(EuiFlexGroup18, { alignItems: "center", children: [
|
|
11131
11144
|
/* @__PURE__ */ jsx174(EuiFlexItem15, { children: !disableSearch && /* @__PURE__ */ jsx174(WfoSearchField, { queryString, onUpdateQueryString }) }),
|
|
11132
11145
|
/* @__PURE__ */ jsx174(EuiFlexItem15, { grow: false, children: !disableSearch && /* @__PURE__ */ jsx174(
|
|
11133
11146
|
EuiButtonIcon11,
|
|
@@ -11514,7 +11527,7 @@ var WfoDropdownButton = ({ label, isDisabled = false, children }) => {
|
|
|
11514
11527
|
|
|
11515
11528
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
11516
11529
|
import { useTranslations as useTranslations68 } from "next-intl";
|
|
11517
|
-
import
|
|
11530
|
+
import Link13 from "next/link";
|
|
11518
11531
|
import { useRouter as useRouter17 } from "next/router";
|
|
11519
11532
|
|
|
11520
11533
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
@@ -11532,7 +11545,7 @@ var WfoMetadataDescriptionField = ({ onSave, description }) => {
|
|
|
11532
11545
|
import { useTranslations as useTranslations41 } from "next-intl";
|
|
11533
11546
|
import { useRouter as useRouter7 } from "next/router";
|
|
11534
11547
|
import { EuiSpacer as EuiSpacer19, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
|
|
11535
|
-
import { Fragment as Fragment37, jsx as jsx185, jsxs as
|
|
11548
|
+
import { Fragment as Fragment37, jsx as jsx185, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
11536
11549
|
var metaDataTabs = [
|
|
11537
11550
|
{
|
|
11538
11551
|
id: 1,
|
|
@@ -11569,7 +11582,7 @@ var WfoMetadataPageLayout = ({ children, tabs = metaDataTabs }) => {
|
|
|
11569
11582
|
const router = useRouter7();
|
|
11570
11583
|
const t = useTranslations41("metadata");
|
|
11571
11584
|
const currentPath = router.pathname;
|
|
11572
|
-
return /* @__PURE__ */
|
|
11585
|
+
return /* @__PURE__ */ jsxs91(Fragment37, { children: [
|
|
11573
11586
|
/* @__PURE__ */ jsx185(WfoContentHeader, { title: t("title") }),
|
|
11574
11587
|
/* @__PURE__ */ jsx185(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx185(EuiTab2, { isSelected: path === currentPath, onClick: () => router.push(path), children: t(`tabs.${name}`) }, id)) }),
|
|
11575
11588
|
/* @__PURE__ */ jsx185(EuiSpacer19, { size: "l" }),
|
|
@@ -11578,7 +11591,7 @@ var WfoMetadataPageLayout = ({ children, tabs = metaDataTabs }) => {
|
|
|
11578
11591
|
};
|
|
11579
11592
|
|
|
11580
11593
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
11581
|
-
import { Fragment as Fragment38, jsx as jsx186, jsxs as
|
|
11594
|
+
import { Fragment as Fragment38, jsx as jsx186, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
11582
11595
|
var PRODUCT_BLOCK_FIELD_NAME = "name";
|
|
11583
11596
|
var WfoProductBlocksPage = () => {
|
|
11584
11597
|
const t = useTranslations42("metadata.productBlocks");
|
|
@@ -11660,7 +11673,7 @@ var WfoProductBlocksPage = () => {
|
|
|
11660
11673
|
index
|
|
11661
11674
|
)) }),
|
|
11662
11675
|
renderTooltip: (productBlocks) => {
|
|
11663
|
-
return productBlocks.map((productBlock) => /* @__PURE__ */
|
|
11676
|
+
return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs92("p", { children: [
|
|
11664
11677
|
"- ",
|
|
11665
11678
|
productBlock.name
|
|
11666
11679
|
] }, productBlock.name));
|
|
@@ -11689,7 +11702,7 @@ var WfoProductBlocksPage = () => {
|
|
|
11689
11702
|
index
|
|
11690
11703
|
)) }),
|
|
11691
11704
|
renderTooltip: (resourceTypes) => {
|
|
11692
|
-
return resourceTypes.map((resourceType) => /* @__PURE__ */
|
|
11705
|
+
return resourceTypes.map((resourceType) => /* @__PURE__ */ jsxs92("p", { children: [
|
|
11693
11706
|
"- ",
|
|
11694
11707
|
resourceType.resourceType
|
|
11695
11708
|
] }, resourceType.resourceType));
|
|
@@ -11777,7 +11790,7 @@ var WfoProductBlocksPage = () => {
|
|
|
11777
11790
|
import { useEffect as useEffect17, useState as useState28 } from "react";
|
|
11778
11791
|
import { useTranslations as useTranslations43 } from "next-intl";
|
|
11779
11792
|
import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
|
|
11780
|
-
import { Fragment as Fragment39, jsx as jsx187, jsxs as
|
|
11793
|
+
import { Fragment as Fragment39, jsx as jsx187, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
11781
11794
|
var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
|
|
11782
11795
|
var WfoResourceTypesPage = () => {
|
|
11783
11796
|
const t = useTranslations43("metadata.resourceTypes");
|
|
@@ -11858,7 +11871,7 @@ var WfoResourceTypesPage = () => {
|
|
|
11858
11871
|
index
|
|
11859
11872
|
)) }),
|
|
11860
11873
|
renderTooltip: (productBlocks) => {
|
|
11861
|
-
return productBlocks.map((productBlock) => /* @__PURE__ */
|
|
11874
|
+
return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs93("p", { children: [
|
|
11862
11875
|
"- ",
|
|
11863
11876
|
productBlock.name
|
|
11864
11877
|
] }, productBlock.name));
|
|
@@ -11926,7 +11939,7 @@ var WfoResourceTypesPage = () => {
|
|
|
11926
11939
|
// src/pages/metadata/WfoProductsPage.tsx
|
|
11927
11940
|
import { useEffect as useEffect18, useState as useState29 } from "react";
|
|
11928
11941
|
import { useTranslations as useTranslations44 } from "next-intl";
|
|
11929
|
-
import { Fragment as Fragment40, jsx as jsx188, jsxs as
|
|
11942
|
+
import { Fragment as Fragment40, jsx as jsx188, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
11930
11943
|
var PRODUCT_FIELD_NAME = "name";
|
|
11931
11944
|
var WfoProductsPage = () => {
|
|
11932
11945
|
const t = useTranslations44("metadata.products");
|
|
@@ -12005,7 +12018,7 @@ var WfoProductsPage = () => {
|
|
|
12005
12018
|
width: "400px",
|
|
12006
12019
|
renderData: (fixedInputs) => /* @__PURE__ */ jsx188(Fragment40, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx188(WfoProductBlockBadge, { badgeType: "fixed_input" /* FIXED_INPUT */, children: `${fixedInput.name}: ${fixedInput.value}` }, index)) }),
|
|
12007
12020
|
renderTooltip: (fixedInputs) => {
|
|
12008
|
-
return fixedInputs.map((fixedInput) => /* @__PURE__ */
|
|
12021
|
+
return fixedInputs.map((fixedInput) => /* @__PURE__ */ jsxs94("p", { children: [
|
|
12009
12022
|
"- ",
|
|
12010
12023
|
`${fixedInput.name}: ${fixedInput.value}`
|
|
12011
12024
|
] }, fixedInput.name));
|
|
@@ -12024,7 +12037,7 @@ var WfoProductsPage = () => {
|
|
|
12024
12037
|
},
|
|
12025
12038
|
index
|
|
12026
12039
|
)) }),
|
|
12027
|
-
renderTooltip: (productBlocks) => productBlocks.map((productBlock) => /* @__PURE__ */
|
|
12040
|
+
renderTooltip: (productBlocks) => productBlocks.map((productBlock) => /* @__PURE__ */ jsxs94("p", { children: [
|
|
12028
12041
|
"- ",
|
|
12029
12042
|
productBlock.name
|
|
12030
12043
|
] }, productBlock.name))
|
|
@@ -12135,7 +12148,7 @@ var graphQlWorkflowListMapper = ({ field, order }) => ({
|
|
|
12135
12148
|
});
|
|
12136
12149
|
|
|
12137
12150
|
// src/pages/metadata/WfoWorkflowsPage.tsx
|
|
12138
|
-
import { Fragment as Fragment41, jsx as jsx189, jsxs as
|
|
12151
|
+
import { Fragment as Fragment41, jsx as jsx189, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
12139
12152
|
var WfoWorkflowsPage = () => {
|
|
12140
12153
|
const t = useTranslations45("metadata.workflows");
|
|
12141
12154
|
const tError = useTranslations45("errors");
|
|
@@ -12219,7 +12232,7 @@ var WfoWorkflowsPage = () => {
|
|
|
12219
12232
|
index
|
|
12220
12233
|
)) }),
|
|
12221
12234
|
renderTooltip: (productTags) => {
|
|
12222
|
-
return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */
|
|
12235
|
+
return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs95("p", { children: [
|
|
12223
12236
|
"- ",
|
|
12224
12237
|
productTag
|
|
12225
12238
|
] }, productTag));
|
|
@@ -12333,7 +12346,7 @@ var graphQlTaskListMapper = ({ field, order }) => ({
|
|
|
12333
12346
|
});
|
|
12334
12347
|
|
|
12335
12348
|
// src/pages/metadata/WfoTasksPage.tsx
|
|
12336
|
-
import { Fragment as Fragment42, jsx as jsx190, jsxs as
|
|
12349
|
+
import { Fragment as Fragment42, jsx as jsx190, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
12337
12350
|
var ScheduleTaskPopoverMenu = ({ workflowId }) => {
|
|
12338
12351
|
const [isPopoverOpen, setIsPopoverOpen] = useState31(false);
|
|
12339
12352
|
const button = /* @__PURE__ */ jsx190(
|
|
@@ -12458,7 +12471,7 @@ var WfoTasksPage = () => {
|
|
|
12458
12471
|
index
|
|
12459
12472
|
)) }),
|
|
12460
12473
|
renderTooltip: (productTags) => {
|
|
12461
|
-
return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */
|
|
12474
|
+
return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs96("p", { children: [
|
|
12462
12475
|
"- ",
|
|
12463
12476
|
productTag
|
|
12464
12477
|
] }, productTag));
|
|
@@ -12555,7 +12568,7 @@ import { useEffect as useEffect21, useState as useState32 } from "react";
|
|
|
12555
12568
|
import { useTranslations as useTranslations47 } from "next-intl";
|
|
12556
12569
|
import { useRouter as useRouter9 } from "next/router";
|
|
12557
12570
|
import { EuiButton as EuiButton10, EuiFlexGroup as EuiFlexGroup19, EuiFlexItem as EuiFlexItem16 } from "@elastic/eui";
|
|
12558
|
-
import { jsx as jsx191, jsxs as
|
|
12571
|
+
import { jsx as jsx191, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
12559
12572
|
var TASK_NAME_FIELD = "name";
|
|
12560
12573
|
var WfoWorkflowNameById = ({ workflowId }) => {
|
|
12561
12574
|
const { workflowName } = useGetWorkflowNameById(workflowId);
|
|
@@ -12616,7 +12629,7 @@ var WfoScheduledTasksPage = () => {
|
|
|
12616
12629
|
label: t("schedule"),
|
|
12617
12630
|
width: "255px",
|
|
12618
12631
|
isSortable: false,
|
|
12619
|
-
renderData: (trigger) => /* @__PURE__ */
|
|
12632
|
+
renderData: (trigger) => /* @__PURE__ */ jsxs97(EuiFlexGroup19, { gutterSize: "s", justifyContent: "flexStart", alignItems: "center", children: [
|
|
12620
12633
|
/* @__PURE__ */ jsx191(EuiFlexItem16, { grow: 0, children: /* @__PURE__ */ jsx191(WfoScheduledTasksBadges, { workflowSchedules: [trigger] }) }),
|
|
12621
12634
|
/* @__PURE__ */ jsx191(EuiFlexItem16, { children: trigger })
|
|
12622
12635
|
] })
|
|
@@ -12704,18 +12717,161 @@ var WfoScheduledTasksPage = () => {
|
|
|
12704
12717
|
};
|
|
12705
12718
|
|
|
12706
12719
|
// src/pages/metadata/WfoScheduleTaskFormPage.tsx
|
|
12720
|
+
import { useCallback as useCallback7, useMemo as useMemo2 } from "react";
|
|
12707
12721
|
import _4 from "lodash";
|
|
12708
|
-
import { useTranslations as
|
|
12722
|
+
import { useTranslations as useTranslations50 } from "next-intl";
|
|
12709
12723
|
import { useRouter as useRouter10 } from "next/router";
|
|
12710
|
-
import {
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
} from "
|
|
12716
|
-
import {
|
|
12717
|
-
|
|
12718
|
-
|
|
12724
|
+
import { PydanticForm as PydanticForm2 } from "pydantic-forms";
|
|
12725
|
+
import { PydanticFormApiResponseType, PydanticFormFieldFormat as PydanticFormFieldFormat2, PydanticFormFieldType as PydanticFormFieldType2 } from "pydantic-forms";
|
|
12726
|
+
|
|
12727
|
+
// src/components/WfoPydanticForm/Footer.tsx
|
|
12728
|
+
import { useCallback as useCallback6, useContext as useContext8, useEffect as useEffect22 } from "react";
|
|
12729
|
+
import { useTranslations as useTranslations49 } from "next-intl";
|
|
12730
|
+
import { EuiButton as EuiButton11, EuiFlexGroup as EuiFlexGroup20, EuiHorizontalRule as EuiHorizontalRule5 } from "@elastic/eui";
|
|
12731
|
+
|
|
12732
|
+
// src/components/WfoPydanticForm/RenderFormErrors.tsx
|
|
12733
|
+
import { useTranslations as useTranslations48 } from "next-intl";
|
|
12734
|
+
import { useGetValidationErrors } from "pydantic-forms";
|
|
12735
|
+
import { Fragment as Fragment43, jsx as jsx192, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
12736
|
+
var RenderFormErrors = () => {
|
|
12737
|
+
const { errorStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
|
|
12738
|
+
const errorDetails = useGetValidationErrors();
|
|
12739
|
+
const t = useTranslations48("pydanticForms.userInputForm");
|
|
12740
|
+
if (!errorDetails) {
|
|
12741
|
+
return /* @__PURE__ */ jsx192(Fragment43, {});
|
|
12742
|
+
}
|
|
12743
|
+
const errors = errorDetails.source;
|
|
12744
|
+
const rootError = errors.filter((err) => err.loc.includes("__root__")).shift();
|
|
12745
|
+
const otherErrors = errors.filter((err) => !err.loc.includes("__root__"));
|
|
12746
|
+
return /* @__PURE__ */ jsxs98("em", { css: errorStyle, children: [
|
|
12747
|
+
rootError && /* @__PURE__ */ jsx192("div", { children: rootError.msg }),
|
|
12748
|
+
otherErrors?.length >= 1 && t("inputFieldsHaveValidationErrors", {
|
|
12749
|
+
nrOfValidationErrors: otherErrors.length
|
|
12750
|
+
})
|
|
12751
|
+
] });
|
|
12752
|
+
};
|
|
12753
|
+
|
|
12754
|
+
// src/components/WfoPydanticForm/Footer.tsx
|
|
12755
|
+
import { jsx as jsx193, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
12756
|
+
var submitButtonId = "button-submit-form-submit";
|
|
12757
|
+
var previousButtonId = "button-submit-form-previous";
|
|
12758
|
+
var cancelButtonId = "button-submit-form-cancel";
|
|
12759
|
+
var Footer = ({ onCancel, onPrevious, hasNext, hasPrevious, isTask = false, buttons }) => {
|
|
12760
|
+
const { theme } = useOrchestratorTheme();
|
|
12761
|
+
const t = useTranslations49("pydanticForms.userInputForm");
|
|
12762
|
+
const { showConfirmDialog } = useContext8(ConfirmationDialogContext);
|
|
12763
|
+
const handlePrevious = useCallback6(() => {
|
|
12764
|
+
if (onCancel) {
|
|
12765
|
+
showConfirmDialog({
|
|
12766
|
+
question: t("previousQuestion"),
|
|
12767
|
+
onConfirm: onCancel
|
|
12768
|
+
});
|
|
12769
|
+
}
|
|
12770
|
+
}, [onCancel, showConfirmDialog, t]);
|
|
12771
|
+
const { next, previous } = buttons || {};
|
|
12772
|
+
useEffect22(() => {
|
|
12773
|
+
const handleKeyDown = (event) => {
|
|
12774
|
+
const isPrimary = event.metaKey || event.ctrlKey;
|
|
12775
|
+
if (isPrimary && event.key === "ArrowLeft") {
|
|
12776
|
+
event.preventDefault();
|
|
12777
|
+
if (hasPrevious) {
|
|
12778
|
+
onPrevious?.();
|
|
12779
|
+
} else {
|
|
12780
|
+
handlePrevious();
|
|
12781
|
+
}
|
|
12782
|
+
}
|
|
12783
|
+
if (isPrimary && event.key === "ArrowRight") {
|
|
12784
|
+
event.preventDefault();
|
|
12785
|
+
document.getElementById(submitButtonId)?.click();
|
|
12786
|
+
}
|
|
12787
|
+
};
|
|
12788
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
12789
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
12790
|
+
}, [hasPrevious, hasNext, onPrevious, onCancel, handlePrevious]);
|
|
12791
|
+
const PreviousButton = () => {
|
|
12792
|
+
const previousButtonColor = theme.colors[previous?.color ?? "primary"];
|
|
12793
|
+
return /* @__PURE__ */ jsx193(
|
|
12794
|
+
EuiButton11,
|
|
12795
|
+
{
|
|
12796
|
+
"data-testid": previousButtonId,
|
|
12797
|
+
id: previousButtonId,
|
|
12798
|
+
tabIndex: 0,
|
|
12799
|
+
fill: true,
|
|
12800
|
+
onClick: () => {
|
|
12801
|
+
if (onPrevious) {
|
|
12802
|
+
onPrevious();
|
|
12803
|
+
}
|
|
12804
|
+
},
|
|
12805
|
+
css: {
|
|
12806
|
+
backgroundColor: previousButtonColor.toString(),
|
|
12807
|
+
padding: "12px"
|
|
12808
|
+
},
|
|
12809
|
+
iconSide: "right",
|
|
12810
|
+
"aria-label": t("previous"),
|
|
12811
|
+
children: previous?.text ?? t("previous")
|
|
12812
|
+
}
|
|
12813
|
+
);
|
|
12814
|
+
};
|
|
12815
|
+
const CancelButton = () => /* @__PURE__ */ jsx193(
|
|
12816
|
+
"div",
|
|
12817
|
+
{
|
|
12818
|
+
"data-testid": cancelButtonId,
|
|
12819
|
+
onClick: handlePrevious,
|
|
12820
|
+
css: {
|
|
12821
|
+
cursor: "pointer",
|
|
12822
|
+
color: theme.colors.link,
|
|
12823
|
+
fontWeight: theme.font.weight.bold,
|
|
12824
|
+
marginLeft: theme.base / 2,
|
|
12825
|
+
display: "flex",
|
|
12826
|
+
alignItems: "center"
|
|
12827
|
+
},
|
|
12828
|
+
children: t("cancel")
|
|
12829
|
+
}
|
|
12830
|
+
);
|
|
12831
|
+
const SubmitButton = () => {
|
|
12832
|
+
const submitButtonTranslated = hasNext ? t("next") : isTask ? t("startTask") : t("startWorkflow");
|
|
12833
|
+
const submitButtonLabel = next?.text ?? submitButtonTranslated;
|
|
12834
|
+
const submitIconType = !hasNext && !next?.text ? () => /* @__PURE__ */ jsx193(WfoPlayCircle, { color: "currentColor" }) : void 0;
|
|
12835
|
+
const submitButtonColor = next?.color ? next?.color : "primary";
|
|
12836
|
+
return /* @__PURE__ */ jsx193(
|
|
12837
|
+
EuiButton11,
|
|
12838
|
+
{
|
|
12839
|
+
"data-testid": submitButtonId,
|
|
12840
|
+
id: submitButtonId,
|
|
12841
|
+
tabIndex: 0,
|
|
12842
|
+
fill: true,
|
|
12843
|
+
css: {
|
|
12844
|
+
backgroundColor: submitButtonColor,
|
|
12845
|
+
padding: "12px"
|
|
12846
|
+
},
|
|
12847
|
+
type: "submit",
|
|
12848
|
+
iconSide: "right",
|
|
12849
|
+
iconType: submitIconType,
|
|
12850
|
+
"aria-label": submitButtonLabel,
|
|
12851
|
+
children: submitButtonLabel
|
|
12852
|
+
}
|
|
12853
|
+
);
|
|
12854
|
+
};
|
|
12855
|
+
const PreviousCancelButtonGroup = () => {
|
|
12856
|
+
return /* @__PURE__ */ jsxs99(EuiFlexGroup20, { gutterSize: "xl", children: [
|
|
12857
|
+
/* @__PURE__ */ jsx193(PreviousButton, {}),
|
|
12858
|
+
/* @__PURE__ */ jsx193(CancelButton, {})
|
|
12859
|
+
] });
|
|
12860
|
+
};
|
|
12861
|
+
return /* @__PURE__ */ jsxs99("div", { "data-testid": "pydantic-form-footer", children: [
|
|
12862
|
+
/* @__PURE__ */ jsx193(RenderFormErrors, {}),
|
|
12863
|
+
/* @__PURE__ */ jsx193(EuiHorizontalRule5, {}),
|
|
12864
|
+
/* @__PURE__ */ jsxs99("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
12865
|
+
/* @__PURE__ */ jsx193("div", { children: hasPrevious && /* @__PURE__ */ jsx193(PreviousCancelButtonGroup, {}) || /* @__PURE__ */ jsx193(CancelButton, {}) }),
|
|
12866
|
+
/* @__PURE__ */ jsx193(SubmitButton, {})
|
|
12867
|
+
] })
|
|
12868
|
+
] });
|
|
12869
|
+
};
|
|
12870
|
+
|
|
12871
|
+
// src/pages/metadata/WfoScheduleTaskFormPage.tsx
|
|
12872
|
+
import { Fragment as Fragment44, jsx as jsx194, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
12873
|
+
var WfoScheduleTaskFormPageHardCoded = () => {
|
|
12874
|
+
const t = useTranslations50("metadata.scheduleTaskForm");
|
|
12719
12875
|
const { showToastMessage } = useShowToastMessage();
|
|
12720
12876
|
const [createScheduledTask, mutationState] = useCreateScheduledTaskMutation();
|
|
12721
12877
|
const { data, isLoading } = useGetTasksQuery({
|
|
@@ -12900,13 +13056,15 @@ var WfoScheduleTaskFormPage = () => {
|
|
|
12900
13056
|
}
|
|
12901
13057
|
if (userInputStep1.taskType === "date" /* DATE */) {
|
|
12902
13058
|
return {
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
13059
|
+
scheduled_type: "create",
|
|
13060
|
+
workflow_id: task.workflowId,
|
|
13061
|
+
workflow_name: task.name,
|
|
13062
|
+
name: task.description,
|
|
13063
|
+
trigger: userInputStep1.taskType,
|
|
13064
|
+
trigger_kwargs: {
|
|
12908
13065
|
run_date: startDate
|
|
12909
|
-
}
|
|
13066
|
+
},
|
|
13067
|
+
user_inputs: []
|
|
12910
13068
|
};
|
|
12911
13069
|
} else if (userInputStep1.taskType === "interval" /* INTERVAL */) {
|
|
12912
13070
|
const step2Input = userInputStep2;
|
|
@@ -12915,23 +13073,27 @@ var WfoScheduleTaskFormPage = () => {
|
|
|
12915
13073
|
throw new Error("Unknown or missing task interval");
|
|
12916
13074
|
}
|
|
12917
13075
|
return {
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
13076
|
+
scheduled_type: "create",
|
|
13077
|
+
workflow_id: task.workflowId,
|
|
13078
|
+
workflow_name: task.name,
|
|
13079
|
+
name: task.description,
|
|
13080
|
+
trigger: userInputStep1.taskType,
|
|
13081
|
+
trigger_kwargs: {
|
|
12923
13082
|
start_date: startDate,
|
|
12924
13083
|
...intervalArg
|
|
12925
|
-
}
|
|
13084
|
+
},
|
|
13085
|
+
user_inputs: []
|
|
12926
13086
|
};
|
|
12927
13087
|
} else if (userInputStep1.taskType === "cron" /* CRON */) {
|
|
12928
13088
|
const step2Input = userInputStep2;
|
|
12929
13089
|
return {
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
13090
|
+
scheduled_type: "create",
|
|
13091
|
+
workflow_id: task.workflowId,
|
|
13092
|
+
workflow_name: task.name,
|
|
13093
|
+
name: task.description,
|
|
13094
|
+
trigger: userInputStep1.taskType,
|
|
13095
|
+
trigger_kwargs: getCronKwargs(step2Input.cron, startDate),
|
|
13096
|
+
user_inputs: []
|
|
12935
13097
|
};
|
|
12936
13098
|
}
|
|
12937
13099
|
throw new Error("Unknown or missing task type");
|
|
@@ -13031,9 +13193,9 @@ var WfoScheduleTaskFormPage = () => {
|
|
|
13031
13193
|
console.error("Error saving scheduled task", mutationState);
|
|
13032
13194
|
return void 0;
|
|
13033
13195
|
}
|
|
13034
|
-
return /* @__PURE__ */
|
|
13035
|
-
/* @__PURE__ */
|
|
13036
|
-
isLoading && /* @__PURE__ */
|
|
13196
|
+
return /* @__PURE__ */ jsxs100(Fragment44, { children: [
|
|
13197
|
+
/* @__PURE__ */ jsx194(WfoContentHeader, { title: t("newSchedule") }),
|
|
13198
|
+
isLoading && /* @__PURE__ */ jsx194(WfoLoading, {}) || /* @__PURE__ */ jsx194(
|
|
13037
13199
|
PydanticForm2,
|
|
13038
13200
|
{
|
|
13039
13201
|
formKey: "add-schedule-key",
|
|
@@ -13045,12 +13207,97 @@ var WfoScheduleTaskFormPage = () => {
|
|
|
13045
13207
|
)
|
|
13046
13208
|
] });
|
|
13047
13209
|
};
|
|
13210
|
+
var START_SCHEDULE_PAYLOAD = {};
|
|
13211
|
+
var WfoScheduleTaskFormPageBackend = () => {
|
|
13212
|
+
const { showToastMessage } = useShowToastMessage();
|
|
13213
|
+
const generateFormId = useMemo2(() => {
|
|
13214
|
+
return `${JSON.stringify(START_SCHEDULE_PAYLOAD)}`;
|
|
13215
|
+
}, []);
|
|
13216
|
+
const [startForm] = useStartFormMutation();
|
|
13217
|
+
const [createScheduledTask, mutationState] = useCreateScheduledTaskMutation();
|
|
13218
|
+
const router = useRouter10();
|
|
13219
|
+
const onSuccess = useCallback7(
|
|
13220
|
+
async (_fieldValues, req) => {
|
|
13221
|
+
const request = req;
|
|
13222
|
+
if (request?.data?.workflow_id) {
|
|
13223
|
+
const resp = await createScheduledTask(request.data);
|
|
13224
|
+
if (!resp?.error) {
|
|
13225
|
+
router.replace(PATH_METADATA_SCHEDULED_TASKS);
|
|
13226
|
+
}
|
|
13227
|
+
}
|
|
13228
|
+
},
|
|
13229
|
+
[router, createScheduledTask]
|
|
13230
|
+
);
|
|
13231
|
+
const getPydanticFormProvider = useCallback7(() => {
|
|
13232
|
+
const pydanticFormProvider = async ({ requestBody = [], formKey }) => {
|
|
13233
|
+
const userInputs = _4.isEmpty(START_SCHEDULE_PAYLOAD) ? [...requestBody] : [{ ...START_SCHEDULE_PAYLOAD }, ...requestBody];
|
|
13234
|
+
const response = startForm({
|
|
13235
|
+
formKey,
|
|
13236
|
+
userInputs
|
|
13237
|
+
});
|
|
13238
|
+
return response.then(({ error, data }) => {
|
|
13239
|
+
return new Promise((resolve) => {
|
|
13240
|
+
if (isFetchBaseQueryError(error) && isRecord(error.data)) {
|
|
13241
|
+
if (error.status === 510 /* FormNotComplete */) {
|
|
13242
|
+
resolve(error.data);
|
|
13243
|
+
} else if (error.status === 400 /* BadRequest */) {
|
|
13244
|
+
resolve({
|
|
13245
|
+
...error.data,
|
|
13246
|
+
status: error.status
|
|
13247
|
+
});
|
|
13248
|
+
}
|
|
13249
|
+
} else if (data) {
|
|
13250
|
+
resolve({
|
|
13251
|
+
data,
|
|
13252
|
+
status: 201 /* Created */
|
|
13253
|
+
});
|
|
13254
|
+
}
|
|
13255
|
+
resolve({});
|
|
13256
|
+
});
|
|
13257
|
+
}).catch((error) => {
|
|
13258
|
+
return new Promise((resolve, reject) => {
|
|
13259
|
+
if (error.status === 510 /* FormNotComplete */) {
|
|
13260
|
+
resolve(error.data);
|
|
13261
|
+
}
|
|
13262
|
+
reject(error);
|
|
13263
|
+
});
|
|
13264
|
+
});
|
|
13265
|
+
};
|
|
13266
|
+
return pydanticFormProvider;
|
|
13267
|
+
}, [startForm]);
|
|
13268
|
+
const config = useGetPydanticFormsConfig(getPydanticFormProvider, (props) => /* @__PURE__ */ jsx194(Footer, { ...props }));
|
|
13269
|
+
const handleCancel = useCallback7(() => {
|
|
13270
|
+
const pfBasePath = PATH_METADATA_SCHEDULED_TASKS;
|
|
13271
|
+
router.replace(pfBasePath);
|
|
13272
|
+
}, [router]);
|
|
13273
|
+
if (mutationState.isError) {
|
|
13274
|
+
showToastMessage("ERROR" /* ERROR */, "", "Error while saving scheduled task");
|
|
13275
|
+
console.error("Error saving scheduled task", mutationState);
|
|
13276
|
+
return void 0;
|
|
13277
|
+
}
|
|
13278
|
+
return /* @__PURE__ */ jsx194(
|
|
13279
|
+
PydanticForm2,
|
|
13280
|
+
{
|
|
13281
|
+
formKey: "configure_schedule",
|
|
13282
|
+
formId: generateFormId,
|
|
13283
|
+
onSuccess,
|
|
13284
|
+
onCancel: handleCancel,
|
|
13285
|
+
config
|
|
13286
|
+
}
|
|
13287
|
+
);
|
|
13288
|
+
};
|
|
13289
|
+
var WfoScheduleTaskFormPage = () => {
|
|
13290
|
+
const { data } = useGetVersionsQuery();
|
|
13291
|
+
const coreVersion = data?.version.applicationVersions[0].split(" ")[1] ?? "";
|
|
13292
|
+
const isCompatible = compareVersions(coreVersion, "5.0.0a7") !== -1;
|
|
13293
|
+
return isCompatible ? /* @__PURE__ */ jsx194(WfoScheduleTaskFormPageBackend, {}) : /* @__PURE__ */ jsx194(WfoScheduleTaskFormPageHardCoded, {});
|
|
13294
|
+
};
|
|
13048
13295
|
|
|
13049
13296
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
13050
|
-
import { useTranslations as
|
|
13051
|
-
import
|
|
13052
|
-
import { EuiFlexGroup as
|
|
13053
|
-
import { Fragment as
|
|
13297
|
+
import { useTranslations as useTranslations51 } from "next-intl";
|
|
13298
|
+
import Link11 from "next/link";
|
|
13299
|
+
import { EuiFlexGroup as EuiFlexGroup21 } from "@elastic/eui";
|
|
13300
|
+
import { Fragment as Fragment45, jsx as jsx195, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
13054
13301
|
var RENDER_ALL = "RENDER_ALL";
|
|
13055
13302
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
13056
13303
|
RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
|
|
@@ -13065,21 +13312,21 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
13065
13312
|
}
|
|
13066
13313
|
}) => {
|
|
13067
13314
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
13068
|
-
const t =
|
|
13315
|
+
const t = useTranslations51("processes.index");
|
|
13069
13316
|
const { length } = subscriptions;
|
|
13070
13317
|
if (length === 0) {
|
|
13071
13318
|
return null;
|
|
13072
13319
|
}
|
|
13073
13320
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
13074
13321
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
13075
|
-
return /* @__PURE__ */
|
|
13076
|
-
|
|
13322
|
+
return /* @__PURE__ */ jsx195(Fragment45, { children: /* @__PURE__ */ jsxs101(
|
|
13323
|
+
EuiFlexGroup21,
|
|
13077
13324
|
{
|
|
13078
13325
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
13079
13326
|
gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "s" : "xs",
|
|
13080
13327
|
children: [
|
|
13081
|
-
visibleSubscriptions.map((subscription) => /* @__PURE__ */
|
|
13082
|
-
|
|
13328
|
+
visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx195(
|
|
13329
|
+
Link11,
|
|
13083
13330
|
{
|
|
13084
13331
|
href: `/subscriptions/${subscription.subscriptionId}`,
|
|
13085
13332
|
css: {
|
|
@@ -13090,7 +13337,7 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
13090
13337
|
},
|
|
13091
13338
|
subscription.subscriptionId
|
|
13092
13339
|
)),
|
|
13093
|
-
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */
|
|
13340
|
+
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsxs101(
|
|
13094
13341
|
WfoBadge,
|
|
13095
13342
|
{
|
|
13096
13343
|
textColor: theme.colors.textPrimary,
|
|
@@ -13114,10 +13361,10 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
13114
13361
|
import { useRef as useRef9 } from "react";
|
|
13115
13362
|
|
|
13116
13363
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
13117
|
-
import { useContext as
|
|
13118
|
-
import { useTranslations as
|
|
13364
|
+
import { useContext as useContext9, useEffect as useEffect23, useRef as useRef8 } from "react";
|
|
13365
|
+
import { useTranslations as useTranslations52 } from "next-intl";
|
|
13119
13366
|
import { useRouter as useRouter11 } from "next/router";
|
|
13120
|
-
import { EuiButton as
|
|
13367
|
+
import { EuiButton as EuiButton12, EuiFlexGroup as EuiFlexGroup22, EuiPanel as EuiPanel2, EuiSpacer as EuiSpacer20, EuiText as EuiText17 } from "@elastic/eui";
|
|
13121
13368
|
|
|
13122
13369
|
// src/pages/processes/timelineUtils.ts
|
|
13123
13370
|
var getMostAccurateTimelineStatus = (statusPreviousStep, statusCurrentStep) => statusCurrentStep !== "pending" /* PENDING */ ? statusCurrentStep : statusPreviousStep;
|
|
@@ -13184,12 +13431,12 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
13184
13431
|
};
|
|
13185
13432
|
|
|
13186
13433
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
13187
|
-
import { Fragment as
|
|
13434
|
+
import { Fragment as Fragment46, jsx as jsx196, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
13188
13435
|
var ProcessHeaderValue = ({ translationKey, value = "" }) => {
|
|
13189
|
-
const t =
|
|
13436
|
+
const t = useTranslations52("processes.detail");
|
|
13190
13437
|
const { theme } = useOrchestratorTheme();
|
|
13191
|
-
return /* @__PURE__ */
|
|
13192
|
-
|
|
13438
|
+
return /* @__PURE__ */ jsxs102(
|
|
13439
|
+
EuiFlexGroup22,
|
|
13193
13440
|
{
|
|
13194
13441
|
direction: "column",
|
|
13195
13442
|
gutterSize: "xs",
|
|
@@ -13199,8 +13446,8 @@ var ProcessHeaderValue = ({ translationKey, value = "" }) => {
|
|
|
13199
13446
|
overflow: "hidden"
|
|
13200
13447
|
},
|
|
13201
13448
|
children: [
|
|
13202
|
-
/* @__PURE__ */
|
|
13203
|
-
/* @__PURE__ */
|
|
13449
|
+
/* @__PURE__ */ jsx196(EuiText17, { size: "xs", children: t(translationKey) }),
|
|
13450
|
+
/* @__PURE__ */ jsx196(
|
|
13204
13451
|
EuiText17,
|
|
13205
13452
|
{
|
|
13206
13453
|
css: {
|
|
@@ -13218,7 +13465,7 @@ var ProcessHeaderValue = ({ translationKey, value = "" }) => {
|
|
|
13218
13465
|
};
|
|
13219
13466
|
function useHasPreviousRoute() {
|
|
13220
13467
|
const hasPrev = useRef8(false);
|
|
13221
|
-
|
|
13468
|
+
useEffect23(() => {
|
|
13222
13469
|
if (document.referrer && document.referrer !== window.location.href) {
|
|
13223
13470
|
hasPrev.current = true;
|
|
13224
13471
|
}
|
|
@@ -13236,9 +13483,9 @@ var WfoProcessDetail = ({
|
|
|
13236
13483
|
isLoading = false,
|
|
13237
13484
|
hasError = false
|
|
13238
13485
|
}) => {
|
|
13239
|
-
const t =
|
|
13486
|
+
const t = useTranslations52("processes.detail");
|
|
13240
13487
|
const { theme } = useOrchestratorTheme();
|
|
13241
|
-
const { showConfirmDialog } =
|
|
13488
|
+
const { showConfirmDialog } = useContext9(ConfirmationDialogContext);
|
|
13242
13489
|
const [retryProcess] = useRetryProcessMutation();
|
|
13243
13490
|
const [deleteProcess] = useDeleteProcessMutation();
|
|
13244
13491
|
const [abortProcess] = useAbortProcessMutation();
|
|
@@ -13295,37 +13542,37 @@ var WfoProcessDetail = ({
|
|
|
13295
13542
|
router.push(PATH_TASKS);
|
|
13296
13543
|
}
|
|
13297
13544
|
});
|
|
13298
|
-
return /* @__PURE__ */
|
|
13299
|
-
/* @__PURE__ */
|
|
13545
|
+
return /* @__PURE__ */ jsxs102(Fragment46, { children: [
|
|
13546
|
+
/* @__PURE__ */ jsxs102(
|
|
13300
13547
|
WfoContentHeader,
|
|
13301
13548
|
{
|
|
13302
|
-
title: /* @__PURE__ */
|
|
13303
|
-
subtitle: /* @__PURE__ */
|
|
13549
|
+
title: /* @__PURE__ */ jsx196(WfoTitleWithWebsocketBadge, { title: pageTitle }),
|
|
13550
|
+
subtitle: /* @__PURE__ */ jsx196(WfoProductInformationWithLink, { productNames, workflowName: processDetail?.workflowName ?? "" }),
|
|
13304
13551
|
children: [
|
|
13305
|
-
/* @__PURE__ */
|
|
13306
|
-
|
|
13552
|
+
/* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */, children: /* @__PURE__ */ jsx196(
|
|
13553
|
+
EuiButton12,
|
|
13307
13554
|
{
|
|
13308
13555
|
onClick: handleActionButtonClick(retryAction),
|
|
13309
|
-
iconType: () => /* @__PURE__ */
|
|
13556
|
+
iconType: () => /* @__PURE__ */ jsx196(WfoRefresh, { color: retryButtonIsDisabled ? theme.colors.textSubdued : theme.colors.link }),
|
|
13310
13557
|
isDisabled: retryButtonIsDisabled,
|
|
13311
13558
|
children: t("retry")
|
|
13312
13559
|
}
|
|
13313
13560
|
) }),
|
|
13314
|
-
/* @__PURE__ */
|
|
13315
|
-
|
|
13561
|
+
/* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */, children: /* @__PURE__ */ jsx196(
|
|
13562
|
+
EuiButton12,
|
|
13316
13563
|
{
|
|
13317
13564
|
onClick: handleActionButtonClick(abortAction),
|
|
13318
|
-
iconType: () => /* @__PURE__ */
|
|
13565
|
+
iconType: () => /* @__PURE__ */ jsx196(WfoXCircleFill, { color: abortButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
|
|
13319
13566
|
color: "danger",
|
|
13320
13567
|
isDisabled: abortButtonIsDisabled,
|
|
13321
13568
|
children: t("abort")
|
|
13322
13569
|
}
|
|
13323
13570
|
) }),
|
|
13324
|
-
/* @__PURE__ */
|
|
13325
|
-
|
|
13571
|
+
/* @__PURE__ */ jsx196(Fragment46, { children: processDetail && processIsTask && /* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/delete/" /* PROCESS_DELETE */, children: /* @__PURE__ */ jsx196(
|
|
13572
|
+
EuiButton12,
|
|
13326
13573
|
{
|
|
13327
13574
|
onClick: handleActionButtonClick(deleteAction),
|
|
13328
|
-
iconType: () => /* @__PURE__ */
|
|
13575
|
+
iconType: () => /* @__PURE__ */ jsx196(WfoXCircleFill, { color: deleteButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
|
|
13329
13576
|
color: "danger",
|
|
13330
13577
|
isDisabled: deleteButtonIsDisabled,
|
|
13331
13578
|
children: t("delete")
|
|
@@ -13334,27 +13581,27 @@ var WfoProcessDetail = ({
|
|
|
13334
13581
|
]
|
|
13335
13582
|
}
|
|
13336
13583
|
),
|
|
13337
|
-
/* @__PURE__ */
|
|
13338
|
-
/* @__PURE__ */
|
|
13339
|
-
/* @__PURE__ */
|
|
13340
|
-
processDetail.customer && /* @__PURE__ */
|
|
13341
|
-
/* @__PURE__ */
|
|
13342
|
-
/* @__PURE__ */
|
|
13584
|
+
/* @__PURE__ */ jsx196(EuiPanel2, { hasShadow: false, hasBorder: false, color: "subdued", element: "div", children: isLoading && !hasError && /* @__PURE__ */ jsx196(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs102(EuiFlexGroup22, { direction: "row", gutterSize: "m", children: [
|
|
13585
|
+
/* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "status", value: processDetail.lastStatus }),
|
|
13586
|
+
/* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "lastStep", value: processDetail?.lastStep }),
|
|
13587
|
+
processDetail.customer && /* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "customer", value: processDetail.customer?.fullname }),
|
|
13588
|
+
/* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "startedBy", value: processDetail?.createdBy }),
|
|
13589
|
+
/* @__PURE__ */ jsx196(
|
|
13343
13590
|
ProcessHeaderValue,
|
|
13344
13591
|
{
|
|
13345
13592
|
translationKey: "startedOn",
|
|
13346
13593
|
value: processDetail?.startedAt ? parseIsoString(parseDateRelativeToToday)(processDetail?.startedAt) : ""
|
|
13347
13594
|
}
|
|
13348
13595
|
),
|
|
13349
|
-
/* @__PURE__ */
|
|
13596
|
+
/* @__PURE__ */ jsx196(
|
|
13350
13597
|
ProcessHeaderValue,
|
|
13351
13598
|
{
|
|
13352
13599
|
translationKey: "lastUpdate",
|
|
13353
13600
|
value: processDetail?.lastModifiedAt ? parseIsoString(parseDateRelativeToToday)(processDetail?.lastModifiedAt) : ""
|
|
13354
13601
|
}
|
|
13355
13602
|
),
|
|
13356
|
-
process && isAllowed("/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */) && processDetail.subscriptions && /* @__PURE__ */
|
|
13357
|
-
|
|
13603
|
+
process && isAllowed("/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */) && processDetail.subscriptions && /* @__PURE__ */ jsxs102(
|
|
13604
|
+
EuiFlexGroup22,
|
|
13358
13605
|
{
|
|
13359
13606
|
gutterSize: "xs",
|
|
13360
13607
|
direction: "column",
|
|
@@ -13363,8 +13610,8 @@ var WfoProcessDetail = ({
|
|
|
13363
13610
|
overflow: "hidden"
|
|
13364
13611
|
},
|
|
13365
13612
|
children: [
|
|
13366
|
-
/* @__PURE__ */
|
|
13367
|
-
/* @__PURE__ */
|
|
13613
|
+
/* @__PURE__ */ jsx196(EuiText17, { size: "xs", children: t("relatedSubscriptions") }),
|
|
13614
|
+
/* @__PURE__ */ jsx196(
|
|
13368
13615
|
EuiText17,
|
|
13369
13616
|
{
|
|
13370
13617
|
css: {
|
|
@@ -13374,7 +13621,7 @@ var WfoProcessDetail = ({
|
|
|
13374
13621
|
textOverflow: "ellipsis",
|
|
13375
13622
|
fontSize: theme.size.m
|
|
13376
13623
|
},
|
|
13377
|
-
children: /* @__PURE__ */
|
|
13624
|
+
children: /* @__PURE__ */ jsx196(
|
|
13378
13625
|
WfoProcessListSubscriptionsCell,
|
|
13379
13626
|
{
|
|
13380
13627
|
subscriptions: process && processDetail?.subscriptions?.page.map((subscription) => ({
|
|
@@ -13390,8 +13637,8 @@ var WfoProcessDetail = ({
|
|
|
13390
13637
|
}
|
|
13391
13638
|
)
|
|
13392
13639
|
] }) }),
|
|
13393
|
-
/* @__PURE__ */
|
|
13394
|
-
/* @__PURE__ */
|
|
13640
|
+
/* @__PURE__ */ jsx196(EuiSpacer20, { size: "s" }),
|
|
13641
|
+
/* @__PURE__ */ jsx196(
|
|
13395
13642
|
WfoTimeline,
|
|
13396
13643
|
{
|
|
13397
13644
|
timelineItems,
|
|
@@ -13404,7 +13651,7 @@ var WfoProcessDetail = ({
|
|
|
13404
13651
|
};
|
|
13405
13652
|
|
|
13406
13653
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
13407
|
-
import { jsx as
|
|
13654
|
+
import { jsx as jsx197 } from "@emotion/react/jsx-runtime";
|
|
13408
13655
|
var WfoProcessDetailPage = ({ processId }) => {
|
|
13409
13656
|
const stepListRef = useRef9(null);
|
|
13410
13657
|
const { data, isLoading, isError } = useGetProcessDetailQuery({
|
|
@@ -13425,7 +13672,7 @@ var WfoProcessDetailPage = ({ processId }) => {
|
|
|
13425
13672
|
const isTask = processDetail?.isTask ?? false;
|
|
13426
13673
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
13427
13674
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
13428
|
-
return /* @__PURE__ */
|
|
13675
|
+
return /* @__PURE__ */ jsx197(
|
|
13429
13676
|
WfoProcessDetail,
|
|
13430
13677
|
{
|
|
13431
13678
|
pageTitle,
|
|
@@ -13436,7 +13683,7 @@ var WfoProcessDetailPage = ({ processId }) => {
|
|
|
13436
13683
|
onTimelineItemClick: (id) => stepListRef.current?.scrollToStep(id),
|
|
13437
13684
|
isLoading,
|
|
13438
13685
|
hasError: isError,
|
|
13439
|
-
children: isError && /* @__PURE__ */
|
|
13686
|
+
children: isError && /* @__PURE__ */ jsx197(WfoError, {}) || isLoading && /* @__PURE__ */ jsx197(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsx197(
|
|
13440
13687
|
WfoWorkflowStepList,
|
|
13441
13688
|
{
|
|
13442
13689
|
ref: stepListRef,
|
|
@@ -13449,176 +13696,30 @@ var WfoProcessDetailPage = ({ processId }) => {
|
|
|
13449
13696
|
isTask,
|
|
13450
13697
|
userPermissions: processDetail.userPermissions
|
|
13451
13698
|
}
|
|
13452
|
-
) || /* @__PURE__ */
|
|
13699
|
+
) || /* @__PURE__ */ jsx197("h1", { children: "Invalid processId" })
|
|
13453
13700
|
}
|
|
13454
13701
|
);
|
|
13455
13702
|
};
|
|
13456
13703
|
|
|
13457
13704
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
13458
|
-
import { useMemo as
|
|
13705
|
+
import { useMemo as useMemo6, useState as useState38 } from "react";
|
|
13459
13706
|
import { useTranslations as useTranslations60 } from "next-intl";
|
|
13460
13707
|
import { useRouter as useRouter13 } from "next/router";
|
|
13461
13708
|
import { EuiFlexGroup as EuiFlexGroup26, EuiFlexItem as EuiFlexItem21, EuiHorizontalRule as EuiHorizontalRule7, EuiPanel as EuiPanel4, EuiText as EuiText23 } from "@elastic/eui";
|
|
13462
13709
|
|
|
13463
13710
|
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
13464
|
-
import { useCallback as
|
|
13711
|
+
import { useCallback as useCallback8, useMemo as useMemo3 } from "react";
|
|
13465
13712
|
import _5 from "lodash";
|
|
13466
13713
|
import { useRouter as useRouter12 } from "next/router";
|
|
13467
13714
|
import { PydanticForm as PydanticForm3 } from "pydantic-forms";
|
|
13468
|
-
|
|
13469
|
-
// src/components/WfoPydanticForm/Footer.tsx
|
|
13470
|
-
import { useCallback as useCallback6, useContext as useContext9, useEffect as useEffect23 } from "react";
|
|
13471
|
-
import { useTranslations as useTranslations52 } from "next-intl";
|
|
13472
|
-
import { EuiButton as EuiButton12, EuiFlexGroup as EuiFlexGroup22, EuiHorizontalRule as EuiHorizontalRule5 } from "@elastic/eui";
|
|
13473
|
-
|
|
13474
|
-
// src/components/WfoPydanticForm/RenderFormErrors.tsx
|
|
13475
|
-
import { useTranslations as useTranslations51 } from "next-intl";
|
|
13476
|
-
import { useGetValidationErrors } from "pydantic-forms";
|
|
13477
|
-
import { Fragment as Fragment46, jsx as jsx196, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
13478
|
-
var RenderFormErrors = () => {
|
|
13479
|
-
const { errorStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
|
|
13480
|
-
const errorDetails = useGetValidationErrors();
|
|
13481
|
-
const t = useTranslations51("pydanticForms.userInputForm");
|
|
13482
|
-
if (!errorDetails) {
|
|
13483
|
-
return /* @__PURE__ */ jsx196(Fragment46, {});
|
|
13484
|
-
}
|
|
13485
|
-
const errors = errorDetails.source;
|
|
13486
|
-
const rootError = errors.filter((err) => err.loc.includes("__root__")).shift();
|
|
13487
|
-
const otherErrors = errors.filter((err) => !err.loc.includes("__root__"));
|
|
13488
|
-
return /* @__PURE__ */ jsxs100("em", { css: errorStyle, children: [
|
|
13489
|
-
rootError && /* @__PURE__ */ jsx196("div", { children: rootError.msg }),
|
|
13490
|
-
otherErrors?.length >= 1 && t("inputFieldsHaveValidationErrors", {
|
|
13491
|
-
nrOfValidationErrors: otherErrors.length
|
|
13492
|
-
})
|
|
13493
|
-
] });
|
|
13494
|
-
};
|
|
13495
|
-
|
|
13496
|
-
// src/components/WfoPydanticForm/Footer.tsx
|
|
13497
|
-
import { jsx as jsx197, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
13498
|
-
var submitButtonId = "button-submit-form-submit";
|
|
13499
|
-
var previousButtonId = "button-submit-form-previous";
|
|
13500
|
-
var cancelButtonId = "button-submit-form-cancel";
|
|
13501
|
-
var Footer = ({ onCancel, onPrevious, hasNext, hasPrevious, isTask = false, buttons }) => {
|
|
13502
|
-
const { theme } = useOrchestratorTheme();
|
|
13503
|
-
const t = useTranslations52("pydanticForms.userInputForm");
|
|
13504
|
-
const { showConfirmDialog } = useContext9(ConfirmationDialogContext);
|
|
13505
|
-
const handlePrevious = useCallback6(() => {
|
|
13506
|
-
if (onCancel) {
|
|
13507
|
-
showConfirmDialog({
|
|
13508
|
-
question: t("previousQuestion"),
|
|
13509
|
-
onConfirm: onCancel
|
|
13510
|
-
});
|
|
13511
|
-
}
|
|
13512
|
-
}, [onCancel, showConfirmDialog, t]);
|
|
13513
|
-
const { next, previous } = buttons || {};
|
|
13514
|
-
useEffect23(() => {
|
|
13515
|
-
const handleKeyDown = (event) => {
|
|
13516
|
-
const isPrimary = event.metaKey || event.ctrlKey;
|
|
13517
|
-
if (isPrimary && event.key === "ArrowLeft") {
|
|
13518
|
-
event.preventDefault();
|
|
13519
|
-
if (hasPrevious) {
|
|
13520
|
-
onPrevious?.();
|
|
13521
|
-
} else {
|
|
13522
|
-
handlePrevious();
|
|
13523
|
-
}
|
|
13524
|
-
}
|
|
13525
|
-
if (isPrimary && event.key === "ArrowRight") {
|
|
13526
|
-
event.preventDefault();
|
|
13527
|
-
document.getElementById(submitButtonId)?.click();
|
|
13528
|
-
}
|
|
13529
|
-
};
|
|
13530
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
13531
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
13532
|
-
}, [hasPrevious, hasNext, onPrevious, onCancel, handlePrevious]);
|
|
13533
|
-
const PreviousButton = () => {
|
|
13534
|
-
const previousButtonColor = theme.colors[previous?.color ?? "primary"];
|
|
13535
|
-
return /* @__PURE__ */ jsx197(
|
|
13536
|
-
EuiButton12,
|
|
13537
|
-
{
|
|
13538
|
-
"data-testid": previousButtonId,
|
|
13539
|
-
id: previousButtonId,
|
|
13540
|
-
tabIndex: 0,
|
|
13541
|
-
fill: true,
|
|
13542
|
-
onClick: () => {
|
|
13543
|
-
if (onPrevious) {
|
|
13544
|
-
onPrevious();
|
|
13545
|
-
}
|
|
13546
|
-
},
|
|
13547
|
-
css: {
|
|
13548
|
-
backgroundColor: previousButtonColor.toString(),
|
|
13549
|
-
padding: "12px"
|
|
13550
|
-
},
|
|
13551
|
-
iconSide: "right",
|
|
13552
|
-
"aria-label": t("previous"),
|
|
13553
|
-
children: previous?.text ?? t("previous")
|
|
13554
|
-
}
|
|
13555
|
-
);
|
|
13556
|
-
};
|
|
13557
|
-
const CancelButton = () => /* @__PURE__ */ jsx197(
|
|
13558
|
-
"div",
|
|
13559
|
-
{
|
|
13560
|
-
"data-testid": cancelButtonId,
|
|
13561
|
-
onClick: handlePrevious,
|
|
13562
|
-
css: {
|
|
13563
|
-
cursor: "pointer",
|
|
13564
|
-
color: theme.colors.link,
|
|
13565
|
-
fontWeight: theme.font.weight.bold,
|
|
13566
|
-
marginLeft: theme.base / 2,
|
|
13567
|
-
display: "flex",
|
|
13568
|
-
alignItems: "center"
|
|
13569
|
-
},
|
|
13570
|
-
children: t("cancel")
|
|
13571
|
-
}
|
|
13572
|
-
);
|
|
13573
|
-
const SubmitButton = () => {
|
|
13574
|
-
const submitButtonTranslated = hasNext ? t("next") : isTask ? t("startTask") : t("startWorkflow");
|
|
13575
|
-
const submitButtonLabel = next?.text ?? submitButtonTranslated;
|
|
13576
|
-
const submitIconType = !hasNext && !next?.text ? () => /* @__PURE__ */ jsx197(WfoPlayCircle, { color: "currentColor" }) : void 0;
|
|
13577
|
-
const submitButtonColor = next?.color ? next?.color : "primary";
|
|
13578
|
-
return /* @__PURE__ */ jsx197(
|
|
13579
|
-
EuiButton12,
|
|
13580
|
-
{
|
|
13581
|
-
"data-testid": submitButtonId,
|
|
13582
|
-
id: submitButtonId,
|
|
13583
|
-
tabIndex: 0,
|
|
13584
|
-
fill: true,
|
|
13585
|
-
css: {
|
|
13586
|
-
backgroundColor: submitButtonColor,
|
|
13587
|
-
padding: "12px"
|
|
13588
|
-
},
|
|
13589
|
-
type: "submit",
|
|
13590
|
-
iconSide: "right",
|
|
13591
|
-
iconType: submitIconType,
|
|
13592
|
-
"aria-label": submitButtonLabel,
|
|
13593
|
-
children: submitButtonLabel
|
|
13594
|
-
}
|
|
13595
|
-
);
|
|
13596
|
-
};
|
|
13597
|
-
const PreviousCancelButtonGroup = () => {
|
|
13598
|
-
return /* @__PURE__ */ jsxs101(EuiFlexGroup22, { gutterSize: "xl", children: [
|
|
13599
|
-
/* @__PURE__ */ jsx197(PreviousButton, {}),
|
|
13600
|
-
/* @__PURE__ */ jsx197(CancelButton, {})
|
|
13601
|
-
] });
|
|
13602
|
-
};
|
|
13603
|
-
return /* @__PURE__ */ jsxs101("div", { "data-testid": "pydantic-form-footer", children: [
|
|
13604
|
-
/* @__PURE__ */ jsx197(RenderFormErrors, {}),
|
|
13605
|
-
/* @__PURE__ */ jsx197(EuiHorizontalRule5, {}),
|
|
13606
|
-
/* @__PURE__ */ jsxs101("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
13607
|
-
/* @__PURE__ */ jsx197("div", { children: hasPrevious && /* @__PURE__ */ jsx197(PreviousCancelButtonGroup, {}) || /* @__PURE__ */ jsx197(CancelButton, {}) }),
|
|
13608
|
-
/* @__PURE__ */ jsx197(SubmitButton, {})
|
|
13609
|
-
] })
|
|
13610
|
-
] });
|
|
13611
|
-
};
|
|
13612
|
-
|
|
13613
|
-
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
13614
13715
|
import { jsx as jsx198 } from "@emotion/react/jsx-runtime";
|
|
13615
13716
|
var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
|
|
13616
|
-
const generateFormId =
|
|
13717
|
+
const generateFormId = useMemo3(() => {
|
|
13617
13718
|
return `${JSON.stringify(startProcessPayload)}`;
|
|
13618
13719
|
}, [startProcessPayload]);
|
|
13619
13720
|
const [startProcess] = useStartProcessMutation();
|
|
13620
13721
|
const router = useRouter12();
|
|
13621
|
-
const onSuccess =
|
|
13722
|
+
const onSuccess = useCallback8(
|
|
13622
13723
|
(_fieldValues, req) => {
|
|
13623
13724
|
const request = req;
|
|
13624
13725
|
if (request?.data?.id) {
|
|
@@ -13628,7 +13729,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
|
|
|
13628
13729
|
},
|
|
13629
13730
|
[isTask, router]
|
|
13630
13731
|
);
|
|
13631
|
-
const getPydanticFormProvider =
|
|
13732
|
+
const getPydanticFormProvider = useCallback8(() => {
|
|
13632
13733
|
const pydanticFormProvider = async ({ requestBody = [], formKey }) => {
|
|
13633
13734
|
const userInputs = _5.isEmpty(startProcessPayload) ? [...requestBody] : [{ ...startProcessPayload }, ...requestBody];
|
|
13634
13735
|
const response = startProcess({
|
|
@@ -13666,7 +13767,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
|
|
|
13666
13767
|
return pydanticFormProvider;
|
|
13667
13768
|
}, [startProcess, startProcessPayload]);
|
|
13668
13769
|
const config = useGetPydanticFormsConfig(getPydanticFormProvider, (props) => /* @__PURE__ */ jsx198(Footer, { ...props, isTask }));
|
|
13669
|
-
const handleCancel =
|
|
13770
|
+
const handleCancel = useCallback8(() => {
|
|
13670
13771
|
const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
13671
13772
|
router.replace(pfBasePath);
|
|
13672
13773
|
}, [isTask, router]);
|
|
@@ -13683,7 +13784,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
|
|
|
13683
13784
|
};
|
|
13684
13785
|
|
|
13685
13786
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
13686
|
-
import
|
|
13787
|
+
import React62, { useCallback as useCallback11, useState as useState34 } from "react";
|
|
13687
13788
|
import { useTranslations as useTranslations55 } from "next-intl";
|
|
13688
13789
|
import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem19, EuiPanel as EuiPanel3, EuiText as EuiText18 } from "@elastic/eui";
|
|
13689
13790
|
|
|
@@ -13796,7 +13897,7 @@ var getWorkflowStepsStyles = ({ theme, toSecondaryColor, isDarkModeActive }) =>
|
|
|
13796
13897
|
};
|
|
13797
13898
|
|
|
13798
13899
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
13799
|
-
import { jsx as jsx199, jsxs as
|
|
13900
|
+
import { jsx as jsx199, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
13800
13901
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
13801
13902
|
switch (stepStatus) {
|
|
13802
13903
|
case "suspend" /* SUSPEND */:
|
|
@@ -13837,7 +13938,7 @@ var WfoStepStatusIcon = ({ stepStatus, isStartStep = false }) => {
|
|
|
13837
13938
|
return [stepStateSuccessIconStyle, theme.colors.textPrimary, true, theme.colors.textSuccess];
|
|
13838
13939
|
}
|
|
13839
13940
|
})();
|
|
13840
|
-
return /* @__PURE__ */
|
|
13941
|
+
return /* @__PURE__ */ jsxs103(EuiFlexItem17, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
13841
13942
|
/* @__PURE__ */ jsx199("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx199(MainIcon, { color: mainIconColor, stepStatus, isStartStep }) }),
|
|
13842
13943
|
/* @__PURE__ */ jsx199(
|
|
13843
13944
|
"div",
|
|
@@ -13869,7 +13970,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
13869
13970
|
};
|
|
13870
13971
|
|
|
13871
13972
|
// src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx
|
|
13872
|
-
import { useCallback as
|
|
13973
|
+
import { useCallback as useCallback9, useState as useState33 } from "react";
|
|
13873
13974
|
import { useTranslations as useTranslations53 } from "next-intl";
|
|
13874
13975
|
import { EuiButtonGroup as EuiButtonGroup2 } from "@elastic/eui";
|
|
13875
13976
|
import { jsx as jsx200 } from "@emotion/react/jsx-runtime";
|
|
@@ -13913,7 +14014,7 @@ var WfoCodeViewSelector = ({ codeView, handleCodeViewChange }) => {
|
|
|
13913
14014
|
}
|
|
13914
14015
|
}
|
|
13915
14016
|
];
|
|
13916
|
-
const handle =
|
|
14017
|
+
const handle = useCallback9((id) => handleCodeViewChange(id), [handleCodeViewChange]);
|
|
13917
14018
|
return /* @__PURE__ */ jsx200(
|
|
13918
14019
|
EuiButtonGroup2,
|
|
13919
14020
|
{
|
|
@@ -13935,14 +14036,14 @@ var WfoCodeViewSelector = ({ codeView, handleCodeViewChange }) => {
|
|
|
13935
14036
|
};
|
|
13936
14037
|
|
|
13937
14038
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
13938
|
-
import { useCallback as
|
|
14039
|
+
import { useCallback as useCallback10, useMemo as useMemo4 } from "react";
|
|
13939
14040
|
import { PydanticForm as PydanticForm4 } from "pydantic-forms";
|
|
13940
14041
|
import { EuiFlexItem as EuiFlexItem18 } from "@elastic/eui";
|
|
13941
14042
|
|
|
13942
14043
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepFormFooter.tsx
|
|
13943
14044
|
import { useTranslations as useTranslations54 } from "next-intl";
|
|
13944
14045
|
import { EuiButton as EuiButton13, EuiHorizontalRule as EuiHorizontalRule6 } from "@elastic/eui";
|
|
13945
|
-
import { jsx as jsx201, jsxs as
|
|
14046
|
+
import { jsx as jsx201, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
13946
14047
|
var StepFormFooter = ({ isTask, isResumeAllowed }) => {
|
|
13947
14048
|
const t = useTranslations54("pydanticForms.userInputForm");
|
|
13948
14049
|
const SubmitButton = () => {
|
|
@@ -13964,7 +14065,7 @@ var StepFormFooter = ({ isTask, isResumeAllowed }) => {
|
|
|
13964
14065
|
}
|
|
13965
14066
|
);
|
|
13966
14067
|
};
|
|
13967
|
-
return /* @__PURE__ */
|
|
14068
|
+
return /* @__PURE__ */ jsxs104("div", { "data-testid": "pydantic-step-form-footer", children: [
|
|
13968
14069
|
/* @__PURE__ */ jsx201(RenderFormErrors, {}),
|
|
13969
14070
|
/* @__PURE__ */ jsx201(EuiHorizontalRule6, {}),
|
|
13970
14071
|
/* @__PURE__ */ jsx201("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx201(SubmitButton, {}) })
|
|
@@ -13976,8 +14077,8 @@ import { jsx as jsx202 } from "@emotion/react/jsx-runtime";
|
|
|
13976
14077
|
var WfoStepForm = ({ userInputForm, isTask, processId, userPermissions }) => {
|
|
13977
14078
|
const { theme } = useOrchestratorTheme();
|
|
13978
14079
|
const [resumeProcess] = useResumeProcessMutation();
|
|
13979
|
-
const getInitialStepInput =
|
|
13980
|
-
const getStepFormProvider =
|
|
14080
|
+
const getInitialStepInput = useMemo4(() => userInputForm, [userInputForm]);
|
|
14081
|
+
const getStepFormProvider = useCallback10(
|
|
13981
14082
|
() => async ({ requestBody = [] }) => {
|
|
13982
14083
|
if (requestBody.length === 0) {
|
|
13983
14084
|
return {
|
|
@@ -14006,9 +14107,17 @@ var WfoStepForm = ({ userInputForm, isTask, processId, userPermissions }) => {
|
|
|
14006
14107
|
return /* @__PURE__ */ jsx202(EuiFlexItem18, { css: { margin: theme.size.m }, children: /* @__PURE__ */ jsx202(PydanticForm4, { formKey: processId, formId: "wfo-step-form", config }) });
|
|
14007
14108
|
};
|
|
14008
14109
|
|
|
14110
|
+
// src/components/WfoWorkflowSteps/WfoStep/useStepDetailOverride.ts
|
|
14111
|
+
var useStepDetailOverride = () => {
|
|
14112
|
+
const overrideStepDetail = useAppSelector((state) => state.orchestratorComponentOverride?.stepDetail);
|
|
14113
|
+
return {
|
|
14114
|
+
overrideStepDetail
|
|
14115
|
+
};
|
|
14116
|
+
};
|
|
14117
|
+
|
|
14009
14118
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
14010
|
-
import { Fragment as Fragment47, jsx as jsx203, jsxs as
|
|
14011
|
-
var WfoStep =
|
|
14119
|
+
import { Fragment as Fragment47, jsx as jsx203, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
|
|
14120
|
+
var WfoStep = React62.forwardRef(
|
|
14012
14121
|
({
|
|
14013
14122
|
stepListItem,
|
|
14014
14123
|
onToggleStepDetail,
|
|
@@ -14032,6 +14141,7 @@ var WfoStep = React61.forwardRef(
|
|
|
14032
14141
|
stepRowStyle,
|
|
14033
14142
|
getStepToggleExpandStyle
|
|
14034
14143
|
} = useWithOrchestratorTheme(getWorkflowStepsStyles);
|
|
14144
|
+
const { overrideStepDetail } = useStepDetailOverride();
|
|
14035
14145
|
const t = useTranslations55("processes.steps");
|
|
14036
14146
|
const hasHtmlMail = Object.prototype.hasOwnProperty.call(step?.stateDelta || {}, "confirmation_mail");
|
|
14037
14147
|
const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
|
|
@@ -14040,16 +14150,16 @@ var WfoStep = React61.forwardRef(
|
|
|
14040
14150
|
if (!value) {
|
|
14041
14151
|
return "";
|
|
14042
14152
|
}
|
|
14043
|
-
return /* @__PURE__ */
|
|
14153
|
+
return /* @__PURE__ */ jsxs105(EuiText18, { size: "s", children: [
|
|
14044
14154
|
/* @__PURE__ */ jsx203("h4", { children: "To" }),
|
|
14045
|
-
/* @__PURE__ */ jsx203("p", { children: value.to.map((v, i) => /* @__PURE__ */
|
|
14155
|
+
/* @__PURE__ */ jsx203("p", { children: value.to.map((v, i) => /* @__PURE__ */ jsxs105("div", { children: [
|
|
14046
14156
|
v.name,
|
|
14047
14157
|
" <",
|
|
14048
14158
|
/* @__PURE__ */ jsx203("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
14049
14159
|
">"
|
|
14050
14160
|
] }, `to-${i}`)) }),
|
|
14051
14161
|
/* @__PURE__ */ jsx203("h4", { children: "CC" }),
|
|
14052
|
-
/* @__PURE__ */ jsx203("p", { children: value.cc.map((v, i) => /* @__PURE__ */
|
|
14162
|
+
/* @__PURE__ */ jsx203("p", { children: value.cc.map((v, i) => /* @__PURE__ */ jsxs105("div", { children: [
|
|
14053
14163
|
v.name,
|
|
14054
14164
|
" <",
|
|
14055
14165
|
/* @__PURE__ */ jsx203("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
@@ -14061,52 +14171,63 @@ var WfoStep = React61.forwardRef(
|
|
|
14061
14171
|
/* @__PURE__ */ jsx203("div", { className: "emailMessage", dangerouslySetInnerHTML: { __html: value.message } })
|
|
14062
14172
|
] });
|
|
14063
14173
|
};
|
|
14064
|
-
const handle =
|
|
14174
|
+
const handle = useCallback11(
|
|
14065
14175
|
(newCodeView) => {
|
|
14066
14176
|
setCodeView(newCodeView);
|
|
14067
14177
|
},
|
|
14068
14178
|
[setCodeView]
|
|
14069
14179
|
);
|
|
14070
|
-
|
|
14071
|
-
|
|
14180
|
+
const shouldExpand = isExpanded && hasStepContent;
|
|
14181
|
+
return /* @__PURE__ */ jsx203("div", { ref, children: /* @__PURE__ */ jsxs105(EuiPanel3, { children: [
|
|
14182
|
+
/* @__PURE__ */ jsxs105(EuiFlexGroup23, { css: getStepHeaderStyle(hasStepContent), onClick: () => hasStepContent && onToggleStepDetail(), children: [
|
|
14072
14183
|
/* @__PURE__ */ jsx203(WfoStepStatusIcon, { stepStatus: step.status, isStartStep }),
|
|
14073
|
-
/* @__PURE__ */
|
|
14074
|
-
/* @__PURE__ */
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14184
|
+
/* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
|
|
14185
|
+
/* @__PURE__ */ jsxs105(EuiFlexItem19, { css: { flexDirection: "row" }, children: [
|
|
14186
|
+
/* @__PURE__ */ jsxs105(EuiFlexItem19, { grow: 0, children: [
|
|
14187
|
+
/* @__PURE__ */ jsx203(EuiText18, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
14188
|
+
/* @__PURE__ */ jsxs105(EuiText18, { children: [
|
|
14189
|
+
step.status,
|
|
14190
|
+
" ",
|
|
14191
|
+
step.completed && `- ${formatDate(step.completed)}`
|
|
14192
|
+
] })
|
|
14193
|
+
] }),
|
|
14194
|
+
/* @__PURE__ */ jsx203(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs105(Fragment47, { children: [
|
|
14195
|
+
isExpanded && /* @__PURE__ */ jsx203(WfoCodeViewSelector, { codeView, handleCodeViewChange: handle }),
|
|
14196
|
+
/* @__PURE__ */ jsxs105(EuiFlexItem19, { grow: 0, css: stepHeaderRightStyle, children: [
|
|
14197
|
+
/* @__PURE__ */ jsx203(EuiText18, { css: stepDurationStyle, children: t("duration") }),
|
|
14198
|
+
/* @__PURE__ */ jsx203(EuiText18, { size: "m", children: calculateTimeDifference(startedAt, completedAt) })
|
|
14199
|
+
] }),
|
|
14200
|
+
/* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 0, css: getStepToggleExpandStyle(hasStepContent), children: isExpanded && /* @__PURE__ */ jsx203(WfoChevronUp, { color: theme.colors.textParagraph }) || /* @__PURE__ */ jsx203(WfoChevronDown, { color: theme.colors.textParagraph }) })
|
|
14201
|
+
] }) })
|
|
14086
14202
|
] }),
|
|
14087
|
-
/* @__PURE__ */ jsx203(EuiFlexItem19, {
|
|
14088
|
-
] })
|
|
14203
|
+
/* @__PURE__ */ jsx203(EuiFlexItem19, { children: overrideStepDetail?.stepHeader && /* @__PURE__ */ jsx203(overrideStepDetail.stepHeader, { step }) })
|
|
14204
|
+
] })
|
|
14089
14205
|
] }),
|
|
14090
|
-
|
|
14091
|
-
|
|
14092
|
-
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
userInputForm
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14206
|
+
shouldExpand && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
|
|
14207
|
+
/* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) }),
|
|
14208
|
+
/* @__PURE__ */ jsxs105(EuiFlexItem19, { children: [
|
|
14209
|
+
shouldExpand && !hasHtmlMail && (codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx203(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx203(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx203(WfoMonacoCodeBlock, { data: stepContent })),
|
|
14210
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx203("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(step.stateDelta.confirmation_mail) }),
|
|
14211
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx203(
|
|
14212
|
+
WfoStepForm,
|
|
14213
|
+
{
|
|
14214
|
+
userInputForm,
|
|
14215
|
+
isTask,
|
|
14216
|
+
processId: processId ?? "",
|
|
14217
|
+
userPermissions
|
|
14218
|
+
}
|
|
14219
|
+
)
|
|
14220
|
+
] })
|
|
14221
|
+
] })
|
|
14101
14222
|
] }) });
|
|
14102
14223
|
}
|
|
14103
14224
|
);
|
|
14104
14225
|
WfoStep.displayName = "WfoStep";
|
|
14105
14226
|
|
|
14106
14227
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
14107
|
-
import
|
|
14108
|
-
import { Fragment as Fragment48, jsx as jsx204, jsxs as
|
|
14109
|
-
var WfoStepList =
|
|
14228
|
+
import React63, { useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
|
|
14229
|
+
import { Fragment as Fragment48, jsx as jsx204, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
|
|
14230
|
+
var WfoStepList = React63.forwardRef(
|
|
14110
14231
|
({
|
|
14111
14232
|
stepListItems,
|
|
14112
14233
|
showHiddenKeys,
|
|
@@ -14152,7 +14273,7 @@ var WfoStepList = React62.forwardRef(
|
|
|
14152
14273
|
stepReferences.current.delete(stepId);
|
|
14153
14274
|
}
|
|
14154
14275
|
};
|
|
14155
|
-
return /* @__PURE__ */ jsx204(Fragment48, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */
|
|
14276
|
+
return /* @__PURE__ */ jsx204(Fragment48, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */ jsxs106("div", { children: [
|
|
14156
14277
|
index !== 0 && /* @__PURE__ */ jsx204("div", { css: stepSpacerStyle }),
|
|
14157
14278
|
/* @__PURE__ */ jsx204(
|
|
14158
14279
|
WfoStep,
|
|
@@ -14175,11 +14296,11 @@ var WfoStepList = React62.forwardRef(
|
|
|
14175
14296
|
WfoStepList.displayName = "WfoStepList";
|
|
14176
14297
|
|
|
14177
14298
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
14178
|
-
import
|
|
14299
|
+
import React65, { useEffect as useEffect25, useState as useState36 } from "react";
|
|
14179
14300
|
import { useTranslations as useTranslations58 } from "next-intl";
|
|
14180
14301
|
|
|
14181
14302
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
14182
|
-
import { useCallback as
|
|
14303
|
+
import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo5, useState as useState35 } from "react";
|
|
14183
14304
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
14184
14305
|
import "react-diff-view/style/index.css";
|
|
14185
14306
|
import { useTranslations as useTranslations56 } from "next-intl";
|
|
@@ -14221,7 +14342,7 @@ var getWfoDiffStyles = ({ theme, toSecondaryColor, isDarkModeActive }) => {
|
|
|
14221
14342
|
};
|
|
14222
14343
|
|
|
14223
14344
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
14224
|
-
import { jsx as jsx205, jsxs as
|
|
14345
|
+
import { jsx as jsx205, jsxs as jsxs107 } from "@emotion/react/jsx-runtime";
|
|
14225
14346
|
var EMPTY_HUNKS = [];
|
|
14226
14347
|
var SMALL_CONTEXT = 3;
|
|
14227
14348
|
var FULL_CONTEXT = 1e6;
|
|
@@ -14234,14 +14355,14 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
14234
14355
|
type: "modify",
|
|
14235
14356
|
hunks: []
|
|
14236
14357
|
});
|
|
14237
|
-
const updateDiffText =
|
|
14358
|
+
const updateDiffText = useCallback12(() => {
|
|
14238
14359
|
const diffText = formatLines(diffLines(oldText, newText), {
|
|
14239
14360
|
context: showFull ? FULL_CONTEXT : SMALL_CONTEXT
|
|
14240
14361
|
});
|
|
14241
14362
|
const [diff] = parseDiff(diffText, { nearbySequences: "zip" });
|
|
14242
14363
|
setDiff(diff);
|
|
14243
14364
|
}, [oldText, newText, setDiff, showFull]);
|
|
14244
|
-
const tokens =
|
|
14365
|
+
const tokens = useMemo5(() => {
|
|
14245
14366
|
if (!hunks) {
|
|
14246
14367
|
return void 0;
|
|
14247
14368
|
}
|
|
@@ -14259,8 +14380,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
14259
14380
|
useEffect24(() => {
|
|
14260
14381
|
updateDiffText();
|
|
14261
14382
|
}, [updateDiffText, showFull]);
|
|
14262
|
-
return /* @__PURE__ */
|
|
14263
|
-
/* @__PURE__ */
|
|
14383
|
+
return /* @__PURE__ */ jsxs107("div", { children: [
|
|
14384
|
+
/* @__PURE__ */ jsxs107(EuiFlexGroup24, { gutterSize: "xs", children: [
|
|
14264
14385
|
/* @__PURE__ */ jsx205(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx205(EuiText19, { children: /* @__PURE__ */ jsx205("h3", { children: t("title") }) }) }),
|
|
14265
14386
|
/* @__PURE__ */ jsx205(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx205(
|
|
14266
14387
|
EuiButtonIcon13,
|
|
@@ -14315,18 +14436,18 @@ var getStyles10 = ({ theme }) => {
|
|
|
14315
14436
|
};
|
|
14316
14437
|
|
|
14317
14438
|
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
14318
|
-
import { Fragment as Fragment49, jsx as jsx206, jsxs as
|
|
14439
|
+
import { Fragment as Fragment49, jsx as jsx206, jsxs as jsxs108 } from "@emotion/react/jsx-runtime";
|
|
14319
14440
|
var WfoTraceback = ({ children }) => {
|
|
14320
14441
|
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles10);
|
|
14321
14442
|
const t = useTranslations57("processes.steps");
|
|
14322
|
-
return /* @__PURE__ */
|
|
14443
|
+
return /* @__PURE__ */ jsxs108(Fragment49, { children: [
|
|
14323
14444
|
/* @__PURE__ */ jsx206(EuiText20, { children: /* @__PURE__ */ jsx206("h3", { children: t("traceback") }) }),
|
|
14324
14445
|
/* @__PURE__ */ jsx206(EuiCodeBlock, { css: codeBlockStyle, children })
|
|
14325
14446
|
] });
|
|
14326
14447
|
};
|
|
14327
14448
|
|
|
14328
14449
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
14329
|
-
import { Fragment as Fragment50, jsx as jsx207, jsxs as
|
|
14450
|
+
import { Fragment as Fragment50, jsx as jsx207, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
|
|
14330
14451
|
var WfoProcessRawData = ({ processId }) => {
|
|
14331
14452
|
const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
|
|
14332
14453
|
return isFetching ? /* @__PURE__ */ jsx207(WfoLoading, {}) : /* @__PURE__ */ jsx207(WfoJsonCodeBlock, { data: data || {} });
|
|
@@ -14347,7 +14468,7 @@ var WfoProcessSubscriptionDelta = ({ processId }) => {
|
|
|
14347
14468
|
}
|
|
14348
14469
|
);
|
|
14349
14470
|
};
|
|
14350
|
-
var WfoWorkflowStepList =
|
|
14471
|
+
var WfoWorkflowStepList = React65.forwardRef(
|
|
14351
14472
|
({ steps = [], lastStatus, traceBack, processId, isTask, userInputForm, userPermissions }, reference) => {
|
|
14352
14473
|
const [showHiddenKeys, setShowHiddenKeys] = useState36(false);
|
|
14353
14474
|
const [showRaw, setShowRaw] = useState36(false);
|
|
@@ -14401,7 +14522,7 @@ var WfoWorkflowStepList = React64.forwardRef(
|
|
|
14401
14522
|
isExpanded: true
|
|
14402
14523
|
}));
|
|
14403
14524
|
const isRunningWorkflow = !["failed" /* FAILED */, "aborted" /* ABORTED */, "completed" /* COMPLETED */].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
|
|
14404
|
-
return /* @__PURE__ */
|
|
14525
|
+
return /* @__PURE__ */ jsxs109(Fragment50, { children: [
|
|
14405
14526
|
/* @__PURE__ */ jsx207(
|
|
14406
14527
|
WfoStepListHeader,
|
|
14407
14528
|
{
|
|
@@ -14473,7 +14594,7 @@ var WfoTextAnchor = ({ text, onClick }) => {
|
|
|
14473
14594
|
};
|
|
14474
14595
|
|
|
14475
14596
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
14476
|
-
import { jsx as jsx209, jsxs as
|
|
14597
|
+
import { jsx as jsx209, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
|
|
14477
14598
|
var WfoStepListHeader = ({
|
|
14478
14599
|
allDetailToggleText,
|
|
14479
14600
|
showDelta,
|
|
@@ -14505,12 +14626,12 @@ var WfoStepListHeader = ({
|
|
|
14505
14626
|
children: t("viewOptions")
|
|
14506
14627
|
}
|
|
14507
14628
|
);
|
|
14508
|
-
return /* @__PURE__ */
|
|
14509
|
-
/* @__PURE__ */
|
|
14629
|
+
return /* @__PURE__ */ jsxs110(EuiFlexGroup25, { css: stepListHeaderStyle, children: [
|
|
14630
|
+
/* @__PURE__ */ jsxs110(EuiFlexGroup25, { css: stepListContentStyle, children: [
|
|
14510
14631
|
/* @__PURE__ */ jsx209(EuiText22, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
14511
14632
|
!showRaw && /* @__PURE__ */ jsx209(WfoTextAnchor, { text: allDetailToggleText, onClick: onToggleAllDetailsIsOpen })
|
|
14512
14633
|
] }),
|
|
14513
|
-
/* @__PURE__ */
|
|
14634
|
+
/* @__PURE__ */ jsxs110(EuiFlexGroup25, { justifyContent: "flexEnd", direction: "row", css: stepListOptionsContainerStyle, gutterSize: "s", children: [
|
|
14514
14635
|
showTracebackButton && /* @__PURE__ */ jsx209(EuiButton14, { onClick: () => onShowTraceback(!showTraceback), size: "s", children: showTraceback ? t("hideTraceback") : t("showTraceback") }),
|
|
14515
14636
|
/* @__PURE__ */ jsx209(
|
|
14516
14637
|
EuiButton14,
|
|
@@ -14523,7 +14644,7 @@ var WfoStepListHeader = ({
|
|
|
14523
14644
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
14524
14645
|
}
|
|
14525
14646
|
),
|
|
14526
|
-
/* @__PURE__ */ jsx209(EuiPopover7, { button: viewOptionButton, isOpen: isViewOptionOpen, closePopover: closeViewOption, display: "block", children: /* @__PURE__ */ jsx209("div", { children: /* @__PURE__ */
|
|
14647
|
+
/* @__PURE__ */ jsx209(EuiPopover7, { button: viewOptionButton, isOpen: isViewOptionOpen, closePopover: closeViewOption, display: "block", children: /* @__PURE__ */ jsx209("div", { children: /* @__PURE__ */ jsxs110(EuiForm3, { component: "form", children: [
|
|
14527
14648
|
/* @__PURE__ */ jsx209(EuiFormRow6, { children: /* @__PURE__ */ jsx209(
|
|
14528
14649
|
EuiSwitch3,
|
|
14529
14650
|
{
|
|
@@ -14552,7 +14673,7 @@ var WfoStepListHeader = ({
|
|
|
14552
14673
|
};
|
|
14553
14674
|
|
|
14554
14675
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
14555
|
-
import { jsx as jsx210, jsxs as
|
|
14676
|
+
import { jsx as jsx210, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
|
|
14556
14677
|
var getInitialProcessPayload = ({
|
|
14557
14678
|
productId,
|
|
14558
14679
|
subscriptionId
|
|
@@ -14587,7 +14708,7 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
|
|
|
14587
14708
|
const { data: workflowMetadata, isError: isErrorWorkflowDescription } = useGetDescriptionForWorkflowNameQuery({
|
|
14588
14709
|
workflowName: processName
|
|
14589
14710
|
});
|
|
14590
|
-
const startProcessPayload =
|
|
14711
|
+
const startProcessPayload = useMemo6(
|
|
14591
14712
|
() => getInitialProcessPayload({
|
|
14592
14713
|
productId,
|
|
14593
14714
|
subscriptionId
|
|
@@ -14634,7 +14755,7 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
|
|
|
14634
14755
|
processDetail,
|
|
14635
14756
|
timelineItems: timeLineItems,
|
|
14636
14757
|
isLoading,
|
|
14637
|
-
children: /* @__PURE__ */
|
|
14758
|
+
children: /* @__PURE__ */ jsxs111(
|
|
14638
14759
|
EuiPanel4,
|
|
14639
14760
|
{
|
|
14640
14761
|
css: {
|
|
@@ -14642,9 +14763,9 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
|
|
|
14642
14763
|
marginTop: theme.base * 3
|
|
14643
14764
|
},
|
|
14644
14765
|
children: [
|
|
14645
|
-
/* @__PURE__ */
|
|
14766
|
+
/* @__PURE__ */ jsxs111(EuiFlexGroup26, { css: getStepHeaderStyle(false), children: [
|
|
14646
14767
|
/* @__PURE__ */ jsx210(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
14647
|
-
/* @__PURE__ */
|
|
14768
|
+
/* @__PURE__ */ jsxs111(EuiFlexItem21, { grow: 0, children: [
|
|
14648
14769
|
/* @__PURE__ */ jsx210(EuiText23, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
14649
14770
|
/* @__PURE__ */ jsx210(EuiText23, { children: t(isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel") })
|
|
14650
14771
|
] })
|
|
@@ -14661,19 +14782,19 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
|
|
|
14661
14782
|
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
14662
14783
|
import { useTranslations as useTranslations61 } from "next-intl";
|
|
14663
14784
|
import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as EuiFlexGroup27, EuiText as EuiText24, EuiToolTip as EuiToolTip10 } from "@elastic/eui";
|
|
14664
|
-
import { jsx as jsx211, jsxs as
|
|
14785
|
+
import { jsx as jsx211, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
|
|
14665
14786
|
var WfoProductInformationWithLink = ({ workflowName, productNames }) => {
|
|
14666
14787
|
const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
|
|
14667
14788
|
const t = useTranslations61("processes.detail");
|
|
14668
14789
|
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
14669
|
-
return /* @__PURE__ */
|
|
14790
|
+
return /* @__PURE__ */ jsxs112(EuiFlexGroup27, { gutterSize: "s", alignItems: "center", children: [
|
|
14670
14791
|
showWorkflowInformationLink && /* @__PURE__ */ jsx211(EuiToolTip10, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx211("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx211(EuiButtonIcon14, { iconSize: "l", iconType: "info", "aria-label": t("openWorkflowTaskInfo") }) }) }),
|
|
14671
14792
|
/* @__PURE__ */ jsx211(EuiText24, { size: "s", children: productNames })
|
|
14672
14793
|
] });
|
|
14673
14794
|
};
|
|
14674
14795
|
|
|
14675
14796
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
14676
|
-
import { useMemo as
|
|
14797
|
+
import { useMemo as useMemo7 } from "react";
|
|
14677
14798
|
import { useTranslations as useTranslations63 } from "next-intl";
|
|
14678
14799
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
14679
14800
|
import { EuiCodeBlock as EuiCodeBlock2, EuiFlexItem as EuiFlexItem23, EuiPanel as EuiPanel6, EuiSpacer as EuiSpacer23, EuiTab as EuiTab3, EuiTabs as EuiTabs3, EuiText as EuiText26 } from "@elastic/eui";
|
|
@@ -14682,14 +14803,14 @@ import { css as css35 } from "@emotion/react";
|
|
|
14682
14803
|
// src/components/WfoSettings/WfoAoStackStatus.tsx
|
|
14683
14804
|
import { useTranslations as useTranslations62 } from "next-intl";
|
|
14684
14805
|
import { EuiButton as EuiButton15, EuiFlexItem as EuiFlexItem22, EuiPanel as EuiPanel5, EuiSpacer as EuiSpacer22, EuiText as EuiText25 } from "@elastic/eui";
|
|
14685
|
-
import { jsx as jsx212, jsxs as
|
|
14806
|
+
import { jsx as jsx212, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
|
|
14686
14807
|
var WfoAoStackStatus = () => {
|
|
14687
14808
|
const t = useTranslations62("settings.page");
|
|
14688
14809
|
const { aoStackStatusUrl } = useGetOrchestratorConfig();
|
|
14689
14810
|
const openStatusPage = () => {
|
|
14690
14811
|
window.open(aoStackStatusUrl, "_blank");
|
|
14691
14812
|
};
|
|
14692
|
-
return /* @__PURE__ */ jsx212(EuiFlexItem22, { children: /* @__PURE__ */
|
|
14813
|
+
return /* @__PURE__ */ jsx212(EuiFlexItem22, { children: /* @__PURE__ */ jsxs113(EuiPanel5, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
14693
14814
|
/* @__PURE__ */ jsx212(EuiText25, { size: "s", children: /* @__PURE__ */ jsx212("h4", { children: t("aoStackStatus") }) }),
|
|
14694
14815
|
/* @__PURE__ */ jsx212(EuiSpacer22, { size: "m" }),
|
|
14695
14816
|
/* @__PURE__ */ jsx212(EuiButton15, { iconType: () => /* @__PURE__ */ jsx212(WfoChartBar, {}), onClick: openStatusPage, children: t("viewStatusPage") })
|
|
@@ -14697,7 +14818,7 @@ var WfoAoStackStatus = () => {
|
|
|
14697
14818
|
};
|
|
14698
14819
|
|
|
14699
14820
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
14700
|
-
import { Fragment as Fragment51, jsx as jsx213, jsxs as
|
|
14821
|
+
import { Fragment as Fragment51, jsx as jsx213, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
|
|
14701
14822
|
var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
14702
14823
|
WfoSettingsTab2["ACTIONS"] = "ACTIONS";
|
|
14703
14824
|
WfoSettingsTab2["ENV_SETTINGS"] = "ENV_SETTINGS";
|
|
@@ -14706,13 +14827,13 @@ var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
|
14706
14827
|
var WfoActionSettings = () => {
|
|
14707
14828
|
const { theme } = useOrchestratorTheme();
|
|
14708
14829
|
const { enableAoStackStatus } = useGetOrchestratorConfig();
|
|
14709
|
-
return /* @__PURE__ */ jsx213(Fragment51, { children: /* @__PURE__ */
|
|
14830
|
+
return /* @__PURE__ */ jsx213(Fragment51, { children: /* @__PURE__ */ jsxs114("div", { css: { maxWidth: theme.base * 40 }, children: [
|
|
14710
14831
|
/* @__PURE__ */ jsx213(WfoFlushSettings, {}),
|
|
14711
14832
|
/* @__PURE__ */ jsx213(EuiSpacer23, {}),
|
|
14712
14833
|
/* @__PURE__ */ jsx213(WfoModifySettings, {}),
|
|
14713
14834
|
/* @__PURE__ */ jsx213(EuiSpacer23, {}),
|
|
14714
14835
|
/* @__PURE__ */ jsx213(WfoEngineStatus, {}),
|
|
14715
|
-
enableAoStackStatus && /* @__PURE__ */
|
|
14836
|
+
enableAoStackStatus && /* @__PURE__ */ jsxs114(Fragment51, { children: [
|
|
14716
14837
|
/* @__PURE__ */ jsx213(EuiSpacer23, {}),
|
|
14717
14838
|
/* @__PURE__ */ jsx213(WfoAoStackStatus, {})
|
|
14718
14839
|
] }),
|
|
@@ -14730,8 +14851,8 @@ var WfoEnvSettings = () => {
|
|
|
14730
14851
|
const renderEnvSettings = () => {
|
|
14731
14852
|
return data && data.map(({ name, variables }) => {
|
|
14732
14853
|
const showVariables = mapToRepresentableVariables(variables);
|
|
14733
|
-
return /* @__PURE__ */
|
|
14734
|
-
/* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */
|
|
14854
|
+
return /* @__PURE__ */ jsxs114(Fragment51, { children: [
|
|
14855
|
+
/* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsxs114(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
14735
14856
|
/* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */ jsx213("h2", { children: name.replace("_", " ").toUpperCase() }) }),
|
|
14736
14857
|
/* @__PURE__ */ jsx213(EuiSpacer23, {}),
|
|
14737
14858
|
/* @__PURE__ */ jsx213(
|
|
@@ -14751,7 +14872,7 @@ var WfoEnvSettings = () => {
|
|
|
14751
14872
|
});
|
|
14752
14873
|
};
|
|
14753
14874
|
const emptyEnvSettings = () => {
|
|
14754
|
-
return /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsx213(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */
|
|
14875
|
+
return /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsx213(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */ jsxs114("h2", { children: [
|
|
14755
14876
|
t("noSettingsExposed"),
|
|
14756
14877
|
" ",
|
|
14757
14878
|
/* @__PURE__ */ jsx213(
|
|
@@ -14786,7 +14907,7 @@ var WfoSettingsPage = () => {
|
|
|
14786
14907
|
"activeTab",
|
|
14787
14908
|
withDefault3(StringParam3, "ACTIONS" /* ACTIONS */)
|
|
14788
14909
|
);
|
|
14789
|
-
const selectedTabContent =
|
|
14910
|
+
const selectedTabContent = useMemo7(() => {
|
|
14790
14911
|
return settingsTabs.find((obj) => obj.id === selectedTabId)?.content;
|
|
14791
14912
|
}, [selectedTabId]);
|
|
14792
14913
|
const onSelectedTabChanged = (id) => {
|
|
@@ -14804,7 +14925,7 @@ var WfoSettingsPage = () => {
|
|
|
14804
14925
|
index
|
|
14805
14926
|
));
|
|
14806
14927
|
};
|
|
14807
|
-
return /* @__PURE__ */
|
|
14928
|
+
return /* @__PURE__ */ jsxs114(Fragment51, { children: [
|
|
14808
14929
|
/* @__PURE__ */ jsx213(WfoContentHeader, { title: t("settings") }),
|
|
14809
14930
|
/* @__PURE__ */ jsx213(EuiTabs3, { children: renderTabs() }),
|
|
14810
14931
|
/* @__PURE__ */ jsx213(EuiSpacer23, { size: "xxl" }),
|
|
@@ -14827,7 +14948,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
|
|
|
14827
14948
|
};
|
|
14828
14949
|
|
|
14829
14950
|
// src/pages/startPage/WfoStartPage.tsx
|
|
14830
|
-
import { Fragment as Fragment52, jsx as jsx214, jsxs as
|
|
14951
|
+
import { Fragment as Fragment52, jsx as jsx214, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
|
|
14831
14952
|
var WfoStartPage = () => {
|
|
14832
14953
|
const t = useTranslations64("main");
|
|
14833
14954
|
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
@@ -14846,7 +14967,7 @@ var WfoStartPage = () => {
|
|
|
14846
14967
|
/* @__PURE__ */ jsx214(WfoProductsSummaryCard, {}, "products")
|
|
14847
14968
|
];
|
|
14848
14969
|
const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
|
|
14849
|
-
return /* @__PURE__ */
|
|
14970
|
+
return /* @__PURE__ */ jsxs115(Fragment52, { children: [
|
|
14850
14971
|
/* @__PURE__ */ jsx214(WfoContentHeader, { title: /* @__PURE__ */ jsx214(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` }) }),
|
|
14851
14972
|
/* @__PURE__ */ jsx214(WfoSummaryCards, { children: summaryCards })
|
|
14852
14973
|
] });
|
|
@@ -14878,7 +14999,7 @@ import { useEffect as useEffect26, useState as useState39 } from "react";
|
|
|
14878
14999
|
import { useTranslations as useTranslations65 } from "next-intl";
|
|
14879
15000
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
14880
15001
|
import { EuiSpacer as EuiSpacer24 } from "@elastic/eui";
|
|
14881
|
-
import { Fragment as Fragment54, jsx as jsx216, jsxs as
|
|
15002
|
+
import { Fragment as Fragment54, jsx as jsx216, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
|
|
14882
15003
|
var WfoSubscriptionsListPage = () => {
|
|
14883
15004
|
const t = useTranslations65("subscriptions.detail");
|
|
14884
15005
|
const [tableDefaults, setTableDefaults] = useState39();
|
|
@@ -14909,7 +15030,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
14909
15030
|
setDataDisplayParam("pageIndex", 0);
|
|
14910
15031
|
};
|
|
14911
15032
|
const alwaysOnFilters = subscriptionListTabs.find(({ id }) => id === activeTab)?.alwaysOnFilters;
|
|
14912
|
-
return /* @__PURE__ */
|
|
15033
|
+
return /* @__PURE__ */ jsxs116(Fragment54, { children: [
|
|
14913
15034
|
/* @__PURE__ */ jsx216(WfoContentHeader, { title: /* @__PURE__ */ jsx216(WfoTitleWithWebsocketBadge, { title: t("title") }) }),
|
|
14914
15035
|
/* @__PURE__ */ jsx216(
|
|
14915
15036
|
WfoFilterTabs,
|
|
@@ -14936,7 +15057,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
14936
15057
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
14937
15058
|
import { useContext as useContext10, useEffect as useEffect27, useState as useState40 } from "react";
|
|
14938
15059
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
14939
|
-
import
|
|
15060
|
+
import Link12 from "next/link";
|
|
14940
15061
|
import { useRouter as useRouter15 } from "next/router";
|
|
14941
15062
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
14942
15063
|
import { EuiButton as EuiButton16, EuiSpacer as EuiSpacer25 } from "@elastic/eui";
|
|
@@ -15004,7 +15125,7 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
15004
15125
|
};
|
|
15005
15126
|
|
|
15006
15127
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
15007
|
-
import { Fragment as Fragment55, jsx as jsx217, jsxs as
|
|
15128
|
+
import { Fragment as Fragment55, jsx as jsx217, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
|
|
15008
15129
|
var WfoTasksListPage = () => {
|
|
15009
15130
|
const router = useRouter15();
|
|
15010
15131
|
const t = useTranslations66("tasks.page");
|
|
@@ -15055,7 +15176,7 @@ var WfoTasksListPage = () => {
|
|
|
15055
15176
|
workflowName: {
|
|
15056
15177
|
columnType: "data" /* DATA */,
|
|
15057
15178
|
label: t("taskName"),
|
|
15058
|
-
renderData: (value, { processId }) => /* @__PURE__ */ jsx217(
|
|
15179
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx217(Link12, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
15059
15180
|
},
|
|
15060
15181
|
...toSortedTableColumnConfig(defaultTableColumns, [
|
|
15061
15182
|
"lastStep",
|
|
@@ -15073,8 +15194,8 @@ var WfoTasksListPage = () => {
|
|
|
15073
15194
|
"lastModifiedAt"
|
|
15074
15195
|
])
|
|
15075
15196
|
});
|
|
15076
|
-
return /* @__PURE__ */
|
|
15077
|
-
/* @__PURE__ */
|
|
15197
|
+
return /* @__PURE__ */ jsxs117(Fragment55, { children: [
|
|
15198
|
+
/* @__PURE__ */ jsxs117(WfoContentHeader, { title: /* @__PURE__ */ jsx217(WfoTitleWithWebsocketBadge, { title: "Tasks" }), children: [
|
|
15078
15199
|
/* @__PURE__ */ jsx217(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx217(
|
|
15079
15200
|
EuiButton16,
|
|
15080
15201
|
{
|
|
@@ -15179,7 +15300,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
15179
15300
|
};
|
|
15180
15301
|
|
|
15181
15302
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
15182
|
-
import { Fragment as Fragment56, jsx as jsx218, jsxs as
|
|
15303
|
+
import { Fragment as Fragment56, jsx as jsx218, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
|
|
15183
15304
|
var WfoWorkflowsListPage = () => {
|
|
15184
15305
|
const router = useRouter16();
|
|
15185
15306
|
const t = useTranslations67("workflows.index");
|
|
@@ -15215,7 +15336,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
15215
15336
|
router.replace(PATH_WORKFLOWS);
|
|
15216
15337
|
return null;
|
|
15217
15338
|
}
|
|
15218
|
-
return /* @__PURE__ */
|
|
15339
|
+
return /* @__PURE__ */ jsxs118(Fragment56, { children: [
|
|
15219
15340
|
/* @__PURE__ */ jsx218(WfoContentHeader, { title: /* @__PURE__ */ jsx218(WfoTitleWithWebsocketBadge, { title: t("title") }) }),
|
|
15220
15341
|
/* @__PURE__ */ jsx218(
|
|
15221
15342
|
WfoFilterTabs,
|
|
@@ -15337,7 +15458,7 @@ var graphQlProcessFilterMapper = (data) => data?.map(({ field, value }) => ({
|
|
|
15337
15458
|
}));
|
|
15338
15459
|
|
|
15339
15460
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
15340
|
-
import { jsx as jsx219, jsxs as
|
|
15461
|
+
import { jsx as jsx219, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
|
|
15341
15462
|
var WfoProcessesList = ({
|
|
15342
15463
|
alwaysOnFilters,
|
|
15343
15464
|
defaultHiddenColumns = [],
|
|
@@ -15355,7 +15476,7 @@ var WfoProcessesList = ({
|
|
|
15355
15476
|
columnType: "data" /* DATA */,
|
|
15356
15477
|
label: t("workflowName"),
|
|
15357
15478
|
width: "225px",
|
|
15358
|
-
renderData: (value, { processId }) => /* @__PURE__ */ jsx219(
|
|
15479
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx219(Link13, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
|
|
15359
15480
|
renderTooltip: (value) => value
|
|
15360
15481
|
},
|
|
15361
15482
|
lastStep: {
|
|
@@ -15408,7 +15529,7 @@ var WfoProcessesList = ({
|
|
|
15408
15529
|
}
|
|
15409
15530
|
),
|
|
15410
15531
|
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx219(WfoProcessListSubscriptionsCell, { subscriptions }),
|
|
15411
|
-
renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */
|
|
15532
|
+
renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs119("p", { children: [
|
|
15412
15533
|
"- ",
|
|
15413
15534
|
description
|
|
15414
15535
|
] }, subscriptionId)),
|
|
@@ -15582,7 +15703,7 @@ var getWfoFlushSettingsStyle = ({ theme }) => {
|
|
|
15582
15703
|
};
|
|
15583
15704
|
|
|
15584
15705
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
15585
|
-
import { jsx as jsx221, jsxs as
|
|
15706
|
+
import { jsx as jsx221, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
|
|
15586
15707
|
var WfoFlushSettings = () => {
|
|
15587
15708
|
const { comboboxStyle } = useWithOrchestratorTheme(getWfoFlushSettingsStyle);
|
|
15588
15709
|
const [clearCache] = useClearCacheMutation();
|
|
@@ -15608,7 +15729,7 @@ var WfoFlushSettings = () => {
|
|
|
15608
15729
|
showToastMessage("ERROR" /* ERROR */, `Flush for cache key ${cacheKey} failed`, "Flush failed");
|
|
15609
15730
|
});
|
|
15610
15731
|
};
|
|
15611
|
-
return /* @__PURE__ */ jsx221(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */
|
|
15732
|
+
return /* @__PURE__ */ jsx221(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs120(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
15612
15733
|
/* @__PURE__ */ jsx221(EuiText27, { size: "s", children: /* @__PURE__ */ jsx221("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
15613
15734
|
/* @__PURE__ */ jsx221(EuiSpacer27, { size: "m" }),
|
|
15614
15735
|
/* @__PURE__ */ jsx221(
|
|
@@ -15647,18 +15768,18 @@ var WfoEngineStatusButton = () => {
|
|
|
15647
15768
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
15648
15769
|
import { useTranslations as useTranslations71 } from "next-intl";
|
|
15649
15770
|
import { EuiFlexItem as EuiFlexItem24, EuiPanel as EuiPanel8, EuiSpacer as EuiSpacer28, EuiText as EuiText28 } from "@elastic/eui";
|
|
15650
|
-
import { jsx as jsx223, jsxs as
|
|
15771
|
+
import { jsx as jsx223, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
|
|
15651
15772
|
var WfoModifySettings = () => {
|
|
15652
15773
|
const t = useTranslations71("settings.page");
|
|
15653
|
-
return /* @__PURE__ */
|
|
15654
|
-
/* @__PURE__ */
|
|
15774
|
+
return /* @__PURE__ */ jsxs121(EuiFlexItem24, { children: [
|
|
15775
|
+
/* @__PURE__ */ jsxs121(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
15655
15776
|
/* @__PURE__ */ jsx223(EuiText28, { size: "s", children: /* @__PURE__ */ jsx223("h4", { children: t("resetTextSearchIndex") }) }),
|
|
15656
15777
|
/* @__PURE__ */ jsx223(EuiSpacer28, { size: "m" }),
|
|
15657
15778
|
/* @__PURE__ */ jsx223(WfoResetTextSearchIndexButton, {})
|
|
15658
15779
|
] }),
|
|
15659
|
-
/* @__PURE__ */
|
|
15780
|
+
/* @__PURE__ */ jsxs121(WfoIsAllowedToRender, { resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */, children: [
|
|
15660
15781
|
/* @__PURE__ */ jsx223(EuiSpacer28, {}),
|
|
15661
|
-
/* @__PURE__ */
|
|
15782
|
+
/* @__PURE__ */ jsxs121(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
15662
15783
|
/* @__PURE__ */ jsx223(EuiText28, { size: "s", children: /* @__PURE__ */ jsx223("h4", { children: t("modifyEngine") }) }),
|
|
15663
15784
|
/* @__PURE__ */ jsx223(EuiSpacer28, { size: "m" }),
|
|
15664
15785
|
/* @__PURE__ */ jsx223(WfoEngineStatusButton, {})
|
|
@@ -15670,20 +15791,20 @@ var WfoModifySettings = () => {
|
|
|
15670
15791
|
// src/components/WfoSettings/WfoEngineStatus.tsx
|
|
15671
15792
|
import { useTranslations as useTranslations72 } from "next-intl";
|
|
15672
15793
|
import { EuiFlexGroup as EuiFlexGroup28, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel9, EuiText as EuiText29 } from "@elastic/eui";
|
|
15673
|
-
import { jsx as jsx224, jsxs as
|
|
15794
|
+
import { jsx as jsx224, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
15674
15795
|
var WfoEngineStatus = () => {
|
|
15675
15796
|
const { theme } = useOrchestratorTheme();
|
|
15676
15797
|
const { data } = useGetEngineStatusQuery();
|
|
15677
15798
|
const { engineStatus, runningProcesses } = data || {};
|
|
15678
15799
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
15679
15800
|
const t = useTranslations72("settings.page");
|
|
15680
|
-
return /* @__PURE__ */ jsx224(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */
|
|
15801
|
+
return /* @__PURE__ */ jsx224(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs122(EuiFlexGroup28, { direction: "column", gutterSize: "s", children: [
|
|
15681
15802
|
/* @__PURE__ */ jsx224(EuiFlexItem25, { children: /* @__PURE__ */ jsx224(EuiText29, { size: "s", children: /* @__PURE__ */ jsx224("h4", { children: t("engineStatusTitle") }) }) }),
|
|
15682
|
-
/* @__PURE__ */
|
|
15803
|
+
/* @__PURE__ */ jsxs122(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
|
|
15683
15804
|
/* @__PURE__ */ jsx224(EuiText29, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
|
|
15684
15805
|
/* @__PURE__ */ jsx224(EuiText29, { size: "s", children: runningProcesses || "-" })
|
|
15685
15806
|
] }),
|
|
15686
|
-
/* @__PURE__ */
|
|
15807
|
+
/* @__PURE__ */ jsxs122(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
|
|
15687
15808
|
/* @__PURE__ */ jsx224(EuiText29, { size: "s", style: { minWidth: 190 }, children: t("status") }),
|
|
15688
15809
|
/* @__PURE__ */ jsx224(WfoStatusDotIcon, { color: isRunning ? theme.colors.success : theme.colors.warning }),
|
|
15689
15810
|
/* @__PURE__ */ jsx224(EuiText29, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx224("p", { children: engineStatus }) })
|
|
@@ -15694,22 +15815,22 @@ var WfoEngineStatus = () => {
|
|
|
15694
15815
|
// src/components/WfoSettings/WfoWorkerStatus.tsx
|
|
15695
15816
|
import { useTranslations as useTranslations73 } from "next-intl";
|
|
15696
15817
|
import { EuiFlexGroup as EuiFlexGroup29, EuiFlexItem as EuiFlexItem26, EuiPanel as EuiPanel10, EuiText as EuiText30 } from "@elastic/eui";
|
|
15697
|
-
import { jsx as jsx225, jsxs as
|
|
15818
|
+
import { jsx as jsx225, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
15698
15819
|
var WfoWorkerStatus = () => {
|
|
15699
15820
|
const { data } = useGetWorkerStatusQuery();
|
|
15700
15821
|
const { executorType, numberOfQueuedJobs, numberOfRunningJobs, numberOfWorkersOnline } = data || {};
|
|
15701
15822
|
const t = useTranslations73("settings.page");
|
|
15702
|
-
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx225(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */
|
|
15823
|
+
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx225(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs123(EuiFlexGroup29, { direction: "column", gutterSize: "s", children: [
|
|
15703
15824
|
/* @__PURE__ */ jsx225(EuiFlexItem26, { children: /* @__PURE__ */ jsx225(EuiText30, { size: "s", children: /* @__PURE__ */ jsx225("h4", { children: t("workerStatusTitle") }) }) }),
|
|
15704
|
-
/* @__PURE__ */
|
|
15825
|
+
/* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
|
|
15705
15826
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
|
|
15706
15827
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfQueuedJobs || "-" })
|
|
15707
15828
|
] }),
|
|
15708
|
-
/* @__PURE__ */
|
|
15829
|
+
/* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
|
|
15709
15830
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
|
|
15710
15831
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfRunningJobs || "-" })
|
|
15711
15832
|
] }),
|
|
15712
|
-
/* @__PURE__ */
|
|
15833
|
+
/* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
|
|
15713
15834
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
|
|
15714
15835
|
/* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfWorkersOnline || "-" })
|
|
15715
15836
|
] })
|
|
@@ -15734,9 +15855,9 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
15734
15855
|
};
|
|
15735
15856
|
|
|
15736
15857
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
15737
|
-
import
|
|
15738
|
-
import { jsx as jsx228, jsxs as
|
|
15739
|
-
var WfoErrorBoundary = class extends
|
|
15858
|
+
import React73 from "react";
|
|
15859
|
+
import { jsx as jsx228, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
|
|
15860
|
+
var WfoErrorBoundary = class extends React73.Component {
|
|
15740
15861
|
constructor(props) {
|
|
15741
15862
|
super(props);
|
|
15742
15863
|
this.state = { hasError: false };
|
|
@@ -15752,7 +15873,7 @@ var WfoErrorBoundary = class extends React72.Component {
|
|
|
15752
15873
|
if (this.props.fallback) {
|
|
15753
15874
|
return this.props.fallback;
|
|
15754
15875
|
}
|
|
15755
|
-
return /* @__PURE__ */
|
|
15876
|
+
return /* @__PURE__ */ jsxs124("p", { children: [
|
|
15756
15877
|
"An unexpected error occurred, try to go back to the ",
|
|
15757
15878
|
/* @__PURE__ */ jsx228("a", { href: "/", children: "home page" })
|
|
15758
15879
|
] });
|
|
@@ -15786,10 +15907,10 @@ var getStyles13 = ({ theme }) => {
|
|
|
15786
15907
|
};
|
|
15787
15908
|
|
|
15788
15909
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
15789
|
-
import { jsxs as
|
|
15910
|
+
import { jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
|
|
15790
15911
|
var WfoNoResults = ({ text, icon }) => {
|
|
15791
15912
|
const { panelStyle } = useWithOrchestratorTheme(getStyles13);
|
|
15792
|
-
return /* @__PURE__ */
|
|
15913
|
+
return /* @__PURE__ */ jsxs125(EuiFlexGroup30, { css: panelStyle, children: [
|
|
15793
15914
|
icon,
|
|
15794
15915
|
" ",
|
|
15795
15916
|
text
|
|
@@ -15917,7 +16038,7 @@ var subscriptionListTabs = [
|
|
|
15917
16038
|
|
|
15918
16039
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
15919
16040
|
import { useTranslations as useTranslations76 } from "next-intl";
|
|
15920
|
-
import
|
|
16041
|
+
import Link14 from "next/link";
|
|
15921
16042
|
import { useRouter as useRouter19 } from "next/router";
|
|
15922
16043
|
import { jsx as jsx231 } from "@emotion/react/jsx-runtime";
|
|
15923
16044
|
var WfoSubscriptionsList = ({
|
|
@@ -15958,7 +16079,7 @@ var WfoSubscriptionsList = ({
|
|
|
15958
16079
|
columnType: "data" /* DATA */,
|
|
15959
16080
|
label: t("description"),
|
|
15960
16081
|
width: "500px",
|
|
15961
|
-
renderData: (value, record) => /* @__PURE__ */ jsx231(
|
|
16082
|
+
renderData: (value, record) => /* @__PURE__ */ jsx231(Link14, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
|
|
15962
16083
|
renderTooltip: (value) => value
|
|
15963
16084
|
},
|
|
15964
16085
|
status: {
|
|
@@ -16134,7 +16255,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
|
16134
16255
|
};
|
|
16135
16256
|
|
|
16136
16257
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
16137
|
-
import { jsx as jsx232, jsxs as
|
|
16258
|
+
import { jsx as jsx232, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
|
|
16138
16259
|
var WfoSummaryCardHeader = ({
|
|
16139
16260
|
text,
|
|
16140
16261
|
value,
|
|
@@ -16144,7 +16265,7 @@ var WfoSummaryCardHeader = ({
|
|
|
16144
16265
|
}) => {
|
|
16145
16266
|
const { theme } = useOrchestratorTheme();
|
|
16146
16267
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
16147
|
-
return /* @__PURE__ */ jsx232(EuiFlexItem27, { grow: 0, children: /* @__PURE__ */ jsx232(EuiPanel11, { hasShadow: false, css: { backgroundColor: theme.colors.backgroundBaseSubdued }, paddingSize: "l", children: /* @__PURE__ */
|
|
16268
|
+
return /* @__PURE__ */ jsx232(EuiFlexItem27, { grow: 0, children: /* @__PURE__ */ jsx232(EuiPanel11, { hasShadow: false, css: { backgroundColor: theme.colors.backgroundBaseSubdued }, paddingSize: "l", children: /* @__PURE__ */ jsxs126(EuiFlexGroup31, { alignItems: "center", children: [
|
|
16148
16269
|
/* @__PURE__ */ jsx232(
|
|
16149
16270
|
EuiAvatar,
|
|
16150
16271
|
{
|
|
@@ -16158,9 +16279,9 @@ var WfoSummaryCardHeader = ({
|
|
|
16158
16279
|
color: iconColor
|
|
16159
16280
|
}
|
|
16160
16281
|
),
|
|
16161
|
-
/* @__PURE__ */
|
|
16282
|
+
/* @__PURE__ */ jsxs126("div", { css: totalSectionStyle, children: [
|
|
16162
16283
|
/* @__PURE__ */ jsx232(EuiText31, { color: "subdued", children: text }),
|
|
16163
|
-
/* @__PURE__ */
|
|
16284
|
+
/* @__PURE__ */ jsxs126(EuiFlexGroup31, { gutterSize: "s", alignItems: "center", children: [
|
|
16164
16285
|
/* @__PURE__ */ jsx232(EuiText31, { css: valueStyle, children: value }),
|
|
16165
16286
|
isFetching && /* @__PURE__ */ jsx232(EuiLoadingSpinner2, {})
|
|
16166
16287
|
] })
|
|
@@ -16184,13 +16305,13 @@ import {
|
|
|
16184
16305
|
import { EuiFlexGroup as EuiFlexGroup32, EuiFlexItem as EuiFlexItem28, EuiIcon as EuiIcon4, EuiTextColor } from "@elastic/eui";
|
|
16185
16306
|
|
|
16186
16307
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
16187
|
-
import
|
|
16308
|
+
import Link15 from "next/link";
|
|
16188
16309
|
import { jsx as jsx233 } from "@emotion/react/jsx-runtime";
|
|
16189
16310
|
var WfoOptionalLink = ({ children, href }) => {
|
|
16190
16311
|
if (!href) {
|
|
16191
16312
|
return /* @__PURE__ */ jsx233("span", { children });
|
|
16192
16313
|
}
|
|
16193
|
-
return /* @__PURE__ */ jsx233(
|
|
16314
|
+
return /* @__PURE__ */ jsx233(Link15, { href, children });
|
|
16194
16315
|
};
|
|
16195
16316
|
|
|
16196
16317
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -16241,12 +16362,12 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
16241
16362
|
};
|
|
16242
16363
|
|
|
16243
16364
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
16244
|
-
import { jsx as jsx234, jsxs as
|
|
16365
|
+
import { jsx as jsx234, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
|
|
16245
16366
|
var WfoSummaryCardListItem = ({ title, value, url }) => {
|
|
16246
16367
|
const { theme } = useOrchestratorTheme();
|
|
16247
16368
|
const { listItemContainerStyle, listItemTitleStyle, listItemSubtitleStyle, listItemHighlightIconStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
16248
|
-
return /* @__PURE__ */ jsx234(WfoOptionalLink, { href: url, children: /* @__PURE__ */
|
|
16249
|
-
/* @__PURE__ */
|
|
16369
|
+
return /* @__PURE__ */ jsx234(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs127(EuiFlexGroup32, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
16370
|
+
/* @__PURE__ */ jsxs127(EuiFlexItem28, { children: [
|
|
16250
16371
|
/* @__PURE__ */ jsx234(EuiTextColor, { color: url ? theme.colors.link : theme.colors.textHeading, css: listItemTitleStyle, children: title }),
|
|
16251
16372
|
/* @__PURE__ */ jsx234(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
16252
16373
|
] }),
|
|
@@ -16255,16 +16376,16 @@ var WfoSummaryCardListItem = ({ title, value, url }) => {
|
|
|
16255
16376
|
};
|
|
16256
16377
|
|
|
16257
16378
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
16258
|
-
import { jsx as jsx235, jsxs as
|
|
16379
|
+
import { jsx as jsx235, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
|
|
16259
16380
|
var WfoSummaryCardList = ({ title, items, button, isLoading = false }) => {
|
|
16260
16381
|
const router = useRouter20();
|
|
16261
16382
|
const euiScrollBarStyle = useEuiScrollBar3();
|
|
16262
16383
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
16263
|
-
return /* @__PURE__ */ jsx235(EuiFlexItem29, { children: /* @__PURE__ */
|
|
16264
|
-
/* @__PURE__ */
|
|
16384
|
+
return /* @__PURE__ */ jsx235(EuiFlexItem29, { children: /* @__PURE__ */ jsxs128(EuiPanel12, { css: listContainerStyle, hasShadow: false, hasBorder: true, paddingSize: "l", children: [
|
|
16385
|
+
/* @__PURE__ */ jsxs128("div", { children: [
|
|
16265
16386
|
/* @__PURE__ */ jsx235("p", { css: listHeaderStyle, children: title }),
|
|
16266
16387
|
/* @__PURE__ */ jsx235(EuiSpacer29, { size: "m" }),
|
|
16267
|
-
/* @__PURE__ */ jsx235(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx235("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */
|
|
16388
|
+
/* @__PURE__ */ jsx235(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx235("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs128("div", { children: [
|
|
16268
16389
|
/* @__PURE__ */ jsx235(WfoSummaryCardListItem, { title: item.title, value: item.value, url: item.url }),
|
|
16269
16390
|
index === items.length - 1 ? null : /* @__PURE__ */ jsx235(EuiHorizontalRule8, { margin: "none" })
|
|
16270
16391
|
] }, index)) }) })
|
|
@@ -16298,7 +16419,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
|
16298
16419
|
};
|
|
16299
16420
|
|
|
16300
16421
|
// src/components/WfoSummary/WfoSummaryCard.tsx
|
|
16301
|
-
import { jsx as jsx237, jsxs as
|
|
16422
|
+
import { jsx as jsx237, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
|
|
16302
16423
|
var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
|
|
16303
16424
|
SummaryCardStatus2["Success"] = "Success";
|
|
16304
16425
|
SummaryCardStatus2["Error"] = "Error";
|
|
@@ -16342,7 +16463,7 @@ var WfoSummaryCard = ({
|
|
|
16342
16463
|
};
|
|
16343
16464
|
}
|
|
16344
16465
|
};
|
|
16345
|
-
return /* @__PURE__ */
|
|
16466
|
+
return /* @__PURE__ */ jsxs129(EuiFlexItem30, { css: cardContainerStyle, children: [
|
|
16346
16467
|
/* @__PURE__ */ jsx237(
|
|
16347
16468
|
WfoSummaryCardHeader,
|
|
16348
16469
|
{
|
|
@@ -16602,7 +16723,7 @@ var WfoMyWorkflowsSummaryCard = ({ username }) => {
|
|
|
16602
16723
|
|
|
16603
16724
|
// src/components/WfoSummary/WfoProductsSummaryCard.tsx
|
|
16604
16725
|
import { useTranslations as useTranslations82 } from "next-intl";
|
|
16605
|
-
import { jsx as jsx243, jsxs as
|
|
16726
|
+
import { jsx as jsx243, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
|
|
16606
16727
|
var WfoProductsSummaryCard = () => {
|
|
16607
16728
|
const t = useTranslations82("startPage.products");
|
|
16608
16729
|
const {
|
|
@@ -16614,7 +16735,7 @@ var WfoProductsSummaryCard = () => {
|
|
|
16614
16735
|
(left, right) => (right.subscriptions.pageInfo.totalItems ?? 0) - (left.subscriptions.pageInfo.totalItems ?? 0)
|
|
16615
16736
|
).map((product) => ({
|
|
16616
16737
|
title: "",
|
|
16617
|
-
value: /* @__PURE__ */
|
|
16738
|
+
value: /* @__PURE__ */ jsxs130(
|
|
16618
16739
|
"div",
|
|
16619
16740
|
{
|
|
16620
16741
|
css: {
|
|
@@ -16644,13 +16765,13 @@ var WfoProductsSummaryCard = () => {
|
|
|
16644
16765
|
|
|
16645
16766
|
// src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
|
|
16646
16767
|
import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
|
|
16647
|
-
import { Fragment as Fragment58, jsx as jsx244, jsxs as
|
|
16648
|
-
var WfoTitleWithWebsocketBadge = ({ title }) => {
|
|
16768
|
+
import { Fragment as Fragment58, jsx as jsx244, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
|
|
16769
|
+
var WfoTitleWithWebsocketBadge = ({ title, wsUrl = void 0 }) => {
|
|
16649
16770
|
const { useWebSockets } = useGetOrchestratorConfig();
|
|
16650
|
-
const pageTitle = useWebSockets ? /* @__PURE__ */
|
|
16771
|
+
const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs131(Fragment58, { children: [
|
|
16651
16772
|
title,
|
|
16652
16773
|
" ",
|
|
16653
|
-
/* @__PURE__ */ jsx244(WfoWebsocketStatusBadge, {})
|
|
16774
|
+
/* @__PURE__ */ jsx244(WfoWebsocketStatusBadge, { wsUrl })
|
|
16654
16775
|
] }) : title;
|
|
16655
16776
|
return /* @__PURE__ */ jsx244(EuiPageHeader3, { pageTitle });
|
|
16656
16777
|
};
|
|
@@ -16959,14 +17080,14 @@ var useSearch = (query, entityType, filterGroup, limit, retriever = "auto" /* Au
|
|
|
16959
17080
|
};
|
|
16960
17081
|
|
|
16961
17082
|
// src/hooks/useSearchPagination.ts
|
|
16962
|
-
import { useCallback as
|
|
17083
|
+
import { useCallback as useCallback13, useState as useState46 } from "react";
|
|
16963
17084
|
var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults, retriever) => {
|
|
16964
17085
|
const [currentPage, setCurrentPage] = useState46(1);
|
|
16965
17086
|
const [pageHistory, setPageHistory] = useState46([]);
|
|
16966
17087
|
const [error, setError] = useState46(null);
|
|
16967
17088
|
const [isLoadingMore, setIsLoadingMore] = useState46(false);
|
|
16968
17089
|
const [triggerSearchPagination] = useSearchWithPaginationMutation();
|
|
16969
|
-
const handleNextPage =
|
|
17090
|
+
const handleNextPage = useCallback13(
|
|
16970
17091
|
async (nextPageCursor) => {
|
|
16971
17092
|
if (!nextPageCursor || isLoadingMore) return;
|
|
16972
17093
|
setIsLoadingMore(true);
|
|
@@ -17025,7 +17146,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
17025
17146
|
triggerSearchPagination
|
|
17026
17147
|
]
|
|
17027
17148
|
);
|
|
17028
|
-
const handlePrevPage =
|
|
17149
|
+
const handlePrevPage = useCallback13(() => {
|
|
17029
17150
|
const previousPage = pageHistory.find((p) => p.page === currentPage - 1);
|
|
17030
17151
|
if (previousPage) {
|
|
17031
17152
|
setResults({
|
|
@@ -17040,7 +17161,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
17040
17161
|
setPageHistory((prev) => prev.filter((p) => p.page < currentPage));
|
|
17041
17162
|
}
|
|
17042
17163
|
}, [currentPage, pageHistory, results.search_metadata, setResults]);
|
|
17043
|
-
const resetPagination =
|
|
17164
|
+
const resetPagination = useCallback13(() => {
|
|
17044
17165
|
setCurrentPage(1);
|
|
17045
17166
|
setPageHistory([]);
|
|
17046
17167
|
}, []);
|
|
@@ -17057,7 +17178,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
17057
17178
|
};
|
|
17058
17179
|
|
|
17059
17180
|
// src/hooks/useUrlParams.ts
|
|
17060
|
-
import { useCallback as
|
|
17181
|
+
import { useCallback as useCallback14, useEffect as useEffect31, useState as useState47 } from "react";
|
|
17061
17182
|
|
|
17062
17183
|
// src/components/WfoSearchPage/constants.ts
|
|
17063
17184
|
var DEFAULT_PAGE_SIZE2 = 5;
|
|
@@ -17096,7 +17217,7 @@ var useUrlParams = () => {
|
|
|
17096
17217
|
const [selectedRecordId, setSelectedRecordId] = useState47(() => {
|
|
17097
17218
|
return urlParams.get("id") || null;
|
|
17098
17219
|
});
|
|
17099
|
-
const updateUrl =
|
|
17220
|
+
const updateUrl = useCallback14(() => {
|
|
17100
17221
|
const newParams = new URLSearchParams();
|
|
17101
17222
|
const queryText = typeof query === "string" ? query : query.text || "";
|
|
17102
17223
|
if (queryText && queryText !== "*") {
|
|
@@ -17137,7 +17258,7 @@ var useUrlParams = () => {
|
|
|
17137
17258
|
};
|
|
17138
17259
|
|
|
17139
17260
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
17140
|
-
import { Fragment as Fragment59, jsx as jsx249, jsxs as
|
|
17261
|
+
import { Fragment as Fragment59, jsx as jsx249, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
|
|
17141
17262
|
var WfoSearch = () => {
|
|
17142
17263
|
const t = useTranslations83("search.page");
|
|
17143
17264
|
const searchAvailability = useSearchAvailability();
|
|
@@ -17255,7 +17376,7 @@ var WfoSearch = () => {
|
|
|
17255
17376
|
resetPagination();
|
|
17256
17377
|
}, [debouncedQuery, selectedEntityTab, filterGroup, resetPagination]);
|
|
17257
17378
|
const { RESULTS_GROW, DETAIL_GROW } = LAYOUT_RATIOS;
|
|
17258
|
-
return /* @__PURE__ */
|
|
17379
|
+
return /* @__PURE__ */ jsxs132(WfoAvailabilityCheck, { featureType: "search", availability: searchAvailability, children: [
|
|
17259
17380
|
/* @__PURE__ */ jsx249(EuiTabs4, { children: ENTITY_TABS.map((tab) => /* @__PURE__ */ jsx249(EuiTab4, { onClick: () => handleTabChange(tab.id), isSelected: selectedEntityTab === tab.id, children: tab.label }, tab.id)) }),
|
|
17260
17381
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
|
|
17261
17382
|
/* @__PURE__ */ jsx249(
|
|
@@ -17276,7 +17397,7 @@ var WfoSearch = () => {
|
|
|
17276
17397
|
}
|
|
17277
17398
|
),
|
|
17278
17399
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
|
|
17279
|
-
/* @__PURE__ */
|
|
17400
|
+
/* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
|
|
17280
17401
|
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: false, children: /* @__PURE__ */ jsx249(EuiButton21, { iconType: showFilters ? "eyeClosed" : "eye", size: "s", onClick: () => setShowFilters(!showFilters), children: showFilters ? t("hideFilters") : t("showFilters") }) }),
|
|
17281
17402
|
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: true }),
|
|
17282
17403
|
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: false, children: /* @__PURE__ */ jsx249(
|
|
@@ -17307,25 +17428,25 @@ var WfoSearch = () => {
|
|
|
17307
17428
|
}
|
|
17308
17429
|
) })
|
|
17309
17430
|
] }),
|
|
17310
|
-
showFilters && /* @__PURE__ */
|
|
17431
|
+
showFilters && /* @__PURE__ */ jsxs132(Fragment59, { children: [
|
|
17311
17432
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
|
|
17312
|
-
/* @__PURE__ */
|
|
17433
|
+
/* @__PURE__ */ jsxs132(EuiPanel13, { hasBorder: true, paddingSize: "m", children: [
|
|
17313
17434
|
/* @__PURE__ */ jsx249(EuiText32, { children: /* @__PURE__ */ jsx249("h4", { children: t("structuredFilters") }) }),
|
|
17314
17435
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
|
|
17315
17436
|
/* @__PURE__ */ jsx249(FilterGroup, { group: filterGroup, entityType: selectedEntityTab, onChange: setFilterGroup, isRoot: true })
|
|
17316
17437
|
] })
|
|
17317
17438
|
] }),
|
|
17318
17439
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
|
|
17319
|
-
error && /* @__PURE__ */
|
|
17320
|
-
/* @__PURE__ */
|
|
17440
|
+
error && /* @__PURE__ */ jsxs132(Fragment59, { children: [
|
|
17441
|
+
/* @__PURE__ */ jsxs132(EuiCallOut4, { title: t("searchError"), color: "danger", iconType: "alert", size: "s", children: [
|
|
17321
17442
|
/* @__PURE__ */ jsx249("p", { children: error }),
|
|
17322
17443
|
/* @__PURE__ */ jsx249(EuiButton21, { size: "s", color: "danger", onClick: () => setError(null), children: t("dismiss") })
|
|
17323
17444
|
] }),
|
|
17324
17445
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" })
|
|
17325
17446
|
] }),
|
|
17326
|
-
shouldShowNoResults && /* @__PURE__ */
|
|
17447
|
+
shouldShowNoResults && /* @__PURE__ */ jsxs132(Fragment59, { children: [
|
|
17327
17448
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "l" }),
|
|
17328
|
-
/* @__PURE__ */
|
|
17449
|
+
/* @__PURE__ */ jsxs132(EuiCallOut4, { title: t("noResults"), color: "primary", iconType: "search", size: "m", children: [
|
|
17329
17450
|
/* @__PURE__ */ jsx249("p", { children: t("noResultsMessage", {
|
|
17330
17451
|
entityType: currentTab?.label.toLowerCase()
|
|
17331
17452
|
}) }),
|
|
@@ -17334,10 +17455,10 @@ var WfoSearch = () => {
|
|
|
17334
17455
|
] }),
|
|
17335
17456
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "l" })
|
|
17336
17457
|
] }),
|
|
17337
|
-
isSearchActive && /* @__PURE__ */
|
|
17458
|
+
isSearchActive && /* @__PURE__ */ jsxs132(Fragment59, { children: [
|
|
17338
17459
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
|
|
17339
|
-
/* @__PURE__ */
|
|
17340
|
-
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */
|
|
17460
|
+
/* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
|
|
17461
|
+
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs132(
|
|
17341
17462
|
EuiFlexGroup34,
|
|
17342
17463
|
{
|
|
17343
17464
|
gutterSize: "s",
|
|
@@ -17366,7 +17487,7 @@ var WfoSearch = () => {
|
|
|
17366
17487
|
showDetailPanel && /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: DETAIL_GROW })
|
|
17367
17488
|
] }),
|
|
17368
17489
|
/* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
|
|
17369
|
-
/* @__PURE__ */
|
|
17490
|
+
/* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "flexStart", children: [
|
|
17370
17491
|
/* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsx249(EuiPanel13, { paddingSize: "none", hasBorder: true, children: /* @__PURE__ */ jsx249(
|
|
17371
17492
|
WfoSearchResults,
|
|
17372
17493
|
{
|
|
@@ -17417,7 +17538,7 @@ import { useTranslations as useTranslations86 } from "next-intl";
|
|
|
17417
17538
|
import { EuiButtonIcon as EuiButtonIcon15, EuiFlexGroup as EuiFlexGroup38, EuiFlexItem as EuiFlexItem36, EuiPanel as EuiPanel16, EuiSpacer as EuiSpacer32, EuiText as EuiText35 } from "@elastic/eui";
|
|
17418
17539
|
|
|
17419
17540
|
// src/components/WfoSearchPage/WfoSearchResults/WfoHighlightedText.tsx
|
|
17420
|
-
import { useMemo as
|
|
17541
|
+
import { useMemo as useMemo8 } from "react";
|
|
17421
17542
|
import { css as css43 } from "@emotion/react";
|
|
17422
17543
|
import { Fragment as Fragment60, jsx as jsx252 } from "@emotion/react/jsx-runtime";
|
|
17423
17544
|
var WfoHighlightedText = ({ text, highlight_indices }) => {
|
|
@@ -17430,7 +17551,7 @@ var WfoHighlightedText = ({ text, highlight_indices }) => {
|
|
|
17430
17551
|
font-weight: ${theme.font.weight.bold};
|
|
17431
17552
|
border-radius: ${theme.size.xs};
|
|
17432
17553
|
`;
|
|
17433
|
-
const highlightedParts =
|
|
17554
|
+
const highlightedParts = useMemo8(() => {
|
|
17434
17555
|
if (!highlight_indices || highlight_indices.length === 0) {
|
|
17435
17556
|
return text;
|
|
17436
17557
|
}
|
|
@@ -17457,7 +17578,7 @@ var WfoHighlightedText = ({ text, highlight_indices }) => {
|
|
|
17457
17578
|
// src/components/WfoSearchPage/WfoSearchResults/WfoPathBreadcrumb.tsx
|
|
17458
17579
|
import { Fragment as Fragment61 } from "react";
|
|
17459
17580
|
import { EuiFlexGroup as EuiFlexGroup37, EuiFlexItem as EuiFlexItem35, EuiIcon as EuiIcon5 } from "@elastic/eui";
|
|
17460
|
-
import { jsx as jsx253, jsxs as
|
|
17581
|
+
import { jsx as jsx253, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
|
|
17461
17582
|
var WfoPathBreadcrumb = ({
|
|
17462
17583
|
path,
|
|
17463
17584
|
size = "m",
|
|
@@ -17476,14 +17597,14 @@ var WfoPathBreadcrumb = ({
|
|
|
17476
17597
|
}
|
|
17477
17598
|
const displaySegments = maxSegments && segments.length > maxSegments ? [...segments.slice(0, maxSegments - 1), "...", segments[segments.length - 1]] : segments;
|
|
17478
17599
|
const badgeColor = color || theme.colors.primary;
|
|
17479
|
-
return /* @__PURE__ */ jsx253(EuiFlexGroup37, { gutterSize: size, alignItems: "center", wrap: false, responsive: false, children: displaySegments.map((segment, index) => /* @__PURE__ */
|
|
17600
|
+
return /* @__PURE__ */ jsx253(EuiFlexGroup37, { gutterSize: size, alignItems: "center", wrap: false, responsive: false, children: displaySegments.map((segment, index) => /* @__PURE__ */ jsxs133(Fragment61, { children: [
|
|
17480
17601
|
/* @__PURE__ */ jsx253(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx253(WfoBadge, { color: badgeColor, textColor: theme.colors.textGhost, size, children: segment }) }),
|
|
17481
17602
|
showArrows && index < displaySegments.length - 1 && /* @__PURE__ */ jsx253(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx253(EuiIcon5, { type: "arrowRight", size, color: theme.colors.link }) })
|
|
17482
17603
|
] }, index)) });
|
|
17483
17604
|
};
|
|
17484
17605
|
|
|
17485
17606
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
|
|
17486
|
-
import { Fragment as Fragment62, jsx as jsx254, jsxs as
|
|
17607
|
+
import { Fragment as Fragment62, jsx as jsx254, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
|
|
17487
17608
|
var WfoSearchResultItem = ({
|
|
17488
17609
|
result,
|
|
17489
17610
|
isSelected = false,
|
|
@@ -17519,8 +17640,8 @@ var WfoSearchResultItem = ({
|
|
|
17519
17640
|
borderRight: "none",
|
|
17520
17641
|
borderColor: theme.colors.primary
|
|
17521
17642
|
} : void 0,
|
|
17522
|
-
children: /* @__PURE__ */
|
|
17523
|
-
/* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */
|
|
17643
|
+
children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { alignItems: "flexStart", gutterSize: "m", children: [
|
|
17644
|
+
/* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { direction: "column", gutterSize: "xs", children: [
|
|
17524
17645
|
/* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
|
|
17525
17646
|
EuiText35,
|
|
17526
17647
|
{
|
|
@@ -17531,7 +17652,7 @@ var WfoSearchResultItem = ({
|
|
|
17531
17652
|
children: result.entity_title
|
|
17532
17653
|
}
|
|
17533
17654
|
) }),
|
|
17534
|
-
matchingField && /* @__PURE__ */
|
|
17655
|
+
matchingField && /* @__PURE__ */ jsxs134(Fragment62, { children: [
|
|
17535
17656
|
matchingField.path && /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
|
|
17536
17657
|
WfoPathBreadcrumb,
|
|
17537
17658
|
{
|
|
@@ -17561,7 +17682,7 @@ var WfoSearchResultItem = ({
|
|
|
17561
17682
|
/* @__PURE__ */ jsx254(EuiSpacer32, { size: "xs" })
|
|
17562
17683
|
] })
|
|
17563
17684
|
] }) }),
|
|
17564
|
-
/* @__PURE__ */ jsx254(EuiFlexItem36, { grow: false, children: /* @__PURE__ */
|
|
17685
|
+
/* @__PURE__ */ jsx254(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { direction: "column", alignItems: "flexEnd", gutterSize: "xs", children: [
|
|
17565
17686
|
/* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(WfoBadge, { color: theme.colors.primary, textColor: theme.colors.textGhost, children: "score" in result && result.score ? result.score.toFixed(4) : "N/A" }) }),
|
|
17566
17687
|
/* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
|
|
17567
17688
|
EuiButtonIcon15,
|
|
@@ -17620,7 +17741,7 @@ var WfoSearchMetadataHeader = ({ search_metadata }) => {
|
|
|
17620
17741
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchPaginationInfo.tsx
|
|
17621
17742
|
import { useTranslations as useTranslations87 } from "next-intl";
|
|
17622
17743
|
import { EuiButtonIcon as EuiButtonIcon16, EuiFlexGroup as EuiFlexGroup40, EuiFlexItem as EuiFlexItem37, EuiText as EuiText36 } from "@elastic/eui";
|
|
17623
|
-
import { jsx as jsx257, jsxs as
|
|
17744
|
+
import { jsx as jsx257, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
|
|
17624
17745
|
var WfoSearchPaginationInfo = ({
|
|
17625
17746
|
has_next_page,
|
|
17626
17747
|
next_page_cursor,
|
|
@@ -17640,7 +17761,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
17640
17761
|
if (!isLoading && onPrevPage) onPrevPage();
|
|
17641
17762
|
};
|
|
17642
17763
|
if (!has_next_page && !hasPrevPage) return null;
|
|
17643
|
-
return /* @__PURE__ */
|
|
17764
|
+
return /* @__PURE__ */ jsxs135(
|
|
17644
17765
|
EuiFlexGroup40,
|
|
17645
17766
|
{
|
|
17646
17767
|
justifyContent: "flexEnd",
|
|
@@ -17667,7 +17788,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
17667
17788
|
size: "s"
|
|
17668
17789
|
}
|
|
17669
17790
|
) }),
|
|
17670
|
-
/* @__PURE__ */ jsx257(EuiFlexItem37, { grow: false, children: /* @__PURE__ */
|
|
17791
|
+
/* @__PURE__ */ jsx257(EuiFlexItem37, { grow: false, children: /* @__PURE__ */ jsxs135(EuiText36, { size: "xs", color: theme.colors.textSubdued, children: [
|
|
17671
17792
|
t("page"),
|
|
17672
17793
|
" ",
|
|
17673
17794
|
currentPage
|
|
@@ -17817,7 +17938,7 @@ import {
|
|
|
17817
17938
|
EuiIcon as EuiIcon6,
|
|
17818
17939
|
EuiText as EuiText37
|
|
17819
17940
|
} from "@elastic/eui";
|
|
17820
|
-
import { Fragment as Fragment63, jsx as jsx258, jsxs as
|
|
17941
|
+
import { Fragment as Fragment63, jsx as jsx258, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
|
|
17821
17942
|
var ValueControl = ({ pathInfo, operator, value, onChange }) => {
|
|
17822
17943
|
const t = useTranslations88("search.page");
|
|
17823
17944
|
const { theme } = useOrchestratorTheme();
|
|
@@ -17838,7 +17959,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
|
|
|
17838
17959
|
};
|
|
17839
17960
|
const currentValue = String(value || "");
|
|
17840
17961
|
const hasWildcards = currentValue.includes("%") || currentValue.includes("_");
|
|
17841
|
-
return /* @__PURE__ */
|
|
17962
|
+
return /* @__PURE__ */ jsxs136(Fragment63, { children: [
|
|
17842
17963
|
/* @__PURE__ */ jsx258(
|
|
17843
17964
|
EuiFieldText2,
|
|
17844
17965
|
{
|
|
@@ -17854,14 +17975,14 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
|
|
|
17854
17975
|
prepend: /* @__PURE__ */ jsx258(EuiIcon6, { type: "search" })
|
|
17855
17976
|
}
|
|
17856
17977
|
),
|
|
17857
|
-
/* @__PURE__ */ jsx258(EuiFormHelpText, { children: hasWildcards ? /* @__PURE__ */
|
|
17978
|
+
/* @__PURE__ */ jsx258(EuiFormHelpText, { children: hasWildcards ? /* @__PURE__ */ jsxs136("span", { children: [
|
|
17858
17979
|
/* @__PURE__ */ jsx258(EuiIcon6, { type: "checkInCircleFilled", color: "success", size: "s" }),
|
|
17859
17980
|
" Pattern with wildcards:",
|
|
17860
17981
|
" ",
|
|
17861
17982
|
/* @__PURE__ */ jsx258("strong", { children: currentValue })
|
|
17862
|
-
] }) : /* @__PURE__ */
|
|
17983
|
+
] }) : /* @__PURE__ */ jsxs136("span", { children: [
|
|
17863
17984
|
"Will search for: ",
|
|
17864
|
-
/* @__PURE__ */
|
|
17985
|
+
/* @__PURE__ */ jsxs136("strong", { children: [
|
|
17865
17986
|
"%",
|
|
17866
17987
|
currentValue || "your-text",
|
|
17867
17988
|
"%"
|
|
@@ -17899,7 +18020,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
|
|
|
17899
18020
|
if (pathInfo.type === "number") {
|
|
17900
18021
|
if (operator === "between") {
|
|
17901
18022
|
const betweenValue = value || { start: "", end: "" };
|
|
17902
|
-
return /* @__PURE__ */
|
|
18023
|
+
return /* @__PURE__ */ jsxs136(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
|
|
17903
18024
|
/* @__PURE__ */ jsx258(EuiFlexItem38, { children: /* @__PURE__ */ jsx258(
|
|
17904
18025
|
EuiFieldNumber2,
|
|
17905
18026
|
{
|
|
@@ -17937,7 +18058,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
|
|
|
17937
18058
|
if (pathInfo.type === "datetime") {
|
|
17938
18059
|
if (operator === "between") {
|
|
17939
18060
|
const betweenValue = value || { start: null, end: null };
|
|
17940
|
-
return /* @__PURE__ */
|
|
18061
|
+
return /* @__PURE__ */ jsxs136(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
|
|
17941
18062
|
/* @__PURE__ */ jsx258(EuiFlexItem38, { children: /* @__PURE__ */ jsx258(
|
|
17942
18063
|
EuiDatePicker2,
|
|
17943
18064
|
{
|
|
@@ -18023,14 +18144,14 @@ var WfoFieldSelector = ({
|
|
|
18023
18144
|
// src/components/WfoSearchPage/WfoConditionRow/WfoOperatorSelector.tsx
|
|
18024
18145
|
import { useTranslations as useTranslations90 } from "next-intl";
|
|
18025
18146
|
import { EuiButton as EuiButton22, EuiFlexGroup as EuiFlexGroup42, EuiFlexItem as EuiFlexItem39, EuiFormRow as EuiFormRow7, EuiText as EuiText38 } from "@elastic/eui";
|
|
18026
|
-
import { jsx as jsx260, jsxs as
|
|
18147
|
+
import { jsx as jsx260, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
|
|
18027
18148
|
var WfoOperatorSelector = ({ selectedPathInfo, condition, onOperatorChange }) => {
|
|
18028
18149
|
const t = useTranslations90("search.page");
|
|
18029
18150
|
const { theme } = useOrchestratorTheme();
|
|
18030
|
-
return /* @__PURE__ */ jsx260(EuiFormRow7, { label: t("operatorLabel"), children: /* @__PURE__ */
|
|
18151
|
+
return /* @__PURE__ */ jsx260(EuiFormRow7, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs137(EuiFlexGroup42, { gutterSize: "xs", wrap: true, children: [
|
|
18031
18152
|
selectedPathInfo?.operators?.map((operator) => {
|
|
18032
18153
|
const { symbol, description } = getOperatorDisplay(operator, selectedPathInfo);
|
|
18033
|
-
const tooltipContent = operator === "like" ? /* @__PURE__ */
|
|
18154
|
+
const tooltipContent = operator === "like" ? /* @__PURE__ */ jsxs137("div", { children: [
|
|
18034
18155
|
/* @__PURE__ */ jsx260("strong", { children: description }),
|
|
18035
18156
|
/* @__PURE__ */ jsx260("br", {}),
|
|
18036
18157
|
/* @__PURE__ */ jsx260("br", {}),
|
|
@@ -18081,11 +18202,11 @@ var WfoOperatorSelector = ({ selectedPathInfo, condition, onOperatorChange }) =>
|
|
|
18081
18202
|
|
|
18082
18203
|
// src/components/WfoSearchPage/WfoConditionRow/WfoPathChips.tsx
|
|
18083
18204
|
import { EuiIcon as EuiIcon7 } from "@elastic/eui";
|
|
18084
|
-
import { jsx as jsx261, jsxs as
|
|
18205
|
+
import { jsx as jsx261, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
|
|
18085
18206
|
var WfoPathChips = ({ fullPath, label, fieldType, isAnyPath = false }) => {
|
|
18086
18207
|
const { theme } = useOrchestratorTheme();
|
|
18087
18208
|
if (isAnyPath) {
|
|
18088
|
-
return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: label, children: /* @__PURE__ */
|
|
18209
|
+
return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: label, children: /* @__PURE__ */ jsxs138(
|
|
18089
18210
|
"div",
|
|
18090
18211
|
{
|
|
18091
18212
|
style: {
|
|
@@ -18144,7 +18265,7 @@ var WfoPathChips = ({ fullPath, label, fieldType, isAnyPath = false }) => {
|
|
|
18144
18265
|
const completePath = fullPath || label;
|
|
18145
18266
|
const allSegments = completePath.split(".").filter((segment) => segment && !segment.match(/^\d+$/) && !segment.includes("("));
|
|
18146
18267
|
const pathSegments = allSegments.slice(-2);
|
|
18147
|
-
return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: completePath, children: /* @__PURE__ */
|
|
18268
|
+
return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: completePath, children: /* @__PURE__ */ jsxs138(
|
|
18148
18269
|
"div",
|
|
18149
18270
|
{
|
|
18150
18271
|
style: {
|
|
@@ -18272,15 +18393,15 @@ var WfoPathSelector = ({
|
|
|
18272
18393
|
// src/components/WfoSearchPage/WfoConditionRow/WfoRenderFunctions.tsx
|
|
18273
18394
|
import { useTranslations as useTranslations92 } from "next-intl";
|
|
18274
18395
|
import { EuiFlexGroup as EuiFlexGroup43, EuiFlexItem as EuiFlexItem40, EuiText as EuiText39 } from "@elastic/eui";
|
|
18275
|
-
import { Fragment as Fragment64, jsx as jsx263, jsxs as
|
|
18396
|
+
import { Fragment as Fragment64, jsx as jsx263, jsxs as jsxs139 } from "@emotion/react/jsx-runtime";
|
|
18276
18397
|
var WfoRenderPathOption = ({ option, contentClassName, paths }) => {
|
|
18277
18398
|
const t = useTranslations92("search.page");
|
|
18278
18399
|
const { theme } = useOrchestratorTheme();
|
|
18279
18400
|
const pathInfo = option.value ? paths.find(({ path }) => path === option.value) : null;
|
|
18280
18401
|
if (!pathInfo) return /* @__PURE__ */ jsx263(Fragment64, { children: option.label });
|
|
18281
|
-
return /* @__PURE__ */
|
|
18402
|
+
return /* @__PURE__ */ jsxs139(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
|
|
18282
18403
|
/* @__PURE__ */ jsx263(EuiFlexItem40, { grow: true, children: /* @__PURE__ */ jsx263(EuiText39, { size: "s", children: pathInfo.displayLabel || pathInfo.path }) }),
|
|
18283
|
-
/* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */
|
|
18404
|
+
/* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsxs139(EuiFlexGroup43, { gutterSize: "xs", alignItems: "center", responsive: false, children: [
|
|
18284
18405
|
pathInfo.group === "leaf" && pathInfo.pathCount && pathInfo.pathCount > 1 && /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsx263(WfoBadge, { color: "default", textColor: theme.colors.textInk, size: "xs", children: t("pathsCount", {
|
|
18285
18406
|
count: pathInfo.pathCount
|
|
18286
18407
|
}) }) }),
|
|
@@ -18294,7 +18415,7 @@ var WfoRenderPathSelectionOption = ({
|
|
|
18294
18415
|
fieldType
|
|
18295
18416
|
}) => {
|
|
18296
18417
|
const { theme } = useOrchestratorTheme();
|
|
18297
|
-
return /* @__PURE__ */ jsx263(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */
|
|
18418
|
+
return /* @__PURE__ */ jsx263(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */ jsxs139(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
|
|
18298
18419
|
/* @__PURE__ */ jsx263(EuiFlexItem40, { grow: true, children: /* @__PURE__ */ jsx263(EuiText39, { size: "s", children: option.label }) }),
|
|
18299
18420
|
/* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsx263(WfoBadge, { color: getTypeColor(fieldType, theme), textColor: theme.colors.textInk, size: "xs", children: fieldType }) })
|
|
18300
18421
|
] }) });
|
|
@@ -18338,7 +18459,7 @@ var getPathSelectionOptions = (selectedFieldName, paths) => {
|
|
|
18338
18459
|
};
|
|
18339
18460
|
|
|
18340
18461
|
// src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx
|
|
18341
|
-
import { jsx as jsx264, jsxs as
|
|
18462
|
+
import { jsx as jsx264, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
|
|
18342
18463
|
var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
|
|
18343
18464
|
const { theme } = useOrchestratorTheme();
|
|
18344
18465
|
const isFullPath = condition.path.includes(".");
|
|
@@ -18356,8 +18477,8 @@ var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
|
|
|
18356
18477
|
display: "flex",
|
|
18357
18478
|
alignItems: "center"
|
|
18358
18479
|
},
|
|
18359
|
-
children: /* @__PURE__ */ jsx264(EuiFlexGroup44, { alignItems: "center", gutterSize: "s", responsive: false, justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: true, children: isFullPath ? /* @__PURE__ */
|
|
18360
|
-
/* @__PURE__ */ jsx264(EuiFlexItem41, { grow: false, children: /* @__PURE__ */
|
|
18480
|
+
children: /* @__PURE__ */ jsx264(EuiFlexGroup44, { alignItems: "center", gutterSize: "s", responsive: false, justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: true, children: isFullPath ? /* @__PURE__ */ jsxs140(EuiFlexGroup44, { gutterSize: "none", alignItems: "center", responsive: false, children: [
|
|
18481
|
+
/* @__PURE__ */ jsx264(EuiFlexItem41, { grow: false, children: /* @__PURE__ */ jsxs140(EuiText40, { size: "s", color: theme.colors.textParagraph, children: [
|
|
18361
18482
|
getFieldNameFromFullPath(condition.path),
|
|
18362
18483
|
":"
|
|
18363
18484
|
] }) }),
|
|
@@ -18381,7 +18502,7 @@ var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
|
|
|
18381
18502
|
};
|
|
18382
18503
|
|
|
18383
18504
|
// src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx
|
|
18384
|
-
import { jsx as jsx265, jsxs as
|
|
18505
|
+
import { jsx as jsx265, jsxs as jsxs141 } from "@emotion/react/jsx-runtime";
|
|
18385
18506
|
var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
|
|
18386
18507
|
const t = useTranslations93("search.page");
|
|
18387
18508
|
const { theme } = useOrchestratorTheme();
|
|
@@ -18524,8 +18645,8 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
|
|
|
18524
18645
|
}
|
|
18525
18646
|
);
|
|
18526
18647
|
};
|
|
18527
|
-
return /* @__PURE__ */ jsx265(EuiPanel18, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */
|
|
18528
|
-
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(EuiFormRow8, { label: t("fieldLabel"), error, isInvalid: !!error, children: /* @__PURE__ */
|
|
18648
|
+
return /* @__PURE__ */ jsx265(EuiPanel18, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { direction: "column", gutterSize: "m", children: [
|
|
18649
|
+
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(EuiFormRow8, { label: t("fieldLabel"), error, isInvalid: !!error, children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { gutterSize: "s", alignItems: "center", children: [
|
|
18529
18650
|
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: showPathSelection ? /* @__PURE__ */ jsx265(
|
|
18530
18651
|
WfoPathSelector,
|
|
18531
18652
|
{
|
|
@@ -18578,7 +18699,7 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
|
|
|
18578
18699
|
) }),
|
|
18579
18700
|
condition.path && selectedPathInfo?.ui_types && selectedPathInfo.ui_types.length > 0 && /* @__PURE__ */ jsx265(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx265(EuiFlexGroup45, { gutterSize: "xs", alignItems: "center", responsive: false, children: selectedPathInfo.ui_types.map((type, index) => /* @__PURE__ */ jsx265(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx265(WfoBadge, { color: getTypeColor(type, theme), textColor: theme.colors.textInk, size: "s", children: type }) }, index)) }) })
|
|
18580
18701
|
] }) }) }),
|
|
18581
|
-
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */
|
|
18702
|
+
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { gutterSize: "s", alignItems: "flexEnd", children: [
|
|
18582
18703
|
/* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(
|
|
18583
18704
|
WfoOperatorSelector,
|
|
18584
18705
|
{
|
|
@@ -18611,7 +18732,7 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
|
|
|
18611
18732
|
};
|
|
18612
18733
|
|
|
18613
18734
|
// src/components/WfoSearchPage/WfoFilterGroup/WfoFilterGroup.tsx
|
|
18614
|
-
import { Fragment as Fragment65, jsx as jsx266, jsxs as
|
|
18735
|
+
import { Fragment as Fragment65, jsx as jsx266, jsxs as jsxs142 } from "@emotion/react/jsx-runtime";
|
|
18615
18736
|
var FilterGroup = ({
|
|
18616
18737
|
group,
|
|
18617
18738
|
entityType,
|
|
@@ -18665,21 +18786,21 @@ var FilterGroup = ({
|
|
|
18665
18786
|
op: group.op === "AND" ? "OR" : "AND"
|
|
18666
18787
|
});
|
|
18667
18788
|
};
|
|
18668
|
-
return /* @__PURE__ */
|
|
18669
|
-
/* @__PURE__ */
|
|
18670
|
-
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */
|
|
18789
|
+
return /* @__PURE__ */ jsxs142(EuiPanel19, { paddingSize: "m", color: depth % 2 === 0 ? "primary" : "plain", hasBorder: true, children: [
|
|
18790
|
+
/* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", justifyContent: "spaceBetween", children: [
|
|
18791
|
+
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
|
|
18671
18792
|
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiText41, { size: "s", children: /* @__PURE__ */ jsx266("strong", { children: t("groupLabel") }) }) }),
|
|
18672
18793
|
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", fill: true, color: "primary", onClick: toggleOperator, children: group.op }) })
|
|
18673
18794
|
] }) }),
|
|
18674
|
-
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */
|
|
18795
|
+
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
|
|
18675
18796
|
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", iconType: "plusInCircle", onClick: addCondition, children: t("addCondition") }) }),
|
|
18676
18797
|
/* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(WfoToolTip, { tooltipContent: !canAddGroup ? t("maxNestingDepth") : t("addNestedGroup"), children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", iconType: "nested", onClick: addGroup, disabled: !canAddGroup, children: t("addGroup") }) }) }),
|
|
18677
18798
|
!isRoot && onRemove && /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButtonIcon18, { iconType: "trash", color: "danger", onClick: onRemove, "aria-label": t("removeGroup") }) })
|
|
18678
18799
|
] }) })
|
|
18679
18800
|
] }),
|
|
18680
|
-
group.children.length > 0 && /* @__PURE__ */
|
|
18801
|
+
group.children.length > 0 && /* @__PURE__ */ jsxs142(Fragment65, { children: [
|
|
18681
18802
|
/* @__PURE__ */ jsx266(EuiSpacer33, { size: "m" }),
|
|
18682
|
-
/* @__PURE__ */ jsx266(EuiPanel19, { paddingSize: isRoot ? "none" : "s", color: "transparent", hasShadow: false, children: group.children.map((child, index) => /* @__PURE__ */
|
|
18803
|
+
/* @__PURE__ */ jsx266(EuiPanel19, { paddingSize: isRoot ? "none" : "s", color: "transparent", hasShadow: false, children: group.children.map((child, index) => /* @__PURE__ */ jsxs142("div", { children: [
|
|
18683
18804
|
index > 0 && /* @__PURE__ */ jsx266(EuiFlexGroup46, { gutterSize: "none", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiText41, { size: "s", color: theme.colors.textSubdued, textAlign: "center", children: /* @__PURE__ */ jsx266(EuiCode2, { children: group.op }) }) }) }),
|
|
18684
18805
|
/* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" }),
|
|
18685
18806
|
isCondition(child) ? /* @__PURE__ */ jsx266(
|
|
@@ -18703,7 +18824,7 @@ var FilterGroup = ({
|
|
|
18703
18824
|
/* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" })
|
|
18704
18825
|
] }, index)) })
|
|
18705
18826
|
] }),
|
|
18706
|
-
group.children.length === 0 && /* @__PURE__ */
|
|
18827
|
+
group.children.length === 0 && /* @__PURE__ */ jsxs142(Fragment65, { children: [
|
|
18707
18828
|
/* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" }),
|
|
18708
18829
|
/* @__PURE__ */ jsx266(EuiCallOut5, { title: t("emptyGroupTitle"), color: "primary", iconType: "info", size: "s", children: /* @__PURE__ */ jsx266("p", { children: t("emptyGroupDescription") }) })
|
|
18709
18830
|
] })
|
|
@@ -18711,7 +18832,7 @@ var FilterGroup = ({
|
|
|
18711
18832
|
};
|
|
18712
18833
|
|
|
18713
18834
|
// src/components/WfoAgent/WfoAgent/WfoAgent.tsx
|
|
18714
|
-
import { useCallback as
|
|
18835
|
+
import { useCallback as useCallback15, useRef as useRef12 } from "react";
|
|
18715
18836
|
import { useTranslations as useTranslations99 } from "next-intl";
|
|
18716
18837
|
import { useRenderToolCall } from "@copilotkit/react-core";
|
|
18717
18838
|
import { CopilotChat } from "@copilotkit/react-ui";
|
|
@@ -18929,7 +19050,7 @@ var getExportButtonStyles = ({ theme }) => {
|
|
|
18929
19050
|
};
|
|
18930
19051
|
|
|
18931
19052
|
// src/components/WfoAgent/ExportButton/ExportButton.tsx
|
|
18932
|
-
import { jsx as jsx267, jsxs as
|
|
19053
|
+
import { jsx as jsx267, jsxs as jsxs143 } from "@emotion/react/jsx-runtime";
|
|
18933
19054
|
function ExportButton({ artifact }) {
|
|
18934
19055
|
const { showToastMessage } = useShowToastMessage();
|
|
18935
19056
|
const tError = useTranslations95("errors");
|
|
@@ -18966,10 +19087,10 @@ function ExportButton({ artifact }) {
|
|
|
18966
19087
|
);
|
|
18967
19088
|
await handleExport();
|
|
18968
19089
|
};
|
|
18969
|
-
return /* @__PURE__ */ jsx267("div", { css: containerStyle2, children: /* @__PURE__ */
|
|
19090
|
+
return /* @__PURE__ */ jsx267("div", { css: containerStyle2, children: /* @__PURE__ */ jsxs143("div", { css: buttonWrapperStyle, children: [
|
|
18970
19091
|
artifact.description && /* @__PURE__ */ jsx267("div", { css: titleStyle, children: artifact.description }),
|
|
18971
|
-
/* @__PURE__ */
|
|
18972
|
-
/* @__PURE__ */
|
|
19092
|
+
/* @__PURE__ */ jsxs143("div", { css: fileRowStyle, onClick: onDownloadClick, children: [
|
|
19093
|
+
/* @__PURE__ */ jsxs143("div", { css: fileInfoStyle, children: [
|
|
18973
19094
|
/* @__PURE__ */ jsx267(EuiIcon8, { type: "document", size: "m" }),
|
|
18974
19095
|
/* @__PURE__ */ jsx267("span", { css: filenameStyle, children: filename })
|
|
18975
19096
|
] }),
|
|
@@ -19038,7 +19159,7 @@ var getWfoPlanProgressStyles = ({ theme }) => {
|
|
|
19038
19159
|
};
|
|
19039
19160
|
|
|
19040
19161
|
// src/components/WfoAgent/WfoPlanProgress/WfoPlanProgress.tsx
|
|
19041
|
-
import { jsx as jsx268, jsxs as
|
|
19162
|
+
import { jsx as jsx268, jsxs as jsxs144 } from "@emotion/react/jsx-runtime";
|
|
19042
19163
|
var WfoPlanProgress = ({ executionState }) => {
|
|
19043
19164
|
const [expandedSteps, setExpandedSteps] = useState52(/* @__PURE__ */ new Set());
|
|
19044
19165
|
const t = useTranslations96("agent.page.planProgress");
|
|
@@ -19069,25 +19190,25 @@ var WfoPlanProgress = ({ executionState }) => {
|
|
|
19069
19190
|
return /* @__PURE__ */ jsx268(WfoMinusCircleOutline, { color: theme.colors.textSubdued, width: iconSize, height: iconSize });
|
|
19070
19191
|
return /* @__PURE__ */ jsx268(EuiLoadingSpinner4, { size: "s" });
|
|
19071
19192
|
};
|
|
19072
|
-
return /* @__PURE__ */
|
|
19073
|
-
/* @__PURE__ */
|
|
19193
|
+
return /* @__PURE__ */ jsxs144(EuiPanel20, { hasBorder: true, paddingSize: "s", css: containerStyle2, children: [
|
|
19194
|
+
/* @__PURE__ */ jsxs144("div", { css: headerStyle, children: [
|
|
19074
19195
|
allDone ? /* @__PURE__ */ jsx268(WfoCheckmarkCircleFill, { color: theme.colors.success, width: iconSize, height: iconSize }) : /* @__PURE__ */ jsx268(EuiLoadingSpinner4, { size: "s" }),
|
|
19075
19196
|
/* @__PURE__ */ jsx268("span", { children: headerLabel })
|
|
19076
19197
|
] }),
|
|
19077
19198
|
executionState.steps.map((step) => {
|
|
19078
19199
|
const isExpanded = expandedSteps.has(step.step_name);
|
|
19079
19200
|
const hasToolCalls = step.tool_calls.length > 0;
|
|
19080
|
-
return /* @__PURE__ */
|
|
19081
|
-
/* @__PURE__ */
|
|
19201
|
+
return /* @__PURE__ */ jsxs144("div", { children: [
|
|
19202
|
+
/* @__PURE__ */ jsxs144("div", { css: rowStyle, children: [
|
|
19082
19203
|
/* @__PURE__ */ jsx268(StatusIcon, { status: step.status }),
|
|
19083
19204
|
/* @__PURE__ */ jsx268(EuiText42, { size: "s", color: step.status === "pending" ? "subdued" : void 0, children: step.step_name }),
|
|
19084
|
-
hasToolCalls && /* @__PURE__ */
|
|
19205
|
+
hasToolCalls && /* @__PURE__ */ jsxs144("span", { css: toolCallsToggleStyle, onClick: () => toggleStep(step.step_name), children: [
|
|
19085
19206
|
step.tool_calls.length,
|
|
19086
19207
|
isExpanded ? /* @__PURE__ */ jsx268(WfoChevronUp, { width: iconSize, height: iconSize }) : /* @__PURE__ */ jsx268(WfoChevronDown, { width: iconSize, height: iconSize })
|
|
19087
19208
|
] })
|
|
19088
19209
|
] }),
|
|
19089
19210
|
step.reasoning && /* @__PURE__ */ jsx268(EuiText42, { size: "xs", color: "subdued", css: reasoningStyle, children: step.reasoning }),
|
|
19090
|
-
isExpanded && hasToolCalls && /* @__PURE__ */ jsx268("div", { css: toolCallsListStyle, children: step.tool_calls.map((tc) => /* @__PURE__ */
|
|
19211
|
+
isExpanded && hasToolCalls && /* @__PURE__ */ jsx268("div", { css: toolCallsListStyle, children: step.tool_calls.map((tc) => /* @__PURE__ */ jsxs144(EuiText42, { size: "xs", css: rowStyle, children: [
|
|
19091
19212
|
/* @__PURE__ */ jsx268(StatusIcon, { status: tc.status === "complete" ? "completed" : "active" }),
|
|
19092
19213
|
/* @__PURE__ */ jsx268("span", { children: tc.name })
|
|
19093
19214
|
] }, tc.id)) })
|
|
@@ -19108,7 +19229,7 @@ import { EuiText as EuiText43 } from "@elastic/eui";
|
|
|
19108
19229
|
import { Axis, Chart, DARK_THEME, LIGHT_THEME, LineSeries, Position, Settings } from "@elastic/charts";
|
|
19109
19230
|
import "@elastic/charts/dist/theme_only_dark.css";
|
|
19110
19231
|
import "@elastic/charts/dist/theme_only_light.css";
|
|
19111
|
-
import { jsx as jsx269, jsxs as
|
|
19232
|
+
import { jsx as jsx269, jsxs as jsxs145 } from "@emotion/react/jsx-runtime";
|
|
19112
19233
|
function WfoAgentLineChart({ aggregationData }) {
|
|
19113
19234
|
const { results } = aggregationData;
|
|
19114
19235
|
const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
@@ -19122,7 +19243,7 @@ function WfoAgentLineChart({ aggregationData }) {
|
|
|
19122
19243
|
xLabel: result.group_values[xKey],
|
|
19123
19244
|
...result.aggregations
|
|
19124
19245
|
}));
|
|
19125
|
-
return /* @__PURE__ */
|
|
19246
|
+
return /* @__PURE__ */ jsxs145(Chart, { size: { height: multiplyByBaseUnit(30) }, children: [
|
|
19126
19247
|
/* @__PURE__ */ jsx269(Settings, { showLegend: true, baseTheme: chartBaseTheme }),
|
|
19127
19248
|
/* @__PURE__ */ jsx269(
|
|
19128
19249
|
Axis,
|
|
@@ -19161,7 +19282,7 @@ var containerStyle = css46({
|
|
|
19161
19282
|
});
|
|
19162
19283
|
|
|
19163
19284
|
// src/components/WfoAgent/WfoAgentChart/WfoAgentPieChart.tsx
|
|
19164
|
-
import { jsx as jsx270, jsxs as
|
|
19285
|
+
import { jsx as jsx270, jsxs as jsxs146 } from "@emotion/react/jsx-runtime";
|
|
19165
19286
|
function WfoAgentPieChart({ aggregationData }) {
|
|
19166
19287
|
const { results } = aggregationData;
|
|
19167
19288
|
const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
@@ -19175,7 +19296,7 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
19175
19296
|
label: result.group_values[groupKey],
|
|
19176
19297
|
value: result.aggregations[aggKey]
|
|
19177
19298
|
}));
|
|
19178
|
-
return /* @__PURE__ */ jsx270("div", { css: containerStyle, children: /* @__PURE__ */
|
|
19299
|
+
return /* @__PURE__ */ jsx270("div", { css: containerStyle, children: /* @__PURE__ */ jsxs146(Chart2, { size: { height: multiplyByBaseUnit(25) }, children: [
|
|
19179
19300
|
/* @__PURE__ */ jsx270(Settings2, { showLegend: true, legendPosition: Position2.Right, baseTheme: chartBaseTheme }),
|
|
19180
19301
|
/* @__PURE__ */ jsx270(
|
|
19181
19302
|
Partition,
|
|
@@ -19199,15 +19320,15 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
19199
19320
|
}
|
|
19200
19321
|
|
|
19201
19322
|
// src/components/WfoAgent/WfoAgentTable/WfoAgentTable.tsx
|
|
19202
|
-
import
|
|
19323
|
+
import React81 from "react";
|
|
19203
19324
|
import { EuiBasicTable } from "@elastic/eui";
|
|
19204
19325
|
import { jsx as jsx271 } from "@emotion/react/jsx-runtime";
|
|
19205
19326
|
var formatColumnName = (key) => key.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
|
|
19206
19327
|
function WfoAgentTable({ aggregationData }) {
|
|
19207
19328
|
const { results } = aggregationData;
|
|
19208
|
-
const [pageIndex, setPageIndex] =
|
|
19209
|
-
const [pageSize, setPageSize] =
|
|
19210
|
-
const columns =
|
|
19329
|
+
const [pageIndex, setPageIndex] = React81.useState(0);
|
|
19330
|
+
const [pageSize, setPageSize] = React81.useState(5);
|
|
19331
|
+
const columns = React81.useMemo(() => {
|
|
19211
19332
|
if (results.length === 0) return [];
|
|
19212
19333
|
const firstResult = results[0];
|
|
19213
19334
|
const groupKeys = Object.keys(firstResult.group_values);
|
|
@@ -19297,7 +19418,7 @@ function WfoQueryArtifact({ artifact }) {
|
|
|
19297
19418
|
}
|
|
19298
19419
|
|
|
19299
19420
|
// src/components/WfoAgent/WfoAgent/WfoAgent.tsx
|
|
19300
|
-
import { Fragment as Fragment66, jsx as jsx274, jsxs as
|
|
19421
|
+
import { Fragment as Fragment66, jsx as jsx274, jsxs as jsxs147 } from "@emotion/react/jsx-runtime";
|
|
19301
19422
|
function WfoAgent() {
|
|
19302
19423
|
const tPage = useTranslations99("agent.page");
|
|
19303
19424
|
const { NAVIGATION_HEIGHT } = useWithOrchestratorTheme(getPageTemplateStyles);
|
|
@@ -19305,7 +19426,7 @@ function WfoAgent() {
|
|
|
19305
19426
|
const planProgress = useAgentPlanEvents();
|
|
19306
19427
|
const planProgressRef = useRef12(planProgress);
|
|
19307
19428
|
planProgressRef.current = planProgress;
|
|
19308
|
-
const RenderMessage =
|
|
19429
|
+
const RenderMessage = useCallback15(
|
|
19309
19430
|
({
|
|
19310
19431
|
message,
|
|
19311
19432
|
messages,
|
|
@@ -19326,7 +19447,7 @@ function WfoAgent() {
|
|
|
19326
19447
|
const lastUserIndex = [...messages].reverse().findIndex((msg) => msg.role === "user");
|
|
19327
19448
|
const firstAssistantAfterUser = lastUserIndex >= 0 ? messages.length - lastUserIndex : -1;
|
|
19328
19449
|
const showPlanProgress = index === firstAssistantAfterUser && (progress.planning || progress.steps.length > 0);
|
|
19329
|
-
return /* @__PURE__ */
|
|
19450
|
+
return /* @__PURE__ */ jsxs147(Fragment66, { children: [
|
|
19330
19451
|
showPlanProgress && /* @__PURE__ */ jsx274(WfoPlanProgress, { executionState: progress }),
|
|
19331
19452
|
AssistantMessage && /* @__PURE__ */ jsx274(
|
|
19332
19453
|
AssistantMessage,
|
|
@@ -19368,7 +19489,7 @@ function WfoAgent() {
|
|
|
19368
19489
|
return /* @__PURE__ */ jsx274(ExportButton, { artifact: result });
|
|
19369
19490
|
}
|
|
19370
19491
|
});
|
|
19371
|
-
return /* @__PURE__ */ jsx274(WfoAvailabilityCheck, { featureType: "agent", availability: agentAvailability, children: /* @__PURE__ */
|
|
19492
|
+
return /* @__PURE__ */ jsx274(WfoAvailabilityCheck, { featureType: "agent", availability: agentAvailability, children: /* @__PURE__ */ jsxs147("div", { style: { height: `calc(90vh - ${NAVIGATION_HEIGHT}px)` }, children: [
|
|
19372
19493
|
/* @__PURE__ */ jsx274("style", { children: `
|
|
19373
19494
|
.copilotKitChat {
|
|
19374
19495
|
height: 100%;
|
|
@@ -19408,7 +19529,7 @@ function WfoAgent() {
|
|
|
19408
19529
|
}
|
|
19409
19530
|
|
|
19410
19531
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
19411
|
-
import { useCallback as
|
|
19532
|
+
import { useCallback as useCallback16, useEffect as useEffect36, useState as useState53 } from "react";
|
|
19412
19533
|
import { EuiFlexItem as EuiFlexItem44 } from "@elastic/eui";
|
|
19413
19534
|
import Editor from "@monaco-editor/react";
|
|
19414
19535
|
|
|
@@ -19438,7 +19559,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
19438
19559
|
const [monacoInstance, setMonacoInstance] = useState53(void 0);
|
|
19439
19560
|
const json = JSON.stringify(data, null, 4);
|
|
19440
19561
|
const [editorHeight, setEditorHeight] = useState53(0);
|
|
19441
|
-
const addThemeToEditor =
|
|
19562
|
+
const addThemeToEditor = useCallback16(
|
|
19442
19563
|
(monaco) => {
|
|
19443
19564
|
monaco.editor.defineTheme("wfoTheme", {
|
|
19444
19565
|
base: isDarkModeActive ? MONACO_THEME.dark : MONACO_THEME.light,
|
|
@@ -19524,10 +19645,10 @@ var getWfoLogoSpinnerStyles = () => {
|
|
|
19524
19645
|
};
|
|
19525
19646
|
|
|
19526
19647
|
// src/components/WfoLogoSpinner/WfoLogoSpinner.tsx
|
|
19527
|
-
import { jsx as jsx276, jsxs as
|
|
19648
|
+
import { jsx as jsx276, jsxs as jsxs148 } from "@emotion/react/jsx-runtime";
|
|
19528
19649
|
var WfoLogoSpinner = () => {
|
|
19529
19650
|
const { spinContainerCss, spinCenteringCss, spinPathCss } = getWfoLogoSpinnerStyles();
|
|
19530
|
-
return /* @__PURE__ */ jsx276("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx276("div", { css: spinContainerCss, children: /* @__PURE__ */
|
|
19651
|
+
return /* @__PURE__ */ jsx276("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx276("div", { css: spinContainerCss, children: /* @__PURE__ */ jsxs148("svg", { width: "64", height: "64", viewBox: "0 0 640 640", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
19531
19652
|
/* @__PURE__ */ jsx276(
|
|
19532
19653
|
"path",
|
|
19533
19654
|
{
|
|
@@ -20007,6 +20128,8 @@ var en_GB_default = {
|
|
|
20007
20128
|
subscriptionId: "Subscription ID",
|
|
20008
20129
|
description: "Description",
|
|
20009
20130
|
startDate: "Start date",
|
|
20131
|
+
lastRunValidation: "Most recent validate",
|
|
20132
|
+
noValidateWorkflows: "No validate workflows have been run recently",
|
|
20010
20133
|
insync: "In sync",
|
|
20011
20134
|
customer: "Customer",
|
|
20012
20135
|
customerUuid: "Customer UUID",
|
|
@@ -20657,6 +20780,8 @@ var nl_NL_default = {
|
|
|
20657
20780
|
subscriptionId: "Subscription ID",
|
|
20658
20781
|
description: "Beschrijving",
|
|
20659
20782
|
startDate: "Startdatum",
|
|
20783
|
+
lastRunValidation: "Meest recente validate",
|
|
20784
|
+
noValidateWorkflows: "Er zijn recentelijk geen validate workflows uitgevoerd",
|
|
20660
20785
|
insync: "In sync",
|
|
20661
20786
|
customer: "Klant",
|
|
20662
20787
|
customerUuid: "Klant UUID",
|
|
@@ -21066,6 +21191,8 @@ export {
|
|
|
21066
21191
|
WfoResourceTypesPage,
|
|
21067
21192
|
WfoRowContextMenu,
|
|
21068
21193
|
WfoScheduleTaskFormPage,
|
|
21194
|
+
WfoScheduleTaskFormPageBackend,
|
|
21195
|
+
WfoScheduleTaskFormPageHardCoded,
|
|
21069
21196
|
WfoScheduledTaskOnce,
|
|
21070
21197
|
WfoScheduledTaskRecurring,
|
|
21071
21198
|
WfoScheduledTaskRecurringSvg,
|