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