@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.88 → 0.0.1-alpha.90
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 +254 -12
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +254 -10
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/atoms/CursorPointerTag/CursorPointerTag.d.ts +285 -0
- package/dist/types/components/atoms/CursorPointerTag/index.d.ts +1 -0
- package/dist/types/components/atoms/UncontrolledSelect/UncontrolledSelect.d.ts +7 -0
- package/dist/types/components/atoms/UncontrolledSelect/index.d.ts +1 -0
- package/dist/types/components/atoms/UncontrolledSelect/styled.d.ts +10 -0
- package/dist/types/components/atoms/index.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/ItemCounter.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/utils.d.ts +4 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/Labels.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/utils.d.ts +4 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/LabelsToSearchParams.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/utils.d.ts +4 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +20 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o, { useDebugValue, createElement, useRef, useContext, useState, useLayoutEffect, useEffect, useMemo, memo, useCallback, createContext, Suspense, Fragment } from 'react';
|
|
2
|
-
import { Input, Tree, Modal, Alert, theme, Breadcrumb, Spin, Menu, Tooltip, Space, Button, Flex,
|
|
2
|
+
import { Input, Tree, Modal, Alert, theme, Select, Tag, Breadcrumb, Spin, Menu, Tooltip, Space, Button, Flex, Table, notification, Typography, Form, Row, Col, Slider, InputNumber, Switch, Card, Dropdown, Result, Progress, Tabs } from 'antd';
|
|
3
3
|
import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, SearchOutlined, CheckOutlined, CloseOutlined, EditOutlined, DeleteOutlined, CaretDownOutlined, CaretRightOutlined, BugOutlined, PlusOutlined, EllipsisOutlined } from '@ant-design/icons';
|
|
4
4
|
import { useQuery, useQueries } from '@tanstack/react-query';
|
|
5
5
|
import { Link, useNavigate, useLocation } from 'react-router-dom';
|
|
@@ -2504,7 +2504,7 @@ const CustomTreeProvider = st.div`
|
|
|
2504
2504
|
justify-content: center;
|
|
2505
2505
|
}
|
|
2506
2506
|
`;
|
|
2507
|
-
const Styled$
|
|
2507
|
+
const Styled$p = {
|
|
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$p.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$o = {
|
|
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$o.ContentContainer,
|
|
8435
8435
|
{
|
|
8436
8436
|
$flexGrow: flexGrow,
|
|
8437
8437
|
$bgColor: token.colorBgContainer,
|
|
@@ -8448,6 +8448,63 @@ const FlexGrow = st.div`
|
|
|
8448
8448
|
flex-grow: 1;
|
|
8449
8449
|
`;
|
|
8450
8450
|
|
|
8451
|
+
const UncontrolledSelect$1 = st(Select)`
|
|
8452
|
+
width: 100%;
|
|
8453
|
+
margin: 0;
|
|
8454
|
+
padding: 4px;
|
|
8455
|
+
cursor: ${({ $isCursorPointer }) => $isCursorPointer ? "pointer" : "default"};
|
|
8456
|
+
|
|
8457
|
+
&& input {
|
|
8458
|
+
/* stylelint-disable declaration-no-important */
|
|
8459
|
+
cursor: ${({ $isCursorPointer }) => $isCursorPointer ? "pointer" : "default"} !important;
|
|
8460
|
+
}
|
|
8461
|
+
|
|
8462
|
+
&& .ant-select-selector {
|
|
8463
|
+
background: none;
|
|
8464
|
+
cursor: ${({ $isCursorPointer }) => $isCursorPointer ? "pointer" : "default"};
|
|
8465
|
+
}
|
|
8466
|
+
|
|
8467
|
+
&& .ant-select-selector,
|
|
8468
|
+
&& .ant-select-focused .ant-select-selector,
|
|
8469
|
+
&& .ant-select-selector:focus,
|
|
8470
|
+
&& .ant-select-selector:active,
|
|
8471
|
+
&& .ant-select-open .ant-select-selector {
|
|
8472
|
+
align-items: flex-start;
|
|
8473
|
+
outline: none !important;
|
|
8474
|
+
outline-color: transparent !important;
|
|
8475
|
+
box-shadow: none !important;
|
|
8476
|
+
padding-inline: 4px !important;
|
|
8477
|
+
padding-block: 4px !important;
|
|
8478
|
+
}
|
|
8479
|
+
|
|
8480
|
+
&& .ant-select-selection-overflow {
|
|
8481
|
+
gap: 4px;
|
|
8482
|
+
}
|
|
8483
|
+
|
|
8484
|
+
&& .ant-select-selection-overflow-item-rest .ant-select-selection-item {
|
|
8485
|
+
background: 0;
|
|
8486
|
+
}
|
|
8487
|
+
|
|
8488
|
+
&& .ant-tag {
|
|
8489
|
+
font-size: 14px;
|
|
8490
|
+
line-height: 22px;
|
|
8491
|
+
border: 0;
|
|
8492
|
+
padding-inline: 8px;
|
|
8493
|
+
}
|
|
8494
|
+
`;
|
|
8495
|
+
const Styled$n = {
|
|
8496
|
+
UncontrolledSelect: UncontrolledSelect$1
|
|
8497
|
+
};
|
|
8498
|
+
|
|
8499
|
+
const UncontrolledSelect = (props) => {
|
|
8500
|
+
const { isCursorPointer } = props;
|
|
8501
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
|
|
8502
|
+
};
|
|
8503
|
+
|
|
8504
|
+
const CursorPointerTag = st(Tag)`
|
|
8505
|
+
cursor: pointer;
|
|
8506
|
+
`;
|
|
8507
|
+
|
|
8451
8508
|
const getDirectUnknownResource = async ({ uri }) => {
|
|
8452
8509
|
return axios.get(uri);
|
|
8453
8510
|
};
|
|
@@ -8679,7 +8736,7 @@ const findMatchingItems = ({
|
|
|
8679
8736
|
const currentPath = [...parents, node.key ? node.key : String(node.key)];
|
|
8680
8737
|
const cleanNodeInternalMetaLink = node.internalMetaLink?.startsWith("/") ? node.internalMetaLink.slice(1) : node.internalMetaLink;
|
|
8681
8738
|
const cleanPathname = pathname.startsWith("/") ? pathname.slice(1) : pathname;
|
|
8682
|
-
const matched = cleanNodeInternalMetaLink === cleanPathname
|
|
8739
|
+
const matched = cleanNodeInternalMetaLink === cleanPathname ? currentPath : [];
|
|
8683
8740
|
const tagsToMatch = tags && tags.keysAndTags && node.key ? tags.keysAndTags[typeof node.key === "string" ? node.key : String(node.key)] : void 0;
|
|
8684
8741
|
const matchedByTags = tags && tags.currentTags && tagsToMatch && tagsToMatch.some((tag) => tags.currentTags?.includes(tag)) ? currentPath : [];
|
|
8685
8742
|
let childrenResults = [];
|
|
@@ -46658,20 +46715,20 @@ const unknownToString = (value) => {
|
|
|
46658
46715
|
}
|
|
46659
46716
|
return value.toString();
|
|
46660
46717
|
};
|
|
46661
|
-
const flattenOnce = (arr) => arr.reduce((acc, row) => [...acc, ...row], []);
|
|
46718
|
+
const flattenOnce$1 = (arr) => arr.reduce((acc, row) => [...acc, ...row], []);
|
|
46662
46719
|
const isRecordArray = (val) => {
|
|
46663
46720
|
return Array.isArray(val) && val.every(
|
|
46664
46721
|
(item) => item !== null && typeof item === "object" && // exclude nested Arrays if you want “plain” objects only:
|
|
46665
46722
|
!Array.isArray(item)
|
|
46666
46723
|
);
|
|
46667
46724
|
};
|
|
46668
|
-
const parseArrayOfAny = (value) => {
|
|
46725
|
+
const parseArrayOfAny$2 = (value) => {
|
|
46669
46726
|
if (!Array.isArray(value)) {
|
|
46670
46727
|
return { error: "Value on jsonPath is not an array" };
|
|
46671
46728
|
}
|
|
46672
46729
|
let flattenArrayOfUnknown = [];
|
|
46673
46730
|
try {
|
|
46674
|
-
flattenArrayOfUnknown = flattenOnce(value);
|
|
46731
|
+
flattenArrayOfUnknown = flattenOnce$1(value);
|
|
46675
46732
|
} catch (e) {
|
|
46676
46733
|
console.log(e);
|
|
46677
46734
|
return { error: "Error while flattening" };
|
|
@@ -46711,7 +46768,7 @@ const ArrayOfObjectsToKeyValues = ({ data, children }) => {
|
|
|
46711
46768
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No root for json path" });
|
|
46712
46769
|
}
|
|
46713
46770
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToArray}`);
|
|
46714
|
-
const { data: arrayOfObjects, error: errorArrayOfObjects } = parseArrayOfAny(anythingForNow);
|
|
46771
|
+
const { data: arrayOfObjects, error: errorArrayOfObjects } = parseArrayOfAny$2(anythingForNow);
|
|
46715
46772
|
if (!arrayOfObjects) {
|
|
46716
46773
|
if (errorArrayOfObjects) {
|
|
46717
46774
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorArrayOfObjects });
|
|
@@ -46734,6 +46791,188 @@ const ArrayOfObjectsToKeyValues = ({ data, children }) => {
|
|
|
46734
46791
|
] });
|
|
46735
46792
|
};
|
|
46736
46793
|
|
|
46794
|
+
const flattenOnce = (arr) => arr.reduce((acc, row) => [...acc, ...row], []);
|
|
46795
|
+
const getItemsInside = (value) => {
|
|
46796
|
+
if (!Array.isArray(value)) {
|
|
46797
|
+
return { error: "Value on jsonPath is not an array" };
|
|
46798
|
+
}
|
|
46799
|
+
let flattenArrayOfUnknown = [];
|
|
46800
|
+
try {
|
|
46801
|
+
flattenArrayOfUnknown = flattenOnce(value);
|
|
46802
|
+
} catch (e) {
|
|
46803
|
+
console.log(e);
|
|
46804
|
+
return { error: "Error while flattening" };
|
|
46805
|
+
}
|
|
46806
|
+
return { counter: flattenArrayOfUnknown.length };
|
|
46807
|
+
};
|
|
46808
|
+
|
|
46809
|
+
const ItemCounter = ({
|
|
46810
|
+
data,
|
|
46811
|
+
children
|
|
46812
|
+
}) => {
|
|
46813
|
+
const {
|
|
46814
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46815
|
+
id,
|
|
46816
|
+
reqIndex,
|
|
46817
|
+
jsonPathToArray,
|
|
46818
|
+
text,
|
|
46819
|
+
style
|
|
46820
|
+
} = data;
|
|
46821
|
+
const { data: multiQueryData, isLoading: isMultiQueryLoading, isError: isMultiQueryErrors, errors } = useMultiQuery();
|
|
46822
|
+
const partsOfUrl = usePartsOfUrl();
|
|
46823
|
+
if (isMultiQueryLoading) {
|
|
46824
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
46825
|
+
}
|
|
46826
|
+
if (isMultiQueryErrors) {
|
|
46827
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
46828
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: "Errors:" }),
|
|
46829
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errors.map((e, i) => e && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: e.message }, i)) })
|
|
46830
|
+
] });
|
|
46831
|
+
}
|
|
46832
|
+
const replaceValues = partsOfUrl.partsOfUrl.reduce((acc, value, index) => {
|
|
46833
|
+
acc[index.toString()] = value;
|
|
46834
|
+
return acc;
|
|
46835
|
+
}, {});
|
|
46836
|
+
const jsonRoot = multiQueryData[`req${reqIndex}`];
|
|
46837
|
+
if (jsonRoot === void 0) {
|
|
46838
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No root for json path" });
|
|
46839
|
+
}
|
|
46840
|
+
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToArray}`);
|
|
46841
|
+
const { counter, error: errorArrayOfObjects } = getItemsInside(anythingForNow);
|
|
46842
|
+
if (errorArrayOfObjects) {
|
|
46843
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorArrayOfObjects });
|
|
46844
|
+
}
|
|
46845
|
+
const parsedText = parseAll({ text, replaceValues, multiQueryData });
|
|
46846
|
+
const parsedTextWithCounter = parsedText.replace("~counter~", String(counter || 0));
|
|
46847
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style, children: [
|
|
46848
|
+
parsedTextWithCounter,
|
|
46849
|
+
children
|
|
46850
|
+
] });
|
|
46851
|
+
};
|
|
46852
|
+
|
|
46853
|
+
const isRecordStringNumber$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) && Object.entries(value).every(([k, v]) => typeof k === "string" && (typeof v === "string" || typeof v === "number"));
|
|
46854
|
+
const parseArrayOfAny$1 = (value) => {
|
|
46855
|
+
if (!Array.isArray(value)) {
|
|
46856
|
+
return { error: "Value on jsonPath is not an array" };
|
|
46857
|
+
}
|
|
46858
|
+
if (isRecordStringNumber$1(value[0])) {
|
|
46859
|
+
return { data: value[0] };
|
|
46860
|
+
}
|
|
46861
|
+
return { error: "Value on jsonPath is not a record array" };
|
|
46862
|
+
};
|
|
46863
|
+
|
|
46864
|
+
const Labels = ({ data, children }) => {
|
|
46865
|
+
const {
|
|
46866
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46867
|
+
id,
|
|
46868
|
+
reqIndex,
|
|
46869
|
+
jsonPathToLabels,
|
|
46870
|
+
selectProps
|
|
46871
|
+
} = data;
|
|
46872
|
+
const { data: multiQueryData, isLoading: isMultiQueryLoading, isError: isMultiQueryErrors, errors } = useMultiQuery();
|
|
46873
|
+
if (isMultiQueryLoading) {
|
|
46874
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
46875
|
+
}
|
|
46876
|
+
if (isMultiQueryErrors) {
|
|
46877
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
46878
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: "Errors:" }),
|
|
46879
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errors.map((e, i) => e && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: e.message }, i)) })
|
|
46880
|
+
] });
|
|
46881
|
+
}
|
|
46882
|
+
const jsonRoot = multiQueryData[`req${reqIndex}`];
|
|
46883
|
+
if (jsonRoot === void 0) {
|
|
46884
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No root for json path" });
|
|
46885
|
+
}
|
|
46886
|
+
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToLabels}`);
|
|
46887
|
+
const { data: labelsRaw, error: errorArrayOfObjects } = parseArrayOfAny$1(anythingForNow);
|
|
46888
|
+
if (!labelsRaw) {
|
|
46889
|
+
if (errorArrayOfObjects) {
|
|
46890
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorArrayOfObjects });
|
|
46891
|
+
}
|
|
46892
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Not a valid data structure" });
|
|
46893
|
+
}
|
|
46894
|
+
const labels = Object.entries(labelsRaw).map(([key, value]) => `${key}=${value}`);
|
|
46895
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
46896
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46897
|
+
UncontrolledSelect,
|
|
46898
|
+
{
|
|
46899
|
+
mode: "multiple",
|
|
46900
|
+
...selectProps,
|
|
46901
|
+
value: labels.map((el) => ({ label: el, value: el })),
|
|
46902
|
+
options: labels.map((el) => ({ label: el, value: el })),
|
|
46903
|
+
open: false,
|
|
46904
|
+
showSearch: false,
|
|
46905
|
+
removeIcon: () => {
|
|
46906
|
+
return null;
|
|
46907
|
+
},
|
|
46908
|
+
suffixIcon: null,
|
|
46909
|
+
tagRender: ({ label }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46910
|
+
CursorPointerTag,
|
|
46911
|
+
{
|
|
46912
|
+
onClick: (e) => {
|
|
46913
|
+
e.stopPropagation();
|
|
46914
|
+
},
|
|
46915
|
+
children: label
|
|
46916
|
+
}
|
|
46917
|
+
),
|
|
46918
|
+
isCursorPointer: true
|
|
46919
|
+
}
|
|
46920
|
+
),
|
|
46921
|
+
children
|
|
46922
|
+
] });
|
|
46923
|
+
};
|
|
46924
|
+
|
|
46925
|
+
const isRecordStringNumber = (value) => typeof value === "object" && value !== null && !Array.isArray(value) && Object.entries(value).every(([k, v]) => typeof k === "string" && (typeof v === "string" || typeof v === "number"));
|
|
46926
|
+
const parseArrayOfAny = (value) => {
|
|
46927
|
+
if (!Array.isArray(value)) {
|
|
46928
|
+
return { error: "Value on jsonPath is not an array" };
|
|
46929
|
+
}
|
|
46930
|
+
if (isRecordStringNumber(value[0])) {
|
|
46931
|
+
return { data: value[0] };
|
|
46932
|
+
}
|
|
46933
|
+
return { error: "Value on jsonPath is not a record array" };
|
|
46934
|
+
};
|
|
46935
|
+
|
|
46936
|
+
const LabelsToSearchParams = ({ data, children }) => {
|
|
46937
|
+
const {
|
|
46938
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46939
|
+
id,
|
|
46940
|
+
reqIndex,
|
|
46941
|
+
jsonPathToLabels,
|
|
46942
|
+
linkPrefix,
|
|
46943
|
+
...linkProps
|
|
46944
|
+
} = data;
|
|
46945
|
+
const { data: multiQueryData, isLoading: isMultiQueryLoading, isError: isMultiQueryErrors, errors } = useMultiQuery();
|
|
46946
|
+
if (isMultiQueryLoading) {
|
|
46947
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
46948
|
+
}
|
|
46949
|
+
if (isMultiQueryErrors) {
|
|
46950
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
46951
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: "Errors:" }),
|
|
46952
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errors.map((e, i) => e && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: e.message }, i)) })
|
|
46953
|
+
] });
|
|
46954
|
+
}
|
|
46955
|
+
const jsonRoot = multiQueryData[`req${reqIndex}`];
|
|
46956
|
+
if (jsonRoot === void 0) {
|
|
46957
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No root for json path" });
|
|
46958
|
+
}
|
|
46959
|
+
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToLabels}`);
|
|
46960
|
+
const { data: labelsRaw, error: errorArrayOfObjects } = parseArrayOfAny(anythingForNow);
|
|
46961
|
+
if (!labelsRaw) {
|
|
46962
|
+
if (errorArrayOfObjects) {
|
|
46963
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorArrayOfObjects });
|
|
46964
|
+
}
|
|
46965
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Not a valid data structure" });
|
|
46966
|
+
}
|
|
46967
|
+
const labels = Object.entries(labelsRaw).map(([key, value]) => `${key}=${value}`).join(",");
|
|
46968
|
+
const labelsEncoded = encodeURIComponent(labels);
|
|
46969
|
+
const hrefPrepared = `${linkPrefix}?${labelsEncoded}`;
|
|
46970
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, ...linkProps, children: [
|
|
46971
|
+
labels,
|
|
46972
|
+
children
|
|
46973
|
+
] });
|
|
46974
|
+
};
|
|
46975
|
+
|
|
46737
46976
|
const DynamicComponents = {
|
|
46738
46977
|
DefaultDiv,
|
|
46739
46978
|
antdText: AntdText,
|
|
@@ -46759,7 +46998,10 @@ const DynamicComponents = {
|
|
|
46759
46998
|
PodLogs,
|
|
46760
46999
|
YamlEditorSingleton,
|
|
46761
47000
|
VisibilityContainer,
|
|
46762
|
-
ArrayOfObjectsToKeyValues
|
|
47001
|
+
ArrayOfObjectsToKeyValues,
|
|
47002
|
+
ItemCounter,
|
|
47003
|
+
Labels,
|
|
47004
|
+
LabelsToSearchParams
|
|
46763
47005
|
};
|
|
46764
47006
|
|
|
46765
47007
|
const prepareUrlsToFetchForDynamicRenderer = ({
|
|
@@ -47261,5 +47503,5 @@ const useCrdData = ({
|
|
|
47261
47503
|
});
|
|
47262
47504
|
};
|
|
47263
47505
|
|
|
47264
|
-
export { BackToDefaultIcon, BlackholeForm, BlackholeFormDataProvider, ContentCard$1 as ContentCard, DeleteIcon, DeleteModal, DeleteModalMany, DownIcon, DynamicComponents, DynamicRenderer, DynamicRendererWithProviders, EditIcon, EnrichedTable$1 as EnrichedTable, EnrichedTableProvider, FlexGrow, LockedIcon, ManageableBreadcrumbs, ManageableBreadcrumbsWithDataProvider, ManageableSidebar, ManageableSidebarWithDataProvider, MarketPlace, MarketplaceCard$1 as MarketplaceCard, MinusIcon, NodeTerminal$1 as NodeTerminal, PauseCircleIcon, PlusIcon, PodLogs$1 as PodLogs, PodLogsMonaco, PodTerminal$1 as PodTerminal, ProjectInfoCard$1 as ProjectInfoCard, ResumeCircleIcon, Spacer$1 as Spacer, SuccessIcon, TreeWithSearch, UnlockedIcon, UpIcon, YamlEditorSingleton$1 as YamlEditorSingleton, checkIfApiInstanceNamespaceScoped, checkIfBuiltInInstanceNamespaceScoped, checkPermission, createContextFactory, createNewEntry, deleteEntry, feedbackIcons, filterIfApiInstanceNamespaceScoped, filterIfBuiltInInstanceNamespaceScoped, filterSelectOptions, floorToDecimal, getAllPathsFromObj, getApiResourceSingle, getApiResourceTypes, getApiResourceTypesByApiGroup, getApiResources, getBuiltinResourceSingle, getBuiltinResourceTypes, getBuiltinResources, getBuiltinTreeData, getClusterList, getCrdData, getCrdResourceSingle, getCrdResources, getDirectUnknownResource, getEnrichedColumns, getEnrichedColumnsWithControls, getGroupsByCategory, getObjectFormItemsDraft, getPrefixSubarrays, getStringByName, getSwagger, groupsToTreeData, isFlatObject, normalizeValuesForQuotasToNumber, parseQuotaValue, parseQuotaValueCpu, parseQuotaValueMemoryAndStorage, prepareDataForManageableBreadcrumbs, prepareDataForManageableSidebar, prepareTemplate, prepareUrlsToFetchForDynamicRenderer, updateEntry, useApiResourceSingle, useApiResourceTypesByGroup, useApiResources, useApisResourceTypes, useBuiltinResourceSingle, useBuiltinResourceTypes, useBuiltinResources, useClusterList, useCrdData, useCrdResourceSingle, useCrdResources, useDirectUnknownResource, usePermissions };
|
|
47506
|
+
export { BackToDefaultIcon, BlackholeForm, BlackholeFormDataProvider, ContentCard$1 as ContentCard, CursorPointerTag, DeleteIcon, DeleteModal, DeleteModalMany, DownIcon, DynamicComponents, DynamicRenderer, DynamicRendererWithProviders, EditIcon, EnrichedTable$1 as EnrichedTable, EnrichedTableProvider, FlexGrow, LockedIcon, ManageableBreadcrumbs, ManageableBreadcrumbsWithDataProvider, ManageableSidebar, ManageableSidebarWithDataProvider, MarketPlace, MarketplaceCard$1 as MarketplaceCard, MinusIcon, NodeTerminal$1 as NodeTerminal, PauseCircleIcon, PlusIcon, PodLogs$1 as PodLogs, PodLogsMonaco, PodTerminal$1 as PodTerminal, ProjectInfoCard$1 as ProjectInfoCard, ResumeCircleIcon, Spacer$1 as Spacer, SuccessIcon, TreeWithSearch, UncontrolledSelect, UnlockedIcon, UpIcon, YamlEditorSingleton$1 as YamlEditorSingleton, checkIfApiInstanceNamespaceScoped, checkIfBuiltInInstanceNamespaceScoped, checkPermission, createContextFactory, createNewEntry, deleteEntry, feedbackIcons, filterIfApiInstanceNamespaceScoped, filterIfBuiltInInstanceNamespaceScoped, filterSelectOptions, floorToDecimal, getAllPathsFromObj, getApiResourceSingle, getApiResourceTypes, getApiResourceTypesByApiGroup, getApiResources, getBuiltinResourceSingle, getBuiltinResourceTypes, getBuiltinResources, getBuiltinTreeData, getClusterList, getCrdData, getCrdResourceSingle, getCrdResources, getDirectUnknownResource, getEnrichedColumns, getEnrichedColumnsWithControls, getGroupsByCategory, getObjectFormItemsDraft, getPrefixSubarrays, getStringByName, getSwagger, groupsToTreeData, isFlatObject, normalizeValuesForQuotasToNumber, parseQuotaValue, parseQuotaValueCpu, parseQuotaValueMemoryAndStorage, prepareDataForManageableBreadcrumbs, prepareDataForManageableSidebar, prepareTemplate, prepareUrlsToFetchForDynamicRenderer, updateEntry, useApiResourceSingle, useApiResourceTypesByGroup, useApiResources, useApisResourceTypes, useBuiltinResourceSingle, useBuiltinResourceTypes, useBuiltinResources, useClusterList, useCrdData, useCrdResourceSingle, useCrdResources, useDirectUnknownResource, usePermissions };
|
|
47265
47507
|
//# sourceMappingURL=openapi-k8s-toolkit.es.js.map
|