@orchestrator-ui/orchestrator-ui-components 3.0.2 → 3.1.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 +8 -8
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +8 -8
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +49 -8
- package/dist/index.js +491 -343
- package/dist/index.js.map +1 -1
- package/package.json +2 -12
- package/src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx +14 -4
- package/src/components/WfoForms/formFields/utils.ts +2 -3
- package/src/components/WfoInlineNoteEdit/WfoInlineNoteEdit.tsx +70 -76
- package/src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx +55 -0
- package/src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx +64 -0
- package/src/components/WfoInlineNoteEdit/index.ts +2 -0
- package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +2 -0
- package/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx +7 -6
- package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx +3 -4
- package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +19 -9
- package/src/configuration/version.ts +1 -1
- package/src/messages/en-GB.json +1 -0
- package/src/messages/nl-NL.json +1 -0
- package/src/pages/processes/WfoStartProcessPage.tsx +2 -1
- package/src/rtk/api.ts +31 -1
- package/src/rtk/endpoints/streamMessages.ts +1 -1
- package/src/rtk/endpoints/subscriptionListMutation.ts +90 -0
- package/src/utils/string.spec.ts +27 -0
- package/src/utils/strings.ts +6 -0
- package/.storybook/main.js +0 -28
- package/.storybook/preview.js +0 -14
- package/src/stories/colors.tsx +0 -27
package/dist/index.js
CHANGED
|
@@ -15304,10 +15304,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
15304
15304
|
var require_jsx = __commonJS({
|
|
15305
15305
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
15306
15306
|
"use strict";
|
|
15307
|
-
module.exports =
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
function
|
|
15307
|
+
module.exports = jsx240;
|
|
15308
|
+
jsx240.displayName = "jsx";
|
|
15309
|
+
jsx240.aliases = [];
|
|
15310
|
+
function jsx240(Prism) {
|
|
15311
15311
|
;
|
|
15312
15312
|
(function(Prism2) {
|
|
15313
15313
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -26792,7 +26792,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26792
26792
|
})(PolicyResource || {});
|
|
26793
26793
|
|
|
26794
26794
|
// src/configuration/version.ts
|
|
26795
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.0
|
|
26795
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.1.0";
|
|
26796
26796
|
|
|
26797
26797
|
// src/types/types.ts
|
|
26798
26798
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -34164,7 +34164,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
34164
34164
|
endpoints: (build) => ({
|
|
34165
34165
|
streamMessages: build.query({
|
|
34166
34166
|
queryFn: () => {
|
|
34167
|
-
return { data:
|
|
34167
|
+
return { data: true };
|
|
34168
34168
|
},
|
|
34169
34169
|
async onCacheEntryAdded(_2, {
|
|
34170
34170
|
cacheDataLoaded,
|
|
@@ -36829,13 +36829,16 @@ var getStyles = ({ theme }) => {
|
|
|
36829
36829
|
};
|
|
36830
36830
|
|
|
36831
36831
|
// src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx
|
|
36832
|
-
import { jsx as jsx61 } from "@emotion/react/jsx-runtime";
|
|
36833
|
-
var WfoWebsocketStatusBadge = (
|
|
36832
|
+
import { Fragment as Fragment2, jsx as jsx61 } from "@emotion/react/jsx-runtime";
|
|
36833
|
+
var WfoWebsocketStatusBadge = ({
|
|
36834
|
+
hideWhenConnected = false
|
|
36835
|
+
}) => {
|
|
36834
36836
|
const dispatch = useDispatch2();
|
|
36835
36837
|
const { connectedStyle, disconnectedStyle } = useWithOrchestratorTheme(getStyles);
|
|
36836
36838
|
const t = useTranslations6("main");
|
|
36837
36839
|
const { theme } = useOrchestratorTheme();
|
|
36838
36840
|
const { data: websocketConnected } = useStreamMessagesQuery();
|
|
36841
|
+
const showBadge = !(websocketConnected && hideWhenConnected);
|
|
36839
36842
|
const reconnect = useCallback3(() => {
|
|
36840
36843
|
dispatch(orchestratorApi.util.resetApiState());
|
|
36841
36844
|
}, [dispatch]);
|
|
@@ -36860,7 +36863,7 @@ var WfoWebsocketStatusBadge = () => {
|
|
|
36860
36863
|
}
|
|
36861
36864
|
};
|
|
36862
36865
|
}, [reconnect, websocketConnected]);
|
|
36863
|
-
return /* @__PURE__ */ jsx61(
|
|
36866
|
+
return showBadge ? /* @__PURE__ */ jsx61(
|
|
36864
36867
|
EuiToolTip2,
|
|
36865
36868
|
{
|
|
36866
36869
|
position: "bottom",
|
|
@@ -36882,7 +36885,7 @@ var WfoWebsocketStatusBadge = () => {
|
|
|
36882
36885
|
}
|
|
36883
36886
|
)
|
|
36884
36887
|
}
|
|
36885
|
-
);
|
|
36888
|
+
) : /* @__PURE__ */ jsx61(Fragment2, {});
|
|
36886
36889
|
};
|
|
36887
36890
|
|
|
36888
36891
|
// src/components/WfoContentHeader/WfoContentHeader.tsx
|
|
@@ -36892,12 +36895,12 @@ import {
|
|
|
36892
36895
|
EuiPageHeader,
|
|
36893
36896
|
EuiSpacer
|
|
36894
36897
|
} from "@elastic/eui";
|
|
36895
|
-
import { Fragment as
|
|
36898
|
+
import { Fragment as Fragment3, jsx as jsx62, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
36896
36899
|
var WfoContentHeader = ({
|
|
36897
36900
|
title,
|
|
36898
36901
|
subtitle,
|
|
36899
36902
|
children
|
|
36900
|
-
}) => /* @__PURE__ */ jsxs34(
|
|
36903
|
+
}) => /* @__PURE__ */ jsxs34(Fragment3, { children: [
|
|
36901
36904
|
/* @__PURE__ */ jsxs34(EuiFlexGroup, { children: [
|
|
36902
36905
|
/* @__PURE__ */ jsxs34(EuiFlexItem, { children: [
|
|
36903
36906
|
/* @__PURE__ */ jsx62(
|
|
@@ -36937,7 +36940,7 @@ var getStyles2 = ({ theme }) => {
|
|
|
36937
36940
|
};
|
|
36938
36941
|
|
|
36939
36942
|
// src/components/WfoExpandableField/WfoExpandableField.tsx
|
|
36940
|
-
import { Fragment as
|
|
36943
|
+
import { Fragment as Fragment4, jsx as jsx63, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
36941
36944
|
var WfoExpandableField = ({
|
|
36942
36945
|
isExpanded,
|
|
36943
36946
|
title,
|
|
@@ -36946,7 +36949,7 @@ var WfoExpandableField = ({
|
|
|
36946
36949
|
}) => {
|
|
36947
36950
|
const { theme } = useOrchestratorTheme();
|
|
36948
36951
|
const { titleRowStyle, titleStyle } = useWithOrchestratorTheme(getStyles2);
|
|
36949
|
-
return /* @__PURE__ */ jsxs35(
|
|
36952
|
+
return /* @__PURE__ */ jsxs35(Fragment4, { children: [
|
|
36950
36953
|
/* @__PURE__ */ jsxs35("div", { css: titleRowStyle, children: [
|
|
36951
36954
|
/* @__PURE__ */ jsx63(
|
|
36952
36955
|
EuiButtonIcon,
|
|
@@ -37254,6 +37257,10 @@ var snakeToKebab = (value) => {
|
|
|
37254
37257
|
return value.replace(/_/g, "-");
|
|
37255
37258
|
};
|
|
37256
37259
|
var isAllUpperCase = (str) => str === str.toUpperCase();
|
|
37260
|
+
var isNullOrEmpty = (str) => {
|
|
37261
|
+
return str === null || str === void 0 || str.trim() === "";
|
|
37262
|
+
};
|
|
37263
|
+
var INVISIBLE_CHARACTER = "\u200E";
|
|
37257
37264
|
|
|
37258
37265
|
// src/utils/toObjectWithSerializedValues.ts
|
|
37259
37266
|
var toObjectWithSerializedValues = (inputObject) => {
|
|
@@ -37297,7 +37304,7 @@ var isUuid4 = (value) => !!value.match(
|
|
|
37297
37304
|
);
|
|
37298
37305
|
|
|
37299
37306
|
// src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx
|
|
37300
|
-
import { Fragment as
|
|
37307
|
+
import { Fragment as Fragment5, jsx as jsx64, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
37301
37308
|
var WfoBreadcrumbs = ({
|
|
37302
37309
|
handleSideMenuClick
|
|
37303
37310
|
}) => {
|
|
@@ -37330,7 +37337,7 @@ var WfoBreadcrumbs = ({
|
|
|
37330
37337
|
});
|
|
37331
37338
|
}
|
|
37332
37339
|
});
|
|
37333
|
-
return /* @__PURE__ */ jsxs36(
|
|
37340
|
+
return /* @__PURE__ */ jsxs36(Fragment5, { children: [
|
|
37334
37341
|
/* @__PURE__ */ jsxs36(
|
|
37335
37342
|
EuiFlexGroup2,
|
|
37336
37343
|
{
|
|
@@ -37578,14 +37585,14 @@ var WfoValueCell = ({
|
|
|
37578
37585
|
};
|
|
37579
37586
|
|
|
37580
37587
|
// src/components/WfoKeyValueTable/WfoKeyValueTable.tsx
|
|
37581
|
-
import { Fragment as
|
|
37588
|
+
import { Fragment as Fragment6 } from "react";
|
|
37582
37589
|
import { jsx as jsx69, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
37583
37590
|
var WfoKeyValueTable = ({
|
|
37584
37591
|
keyValues,
|
|
37585
37592
|
showCopyToClipboardIcon = false
|
|
37586
37593
|
}) => {
|
|
37587
37594
|
const { keyValueTable } = useWithOrchestratorTheme(getStyles4);
|
|
37588
|
-
return /* @__PURE__ */ jsx69("div", { css: keyValueTable, children: keyValues.map(({ key, value, textToCopy }, rowNumber) => /* @__PURE__ */ jsxs39(
|
|
37595
|
+
return /* @__PURE__ */ jsx69("div", { css: keyValueTable, children: keyValues.map(({ key, value, textToCopy }, rowNumber) => /* @__PURE__ */ jsxs39(Fragment6, { children: [
|
|
37589
37596
|
/* @__PURE__ */ jsx69(WfoKeyCell, { value: key, rowNumber }),
|
|
37590
37597
|
/* @__PURE__ */ jsx69(
|
|
37591
37598
|
WfoValueCell,
|
|
@@ -37831,6 +37838,7 @@ var WfoPageHeader = ({
|
|
|
37831
37838
|
] }),
|
|
37832
37839
|
/* @__PURE__ */ jsx74(EuiHeaderSection, { children: /* @__PURE__ */ jsxs42(EuiHeaderSectionItem, { children: [
|
|
37833
37840
|
/* @__PURE__ */ jsxs42(EuiBadgeGroup, { css: { marginRight: multiplyByBaseUnit(1) }, children: [
|
|
37841
|
+
/* @__PURE__ */ jsx74(WfoWebsocketStatusBadge, { hideWhenConnected: true }),
|
|
37834
37842
|
/* @__PURE__ */ jsx74(WfoEngineStatusBadge, {}),
|
|
37835
37843
|
/* @__PURE__ */ jsx74(WfoFailedTasksBadge, {})
|
|
37836
37844
|
] }),
|
|
@@ -37861,11 +37869,74 @@ var WfoPageHeader = ({
|
|
|
37861
37869
|
};
|
|
37862
37870
|
|
|
37863
37871
|
// src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
|
|
37864
|
-
import { useState as
|
|
37872
|
+
import { useState as useState8 } from "react";
|
|
37865
37873
|
import { EuiPageTemplate } from "@elastic/eui";
|
|
37874
|
+
import { Fragment as Fragment7, jsx as jsx75, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
37875
|
+
var WfoPageTemplate = ({
|
|
37876
|
+
children,
|
|
37877
|
+
getAppLogo,
|
|
37878
|
+
overrideMenuItems,
|
|
37879
|
+
onThemeSwitch
|
|
37880
|
+
}) => {
|
|
37881
|
+
const { theme, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
37882
|
+
const [isSideMenuVisible, setIsSideMenuVisible] = useState8(true);
|
|
37883
|
+
const navigationHeight = multiplyByBaseUnit(3);
|
|
37884
|
+
return /* @__PURE__ */ jsxs43(Fragment7, { children: [
|
|
37885
|
+
/* @__PURE__ */ jsx75(
|
|
37886
|
+
WfoPageHeader,
|
|
37887
|
+
{
|
|
37888
|
+
getAppLogo,
|
|
37889
|
+
navigationHeight,
|
|
37890
|
+
onThemeSwitch
|
|
37891
|
+
}
|
|
37892
|
+
),
|
|
37893
|
+
/* @__PURE__ */ jsxs43(
|
|
37894
|
+
EuiPageTemplate,
|
|
37895
|
+
{
|
|
37896
|
+
panelled: false,
|
|
37897
|
+
grow: false,
|
|
37898
|
+
contentBorder: false,
|
|
37899
|
+
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
37900
|
+
restrictWidth: false,
|
|
37901
|
+
children: [
|
|
37902
|
+
isSideMenuVisible && /* @__PURE__ */ jsx75(
|
|
37903
|
+
EuiPageTemplate.Sidebar,
|
|
37904
|
+
{
|
|
37905
|
+
css: {
|
|
37906
|
+
backgroundColor: theme.colors.body,
|
|
37907
|
+
overflowY: "auto",
|
|
37908
|
+
maxHeight: `calc(100vh - ${navigationHeight}px)`
|
|
37909
|
+
},
|
|
37910
|
+
children: /* @__PURE__ */ jsx75(WfoSidebar, { overrideMenuItems })
|
|
37911
|
+
}
|
|
37912
|
+
),
|
|
37913
|
+
/* @__PURE__ */ jsxs43(
|
|
37914
|
+
EuiPageTemplate.Section,
|
|
37915
|
+
{
|
|
37916
|
+
css: {
|
|
37917
|
+
backgroundColor: theme.colors.emptyShade,
|
|
37918
|
+
overflowY: "auto",
|
|
37919
|
+
maxHeight: `calc(100vh - ${navigationHeight}px)`
|
|
37920
|
+
},
|
|
37921
|
+
children: [
|
|
37922
|
+
/* @__PURE__ */ jsx75(
|
|
37923
|
+
WfoBreadcrumbs,
|
|
37924
|
+
{
|
|
37925
|
+
handleSideMenuClick: () => setIsSideMenuVisible((prevState) => !prevState)
|
|
37926
|
+
}
|
|
37927
|
+
),
|
|
37928
|
+
children
|
|
37929
|
+
]
|
|
37930
|
+
}
|
|
37931
|
+
)
|
|
37932
|
+
]
|
|
37933
|
+
}
|
|
37934
|
+
)
|
|
37935
|
+
] });
|
|
37936
|
+
};
|
|
37866
37937
|
|
|
37867
37938
|
// src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
|
|
37868
|
-
import { useState as
|
|
37939
|
+
import { useState as useState10 } from "react";
|
|
37869
37940
|
import { useTranslations as useTranslations13 } from "next-intl";
|
|
37870
37941
|
import { useRouter as useRouter4 } from "next/router";
|
|
37871
37942
|
import { EuiSideNav, EuiSpacer as EuiSpacer4 } from "@elastic/eui";
|
|
@@ -37977,7 +38048,7 @@ import { useTranslations as useTranslations11 } from "next-intl";
|
|
|
37977
38048
|
import { useRouter as useRouter3 } from "next/router";
|
|
37978
38049
|
|
|
37979
38050
|
// src/components/WfoStartButton/WfoStartButtonComboBox.tsx
|
|
37980
|
-
import { useState as
|
|
38051
|
+
import { useState as useState9 } from "react";
|
|
37981
38052
|
import { EuiButton as EuiButton2, EuiPopover as EuiPopover2, EuiSelectable, EuiSpacer as EuiSpacer3 } from "@elastic/eui";
|
|
37982
38053
|
|
|
37983
38054
|
// src/components/WfoStartButton/styles.ts
|
|
@@ -38001,7 +38072,7 @@ var getStyles5 = ({ theme }) => {
|
|
|
38001
38072
|
};
|
|
38002
38073
|
|
|
38003
38074
|
// src/components/WfoStartButton/WfoStartButtonComboBox.tsx
|
|
38004
|
-
import { Fragment as
|
|
38075
|
+
import { Fragment as Fragment8, jsx as jsx76, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
38005
38076
|
var WfoStartButtonComboBox = ({
|
|
38006
38077
|
buttonText,
|
|
38007
38078
|
options,
|
|
@@ -38009,27 +38080,27 @@ var WfoStartButtonComboBox = ({
|
|
|
38009
38080
|
isProcess,
|
|
38010
38081
|
className
|
|
38011
38082
|
}) => {
|
|
38012
|
-
const [isPopoverOpen, setPopoverOpen] =
|
|
38083
|
+
const [isPopoverOpen, setPopoverOpen] = useState9(false);
|
|
38013
38084
|
const { theme, isDarkThemeActive } = useOrchestratorTheme();
|
|
38014
38085
|
const { selectableStyle } = useWithOrchestratorTheme(getStyles5);
|
|
38015
|
-
const Button = /* @__PURE__ */
|
|
38086
|
+
const Button = /* @__PURE__ */ jsx76(
|
|
38016
38087
|
EuiButton2,
|
|
38017
38088
|
{
|
|
38018
38089
|
onClick: () => setPopoverOpen(!isPopoverOpen),
|
|
38019
|
-
iconType: isProcess ? "plus" : () => /* @__PURE__ */
|
|
38090
|
+
iconType: isProcess ? "plus" : () => /* @__PURE__ */ jsx76(WfoPlusCircleFill, { color: theme.colors.ghost }),
|
|
38020
38091
|
fullWidth: isProcess,
|
|
38021
38092
|
fill: !isProcess || isDarkThemeActive,
|
|
38022
38093
|
children: buttonText
|
|
38023
38094
|
}
|
|
38024
38095
|
);
|
|
38025
|
-
return /* @__PURE__ */
|
|
38096
|
+
return /* @__PURE__ */ jsx76(
|
|
38026
38097
|
EuiPopover2,
|
|
38027
38098
|
{
|
|
38028
38099
|
initialFocus: `.euiSelectable .euiFieldSearch`,
|
|
38029
38100
|
button: Button,
|
|
38030
38101
|
isOpen: isPopoverOpen,
|
|
38031
38102
|
closePopover: () => setPopoverOpen(false),
|
|
38032
|
-
children: /* @__PURE__ */
|
|
38103
|
+
children: /* @__PURE__ */ jsx76(
|
|
38033
38104
|
EuiSelectable,
|
|
38034
38105
|
{
|
|
38035
38106
|
className,
|
|
@@ -38038,9 +38109,9 @@ var WfoStartButtonComboBox = ({
|
|
|
38038
38109
|
options,
|
|
38039
38110
|
onChange: (_2, __, changedOption) => onOptionChange(changedOption),
|
|
38040
38111
|
height: 200,
|
|
38041
|
-
children: (list, search) => /* @__PURE__ */
|
|
38112
|
+
children: (list, search) => /* @__PURE__ */ jsxs44(Fragment8, { children: [
|
|
38042
38113
|
search,
|
|
38043
|
-
/* @__PURE__ */
|
|
38114
|
+
/* @__PURE__ */ jsx76(EuiSpacer3, { size: "s" }),
|
|
38044
38115
|
list
|
|
38045
38116
|
] })
|
|
38046
38117
|
}
|
|
@@ -38050,7 +38121,7 @@ var WfoStartButtonComboBox = ({
|
|
|
38050
38121
|
};
|
|
38051
38122
|
|
|
38052
38123
|
// src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx
|
|
38053
|
-
import { jsx as
|
|
38124
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
38054
38125
|
var WfoStartWorkflowButtonComboBox = () => {
|
|
38055
38126
|
const router = useRouter3();
|
|
38056
38127
|
const t = useTranslations11("common");
|
|
@@ -38075,7 +38146,7 @@ var WfoStartWorkflowButtonComboBox = () => {
|
|
|
38075
38146
|
});
|
|
38076
38147
|
}
|
|
38077
38148
|
};
|
|
38078
|
-
return /* @__PURE__ */
|
|
38149
|
+
return /* @__PURE__ */ jsx77(
|
|
38079
38150
|
WfoStartButtonComboBox,
|
|
38080
38151
|
{
|
|
38081
38152
|
buttonText: t("newSubscription"),
|
|
@@ -38103,11 +38174,11 @@ var PATH_TASKS = "/tasks";
|
|
|
38103
38174
|
var PATH_SETTINGS = "/settings";
|
|
38104
38175
|
|
|
38105
38176
|
// src/components/WfoPageTemplate/WfoSidebar/WfoCopyright.tsx
|
|
38106
|
-
import { jsx as
|
|
38177
|
+
import { jsx as jsx78, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
38107
38178
|
var WfoCopyright = () => {
|
|
38108
38179
|
const { copyrightStyle } = useWithOrchestratorTheme(getCopyrightStyles);
|
|
38109
38180
|
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
38110
|
-
return /* @__PURE__ */
|
|
38181
|
+
return /* @__PURE__ */ jsx78("div", { children: /* @__PURE__ */ jsx78("span", { css: copyrightStyle, children: /* @__PURE__ */ jsx78("p", { children: /* @__PURE__ */ jsxs45("a", { href: "https://workfloworchestrator.org/", target: "_blank", children: [
|
|
38111
38182
|
"\xA9 ",
|
|
38112
38183
|
year,
|
|
38113
38184
|
" - workfloworchestrator.org"
|
|
@@ -38117,7 +38188,7 @@ var WfoCopyright = () => {
|
|
|
38117
38188
|
// src/components/WfoPageTemplate/WfoSidebar/WfoMenuLink.tsx
|
|
38118
38189
|
import { useTranslations as useTranslations12 } from "next-intl";
|
|
38119
38190
|
import Link3 from "next/link";
|
|
38120
|
-
import { jsx as
|
|
38191
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
38121
38192
|
var WfoMenuItemLink = ({
|
|
38122
38193
|
path,
|
|
38123
38194
|
target,
|
|
@@ -38144,11 +38215,11 @@ var WfoMenuItemLink = ({
|
|
|
38144
38215
|
};
|
|
38145
38216
|
const t = useTranslations12("main");
|
|
38146
38217
|
const linkText = t(translationString) === `main.${translationString}` ? translationString : t(translationString);
|
|
38147
|
-
return /* @__PURE__ */
|
|
38218
|
+
return /* @__PURE__ */ jsx79(Link3, { css: getMenuItemStyle(), href: path, target, children: linkText });
|
|
38148
38219
|
};
|
|
38149
38220
|
|
|
38150
38221
|
// src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
|
|
38151
|
-
import { Fragment as
|
|
38222
|
+
import { Fragment as Fragment9, jsx as jsx80, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
38152
38223
|
var urlPolicyMap = /* @__PURE__ */ new Map([
|
|
38153
38224
|
[PATH_WORKFLOWS, "/orchestrator/processes/" /* NAVIGATION_WORKFLOWS */],
|
|
38154
38225
|
[PATH_SUBSCRIPTIONS, "/orchestrator/subscriptions/" /* NAVIGATION_SUBSCRIPTIONS */],
|
|
@@ -38160,7 +38231,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38160
38231
|
const { menuStyle } = useWithOrchestratorTheme(getMenuStyles);
|
|
38161
38232
|
const t = useTranslations13("main");
|
|
38162
38233
|
const router = useRouter4();
|
|
38163
|
-
const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] =
|
|
38234
|
+
const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState10(false);
|
|
38164
38235
|
const { isAllowed } = usePolicy();
|
|
38165
38236
|
const toggleMobile = () => {
|
|
38166
38237
|
setIsSideNavOpenOnMobile((openState) => !openState);
|
|
@@ -38171,7 +38242,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38171
38242
|
id: "2",
|
|
38172
38243
|
isSelected: router.pathname === PATH_START,
|
|
38173
38244
|
href: PATH_START,
|
|
38174
|
-
renderItem: () => /* @__PURE__ */
|
|
38245
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38175
38246
|
WfoMenuItemLink,
|
|
38176
38247
|
{
|
|
38177
38248
|
path: PATH_START,
|
|
@@ -38185,7 +38256,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38185
38256
|
id: "3",
|
|
38186
38257
|
isSelected: router.pathname.startsWith(PATH_SUBSCRIPTIONS),
|
|
38187
38258
|
href: PATH_SUBSCRIPTIONS,
|
|
38188
|
-
renderItem: () => /* @__PURE__ */
|
|
38259
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38189
38260
|
WfoMenuItemLink,
|
|
38190
38261
|
{
|
|
38191
38262
|
path: PATH_SUBSCRIPTIONS,
|
|
@@ -38199,7 +38270,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38199
38270
|
id: "4",
|
|
38200
38271
|
isSelected: router.pathname.startsWith(PATH_WORKFLOWS),
|
|
38201
38272
|
href: PATH_WORKFLOWS,
|
|
38202
|
-
renderItem: () => /* @__PURE__ */
|
|
38273
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38203
38274
|
WfoMenuItemLink,
|
|
38204
38275
|
{
|
|
38205
38276
|
path: PATH_WORKFLOWS,
|
|
@@ -38213,7 +38284,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38213
38284
|
isSelected: router.pathname.startsWith(PATH_TASKS),
|
|
38214
38285
|
id: "5",
|
|
38215
38286
|
href: PATH_TASKS,
|
|
38216
|
-
renderItem: () => /* @__PURE__ */
|
|
38287
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38217
38288
|
WfoMenuItemLink,
|
|
38218
38289
|
{
|
|
38219
38290
|
path: PATH_TASKS,
|
|
@@ -38227,7 +38298,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38227
38298
|
id: "6",
|
|
38228
38299
|
href: PATH_METADATA,
|
|
38229
38300
|
isSelected: router.pathname.substring(0, PATH_METADATA.length) === PATH_METADATA,
|
|
38230
|
-
renderItem: () => /* @__PURE__ */
|
|
38301
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38231
38302
|
WfoMenuItemLink,
|
|
38232
38303
|
{
|
|
38233
38304
|
path: PATH_METADATA_PRODUCTS,
|
|
@@ -38241,7 +38312,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38241
38312
|
name: t("metadataProducts"),
|
|
38242
38313
|
id: "6.1",
|
|
38243
38314
|
href: PATH_METADATA_PRODUCTS,
|
|
38244
|
-
renderItem: () => /* @__PURE__ */
|
|
38315
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38245
38316
|
WfoMenuItemLink,
|
|
38246
38317
|
{
|
|
38247
38318
|
path: PATH_METADATA_PRODUCTS,
|
|
@@ -38256,7 +38327,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38256
38327
|
id: "6.2",
|
|
38257
38328
|
isSelected: router.pathname === PATH_METADATA_PRODUCT_BLOCKS,
|
|
38258
38329
|
href: PATH_METADATA_PRODUCT_BLOCKS,
|
|
38259
|
-
renderItem: () => /* @__PURE__ */
|
|
38330
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38260
38331
|
WfoMenuItemLink,
|
|
38261
38332
|
{
|
|
38262
38333
|
path: PATH_METADATA_PRODUCT_BLOCKS,
|
|
@@ -38271,7 +38342,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38271
38342
|
id: "6.3",
|
|
38272
38343
|
href: PATH_METADATA_RESOURCE_TYPES,
|
|
38273
38344
|
isSelected: router.pathname === PATH_METADATA_RESOURCE_TYPES,
|
|
38274
|
-
renderItem: () => /* @__PURE__ */
|
|
38345
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38275
38346
|
WfoMenuItemLink,
|
|
38276
38347
|
{
|
|
38277
38348
|
path: PATH_METADATA_RESOURCE_TYPES,
|
|
@@ -38286,7 +38357,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38286
38357
|
id: "6.4",
|
|
38287
38358
|
isSelected: router.pathname === PATH_METADATA_WORKFLOWS,
|
|
38288
38359
|
href: PATH_METADATA_WORKFLOWS,
|
|
38289
|
-
renderItem: () => /* @__PURE__ */
|
|
38360
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38290
38361
|
WfoMenuItemLink,
|
|
38291
38362
|
{
|
|
38292
38363
|
path: PATH_METADATA_WORKFLOWS,
|
|
@@ -38301,7 +38372,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38301
38372
|
id: "6.5",
|
|
38302
38373
|
isSelected: router.pathname === PATH_METADATA_TASKS,
|
|
38303
38374
|
href: PATH_METADATA_TASKS,
|
|
38304
|
-
renderItem: () => /* @__PURE__ */
|
|
38375
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38305
38376
|
WfoMenuItemLink,
|
|
38306
38377
|
{
|
|
38307
38378
|
path: PATH_METADATA_TASKS,
|
|
@@ -38318,7 +38389,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38318
38389
|
isSelected: router.pathname === PATH_SETTINGS,
|
|
38319
38390
|
id: "7",
|
|
38320
38391
|
href: PATH_SETTINGS,
|
|
38321
|
-
renderItem: () => /* @__PURE__ */
|
|
38392
|
+
renderItem: () => /* @__PURE__ */ jsx80(
|
|
38322
38393
|
WfoMenuItemLink,
|
|
38323
38394
|
{
|
|
38324
38395
|
path: PATH_SETTINGS,
|
|
@@ -38333,23 +38404,23 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
38333
38404
|
);
|
|
38334
38405
|
const defaultMenu = [
|
|
38335
38406
|
{
|
|
38336
|
-
renderItem: () => /* @__PURE__ */
|
|
38337
|
-
/* @__PURE__ */
|
|
38407
|
+
renderItem: () => /* @__PURE__ */ jsxs46(Fragment9, { children: [
|
|
38408
|
+
/* @__PURE__ */ jsx80(
|
|
38338
38409
|
WfoIsAllowedToRender,
|
|
38339
38410
|
{
|
|
38340
38411
|
resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
|
|
38341
|
-
children: /* @__PURE__ */
|
|
38412
|
+
children: /* @__PURE__ */ jsx80(WfoStartWorkflowButtonComboBox, {})
|
|
38342
38413
|
}
|
|
38343
38414
|
),
|
|
38344
|
-
/* @__PURE__ */
|
|
38345
|
-
/* @__PURE__ */
|
|
38415
|
+
/* @__PURE__ */ jsx80(EuiSpacer4, { size: "xl" }),
|
|
38416
|
+
/* @__PURE__ */ jsx80(WfoCopyright, {})
|
|
38346
38417
|
] }),
|
|
38347
38418
|
name: "Menu",
|
|
38348
38419
|
id: "1",
|
|
38349
38420
|
items: overrideMenuItems ? overrideMenuItems(defaultMenuItemsFilteredByPolicy) : defaultMenuItemsFilteredByPolicy
|
|
38350
38421
|
}
|
|
38351
38422
|
];
|
|
38352
|
-
return /* @__PURE__ */
|
|
38423
|
+
return /* @__PURE__ */ jsx80(
|
|
38353
38424
|
EuiSideNav,
|
|
38354
38425
|
{
|
|
38355
38426
|
css: menuStyle,
|
|
@@ -38370,67 +38441,6 @@ var menuItemIsAllowed = (url, urlPolicyMap2, isAllowedHandler) => {
|
|
|
38370
38441
|
return policyResource ? isAllowedHandler(policyResource) : true;
|
|
38371
38442
|
};
|
|
38372
38443
|
|
|
38373
|
-
// src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
|
|
38374
|
-
import { Fragment as Fragment8, jsx as jsx80, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
38375
|
-
var WfoPageTemplate = ({
|
|
38376
|
-
children,
|
|
38377
|
-
getAppLogo,
|
|
38378
|
-
overrideMenuItems,
|
|
38379
|
-
onThemeSwitch
|
|
38380
|
-
}) => {
|
|
38381
|
-
const { theme, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
38382
|
-
const [isSideMenuVisible, setIsSideMenuVisible] = useState10(true);
|
|
38383
|
-
const navigationHeight = multiplyByBaseUnit(3);
|
|
38384
|
-
return /* @__PURE__ */ jsxs46(Fragment8, { children: [
|
|
38385
|
-
/* @__PURE__ */ jsx80(
|
|
38386
|
-
WfoPageHeader,
|
|
38387
|
-
{
|
|
38388
|
-
getAppLogo,
|
|
38389
|
-
navigationHeight,
|
|
38390
|
-
onThemeSwitch
|
|
38391
|
-
}
|
|
38392
|
-
),
|
|
38393
|
-
/* @__PURE__ */ jsxs46(
|
|
38394
|
-
EuiPageTemplate,
|
|
38395
|
-
{
|
|
38396
|
-
panelled: false,
|
|
38397
|
-
grow: false,
|
|
38398
|
-
contentBorder: false,
|
|
38399
|
-
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
38400
|
-
restrictWidth: false,
|
|
38401
|
-
children: [
|
|
38402
|
-
isSideMenuVisible && /* @__PURE__ */ jsx80(
|
|
38403
|
-
EuiPageTemplate.Sidebar,
|
|
38404
|
-
{
|
|
38405
|
-
css: {
|
|
38406
|
-
backgroundColor: theme.colors.body
|
|
38407
|
-
},
|
|
38408
|
-
children: /* @__PURE__ */ jsx80(WfoSidebar, { overrideMenuItems })
|
|
38409
|
-
}
|
|
38410
|
-
),
|
|
38411
|
-
/* @__PURE__ */ jsxs46(
|
|
38412
|
-
EuiPageTemplate.Section,
|
|
38413
|
-
{
|
|
38414
|
-
css: {
|
|
38415
|
-
backgroundColor: theme.colors.emptyShade
|
|
38416
|
-
},
|
|
38417
|
-
children: [
|
|
38418
|
-
/* @__PURE__ */ jsx80(
|
|
38419
|
-
WfoBreadcrumbs,
|
|
38420
|
-
{
|
|
38421
|
-
handleSideMenuClick: () => setIsSideMenuVisible((prevState) => !prevState)
|
|
38422
|
-
}
|
|
38423
|
-
),
|
|
38424
|
-
children
|
|
38425
|
-
]
|
|
38426
|
-
}
|
|
38427
|
-
)
|
|
38428
|
-
]
|
|
38429
|
-
}
|
|
38430
|
-
)
|
|
38431
|
-
] });
|
|
38432
|
-
};
|
|
38433
|
-
|
|
38434
38444
|
// src/components/WfoSearchBar/WfoSearchField.tsx
|
|
38435
38445
|
import { useEffect as useEffect6, useRef as useRef4, useState as useState11 } from "react";
|
|
38436
38446
|
import { useTranslations as useTranslations14 } from "next-intl";
|
|
@@ -38834,8 +38844,7 @@ var WfoSubscriptionDetailSection = ({
|
|
|
38834
38844
|
endDate,
|
|
38835
38845
|
status,
|
|
38836
38846
|
customer,
|
|
38837
|
-
customerDescriptions
|
|
38838
|
-
note
|
|
38847
|
+
customerDescriptions
|
|
38839
38848
|
} = subscriptionDetail;
|
|
38840
38849
|
const subscriptionDetailBlockData = [
|
|
38841
38850
|
{
|
|
@@ -38897,10 +38906,10 @@ var WfoSubscriptionDetailSection = ({
|
|
|
38897
38906
|
{
|
|
38898
38907
|
key: t("note"),
|
|
38899
38908
|
value: /* @__PURE__ */ jsx85(
|
|
38900
|
-
|
|
38909
|
+
WfoSubscriptionDetailNoteEdit,
|
|
38901
38910
|
{
|
|
38902
38911
|
subscriptionId,
|
|
38903
|
-
|
|
38912
|
+
onlyShowOnHover: true
|
|
38904
38913
|
}
|
|
38905
38914
|
)
|
|
38906
38915
|
}
|
|
@@ -39002,13 +39011,13 @@ var WfoSubscriptionProductInfoSection = ({
|
|
|
39002
39011
|
|
|
39003
39012
|
// src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx
|
|
39004
39013
|
import { EuiFlexGroup as EuiFlexGroup5, EuiFlexItem as EuiFlexItem4, EuiSpacer as EuiSpacer8, EuiText as EuiText3 } from "@elastic/eui";
|
|
39005
|
-
import { Fragment as
|
|
39014
|
+
import { Fragment as Fragment10, jsx as jsx89, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
39006
39015
|
var SubscriptionKeyValueBlock = ({
|
|
39007
39016
|
title,
|
|
39008
39017
|
keyValues
|
|
39009
39018
|
}) => {
|
|
39010
39019
|
const { theme } = useOrchestratorTheme();
|
|
39011
|
-
return /* @__PURE__ */ jsxs50(
|
|
39020
|
+
return /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
39012
39021
|
/* @__PURE__ */ jsx89(EuiSpacer8, { size: "m" }),
|
|
39013
39022
|
/* @__PURE__ */ jsx89("div", { children: /* @__PURE__ */ jsxs50("div", { style: { marginTop: 5 }, children: [
|
|
39014
39023
|
/* @__PURE__ */ jsx89(EuiFlexGroup5, { justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx89(EuiFlexItem4, { children: /* @__PURE__ */ jsx89(
|
|
@@ -39038,13 +39047,13 @@ import Link4 from "next/link";
|
|
|
39038
39047
|
import { EuiButton as EuiButton6 } from "@elastic/eui";
|
|
39039
39048
|
|
|
39040
39049
|
// src/components/WfoAuth/WfoIsAllowedToRender.tsx
|
|
39041
|
-
import { Fragment as
|
|
39050
|
+
import { Fragment as Fragment11, jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
39042
39051
|
var WfoIsAllowedToRender = ({
|
|
39043
39052
|
resource,
|
|
39044
39053
|
children
|
|
39045
39054
|
}) => {
|
|
39046
39055
|
const { isAllowed } = usePolicy();
|
|
39047
|
-
return isAllowed(resource) ? /* @__PURE__ */ jsx90(
|
|
39056
|
+
return isAllowed(resource) ? /* @__PURE__ */ jsx90(Fragment11, { children }) : null;
|
|
39048
39057
|
};
|
|
39049
39058
|
|
|
39050
39059
|
// src/components/WfoInsyncIcon/WfoInsyncIcon.tsx
|
|
@@ -39069,7 +39078,7 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
39069
39078
|
};
|
|
39070
39079
|
|
|
39071
39080
|
// src/components/WfoSubscription/WfoInSyncField.tsx
|
|
39072
|
-
import { Fragment as
|
|
39081
|
+
import { Fragment as Fragment12, jsx as jsx92, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
39073
39082
|
var WfoInSyncField = ({
|
|
39074
39083
|
subscriptionDetail,
|
|
39075
39084
|
isFetching
|
|
@@ -39112,7 +39121,7 @@ var WfoInSyncField = ({
|
|
|
39112
39121
|
}
|
|
39113
39122
|
});
|
|
39114
39123
|
};
|
|
39115
|
-
return /* @__PURE__ */ jsxs51(
|
|
39124
|
+
return /* @__PURE__ */ jsxs51(Fragment12, { children: [
|
|
39116
39125
|
/* @__PURE__ */ jsxs51(
|
|
39117
39126
|
Link4,
|
|
39118
39127
|
{
|
|
@@ -39141,7 +39150,7 @@ var WfoInSyncField = ({
|
|
|
39141
39150
|
) })
|
|
39142
39151
|
] });
|
|
39143
39152
|
};
|
|
39144
|
-
return /* @__PURE__ */ jsxs51(
|
|
39153
|
+
return /* @__PURE__ */ jsxs51(Fragment12, { children: [
|
|
39145
39154
|
/* @__PURE__ */ jsx92("div", { css: { paddingRight: theme.base / 4, display: "flex" }, children: /* @__PURE__ */ jsx92(WfoInsyncIcon, { inSync }) }),
|
|
39146
39155
|
inSync && lastTaskRunDate && `(${formatDate(lastTaskRunDate)})`,
|
|
39147
39156
|
!inSync && lastUncompletedProcess && getProcessLink()
|
|
@@ -39238,7 +39247,7 @@ var getSubscriptionDetailStyles = ({ theme }) => {
|
|
|
39238
39247
|
};
|
|
39239
39248
|
|
|
39240
39249
|
// src/components/WfoSubscription/WfoProcessesTimeline.tsx
|
|
39241
|
-
import { Fragment as
|
|
39250
|
+
import { Fragment as Fragment13, jsx as jsx94, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
39242
39251
|
var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
39243
39252
|
const t = useTranslations21("subscriptions.detail.processDetail");
|
|
39244
39253
|
const {
|
|
@@ -39250,7 +39259,7 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
|
39250
39259
|
lastHeaderCellStyle
|
|
39251
39260
|
} = useWithOrchestratorTheme(getSubscriptionDetailStyles);
|
|
39252
39261
|
const processUrl = subscriptionDetailProcess.isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
39253
|
-
return /* @__PURE__ */ jsx94(
|
|
39262
|
+
return /* @__PURE__ */ jsx94(Fragment13, { children: /* @__PURE__ */ jsx94("table", { css: tableStyle, children: /* @__PURE__ */ jsxs52("tbody", { children: [
|
|
39254
39263
|
/* @__PURE__ */ jsxs52("tr", { children: [
|
|
39255
39264
|
/* @__PURE__ */ jsx94("td", { css: emptyCellStyle }),
|
|
39256
39265
|
/* @__PURE__ */ jsx94("td", { css: headerCellStyle, children: t("id") }),
|
|
@@ -39357,7 +39366,7 @@ var WfoProcessesTimeline = ({
|
|
|
39357
39366
|
subscriptionDetailProcesses,
|
|
39358
39367
|
selectedOption.value
|
|
39359
39368
|
);
|
|
39360
|
-
return /* @__PURE__ */ jsxs52(
|
|
39369
|
+
return /* @__PURE__ */ jsxs52(Fragment13, { children: [
|
|
39361
39370
|
/* @__PURE__ */ jsx94(EuiSpacer9, { size: "m" }),
|
|
39362
39371
|
!subscriptionDetailProcesses && /* @__PURE__ */ jsx94(WfoLoading, {}),
|
|
39363
39372
|
/* @__PURE__ */ jsx94(
|
|
@@ -39447,10 +39456,10 @@ var METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY = "metadataTasksTable";
|
|
|
39447
39456
|
var SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = "subscriptionsTable";
|
|
39448
39457
|
|
|
39449
39458
|
// src/components/WfoTable/WfoTable/WfoTableDataRows.tsx
|
|
39450
|
-
import { Fragment as
|
|
39459
|
+
import { Fragment as Fragment15 } from "react";
|
|
39451
39460
|
|
|
39452
39461
|
// src/components/WfoTable/WfoTable/WfoExpandedRow.tsx
|
|
39453
|
-
import { Fragment as
|
|
39462
|
+
import { Fragment as Fragment14 } from "react";
|
|
39454
39463
|
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
39455
39464
|
var WfoExpandedRow = ({
|
|
39456
39465
|
rowExpandingConfiguration,
|
|
@@ -39465,7 +39474,7 @@ var WfoExpandedRow = ({
|
|
|
39465
39474
|
]).filter(
|
|
39466
39475
|
([key]) => key === rowData[rowExpandingConfiguration.uniqueRowId].toLowerCase()
|
|
39467
39476
|
).map(([, expandedRowComponent], index) => /* @__PURE__ */ jsx95(
|
|
39468
|
-
|
|
39477
|
+
Fragment14,
|
|
39469
39478
|
{
|
|
39470
39479
|
children: expandedRowComponent
|
|
39471
39480
|
},
|
|
@@ -39763,7 +39772,7 @@ function mapSortableAndFilterableValuesToTableColumnConfig(tableColumnConfig, so
|
|
|
39763
39772
|
}
|
|
39764
39773
|
|
|
39765
39774
|
// src/components/WfoTable/WfoTable/WfoTableDataRows.tsx
|
|
39766
|
-
import { Fragment as
|
|
39775
|
+
import { Fragment as Fragment16, jsx as jsx96, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
39767
39776
|
var DATA_ROW_CLASS = "data-row";
|
|
39768
39777
|
var CONTROL_CELL_CLASS = "control-cell";
|
|
39769
39778
|
var DATA_CELL_CLASS = "data-cell";
|
|
@@ -39789,7 +39798,7 @@ var WfoTableDataRows = ({
|
|
|
39789
39798
|
columnOrder,
|
|
39790
39799
|
hiddenColumns
|
|
39791
39800
|
);
|
|
39792
|
-
return /* @__PURE__ */ jsx96(
|
|
39801
|
+
return /* @__PURE__ */ jsx96(Fragment16, { children: data.map((row, index) => /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
39793
39802
|
/* @__PURE__ */ jsx96(
|
|
39794
39803
|
"tr",
|
|
39795
39804
|
{
|
|
@@ -40108,7 +40117,7 @@ var WfoTableHeaderRow = ({
|
|
|
40108
40117
|
};
|
|
40109
40118
|
|
|
40110
40119
|
// src/components/WfoTable/WfoTable/WfoTable.tsx
|
|
40111
|
-
import { Fragment as
|
|
40120
|
+
import { Fragment as Fragment17, jsx as jsx101, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
40112
40121
|
var ColumnType = /* @__PURE__ */ ((ColumnType2) => {
|
|
40113
40122
|
ColumnType2["DATA"] = "data";
|
|
40114
40123
|
ColumnType2["CONTROL"] = "control";
|
|
@@ -40178,7 +40187,7 @@ var WfoTable = ({
|
|
|
40178
40187
|
}
|
|
40179
40188
|
return mergedConfig;
|
|
40180
40189
|
}, {});
|
|
40181
|
-
return /* @__PURE__ */ jsxs56(
|
|
40190
|
+
return /* @__PURE__ */ jsxs56(Fragment17, { children: [
|
|
40182
40191
|
/* @__PURE__ */ jsx101("div", { css: [tableContainerStyle, useEuiScrollBar()], children: /* @__PURE__ */ jsxs56("table", { className, css: tableStyle, children: [
|
|
40183
40192
|
overrideHeader ? overrideHeader(sortedVisibleColumns) : /* @__PURE__ */ jsx101("thead", { css: headerStyle, children: /* @__PURE__ */ jsx101(
|
|
40184
40193
|
WfoTableHeaderRow,
|
|
@@ -40211,7 +40220,7 @@ var WfoTable = ({
|
|
|
40211
40220
|
}
|
|
40212
40221
|
) })
|
|
40213
40222
|
] }) }),
|
|
40214
|
-
pagination && /* @__PURE__ */ jsxs56(
|
|
40223
|
+
pagination && /* @__PURE__ */ jsxs56(Fragment17, { children: [
|
|
40215
40224
|
/* @__PURE__ */ jsx101(EuiSpacer10, { size: "xs" }),
|
|
40216
40225
|
/* @__PURE__ */ jsx101(
|
|
40217
40226
|
EuiTablePagination,
|
|
@@ -40361,7 +40370,7 @@ var WfoGroupedTableGroups = React23.forwardRef(
|
|
|
40361
40370
|
WfoGroupedTableGroups.displayName = "WfoGroupedTableGroups";
|
|
40362
40371
|
|
|
40363
40372
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx
|
|
40364
|
-
import { Fragment as
|
|
40373
|
+
import { Fragment as Fragment18, jsx as jsx104, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
40365
40374
|
var WfoExpandedGroupRow = React24.forwardRef(
|
|
40366
40375
|
({
|
|
40367
40376
|
data,
|
|
@@ -40373,7 +40382,7 @@ var WfoExpandedGroupRow = React24.forwardRef(
|
|
|
40373
40382
|
const { expandedRowStyle } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
40374
40383
|
const { innerTableHeaderStyle, getNestingStyle } = useWithOrchestratorTheme(getWfoGroupedTableStyles);
|
|
40375
40384
|
if (Array.isArray(data)) {
|
|
40376
|
-
return /* @__PURE__ */ jsxs58(
|
|
40385
|
+
return /* @__PURE__ */ jsxs58(Fragment18, { children: [
|
|
40377
40386
|
/* @__PURE__ */ jsx104(
|
|
40378
40387
|
WfoTableHeaderRow,
|
|
40379
40388
|
{
|
|
@@ -40583,7 +40592,7 @@ var useGroupedTableConfig = ({
|
|
|
40583
40592
|
};
|
|
40584
40593
|
|
|
40585
40594
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx
|
|
40586
|
-
import { Fragment as
|
|
40595
|
+
import { Fragment as Fragment19, jsx as jsx106, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
40587
40596
|
var WfoGroupedTable = ({
|
|
40588
40597
|
data,
|
|
40589
40598
|
columnConfig,
|
|
@@ -40616,7 +40625,7 @@ var WfoGroupedTable = ({
|
|
|
40616
40625
|
children: isAllGroupsAndSubgroupsExpanded ? t("collapse") : t("expand")
|
|
40617
40626
|
}
|
|
40618
40627
|
);
|
|
40619
|
-
return /* @__PURE__ */ jsxs59(
|
|
40628
|
+
return /* @__PURE__ */ jsxs59(Fragment19, { children: [
|
|
40620
40629
|
/* @__PURE__ */ jsx106(EuiFlexGroup7, { justifyContent: "flexEnd", children: overrideHeaderSection ? overrideHeaderSection(/* @__PURE__ */ jsx106(ExpandCollapseButton, {})) : /* @__PURE__ */ jsx106(ExpandCollapseButton, {}) }),
|
|
40621
40630
|
/* @__PURE__ */ jsx106(EuiSpacer11, { size: "xs" }),
|
|
40622
40631
|
/* @__PURE__ */ jsx106(
|
|
@@ -40673,7 +40682,7 @@ var WfoTruncateCell = ({ children }) => {
|
|
|
40673
40682
|
};
|
|
40674
40683
|
|
|
40675
40684
|
// src/components/WfoTable/WfoTable/WfoDataCell.tsx
|
|
40676
|
-
import { Fragment as
|
|
40685
|
+
import { Fragment as Fragment20, jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
40677
40686
|
var WfoDataCell = ({
|
|
40678
40687
|
customTooltip,
|
|
40679
40688
|
children
|
|
@@ -40682,7 +40691,7 @@ var WfoDataCell = ({
|
|
|
40682
40691
|
if (tooltipContent) {
|
|
40683
40692
|
return /* @__PURE__ */ jsx109(WfoToolTip, { tooltipContent, children });
|
|
40684
40693
|
}
|
|
40685
|
-
return /* @__PURE__ */ jsx109(
|
|
40694
|
+
return /* @__PURE__ */ jsx109(Fragment20, { children });
|
|
40686
40695
|
};
|
|
40687
40696
|
|
|
40688
40697
|
// src/components/WfoTable/WfoTable/WfoToolTip.tsx
|
|
@@ -40708,7 +40717,7 @@ var WfoToolTip = ({
|
|
|
40708
40717
|
};
|
|
40709
40718
|
|
|
40710
40719
|
// src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
|
|
40711
|
-
import { Fragment as
|
|
40720
|
+
import { Fragment as Fragment21, jsx as jsx111, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
40712
40721
|
var WfoRelatedSubscriptions = ({
|
|
40713
40722
|
subscriptionId,
|
|
40714
40723
|
subscriptionPath = PATH_SUBSCRIPTIONS
|
|
@@ -40801,7 +40810,7 @@ var WfoRelatedSubscriptions = ({
|
|
|
40801
40810
|
const toggleTerminatedSubscriptions = () => {
|
|
40802
40811
|
setHideTerminatedSubscriptions((currentValue) => !currentValue);
|
|
40803
40812
|
};
|
|
40804
|
-
return /* @__PURE__ */ jsxs60(
|
|
40813
|
+
return /* @__PURE__ */ jsxs60(Fragment21, { children: [
|
|
40805
40814
|
/* @__PURE__ */ jsx111(EuiSpacer12, { size: "xl" }),
|
|
40806
40815
|
/* @__PURE__ */ jsx111(EuiFlexGroup8, { justifyContent: "flexEnd", children: /* @__PURE__ */ jsx111(EuiFlexItem5, { grow: 0, children: /* @__PURE__ */ jsx111(
|
|
40807
40816
|
EuiSwitch,
|
|
@@ -40847,7 +40856,7 @@ import { StringParam as StringParam2, useQueryParam, withDefault as withDefault2
|
|
|
40847
40856
|
// src/components/WfoError/WfoError.tsx
|
|
40848
40857
|
import { useTranslations as useTranslations27 } from "next-intl";
|
|
40849
40858
|
import { EuiFlexGroup as EuiFlexGroup9, EuiText as EuiText7 } from "@elastic/eui";
|
|
40850
|
-
import { Fragment as
|
|
40859
|
+
import { Fragment as Fragment22, jsx as jsx112, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
40851
40860
|
var WfoError = () => {
|
|
40852
40861
|
const t = useTranslations27("common");
|
|
40853
40862
|
const { theme } = useOrchestratorTheme();
|
|
@@ -40860,7 +40869,7 @@ var WfoErrorWithMessage = ({ error }) => {
|
|
|
40860
40869
|
const t = useTranslations27("common");
|
|
40861
40870
|
const { theme } = useOrchestratorTheme();
|
|
40862
40871
|
const message = error && error.length > 0 ? error.map((err) => err.message).join(", ") : t("unknownError");
|
|
40863
|
-
return /* @__PURE__ */ jsx112(
|
|
40872
|
+
return /* @__PURE__ */ jsx112(Fragment22, { children: /* @__PURE__ */ jsxs61(EuiFlexGroup9, { direction: "row", alignItems: "center", gutterSize: "s", children: [
|
|
40864
40873
|
/* @__PURE__ */ jsx112(WfoXCircleFill, { color: theme.colors.danger }),
|
|
40865
40874
|
/* @__PURE__ */ jsxs61(EuiText7, { color: theme.colors.dangerText, children: [
|
|
40866
40875
|
t("errorMessage"),
|
|
@@ -40905,7 +40914,7 @@ var subscriptionDetailTabs = [
|
|
|
40905
40914
|
];
|
|
40906
40915
|
|
|
40907
40916
|
// src/components/WfoSubscription/WfoSubscription.tsx
|
|
40908
|
-
import { Fragment as
|
|
40917
|
+
import { Fragment as Fragment23, jsx as jsx114, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
40909
40918
|
var WfoSubscription = ({ subscriptionId }) => {
|
|
40910
40919
|
const [activeTab, setActiveTab] = useQueryParam(
|
|
40911
40920
|
"activeTab",
|
|
@@ -40924,7 +40933,7 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
40924
40933
|
setActiveTab(tab);
|
|
40925
40934
|
};
|
|
40926
40935
|
const subscriptionDetail = data?.subscription;
|
|
40927
|
-
return /* @__PURE__ */ jsx114(
|
|
40936
|
+
return /* @__PURE__ */ jsx114(Fragment23, { children: isError2 && /* @__PURE__ */ jsx114(WfoError, {}) || isLoading && /* @__PURE__ */ jsx114(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */ jsxs62(Fragment23, { children: [
|
|
40928
40937
|
/* @__PURE__ */ jsx114(
|
|
40929
40938
|
WfoContentHeader,
|
|
40930
40939
|
{
|
|
@@ -40934,7 +40943,7 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
40934
40943
|
title: subscriptionDetail.description
|
|
40935
40944
|
}
|
|
40936
40945
|
),
|
|
40937
|
-
subtitle: /* @__PURE__ */ jsxs62(
|
|
40946
|
+
subtitle: /* @__PURE__ */ jsxs62(Fragment23, { children: [
|
|
40938
40947
|
/* @__PURE__ */ jsx114(
|
|
40939
40948
|
WfoSubscriptionStatusBadge,
|
|
40940
40949
|
{
|
|
@@ -41132,7 +41141,7 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
41132
41141
|
};
|
|
41133
41142
|
|
|
41134
41143
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
|
|
41135
|
-
import { Fragment as
|
|
41144
|
+
import { Fragment as Fragment24, jsx as jsx116, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
41136
41145
|
var MenuBlock = ({ title }) => /* @__PURE__ */ jsx116(EuiTitle, { size: "xxxs", children: /* @__PURE__ */ jsx116("h3", { children: title }) });
|
|
41137
41146
|
var WfoSubscriptionActions = ({
|
|
41138
41147
|
subscriptionId,
|
|
@@ -41233,7 +41242,7 @@ var WfoSubscriptionActions = ({
|
|
|
41233
41242
|
children: /* @__PURE__ */ jsx116(EuiContextMenuPanel, { children: /* @__PURE__ */ jsxs64(EuiPanel, { color: "transparent", paddingSize: "s", children: [
|
|
41234
41243
|
subscriptionActions && isAllowed(
|
|
41235
41244
|
"/orchestrator/subscriptions/modify/" /* SUBSCRIPTION_MODIFY */ + subscriptionId
|
|
41236
|
-
) && subscriptionActions.modify && /* @__PURE__ */ jsxs64(
|
|
41245
|
+
) && subscriptionActions.modify && /* @__PURE__ */ jsxs64(Fragment24, { children: [
|
|
41237
41246
|
/* @__PURE__ */ jsx116(MenuBlock, { title: t("modify") }),
|
|
41238
41247
|
subscriptionActions.modify.map(
|
|
41239
41248
|
(action, index) => /* @__PURE__ */ jsx116(
|
|
@@ -41249,7 +41258,7 @@ var WfoSubscriptionActions = ({
|
|
|
41249
41258
|
] }),
|
|
41250
41259
|
subscriptionActions && isAllowed(
|
|
41251
41260
|
"/orchestrator/subscriptions/validate/" /* SUBSCRIPTION_VALIDATE */ + subscriptionId
|
|
41252
|
-
) && subscriptionActions.system && /* @__PURE__ */ jsxs64(
|
|
41261
|
+
) && subscriptionActions.system && /* @__PURE__ */ jsxs64(Fragment24, { children: [
|
|
41253
41262
|
/* @__PURE__ */ jsx116(MenuBlock, { title: t("tasks") }),
|
|
41254
41263
|
subscriptionActions.system.map(
|
|
41255
41264
|
(action, index) => /* @__PURE__ */ jsx116(
|
|
@@ -41266,7 +41275,7 @@ var WfoSubscriptionActions = ({
|
|
|
41266
41275
|
] }),
|
|
41267
41276
|
subscriptionActions && isAllowed(
|
|
41268
41277
|
"/orchestrator/subscriptions/terminate/" /* SUBSCRIPTION_TERMINATE */ + subscriptionId
|
|
41269
|
-
) && subscriptionActions.terminate && /* @__PURE__ */ jsxs64(
|
|
41278
|
+
) && subscriptionActions.terminate && /* @__PURE__ */ jsxs64(Fragment24, { children: [
|
|
41270
41279
|
/* @__PURE__ */ jsx116(MenuBlock, { title: t("terminate") }),
|
|
41271
41280
|
subscriptionActions.terminate.map(
|
|
41272
41281
|
(action, index) => /* @__PURE__ */ jsx116(
|
|
@@ -41302,7 +41311,7 @@ import {
|
|
|
41302
41311
|
// src/components/WfoSubscription/WfoInUseByRelations.tsx
|
|
41303
41312
|
import { useTranslations as useTranslations30 } from "next-intl";
|
|
41304
41313
|
import Link8 from "next/link";
|
|
41305
|
-
import { Fragment as
|
|
41314
|
+
import { Fragment as Fragment25, jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
41306
41315
|
var WfoInUseByRelations = ({
|
|
41307
41316
|
inUseByRelations
|
|
41308
41317
|
}) => {
|
|
@@ -41352,7 +41361,7 @@ var WfoInUseByRelations = ({
|
|
|
41352
41361
|
}
|
|
41353
41362
|
];
|
|
41354
41363
|
};
|
|
41355
|
-
return /* @__PURE__ */ jsx117(
|
|
41364
|
+
return /* @__PURE__ */ jsx117(Fragment25, { children: data?.inUseByRelationDetails.map((relation, index) => {
|
|
41356
41365
|
const keyValues = getKeyValues(relation);
|
|
41357
41366
|
return /* @__PURE__ */ jsx117("div", { css: inUseByRelationDetailsStyle, children: /* @__PURE__ */ jsx117(
|
|
41358
41367
|
WfoKeyValueTable,
|
|
@@ -41433,7 +41442,7 @@ var getStyles6 = (wfoTheme) => {
|
|
|
41433
41442
|
};
|
|
41434
41443
|
|
|
41435
41444
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
|
|
41436
|
-
import { Fragment as
|
|
41445
|
+
import { Fragment as Fragment26, jsx as jsx118, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
41437
41446
|
var HIDDEN_KEYS = ["title", "name", "label", "inUseByIds"];
|
|
41438
41447
|
var WfoSubscriptionProductBlock = ({
|
|
41439
41448
|
productBlock,
|
|
@@ -41461,7 +41470,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
41461
41470
|
const isEmpty2 = (value) => {
|
|
41462
41471
|
return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
|
|
41463
41472
|
};
|
|
41464
|
-
return /* @__PURE__ */ jsxs65(
|
|
41473
|
+
return /* @__PURE__ */ jsxs65(Fragment26, { children: [
|
|
41465
41474
|
/* @__PURE__ */ jsx118(EuiSpacer13, { size: "m" }),
|
|
41466
41475
|
/* @__PURE__ */ jsxs65(
|
|
41467
41476
|
EuiPanel2,
|
|
@@ -41504,7 +41513,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
41504
41513
|
/* @__PURE__ */ jsx118("td", { children: /* @__PURE__ */ jsx118(
|
|
41505
41514
|
WfoValueCell,
|
|
41506
41515
|
{
|
|
41507
|
-
value: /* @__PURE__ */ jsxs65(
|
|
41516
|
+
value: /* @__PURE__ */ jsxs65(Fragment26, { children: [
|
|
41508
41517
|
/* @__PURE__ */ jsx118(
|
|
41509
41518
|
"a",
|
|
41510
41519
|
{
|
|
@@ -41530,14 +41539,14 @@ var WfoSubscriptionProductBlock = ({
|
|
|
41530
41539
|
}
|
|
41531
41540
|
) })
|
|
41532
41541
|
] }, -1),
|
|
41533
|
-
showDetails && /* @__PURE__ */ jsxs65(
|
|
41542
|
+
showDetails && /* @__PURE__ */ jsxs65(Fragment26, { children: [
|
|
41534
41543
|
/* @__PURE__ */ jsxs65("tr", { css: rowStyle, children: [
|
|
41535
41544
|
/* @__PURE__ */ jsx118("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx118("b", { children: t("subscriptionInstanceId") }) }),
|
|
41536
41545
|
/* @__PURE__ */ jsx118("td", { children: productBlock.subscriptionInstanceId })
|
|
41537
41546
|
] }, -2),
|
|
41538
41547
|
!isOutsideCurrentSubscription && /* @__PURE__ */ jsxs65("tr", { css: rowStyle, children: [
|
|
41539
41548
|
/* @__PURE__ */ jsx118("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx118("b", { children: t("ownerSubscriptionId") }) }),
|
|
41540
|
-
/* @__PURE__ */ jsx118("td", { children: /* @__PURE__ */ jsx118(
|
|
41549
|
+
/* @__PURE__ */ jsx118("td", { children: /* @__PURE__ */ jsx118(Fragment26, { children: /* @__PURE__ */ jsx118(EuiBadge2, { children: t("self") }) }) })
|
|
41541
41550
|
] }, -3),
|
|
41542
41551
|
/* @__PURE__ */ jsxs65("tr", { css: rowStyle, children: [
|
|
41543
41552
|
/* @__PURE__ */ jsx118("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx118("b", { children: t("inUseByRelations") }) }),
|
|
@@ -41585,7 +41594,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
41585
41594
|
|
|
41586
41595
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
|
|
41587
41596
|
import { EuiBadge as EuiBadge3 } from "@elastic/eui";
|
|
41588
|
-
import { Fragment as
|
|
41597
|
+
import { Fragment as Fragment27, jsx as jsx119, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
41589
41598
|
var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
|
|
41590
41599
|
const { leftColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles6);
|
|
41591
41600
|
const { getOverriddenValue } = useSubscriptionDetailValueOverride();
|
|
@@ -41595,9 +41604,9 @@ var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
|
|
|
41595
41604
|
return /* @__PURE__ */ jsx119(EuiBadge3, { children: value2.toString() });
|
|
41596
41605
|
} else if (Array.isArray(value2)) {
|
|
41597
41606
|
const result = value2.join(", ");
|
|
41598
|
-
return /* @__PURE__ */ jsx119(
|
|
41607
|
+
return /* @__PURE__ */ jsx119(Fragment27, { children: result });
|
|
41599
41608
|
} else {
|
|
41600
|
-
return /* @__PURE__ */ jsx119(
|
|
41609
|
+
return /* @__PURE__ */ jsx119(Fragment27, { children: value2 });
|
|
41601
41610
|
}
|
|
41602
41611
|
};
|
|
41603
41612
|
return /* @__PURE__ */ jsxs66("tr", { css: rowStyle, children: [
|
|
@@ -41784,7 +41793,7 @@ var WfoTreeNode = ({
|
|
|
41784
41793
|
};
|
|
41785
41794
|
|
|
41786
41795
|
// src/components/WfoTree/WfoTreeBranch.tsx
|
|
41787
|
-
import { Fragment as
|
|
41796
|
+
import { Fragment as Fragment28, jsx as jsx123, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
41788
41797
|
var WfoTreeBranch = ({ item, level }) => {
|
|
41789
41798
|
const { expandedIds } = React32.useContext(TreeContext);
|
|
41790
41799
|
const selected = expandedIds.includes(item.id);
|
|
@@ -41799,7 +41808,7 @@ var WfoTreeBranch = ({ item, level }) => {
|
|
|
41799
41808
|
}
|
|
41800
41809
|
return null;
|
|
41801
41810
|
};
|
|
41802
|
-
return /* @__PURE__ */ jsxs70(
|
|
41811
|
+
return /* @__PURE__ */ jsxs70(Fragment28, { children: [
|
|
41803
41812
|
/* @__PURE__ */ jsx123(
|
|
41804
41813
|
EuiListGroup,
|
|
41805
41814
|
{
|
|
@@ -42607,7 +42616,7 @@ var WfoRowContextMenu = ({
|
|
|
42607
42616
|
};
|
|
42608
42617
|
|
|
42609
42618
|
// src/components/WfoTable/WfoAdvancedTable/getRowDetailData.tsx
|
|
42610
|
-
import { Fragment as
|
|
42619
|
+
import { Fragment as Fragment29, jsx as jsx136 } from "@emotion/react/jsx-runtime";
|
|
42611
42620
|
var getRowDetailData = (selectedDataForDetailModal, tableColumnConfig) => {
|
|
42612
42621
|
const tableColumnConfigEntries = Object.entries(tableColumnConfig);
|
|
42613
42622
|
const dataColumnEntries = tableColumnConfigEntries.filter(
|
|
@@ -42625,7 +42634,7 @@ var getRowDetailData = (selectedDataForDetailModal, tableColumnConfig) => {
|
|
|
42625
42634
|
const dataValue = selectedDataForDetailModal[dataField];
|
|
42626
42635
|
return {
|
|
42627
42636
|
key: label ?? dataField.toString(),
|
|
42628
|
-
value: (renderDetails && renderDetails(dataValue, selectedDataForDetailModal)) ?? (renderData && renderData(dataValue, selectedDataForDetailModal)) ?? /* @__PURE__ */ jsx136(
|
|
42637
|
+
value: (renderDetails && renderDetails(dataValue, selectedDataForDetailModal)) ?? (renderData && renderData(dataValue, selectedDataForDetailModal)) ?? /* @__PURE__ */ jsx136(Fragment29, { children: dataValue }),
|
|
42629
42638
|
textToCopy: clipboardText?.(dataValue, selectedDataForDetailModal) ?? (typeof dataValue === "string" ? dataValue : void 0)
|
|
42630
42639
|
};
|
|
42631
42640
|
});
|
|
@@ -42650,7 +42659,7 @@ import {
|
|
|
42650
42659
|
EuiSpacer as EuiSpacer15,
|
|
42651
42660
|
EuiText as EuiText12
|
|
42652
42661
|
} from "@elastic/eui";
|
|
42653
|
-
import { Fragment as
|
|
42662
|
+
import { Fragment as Fragment30, jsx as jsx137, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
42654
42663
|
var WfoAdvancedTable = ({
|
|
42655
42664
|
tableColumnConfig,
|
|
42656
42665
|
defaultHiddenColumns = [],
|
|
@@ -42734,7 +42743,7 @@ var WfoAdvancedTable = ({
|
|
|
42734
42743
|
span: (chunks) => /* @__PURE__ */ jsx137("span", { children: chunks }),
|
|
42735
42744
|
b: (chunks) => /* @__PURE__ */ jsx137("b", { children: chunks })
|
|
42736
42745
|
});
|
|
42737
|
-
return /* @__PURE__ */ jsxs76(
|
|
42746
|
+
return /* @__PURE__ */ jsxs76(Fragment30, { children: [
|
|
42738
42747
|
/* @__PURE__ */ jsxs76(EuiFlexGroup15, { alignItems: "center", children: [
|
|
42739
42748
|
/* @__PURE__ */ jsx137(EuiFlexItem12, { children: /* @__PURE__ */ jsx137(
|
|
42740
42749
|
WfoSearchField,
|
|
@@ -43696,7 +43705,7 @@ var listFieldStyling = css25`
|
|
|
43696
43705
|
`;
|
|
43697
43706
|
|
|
43698
43707
|
// src/components/WfoForms/formFields/ListField.tsx
|
|
43699
|
-
import { Fragment as
|
|
43708
|
+
import { Fragment as Fragment31, jsx as jsx151, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
43700
43709
|
filterDOMProps8.register("minCount");
|
|
43701
43710
|
filterDOMProps8.register("maxCount");
|
|
43702
43711
|
filterDOMProps8.register("items");
|
|
@@ -43735,7 +43744,7 @@ function List({
|
|
|
43735
43744
|
isInvalid: error,
|
|
43736
43745
|
id: `formrow-${name}`,
|
|
43737
43746
|
fullWidth: true,
|
|
43738
|
-
children: /* @__PURE__ */ jsx151(
|
|
43747
|
+
children: /* @__PURE__ */ jsx151(Fragment31, {})
|
|
43739
43748
|
}
|
|
43740
43749
|
),
|
|
43741
43750
|
/* @__PURE__ */ jsxs82("ul", { children: [
|
|
@@ -44100,7 +44109,7 @@ var NumField = connectField11(Num, { kind: "leaf" });
|
|
|
44100
44109
|
import { omit } from "lodash";
|
|
44101
44110
|
import { connectField as connectField12, filterDOMProps as filterDOMProps11 } from "uniforms";
|
|
44102
44111
|
import { EuiFormRow as EuiFormRow8, EuiRadio, EuiText as EuiText21 } from "@elastic/eui";
|
|
44103
|
-
import { Fragment as
|
|
44112
|
+
import { Fragment as Fragment32, jsx as jsx156 } from "@emotion/react/jsx-runtime";
|
|
44104
44113
|
var base64 = typeof btoa !== "undefined" ? btoa : (x) => Buffer.from(x).toString("base64");
|
|
44105
44114
|
var escape = (x) => base64(encodeURIComponent(x)).replace(/=+$/, "");
|
|
44106
44115
|
function Radio({
|
|
@@ -44128,7 +44137,7 @@ function Radio({
|
|
|
44128
44137
|
isInvalid: error,
|
|
44129
44138
|
id,
|
|
44130
44139
|
fullWidth: true,
|
|
44131
|
-
children: /* @__PURE__ */ jsx156(
|
|
44140
|
+
children: /* @__PURE__ */ jsx156(Fragment32, { children: allowedValues?.map((item) => /* @__PURE__ */ jsx156(
|
|
44132
44141
|
EuiRadio,
|
|
44133
44142
|
{
|
|
44134
44143
|
id: `${id}-${escape(item)}`,
|
|
@@ -44467,27 +44476,7 @@ import scrollIntoView from "scroll-into-view";
|
|
|
44467
44476
|
import { EuiFlexItem as EuiFlexItem16 } from "@elastic/eui";
|
|
44468
44477
|
|
|
44469
44478
|
// src/components/WfoForms/formFields/utils.ts
|
|
44470
|
-
import { isDate as isDate2 } from "moment";
|
|
44471
|
-
|
|
44472
|
-
// src/components/WfoForms/formFields/deprecated/types.ts
|
|
44473
|
-
var PortMode = /* @__PURE__ */ ((PortMode2) => {
|
|
44474
|
-
PortMode2["TAGGED"] = "tagged";
|
|
44475
|
-
PortMode2["UNTAGGED"] = "untagged";
|
|
44476
|
-
PortMode2["LINK_MEMBER"] = "link_member";
|
|
44477
|
-
return PortMode2;
|
|
44478
|
-
})(PortMode || {});
|
|
44479
|
-
var ProductTag = /* @__PURE__ */ ((ProductTag2) => {
|
|
44480
|
-
ProductTag2["MSC"] = "MSC";
|
|
44481
|
-
ProductTag2["MSCNL"] = "MSCNL";
|
|
44482
|
-
ProductTag2["IRBSP"] = "IRBSP";
|
|
44483
|
-
ProductTag2["SP"] = "SP";
|
|
44484
|
-
ProductTag2["SPNL"] = "SPNL";
|
|
44485
|
-
ProductTag2["AGGSP"] = "AGGSP";
|
|
44486
|
-
ProductTag2["AGGSPNL"] = "AGGSPNL";
|
|
44487
|
-
return ProductTag2;
|
|
44488
|
-
})(ProductTag || {});
|
|
44489
|
-
|
|
44490
|
-
// src/components/WfoForms/formFields/utils.ts
|
|
44479
|
+
import { isDate as isDate2 } from "moment/moment";
|
|
44491
44480
|
var getPortMode = (productBlockInstances) => {
|
|
44492
44481
|
return productBlockInstances?.reduce(
|
|
44493
44482
|
(portMode, productBlockInstance) => {
|
|
@@ -44630,7 +44619,7 @@ import {
|
|
|
44630
44619
|
useForm as useForm6
|
|
44631
44620
|
} from "uniforms";
|
|
44632
44621
|
import { EuiFieldText as EuiFieldText2, EuiFormRow as EuiFormRow11, EuiText as EuiText24 } from "@elastic/eui";
|
|
44633
|
-
import { Fragment as
|
|
44622
|
+
import { Fragment as Fragment33, jsx as jsx163, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
44634
44623
|
function stop(e) {
|
|
44635
44624
|
if (e !== void 0 && e !== null) {
|
|
44636
44625
|
e.preventDefault();
|
|
@@ -44763,7 +44752,7 @@ function ContactPersonName({
|
|
|
44763
44752
|
id,
|
|
44764
44753
|
fullWidth: true,
|
|
44765
44754
|
css: formRowStyle,
|
|
44766
|
-
children: /* @__PURE__ */ jsxs85(
|
|
44755
|
+
children: /* @__PURE__ */ jsxs85(Fragment33, { children: [
|
|
44767
44756
|
/* @__PURE__ */ jsx163(
|
|
44768
44757
|
EuiFieldText2,
|
|
44769
44758
|
{
|
|
@@ -45618,6 +45607,24 @@ function Vlan({
|
|
|
45618
45607
|
}
|
|
45619
45608
|
var VlanField = connectField22(Vlan, { kind: "leaf" });
|
|
45620
45609
|
|
|
45610
|
+
// src/components/WfoForms/formFields/deprecated/types.ts
|
|
45611
|
+
var PortMode = /* @__PURE__ */ ((PortMode2) => {
|
|
45612
|
+
PortMode2["TAGGED"] = "tagged";
|
|
45613
|
+
PortMode2["UNTAGGED"] = "untagged";
|
|
45614
|
+
PortMode2["LINK_MEMBER"] = "link_member";
|
|
45615
|
+
return PortMode2;
|
|
45616
|
+
})(PortMode || {});
|
|
45617
|
+
var ProductTag = /* @__PURE__ */ ((ProductTag2) => {
|
|
45618
|
+
ProductTag2["MSC"] = "MSC";
|
|
45619
|
+
ProductTag2["MSCNL"] = "MSCNL";
|
|
45620
|
+
ProductTag2["IRBSP"] = "IRBSP";
|
|
45621
|
+
ProductTag2["SP"] = "SP";
|
|
45622
|
+
ProductTag2["SPNL"] = "SPNL";
|
|
45623
|
+
ProductTag2["AGGSP"] = "AGGSP";
|
|
45624
|
+
ProductTag2["AGGSPNL"] = "AGGSPNL";
|
|
45625
|
+
return ProductTag2;
|
|
45626
|
+
})(ProductTag || {});
|
|
45627
|
+
|
|
45621
45628
|
// src/components/WfoForms/formFields/deprecated/utils.ts
|
|
45622
45629
|
var ipamStates = ["Free", "Allocated", null, "Planned", null, null];
|
|
45623
45630
|
|
|
@@ -45630,7 +45637,7 @@ import {
|
|
|
45630
45637
|
EuiFlexItem as EuiFlexItem19,
|
|
45631
45638
|
EuiText as EuiText29
|
|
45632
45639
|
} from "@elastic/eui";
|
|
45633
|
-
import { Fragment as
|
|
45640
|
+
import { Fragment as Fragment34, jsx as jsx170, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
45634
45641
|
filterDOMProps23.register("properties", "wrap");
|
|
45635
45642
|
function Nest({
|
|
45636
45643
|
children,
|
|
@@ -45653,7 +45660,7 @@ function Nest({
|
|
|
45653
45660
|
...filterDOMProps23(props),
|
|
45654
45661
|
className: `${className} nest-field`,
|
|
45655
45662
|
children: [
|
|
45656
|
-
label && /* @__PURE__ */ jsxs88(
|
|
45663
|
+
label && /* @__PURE__ */ jsxs88(Fragment34, { children: [
|
|
45657
45664
|
/* @__PURE__ */ jsx170("label", { className: "euiFormLabel euiFormRow__label", children: label }),
|
|
45658
45665
|
/* @__PURE__ */ jsx170(EuiText29, { size: "m", children: description })
|
|
45659
45666
|
] }),
|
|
@@ -45696,7 +45703,7 @@ import { useTranslations as useTranslations45 } from "next-intl";
|
|
|
45696
45703
|
import { connectField as connectField24, filterDOMProps as filterDOMProps24, useField as useField7 } from "uniforms";
|
|
45697
45704
|
import { AutoField as AutoField4 } from "uniforms-unstyled";
|
|
45698
45705
|
import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem20, EuiFormRow as EuiFormRow16 } from "@elastic/eui";
|
|
45699
|
-
import { Fragment as
|
|
45706
|
+
import { Fragment as Fragment35, jsx as jsx171, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
45700
45707
|
filterDOMProps24.register("properties");
|
|
45701
45708
|
function OptGroup({
|
|
45702
45709
|
fields,
|
|
@@ -45715,7 +45722,7 @@ function OptGroup({
|
|
|
45715
45722
|
title: /* @__PURE__ */ jsx171("span", { children: t(`${name}.title`) }),
|
|
45716
45723
|
description: t(`${name}.description`),
|
|
45717
45724
|
className: `${className} optgroup-field`,
|
|
45718
|
-
children: /* @__PURE__ */ jsxs89(
|
|
45725
|
+
children: /* @__PURE__ */ jsxs89(Fragment35, { children: [
|
|
45719
45726
|
/* @__PURE__ */ jsx171(EuiFlexItem20, { children: /* @__PURE__ */ jsx171(
|
|
45720
45727
|
EuiFormRow16,
|
|
45721
45728
|
{
|
|
@@ -46315,7 +46322,7 @@ var userInputFormStyling = css32`
|
|
|
46315
46322
|
`;
|
|
46316
46323
|
|
|
46317
46324
|
// src/components/WfoForms/UserInputForm.tsx
|
|
46318
|
-
import { Fragment as
|
|
46325
|
+
import { Fragment as Fragment36, jsx as jsx176, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
46319
46326
|
filterDOMProps27.register("description");
|
|
46320
46327
|
filterDOMProps27.register("const");
|
|
46321
46328
|
filterDOMProps27.register("default");
|
|
@@ -46711,7 +46718,7 @@ function WfoUserInputForm({
|
|
|
46711
46718
|
children: buttons2.next.text ?? t(nextButtonTranslationKey)
|
|
46712
46719
|
}
|
|
46713
46720
|
);
|
|
46714
|
-
return /* @__PURE__ */ jsxs92(
|
|
46721
|
+
return /* @__PURE__ */ jsxs92(Fragment36, { children: [
|
|
46715
46722
|
/* @__PURE__ */ jsx176(EuiHorizontalRule4, {}),
|
|
46716
46723
|
/* @__PURE__ */ jsxs92(EuiFlexGroup18, { justifyContent: "spaceBetween", children: [
|
|
46717
46724
|
prevButton,
|
|
@@ -46896,13 +46903,13 @@ var WfoPageUnauthorized = () => {
|
|
|
46896
46903
|
};
|
|
46897
46904
|
|
|
46898
46905
|
// src/components/WfoAuth/WfoPolicyRenderPageFallback.tsx
|
|
46899
|
-
import { Fragment as
|
|
46906
|
+
import { Fragment as Fragment37, jsx as jsx181 } from "@emotion/react/jsx-runtime";
|
|
46900
46907
|
var WfoPolicyRenderPageFallback = ({
|
|
46901
46908
|
resource,
|
|
46902
46909
|
children
|
|
46903
46910
|
}) => {
|
|
46904
46911
|
const { isAllowed } = usePolicy();
|
|
46905
|
-
return isAllowed(resource) ? /* @__PURE__ */ jsx181(
|
|
46912
|
+
return isAllowed(resource) ? /* @__PURE__ */ jsx181(Fragment37, { children }) : /* @__PURE__ */ jsx181(WfoPageUnauthorized, {});
|
|
46906
46913
|
};
|
|
46907
46914
|
|
|
46908
46915
|
// src/components/WfoAuth/WfoAuth.tsx
|
|
@@ -46997,7 +47004,7 @@ import { EuiBadgeGroup as EuiBadgeGroup2 } from "@elastic/eui";
|
|
|
46997
47004
|
import { useTranslations as useTranslations50 } from "next-intl";
|
|
46998
47005
|
import { useRouter as useRouter7 } from "next/router";
|
|
46999
47006
|
import { EuiSpacer as EuiSpacer16, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
|
|
47000
|
-
import { Fragment as
|
|
47007
|
+
import { Fragment as Fragment38, jsx as jsx184, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
47001
47008
|
var metaDataTabs = [
|
|
47002
47009
|
{
|
|
47003
47010
|
id: 1,
|
|
@@ -47032,7 +47039,7 @@ var WfoMetadataPageLayout = ({
|
|
|
47032
47039
|
const router = useRouter7();
|
|
47033
47040
|
const t = useTranslations50("metadata");
|
|
47034
47041
|
const currentPath = router.pathname;
|
|
47035
|
-
return /* @__PURE__ */ jsxs93(
|
|
47042
|
+
return /* @__PURE__ */ jsxs93(Fragment38, { children: [
|
|
47036
47043
|
/* @__PURE__ */ jsx184(WfoContentHeader, { title: t("title") }),
|
|
47037
47044
|
/* @__PURE__ */ jsx184(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx184(
|
|
47038
47045
|
EuiTab2,
|
|
@@ -47049,7 +47056,7 @@ var WfoMetadataPageLayout = ({
|
|
|
47049
47056
|
};
|
|
47050
47057
|
|
|
47051
47058
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
47052
|
-
import { Fragment as
|
|
47059
|
+
import { Fragment as Fragment39, jsx as jsx185, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
47053
47060
|
var PRODUCT_BLOCK_FIELD_NAME = "name";
|
|
47054
47061
|
var WfoProductBlocksPage = () => {
|
|
47055
47062
|
const t = useTranslations51("metadata.productBlocks");
|
|
@@ -47110,7 +47117,7 @@ var WfoProductBlocksPage = () => {
|
|
|
47110
47117
|
dependsOn: {
|
|
47111
47118
|
columnType: "data" /* DATA */,
|
|
47112
47119
|
label: t("dependingProductBlocks"),
|
|
47113
|
-
renderData: (dependsOn) => /* @__PURE__ */ jsx185(
|
|
47120
|
+
renderData: (dependsOn) => /* @__PURE__ */ jsx185(Fragment39, { children: dependsOn.map(({ name }, index) => /* @__PURE__ */ jsx185(
|
|
47114
47121
|
WfoProductBlockBadge,
|
|
47115
47122
|
{
|
|
47116
47123
|
link: getQueryUrl(
|
|
@@ -47133,7 +47140,7 @@ var WfoProductBlocksPage = () => {
|
|
|
47133
47140
|
columnType: "data" /* DATA */,
|
|
47134
47141
|
label: t("resourceTypes"),
|
|
47135
47142
|
width: "700px",
|
|
47136
|
-
renderData: (resourceTypes) => /* @__PURE__ */ jsx185(
|
|
47143
|
+
renderData: (resourceTypes) => /* @__PURE__ */ jsx185(Fragment39, { children: resourceTypes.map(({ resourceType }, index) => /* @__PURE__ */ jsx185(
|
|
47137
47144
|
WfoProductBlockBadge,
|
|
47138
47145
|
{
|
|
47139
47146
|
link: getQueryUrl(
|
|
@@ -47259,7 +47266,7 @@ var WfoProductBlocksPage = () => {
|
|
|
47259
47266
|
import { useEffect as useEffect22, useState as useState36 } from "react";
|
|
47260
47267
|
import { useTranslations as useTranslations52 } from "next-intl";
|
|
47261
47268
|
import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
|
|
47262
|
-
import { Fragment as
|
|
47269
|
+
import { Fragment as Fragment40, jsx as jsx186, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
47263
47270
|
var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
|
|
47264
47271
|
var WfoResourceTypesPage = () => {
|
|
47265
47272
|
const t = useTranslations52("metadata.resourceTypes");
|
|
@@ -47310,7 +47317,7 @@ var WfoResourceTypesPage = () => {
|
|
|
47310
47317
|
columnType: "data" /* DATA */,
|
|
47311
47318
|
label: t("usedInProductBlocks"),
|
|
47312
47319
|
width: "1000px",
|
|
47313
|
-
renderData: (productBlocks) => /* @__PURE__ */ jsx186(
|
|
47320
|
+
renderData: (productBlocks) => /* @__PURE__ */ jsx186(Fragment40, { children: productBlocks.map(({ name }, index) => /* @__PURE__ */ jsx186(
|
|
47314
47321
|
WfoProductBlockBadge,
|
|
47315
47322
|
{
|
|
47316
47323
|
link: getQueryUrl(
|
|
@@ -47418,7 +47425,7 @@ var WfoResourceTypesPage = () => {
|
|
|
47418
47425
|
// src/pages/metadata/WfoProductsPage.tsx
|
|
47419
47426
|
import { useEffect as useEffect23, useState as useState37 } from "react";
|
|
47420
47427
|
import { useTranslations as useTranslations53 } from "next-intl";
|
|
47421
|
-
import { Fragment as
|
|
47428
|
+
import { Fragment as Fragment41, jsx as jsx187, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
47422
47429
|
var PRODUCT_FIELD_NAME = "name";
|
|
47423
47430
|
var WfoProductsPage = () => {
|
|
47424
47431
|
const t = useTranslations53("metadata.products");
|
|
@@ -47487,7 +47494,7 @@ var WfoProductsPage = () => {
|
|
|
47487
47494
|
columnType: "data" /* DATA */,
|
|
47488
47495
|
label: t("fixedInputs"),
|
|
47489
47496
|
width: "400px",
|
|
47490
|
-
renderData: (fixedInputs) => /* @__PURE__ */ jsx187(
|
|
47497
|
+
renderData: (fixedInputs) => /* @__PURE__ */ jsx187(Fragment41, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx187(
|
|
47491
47498
|
WfoProductBlockBadge,
|
|
47492
47499
|
{
|
|
47493
47500
|
badgeType: "fixed_input" /* FIXED_INPUT */,
|
|
@@ -47506,7 +47513,7 @@ var WfoProductsPage = () => {
|
|
|
47506
47513
|
columnType: "data" /* DATA */,
|
|
47507
47514
|
label: t("productBlocks"),
|
|
47508
47515
|
width: "250px",
|
|
47509
|
-
renderData: (productBlocks) => /* @__PURE__ */ jsx187(
|
|
47516
|
+
renderData: (productBlocks) => /* @__PURE__ */ jsx187(Fragment41, { children: productBlocks.map(({ name }, index) => /* @__PURE__ */ jsx187(
|
|
47510
47517
|
WfoProductBlockBadge,
|
|
47511
47518
|
{
|
|
47512
47519
|
link: getQueryUrl(
|
|
@@ -47657,7 +47664,7 @@ var graphQlWorkflowListMapper = ({
|
|
|
47657
47664
|
});
|
|
47658
47665
|
|
|
47659
47666
|
// src/pages/metadata/WfoWorkflowsPage.tsx
|
|
47660
|
-
import { Fragment as
|
|
47667
|
+
import { Fragment as Fragment42, jsx as jsx188, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
47661
47668
|
var WfoWorkflowsPage = () => {
|
|
47662
47669
|
const t = useTranslations54("metadata.workflows");
|
|
47663
47670
|
const tError = useTranslations54("errors");
|
|
@@ -47705,7 +47712,7 @@ var WfoWorkflowsPage = () => {
|
|
|
47705
47712
|
columnType: "data" /* DATA */,
|
|
47706
47713
|
label: t("productTags"),
|
|
47707
47714
|
width: "300px",
|
|
47708
|
-
renderData: (productTags) => /* @__PURE__ */ jsx188(
|
|
47715
|
+
renderData: (productTags) => /* @__PURE__ */ jsx188(Fragment42, { children: productTags?.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx188(
|
|
47709
47716
|
WfoProductBlockBadge,
|
|
47710
47717
|
{
|
|
47711
47718
|
link: getQueryUrl(
|
|
@@ -47857,7 +47864,7 @@ var graphQlTaskListMapper = ({
|
|
|
47857
47864
|
});
|
|
47858
47865
|
|
|
47859
47866
|
// src/pages/metadata/WfoTasksPage.tsx
|
|
47860
|
-
import { Fragment as
|
|
47867
|
+
import { Fragment as Fragment43, jsx as jsx189, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
47861
47868
|
var WfoTasksPage = () => {
|
|
47862
47869
|
const t = useTranslations55("metadata.tasks");
|
|
47863
47870
|
const tError = useTranslations55("errors");
|
|
@@ -47905,7 +47912,7 @@ var WfoTasksPage = () => {
|
|
|
47905
47912
|
columnType: "data" /* DATA */,
|
|
47906
47913
|
label: t("productTags"),
|
|
47907
47914
|
width: "250px",
|
|
47908
|
-
renderData: (productTags) => /* @__PURE__ */ jsx189(
|
|
47915
|
+
renderData: (productTags) => /* @__PURE__ */ jsx189(Fragment43, { children: productTags?.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx189(
|
|
47909
47916
|
WfoProductBlockBadge,
|
|
47910
47917
|
{
|
|
47911
47918
|
link: getQueryUrl(
|
|
@@ -48027,7 +48034,7 @@ var WfoTasksPage = () => {
|
|
|
48027
48034
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
48028
48035
|
import Link9 from "next/link";
|
|
48029
48036
|
import { EuiFlexGroup as EuiFlexGroup19 } from "@elastic/eui";
|
|
48030
|
-
import { Fragment as
|
|
48037
|
+
import { Fragment as Fragment44, jsx as jsx190, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
48031
48038
|
var RENDER_ALL = "RENDER_ALL";
|
|
48032
48039
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
48033
48040
|
RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
|
|
@@ -48045,7 +48052,7 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
48045
48052
|
}
|
|
48046
48053
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
48047
48054
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
48048
|
-
return /* @__PURE__ */ jsx190(
|
|
48055
|
+
return /* @__PURE__ */ jsx190(Fragment44, { children: /* @__PURE__ */ jsxs99(
|
|
48049
48056
|
EuiFlexGroup19,
|
|
48050
48057
|
{
|
|
48051
48058
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
@@ -48158,7 +48165,7 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
48158
48165
|
};
|
|
48159
48166
|
|
|
48160
48167
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
48161
|
-
import { Fragment as
|
|
48168
|
+
import { Fragment as Fragment45, jsx as jsx191, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
48162
48169
|
var ProcessHeaderValue = ({
|
|
48163
48170
|
translationKey,
|
|
48164
48171
|
value = ""
|
|
@@ -48272,7 +48279,7 @@ var WfoProcessDetail = ({
|
|
|
48272
48279
|
router.push(PATH_TASKS);
|
|
48273
48280
|
}
|
|
48274
48281
|
});
|
|
48275
|
-
return /* @__PURE__ */ jsxs100(
|
|
48282
|
+
return /* @__PURE__ */ jsxs100(Fragment45, { children: [
|
|
48276
48283
|
/* @__PURE__ */ jsxs100(
|
|
48277
48284
|
WfoContentHeader,
|
|
48278
48285
|
{
|
|
@@ -48314,7 +48321,7 @@ var WfoProcessDetail = ({
|
|
|
48314
48321
|
children: t("abort")
|
|
48315
48322
|
}
|
|
48316
48323
|
) }),
|
|
48317
|
-
/* @__PURE__ */ jsx191(
|
|
48324
|
+
/* @__PURE__ */ jsx191(Fragment45, { children: processDetail && processIsTask && /* @__PURE__ */ jsx191(
|
|
48318
48325
|
WfoIsAllowedToRender,
|
|
48319
48326
|
{
|
|
48320
48327
|
resource: "/orchestrator/processes/delete/" /* PROCESS_DELETE */,
|
|
@@ -48795,7 +48802,7 @@ var WfoStepForm = ({
|
|
|
48795
48802
|
};
|
|
48796
48803
|
|
|
48797
48804
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
48798
|
-
import { Fragment as
|
|
48805
|
+
import { Fragment as Fragment46, jsx as jsx195, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
48799
48806
|
var WfoStep = React62.forwardRef(
|
|
48800
48807
|
({
|
|
48801
48808
|
stepListItem,
|
|
@@ -48879,7 +48886,7 @@ var WfoStep = React62.forwardRef(
|
|
|
48879
48886
|
step.executed && `- ${formatDate(step.executed)}`
|
|
48880
48887
|
] })
|
|
48881
48888
|
] }),
|
|
48882
|
-
/* @__PURE__ */ jsx195(EuiFlexGroup21, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs102(
|
|
48889
|
+
/* @__PURE__ */ jsx195(EuiFlexGroup21, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs102(Fragment46, { children: [
|
|
48883
48890
|
isExpanded && /* @__PURE__ */ jsx195(
|
|
48884
48891
|
EuiButton11,
|
|
48885
48892
|
{
|
|
@@ -48950,7 +48957,7 @@ WfoStep.displayName = "WfoStep";
|
|
|
48950
48957
|
|
|
48951
48958
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
48952
48959
|
import React63, { useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
|
|
48953
|
-
import { Fragment as
|
|
48960
|
+
import { Fragment as Fragment47, jsx as jsx196, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
48954
48961
|
var WfoStepList = React63.forwardRef(
|
|
48955
48962
|
({
|
|
48956
48963
|
stepListItems,
|
|
@@ -48996,7 +49003,7 @@ var WfoStepList = React63.forwardRef(
|
|
|
48996
49003
|
stepReferences.current.delete(stepId);
|
|
48997
49004
|
}
|
|
48998
49005
|
};
|
|
48999
|
-
return /* @__PURE__ */ jsx196(
|
|
49006
|
+
return /* @__PURE__ */ jsx196(Fragment47, { children: stepListItems.map((stepListItem, index) => {
|
|
49000
49007
|
const stepComponent = /* @__PURE__ */ jsxs103("div", { children: [
|
|
49001
49008
|
index !== 0 && /* @__PURE__ */ jsx196("div", { css: stepSpacerStyle }),
|
|
49002
49009
|
/* @__PURE__ */ jsx196(
|
|
@@ -49179,18 +49186,18 @@ var getStyles15 = ({ theme }) => {
|
|
|
49179
49186
|
};
|
|
49180
49187
|
|
|
49181
49188
|
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
49182
|
-
import { Fragment as
|
|
49189
|
+
import { Fragment as Fragment48, jsx as jsx198, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
|
|
49183
49190
|
var WfoTraceback = ({ children }) => {
|
|
49184
49191
|
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles15);
|
|
49185
49192
|
const t = useTranslations59("processes.steps");
|
|
49186
|
-
return /* @__PURE__ */ jsxs105(
|
|
49193
|
+
return /* @__PURE__ */ jsxs105(Fragment48, { children: [
|
|
49187
49194
|
/* @__PURE__ */ jsx198(EuiText35, { children: /* @__PURE__ */ jsx198("h3", { children: t("traceback") }) }),
|
|
49188
49195
|
/* @__PURE__ */ jsx198(EuiCodeBlock, { css: codeBlockStyle, children })
|
|
49189
49196
|
] });
|
|
49190
49197
|
};
|
|
49191
49198
|
|
|
49192
49199
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
49193
|
-
import { Fragment as
|
|
49200
|
+
import { Fragment as Fragment49, jsx as jsx199, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
|
|
49194
49201
|
var WfoProcessRawData = ({ processId }) => {
|
|
49195
49202
|
const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
|
|
49196
49203
|
return isFetching ? /* @__PURE__ */ jsx199(WfoLoading, {}) : /* @__PURE__ */ jsx199(WfoJsonCodeBlock, { data: data || {} });
|
|
@@ -49285,7 +49292,7 @@ var WfoWorkflowStepList = React65.forwardRef(
|
|
|
49285
49292
|
"aborted" /* ABORTED */,
|
|
49286
49293
|
"completed" /* COMPLETED */
|
|
49287
49294
|
].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
|
|
49288
|
-
return /* @__PURE__ */ jsxs106(
|
|
49295
|
+
return /* @__PURE__ */ jsxs106(Fragment49, { children: [
|
|
49289
49296
|
/* @__PURE__ */ jsx199(
|
|
49290
49297
|
WfoStepListHeader,
|
|
49291
49298
|
{
|
|
@@ -49529,9 +49536,10 @@ var WfoStartProcessPage = ({
|
|
|
49529
49536
|
const [startProcess] = useStartProcessMutation();
|
|
49530
49537
|
const startProcessPayload = useMemo5(
|
|
49531
49538
|
() => getInitialProcessPayload({
|
|
49532
|
-
productId
|
|
49539
|
+
productId,
|
|
49540
|
+
subscriptionId
|
|
49533
49541
|
}),
|
|
49534
|
-
[productId]
|
|
49542
|
+
[productId, subscriptionId]
|
|
49535
49543
|
);
|
|
49536
49544
|
const { stepUserInput, hasNext } = form;
|
|
49537
49545
|
const { getStepHeaderStyle, stepListContentBoldTextStyle } = useWithOrchestratorTheme(getStyles14);
|
|
@@ -49685,11 +49693,11 @@ var WfoProductInformationWithLink = ({
|
|
|
49685
49693
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
49686
49694
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
49687
49695
|
import { EuiHorizontalRule as EuiHorizontalRule6, EuiSpacer as EuiSpacer19 } from "@elastic/eui";
|
|
49688
|
-
import { Fragment as
|
|
49696
|
+
import { Fragment as Fragment50, jsx as jsx204, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
|
|
49689
49697
|
var WfoSettingsPage = () => {
|
|
49690
49698
|
const { theme } = useOrchestratorTheme();
|
|
49691
49699
|
const t = useTranslations64("main");
|
|
49692
|
-
return /* @__PURE__ */ jsxs110(
|
|
49700
|
+
return /* @__PURE__ */ jsxs110(Fragment50, { children: [
|
|
49693
49701
|
/* @__PURE__ */ jsx204(
|
|
49694
49702
|
WfoContentHeader,
|
|
49695
49703
|
{
|
|
@@ -49724,7 +49732,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
|
|
|
49724
49732
|
};
|
|
49725
49733
|
|
|
49726
49734
|
// src/pages/startPage/WfoStartPage.tsx
|
|
49727
|
-
import { Fragment as
|
|
49735
|
+
import { Fragment as Fragment51, jsx as jsx205, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
|
|
49728
49736
|
var WfoStartPage = () => {
|
|
49729
49737
|
const t = useTranslations65("main");
|
|
49730
49738
|
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
@@ -49746,7 +49754,7 @@ var WfoStartPage = () => {
|
|
|
49746
49754
|
/* @__PURE__ */ jsx205(WfoProductsSummaryCard, {}, "products")
|
|
49747
49755
|
];
|
|
49748
49756
|
const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
|
|
49749
|
-
return /* @__PURE__ */ jsxs111(
|
|
49757
|
+
return /* @__PURE__ */ jsxs111(Fragment51, { children: [
|
|
49750
49758
|
/* @__PURE__ */ jsx205(
|
|
49751
49759
|
WfoContentHeader,
|
|
49752
49760
|
{
|
|
@@ -49771,11 +49779,11 @@ var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
|
|
|
49771
49779
|
|
|
49772
49780
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
49773
49781
|
import { useRouter as useRouter10 } from "next/router";
|
|
49774
|
-
import { Fragment as
|
|
49782
|
+
import { Fragment as Fragment52, jsx as jsx206 } from "@emotion/react/jsx-runtime";
|
|
49775
49783
|
var WfoSubscriptionDetailPage = () => {
|
|
49776
49784
|
const router = useRouter10();
|
|
49777
49785
|
const { subscriptionId } = router.query;
|
|
49778
|
-
return subscriptionId && /* @__PURE__ */ jsx206(TreeProvider, { children: /* @__PURE__ */ jsx206(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx206(
|
|
49786
|
+
return subscriptionId && /* @__PURE__ */ jsx206(TreeProvider, { children: /* @__PURE__ */ jsx206(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx206(Fragment52, {});
|
|
49779
49787
|
};
|
|
49780
49788
|
|
|
49781
49789
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
@@ -49783,7 +49791,7 @@ import { useEffect as useEffect29, useState as useState46 } from "react";
|
|
|
49783
49791
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
49784
49792
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
49785
49793
|
import { EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
49786
|
-
import { Fragment as
|
|
49794
|
+
import { Fragment as Fragment53, jsx as jsx207, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
|
|
49787
49795
|
var WfoSubscriptionsListPage = () => {
|
|
49788
49796
|
const t = useTranslations66("subscriptions.detail");
|
|
49789
49797
|
const [tableDefaults, setTableDefaults] = useState46();
|
|
@@ -49821,7 +49829,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
49821
49829
|
const alwaysOnFilters = subscriptionListTabs.find(
|
|
49822
49830
|
({ id }) => id === activeTab
|
|
49823
49831
|
)?.alwaysOnFilters;
|
|
49824
|
-
return /* @__PURE__ */ jsxs112(
|
|
49832
|
+
return /* @__PURE__ */ jsxs112(Fragment53, { children: [
|
|
49825
49833
|
/* @__PURE__ */ jsx207(
|
|
49826
49834
|
WfoContentHeader,
|
|
49827
49835
|
{
|
|
@@ -49921,7 +49929,7 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
49921
49929
|
};
|
|
49922
49930
|
|
|
49923
49931
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
49924
|
-
import { Fragment as
|
|
49932
|
+
import { Fragment as Fragment54, jsx as jsx208, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
|
|
49925
49933
|
var WfoTasksListPage = () => {
|
|
49926
49934
|
const router = useRouter11();
|
|
49927
49935
|
const t = useTranslations67("tasks.page");
|
|
@@ -49995,7 +50003,7 @@ var WfoTasksListPage = () => {
|
|
|
49995
50003
|
"lastModifiedAt"
|
|
49996
50004
|
])
|
|
49997
50005
|
});
|
|
49998
|
-
return /* @__PURE__ */ jsxs113(
|
|
50006
|
+
return /* @__PURE__ */ jsxs113(Fragment54, { children: [
|
|
49999
50007
|
/* @__PURE__ */ jsxs113(
|
|
50000
50008
|
WfoContentHeader,
|
|
50001
50009
|
{
|
|
@@ -50107,7 +50115,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
50107
50115
|
};
|
|
50108
50116
|
|
|
50109
50117
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
50110
|
-
import { Fragment as
|
|
50118
|
+
import { Fragment as Fragment55, jsx as jsx209, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
|
|
50111
50119
|
var WfoWorkflowsListPage = () => {
|
|
50112
50120
|
const router = useRouter12();
|
|
50113
50121
|
const t = useTranslations68("workflows.index");
|
|
@@ -50145,7 +50153,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
50145
50153
|
router.replace(PATH_WORKFLOWS);
|
|
50146
50154
|
return null;
|
|
50147
50155
|
}
|
|
50148
|
-
return /* @__PURE__ */ jsxs114(
|
|
50156
|
+
return /* @__PURE__ */ jsxs114(Fragment55, { children: [
|
|
50149
50157
|
/* @__PURE__ */ jsx209(
|
|
50150
50158
|
WfoContentHeader,
|
|
50151
50159
|
{
|
|
@@ -50790,7 +50798,7 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
50790
50798
|
};
|
|
50791
50799
|
|
|
50792
50800
|
// src/components/WfoRenderElementOrString/WfoRenderElementOrString.tsx
|
|
50793
|
-
import { Fragment as
|
|
50801
|
+
import { Fragment as Fragment56, jsx as jsx219 } from "@emotion/react/jsx-runtime";
|
|
50794
50802
|
var WfoRenderElementOrString = ({
|
|
50795
50803
|
children,
|
|
50796
50804
|
renderString
|
|
@@ -50798,7 +50806,7 @@ var WfoRenderElementOrString = ({
|
|
|
50798
50806
|
if (typeof children === "string" && renderString) {
|
|
50799
50807
|
return renderString(children);
|
|
50800
50808
|
}
|
|
50801
|
-
return /* @__PURE__ */ jsx219(
|
|
50809
|
+
return /* @__PURE__ */ jsx219(Fragment56, { children });
|
|
50802
50810
|
};
|
|
50803
50811
|
|
|
50804
50812
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
@@ -50919,7 +50927,112 @@ var subscriptionListTabs = [
|
|
|
50919
50927
|
import { useTranslations as useTranslations77 } from "next-intl";
|
|
50920
50928
|
import Link12 from "next/link";
|
|
50921
50929
|
import { useRouter as useRouter14 } from "next/router";
|
|
50930
|
+
|
|
50931
|
+
// src/rtk/endpoints/subscriptionListMutation.ts
|
|
50932
|
+
var subscriptionListMutationApi = orchestratorApi.injectEndpoints({
|
|
50933
|
+
endpoints: (builder) => ({
|
|
50934
|
+
emptyQuery: builder.query({ query: () => ({}) }),
|
|
50935
|
+
emptyDetailQuery: builder.query({ query: () => ({}) }),
|
|
50936
|
+
updateSubscriptionNoteOptimistic: builder.mutation({
|
|
50937
|
+
queryFn: async () => ({ data: { mockResponse: true } }),
|
|
50938
|
+
async onQueryStarted({ queryName, subscriptionId, graphQlQueryVariables, ...patch }, { dispatch, queryFulfilled }) {
|
|
50939
|
+
const patchResult = dispatch(
|
|
50940
|
+
subscriptionListMutationApi.util.updateQueryData(
|
|
50941
|
+
// @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyQuery and queryName
|
|
50942
|
+
queryName,
|
|
50943
|
+
graphQlQueryVariables,
|
|
50944
|
+
(draft) => {
|
|
50945
|
+
const subscription = draft.subscriptions.find(
|
|
50946
|
+
(item) => item.subscriptionId === subscriptionId
|
|
50947
|
+
);
|
|
50948
|
+
if (subscription) {
|
|
50949
|
+
subscription.note = patch.note;
|
|
50950
|
+
}
|
|
50951
|
+
}
|
|
50952
|
+
)
|
|
50953
|
+
);
|
|
50954
|
+
try {
|
|
50955
|
+
await queryFulfilled;
|
|
50956
|
+
} catch {
|
|
50957
|
+
patchResult.undo();
|
|
50958
|
+
}
|
|
50959
|
+
}
|
|
50960
|
+
}),
|
|
50961
|
+
updateSubscriptionDetailNoteOptimistic: builder.mutation({
|
|
50962
|
+
queryFn: async () => ({ data: { mockResponse: true } }),
|
|
50963
|
+
async onQueryStarted({ queryName, subscriptionId, ...patch }, { dispatch, queryFulfilled }) {
|
|
50964
|
+
const patchResult = dispatch(
|
|
50965
|
+
subscriptionListMutationApi.util.updateQueryData(
|
|
50966
|
+
// @ts-expect-error - Suggest ts ignore because of the type mismatch between emptyDetailQuery and queryName
|
|
50967
|
+
queryName,
|
|
50968
|
+
{ subscriptionId },
|
|
50969
|
+
(draft) => {
|
|
50970
|
+
if (draft) {
|
|
50971
|
+
draft.subscription.note = patch.note;
|
|
50972
|
+
}
|
|
50973
|
+
}
|
|
50974
|
+
)
|
|
50975
|
+
);
|
|
50976
|
+
try {
|
|
50977
|
+
await queryFulfilled;
|
|
50978
|
+
} catch {
|
|
50979
|
+
patchResult.undo();
|
|
50980
|
+
}
|
|
50981
|
+
}
|
|
50982
|
+
})
|
|
50983
|
+
})
|
|
50984
|
+
});
|
|
50985
|
+
var {
|
|
50986
|
+
useUpdateSubscriptionNoteOptimisticMutation,
|
|
50987
|
+
useUpdateSubscriptionDetailNoteOptimisticMutation
|
|
50988
|
+
} = subscriptionListMutationApi;
|
|
50989
|
+
|
|
50990
|
+
// src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
|
|
50922
50991
|
import { jsx as jsx221 } from "@emotion/react/jsx-runtime";
|
|
50992
|
+
var WfoSubscriptionNoteEdit = ({
|
|
50993
|
+
subscriptionId,
|
|
50994
|
+
onlyShowOnHover = false,
|
|
50995
|
+
queryVariables,
|
|
50996
|
+
useQuery
|
|
50997
|
+
}) => {
|
|
50998
|
+
const { selectedItem } = useQuery(queryVariables, {
|
|
50999
|
+
selectFromResult: (result) => ({
|
|
51000
|
+
selectedItem: result?.data?.subscriptions?.find(
|
|
51001
|
+
(sub) => sub.subscriptionId === subscriptionId
|
|
51002
|
+
)
|
|
51003
|
+
})
|
|
51004
|
+
});
|
|
51005
|
+
const endpointName = useQuery().endpointName;
|
|
51006
|
+
const [startProcess] = useStartProcessMutation();
|
|
51007
|
+
const [updateSub] = useUpdateSubscriptionNoteOptimisticMutation();
|
|
51008
|
+
const triggerNoteModifyWorkflow = (note) => {
|
|
51009
|
+
const noteModifyPayload = [
|
|
51010
|
+
{ subscription_id: subscriptionId },
|
|
51011
|
+
{ note: note === INVISIBLE_CHARACTER ? "" : note }
|
|
51012
|
+
];
|
|
51013
|
+
startProcess({
|
|
51014
|
+
workflowName: "modify_note",
|
|
51015
|
+
userInputs: noteModifyPayload
|
|
51016
|
+
});
|
|
51017
|
+
updateSub({
|
|
51018
|
+
queryName: endpointName ?? "",
|
|
51019
|
+
subscriptionId,
|
|
51020
|
+
graphQlQueryVariables: queryVariables,
|
|
51021
|
+
note
|
|
51022
|
+
});
|
|
51023
|
+
};
|
|
51024
|
+
return /* @__PURE__ */ jsx221(
|
|
51025
|
+
WfoInlineNoteEdit,
|
|
51026
|
+
{
|
|
51027
|
+
value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
|
|
51028
|
+
onlyShowOnHover,
|
|
51029
|
+
triggerNoteModifyWorkflow
|
|
51030
|
+
}
|
|
51031
|
+
);
|
|
51032
|
+
};
|
|
51033
|
+
|
|
51034
|
+
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
51035
|
+
import { jsx as jsx222 } from "@emotion/react/jsx-runtime";
|
|
50923
51036
|
var WfoSubscriptionsList = ({
|
|
50924
51037
|
alwaysOnFilters,
|
|
50925
51038
|
dataDisplayParams,
|
|
@@ -50935,7 +51048,7 @@ var WfoSubscriptionsList = ({
|
|
|
50935
51048
|
columnType: "data" /* DATA */,
|
|
50936
51049
|
label: t("id"),
|
|
50937
51050
|
width: "100px",
|
|
50938
|
-
renderData: (value) => /* @__PURE__ */
|
|
51051
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoFirstPartUUID, { UUID: value }),
|
|
50939
51052
|
renderDetails: (value) => value,
|
|
50940
51053
|
renderTooltip: (value) => value
|
|
50941
51054
|
},
|
|
@@ -50943,20 +51056,20 @@ var WfoSubscriptionsList = ({
|
|
|
50943
51056
|
columnType: "data" /* DATA */,
|
|
50944
51057
|
label: t("description"),
|
|
50945
51058
|
width: "500px",
|
|
50946
|
-
renderData: (value, record) => /* @__PURE__ */
|
|
51059
|
+
renderData: (value, record) => /* @__PURE__ */ jsx222(Link12, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
|
|
50947
51060
|
renderTooltip: (value) => value
|
|
50948
51061
|
},
|
|
50949
51062
|
status: {
|
|
50950
51063
|
columnType: "data" /* DATA */,
|
|
50951
51064
|
label: t("status"),
|
|
50952
51065
|
width: "120px",
|
|
50953
|
-
renderData: (value) => /* @__PURE__ */
|
|
51066
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoSubscriptionStatusBadge, { status: value })
|
|
50954
51067
|
},
|
|
50955
51068
|
insync: {
|
|
50956
51069
|
columnType: "data" /* DATA */,
|
|
50957
51070
|
label: t("insync"),
|
|
50958
51071
|
width: "80px",
|
|
50959
|
-
renderData: (value) => /* @__PURE__ */
|
|
51072
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoInsyncIcon, { inSync: value })
|
|
50960
51073
|
},
|
|
50961
51074
|
productName: {
|
|
50962
51075
|
columnType: "data" /* DATA */,
|
|
@@ -50980,7 +51093,7 @@ var WfoSubscriptionsList = ({
|
|
|
50980
51093
|
columnType: "data" /* DATA */,
|
|
50981
51094
|
label: t("startDate"),
|
|
50982
51095
|
width: "120px",
|
|
50983
|
-
renderData: (value) => /* @__PURE__ */
|
|
51096
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoDateTime, { dateOrIsoString: value }),
|
|
50984
51097
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
50985
51098
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
50986
51099
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -50989,7 +51102,7 @@ var WfoSubscriptionsList = ({
|
|
|
50989
51102
|
columnType: "data" /* DATA */,
|
|
50990
51103
|
label: t("endDate"),
|
|
50991
51104
|
width: "120px",
|
|
50992
|
-
renderData: (value) => /* @__PURE__ */
|
|
51105
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoDateTime, { dateOrIsoString: value }),
|
|
50993
51106
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
50994
51107
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
50995
51108
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -50997,22 +51110,25 @@ var WfoSubscriptionsList = ({
|
|
|
50997
51110
|
note: {
|
|
50998
51111
|
columnType: "data" /* DATA */,
|
|
50999
51112
|
label: t("note"),
|
|
51000
|
-
renderData: (cellValue, row) =>
|
|
51001
|
-
|
|
51002
|
-
|
|
51003
|
-
|
|
51004
|
-
|
|
51005
|
-
|
|
51006
|
-
|
|
51007
|
-
|
|
51113
|
+
renderData: (cellValue, row) => {
|
|
51114
|
+
return /* @__PURE__ */ jsx222(
|
|
51115
|
+
WfoSubscriptionNoteEdit,
|
|
51116
|
+
{
|
|
51117
|
+
queryVariables: graphqlQueryVariables,
|
|
51118
|
+
subscriptionId: row.subscriptionId,
|
|
51119
|
+
onlyShowOnHover: true,
|
|
51120
|
+
useQuery: useGetSubscriptionListQuery
|
|
51121
|
+
}
|
|
51122
|
+
);
|
|
51123
|
+
}
|
|
51008
51124
|
},
|
|
51009
51125
|
metadata: {
|
|
51010
51126
|
columnType: "data" /* DATA */,
|
|
51011
51127
|
label: t("metadata"),
|
|
51012
51128
|
width: "100px",
|
|
51013
|
-
renderData: (value) => /* @__PURE__ */
|
|
51014
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
51015
|
-
renderTooltip: (value) => value && /* @__PURE__ */
|
|
51129
|
+
renderData: (value) => /* @__PURE__ */ jsx222(WfoInlineJson, { data: value }),
|
|
51130
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx222(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
|
|
51131
|
+
renderTooltip: (value) => value && /* @__PURE__ */ jsx222(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
|
|
51016
51132
|
}
|
|
51017
51133
|
};
|
|
51018
51134
|
const { sortBy: sortBy2, queryString, pageIndex, pageSize } = dataDisplayParams;
|
|
@@ -51053,7 +51169,7 @@ var WfoSubscriptionsList = ({
|
|
|
51053
51169
|
),
|
|
51054
51170
|
onChangeItemsPerPage: getPageSizeChangeHandler(setDataDisplayParam)
|
|
51055
51171
|
};
|
|
51056
|
-
return /* @__PURE__ */
|
|
51172
|
+
return /* @__PURE__ */ jsx222(
|
|
51057
51173
|
WfoAdvancedTable,
|
|
51058
51174
|
{
|
|
51059
51175
|
queryString: dataDisplayParams.queryString,
|
|
@@ -51139,7 +51255,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
|
51139
51255
|
};
|
|
51140
51256
|
|
|
51141
51257
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
51142
|
-
import { jsx as
|
|
51258
|
+
import { jsx as jsx223, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
51143
51259
|
var WfoSummaryCardHeader = ({
|
|
51144
51260
|
text,
|
|
51145
51261
|
value,
|
|
@@ -51148,8 +51264,8 @@ var WfoSummaryCardHeader = ({
|
|
|
51148
51264
|
}) => {
|
|
51149
51265
|
const { theme } = useOrchestratorTheme();
|
|
51150
51266
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
51151
|
-
return /* @__PURE__ */
|
|
51152
|
-
/* @__PURE__ */
|
|
51267
|
+
return /* @__PURE__ */ jsx223(EuiFlexItem31, { grow: 0, children: /* @__PURE__ */ jsx223(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs122(EuiFlexGroup29, { children: [
|
|
51268
|
+
/* @__PURE__ */ jsx223(
|
|
51153
51269
|
EuiAvatar2,
|
|
51154
51270
|
{
|
|
51155
51271
|
iconSize: "l",
|
|
@@ -51163,8 +51279,8 @@ var WfoSummaryCardHeader = ({
|
|
|
51163
51279
|
}
|
|
51164
51280
|
),
|
|
51165
51281
|
/* @__PURE__ */ jsxs122("div", { css: totalSectionStyle, children: [
|
|
51166
|
-
/* @__PURE__ */
|
|
51167
|
-
/* @__PURE__ */
|
|
51282
|
+
/* @__PURE__ */ jsx223(EuiText44, { color: "subdued", children: text }),
|
|
51283
|
+
/* @__PURE__ */ jsx223(EuiText44, { css: valueStyle, children: value })
|
|
51168
51284
|
] })
|
|
51169
51285
|
] }) }) });
|
|
51170
51286
|
};
|
|
@@ -51186,15 +51302,15 @@ import { EuiFlexGroup as EuiFlexGroup30, EuiFlexItem as EuiFlexItem32, EuiIcon a
|
|
|
51186
51302
|
|
|
51187
51303
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
51188
51304
|
import Link13 from "next/link";
|
|
51189
|
-
import { jsx as
|
|
51305
|
+
import { jsx as jsx224 } from "@emotion/react/jsx-runtime";
|
|
51190
51306
|
var WfoOptionalLink = ({
|
|
51191
51307
|
children,
|
|
51192
51308
|
href
|
|
51193
51309
|
}) => {
|
|
51194
51310
|
if (!href) {
|
|
51195
|
-
return /* @__PURE__ */
|
|
51311
|
+
return /* @__PURE__ */ jsx224("span", { children });
|
|
51196
51312
|
}
|
|
51197
|
-
return /* @__PURE__ */
|
|
51313
|
+
return /* @__PURE__ */ jsx224(Link13, { href, children });
|
|
51198
51314
|
};
|
|
51199
51315
|
|
|
51200
51316
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -51244,7 +51360,7 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
51244
51360
|
};
|
|
51245
51361
|
|
|
51246
51362
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
51247
|
-
import { jsx as
|
|
51363
|
+
import { jsx as jsx225, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
51248
51364
|
var WfoSummaryCardListItem = ({
|
|
51249
51365
|
title,
|
|
51250
51366
|
value,
|
|
@@ -51257,9 +51373,9 @@ var WfoSummaryCardListItem = ({
|
|
|
51257
51373
|
listItemSubtitleStyle,
|
|
51258
51374
|
listItemHighlightIconStyle
|
|
51259
51375
|
} = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
51260
|
-
return /* @__PURE__ */
|
|
51376
|
+
return /* @__PURE__ */ jsx225(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs123(EuiFlexGroup30, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
51261
51377
|
/* @__PURE__ */ jsxs123(EuiFlexItem32, { children: [
|
|
51262
|
-
/* @__PURE__ */
|
|
51378
|
+
/* @__PURE__ */ jsx225(
|
|
51263
51379
|
EuiTextColor,
|
|
51264
51380
|
{
|
|
51265
51381
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -51267,22 +51383,22 @@ var WfoSummaryCardListItem = ({
|
|
|
51267
51383
|
children: title
|
|
51268
51384
|
}
|
|
51269
51385
|
),
|
|
51270
|
-
/* @__PURE__ */
|
|
51386
|
+
/* @__PURE__ */ jsx225(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
51271
51387
|
] }),
|
|
51272
|
-
/* @__PURE__ */
|
|
51388
|
+
/* @__PURE__ */ jsx225(
|
|
51273
51389
|
EuiFlexItem32,
|
|
51274
51390
|
{
|
|
51275
51391
|
className: url ? "highlight-icon" : void 0,
|
|
51276
51392
|
grow: false,
|
|
51277
51393
|
css: listItemHighlightIconStyle,
|
|
51278
|
-
children: /* @__PURE__ */
|
|
51394
|
+
children: /* @__PURE__ */ jsx225(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
51279
51395
|
}
|
|
51280
51396
|
)
|
|
51281
51397
|
] }) });
|
|
51282
51398
|
};
|
|
51283
51399
|
|
|
51284
51400
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
51285
|
-
import { jsx as
|
|
51401
|
+
import { jsx as jsx226, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
|
|
51286
51402
|
var WfoSummaryCardList = ({
|
|
51287
51403
|
title,
|
|
51288
51404
|
items,
|
|
@@ -51292,7 +51408,7 @@ var WfoSummaryCardList = ({
|
|
|
51292
51408
|
const router = useRouter15();
|
|
51293
51409
|
const euiScrollBarStyle = useEuiScrollBar3();
|
|
51294
51410
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
51295
|
-
return /* @__PURE__ */
|
|
51411
|
+
return /* @__PURE__ */ jsx226(EuiFlexItem33, { children: /* @__PURE__ */ jsxs124(
|
|
51296
51412
|
EuiPanel11,
|
|
51297
51413
|
{
|
|
51298
51414
|
css: listContainerStyle,
|
|
@@ -51301,10 +51417,10 @@ var WfoSummaryCardList = ({
|
|
|
51301
51417
|
paddingSize: "l",
|
|
51302
51418
|
children: [
|
|
51303
51419
|
/* @__PURE__ */ jsxs124("div", { children: [
|
|
51304
|
-
/* @__PURE__ */
|
|
51305
|
-
/* @__PURE__ */
|
|
51306
|
-
/* @__PURE__ */
|
|
51307
|
-
/* @__PURE__ */
|
|
51420
|
+
/* @__PURE__ */ jsx226("p", { css: listHeaderStyle, children: title }),
|
|
51421
|
+
/* @__PURE__ */ jsx226(EuiSpacer25, { size: "m" }),
|
|
51422
|
+
/* @__PURE__ */ jsx226(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx226("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs124("div", { children: [
|
|
51423
|
+
/* @__PURE__ */ jsx226(
|
|
51308
51424
|
WfoSummaryCardListItem,
|
|
51309
51425
|
{
|
|
51310
51426
|
title: item.title,
|
|
@@ -51312,11 +51428,11 @@ var WfoSummaryCardList = ({
|
|
|
51312
51428
|
url: item.url
|
|
51313
51429
|
}
|
|
51314
51430
|
),
|
|
51315
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
51431
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx226(EuiHorizontalRule7, { margin: "none" })
|
|
51316
51432
|
] }, index)) }) })
|
|
51317
51433
|
] }),
|
|
51318
|
-
/* @__PURE__ */
|
|
51319
|
-
button && /* @__PURE__ */
|
|
51434
|
+
/* @__PURE__ */ jsx226(EuiSpacer25, { size: "m" }),
|
|
51435
|
+
button && /* @__PURE__ */ jsx226(
|
|
51320
51436
|
EuiButton17,
|
|
51321
51437
|
{
|
|
51322
51438
|
fullWidth: true,
|
|
@@ -51331,10 +51447,10 @@ var WfoSummaryCardList = ({
|
|
|
51331
51447
|
|
|
51332
51448
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
51333
51449
|
import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
|
|
51334
|
-
import { jsx as
|
|
51450
|
+
import { jsx as jsx227 } from "@emotion/react/jsx-runtime";
|
|
51335
51451
|
var WfoSummaryCards = ({ children }) => {
|
|
51336
51452
|
const currentBreakpoint = useCurrentEuiBreakpoint();
|
|
51337
|
-
return /* @__PURE__ */
|
|
51453
|
+
return /* @__PURE__ */ jsx227(
|
|
51338
51454
|
EuiFlexGrid2,
|
|
51339
51455
|
{
|
|
51340
51456
|
responsive: false,
|
|
@@ -51361,7 +51477,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
|
51361
51477
|
};
|
|
51362
51478
|
|
|
51363
51479
|
// src/components/WfoSummary/WfoSummaryCard.tsx
|
|
51364
|
-
import { jsx as
|
|
51480
|
+
import { jsx as jsx228, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
|
|
51365
51481
|
var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
|
|
51366
51482
|
SummaryCardStatus2["Success"] = "Success";
|
|
51367
51483
|
SummaryCardStatus2["Error"] = "Error";
|
|
@@ -51402,7 +51518,7 @@ var WfoSummaryCard = ({
|
|
|
51402
51518
|
}
|
|
51403
51519
|
};
|
|
51404
51520
|
return /* @__PURE__ */ jsxs125(EuiFlexItem34, { css: cardContainerStyle, children: [
|
|
51405
|
-
/* @__PURE__ */
|
|
51521
|
+
/* @__PURE__ */ jsx228(
|
|
51406
51522
|
WfoSummaryCardHeader,
|
|
51407
51523
|
{
|
|
51408
51524
|
text: headerTitle,
|
|
@@ -51410,8 +51526,8 @@ var WfoSummaryCard = ({
|
|
|
51410
51526
|
...getIconTypeAndColorForHeaderStatus(headerStatus)
|
|
51411
51527
|
}
|
|
51412
51528
|
),
|
|
51413
|
-
/* @__PURE__ */
|
|
51414
|
-
/* @__PURE__ */
|
|
51529
|
+
/* @__PURE__ */ jsx228(EuiSpacer26, { size: "m" }),
|
|
51530
|
+
/* @__PURE__ */ jsx228(
|
|
51415
51531
|
WfoSummaryCardList,
|
|
51416
51532
|
{
|
|
51417
51533
|
title: listTitle,
|
|
@@ -51521,14 +51637,14 @@ var productsSummaryQueryVariables = {
|
|
|
51521
51637
|
};
|
|
51522
51638
|
|
|
51523
51639
|
// src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
|
|
51524
|
-
import { jsx as
|
|
51640
|
+
import { jsx as jsx229 } from "@emotion/react/jsx-runtime";
|
|
51525
51641
|
var WfoActiveWorkflowsSummaryCard = () => {
|
|
51526
51642
|
const t = useTranslations78("startPage.activeWorkflows");
|
|
51527
51643
|
const {
|
|
51528
51644
|
data: activeWorkflowsSummaryResponse,
|
|
51529
51645
|
isFetching: activeWorkflowsSummaryIsFetching
|
|
51530
51646
|
} = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
|
|
51531
|
-
return /* @__PURE__ */
|
|
51647
|
+
return /* @__PURE__ */ jsx229(
|
|
51532
51648
|
WfoSummaryCard,
|
|
51533
51649
|
{
|
|
51534
51650
|
headerTitle: t("headerTitle"),
|
|
@@ -51547,14 +51663,14 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
51547
51663
|
|
|
51548
51664
|
// src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
|
|
51549
51665
|
import { useTranslations as useTranslations79 } from "next-intl";
|
|
51550
|
-
import { jsx as
|
|
51666
|
+
import { jsx as jsx230 } from "@emotion/react/jsx-runtime";
|
|
51551
51667
|
var WfoFailedTasksSummaryCard = () => {
|
|
51552
51668
|
const t = useTranslations79("startPage.failedTasks");
|
|
51553
51669
|
const {
|
|
51554
51670
|
data: failedTasksSummaryResponse,
|
|
51555
51671
|
isFetching: failedTasksSummaryIsFetching
|
|
51556
51672
|
} = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
|
|
51557
|
-
return /* @__PURE__ */
|
|
51673
|
+
return /* @__PURE__ */ jsx230(
|
|
51558
51674
|
WfoSummaryCard,
|
|
51559
51675
|
{
|
|
51560
51676
|
headerTitle: t("headerTitle"),
|
|
@@ -51573,7 +51689,7 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
51573
51689
|
|
|
51574
51690
|
// src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
|
|
51575
51691
|
import { useTranslations as useTranslations80 } from "next-intl";
|
|
51576
|
-
import { jsx as
|
|
51692
|
+
import { jsx as jsx231 } from "@emotion/react/jsx-runtime";
|
|
51577
51693
|
var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
51578
51694
|
const t = useTranslations80("startPage.activeSubscriptions");
|
|
51579
51695
|
const {
|
|
@@ -51582,7 +51698,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
51582
51698
|
} = useGetSubscriptionSummaryListQuery(
|
|
51583
51699
|
subscriptionsListSummaryQueryVariables
|
|
51584
51700
|
);
|
|
51585
|
-
return /* @__PURE__ */
|
|
51701
|
+
return /* @__PURE__ */ jsx231(
|
|
51586
51702
|
WfoSummaryCard,
|
|
51587
51703
|
{
|
|
51588
51704
|
headerTitle: t("headerTitle"),
|
|
@@ -51601,7 +51717,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
51601
51717
|
|
|
51602
51718
|
// src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
|
|
51603
51719
|
import { useTranslations as useTranslations81 } from "next-intl";
|
|
51604
|
-
import { jsx as
|
|
51720
|
+
import { jsx as jsx232 } from "@emotion/react/jsx-runtime";
|
|
51605
51721
|
var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
51606
51722
|
const t = useTranslations81("startPage.outOfSyncSubscriptions");
|
|
51607
51723
|
const {
|
|
@@ -51610,7 +51726,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
51610
51726
|
} = useGetSubscriptionSummaryListQuery(
|
|
51611
51727
|
outOfSyncSubscriptionsListSummaryQueryVariables
|
|
51612
51728
|
);
|
|
51613
|
-
return /* @__PURE__ */
|
|
51729
|
+
return /* @__PURE__ */ jsx232(
|
|
51614
51730
|
WfoSummaryCard,
|
|
51615
51731
|
{
|
|
51616
51732
|
headerTitle: t("headerTitle"),
|
|
@@ -51632,7 +51748,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
51632
51748
|
|
|
51633
51749
|
// src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
|
|
51634
51750
|
import { useTranslations as useTranslations82 } from "next-intl";
|
|
51635
|
-
import { jsx as
|
|
51751
|
+
import { jsx as jsx233 } from "@emotion/react/jsx-runtime";
|
|
51636
51752
|
var WfoMyWorkflowsSummaryCard = ({
|
|
51637
51753
|
username
|
|
51638
51754
|
}) => {
|
|
@@ -51643,7 +51759,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
51643
51759
|
} = useGetProcessListSummaryQuery(
|
|
51644
51760
|
getMyWorkflowListSummaryQueryVariables(username)
|
|
51645
51761
|
);
|
|
51646
|
-
return /* @__PURE__ */
|
|
51762
|
+
return /* @__PURE__ */ jsx233(
|
|
51647
51763
|
WfoSummaryCard,
|
|
51648
51764
|
{
|
|
51649
51765
|
headerTitle: t("headerTitle"),
|
|
@@ -51665,7 +51781,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
51665
51781
|
|
|
51666
51782
|
// src/components/WfoSummary/WfoProductsSummaryCard.tsx
|
|
51667
51783
|
import { useTranslations as useTranslations83 } from "next-intl";
|
|
51668
|
-
import { jsx as
|
|
51784
|
+
import { jsx as jsx234, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
|
|
51669
51785
|
var WfoProductsSummaryCard = () => {
|
|
51670
51786
|
const t = useTranslations83("startPage.products");
|
|
51671
51787
|
const {
|
|
@@ -51684,13 +51800,13 @@ var WfoProductsSummaryCard = () => {
|
|
|
51684
51800
|
justifyContent: "space-between"
|
|
51685
51801
|
},
|
|
51686
51802
|
children: [
|
|
51687
|
-
/* @__PURE__ */
|
|
51688
|
-
/* @__PURE__ */
|
|
51803
|
+
/* @__PURE__ */ jsx234("div", { children: product.name }),
|
|
51804
|
+
/* @__PURE__ */ jsx234("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
51689
51805
|
]
|
|
51690
51806
|
}
|
|
51691
51807
|
)
|
|
51692
51808
|
})) ?? [];
|
|
51693
|
-
return /* @__PURE__ */
|
|
51809
|
+
return /* @__PURE__ */ jsx234(
|
|
51694
51810
|
WfoSummaryCard,
|
|
51695
51811
|
{
|
|
51696
51812
|
headerTitle: t("headerTitle"),
|
|
@@ -51705,17 +51821,17 @@ var WfoProductsSummaryCard = () => {
|
|
|
51705
51821
|
|
|
51706
51822
|
// src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
|
|
51707
51823
|
import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
|
|
51708
|
-
import { Fragment as
|
|
51824
|
+
import { Fragment as Fragment57, jsx as jsx235, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
|
|
51709
51825
|
var WfoTitleWithWebsocketBadge = ({
|
|
51710
51826
|
title
|
|
51711
51827
|
}) => {
|
|
51712
51828
|
const { useWebSockets } = useGetOrchestratorConfig();
|
|
51713
|
-
const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs127(
|
|
51829
|
+
const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs127(Fragment57, { children: [
|
|
51714
51830
|
title,
|
|
51715
51831
|
" ",
|
|
51716
|
-
/* @__PURE__ */
|
|
51832
|
+
/* @__PURE__ */ jsx235(WfoWebsocketStatusBadge, {})
|
|
51717
51833
|
] }) : title;
|
|
51718
|
-
return /* @__PURE__ */
|
|
51834
|
+
return /* @__PURE__ */ jsx235(EuiPageHeader3, { pageTitle });
|
|
51719
51835
|
};
|
|
51720
51836
|
|
|
51721
51837
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
@@ -51726,7 +51842,7 @@ import {
|
|
|
51726
51842
|
EuiPopover as EuiPopover8,
|
|
51727
51843
|
EuiRadioGroup
|
|
51728
51844
|
} from "@elastic/eui";
|
|
51729
|
-
import { jsx as
|
|
51845
|
+
import { jsx as jsx236 } from "@emotion/react/jsx-runtime";
|
|
51730
51846
|
var WfoRadioDropdown = ({
|
|
51731
51847
|
options,
|
|
51732
51848
|
onUpdateOption,
|
|
@@ -51752,16 +51868,16 @@ var WfoRadioDropdown = ({
|
|
|
51752
51868
|
id: option.id,
|
|
51753
51869
|
label: option.label
|
|
51754
51870
|
}));
|
|
51755
|
-
return /* @__PURE__ */
|
|
51871
|
+
return /* @__PURE__ */ jsx236(
|
|
51756
51872
|
EuiFlexGroup31,
|
|
51757
51873
|
{
|
|
51758
51874
|
gutterSize: "s",
|
|
51759
51875
|
alignItems: "center",
|
|
51760
51876
|
justifyContent: "flexEnd",
|
|
51761
|
-
children: /* @__PURE__ */
|
|
51877
|
+
children: /* @__PURE__ */ jsx236(
|
|
51762
51878
|
EuiPopover8,
|
|
51763
51879
|
{
|
|
51764
|
-
button: /* @__PURE__ */
|
|
51880
|
+
button: /* @__PURE__ */ jsx236(
|
|
51765
51881
|
EuiButtonEmpty5,
|
|
51766
51882
|
{
|
|
51767
51883
|
size: "s",
|
|
@@ -51782,7 +51898,7 @@ var WfoRadioDropdown = ({
|
|
|
51782
51898
|
isOpen,
|
|
51783
51899
|
closePopover: handleClose,
|
|
51784
51900
|
anchorPosition: "downLeft",
|
|
51785
|
-
children: /* @__PURE__ */
|
|
51901
|
+
children: /* @__PURE__ */ jsx236(
|
|
51786
51902
|
EuiRadioGroup,
|
|
51787
51903
|
{
|
|
51788
51904
|
options: radioGroupOptions,
|
|
@@ -51799,38 +51915,28 @@ var WfoRadioDropdown = ({
|
|
|
51799
51915
|
// src/components/WfoInlineNoteEdit/WfoInlineNoteEdit.tsx
|
|
51800
51916
|
import { useEffect as useEffect32, useState as useState51 } from "react";
|
|
51801
51917
|
import { EuiInlineEditText } from "@elastic/eui";
|
|
51802
|
-
import { jsx as
|
|
51918
|
+
import { jsx as jsx237 } from "@emotion/react/jsx-runtime";
|
|
51803
51919
|
var WfoInlineNoteEdit = ({
|
|
51804
51920
|
value,
|
|
51805
|
-
|
|
51806
|
-
|
|
51921
|
+
onlyShowOnHover = false,
|
|
51922
|
+
triggerNoteModifyWorkflow = () => {
|
|
51923
|
+
}
|
|
51807
51924
|
}) => {
|
|
51808
51925
|
const { theme } = useOrchestratorTheme();
|
|
51809
|
-
const [note, setNote] = useState51(value
|
|
51926
|
+
const [note, setNote] = useState51(value);
|
|
51810
51927
|
const [isTooltipVisible, setIsTooltipVisible] = useState51(true);
|
|
51811
|
-
const [startProcess] = useStartProcessMutation();
|
|
51812
|
-
const triggerNoteModifyWorkflow = () => {
|
|
51813
|
-
const noteModifyPayload = [
|
|
51814
|
-
{ subscription_id: subscriptionId },
|
|
51815
|
-
{ note }
|
|
51816
|
-
];
|
|
51817
|
-
startProcess({
|
|
51818
|
-
workflowName: "modify_note",
|
|
51819
|
-
userInputs: noteModifyPayload
|
|
51820
|
-
});
|
|
51821
|
-
};
|
|
51822
51928
|
const handleSave = () => {
|
|
51823
|
-
triggerNoteModifyWorkflow();
|
|
51929
|
+
triggerNoteModifyWorkflow(note);
|
|
51824
51930
|
setIsTooltipVisible(true);
|
|
51825
51931
|
};
|
|
51826
51932
|
const handleCancel = () => {
|
|
51827
|
-
setNote(value
|
|
51933
|
+
setNote(value);
|
|
51828
51934
|
setIsTooltipVisible(true);
|
|
51829
51935
|
};
|
|
51830
51936
|
useEffect32(() => {
|
|
51831
|
-
setNote(value
|
|
51937
|
+
setNote(value);
|
|
51832
51938
|
}, [value]);
|
|
51833
|
-
return /* @__PURE__ */
|
|
51939
|
+
return /* @__PURE__ */ jsx237(
|
|
51834
51940
|
"div",
|
|
51835
51941
|
{
|
|
51836
51942
|
css: {
|
|
@@ -51841,12 +51947,14 @@ var WfoInlineNoteEdit = ({
|
|
|
51841
51947
|
}
|
|
51842
51948
|
}
|
|
51843
51949
|
},
|
|
51844
|
-
children: /* @__PURE__ */
|
|
51950
|
+
children: /* @__PURE__ */ jsx237(
|
|
51845
51951
|
WfoToolTip,
|
|
51846
51952
|
{
|
|
51847
|
-
css: {
|
|
51953
|
+
css: {
|
|
51954
|
+
visibility: isTooltipVisible && note !== INVISIBLE_CHARACTER ? "visible" : "hidden"
|
|
51955
|
+
},
|
|
51848
51956
|
tooltipContent: note,
|
|
51849
|
-
children: /* @__PURE__ */
|
|
51957
|
+
children: /* @__PURE__ */ jsx237("span", { children: /* @__PURE__ */ jsx237(
|
|
51850
51958
|
EuiInlineEditText,
|
|
51851
51959
|
{
|
|
51852
51960
|
inputAriaLabel: "Edit note",
|
|
@@ -51909,13 +52017,47 @@ var WfoInlineNoteEdit = ({
|
|
|
51909
52017
|
}
|
|
51910
52018
|
}
|
|
51911
52019
|
}
|
|
51912
|
-
)
|
|
52020
|
+
) })
|
|
51913
52021
|
}
|
|
51914
52022
|
)
|
|
51915
52023
|
}
|
|
51916
52024
|
);
|
|
51917
52025
|
};
|
|
51918
52026
|
|
|
52027
|
+
// src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx
|
|
52028
|
+
import { jsx as jsx238 } from "@emotion/react/jsx-runtime";
|
|
52029
|
+
var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }) => {
|
|
52030
|
+
const { data, endpointName } = useGetSubscriptionDetailQuery({
|
|
52031
|
+
subscriptionId
|
|
52032
|
+
});
|
|
52033
|
+
const selectedItem = data?.subscription ?? { note: "" };
|
|
52034
|
+
const [startProcess] = useStartProcessMutation();
|
|
52035
|
+
const [updateSub] = useUpdateSubscriptionDetailNoteOptimisticMutation();
|
|
52036
|
+
const triggerNoteModifyWorkflow = (note) => {
|
|
52037
|
+
const noteModifyPayload = [
|
|
52038
|
+
{ subscription_id: subscriptionId },
|
|
52039
|
+
{ note: note === INVISIBLE_CHARACTER ? "" : note }
|
|
52040
|
+
];
|
|
52041
|
+
startProcess({
|
|
52042
|
+
workflowName: "modify_note",
|
|
52043
|
+
userInputs: noteModifyPayload
|
|
52044
|
+
});
|
|
52045
|
+
updateSub({
|
|
52046
|
+
queryName: endpointName ?? "",
|
|
52047
|
+
subscriptionId,
|
|
52048
|
+
note
|
|
52049
|
+
});
|
|
52050
|
+
};
|
|
52051
|
+
return /* @__PURE__ */ jsx238(
|
|
52052
|
+
WfoInlineNoteEdit,
|
|
52053
|
+
{
|
|
52054
|
+
value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
|
|
52055
|
+
onlyShowOnHover,
|
|
52056
|
+
triggerNoteModifyWorkflow
|
|
52057
|
+
}
|
|
52058
|
+
);
|
|
52059
|
+
};
|
|
52060
|
+
|
|
51919
52061
|
// src/components/WfoTableCodeBlock/WfoTableCodeBlock.tsx
|
|
51920
52062
|
import { EuiFlexItem as EuiFlexItem35 } from "@elastic/eui";
|
|
51921
52063
|
|
|
@@ -51933,7 +52075,7 @@ var getStyles19 = ({ theme }) => {
|
|
|
51933
52075
|
};
|
|
51934
52076
|
|
|
51935
52077
|
// src/components/WfoTableCodeBlock/WfoTableCodeBlock.tsx
|
|
51936
|
-
import { jsx as
|
|
52078
|
+
import { jsx as jsx239 } from "@emotion/react/jsx-runtime";
|
|
51937
52079
|
var WfoTableCodeBlock = ({
|
|
51938
52080
|
stepState: data
|
|
51939
52081
|
}) => {
|
|
@@ -51949,7 +52091,7 @@ var WfoTableCodeBlock = ({
|
|
|
51949
52091
|
};
|
|
51950
52092
|
}
|
|
51951
52093
|
);
|
|
51952
|
-
return /* @__PURE__ */
|
|
52094
|
+
return /* @__PURE__ */ jsx239(EuiFlexItem35, { css: tableCodeBlockMarginStyle, children: /* @__PURE__ */ jsx239(
|
|
51953
52095
|
WfoKeyValueTable,
|
|
51954
52096
|
{
|
|
51955
52097
|
keyValues,
|
|
@@ -52001,6 +52143,7 @@ var en_GB_default = {
|
|
|
52001
52143
|
lightMode: "Light mode",
|
|
52002
52144
|
websocketConnected: "This page receives live updates from the server",
|
|
52003
52145
|
websocketDisconnected: "The connection to the server is lost, click the icon or refresh the page",
|
|
52146
|
+
websocketDisconnectedShort: "WebSocket disconnected, click the icon to reconnect",
|
|
52004
52147
|
resetToDefault: "Reset to default",
|
|
52005
52148
|
savePreferences: "Save preferences",
|
|
52006
52149
|
numberOfRows: "Number of rows",
|
|
@@ -52434,6 +52577,7 @@ var nl_NL_default = {
|
|
|
52434
52577
|
lightMode: "Light mode",
|
|
52435
52578
|
websocketConnected: "De pagina ontvangt live updates van de server",
|
|
52436
52579
|
websocketDisconnected: "De websocket verbinding is verbroken, klik op het icoon of ververs de pagina.",
|
|
52580
|
+
websocketDisconnectedShort: "WebSocket verbroken, klik op het icoon om opnieuw te verbinden.",
|
|
52437
52581
|
resetToDefault: "Reset naar standaard",
|
|
52438
52582
|
savePreferences: "Voorkeuren opslaan",
|
|
52439
52583
|
numberOfRows: "Aantal rijen",
|
|
@@ -52901,6 +53045,7 @@ export {
|
|
|
52901
53045
|
ErrorsField,
|
|
52902
53046
|
HIDDEN_KEYS,
|
|
52903
53047
|
HttpStatus,
|
|
53048
|
+
INVISIBLE_CHARACTER,
|
|
52904
53049
|
IPAM_ENDPOINT,
|
|
52905
53050
|
IPAM_FREE_SUBNETS_ENDPOINT,
|
|
52906
53051
|
IPAM_IP_BLOCKS_ENDPOINT,
|
|
@@ -53120,6 +53265,7 @@ export {
|
|
|
53120
53265
|
WfoSubmitModal,
|
|
53121
53266
|
WfoSubscription,
|
|
53122
53267
|
WfoSubscriptionActions,
|
|
53268
|
+
WfoSubscriptionDetailNoteEdit,
|
|
53123
53269
|
WfoSubscriptionDetailPage,
|
|
53124
53270
|
WfoSubscriptionDetailSection,
|
|
53125
53271
|
WfoSubscriptionDetailTree,
|
|
@@ -53128,6 +53274,7 @@ export {
|
|
|
53128
53274
|
WfoSubscriptionGeneralSections,
|
|
53129
53275
|
WfoSubscriptionListTab,
|
|
53130
53276
|
WfoSubscriptionMetadataSection,
|
|
53277
|
+
WfoSubscriptionNoteEdit,
|
|
53131
53278
|
WfoSubscriptionProductBlock,
|
|
53132
53279
|
WfoSubscriptionProductInfoSection,
|
|
53133
53280
|
WfoSubscriptionStatusBadge,
|
|
@@ -53239,6 +53386,7 @@ export {
|
|
|
53239
53386
|
ipPrefixTableFieldStyling,
|
|
53240
53387
|
ipamStates,
|
|
53241
53388
|
isAllUpperCase,
|
|
53389
|
+
isNullOrEmpty,
|
|
53242
53390
|
isToday,
|
|
53243
53391
|
isUuid4,
|
|
53244
53392
|
isValidLocalStorageTableConfig,
|