@orchestrator-ui/orchestrator-ui-components 6.7.8 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +23 -18
- package/dist/index.js +288 -203
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx +9 -1
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +9 -2
- package/src/components/WfoStartButton/WfoStartButtonComboBox.tsx +73 -3
- package/src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx +15 -3
- package/src/configuration/version.ts +1 -1
- package/src/rtk/endpoints/startOptions.ts +23 -10
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
65
65
|
})(PolicyResource || {});
|
|
66
66
|
|
|
67
67
|
// src/configuration/version.ts
|
|
68
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.
|
|
68
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.8.0";
|
|
69
69
|
|
|
70
70
|
// src/types/types.ts
|
|
71
71
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -1909,6 +1909,7 @@ var workflowOptionsQuery = `
|
|
|
1909
1909
|
productId
|
|
1910
1910
|
name
|
|
1911
1911
|
tag
|
|
1912
|
+
status
|
|
1912
1913
|
}
|
|
1913
1914
|
}
|
|
1914
1915
|
}
|
|
@@ -1931,12 +1932,15 @@ var startButtonOptionsApi = orchestratorApi.injectEndpoints({
|
|
|
1931
1932
|
query: () => ({
|
|
1932
1933
|
document: workflowOptionsQuery
|
|
1933
1934
|
}),
|
|
1934
|
-
transformResponse: (response) => {
|
|
1935
|
+
transformResponse: (response, _5, productStatus) => {
|
|
1936
|
+
const statusToMatch = (productStatus ?? "active" /* ACTIVE */).toLowerCase();
|
|
1935
1937
|
const startOptions = [];
|
|
1936
1938
|
const workflows = response?.workflows?.page || [];
|
|
1937
1939
|
workflows.forEach((workflow) => {
|
|
1938
1940
|
const workflowName = workflow.name;
|
|
1939
|
-
workflow.products.
|
|
1941
|
+
workflow.products.filter(
|
|
1942
|
+
(product) => product.status.toLowerCase() === statusToMatch
|
|
1943
|
+
).forEach((product) => {
|
|
1940
1944
|
startOptions.push({
|
|
1941
1945
|
workflowName,
|
|
1942
1946
|
isAllowed: workflow.isAllowed,
|
|
@@ -5412,6 +5416,7 @@ var WfoPageTemplate = ({
|
|
|
5412
5416
|
children,
|
|
5413
5417
|
getAppLogo,
|
|
5414
5418
|
overrideMenuItems,
|
|
5419
|
+
overrideStartWorkflowFilters,
|
|
5415
5420
|
onThemeSwitch
|
|
5416
5421
|
}) => {
|
|
5417
5422
|
const { getSidebarStyle, NAVIGATION_HEIGHT } = useWithOrchestratorTheme(
|
|
@@ -5440,7 +5445,13 @@ var WfoPageTemplate = ({
|
|
|
5440
5445
|
EuiPageTemplate.Sidebar,
|
|
5441
5446
|
{
|
|
5442
5447
|
css: getSidebarStyle(NAVIGATION_HEIGHT),
|
|
5443
|
-
children: /* @__PURE__ */ jsx65(
|
|
5448
|
+
children: /* @__PURE__ */ jsx65(
|
|
5449
|
+
WfoSidebar,
|
|
5450
|
+
{
|
|
5451
|
+
overrideMenuItems,
|
|
5452
|
+
overrideStartWorkflowFilters
|
|
5453
|
+
}
|
|
5454
|
+
)
|
|
5444
5455
|
}
|
|
5445
5456
|
),
|
|
5446
5457
|
/* @__PURE__ */ jsx65(
|
|
@@ -5586,12 +5597,21 @@ var getMenuItemStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
5586
5597
|
};
|
|
5587
5598
|
|
|
5588
5599
|
// src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx
|
|
5600
|
+
import React9 from "react";
|
|
5589
5601
|
import { useTranslations as useTranslations6 } from "next-intl";
|
|
5590
5602
|
import { useRouter } from "next/router";
|
|
5591
5603
|
|
|
5592
5604
|
// src/components/WfoStartButton/WfoStartButtonComboBox.tsx
|
|
5593
|
-
import { useState as useState6 } from "react";
|
|
5594
|
-
import {
|
|
5605
|
+
import React8, { useState as useState6 } from "react";
|
|
5606
|
+
import { capitalize } from "lodash";
|
|
5607
|
+
import {
|
|
5608
|
+
EuiButton as EuiButton2,
|
|
5609
|
+
EuiButtonEmpty,
|
|
5610
|
+
EuiFlexGroup,
|
|
5611
|
+
EuiPopover as EuiPopover2,
|
|
5612
|
+
EuiSelectable,
|
|
5613
|
+
EuiSpacer as EuiSpacer2
|
|
5614
|
+
} from "@elastic/eui";
|
|
5595
5615
|
|
|
5596
5616
|
// src/components/WfoStartButton/styles.ts
|
|
5597
5617
|
import { css as css5 } from "@emotion/react";
|
|
@@ -5620,7 +5640,10 @@ var WfoStartButtonComboBox = ({
|
|
|
5620
5640
|
options,
|
|
5621
5641
|
onOptionChange,
|
|
5622
5642
|
isProcess,
|
|
5623
|
-
className
|
|
5643
|
+
className,
|
|
5644
|
+
selectedProductStatus,
|
|
5645
|
+
setSelectedProductStatus,
|
|
5646
|
+
startWorkflowFilters
|
|
5624
5647
|
}) => {
|
|
5625
5648
|
const [isPopoverOpen, setPopoverOpen] = useState6(false);
|
|
5626
5649
|
const { theme, isDarkThemeActive } = useOrchestratorTheme();
|
|
@@ -5635,40 +5658,91 @@ var WfoStartButtonComboBox = ({
|
|
|
5635
5658
|
children: buttonText
|
|
5636
5659
|
}
|
|
5637
5660
|
);
|
|
5638
|
-
|
|
5661
|
+
const [isFilterPopoverOpen, setFilterPopoverOpen] = React8.useState(false);
|
|
5662
|
+
const ProductStatePicker = () => {
|
|
5663
|
+
return setSelectedProductStatus ? /* @__PURE__ */ jsx66(EuiFlexGroup, { justifyContent: "flexEnd", gutterSize: "none", children: /* @__PURE__ */ jsx66(
|
|
5664
|
+
EuiPopover2,
|
|
5665
|
+
{
|
|
5666
|
+
button: /* @__PURE__ */ jsx66(
|
|
5667
|
+
EuiButtonEmpty,
|
|
5668
|
+
{
|
|
5669
|
+
css: {
|
|
5670
|
+
".euiButtonEmpty__content": {
|
|
5671
|
+
gap: theme.size.xxs
|
|
5672
|
+
}
|
|
5673
|
+
},
|
|
5674
|
+
size: "xs",
|
|
5675
|
+
iconSide: "right",
|
|
5676
|
+
iconType: () => /* @__PURE__ */ jsx66(
|
|
5677
|
+
WfoChevronDown,
|
|
5678
|
+
{
|
|
5679
|
+
height: 18,
|
|
5680
|
+
width: 18,
|
|
5681
|
+
color: "currentColor"
|
|
5682
|
+
}
|
|
5683
|
+
),
|
|
5684
|
+
onClick: () => setFilterPopoverOpen((v) => !v),
|
|
5685
|
+
children: /* @__PURE__ */ jsx66("b", { children: capitalize(selectedProductStatus) })
|
|
5686
|
+
}
|
|
5687
|
+
),
|
|
5688
|
+
isOpen: isFilterPopoverOpen,
|
|
5689
|
+
closePopover: () => setFilterPopoverOpen(false),
|
|
5690
|
+
anchorPosition: "downRight",
|
|
5691
|
+
children: startWorkflowFilters?.map((productStatus) => /* @__PURE__ */ jsx66("div", { children: /* @__PURE__ */ jsx66(
|
|
5692
|
+
EuiButtonEmpty,
|
|
5693
|
+
{
|
|
5694
|
+
size: "xs",
|
|
5695
|
+
onClick: () => {
|
|
5696
|
+
setSelectedProductStatus(productStatus);
|
|
5697
|
+
setFilterPopoverOpen(false);
|
|
5698
|
+
},
|
|
5699
|
+
children: capitalize(productStatus)
|
|
5700
|
+
},
|
|
5701
|
+
productStatus
|
|
5702
|
+
) }, productStatus))
|
|
5703
|
+
}
|
|
5704
|
+
) }) : /* @__PURE__ */ jsx66(Fragment3, {});
|
|
5705
|
+
};
|
|
5706
|
+
return /* @__PURE__ */ jsxs41(
|
|
5639
5707
|
EuiPopover2,
|
|
5640
5708
|
{
|
|
5641
5709
|
initialFocus: `.euiSelectable .euiFieldSearch`,
|
|
5642
5710
|
button: Button,
|
|
5643
5711
|
isOpen: isPopoverOpen,
|
|
5644
5712
|
closePopover: () => setPopoverOpen(false),
|
|
5645
|
-
children:
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
/* @__PURE__ */
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5713
|
+
children: [
|
|
5714
|
+
startWorkflowFilters && /* @__PURE__ */ jsx66(ProductStatePicker, {}),
|
|
5715
|
+
/* @__PURE__ */ jsx66(
|
|
5716
|
+
EuiSelectable,
|
|
5717
|
+
{
|
|
5718
|
+
className,
|
|
5719
|
+
css: selectableStyle,
|
|
5720
|
+
searchable: true,
|
|
5721
|
+
options,
|
|
5722
|
+
onChange: (_5, __, changedOption) => onOptionChange(changedOption),
|
|
5723
|
+
height: 200,
|
|
5724
|
+
children: (list, search) => /* @__PURE__ */ jsxs41(Fragment3, { children: [
|
|
5725
|
+
search,
|
|
5726
|
+
/* @__PURE__ */ jsx66(EuiSpacer2, { size: "s" }),
|
|
5727
|
+
list
|
|
5728
|
+
] })
|
|
5729
|
+
}
|
|
5730
|
+
)
|
|
5731
|
+
]
|
|
5661
5732
|
}
|
|
5662
5733
|
);
|
|
5663
5734
|
};
|
|
5664
5735
|
|
|
5665
5736
|
// src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx
|
|
5666
5737
|
import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
|
|
5667
|
-
var WfoStartWorkflowButtonComboBox = (
|
|
5738
|
+
var WfoStartWorkflowButtonComboBox = ({
|
|
5739
|
+
startWorkflowFilters
|
|
5740
|
+
}) => {
|
|
5668
5741
|
const router = useRouter();
|
|
5669
5742
|
const t = useTranslations6("common");
|
|
5670
5743
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
5671
|
-
const
|
|
5744
|
+
const [selectedProductStatus, setSelectedProductStatus] = React9.useState("active" /* ACTIVE */);
|
|
5745
|
+
const { data } = useGetWorkflowOptionsQuery(selectedProductStatus);
|
|
5672
5746
|
const workflowOptions = data?.startOptions || [];
|
|
5673
5747
|
const comboBoxOptions = [...workflowOptions].sort(
|
|
5674
5748
|
(workflowA, workflowB) => workflowA.productName.localeCompare(workflowB.productName)
|
|
@@ -5696,7 +5770,10 @@ var WfoStartWorkflowButtonComboBox = () => {
|
|
|
5696
5770
|
options: comboBoxOptions,
|
|
5697
5771
|
onOptionChange: handleOptionChange,
|
|
5698
5772
|
isProcess: true,
|
|
5699
|
-
css: { width: "300px" }
|
|
5773
|
+
css: { width: "300px" },
|
|
5774
|
+
selectedProductStatus,
|
|
5775
|
+
setSelectedProductStatus,
|
|
5776
|
+
startWorkflowFilters
|
|
5700
5777
|
}
|
|
5701
5778
|
);
|
|
5702
5779
|
};
|
|
@@ -5742,7 +5819,10 @@ var createSideNavDivider = () => ({
|
|
|
5742
5819
|
id: htmlIdGenerator("menuDivider")(),
|
|
5743
5820
|
renderItem: () => /* @__PURE__ */ jsx69(EuiHorizontalRule, { margin: "xs" })
|
|
5744
5821
|
});
|
|
5745
|
-
var WfoSidebar = ({
|
|
5822
|
+
var WfoSidebar = ({
|
|
5823
|
+
overrideMenuItems,
|
|
5824
|
+
overrideStartWorkflowFilters
|
|
5825
|
+
}) => {
|
|
5746
5826
|
const { menuStyle } = useWithOrchestratorTheme(getMenuStyles);
|
|
5747
5827
|
const t = useTranslations7("main");
|
|
5748
5828
|
const router = useRouter2();
|
|
@@ -5923,7 +6003,12 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
5923
6003
|
WfoIsAllowedToRender,
|
|
5924
6004
|
{
|
|
5925
6005
|
resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
|
|
5926
|
-
children: /* @__PURE__ */ jsx69(
|
|
6006
|
+
children: /* @__PURE__ */ jsx69(
|
|
6007
|
+
WfoStartWorkflowButtonComboBox,
|
|
6008
|
+
{
|
|
6009
|
+
startWorkflowFilters: overrideStartWorkflowFilters
|
|
6010
|
+
}
|
|
6011
|
+
)
|
|
5927
6012
|
}
|
|
5928
6013
|
),
|
|
5929
6014
|
/* @__PURE__ */ jsx69(EuiSpacer3, { size: "xl" }),
|
|
@@ -6854,7 +6939,7 @@ var WfoAvailabilityCheck = ({
|
|
|
6854
6939
|
|
|
6855
6940
|
// src/components/WfoContentHeader/WfoContentHeader.tsx
|
|
6856
6941
|
import {
|
|
6857
|
-
EuiFlexGroup,
|
|
6942
|
+
EuiFlexGroup as EuiFlexGroup2,
|
|
6858
6943
|
EuiFlexItem,
|
|
6859
6944
|
EuiPageHeader,
|
|
6860
6945
|
EuiSpacer as EuiSpacer5
|
|
@@ -6865,7 +6950,7 @@ var WfoContentHeader = ({
|
|
|
6865
6950
|
subtitle,
|
|
6866
6951
|
children
|
|
6867
6952
|
}) => /* @__PURE__ */ jsxs46(Fragment9, { children: [
|
|
6868
|
-
/* @__PURE__ */ jsxs46(
|
|
6953
|
+
/* @__PURE__ */ jsxs46(EuiFlexGroup2, { children: [
|
|
6869
6954
|
/* @__PURE__ */ jsxs46(EuiFlexItem, { children: [
|
|
6870
6955
|
/* @__PURE__ */ jsx84(
|
|
6871
6956
|
WfoRenderElementOrString,
|
|
@@ -6880,7 +6965,7 @@ var WfoContentHeader = ({
|
|
|
6880
6965
|
] })
|
|
6881
6966
|
] }),
|
|
6882
6967
|
children && /* @__PURE__ */ jsx84(EuiFlexItem, { grow: 0, children: /* @__PURE__ */ jsx84(
|
|
6883
|
-
|
|
6968
|
+
EuiFlexGroup2,
|
|
6884
6969
|
{
|
|
6885
6970
|
justifyContent: "flexEnd",
|
|
6886
6971
|
alignItems: "flexStart",
|
|
@@ -6942,7 +7027,7 @@ import { useRouter as useRouter4 } from "next/router";
|
|
|
6942
7027
|
import {
|
|
6943
7028
|
EuiBreadcrumbs,
|
|
6944
7029
|
EuiButtonIcon as EuiButtonIcon4,
|
|
6945
|
-
EuiFlexGroup as
|
|
7030
|
+
EuiFlexGroup as EuiFlexGroup3,
|
|
6946
7031
|
EuiFlexItem as EuiFlexItem2,
|
|
6947
7032
|
EuiSpacer as EuiSpacer6
|
|
6948
7033
|
} from "@elastic/eui";
|
|
@@ -6981,7 +7066,7 @@ var WfoBreadcrumbs = ({
|
|
|
6981
7066
|
});
|
|
6982
7067
|
return /* @__PURE__ */ jsxs48(Fragment11, { children: [
|
|
6983
7068
|
/* @__PURE__ */ jsxs48(
|
|
6984
|
-
|
|
7069
|
+
EuiFlexGroup3,
|
|
6985
7070
|
{
|
|
6986
7071
|
direction: "row",
|
|
6987
7072
|
alignItems: "center",
|
|
@@ -7153,7 +7238,7 @@ var WfoKeyCell = ({ value, rowNumber }) => {
|
|
|
7153
7238
|
};
|
|
7154
7239
|
|
|
7155
7240
|
// src/components/WfoKeyValueTable/WfoValueCell.tsx
|
|
7156
|
-
import
|
|
7241
|
+
import React13 from "react";
|
|
7157
7242
|
import { EuiCopy } from "@elastic/eui";
|
|
7158
7243
|
|
|
7159
7244
|
// src/icons/WfoClipboardCopy.tsx
|
|
@@ -7211,7 +7296,7 @@ var WfoValueCell = ({
|
|
|
7211
7296
|
valueCellStyle
|
|
7212
7297
|
} = useWithOrchestratorTheme(getStyles5);
|
|
7213
7298
|
const shouldRenderCopyColumn = enableCopyIcon && textToCopy;
|
|
7214
|
-
const valueToRender = typeof value === "string" || typeof value === "number" ||
|
|
7299
|
+
const valueToRender = typeof value === "string" || typeof value === "number" || React13.isValidElement(value) ? value : JSON.stringify(value);
|
|
7215
7300
|
const copyText = typeof textToCopy === "object" ? JSON.stringify(textToCopy) : textToCopy;
|
|
7216
7301
|
return /* @__PURE__ */ jsxs50("div", { css: [getBackgroundColorStyleForRow(rowNumber), valueColumnStyle], children: [
|
|
7217
7302
|
/* @__PURE__ */ jsx90("div", { css: valueCellStyle, children: valueToRender }),
|
|
@@ -7482,8 +7567,8 @@ var WfoInformationModal = ({
|
|
|
7482
7567
|
import { useTranslations as useTranslations17 } from "next-intl";
|
|
7483
7568
|
import {
|
|
7484
7569
|
EuiButton as EuiButton5,
|
|
7485
|
-
EuiButtonEmpty,
|
|
7486
|
-
EuiFlexGroup as
|
|
7570
|
+
EuiButtonEmpty as EuiButtonEmpty2,
|
|
7571
|
+
EuiFlexGroup as EuiFlexGroup4,
|
|
7487
7572
|
EuiModal as EuiModal3,
|
|
7488
7573
|
EuiModalBody as EuiModalBody3,
|
|
7489
7574
|
EuiModalFooter as EuiModalFooter3,
|
|
@@ -7504,8 +7589,8 @@ var WfoSettingsModal = ({
|
|
|
7504
7589
|
/* @__PURE__ */ jsx95(EuiModalHeader3, { children: /* @__PURE__ */ jsx95(EuiModalHeaderTitle3, { size: "xs", children: title }) }),
|
|
7505
7590
|
/* @__PURE__ */ jsx95(EuiSpacer8, { size: "s" }),
|
|
7506
7591
|
/* @__PURE__ */ jsx95(EuiModalBody3, { children }),
|
|
7507
|
-
/* @__PURE__ */ jsx95(EuiModalFooter3, { children: /* @__PURE__ */ jsxs53(
|
|
7508
|
-
/* @__PURE__ */ jsx95(
|
|
7592
|
+
/* @__PURE__ */ jsx95(EuiModalFooter3, { children: /* @__PURE__ */ jsxs53(EuiFlexGroup4, { justifyContent: "spaceBetween", children: [
|
|
7593
|
+
/* @__PURE__ */ jsx95(EuiButtonEmpty2, { onClick: onResetToDefaults, flush: "left", children: t("resetToDefault") }),
|
|
7509
7594
|
/* @__PURE__ */ jsx95(EuiButton5, { onClick: onUpdateTableConfig, fill: true, children: t("savePreferences") })
|
|
7510
7595
|
] }) })
|
|
7511
7596
|
] });
|
|
@@ -7514,8 +7599,8 @@ var WfoSettingsModal = ({
|
|
|
7514
7599
|
// src/components/WfoSettingsModal/WfoSubmitModal.tsx
|
|
7515
7600
|
import {
|
|
7516
7601
|
EuiButton as EuiButton6,
|
|
7517
|
-
EuiButtonEmpty as
|
|
7518
|
-
EuiFlexGroup as
|
|
7602
|
+
EuiButtonEmpty as EuiButtonEmpty3,
|
|
7603
|
+
EuiFlexGroup as EuiFlexGroup5,
|
|
7519
7604
|
EuiFlexItem as EuiFlexItem3,
|
|
7520
7605
|
EuiModal as EuiModal4,
|
|
7521
7606
|
EuiModalBody as EuiModalBody4,
|
|
@@ -7538,8 +7623,8 @@ var WfoSubmitModal = ({
|
|
|
7538
7623
|
/* @__PURE__ */ jsx96(EuiModalHeader4, { children: /* @__PURE__ */ jsx96(EuiModalHeaderTitle4, { size: "xs", children: title }) }),
|
|
7539
7624
|
/* @__PURE__ */ jsx96(EuiSpacer9, { size: "s" }),
|
|
7540
7625
|
/* @__PURE__ */ jsx96(EuiModalBody4, { children }),
|
|
7541
|
-
/* @__PURE__ */ jsx96(EuiModalFooter4, { children: /* @__PURE__ */ jsxs54(
|
|
7542
|
-
/* @__PURE__ */ jsx96(EuiFlexItem3, { grow: false, children: /* @__PURE__ */ jsx96(
|
|
7626
|
+
/* @__PURE__ */ jsx96(EuiModalFooter4, { children: /* @__PURE__ */ jsxs54(EuiFlexGroup5, { justifyContent: "spaceBetween", children: [
|
|
7627
|
+
/* @__PURE__ */ jsx96(EuiFlexItem3, { grow: false, children: /* @__PURE__ */ jsx96(EuiButtonEmpty3, { onClick: onClose, children: "Close" }) }),
|
|
7543
7628
|
/* @__PURE__ */ jsx96(EuiFlexItem3, { grow: false, children: /* @__PURE__ */ jsx96(
|
|
7544
7629
|
EuiButton6,
|
|
7545
7630
|
{
|
|
@@ -7896,7 +7981,7 @@ var WfoSubscriptionProductInfoSection = ({
|
|
|
7896
7981
|
};
|
|
7897
7982
|
|
|
7898
7983
|
// src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx
|
|
7899
|
-
import { EuiFlexGroup as
|
|
7984
|
+
import { EuiFlexGroup as EuiFlexGroup6, EuiFlexItem as EuiFlexItem4, EuiSpacer as EuiSpacer10, EuiText as EuiText4 } from "@elastic/eui";
|
|
7900
7985
|
import { Fragment as Fragment13, jsx as jsx101, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
7901
7986
|
var SubscriptionKeyValueBlock = ({
|
|
7902
7987
|
title,
|
|
@@ -7906,7 +7991,7 @@ var SubscriptionKeyValueBlock = ({
|
|
|
7906
7991
|
return /* @__PURE__ */ jsxs55(Fragment13, { children: [
|
|
7907
7992
|
/* @__PURE__ */ jsx101(EuiSpacer10, { size: "m" }),
|
|
7908
7993
|
/* @__PURE__ */ jsx101("div", { children: /* @__PURE__ */ jsxs55("div", { style: { marginTop: 5 }, children: [
|
|
7909
|
-
/* @__PURE__ */ jsx101(
|
|
7994
|
+
/* @__PURE__ */ jsx101(EuiFlexGroup6, { justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx101(EuiFlexItem4, { children: /* @__PURE__ */ jsx101(
|
|
7910
7995
|
EuiText4,
|
|
7911
7996
|
{
|
|
7912
7997
|
grow: false,
|
|
@@ -8222,13 +8307,13 @@ var WfoInSyncField = ({
|
|
|
8222
8307
|
};
|
|
8223
8308
|
|
|
8224
8309
|
// src/components/WfoSubscription/WfoProcessesTimeline.tsx
|
|
8225
|
-
import
|
|
8310
|
+
import React17 from "react";
|
|
8226
8311
|
import { useTranslations as useTranslations23 } from "next-intl";
|
|
8227
8312
|
import Link6 from "next/link";
|
|
8228
8313
|
import {
|
|
8229
8314
|
EuiComment,
|
|
8230
8315
|
EuiCommentList,
|
|
8231
|
-
EuiFlexGroup as
|
|
8316
|
+
EuiFlexGroup as EuiFlexGroup7,
|
|
8232
8317
|
EuiFlexItem as EuiFlexItem5,
|
|
8233
8318
|
EuiSpacer as EuiSpacer11,
|
|
8234
8319
|
EuiText as EuiText5
|
|
@@ -8338,7 +8423,7 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
|
8338
8423
|
content: subscriptionDetailProcess.createdBy
|
|
8339
8424
|
}
|
|
8340
8425
|
];
|
|
8341
|
-
return /* @__PURE__ */ jsx105("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx105("div", { css: rowStyle, children: /* @__PURE__ */ jsx105("div", { className: "border", css: borderStyle, children: /* @__PURE__ */ jsxs58(
|
|
8426
|
+
return /* @__PURE__ */ jsx105("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx105("div", { css: rowStyle, children: /* @__PURE__ */ jsx105("div", { className: "border", css: borderStyle, children: /* @__PURE__ */ jsxs58(EuiFlexGroup7, { css: cellGroupStyle, children: [
|
|
8342
8427
|
/* @__PURE__ */ jsx105(EuiFlexItem5, { css: labelCellStyle, grow: 2, children: label }),
|
|
8343
8428
|
/* @__PURE__ */ jsx105(EuiFlexItem5, { grow: 9, children: content })
|
|
8344
8429
|
] }, label) }) }, idx)) });
|
|
@@ -8362,7 +8447,7 @@ var WfoRenderSubscriptionProcess = ({
|
|
|
8362
8447
|
),
|
|
8363
8448
|
children: [
|
|
8364
8449
|
/* @__PURE__ */ jsxs58(
|
|
8365
|
-
|
|
8450
|
+
EuiFlexGroup7,
|
|
8366
8451
|
{
|
|
8367
8452
|
alignItems: "center",
|
|
8368
8453
|
gutterSize: "s",
|
|
@@ -8402,7 +8487,7 @@ var WfoProcessesTimeline = ({
|
|
|
8402
8487
|
value: "DESC" /* DESC */
|
|
8403
8488
|
}
|
|
8404
8489
|
];
|
|
8405
|
-
const [selectedOption, setSelectedOption] =
|
|
8490
|
+
const [selectedOption, setSelectedOption] = React17.useState(options[0]);
|
|
8406
8491
|
const handleOnSelectOption = (option) => {
|
|
8407
8492
|
setSelectedOption(option);
|
|
8408
8493
|
};
|
|
@@ -8435,7 +8520,7 @@ var WfoProcessesTimeline = ({
|
|
|
8435
8520
|
import { useState as useState14 } from "react";
|
|
8436
8521
|
import { useTranslations as useTranslations28 } from "next-intl";
|
|
8437
8522
|
import Link7 from "next/link";
|
|
8438
|
-
import { EuiFlexGroup as
|
|
8523
|
+
import { EuiFlexGroup as EuiFlexGroup9, EuiFlexItem as EuiFlexItem6, EuiSpacer as EuiSpacer14, EuiSwitch } from "@elastic/eui";
|
|
8439
8524
|
|
|
8440
8525
|
// src/components/WfoSubscription/utils/relatedSubscriptionsListItemsObjectMappers.ts
|
|
8441
8526
|
var mapRelatedSubscriptionsResponseToRelatedSubscriptionsListItems = (input) => input?.relatedSubscriptions.map(
|
|
@@ -9388,7 +9473,7 @@ var WfoTable = ({
|
|
|
9388
9473
|
|
|
9389
9474
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx
|
|
9390
9475
|
import { useTranslations as useTranslations27 } from "next-intl";
|
|
9391
|
-
import { EuiButtonEmpty as
|
|
9476
|
+
import { EuiButtonEmpty as EuiButtonEmpty4, EuiFlexGroup as EuiFlexGroup8, EuiSpacer as EuiSpacer13 } from "@elastic/eui";
|
|
9392
9477
|
|
|
9393
9478
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/useGroupedTableConfig.tsx
|
|
9394
9479
|
import { useEffect as useEffect4, useRef as useRef5, useState as useState13 } from "react";
|
|
@@ -9464,12 +9549,12 @@ var WfoExpandableRow = ({
|
|
|
9464
9549
|
};
|
|
9465
9550
|
|
|
9466
9551
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx
|
|
9467
|
-
import
|
|
9552
|
+
import React26 from "react";
|
|
9468
9553
|
|
|
9469
9554
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTableGroups.tsx
|
|
9470
|
-
import
|
|
9555
|
+
import React25, { useImperativeHandle } from "react";
|
|
9471
9556
|
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
9472
|
-
var WfoGroupedTableGroups =
|
|
9557
|
+
var WfoGroupedTableGroups = React25.forwardRef(
|
|
9473
9558
|
({
|
|
9474
9559
|
data,
|
|
9475
9560
|
groupNameLabel,
|
|
@@ -9518,7 +9603,7 @@ WfoGroupedTableGroups.displayName = "WfoGroupedTableGroups";
|
|
|
9518
9603
|
|
|
9519
9604
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx
|
|
9520
9605
|
import { Fragment as Fragment20, jsx as jsx116, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
9521
|
-
var WfoExpandedGroupRow =
|
|
9606
|
+
var WfoExpandedGroupRow = React26.forwardRef(
|
|
9522
9607
|
({
|
|
9523
9608
|
data,
|
|
9524
9609
|
columnConfig,
|
|
@@ -9767,7 +9852,7 @@ var WfoGroupedTable = ({
|
|
|
9767
9852
|
columnConfig
|
|
9768
9853
|
});
|
|
9769
9854
|
const ExpandCollapseButton = () => /* @__PURE__ */ jsx118(
|
|
9770
|
-
|
|
9855
|
+
EuiButtonEmpty4,
|
|
9771
9856
|
{
|
|
9772
9857
|
size: "xs",
|
|
9773
9858
|
onClick: () => isAllGroupsAndSubgroupsExpanded ? collapseAllRows() : expandAllRows(),
|
|
@@ -9775,7 +9860,7 @@ var WfoGroupedTable = ({
|
|
|
9775
9860
|
}
|
|
9776
9861
|
);
|
|
9777
9862
|
return /* @__PURE__ */ jsxs65(Fragment21, { children: [
|
|
9778
|
-
/* @__PURE__ */ jsx118(
|
|
9863
|
+
/* @__PURE__ */ jsx118(EuiFlexGroup8, { justifyContent: "flexEnd", children: overrideHeaderSection ? overrideHeaderSection(/* @__PURE__ */ jsx118(ExpandCollapseButton, {})) : /* @__PURE__ */ jsx118(ExpandCollapseButton, {}) }),
|
|
9779
9864
|
/* @__PURE__ */ jsx118(EuiSpacer13, { size: "xs" }),
|
|
9780
9865
|
/* @__PURE__ */ jsx118(
|
|
9781
9866
|
WfoTable,
|
|
@@ -9963,7 +10048,7 @@ var WfoRelatedSubscriptions = ({
|
|
|
9963
10048
|
};
|
|
9964
10049
|
return /* @__PURE__ */ jsxs66(Fragment23, { children: [
|
|
9965
10050
|
/* @__PURE__ */ jsx123(EuiSpacer14, { size: "xl" }),
|
|
9966
|
-
/* @__PURE__ */ jsx123(
|
|
10051
|
+
/* @__PURE__ */ jsx123(EuiFlexGroup9, { justifyContent: "flexEnd", children: /* @__PURE__ */ jsx123(EuiFlexItem6, { grow: 0, children: /* @__PURE__ */ jsx123(
|
|
9967
10052
|
EuiSwitch,
|
|
9968
10053
|
{
|
|
9969
10054
|
showLabel: true,
|
|
@@ -10006,12 +10091,12 @@ import { StringParam as StringParam2, useQueryParam, withDefault as withDefault2
|
|
|
10006
10091
|
|
|
10007
10092
|
// src/components/WfoError/WfoError.tsx
|
|
10008
10093
|
import { useTranslations as useTranslations29 } from "next-intl";
|
|
10009
|
-
import { EuiFlexGroup as
|
|
10094
|
+
import { EuiFlexGroup as EuiFlexGroup10, EuiText as EuiText8 } from "@elastic/eui";
|
|
10010
10095
|
import { Fragment as Fragment24, jsx as jsx124, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
10011
10096
|
var WfoError = () => {
|
|
10012
10097
|
const t = useTranslations29("common");
|
|
10013
10098
|
const { theme } = useOrchestratorTheme();
|
|
10014
|
-
return /* @__PURE__ */ jsxs67(
|
|
10099
|
+
return /* @__PURE__ */ jsxs67(EuiFlexGroup10, { direction: "row", alignItems: "center", gutterSize: "s", children: [
|
|
10015
10100
|
/* @__PURE__ */ jsx124(WfoXCircleFill, { color: theme.colors.danger }),
|
|
10016
10101
|
/* @__PURE__ */ jsx124("h1", { children: t("errorMessage") })
|
|
10017
10102
|
] });
|
|
@@ -10020,7 +10105,7 @@ var WfoErrorWithMessage = ({ error }) => {
|
|
|
10020
10105
|
const t = useTranslations29("common");
|
|
10021
10106
|
const { theme } = useOrchestratorTheme();
|
|
10022
10107
|
const message = error && error.length > 0 ? error.map((err) => err.message).join(", ") : t("unknownError");
|
|
10023
|
-
return /* @__PURE__ */ jsx124(Fragment24, { children: /* @__PURE__ */ jsxs67(
|
|
10108
|
+
return /* @__PURE__ */ jsx124(Fragment24, { children: /* @__PURE__ */ jsxs67(EuiFlexGroup10, { direction: "row", alignItems: "center", gutterSize: "s", children: [
|
|
10024
10109
|
/* @__PURE__ */ jsx124(WfoXCircleFill, { color: theme.colors.danger }),
|
|
10025
10110
|
/* @__PURE__ */ jsxs67(EuiText8, { color: theme.colors.dangerText, children: [
|
|
10026
10111
|
t("errorMessage"),
|
|
@@ -10032,23 +10117,23 @@ var WfoErrorWithMessage = ({ error }) => {
|
|
|
10032
10117
|
};
|
|
10033
10118
|
|
|
10034
10119
|
// src/components/WfoSubscription/subscriptionDetailTabs.tsx
|
|
10035
|
-
import { EuiFlexGroup as
|
|
10120
|
+
import { EuiFlexGroup as EuiFlexGroup11, EuiFlexItem as EuiFlexItem7 } from "@elastic/eui";
|
|
10036
10121
|
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
10037
10122
|
var subscriptionDetailTabs = [
|
|
10038
10123
|
{
|
|
10039
10124
|
id: "service-configuration" /* SERVICE_CONFIGURATION_TAB */,
|
|
10040
10125
|
translationKey: "serviceConfiguration",
|
|
10041
|
-
prepend: /* @__PURE__ */ jsx125(
|
|
10126
|
+
prepend: /* @__PURE__ */ jsx125(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx125(EuiFlexItem7, { children: /* @__PURE__ */ jsx125(WfoCogFill, { width: "16", height: "16", color: "currentColor" }) }) })
|
|
10042
10127
|
},
|
|
10043
10128
|
{
|
|
10044
10129
|
id: "general" /* GENERAL_TAB */,
|
|
10045
10130
|
translationKey: "general",
|
|
10046
|
-
prepend: /* @__PURE__ */ jsx125(
|
|
10131
|
+
prepend: /* @__PURE__ */ jsx125(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx125(EuiFlexItem7, { children: /* @__PURE__ */ jsx125(WfoCubeSolid, { width: "18", height: "18", color: "currentColor" }) }) })
|
|
10047
10132
|
},
|
|
10048
10133
|
{
|
|
10049
10134
|
id: "processes" /* PROCESSES_TAB */,
|
|
10050
10135
|
translationKey: "workflows",
|
|
10051
|
-
prepend: /* @__PURE__ */ jsx125(
|
|
10136
|
+
prepend: /* @__PURE__ */ jsx125(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx125(EuiFlexItem7, { children: /* @__PURE__ */ jsx125(
|
|
10052
10137
|
WfoPlayCircle,
|
|
10053
10138
|
{
|
|
10054
10139
|
width: "18",
|
|
@@ -10060,7 +10145,7 @@ var subscriptionDetailTabs = [
|
|
|
10060
10145
|
{
|
|
10061
10146
|
id: "related-subscriptions" /* RELATED_SUBSCRIPTIONS_TAB */,
|
|
10062
10147
|
translationKey: "relatedSubscriptions",
|
|
10063
|
-
prepend: /* @__PURE__ */ jsx125(
|
|
10148
|
+
prepend: /* @__PURE__ */ jsx125(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx125(EuiFlexItem7, { children: /* @__PURE__ */ jsx125(WfoShare, { width: "16", height: "16", color: "currentColor" }) }) })
|
|
10064
10149
|
}
|
|
10065
10150
|
];
|
|
10066
10151
|
|
|
@@ -10525,8 +10610,8 @@ import { useState as useState17 } from "react";
|
|
|
10525
10610
|
import { useTranslations as useTranslations34 } from "next-intl";
|
|
10526
10611
|
import {
|
|
10527
10612
|
EuiBadge as EuiBadge2,
|
|
10528
|
-
EuiButtonEmpty as
|
|
10529
|
-
EuiFlexGroup as
|
|
10613
|
+
EuiButtonEmpty as EuiButtonEmpty5,
|
|
10614
|
+
EuiFlexGroup as EuiFlexGroup12,
|
|
10530
10615
|
EuiFlexItem as EuiFlexItem8,
|
|
10531
10616
|
EuiIcon,
|
|
10532
10617
|
EuiPanel as EuiPanel2,
|
|
@@ -10705,7 +10790,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
10705
10790
|
hasShadow: false,
|
|
10706
10791
|
css: isOutsideCurrentSubscription ? panelStyleOutsideCurrentSubscription : panelStyle,
|
|
10707
10792
|
children: [
|
|
10708
|
-
/* @__PURE__ */ jsxs73(
|
|
10793
|
+
/* @__PURE__ */ jsxs73(EuiFlexGroup12, { children: [
|
|
10709
10794
|
/* @__PURE__ */ jsx132(EuiFlexItem8, { grow: false, children: /* @__PURE__ */ jsx132(
|
|
10710
10795
|
"div",
|
|
10711
10796
|
{
|
|
@@ -10723,7 +10808,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
10723
10808
|
) })
|
|
10724
10809
|
] }),
|
|
10725
10810
|
/* @__PURE__ */ jsx132(EuiFlexItem8, { grow: false, children: /* @__PURE__ */ jsx132(
|
|
10726
|
-
|
|
10811
|
+
EuiButtonEmpty5,
|
|
10727
10812
|
{
|
|
10728
10813
|
"aria-label": showDetails ? t("hideDetails") : t("showDetails"),
|
|
10729
10814
|
size: "m",
|
|
@@ -10845,11 +10930,11 @@ var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues, className }) =>
|
|
|
10845
10930
|
};
|
|
10846
10931
|
|
|
10847
10932
|
// src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
|
|
10848
|
-
import
|
|
10933
|
+
import React37, { useState as useState19 } from "react";
|
|
10849
10934
|
import { useTranslations as useTranslations36 } from "next-intl";
|
|
10850
10935
|
import {
|
|
10851
10936
|
EuiCallOut as EuiCallOut2,
|
|
10852
|
-
EuiFlexGroup as
|
|
10937
|
+
EuiFlexGroup as EuiFlexGroup15,
|
|
10853
10938
|
EuiFlexItem as EuiFlexItem11,
|
|
10854
10939
|
EuiText as EuiText13
|
|
10855
10940
|
} from "@elastic/eui";
|
|
@@ -10957,22 +11042,22 @@ function getTokenName(name) {
|
|
|
10957
11042
|
}
|
|
10958
11043
|
|
|
10959
11044
|
// src/components/WfoTree/WfoTree.tsx
|
|
10960
|
-
import
|
|
11045
|
+
import React36, { useEffect as useEffect6 } from "react";
|
|
10961
11046
|
|
|
10962
11047
|
// src/components/WfoTree/WfoTreeBranch.tsx
|
|
10963
|
-
import
|
|
11048
|
+
import React35 from "react";
|
|
10964
11049
|
import { EuiListGroup } from "@elastic/eui";
|
|
10965
11050
|
|
|
10966
11051
|
// src/components/WfoTree/WfoTreeNode.tsx
|
|
10967
|
-
import
|
|
10968
|
-
import { EuiFlexGroup as
|
|
11052
|
+
import React34 from "react";
|
|
11053
|
+
import { EuiFlexGroup as EuiFlexGroup14, EuiFlexItem as EuiFlexItem10, EuiIcon as EuiIcon2, EuiToken } from "@elastic/eui";
|
|
10969
11054
|
|
|
10970
11055
|
// src/components/WfoTree/WfoTreeNodeListItem.tsx
|
|
10971
11056
|
import { useContext as useContext6 } from "react";
|
|
10972
11057
|
import { useTranslations as useTranslations35 } from "next-intl";
|
|
10973
11058
|
import {
|
|
10974
11059
|
EuiButtonIcon as EuiButtonIcon8,
|
|
10975
|
-
EuiFlexGroup as
|
|
11060
|
+
EuiFlexGroup as EuiFlexGroup13,
|
|
10976
11061
|
EuiFlexItem as EuiFlexItem9,
|
|
10977
11062
|
EuiText as EuiText12,
|
|
10978
11063
|
EuiTextTruncate
|
|
@@ -11063,7 +11148,7 @@ var WfoTreeNodeListItem = ({
|
|
|
11063
11148
|
const { isOutsideCurrentSubscription, id, label } = item;
|
|
11064
11149
|
const textLabel = label.toString();
|
|
11065
11150
|
return /* @__PURE__ */ jsxs77(
|
|
11066
|
-
|
|
11151
|
+
EuiFlexGroup13,
|
|
11067
11152
|
{
|
|
11068
11153
|
alignItems: "center",
|
|
11069
11154
|
css: selected ? selectedTreeItemStyle(isOutsideCurrentSubscription) : treeItemStyle(isOutsideCurrentSubscription),
|
|
@@ -11096,11 +11181,11 @@ var WfoTreeNode = ({
|
|
|
11096
11181
|
}) => {
|
|
11097
11182
|
const { theme } = useOrchestratorTheme();
|
|
11098
11183
|
const { expandIconContainerStyle, treeContainerStyle } = useWithOrchestratorTheme(getStyles7);
|
|
11099
|
-
const { expandedIds, collapseNode, expandNode, selectedIds } =
|
|
11184
|
+
const { expandedIds, collapseNode, expandNode, selectedIds } = React34.useContext(TreeContext);
|
|
11100
11185
|
const expanded = expandedIds.includes(item.id);
|
|
11101
11186
|
const selected = selectedIds.includes(item.id);
|
|
11102
11187
|
const expandIcon = expanded ? "arrowDown" : "arrowRight";
|
|
11103
|
-
return /* @__PURE__ */ jsx137("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs78(
|
|
11188
|
+
return /* @__PURE__ */ jsx137("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs78(EuiFlexGroup14, { children: [
|
|
11104
11189
|
/* @__PURE__ */ jsx137(EuiFlexItem10, { grow: false, css: treeContainerStyle, children: hasChildren ? /* @__PURE__ */ jsx137(
|
|
11105
11190
|
EuiIcon2,
|
|
11106
11191
|
{
|
|
@@ -11117,7 +11202,7 @@ var WfoTreeNode = ({
|
|
|
11117
11202
|
// src/components/WfoTree/WfoTreeBranch.tsx
|
|
11118
11203
|
import { Fragment as Fragment31, jsx as jsx138, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
11119
11204
|
var WfoTreeBranch = ({ item, level }) => {
|
|
11120
|
-
const { expandedIds } =
|
|
11205
|
+
const { expandedIds } = React35.useContext(TreeContext);
|
|
11121
11206
|
const selected = expandedIds.includes(item.id);
|
|
11122
11207
|
const { productBlockTreeWidth } = useWithOrchestratorTheme(
|
|
11123
11208
|
getSubscriptionDetailStyles
|
|
@@ -11154,7 +11239,7 @@ var WfoTreeBranch = ({ item, level }) => {
|
|
|
11154
11239
|
// src/components/WfoTree/WfoTree.tsx
|
|
11155
11240
|
import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
|
|
11156
11241
|
var WfoTree = ({ treeBlocks, depthList }) => {
|
|
11157
|
-
const { setDepths } =
|
|
11242
|
+
const { setDepths } = React36.useContext(TreeContext);
|
|
11158
11243
|
useEffect6(() => {
|
|
11159
11244
|
setDepths(depthList);
|
|
11160
11245
|
}, [setDepths, TreeContext]);
|
|
@@ -11242,7 +11327,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
11242
11327
|
selectAll,
|
|
11243
11328
|
selectIds,
|
|
11244
11329
|
deselectIds
|
|
11245
|
-
} =
|
|
11330
|
+
} = React37.useContext(TreeContext);
|
|
11246
11331
|
let tree = null;
|
|
11247
11332
|
const depthList = [];
|
|
11248
11333
|
const idToNodeMap = {};
|
|
@@ -11315,7 +11400,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
11315
11400
|
return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids);
|
|
11316
11401
|
};
|
|
11317
11402
|
return /* @__PURE__ */ jsxs80(
|
|
11318
|
-
|
|
11403
|
+
EuiFlexGroup15,
|
|
11319
11404
|
{
|
|
11320
11405
|
css: {
|
|
11321
11406
|
marginTop: 15,
|
|
@@ -11332,15 +11417,15 @@ var WfoSubscriptionDetailTree = ({
|
|
|
11332
11417
|
overflowY: "auto"
|
|
11333
11418
|
},
|
|
11334
11419
|
grow: true,
|
|
11335
|
-
children: /* @__PURE__ */ jsxs80(
|
|
11420
|
+
children: /* @__PURE__ */ jsxs80(EuiFlexGroup15, { direction: "column", children: [
|
|
11336
11421
|
/* @__PURE__ */ jsx140(EuiFlexItem11, { grow: false, children: /* @__PURE__ */ jsxs80(
|
|
11337
|
-
|
|
11422
|
+
EuiFlexGroup15,
|
|
11338
11423
|
{
|
|
11339
11424
|
justifyContent: "spaceBetween",
|
|
11340
11425
|
alignItems: "center",
|
|
11341
11426
|
children: [
|
|
11342
11427
|
/* @__PURE__ */ jsx140(EuiFlexItem11, { children: /* @__PURE__ */ jsx140(EuiText13, { children: /* @__PURE__ */ jsx140("h3", { children: t("productBlocks") }) }) }),
|
|
11343
|
-
/* @__PURE__ */ jsx140(EuiFlexItem11, { grow: false, children: /* @__PURE__ */ jsxs80(
|
|
11428
|
+
/* @__PURE__ */ jsx140(EuiFlexItem11, { grow: false, children: /* @__PURE__ */ jsxs80(EuiFlexGroup15, { children: [
|
|
11344
11429
|
/* @__PURE__ */ jsx140(
|
|
11345
11430
|
WfoTextAnchor,
|
|
11346
11431
|
{
|
|
@@ -12169,7 +12254,7 @@ import { useTranslations as useTranslations38 } from "next-intl";
|
|
|
12169
12254
|
import {
|
|
12170
12255
|
EuiButton as EuiButton9,
|
|
12171
12256
|
EuiButtonIcon as EuiButtonIcon10,
|
|
12172
|
-
EuiFlexGroup as
|
|
12257
|
+
EuiFlexGroup as EuiFlexGroup16,
|
|
12173
12258
|
EuiFlexItem as EuiFlexItem13,
|
|
12174
12259
|
EuiSpacer as EuiSpacer18,
|
|
12175
12260
|
EuiText as EuiText14
|
|
@@ -12259,7 +12344,7 @@ var WfoAdvancedTable = ({
|
|
|
12259
12344
|
b: (chunks) => /* @__PURE__ */ jsx152("b", { children: chunks })
|
|
12260
12345
|
});
|
|
12261
12346
|
return /* @__PURE__ */ jsxs85(Fragment33, { children: [
|
|
12262
|
-
/* @__PURE__ */ jsxs85(
|
|
12347
|
+
/* @__PURE__ */ jsxs85(EuiFlexGroup16, { alignItems: "center", children: [
|
|
12263
12348
|
/* @__PURE__ */ jsx152(EuiFlexItem13, { children: /* @__PURE__ */ jsx152(
|
|
12264
12349
|
WfoSearchField,
|
|
12265
12350
|
{
|
|
@@ -12631,7 +12716,7 @@ import { JSONSchemaBridge } from "uniforms-bridge-json-schema";
|
|
|
12631
12716
|
import { AutoField as AutoField6, AutoForm } from "uniforms-unstyled";
|
|
12632
12717
|
import {
|
|
12633
12718
|
EuiButton as EuiButton10,
|
|
12634
|
-
EuiFlexGroup as
|
|
12719
|
+
EuiFlexGroup as EuiFlexGroup19,
|
|
12635
12720
|
EuiHorizontalRule as EuiHorizontalRule5
|
|
12636
12721
|
} from "@elastic/eui";
|
|
12637
12722
|
|
|
@@ -14038,7 +14123,7 @@ var ContactPersonAutocomplete = ({
|
|
|
14038
14123
|
};
|
|
14039
14124
|
|
|
14040
14125
|
// src/components/WfoForms/formFields/deprecated/ContactPersonNameField.tsx
|
|
14041
|
-
import
|
|
14126
|
+
import React47, { useEffect as useEffect13, useState as useState25 } from "react";
|
|
14042
14127
|
import { isFunction } from "lodash";
|
|
14043
14128
|
import get3 from "lodash/get";
|
|
14044
14129
|
import { useTranslations as useTranslations44 } from "next-intl";
|
|
@@ -14066,7 +14151,7 @@ filterDOMProps17.register(
|
|
|
14066
14151
|
function ContactPersonName({
|
|
14067
14152
|
disabled,
|
|
14068
14153
|
id,
|
|
14069
|
-
inputRef =
|
|
14154
|
+
inputRef = React47.createRef(),
|
|
14070
14155
|
label,
|
|
14071
14156
|
description,
|
|
14072
14157
|
name,
|
|
@@ -15191,7 +15276,7 @@ import {
|
|
|
15191
15276
|
} from "uniforms";
|
|
15192
15277
|
import {
|
|
15193
15278
|
EuiButtonIcon as EuiButtonIcon11,
|
|
15194
|
-
EuiFlexGroup as
|
|
15279
|
+
EuiFlexGroup as EuiFlexGroup17,
|
|
15195
15280
|
EuiFlexItem as EuiFlexItem20,
|
|
15196
15281
|
EuiFormRow as EuiFormRow18,
|
|
15197
15282
|
EuiText as EuiText32
|
|
@@ -15362,7 +15447,7 @@ function SubscriptionFieldDefinition({
|
|
|
15362
15447
|
fullWidth: true,
|
|
15363
15448
|
children: /* @__PURE__ */ jsxs98("div", { children: [
|
|
15364
15449
|
!disabled && /* @__PURE__ */ jsx185(
|
|
15365
|
-
|
|
15450
|
+
EuiFlexGroup17,
|
|
15366
15451
|
{
|
|
15367
15452
|
alignItems: "center",
|
|
15368
15453
|
gutterSize: "none",
|
|
@@ -15418,7 +15503,7 @@ import { connectField as connectField25, filterDOMProps as filterDOMProps25, joi
|
|
|
15418
15503
|
import { AutoField as AutoField3 } from "uniforms-unstyled";
|
|
15419
15504
|
import {
|
|
15420
15505
|
EuiDescribedFormGroup,
|
|
15421
|
-
EuiFlexGroup as
|
|
15506
|
+
EuiFlexGroup as EuiFlexGroup18,
|
|
15422
15507
|
EuiFlexItem as EuiFlexItem21,
|
|
15423
15508
|
EuiText as EuiText33
|
|
15424
15509
|
} from "@elastic/eui";
|
|
@@ -15440,7 +15525,7 @@ function Nest({
|
|
|
15440
15525
|
const itemIndex = isInList ? parseInt(lastNamePart) : 0;
|
|
15441
15526
|
if (isInList) {
|
|
15442
15527
|
return /* @__PURE__ */ jsxs99(
|
|
15443
|
-
|
|
15528
|
+
EuiFlexGroup18,
|
|
15444
15529
|
{
|
|
15445
15530
|
...filterDOMProps25(props),
|
|
15446
15531
|
className: `${className} nest-field`,
|
|
@@ -16225,7 +16310,7 @@ function WfoUserInputForm({
|
|
|
16225
16310
|
);
|
|
16226
16311
|
return /* @__PURE__ */ jsxs102(Fragment40, { children: [
|
|
16227
16312
|
/* @__PURE__ */ jsx191(EuiHorizontalRule5, {}),
|
|
16228
|
-
/* @__PURE__ */ jsxs102(
|
|
16313
|
+
/* @__PURE__ */ jsxs102(EuiFlexGroup19, { justifyContent: "spaceBetween", children: [
|
|
16229
16314
|
prevButton,
|
|
16230
16315
|
nextButton
|
|
16231
16316
|
] })
|
|
@@ -17654,7 +17739,7 @@ var WfoTasksPage = () => {
|
|
|
17654
17739
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
17655
17740
|
import { useTranslations as useTranslations60 } from "next-intl";
|
|
17656
17741
|
import Link10 from "next/link";
|
|
17657
|
-
import { EuiFlexGroup as
|
|
17742
|
+
import { EuiFlexGroup as EuiFlexGroup20 } from "@elastic/eui";
|
|
17658
17743
|
import { Fragment as Fragment49, jsx as jsx207, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
|
|
17659
17744
|
var RENDER_ALL = "RENDER_ALL";
|
|
17660
17745
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
@@ -17678,7 +17763,7 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
17678
17763
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
17679
17764
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
17680
17765
|
return /* @__PURE__ */ jsx207(Fragment49, { children: /* @__PURE__ */ jsxs109(
|
|
17681
|
-
|
|
17766
|
+
EuiFlexGroup20,
|
|
17682
17767
|
{
|
|
17683
17768
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
17684
17769
|
gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "s" : "xs",
|
|
@@ -17724,7 +17809,7 @@ import { useTranslations as useTranslations61 } from "next-intl";
|
|
|
17724
17809
|
import { useRouter as useRouter8 } from "next/router";
|
|
17725
17810
|
import {
|
|
17726
17811
|
EuiButton as EuiButton11,
|
|
17727
|
-
EuiFlexGroup as
|
|
17812
|
+
EuiFlexGroup as EuiFlexGroup21,
|
|
17728
17813
|
EuiPanel as EuiPanel3,
|
|
17729
17814
|
EuiSpacer as EuiSpacer20,
|
|
17730
17815
|
EuiText as EuiText35
|
|
@@ -17812,7 +17897,7 @@ var ProcessHeaderValue = ({
|
|
|
17812
17897
|
const t = useTranslations61("processes.detail");
|
|
17813
17898
|
const { theme } = useOrchestratorTheme();
|
|
17814
17899
|
return /* @__PURE__ */ jsxs110(
|
|
17815
|
-
|
|
17900
|
+
EuiFlexGroup21,
|
|
17816
17901
|
{
|
|
17817
17902
|
direction: "column",
|
|
17818
17903
|
gutterSize: "xs",
|
|
@@ -18005,7 +18090,7 @@ var WfoProcessDetail = ({
|
|
|
18005
18090
|
hasBorder: false,
|
|
18006
18091
|
color: "subdued",
|
|
18007
18092
|
element: "div",
|
|
18008
|
-
children: isLoading && !hasError && /* @__PURE__ */ jsx208(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs110(
|
|
18093
|
+
children: isLoading && !hasError && /* @__PURE__ */ jsx208(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs110(EuiFlexGroup21, { direction: "row", gutterSize: "m", children: [
|
|
18009
18094
|
/* @__PURE__ */ jsx208(
|
|
18010
18095
|
ProcessHeaderValue,
|
|
18011
18096
|
{
|
|
@@ -18055,7 +18140,7 @@ var WfoProcessDetail = ({
|
|
|
18055
18140
|
process && isAllowed(
|
|
18056
18141
|
"/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */
|
|
18057
18142
|
) && processDetail.subscriptions && /* @__PURE__ */ jsxs110(
|
|
18058
|
-
|
|
18143
|
+
EuiFlexGroup21,
|
|
18059
18144
|
{
|
|
18060
18145
|
gutterSize: "xs",
|
|
18061
18146
|
direction: "column",
|
|
@@ -18168,7 +18253,7 @@ import { useCallback as useCallback11, useEffect as useEffect31, useMemo as useM
|
|
|
18168
18253
|
import { useTranslations as useTranslations72 } from "next-intl";
|
|
18169
18254
|
import { useRouter as useRouter10 } from "next/router";
|
|
18170
18255
|
import {
|
|
18171
|
-
EuiFlexGroup as
|
|
18256
|
+
EuiFlexGroup as EuiFlexGroup27,
|
|
18172
18257
|
EuiFlexItem as EuiFlexItem30,
|
|
18173
18258
|
EuiHorizontalRule as EuiHorizontalRule9,
|
|
18174
18259
|
EuiPanel as EuiPanel5,
|
|
@@ -18191,7 +18276,7 @@ import {
|
|
|
18191
18276
|
// src/components/WfoPydanticForm/Footer.tsx
|
|
18192
18277
|
import { useContext as useContext10 } from "react";
|
|
18193
18278
|
import { useTranslations as useTranslations63 } from "next-intl";
|
|
18194
|
-
import { EuiButton as EuiButton12, EuiFlexGroup as
|
|
18279
|
+
import { EuiButton as EuiButton12, EuiFlexGroup as EuiFlexGroup22, EuiHorizontalRule as EuiHorizontalRule6 } from "@elastic/eui";
|
|
18195
18280
|
|
|
18196
18281
|
// src/components/WfoPydanticForm/RenderFormErrors.tsx
|
|
18197
18282
|
import { useTranslations as useTranslations62 } from "next-intl";
|
|
@@ -18302,7 +18387,7 @@ var Footer = ({
|
|
|
18302
18387
|
);
|
|
18303
18388
|
};
|
|
18304
18389
|
const PreviousCancelButtonGroup = () => {
|
|
18305
|
-
return /* @__PURE__ */ jsxs112(
|
|
18390
|
+
return /* @__PURE__ */ jsxs112(EuiFlexGroup22, { gutterSize: "xl", children: [
|
|
18306
18391
|
/* @__PURE__ */ jsx211(PreviousButton, {}),
|
|
18307
18392
|
/* @__PURE__ */ jsx211(CancelButton, {})
|
|
18308
18393
|
] });
|
|
@@ -18473,7 +18558,7 @@ var WfoCheckbox = ({
|
|
|
18473
18558
|
};
|
|
18474
18559
|
|
|
18475
18560
|
// src/components/WfoPydanticForm/fields/WfoSummary.tsx
|
|
18476
|
-
import { capitalize } from "lodash";
|
|
18561
|
+
import { capitalize as capitalize2 } from "lodash";
|
|
18477
18562
|
import { EuiFlexItem as EuiFlexItem24, EuiFormRow as EuiFormRow22, EuiText as EuiText37 } from "@elastic/eui";
|
|
18478
18563
|
import { jsx as jsx219, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
|
|
18479
18564
|
var WfoSummary = ({ pydanticFormField }) => {
|
|
@@ -18501,7 +18586,7 @@ var WfoSummary = ({ pydanticFormField }) => {
|
|
|
18501
18586
|
labels && /* @__PURE__ */ jsx219("th", {}),
|
|
18502
18587
|
headers.map((header, idx) => /* @__PURE__ */ jsx219("th", { children: header }, idx))
|
|
18503
18588
|
] });
|
|
18504
|
-
const formattedTitle = snakeToHuman(
|
|
18589
|
+
const formattedTitle = snakeToHuman(capitalize2(title ?? ""));
|
|
18505
18590
|
return /* @__PURE__ */ jsx219(EuiFlexItem24, { "data-testid": id, css: [summaryFieldStyle, formRowStyle], children: /* @__PURE__ */ jsx219("section", { children: /* @__PURE__ */ jsx219(
|
|
18506
18591
|
EuiFormRow22,
|
|
18507
18592
|
{
|
|
@@ -18524,7 +18609,7 @@ import {
|
|
|
18524
18609
|
getPydanticFormComponents,
|
|
18525
18610
|
useGetConfig
|
|
18526
18611
|
} from "pydantic-forms";
|
|
18527
|
-
import { EuiFlexGroup as
|
|
18612
|
+
import { EuiFlexGroup as EuiFlexGroup23 } from "@elastic/eui";
|
|
18528
18613
|
|
|
18529
18614
|
// src/components/WfoPydanticForm/fields/WfoObjectField/styles.ts
|
|
18530
18615
|
import { css as css37 } from "@emotion/react";
|
|
@@ -18560,7 +18645,7 @@ var WfoObjectField = ({
|
|
|
18560
18645
|
});
|
|
18561
18646
|
}
|
|
18562
18647
|
return /* @__PURE__ */ jsx220(
|
|
18563
|
-
|
|
18648
|
+
EuiFlexGroup23,
|
|
18564
18649
|
{
|
|
18565
18650
|
"data-testid": pydanticFormField.id,
|
|
18566
18651
|
css: wfoObjectFieldStyles,
|
|
@@ -19027,12 +19112,12 @@ var WfoMultiCheckboxField = ({
|
|
|
19027
19112
|
};
|
|
19028
19113
|
|
|
19029
19114
|
// src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.ts
|
|
19030
|
-
import { capitalize as
|
|
19115
|
+
import { capitalize as capitalize3 } from "lodash";
|
|
19031
19116
|
var getNestedSummaryLabel = (labels, index) => {
|
|
19032
19117
|
const value = labels[index];
|
|
19033
19118
|
if (typeof value === "object" && value !== null) {
|
|
19034
19119
|
const firstKey = Object.keys(value)[0] ?? "";
|
|
19035
|
-
return
|
|
19120
|
+
return capitalize3(firstKey);
|
|
19036
19121
|
}
|
|
19037
19122
|
return String(value);
|
|
19038
19123
|
};
|
|
@@ -19325,9 +19410,9 @@ var WfoPydanticForm = ({
|
|
|
19325
19410
|
};
|
|
19326
19411
|
|
|
19327
19412
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
19328
|
-
import
|
|
19413
|
+
import React74, { useCallback as useCallback9, useState as useState45 } from "react";
|
|
19329
19414
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
19330
|
-
import { EuiFlexGroup as
|
|
19415
|
+
import { EuiFlexGroup as EuiFlexGroup24, EuiFlexItem as EuiFlexItem28, EuiPanel as EuiPanel4, EuiText as EuiText38 } from "@elastic/eui";
|
|
19331
19416
|
|
|
19332
19417
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepFormOld.tsx
|
|
19333
19418
|
import { useState as useState43 } from "react";
|
|
@@ -19805,7 +19890,7 @@ var WfoStepForm = ({
|
|
|
19805
19890
|
|
|
19806
19891
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
19807
19892
|
import { Fragment as Fragment53, jsx as jsx234, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
|
|
19808
|
-
var WfoStep =
|
|
19893
|
+
var WfoStep = React74.forwardRef(
|
|
19809
19894
|
({
|
|
19810
19895
|
stepListItem,
|
|
19811
19896
|
onToggleStepDetail,
|
|
@@ -19881,7 +19966,7 @@ var WfoStep = React73.forwardRef(
|
|
|
19881
19966
|
);
|
|
19882
19967
|
return /* @__PURE__ */ jsx234("div", { ref, children: /* @__PURE__ */ jsxs119(EuiPanel4, { children: [
|
|
19883
19968
|
/* @__PURE__ */ jsxs119(
|
|
19884
|
-
|
|
19969
|
+
EuiFlexGroup24,
|
|
19885
19970
|
{
|
|
19886
19971
|
css: getStepHeaderStyle(hasStepContent),
|
|
19887
19972
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
@@ -19901,7 +19986,7 @@ var WfoStep = React73.forwardRef(
|
|
|
19901
19986
|
step.completed && `- ${formatDate(step.completed)}`
|
|
19902
19987
|
] })
|
|
19903
19988
|
] }),
|
|
19904
|
-
/* @__PURE__ */ jsx234(
|
|
19989
|
+
/* @__PURE__ */ jsx234(EuiFlexGroup24, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs119(Fragment53, { children: [
|
|
19905
19990
|
isExpanded && /* @__PURE__ */ jsx234(
|
|
19906
19991
|
WfoCodeViewSelector,
|
|
19907
19992
|
{
|
|
@@ -19974,9 +20059,9 @@ var WfoStep = React73.forwardRef(
|
|
|
19974
20059
|
WfoStep.displayName = "WfoStep";
|
|
19975
20060
|
|
|
19976
20061
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
19977
|
-
import
|
|
20062
|
+
import React75, { useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
|
|
19978
20063
|
import { Fragment as Fragment54, jsx as jsx235, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
|
|
19979
|
-
var WfoStepList =
|
|
20064
|
+
var WfoStepList = React75.forwardRef(
|
|
19980
20065
|
({
|
|
19981
20066
|
stepListItems,
|
|
19982
20067
|
showHiddenKeys,
|
|
@@ -20056,7 +20141,7 @@ var WfoStepList = React74.forwardRef(
|
|
|
20056
20141
|
WfoStepList.displayName = "WfoStepList";
|
|
20057
20142
|
|
|
20058
20143
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
20059
|
-
import
|
|
20144
|
+
import React77, { useEffect as useEffect30, useState as useState47 } from "react";
|
|
20060
20145
|
import { useTranslations as useTranslations70 } from "next-intl";
|
|
20061
20146
|
|
|
20062
20147
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
@@ -20069,7 +20154,7 @@ import * as refractor from "refractor";
|
|
|
20069
20154
|
import { diffLines, formatLines } from "unidiff";
|
|
20070
20155
|
import {
|
|
20071
20156
|
EuiButtonIcon as EuiButtonIcon13,
|
|
20072
|
-
EuiFlexGroup as
|
|
20157
|
+
EuiFlexGroup as EuiFlexGroup25,
|
|
20073
20158
|
EuiFlexItem as EuiFlexItem29,
|
|
20074
20159
|
EuiSpacer as EuiSpacer21,
|
|
20075
20160
|
EuiText as EuiText39
|
|
@@ -20151,7 +20236,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
20151
20236
|
updateDiffText();
|
|
20152
20237
|
}, [updateDiffText, showFull]);
|
|
20153
20238
|
return /* @__PURE__ */ jsxs121("div", { children: [
|
|
20154
|
-
/* @__PURE__ */ jsxs121(
|
|
20239
|
+
/* @__PURE__ */ jsxs121(EuiFlexGroup25, { gutterSize: "xs", children: [
|
|
20155
20240
|
/* @__PURE__ */ jsx236(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx236(EuiText39, { children: /* @__PURE__ */ jsx236("h3", { children: t("title") }) }) }),
|
|
20156
20241
|
/* @__PURE__ */ jsx236(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx236(
|
|
20157
20242
|
EuiButtonIcon13,
|
|
@@ -20244,7 +20329,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
20244
20329
|
}
|
|
20245
20330
|
);
|
|
20246
20331
|
};
|
|
20247
|
-
var WfoWorkflowStepList =
|
|
20332
|
+
var WfoWorkflowStepList = React77.forwardRef(
|
|
20248
20333
|
({
|
|
20249
20334
|
steps = [],
|
|
20250
20335
|
lastStatus,
|
|
@@ -20363,7 +20448,7 @@ import { useState as useState48 } from "react";
|
|
|
20363
20448
|
import { useTranslations as useTranslations71 } from "next-intl";
|
|
20364
20449
|
import {
|
|
20365
20450
|
EuiButton as EuiButton14,
|
|
20366
|
-
EuiFlexGroup as
|
|
20451
|
+
EuiFlexGroup as EuiFlexGroup26,
|
|
20367
20452
|
EuiForm as EuiForm3,
|
|
20368
20453
|
EuiFormRow as EuiFormRow23,
|
|
20369
20454
|
EuiPopover as EuiPopover8,
|
|
@@ -20435,8 +20520,8 @@ var WfoStepListHeader = ({
|
|
|
20435
20520
|
children: t("viewOptions")
|
|
20436
20521
|
}
|
|
20437
20522
|
);
|
|
20438
|
-
return /* @__PURE__ */ jsxs124(
|
|
20439
|
-
/* @__PURE__ */ jsxs124(
|
|
20523
|
+
return /* @__PURE__ */ jsxs124(EuiFlexGroup26, { css: stepListHeaderStyle, children: [
|
|
20524
|
+
/* @__PURE__ */ jsxs124(EuiFlexGroup26, { css: stepListContentStyle, children: [
|
|
20440
20525
|
/* @__PURE__ */ jsx240(EuiText42, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
20441
20526
|
!showRaw && /* @__PURE__ */ jsx240(
|
|
20442
20527
|
WfoTextAnchor,
|
|
@@ -20447,7 +20532,7 @@ var WfoStepListHeader = ({
|
|
|
20447
20532
|
)
|
|
20448
20533
|
] }),
|
|
20449
20534
|
/* @__PURE__ */ jsxs124(
|
|
20450
|
-
|
|
20535
|
+
EuiFlexGroup26,
|
|
20451
20536
|
{
|
|
20452
20537
|
justifyContent: "flexEnd",
|
|
20453
20538
|
direction: "row",
|
|
@@ -20667,7 +20752,7 @@ var WfoStartProcessPage = ({
|
|
|
20667
20752
|
timelineItems: timeLineItems,
|
|
20668
20753
|
isLoading,
|
|
20669
20754
|
children: /* @__PURE__ */ jsxs125(EuiPanel5, { css: { marginTop: theme.base * 3 }, children: [
|
|
20670
|
-
/* @__PURE__ */ jsxs125(
|
|
20755
|
+
/* @__PURE__ */ jsxs125(EuiFlexGroup27, { css: getStepHeaderStyle(false), children: [
|
|
20671
20756
|
/* @__PURE__ */ jsx241(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
20672
20757
|
/* @__PURE__ */ jsxs125(EuiFlexItem30, { grow: 0, children: [
|
|
20673
20758
|
/* @__PURE__ */ jsx241(EuiText43, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
@@ -20703,7 +20788,7 @@ var WfoStartProcessPage = ({
|
|
|
20703
20788
|
|
|
20704
20789
|
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
20705
20790
|
import { useTranslations as useTranslations73 } from "next-intl";
|
|
20706
|
-
import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as
|
|
20791
|
+
import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as EuiFlexGroup28, EuiText as EuiText44, EuiToolTip as EuiToolTip9 } from "@elastic/eui";
|
|
20707
20792
|
import { jsx as jsx242, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
|
|
20708
20793
|
var WfoProductInformationWithLink = ({
|
|
20709
20794
|
workflowName,
|
|
@@ -20712,7 +20797,7 @@ var WfoProductInformationWithLink = ({
|
|
|
20712
20797
|
const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
|
|
20713
20798
|
const t = useTranslations73("processes.detail");
|
|
20714
20799
|
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
20715
|
-
return /* @__PURE__ */ jsxs126(
|
|
20800
|
+
return /* @__PURE__ */ jsxs126(EuiFlexGroup28, { gutterSize: "s", alignItems: "center", children: [
|
|
20716
20801
|
showWorkflowInformationLink && /* @__PURE__ */ jsx242(EuiToolTip9, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx242("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx242(
|
|
20717
20802
|
EuiButtonIcon14,
|
|
20718
20803
|
{
|
|
@@ -21844,7 +21929,7 @@ var WfoModifySettings = () => {
|
|
|
21844
21929
|
|
|
21845
21930
|
// src/components/WfoSettings/WfoEngineStatus.tsx
|
|
21846
21931
|
import { useTranslations as useTranslations84 } from "next-intl";
|
|
21847
|
-
import { EuiFlexGroup as
|
|
21932
|
+
import { EuiFlexGroup as EuiFlexGroup29, EuiFlexItem as EuiFlexItem34, EuiPanel as EuiPanel10, EuiText as EuiText49 } from "@elastic/eui";
|
|
21848
21933
|
import { jsx as jsx255, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
|
|
21849
21934
|
var WfoEngineStatus = () => {
|
|
21850
21935
|
const { theme } = useOrchestratorTheme();
|
|
@@ -21852,7 +21937,7 @@ var WfoEngineStatus = () => {
|
|
|
21852
21937
|
const { engineStatus, runningProcesses } = data || {};
|
|
21853
21938
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
21854
21939
|
const t = useTranslations84("settings.page");
|
|
21855
|
-
return /* @__PURE__ */ jsx255(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs136(
|
|
21940
|
+
return /* @__PURE__ */ jsx255(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs136(EuiFlexGroup29, { direction: "column", gutterSize: "s", children: [
|
|
21856
21941
|
/* @__PURE__ */ jsx255(EuiFlexItem34, { children: /* @__PURE__ */ jsx255(EuiText49, { size: "s", children: /* @__PURE__ */ jsx255("h4", { children: t("engineStatusTitle") }) }) }),
|
|
21857
21942
|
/* @__PURE__ */ jsxs136(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
21858
21943
|
/* @__PURE__ */ jsx255(EuiText49, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
|
|
@@ -21873,7 +21958,7 @@ var WfoEngineStatus = () => {
|
|
|
21873
21958
|
|
|
21874
21959
|
// src/components/WfoSettings/WfoWorkerStatus.tsx
|
|
21875
21960
|
import { useTranslations as useTranslations85 } from "next-intl";
|
|
21876
|
-
import { EuiFlexGroup as
|
|
21961
|
+
import { EuiFlexGroup as EuiFlexGroup30, EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel11, EuiText as EuiText50 } from "@elastic/eui";
|
|
21877
21962
|
import { jsx as jsx256, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
|
|
21878
21963
|
var WfoWorkerStatus = () => {
|
|
21879
21964
|
const { data } = useGetWorkerStatusQuery();
|
|
@@ -21884,7 +21969,7 @@ var WfoWorkerStatus = () => {
|
|
|
21884
21969
|
numberOfWorkersOnline
|
|
21885
21970
|
} = data || {};
|
|
21886
21971
|
const t = useTranslations85("settings.page");
|
|
21887
|
-
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx256(EuiPanel11, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs137(
|
|
21972
|
+
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx256(EuiPanel11, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs137(EuiFlexGroup30, { direction: "column", gutterSize: "s", children: [
|
|
21888
21973
|
/* @__PURE__ */ jsx256(EuiFlexItem35, { children: /* @__PURE__ */ jsx256(EuiText50, { size: "s", children: /* @__PURE__ */ jsx256("h4", { children: t("workerStatusTitle") }) }) }),
|
|
21889
21974
|
/* @__PURE__ */ jsxs137(EuiFlexItem35, { css: { flexDirection: "row" }, children: [
|
|
21890
21975
|
/* @__PURE__ */ jsx256(EuiText50, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
|
|
@@ -21940,9 +22025,9 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
21940
22025
|
};
|
|
21941
22026
|
|
|
21942
22027
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
21943
|
-
import
|
|
22028
|
+
import React85 from "react";
|
|
21944
22029
|
import { jsx as jsx259, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
|
|
21945
|
-
var WfoErrorBoundary = class extends
|
|
22030
|
+
var WfoErrorBoundary = class extends React85.Component {
|
|
21946
22031
|
constructor(props) {
|
|
21947
22032
|
super(props);
|
|
21948
22033
|
this.state = { hasError: false };
|
|
@@ -21969,7 +22054,7 @@ var WfoErrorBoundary = class extends React84.Component {
|
|
|
21969
22054
|
};
|
|
21970
22055
|
|
|
21971
22056
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
21972
|
-
import { EuiFlexGroup as
|
|
22057
|
+
import { EuiFlexGroup as EuiFlexGroup31 } from "@elastic/eui";
|
|
21973
22058
|
|
|
21974
22059
|
// src/components/WfoNoResults/styles.ts
|
|
21975
22060
|
import { css as css48 } from "@emotion/react";
|
|
@@ -21996,7 +22081,7 @@ var getStyles13 = ({ theme }) => {
|
|
|
21996
22081
|
import { jsxs as jsxs139 } from "@emotion/react/jsx-runtime";
|
|
21997
22082
|
var WfoNoResults = ({ text, icon }) => {
|
|
21998
22083
|
const { panelStyle } = useWithOrchestratorTheme(getStyles13);
|
|
21999
|
-
return /* @__PURE__ */ jsxs139(
|
|
22084
|
+
return /* @__PURE__ */ jsxs139(EuiFlexGroup31, { css: panelStyle, children: [
|
|
22000
22085
|
icon,
|
|
22001
22086
|
" ",
|
|
22002
22087
|
text
|
|
@@ -22343,7 +22428,7 @@ var getNumberOfColumns = (currentBreakpoint) => {
|
|
|
22343
22428
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
22344
22429
|
import {
|
|
22345
22430
|
EuiAvatar,
|
|
22346
|
-
EuiFlexGroup as
|
|
22431
|
+
EuiFlexGroup as EuiFlexGroup32,
|
|
22347
22432
|
EuiFlexItem as EuiFlexItem36,
|
|
22348
22433
|
EuiLoadingSpinner as EuiLoadingSpinner3,
|
|
22349
22434
|
EuiPanel as EuiPanel12,
|
|
@@ -22384,7 +22469,7 @@ var WfoSummaryCardHeader = ({
|
|
|
22384
22469
|
}) => {
|
|
22385
22470
|
const { theme } = useOrchestratorTheme();
|
|
22386
22471
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
22387
|
-
return /* @__PURE__ */ jsx263(EuiFlexItem36, { grow: 0, children: /* @__PURE__ */ jsx263(EuiPanel12, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs140(
|
|
22472
|
+
return /* @__PURE__ */ jsx263(EuiFlexItem36, { grow: 0, children: /* @__PURE__ */ jsx263(EuiPanel12, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs140(EuiFlexGroup32, { alignItems: "center", children: [
|
|
22388
22473
|
/* @__PURE__ */ jsx263(
|
|
22389
22474
|
EuiAvatar,
|
|
22390
22475
|
{
|
|
@@ -22400,7 +22485,7 @@ var WfoSummaryCardHeader = ({
|
|
|
22400
22485
|
),
|
|
22401
22486
|
/* @__PURE__ */ jsxs140("div", { css: totalSectionStyle, children: [
|
|
22402
22487
|
/* @__PURE__ */ jsx263(EuiText51, { color: "subdued", children: text }),
|
|
22403
|
-
/* @__PURE__ */ jsxs140(
|
|
22488
|
+
/* @__PURE__ */ jsxs140(EuiFlexGroup32, { gutterSize: "s", alignItems: "center", children: [
|
|
22404
22489
|
/* @__PURE__ */ jsx263(EuiText51, { css: valueStyle, children: value }),
|
|
22405
22490
|
isFetching && /* @__PURE__ */ jsx263(EuiLoadingSpinner3, {})
|
|
22406
22491
|
] })
|
|
@@ -22421,7 +22506,7 @@ import {
|
|
|
22421
22506
|
} from "@elastic/eui";
|
|
22422
22507
|
|
|
22423
22508
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
22424
|
-
import { EuiFlexGroup as
|
|
22509
|
+
import { EuiFlexGroup as EuiFlexGroup33, EuiFlexItem as EuiFlexItem37, EuiIcon as EuiIcon6, EuiTextColor } from "@elastic/eui";
|
|
22425
22510
|
|
|
22426
22511
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
22427
22512
|
import Link14 from "next/link";
|
|
@@ -22496,7 +22581,7 @@ var WfoSummaryCardListItem = ({
|
|
|
22496
22581
|
listItemSubtitleStyle,
|
|
22497
22582
|
listItemHighlightIconStyle
|
|
22498
22583
|
} = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
22499
|
-
return /* @__PURE__ */ jsx265(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs141(
|
|
22584
|
+
return /* @__PURE__ */ jsx265(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs141(EuiFlexGroup33, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
22500
22585
|
/* @__PURE__ */ jsxs141(EuiFlexItem37, { children: [
|
|
22501
22586
|
/* @__PURE__ */ jsx265(
|
|
22502
22587
|
EuiTextColor,
|
|
@@ -23017,8 +23102,8 @@ var WfoTitleWithWebsocketBadge = ({
|
|
|
23017
23102
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
23018
23103
|
import { useState as useState54 } from "react";
|
|
23019
23104
|
import {
|
|
23020
|
-
EuiButtonEmpty as
|
|
23021
|
-
EuiFlexGroup as
|
|
23105
|
+
EuiButtonEmpty as EuiButtonEmpty6,
|
|
23106
|
+
EuiFlexGroup as EuiFlexGroup34,
|
|
23022
23107
|
EuiPopover as EuiPopover9,
|
|
23023
23108
|
EuiRadioGroup as EuiRadioGroup2
|
|
23024
23109
|
} from "@elastic/eui";
|
|
@@ -23049,7 +23134,7 @@ var WfoRadioDropdown = ({
|
|
|
23049
23134
|
label: option.label
|
|
23050
23135
|
}));
|
|
23051
23136
|
return /* @__PURE__ */ jsx276(
|
|
23052
|
-
|
|
23137
|
+
EuiFlexGroup34,
|
|
23053
23138
|
{
|
|
23054
23139
|
gutterSize: "s",
|
|
23055
23140
|
alignItems: "center",
|
|
@@ -23058,7 +23143,7 @@ var WfoRadioDropdown = ({
|
|
|
23058
23143
|
EuiPopover9,
|
|
23059
23144
|
{
|
|
23060
23145
|
button: /* @__PURE__ */ jsx276(
|
|
23061
|
-
|
|
23146
|
+
EuiButtonEmpty6,
|
|
23062
23147
|
{
|
|
23063
23148
|
size: "s",
|
|
23064
23149
|
iconType: "arrowDown",
|
|
@@ -23271,7 +23356,7 @@ import {
|
|
|
23271
23356
|
EuiButton as EuiButton23,
|
|
23272
23357
|
EuiCallOut as EuiCallOut5,
|
|
23273
23358
|
EuiFieldSearch as EuiFieldSearch3,
|
|
23274
|
-
EuiFlexGroup as
|
|
23359
|
+
EuiFlexGroup as EuiFlexGroup47,
|
|
23275
23360
|
EuiFlexItem as EuiFlexItem52,
|
|
23276
23361
|
EuiPanel as EuiPanel20,
|
|
23277
23362
|
EuiSpacer as EuiSpacer33,
|
|
@@ -23559,7 +23644,7 @@ import {
|
|
|
23559
23644
|
EuiButtonIcon as EuiButtonIcon16,
|
|
23560
23645
|
EuiCallOut as EuiCallOut4,
|
|
23561
23646
|
EuiCode as EuiCode2,
|
|
23562
|
-
EuiFlexGroup as
|
|
23647
|
+
EuiFlexGroup as EuiFlexGroup40,
|
|
23563
23648
|
EuiFlexItem as EuiFlexItem46,
|
|
23564
23649
|
EuiPanel as EuiPanel15,
|
|
23565
23650
|
EuiSpacer as EuiSpacer31,
|
|
@@ -23571,7 +23656,7 @@ import { useState as useState60 } from "react";
|
|
|
23571
23656
|
import { useTranslations as useTranslations100 } from "next-intl";
|
|
23572
23657
|
import {
|
|
23573
23658
|
EuiButtonIcon as EuiButtonIcon15,
|
|
23574
|
-
EuiFlexGroup as
|
|
23659
|
+
EuiFlexGroup as EuiFlexGroup39,
|
|
23575
23660
|
EuiFlexItem as EuiFlexItem45,
|
|
23576
23661
|
EuiFormRow as EuiFormRow25,
|
|
23577
23662
|
EuiPanel as EuiPanel14
|
|
@@ -23682,7 +23767,7 @@ import {
|
|
|
23682
23767
|
EuiDatePicker as EuiDatePicker2,
|
|
23683
23768
|
EuiFieldNumber as EuiFieldNumber3,
|
|
23684
23769
|
EuiFieldText as EuiFieldText5,
|
|
23685
|
-
EuiFlexGroup as
|
|
23770
|
+
EuiFlexGroup as EuiFlexGroup35,
|
|
23686
23771
|
EuiFlexItem as EuiFlexItem41,
|
|
23687
23772
|
EuiFormHelpText,
|
|
23688
23773
|
EuiIcon as EuiIcon7,
|
|
@@ -23787,7 +23872,7 @@ var ValueControl = ({
|
|
|
23787
23872
|
if (pathInfo.type === "number") {
|
|
23788
23873
|
if (operator === "between") {
|
|
23789
23874
|
const betweenValue = value || { start: "", end: "" };
|
|
23790
|
-
return /* @__PURE__ */ jsxs146(
|
|
23875
|
+
return /* @__PURE__ */ jsxs146(EuiFlexGroup35, { gutterSize: "s", alignItems: "center", children: [
|
|
23791
23876
|
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
23792
23877
|
EuiFieldNumber3,
|
|
23793
23878
|
{
|
|
@@ -23825,7 +23910,7 @@ var ValueControl = ({
|
|
|
23825
23910
|
if (pathInfo.type === "datetime") {
|
|
23826
23911
|
if (operator === "between") {
|
|
23827
23912
|
const betweenValue = value || { start: null, end: null };
|
|
23828
|
-
return /* @__PURE__ */ jsxs146(
|
|
23913
|
+
return /* @__PURE__ */ jsxs146(EuiFlexGroup35, { gutterSize: "s", alignItems: "center", children: [
|
|
23829
23914
|
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
23830
23915
|
EuiDatePicker2,
|
|
23831
23916
|
{
|
|
@@ -23912,7 +23997,7 @@ var WfoFieldSelector = ({
|
|
|
23912
23997
|
import { useTranslations as useTranslations97 } from "next-intl";
|
|
23913
23998
|
import {
|
|
23914
23999
|
EuiButton as EuiButton21,
|
|
23915
|
-
EuiFlexGroup as
|
|
24000
|
+
EuiFlexGroup as EuiFlexGroup36,
|
|
23916
24001
|
EuiFlexItem as EuiFlexItem42,
|
|
23917
24002
|
EuiFormRow as EuiFormRow24,
|
|
23918
24003
|
EuiText as EuiText53
|
|
@@ -23925,7 +24010,7 @@ var WfoOperatorSelector = ({
|
|
|
23925
24010
|
}) => {
|
|
23926
24011
|
const t = useTranslations97("search.page");
|
|
23927
24012
|
const { theme } = useOrchestratorTheme();
|
|
23928
|
-
return /* @__PURE__ */ jsx282(EuiFormRow24, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs147(
|
|
24013
|
+
return /* @__PURE__ */ jsx282(EuiFormRow24, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs147(EuiFlexGroup36, { gutterSize: "xs", wrap: true, children: [
|
|
23929
24014
|
selectedPathInfo?.operators?.map((operator) => {
|
|
23930
24015
|
const { symbol, description } = getOperatorDisplay(
|
|
23931
24016
|
operator,
|
|
@@ -24221,7 +24306,7 @@ var WfoPathSelector = ({
|
|
|
24221
24306
|
|
|
24222
24307
|
// src/components/WfoSearchPage/WfoConditionRow/WfoRenderFunctions.tsx
|
|
24223
24308
|
import { useTranslations as useTranslations99 } from "next-intl";
|
|
24224
|
-
import { EuiFlexGroup as
|
|
24309
|
+
import { EuiFlexGroup as EuiFlexGroup37, EuiFlexItem as EuiFlexItem43, EuiText as EuiText54 } from "@elastic/eui";
|
|
24225
24310
|
import { Fragment as Fragment66, jsx as jsx285, jsxs as jsxs149 } from "@emotion/react/jsx-runtime";
|
|
24226
24311
|
var WfoRenderPathOption = ({
|
|
24227
24312
|
option,
|
|
@@ -24233,7 +24318,7 @@ var WfoRenderPathOption = ({
|
|
|
24233
24318
|
const pathInfo = option.value ? paths.find(({ path }) => path === option.value) : null;
|
|
24234
24319
|
if (!pathInfo) return /* @__PURE__ */ jsx285(Fragment66, { children: option.label });
|
|
24235
24320
|
return /* @__PURE__ */ jsxs149(
|
|
24236
|
-
|
|
24321
|
+
EuiFlexGroup37,
|
|
24237
24322
|
{
|
|
24238
24323
|
alignItems: "center",
|
|
24239
24324
|
gutterSize: "s",
|
|
@@ -24243,7 +24328,7 @@ var WfoRenderPathOption = ({
|
|
|
24243
24328
|
children: [
|
|
24244
24329
|
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: true, children: /* @__PURE__ */ jsx285(EuiText54, { size: "s", children: pathInfo.displayLabel || pathInfo.path }) }),
|
|
24245
24330
|
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs149(
|
|
24246
|
-
|
|
24331
|
+
EuiFlexGroup37,
|
|
24247
24332
|
{
|
|
24248
24333
|
gutterSize: "xs",
|
|
24249
24334
|
alignItems: "center",
|
|
@@ -24279,7 +24364,7 @@ var WfoRenderPathOption = ({
|
|
|
24279
24364
|
var WfoRenderPathSelectionOption = ({ option, contentClassName, fieldType }) => {
|
|
24280
24365
|
const { theme } = useOrchestratorTheme();
|
|
24281
24366
|
return /* @__PURE__ */ jsx285(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */ jsxs149(
|
|
24282
|
-
|
|
24367
|
+
EuiFlexGroup37,
|
|
24283
24368
|
{
|
|
24284
24369
|
alignItems: "center",
|
|
24285
24370
|
gutterSize: "s",
|
|
@@ -24303,7 +24388,7 @@ var WfoRenderPathSelectionOption = ({ option, contentClassName, fieldType }) =>
|
|
|
24303
24388
|
};
|
|
24304
24389
|
|
|
24305
24390
|
// src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx
|
|
24306
|
-
import { EuiFlexGroup as
|
|
24391
|
+
import { EuiFlexGroup as EuiFlexGroup38, EuiFlexItem as EuiFlexItem44, EuiText as EuiText55 } from "@elastic/eui";
|
|
24307
24392
|
|
|
24308
24393
|
// src/components/WfoSearchPage/WfoConditionRow/utils.ts
|
|
24309
24394
|
var createOptionsFromPaths = (paths, group) => paths.filter(({ group: pathGroup }) => pathGroup === group).map(({ displayLabel, path, type, operators }) => ({
|
|
@@ -24362,14 +24447,14 @@ var WfoSelectedPathDisplay = ({
|
|
|
24362
24447
|
alignItems: "center"
|
|
24363
24448
|
},
|
|
24364
24449
|
children: /* @__PURE__ */ jsx286(
|
|
24365
|
-
|
|
24450
|
+
EuiFlexGroup38,
|
|
24366
24451
|
{
|
|
24367
24452
|
alignItems: "center",
|
|
24368
24453
|
gutterSize: "s",
|
|
24369
24454
|
responsive: false,
|
|
24370
24455
|
justifyContent: "spaceBetween",
|
|
24371
24456
|
children: /* @__PURE__ */ jsx286(EuiFlexItem44, { grow: true, children: isFullPath ? /* @__PURE__ */ jsxs150(
|
|
24372
|
-
|
|
24457
|
+
EuiFlexGroup38,
|
|
24373
24458
|
{
|
|
24374
24459
|
gutterSize: "none",
|
|
24375
24460
|
alignItems: "center",
|
|
@@ -24570,14 +24655,14 @@ var ConditionRow = ({
|
|
|
24570
24655
|
}
|
|
24571
24656
|
);
|
|
24572
24657
|
};
|
|
24573
|
-
return /* @__PURE__ */ jsx287(EuiPanel14, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs151(
|
|
24658
|
+
return /* @__PURE__ */ jsx287(EuiPanel14, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs151(EuiFlexGroup39, { direction: "column", gutterSize: "m", children: [
|
|
24574
24659
|
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsx287(
|
|
24575
24660
|
EuiFormRow25,
|
|
24576
24661
|
{
|
|
24577
24662
|
label: t("fieldLabel"),
|
|
24578
24663
|
error,
|
|
24579
24664
|
isInvalid: !!error,
|
|
24580
|
-
children: /* @__PURE__ */ jsxs151(
|
|
24665
|
+
children: /* @__PURE__ */ jsxs151(EuiFlexGroup39, { gutterSize: "s", alignItems: "center", children: [
|
|
24581
24666
|
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: showPathSelection ? /* @__PURE__ */ jsx287(
|
|
24582
24667
|
WfoPathSelector,
|
|
24583
24668
|
{
|
|
@@ -24629,7 +24714,7 @@ var ConditionRow = ({
|
|
|
24629
24714
|
}
|
|
24630
24715
|
) }),
|
|
24631
24716
|
condition.path && selectedPathInfo?.ui_types && selectedPathInfo.ui_types.length > 0 && /* @__PURE__ */ jsx287(EuiFlexItem45, { grow: false, children: /* @__PURE__ */ jsx287(
|
|
24632
|
-
|
|
24717
|
+
EuiFlexGroup39,
|
|
24633
24718
|
{
|
|
24634
24719
|
gutterSize: "xs",
|
|
24635
24720
|
alignItems: "center",
|
|
@@ -24660,7 +24745,7 @@ var ConditionRow = ({
|
|
|
24660
24745
|
] })
|
|
24661
24746
|
}
|
|
24662
24747
|
) }),
|
|
24663
|
-
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsxs151(
|
|
24748
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsxs151(EuiFlexGroup39, { gutterSize: "s", alignItems: "flexEnd", children: [
|
|
24664
24749
|
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsx287(
|
|
24665
24750
|
WfoOperatorSelector,
|
|
24666
24751
|
{
|
|
@@ -24755,13 +24840,13 @@ var FilterGroup = ({
|
|
|
24755
24840
|
hasBorder: true,
|
|
24756
24841
|
children: [
|
|
24757
24842
|
/* @__PURE__ */ jsxs152(
|
|
24758
|
-
|
|
24843
|
+
EuiFlexGroup40,
|
|
24759
24844
|
{
|
|
24760
24845
|
gutterSize: "s",
|
|
24761
24846
|
alignItems: "center",
|
|
24762
24847
|
justifyContent: "spaceBetween",
|
|
24763
24848
|
children: [
|
|
24764
|
-
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(
|
|
24849
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(EuiFlexGroup40, { gutterSize: "s", alignItems: "center", children: [
|
|
24765
24850
|
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(EuiText56, { size: "s", children: /* @__PURE__ */ jsx288("strong", { children: t("groupLabel") }) }) }),
|
|
24766
24851
|
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
24767
24852
|
EuiButton22,
|
|
@@ -24774,7 +24859,7 @@ var FilterGroup = ({
|
|
|
24774
24859
|
}
|
|
24775
24860
|
) })
|
|
24776
24861
|
] }) }),
|
|
24777
|
-
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(
|
|
24862
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(EuiFlexGroup40, { gutterSize: "s", alignItems: "center", children: [
|
|
24778
24863
|
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
24779
24864
|
EuiButton22,
|
|
24780
24865
|
{
|
|
@@ -24823,7 +24908,7 @@ var FilterGroup = ({
|
|
|
24823
24908
|
hasShadow: false,
|
|
24824
24909
|
children: group.children.map((child, index) => /* @__PURE__ */ jsxs152("div", { children: [
|
|
24825
24910
|
index > 0 && /* @__PURE__ */ jsx288(
|
|
24826
|
-
|
|
24911
|
+
EuiFlexGroup40,
|
|
24827
24912
|
{
|
|
24828
24913
|
gutterSize: "none",
|
|
24829
24914
|
alignItems: "center",
|
|
@@ -24882,26 +24967,26 @@ var FilterGroup = ({
|
|
|
24882
24967
|
};
|
|
24883
24968
|
|
|
24884
24969
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx
|
|
24885
|
-
import { EuiFlexGroup as
|
|
24970
|
+
import { EuiFlexGroup as EuiFlexGroup45, EuiPanel as EuiPanel19 } from "@elastic/eui";
|
|
24886
24971
|
|
|
24887
24972
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchEmptyState.tsx
|
|
24888
24973
|
import { useTranslations as useTranslations102 } from "next-intl";
|
|
24889
|
-
import { EuiFlexGroup as
|
|
24974
|
+
import { EuiFlexGroup as EuiFlexGroup41, EuiFlexItem as EuiFlexItem47, EuiPanel as EuiPanel16, EuiText as EuiText57 } from "@elastic/eui";
|
|
24890
24975
|
import { jsx as jsx289 } from "@emotion/react/jsx-runtime";
|
|
24891
24976
|
var WfoSearchEmptyState = () => {
|
|
24892
24977
|
const t = useTranslations102("search.page");
|
|
24893
24978
|
const { theme } = useOrchestratorTheme();
|
|
24894
|
-
return /* @__PURE__ */ jsx289(EuiPanel16, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx289(
|
|
24979
|
+
return /* @__PURE__ */ jsx289(EuiPanel16, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx289(EuiFlexGroup41, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx289(EuiFlexItem47, { grow: false, children: /* @__PURE__ */ jsx289(EuiText57, { size: "m", color: theme.colors.textSubdued, children: t("noResultsFound") }) }) }) });
|
|
24895
24980
|
};
|
|
24896
24981
|
|
|
24897
24982
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchLoadingState.tsx
|
|
24898
24983
|
import { useTranslations as useTranslations103 } from "next-intl";
|
|
24899
|
-
import { EuiFlexGroup as
|
|
24984
|
+
import { EuiFlexGroup as EuiFlexGroup42, EuiFlexItem as EuiFlexItem48, EuiPanel as EuiPanel17, EuiText as EuiText58 } from "@elastic/eui";
|
|
24900
24985
|
import { jsx as jsx290 } from "@emotion/react/jsx-runtime";
|
|
24901
24986
|
var WfoSearchLoadingState = () => {
|
|
24902
24987
|
const t = useTranslations103("search.page");
|
|
24903
24988
|
const { theme } = useOrchestratorTheme();
|
|
24904
|
-
return /* @__PURE__ */ jsx290(EuiPanel17, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx290(
|
|
24989
|
+
return /* @__PURE__ */ jsx290(EuiPanel17, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx290(EuiFlexGroup42, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx290(EuiFlexItem48, { grow: false, children: /* @__PURE__ */ jsx290(EuiText58, { size: "m", color: theme.colors.textSubdued, children: t("loadingSearchResults") }) }) }) });
|
|
24905
24990
|
};
|
|
24906
24991
|
|
|
24907
24992
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
|
|
@@ -24909,7 +24994,7 @@ import { useEffect as useEffect39, useRef as useRef11 } from "react";
|
|
|
24909
24994
|
import { useTranslations as useTranslations104 } from "next-intl";
|
|
24910
24995
|
import {
|
|
24911
24996
|
EuiButtonIcon as EuiButtonIcon17,
|
|
24912
|
-
EuiFlexGroup as
|
|
24997
|
+
EuiFlexGroup as EuiFlexGroup44,
|
|
24913
24998
|
EuiFlexItem as EuiFlexItem50,
|
|
24914
24999
|
EuiPanel as EuiPanel18,
|
|
24915
25000
|
EuiSpacer as EuiSpacer32,
|
|
@@ -24961,7 +25046,7 @@ var WfoHighlightedText = ({
|
|
|
24961
25046
|
|
|
24962
25047
|
// src/components/WfoSearchPage/WfoSearchResults/WfoPathBreadcrumb.tsx
|
|
24963
25048
|
import { Fragment as Fragment69 } from "react";
|
|
24964
|
-
import { EuiFlexGroup as
|
|
25049
|
+
import { EuiFlexGroup as EuiFlexGroup43, EuiFlexItem as EuiFlexItem49, EuiIcon as EuiIcon9 } from "@elastic/eui";
|
|
24965
25050
|
import { jsx as jsx292, jsxs as jsxs153 } from "@emotion/react/jsx-runtime";
|
|
24966
25051
|
var WfoPathBreadcrumb = ({
|
|
24967
25052
|
path,
|
|
@@ -24986,7 +25071,7 @@ var WfoPathBreadcrumb = ({
|
|
|
24986
25071
|
] : segments;
|
|
24987
25072
|
const badgeColor = color || theme.colors.primary;
|
|
24988
25073
|
return /* @__PURE__ */ jsx292(
|
|
24989
|
-
|
|
25074
|
+
EuiFlexGroup43,
|
|
24990
25075
|
{
|
|
24991
25076
|
gutterSize: size,
|
|
24992
25077
|
alignItems: "center",
|
|
@@ -25052,8 +25137,8 @@ var WfoSearchResultItem = ({
|
|
|
25052
25137
|
borderRight: "none",
|
|
25053
25138
|
borderColor: theme.colors.primary
|
|
25054
25139
|
} : void 0,
|
|
25055
|
-
children: /* @__PURE__ */ jsxs154(
|
|
25056
|
-
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsxs154(
|
|
25140
|
+
children: /* @__PURE__ */ jsxs154(EuiFlexGroup44, { alignItems: "flexStart", gutterSize: "m", children: [
|
|
25141
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsxs154(EuiFlexGroup44, { direction: "column", gutterSize: "xs", children: [
|
|
25057
25142
|
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
25058
25143
|
EuiText59,
|
|
25059
25144
|
{
|
|
@@ -25095,7 +25180,7 @@ var WfoSearchResultItem = ({
|
|
|
25095
25180
|
] })
|
|
25096
25181
|
] }) }),
|
|
25097
25182
|
/* @__PURE__ */ jsx293(EuiFlexItem50, { grow: false, children: /* @__PURE__ */ jsxs154(
|
|
25098
|
-
|
|
25183
|
+
EuiFlexGroup44,
|
|
25099
25184
|
{
|
|
25100
25185
|
direction: "column",
|
|
25101
25186
|
alignItems: "flexEnd",
|
|
@@ -25144,7 +25229,7 @@ var WfoSearchResults = ({
|
|
|
25144
25229
|
if (!results || results.length === 0) {
|
|
25145
25230
|
return /* @__PURE__ */ jsx294(WfoSearchEmptyState, {});
|
|
25146
25231
|
}
|
|
25147
|
-
return /* @__PURE__ */ jsx294(EuiPanel19, { paddingSize: "m", hasShadow: false, children: /* @__PURE__ */ jsx294(
|
|
25232
|
+
return /* @__PURE__ */ jsx294(EuiPanel19, { paddingSize: "m", hasShadow: false, children: /* @__PURE__ */ jsx294(EuiFlexGroup45, { direction: "column", gutterSize: "s", children: results.map((result, idx) => /* @__PURE__ */ jsx294(
|
|
25148
25233
|
WfoSearchResultItem,
|
|
25149
25234
|
{
|
|
25150
25235
|
result,
|
|
@@ -25171,7 +25256,7 @@ var WfoSearchMetadataHeader = ({
|
|
|
25171
25256
|
import { useTranslations as useTranslations105 } from "next-intl";
|
|
25172
25257
|
import {
|
|
25173
25258
|
EuiButtonIcon as EuiButtonIcon18,
|
|
25174
|
-
EuiFlexGroup as
|
|
25259
|
+
EuiFlexGroup as EuiFlexGroup46,
|
|
25175
25260
|
EuiFlexItem as EuiFlexItem51,
|
|
25176
25261
|
EuiText as EuiText60
|
|
25177
25262
|
} from "@elastic/eui";
|
|
@@ -25197,7 +25282,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
25197
25282
|
};
|
|
25198
25283
|
if (!has_next_page && !hasPrevPage) return null;
|
|
25199
25284
|
return /* @__PURE__ */ jsxs155(
|
|
25200
|
-
|
|
25285
|
+
EuiFlexGroup46,
|
|
25201
25286
|
{
|
|
25202
25287
|
justifyContent: "flexEnd",
|
|
25203
25288
|
alignItems: "center",
|
|
@@ -25426,7 +25511,7 @@ var WfoSearch = () => {
|
|
|
25426
25511
|
}
|
|
25427
25512
|
),
|
|
25428
25513
|
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
25429
|
-
/* @__PURE__ */ jsx297(
|
|
25514
|
+
/* @__PURE__ */ jsx297(EuiFlexGroup47, { gutterSize: "s", alignItems: "center", children: /* @__PURE__ */ jsx297(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx297(
|
|
25430
25515
|
EuiButton23,
|
|
25431
25516
|
{
|
|
25432
25517
|
iconType: showFilters ? "eyeClosed" : "eye",
|
|
@@ -25498,9 +25583,9 @@ var WfoSearch = () => {
|
|
|
25498
25583
|
] }),
|
|
25499
25584
|
isSearchActive && /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
25500
25585
|
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
25501
|
-
/* @__PURE__ */ jsxs156(
|
|
25586
|
+
/* @__PURE__ */ jsxs156(EuiFlexGroup47, { gutterSize: "s", alignItems: "center", children: [
|
|
25502
25587
|
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs156(
|
|
25503
|
-
|
|
25588
|
+
EuiFlexGroup47,
|
|
25504
25589
|
{
|
|
25505
25590
|
gutterSize: "s",
|
|
25506
25591
|
alignItems: "center",
|
|
@@ -25533,7 +25618,7 @@ var WfoSearch = () => {
|
|
|
25533
25618
|
showDetailPanel && /* @__PURE__ */ jsx297(EuiFlexItem52, { grow: DETAIL_GROW })
|
|
25534
25619
|
] }),
|
|
25535
25620
|
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
25536
|
-
/* @__PURE__ */ jsxs156(
|
|
25621
|
+
/* @__PURE__ */ jsxs156(EuiFlexGroup47, { gutterSize: "s", alignItems: "flexStart", children: [
|
|
25537
25622
|
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsx297(EuiPanel20, { paddingSize: "none", hasBorder: true, children: /* @__PURE__ */ jsx297(
|
|
25538
25623
|
WfoSearchResults,
|
|
25539
25624
|
{
|
|
@@ -25751,10 +25836,10 @@ function ExportButton({ exportData }) {
|
|
|
25751
25836
|
// src/components/WfoAgent/ToolProgress/ToolProgress.tsx
|
|
25752
25837
|
import { useState as useState62 } from "react";
|
|
25753
25838
|
import { useTranslations as useTranslations109 } from "next-intl";
|
|
25754
|
-
import { EuiFlexGroup as
|
|
25839
|
+
import { EuiFlexGroup as EuiFlexGroup50, EuiFlexItem as EuiFlexItem55, EuiLoadingSpinner as EuiLoadingSpinner5 } from "@elastic/eui";
|
|
25755
25840
|
|
|
25756
25841
|
// src/components/WfoAgent/ToolProgress/DiscoverFilterPathsDisplay.tsx
|
|
25757
|
-
import
|
|
25842
|
+
import React92 from "react";
|
|
25758
25843
|
import { EuiSpacer as EuiSpacer34, EuiText as EuiText62 } from "@elastic/eui";
|
|
25759
25844
|
import { Fragment as Fragment72, jsx as jsx299, jsxs as jsxs158 } from "@emotion/react/jsx-runtime";
|
|
25760
25845
|
var DiscoverFilterPathsDisplay = ({
|
|
@@ -25776,7 +25861,7 @@ var DiscoverFilterPathsDisplay = ({
|
|
|
25776
25861
|
/* @__PURE__ */ jsxs158(EuiText62, { size: "xs", color: "subdued", children: [
|
|
25777
25862
|
"Looking for",
|
|
25778
25863
|
" ",
|
|
25779
|
-
field_names.map((name, idx) => /* @__PURE__ */ jsxs158(
|
|
25864
|
+
field_names.map((name, idx) => /* @__PURE__ */ jsxs158(React92.Fragment, { children: [
|
|
25780
25865
|
idx > 0 && ", ",
|
|
25781
25866
|
/* @__PURE__ */ jsx299(WfoBadge, { color: "hollow", textColor: "default", children: name })
|
|
25782
25867
|
] }, name))
|
|
@@ -25795,7 +25880,7 @@ var DiscoverFilterPathsDisplay = ({
|
|
|
25795
25880
|
foundFields.map(([fieldName, fieldResult]) => /* @__PURE__ */ jsx299("div", { style: { marginBottom: "8px" }, children: fieldResult.leaves && fieldResult.leaves.length > 0 && fieldResult.leaves.map(
|
|
25796
25881
|
(leaf, leafIdx) => {
|
|
25797
25882
|
const paths = leaf.paths || (leaf.name ? [leaf.name] : []);
|
|
25798
|
-
return /* @__PURE__ */ jsx299(
|
|
25883
|
+
return /* @__PURE__ */ jsx299(React92.Fragment, { children: paths.map(
|
|
25799
25884
|
(path, pathIdx) => /* @__PURE__ */ jsx299(
|
|
25800
25885
|
"div",
|
|
25801
25886
|
{
|
|
@@ -25820,11 +25905,11 @@ var DiscoverFilterPathsDisplay = ({
|
|
|
25820
25905
|
};
|
|
25821
25906
|
|
|
25822
25907
|
// src/components/WfoAgent/ToolProgress/RunSearchDisplay.tsx
|
|
25823
|
-
import { EuiFlexGroup as
|
|
25908
|
+
import { EuiFlexGroup as EuiFlexGroup48, EuiFlexItem as EuiFlexItem53, EuiText as EuiText63 } from "@elastic/eui";
|
|
25824
25909
|
import { jsx as jsx300, jsxs as jsxs159 } from "@emotion/react/jsx-runtime";
|
|
25825
25910
|
var RunSearchDisplay = ({ parameters }) => {
|
|
25826
25911
|
const { limit = 10 } = parameters;
|
|
25827
|
-
return /* @__PURE__ */ jsx300("div", { children: /* @__PURE__ */ jsxs159(
|
|
25912
|
+
return /* @__PURE__ */ jsx300("div", { children: /* @__PURE__ */ jsxs159(EuiFlexGroup48, { gutterSize: "s", alignItems: "center", children: [
|
|
25828
25913
|
/* @__PURE__ */ jsx300(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx300(EuiText63, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx300("strong", { children: "Results Limit" }) }) }),
|
|
25829
25914
|
/* @__PURE__ */ jsx300(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx300(WfoBadge, { textColor: "default", color: "hollow", children: limit }) })
|
|
25830
25915
|
] }) });
|
|
@@ -25961,14 +26046,14 @@ var SetFilterTreeDisplay = ({
|
|
|
25961
26046
|
};
|
|
25962
26047
|
|
|
25963
26048
|
// src/components/WfoAgent/ToolProgress/StartNewSearchDisplay.tsx
|
|
25964
|
-
import { EuiFlexGroup as
|
|
26049
|
+
import { EuiFlexGroup as EuiFlexGroup49, EuiFlexItem as EuiFlexItem54, EuiSpacer as EuiSpacer35, EuiText as EuiText65 } from "@elastic/eui";
|
|
25965
26050
|
import { Fragment as Fragment73, jsx as jsx302, jsxs as jsxs161 } from "@emotion/react/jsx-runtime";
|
|
25966
26051
|
var StartNewSearchDisplay = ({
|
|
25967
26052
|
parameters
|
|
25968
26053
|
}) => {
|
|
25969
26054
|
const { entity_type, action, query } = parameters;
|
|
25970
26055
|
return /* @__PURE__ */ jsxs161("div", { children: [
|
|
25971
|
-
/* @__PURE__ */ jsxs161(
|
|
26056
|
+
/* @__PURE__ */ jsxs161(EuiFlexGroup49, { gutterSize: "s", wrap: true, children: [
|
|
25972
26057
|
entity_type && /* @__PURE__ */ jsxs161(EuiFlexItem54, { grow: false, children: [
|
|
25973
26058
|
/* @__PURE__ */ jsx302(EuiText65, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx302("strong", { children: "Entity Type" }) }),
|
|
25974
26059
|
/* @__PURE__ */ jsx302(EuiSpacer35, { size: "xs" }),
|
|
@@ -26104,7 +26189,7 @@ var ToolProgress = ({
|
|
|
26104
26189
|
css: hasContent && containerClickableStyle,
|
|
26105
26190
|
onClick: () => hasContent && setIsExpanded(!isExpanded),
|
|
26106
26191
|
children: /* @__PURE__ */ jsxs162(
|
|
26107
|
-
|
|
26192
|
+
EuiFlexGroup50,
|
|
26108
26193
|
{
|
|
26109
26194
|
gutterSize: "m",
|
|
26110
26195
|
alignItems: "center",
|
|
@@ -26271,15 +26356,15 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
26271
26356
|
}
|
|
26272
26357
|
|
|
26273
26358
|
// src/components/WfoAgent/WfoAgentTable/WfoAgentTable.tsx
|
|
26274
|
-
import
|
|
26359
|
+
import React94 from "react";
|
|
26275
26360
|
import { EuiBasicTable } from "@elastic/eui";
|
|
26276
26361
|
import { jsx as jsx306 } from "@emotion/react/jsx-runtime";
|
|
26277
26362
|
var formatColumnName = (key) => key.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
|
|
26278
26363
|
function WfoAgentTable({ aggregationData }) {
|
|
26279
26364
|
const { results } = aggregationData;
|
|
26280
|
-
const [pageIndex, setPageIndex] =
|
|
26281
|
-
const [pageSize, setPageSize] =
|
|
26282
|
-
const columns =
|
|
26365
|
+
const [pageIndex, setPageIndex] = React94.useState(0);
|
|
26366
|
+
const [pageSize, setPageSize] = React94.useState(5);
|
|
26367
|
+
const columns = React94.useMemo(() => {
|
|
26283
26368
|
if (results.length === 0) return [];
|
|
26284
26369
|
const firstResult = results[0];
|
|
26285
26370
|
const groupKeys = Object.keys(firstResult.group_values);
|