@orchestrator-ui/orchestrator-ui-components 5.5.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +71 -21
- package/dist/index.js +766 -506
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WfoForms/formFields/SelectField/SelectField.tsx +2 -1
- package/src/components/WfoForms/formFields/deprecated/ImsPortIdField.tsx +2 -1
- package/src/components/WfoForms/formFields/deprecated/IpPrefixTableField.tsx +2 -1
- package/src/components/WfoForms/formFields/deprecated/SplitPrefix.tsx +1 -2
- package/src/components/WfoForms/formFields/deprecated/SubscriptionField.tsx +2 -1
- package/src/components/WfoForms/formFields/types.ts +0 -10
- package/src/components/WfoPydanticForm/WfoPydanticForm.tsx +68 -28
- package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +13 -5
- package/src/components/WfoPydanticForm/fields/WfoArrayField/index.ts +1 -1
- package/src/components/WfoPydanticForm/fields/WfoDropdown.tsx +25 -0
- package/src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx +68 -0
- package/src/components/WfoPydanticForm/fields/WfoObjectField/WfoObjectField.tsx +12 -1
- package/src/components/WfoPydanticForm/fields/WfoObjectField/index.ts +1 -1
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx +100 -0
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/index.ts +2 -0
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts +70 -0
- package/src/components/WfoPydanticForm/fields/index.ts +3 -0
- package/src/configuration/version.ts +1 -1
- package/src/rtk/endpoints/deprecated/surfSubscriptionDropdownOptions.ts +1 -1
- package/src/types/types.ts +5 -0
- package/src/components/WfoPydanticForm/fields/WfoArrayField/arrayFieldStyles.ts +0 -34
- /package/src/components/WfoPydanticForm/fields/WfoObjectField/{getWfoObjectFieldStyles.ts → styles.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -4922,10 +4922,10 @@ var require_markup = __commonJS({
|
|
|
4922
4922
|
var require_css = __commonJS({
|
|
4923
4923
|
"../../node_modules/refractor/lang/css.js"(exports, module) {
|
|
4924
4924
|
"use strict";
|
|
4925
|
-
module.exports =
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
function
|
|
4925
|
+
module.exports = css53;
|
|
4926
|
+
css53.displayName = "css";
|
|
4927
|
+
css53.aliases = [];
|
|
4928
|
+
function css53(Prism) {
|
|
4929
4929
|
;
|
|
4930
4930
|
(function(Prism2) {
|
|
4931
4931
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -5192,7 +5192,7 @@ var require_core = __commonJS({
|
|
|
5192
5192
|
var decode = require_parse_entities();
|
|
5193
5193
|
var Prism = require_prism_core();
|
|
5194
5194
|
var markup = require_markup();
|
|
5195
|
-
var
|
|
5195
|
+
var css53 = require_css();
|
|
5196
5196
|
var clike = require_clike();
|
|
5197
5197
|
var js = require_javascript();
|
|
5198
5198
|
restore();
|
|
@@ -5208,7 +5208,7 @@ var require_core = __commonJS({
|
|
|
5208
5208
|
refract.registered = registered;
|
|
5209
5209
|
refract.listLanguages = listLanguages;
|
|
5210
5210
|
register(markup);
|
|
5211
|
-
register(
|
|
5211
|
+
register(css53);
|
|
5212
5212
|
register(clike);
|
|
5213
5213
|
register(js);
|
|
5214
5214
|
refract.util.encode = encode;
|
|
@@ -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 = jsx269;
|
|
15308
|
+
jsx269.displayName = "jsx";
|
|
15309
|
+
jsx269.aliases = [];
|
|
15310
|
+
function jsx269(Prism) {
|
|
15311
15311
|
;
|
|
15312
15312
|
(function(Prism2) {
|
|
15313
15313
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -26800,7 +26800,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26800
26800
|
})(PolicyResource || {});
|
|
26801
26801
|
|
|
26802
26802
|
// src/configuration/version.ts
|
|
26803
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.
|
|
26803
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.1";
|
|
26804
26804
|
|
|
26805
26805
|
// src/types/types.ts
|
|
26806
26806
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -26879,10 +26879,10 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
26879
26879
|
SortOrder2["DESC"] = "DESC";
|
|
26880
26880
|
return SortOrder2;
|
|
26881
26881
|
})(SortOrder || {});
|
|
26882
|
-
var Locale = /* @__PURE__ */ ((
|
|
26883
|
-
|
|
26884
|
-
|
|
26885
|
-
return
|
|
26882
|
+
var Locale = /* @__PURE__ */ ((Locale3) => {
|
|
26883
|
+
Locale3["enGB"] = "en-GB";
|
|
26884
|
+
Locale3["nlNL"] = "nl-NL";
|
|
26885
|
+
return Locale3;
|
|
26886
26886
|
})(Locale || {});
|
|
26887
26887
|
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
26888
26888
|
SubscriptionStatus2["INITIAL"] = "initial";
|
|
@@ -39057,7 +39057,7 @@ var WfoHeaderBadge = ({
|
|
|
39057
39057
|
children,
|
|
39058
39058
|
...restProps
|
|
39059
39059
|
}) => {
|
|
39060
|
-
const
|
|
39060
|
+
const css53 = restProps.iconType ? {
|
|
39061
39061
|
height: 24,
|
|
39062
39062
|
display: "flex",
|
|
39063
39063
|
paddingLeft: 0
|
|
@@ -39065,7 +39065,7 @@ var WfoHeaderBadge = ({
|
|
|
39065
39065
|
height: 24,
|
|
39066
39066
|
display: "flex"
|
|
39067
39067
|
};
|
|
39068
|
-
return /* @__PURE__ */ jsx73(WfoBadge, { ...restProps, css:
|
|
39068
|
+
return /* @__PURE__ */ jsx73(WfoBadge, { ...restProps, css: css53, children });
|
|
39069
39069
|
};
|
|
39070
39070
|
|
|
39071
39071
|
// src/components/WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx
|
|
@@ -50324,7 +50324,7 @@ var WfoProcessDetailPage = ({
|
|
|
50324
50324
|
};
|
|
50325
50325
|
|
|
50326
50326
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
50327
|
-
import { useCallback as useCallback8, useEffect as
|
|
50327
|
+
import { useCallback as useCallback8, useEffect as useEffect33, useMemo as useMemo6, useState as useState50 } from "react";
|
|
50328
50328
|
import { useTranslations as useTranslations68 } from "next-intl";
|
|
50329
50329
|
import { useRouter as useRouter10 } from "next/router";
|
|
50330
50330
|
import {
|
|
@@ -50340,6 +50340,7 @@ import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
|
|
|
50340
50340
|
import { useMessages, useTranslations as useTranslations62 } from "next-intl";
|
|
50341
50341
|
import { useRouter as useRouter9 } from "next/router";
|
|
50342
50342
|
import {
|
|
50343
|
+
Locale as Locale2,
|
|
50343
50344
|
PydanticForm as PydanticForm2,
|
|
50344
50345
|
PydanticFormFieldFormat,
|
|
50345
50346
|
PydanticFormFieldType,
|
|
@@ -50686,12 +50687,13 @@ var WfoSummary = ({ pydanticFormField }) => {
|
|
|
50686
50687
|
// src/components/WfoPydanticForm/fields/WfoObjectField/WfoObjectField.tsx
|
|
50687
50688
|
import {
|
|
50688
50689
|
RenderFields,
|
|
50690
|
+
disableField,
|
|
50689
50691
|
getPydanticFormComponents,
|
|
50690
50692
|
usePydanticFormContext as usePydanticFormContext4
|
|
50691
50693
|
} from "pydantic-forms";
|
|
50692
50694
|
import { EuiFlexGroup as EuiFlexGroup21 } from "@elastic/eui";
|
|
50693
50695
|
|
|
50694
|
-
// src/components/WfoPydanticForm/fields/WfoObjectField/
|
|
50696
|
+
// src/components/WfoPydanticForm/fields/WfoObjectField/styles.ts
|
|
50695
50697
|
import { css as css37 } from "@emotion/react";
|
|
50696
50698
|
var getWfoObjectFieldStyles = () => {
|
|
50697
50699
|
const wfoObjectFieldStyles = css37({
|
|
@@ -50711,11 +50713,19 @@ var WfoObjectField = ({
|
|
|
50711
50713
|
pydanticFormField
|
|
50712
50714
|
}) => {
|
|
50713
50715
|
const { config } = usePydanticFormContext4();
|
|
50716
|
+
const disabled = pydanticFormField.attributes?.disabled || false;
|
|
50714
50717
|
const { wfoObjectFieldStyles } = getWfoObjectFieldStyles();
|
|
50715
|
-
const
|
|
50718
|
+
const components2 = getPydanticFormComponents(
|
|
50716
50719
|
pydanticFormField.properties || {},
|
|
50717
50720
|
config?.componentMatcherExtender
|
|
50718
50721
|
);
|
|
50722
|
+
if (disabled) {
|
|
50723
|
+
components2.forEach((component) => {
|
|
50724
|
+
component.pydanticFormField = disableField(
|
|
50725
|
+
component.pydanticFormField
|
|
50726
|
+
);
|
|
50727
|
+
});
|
|
50728
|
+
}
|
|
50719
50729
|
return /* @__PURE__ */ jsx213(
|
|
50720
50730
|
EuiFlexGroup21,
|
|
50721
50731
|
{
|
|
@@ -50724,7 +50734,7 @@ var WfoObjectField = ({
|
|
|
50724
50734
|
children: /* @__PURE__ */ jsx213(
|
|
50725
50735
|
RenderFields,
|
|
50726
50736
|
{
|
|
50727
|
-
pydanticFormComponents:
|
|
50737
|
+
pydanticFormComponents: components2,
|
|
50728
50738
|
idPrefix: pydanticFormField.id
|
|
50729
50739
|
}
|
|
50730
50740
|
)
|
|
@@ -51338,11 +51348,45 @@ function useFieldArray(props) {
|
|
|
51338
51348
|
// src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx
|
|
51339
51349
|
import {
|
|
51340
51350
|
RenderFields as RenderFields2,
|
|
51351
|
+
disableField as disableField2,
|
|
51341
51352
|
fieldToComponentMatcher,
|
|
51342
51353
|
itemizeArrayItem,
|
|
51343
51354
|
usePydanticFormContext as usePydanticFormContext5
|
|
51344
51355
|
} from "pydantic-forms";
|
|
51345
51356
|
import { EuiIcon as EuiIcon5 } from "@elastic/eui";
|
|
51357
|
+
|
|
51358
|
+
// src/components/WfoPydanticForm/fields/WfoArrayField/styles.ts
|
|
51359
|
+
import { css as css38 } from "@emotion/react";
|
|
51360
|
+
var getWfoArrayFieldStyles = () => {
|
|
51361
|
+
const container = css38({
|
|
51362
|
+
padding: "1rem",
|
|
51363
|
+
display: "flex",
|
|
51364
|
+
flexDirection: "column",
|
|
51365
|
+
flexGrow: 1
|
|
51366
|
+
});
|
|
51367
|
+
const fieldWrapper = css38({
|
|
51368
|
+
display: "flex",
|
|
51369
|
+
gap: "10px",
|
|
51370
|
+
alignItems: "center"
|
|
51371
|
+
});
|
|
51372
|
+
const minusButton = css38({
|
|
51373
|
+
width: "40px",
|
|
51374
|
+
cursor: "pointer"
|
|
51375
|
+
});
|
|
51376
|
+
const plusButtonWrapper = css38({
|
|
51377
|
+
display: "flex",
|
|
51378
|
+
cursor: "pointer",
|
|
51379
|
+
justifyContent: "end"
|
|
51380
|
+
});
|
|
51381
|
+
return {
|
|
51382
|
+
container,
|
|
51383
|
+
fieldWrapper,
|
|
51384
|
+
minusButton,
|
|
51385
|
+
plusButtonWrapper
|
|
51386
|
+
};
|
|
51387
|
+
};
|
|
51388
|
+
|
|
51389
|
+
// src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx
|
|
51346
51390
|
import { jsx as jsx214, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
|
|
51347
51391
|
var MinusButton = ({
|
|
51348
51392
|
index,
|
|
@@ -51382,6 +51426,7 @@ var WfoArrayField = ({
|
|
|
51382
51426
|
pydanticFormField
|
|
51383
51427
|
}) => {
|
|
51384
51428
|
const { config, rhf } = usePydanticFormContext5();
|
|
51429
|
+
const disabled = pydanticFormField.attributes?.disabled || false;
|
|
51385
51430
|
const { control } = rhf;
|
|
51386
51431
|
const { id: arrayName, arrayItem } = pydanticFormField;
|
|
51387
51432
|
const { minItems, maxItems } = pydanticFormField.validations;
|
|
@@ -51390,15 +51435,16 @@ var WfoArrayField = ({
|
|
|
51390
51435
|
control,
|
|
51391
51436
|
name: arrayName
|
|
51392
51437
|
});
|
|
51393
|
-
const showMinus = !minItems || fields.length > minItems;
|
|
51394
|
-
const showPlus = !maxItems || fields.length < maxItems;
|
|
51438
|
+
const showMinus = (!minItems || fields.length > minItems) && !disabled;
|
|
51439
|
+
const showPlus = (!maxItems || fields.length < maxItems) && !disabled;
|
|
51395
51440
|
if (!arrayItem) return null;
|
|
51396
51441
|
const component = fieldToComponentMatcher(
|
|
51397
51442
|
arrayItem,
|
|
51398
51443
|
config?.componentMatcherExtender
|
|
51399
51444
|
);
|
|
51400
51445
|
const renderField = (field, index) => {
|
|
51401
|
-
const
|
|
51446
|
+
const itemizedField = itemizeArrayItem(index, arrayItem, arrayName);
|
|
51447
|
+
const arrayItemField = disabled ? disableField2(itemizedField) : itemizedField;
|
|
51402
51448
|
return /* @__PURE__ */ jsxs112("div", { css: fieldWrapper, children: [
|
|
51403
51449
|
/* @__PURE__ */ jsx214(
|
|
51404
51450
|
RenderFields2,
|
|
@@ -51406,7 +51452,7 @@ var WfoArrayField = ({
|
|
|
51406
51452
|
pydanticFormComponents: [
|
|
51407
51453
|
{
|
|
51408
51454
|
Element: component.Element,
|
|
51409
|
-
pydanticFormField:
|
|
51455
|
+
pydanticFormField: arrayItemField
|
|
51410
51456
|
}
|
|
51411
51457
|
],
|
|
51412
51458
|
extraTriggerFields: [arrayName]
|
|
@@ -51438,37 +51484,6 @@ var WfoArrayField = ({
|
|
|
51438
51484
|
] });
|
|
51439
51485
|
};
|
|
51440
51486
|
|
|
51441
|
-
// src/components/WfoPydanticForm/fields/WfoArrayField/arrayFieldStyles.ts
|
|
51442
|
-
import { css as css38 } from "@emotion/react";
|
|
51443
|
-
var getWfoArrayFieldStyles = () => {
|
|
51444
|
-
const container = css38({
|
|
51445
|
-
padding: "1rem",
|
|
51446
|
-
display: "flex",
|
|
51447
|
-
flexDirection: "column",
|
|
51448
|
-
flexGrow: 1
|
|
51449
|
-
});
|
|
51450
|
-
const fieldWrapper = css38({
|
|
51451
|
-
display: "flex",
|
|
51452
|
-
gap: "10px",
|
|
51453
|
-
alignItems: "center"
|
|
51454
|
-
});
|
|
51455
|
-
const minusButton = css38({
|
|
51456
|
-
width: "40px",
|
|
51457
|
-
cursor: "pointer"
|
|
51458
|
-
});
|
|
51459
|
-
const plusButtonWrapper = css38({
|
|
51460
|
-
display: "flex",
|
|
51461
|
-
cursor: "pointer",
|
|
51462
|
-
justifyContent: "end"
|
|
51463
|
-
});
|
|
51464
|
-
return {
|
|
51465
|
-
container,
|
|
51466
|
-
fieldWrapper,
|
|
51467
|
-
minusButton,
|
|
51468
|
-
plusButtonWrapper
|
|
51469
|
-
};
|
|
51470
|
-
};
|
|
51471
|
-
|
|
51472
51487
|
// src/components/WfoPydanticForm/fields/WfoRadio.tsx
|
|
51473
51488
|
import { EuiRadioGroup } from "@elastic/eui";
|
|
51474
51489
|
import { jsx as jsx215 } from "@emotion/react/jsx-runtime";
|
|
@@ -51533,8 +51548,219 @@ var WfoInteger = ({
|
|
|
51533
51548
|
);
|
|
51534
51549
|
};
|
|
51535
51550
|
|
|
51551
|
+
// src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
|
|
51552
|
+
import ReactSelect5, { components } from "react-select";
|
|
51553
|
+
import { EuiButtonIcon as EuiButtonIcon11 } from "@elastic/eui";
|
|
51554
|
+
|
|
51555
|
+
// src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts
|
|
51556
|
+
import { css as css40 } from "@emotion/react";
|
|
51557
|
+
var getWfoReactSelectStyles = (wfoTheme) => {
|
|
51558
|
+
const { theme } = wfoTheme;
|
|
51559
|
+
const reactSelectInnerComponentStyles = {
|
|
51560
|
+
option: (baseStyles, state) => ({
|
|
51561
|
+
...baseStyles,
|
|
51562
|
+
borderBottom: theme.border.thin,
|
|
51563
|
+
borderColor: theme.colors.lightShade,
|
|
51564
|
+
backgroundColor: theme.colors.lightestShade,
|
|
51565
|
+
color: state.isSelected ? theme.colors.primaryText : theme.colors.text
|
|
51566
|
+
}),
|
|
51567
|
+
control: (baseStyles, state) => {
|
|
51568
|
+
return {
|
|
51569
|
+
...baseStyles,
|
|
51570
|
+
backgroundColor: state.isFocused ? theme.colors.emptyShade : theme.colors.lightestShade,
|
|
51571
|
+
color: theme.colors.text,
|
|
51572
|
+
border: `1px solid ${theme.colors.lightShade}`
|
|
51573
|
+
};
|
|
51574
|
+
},
|
|
51575
|
+
input: (baseStyles) => ({
|
|
51576
|
+
...baseStyles,
|
|
51577
|
+
color: theme.colors.text
|
|
51578
|
+
}),
|
|
51579
|
+
singleValue: (baseStyles, state) => {
|
|
51580
|
+
const opacity = state.isDisabled ? 0.3 : 1;
|
|
51581
|
+
const transition = "opacity 300ms";
|
|
51582
|
+
return {
|
|
51583
|
+
...baseStyles,
|
|
51584
|
+
opacity,
|
|
51585
|
+
transition,
|
|
51586
|
+
color: theme.colors.text
|
|
51587
|
+
};
|
|
51588
|
+
},
|
|
51589
|
+
menu: (baseStyles) => ({
|
|
51590
|
+
...baseStyles,
|
|
51591
|
+
backgroundColor: theme.colors.lightestShade
|
|
51592
|
+
})
|
|
51593
|
+
};
|
|
51594
|
+
const containerStyle = css40({
|
|
51595
|
+
display: "flex",
|
|
51596
|
+
flexDirection: "row",
|
|
51597
|
+
alignItems: "center"
|
|
51598
|
+
});
|
|
51599
|
+
const reactSelectStyle = css40({
|
|
51600
|
+
width: "100%"
|
|
51601
|
+
});
|
|
51602
|
+
const refreshButtonStyle = css40({
|
|
51603
|
+
marginRight: theme.base / 2,
|
|
51604
|
+
cursor: "pointer"
|
|
51605
|
+
});
|
|
51606
|
+
return {
|
|
51607
|
+
reactSelectInnerComponentStyles,
|
|
51608
|
+
refreshButtonStyle,
|
|
51609
|
+
containerStyle,
|
|
51610
|
+
reactSelectStyle
|
|
51611
|
+
};
|
|
51612
|
+
};
|
|
51613
|
+
|
|
51614
|
+
// src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
|
|
51615
|
+
import { jsx as jsx217, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
|
|
51616
|
+
var WfoReactSelect = ({
|
|
51617
|
+
options,
|
|
51618
|
+
id,
|
|
51619
|
+
onChange,
|
|
51620
|
+
value,
|
|
51621
|
+
disabled = false,
|
|
51622
|
+
isLoading = false,
|
|
51623
|
+
placeholder = "Select an option",
|
|
51624
|
+
hasError = false,
|
|
51625
|
+
refetch
|
|
51626
|
+
}) => {
|
|
51627
|
+
const selectedValue = options.find(
|
|
51628
|
+
(option) => option.value === value
|
|
51629
|
+
);
|
|
51630
|
+
const {
|
|
51631
|
+
reactSelectInnerComponentStyles,
|
|
51632
|
+
containerStyle,
|
|
51633
|
+
refreshButtonStyle,
|
|
51634
|
+
reactSelectStyle
|
|
51635
|
+
} = useWithOrchestratorTheme(getWfoReactSelectStyles);
|
|
51636
|
+
if (hasError) {
|
|
51637
|
+
return /* @__PURE__ */ jsx217(WfoError, {});
|
|
51638
|
+
}
|
|
51639
|
+
const Input = ({
|
|
51640
|
+
...props
|
|
51641
|
+
}) => {
|
|
51642
|
+
return /* @__PURE__ */ jsx217(components.Input, { ...props, "data-testid": `${id}.search-input` });
|
|
51643
|
+
};
|
|
51644
|
+
return /* @__PURE__ */ jsxs113("div", { css: containerStyle, children: [
|
|
51645
|
+
refetch && /* @__PURE__ */ jsx217(
|
|
51646
|
+
EuiButtonIcon11,
|
|
51647
|
+
{
|
|
51648
|
+
className: "reload-subscriptions-icon-button",
|
|
51649
|
+
css: refreshButtonStyle,
|
|
51650
|
+
"aria-label": `refetch-${id}`,
|
|
51651
|
+
id: `refresh-icon-${id}`,
|
|
51652
|
+
iconType: "refresh",
|
|
51653
|
+
iconSize: "l",
|
|
51654
|
+
disabled,
|
|
51655
|
+
onClick: () => {
|
|
51656
|
+
refetch();
|
|
51657
|
+
},
|
|
51658
|
+
"data-testid": `${id}-refresh-button`
|
|
51659
|
+
}
|
|
51660
|
+
),
|
|
51661
|
+
/* @__PURE__ */ jsx217(
|
|
51662
|
+
ReactSelect5,
|
|
51663
|
+
{
|
|
51664
|
+
id,
|
|
51665
|
+
inputId: `${id}.search`,
|
|
51666
|
+
onChange: (option) => {
|
|
51667
|
+
const selectedValue2 = option?.value;
|
|
51668
|
+
onChange(selectedValue2);
|
|
51669
|
+
},
|
|
51670
|
+
css: reactSelectStyle,
|
|
51671
|
+
isLoading,
|
|
51672
|
+
styles: reactSelectInnerComponentStyles,
|
|
51673
|
+
options,
|
|
51674
|
+
value: selectedValue || null,
|
|
51675
|
+
isSearchable: true,
|
|
51676
|
+
isClearable: true,
|
|
51677
|
+
placeholder,
|
|
51678
|
+
isDisabled: disabled,
|
|
51679
|
+
components: {
|
|
51680
|
+
Input
|
|
51681
|
+
}
|
|
51682
|
+
}
|
|
51683
|
+
)
|
|
51684
|
+
] });
|
|
51685
|
+
};
|
|
51686
|
+
|
|
51687
|
+
// src/components/WfoPydanticForm/fields/WfoDropdown.tsx
|
|
51688
|
+
import { jsx as jsx218 } from "@emotion/react/jsx-runtime";
|
|
51689
|
+
var WfoDropdown = ({
|
|
51690
|
+
onChange,
|
|
51691
|
+
pydanticFormField,
|
|
51692
|
+
value
|
|
51693
|
+
}) => {
|
|
51694
|
+
const dropDownOptions = pydanticFormField.options.map((option) => ({
|
|
51695
|
+
value: option.value,
|
|
51696
|
+
label: option.label
|
|
51697
|
+
}));
|
|
51698
|
+
return /* @__PURE__ */ jsx218(
|
|
51699
|
+
WfoReactSelect,
|
|
51700
|
+
{
|
|
51701
|
+
options: dropDownOptions,
|
|
51702
|
+
onChange,
|
|
51703
|
+
id: pydanticFormField.id,
|
|
51704
|
+
value
|
|
51705
|
+
}
|
|
51706
|
+
);
|
|
51707
|
+
};
|
|
51708
|
+
|
|
51709
|
+
// src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
|
|
51710
|
+
import { useEffect as useEffect30, useState as useState44 } from "react";
|
|
51711
|
+
import { EuiCheckboxGroup } from "@elastic/eui";
|
|
51712
|
+
import { jsx as jsx219 } from "@emotion/react/jsx-runtime";
|
|
51713
|
+
var WfoMultiCheckboxField = ({
|
|
51714
|
+
pydanticFormField,
|
|
51715
|
+
onChange,
|
|
51716
|
+
value
|
|
51717
|
+
}) => {
|
|
51718
|
+
useEffect30(() => {
|
|
51719
|
+
const getInitialMap = () => {
|
|
51720
|
+
const initialIdMap = (value || []).reduce(
|
|
51721
|
+
(idMap, id2) => {
|
|
51722
|
+
idMap[id2] = true;
|
|
51723
|
+
return idMap;
|
|
51724
|
+
},
|
|
51725
|
+
{}
|
|
51726
|
+
);
|
|
51727
|
+
return initialIdMap;
|
|
51728
|
+
};
|
|
51729
|
+
setCheckboxIdToSelectedMap(getInitialMap());
|
|
51730
|
+
}, [value]);
|
|
51731
|
+
const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] = useState44({});
|
|
51732
|
+
const { options, id } = pydanticFormField;
|
|
51733
|
+
const checkboxes = options.map((option, index) => ({
|
|
51734
|
+
label: option.label,
|
|
51735
|
+
id: option.value,
|
|
51736
|
+
"data-test-id": `${id}-${index}`
|
|
51737
|
+
}));
|
|
51738
|
+
const handleCheckboxChange = (optionId) => {
|
|
51739
|
+
const newCheckboxIdToSelectedMap = {
|
|
51740
|
+
...checkboxIdToSelectedMap,
|
|
51741
|
+
...{
|
|
51742
|
+
[optionId]: !checkboxIdToSelectedMap[optionId]
|
|
51743
|
+
}
|
|
51744
|
+
};
|
|
51745
|
+
const selectedIds = Object.keys(newCheckboxIdToSelectedMap).filter(
|
|
51746
|
+
(key) => newCheckboxIdToSelectedMap[key]
|
|
51747
|
+
);
|
|
51748
|
+
onChange(selectedIds);
|
|
51749
|
+
setCheckboxIdToSelectedMap(newCheckboxIdToSelectedMap);
|
|
51750
|
+
};
|
|
51751
|
+
return /* @__PURE__ */ jsx219(
|
|
51752
|
+
EuiCheckboxGroup,
|
|
51753
|
+
{
|
|
51754
|
+
options: checkboxes,
|
|
51755
|
+
idToSelectedMap: checkboxIdToSelectedMap,
|
|
51756
|
+
onChange: (id2) => handleCheckboxChange(id2),
|
|
51757
|
+
"data-testid": id
|
|
51758
|
+
}
|
|
51759
|
+
);
|
|
51760
|
+
};
|
|
51761
|
+
|
|
51536
51762
|
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
51537
|
-
import { jsx as
|
|
51763
|
+
import { jsx as jsx220 } from "@emotion/react/jsx-runtime";
|
|
51538
51764
|
var useWfoPydanticFormConfig = () => {
|
|
51539
51765
|
const componentMatcherExtender = useAppSelector(
|
|
51540
51766
|
(state) => state.pydanticForm?.componentMatcherExtender
|
|
@@ -51616,13 +51842,13 @@ var useWfoPydanticFormConfig = () => {
|
|
|
51616
51842
|
}
|
|
51617
51843
|
},
|
|
51618
51844
|
{
|
|
51619
|
-
id: "
|
|
51845
|
+
id: "dropdown",
|
|
51620
51846
|
ElementMatch: {
|
|
51621
|
-
Element:
|
|
51847
|
+
Element: WfoDropdown,
|
|
51622
51848
|
isControlledElement: true
|
|
51623
51849
|
},
|
|
51624
51850
|
matcher(field) {
|
|
51625
|
-
return field.type === PydanticFormFieldType.STRING && field.options
|
|
51851
|
+
return field.type === PydanticFormFieldType.STRING && Array.isArray(field.options) && field.options.length > 0;
|
|
51626
51852
|
}
|
|
51627
51853
|
},
|
|
51628
51854
|
{
|
|
@@ -51636,6 +51862,17 @@ var useWfoPydanticFormConfig = () => {
|
|
|
51636
51862
|
},
|
|
51637
51863
|
validator: zodValidationPresets.integer
|
|
51638
51864
|
},
|
|
51865
|
+
{
|
|
51866
|
+
id: "multicheckbox",
|
|
51867
|
+
ElementMatch: {
|
|
51868
|
+
Element: WfoMultiCheckboxField,
|
|
51869
|
+
isControlledElement: true
|
|
51870
|
+
},
|
|
51871
|
+
matcher(field) {
|
|
51872
|
+
return field.type === PydanticFormFieldType.ARRAY && field.options?.length > 0 && field.options?.length <= 5;
|
|
51873
|
+
},
|
|
51874
|
+
validator: zodValidationPresets.multiSelect
|
|
51875
|
+
},
|
|
51639
51876
|
...currentMatchers.filter((matcher) => matcher.id !== "text").filter((matcher) => matcher.id !== "array").filter((matcher) => matcher.id !== "object"),
|
|
51640
51877
|
{
|
|
51641
51878
|
id: "object",
|
|
@@ -51687,15 +51924,18 @@ var WfoPydanticForm = ({
|
|
|
51687
51924
|
pydanticLabelProvider,
|
|
51688
51925
|
customTranslations
|
|
51689
51926
|
} = useWfoPydanticFormConfig();
|
|
51690
|
-
const onSuccess = (
|
|
51691
|
-
|
|
51692
|
-
|
|
51693
|
-
|
|
51694
|
-
|
|
51695
|
-
|
|
51696
|
-
|
|
51697
|
-
|
|
51698
|
-
|
|
51927
|
+
const onSuccess = useCallback6(
|
|
51928
|
+
(_fieldValues, req) => {
|
|
51929
|
+
const request = req;
|
|
51930
|
+
const response = request ? request?.response : null;
|
|
51931
|
+
if (response?.id) {
|
|
51932
|
+
const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
51933
|
+
router.replace(`${pfBasePath}/${response.id}`);
|
|
51934
|
+
}
|
|
51935
|
+
},
|
|
51936
|
+
[isTask, router]
|
|
51937
|
+
);
|
|
51938
|
+
const getPydanticFormProvider = useCallback6(() => {
|
|
51699
51939
|
const pydanticFormProvider = async ({
|
|
51700
51940
|
requestBody = [],
|
|
51701
51941
|
formKey
|
|
@@ -51732,35 +51972,51 @@ var WfoPydanticForm = ({
|
|
|
51732
51972
|
});
|
|
51733
51973
|
};
|
|
51734
51974
|
return pydanticFormProvider;
|
|
51735
|
-
};
|
|
51736
|
-
const handleCancel = () => {
|
|
51975
|
+
}, [startProcess, startProcessPayload]);
|
|
51976
|
+
const handleCancel = useCallback6(() => {
|
|
51737
51977
|
const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
51738
51978
|
router.replace(pfBasePath);
|
|
51739
|
-
};
|
|
51740
|
-
|
|
51979
|
+
}, [isTask, router]);
|
|
51980
|
+
const config = useMemo4(() => {
|
|
51981
|
+
const getLocale = () => {
|
|
51982
|
+
if (router.locale) {
|
|
51983
|
+
return router.locale;
|
|
51984
|
+
}
|
|
51985
|
+
return Locale2.enGB;
|
|
51986
|
+
};
|
|
51987
|
+
return {
|
|
51988
|
+
apiProvider: getPydanticFormProvider(),
|
|
51989
|
+
allowUntouchedSubmit: true,
|
|
51990
|
+
footerRenderer: Footer,
|
|
51991
|
+
headerRenderer: Header,
|
|
51992
|
+
skipSuccessNotice: true,
|
|
51993
|
+
componentMatcherExtender: wfoComponentMatcherExtender,
|
|
51994
|
+
labelProvider: pydanticLabelProvider,
|
|
51995
|
+
rowRenderer: Row,
|
|
51996
|
+
customTranslations,
|
|
51997
|
+
locale: getLocale()
|
|
51998
|
+
};
|
|
51999
|
+
}, [
|
|
52000
|
+
customTranslations,
|
|
52001
|
+
getPydanticFormProvider,
|
|
52002
|
+
pydanticLabelProvider,
|
|
52003
|
+
router.locale,
|
|
52004
|
+
wfoComponentMatcherExtender
|
|
52005
|
+
]);
|
|
52006
|
+
return /* @__PURE__ */ jsx220(
|
|
51741
52007
|
PydanticForm2,
|
|
51742
52008
|
{
|
|
51743
52009
|
id: processName,
|
|
51744
52010
|
onSuccess,
|
|
51745
52011
|
onCancel: handleCancel,
|
|
51746
|
-
loadingComponent: /* @__PURE__ */
|
|
51747
|
-
config
|
|
51748
|
-
apiProvider: getPydanticFormProvider(),
|
|
51749
|
-
allowUntouchedSubmit: true,
|
|
51750
|
-
footerRenderer: Footer,
|
|
51751
|
-
headerRenderer: Header,
|
|
51752
|
-
skipSuccessNotice: true,
|
|
51753
|
-
componentMatcherExtender: wfoComponentMatcherExtender,
|
|
51754
|
-
labelProvider: pydanticLabelProvider,
|
|
51755
|
-
rowRenderer: Row,
|
|
51756
|
-
customTranslations
|
|
51757
|
-
}
|
|
52012
|
+
loadingComponent: /* @__PURE__ */ jsx220(WfoLoading, {}),
|
|
52013
|
+
config
|
|
51758
52014
|
}
|
|
51759
52015
|
);
|
|
51760
52016
|
};
|
|
51761
52017
|
|
|
51762
52018
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
51763
|
-
import
|
|
52019
|
+
import React70, { useState as useState46 } from "react";
|
|
51764
52020
|
import { useTranslations as useTranslations63 } from "next-intl";
|
|
51765
52021
|
import {
|
|
51766
52022
|
EuiButton as EuiButton12,
|
|
@@ -51774,36 +52030,36 @@ import {
|
|
|
51774
52030
|
import { EuiFlexItem as EuiFlexItem25 } from "@elastic/eui";
|
|
51775
52031
|
|
|
51776
52032
|
// src/components/WfoWorkflowSteps/styles.ts
|
|
51777
|
-
import { css as
|
|
52033
|
+
import { css as css41 } from "@emotion/react";
|
|
51778
52034
|
var getWorkflowStepsStyles = ({
|
|
51779
52035
|
theme,
|
|
51780
52036
|
toSecondaryColor
|
|
51781
52037
|
}) => {
|
|
51782
52038
|
const SPACE_BETWEEN_STEPS = theme.base * 1.5;
|
|
51783
|
-
const stepSpacerStyle =
|
|
52039
|
+
const stepSpacerStyle = css41({
|
|
51784
52040
|
borderLeft: `1px solid ${theme.colors.darkShade}`,
|
|
51785
52041
|
height: `${SPACE_BETWEEN_STEPS}px`,
|
|
51786
52042
|
marginLeft: "36px"
|
|
51787
52043
|
});
|
|
51788
|
-
const stepRowStyle =
|
|
52044
|
+
const stepRowStyle = css41({
|
|
51789
52045
|
flexGrow: 1,
|
|
51790
52046
|
alignItems: "center",
|
|
51791
52047
|
justifyContent: "flex-end"
|
|
51792
52048
|
});
|
|
51793
|
-
const stepListHeaderStyle =
|
|
52049
|
+
const stepListHeaderStyle = css41({
|
|
51794
52050
|
marginBottom: "24px",
|
|
51795
52051
|
marginTop: "60px",
|
|
51796
52052
|
alignItems: "flex-end"
|
|
51797
52053
|
});
|
|
51798
|
-
const stepListContentStyle =
|
|
52054
|
+
const stepListContentStyle = css41({
|
|
51799
52055
|
flexDirection: "row",
|
|
51800
52056
|
alignItems: "center"
|
|
51801
52057
|
});
|
|
51802
|
-
const stepListContentBoldTextStyle =
|
|
52058
|
+
const stepListContentBoldTextStyle = css41({
|
|
51803
52059
|
fontSize: theme.size.base,
|
|
51804
52060
|
fontWeight: theme.font.weight.bold
|
|
51805
52061
|
});
|
|
51806
|
-
const stepListContentAnchorStyle =
|
|
52062
|
+
const stepListContentAnchorStyle = css41({
|
|
51807
52063
|
marginTop: 2,
|
|
51808
52064
|
marginLeft: 0,
|
|
51809
52065
|
fontSize: theme.size.m,
|
|
@@ -51811,7 +52067,7 @@ var getWorkflowStepsStyles = ({
|
|
|
51811
52067
|
color: theme.colors.link,
|
|
51812
52068
|
cursor: "pointer"
|
|
51813
52069
|
});
|
|
51814
|
-
const stepListOptionsContainerStyle =
|
|
52070
|
+
const stepListOptionsContainerStyle = css41({
|
|
51815
52071
|
flexGrow: 0
|
|
51816
52072
|
});
|
|
51817
52073
|
const stepStateIcon = {
|
|
@@ -51827,36 +52083,36 @@ var getWorkflowStepsStyles = ({
|
|
|
51827
52083
|
color: theme.colors.disabled,
|
|
51828
52084
|
fontWeight: theme.font.weight.semiBold
|
|
51829
52085
|
};
|
|
51830
|
-
const stepStateSuccessIconStyle =
|
|
52086
|
+
const stepStateSuccessIconStyle = css41({
|
|
51831
52087
|
...stepStateIcon,
|
|
51832
52088
|
backgroundColor: toSecondaryColor(theme.colors.primary)
|
|
51833
52089
|
});
|
|
51834
|
-
const stepStateSuspendIconStyle =
|
|
52090
|
+
const stepStateSuspendIconStyle = css41({
|
|
51835
52091
|
...stepStateIcon,
|
|
51836
52092
|
backgroundColor: toSecondaryColor(theme.colors.warning)
|
|
51837
52093
|
});
|
|
51838
|
-
const stepStatePendingIconStyle =
|
|
52094
|
+
const stepStatePendingIconStyle = css41({
|
|
51839
52095
|
...stepStateIcon,
|
|
51840
52096
|
backgroundColor: toSecondaryColor(theme.colors.darkShade)
|
|
51841
52097
|
});
|
|
51842
|
-
const stepStateFailedIconStyle =
|
|
52098
|
+
const stepStateFailedIconStyle = css41({
|
|
51843
52099
|
...stepStateIcon,
|
|
51844
52100
|
backgroundColor: toSecondaryColor(theme.colors.danger)
|
|
51845
52101
|
});
|
|
51846
|
-
const stepHeaderRightStyle =
|
|
52102
|
+
const stepHeaderRightStyle = css41({
|
|
51847
52103
|
alignItems: "center"
|
|
51848
52104
|
});
|
|
51849
|
-
const stepEmailContainerStyle =
|
|
52105
|
+
const stepEmailContainerStyle = css41({
|
|
51850
52106
|
paddingLeft: 24,
|
|
51851
52107
|
width: 600,
|
|
51852
52108
|
marginTop: 0
|
|
51853
52109
|
});
|
|
51854
|
-
const getStepHeaderStyle = (isClickable) =>
|
|
52110
|
+
const getStepHeaderStyle = (isClickable) => css41({
|
|
51855
52111
|
gap: 0,
|
|
51856
52112
|
alignItems: "center",
|
|
51857
52113
|
cursor: isClickable ? "pointer" : "default"
|
|
51858
52114
|
});
|
|
51859
|
-
const getStepToggleExpandStyle = (isVisible) =>
|
|
52115
|
+
const getStepToggleExpandStyle = (isVisible) => css41({
|
|
51860
52116
|
marginRight: theme.base / 2,
|
|
51861
52117
|
visibility: isVisible ? "visible" : "hidden"
|
|
51862
52118
|
});
|
|
@@ -51882,26 +52138,26 @@ var getWorkflowStepsStyles = ({
|
|
|
51882
52138
|
};
|
|
51883
52139
|
|
|
51884
52140
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
51885
|
-
import { jsx as
|
|
52141
|
+
import { jsx as jsx221, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
|
|
51886
52142
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
51887
52143
|
switch (stepStatus) {
|
|
51888
52144
|
case "suspend" /* SUSPEND */:
|
|
51889
|
-
return /* @__PURE__ */
|
|
52145
|
+
return /* @__PURE__ */ jsx221(WfoMinusCircleFill, { color });
|
|
51890
52146
|
case "failed" /* FAILED */:
|
|
51891
|
-
return /* @__PURE__ */
|
|
52147
|
+
return /* @__PURE__ */ jsx221(WfoXCircleFill, { color });
|
|
51892
52148
|
default:
|
|
51893
|
-
return /* @__PURE__ */
|
|
52149
|
+
return /* @__PURE__ */ jsx221(WfoCheckmarkCircleFill, { color });
|
|
51894
52150
|
}
|
|
51895
52151
|
};
|
|
51896
52152
|
var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
|
|
51897
52153
|
if (isStartStep) {
|
|
51898
|
-
return /* @__PURE__ */
|
|
52154
|
+
return /* @__PURE__ */ jsx221(WfoPlayFill, { color });
|
|
51899
52155
|
}
|
|
51900
52156
|
switch (stepStatus) {
|
|
51901
52157
|
case "form" /* FORM */:
|
|
51902
|
-
return /* @__PURE__ */
|
|
52158
|
+
return /* @__PURE__ */ jsx221(WfoPencilAlt, { color });
|
|
51903
52159
|
default:
|
|
51904
|
-
return /* @__PURE__ */
|
|
52160
|
+
return /* @__PURE__ */ jsx221(WfoCogFill, { color, width: 16, height: 16 });
|
|
51905
52161
|
}
|
|
51906
52162
|
};
|
|
51907
52163
|
var WfoStepStatusIcon = ({
|
|
@@ -51956,8 +52212,8 @@ var WfoStepStatusIcon = ({
|
|
|
51956
52212
|
];
|
|
51957
52213
|
}
|
|
51958
52214
|
})();
|
|
51959
|
-
return /* @__PURE__ */
|
|
51960
|
-
/* @__PURE__ */
|
|
52215
|
+
return /* @__PURE__ */ jsxs114(EuiFlexItem25, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
52216
|
+
/* @__PURE__ */ jsx221("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx221(
|
|
51961
52217
|
MainIcon,
|
|
51962
52218
|
{
|
|
51963
52219
|
color: mainIconColor,
|
|
@@ -51965,7 +52221,7 @@ var WfoStepStatusIcon = ({
|
|
|
51965
52221
|
isStartStep
|
|
51966
52222
|
}
|
|
51967
52223
|
) }),
|
|
51968
|
-
/* @__PURE__ */
|
|
52224
|
+
/* @__PURE__ */ jsx221(
|
|
51969
52225
|
"div",
|
|
51970
52226
|
{
|
|
51971
52227
|
css: {
|
|
@@ -51973,7 +52229,7 @@ var WfoStepStatusIcon = ({
|
|
|
51973
52229
|
width: `${theme.base}`,
|
|
51974
52230
|
visibility: hasSubIcon ? "visible" : "hidden"
|
|
51975
52231
|
},
|
|
51976
|
-
children: /* @__PURE__ */
|
|
52232
|
+
children: /* @__PURE__ */ jsx221(SubIcon, { color: subIconColor, stepStatus })
|
|
51977
52233
|
}
|
|
51978
52234
|
)
|
|
51979
52235
|
] });
|
|
@@ -52002,17 +52258,17 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
52002
52258
|
};
|
|
52003
52259
|
|
|
52004
52260
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
52005
|
-
import { useState as
|
|
52261
|
+
import { useState as useState45 } from "react";
|
|
52006
52262
|
import { EuiFlexItem as EuiFlexItem26 } from "@elastic/eui";
|
|
52007
|
-
import { jsx as
|
|
52263
|
+
import { jsx as jsx222 } from "@emotion/react/jsx-runtime";
|
|
52008
52264
|
var WfoStepForm = ({
|
|
52009
52265
|
userInputForm,
|
|
52010
52266
|
isTask,
|
|
52011
52267
|
processId,
|
|
52012
52268
|
userPermissions
|
|
52013
52269
|
}) => {
|
|
52014
|
-
const [isProcessing, setIsProcessing] =
|
|
52015
|
-
const [hasError, setHasError] =
|
|
52270
|
+
const [isProcessing, setIsProcessing] = useState45(false);
|
|
52271
|
+
const [hasError, setHasError] = useState45(false);
|
|
52016
52272
|
const { theme } = useOrchestratorTheme();
|
|
52017
52273
|
const [resumeProcess] = useResumeProcessMutation();
|
|
52018
52274
|
const submitForm = (processInput) => {
|
|
@@ -52033,7 +52289,7 @@ var WfoStepForm = ({
|
|
|
52033
52289
|
}
|
|
52034
52290
|
});
|
|
52035
52291
|
};
|
|
52036
|
-
return /* @__PURE__ */
|
|
52292
|
+
return /* @__PURE__ */ jsx222(EuiFlexItem26, { css: { margin: theme.size.m }, children: hasError && /* @__PURE__ */ jsx222(WfoError, {}) || isProcessing && /* @__PURE__ */ jsx222(WfoLoading, {}) || /* @__PURE__ */ jsx222(
|
|
52037
52293
|
UserInputFormWizard,
|
|
52038
52294
|
{
|
|
52039
52295
|
stepUserInput: userInputForm,
|
|
@@ -52047,8 +52303,8 @@ var WfoStepForm = ({
|
|
|
52047
52303
|
};
|
|
52048
52304
|
|
|
52049
52305
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
52050
|
-
import { Fragment as Fragment51, jsx as
|
|
52051
|
-
var WfoStep =
|
|
52306
|
+
import { Fragment as Fragment51, jsx as jsx223, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
|
|
52307
|
+
var WfoStep = React70.forwardRef(
|
|
52052
52308
|
({
|
|
52053
52309
|
stepListItem,
|
|
52054
52310
|
onToggleStepDetail,
|
|
@@ -52061,7 +52317,7 @@ var WfoStep = React69.forwardRef(
|
|
|
52061
52317
|
userPermissions
|
|
52062
52318
|
}, ref) => {
|
|
52063
52319
|
const { isExpanded, step, userInputForm } = stepListItem;
|
|
52064
|
-
const [tableView, setTableView] =
|
|
52320
|
+
const [tableView, setTableView] = useState46(false);
|
|
52065
52321
|
const { theme } = useOrchestratorTheme();
|
|
52066
52322
|
const {
|
|
52067
52323
|
stepEmailContainerStyle,
|
|
@@ -52083,29 +52339,29 @@ var WfoStep = React69.forwardRef(
|
|
|
52083
52339
|
if (!value) {
|
|
52084
52340
|
return "";
|
|
52085
52341
|
}
|
|
52086
|
-
return /* @__PURE__ */
|
|
52087
|
-
/* @__PURE__ */
|
|
52088
|
-
/* @__PURE__ */
|
|
52089
|
-
(v, i) => /* @__PURE__ */
|
|
52342
|
+
return /* @__PURE__ */ jsxs115(EuiText37, { size: "s", children: [
|
|
52343
|
+
/* @__PURE__ */ jsx223("h4", { children: "To" }),
|
|
52344
|
+
/* @__PURE__ */ jsx223("p", { children: value.to.map(
|
|
52345
|
+
(v, i) => /* @__PURE__ */ jsxs115("div", { children: [
|
|
52090
52346
|
v.name,
|
|
52091
52347
|
" <",
|
|
52092
|
-
/* @__PURE__ */
|
|
52348
|
+
/* @__PURE__ */ jsx223("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
52093
52349
|
">"
|
|
52094
52350
|
] }, `to-${i}`)
|
|
52095
52351
|
) }),
|
|
52096
|
-
/* @__PURE__ */
|
|
52097
|
-
/* @__PURE__ */
|
|
52098
|
-
(v, i) => /* @__PURE__ */
|
|
52352
|
+
/* @__PURE__ */ jsx223("h4", { children: "CC" }),
|
|
52353
|
+
/* @__PURE__ */ jsx223("p", { children: value.cc.map(
|
|
52354
|
+
(v, i) => /* @__PURE__ */ jsxs115("div", { children: [
|
|
52099
52355
|
v.name,
|
|
52100
52356
|
" <",
|
|
52101
|
-
/* @__PURE__ */
|
|
52357
|
+
/* @__PURE__ */ jsx223("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
52102
52358
|
">"
|
|
52103
52359
|
] }, `cc-${i}`)
|
|
52104
52360
|
) }),
|
|
52105
|
-
/* @__PURE__ */
|
|
52106
|
-
/* @__PURE__ */
|
|
52107
|
-
/* @__PURE__ */
|
|
52108
|
-
/* @__PURE__ */
|
|
52361
|
+
/* @__PURE__ */ jsx223("h4", { children: "Subject" }),
|
|
52362
|
+
/* @__PURE__ */ jsx223("p", { children: value.subject }),
|
|
52363
|
+
/* @__PURE__ */ jsx223("h4", { children: "Message" }),
|
|
52364
|
+
/* @__PURE__ */ jsx223(
|
|
52109
52365
|
"div",
|
|
52110
52366
|
{
|
|
52111
52367
|
className: "emailMessage",
|
|
@@ -52114,30 +52370,30 @@ var WfoStep = React69.forwardRef(
|
|
|
52114
52370
|
)
|
|
52115
52371
|
] });
|
|
52116
52372
|
};
|
|
52117
|
-
return /* @__PURE__ */
|
|
52118
|
-
/* @__PURE__ */
|
|
52373
|
+
return /* @__PURE__ */ jsx223("div", { ref, children: /* @__PURE__ */ jsxs115(EuiPanel4, { children: [
|
|
52374
|
+
/* @__PURE__ */ jsxs115(
|
|
52119
52375
|
EuiFlexGroup22,
|
|
52120
52376
|
{
|
|
52121
52377
|
css: getStepHeaderStyle(hasStepContent),
|
|
52122
52378
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
52123
52379
|
children: [
|
|
52124
|
-
/* @__PURE__ */
|
|
52380
|
+
/* @__PURE__ */ jsx223(
|
|
52125
52381
|
WfoStepStatusIcon,
|
|
52126
52382
|
{
|
|
52127
52383
|
stepStatus: step.status,
|
|
52128
52384
|
isStartStep
|
|
52129
52385
|
}
|
|
52130
52386
|
),
|
|
52131
|
-
/* @__PURE__ */
|
|
52132
|
-
/* @__PURE__ */
|
|
52133
|
-
/* @__PURE__ */
|
|
52387
|
+
/* @__PURE__ */ jsxs115(EuiFlexItem27, { grow: 0, children: [
|
|
52388
|
+
/* @__PURE__ */ jsx223(EuiText37, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
52389
|
+
/* @__PURE__ */ jsxs115(EuiText37, { children: [
|
|
52134
52390
|
step.status,
|
|
52135
52391
|
" ",
|
|
52136
52392
|
step.completed && `- ${formatDate(step.completed)}`
|
|
52137
52393
|
] })
|
|
52138
52394
|
] }),
|
|
52139
|
-
/* @__PURE__ */
|
|
52140
|
-
isExpanded && /* @__PURE__ */
|
|
52395
|
+
/* @__PURE__ */ jsx223(EuiFlexGroup22, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs115(Fragment51, { children: [
|
|
52396
|
+
isExpanded && /* @__PURE__ */ jsx223(
|
|
52141
52397
|
EuiButton12,
|
|
52142
52398
|
{
|
|
52143
52399
|
onClick: (event) => {
|
|
@@ -52150,33 +52406,33 @@ var WfoStep = React69.forwardRef(
|
|
|
52150
52406
|
)
|
|
52151
52407
|
}
|
|
52152
52408
|
),
|
|
52153
|
-
/* @__PURE__ */
|
|
52409
|
+
/* @__PURE__ */ jsxs115(
|
|
52154
52410
|
EuiFlexItem27,
|
|
52155
52411
|
{
|
|
52156
52412
|
grow: 0,
|
|
52157
52413
|
css: stepHeaderRightStyle,
|
|
52158
52414
|
children: [
|
|
52159
|
-
/* @__PURE__ */
|
|
52160
|
-
/* @__PURE__ */
|
|
52415
|
+
/* @__PURE__ */ jsx223(EuiText37, { css: stepDurationStyle, children: t("duration") }),
|
|
52416
|
+
/* @__PURE__ */ jsx223(EuiText37, { size: "m", children: calculateTimeDifference(
|
|
52161
52417
|
startedAt,
|
|
52162
52418
|
completedAt
|
|
52163
52419
|
) })
|
|
52164
52420
|
]
|
|
52165
52421
|
}
|
|
52166
52422
|
),
|
|
52167
|
-
/* @__PURE__ */
|
|
52423
|
+
/* @__PURE__ */ jsx223(
|
|
52168
52424
|
EuiFlexItem27,
|
|
52169
52425
|
{
|
|
52170
52426
|
grow: 0,
|
|
52171
52427
|
css: getStepToggleExpandStyle(
|
|
52172
52428
|
hasStepContent
|
|
52173
52429
|
),
|
|
52174
|
-
children: isExpanded && /* @__PURE__ */
|
|
52430
|
+
children: isExpanded && /* @__PURE__ */ jsx223(
|
|
52175
52431
|
WfoChevronUp,
|
|
52176
52432
|
{
|
|
52177
52433
|
color: theme.colors.text
|
|
52178
52434
|
}
|
|
52179
|
-
) || /* @__PURE__ */
|
|
52435
|
+
) || /* @__PURE__ */ jsx223(
|
|
52180
52436
|
WfoChevronDown,
|
|
52181
52437
|
{
|
|
52182
52438
|
color: theme.colors.text
|
|
@@ -52188,11 +52444,11 @@ var WfoStep = React69.forwardRef(
|
|
|
52188
52444
|
]
|
|
52189
52445
|
}
|
|
52190
52446
|
),
|
|
52191
|
-
hasStepContent && !hasHtmlMail && isExpanded && (tableView ? /* @__PURE__ */
|
|
52192
|
-
isExpanded && hasHtmlMail && /* @__PURE__ */
|
|
52447
|
+
hasStepContent && !hasHtmlMail && isExpanded && (tableView ? /* @__PURE__ */ jsx223(WfoTableCodeBlock, { stepState: stepContent }) : /* @__PURE__ */ jsx223(WfoJsonCodeBlock, { data: stepContent })),
|
|
52448
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx223("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
|
|
52193
52449
|
step.stateDelta.confirmation_mail
|
|
52194
52450
|
) }),
|
|
52195
|
-
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */
|
|
52451
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx223(
|
|
52196
52452
|
WfoStepForm,
|
|
52197
52453
|
{
|
|
52198
52454
|
userInputForm,
|
|
@@ -52207,9 +52463,9 @@ var WfoStep = React69.forwardRef(
|
|
|
52207
52463
|
WfoStep.displayName = "WfoStep";
|
|
52208
52464
|
|
|
52209
52465
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
52210
|
-
import
|
|
52211
|
-
import { Fragment as Fragment52, jsx as
|
|
52212
|
-
var WfoStepList =
|
|
52466
|
+
import React71, { useImperativeHandle as useImperativeHandle2, useRef as useRef12 } from "react";
|
|
52467
|
+
import { Fragment as Fragment52, jsx as jsx224, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
|
|
52468
|
+
var WfoStepList = React71.forwardRef(
|
|
52213
52469
|
({
|
|
52214
52470
|
stepListItems,
|
|
52215
52471
|
showHiddenKeys,
|
|
@@ -52264,9 +52520,9 @@ var WfoStepList = React70.forwardRef(
|
|
|
52264
52520
|
stepReferences.current.delete(stepId);
|
|
52265
52521
|
}
|
|
52266
52522
|
};
|
|
52267
|
-
return /* @__PURE__ */
|
|
52268
|
-
index !== 0 && /* @__PURE__ */
|
|
52269
|
-
/* @__PURE__ */
|
|
52523
|
+
return /* @__PURE__ */ jsx224(Fragment52, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */ jsxs116("div", { children: [
|
|
52524
|
+
index !== 0 && /* @__PURE__ */ jsx224("div", { css: stepSpacerStyle }),
|
|
52525
|
+
/* @__PURE__ */ jsx224(
|
|
52270
52526
|
WfoStep,
|
|
52271
52527
|
{
|
|
52272
52528
|
ref: getReferenceCallbackForStepId(
|
|
@@ -52289,19 +52545,19 @@ var WfoStepList = React70.forwardRef(
|
|
|
52289
52545
|
WfoStepList.displayName = "WfoStepList";
|
|
52290
52546
|
|
|
52291
52547
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
52292
|
-
import
|
|
52548
|
+
import React73, { useEffect as useEffect32, useState as useState48 } from "react";
|
|
52293
52549
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
52294
52550
|
|
|
52295
52551
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
52296
52552
|
var refractor = __toESM(require_refractor(), 1);
|
|
52297
|
-
import { useCallback as useCallback7, useEffect as
|
|
52553
|
+
import { useCallback as useCallback7, useEffect as useEffect31, useMemo as useMemo5, useState as useState47 } from "react";
|
|
52298
52554
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
52299
52555
|
import "react-diff-view/style/index.css";
|
|
52300
52556
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
52301
52557
|
import "prism-themes/themes/prism-ghcolors.min.css";
|
|
52302
52558
|
import { diffLines, formatLines } from "unidiff";
|
|
52303
52559
|
import {
|
|
52304
|
-
EuiButtonIcon as
|
|
52560
|
+
EuiButtonIcon as EuiButtonIcon12,
|
|
52305
52561
|
EuiFlexGroup as EuiFlexGroup23,
|
|
52306
52562
|
EuiFlexItem as EuiFlexItem28,
|
|
52307
52563
|
EuiSpacer as EuiSpacer20,
|
|
@@ -52310,7 +52566,7 @@ import {
|
|
|
52310
52566
|
|
|
52311
52567
|
// src/components/WfoDiff/styles.ts
|
|
52312
52568
|
import { shade as shade2, tint as tint4 } from "@elastic/eui";
|
|
52313
|
-
import { css as
|
|
52569
|
+
import { css as css42 } from "@emotion/react";
|
|
52314
52570
|
var getWfoDiffStyles = ({
|
|
52315
52571
|
theme,
|
|
52316
52572
|
toSecondaryColor,
|
|
@@ -52322,7 +52578,7 @@ var getWfoDiffStyles = ({
|
|
|
52322
52578
|
const insertCodeColor = isDarkThemeActive ? shade2(insertGutterColor, SHADE_FACTOR) : tint4(insertGutterColor, TINT_FACTOR);
|
|
52323
52579
|
const deleteColor = toSecondaryColor(theme.colors.danger);
|
|
52324
52580
|
const deleteSecondaryColor = isDarkThemeActive ? shade2(deleteColor, SHADE_FACTOR) : tint4(deleteColor, TINT_FACTOR);
|
|
52325
|
-
const diffStyle =
|
|
52581
|
+
const diffStyle = css42({
|
|
52326
52582
|
".diff-code-insert": {
|
|
52327
52583
|
backgroundColor: insertCodeColor
|
|
52328
52584
|
},
|
|
@@ -52345,16 +52601,16 @@ var getWfoDiffStyles = ({
|
|
|
52345
52601
|
};
|
|
52346
52602
|
|
|
52347
52603
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
52348
|
-
import { jsx as
|
|
52604
|
+
import { jsx as jsx225, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
|
|
52349
52605
|
var EMPTY_HUNKS = [];
|
|
52350
52606
|
var SMALL_CONTEXT = 3;
|
|
52351
52607
|
var FULL_CONTEXT = 1e6;
|
|
52352
52608
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
52353
52609
|
const t = useTranslations64("processes.delta");
|
|
52354
|
-
const [showSplit, setShowSplit] =
|
|
52355
|
-
const [showFull, setShowFull] =
|
|
52610
|
+
const [showSplit, setShowSplit] = useState47(true);
|
|
52611
|
+
const [showFull, setShowFull] = useState47(false);
|
|
52356
52612
|
const { diffStyle } = useWithOrchestratorTheme(getWfoDiffStyles);
|
|
52357
|
-
const [{ type, hunks }, setDiff] =
|
|
52613
|
+
const [{ type, hunks }, setDiff] = useState47({
|
|
52358
52614
|
type: "modify",
|
|
52359
52615
|
hunks: []
|
|
52360
52616
|
});
|
|
@@ -52380,14 +52636,14 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52380
52636
|
return void 0;
|
|
52381
52637
|
}
|
|
52382
52638
|
}, [hunks, syntax]);
|
|
52383
|
-
|
|
52639
|
+
useEffect31(() => {
|
|
52384
52640
|
updateDiffText();
|
|
52385
52641
|
}, [updateDiffText, showFull]);
|
|
52386
|
-
return /* @__PURE__ */
|
|
52387
|
-
/* @__PURE__ */
|
|
52388
|
-
/* @__PURE__ */
|
|
52389
|
-
/* @__PURE__ */
|
|
52390
|
-
|
|
52642
|
+
return /* @__PURE__ */ jsxs117("div", { children: [
|
|
52643
|
+
/* @__PURE__ */ jsxs117(EuiFlexGroup23, { gutterSize: "xs", children: [
|
|
52644
|
+
/* @__PURE__ */ jsx225(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx225(EuiText38, { children: /* @__PURE__ */ jsx225("h3", { children: t("title") }) }) }),
|
|
52645
|
+
/* @__PURE__ */ jsx225(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx225(
|
|
52646
|
+
EuiButtonIcon12,
|
|
52391
52647
|
{
|
|
52392
52648
|
size: "s",
|
|
52393
52649
|
iconType: showSplit ? "continuityAboveBelow" : "continuityWithin",
|
|
@@ -52397,8 +52653,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52397
52653
|
)
|
|
52398
52654
|
}
|
|
52399
52655
|
) }),
|
|
52400
|
-
/* @__PURE__ */
|
|
52401
|
-
|
|
52656
|
+
/* @__PURE__ */ jsx225(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx225(
|
|
52657
|
+
EuiButtonIcon12,
|
|
52402
52658
|
{
|
|
52403
52659
|
size: "s",
|
|
52404
52660
|
iconType: showFull ? "fullScreenExit" : "fullScreen",
|
|
@@ -52409,8 +52665,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52409
52665
|
}
|
|
52410
52666
|
) })
|
|
52411
52667
|
] }),
|
|
52412
|
-
/* @__PURE__ */
|
|
52413
|
-
/* @__PURE__ */
|
|
52668
|
+
/* @__PURE__ */ jsx225(EuiSpacer20, {}),
|
|
52669
|
+
/* @__PURE__ */ jsx225(
|
|
52414
52670
|
Diff,
|
|
52415
52671
|
{
|
|
52416
52672
|
css: diffStyle,
|
|
@@ -52418,7 +52674,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52418
52674
|
diffType: type,
|
|
52419
52675
|
hunks: hunks || EMPTY_HUNKS,
|
|
52420
52676
|
tokens,
|
|
52421
|
-
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */
|
|
52677
|
+
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx225(Hunk, { hunk }, hunk.content))
|
|
52422
52678
|
}
|
|
52423
52679
|
)
|
|
52424
52680
|
] });
|
|
@@ -52430,9 +52686,9 @@ import { useTranslations as useTranslations65 } from "next-intl";
|
|
|
52430
52686
|
import { EuiCodeBlock, EuiText as EuiText39 } from "@elastic/eui";
|
|
52431
52687
|
|
|
52432
52688
|
// src/components/WfoWorkflowSteps/WfoTraceback/styles.ts
|
|
52433
|
-
import { css as
|
|
52689
|
+
import { css as css43 } from "@emotion/react";
|
|
52434
52690
|
var getStyles12 = ({ theme }) => {
|
|
52435
|
-
const codeBlockStyle =
|
|
52691
|
+
const codeBlockStyle = css43({
|
|
52436
52692
|
marginTop: theme.size.m,
|
|
52437
52693
|
marginBottom: theme.size.l,
|
|
52438
52694
|
borderRadius: theme.border.radius.medium
|
|
@@ -52443,21 +52699,21 @@ var getStyles12 = ({ theme }) => {
|
|
|
52443
52699
|
};
|
|
52444
52700
|
|
|
52445
52701
|
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
52446
|
-
import { Fragment as Fragment53, jsx as
|
|
52702
|
+
import { Fragment as Fragment53, jsx as jsx226, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
|
|
52447
52703
|
var WfoTraceback = ({ children }) => {
|
|
52448
52704
|
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles12);
|
|
52449
52705
|
const t = useTranslations65("processes.steps");
|
|
52450
|
-
return /* @__PURE__ */
|
|
52451
|
-
/* @__PURE__ */
|
|
52452
|
-
/* @__PURE__ */
|
|
52706
|
+
return /* @__PURE__ */ jsxs118(Fragment53, { children: [
|
|
52707
|
+
/* @__PURE__ */ jsx226(EuiText39, { children: /* @__PURE__ */ jsx226("h3", { children: t("traceback") }) }),
|
|
52708
|
+
/* @__PURE__ */ jsx226(EuiCodeBlock, { css: codeBlockStyle, children })
|
|
52453
52709
|
] });
|
|
52454
52710
|
};
|
|
52455
52711
|
|
|
52456
52712
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
52457
|
-
import { Fragment as Fragment54, jsx as
|
|
52713
|
+
import { Fragment as Fragment54, jsx as jsx227, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
|
|
52458
52714
|
var WfoProcessRawData = ({ processId }) => {
|
|
52459
52715
|
const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
|
|
52460
|
-
return isFetching ? /* @__PURE__ */
|
|
52716
|
+
return isFetching ? /* @__PURE__ */ jsx227(WfoLoading, {}) : /* @__PURE__ */ jsx227(WfoJsonCodeBlock, { data: data || {} });
|
|
52461
52717
|
};
|
|
52462
52718
|
var WfoProcessSubscriptionDelta = ({
|
|
52463
52719
|
processId
|
|
@@ -52468,7 +52724,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
52468
52724
|
const oldSubscriptions = data?.current_state?.__old_subscriptions__ || {};
|
|
52469
52725
|
const oldSubscription = subscriptionId in oldSubscriptions ? oldSubscriptions[subscriptionId] : null;
|
|
52470
52726
|
const oldText = oldSubscription || null;
|
|
52471
|
-
return isFetching ? /* @__PURE__ */
|
|
52727
|
+
return isFetching ? /* @__PURE__ */ jsx227(WfoLoading, {}) : /* @__PURE__ */ jsx227(
|
|
52472
52728
|
WfoDiff_default,
|
|
52473
52729
|
{
|
|
52474
52730
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -52477,7 +52733,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
52477
52733
|
}
|
|
52478
52734
|
);
|
|
52479
52735
|
};
|
|
52480
|
-
var WfoWorkflowStepList =
|
|
52736
|
+
var WfoWorkflowStepList = React73.forwardRef(
|
|
52481
52737
|
({
|
|
52482
52738
|
steps = [],
|
|
52483
52739
|
lastStatus,
|
|
@@ -52487,16 +52743,16 @@ var WfoWorkflowStepList = React72.forwardRef(
|
|
|
52487
52743
|
userInputForm,
|
|
52488
52744
|
userPermissions
|
|
52489
52745
|
}, reference) => {
|
|
52490
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
52491
|
-
const [showRaw, setShowRaw] =
|
|
52492
|
-
const [showDelta, setShowDelta] =
|
|
52493
|
-
const [showTraceback, setShowTraceback] =
|
|
52746
|
+
const [showHiddenKeys, setShowHiddenKeys] = useState48(false);
|
|
52747
|
+
const [showRaw, setShowRaw] = useState48(false);
|
|
52748
|
+
const [showDelta, setShowDelta] = useState48(false);
|
|
52749
|
+
const [showTraceback, setShowTraceback] = useState48(false);
|
|
52494
52750
|
const t = useTranslations66("processes.steps");
|
|
52495
52751
|
const initialStepListItems = steps.map((step) => ({
|
|
52496
52752
|
step,
|
|
52497
52753
|
isExpanded: false
|
|
52498
52754
|
}));
|
|
52499
|
-
const [stepListItems, setStepListItems] =
|
|
52755
|
+
const [stepListItems, setStepListItems] = useState48(initialStepListItems);
|
|
52500
52756
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
52501
52757
|
const reversedSteps = [...updatedSteps].reverse();
|
|
52502
52758
|
const lastStepWithSuspendStatusStepId = reversedSteps.find(
|
|
@@ -52513,7 +52769,7 @@ var WfoWorkflowStepList = React72.forwardRef(
|
|
|
52513
52769
|
};
|
|
52514
52770
|
});
|
|
52515
52771
|
};
|
|
52516
|
-
|
|
52772
|
+
useEffect32(() => {
|
|
52517
52773
|
setStepListItems(
|
|
52518
52774
|
(previousStepListItems) => persistStepListItemState(
|
|
52519
52775
|
previousStepListItems,
|
|
@@ -52551,8 +52807,8 @@ var WfoWorkflowStepList = React72.forwardRef(
|
|
|
52551
52807
|
"aborted" /* ABORTED */,
|
|
52552
52808
|
"completed" /* COMPLETED */
|
|
52553
52809
|
].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
|
|
52554
|
-
return /* @__PURE__ */
|
|
52555
|
-
/* @__PURE__ */
|
|
52810
|
+
return /* @__PURE__ */ jsxs119(Fragment54, { children: [
|
|
52811
|
+
/* @__PURE__ */ jsx227(
|
|
52556
52812
|
WfoStepListHeader,
|
|
52557
52813
|
{
|
|
52558
52814
|
showHiddenKeys,
|
|
@@ -52570,10 +52826,10 @@ var WfoWorkflowStepList = React72.forwardRef(
|
|
|
52570
52826
|
isRunningWorkflow
|
|
52571
52827
|
}
|
|
52572
52828
|
),
|
|
52573
|
-
showTraceback && /* @__PURE__ */
|
|
52574
|
-
showRaw && /* @__PURE__ */
|
|
52575
|
-
showDelta && /* @__PURE__ */
|
|
52576
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
52829
|
+
showTraceback && /* @__PURE__ */ jsx227(WfoTraceback, { children: traceBack }),
|
|
52830
|
+
showRaw && /* @__PURE__ */ jsx227(WfoProcessRawData, { processId }),
|
|
52831
|
+
showDelta && /* @__PURE__ */ jsx227(WfoProcessSubscriptionDelta, { processId }),
|
|
52832
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx227(
|
|
52577
52833
|
WfoStepList,
|
|
52578
52834
|
{
|
|
52579
52835
|
ref: reference,
|
|
@@ -52592,7 +52848,7 @@ var WfoWorkflowStepList = React72.forwardRef(
|
|
|
52592
52848
|
WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
52593
52849
|
|
|
52594
52850
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
52595
|
-
import { useState as
|
|
52851
|
+
import { useState as useState49 } from "react";
|
|
52596
52852
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
52597
52853
|
import {
|
|
52598
52854
|
EuiButton as EuiButton13,
|
|
@@ -52608,9 +52864,9 @@ import {
|
|
|
52608
52864
|
import { EuiText as EuiText40 } from "@elastic/eui";
|
|
52609
52865
|
|
|
52610
52866
|
// src/components/WfoTextAnchor/styles.ts
|
|
52611
|
-
import { css as
|
|
52867
|
+
import { css as css44 } from "@emotion/react";
|
|
52612
52868
|
var getStyles13 = ({ theme }) => {
|
|
52613
|
-
const textAnchorStyle =
|
|
52869
|
+
const textAnchorStyle = css44({
|
|
52614
52870
|
marginTop: theme.size.xxs,
|
|
52615
52871
|
marginLeft: 0,
|
|
52616
52872
|
fontSize: theme.size.m,
|
|
@@ -52624,14 +52880,14 @@ var getStyles13 = ({ theme }) => {
|
|
|
52624
52880
|
};
|
|
52625
52881
|
|
|
52626
52882
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
52627
|
-
import { jsx as
|
|
52883
|
+
import { jsx as jsx228 } from "@emotion/react/jsx-runtime";
|
|
52628
52884
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
52629
52885
|
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles13);
|
|
52630
|
-
return /* @__PURE__ */
|
|
52886
|
+
return /* @__PURE__ */ jsx228(EuiText40, { onClick, css: textAnchorStyle, children: text });
|
|
52631
52887
|
};
|
|
52632
52888
|
|
|
52633
52889
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
52634
|
-
import { jsx as
|
|
52890
|
+
import { jsx as jsx229, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
|
|
52635
52891
|
var WfoStepListHeader = ({
|
|
52636
52892
|
allDetailToggleText,
|
|
52637
52893
|
showDelta,
|
|
@@ -52655,23 +52911,23 @@ var WfoStepListHeader = ({
|
|
|
52655
52911
|
stepListContentBoldTextStyle,
|
|
52656
52912
|
stepListOptionsContainerStyle
|
|
52657
52913
|
} = useWithOrchestratorTheme(getWorkflowStepsStyles);
|
|
52658
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
52914
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState49(false);
|
|
52659
52915
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
52660
52916
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
52661
|
-
const viewOptionButton = /* @__PURE__ */
|
|
52917
|
+
const viewOptionButton = /* @__PURE__ */ jsx229(
|
|
52662
52918
|
EuiButton13,
|
|
52663
52919
|
{
|
|
52664
52920
|
onClick: onViewOptionClick,
|
|
52665
|
-
iconType: () => /* @__PURE__ */
|
|
52921
|
+
iconType: () => /* @__PURE__ */ jsx229(WfoEyeFill, { color: theme.colors.link }),
|
|
52666
52922
|
iconSide: "right",
|
|
52667
52923
|
size: "s",
|
|
52668
52924
|
children: t("viewOptions")
|
|
52669
52925
|
}
|
|
52670
52926
|
);
|
|
52671
|
-
return /* @__PURE__ */
|
|
52672
|
-
/* @__PURE__ */
|
|
52673
|
-
/* @__PURE__ */
|
|
52674
|
-
!showRaw && /* @__PURE__ */
|
|
52927
|
+
return /* @__PURE__ */ jsxs120(EuiFlexGroup24, { css: stepListHeaderStyle, children: [
|
|
52928
|
+
/* @__PURE__ */ jsxs120(EuiFlexGroup24, { css: stepListContentStyle, children: [
|
|
52929
|
+
/* @__PURE__ */ jsx229(EuiText41, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
52930
|
+
!showRaw && /* @__PURE__ */ jsx229(
|
|
52675
52931
|
WfoTextAnchor,
|
|
52676
52932
|
{
|
|
52677
52933
|
text: allDetailToggleText,
|
|
@@ -52679,7 +52935,7 @@ var WfoStepListHeader = ({
|
|
|
52679
52935
|
}
|
|
52680
52936
|
)
|
|
52681
52937
|
] }),
|
|
52682
|
-
/* @__PURE__ */
|
|
52938
|
+
/* @__PURE__ */ jsxs120(
|
|
52683
52939
|
EuiFlexGroup24,
|
|
52684
52940
|
{
|
|
52685
52941
|
justifyContent: "flexEnd",
|
|
@@ -52687,7 +52943,7 @@ var WfoStepListHeader = ({
|
|
|
52687
52943
|
css: stepListOptionsContainerStyle,
|
|
52688
52944
|
gutterSize: "s",
|
|
52689
52945
|
children: [
|
|
52690
|
-
showTracebackButton && /* @__PURE__ */
|
|
52946
|
+
showTracebackButton && /* @__PURE__ */ jsx229(
|
|
52691
52947
|
EuiButton13,
|
|
52692
52948
|
{
|
|
52693
52949
|
onClick: () => onShowTraceback(!showTraceback),
|
|
@@ -52695,14 +52951,14 @@ var WfoStepListHeader = ({
|
|
|
52695
52951
|
children: showTraceback ? t("hideTraceback") : t("showTraceback")
|
|
52696
52952
|
}
|
|
52697
52953
|
),
|
|
52698
|
-
/* @__PURE__ */
|
|
52954
|
+
/* @__PURE__ */ jsx229(
|
|
52699
52955
|
EuiButton13,
|
|
52700
52956
|
{
|
|
52701
52957
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
52702
52958
|
disabled: isRunningWorkflow,
|
|
52703
52959
|
iconSide: "right",
|
|
52704
52960
|
size: "s",
|
|
52705
|
-
iconType: () => /* @__PURE__ */
|
|
52961
|
+
iconType: () => /* @__PURE__ */ jsx229(
|
|
52706
52962
|
WfoCode,
|
|
52707
52963
|
{
|
|
52708
52964
|
color: isRunningWorkflow ? theme.colors.disabledText : theme.colors.link
|
|
@@ -52711,15 +52967,15 @@ var WfoStepListHeader = ({
|
|
|
52711
52967
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
52712
52968
|
}
|
|
52713
52969
|
),
|
|
52714
|
-
/* @__PURE__ */
|
|
52970
|
+
/* @__PURE__ */ jsx229(
|
|
52715
52971
|
EuiPopover8,
|
|
52716
52972
|
{
|
|
52717
52973
|
button: viewOptionButton,
|
|
52718
52974
|
isOpen: isViewOptionOpen,
|
|
52719
52975
|
closePopover: closeViewOption,
|
|
52720
52976
|
display: "block",
|
|
52721
|
-
children: /* @__PURE__ */
|
|
52722
|
-
/* @__PURE__ */
|
|
52977
|
+
children: /* @__PURE__ */ jsx229("div", { children: /* @__PURE__ */ jsxs120(EuiForm3, { component: "form", children: [
|
|
52978
|
+
/* @__PURE__ */ jsx229(EuiFormRow23, { children: /* @__PURE__ */ jsx229(
|
|
52723
52979
|
EuiSwitch3,
|
|
52724
52980
|
{
|
|
52725
52981
|
label: "Hidden keys",
|
|
@@ -52732,7 +52988,7 @@ var WfoStepListHeader = ({
|
|
|
52732
52988
|
}
|
|
52733
52989
|
}
|
|
52734
52990
|
) }),
|
|
52735
|
-
/* @__PURE__ */
|
|
52991
|
+
/* @__PURE__ */ jsx229(EuiFormRow23, { children: /* @__PURE__ */ jsx229(
|
|
52736
52992
|
EuiSwitch3,
|
|
52737
52993
|
{
|
|
52738
52994
|
label: "Raw JSON data",
|
|
@@ -52753,7 +53009,7 @@ var WfoStepListHeader = ({
|
|
|
52753
53009
|
};
|
|
52754
53010
|
|
|
52755
53011
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
52756
|
-
import { jsx as
|
|
53012
|
+
import { jsx as jsx230, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
|
|
52757
53013
|
var getInitialProcessPayload = ({
|
|
52758
53014
|
productId,
|
|
52759
53015
|
subscriptionId
|
|
@@ -52775,9 +53031,9 @@ var WfoStartProcessPage = ({
|
|
|
52775
53031
|
}) => {
|
|
52776
53032
|
const t = useTranslations68("processes.steps");
|
|
52777
53033
|
const router = useRouter10();
|
|
52778
|
-
const [hasError, setHasError] =
|
|
53034
|
+
const [hasError, setHasError] = useState50(false);
|
|
52779
53035
|
const { theme } = useOrchestratorTheme();
|
|
52780
|
-
const [form, setForm] =
|
|
53036
|
+
const [form, setForm] = useState50({});
|
|
52781
53037
|
const { productId, subscriptionId } = router.query;
|
|
52782
53038
|
const {
|
|
52783
53039
|
data: subscriptionDetail,
|
|
@@ -52852,7 +53108,7 @@ var WfoStartProcessPage = ({
|
|
|
52852
53108
|
},
|
|
52853
53109
|
[startProcess, processName, startProcessPayload, isTask, router]
|
|
52854
53110
|
);
|
|
52855
|
-
|
|
53111
|
+
useEffect33(() => {
|
|
52856
53112
|
if (processName && processName !== "modify_note") {
|
|
52857
53113
|
const clientResultCallback = (json) => {
|
|
52858
53114
|
setForm({
|
|
@@ -52888,7 +53144,7 @@ var WfoStartProcessPage = ({
|
|
|
52888
53144
|
}
|
|
52889
53145
|
};
|
|
52890
53146
|
const pageTitle = workflowMetadata?.description || isErrorWorkflowDescription && processDetail?.workflowName || "";
|
|
52891
|
-
return /* @__PURE__ */
|
|
53147
|
+
return /* @__PURE__ */ jsx230(
|
|
52892
53148
|
WfoProcessDetail,
|
|
52893
53149
|
{
|
|
52894
53150
|
pageTitle,
|
|
@@ -52897,25 +53153,25 @@ var WfoStartProcessPage = ({
|
|
|
52897
53153
|
processDetail,
|
|
52898
53154
|
timelineItems: timeLineItems,
|
|
52899
53155
|
isLoading,
|
|
52900
|
-
children: /* @__PURE__ */
|
|
52901
|
-
/* @__PURE__ */
|
|
52902
|
-
/* @__PURE__ */
|
|
52903
|
-
/* @__PURE__ */
|
|
52904
|
-
/* @__PURE__ */
|
|
52905
|
-
/* @__PURE__ */
|
|
53156
|
+
children: /* @__PURE__ */ jsxs121(EuiPanel5, { css: { marginTop: theme.base * 3 }, children: [
|
|
53157
|
+
/* @__PURE__ */ jsxs121(EuiFlexGroup25, { css: getStepHeaderStyle(false), children: [
|
|
53158
|
+
/* @__PURE__ */ jsx230(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
53159
|
+
/* @__PURE__ */ jsxs121(EuiFlexItem29, { grow: 0, children: [
|
|
53160
|
+
/* @__PURE__ */ jsx230(EuiText42, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
53161
|
+
/* @__PURE__ */ jsx230(EuiText42, { children: t(
|
|
52906
53162
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
52907
53163
|
) })
|
|
52908
53164
|
] })
|
|
52909
53165
|
] }),
|
|
52910
|
-
/* @__PURE__ */
|
|
52911
|
-
hasError && /* @__PURE__ */
|
|
53166
|
+
/* @__PURE__ */ jsx230(EuiHorizontalRule8, {}),
|
|
53167
|
+
hasError && /* @__PURE__ */ jsx230(WfoError, {}) || processName === "modify_note" && /* @__PURE__ */ jsx230(
|
|
52912
53168
|
WfoPydanticForm,
|
|
52913
53169
|
{
|
|
52914
53170
|
processName,
|
|
52915
53171
|
startProcessPayload,
|
|
52916
53172
|
isTask
|
|
52917
53173
|
}
|
|
52918
|
-
) || stepUserInput && /* @__PURE__ */
|
|
53174
|
+
) || stepUserInput && /* @__PURE__ */ jsx230(
|
|
52919
53175
|
UserInputFormWizard,
|
|
52920
53176
|
{
|
|
52921
53177
|
stepUserInput,
|
|
@@ -52926,7 +53182,7 @@ var WfoStartProcessPage = ({
|
|
|
52926
53182
|
hasNext,
|
|
52927
53183
|
isTask
|
|
52928
53184
|
}
|
|
52929
|
-
) || /* @__PURE__ */
|
|
53185
|
+
) || /* @__PURE__ */ jsx230(WfoLoading, {})
|
|
52930
53186
|
] })
|
|
52931
53187
|
}
|
|
52932
53188
|
);
|
|
@@ -52934,8 +53190,8 @@ var WfoStartProcessPage = ({
|
|
|
52934
53190
|
|
|
52935
53191
|
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
52936
53192
|
import { useTranslations as useTranslations69 } from "next-intl";
|
|
52937
|
-
import { EuiButtonIcon as
|
|
52938
|
-
import { jsx as
|
|
53193
|
+
import { EuiButtonIcon as EuiButtonIcon13, EuiFlexGroup as EuiFlexGroup26, EuiText as EuiText43, EuiToolTip as EuiToolTip8 } from "@elastic/eui";
|
|
53194
|
+
import { jsx as jsx231, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
52939
53195
|
var WfoProductInformationWithLink = ({
|
|
52940
53196
|
workflowName,
|
|
52941
53197
|
productNames
|
|
@@ -52943,16 +53199,16 @@ var WfoProductInformationWithLink = ({
|
|
|
52943
53199
|
const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
|
|
52944
53200
|
const t = useTranslations69("processes.detail");
|
|
52945
53201
|
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
52946
|
-
return /* @__PURE__ */
|
|
52947
|
-
showWorkflowInformationLink && /* @__PURE__ */
|
|
52948
|
-
|
|
53202
|
+
return /* @__PURE__ */ jsxs122(EuiFlexGroup26, { gutterSize: "s", alignItems: "center", children: [
|
|
53203
|
+
showWorkflowInformationLink && /* @__PURE__ */ jsx231(EuiToolTip8, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx231("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx231(
|
|
53204
|
+
EuiButtonIcon13,
|
|
52949
53205
|
{
|
|
52950
53206
|
iconSize: "l",
|
|
52951
53207
|
iconType: "iInCircle",
|
|
52952
53208
|
"aria-label": t("openWorkflowTaskInfo")
|
|
52953
53209
|
}
|
|
52954
53210
|
) }) }),
|
|
52955
|
-
/* @__PURE__ */
|
|
53211
|
+
/* @__PURE__ */ jsx231(EuiText43, { size: "s", children: productNames })
|
|
52956
53212
|
] });
|
|
52957
53213
|
};
|
|
52958
53214
|
|
|
@@ -52969,7 +53225,7 @@ import {
|
|
|
52969
53225
|
EuiTabs as EuiTabs3,
|
|
52970
53226
|
EuiText as EuiText45
|
|
52971
53227
|
} from "@elastic/eui";
|
|
52972
|
-
import { css as
|
|
53228
|
+
import { css as css45 } from "@emotion/react";
|
|
52973
53229
|
|
|
52974
53230
|
// src/components/WfoSettings/WfoAoStackStatus.tsx
|
|
52975
53231
|
import { useTranslations as useTranslations70 } from "next-intl";
|
|
@@ -52980,20 +53236,20 @@ import {
|
|
|
52980
53236
|
EuiSpacer as EuiSpacer21,
|
|
52981
53237
|
EuiText as EuiText44
|
|
52982
53238
|
} from "@elastic/eui";
|
|
52983
|
-
import { jsx as
|
|
53239
|
+
import { jsx as jsx232, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
52984
53240
|
var WfoAoStackStatus = () => {
|
|
52985
53241
|
const t = useTranslations70("settings.page");
|
|
52986
53242
|
const { aoStackStatusUrl } = useGetOrchestratorConfig();
|
|
52987
53243
|
const openStatusPage = () => {
|
|
52988
53244
|
window.open(aoStackStatusUrl, "_blank");
|
|
52989
53245
|
};
|
|
52990
|
-
return /* @__PURE__ */
|
|
52991
|
-
/* @__PURE__ */
|
|
52992
|
-
/* @__PURE__ */
|
|
52993
|
-
/* @__PURE__ */
|
|
53246
|
+
return /* @__PURE__ */ jsx232(EuiFlexItem30, { children: /* @__PURE__ */ jsxs123(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
53247
|
+
/* @__PURE__ */ jsx232(EuiText44, { size: "s", children: /* @__PURE__ */ jsx232("h4", { children: t("aoStackStatus") }) }),
|
|
53248
|
+
/* @__PURE__ */ jsx232(EuiSpacer21, { size: "m" }),
|
|
53249
|
+
/* @__PURE__ */ jsx232(
|
|
52994
53250
|
EuiButton14,
|
|
52995
53251
|
{
|
|
52996
|
-
iconType: () => /* @__PURE__ */
|
|
53252
|
+
iconType: () => /* @__PURE__ */ jsx232(WfoChartBar, {}),
|
|
52997
53253
|
onClick: openStatusPage,
|
|
52998
53254
|
children: t("viewStatusPage")
|
|
52999
53255
|
}
|
|
@@ -53002,7 +53258,7 @@ var WfoAoStackStatus = () => {
|
|
|
53002
53258
|
};
|
|
53003
53259
|
|
|
53004
53260
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
53005
|
-
import { Fragment as Fragment55, jsx as
|
|
53261
|
+
import { Fragment as Fragment55, jsx as jsx233, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
|
|
53006
53262
|
var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
53007
53263
|
WfoSettingsTab2["ACTIONS"] = "ACTIONS";
|
|
53008
53264
|
WfoSettingsTab2["ENV_SETTINGS"] = "ENV_SETTINGS";
|
|
@@ -53011,18 +53267,18 @@ var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
|
53011
53267
|
var WfoActionSettings = () => {
|
|
53012
53268
|
const { theme } = useOrchestratorTheme();
|
|
53013
53269
|
const { enableAoStackStatus } = useGetOrchestratorConfig();
|
|
53014
|
-
return /* @__PURE__ */
|
|
53015
|
-
/* @__PURE__ */
|
|
53016
|
-
/* @__PURE__ */
|
|
53017
|
-
/* @__PURE__ */
|
|
53018
|
-
/* @__PURE__ */
|
|
53019
|
-
/* @__PURE__ */
|
|
53020
|
-
enableAoStackStatus && /* @__PURE__ */
|
|
53021
|
-
/* @__PURE__ */
|
|
53022
|
-
/* @__PURE__ */
|
|
53270
|
+
return /* @__PURE__ */ jsx233(Fragment55, { children: /* @__PURE__ */ jsxs124("div", { css: { maxWidth: theme.base * 40 }, children: [
|
|
53271
|
+
/* @__PURE__ */ jsx233(WfoFlushSettings, {}),
|
|
53272
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {}),
|
|
53273
|
+
/* @__PURE__ */ jsx233(WfoModifySettings, {}),
|
|
53274
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {}),
|
|
53275
|
+
/* @__PURE__ */ jsx233(WfoEngineStatus, {}),
|
|
53276
|
+
enableAoStackStatus && /* @__PURE__ */ jsxs124(Fragment55, { children: [
|
|
53277
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {}),
|
|
53278
|
+
/* @__PURE__ */ jsx233(WfoAoStackStatus, {})
|
|
53023
53279
|
] }),
|
|
53024
|
-
/* @__PURE__ */
|
|
53025
|
-
/* @__PURE__ */
|
|
53280
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {}),
|
|
53281
|
+
/* @__PURE__ */ jsx233(WfoWorkerStatus, {})
|
|
53026
53282
|
] }) });
|
|
53027
53283
|
};
|
|
53028
53284
|
var WfoEnvSettings = () => {
|
|
@@ -53035,22 +53291,22 @@ var WfoEnvSettings = () => {
|
|
|
53035
53291
|
const renderEnvSettings = () => {
|
|
53036
53292
|
return data && data.map(({ name, variables }) => {
|
|
53037
53293
|
const showVariables = mapToRepresentableVariables(variables);
|
|
53038
|
-
return /* @__PURE__ */
|
|
53039
|
-
/* @__PURE__ */
|
|
53294
|
+
return /* @__PURE__ */ jsxs124(Fragment55, { children: [
|
|
53295
|
+
/* @__PURE__ */ jsx233(EuiFlexItem31, { children: /* @__PURE__ */ jsxs124(
|
|
53040
53296
|
EuiPanel7,
|
|
53041
53297
|
{
|
|
53042
53298
|
hasShadow: false,
|
|
53043
53299
|
color: "subdued",
|
|
53044
53300
|
paddingSize: "l",
|
|
53045
53301
|
children: [
|
|
53046
|
-
/* @__PURE__ */
|
|
53047
|
-
/* @__PURE__ */
|
|
53048
|
-
/* @__PURE__ */
|
|
53302
|
+
/* @__PURE__ */ jsx233(EuiText45, { size: "s", children: /* @__PURE__ */ jsx233("h2", { children: name.replace("_", " ").toUpperCase() }) }),
|
|
53303
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {}),
|
|
53304
|
+
/* @__PURE__ */ jsx233(
|
|
53049
53305
|
EuiCodeBlock2,
|
|
53050
53306
|
{
|
|
53051
53307
|
fontSize: "m",
|
|
53052
53308
|
paddingSize: "m",
|
|
53053
|
-
css:
|
|
53309
|
+
css: css45({
|
|
53054
53310
|
background: theme.colors.lightShade
|
|
53055
53311
|
}),
|
|
53056
53312
|
children: showVariables
|
|
@@ -53059,15 +53315,15 @@ var WfoEnvSettings = () => {
|
|
|
53059
53315
|
]
|
|
53060
53316
|
}
|
|
53061
53317
|
) }),
|
|
53062
|
-
/* @__PURE__ */
|
|
53318
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, {})
|
|
53063
53319
|
] });
|
|
53064
53320
|
});
|
|
53065
53321
|
};
|
|
53066
53322
|
const emptyEnvSettings = () => {
|
|
53067
|
-
return /* @__PURE__ */
|
|
53323
|
+
return /* @__PURE__ */ jsx233(EuiFlexItem31, { children: /* @__PURE__ */ jsx233(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx233(EuiText45, { size: "s", children: /* @__PURE__ */ jsxs124("h2", { children: [
|
|
53068
53324
|
t("noSettingsExposed"),
|
|
53069
53325
|
" ",
|
|
53070
|
-
/* @__PURE__ */
|
|
53326
|
+
/* @__PURE__ */ jsx233(
|
|
53071
53327
|
"a",
|
|
53072
53328
|
{
|
|
53073
53329
|
href: "https://workfloworchestrator.org/orchestrator-core/reference-docs/app/settings_overview/",
|
|
@@ -53077,18 +53333,18 @@ var WfoEnvSettings = () => {
|
|
|
53077
53333
|
)
|
|
53078
53334
|
] }) }) }) });
|
|
53079
53335
|
};
|
|
53080
|
-
return /* @__PURE__ */
|
|
53336
|
+
return /* @__PURE__ */ jsx233("div", { css: { maxWidth: theme.base * 45 }, children: data?.length ? renderEnvSettings() : emptyEnvSettings() });
|
|
53081
53337
|
};
|
|
53082
53338
|
var settingsTabs = [
|
|
53083
53339
|
{
|
|
53084
53340
|
id: "ACTIONS" /* ACTIONS */,
|
|
53085
53341
|
translationKey: "actions",
|
|
53086
|
-
content: /* @__PURE__ */
|
|
53342
|
+
content: /* @__PURE__ */ jsx233(WfoActionSettings, {})
|
|
53087
53343
|
},
|
|
53088
53344
|
{
|
|
53089
53345
|
id: "ENV_SETTINGS" /* ENV_SETTINGS */,
|
|
53090
53346
|
translationKey: "envSettings",
|
|
53091
|
-
content: /* @__PURE__ */
|
|
53347
|
+
content: /* @__PURE__ */ jsx233(WfoEnvSettings, {})
|
|
53092
53348
|
}
|
|
53093
53349
|
];
|
|
53094
53350
|
var WfoSettingsPage = () => {
|
|
@@ -53106,7 +53362,7 @@ var WfoSettingsPage = () => {
|
|
|
53106
53362
|
setSelectedTabId(id);
|
|
53107
53363
|
};
|
|
53108
53364
|
const renderTabs = () => {
|
|
53109
|
-
return settingsTabs.map((tab, index) => /* @__PURE__ */
|
|
53365
|
+
return settingsTabs.map((tab, index) => /* @__PURE__ */ jsx233(
|
|
53110
53366
|
EuiTab3,
|
|
53111
53367
|
{
|
|
53112
53368
|
css: tabStyle,
|
|
@@ -53117,10 +53373,10 @@ var WfoSettingsPage = () => {
|
|
|
53117
53373
|
index
|
|
53118
53374
|
));
|
|
53119
53375
|
};
|
|
53120
|
-
return /* @__PURE__ */
|
|
53121
|
-
/* @__PURE__ */
|
|
53122
|
-
/* @__PURE__ */
|
|
53123
|
-
/* @__PURE__ */
|
|
53376
|
+
return /* @__PURE__ */ jsxs124(Fragment55, { children: [
|
|
53377
|
+
/* @__PURE__ */ jsx233(WfoContentHeader, { title: t("settings") }),
|
|
53378
|
+
/* @__PURE__ */ jsx233(EuiTabs3, { children: renderTabs() }),
|
|
53379
|
+
/* @__PURE__ */ jsx233(EuiSpacer22, { size: "xxl" }),
|
|
53124
53380
|
selectedTabContent
|
|
53125
53381
|
] });
|
|
53126
53382
|
};
|
|
@@ -53140,7 +53396,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
|
|
|
53140
53396
|
};
|
|
53141
53397
|
|
|
53142
53398
|
// src/pages/startPage/WfoStartPage.tsx
|
|
53143
|
-
import { Fragment as Fragment56, jsx as
|
|
53399
|
+
import { Fragment as Fragment56, jsx as jsx234, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
|
|
53144
53400
|
var WfoStartPage = () => {
|
|
53145
53401
|
const t = useTranslations72("main");
|
|
53146
53402
|
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
@@ -53149,27 +53405,27 @@ var WfoStartPage = () => {
|
|
|
53149
53405
|
const username = session?.user?.name ?? "";
|
|
53150
53406
|
const defaultSummaryCards = [
|
|
53151
53407
|
...toOptionalArrayEntry(
|
|
53152
|
-
/* @__PURE__ */
|
|
53408
|
+
/* @__PURE__ */ jsx234(WfoMyWorkflowsSummaryCard, { username }, "myWorkflows"),
|
|
53153
53409
|
!!username
|
|
53154
53410
|
),
|
|
53155
|
-
/* @__PURE__ */
|
|
53411
|
+
/* @__PURE__ */ jsx234(WfoActiveWorkflowsSummaryCard, {}, "activeWorkflows"),
|
|
53156
53412
|
...toOptionalArrayEntry(
|
|
53157
|
-
/* @__PURE__ */
|
|
53413
|
+
/* @__PURE__ */ jsx234(WfoFailedTasksSummaryCard, {}, "failedTasks"),
|
|
53158
53414
|
isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */)
|
|
53159
53415
|
),
|
|
53160
|
-
/* @__PURE__ */
|
|
53161
|
-
/* @__PURE__ */
|
|
53162
|
-
/* @__PURE__ */
|
|
53416
|
+
/* @__PURE__ */ jsx234(WfoLatestOutOfSyncSubscriptionSummaryCard, {}, "latestOutOfSyncSubscription"),
|
|
53417
|
+
/* @__PURE__ */ jsx234(WfoLatestActiveSubscriptionsSummaryCard, {}, "latestActiveSubscriptions"),
|
|
53418
|
+
/* @__PURE__ */ jsx234(WfoProductsSummaryCard, {}, "products")
|
|
53163
53419
|
];
|
|
53164
53420
|
const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
|
|
53165
|
-
return /* @__PURE__ */
|
|
53166
|
-
/* @__PURE__ */
|
|
53421
|
+
return /* @__PURE__ */ jsxs125(Fragment56, { children: [
|
|
53422
|
+
/* @__PURE__ */ jsx234(
|
|
53167
53423
|
WfoContentHeader,
|
|
53168
53424
|
{
|
|
53169
|
-
title: /* @__PURE__ */
|
|
53425
|
+
title: /* @__PURE__ */ jsx234(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` })
|
|
53170
53426
|
}
|
|
53171
53427
|
),
|
|
53172
|
-
/* @__PURE__ */
|
|
53428
|
+
/* @__PURE__ */ jsx234(WfoSummaryCards, { children: summaryCards })
|
|
53173
53429
|
] });
|
|
53174
53430
|
};
|
|
53175
53431
|
|
|
@@ -53187,26 +53443,26 @@ var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
|
|
|
53187
53443
|
|
|
53188
53444
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
53189
53445
|
import { useRouter as useRouter11 } from "next/router";
|
|
53190
|
-
import { Fragment as Fragment57, jsx as
|
|
53446
|
+
import { Fragment as Fragment57, jsx as jsx235 } from "@emotion/react/jsx-runtime";
|
|
53191
53447
|
var WfoSubscriptionDetailPage = () => {
|
|
53192
53448
|
const router = useRouter11();
|
|
53193
53449
|
const { subscriptionId } = router.query;
|
|
53194
|
-
return subscriptionId && /* @__PURE__ */
|
|
53450
|
+
return subscriptionId && /* @__PURE__ */ jsx235(TreeProvider, { children: /* @__PURE__ */ jsx235(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx235(Fragment57, {});
|
|
53195
53451
|
};
|
|
53196
53452
|
|
|
53197
53453
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
53198
|
-
import { useEffect as
|
|
53454
|
+
import { useEffect as useEffect34, useState as useState51 } from "react";
|
|
53199
53455
|
import { useTranslations as useTranslations73 } from "next-intl";
|
|
53200
53456
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
53201
53457
|
import { EuiSpacer as EuiSpacer23 } from "@elastic/eui";
|
|
53202
|
-
import { Fragment as Fragment58, jsx as
|
|
53458
|
+
import { Fragment as Fragment58, jsx as jsx236, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
|
|
53203
53459
|
var WfoSubscriptionsListPage = () => {
|
|
53204
53460
|
const t = useTranslations73("subscriptions.detail");
|
|
53205
|
-
const [tableDefaults, setTableDefaults] =
|
|
53461
|
+
const [tableDefaults, setTableDefaults] = useState51();
|
|
53206
53462
|
const getStoredTableConfig = useStoredTableConfig(
|
|
53207
53463
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
53208
53464
|
);
|
|
53209
|
-
|
|
53465
|
+
useEffect34(() => {
|
|
53210
53466
|
const storedConfig = getStoredTableConfig();
|
|
53211
53467
|
if (storedConfig) {
|
|
53212
53468
|
setTableDefaults(storedConfig);
|
|
@@ -53237,14 +53493,14 @@ var WfoSubscriptionsListPage = () => {
|
|
|
53237
53493
|
const alwaysOnFilters = subscriptionListTabs.find(
|
|
53238
53494
|
({ id }) => id === activeTab
|
|
53239
53495
|
)?.alwaysOnFilters;
|
|
53240
|
-
return /* @__PURE__ */
|
|
53241
|
-
/* @__PURE__ */
|
|
53496
|
+
return /* @__PURE__ */ jsxs126(Fragment58, { children: [
|
|
53497
|
+
/* @__PURE__ */ jsx236(
|
|
53242
53498
|
WfoContentHeader,
|
|
53243
53499
|
{
|
|
53244
|
-
title: /* @__PURE__ */
|
|
53500
|
+
title: /* @__PURE__ */ jsx236(WfoTitleWithWebsocketBadge, { title: t("title") })
|
|
53245
53501
|
}
|
|
53246
53502
|
),
|
|
53247
|
-
/* @__PURE__ */
|
|
53503
|
+
/* @__PURE__ */ jsx236(
|
|
53248
53504
|
WfoFilterTabs,
|
|
53249
53505
|
{
|
|
53250
53506
|
tabs: subscriptionListTabs,
|
|
@@ -53253,8 +53509,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
53253
53509
|
onChangeTab: handleChangeSubscriptionsTab
|
|
53254
53510
|
}
|
|
53255
53511
|
),
|
|
53256
|
-
/* @__PURE__ */
|
|
53257
|
-
/* @__PURE__ */
|
|
53512
|
+
/* @__PURE__ */ jsx236(EuiSpacer23, { size: "xxl" }),
|
|
53513
|
+
/* @__PURE__ */ jsx236(
|
|
53258
53514
|
WfoSubscriptionsList,
|
|
53259
53515
|
{
|
|
53260
53516
|
hiddenColumns: tableDefaults?.hiddenColumns,
|
|
@@ -53267,7 +53523,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
53267
53523
|
};
|
|
53268
53524
|
|
|
53269
53525
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
53270
|
-
import { useContext as useContext11, useEffect as
|
|
53526
|
+
import { useContext as useContext11, useEffect as useEffect35, useState as useState52 } from "react";
|
|
53271
53527
|
import { useTranslations as useTranslations74 } from "next-intl";
|
|
53272
53528
|
import Link11 from "next/link";
|
|
53273
53529
|
import { useRouter as useRouter12 } from "next/router";
|
|
@@ -53337,7 +53593,7 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
53337
53593
|
};
|
|
53338
53594
|
|
|
53339
53595
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
53340
|
-
import { Fragment as Fragment59, jsx as
|
|
53596
|
+
import { Fragment as Fragment59, jsx as jsx237, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
|
|
53341
53597
|
var WfoTasksListPage = () => {
|
|
53342
53598
|
const router = useRouter12();
|
|
53343
53599
|
const t = useTranslations74("tasks.page");
|
|
@@ -53345,7 +53601,7 @@ var WfoTasksListPage = () => {
|
|
|
53345
53601
|
"activeTab",
|
|
53346
53602
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
53347
53603
|
);
|
|
53348
|
-
const [tableDefaults, setTableDefaults] =
|
|
53604
|
+
const [tableDefaults, setTableDefaults] = useState52();
|
|
53349
53605
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
53350
53606
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
53351
53607
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -53353,7 +53609,7 @@ var WfoTasksListPage = () => {
|
|
|
53353
53609
|
const { showConfirmDialog } = useContext11(ConfirmationDialogContext);
|
|
53354
53610
|
const [retryAllProcesses] = useRetryAllProcessesMutation();
|
|
53355
53611
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
53356
|
-
|
|
53612
|
+
useEffect35(() => {
|
|
53357
53613
|
const storedConfig = getStoredTableConfig();
|
|
53358
53614
|
if (storedConfig) {
|
|
53359
53615
|
setTableDefaults(storedConfig);
|
|
@@ -53393,7 +53649,7 @@ var WfoTasksListPage = () => {
|
|
|
53393
53649
|
workflowName: {
|
|
53394
53650
|
columnType: "data" /* DATA */,
|
|
53395
53651
|
label: t("taskName"),
|
|
53396
|
-
renderData: (value, { processId }) => /* @__PURE__ */
|
|
53652
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx237(Link11, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
53397
53653
|
},
|
|
53398
53654
|
...toSortedTableColumnConfig(defaultTableColumns, [
|
|
53399
53655
|
"lastStep",
|
|
@@ -53411,25 +53667,25 @@ var WfoTasksListPage = () => {
|
|
|
53411
53667
|
"lastModifiedAt"
|
|
53412
53668
|
])
|
|
53413
53669
|
});
|
|
53414
|
-
return /* @__PURE__ */
|
|
53415
|
-
/* @__PURE__ */
|
|
53670
|
+
return /* @__PURE__ */ jsxs127(Fragment59, { children: [
|
|
53671
|
+
/* @__PURE__ */ jsxs127(
|
|
53416
53672
|
WfoContentHeader,
|
|
53417
53673
|
{
|
|
53418
|
-
title: /* @__PURE__ */
|
|
53674
|
+
title: /* @__PURE__ */ jsx237(WfoTitleWithWebsocketBadge, { title: "Tasks" }),
|
|
53419
53675
|
children: [
|
|
53420
|
-
/* @__PURE__ */
|
|
53676
|
+
/* @__PURE__ */ jsx237(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx237(
|
|
53421
53677
|
EuiButton15,
|
|
53422
53678
|
{
|
|
53423
53679
|
onClick: handleRerunAllButtonClick,
|
|
53424
|
-
iconType: () => /* @__PURE__ */
|
|
53680
|
+
iconType: () => /* @__PURE__ */ jsx237(WfoRefresh, { color: theme.colors.primaryText }),
|
|
53425
53681
|
children: t("rerunAll")
|
|
53426
53682
|
}
|
|
53427
53683
|
) }),
|
|
53428
|
-
/* @__PURE__ */
|
|
53684
|
+
/* @__PURE__ */ jsx237(WfoIsAllowedToRender, { resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */, children: /* @__PURE__ */ jsx237(WfoStartTaskButtonComboBox, {}) })
|
|
53429
53685
|
]
|
|
53430
53686
|
}
|
|
53431
53687
|
),
|
|
53432
|
-
/* @__PURE__ */
|
|
53688
|
+
/* @__PURE__ */ jsx237(
|
|
53433
53689
|
WfoFilterTabs,
|
|
53434
53690
|
{
|
|
53435
53691
|
tabs: defaultTasksListTabs,
|
|
@@ -53438,8 +53694,8 @@ var WfoTasksListPage = () => {
|
|
|
53438
53694
|
onChangeTab: handleChangeTasksListTab
|
|
53439
53695
|
}
|
|
53440
53696
|
),
|
|
53441
|
-
/* @__PURE__ */
|
|
53442
|
-
/* @__PURE__ */
|
|
53697
|
+
/* @__PURE__ */ jsx237(EuiSpacer24, { size: "xxl" }),
|
|
53698
|
+
/* @__PURE__ */ jsx237(
|
|
53443
53699
|
WfoProcessesList,
|
|
53444
53700
|
{
|
|
53445
53701
|
defaultHiddenColumns: tableDefaults?.hiddenColumns,
|
|
@@ -53454,7 +53710,7 @@ var WfoTasksListPage = () => {
|
|
|
53454
53710
|
};
|
|
53455
53711
|
|
|
53456
53712
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
53457
|
-
import { useEffect as
|
|
53713
|
+
import { useEffect as useEffect36, useState as useState53 } from "react";
|
|
53458
53714
|
import { useTranslations as useTranslations75 } from "next-intl";
|
|
53459
53715
|
import { useRouter as useRouter13 } from "next/router";
|
|
53460
53716
|
import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
|
|
@@ -53523,7 +53779,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
53523
53779
|
};
|
|
53524
53780
|
|
|
53525
53781
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
53526
|
-
import { Fragment as Fragment60, jsx as
|
|
53782
|
+
import { Fragment as Fragment60, jsx as jsx238, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
|
|
53527
53783
|
var WfoWorkflowsListPage = () => {
|
|
53528
53784
|
const router = useRouter13();
|
|
53529
53785
|
const t = useTranslations75("workflows.index");
|
|
@@ -53531,11 +53787,11 @@ var WfoWorkflowsListPage = () => {
|
|
|
53531
53787
|
"activeTab",
|
|
53532
53788
|
withDefault6(StringParam6, "ACTIVE" /* ACTIVE */)
|
|
53533
53789
|
);
|
|
53534
|
-
const [tableDefaults, setTableDefaults] =
|
|
53790
|
+
const [tableDefaults, setTableDefaults] = useState53();
|
|
53535
53791
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
53536
53792
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
53537
53793
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
53538
|
-
|
|
53794
|
+
useEffect36(() => {
|
|
53539
53795
|
const storedConfig = getStoredTableConfig();
|
|
53540
53796
|
if (storedConfig) {
|
|
53541
53797
|
setTableDefaults(storedConfig);
|
|
@@ -53561,14 +53817,14 @@ var WfoWorkflowsListPage = () => {
|
|
|
53561
53817
|
router.replace(PATH_WORKFLOWS);
|
|
53562
53818
|
return null;
|
|
53563
53819
|
}
|
|
53564
|
-
return /* @__PURE__ */
|
|
53565
|
-
/* @__PURE__ */
|
|
53820
|
+
return /* @__PURE__ */ jsxs128(Fragment60, { children: [
|
|
53821
|
+
/* @__PURE__ */ jsx238(
|
|
53566
53822
|
WfoContentHeader,
|
|
53567
53823
|
{
|
|
53568
|
-
title: /* @__PURE__ */
|
|
53824
|
+
title: /* @__PURE__ */ jsx238(WfoTitleWithWebsocketBadge, { title: t("title") })
|
|
53569
53825
|
}
|
|
53570
53826
|
),
|
|
53571
|
-
/* @__PURE__ */
|
|
53827
|
+
/* @__PURE__ */ jsx238(
|
|
53572
53828
|
WfoFilterTabs,
|
|
53573
53829
|
{
|
|
53574
53830
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -53577,8 +53833,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
53577
53833
|
onChangeTab: handleChangeWorkflowsListTab
|
|
53578
53834
|
}
|
|
53579
53835
|
),
|
|
53580
|
-
/* @__PURE__ */
|
|
53581
|
-
/* @__PURE__ */
|
|
53836
|
+
/* @__PURE__ */ jsx238(EuiSpacer25, { size: "xxl" }),
|
|
53837
|
+
/* @__PURE__ */ jsx238(
|
|
53582
53838
|
WfoProcessesList,
|
|
53583
53839
|
{
|
|
53584
53840
|
alwaysOnFilters,
|
|
@@ -53688,7 +53944,7 @@ var graphQlProcessFilterMapper = (data) => data?.map(({ field, value }) => ({
|
|
|
53688
53944
|
}));
|
|
53689
53945
|
|
|
53690
53946
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
53691
|
-
import { jsx as
|
|
53947
|
+
import { jsx as jsx239, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
|
|
53692
53948
|
var WfoProcessesList = ({
|
|
53693
53949
|
alwaysOnFilters,
|
|
53694
53950
|
defaultHiddenColumns = [],
|
|
@@ -53706,7 +53962,7 @@ var WfoProcessesList = ({
|
|
|
53706
53962
|
columnType: "data" /* DATA */,
|
|
53707
53963
|
label: t("workflowName"),
|
|
53708
53964
|
width: "225px",
|
|
53709
|
-
renderData: (value, { processId }) => /* @__PURE__ */
|
|
53965
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx239(Link12, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
|
|
53710
53966
|
renderTooltip: (value) => value
|
|
53711
53967
|
},
|
|
53712
53968
|
lastStep: {
|
|
@@ -53717,13 +53973,13 @@ var WfoProcessesList = ({
|
|
|
53717
53973
|
lastStatus: {
|
|
53718
53974
|
columnType: "data" /* DATA */,
|
|
53719
53975
|
label: t("status"),
|
|
53720
|
-
renderData: (cellValue) => /* @__PURE__ */
|
|
53976
|
+
renderData: (cellValue) => /* @__PURE__ */ jsx239(WfoProcessStatusBadge, { processStatus: cellValue }),
|
|
53721
53977
|
width: "150px"
|
|
53722
53978
|
},
|
|
53723
53979
|
workflowTarget: {
|
|
53724
53980
|
columnType: "data" /* DATA */,
|
|
53725
53981
|
label: t("workflowTarget"),
|
|
53726
|
-
renderData: (target) => /* @__PURE__ */
|
|
53982
|
+
renderData: (target) => /* @__PURE__ */ jsx239(WfoWorkflowTargetBadge, { target }),
|
|
53727
53983
|
width: "100px"
|
|
53728
53984
|
},
|
|
53729
53985
|
tag: {
|
|
@@ -53750,7 +54006,7 @@ var WfoProcessesList = ({
|
|
|
53750
54006
|
columnType: "data" /* DATA */,
|
|
53751
54007
|
label: t("subscriptions"),
|
|
53752
54008
|
width: "425px",
|
|
53753
|
-
renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */
|
|
54009
|
+
renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */ jsx239(
|
|
53754
54010
|
WfoProcessListSubscriptionsCell,
|
|
53755
54011
|
{
|
|
53756
54012
|
subscriptions,
|
|
@@ -53758,13 +54014,13 @@ var WfoProcessesList = ({
|
|
|
53758
54014
|
onMoreSubscriptionsClick: () => router.push(`${PATH_WORKFLOWS}/${processId}`)
|
|
53759
54015
|
}
|
|
53760
54016
|
),
|
|
53761
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
54017
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx239(
|
|
53762
54018
|
WfoProcessListSubscriptionsCell,
|
|
53763
54019
|
{
|
|
53764
54020
|
subscriptions
|
|
53765
54021
|
}
|
|
53766
54022
|
),
|
|
53767
|
-
renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */
|
|
54023
|
+
renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs129("p", { children: [
|
|
53768
54024
|
"- ",
|
|
53769
54025
|
description
|
|
53770
54026
|
] }, subscriptionId)),
|
|
@@ -53784,7 +54040,7 @@ var WfoProcessesList = ({
|
|
|
53784
54040
|
columnType: "data" /* DATA */,
|
|
53785
54041
|
label: t("processId"),
|
|
53786
54042
|
width: "90px",
|
|
53787
|
-
renderData: (value) => /* @__PURE__ */
|
|
54043
|
+
renderData: (value) => /* @__PURE__ */ jsx239(WfoFirstPartUUID, { UUID: value }),
|
|
53788
54044
|
renderDetails: (value) => value,
|
|
53789
54045
|
renderTooltip: (value) => value
|
|
53790
54046
|
},
|
|
@@ -53792,7 +54048,7 @@ var WfoProcessesList = ({
|
|
|
53792
54048
|
columnType: "data" /* DATA */,
|
|
53793
54049
|
label: t("started"),
|
|
53794
54050
|
width: "100px",
|
|
53795
|
-
renderData: (value) => /* @__PURE__ */
|
|
54051
|
+
renderData: (value) => /* @__PURE__ */ jsx239(WfoDateTime, { dateOrIsoString: value }),
|
|
53796
54052
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
53797
54053
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
53798
54054
|
renderTooltip: (value) => value.toString()
|
|
@@ -53801,7 +54057,7 @@ var WfoProcessesList = ({
|
|
|
53801
54057
|
columnType: "data" /* DATA */,
|
|
53802
54058
|
label: t("lastModified"),
|
|
53803
54059
|
width: "125px",
|
|
53804
|
-
renderData: (value) => /* @__PURE__ */
|
|
54060
|
+
renderData: (value) => /* @__PURE__ */ jsx239(WfoDateTime, { dateOrIsoString: value }),
|
|
53805
54061
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
53806
54062
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
53807
54063
|
renderTooltip: (value) => value.toString()
|
|
@@ -53834,7 +54090,7 @@ var WfoProcessesList = ({
|
|
|
53834
54090
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
53835
54091
|
getQueryVariablesForExport(processListQueryVars)
|
|
53836
54092
|
).unwrap();
|
|
53837
|
-
return /* @__PURE__ */
|
|
54093
|
+
return /* @__PURE__ */ jsx239(
|
|
53838
54094
|
WfoAdvancedTable,
|
|
53839
54095
|
{
|
|
53840
54096
|
queryString,
|
|
@@ -53873,13 +54129,13 @@ var WfoProcessesList = ({
|
|
|
53873
54129
|
import { EuiCodeBlock as EuiCodeBlock3 } from "@elastic/eui";
|
|
53874
54130
|
|
|
53875
54131
|
// src/components/WfoJsonCodeBlock/styles.ts
|
|
53876
|
-
import { css as
|
|
54132
|
+
import { css as css46 } from "@emotion/react";
|
|
53877
54133
|
var getStyles14 = ({ theme }) => {
|
|
53878
|
-
const euiCodeBlockStyle =
|
|
54134
|
+
const euiCodeBlockStyle = css46({
|
|
53879
54135
|
marginTop: 10,
|
|
53880
54136
|
borderRadius: theme.border.radius.medium
|
|
53881
54137
|
});
|
|
53882
|
-
const euiBasicCodeBlockStyle =
|
|
54138
|
+
const euiBasicCodeBlockStyle = css46({
|
|
53883
54139
|
backgroundColor: "inherit",
|
|
53884
54140
|
".euiCodeBlock__pre": {
|
|
53885
54141
|
paddingTop: 0,
|
|
@@ -53897,14 +54153,14 @@ var getStyles14 = ({ theme }) => {
|
|
|
53897
54153
|
};
|
|
53898
54154
|
|
|
53899
54155
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
53900
|
-
import { jsx as
|
|
54156
|
+
import { jsx as jsx240 } from "@emotion/react/jsx-runtime";
|
|
53901
54157
|
var WfoJsonCodeBlock = ({
|
|
53902
54158
|
data,
|
|
53903
54159
|
isBasicStyle = false
|
|
53904
54160
|
}) => {
|
|
53905
54161
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles14);
|
|
53906
54162
|
const json = JSON.stringify(data, null, 4);
|
|
53907
|
-
return /* @__PURE__ */
|
|
54163
|
+
return /* @__PURE__ */ jsx240(
|
|
53908
54164
|
EuiCodeBlock3,
|
|
53909
54165
|
{
|
|
53910
54166
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -53917,7 +54173,7 @@ var WfoJsonCodeBlock = ({
|
|
|
53917
54173
|
};
|
|
53918
54174
|
|
|
53919
54175
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
53920
|
-
import { useState as
|
|
54176
|
+
import { useState as useState54 } from "react";
|
|
53921
54177
|
import { useTranslations as useTranslations77 } from "next-intl";
|
|
53922
54178
|
import {
|
|
53923
54179
|
EuiButton as EuiButton16,
|
|
@@ -53928,10 +54184,10 @@ import {
|
|
|
53928
54184
|
} from "@elastic/eui";
|
|
53929
54185
|
|
|
53930
54186
|
// src/components/WfoSettings/styles.ts
|
|
53931
|
-
import { css as
|
|
54187
|
+
import { css as css47 } from "@emotion/react";
|
|
53932
54188
|
var getWfoFlushSettingsStyle = (wfoTheme) => {
|
|
53933
54189
|
const { theme } = wfoTheme;
|
|
53934
|
-
const comboboxStyle =
|
|
54190
|
+
const comboboxStyle = css47({
|
|
53935
54191
|
// .euiComboBox is needed to override eui styling (more specific)
|
|
53936
54192
|
"&.euiComboBox": {
|
|
53937
54193
|
".euiComboBox__inputWrap": {
|
|
@@ -53952,14 +54208,14 @@ var getWfoFlushSettingsStyle = (wfoTheme) => {
|
|
|
53952
54208
|
};
|
|
53953
54209
|
|
|
53954
54210
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
53955
|
-
import { jsx as
|
|
54211
|
+
import { jsx as jsx241, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
|
|
53956
54212
|
var WfoFlushSettings = () => {
|
|
53957
54213
|
const { comboboxStyle } = useWithOrchestratorTheme(
|
|
53958
54214
|
getWfoFlushSettingsStyle
|
|
53959
54215
|
);
|
|
53960
54216
|
const [clearCache] = useClearCacheMutation();
|
|
53961
54217
|
const t = useTranslations77("settings.page");
|
|
53962
|
-
const [selectedOptions, setSelected] =
|
|
54218
|
+
const [selectedOptions, setSelected] = useState54(
|
|
53963
54219
|
[]
|
|
53964
54220
|
);
|
|
53965
54221
|
const { showToastMessage } = useShowToastMessage();
|
|
@@ -53990,10 +54246,10 @@ var WfoFlushSettings = () => {
|
|
|
53990
54246
|
);
|
|
53991
54247
|
});
|
|
53992
54248
|
};
|
|
53993
|
-
return /* @__PURE__ */
|
|
53994
|
-
/* @__PURE__ */
|
|
53995
|
-
/* @__PURE__ */
|
|
53996
|
-
/* @__PURE__ */
|
|
54249
|
+
return /* @__PURE__ */ jsx241(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs130(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
54250
|
+
/* @__PURE__ */ jsx241(EuiText46, { size: "s", children: /* @__PURE__ */ jsx241("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
54251
|
+
/* @__PURE__ */ jsx241(EuiSpacer26, { size: "m" }),
|
|
54252
|
+
/* @__PURE__ */ jsx241(
|
|
53997
54253
|
EuiComboBox,
|
|
53998
54254
|
{
|
|
53999
54255
|
css: comboboxStyle,
|
|
@@ -54006,24 +54262,24 @@ var WfoFlushSettings = () => {
|
|
|
54006
54262
|
fullWidth: true
|
|
54007
54263
|
}
|
|
54008
54264
|
),
|
|
54009
|
-
/* @__PURE__ */
|
|
54010
|
-
/* @__PURE__ */
|
|
54265
|
+
/* @__PURE__ */ jsx241(EuiSpacer26, { size: "m" }),
|
|
54266
|
+
/* @__PURE__ */ jsx241(EuiButton16, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
54011
54267
|
] }) });
|
|
54012
54268
|
};
|
|
54013
54269
|
|
|
54014
54270
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
54015
54271
|
import { useTranslations as useTranslations78 } from "next-intl";
|
|
54016
54272
|
import { EuiButton as EuiButton17 } from "@elastic/eui";
|
|
54017
|
-
import { jsx as
|
|
54273
|
+
import { jsx as jsx242 } from "@emotion/react/jsx-runtime";
|
|
54018
54274
|
var WfoEngineStatusButton = () => {
|
|
54019
54275
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
54020
54276
|
const { engineStatus } = data || {};
|
|
54021
54277
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
54022
54278
|
const t = useTranslations78("settings.page");
|
|
54023
54279
|
if (isLoading || isSettingEngineStatus) {
|
|
54024
|
-
return /* @__PURE__ */
|
|
54280
|
+
return /* @__PURE__ */ jsx242(EuiButton17, { isLoading: true, fill: true, children: "Loading..." });
|
|
54025
54281
|
}
|
|
54026
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
54282
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx242(
|
|
54027
54283
|
EuiButton17,
|
|
54028
54284
|
{
|
|
54029
54285
|
onClick: () => setEngineStatus(true),
|
|
@@ -54032,7 +54288,7 @@ var WfoEngineStatusButton = () => {
|
|
|
54032
54288
|
iconType: "pause",
|
|
54033
54289
|
children: t("pauseEngine")
|
|
54034
54290
|
}
|
|
54035
|
-
) : /* @__PURE__ */
|
|
54291
|
+
) : /* @__PURE__ */ jsx242(
|
|
54036
54292
|
EuiButton17,
|
|
54037
54293
|
{
|
|
54038
54294
|
onClick: () => setEngineStatus(false),
|
|
@@ -54047,25 +54303,25 @@ var WfoEngineStatusButton = () => {
|
|
|
54047
54303
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
54048
54304
|
import { useTranslations as useTranslations79 } from "next-intl";
|
|
54049
54305
|
import { EuiFlexItem as EuiFlexItem32, EuiPanel as EuiPanel9, EuiSpacer as EuiSpacer27, EuiText as EuiText47 } from "@elastic/eui";
|
|
54050
|
-
import { jsx as
|
|
54306
|
+
import { jsx as jsx243, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
|
|
54051
54307
|
var WfoModifySettings = () => {
|
|
54052
54308
|
const t = useTranslations79("settings.page");
|
|
54053
|
-
return /* @__PURE__ */
|
|
54054
|
-
/* @__PURE__ */
|
|
54055
|
-
/* @__PURE__ */
|
|
54056
|
-
/* @__PURE__ */
|
|
54057
|
-
/* @__PURE__ */
|
|
54309
|
+
return /* @__PURE__ */ jsxs131(EuiFlexItem32, { children: [
|
|
54310
|
+
/* @__PURE__ */ jsxs131(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
54311
|
+
/* @__PURE__ */ jsx243(EuiText47, { size: "s", children: /* @__PURE__ */ jsx243("h4", { children: t("resetTextSearchIndex") }) }),
|
|
54312
|
+
/* @__PURE__ */ jsx243(EuiSpacer27, { size: "m" }),
|
|
54313
|
+
/* @__PURE__ */ jsx243(WfoResetTextSearchIndexButton, {})
|
|
54058
54314
|
] }),
|
|
54059
|
-
/* @__PURE__ */
|
|
54315
|
+
/* @__PURE__ */ jsxs131(
|
|
54060
54316
|
WfoIsAllowedToRender,
|
|
54061
54317
|
{
|
|
54062
54318
|
resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */,
|
|
54063
54319
|
children: [
|
|
54064
|
-
/* @__PURE__ */
|
|
54065
|
-
/* @__PURE__ */
|
|
54066
|
-
/* @__PURE__ */
|
|
54067
|
-
/* @__PURE__ */
|
|
54068
|
-
/* @__PURE__ */
|
|
54320
|
+
/* @__PURE__ */ jsx243(EuiSpacer27, {}),
|
|
54321
|
+
/* @__PURE__ */ jsxs131(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
54322
|
+
/* @__PURE__ */ jsx243(EuiText47, { size: "s", children: /* @__PURE__ */ jsx243("h4", { children: t("modifyEngine") }) }),
|
|
54323
|
+
/* @__PURE__ */ jsx243(EuiSpacer27, { size: "m" }),
|
|
54324
|
+
/* @__PURE__ */ jsx243(WfoEngineStatusButton, {})
|
|
54069
54325
|
] })
|
|
54070
54326
|
]
|
|
54071
54327
|
}
|
|
@@ -54076,28 +54332,28 @@ var WfoModifySettings = () => {
|
|
|
54076
54332
|
// src/components/WfoSettings/WfoEngineStatus.tsx
|
|
54077
54333
|
import { useTranslations as useTranslations80 } from "next-intl";
|
|
54078
54334
|
import { EuiFlexGroup as EuiFlexGroup27, EuiFlexItem as EuiFlexItem33, EuiPanel as EuiPanel10, EuiText as EuiText48 } from "@elastic/eui";
|
|
54079
|
-
import { jsx as
|
|
54335
|
+
import { jsx as jsx244, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
|
|
54080
54336
|
var WfoEngineStatus = () => {
|
|
54081
54337
|
const { theme } = useOrchestratorTheme();
|
|
54082
54338
|
const { data } = useGetEngineStatusQuery();
|
|
54083
54339
|
const { engineStatus, runningProcesses } = data || {};
|
|
54084
54340
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
54085
54341
|
const t = useTranslations80("settings.page");
|
|
54086
|
-
return /* @__PURE__ */
|
|
54087
|
-
/* @__PURE__ */
|
|
54088
|
-
/* @__PURE__ */
|
|
54089
|
-
/* @__PURE__ */
|
|
54090
|
-
/* @__PURE__ */
|
|
54342
|
+
return /* @__PURE__ */ jsx244(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs132(EuiFlexGroup27, { direction: "column", gutterSize: "s", children: [
|
|
54343
|
+
/* @__PURE__ */ jsx244(EuiFlexItem33, { children: /* @__PURE__ */ jsx244(EuiText48, { size: "s", children: /* @__PURE__ */ jsx244("h4", { children: t("engineStatusTitle") }) }) }),
|
|
54344
|
+
/* @__PURE__ */ jsxs132(EuiFlexItem33, { css: { flexDirection: "row" }, children: [
|
|
54345
|
+
/* @__PURE__ */ jsx244(EuiText48, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
|
|
54346
|
+
/* @__PURE__ */ jsx244(EuiText48, { size: "s", children: runningProcesses || "-" })
|
|
54091
54347
|
] }),
|
|
54092
|
-
/* @__PURE__ */
|
|
54093
|
-
/* @__PURE__ */
|
|
54094
|
-
/* @__PURE__ */
|
|
54348
|
+
/* @__PURE__ */ jsxs132(EuiFlexItem33, { css: { flexDirection: "row" }, children: [
|
|
54349
|
+
/* @__PURE__ */ jsx244(EuiText48, { size: "s", style: { minWidth: 190 }, children: t("status") }),
|
|
54350
|
+
/* @__PURE__ */ jsx244(
|
|
54095
54351
|
WfoStatusDotIcon,
|
|
54096
54352
|
{
|
|
54097
54353
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
54098
54354
|
}
|
|
54099
54355
|
),
|
|
54100
|
-
/* @__PURE__ */
|
|
54356
|
+
/* @__PURE__ */ jsx244(EuiText48, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx244("p", { children: engineStatus }) })
|
|
54101
54357
|
] })
|
|
54102
54358
|
] }) });
|
|
54103
54359
|
};
|
|
@@ -54105,7 +54361,7 @@ var WfoEngineStatus = () => {
|
|
|
54105
54361
|
// src/components/WfoSettings/WfoWorkerStatus.tsx
|
|
54106
54362
|
import { useTranslations as useTranslations81 } from "next-intl";
|
|
54107
54363
|
import { EuiFlexGroup as EuiFlexGroup28, EuiFlexItem as EuiFlexItem34, EuiPanel as EuiPanel11, EuiText as EuiText49 } from "@elastic/eui";
|
|
54108
|
-
import { jsx as
|
|
54364
|
+
import { jsx as jsx245, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
|
|
54109
54365
|
var WfoWorkerStatus = () => {
|
|
54110
54366
|
const { data } = useGetWorkerStatusQuery();
|
|
54111
54367
|
const {
|
|
@@ -54115,19 +54371,19 @@ var WfoWorkerStatus = () => {
|
|
|
54115
54371
|
numberOfWorkersOnline
|
|
54116
54372
|
} = data || {};
|
|
54117
54373
|
const t = useTranslations81("settings.page");
|
|
54118
|
-
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */
|
|
54119
|
-
/* @__PURE__ */
|
|
54120
|
-
/* @__PURE__ */
|
|
54121
|
-
/* @__PURE__ */
|
|
54122
|
-
/* @__PURE__ */
|
|
54374
|
+
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx245(EuiPanel11, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs133(EuiFlexGroup28, { direction: "column", gutterSize: "s", children: [
|
|
54375
|
+
/* @__PURE__ */ jsx245(EuiFlexItem34, { children: /* @__PURE__ */ jsx245(EuiText49, { size: "s", children: /* @__PURE__ */ jsx245("h4", { children: t("workerStatusTitle") }) }) }),
|
|
54376
|
+
/* @__PURE__ */ jsxs133(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
54377
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
|
|
54378
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", children: numberOfQueuedJobs || "-" })
|
|
54123
54379
|
] }),
|
|
54124
|
-
/* @__PURE__ */
|
|
54125
|
-
/* @__PURE__ */
|
|
54126
|
-
/* @__PURE__ */
|
|
54380
|
+
/* @__PURE__ */ jsxs133(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
54381
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
|
|
54382
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", children: numberOfRunningJobs || "-" })
|
|
54127
54383
|
] }),
|
|
54128
|
-
/* @__PURE__ */
|
|
54129
|
-
/* @__PURE__ */
|
|
54130
|
-
/* @__PURE__ */
|
|
54384
|
+
/* @__PURE__ */ jsxs133(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
54385
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
|
|
54386
|
+
/* @__PURE__ */ jsx245(EuiText49, { size: "s", children: numberOfWorkersOnline || "-" })
|
|
54131
54387
|
] })
|
|
54132
54388
|
] }) }) || null;
|
|
54133
54389
|
};
|
|
@@ -54135,11 +54391,11 @@ var WfoWorkerStatus = () => {
|
|
|
54135
54391
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
54136
54392
|
import { useTranslations as useTranslations82 } from "next-intl";
|
|
54137
54393
|
import { EuiButton as EuiButton18 } from "@elastic/eui";
|
|
54138
|
-
import { jsx as
|
|
54394
|
+
import { jsx as jsx246 } from "@emotion/react/jsx-runtime";
|
|
54139
54395
|
var WfoResetTextSearchIndexButton = () => {
|
|
54140
54396
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
54141
54397
|
const t = useTranslations82("settings.page");
|
|
54142
|
-
return /* @__PURE__ */
|
|
54398
|
+
return /* @__PURE__ */ jsx246(
|
|
54143
54399
|
EuiButton18,
|
|
54144
54400
|
{
|
|
54145
54401
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -54150,17 +54406,17 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
54150
54406
|
};
|
|
54151
54407
|
|
|
54152
54408
|
// src/components/WfoInsyncIcon/WfoInsyncIcon.tsx
|
|
54153
|
-
import { jsx as
|
|
54409
|
+
import { jsx as jsx247 } from "@emotion/react/jsx-runtime";
|
|
54154
54410
|
var WfoInsyncIcon = ({ inSync }) => {
|
|
54155
54411
|
const { theme } = useOrchestratorTheme();
|
|
54156
|
-
return inSync ? /* @__PURE__ */
|
|
54412
|
+
return inSync ? /* @__PURE__ */ jsx247(
|
|
54157
54413
|
WfoCheckmarkCircleFill,
|
|
54158
54414
|
{
|
|
54159
54415
|
height: 20,
|
|
54160
54416
|
width: 20,
|
|
54161
54417
|
color: theme.colors.primary
|
|
54162
54418
|
}
|
|
54163
|
-
) : /* @__PURE__ */
|
|
54419
|
+
) : /* @__PURE__ */ jsx247(
|
|
54164
54420
|
WfoMinusCircleFill,
|
|
54165
54421
|
{
|
|
54166
54422
|
height: 20,
|
|
@@ -54171,9 +54427,9 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
54171
54427
|
};
|
|
54172
54428
|
|
|
54173
54429
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
54174
|
-
import
|
|
54175
|
-
import { jsx as
|
|
54176
|
-
var WfoErrorBoundary = class extends
|
|
54430
|
+
import React81 from "react";
|
|
54431
|
+
import { jsx as jsx248, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
|
|
54432
|
+
var WfoErrorBoundary = class extends React81.Component {
|
|
54177
54433
|
constructor(props) {
|
|
54178
54434
|
super(props);
|
|
54179
54435
|
this.state = { hasError: false };
|
|
@@ -54189,10 +54445,10 @@ var WfoErrorBoundary = class extends React80.Component {
|
|
|
54189
54445
|
if (this.props.fallback) {
|
|
54190
54446
|
return this.props.fallback;
|
|
54191
54447
|
}
|
|
54192
|
-
return /* @__PURE__ */
|
|
54448
|
+
return /* @__PURE__ */ jsxs134("p", { children: [
|
|
54193
54449
|
"An unexpected error occurred, try to go back to the",
|
|
54194
54450
|
" ",
|
|
54195
|
-
/* @__PURE__ */
|
|
54451
|
+
/* @__PURE__ */ jsx248("a", { href: "/", children: "home page" })
|
|
54196
54452
|
] });
|
|
54197
54453
|
}
|
|
54198
54454
|
return this.props.children;
|
|
@@ -54203,9 +54459,9 @@ var WfoErrorBoundary = class extends React80.Component {
|
|
|
54203
54459
|
import { EuiFlexGroup as EuiFlexGroup29 } from "@elastic/eui";
|
|
54204
54460
|
|
|
54205
54461
|
// src/components/WfoNoResults/styles.ts
|
|
54206
|
-
import { css as
|
|
54462
|
+
import { css as css48 } from "@emotion/react";
|
|
54207
54463
|
var getStyles15 = ({ theme }) => {
|
|
54208
|
-
const panelStyle =
|
|
54464
|
+
const panelStyle = css48({
|
|
54209
54465
|
display: "flex",
|
|
54210
54466
|
padding: theme.base * 2,
|
|
54211
54467
|
flexDirection: "row",
|
|
@@ -54224,10 +54480,10 @@ var getStyles15 = ({ theme }) => {
|
|
|
54224
54480
|
};
|
|
54225
54481
|
|
|
54226
54482
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
54227
|
-
import { jsxs as
|
|
54483
|
+
import { jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
|
|
54228
54484
|
var WfoNoResults = ({ text, icon }) => {
|
|
54229
54485
|
const { panelStyle } = useWithOrchestratorTheme(getStyles15);
|
|
54230
|
-
return /* @__PURE__ */
|
|
54486
|
+
return /* @__PURE__ */ jsxs135(EuiFlexGroup29, { css: panelStyle, children: [
|
|
54231
54487
|
icon,
|
|
54232
54488
|
" ",
|
|
54233
54489
|
text
|
|
@@ -54235,7 +54491,7 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
54235
54491
|
};
|
|
54236
54492
|
|
|
54237
54493
|
// src/components/WfoRenderElementOrString/WfoRenderElementOrString.tsx
|
|
54238
|
-
import { Fragment as Fragment61, jsx as
|
|
54494
|
+
import { Fragment as Fragment61, jsx as jsx249 } from "@emotion/react/jsx-runtime";
|
|
54239
54495
|
var WfoRenderElementOrString = ({
|
|
54240
54496
|
children,
|
|
54241
54497
|
renderString
|
|
@@ -54243,13 +54499,13 @@ var WfoRenderElementOrString = ({
|
|
|
54243
54499
|
if (typeof children === "string" && renderString) {
|
|
54244
54500
|
return renderString(children);
|
|
54245
54501
|
}
|
|
54246
|
-
return /* @__PURE__ */
|
|
54502
|
+
return /* @__PURE__ */ jsx249(Fragment61, { children });
|
|
54247
54503
|
};
|
|
54248
54504
|
|
|
54249
54505
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
54250
54506
|
import { useTranslations as useTranslations83 } from "next-intl";
|
|
54251
54507
|
import { useRouter as useRouter15 } from "next/router";
|
|
54252
|
-
import { jsx as
|
|
54508
|
+
import { jsx as jsx250 } from "@emotion/react/jsx-runtime";
|
|
54253
54509
|
var WfoStartTaskButtonComboBox = () => {
|
|
54254
54510
|
const router = useRouter15();
|
|
54255
54511
|
const t = useTranslations83("common");
|
|
@@ -54271,7 +54527,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
54271
54527
|
});
|
|
54272
54528
|
}
|
|
54273
54529
|
};
|
|
54274
|
-
return /* @__PURE__ */
|
|
54530
|
+
return /* @__PURE__ */ jsx250(
|
|
54275
54531
|
WfoStartButtonComboBox,
|
|
54276
54532
|
{
|
|
54277
54533
|
buttonText: t("newTask"),
|
|
@@ -54368,7 +54624,7 @@ var subscriptionListTabs = [
|
|
|
54368
54624
|
import { useTranslations as useTranslations84 } from "next-intl";
|
|
54369
54625
|
import Link13 from "next/link";
|
|
54370
54626
|
import { useRouter as useRouter16 } from "next/router";
|
|
54371
|
-
import { jsx as
|
|
54627
|
+
import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
|
|
54372
54628
|
var WfoSubscriptionsList = ({
|
|
54373
54629
|
alwaysOnFilters,
|
|
54374
54630
|
dataDisplayParams,
|
|
@@ -54394,7 +54650,7 @@ var WfoSubscriptionsList = ({
|
|
|
54394
54650
|
columnType: "data" /* DATA */,
|
|
54395
54651
|
label: t("id"),
|
|
54396
54652
|
width: "100px",
|
|
54397
|
-
renderData: (value) => /* @__PURE__ */
|
|
54653
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoFirstPartUUID, { UUID: value }),
|
|
54398
54654
|
renderDetails: (value) => value,
|
|
54399
54655
|
renderTooltip: (value) => value
|
|
54400
54656
|
},
|
|
@@ -54402,20 +54658,20 @@ var WfoSubscriptionsList = ({
|
|
|
54402
54658
|
columnType: "data" /* DATA */,
|
|
54403
54659
|
label: t("description"),
|
|
54404
54660
|
width: "500px",
|
|
54405
|
-
renderData: (value, record) => /* @__PURE__ */
|
|
54661
|
+
renderData: (value, record) => /* @__PURE__ */ jsx251(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
|
|
54406
54662
|
renderTooltip: (value) => value
|
|
54407
54663
|
},
|
|
54408
54664
|
status: {
|
|
54409
54665
|
columnType: "data" /* DATA */,
|
|
54410
54666
|
label: t("status"),
|
|
54411
54667
|
width: "120px",
|
|
54412
|
-
renderData: (value) => /* @__PURE__ */
|
|
54668
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoSubscriptionStatusBadge, { status: value })
|
|
54413
54669
|
},
|
|
54414
54670
|
insync: {
|
|
54415
54671
|
columnType: "data" /* DATA */,
|
|
54416
54672
|
label: t("insync"),
|
|
54417
54673
|
width: "80px",
|
|
54418
|
-
renderData: (value) => /* @__PURE__ */
|
|
54674
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoInsyncIcon, { inSync: value })
|
|
54419
54675
|
},
|
|
54420
54676
|
productName: {
|
|
54421
54677
|
columnType: "data" /* DATA */,
|
|
@@ -54439,7 +54695,7 @@ var WfoSubscriptionsList = ({
|
|
|
54439
54695
|
columnType: "data" /* DATA */,
|
|
54440
54696
|
label: t("startDate"),
|
|
54441
54697
|
width: "120px",
|
|
54442
|
-
renderData: (value) => /* @__PURE__ */
|
|
54698
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoDateTime, { dateOrIsoString: value }),
|
|
54443
54699
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
54444
54700
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
54445
54701
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -54448,7 +54704,7 @@ var WfoSubscriptionsList = ({
|
|
|
54448
54704
|
columnType: "data" /* DATA */,
|
|
54449
54705
|
label: t("endDate"),
|
|
54450
54706
|
width: "120px",
|
|
54451
|
-
renderData: (value) => /* @__PURE__ */
|
|
54707
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoDateTime, { dateOrIsoString: value }),
|
|
54452
54708
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
54453
54709
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
54454
54710
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -54457,7 +54713,7 @@ var WfoSubscriptionsList = ({
|
|
|
54457
54713
|
columnType: "data" /* DATA */,
|
|
54458
54714
|
label: t("note"),
|
|
54459
54715
|
renderData: (cellValue, row) => {
|
|
54460
|
-
return /* @__PURE__ */
|
|
54716
|
+
return /* @__PURE__ */ jsx251(
|
|
54461
54717
|
WfoSubscriptionNoteEdit,
|
|
54462
54718
|
{
|
|
54463
54719
|
onlyShowOnHover: true,
|
|
@@ -54473,9 +54729,9 @@ var WfoSubscriptionsList = ({
|
|
|
54473
54729
|
columnType: "data" /* DATA */,
|
|
54474
54730
|
label: t("metadata"),
|
|
54475
54731
|
width: "100px",
|
|
54476
|
-
renderData: (value) => /* @__PURE__ */
|
|
54477
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
54478
|
-
renderTooltip: (value) => value && /* @__PURE__ */
|
|
54732
|
+
renderData: (value) => /* @__PURE__ */ jsx251(WfoInlineJson, { data: value }),
|
|
54733
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx251(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
|
|
54734
|
+
renderTooltip: (value) => value && /* @__PURE__ */ jsx251(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
|
|
54479
54735
|
}
|
|
54480
54736
|
};
|
|
54481
54737
|
const [getSubscriptionListTrigger, { isFetching: isFetchingCsv }] = useLazyGetSubscriptionListQuery();
|
|
@@ -54521,7 +54777,7 @@ var WfoSubscriptionsList = ({
|
|
|
54521
54777
|
sortFields,
|
|
54522
54778
|
filterFields
|
|
54523
54779
|
);
|
|
54524
|
-
return /* @__PURE__ */
|
|
54780
|
+
return /* @__PURE__ */ jsx251(
|
|
54525
54781
|
WfoAdvancedTable,
|
|
54526
54782
|
{
|
|
54527
54783
|
queryString: dataDisplayParams.queryString,
|
|
@@ -54569,18 +54825,18 @@ import {
|
|
|
54569
54825
|
} from "@elastic/eui";
|
|
54570
54826
|
|
|
54571
54827
|
// src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
|
|
54572
|
-
import { css as
|
|
54828
|
+
import { css as css49 } from "@emotion/react";
|
|
54573
54829
|
var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
54574
|
-
const avatarStyle =
|
|
54830
|
+
const avatarStyle = css49({
|
|
54575
54831
|
maxHeight: theme.base * 3,
|
|
54576
54832
|
maxWidth: theme.base * 3
|
|
54577
54833
|
});
|
|
54578
|
-
const totalSectionStyle =
|
|
54834
|
+
const totalSectionStyle = css49({
|
|
54579
54835
|
display: "flex",
|
|
54580
54836
|
flexDirection: "column",
|
|
54581
54837
|
justifyContent: "space-between"
|
|
54582
54838
|
});
|
|
54583
|
-
const valueStyle =
|
|
54839
|
+
const valueStyle = css49({
|
|
54584
54840
|
fontSize: theme.size.l,
|
|
54585
54841
|
fontWeight: theme.font.weight.semiBold
|
|
54586
54842
|
});
|
|
@@ -54592,7 +54848,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
|
54592
54848
|
};
|
|
54593
54849
|
|
|
54594
54850
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
54595
|
-
import { jsx as
|
|
54851
|
+
import { jsx as jsx252, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
|
|
54596
54852
|
var WfoSummaryCardHeader = ({
|
|
54597
54853
|
text,
|
|
54598
54854
|
value,
|
|
@@ -54602,8 +54858,8 @@ var WfoSummaryCardHeader = ({
|
|
|
54602
54858
|
}) => {
|
|
54603
54859
|
const { theme } = useOrchestratorTheme();
|
|
54604
54860
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
54605
|
-
return /* @__PURE__ */
|
|
54606
|
-
/* @__PURE__ */
|
|
54861
|
+
return /* @__PURE__ */ jsx252(EuiFlexItem35, { grow: 0, children: /* @__PURE__ */ jsx252(EuiPanel12, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs136(EuiFlexGroup30, { alignItems: "center", children: [
|
|
54862
|
+
/* @__PURE__ */ jsx252(
|
|
54607
54863
|
EuiAvatar2,
|
|
54608
54864
|
{
|
|
54609
54865
|
iconSize: "l",
|
|
@@ -54616,11 +54872,11 @@ var WfoSummaryCardHeader = ({
|
|
|
54616
54872
|
color: iconColor
|
|
54617
54873
|
}
|
|
54618
54874
|
),
|
|
54619
|
-
/* @__PURE__ */
|
|
54620
|
-
/* @__PURE__ */
|
|
54621
|
-
/* @__PURE__ */
|
|
54622
|
-
/* @__PURE__ */
|
|
54623
|
-
isFetching && /* @__PURE__ */
|
|
54875
|
+
/* @__PURE__ */ jsxs136("div", { css: totalSectionStyle, children: [
|
|
54876
|
+
/* @__PURE__ */ jsx252(EuiText50, { color: "subdued", children: text }),
|
|
54877
|
+
/* @__PURE__ */ jsxs136(EuiFlexGroup30, { gutterSize: "s", alignItems: "center", children: [
|
|
54878
|
+
/* @__PURE__ */ jsx252(EuiText50, { css: valueStyle, children: value }),
|
|
54879
|
+
isFetching && /* @__PURE__ */ jsx252(EuiLoadingSpinner, {})
|
|
54624
54880
|
] })
|
|
54625
54881
|
] })
|
|
54626
54882
|
] }) }) });
|
|
@@ -54643,35 +54899,35 @@ import { EuiFlexGroup as EuiFlexGroup31, EuiFlexItem as EuiFlexItem36, EuiIcon a
|
|
|
54643
54899
|
|
|
54644
54900
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
54645
54901
|
import Link14 from "next/link";
|
|
54646
|
-
import { jsx as
|
|
54902
|
+
import { jsx as jsx253 } from "@emotion/react/jsx-runtime";
|
|
54647
54903
|
var WfoOptionalLink = ({
|
|
54648
54904
|
children,
|
|
54649
54905
|
href
|
|
54650
54906
|
}) => {
|
|
54651
54907
|
if (!href) {
|
|
54652
|
-
return /* @__PURE__ */
|
|
54908
|
+
return /* @__PURE__ */ jsx253("span", { children });
|
|
54653
54909
|
}
|
|
54654
|
-
return /* @__PURE__ */
|
|
54910
|
+
return /* @__PURE__ */ jsx253(Link14, { href, children });
|
|
54655
54911
|
};
|
|
54656
54912
|
|
|
54657
54913
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
54658
|
-
import { css as
|
|
54914
|
+
import { css as css50 } from "@emotion/react";
|
|
54659
54915
|
var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
54660
|
-
const listContainerStyle =
|
|
54916
|
+
const listContainerStyle = css50({
|
|
54661
54917
|
display: "flex",
|
|
54662
54918
|
flexDirection: "column",
|
|
54663
54919
|
justifyContent: "space-between",
|
|
54664
54920
|
flexGrow: 1,
|
|
54665
54921
|
borderColor: theme.colors.lightShade
|
|
54666
54922
|
});
|
|
54667
|
-
const listHeaderStyle =
|
|
54923
|
+
const listHeaderStyle = css50({
|
|
54668
54924
|
fontWeight: theme.font.weight.semiBold
|
|
54669
54925
|
});
|
|
54670
|
-
const listStyle =
|
|
54926
|
+
const listStyle = css50({
|
|
54671
54927
|
height: theme.base * 20,
|
|
54672
54928
|
overflow: "auto"
|
|
54673
54929
|
});
|
|
54674
|
-
const listItemContainerStyle =
|
|
54930
|
+
const listItemContainerStyle = css50({
|
|
54675
54931
|
paddingBlock: theme.size.m,
|
|
54676
54932
|
".highlight-icon": {
|
|
54677
54933
|
visibility: "hidden"
|
|
@@ -54680,13 +54936,13 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
54680
54936
|
visibility: "visible"
|
|
54681
54937
|
}
|
|
54682
54938
|
});
|
|
54683
|
-
const listItemTitleStyle =
|
|
54939
|
+
const listItemTitleStyle = css50({
|
|
54684
54940
|
fontWeight: theme.font.weight.medium
|
|
54685
54941
|
});
|
|
54686
|
-
const listItemSubtitleStyle =
|
|
54942
|
+
const listItemSubtitleStyle = css50({
|
|
54687
54943
|
fontWeight: theme.font.weight.regular
|
|
54688
54944
|
});
|
|
54689
|
-
const listItemHighlightIconStyle =
|
|
54945
|
+
const listItemHighlightIconStyle = css50({
|
|
54690
54946
|
visibility: "hidden"
|
|
54691
54947
|
});
|
|
54692
54948
|
return {
|
|
@@ -54701,7 +54957,7 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
54701
54957
|
};
|
|
54702
54958
|
|
|
54703
54959
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
54704
|
-
import { jsx as
|
|
54960
|
+
import { jsx as jsx254, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
|
|
54705
54961
|
var WfoSummaryCardListItem = ({
|
|
54706
54962
|
title,
|
|
54707
54963
|
value,
|
|
@@ -54714,9 +54970,9 @@ var WfoSummaryCardListItem = ({
|
|
|
54714
54970
|
listItemSubtitleStyle,
|
|
54715
54971
|
listItemHighlightIconStyle
|
|
54716
54972
|
} = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
54717
|
-
return /* @__PURE__ */
|
|
54718
|
-
/* @__PURE__ */
|
|
54719
|
-
/* @__PURE__ */
|
|
54973
|
+
return /* @__PURE__ */ jsx254(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs137(EuiFlexGroup31, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
54974
|
+
/* @__PURE__ */ jsxs137(EuiFlexItem36, { children: [
|
|
54975
|
+
/* @__PURE__ */ jsx254(
|
|
54720
54976
|
EuiTextColor,
|
|
54721
54977
|
{
|
|
54722
54978
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -54724,22 +54980,22 @@ var WfoSummaryCardListItem = ({
|
|
|
54724
54980
|
children: title
|
|
54725
54981
|
}
|
|
54726
54982
|
),
|
|
54727
|
-
/* @__PURE__ */
|
|
54983
|
+
/* @__PURE__ */ jsx254(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
54728
54984
|
] }),
|
|
54729
|
-
/* @__PURE__ */
|
|
54985
|
+
/* @__PURE__ */ jsx254(
|
|
54730
54986
|
EuiFlexItem36,
|
|
54731
54987
|
{
|
|
54732
54988
|
className: url ? "highlight-icon" : void 0,
|
|
54733
54989
|
grow: false,
|
|
54734
54990
|
css: listItemHighlightIconStyle,
|
|
54735
|
-
children: /* @__PURE__ */
|
|
54991
|
+
children: /* @__PURE__ */ jsx254(EuiIcon6, { type: "sortRight", color: "primary" })
|
|
54736
54992
|
}
|
|
54737
54993
|
)
|
|
54738
54994
|
] }) });
|
|
54739
54995
|
};
|
|
54740
54996
|
|
|
54741
54997
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
54742
|
-
import { jsx as
|
|
54998
|
+
import { jsx as jsx255, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
|
|
54743
54999
|
var WfoSummaryCardList = ({
|
|
54744
55000
|
title,
|
|
54745
55001
|
items,
|
|
@@ -54749,7 +55005,7 @@ var WfoSummaryCardList = ({
|
|
|
54749
55005
|
const router = useRouter17();
|
|
54750
55006
|
const euiScrollBarStyle = useEuiScrollBar3();
|
|
54751
55007
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
54752
|
-
return /* @__PURE__ */
|
|
55008
|
+
return /* @__PURE__ */ jsx255(EuiFlexItem37, { children: /* @__PURE__ */ jsxs138(
|
|
54753
55009
|
EuiPanel13,
|
|
54754
55010
|
{
|
|
54755
55011
|
css: listContainerStyle,
|
|
@@ -54757,11 +55013,11 @@ var WfoSummaryCardList = ({
|
|
|
54757
55013
|
hasBorder: true,
|
|
54758
55014
|
paddingSize: "l",
|
|
54759
55015
|
children: [
|
|
54760
|
-
/* @__PURE__ */
|
|
54761
|
-
/* @__PURE__ */
|
|
54762
|
-
/* @__PURE__ */
|
|
54763
|
-
/* @__PURE__ */
|
|
54764
|
-
/* @__PURE__ */
|
|
55016
|
+
/* @__PURE__ */ jsxs138("div", { children: [
|
|
55017
|
+
/* @__PURE__ */ jsx255("p", { css: listHeaderStyle, children: title }),
|
|
55018
|
+
/* @__PURE__ */ jsx255(EuiSpacer28, { size: "m" }),
|
|
55019
|
+
/* @__PURE__ */ jsx255(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx255("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs138("div", { children: [
|
|
55020
|
+
/* @__PURE__ */ jsx255(
|
|
54765
55021
|
WfoSummaryCardListItem,
|
|
54766
55022
|
{
|
|
54767
55023
|
title: item.title,
|
|
@@ -54769,11 +55025,11 @@ var WfoSummaryCardList = ({
|
|
|
54769
55025
|
url: item.url
|
|
54770
55026
|
}
|
|
54771
55027
|
),
|
|
54772
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
55028
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx255(EuiHorizontalRule9, { margin: "none" })
|
|
54773
55029
|
] }, index)) }) })
|
|
54774
55030
|
] }),
|
|
54775
|
-
/* @__PURE__ */
|
|
54776
|
-
button && /* @__PURE__ */
|
|
55031
|
+
/* @__PURE__ */ jsx255(EuiSpacer28, { size: "m" }),
|
|
55032
|
+
button && /* @__PURE__ */ jsx255(
|
|
54777
55033
|
EuiButton19,
|
|
54778
55034
|
{
|
|
54779
55035
|
fullWidth: true,
|
|
@@ -54788,10 +55044,10 @@ var WfoSummaryCardList = ({
|
|
|
54788
55044
|
|
|
54789
55045
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
54790
55046
|
import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
|
|
54791
|
-
import { jsx as
|
|
55047
|
+
import { jsx as jsx256 } from "@emotion/react/jsx-runtime";
|
|
54792
55048
|
var WfoSummaryCards = ({ children }) => {
|
|
54793
55049
|
const currentBreakpoint = useCurrentEuiBreakpoint();
|
|
54794
|
-
return /* @__PURE__ */
|
|
55050
|
+
return /* @__PURE__ */ jsx256(
|
|
54795
55051
|
EuiFlexGrid2,
|
|
54796
55052
|
{
|
|
54797
55053
|
responsive: false,
|
|
@@ -54806,9 +55062,9 @@ var WfoSummaryCards = ({ children }) => {
|
|
|
54806
55062
|
import { EuiFlexItem as EuiFlexItem38, EuiSpacer as EuiSpacer29 } from "@elastic/eui";
|
|
54807
55063
|
|
|
54808
55064
|
// src/components/WfoSummary/styles.ts
|
|
54809
|
-
import { css as
|
|
55065
|
+
import { css as css51 } from "@emotion/react";
|
|
54810
55066
|
var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
54811
|
-
const cardContainerStyle =
|
|
55067
|
+
const cardContainerStyle = css51({
|
|
54812
55068
|
height: theme.base * 36,
|
|
54813
55069
|
minWidth: theme.base * 25
|
|
54814
55070
|
});
|
|
@@ -54818,7 +55074,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
|
54818
55074
|
};
|
|
54819
55075
|
|
|
54820
55076
|
// src/components/WfoSummary/WfoSummaryCard.tsx
|
|
54821
|
-
import { jsx as
|
|
55077
|
+
import { jsx as jsx257, jsxs as jsxs139 } from "@emotion/react/jsx-runtime";
|
|
54822
55078
|
var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
|
|
54823
55079
|
SummaryCardStatus2["Success"] = "Success";
|
|
54824
55080
|
SummaryCardStatus2["Error"] = "Error";
|
|
@@ -54844,7 +55100,7 @@ var WfoSummaryCard = ({
|
|
|
54844
55100
|
switch (status) {
|
|
54845
55101
|
case "Success" /* Success */:
|
|
54846
55102
|
return {
|
|
54847
|
-
iconType: () => /* @__PURE__ */
|
|
55103
|
+
iconType: () => /* @__PURE__ */ jsx257(
|
|
54848
55104
|
WfoCheckmarkCircleFill,
|
|
54849
55105
|
{
|
|
54850
55106
|
width: 32,
|
|
@@ -54856,7 +55112,7 @@ var WfoSummaryCard = ({
|
|
|
54856
55112
|
};
|
|
54857
55113
|
case "Error" /* Error */:
|
|
54858
55114
|
return {
|
|
54859
|
-
iconType: () => /* @__PURE__ */
|
|
55115
|
+
iconType: () => /* @__PURE__ */ jsx257(
|
|
54860
55116
|
WfoXCircleFill,
|
|
54861
55117
|
{
|
|
54862
55118
|
width: 32,
|
|
@@ -54868,7 +55124,7 @@ var WfoSummaryCard = ({
|
|
|
54868
55124
|
};
|
|
54869
55125
|
case "Neutral" /* Neutral */:
|
|
54870
55126
|
return {
|
|
54871
|
-
iconType: () => /* @__PURE__ */
|
|
55127
|
+
iconType: () => /* @__PURE__ */ jsx257(
|
|
54872
55128
|
WfoCubeFill,
|
|
54873
55129
|
{
|
|
54874
55130
|
width: 32,
|
|
@@ -54880,7 +55136,7 @@ var WfoSummaryCard = ({
|
|
|
54880
55136
|
};
|
|
54881
55137
|
default:
|
|
54882
55138
|
return headerBadge ?? {
|
|
54883
|
-
iconType: () => /* @__PURE__ */
|
|
55139
|
+
iconType: () => /* @__PURE__ */ jsx257(
|
|
54884
55140
|
WfoCubeFill,
|
|
54885
55141
|
{
|
|
54886
55142
|
width: 32,
|
|
@@ -54892,8 +55148,8 @@ var WfoSummaryCard = ({
|
|
|
54892
55148
|
};
|
|
54893
55149
|
}
|
|
54894
55150
|
};
|
|
54895
|
-
return /* @__PURE__ */
|
|
54896
|
-
/* @__PURE__ */
|
|
55151
|
+
return /* @__PURE__ */ jsxs139(EuiFlexItem38, { css: cardContainerStyle, children: [
|
|
55152
|
+
/* @__PURE__ */ jsx257(
|
|
54897
55153
|
WfoSummaryCardHeader,
|
|
54898
55154
|
{
|
|
54899
55155
|
text: headerTitle,
|
|
@@ -54902,8 +55158,8 @@ var WfoSummaryCard = ({
|
|
|
54902
55158
|
...getIconTypeAndColorForHeaderStatus(headerStatus)
|
|
54903
55159
|
}
|
|
54904
55160
|
),
|
|
54905
|
-
/* @__PURE__ */
|
|
54906
|
-
/* @__PURE__ */
|
|
55161
|
+
/* @__PURE__ */ jsx257(EuiSpacer29, { size: "m" }),
|
|
55162
|
+
/* @__PURE__ */ jsx257(
|
|
54907
55163
|
WfoSummaryCardList,
|
|
54908
55164
|
{
|
|
54909
55165
|
title: listTitle,
|
|
@@ -55013,7 +55269,7 @@ var productsSummaryQueryVariables = {
|
|
|
55013
55269
|
};
|
|
55014
55270
|
|
|
55015
55271
|
// src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
|
|
55016
|
-
import { jsx as
|
|
55272
|
+
import { jsx as jsx258 } from "@emotion/react/jsx-runtime";
|
|
55017
55273
|
var WfoActiveWorkflowsSummaryCard = () => {
|
|
55018
55274
|
const t = useTranslations85("startPage.activeWorkflows");
|
|
55019
55275
|
const {
|
|
@@ -55021,7 +55277,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
55021
55277
|
isFetching,
|
|
55022
55278
|
isLoading
|
|
55023
55279
|
} = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
|
|
55024
|
-
return /* @__PURE__ */
|
|
55280
|
+
return /* @__PURE__ */ jsx258(
|
|
55025
55281
|
WfoSummaryCard,
|
|
55026
55282
|
{
|
|
55027
55283
|
headerTitle: t("headerTitle"),
|
|
@@ -55041,7 +55297,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
55041
55297
|
|
|
55042
55298
|
// src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
|
|
55043
55299
|
import { useTranslations as useTranslations86 } from "next-intl";
|
|
55044
|
-
import { jsx as
|
|
55300
|
+
import { jsx as jsx259 } from "@emotion/react/jsx-runtime";
|
|
55045
55301
|
var WfoFailedTasksSummaryCard = () => {
|
|
55046
55302
|
const t = useTranslations86("startPage.failedTasks");
|
|
55047
55303
|
const {
|
|
@@ -55049,7 +55305,7 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
55049
55305
|
isFetching,
|
|
55050
55306
|
isLoading
|
|
55051
55307
|
} = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
|
|
55052
|
-
return /* @__PURE__ */
|
|
55308
|
+
return /* @__PURE__ */ jsx259(
|
|
55053
55309
|
WfoSummaryCard,
|
|
55054
55310
|
{
|
|
55055
55311
|
headerTitle: t("headerTitle"),
|
|
@@ -55069,7 +55325,7 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
55069
55325
|
|
|
55070
55326
|
// src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
|
|
55071
55327
|
import { useTranslations as useTranslations87 } from "next-intl";
|
|
55072
|
-
import { jsx as
|
|
55328
|
+
import { jsx as jsx260 } from "@emotion/react/jsx-runtime";
|
|
55073
55329
|
var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
55074
55330
|
const t = useTranslations87("startPage.activeSubscriptions");
|
|
55075
55331
|
const {
|
|
@@ -55079,7 +55335,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
55079
55335
|
} = useGetSubscriptionSummaryListQuery(
|
|
55080
55336
|
subscriptionsListSummaryQueryVariables
|
|
55081
55337
|
);
|
|
55082
|
-
return /* @__PURE__ */
|
|
55338
|
+
return /* @__PURE__ */ jsx260(
|
|
55083
55339
|
WfoSummaryCard,
|
|
55084
55340
|
{
|
|
55085
55341
|
headerTitle: t("headerTitle"),
|
|
@@ -55099,7 +55355,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
55099
55355
|
|
|
55100
55356
|
// src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
|
|
55101
55357
|
import { useTranslations as useTranslations88 } from "next-intl";
|
|
55102
|
-
import { jsx as
|
|
55358
|
+
import { jsx as jsx261 } from "@emotion/react/jsx-runtime";
|
|
55103
55359
|
var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
55104
55360
|
const t = useTranslations88("startPage.outOfSyncSubscriptions");
|
|
55105
55361
|
const {
|
|
@@ -55114,7 +55370,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
55114
55370
|
["sortBy" /* SORT_BY */]: "field-startDate_order-ASC",
|
|
55115
55371
|
["queryString" /* QUERY_STRING */]: "status:(provisioning|active) insync:false"
|
|
55116
55372
|
};
|
|
55117
|
-
return /* @__PURE__ */
|
|
55373
|
+
return /* @__PURE__ */ jsx261(
|
|
55118
55374
|
WfoSummaryCard,
|
|
55119
55375
|
{
|
|
55120
55376
|
headerTitle: t("headerTitle"),
|
|
@@ -55137,7 +55393,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
55137
55393
|
|
|
55138
55394
|
// src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
|
|
55139
55395
|
import { useTranslations as useTranslations89 } from "next-intl";
|
|
55140
|
-
import { jsx as
|
|
55396
|
+
import { jsx as jsx262 } from "@emotion/react/jsx-runtime";
|
|
55141
55397
|
var WfoMyWorkflowsSummaryCard = ({
|
|
55142
55398
|
username
|
|
55143
55399
|
}) => {
|
|
@@ -55154,7 +55410,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
55154
55410
|
["sortBy" /* SORT_BY */]: "field-lastModifiedAt_order-DESC",
|
|
55155
55411
|
["queryString" /* QUERY_STRING */]: `createdBy:"${username}"`
|
|
55156
55412
|
};
|
|
55157
|
-
return /* @__PURE__ */
|
|
55413
|
+
return /* @__PURE__ */ jsx262(
|
|
55158
55414
|
WfoSummaryCard,
|
|
55159
55415
|
{
|
|
55160
55416
|
headerTitle: t("headerTitle"),
|
|
@@ -55177,7 +55433,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
55177
55433
|
|
|
55178
55434
|
// src/components/WfoSummary/WfoProductsSummaryCard.tsx
|
|
55179
55435
|
import { useTranslations as useTranslations90 } from "next-intl";
|
|
55180
|
-
import { jsx as
|
|
55436
|
+
import { jsx as jsx263, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
|
|
55181
55437
|
var WfoProductsSummaryCard = () => {
|
|
55182
55438
|
const t = useTranslations90("startPage.products");
|
|
55183
55439
|
const {
|
|
@@ -55189,7 +55445,7 @@ var WfoProductsSummaryCard = () => {
|
|
|
55189
55445
|
(left, right) => (right.subscriptions.pageInfo.totalItems ?? 0) - (left.subscriptions.pageInfo.totalItems ?? 0)
|
|
55190
55446
|
).map((product) => ({
|
|
55191
55447
|
title: "",
|
|
55192
|
-
value: /* @__PURE__ */
|
|
55448
|
+
value: /* @__PURE__ */ jsxs140(
|
|
55193
55449
|
"div",
|
|
55194
55450
|
{
|
|
55195
55451
|
css: {
|
|
@@ -55197,13 +55453,13 @@ var WfoProductsSummaryCard = () => {
|
|
|
55197
55453
|
justifyContent: "space-between"
|
|
55198
55454
|
},
|
|
55199
55455
|
children: [
|
|
55200
|
-
/* @__PURE__ */
|
|
55201
|
-
/* @__PURE__ */
|
|
55456
|
+
/* @__PURE__ */ jsx263("div", { children: product.name }),
|
|
55457
|
+
/* @__PURE__ */ jsx263("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
55202
55458
|
]
|
|
55203
55459
|
}
|
|
55204
55460
|
)
|
|
55205
55461
|
})) ?? [];
|
|
55206
|
-
return /* @__PURE__ */
|
|
55462
|
+
return /* @__PURE__ */ jsx263(
|
|
55207
55463
|
WfoSummaryCard,
|
|
55208
55464
|
{
|
|
55209
55465
|
headerTitle: t("headerTitle"),
|
|
@@ -55219,34 +55475,34 @@ var WfoProductsSummaryCard = () => {
|
|
|
55219
55475
|
|
|
55220
55476
|
// src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
|
|
55221
55477
|
import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
|
|
55222
|
-
import { Fragment as Fragment62, jsx as
|
|
55478
|
+
import { Fragment as Fragment62, jsx as jsx264, jsxs as jsxs141 } from "@emotion/react/jsx-runtime";
|
|
55223
55479
|
var WfoTitleWithWebsocketBadge = ({
|
|
55224
55480
|
title
|
|
55225
55481
|
}) => {
|
|
55226
55482
|
const { useWebSockets } = useGetOrchestratorConfig();
|
|
55227
|
-
const pageTitle = useWebSockets ? /* @__PURE__ */
|
|
55483
|
+
const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs141(Fragment62, { children: [
|
|
55228
55484
|
title,
|
|
55229
55485
|
" ",
|
|
55230
|
-
/* @__PURE__ */
|
|
55486
|
+
/* @__PURE__ */ jsx264(WfoWebsocketStatusBadge, {})
|
|
55231
55487
|
] }) : title;
|
|
55232
|
-
return /* @__PURE__ */
|
|
55488
|
+
return /* @__PURE__ */ jsx264(EuiPageHeader3, { pageTitle });
|
|
55233
55489
|
};
|
|
55234
55490
|
|
|
55235
55491
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
55236
|
-
import { useState as
|
|
55492
|
+
import { useState as useState55 } from "react";
|
|
55237
55493
|
import {
|
|
55238
55494
|
EuiButtonEmpty as EuiButtonEmpty5,
|
|
55239
55495
|
EuiFlexGroup as EuiFlexGroup32,
|
|
55240
55496
|
EuiPopover as EuiPopover9,
|
|
55241
55497
|
EuiRadioGroup as EuiRadioGroup2
|
|
55242
55498
|
} from "@elastic/eui";
|
|
55243
|
-
import { jsx as
|
|
55499
|
+
import { jsx as jsx265 } from "@emotion/react/jsx-runtime";
|
|
55244
55500
|
var WfoRadioDropdown = ({
|
|
55245
55501
|
options,
|
|
55246
55502
|
onUpdateOption,
|
|
55247
55503
|
selectedOption
|
|
55248
55504
|
}) => {
|
|
55249
|
-
const [isOpen, setIsOpen] =
|
|
55505
|
+
const [isOpen, setIsOpen] = useState55(false);
|
|
55250
55506
|
const handleClose = () => {
|
|
55251
55507
|
if (isOpen) {
|
|
55252
55508
|
setIsOpen(false);
|
|
@@ -55266,16 +55522,16 @@ var WfoRadioDropdown = ({
|
|
|
55266
55522
|
id: option.id,
|
|
55267
55523
|
label: option.label
|
|
55268
55524
|
}));
|
|
55269
|
-
return /* @__PURE__ */
|
|
55525
|
+
return /* @__PURE__ */ jsx265(
|
|
55270
55526
|
EuiFlexGroup32,
|
|
55271
55527
|
{
|
|
55272
55528
|
gutterSize: "s",
|
|
55273
55529
|
alignItems: "center",
|
|
55274
55530
|
justifyContent: "flexEnd",
|
|
55275
|
-
children: /* @__PURE__ */
|
|
55531
|
+
children: /* @__PURE__ */ jsx265(
|
|
55276
55532
|
EuiPopover9,
|
|
55277
55533
|
{
|
|
55278
|
-
button: /* @__PURE__ */
|
|
55534
|
+
button: /* @__PURE__ */ jsx265(
|
|
55279
55535
|
EuiButtonEmpty5,
|
|
55280
55536
|
{
|
|
55281
55537
|
size: "s",
|
|
@@ -55296,7 +55552,7 @@ var WfoRadioDropdown = ({
|
|
|
55296
55552
|
isOpen,
|
|
55297
55553
|
closePopover: handleClose,
|
|
55298
55554
|
anchorPosition: "downLeft",
|
|
55299
|
-
children: /* @__PURE__ */
|
|
55555
|
+
children: /* @__PURE__ */ jsx265(
|
|
55300
55556
|
EuiRadioGroup2,
|
|
55301
55557
|
{
|
|
55302
55558
|
options: radioGroupOptions,
|
|
@@ -55370,7 +55626,7 @@ var {
|
|
|
55370
55626
|
} = subscriptionListMutationApi;
|
|
55371
55627
|
|
|
55372
55628
|
// src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
|
|
55373
|
-
import { jsx as
|
|
55629
|
+
import { jsx as jsx266 } from "@emotion/react/jsx-runtime";
|
|
55374
55630
|
var WfoSubscriptionNoteEdit = ({
|
|
55375
55631
|
onlyShowOnHover = false,
|
|
55376
55632
|
queryVariables,
|
|
@@ -55396,7 +55652,7 @@ var WfoSubscriptionNoteEdit = ({
|
|
|
55396
55652
|
note: note2
|
|
55397
55653
|
});
|
|
55398
55654
|
};
|
|
55399
|
-
return /* @__PURE__ */
|
|
55655
|
+
return /* @__PURE__ */ jsx266(
|
|
55400
55656
|
WfoInlineEdit,
|
|
55401
55657
|
{
|
|
55402
55658
|
value: note?.trim() ? note : INVISIBLE_CHARACTER,
|
|
@@ -55407,7 +55663,7 @@ var WfoSubscriptionNoteEdit = ({
|
|
|
55407
55663
|
};
|
|
55408
55664
|
|
|
55409
55665
|
// src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx
|
|
55410
|
-
import { jsx as
|
|
55666
|
+
import { jsx as jsx267 } from "@emotion/react/jsx-runtime";
|
|
55411
55667
|
var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }) => {
|
|
55412
55668
|
const { data, endpointName } = useGetSubscriptionDetailQuery({
|
|
55413
55669
|
subscriptionId
|
|
@@ -55430,7 +55686,7 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
|
|
|
55430
55686
|
note
|
|
55431
55687
|
});
|
|
55432
55688
|
};
|
|
55433
|
-
return /* @__PURE__ */
|
|
55689
|
+
return /* @__PURE__ */ jsx267(
|
|
55434
55690
|
WfoInlineEdit,
|
|
55435
55691
|
{
|
|
55436
55692
|
value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
|
|
@@ -55444,9 +55700,9 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
|
|
|
55444
55700
|
import { EuiFlexItem as EuiFlexItem39 } from "@elastic/eui";
|
|
55445
55701
|
|
|
55446
55702
|
// src/components/WfoTableCodeBlock/styles.ts
|
|
55447
|
-
import { css as
|
|
55703
|
+
import { css as css52 } from "@emotion/react";
|
|
55448
55704
|
var getStyles16 = ({ theme }) => {
|
|
55449
|
-
const tableCodeBlockMarginStyle =
|
|
55705
|
+
const tableCodeBlockMarginStyle = css52({
|
|
55450
55706
|
margin: theme.size.base,
|
|
55451
55707
|
marginTop: theme.size.l,
|
|
55452
55708
|
marginRight: theme.size.l
|
|
@@ -55457,7 +55713,7 @@ var getStyles16 = ({ theme }) => {
|
|
|
55457
55713
|
};
|
|
55458
55714
|
|
|
55459
55715
|
// src/components/WfoTableCodeBlock/WfoTableCodeBlock.tsx
|
|
55460
|
-
import { jsx as
|
|
55716
|
+
import { jsx as jsx268 } from "@emotion/react/jsx-runtime";
|
|
55461
55717
|
var WfoTableCodeBlock = ({
|
|
55462
55718
|
stepState: data
|
|
55463
55719
|
}) => {
|
|
@@ -55473,7 +55729,7 @@ var WfoTableCodeBlock = ({
|
|
|
55473
55729
|
};
|
|
55474
55730
|
}
|
|
55475
55731
|
);
|
|
55476
|
-
return /* @__PURE__ */
|
|
55732
|
+
return /* @__PURE__ */ jsx268(EuiFlexItem39, { css: tableCodeBlockMarginStyle, children: /* @__PURE__ */ jsx268(
|
|
55477
55733
|
WfoKeyValueTable,
|
|
55478
55734
|
{
|
|
55479
55735
|
keyValues,
|
|
@@ -56627,6 +56883,7 @@ export {
|
|
|
56627
56883
|
WfoDataCell,
|
|
56628
56884
|
WfoDateTime,
|
|
56629
56885
|
WfoDivider,
|
|
56886
|
+
WfoDropdown,
|
|
56630
56887
|
WfoDropdownButton,
|
|
56631
56888
|
WfoEngineStatus,
|
|
56632
56889
|
WfoEngineStatusBadge,
|
|
@@ -56671,6 +56928,7 @@ export {
|
|
|
56671
56928
|
WfoMinusCircleFill,
|
|
56672
56929
|
WfoMinusCircleOutline,
|
|
56673
56930
|
WfoModifySettings,
|
|
56931
|
+
WfoMultiCheckboxField,
|
|
56674
56932
|
WfoMultilineCell,
|
|
56675
56933
|
WfoMyWorkflowsSummaryCard,
|
|
56676
56934
|
WfoNoResults,
|
|
@@ -56705,6 +56963,7 @@ export {
|
|
|
56705
56963
|
WfoQueryParams,
|
|
56706
56964
|
WfoRadio,
|
|
56707
56965
|
WfoRadioDropdown,
|
|
56966
|
+
WfoReactSelect,
|
|
56708
56967
|
WfoRefresh,
|
|
56709
56968
|
WfoRelatedSubscriptions,
|
|
56710
56969
|
WfoRenderElementOrString,
|
|
@@ -56858,6 +57117,7 @@ export {
|
|
|
56858
57117
|
getWfoArrayFieldStyles,
|
|
56859
57118
|
getWfoGroupedTableStyles,
|
|
56860
57119
|
getWfoObjectFieldStyles,
|
|
57120
|
+
getWfoReactSelectStyles,
|
|
56861
57121
|
getWfoTableStyles,
|
|
56862
57122
|
getWorkflowStepsStyles,
|
|
56863
57123
|
getWorkflowTargetColor,
|