@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.3 → 1.5.0-alpha.5
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/{index-D0cUc0Rp.mjs → index-BmpJg0ct.mjs} +2 -2
- package/dist/{index-D0cUc0Rp.mjs.map → index-BmpJg0ct.mjs.map} +1 -1
- package/dist/{index-BsjtTIr1.mjs → index-gq5MnduZ.mjs} +192 -128
- package/dist/index-gq5MnduZ.mjs.map +1 -0
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +190 -126
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/styled.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/styled.d.ts +8 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/PodTerminal.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/utils.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/types/Terminals.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-BsjtTIr1.mjs.map +0 -1
|
@@ -1578,7 +1578,7 @@ const CustomTreeProvider = styled.div`
|
|
|
1578
1578
|
justify-content: center;
|
|
1579
1579
|
}
|
|
1580
1580
|
`;
|
|
1581
|
-
const Styled$
|
|
1581
|
+
const Styled$N = {
|
|
1582
1582
|
CustomTreeProvider
|
|
1583
1583
|
};
|
|
1584
1584
|
|
|
@@ -1643,7 +1643,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
|
|
|
1643
1643
|
});
|
|
1644
1644
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1645
1645
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Search$1, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
|
|
1646
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
1646
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$N.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1647
1647
|
Tree,
|
|
1648
1648
|
{
|
|
1649
1649
|
treeData: loop(treeData),
|
|
@@ -8258,14 +8258,14 @@ const ContentContainer = styled.div`
|
|
|
8258
8258
|
display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
|
|
8259
8259
|
flex-flow: ${({ $flexFlow }) => $flexFlow};
|
|
8260
8260
|
`;
|
|
8261
|
-
const Styled$
|
|
8261
|
+
const Styled$M = {
|
|
8262
8262
|
ContentContainer
|
|
8263
8263
|
};
|
|
8264
8264
|
|
|
8265
8265
|
const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
|
|
8266
8266
|
const { token } = theme.useToken();
|
|
8267
8267
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8268
|
-
Styled$
|
|
8268
|
+
Styled$M.ContentContainer,
|
|
8269
8269
|
{
|
|
8270
8270
|
$flexGrow: flexGrow,
|
|
8271
8271
|
$bgColor: token.colorBgContainer,
|
|
@@ -8326,13 +8326,13 @@ const UncontrolledSelect$1 = styled(Select)`
|
|
|
8326
8326
|
padding-inline: 8px;
|
|
8327
8327
|
}
|
|
8328
8328
|
`;
|
|
8329
|
-
const Styled$
|
|
8329
|
+
const Styled$L = {
|
|
8330
8330
|
UncontrolledSelect: UncontrolledSelect$1
|
|
8331
8331
|
};
|
|
8332
8332
|
|
|
8333
8333
|
const UncontrolledSelect = (props) => {
|
|
8334
8334
|
const { isCursorPointer } = props;
|
|
8335
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8335
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$L.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
|
|
8336
8336
|
};
|
|
8337
8337
|
|
|
8338
8338
|
const CustomSelect$5 = styled(Select)`
|
|
@@ -8380,13 +8380,13 @@ const CustomSelect$5 = styled(Select)`
|
|
|
8380
8380
|
margin-block: 0 !important;
|
|
8381
8381
|
}
|
|
8382
8382
|
`;
|
|
8383
|
-
const Styled$
|
|
8383
|
+
const Styled$K = {
|
|
8384
8384
|
CustomSelect: CustomSelect$5
|
|
8385
8385
|
};
|
|
8386
8386
|
|
|
8387
8387
|
const CustomSelect$4 = (props) => {
|
|
8388
8388
|
const { paddingContainerEnd, ...rest } = props;
|
|
8389
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8389
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$K.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
|
|
8390
8390
|
};
|
|
8391
8391
|
|
|
8392
8392
|
const CursorPointerTag = styled(Tag)`
|
|
@@ -8536,7 +8536,7 @@ const Abbr$2 = styled.span`
|
|
|
8536
8536
|
height: min-content;
|
|
8537
8537
|
margin-right: 4px;
|
|
8538
8538
|
`;
|
|
8539
|
-
const Styled$
|
|
8539
|
+
const Styled$J = {
|
|
8540
8540
|
Abbr: Abbr$2
|
|
8541
8541
|
};
|
|
8542
8542
|
|
|
@@ -8576,7 +8576,7 @@ const ResourceLink = ({
|
|
|
8576
8576
|
baseFactoriesMapping
|
|
8577
8577
|
});
|
|
8578
8578
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
8579
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8579
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$J.Abbr, { $bgColor: bgColor, children: abbr }),
|
|
8580
8580
|
resourceLink ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8581
8581
|
Typography.Link,
|
|
8582
8582
|
{
|
|
@@ -9660,7 +9660,7 @@ const NoWrapContainer = styled.div`
|
|
|
9660
9660
|
flex-wrap: nowrap !important;
|
|
9661
9661
|
}
|
|
9662
9662
|
`;
|
|
9663
|
-
const Styled$
|
|
9663
|
+
const Styled$I = {
|
|
9664
9664
|
PositionRelativeContainer,
|
|
9665
9665
|
FullWidthContainer,
|
|
9666
9666
|
NoWrapContainer
|
|
@@ -9703,9 +9703,9 @@ const CollapsibleBreadcrumb = ({ items }) => {
|
|
|
9703
9703
|
};
|
|
9704
9704
|
return [firstItem, ellipsisItem, lastItem];
|
|
9705
9705
|
};
|
|
9706
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
9707
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
9708
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
9706
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$I.PositionRelativeContainer, { children: [
|
|
9707
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
|
|
9708
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
|
|
9709
9709
|
] });
|
|
9710
9710
|
};
|
|
9711
9711
|
|
|
@@ -9713,12 +9713,12 @@ const HeightDiv$1 = styled.div`
|
|
|
9713
9713
|
min-height: 22px;
|
|
9714
9714
|
width: 100%;
|
|
9715
9715
|
`;
|
|
9716
|
-
const Styled$
|
|
9716
|
+
const Styled$H = {
|
|
9717
9717
|
HeightDiv: HeightDiv$1
|
|
9718
9718
|
};
|
|
9719
9719
|
|
|
9720
9720
|
const ManageableBreadcrumbs = ({ data }) => {
|
|
9721
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
9721
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
|
|
9722
9722
|
};
|
|
9723
9723
|
|
|
9724
9724
|
const prepareTemplate = ({
|
|
@@ -9777,7 +9777,7 @@ const HeightDiv = styled.div`
|
|
|
9777
9777
|
min-height: 22px;
|
|
9778
9778
|
width: 100%;
|
|
9779
9779
|
`;
|
|
9780
|
-
const Styled$
|
|
9780
|
+
const Styled$G = {
|
|
9781
9781
|
HeightDiv
|
|
9782
9782
|
};
|
|
9783
9783
|
|
|
@@ -9807,7 +9807,7 @@ const ManageableBreadcrumbsProvider = ({
|
|
|
9807
9807
|
return null;
|
|
9808
9808
|
}
|
|
9809
9809
|
if (rawDataLoading) {
|
|
9810
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
9810
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
9811
9811
|
}
|
|
9812
9812
|
if (!rawData) {
|
|
9813
9813
|
return null;
|
|
@@ -9823,7 +9823,7 @@ const ManageableBreadcrumbsProvider = ({
|
|
|
9823
9823
|
fallbackIdToCompare
|
|
9824
9824
|
});
|
|
9825
9825
|
if (!result) {
|
|
9826
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
9826
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.HeightDiv, {});
|
|
9827
9827
|
}
|
|
9828
9828
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result }, JSON.stringify(idToCompare));
|
|
9829
9829
|
};
|
|
@@ -9851,7 +9851,7 @@ const CustomMenu = styled(Menu)`
|
|
|
9851
9851
|
margin: 0 !important;
|
|
9852
9852
|
}
|
|
9853
9853
|
`;
|
|
9854
|
-
const Styled$
|
|
9854
|
+
const Styled$F = {
|
|
9855
9855
|
CustomMenu
|
|
9856
9856
|
};
|
|
9857
9857
|
|
|
@@ -9878,7 +9878,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
|
|
|
9878
9878
|
setSelectedKeys(data.selectedKeys);
|
|
9879
9879
|
}, [data.selectedKeys]);
|
|
9880
9880
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9881
|
-
Styled$
|
|
9881
|
+
Styled$F.CustomMenu,
|
|
9882
9882
|
{
|
|
9883
9883
|
selectedKeys,
|
|
9884
9884
|
onSelect: () => {
|
|
@@ -34452,7 +34452,7 @@ const ShortenedText = styled.div`
|
|
|
34452
34452
|
white-space: nowrap;
|
|
34453
34453
|
text-overflow: ellipsis;
|
|
34454
34454
|
`;
|
|
34455
|
-
const Styled$
|
|
34455
|
+
const Styled$E = {
|
|
34456
34456
|
ShortenedText
|
|
34457
34457
|
};
|
|
34458
34458
|
|
|
@@ -34461,7 +34461,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
|
|
|
34461
34461
|
const trimmedText = text.substring(0, trimLength);
|
|
34462
34462
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, placement: "top", children: trimmedText });
|
|
34463
34463
|
}
|
|
34464
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
34464
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.ShortenedText, { $maxWidth: maxWidth, children: text }) });
|
|
34465
34465
|
};
|
|
34466
34466
|
|
|
34467
34467
|
const FilterDropdown = ({
|
|
@@ -34612,16 +34612,16 @@ const TooltipTag = styled(Tag)`
|
|
|
34612
34612
|
overflow: hidden;
|
|
34613
34613
|
text-overflow: ellipsis;
|
|
34614
34614
|
`;
|
|
34615
|
-
const Styled$
|
|
34615
|
+
const Styled$D = {
|
|
34616
34616
|
TableTag,
|
|
34617
34617
|
TooltipTagsContainer,
|
|
34618
34618
|
TooltipTag
|
|
34619
34619
|
};
|
|
34620
34620
|
|
|
34621
34621
|
const TrimmedTags = ({ tags, trimLength }) => {
|
|
34622
|
-
const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
34622
|
+
const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.TableTag, { children: tag }, tag));
|
|
34623
34623
|
const popoverTheme = { components: { Popover: { zIndexPopup: 2100 } } };
|
|
34624
|
-
const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
34624
|
+
const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.TooltipTagsContainer, { vertical: true, gap: 4, children: tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.TooltipTag, { children: tag }, tag)) });
|
|
34625
34625
|
if (trimLength && trimLength < tags.length) {
|
|
34626
34626
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { wrap: "nowrap", gap: "4px", children: [
|
|
34627
34627
|
renderTableTags(tags.slice(0, trimLength)),
|
|
@@ -34630,7 +34630,7 @@ const TrimmedTags = ({ tags, trimLength }) => {
|
|
|
34630
34630
|
{
|
|
34631
34631
|
content: renderTooltipTags(tags.slice(trimLength)),
|
|
34632
34632
|
styles: { root: { maxWidth: "min(95vw, 900px)" } },
|
|
34633
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
34633
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$D.TableTag, { children: [
|
|
34634
34634
|
"+",
|
|
34635
34635
|
tags.length - trimLength
|
|
34636
34636
|
] }, "more")
|
|
@@ -36046,6 +36046,7 @@ const PodTerminal$1 = ({
|
|
|
36046
36046
|
cluster,
|
|
36047
36047
|
namespace,
|
|
36048
36048
|
podName,
|
|
36049
|
+
containerName,
|
|
36049
36050
|
substractHeight,
|
|
36050
36051
|
...props
|
|
36051
36052
|
} = data;
|
|
@@ -36057,6 +36058,7 @@ const PodTerminal$1 = ({
|
|
|
36057
36058
|
const clusterPrepared = parseAll({ text: cluster, replaceValues, multiQueryData });
|
|
36058
36059
|
const namespacePrepared = parseAll({ text: namespace, replaceValues, multiQueryData });
|
|
36059
36060
|
const podNamePrepared = parseAll({ text: podName, replaceValues, multiQueryData });
|
|
36061
|
+
const containerNamePrepared = containerName ? parseAll({ text: containerName, replaceValues, multiQueryData }) : void 0;
|
|
36060
36062
|
const {
|
|
36061
36063
|
data: podInfoList,
|
|
36062
36064
|
isError: isPodInfoError,
|
|
@@ -36096,6 +36098,7 @@ const PodTerminal$1 = ({
|
|
|
36096
36098
|
cluster: clusterPrepared,
|
|
36097
36099
|
namespace: namespacePrepared,
|
|
36098
36100
|
podName: podNamePrepared,
|
|
36101
|
+
containerName: containerNamePrepared,
|
|
36099
36102
|
containers,
|
|
36100
36103
|
substractHeight: substractHeight || 340,
|
|
36101
36104
|
...props
|
|
@@ -43766,7 +43769,7 @@ const BigText$1 = styled.div`
|
|
|
43766
43769
|
font-size: 16px;
|
|
43767
43770
|
line-height: 24px;
|
|
43768
43771
|
`;
|
|
43769
|
-
const Styled$
|
|
43772
|
+
const Styled$C = {
|
|
43770
43773
|
BorderRadiusContainer: BorderRadiusContainer$1,
|
|
43771
43774
|
ControlsRowContainer: ControlsRowContainer$1,
|
|
43772
43775
|
BigText: BigText$1
|
|
@@ -43996,7 +43999,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
43996
43999
|
};
|
|
43997
44000
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
43998
44001
|
contextHolder,
|
|
43999
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44002
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44000
44003
|
Ft$1,
|
|
44001
44004
|
{
|
|
44002
44005
|
defaultLanguage: "yaml",
|
|
@@ -44021,7 +44024,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44021
44024
|
}
|
|
44022
44025
|
}
|
|
44023
44026
|
) }),
|
|
44024
|
-
!readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44027
|
+
!readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
44025
44028
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, disabled: canEdit === false, children: "Submit" }),
|
|
44026
44029
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
|
|
44027
44030
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: handleReload, children: "Reload" })
|
|
@@ -44032,7 +44035,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44032
44035
|
open: !!error,
|
|
44033
44036
|
onOk: () => setError(void 0),
|
|
44034
44037
|
onCancel: () => setError(void 0),
|
|
44035
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44038
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BigText, { children: "Error!" }) }),
|
|
44036
44039
|
cancelButtonProps: { style: { display: "none" } },
|
|
44037
44040
|
centered: true,
|
|
44038
44041
|
styles: {
|
|
@@ -44193,7 +44196,7 @@ const YamlEditorSingleton = ({
|
|
|
44193
44196
|
const VisibilityContainer$1 = styled.div`
|
|
44194
44197
|
display: ${({ $hidden }) => $hidden ? "none" : "block"};
|
|
44195
44198
|
`;
|
|
44196
|
-
const Styled$
|
|
44199
|
+
const Styled$B = {
|
|
44197
44200
|
VisibilityContainer: VisibilityContainer$1
|
|
44198
44201
|
};
|
|
44199
44202
|
|
|
@@ -44243,7 +44246,7 @@ const VisibilityContainer = ({
|
|
|
44243
44246
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
|
|
44244
44247
|
}
|
|
44245
44248
|
const shouldAutoHide = !criteria && (!valuePrepared || valuePrepared === "~undefined-value~");
|
|
44246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44249
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
|
|
44247
44250
|
};
|
|
44248
44251
|
|
|
44249
44252
|
const unknownToString = (value) => {
|
|
@@ -44496,7 +44499,7 @@ const Content$1 = styled.div`
|
|
|
44496
44499
|
display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
|
|
44497
44500
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
44498
44501
|
`;
|
|
44499
|
-
const Styled$
|
|
44502
|
+
const Styled$A = {
|
|
44500
44503
|
Container: Container$3,
|
|
44501
44504
|
TitleBar,
|
|
44502
44505
|
Content: Content$1
|
|
@@ -44523,14 +44526,14 @@ const CustomCollapse = ({
|
|
|
44523
44526
|
}
|
|
44524
44527
|
};
|
|
44525
44528
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44526
|
-
Styled$
|
|
44529
|
+
Styled$A.Container,
|
|
44527
44530
|
{
|
|
44528
44531
|
$designNewLayout: designNewLayout,
|
|
44529
44532
|
$borderColor: token.colorBorder,
|
|
44530
44533
|
$bgColor: token.colorBgContainer,
|
|
44531
44534
|
children: [
|
|
44532
44535
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44533
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44536
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$A.TitleBar, { onClick: () => toggleCollapse(), children: [
|
|
44534
44537
|
!designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
|
|
44535
44538
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
|
|
44536
44539
|
designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
|
|
@@ -44541,7 +44544,7 @@ const CustomCollapse = ({
|
|
|
44541
44544
|
persistedCheckbox
|
|
44542
44545
|
] })
|
|
44543
44546
|
] }),
|
|
44544
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44547
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
|
|
44545
44548
|
]
|
|
44546
44549
|
}
|
|
44547
44550
|
);
|
|
@@ -44621,13 +44624,13 @@ const CustomSizeTitle = styled.div`
|
|
|
44621
44624
|
const Content = styled.div`
|
|
44622
44625
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
44623
44626
|
`;
|
|
44624
|
-
const Styled$
|
|
44627
|
+
const Styled$z = {
|
|
44625
44628
|
Content
|
|
44626
44629
|
};
|
|
44627
44630
|
|
|
44628
44631
|
const ArrayInsideContainer = ({ children }) => {
|
|
44629
44632
|
const designNewLayout = useDesignNewLayout();
|
|
44630
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44633
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.Content, { $designNewLayout: designNewLayout, children });
|
|
44631
44634
|
};
|
|
44632
44635
|
|
|
44633
44636
|
const includesPath = (haystack, needle) => haystack.some((h) => h.length === needle.length && h.every((seg, i) => seg === String(needle[i])));
|
|
@@ -44650,14 +44653,14 @@ const HeightContainer = styled.div`
|
|
|
44650
44653
|
height: ${({ $height }) => $height}px;
|
|
44651
44654
|
`;
|
|
44652
44655
|
|
|
44653
|
-
const Styled$
|
|
44656
|
+
const Styled$y = {
|
|
44654
44657
|
BulbIcon: styled(BulbOutlined)`
|
|
44655
44658
|
margin-left: 6px;
|
|
44656
44659
|
`
|
|
44657
44660
|
};
|
|
44658
44661
|
|
|
44659
44662
|
const ExampleTooltipIcon = ({ tooltip }) => {
|
|
44660
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44663
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.BulbIcon, {}) });
|
|
44661
44664
|
};
|
|
44662
44665
|
|
|
44663
44666
|
const NullToggleButton = ({ isNull, onSetNull, onClear, disabled }) => {
|
|
@@ -44814,7 +44817,7 @@ const LabelsEditModal = ({
|
|
|
44814
44817
|
const ResetedFormList$3 = styled(Form.List)`
|
|
44815
44818
|
margin-bottom: 8px;
|
|
44816
44819
|
`;
|
|
44817
|
-
const Styled$
|
|
44820
|
+
const Styled$x = {
|
|
44818
44821
|
ResetedFormList: ResetedFormList$3
|
|
44819
44822
|
};
|
|
44820
44823
|
|
|
@@ -44905,7 +44908,7 @@ const TaintsEditModal = ({
|
|
|
44905
44908
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[3], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
44906
44909
|
] }),
|
|
44907
44910
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
44908
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44911
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
44909
44912
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
44910
44913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44911
44914
|
ResetedFormItem$1,
|
|
@@ -44966,7 +44969,7 @@ const TaintsEditModal = ({
|
|
|
44966
44969
|
const ResetedFormList$2 = styled(Form.List)`
|
|
44967
44970
|
margin-bottom: 8px;
|
|
44968
44971
|
`;
|
|
44969
|
-
const Styled$
|
|
44972
|
+
const Styled$w = {
|
|
44970
44973
|
ResetedFormList: ResetedFormList$2
|
|
44971
44974
|
};
|
|
44972
44975
|
|
|
@@ -45067,7 +45070,7 @@ const TolerationsEditModal = ({
|
|
|
45067
45070
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[4], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
45068
45071
|
] }),
|
|
45069
45072
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
45070
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45073
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45071
45074
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
45072
45075
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45073
45076
|
ResetedFormItem$1,
|
|
@@ -45159,7 +45162,7 @@ const TolerationsEditModal = ({
|
|
|
45159
45162
|
const ResetedFormList$1 = styled(Form.List)`
|
|
45160
45163
|
margin-bottom: 8px;
|
|
45161
45164
|
`;
|
|
45162
|
-
const Styled$
|
|
45165
|
+
const Styled$v = {
|
|
45163
45166
|
ResetedFormList: ResetedFormList$1
|
|
45164
45167
|
};
|
|
45165
45168
|
|
|
@@ -45255,7 +45258,7 @@ const AnnotationsEditModal = ({
|
|
|
45255
45258
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
45256
45259
|
] }),
|
|
45257
45260
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
45258
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45261
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45259
45262
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
45260
45263
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45261
45264
|
ResetedFormItem$1,
|
|
@@ -47333,7 +47336,7 @@ const NotificationOverrides = createGlobalStyle`
|
|
|
47333
47336
|
margin-bottom: 0 !important;
|
|
47334
47337
|
}
|
|
47335
47338
|
`;
|
|
47336
|
-
const Styled$
|
|
47339
|
+
const Styled$u = {
|
|
47337
47340
|
NoSelect,
|
|
47338
47341
|
DisabledInput,
|
|
47339
47342
|
DisabledTextArea,
|
|
@@ -47451,8 +47454,8 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47451
47454
|
const shownValue = useNiceLooking ? value2 : effectiveHidden ? "" : value2;
|
|
47452
47455
|
const resolvedMultilineRows = resolveMultilineRows(value2, multilineRows);
|
|
47453
47456
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 8, ...flexProps, children: [
|
|
47454
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47455
|
-
Styled$
|
|
47457
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden: effectiveHidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47458
|
+
Styled$u.DisabledInput,
|
|
47456
47459
|
{
|
|
47457
47460
|
$hidden: effectiveHidden,
|
|
47458
47461
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47460,7 +47463,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47460
47463
|
readOnly: true
|
|
47461
47464
|
}
|
|
47462
47465
|
) }) : multiline ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47463
|
-
Styled$
|
|
47466
|
+
Styled$u.DisabledTextArea,
|
|
47464
47467
|
{
|
|
47465
47468
|
$hidden: effectiveHidden,
|
|
47466
47469
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47469,7 +47472,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47469
47472
|
readOnly: true
|
|
47470
47473
|
}
|
|
47471
47474
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47472
|
-
Styled$
|
|
47475
|
+
Styled$u.DisabledInput,
|
|
47473
47476
|
{
|
|
47474
47477
|
$hidden: effectiveHidden,
|
|
47475
47478
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47492,13 +47495,13 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47492
47495
|
const secretsEntries = objectToRender ? Object.entries(objectToRender) : [];
|
|
47493
47496
|
if (secretsEntries.length === 0) {
|
|
47494
47497
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47495
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47498
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47496
47499
|
emptyTextPrepared && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { style: textStyle, children: emptyTextPrepared }),
|
|
47497
47500
|
contextHolder
|
|
47498
47501
|
] });
|
|
47499
47502
|
}
|
|
47500
47503
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47501
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47504
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47502
47505
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: secretsEntries.map(([key, rawValue]) => {
|
|
47503
47506
|
const parsedValue = parseAll({
|
|
47504
47507
|
text: typeof rawValue === "string" ? rawValue : String(rawValue),
|
|
@@ -47524,7 +47527,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47524
47527
|
] });
|
|
47525
47528
|
}
|
|
47526
47529
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47527
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47530
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47528
47531
|
renderSecretField({
|
|
47529
47532
|
value: decodedText,
|
|
47530
47533
|
isHidden: hidden,
|
|
@@ -47547,7 +47550,7 @@ const RoundSpan = styled.span`
|
|
|
47547
47550
|
letter-spacing: 0.02em;
|
|
47548
47551
|
box-sizing: content-box;
|
|
47549
47552
|
`;
|
|
47550
|
-
const Styled$
|
|
47553
|
+
const Styled$t = {
|
|
47551
47554
|
RoundSpan
|
|
47552
47555
|
};
|
|
47553
47556
|
|
|
@@ -47584,7 +47587,7 @@ const ResourceBadge = ({ data }) => {
|
|
|
47584
47587
|
multiQueryData
|
|
47585
47588
|
}) : getUppercase(parsedValue);
|
|
47586
47589
|
const bgColor = hslFromString(parsedValue, theme);
|
|
47587
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47590
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
|
|
47588
47591
|
};
|
|
47589
47592
|
|
|
47590
47593
|
const serializeLabelsWithNoEncoding = (input) => {
|
|
@@ -78291,7 +78294,7 @@ const TitleSelect = styled(Select)`
|
|
|
78291
78294
|
}
|
|
78292
78295
|
}
|
|
78293
78296
|
`;
|
|
78294
|
-
const Styled$
|
|
78297
|
+
const Styled$s = {
|
|
78295
78298
|
TitleSelect
|
|
78296
78299
|
};
|
|
78297
78300
|
|
|
@@ -78376,7 +78379,7 @@ const DropdownRedirect = ({
|
|
|
78376
78379
|
}
|
|
78377
78380
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
78378
78381
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
78379
|
-
Styled$
|
|
78382
|
+
Styled$s.TitleSelect,
|
|
78380
78383
|
{
|
|
78381
78384
|
value: currentValuePrepared,
|
|
78382
78385
|
onChange: handleChange,
|
|
@@ -78889,7 +78892,7 @@ const TolerationsModal = ({
|
|
|
78889
78892
|
};
|
|
78890
78893
|
|
|
78891
78894
|
const LazyEnrichedTableModal = lazy(
|
|
78892
|
-
() => import('./index-
|
|
78895
|
+
() => import('./index-BmpJg0ct.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
78893
78896
|
);
|
|
78894
78897
|
const renderActiveType = (activeType, extraProps) => {
|
|
78895
78898
|
if (!activeType) return null;
|
|
@@ -78963,7 +78966,7 @@ const CardIcon = styled.div`
|
|
|
78963
78966
|
const HiddenContainer = styled.div`
|
|
78964
78967
|
display: ${({ $isHidden }) => $isHidden ? "none" : "auto"};
|
|
78965
78968
|
`;
|
|
78966
|
-
const Styled$
|
|
78969
|
+
const Styled$r = {
|
|
78967
78970
|
Card: Card$1,
|
|
78968
78971
|
CardTitle,
|
|
78969
78972
|
CardNumber,
|
|
@@ -79042,7 +79045,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79042
79045
|
const jsonRoot = multiQueryData[`req${counter.props.reqIndex}`];
|
|
79043
79046
|
if (jsonRoot === void 0) {
|
|
79044
79047
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79045
|
-
Styled$
|
|
79048
|
+
Styled$r.Card,
|
|
79046
79049
|
{
|
|
79047
79050
|
$colorBorder: token.colorBorder,
|
|
79048
79051
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79057,15 +79060,15 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79057
79060
|
children: [
|
|
79058
79061
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79059
79062
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79060
|
-
Styled$
|
|
79063
|
+
Styled$r.CardTitle,
|
|
79061
79064
|
{
|
|
79062
79065
|
$colorTextDescription: token.colorTextDescription,
|
|
79063
79066
|
children: `Counter: ${id}: No root for json path`
|
|
79064
79067
|
}
|
|
79065
79068
|
),
|
|
79066
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79069
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: "-" })
|
|
79067
79070
|
] }),
|
|
79068
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79071
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79069
79072
|
]
|
|
79070
79073
|
}
|
|
79071
79074
|
);
|
|
@@ -79075,7 +79078,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79075
79078
|
const { counter: counterToDisplay, error: errorParsingCounter } = counter.type === "item" ? getItemCounterItemsInside(anythingForNow) : getKeyCounterItemsInside(anythingForNow);
|
|
79076
79079
|
if (errorParsingCounter) {
|
|
79077
79080
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79078
|
-
Styled$
|
|
79081
|
+
Styled$r.Card,
|
|
79079
79082
|
{
|
|
79080
79083
|
$colorBorder: token.colorBorder,
|
|
79081
79084
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79089,10 +79092,10 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79089
79092
|
},
|
|
79090
79093
|
children: [
|
|
79091
79094
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79092
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79093
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardTitle, { $colorTextDescription: token.colorTextDescription, children: errorParsingCounter }),
|
|
79096
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: "-" })
|
|
79094
79097
|
] }),
|
|
79095
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79098
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79096
79099
|
]
|
|
79097
79100
|
}
|
|
79098
79101
|
);
|
|
@@ -79100,7 +79103,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79100
79103
|
const parsedText = parseAll({ text, replaceValues, multiQueryData });
|
|
79101
79104
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
79102
79105
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79103
|
-
Styled$
|
|
79106
|
+
Styled$r.Card,
|
|
79104
79107
|
{
|
|
79105
79108
|
$colorBorder: token.colorBorder,
|
|
79106
79109
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79114,14 +79117,14 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79114
79117
|
},
|
|
79115
79118
|
children: [
|
|
79116
79119
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79117
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79118
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79120
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardTitle, { $colorTextDescription: token.colorTextDescription, children: parsedText }),
|
|
79121
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: counterToDisplay })
|
|
79119
79122
|
] }),
|
|
79120
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79123
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79121
79124
|
]
|
|
79122
79125
|
}
|
|
79123
79126
|
),
|
|
79124
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79127
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.HiddenContainer, { $isHidden: !open, children: canOpenActiveType && renderActiveType(activeType, {
|
|
79125
79128
|
open,
|
|
79126
79129
|
onClose: () => setOpen(false),
|
|
79127
79130
|
disableSubmit: !canSubmitActiveType
|
|
@@ -79550,7 +79553,7 @@ const UsedBadge = styled.div`
|
|
|
79550
79553
|
white-space: nowrap;
|
|
79551
79554
|
z-index: 3;
|
|
79552
79555
|
`;
|
|
79553
|
-
const Styled$
|
|
79556
|
+
const Styled$q = {
|
|
79554
79557
|
TooltipContent,
|
|
79555
79558
|
TooltipRow,
|
|
79556
79559
|
TooltipDot,
|
|
@@ -79700,17 +79703,17 @@ const UsageGraphCard = ({
|
|
|
79700
79703
|
const usedPercent = clampPercent(resolvedUsed ?? NaN, resolvedLimit ?? NaN);
|
|
79701
79704
|
const limitPercent = 100;
|
|
79702
79705
|
const gradientMidStop = `${requestedPercent.toFixed(2)}%`;
|
|
79703
|
-
const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79704
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79705
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79706
|
+
const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipContent, { $colorInfoBgHover: token.colorInfoBgHover, children: [
|
|
79707
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79708
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#5EDBBD" }),
|
|
79706
79709
|
"Requested"
|
|
79707
79710
|
] }),
|
|
79708
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79709
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79711
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79712
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#FF1C1C" }),
|
|
79710
79713
|
"Used"
|
|
79711
79714
|
] }),
|
|
79712
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79713
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79715
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79716
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#FD9125" }),
|
|
79714
79717
|
"Limit"
|
|
79715
79718
|
] })
|
|
79716
79719
|
] });
|
|
@@ -79791,10 +79794,10 @@ const UsageGraphCard = ({
|
|
|
79791
79794
|
if (shouldShowError) {
|
|
79792
79795
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
|
|
79793
79796
|
}
|
|
79794
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79795
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79796
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79797
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79797
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.Wrapper, { style: containerStyle, $colorBgContainer: token.colorBgContainer, $colorBorder: token.colorBorder, children: [
|
|
79798
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.Header, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.Title, { $colorText: token.colorText, children: title }) }),
|
|
79799
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.ChartContainer, { children: [
|
|
79800
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.ChartWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.ChartInner, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ComposedChart, { data: chartData, margin: { top: 8, right: 12, left: 12, bottom: 0 }, children: [
|
|
79798
79801
|
/* @__PURE__ */ jsxRuntimeExports.jsx(XAxis, { dataKey: "index", hide: true }),
|
|
79799
79802
|
/* @__PURE__ */ jsxRuntimeExports.jsx(YAxis, { hide: true, domain: yDomain, padding: { top: 6, bottom: 24 } }),
|
|
79800
79803
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -79818,9 +79821,9 @@ const UsageGraphCard = ({
|
|
|
79818
79821
|
}
|
|
79819
79822
|
)
|
|
79820
79823
|
] }) }) }) }),
|
|
79821
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79824
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.ChartOverlay, { $isDark: isDark })
|
|
79822
79825
|
] }),
|
|
79823
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79826
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.GradientBarWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.GradientBarContainer, { children: [
|
|
79824
79827
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79825
79828
|
Tooltip$1,
|
|
79826
79829
|
{
|
|
@@ -79832,7 +79835,7 @@ const UsageGraphCard = ({
|
|
|
79832
79835
|
body: { padding: 0, borderRadius: 6 }
|
|
79833
79836
|
},
|
|
79834
79837
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79835
|
-
Styled$
|
|
79838
|
+
Styled$q.GradientBar,
|
|
79836
79839
|
{
|
|
79837
79840
|
$minColor: minColor,
|
|
79838
79841
|
$midColor: midColor,
|
|
@@ -79842,12 +79845,12 @@ const UsageGraphCard = ({
|
|
|
79842
79845
|
)
|
|
79843
79846
|
}
|
|
79844
79847
|
),
|
|
79845
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79846
|
-
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79847
|
-
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79848
|
-
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79848
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.BadgesContainer, { ref: badgesContainerRef, children: [
|
|
79849
|
+
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: requestedPercent, $edgeAlign: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RequestedMarkerSvg, {}) }),
|
|
79850
|
+
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: usedPercent, $flipX: true, $paddingTop: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(UsedMarkerSvg, {}) }),
|
|
79851
|
+
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: limitPercent, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LimitMarkerSvg, {}) }),
|
|
79849
79852
|
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79850
|
-
Styled$
|
|
79853
|
+
Styled$q.UsedBadge,
|
|
79851
79854
|
{
|
|
79852
79855
|
ref: usedBadgeRef,
|
|
79853
79856
|
$left: clampedUsedPercent ?? usedPercent,
|
|
@@ -79869,7 +79872,7 @@ const UsageGraphCard = ({
|
|
|
79869
79872
|
}
|
|
79870
79873
|
),
|
|
79871
79874
|
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79872
|
-
Styled$
|
|
79875
|
+
Styled$q.MarkerLabel,
|
|
79873
79876
|
{
|
|
79874
79877
|
ref: requestedLabelRef,
|
|
79875
79878
|
$left: clampedRequestedPercent ?? requestedPercent,
|
|
@@ -79890,7 +79893,7 @@ const UsageGraphCard = ({
|
|
|
79890
79893
|
}
|
|
79891
79894
|
),
|
|
79892
79895
|
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79893
|
-
Styled$
|
|
79896
|
+
Styled$q.MarkerLabel,
|
|
79894
79897
|
{
|
|
79895
79898
|
ref: limitLabelRef,
|
|
79896
79899
|
$left: limitPercent,
|
|
@@ -79958,7 +79961,7 @@ const IconButton = styled(Button)`
|
|
|
79958
79961
|
font-size: 16px;
|
|
79959
79962
|
}
|
|
79960
79963
|
`;
|
|
79961
|
-
const Styled$
|
|
79964
|
+
const Styled$p = {
|
|
79962
79965
|
IconWrapper,
|
|
79963
79966
|
IconScaler,
|
|
79964
79967
|
IconButton
|
|
@@ -80008,7 +80011,7 @@ const buildEditUrl = (props, fullPath) => {
|
|
|
80008
80011
|
};
|
|
80009
80012
|
const getActionIcon = (action) => {
|
|
80010
80013
|
if (action.props.iconBase64Encoded) {
|
|
80011
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
80014
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconScaler, { children: renderIcon$1(action.props.iconBase64Encoded, "currentColor") }) });
|
|
80012
80015
|
}
|
|
80013
80016
|
if (action.props.icon) {
|
|
80014
80017
|
return renderAntIcon(action.props.icon);
|
|
@@ -81431,7 +81434,7 @@ const ActionsDropdown = ({ data, children }) => {
|
|
|
81431
81434
|
};
|
|
81432
81435
|
const renderButton = () => {
|
|
81433
81436
|
if (buttonVariant === "icon") {
|
|
81434
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
81437
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconButton, { type: "text", size: "small", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreOutlined, {}) });
|
|
81435
81438
|
}
|
|
81436
81439
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { children: [
|
|
81437
81440
|
buttonText,
|
|
@@ -82070,7 +82073,7 @@ const CenteredResultWrapper = styled.div`
|
|
|
82070
82073
|
justify-content: center;
|
|
82071
82074
|
flex: 1;
|
|
82072
82075
|
`;
|
|
82073
|
-
const Styled$
|
|
82076
|
+
const Styled$o = {
|
|
82074
82077
|
CenteredResultWrapper
|
|
82075
82078
|
};
|
|
82076
82079
|
|
|
@@ -82094,7 +82097,7 @@ const AntdResult = ({ data, children }) => {
|
|
|
82094
82097
|
const status = data.status ?? result.resultStatus;
|
|
82095
82098
|
const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
|
|
82096
82099
|
const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : result.message;
|
|
82097
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82100
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status, title, subTitle, style: data.style }) });
|
|
82098
82101
|
}
|
|
82099
82102
|
if (Array.isArray(data.reqIndex)) {
|
|
82100
82103
|
const worst = findWorstError(data.reqIndex, multiQueryData, getErrorForReq, shouldCheckEmpty, data.itemsPath);
|
|
@@ -82104,11 +82107,11 @@ const AntdResult = ({ data, children }) => {
|
|
|
82104
82107
|
const status = data.status ?? worst.resultStatus;
|
|
82105
82108
|
const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
|
|
82106
82109
|
const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : worst.message;
|
|
82107
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82110
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status, title, subTitle, style: data.style }) });
|
|
82108
82111
|
}
|
|
82109
82112
|
const parsedTitle = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : void 0;
|
|
82110
82113
|
const parsedSubTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : void 0;
|
|
82111
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82114
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: data.status, title: parsedTitle, subTitle: parsedSubTitle, style: data.style, children }) });
|
|
82112
82115
|
};
|
|
82113
82116
|
|
|
82114
82117
|
const DynamicComponents = {
|
|
@@ -82909,6 +82912,22 @@ const ClusterListTable = ({
|
|
|
82909
82912
|
);
|
|
82910
82913
|
};
|
|
82911
82914
|
|
|
82915
|
+
const getMinHeight = (minHeight) => {
|
|
82916
|
+
if (typeof minHeight === "number") {
|
|
82917
|
+
return `${minHeight}px`;
|
|
82918
|
+
}
|
|
82919
|
+
return minHeight || "auto";
|
|
82920
|
+
};
|
|
82921
|
+
const LoadingContainer$2 = styled.div`
|
|
82922
|
+
display: flex;
|
|
82923
|
+
align-items: center;
|
|
82924
|
+
justify-content: center;
|
|
82925
|
+
min-height: ${({ $minHeight }) => getMinHeight($minHeight)};
|
|
82926
|
+
`;
|
|
82927
|
+
const Styled$n = {
|
|
82928
|
+
LoadingContainer: LoadingContainer$2
|
|
82929
|
+
};
|
|
82930
|
+
|
|
82912
82931
|
const prepare = ({
|
|
82913
82932
|
dataItems,
|
|
82914
82933
|
pathToKey,
|
|
@@ -83192,13 +83211,13 @@ const EnrichedTableProvider = ({
|
|
|
83192
83211
|
// isNamespaced,
|
|
83193
83212
|
]);
|
|
83194
83213
|
if (!preparedProps && isLoading) {
|
|
83195
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83214
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
83196
83215
|
}
|
|
83197
83216
|
if (isError) {
|
|
83198
83217
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { message: isError, type: "error" });
|
|
83199
83218
|
}
|
|
83200
83219
|
if (!preparedProps) {
|
|
83201
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83220
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
83202
83221
|
}
|
|
83203
83222
|
const fullPath = `${location.pathname}${location.search}`;
|
|
83204
83223
|
const { dataSource, columns } = prepare({
|
|
@@ -83829,7 +83848,7 @@ const BorderRadiusContainer = styled.div`
|
|
|
83829
83848
|
border-radius: 8px;
|
|
83830
83849
|
}
|
|
83831
83850
|
`;
|
|
83832
|
-
const Styled$
|
|
83851
|
+
const Styled$m = {
|
|
83833
83852
|
BorderRadiusContainer
|
|
83834
83853
|
};
|
|
83835
83854
|
|
|
@@ -83876,7 +83895,7 @@ const YamlEditor = ({ theme: theme$1, currentValues, onChange, editorUri }) => {
|
|
|
83876
83895
|
}
|
|
83877
83896
|
}
|
|
83878
83897
|
}, [yamlData, editorUri]);
|
|
83879
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
83898
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.BorderRadiusContainer, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83880
83899
|
Ft$1,
|
|
83881
83900
|
{
|
|
83882
83901
|
language: "yaml",
|
|
@@ -86450,7 +86469,7 @@ const fromBase64 = (b64) => {
|
|
|
86450
86469
|
const MarginBottom = styled.div`
|
|
86451
86470
|
margin-bottom: 8px;
|
|
86452
86471
|
`;
|
|
86453
|
-
const Styled$
|
|
86472
|
+
const Styled$l = {
|
|
86454
86473
|
MarginBottom
|
|
86455
86474
|
};
|
|
86456
86475
|
|
|
@@ -86547,7 +86566,7 @@ const FormStringMultilineInput = ({
|
|
|
86547
86566
|
},
|
|
86548
86567
|
arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
|
|
86549
86568
|
),
|
|
86550
|
-
isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
86569
|
+
isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.MarginBottom, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86551
86570
|
Input.TextArea,
|
|
86552
86571
|
{
|
|
86553
86572
|
placeholder,
|
|
@@ -86574,7 +86593,7 @@ const CrossContainer = styled.div`
|
|
|
86574
86593
|
cursor: pointer;
|
|
86575
86594
|
padding-top: 11px;
|
|
86576
86595
|
`;
|
|
86577
|
-
const Styled$
|
|
86596
|
+
const Styled$k = {
|
|
86578
86597
|
SwitchAndCrossContainer,
|
|
86579
86598
|
CrossContainer
|
|
86580
86599
|
};
|
|
@@ -86602,7 +86621,7 @@ const FormBooleanInput = ({
|
|
|
86602
86621
|
onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
|
|
86603
86622
|
] })
|
|
86604
86623
|
] }),
|
|
86605
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
86624
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$k.SwitchAndCrossContainer, { children: [
|
|
86606
86625
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86607
86626
|
ResetedFormItem$1,
|
|
86608
86627
|
{
|
|
@@ -86621,7 +86640,7 @@ const FormBooleanInput = ({
|
|
|
86621
86640
|
}
|
|
86622
86641
|
),
|
|
86623
86642
|
!defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86624
|
-
Styled$
|
|
86643
|
+
Styled$k.CrossContainer,
|
|
86625
86644
|
{
|
|
86626
86645
|
onClick: () => {
|
|
86627
86646
|
if (makeValueUndefined) {
|
|
@@ -86922,7 +86941,7 @@ const Container$2 = styled.div`
|
|
|
86922
86941
|
border-radius: 8px;
|
|
86923
86942
|
}
|
|
86924
86943
|
`;
|
|
86925
|
-
const Styled$
|
|
86944
|
+
const Styled$j = {
|
|
86926
86945
|
Container: Container$2
|
|
86927
86946
|
};
|
|
86928
86947
|
|
|
@@ -86976,7 +86995,7 @@ const FormInlineYamlEditor = ({ path, persistedControls, externalValue }) => {
|
|
|
86976
86995
|
}
|
|
86977
86996
|
}
|
|
86978
86997
|
}, [yamlText, modelUri]);
|
|
86979
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
86998
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.Container, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86980
86999
|
Ft$1,
|
|
86981
87000
|
{
|
|
86982
87001
|
language: "yaml",
|
|
@@ -87259,7 +87278,7 @@ const BigText = styled.div`
|
|
|
87259
87278
|
font-size: 16px;
|
|
87260
87279
|
line-height: 24px;
|
|
87261
87280
|
`;
|
|
87262
|
-
const Styled$
|
|
87281
|
+
const Styled$i = {
|
|
87263
87282
|
ResetedFormList,
|
|
87264
87283
|
Container: Container$1,
|
|
87265
87284
|
OverflowContainer: OverflowContainer$1,
|
|
@@ -87614,7 +87633,7 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87614
87633
|
}
|
|
87615
87634
|
),
|
|
87616
87635
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87617
|
-
Styled$
|
|
87636
|
+
Styled$i.ResetedFormList,
|
|
87618
87637
|
{
|
|
87619
87638
|
name: arrName || name,
|
|
87620
87639
|
rules: arrayRules.length > 0 ? arrayRules : void 0,
|
|
@@ -89551,8 +89570,8 @@ const BlackholeForm = ({
|
|
|
89551
89570
|
setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
|
|
89552
89571
|
};
|
|
89553
89572
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
89554
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
89555
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89573
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$i.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
|
|
89574
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
89556
89575
|
Form,
|
|
89557
89576
|
{
|
|
89558
89577
|
form,
|
|
@@ -89599,7 +89618,7 @@ const BlackholeForm = ({
|
|
|
89599
89618
|
) })
|
|
89600
89619
|
] }),
|
|
89601
89620
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
|
|
89602
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89621
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
89603
89622
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
89604
89623
|
Button,
|
|
89605
89624
|
{
|
|
@@ -89620,7 +89639,7 @@ const BlackholeForm = ({
|
|
|
89620
89639
|
open: !!error,
|
|
89621
89640
|
onOk: () => setError(void 0),
|
|
89622
89641
|
onCancel: () => setError(void 0),
|
|
89623
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89642
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.BigText, { children: "Error!" }) }),
|
|
89624
89643
|
cancelButtonProps: { style: { display: "none" } },
|
|
89625
89644
|
centered: true,
|
|
89626
89645
|
styles: {
|
|
@@ -89648,7 +89667,7 @@ const BlackholeForm = ({
|
|
|
89648
89667
|
paddingRight: "30px"
|
|
89649
89668
|
}
|
|
89650
89669
|
},
|
|
89651
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89670
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
89652
89671
|
Editor,
|
|
89653
89672
|
{
|
|
89654
89673
|
defaultLanguage: "json",
|
|
@@ -89667,6 +89686,16 @@ const BlackholeForm = ({
|
|
|
89667
89686
|
] });
|
|
89668
89687
|
};
|
|
89669
89688
|
|
|
89689
|
+
const LoadingContainer$1 = styled.div`
|
|
89690
|
+
display: flex;
|
|
89691
|
+
align-items: center;
|
|
89692
|
+
justify-content: center;
|
|
89693
|
+
min-height: ${({ $minHeight }) => $minHeight ? `${$minHeight}px` : "auto"};
|
|
89694
|
+
`;
|
|
89695
|
+
const Styled$h = {
|
|
89696
|
+
LoadingContainer: LoadingContainer$1
|
|
89697
|
+
};
|
|
89698
|
+
|
|
89670
89699
|
const BlackholeFormProvider = ({
|
|
89671
89700
|
theme,
|
|
89672
89701
|
cluster,
|
|
@@ -89815,7 +89844,7 @@ const BlackholeFormProvider = ({
|
|
|
89815
89844
|
applyForceViewMode
|
|
89816
89845
|
]);
|
|
89817
89846
|
if (isLoading) {
|
|
89818
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {});
|
|
89847
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.LoadingContainer, { $minHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
89819
89848
|
}
|
|
89820
89849
|
if (modeData?.current === "Manual") {
|
|
89821
89850
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -90956,10 +90985,45 @@ const Styled$b = {
|
|
|
90956
90985
|
CustomSelect: CustomSelect$3
|
|
90957
90986
|
};
|
|
90958
90987
|
|
|
90959
|
-
const
|
|
90960
|
-
const
|
|
90988
|
+
const getScopedContainerNames = (containers, containerName) => {
|
|
90989
|
+
const normalizedContainerName = containerName?.trim();
|
|
90990
|
+
if (!normalizedContainerName) {
|
|
90991
|
+
return containers;
|
|
90992
|
+
}
|
|
90993
|
+
return containers.filter((container) => container === normalizedContainerName);
|
|
90994
|
+
};
|
|
90995
|
+
|
|
90996
|
+
const PodTerminal = ({
|
|
90997
|
+
cluster,
|
|
90998
|
+
namespace,
|
|
90999
|
+
podName,
|
|
91000
|
+
containerName,
|
|
91001
|
+
containers,
|
|
91002
|
+
substractHeight
|
|
91003
|
+
}) => {
|
|
91004
|
+
const pinnedContainerName = containerName?.trim();
|
|
91005
|
+
const availableContainers = useMemo(
|
|
91006
|
+
() => getScopedContainerNames(containers, pinnedContainerName),
|
|
91007
|
+
[containers, pinnedContainerName]
|
|
91008
|
+
);
|
|
91009
|
+
const [currentContainer, setCurrentContainer] = useState(availableContainers[0] || void 0);
|
|
90961
91010
|
const endpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalPod/terminalPod`;
|
|
90962
|
-
|
|
91011
|
+
useEffect(() => {
|
|
91012
|
+
setCurrentContainer((prevContainer) => {
|
|
91013
|
+
if (prevContainer && availableContainers.includes(prevContainer)) {
|
|
91014
|
+
return prevContainer;
|
|
91015
|
+
}
|
|
91016
|
+
return availableContainers[0] || void 0;
|
|
91017
|
+
});
|
|
91018
|
+
}, [availableContainers]);
|
|
91019
|
+
if (pinnedContainerName && availableContainers.length === 0) {
|
|
91020
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
91021
|
+
'Container "',
|
|
91022
|
+
pinnedContainerName,
|
|
91023
|
+
'" is not running'
|
|
91024
|
+
] });
|
|
91025
|
+
}
|
|
91026
|
+
if (availableContainers.length === 0) {
|
|
90963
91027
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
|
|
90964
91028
|
}
|
|
90965
91029
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -90967,9 +91031,9 @@ const PodTerminal = ({ cluster, namespace, podName, containers, substractHeight
|
|
|
90967
91031
|
Select,
|
|
90968
91032
|
{
|
|
90969
91033
|
placeholder: "Select container",
|
|
90970
|
-
options:
|
|
91034
|
+
options: availableContainers.map((container) => ({ value: container, label: container })),
|
|
90971
91035
|
filterOption: filterSelectOptions,
|
|
90972
|
-
disabled:
|
|
91036
|
+
disabled: Boolean(pinnedContainerName),
|
|
90973
91037
|
showSearch: true,
|
|
90974
91038
|
value: currentContainer,
|
|
90975
91039
|
onChange: (value) => {
|
|
@@ -94450,4 +94514,4 @@ const usePluginManifest = ({
|
|
|
94450
94514
|
};
|
|
94451
94515
|
|
|
94452
94516
|
export { useCrdResourceSingle as $, getBuiltinResources as A, getBuiltinResourceSingle as B, getCrdResources as C, DeleteIcon as D, EnrichedTableProvider as E, getCrdResourceSingle as F, getApiResourceTypes as G, getApiResourceTypesByApiGroup as H, getBuiltinResourceTypes as I, getCrdData as J, getDirectUnknownResource as K, checkPermission as L, getSwagger as M, filterIfApiInstanceNamespaceScoped as N, filterIfBuiltInInstanceNamespaceScoped as O, PerRequestError as P, checkIfApiInstanceNamespaceScoped as Q, ReadOnlyModal as R, checkIfBuiltInInstanceNamespaceScoped as S, getKinds as T, useClusterList as U, useApiResources as V, useApiResourceSingle as W, useBuiltinResources as X, useBuiltinResourceSingle as Y, useCrdResources as Z, _$1 as _, useTheme as a, DynamicRenderer as a$, useApisResourceTypes as a0, useApiResourceTypesByGroup as a1, useBuiltinResourceTypes as a2, useCrdData as a3, useListWatch as a4, useInfiniteSentinel as a5, useK8sVerbs as a6, useManyK8sSmartResource as a7, useSmartResourceParams as a8, useResourceScope as a9, ResourceLink as aA, ErrorBoundary as aB, ErrorBoundaryWithDataReset as aC, ManageableBreadcrumbsProvider as aD, prepareDataForManageableBreadcrumbs as aE, ManageableBreadcrumbs as aF, ManageableSidebarProvider as aG, prepareDataForManageableSidebar as aH, ManageableSidebar as aI, EnrichedTable as aJ, ClusterListTable as aK, getEnrichedColumns as aL, getEnrichedColumnsWithControls as aM, YamlEditorSingleton$1 as aN, BlackholeFormProvider as aO, BlackholeForm as aP, getObjectFormItemsDraft as aQ, MarketPlace as aR, MarketplaceCard as aS, ProjectInfoCard as aT, PodTerminal as aU, NodeTerminal as aV, PodLogs as aW, PodLogsMonaco as aX, VMVNC as aY, Search as aZ, Events as a_, useKinds as aa, useKindsRaw as ab, usePluginManifest as ac, Spacer$1 as ad, TreeWithSearch as ae, ConfirmModal as af, UpIcon as ag, DownIcon as ah, BackToDefaultIcon as ai, SuccessIcon as aj, feedbackIcons as ak, PlusIcon as al, MinusIcon as am, LockedIcon as an, UnlockedIcon as ao, PauseCircleIcon as ap, ResumeCircleIcon as aq, LookingGlassIcon as ar, EarthIcon as as, ContentCard$1 as at, FlexGrow as au, UncontrolledSelect as av, CustomSelect$4 as aw, CursorPointerTag as ax, CursorPointerTagMinContent as ay, CursorDefaultDiv as az, usePartsOfUrl as b, DynamicComponents as b0, DynamicRendererWithProviders as b1, prepareTemplate as b2, isFlatObject as b3, filterSelectOptions as b4, getStringByName as b5, floorToDecimal as b6, parseQuotaValue as b7, parseQuotaValueCpu as b8, parseQuotaValueMemoryAndStorage as b9, convertStorage as bA, parseValueWithUnit as bB, convertCores as bC, formatCoresAuto as bD, toCores as bE, convertCompute as bF, parseCoresWithUnit as bG, formatDateAuto as bH, isValidRFC3339 as bI, normalizeValuesForQuotasToNumber as ba, getAllPathsFromObj as bb, getPrefixSubarrays as bc, groupsToTreeData as bd, getBuiltinTreeData as be, getGroupsByCategory as bf, createContextFactory as bg, prepareUrlsToFetchForDynamicRenderer as bh, deepMerge as bi, getSortedKinds as bj, getSortedKindsAll as bk, hslFromString as bl, getUppercase as bm, kindByGvr as bn, pluralByKind as bo, namespacedByGvr as bp, getLinkToBuiltinForm as bq, getLinkToApiForm as br, isMultilineString as bs, isMultilineFromYaml as bt, includesArray as bu, getResourceLink as bv, getNamespaceLink as bw, convertBytes as bx, formatBytesAuto as by, toBytes as bz, useAutoPerRequestError as c, usePermissions as d, useDirectUnknownResource as e, useK8sSmartResource as f, jsxRuntimeExports as g, EditIcon as h, PaddingContainer as i, jp as j, getLinkToForm as k, DeleteModal as l, mergePerRequestErrors as m, DeleteModalMany as n, getClusterList as o, parseAll as p, createNewEntry as q, updateEntry as r, serializeLabelsWithNoEncoding$1 as s, deleteEntry as t, useMultiQuery as u, patchEntryWithReplaceOp as v, patchEntryWithMergePatch as w, patchEntryWithDeleteOp as x, getApiResources as y, getApiResourceSingle as z };
|
|
94453
|
-
//# sourceMappingURL=index-
|
|
94517
|
+
//# sourceMappingURL=index-gq5MnduZ.mjs.map
|