@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.83 → 0.0.1-alpha.85
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/dist/openapi-k8s-toolkit.es.js +143 -82
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +143 -82
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/VisibilityContainer/VisibilityContainer.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/VisibilityContainer/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/VisibilityContainer/styled.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/utils.d.ts +9 -2
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2504,7 +2504,7 @@ const CustomTreeProvider = st.div`
|
|
|
2504
2504
|
justify-content: center;
|
|
2505
2505
|
}
|
|
2506
2506
|
`;
|
|
2507
|
-
const Styled$
|
|
2507
|
+
const Styled$o = {
|
|
2508
2508
|
CustomTreeProvider
|
|
2509
2509
|
};
|
|
2510
2510
|
|
|
@@ -2569,7 +2569,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
|
|
|
2569
2569
|
});
|
|
2570
2570
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2571
2571
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Search, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
|
|
2572
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
2572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2573
2573
|
Tree,
|
|
2574
2574
|
{
|
|
2575
2575
|
treeData: loop(treeData),
|
|
@@ -8424,14 +8424,14 @@ const ContentContainer = st.div`
|
|
|
8424
8424
|
display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
|
|
8425
8425
|
flex-flow: ${({ $flexFlow }) => $flexFlow};
|
|
8426
8426
|
`;
|
|
8427
|
-
const Styled$
|
|
8427
|
+
const Styled$n = {
|
|
8428
8428
|
ContentContainer
|
|
8429
8429
|
};
|
|
8430
8430
|
|
|
8431
8431
|
const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
|
|
8432
8432
|
const { token } = theme.useToken();
|
|
8433
8433
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8434
|
-
Styled$
|
|
8434
|
+
Styled$n.ContentContainer,
|
|
8435
8435
|
{
|
|
8436
8436
|
$flexGrow: flexGrow,
|
|
8437
8437
|
$bgColor: token.colorBgContainer,
|
|
@@ -8551,7 +8551,7 @@ const NoWrapContainer = st.div`
|
|
|
8551
8551
|
flex-wrap: nowrap !important;
|
|
8552
8552
|
}
|
|
8553
8553
|
`;
|
|
8554
|
-
const Styled$
|
|
8554
|
+
const Styled$m = {
|
|
8555
8555
|
PositionRelativeContainer,
|
|
8556
8556
|
FullWidthContainer,
|
|
8557
8557
|
NoWrapContainer
|
|
@@ -8594,9 +8594,9 @@ const CollapsibleBreadcrumb = ({ items }) => {
|
|
|
8594
8594
|
};
|
|
8595
8595
|
return [firstItem, ellipsisItem, lastItem];
|
|
8596
8596
|
};
|
|
8597
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
8598
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8599
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8597
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$m.PositionRelativeContainer, { children: [
|
|
8598
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
|
|
8599
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
|
|
8600
8600
|
] });
|
|
8601
8601
|
};
|
|
8602
8602
|
|
|
@@ -8604,12 +8604,12 @@ const HeightDiv = st.div`
|
|
|
8604
8604
|
min-height: 22px;
|
|
8605
8605
|
width: 100%;
|
|
8606
8606
|
`;
|
|
8607
|
-
const Styled$
|
|
8607
|
+
const Styled$l = {
|
|
8608
8608
|
HeightDiv
|
|
8609
8609
|
};
|
|
8610
8610
|
|
|
8611
8611
|
const ManageableBreadcrumbs = ({ data }) => {
|
|
8612
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8612
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
|
|
8613
8613
|
};
|
|
8614
8614
|
const ManageableBreadcrumbsWithDataProvider = ({
|
|
8615
8615
|
uri,
|
|
@@ -8633,7 +8633,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
|
|
|
8633
8633
|
return null;
|
|
8634
8634
|
}
|
|
8635
8635
|
if (rawDataLoading) {
|
|
8636
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8636
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
8637
8637
|
}
|
|
8638
8638
|
if (!rawData) {
|
|
8639
8639
|
return null;
|
|
@@ -8648,7 +8648,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
|
|
|
8648
8648
|
idToCompare
|
|
8649
8649
|
});
|
|
8650
8650
|
if (!result) {
|
|
8651
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8651
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, {});
|
|
8652
8652
|
}
|
|
8653
8653
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result });
|
|
8654
8654
|
};
|
|
@@ -8739,7 +8739,7 @@ const CustomMenu = st(Menu)`
|
|
|
8739
8739
|
margin: 0 !important;
|
|
8740
8740
|
}
|
|
8741
8741
|
`;
|
|
8742
|
-
const Styled$
|
|
8742
|
+
const Styled$k = {
|
|
8743
8743
|
CustomMenu
|
|
8744
8744
|
};
|
|
8745
8745
|
|
|
@@ -8766,7 +8766,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
|
|
|
8766
8766
|
setSelectedKeys(data.selectedKeys);
|
|
8767
8767
|
}, [data.selectedKeys]);
|
|
8768
8768
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8769
|
-
Styled$
|
|
8769
|
+
Styled$k.CustomMenu,
|
|
8770
8770
|
{
|
|
8771
8771
|
selectedKeys,
|
|
8772
8772
|
onSelect: () => {
|
|
@@ -26043,7 +26043,7 @@ const ShortenedText = st.div`
|
|
|
26043
26043
|
white-space: nowrap;
|
|
26044
26044
|
text-overflow: ellipsis;
|
|
26045
26045
|
`;
|
|
26046
|
-
const Styled$
|
|
26046
|
+
const Styled$j = {
|
|
26047
26047
|
ShortenedText
|
|
26048
26048
|
};
|
|
26049
26049
|
|
|
@@ -26052,7 +26052,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
|
|
|
26052
26052
|
const trimmedText = text.substring(0, trimLength);
|
|
26053
26053
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, placement: "top", children: trimmedText });
|
|
26054
26054
|
}
|
|
26055
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
26055
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.ShortenedText, { $maxWidth: maxWidth, children: text }) });
|
|
26056
26056
|
};
|
|
26057
26057
|
|
|
26058
26058
|
const FilterDropdown = ({
|
|
@@ -41588,7 +41588,7 @@ const BorderRadiusContainer$1 = st.div`
|
|
|
41588
41588
|
border-radius: 8px;
|
|
41589
41589
|
}
|
|
41590
41590
|
`;
|
|
41591
|
-
const Styled$
|
|
41591
|
+
const Styled$i = {
|
|
41592
41592
|
BorderRadiusContainer: BorderRadiusContainer$1
|
|
41593
41593
|
};
|
|
41594
41594
|
|
|
@@ -41597,7 +41597,7 @@ const YamlEditor = ({ theme, currentValues, onChange }) => {
|
|
|
41597
41597
|
useEffect(() => {
|
|
41598
41598
|
setYamlData(stringify(currentValues));
|
|
41599
41599
|
}, [currentValues]);
|
|
41600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41600
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.BorderRadiusContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41601
41601
|
Ft,
|
|
41602
41602
|
{
|
|
41603
41603
|
defaultLanguage: "yaml",
|
|
@@ -41636,7 +41636,7 @@ const BigText$1 = st.div`
|
|
|
41636
41636
|
font-size: 16px;
|
|
41637
41637
|
line-height: 24px;
|
|
41638
41638
|
`;
|
|
41639
|
-
const Styled$
|
|
41639
|
+
const Styled$h = {
|
|
41640
41640
|
BorderRadiusContainer,
|
|
41641
41641
|
ControlsRowContainer: ControlsRowContainer$1,
|
|
41642
41642
|
BigText: BigText$1
|
|
@@ -41715,7 +41715,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41715
41715
|
};
|
|
41716
41716
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
41717
41717
|
contextHolder,
|
|
41718
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41718
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41719
41719
|
Ft,
|
|
41720
41720
|
{
|
|
41721
41721
|
defaultLanguage: "yaml",
|
|
@@ -41731,7 +41731,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41731
41731
|
}
|
|
41732
41732
|
}
|
|
41733
41733
|
) }),
|
|
41734
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41734
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
41735
41735
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
|
|
41736
41736
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" })
|
|
41737
41737
|
] }) }),
|
|
@@ -41741,7 +41741,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41741
41741
|
open: !!error,
|
|
41742
41742
|
onOk: () => setError(void 0),
|
|
41743
41743
|
onCancel: () => setError(void 0),
|
|
41744
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41744
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BigText, { children: "Error!" }) }),
|
|
41745
41745
|
cancelButtonProps: { style: { display: "none" } },
|
|
41746
41746
|
children: [
|
|
41747
41747
|
"An error has occurred: ",
|
|
@@ -41821,7 +41821,7 @@ const Content$1 = st.div`
|
|
|
41821
41821
|
display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
|
|
41822
41822
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
41823
41823
|
`;
|
|
41824
|
-
const Styled$
|
|
41824
|
+
const Styled$g = {
|
|
41825
41825
|
Container: Container$1,
|
|
41826
41826
|
TitleBar,
|
|
41827
41827
|
Content: Content$1
|
|
@@ -41848,14 +41848,14 @@ const CustomCollapse = ({
|
|
|
41848
41848
|
}
|
|
41849
41849
|
};
|
|
41850
41850
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
41851
|
-
Styled$
|
|
41851
|
+
Styled$g.Container,
|
|
41852
41852
|
{
|
|
41853
41853
|
$designNewLayout: designNewLayout,
|
|
41854
41854
|
$borderColor: token.colorBorder,
|
|
41855
41855
|
$bgColor: token.colorBgContainer,
|
|
41856
41856
|
children: [
|
|
41857
41857
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
41858
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
41858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$g.TitleBar, { onClick: () => toggleCollapse(), children: [
|
|
41859
41859
|
!designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
|
|
41860
41860
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
|
|
41861
41861
|
designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
|
|
@@ -41866,7 +41866,7 @@ const CustomCollapse = ({
|
|
|
41866
41866
|
persistedCheckbox
|
|
41867
41867
|
] })
|
|
41868
41868
|
] }),
|
|
41869
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41869
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
|
|
41870
41870
|
]
|
|
41871
41871
|
}
|
|
41872
41872
|
);
|
|
@@ -41900,13 +41900,13 @@ const CustomSizeTitle = st.div`
|
|
|
41900
41900
|
const Content = st.div`
|
|
41901
41901
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
41902
41902
|
`;
|
|
41903
|
-
const Styled$
|
|
41903
|
+
const Styled$f = {
|
|
41904
41904
|
Content
|
|
41905
41905
|
};
|
|
41906
41906
|
|
|
41907
41907
|
const ArrayInsideContainer = ({ children }) => {
|
|
41908
41908
|
const designNewLayout = useDesignNewLayout();
|
|
41909
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41909
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.Content, { $designNewLayout: designNewLayout, children });
|
|
41910
41910
|
};
|
|
41911
41911
|
|
|
41912
41912
|
const arraysEqual = (arr1, arr2) => {
|
|
@@ -42582,7 +42582,7 @@ const CrossContainer = st.div`
|
|
|
42582
42582
|
cursor: pointer;
|
|
42583
42583
|
padding-top: 11px;
|
|
42584
42584
|
`;
|
|
42585
|
-
const Styled$
|
|
42585
|
+
const Styled$e = {
|
|
42586
42586
|
SwitchAndCrossContainer,
|
|
42587
42587
|
CrossContainer
|
|
42588
42588
|
};
|
|
@@ -42607,7 +42607,7 @@ const FormBooleanInput = ({
|
|
|
42607
42607
|
onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
|
|
42608
42608
|
] })
|
|
42609
42609
|
] }),
|
|
42610
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
42610
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$e.SwitchAndCrossContainer, { children: [
|
|
42611
42611
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42612
42612
|
ResetedFormItem,
|
|
42613
42613
|
{
|
|
@@ -42617,7 +42617,7 @@ const FormBooleanInput = ({
|
|
|
42617
42617
|
arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
|
|
42618
42618
|
),
|
|
42619
42619
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42620
|
-
Styled$
|
|
42620
|
+
Styled$e.CrossContainer,
|
|
42621
42621
|
{
|
|
42622
42622
|
onClick: () => {
|
|
42623
42623
|
if (makeValueUndefined) {
|
|
@@ -42833,7 +42833,7 @@ const BigText = st.div`
|
|
|
42833
42833
|
font-size: 16px;
|
|
42834
42834
|
line-height: 24px;
|
|
42835
42835
|
`;
|
|
42836
|
-
const Styled$
|
|
42836
|
+
const Styled$d = {
|
|
42837
42837
|
ResetedFormList,
|
|
42838
42838
|
Container,
|
|
42839
42839
|
OverflowContainer: OverflowContainer$1,
|
|
@@ -43081,7 +43081,7 @@ const getArrayFormItemFromSwagger = ({
|
|
|
43081
43081
|
}
|
|
43082
43082
|
),
|
|
43083
43083
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43084
|
-
Styled$
|
|
43084
|
+
Styled$d.ResetedFormList,
|
|
43085
43085
|
{
|
|
43086
43086
|
name: arrName || name,
|
|
43087
43087
|
rules: !forceNonRequired && required?.includes(getStringByName(name)) ? [
|
|
@@ -43808,8 +43808,8 @@ const BlackholeForm = ({
|
|
|
43808
43808
|
setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
|
|
43809
43809
|
};
|
|
43810
43810
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
43811
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
43812
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43811
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$d.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
|
|
43812
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43813
43813
|
Form,
|
|
43814
43814
|
{
|
|
43815
43815
|
form,
|
|
@@ -43853,7 +43853,7 @@ const BlackholeForm = ({
|
|
|
43853
43853
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditor, { theme: theme$1, currentValues: yamlValues || {}, onChange: onYamlChangeCallback }) })
|
|
43854
43854
|
] }),
|
|
43855
43855
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
|
|
43856
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43856
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
43857
43857
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
|
|
43858
43858
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
|
|
43859
43859
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => setIsDebugModalOpen(true), icon: /* @__PURE__ */ jsxRuntimeExports.jsx(BugOutlined, {}) }),
|
|
@@ -43865,7 +43865,7 @@ const BlackholeForm = ({
|
|
|
43865
43865
|
open: !!error,
|
|
43866
43866
|
onOk: () => setError(void 0),
|
|
43867
43867
|
onCancel: () => setError(void 0),
|
|
43868
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43868
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.BigText, { children: "Error!" }) }),
|
|
43869
43869
|
cancelButtonProps: { style: { display: "none" } },
|
|
43870
43870
|
children: [
|
|
43871
43871
|
"An error has occurred: ",
|
|
@@ -43881,7 +43881,7 @@ const BlackholeForm = ({
|
|
|
43881
43881
|
onCancel: () => setIsDebugModalOpen(false),
|
|
43882
43882
|
title: "Debug for properties",
|
|
43883
43883
|
width: "90vw",
|
|
43884
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43884
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43885
43885
|
Editor,
|
|
43886
43886
|
{
|
|
43887
43887
|
defaultLanguage: "json",
|
|
@@ -44035,12 +44035,12 @@ const CustomCard$5 = st(Card)`
|
|
|
44035
44035
|
padding: 8px;
|
|
44036
44036
|
}
|
|
44037
44037
|
`;
|
|
44038
|
-
const Styled$
|
|
44038
|
+
const Styled$c = {
|
|
44039
44039
|
CustomCard: CustomCard$5
|
|
44040
44040
|
};
|
|
44041
44041
|
|
|
44042
44042
|
const AddCard = ({ onAddClick }) => {
|
|
44043
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44043
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.CustomCard, { onClick: onAddClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusOutlined, {}) });
|
|
44044
44044
|
};
|
|
44045
44045
|
|
|
44046
44046
|
const byteToHex = [];
|
|
@@ -44344,7 +44344,7 @@ const EditButtonContainer = st.div`
|
|
|
44344
44344
|
bottom: 6px;
|
|
44345
44345
|
right: 6px;
|
|
44346
44346
|
`;
|
|
44347
|
-
const Styled$
|
|
44347
|
+
const Styled$b = {
|
|
44348
44348
|
CustomCard: CustomCard$4,
|
|
44349
44349
|
ImageContainer,
|
|
44350
44350
|
OverflowContainer,
|
|
@@ -44420,14 +44420,14 @@ const MarketplaceCard$1 = ({
|
|
|
44420
44420
|
return null;
|
|
44421
44421
|
}
|
|
44422
44422
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44423
|
-
Styled$
|
|
44423
|
+
Styled$b.CustomCard,
|
|
44424
44424
|
{
|
|
44425
44425
|
$isDisabled: disabled,
|
|
44426
44426
|
$hoverColor: token.colorPrimary,
|
|
44427
44427
|
onClick: () => disabled ? null : navigate(navigateUrl),
|
|
44428
44428
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { vertical: true, style: { width: "100%", height: "100%" }, justify: "spaceBetween", children: [
|
|
44429
44429
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44430
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44430
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.ImageContainer, { dangerouslySetInnerHTML: { __html: decodedIcon } }),
|
|
44431
44431
|
isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44432
44432
|
"div",
|
|
44433
44433
|
{
|
|
@@ -44448,8 +44448,8 @@ const MarketplaceCard$1 = ({
|
|
|
44448
44448
|
}
|
|
44449
44449
|
)
|
|
44450
44450
|
] }),
|
|
44451
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44452
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44451
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$b.OverflowContainer, { children: [
|
|
44452
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$b.TitleContainer, { children: [
|
|
44453
44453
|
name,
|
|
44454
44454
|
" ",
|
|
44455
44455
|
addedMode && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
@@ -44457,10 +44457,10 @@ const MarketplaceCard$1 = ({
|
|
|
44457
44457
|
k8sList?.items?.length
|
|
44458
44458
|
] })
|
|
44459
44459
|
] }),
|
|
44460
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44461
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44460
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.TagsContainer, { children: tags.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.CustomTag, { children: tag }, tag)) }),
|
|
44461
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.DescriptionContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: description }) })
|
|
44462
44462
|
] }),
|
|
44463
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44463
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.EditButtonContainer, { children: isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44464
44464
|
"div",
|
|
44465
44465
|
{
|
|
44466
44466
|
onClick: (e) => {
|
|
@@ -44518,7 +44518,7 @@ const BigValue = st.div`
|
|
|
44518
44518
|
line-clamp: 1;
|
|
44519
44519
|
word-break: break-all;
|
|
44520
44520
|
`;
|
|
44521
|
-
const Styled$
|
|
44521
|
+
const Styled$a = {
|
|
44522
44522
|
BigValue
|
|
44523
44523
|
};
|
|
44524
44524
|
|
|
@@ -44628,7 +44628,7 @@ const MarketPlace = ({
|
|
|
44628
44628
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44629
44629
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
|
|
44630
44630
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: "Available Products" }) }),
|
|
44631
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44631
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.BigValue, { children: "Marketplace" }) })
|
|
44632
44632
|
] }) }),
|
|
44633
44633
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
|
|
44634
44634
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchTextInput, { uniqueTags, selectedTags, onSelectedTags: setSelectedTags }),
|
|
@@ -44831,7 +44831,7 @@ st.div`
|
|
|
44831
44831
|
line-clamp: 1;
|
|
44832
44832
|
word-break: break-all;
|
|
44833
44833
|
`;
|
|
44834
|
-
const Styled$
|
|
44834
|
+
const Styled$9 = {
|
|
44835
44835
|
ActionMenuPlaceholder};
|
|
44836
44836
|
|
|
44837
44837
|
const ProjectInfoCard$1 = ({
|
|
@@ -44909,7 +44909,7 @@ const ProjectInfoCard$1 = ({
|
|
|
44909
44909
|
} : void 0,
|
|
44910
44910
|
onUpdate: updatePermission.data?.status.allowed ? openUpdate : void 0
|
|
44911
44911
|
}
|
|
44912
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44912
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$9.ActionMenuPlaceholder, {}) }),
|
|
44913
44913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownAccessGroups, { accessGroups })
|
|
44914
44914
|
] }) })
|
|
44915
44915
|
] }),
|
|
@@ -44995,7 +44995,7 @@ const FullWidthDiv$3 = st.div`
|
|
|
44995
44995
|
width: 100%;
|
|
44996
44996
|
height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
|
|
44997
44997
|
`;
|
|
44998
|
-
const Styled$
|
|
44998
|
+
const Styled$8 = {
|
|
44999
44999
|
FullWidthDiv: FullWidthDiv$3,
|
|
45000
45000
|
CustomCard: CustomCard$3
|
|
45001
45001
|
};
|
|
@@ -45080,7 +45080,7 @@ const XTerminal$2 = ({ endpoint, namespace, podName, container, substractHeight
|
|
|
45080
45080
|
};
|
|
45081
45081
|
}, [terminal, endpoint, namespace, podName, container]);
|
|
45082
45082
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45083
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45083
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.CustomCard, { $isVisible: !isLoading && !error, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45084
45084
|
isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45085
45085
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
|
|
45086
45086
|
] });
|
|
@@ -45091,7 +45091,7 @@ const CustomSelect$3 = st.div`
|
|
|
45091
45091
|
width: 200px;
|
|
45092
45092
|
}
|
|
45093
45093
|
`;
|
|
45094
|
-
const Styled$
|
|
45094
|
+
const Styled$7 = {
|
|
45095
45095
|
CustomSelect: CustomSelect$3
|
|
45096
45096
|
};
|
|
45097
45097
|
|
|
@@ -45102,7 +45102,7 @@ const PodTerminal$1 = ({ cluster, namespace, podName, containers, substractHeigh
|
|
|
45102
45102
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
|
|
45103
45103
|
}
|
|
45104
45104
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45105
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45105
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45106
45106
|
Select,
|
|
45107
45107
|
{
|
|
45108
45108
|
placeholder: "Select container",
|
|
@@ -45154,7 +45154,7 @@ const ProgressContainer = st.div`
|
|
|
45154
45154
|
align-items: center;
|
|
45155
45155
|
gap: 8px;
|
|
45156
45156
|
`;
|
|
45157
|
-
const Styled$
|
|
45157
|
+
const Styled$6 = {
|
|
45158
45158
|
FullWidthDiv: FullWidthDiv$2,
|
|
45159
45159
|
CustomCard: CustomCard$2,
|
|
45160
45160
|
ProgressContainer
|
|
@@ -45286,8 +45286,8 @@ const XTerminal$1 = ({ endpoint, nodeName, profile, substractHeight }) => {
|
|
|
45286
45286
|
};
|
|
45287
45287
|
}, [terminal, endpoint, nodeName, profile]);
|
|
45288
45288
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45289
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45290
|
-
!isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
45289
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45290
|
+
!isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$6.ProgressContainer, { $substractHeight: substractHeight, children: [
|
|
45291
45291
|
isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45292
45292
|
!isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Progress, { type: "circle", percent: progressPercent }),
|
|
45293
45293
|
warmupMessage && /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Text, { children: [
|
|
@@ -45308,7 +45308,7 @@ const CustomSelect$2 = st.div`
|
|
|
45308
45308
|
width: 200px;
|
|
45309
45309
|
}
|
|
45310
45310
|
`;
|
|
45311
|
-
const Styled$
|
|
45311
|
+
const Styled$5 = {
|
|
45312
45312
|
CustomSelect: CustomSelect$2
|
|
45313
45313
|
};
|
|
45314
45314
|
|
|
@@ -45317,7 +45317,7 @@ const NodeTerminal$1 = ({ cluster, nodeName, substractHeight, defaultProfile })
|
|
|
45317
45317
|
const endpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalNode/terminalNode`;
|
|
45318
45318
|
const profiles = ["legacy", "general", "baseline", "netadmin", "restricted", "sysadmin"];
|
|
45319
45319
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45320
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45320
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45321
45321
|
Select,
|
|
45322
45322
|
{
|
|
45323
45323
|
placeholder: "Select profile",
|
|
@@ -45356,7 +45356,7 @@ const FullWidthDiv$1 = st.div`
|
|
|
45356
45356
|
width: 100%;
|
|
45357
45357
|
height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
|
|
45358
45358
|
`;
|
|
45359
|
-
const Styled$
|
|
45359
|
+
const Styled$4 = {
|
|
45360
45360
|
FullWidthDiv: FullWidthDiv$1,
|
|
45361
45361
|
CustomCard: CustomCard$1
|
|
45362
45362
|
};
|
|
@@ -45437,7 +45437,7 @@ const XTerminal = ({ endpoint, namespace, podName, container, substractHeight })
|
|
|
45437
45437
|
};
|
|
45438
45438
|
}, [terminal, endpoint, namespace, podName, container]);
|
|
45439
45439
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45440
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45440
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45441
45441
|
isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45442
45442
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
|
|
45443
45443
|
] });
|
|
@@ -45448,7 +45448,7 @@ const CustomSelect$1 = st.div`
|
|
|
45448
45448
|
width: 200px;
|
|
45449
45449
|
}
|
|
45450
45450
|
`;
|
|
45451
|
-
const Styled$
|
|
45451
|
+
const Styled$3 = {
|
|
45452
45452
|
CustomSelect: CustomSelect$1
|
|
45453
45453
|
};
|
|
45454
45454
|
|
|
@@ -45459,7 +45459,7 @@ const PodLogs$1 = ({ cluster, namespace, podName, containers, substractHeight })
|
|
|
45459
45459
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
|
|
45460
45460
|
}
|
|
45461
45461
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45462
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45462
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$3.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45463
45463
|
Select,
|
|
45464
45464
|
{
|
|
45465
45465
|
placeholder: "Select container",
|
|
@@ -45501,7 +45501,7 @@ const CustomCard = st.div`
|
|
|
45501
45501
|
scrollbar-width: thin;
|
|
45502
45502
|
}
|
|
45503
45503
|
`;
|
|
45504
|
-
const VisibilityContainer = st.div`
|
|
45504
|
+
const VisibilityContainer$2 = st.div`
|
|
45505
45505
|
visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
|
|
45506
45506
|
margin-top: -51px;
|
|
45507
45507
|
`;
|
|
@@ -45509,10 +45509,10 @@ const CursorPointerDiv = st.div`
|
|
|
45509
45509
|
cursor: pointer;
|
|
45510
45510
|
user-select: none;
|
|
45511
45511
|
`;
|
|
45512
|
-
const Styled$
|
|
45512
|
+
const Styled$2 = {
|
|
45513
45513
|
FullWidthDiv,
|
|
45514
45514
|
CustomCard,
|
|
45515
|
-
VisibilityContainer,
|
|
45515
|
+
VisibilityContainer: VisibilityContainer$2,
|
|
45516
45516
|
CursorPointerDiv
|
|
45517
45517
|
};
|
|
45518
45518
|
|
|
@@ -45583,9 +45583,9 @@ const MonacoEditor = ({
|
|
|
45583
45583
|
};
|
|
45584
45584
|
}, [endpoint, namespace, podName, container, previous]);
|
|
45585
45585
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45586
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45586
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
|
|
45587
45587
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45588
|
-
Styled$
|
|
45588
|
+
Styled$2.CursorPointerDiv,
|
|
45589
45589
|
{
|
|
45590
45590
|
onClick: () => {
|
|
45591
45591
|
if (isPaused) {
|
|
@@ -45610,7 +45610,7 @@ const MonacoEditor = ({
|
|
|
45610
45610
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isPaused ? "Not streaming events" : "Streaming events" })
|
|
45611
45611
|
] }) }),
|
|
45612
45612
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 16, $samespace: true }),
|
|
45613
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45613
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.CustomCard, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.FullWidthDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45614
45614
|
Ft,
|
|
45615
45615
|
{
|
|
45616
45616
|
defaultLanguage: "plaintext",
|
|
@@ -45641,7 +45641,7 @@ const CustomSelect = st.div`
|
|
|
45641
45641
|
width: 200px;
|
|
45642
45642
|
}
|
|
45643
45643
|
`;
|
|
45644
|
-
const Styled = {
|
|
45644
|
+
const Styled$1 = {
|
|
45645
45645
|
TopRowContent,
|
|
45646
45646
|
CustomSelect
|
|
45647
45647
|
};
|
|
@@ -45687,8 +45687,8 @@ const PodLogsMonaco = ({
|
|
|
45687
45687
|
}
|
|
45688
45688
|
];
|
|
45689
45689
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45690
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
|
|
45691
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45690
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
|
|
45691
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45692
45692
|
Select,
|
|
45693
45693
|
{
|
|
45694
45694
|
placeholder: "Select container",
|
|
@@ -45703,7 +45703,7 @@ const PodLogsMonaco = ({
|
|
|
45703
45703
|
}
|
|
45704
45704
|
}
|
|
45705
45705
|
) }),
|
|
45706
|
-
currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45706
|
+
currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45707
45707
|
Select,
|
|
45708
45708
|
{
|
|
45709
45709
|
placeholder: "Select current/previous",
|
|
@@ -45848,8 +45848,14 @@ const parsePartsOfUrl = ({
|
|
|
45848
45848
|
}) => {
|
|
45849
45849
|
return prepareTemplate({ template, replaceValues });
|
|
45850
45850
|
};
|
|
45851
|
-
const parseMutliqueryText = ({
|
|
45852
|
-
|
|
45851
|
+
const parseMutliqueryText = ({
|
|
45852
|
+
text,
|
|
45853
|
+
multiQueryData,
|
|
45854
|
+
customFallback
|
|
45855
|
+
}) => {
|
|
45856
|
+
if (!text) {
|
|
45857
|
+
return "";
|
|
45858
|
+
}
|
|
45853
45859
|
return text.replace(
|
|
45854
45860
|
/\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\](?:\[\s*['"]([^'"]+)['"]\s*\])?\}/g,
|
|
45855
45861
|
(_match, reqIndexStr, rawPath, fallback) => {
|
|
@@ -45859,9 +45865,12 @@ const parseMutliqueryText = ({ text, multiQueryData }) => {
|
|
|
45859
45865
|
(m) => m[1]
|
|
45860
45866
|
);
|
|
45861
45867
|
const value = _$1.get(multiQueryData[`req${reqIndex}`], path, fallback !== void 0 ? fallback : void 0);
|
|
45862
|
-
if (value == null) {
|
|
45868
|
+
if (value == null && !customFallback) {
|
|
45863
45869
|
return fallback ?? "Undefined with no fallback";
|
|
45864
45870
|
}
|
|
45871
|
+
if (customFallback && (value === void 0 || value === null)) {
|
|
45872
|
+
return customFallback;
|
|
45873
|
+
}
|
|
45865
45874
|
return String(value);
|
|
45866
45875
|
} catch {
|
|
45867
45876
|
return _match;
|
|
@@ -45871,21 +45880,28 @@ const parseMutliqueryText = ({ text, multiQueryData }) => {
|
|
|
45871
45880
|
};
|
|
45872
45881
|
const parseJsonPathTemplate = ({
|
|
45873
45882
|
text,
|
|
45874
|
-
multiQueryData
|
|
45883
|
+
multiQueryData,
|
|
45884
|
+
customFallback
|
|
45875
45885
|
}) => {
|
|
45876
45886
|
if (!text) return "";
|
|
45877
|
-
const placeholderRegex = /\{reqsJsonPath\[(\d+)\]\s*\[\s*(['"])([
|
|
45887
|
+
const placeholderRegex = /\{reqsJsonPath\[(\d+)\]\s*\[\s*(['"])([\s\S]*?)\2\s*\](?:\s*\[\s*(['"])([\s\S]*?)\4\s*\])?\}/g;
|
|
45878
45888
|
return text.replace(
|
|
45879
45889
|
placeholderRegex,
|
|
45880
45890
|
(match, reqIndexStr, _quote, jsonPathExpr, _smth, fallback = "Undefined with no fallback") => {
|
|
45881
45891
|
try {
|
|
45882
45892
|
const reqIndex = parseInt(reqIndexStr, 10);
|
|
45883
45893
|
const jsonRoot = multiQueryData[`req${reqIndex}`];
|
|
45884
|
-
if (jsonRoot === void 0) {
|
|
45894
|
+
if (jsonRoot === void 0 && !customFallback) {
|
|
45885
45895
|
return fallback;
|
|
45886
45896
|
}
|
|
45897
|
+
if (jsonRoot === void 0 && customFallback) {
|
|
45898
|
+
return customFallback;
|
|
45899
|
+
}
|
|
45887
45900
|
const results = jp.query(jsonRoot, `$${jsonPathExpr}`);
|
|
45888
45901
|
if (results.length === 0 || results[0] == null || results[0] === void 0) {
|
|
45902
|
+
if (customFallback) {
|
|
45903
|
+
return customFallback;
|
|
45904
|
+
}
|
|
45889
45905
|
return fallback;
|
|
45890
45906
|
}
|
|
45891
45907
|
return String(results[0]);
|
|
@@ -45895,6 +45911,21 @@ const parseJsonPathTemplate = ({
|
|
|
45895
45911
|
}
|
|
45896
45912
|
);
|
|
45897
45913
|
};
|
|
45914
|
+
const parseWithoutPartsOfUrl = ({
|
|
45915
|
+
text,
|
|
45916
|
+
multiQueryData,
|
|
45917
|
+
customFallback
|
|
45918
|
+
}) => {
|
|
45919
|
+
return parseJsonPathTemplate({
|
|
45920
|
+
text: parseMutliqueryText({
|
|
45921
|
+
text,
|
|
45922
|
+
multiQueryData,
|
|
45923
|
+
customFallback
|
|
45924
|
+
}),
|
|
45925
|
+
multiQueryData,
|
|
45926
|
+
customFallback
|
|
45927
|
+
});
|
|
45928
|
+
};
|
|
45898
45929
|
const parseAll = ({
|
|
45899
45930
|
text,
|
|
45900
45931
|
replaceValues,
|
|
@@ -46526,6 +46557,35 @@ const YamlEditorSingleton = ({
|
|
|
46526
46557
|
] });
|
|
46527
46558
|
};
|
|
46528
46559
|
|
|
46560
|
+
const VisibilityContainer$1 = st.div`
|
|
46561
|
+
display: ${({ $hidden }) => $hidden ? "none" : "block"};
|
|
46562
|
+
`;
|
|
46563
|
+
const Styled = {
|
|
46564
|
+
VisibilityContainer: VisibilityContainer$1
|
|
46565
|
+
};
|
|
46566
|
+
|
|
46567
|
+
const VisibilityContainer = ({
|
|
46568
|
+
data,
|
|
46569
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46570
|
+
children
|
|
46571
|
+
}) => {
|
|
46572
|
+
const { data: multiQueryData, isLoading: isMultiqueryLoading } = useMultiQuery();
|
|
46573
|
+
const {
|
|
46574
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46575
|
+
id,
|
|
46576
|
+
value
|
|
46577
|
+
} = data;
|
|
46578
|
+
const valuePrepared = parseWithoutPartsOfUrl({
|
|
46579
|
+
text: value,
|
|
46580
|
+
multiQueryData,
|
|
46581
|
+
customFallback: "~undefined-value~"
|
|
46582
|
+
});
|
|
46583
|
+
if (isMultiqueryLoading) {
|
|
46584
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
|
|
46585
|
+
}
|
|
46586
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.VisibilityContainer, { $hidden: valuePrepared === "~undefined-value~", children });
|
|
46587
|
+
};
|
|
46588
|
+
|
|
46529
46589
|
const DynamicComponents = {
|
|
46530
46590
|
DefaultDiv,
|
|
46531
46591
|
antdText: AntdText,
|
|
@@ -46549,7 +46609,8 @@ const DynamicComponents = {
|
|
|
46549
46609
|
PodTerminal,
|
|
46550
46610
|
NodeTerminal,
|
|
46551
46611
|
PodLogs,
|
|
46552
|
-
YamlEditorSingleton
|
|
46612
|
+
YamlEditorSingleton,
|
|
46613
|
+
VisibilityContainer
|
|
46553
46614
|
};
|
|
46554
46615
|
|
|
46555
46616
|
const prepareUrlsToFetchForDynamicRenderer = ({
|