@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.2 → 1.5.0-alpha.4
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-BYGA57EJ.mjs → index-D8riHM_k.mjs} +1101 -268
- package/dist/{index-BYGA57EJ.mjs.map → index-D8riHM_k.mjs.map} +1 -1
- package/dist/{index-DoND5hQh.mjs → index-DHTFNSby.mjs} +2 -2
- package/dist/{index-DoND5hQh.mjs.map → index-DHTFNSby.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +1099 -266
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +9 -2
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +3 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +2 -1
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +18 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +20 -5
- 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/localTypes/formSchema.d.ts +15 -0
- package/package.json +1 -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),
|
|
@@ -1699,7 +1699,7 @@ const typeOfTest = type => thing => typeof thing === type;
|
|
|
1699
1699
|
*
|
|
1700
1700
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
1701
1701
|
*/
|
|
1702
|
-
const {isArray: isArray$
|
|
1702
|
+
const {isArray: isArray$5} = Array;
|
|
1703
1703
|
|
|
1704
1704
|
/**
|
|
1705
1705
|
* Determine if a value is undefined
|
|
@@ -1945,7 +1945,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
1945
1945
|
obj = [obj];
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
|
-
if (isArray$
|
|
1948
|
+
if (isArray$5(obj)) {
|
|
1949
1949
|
// Iterate over array values
|
|
1950
1950
|
for (i = 0, l = obj.length; i < l; i++) {
|
|
1951
1951
|
fn.call(null, obj[i], i, obj);
|
|
@@ -2021,7 +2021,7 @@ function merge$2(/* obj1, obj2, obj3, ... */) {
|
|
|
2021
2021
|
result[targetKey] = merge$2(result[targetKey], val);
|
|
2022
2022
|
} else if (isPlainObject$6(val)) {
|
|
2023
2023
|
result[targetKey] = merge$2({}, val);
|
|
2024
|
-
} else if (isArray$
|
|
2024
|
+
} else if (isArray$5(val)) {
|
|
2025
2025
|
result[targetKey] = val.slice();
|
|
2026
2026
|
} else if (!skipUndefined || !isUndefined(val)) {
|
|
2027
2027
|
result[targetKey] = val;
|
|
@@ -2151,7 +2151,7 @@ const endsWith = (str, searchString, position) => {
|
|
|
2151
2151
|
*/
|
|
2152
2152
|
const toArray$3 = (thing) => {
|
|
2153
2153
|
if (!thing) return null;
|
|
2154
|
-
if (isArray$
|
|
2154
|
+
if (isArray$5(thing)) return thing;
|
|
2155
2155
|
let i = thing.length;
|
|
2156
2156
|
if (!isNumber$1(i)) return null;
|
|
2157
2157
|
const arr = new Array(i);
|
|
@@ -2229,7 +2229,7 @@ const toCamelCase = str => {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
|
|
2231
2231
|
/* Creating a function that will check if an object has a property. */
|
|
2232
|
-
const hasOwnProperty$
|
|
2232
|
+
const hasOwnProperty$7 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
2233
2233
|
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Determine if a value is a RegExp object
|
|
@@ -2294,7 +2294,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
2294
2294
|
});
|
|
2295
2295
|
};
|
|
2296
2296
|
|
|
2297
|
-
isArray$
|
|
2297
|
+
isArray$5(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
2298
2298
|
|
|
2299
2299
|
return obj;
|
|
2300
2300
|
};
|
|
@@ -2335,7 +2335,7 @@ const toJSONObject = (obj) => {
|
|
|
2335
2335
|
|
|
2336
2336
|
if(!('toJSON' in source)) {
|
|
2337
2337
|
stack[i] = source;
|
|
2338
|
-
const target = isArray$
|
|
2338
|
+
const target = isArray$5(source) ? [] : {};
|
|
2339
2339
|
|
|
2340
2340
|
forEach(source, (value, key) => {
|
|
2341
2341
|
const reducedValue = visit(value, i + 1);
|
|
@@ -2394,7 +2394,7 @@ const isIterable = (thing) => thing != null && isFunction$4(thing[iterator]);
|
|
|
2394
2394
|
|
|
2395
2395
|
|
|
2396
2396
|
const utils$1 = {
|
|
2397
|
-
isArray: isArray$
|
|
2397
|
+
isArray: isArray$5,
|
|
2398
2398
|
isArrayBuffer,
|
|
2399
2399
|
isBuffer,
|
|
2400
2400
|
isFormData,
|
|
@@ -2433,8 +2433,8 @@ const utils$1 = {
|
|
|
2433
2433
|
forEachEntry,
|
|
2434
2434
|
matchAll,
|
|
2435
2435
|
isHTMLForm,
|
|
2436
|
-
hasOwnProperty: hasOwnProperty$
|
|
2437
|
-
hasOwnProp: hasOwnProperty$
|
|
2436
|
+
hasOwnProperty: hasOwnProperty$7,
|
|
2437
|
+
hasOwnProp: hasOwnProperty$7, // an alias to avoid ESLint no-prototype-builtins detection
|
|
2438
2438
|
reduceDescriptors,
|
|
2439
2439
|
freezeMethods,
|
|
2440
2440
|
toObjectSet,
|
|
@@ -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")
|
|
@@ -36470,14 +36470,14 @@ function isFunction$2(value) {
|
|
|
36470
36470
|
return typeof value === 'function';
|
|
36471
36471
|
}
|
|
36472
36472
|
|
|
36473
|
-
function hasOwnProperty$
|
|
36473
|
+
function hasOwnProperty$6(object, property) {
|
|
36474
36474
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
36475
36475
|
}
|
|
36476
36476
|
|
|
36477
36477
|
function validateChanges(initial, changes) {
|
|
36478
36478
|
if (!isObject$7(changes)) errorHandler$1('changeType');
|
|
36479
36479
|
if (Object.keys(changes).some(function (field) {
|
|
36480
|
-
return !hasOwnProperty$
|
|
36480
|
+
return !hasOwnProperty$6(initial, field);
|
|
36481
36481
|
})) errorHandler$1('changeField');
|
|
36482
36482
|
return changes;
|
|
36483
36483
|
}
|
|
@@ -43766,7 +43766,7 @@ const BigText$1 = styled.div`
|
|
|
43766
43766
|
font-size: 16px;
|
|
43767
43767
|
line-height: 24px;
|
|
43768
43768
|
`;
|
|
43769
|
-
const Styled$
|
|
43769
|
+
const Styled$C = {
|
|
43770
43770
|
BorderRadiusContainer: BorderRadiusContainer$1,
|
|
43771
43771
|
ControlsRowContainer: ControlsRowContainer$1,
|
|
43772
43772
|
BigText: BigText$1
|
|
@@ -43996,7 +43996,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
43996
43996
|
};
|
|
43997
43997
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
43998
43998
|
contextHolder,
|
|
43999
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43999
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44000
44000
|
Ft$1,
|
|
44001
44001
|
{
|
|
44002
44002
|
defaultLanguage: "yaml",
|
|
@@ -44021,7 +44021,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44021
44021
|
}
|
|
44022
44022
|
}
|
|
44023
44023
|
) }),
|
|
44024
|
-
!readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44024
|
+
!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
44025
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, disabled: canEdit === false, children: "Submit" }),
|
|
44026
44026
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
|
|
44027
44027
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: handleReload, children: "Reload" })
|
|
@@ -44032,7 +44032,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44032
44032
|
open: !!error,
|
|
44033
44033
|
onOk: () => setError(void 0),
|
|
44034
44034
|
onCancel: () => setError(void 0),
|
|
44035
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44035
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BigText, { children: "Error!" }) }),
|
|
44036
44036
|
cancelButtonProps: { style: { display: "none" } },
|
|
44037
44037
|
centered: true,
|
|
44038
44038
|
styles: {
|
|
@@ -44193,7 +44193,7 @@ const YamlEditorSingleton = ({
|
|
|
44193
44193
|
const VisibilityContainer$1 = styled.div`
|
|
44194
44194
|
display: ${({ $hidden }) => $hidden ? "none" : "block"};
|
|
44195
44195
|
`;
|
|
44196
|
-
const Styled$
|
|
44196
|
+
const Styled$B = {
|
|
44197
44197
|
VisibilityContainer: VisibilityContainer$1
|
|
44198
44198
|
};
|
|
44199
44199
|
|
|
@@ -44243,7 +44243,7 @@ const VisibilityContainer = ({
|
|
|
44243
44243
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
|
|
44244
44244
|
}
|
|
44245
44245
|
const shouldAutoHide = !criteria && (!valuePrepared || valuePrepared === "~undefined-value~");
|
|
44246
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
|
|
44247
44247
|
};
|
|
44248
44248
|
|
|
44249
44249
|
const unknownToString = (value) => {
|
|
@@ -44496,7 +44496,7 @@ const Content$1 = styled.div`
|
|
|
44496
44496
|
display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
|
|
44497
44497
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
44498
44498
|
`;
|
|
44499
|
-
const Styled$
|
|
44499
|
+
const Styled$A = {
|
|
44500
44500
|
Container: Container$3,
|
|
44501
44501
|
TitleBar,
|
|
44502
44502
|
Content: Content$1
|
|
@@ -44523,14 +44523,14 @@ const CustomCollapse = ({
|
|
|
44523
44523
|
}
|
|
44524
44524
|
};
|
|
44525
44525
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
44526
|
-
Styled$
|
|
44526
|
+
Styled$A.Container,
|
|
44527
44527
|
{
|
|
44528
44528
|
$designNewLayout: designNewLayout,
|
|
44529
44529
|
$borderColor: token.colorBorder,
|
|
44530
44530
|
$bgColor: token.colorBgContainer,
|
|
44531
44531
|
children: [
|
|
44532
44532
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44533
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44533
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$A.TitleBar, { onClick: () => toggleCollapse(), children: [
|
|
44534
44534
|
!designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
|
|
44535
44535
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
|
|
44536
44536
|
designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
|
|
@@ -44541,7 +44541,7 @@ const CustomCollapse = ({
|
|
|
44541
44541
|
persistedCheckbox
|
|
44542
44542
|
] })
|
|
44543
44543
|
] }),
|
|
44544
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44544
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
|
|
44545
44545
|
]
|
|
44546
44546
|
}
|
|
44547
44547
|
);
|
|
@@ -44621,13 +44621,13 @@ const CustomSizeTitle = styled.div`
|
|
|
44621
44621
|
const Content = styled.div`
|
|
44622
44622
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
44623
44623
|
`;
|
|
44624
|
-
const Styled$
|
|
44624
|
+
const Styled$z = {
|
|
44625
44625
|
Content
|
|
44626
44626
|
};
|
|
44627
44627
|
|
|
44628
44628
|
const ArrayInsideContainer = ({ children }) => {
|
|
44629
44629
|
const designNewLayout = useDesignNewLayout();
|
|
44630
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44630
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.Content, { $designNewLayout: designNewLayout, children });
|
|
44631
44631
|
};
|
|
44632
44632
|
|
|
44633
44633
|
const includesPath = (haystack, needle) => haystack.some((h) => h.length === needle.length && h.every((seg, i) => seg === String(needle[i])));
|
|
@@ -44642,21 +44642,22 @@ const HiddenContainer$1 = ({ name, secondName, children }) => {
|
|
|
44642
44642
|
const secondArr = toArray$2(secondName);
|
|
44643
44643
|
const isHidden = !!hiddenPaths && !!nameArr && includesPath(hiddenPaths, nameArr);
|
|
44644
44644
|
const isHiddenSecond = !!hiddenPaths && !!secondArr && includesPath(hiddenPaths, secondArr);
|
|
44645
|
-
|
|
44645
|
+
const shouldHide = !hiddenPaths || isHidden || isHiddenSecond;
|
|
44646
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PossibleHiddenContainer, { $isHidden: shouldHide, "aria-hidden": shouldHide, hidden: shouldHide || void 0, children });
|
|
44646
44647
|
};
|
|
44647
44648
|
|
|
44648
44649
|
const HeightContainer = styled.div`
|
|
44649
44650
|
height: ${({ $height }) => $height}px;
|
|
44650
44651
|
`;
|
|
44651
44652
|
|
|
44652
|
-
const Styled$
|
|
44653
|
+
const Styled$y = {
|
|
44653
44654
|
BulbIcon: styled(BulbOutlined)`
|
|
44654
44655
|
margin-left: 6px;
|
|
44655
44656
|
`
|
|
44656
44657
|
};
|
|
44657
44658
|
|
|
44658
44659
|
const ExampleTooltipIcon = ({ tooltip }) => {
|
|
44659
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44660
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.BulbIcon, {}) });
|
|
44660
44661
|
};
|
|
44661
44662
|
|
|
44662
44663
|
const NullToggleButton = ({ isNull, onSetNull, onClear, disabled }) => {
|
|
@@ -44813,7 +44814,7 @@ const LabelsEditModal = ({
|
|
|
44813
44814
|
const ResetedFormList$3 = styled(Form.List)`
|
|
44814
44815
|
margin-bottom: 8px;
|
|
44815
44816
|
`;
|
|
44816
|
-
const Styled$
|
|
44817
|
+
const Styled$x = {
|
|
44817
44818
|
ResetedFormList: ResetedFormList$3
|
|
44818
44819
|
};
|
|
44819
44820
|
|
|
@@ -44904,7 +44905,7 @@ const TaintsEditModal = ({
|
|
|
44904
44905
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[3], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
44905
44906
|
] }),
|
|
44906
44907
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
44907
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44908
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
44908
44909
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
44909
44910
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44910
44911
|
ResetedFormItem$1,
|
|
@@ -44965,7 +44966,7 @@ const TaintsEditModal = ({
|
|
|
44965
44966
|
const ResetedFormList$2 = styled(Form.List)`
|
|
44966
44967
|
margin-bottom: 8px;
|
|
44967
44968
|
`;
|
|
44968
|
-
const Styled$
|
|
44969
|
+
const Styled$w = {
|
|
44969
44970
|
ResetedFormList: ResetedFormList$2
|
|
44970
44971
|
};
|
|
44971
44972
|
|
|
@@ -45066,7 +45067,7 @@ const TolerationsEditModal = ({
|
|
|
45066
45067
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[4], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
45067
45068
|
] }),
|
|
45068
45069
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
45069
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45070
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45070
45071
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
45071
45072
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45072
45073
|
ResetedFormItem$1,
|
|
@@ -45158,7 +45159,7 @@ const TolerationsEditModal = ({
|
|
|
45158
45159
|
const ResetedFormList$1 = styled(Form.List)`
|
|
45159
45160
|
margin-bottom: 8px;
|
|
45160
45161
|
`;
|
|
45161
|
-
const Styled$
|
|
45162
|
+
const Styled$v = {
|
|
45162
45163
|
ResetedFormList: ResetedFormList$1
|
|
45163
45164
|
};
|
|
45164
45165
|
|
|
@@ -45254,7 +45255,7 @@ const AnnotationsEditModal = ({
|
|
|
45254
45255
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
45255
45256
|
] }),
|
|
45256
45257
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
45257
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45258
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45258
45259
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
45259
45260
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45260
45261
|
ResetedFormItem$1,
|
|
@@ -47332,7 +47333,7 @@ const NotificationOverrides = createGlobalStyle`
|
|
|
47332
47333
|
margin-bottom: 0 !important;
|
|
47333
47334
|
}
|
|
47334
47335
|
`;
|
|
47335
|
-
const Styled$
|
|
47336
|
+
const Styled$u = {
|
|
47336
47337
|
NoSelect,
|
|
47337
47338
|
DisabledInput,
|
|
47338
47339
|
DisabledTextArea,
|
|
@@ -47450,8 +47451,8 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47450
47451
|
const shownValue = useNiceLooking ? value2 : effectiveHidden ? "" : value2;
|
|
47451
47452
|
const resolvedMultilineRows = resolveMultilineRows(value2, multilineRows);
|
|
47452
47453
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 8, ...flexProps, children: [
|
|
47453
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47454
|
-
Styled$
|
|
47454
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden: effectiveHidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47455
|
+
Styled$u.DisabledInput,
|
|
47455
47456
|
{
|
|
47456
47457
|
$hidden: effectiveHidden,
|
|
47457
47458
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47459,7 +47460,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47459
47460
|
readOnly: true
|
|
47460
47461
|
}
|
|
47461
47462
|
) }) : multiline ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47462
|
-
Styled$
|
|
47463
|
+
Styled$u.DisabledTextArea,
|
|
47463
47464
|
{
|
|
47464
47465
|
$hidden: effectiveHidden,
|
|
47465
47466
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47468,7 +47469,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47468
47469
|
readOnly: true
|
|
47469
47470
|
}
|
|
47470
47471
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47471
|
-
Styled$
|
|
47472
|
+
Styled$u.DisabledInput,
|
|
47472
47473
|
{
|
|
47473
47474
|
$hidden: effectiveHidden,
|
|
47474
47475
|
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
@@ -47491,13 +47492,13 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47491
47492
|
const secretsEntries = objectToRender ? Object.entries(objectToRender) : [];
|
|
47492
47493
|
if (secretsEntries.length === 0) {
|
|
47493
47494
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47494
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47495
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47495
47496
|
emptyTextPrepared && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { style: textStyle, children: emptyTextPrepared }),
|
|
47496
47497
|
contextHolder
|
|
47497
47498
|
] });
|
|
47498
47499
|
}
|
|
47499
47500
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47500
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47501
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47501
47502
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: secretsEntries.map(([key, rawValue]) => {
|
|
47502
47503
|
const parsedValue = parseAll({
|
|
47503
47504
|
text: typeof rawValue === "string" ? rawValue : String(rawValue),
|
|
@@ -47523,7 +47524,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47523
47524
|
] });
|
|
47524
47525
|
}
|
|
47525
47526
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
47526
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47527
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.NotificationOverrides, {}),
|
|
47527
47528
|
renderSecretField({
|
|
47528
47529
|
value: decodedText,
|
|
47529
47530
|
isHidden: hidden,
|
|
@@ -47546,7 +47547,7 @@ const RoundSpan = styled.span`
|
|
|
47546
47547
|
letter-spacing: 0.02em;
|
|
47547
47548
|
box-sizing: content-box;
|
|
47548
47549
|
`;
|
|
47549
|
-
const Styled$
|
|
47550
|
+
const Styled$t = {
|
|
47550
47551
|
RoundSpan
|
|
47551
47552
|
};
|
|
47552
47553
|
|
|
@@ -47583,7 +47584,7 @@ const ResourceBadge = ({ data }) => {
|
|
|
47583
47584
|
multiQueryData
|
|
47584
47585
|
}) : getUppercase(parsedValue);
|
|
47585
47586
|
const bgColor = hslFromString(parsedValue, theme);
|
|
47586
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47587
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
|
|
47587
47588
|
};
|
|
47588
47589
|
|
|
47589
47590
|
const serializeLabelsWithNoEncoding = (input) => {
|
|
@@ -49647,7 +49648,7 @@ var isDeepKey = {};
|
|
|
49647
49648
|
exports.isDeepKey = isDeepKey;
|
|
49648
49649
|
} (isDeepKey));
|
|
49649
49650
|
|
|
49650
|
-
var toKey$
|
|
49651
|
+
var toKey$3 = {};
|
|
49651
49652
|
|
|
49652
49653
|
(function (exports) {
|
|
49653
49654
|
|
|
@@ -49664,7 +49665,7 @@ var toKey$2 = {};
|
|
|
49664
49665
|
}
|
|
49665
49666
|
|
|
49666
49667
|
exports.toKey = toKey;
|
|
49667
|
-
} (toKey$
|
|
49668
|
+
} (toKey$3));
|
|
49668
49669
|
|
|
49669
49670
|
var toPath = {};
|
|
49670
49671
|
|
|
@@ -49699,7 +49700,7 @@ var toString$3 = {};
|
|
|
49699
49700
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
49700
49701
|
|
|
49701
49702
|
const toString = toString$3;
|
|
49702
|
-
const toKey = toKey$
|
|
49703
|
+
const toKey = toKey$3;
|
|
49703
49704
|
|
|
49704
49705
|
function toPath(deepKey) {
|
|
49705
49706
|
if (Array.isArray(deepKey)) {
|
|
@@ -49784,7 +49785,7 @@ var toString$3 = {};
|
|
|
49784
49785
|
|
|
49785
49786
|
const isUnsafeProperty$1 = isUnsafeProperty;
|
|
49786
49787
|
const isDeepKey$1 = isDeepKey;
|
|
49787
|
-
const toKey = toKey$
|
|
49788
|
+
const toKey = toKey$3;
|
|
49788
49789
|
const toPath$1 = toPath;
|
|
49789
49790
|
|
|
49790
49791
|
function get(object, path, defaultValue) {
|
|
@@ -50342,7 +50343,7 @@ var isArrayLikeObject = {};
|
|
|
50342
50343
|
|
|
50343
50344
|
var isArrayLike = {};
|
|
50344
50345
|
|
|
50345
|
-
var isLength = {};
|
|
50346
|
+
var isLength$2 = {};
|
|
50346
50347
|
|
|
50347
50348
|
(function (exports) {
|
|
50348
50349
|
|
|
@@ -50353,22 +50354,22 @@ var isLength = {};
|
|
|
50353
50354
|
}
|
|
50354
50355
|
|
|
50355
50356
|
exports.isLength = isLength;
|
|
50356
|
-
} (isLength));
|
|
50357
|
+
} (isLength$2));
|
|
50357
50358
|
|
|
50358
50359
|
(function (exports) {
|
|
50359
50360
|
|
|
50360
50361
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
50361
50362
|
|
|
50362
|
-
const isLength
|
|
50363
|
+
const isLength = isLength$2;
|
|
50363
50364
|
|
|
50364
50365
|
function isArrayLike(value) {
|
|
50365
|
-
return value != null && typeof value !== 'function' && isLength
|
|
50366
|
+
return value != null && typeof value !== 'function' && isLength.isLength(value.length);
|
|
50366
50367
|
}
|
|
50367
50368
|
|
|
50368
50369
|
exports.isArrayLike = isArrayLike;
|
|
50369
50370
|
} (isArrayLike));
|
|
50370
50371
|
|
|
50371
|
-
var isObjectLike$
|
|
50372
|
+
var isObjectLike$5 = {};
|
|
50372
50373
|
|
|
50373
50374
|
(function (exports) {
|
|
50374
50375
|
|
|
@@ -50379,14 +50380,14 @@ var isObjectLike$3 = {};
|
|
|
50379
50380
|
}
|
|
50380
50381
|
|
|
50381
50382
|
exports.isObjectLike = isObjectLike;
|
|
50382
|
-
} (isObjectLike$
|
|
50383
|
+
} (isObjectLike$5));
|
|
50383
50384
|
|
|
50384
50385
|
(function (exports) {
|
|
50385
50386
|
|
|
50386
50387
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
50387
50388
|
|
|
50388
50389
|
const isArrayLike$1 = isArrayLike;
|
|
50389
|
-
const isObjectLike = isObjectLike$
|
|
50390
|
+
const isObjectLike = isObjectLike$5;
|
|
50390
50391
|
|
|
50391
50392
|
function isArrayLikeObject(value) {
|
|
50392
50393
|
return isObjectLike.isObjectLike(value) && isArrayLike$1.isArrayLike(value);
|
|
@@ -51005,9 +51006,9 @@ var cloneDeepWith = {};
|
|
|
51005
51006
|
exports.cloneDeep = cloneDeep;
|
|
51006
51007
|
} (cloneDeep));
|
|
51007
51008
|
|
|
51008
|
-
var has$
|
|
51009
|
+
var has$3 = {};
|
|
51009
51010
|
|
|
51010
|
-
var isIndex = {};
|
|
51011
|
+
var isIndex$2 = {};
|
|
51011
51012
|
|
|
51012
51013
|
(function (exports) {
|
|
51013
51014
|
|
|
@@ -51029,9 +51030,9 @@ var isIndex = {};
|
|
|
51029
51030
|
}
|
|
51030
51031
|
|
|
51031
51032
|
exports.isIndex = isIndex;
|
|
51032
|
-
} (isIndex));
|
|
51033
|
+
} (isIndex$2));
|
|
51033
51034
|
|
|
51034
|
-
var isArguments = {};
|
|
51035
|
+
var isArguments$2 = {};
|
|
51035
51036
|
|
|
51036
51037
|
(function (exports) {
|
|
51037
51038
|
|
|
@@ -51044,15 +51045,15 @@ var isArguments = {};
|
|
|
51044
51045
|
}
|
|
51045
51046
|
|
|
51046
51047
|
exports.isArguments = isArguments;
|
|
51047
|
-
} (isArguments));
|
|
51048
|
+
} (isArguments$2));
|
|
51048
51049
|
|
|
51049
51050
|
(function (exports) {
|
|
51050
51051
|
|
|
51051
51052
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
51052
51053
|
|
|
51053
51054
|
const isDeepKey$1 = isDeepKey;
|
|
51054
|
-
const isIndex
|
|
51055
|
-
const isArguments
|
|
51055
|
+
const isIndex = isIndex$2;
|
|
51056
|
+
const isArguments = isArguments$2;
|
|
51056
51057
|
const toPath$1 = toPath;
|
|
51057
51058
|
|
|
51058
51059
|
function has(object, path) {
|
|
@@ -51073,7 +51074,7 @@ var isArguments = {};
|
|
|
51073
51074
|
for (let i = 0; i < resolvedPath.length; i++) {
|
|
51074
51075
|
const key = resolvedPath[i];
|
|
51075
51076
|
if (current == null || !Object.hasOwn(current, key)) {
|
|
51076
|
-
const isSparseIndex = (Array.isArray(current) || isArguments
|
|
51077
|
+
const isSparseIndex = (Array.isArray(current) || isArguments.isArguments(current)) && isIndex.isIndex(key) && key < current.length;
|
|
51077
51078
|
if (!isSparseIndex) {
|
|
51078
51079
|
return false;
|
|
51079
51080
|
}
|
|
@@ -51084,17 +51085,17 @@ var isArguments = {};
|
|
|
51084
51085
|
}
|
|
51085
51086
|
|
|
51086
51087
|
exports.has = has;
|
|
51087
|
-
} (has$
|
|
51088
|
+
} (has$3));
|
|
51088
51089
|
|
|
51089
51090
|
(function (exports) {
|
|
51090
51091
|
|
|
51091
51092
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
51092
51093
|
|
|
51093
51094
|
const isMatch$1 = isMatch;
|
|
51094
|
-
const toKey = toKey$
|
|
51095
|
+
const toKey = toKey$3;
|
|
51095
51096
|
const cloneDeep$1 = cloneDeep;
|
|
51096
51097
|
const get = get$4;
|
|
51097
|
-
const has = has$
|
|
51098
|
+
const has = has$3;
|
|
51098
51099
|
|
|
51099
51100
|
function matchesProperty(property, source) {
|
|
51100
51101
|
switch (typeof property) {
|
|
@@ -52153,7 +52154,7 @@ var isIterateeCall = {};
|
|
|
52153
52154
|
|
|
52154
52155
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
52155
52156
|
|
|
52156
|
-
const isIndex
|
|
52157
|
+
const isIndex = isIndex$2;
|
|
52157
52158
|
const isArrayLike$1 = isArrayLike;
|
|
52158
52159
|
const isObject = isObject$4;
|
|
52159
52160
|
const eq = eq$2;
|
|
@@ -52162,7 +52163,7 @@ var isIterateeCall = {};
|
|
|
52162
52163
|
if (!isObject.isObject(object)) {
|
|
52163
52164
|
return false;
|
|
52164
52165
|
}
|
|
52165
|
-
if ((typeof index === 'number' && isArrayLike$1.isArrayLike(object) && isIndex
|
|
52166
|
+
if ((typeof index === 'number' && isArrayLike$1.isArrayLike(object) && isIndex.isIndex(index) && index < object.length) ||
|
|
52166
52167
|
(typeof index === 'string' && index in object)) {
|
|
52167
52168
|
return eq.eq(object[index], value);
|
|
52168
52169
|
}
|
|
@@ -52700,7 +52701,7 @@ function getArchtype(thing) {
|
|
|
52700
52701
|
const state = thing[DRAFT_STATE];
|
|
52701
52702
|
return state ? state.type_ : Array.isArray(thing) ? 1 /* Array */ : isMap(thing) ? 2 /* Map */ : isSet(thing) ? 3 /* Set */ : 0 /* Object */;
|
|
52702
52703
|
}
|
|
52703
|
-
function has(thing, prop) {
|
|
52704
|
+
function has$2(thing, prop) {
|
|
52704
52705
|
return getArchtype(thing) === 2 /* Map */ ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);
|
|
52705
52706
|
}
|
|
52706
52707
|
function set(thing, propOrOldValue, value) {
|
|
@@ -52922,7 +52923,7 @@ function finalizeProperty(rootScope, parentState, targetObject, prop, childValue
|
|
|
52922
52923
|
die(5);
|
|
52923
52924
|
if (isDraft(childValue)) {
|
|
52924
52925
|
const path = rootPath && parentState && parentState.type_ !== 3 /* Set */ && // Set objects are atomic since they have no keys.
|
|
52925
|
-
!has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
|
|
52926
|
+
!has$2(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
|
|
52926
52927
|
const res = finalize(rootScope, childValue, path);
|
|
52927
52928
|
set(targetObject, prop, res);
|
|
52928
52929
|
if (isDraft(res)) {
|
|
@@ -52989,7 +52990,7 @@ var objectTraps = {
|
|
|
52989
52990
|
if (prop === DRAFT_STATE)
|
|
52990
52991
|
return state;
|
|
52991
52992
|
const source = latest(state);
|
|
52992
|
-
if (!has(source, prop)) {
|
|
52993
|
+
if (!has$2(source, prop)) {
|
|
52993
52994
|
return readPropFromProto(state, source, prop);
|
|
52994
52995
|
}
|
|
52995
52996
|
const value = source[prop];
|
|
@@ -53022,7 +53023,7 @@ var objectTraps = {
|
|
|
53022
53023
|
state.assigned_[prop] = false;
|
|
53023
53024
|
return true;
|
|
53024
53025
|
}
|
|
53025
|
-
if (is$1(value, current2) && (value !== void 0 || has(state.base_, prop)))
|
|
53026
|
+
if (is$1(value, current2) && (value !== void 0 || has$2(state.base_, prop)))
|
|
53026
53027
|
return true;
|
|
53027
53028
|
prepareCopy(state);
|
|
53028
53029
|
markChanged(state);
|
|
@@ -61585,8 +61586,8 @@ var MAX_DIGITS = 1e9, // 0 to 1e9
|
|
|
61585
61586
|
ONE,
|
|
61586
61587
|
BASE = 1e7,
|
|
61587
61588
|
LOG_BASE = 7,
|
|
61588
|
-
MAX_SAFE_INTEGER = 9007199254740991,
|
|
61589
|
-
MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), // 1286742750677284
|
|
61589
|
+
MAX_SAFE_INTEGER$2 = 9007199254740991,
|
|
61590
|
+
MAX_E = mathfloor(MAX_SAFE_INTEGER$2 / LOG_BASE), // 1286742750677284
|
|
61590
61591
|
|
|
61591
61592
|
// Decimal.prototype object
|
|
61592
61593
|
P = {};
|
|
@@ -62276,7 +62277,7 @@ P.toPower = P.pow = function (y) {
|
|
|
62276
62277
|
if (sign < 0) throw Error(decimalError + 'NaN');
|
|
62277
62278
|
|
|
62278
62279
|
// If y is a small integer use the 'exponentiation by squaring' algorithm.
|
|
62279
|
-
} else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
|
|
62280
|
+
} else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER$2) {
|
|
62280
62281
|
r = new Ctor(ONE);
|
|
62281
62282
|
|
|
62282
62283
|
// Max k of 9007199254740991 takes 53 loop iterations.
|
|
@@ -78290,7 +78291,7 @@ const TitleSelect = styled(Select)`
|
|
|
78290
78291
|
}
|
|
78291
78292
|
}
|
|
78292
78293
|
`;
|
|
78293
|
-
const Styled$
|
|
78294
|
+
const Styled$s = {
|
|
78294
78295
|
TitleSelect
|
|
78295
78296
|
};
|
|
78296
78297
|
|
|
@@ -78375,7 +78376,7 @@ const DropdownRedirect = ({
|
|
|
78375
78376
|
}
|
|
78376
78377
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
78377
78378
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
78378
|
-
Styled$
|
|
78379
|
+
Styled$s.TitleSelect,
|
|
78379
78380
|
{
|
|
78380
78381
|
value: currentValuePrepared,
|
|
78381
78382
|
onChange: handleChange,
|
|
@@ -78888,7 +78889,7 @@ const TolerationsModal = ({
|
|
|
78888
78889
|
};
|
|
78889
78890
|
|
|
78890
78891
|
const LazyEnrichedTableModal = lazy(
|
|
78891
|
-
() => import('./index-
|
|
78892
|
+
() => import('./index-DHTFNSby.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
78892
78893
|
);
|
|
78893
78894
|
const renderActiveType = (activeType, extraProps) => {
|
|
78894
78895
|
if (!activeType) return null;
|
|
@@ -78962,7 +78963,7 @@ const CardIcon = styled.div`
|
|
|
78962
78963
|
const HiddenContainer = styled.div`
|
|
78963
78964
|
display: ${({ $isHidden }) => $isHidden ? "none" : "auto"};
|
|
78964
78965
|
`;
|
|
78965
|
-
const Styled$
|
|
78966
|
+
const Styled$r = {
|
|
78966
78967
|
Card: Card$1,
|
|
78967
78968
|
CardTitle,
|
|
78968
78969
|
CardNumber,
|
|
@@ -79041,7 +79042,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79041
79042
|
const jsonRoot = multiQueryData[`req${counter.props.reqIndex}`];
|
|
79042
79043
|
if (jsonRoot === void 0) {
|
|
79043
79044
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79044
|
-
Styled$
|
|
79045
|
+
Styled$r.Card,
|
|
79045
79046
|
{
|
|
79046
79047
|
$colorBorder: token.colorBorder,
|
|
79047
79048
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79056,15 +79057,15 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79056
79057
|
children: [
|
|
79057
79058
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79058
79059
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79059
|
-
Styled$
|
|
79060
|
+
Styled$r.CardTitle,
|
|
79060
79061
|
{
|
|
79061
79062
|
$colorTextDescription: token.colorTextDescription,
|
|
79062
79063
|
children: `Counter: ${id}: No root for json path`
|
|
79063
79064
|
}
|
|
79064
79065
|
),
|
|
79065
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79066
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: "-" })
|
|
79066
79067
|
] }),
|
|
79067
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79068
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79068
79069
|
]
|
|
79069
79070
|
}
|
|
79070
79071
|
);
|
|
@@ -79074,7 +79075,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79074
79075
|
const { counter: counterToDisplay, error: errorParsingCounter } = counter.type === "item" ? getItemCounterItemsInside(anythingForNow) : getKeyCounterItemsInside(anythingForNow);
|
|
79075
79076
|
if (errorParsingCounter) {
|
|
79076
79077
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79077
|
-
Styled$
|
|
79078
|
+
Styled$r.Card,
|
|
79078
79079
|
{
|
|
79079
79080
|
$colorBorder: token.colorBorder,
|
|
79080
79081
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79088,10 +79089,10 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79088
79089
|
},
|
|
79089
79090
|
children: [
|
|
79090
79091
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79091
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79092
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79092
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardTitle, { $colorTextDescription: token.colorTextDescription, children: errorParsingCounter }),
|
|
79093
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: "-" })
|
|
79093
79094
|
] }),
|
|
79094
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79095
79096
|
]
|
|
79096
79097
|
}
|
|
79097
79098
|
);
|
|
@@ -79099,7 +79100,7 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79099
79100
|
const parsedText = parseAll({ text, replaceValues, multiQueryData });
|
|
79100
79101
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
79101
79102
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79102
|
-
Styled$
|
|
79103
|
+
Styled$r.Card,
|
|
79103
79104
|
{
|
|
79104
79105
|
$colorBorder: token.colorBorder,
|
|
79105
79106
|
$colorBgContainer: token.colorBgContainer,
|
|
@@ -79113,14 +79114,14 @@ const AggregatedCounterCard = ({ data, children }) => {
|
|
|
79113
79114
|
},
|
|
79114
79115
|
children: [
|
|
79115
79116
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 4, vertical: true, children: [
|
|
79116
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79117
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79117
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardTitle, { $colorTextDescription: token.colorTextDescription, children: parsedText }),
|
|
79118
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardNumber, { $colorText: token.colorText, children: counterToDisplay })
|
|
79118
79119
|
] }),
|
|
79119
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79120
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
|
|
79120
79121
|
]
|
|
79121
79122
|
}
|
|
79122
79123
|
),
|
|
79123
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79124
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.HiddenContainer, { $isHidden: !open, children: canOpenActiveType && renderActiveType(activeType, {
|
|
79124
79125
|
open,
|
|
79125
79126
|
onClose: () => setOpen(false),
|
|
79126
79127
|
disableSubmit: !canSubmitActiveType
|
|
@@ -79549,7 +79550,7 @@ const UsedBadge = styled.div`
|
|
|
79549
79550
|
white-space: nowrap;
|
|
79550
79551
|
z-index: 3;
|
|
79551
79552
|
`;
|
|
79552
|
-
const Styled$
|
|
79553
|
+
const Styled$q = {
|
|
79553
79554
|
TooltipContent,
|
|
79554
79555
|
TooltipRow,
|
|
79555
79556
|
TooltipDot,
|
|
@@ -79699,17 +79700,17 @@ const UsageGraphCard = ({
|
|
|
79699
79700
|
const usedPercent = clampPercent(resolvedUsed ?? NaN, resolvedLimit ?? NaN);
|
|
79700
79701
|
const limitPercent = 100;
|
|
79701
79702
|
const gradientMidStop = `${requestedPercent.toFixed(2)}%`;
|
|
79702
|
-
const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79703
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79704
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79703
|
+
const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipContent, { $colorInfoBgHover: token.colorInfoBgHover, children: [
|
|
79704
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79705
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#5EDBBD" }),
|
|
79705
79706
|
"Requested"
|
|
79706
79707
|
] }),
|
|
79707
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79708
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79708
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79709
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#FF1C1C" }),
|
|
79709
79710
|
"Used"
|
|
79710
79711
|
] }),
|
|
79711
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79712
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79712
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.TooltipRow, { $colorText: token.colorText, children: [
|
|
79713
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.TooltipDot, { $color: "#FD9125" }),
|
|
79713
79714
|
"Limit"
|
|
79714
79715
|
] })
|
|
79715
79716
|
] });
|
|
@@ -79790,10 +79791,10 @@ const UsageGraphCard = ({
|
|
|
79790
79791
|
if (shouldShowError) {
|
|
79791
79792
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
|
|
79792
79793
|
}
|
|
79793
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79794
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79795
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79796
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79794
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.Wrapper, { style: containerStyle, $colorBgContainer: token.colorBgContainer, $colorBorder: token.colorBorder, children: [
|
|
79795
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.Header, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.Title, { $colorText: token.colorText, children: title }) }),
|
|
79796
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.ChartContainer, { children: [
|
|
79797
|
+
/* @__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: [
|
|
79797
79798
|
/* @__PURE__ */ jsxRuntimeExports.jsx(XAxis, { dataKey: "index", hide: true }),
|
|
79798
79799
|
/* @__PURE__ */ jsxRuntimeExports.jsx(YAxis, { hide: true, domain: yDomain, padding: { top: 6, bottom: 24 } }),
|
|
79799
79800
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -79817,9 +79818,9 @@ const UsageGraphCard = ({
|
|
|
79817
79818
|
}
|
|
79818
79819
|
)
|
|
79819
79820
|
] }) }) }) }),
|
|
79820
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79821
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.ChartOverlay, { $isDark: isDark })
|
|
79821
79822
|
] }),
|
|
79822
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79823
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.GradientBarWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.GradientBarContainer, { children: [
|
|
79823
79824
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79824
79825
|
Tooltip$1,
|
|
79825
79826
|
{
|
|
@@ -79831,7 +79832,7 @@ const UsageGraphCard = ({
|
|
|
79831
79832
|
body: { padding: 0, borderRadius: 6 }
|
|
79832
79833
|
},
|
|
79833
79834
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
79834
|
-
Styled$
|
|
79835
|
+
Styled$q.GradientBar,
|
|
79835
79836
|
{
|
|
79836
79837
|
$minColor: minColor,
|
|
79837
79838
|
$midColor: midColor,
|
|
@@ -79841,12 +79842,12 @@ const UsageGraphCard = ({
|
|
|
79841
79842
|
)
|
|
79842
79843
|
}
|
|
79843
79844
|
),
|
|
79844
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
79845
|
-
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79846
|
-
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79847
|
-
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
79845
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$q.BadgesContainer, { ref: badgesContainerRef, children: [
|
|
79846
|
+
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: requestedPercent, $edgeAlign: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RequestedMarkerSvg, {}) }),
|
|
79847
|
+
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: usedPercent, $flipX: true, $paddingTop: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(UsedMarkerSvg, {}) }),
|
|
79848
|
+
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.BarMarker, { $left: limitPercent, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LimitMarkerSvg, {}) }),
|
|
79848
79849
|
resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79849
|
-
Styled$
|
|
79850
|
+
Styled$q.UsedBadge,
|
|
79850
79851
|
{
|
|
79851
79852
|
ref: usedBadgeRef,
|
|
79852
79853
|
$left: clampedUsedPercent ?? usedPercent,
|
|
@@ -79868,7 +79869,7 @@ const UsageGraphCard = ({
|
|
|
79868
79869
|
}
|
|
79869
79870
|
),
|
|
79870
79871
|
resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79871
|
-
Styled$
|
|
79872
|
+
Styled$q.MarkerLabel,
|
|
79872
79873
|
{
|
|
79873
79874
|
ref: requestedLabelRef,
|
|
79874
79875
|
$left: clampedRequestedPercent ?? requestedPercent,
|
|
@@ -79889,7 +79890,7 @@ const UsageGraphCard = ({
|
|
|
79889
79890
|
}
|
|
79890
79891
|
),
|
|
79891
79892
|
resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
79892
|
-
Styled$
|
|
79893
|
+
Styled$q.MarkerLabel,
|
|
79893
79894
|
{
|
|
79894
79895
|
ref: limitLabelRef,
|
|
79895
79896
|
$left: limitPercent,
|
|
@@ -79957,7 +79958,7 @@ const IconButton = styled(Button)`
|
|
|
79957
79958
|
font-size: 16px;
|
|
79958
79959
|
}
|
|
79959
79960
|
`;
|
|
79960
|
-
const Styled$
|
|
79961
|
+
const Styled$p = {
|
|
79961
79962
|
IconWrapper,
|
|
79962
79963
|
IconScaler,
|
|
79963
79964
|
IconButton
|
|
@@ -80007,7 +80008,7 @@ const buildEditUrl = (props, fullPath) => {
|
|
|
80007
80008
|
};
|
|
80008
80009
|
const getActionIcon = (action) => {
|
|
80009
80010
|
if (action.props.iconBase64Encoded) {
|
|
80010
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
80011
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconScaler, { children: renderIcon$1(action.props.iconBase64Encoded, "currentColor") }) });
|
|
80011
80012
|
}
|
|
80012
80013
|
if (action.props.icon) {
|
|
80013
80014
|
return renderAntIcon(action.props.icon);
|
|
@@ -81430,7 +81431,7 @@ const ActionsDropdown = ({ data, children }) => {
|
|
|
81430
81431
|
};
|
|
81431
81432
|
const renderButton = () => {
|
|
81432
81433
|
if (buttonVariant === "icon") {
|
|
81433
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
81434
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.IconButton, { type: "text", size: "small", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreOutlined, {}) });
|
|
81434
81435
|
}
|
|
81435
81436
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { children: [
|
|
81436
81437
|
buttonText,
|
|
@@ -82069,7 +82070,7 @@ const CenteredResultWrapper = styled.div`
|
|
|
82069
82070
|
justify-content: center;
|
|
82070
82071
|
flex: 1;
|
|
82071
82072
|
`;
|
|
82072
|
-
const Styled$
|
|
82073
|
+
const Styled$o = {
|
|
82073
82074
|
CenteredResultWrapper
|
|
82074
82075
|
};
|
|
82075
82076
|
|
|
@@ -82093,7 +82094,7 @@ const AntdResult = ({ data, children }) => {
|
|
|
82093
82094
|
const status = data.status ?? result.resultStatus;
|
|
82094
82095
|
const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
|
|
82095
82096
|
const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : result.message;
|
|
82096
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82097
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status, title, subTitle, style: data.style }) });
|
|
82097
82098
|
}
|
|
82098
82099
|
if (Array.isArray(data.reqIndex)) {
|
|
82099
82100
|
const worst = findWorstError(data.reqIndex, multiQueryData, getErrorForReq, shouldCheckEmpty, data.itemsPath);
|
|
@@ -82103,11 +82104,11 @@ const AntdResult = ({ data, children }) => {
|
|
|
82103
82104
|
const status = data.status ?? worst.resultStatus;
|
|
82104
82105
|
const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
|
|
82105
82106
|
const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : worst.message;
|
|
82106
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82107
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status, title, subTitle, style: data.style }) });
|
|
82107
82108
|
}
|
|
82108
82109
|
const parsedTitle = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : void 0;
|
|
82109
82110
|
const parsedSubTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : void 0;
|
|
82110
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
82111
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: data.status, title: parsedTitle, subTitle: parsedSubTitle, style: data.style, children }) });
|
|
82111
82112
|
};
|
|
82112
82113
|
|
|
82113
82114
|
const DynamicComponents = {
|
|
@@ -82908,6 +82909,22 @@ const ClusterListTable = ({
|
|
|
82908
82909
|
);
|
|
82909
82910
|
};
|
|
82910
82911
|
|
|
82912
|
+
const getMinHeight = (minHeight) => {
|
|
82913
|
+
if (typeof minHeight === "number") {
|
|
82914
|
+
return `${minHeight}px`;
|
|
82915
|
+
}
|
|
82916
|
+
return minHeight || "auto";
|
|
82917
|
+
};
|
|
82918
|
+
const LoadingContainer$2 = styled.div`
|
|
82919
|
+
display: flex;
|
|
82920
|
+
align-items: center;
|
|
82921
|
+
justify-content: center;
|
|
82922
|
+
min-height: ${({ $minHeight }) => getMinHeight($minHeight)};
|
|
82923
|
+
`;
|
|
82924
|
+
const Styled$n = {
|
|
82925
|
+
LoadingContainer: LoadingContainer$2
|
|
82926
|
+
};
|
|
82927
|
+
|
|
82911
82928
|
const prepare = ({
|
|
82912
82929
|
dataItems,
|
|
82913
82930
|
pathToKey,
|
|
@@ -83191,13 +83208,13 @@ const EnrichedTableProvider = ({
|
|
|
83191
83208
|
// isNamespaced,
|
|
83192
83209
|
]);
|
|
83193
83210
|
if (!preparedProps && isLoading) {
|
|
83194
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83211
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
83195
83212
|
}
|
|
83196
83213
|
if (isError) {
|
|
83197
83214
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { message: isError, type: "error" });
|
|
83198
83215
|
}
|
|
83199
83216
|
if (!preparedProps) {
|
|
83200
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83217
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
83201
83218
|
}
|
|
83202
83219
|
const fullPath = `${location.pathname}${location.search}`;
|
|
83203
83220
|
const { dataSource, columns } = prepare({
|
|
@@ -83288,14 +83305,14 @@ var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && se
|
|
|
83288
83305
|
var root$4 = freeGlobal$2 || freeSelf$1 || Function('return this')();
|
|
83289
83306
|
|
|
83290
83307
|
/** Used for built-in method references. */
|
|
83291
|
-
var objectProto$
|
|
83308
|
+
var objectProto$7 = Object.prototype;
|
|
83292
83309
|
|
|
83293
83310
|
/**
|
|
83294
83311
|
* Used to resolve the
|
|
83295
83312
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
83296
83313
|
* of values.
|
|
83297
83314
|
*/
|
|
83298
|
-
var objectToString$2 = objectProto$
|
|
83315
|
+
var objectToString$2 = objectProto$7.toString;
|
|
83299
83316
|
|
|
83300
83317
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
83301
83318
|
var nativeMax = Math.max,
|
|
@@ -83551,7 +83568,7 @@ function isObject$3(value) {
|
|
|
83551
83568
|
* _.isObjectLike(null);
|
|
83552
83569
|
* // => false
|
|
83553
83570
|
*/
|
|
83554
|
-
function isObjectLike$
|
|
83571
|
+
function isObjectLike$4(value) {
|
|
83555
83572
|
return !!value && typeof value == 'object';
|
|
83556
83573
|
}
|
|
83557
83574
|
|
|
@@ -83574,7 +83591,7 @@ function isObjectLike$2(value) {
|
|
|
83574
83591
|
*/
|
|
83575
83592
|
function isSymbol$4(value) {
|
|
83576
83593
|
return typeof value == 'symbol' ||
|
|
83577
|
-
(isObjectLike$
|
|
83594
|
+
(isObjectLike$4(value) && objectToString$2.call(value) == symbolTag$1);
|
|
83578
83595
|
}
|
|
83579
83596
|
|
|
83580
83597
|
/**
|
|
@@ -83828,7 +83845,7 @@ const BorderRadiusContainer = styled.div`
|
|
|
83828
83845
|
border-radius: 8px;
|
|
83829
83846
|
}
|
|
83830
83847
|
`;
|
|
83831
|
-
const Styled$
|
|
83848
|
+
const Styled$m = {
|
|
83832
83849
|
BorderRadiusContainer
|
|
83833
83850
|
};
|
|
83834
83851
|
|
|
@@ -83875,7 +83892,7 @@ const YamlEditor = ({ theme: theme$1, currentValues, onChange, editorUri }) => {
|
|
|
83875
83892
|
}
|
|
83876
83893
|
}
|
|
83877
83894
|
}, [yamlData, editorUri]);
|
|
83878
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
83895
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.BorderRadiusContainer, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
83879
83896
|
Ft$1,
|
|
83880
83897
|
{
|
|
83881
83898
|
language: "yaml",
|
|
@@ -84016,9 +84033,9 @@ const useDefaultValueButton = (formFieldName, defaultValue, nullable) => {
|
|
|
84016
84033
|
* // => false
|
|
84017
84034
|
*/
|
|
84018
84035
|
|
|
84019
|
-
var isArray$
|
|
84036
|
+
var isArray$4 = Array.isArray;
|
|
84020
84037
|
|
|
84021
|
-
var isArray_1 = isArray$
|
|
84038
|
+
var isArray_1 = isArray$4;
|
|
84022
84039
|
|
|
84023
84040
|
/** Detect free variable `global` from Node.js. */
|
|
84024
84041
|
|
|
@@ -84046,17 +84063,17 @@ var _Symbol = Symbol$4;
|
|
|
84046
84063
|
var Symbol$3 = _Symbol;
|
|
84047
84064
|
|
|
84048
84065
|
/** Used for built-in method references. */
|
|
84049
|
-
var objectProto$
|
|
84066
|
+
var objectProto$6 = Object.prototype;
|
|
84050
84067
|
|
|
84051
84068
|
/** Used to check objects for own properties. */
|
|
84052
|
-
var hasOwnProperty$
|
|
84069
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
84053
84070
|
|
|
84054
84071
|
/**
|
|
84055
84072
|
* Used to resolve the
|
|
84056
84073
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
84057
84074
|
* of values.
|
|
84058
84075
|
*/
|
|
84059
|
-
var nativeObjectToString$1 = objectProto$
|
|
84076
|
+
var nativeObjectToString$1 = objectProto$6.toString;
|
|
84060
84077
|
|
|
84061
84078
|
/** Built-in value references. */
|
|
84062
84079
|
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
@@ -84069,7 +84086,7 @@ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
|
84069
84086
|
* @returns {string} Returns the raw `toStringTag`.
|
|
84070
84087
|
*/
|
|
84071
84088
|
function getRawTag$1(value) {
|
|
84072
|
-
var isOwn = hasOwnProperty$
|
|
84089
|
+
var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
|
|
84073
84090
|
tag = value[symToStringTag$1];
|
|
84074
84091
|
|
|
84075
84092
|
try {
|
|
@@ -84092,14 +84109,14 @@ var _getRawTag = getRawTag$1;
|
|
|
84092
84109
|
|
|
84093
84110
|
/** Used for built-in method references. */
|
|
84094
84111
|
|
|
84095
|
-
var objectProto$
|
|
84112
|
+
var objectProto$5 = Object.prototype;
|
|
84096
84113
|
|
|
84097
84114
|
/**
|
|
84098
84115
|
* Used to resolve the
|
|
84099
84116
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
84100
84117
|
* of values.
|
|
84101
84118
|
*/
|
|
84102
|
-
var nativeObjectToString = objectProto$
|
|
84119
|
+
var nativeObjectToString = objectProto$5.toString;
|
|
84103
84120
|
|
|
84104
84121
|
/**
|
|
84105
84122
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -84132,7 +84149,7 @@ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
84132
84149
|
* @param {*} value The value to query.
|
|
84133
84150
|
* @returns {string} Returns the `toStringTag`.
|
|
84134
84151
|
*/
|
|
84135
|
-
function baseGetTag$
|
|
84152
|
+
function baseGetTag$3(value) {
|
|
84136
84153
|
if (value == null) {
|
|
84137
84154
|
return value === undefined ? undefinedTag : nullTag;
|
|
84138
84155
|
}
|
|
@@ -84141,7 +84158,7 @@ function baseGetTag$2(value) {
|
|
|
84141
84158
|
: objectToString(value);
|
|
84142
84159
|
}
|
|
84143
84160
|
|
|
84144
|
-
var _baseGetTag = baseGetTag$
|
|
84161
|
+
var _baseGetTag = baseGetTag$3;
|
|
84145
84162
|
|
|
84146
84163
|
/**
|
|
84147
84164
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -84168,14 +84185,14 @@ var _baseGetTag = baseGetTag$2;
|
|
|
84168
84185
|
* // => false
|
|
84169
84186
|
*/
|
|
84170
84187
|
|
|
84171
|
-
function isObjectLike$
|
|
84188
|
+
function isObjectLike$3(value) {
|
|
84172
84189
|
return value != null && typeof value == 'object';
|
|
84173
84190
|
}
|
|
84174
84191
|
|
|
84175
|
-
var isObjectLike_1 = isObjectLike$
|
|
84192
|
+
var isObjectLike_1 = isObjectLike$3;
|
|
84176
84193
|
|
|
84177
|
-
var baseGetTag$
|
|
84178
|
-
isObjectLike = isObjectLike_1;
|
|
84194
|
+
var baseGetTag$2 = _baseGetTag,
|
|
84195
|
+
isObjectLike$2 = isObjectLike_1;
|
|
84179
84196
|
|
|
84180
84197
|
/** `Object#toString` result references. */
|
|
84181
84198
|
var symbolTag = '[object Symbol]';
|
|
@@ -84199,12 +84216,12 @@ var symbolTag = '[object Symbol]';
|
|
|
84199
84216
|
*/
|
|
84200
84217
|
function isSymbol$3(value) {
|
|
84201
84218
|
return typeof value == 'symbol' ||
|
|
84202
|
-
(isObjectLike(value) && baseGetTag$
|
|
84219
|
+
(isObjectLike$2(value) && baseGetTag$2(value) == symbolTag);
|
|
84203
84220
|
}
|
|
84204
84221
|
|
|
84205
84222
|
var isSymbol_1 = isSymbol$3;
|
|
84206
84223
|
|
|
84207
|
-
var isArray$
|
|
84224
|
+
var isArray$3 = isArray_1,
|
|
84208
84225
|
isSymbol$2 = isSymbol_1;
|
|
84209
84226
|
|
|
84210
84227
|
/** Used to match property names within property paths. */
|
|
@@ -84220,7 +84237,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
84220
84237
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
84221
84238
|
*/
|
|
84222
84239
|
function isKey$1(value, object) {
|
|
84223
|
-
if (isArray$
|
|
84240
|
+
if (isArray$3(value)) {
|
|
84224
84241
|
return false;
|
|
84225
84242
|
}
|
|
84226
84243
|
var type = typeof value;
|
|
@@ -84267,7 +84284,7 @@ function isObject$2(value) {
|
|
|
84267
84284
|
|
|
84268
84285
|
var isObject_1 = isObject$2;
|
|
84269
84286
|
|
|
84270
|
-
var baseGetTag = _baseGetTag,
|
|
84287
|
+
var baseGetTag$1 = _baseGetTag,
|
|
84271
84288
|
isObject$1 = isObject_1;
|
|
84272
84289
|
|
|
84273
84290
|
/** `Object#toString` result references. */
|
|
@@ -84299,7 +84316,7 @@ function isFunction$1(value) {
|
|
|
84299
84316
|
}
|
|
84300
84317
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
84301
84318
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
84302
|
-
var tag = baseGetTag(value);
|
|
84319
|
+
var tag = baseGetTag$1(value);
|
|
84303
84320
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
84304
84321
|
}
|
|
84305
84322
|
|
|
@@ -84377,17 +84394,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
84377
84394
|
|
|
84378
84395
|
/** Used for built-in method references. */
|
|
84379
84396
|
var funcProto = Function.prototype,
|
|
84380
|
-
objectProto$
|
|
84397
|
+
objectProto$4 = Object.prototype;
|
|
84381
84398
|
|
|
84382
84399
|
/** Used to resolve the decompiled source of functions. */
|
|
84383
84400
|
var funcToString = funcProto.toString;
|
|
84384
84401
|
|
|
84385
84402
|
/** Used to check objects for own properties. */
|
|
84386
|
-
var hasOwnProperty$
|
|
84403
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
84387
84404
|
|
|
84388
84405
|
/** Used to detect if a method is native. */
|
|
84389
84406
|
var reIsNative = RegExp('^' +
|
|
84390
|
-
funcToString.call(hasOwnProperty$
|
|
84407
|
+
funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
|
|
84391
84408
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
84392
84409
|
);
|
|
84393
84410
|
|
|
@@ -84490,10 +84507,10 @@ var nativeCreate$2 = _nativeCreate;
|
|
|
84490
84507
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
84491
84508
|
|
|
84492
84509
|
/** Used for built-in method references. */
|
|
84493
|
-
var objectProto$
|
|
84510
|
+
var objectProto$3 = Object.prototype;
|
|
84494
84511
|
|
|
84495
84512
|
/** Used to check objects for own properties. */
|
|
84496
|
-
var hasOwnProperty$
|
|
84513
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
84497
84514
|
|
|
84498
84515
|
/**
|
|
84499
84516
|
* Gets the hash value for `key`.
|
|
@@ -84510,7 +84527,7 @@ function hashGet$1(key) {
|
|
|
84510
84527
|
var result = data[key];
|
|
84511
84528
|
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
84512
84529
|
}
|
|
84513
|
-
return hasOwnProperty$
|
|
84530
|
+
return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
|
|
84514
84531
|
}
|
|
84515
84532
|
|
|
84516
84533
|
var _hashGet = hashGet$1;
|
|
@@ -84518,10 +84535,10 @@ var _hashGet = hashGet$1;
|
|
|
84518
84535
|
var nativeCreate$1 = _nativeCreate;
|
|
84519
84536
|
|
|
84520
84537
|
/** Used for built-in method references. */
|
|
84521
|
-
var objectProto = Object.prototype;
|
|
84538
|
+
var objectProto$2 = Object.prototype;
|
|
84522
84539
|
|
|
84523
84540
|
/** Used to check objects for own properties. */
|
|
84524
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
84541
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
84525
84542
|
|
|
84526
84543
|
/**
|
|
84527
84544
|
* Checks if a hash value for `key` exists.
|
|
@@ -84534,7 +84551,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
84534
84551
|
*/
|
|
84535
84552
|
function hashHas$1(key) {
|
|
84536
84553
|
var data = this.__data__;
|
|
84537
|
-
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
84554
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
|
|
84538
84555
|
}
|
|
84539
84556
|
|
|
84540
84557
|
var _hashHas = hashHas$1;
|
|
@@ -85134,7 +85151,7 @@ var _arrayMap = arrayMap$1;
|
|
|
85134
85151
|
|
|
85135
85152
|
var Symbol$1 = _Symbol,
|
|
85136
85153
|
arrayMap = _arrayMap,
|
|
85137
|
-
isArray$
|
|
85154
|
+
isArray$2 = isArray_1,
|
|
85138
85155
|
isSymbol$1 = isSymbol_1;
|
|
85139
85156
|
|
|
85140
85157
|
/** Used to convert symbols to primitives and strings. */
|
|
@@ -85154,7 +85171,7 @@ function baseToString$1(value) {
|
|
|
85154
85171
|
if (typeof value == 'string') {
|
|
85155
85172
|
return value;
|
|
85156
85173
|
}
|
|
85157
|
-
if (isArray$
|
|
85174
|
+
if (isArray$2(value)) {
|
|
85158
85175
|
// Recursively convert values (susceptible to call stack limits).
|
|
85159
85176
|
return arrayMap(value, baseToString$1) + '';
|
|
85160
85177
|
}
|
|
@@ -85196,7 +85213,7 @@ function toString$1(value) {
|
|
|
85196
85213
|
|
|
85197
85214
|
var toString_1 = toString$1;
|
|
85198
85215
|
|
|
85199
|
-
var isArray = isArray_1,
|
|
85216
|
+
var isArray$1 = isArray_1,
|
|
85200
85217
|
isKey = _isKey,
|
|
85201
85218
|
stringToPath = _stringToPath,
|
|
85202
85219
|
toString = toString_1;
|
|
@@ -85209,14 +85226,14 @@ var isArray = isArray_1,
|
|
|
85209
85226
|
* @param {Object} [object] The object to query keys on.
|
|
85210
85227
|
* @returns {Array} Returns the cast property path array.
|
|
85211
85228
|
*/
|
|
85212
|
-
function castPath$
|
|
85213
|
-
if (isArray(value)) {
|
|
85229
|
+
function castPath$2(value, object) {
|
|
85230
|
+
if (isArray$1(value)) {
|
|
85214
85231
|
return value;
|
|
85215
85232
|
}
|
|
85216
85233
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
85217
85234
|
}
|
|
85218
85235
|
|
|
85219
|
-
var _castPath = castPath$
|
|
85236
|
+
var _castPath = castPath$2;
|
|
85220
85237
|
|
|
85221
85238
|
var isSymbol = isSymbol_1;
|
|
85222
85239
|
|
|
@@ -85227,7 +85244,7 @@ var isSymbol = isSymbol_1;
|
|
|
85227
85244
|
* @param {*} value The value to inspect.
|
|
85228
85245
|
* @returns {string|symbol} Returns the key.
|
|
85229
85246
|
*/
|
|
85230
|
-
function toKey$
|
|
85247
|
+
function toKey$2(value) {
|
|
85231
85248
|
if (typeof value == 'string' || isSymbol(value)) {
|
|
85232
85249
|
return value;
|
|
85233
85250
|
}
|
|
@@ -85235,10 +85252,10 @@ function toKey$1(value) {
|
|
|
85235
85252
|
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
85236
85253
|
}
|
|
85237
85254
|
|
|
85238
|
-
var _toKey = toKey$
|
|
85255
|
+
var _toKey = toKey$2;
|
|
85239
85256
|
|
|
85240
|
-
var castPath = _castPath,
|
|
85241
|
-
toKey = _toKey;
|
|
85257
|
+
var castPath$1 = _castPath,
|
|
85258
|
+
toKey$1 = _toKey;
|
|
85242
85259
|
|
|
85243
85260
|
/**
|
|
85244
85261
|
* The base implementation of `_.get` without support for default values.
|
|
@@ -85249,13 +85266,13 @@ var castPath = _castPath,
|
|
|
85249
85266
|
* @returns {*} Returns the resolved value.
|
|
85250
85267
|
*/
|
|
85251
85268
|
function baseGet$1(object, path) {
|
|
85252
|
-
path = castPath(path, object);
|
|
85269
|
+
path = castPath$1(path, object);
|
|
85253
85270
|
|
|
85254
85271
|
var index = 0,
|
|
85255
85272
|
length = path.length;
|
|
85256
85273
|
|
|
85257
85274
|
while (object != null && index < length) {
|
|
85258
|
-
object = object[toKey(path[index++])];
|
|
85275
|
+
object = object[toKey$1(path[index++])];
|
|
85259
85276
|
}
|
|
85260
85277
|
return (index && index == length) ? object : undefined;
|
|
85261
85278
|
}
|
|
@@ -85298,10 +85315,82 @@ var get_1 = get;
|
|
|
85298
85315
|
|
|
85299
85316
|
const get$1 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
|
|
85300
85317
|
|
|
85318
|
+
const toOneOfBranchPath = (path) => path.split(".").filter(Boolean);
|
|
85319
|
+
const getOneOfBranchPathKey = (path) => JSON.stringify(path);
|
|
85320
|
+
const matchesOneOfBranch = (value, branch) => {
|
|
85321
|
+
const matchEntries = Object.entries(branch.match || {});
|
|
85322
|
+
if (matchEntries.length === 0) {
|
|
85323
|
+
return false;
|
|
85324
|
+
}
|
|
85325
|
+
return matchEntries.every(([path, expectedValue]) => get$1(value, path) === expectedValue);
|
|
85326
|
+
};
|
|
85327
|
+
const collectOneOfBranchMatchKeys = (branches) => {
|
|
85328
|
+
const set = /* @__PURE__ */ new Set();
|
|
85329
|
+
branches.forEach((branch) => {
|
|
85330
|
+
Object.keys(branch.match || {}).forEach((key) => {
|
|
85331
|
+
set.add(key);
|
|
85332
|
+
});
|
|
85333
|
+
});
|
|
85334
|
+
return Array.from(set);
|
|
85335
|
+
};
|
|
85336
|
+
const collectInactiveOneOfBranchPaths = ({
|
|
85337
|
+
branches,
|
|
85338
|
+
activeBranch
|
|
85339
|
+
}) => {
|
|
85340
|
+
const visibleBranchPathKeys = /* @__PURE__ */ new Set([
|
|
85341
|
+
...Object.keys(activeBranch.match || {}).map((matchPath) => getOneOfBranchPathKey(toOneOfBranchPath(matchPath))),
|
|
85342
|
+
...(activeBranch.required || []).map((requiredPath) => getOneOfBranchPathKey(toOneOfBranchPath(requiredPath)))
|
|
85343
|
+
]);
|
|
85344
|
+
const candidatePathKeys = /* @__PURE__ */ new Set();
|
|
85345
|
+
const candidatePaths = [];
|
|
85346
|
+
const addCandidatePath = (branchPath) => {
|
|
85347
|
+
const normalizedPath = toOneOfBranchPath(branchPath);
|
|
85348
|
+
const key = getOneOfBranchPathKey(normalizedPath);
|
|
85349
|
+
if (visibleBranchPathKeys.has(key) || candidatePathKeys.has(key)) {
|
|
85350
|
+
return;
|
|
85351
|
+
}
|
|
85352
|
+
candidatePathKeys.add(key);
|
|
85353
|
+
candidatePaths.push(normalizedPath);
|
|
85354
|
+
};
|
|
85355
|
+
(activeBranch.forbidden || []).forEach(addCandidatePath);
|
|
85356
|
+
branches.filter((branch) => branch !== activeBranch).forEach((branch) => {
|
|
85357
|
+
(branch.required || []).forEach(addCandidatePath);
|
|
85358
|
+
(branch.forbidden || []).forEach(addCandidatePath);
|
|
85359
|
+
});
|
|
85360
|
+
return candidatePaths;
|
|
85361
|
+
};
|
|
85362
|
+
|
|
85301
85363
|
const prettyFieldPath = (name) => {
|
|
85302
85364
|
return Array.isArray(name) ? name.map((segment) => String(segment)).join(".") : String(name);
|
|
85303
85365
|
};
|
|
85304
85366
|
const isEmptyValue = (value) => value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
|
|
85367
|
+
const INT32_MIN = -2147483648;
|
|
85368
|
+
const INT32_MAX = 2147483647;
|
|
85369
|
+
const DATE_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
85370
|
+
const DATE_TIME_PATTERN = /^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(\.\d+)?([Zz]|[+-](\d{2}):(\d{2}))$/;
|
|
85371
|
+
const isValidDateParts = (year, month, day) => {
|
|
85372
|
+
if (month < 1 || month > 12) return false;
|
|
85373
|
+
const isLeapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
85374
|
+
const daysByMonth = [31, isLeapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
85375
|
+
return day >= 1 && day <= daysByMonth[month - 1];
|
|
85376
|
+
};
|
|
85377
|
+
const matchesDateFormat = (value) => {
|
|
85378
|
+
const match = DATE_PATTERN.exec(value);
|
|
85379
|
+
if (!match) return false;
|
|
85380
|
+
const [, year, month, day] = match.map(Number);
|
|
85381
|
+
return isValidDateParts(year, month, day);
|
|
85382
|
+
};
|
|
85383
|
+
const matchesDateTimeFormat = (value) => {
|
|
85384
|
+
const match = DATE_TIME_PATTERN.exec(value);
|
|
85385
|
+
if (!match) return false;
|
|
85386
|
+
const [, year, month, day, hour, minute, second, , , offsetHour, offsetMinute] = match;
|
|
85387
|
+
const parsedHour = Number(hour);
|
|
85388
|
+
const parsedMinute = Number(minute);
|
|
85389
|
+
const parsedSecond = Number(second);
|
|
85390
|
+
const parsedOffsetHour = offsetHour === void 0 ? void 0 : Number(offsetHour);
|
|
85391
|
+
const parsedOffsetMinute = offsetMinute === void 0 ? void 0 : Number(offsetMinute);
|
|
85392
|
+
return isValidDateParts(Number(year), Number(month), Number(day)) && parsedHour >= 0 && parsedHour <= 23 && parsedMinute >= 0 && parsedMinute <= 59 && parsedSecond >= 0 && parsedSecond <= 59 && (parsedOffsetHour === void 0 || parsedOffsetHour >= 0 && parsedOffsetHour <= 23) && (parsedOffsetMinute === void 0 || parsedOffsetMinute >= 0 && parsedOffsetMinute <= 59);
|
|
85393
|
+
};
|
|
85305
85394
|
const isPresentForOneOf = (value) => {
|
|
85306
85395
|
if (value === null) return true;
|
|
85307
85396
|
if (value === void 0) return false;
|
|
@@ -85329,23 +85418,75 @@ const getOneOfRequiredGroupsError = ({
|
|
|
85329
85418
|
}
|
|
85330
85419
|
return getOneOfRequiredGroupsMessage(name, groups);
|
|
85331
85420
|
};
|
|
85421
|
+
const formatOneOfBranchMatch = (branch) => {
|
|
85422
|
+
const matchEntries = Object.entries(branch.match || {});
|
|
85423
|
+
if (matchEntries.length === 0) {
|
|
85424
|
+
return "selected branch";
|
|
85425
|
+
}
|
|
85426
|
+
return matchEntries.map(([path, expectedValue]) => `${path}=${String(expectedValue)}`).join(", ");
|
|
85427
|
+
};
|
|
85428
|
+
const getOneOfBranchErrors = ({
|
|
85429
|
+
value,
|
|
85430
|
+
name,
|
|
85431
|
+
branches
|
|
85432
|
+
}) => {
|
|
85433
|
+
if (!isPresentForOneOf(value)) {
|
|
85434
|
+
return [];
|
|
85435
|
+
}
|
|
85436
|
+
const matchedBranches = branches.filter((branch) => matchesOneOfBranch(value, branch));
|
|
85437
|
+
if (matchedBranches.length === 0) {
|
|
85438
|
+
return [];
|
|
85439
|
+
}
|
|
85440
|
+
if (matchedBranches.length > 1) {
|
|
85441
|
+
const branchText2 = matchedBranches.map(formatOneOfBranchMatch).join(", ");
|
|
85442
|
+
return [`Please match exactly one branch for ${prettyFieldPath(name)}: ${branchText2}`];
|
|
85443
|
+
}
|
|
85444
|
+
const [activeBranch] = matchedBranches;
|
|
85445
|
+
const branchText = formatOneOfBranchMatch(activeBranch);
|
|
85446
|
+
const missingRequiredFields = (activeBranch.required || []).filter((path) => !isPresentForOneOf(get$1(value, path)));
|
|
85447
|
+
const presentForbiddenFields = (activeBranch.forbidden || []).filter((path) => isPresentForOneOf(get$1(value, path)));
|
|
85448
|
+
const errors = [];
|
|
85449
|
+
if (missingRequiredFields.length > 0) {
|
|
85450
|
+
errors.push(
|
|
85451
|
+
`Please provide required fields for ${prettyFieldPath(name)} when ${branchText}: ${formatOneOfGroup(
|
|
85452
|
+
missingRequiredFields
|
|
85453
|
+
)}`
|
|
85454
|
+
);
|
|
85455
|
+
}
|
|
85456
|
+
if (presentForbiddenFields.length > 0) {
|
|
85457
|
+
errors.push(
|
|
85458
|
+
`Please remove forbidden fields for ${prettyFieldPath(name)} when ${branchText}: ${formatOneOfGroup(
|
|
85459
|
+
presentForbiddenFields
|
|
85460
|
+
)}`
|
|
85461
|
+
);
|
|
85462
|
+
}
|
|
85463
|
+
return errors;
|
|
85464
|
+
};
|
|
85332
85465
|
const getCurrentOneOfRequiredGroupState = ({
|
|
85333
85466
|
path,
|
|
85334
85467
|
nodeOneOfRequiredGroups,
|
|
85468
|
+
nodeOneOfBranches,
|
|
85335
85469
|
value
|
|
85336
85470
|
}) => {
|
|
85337
|
-
|
|
85471
|
+
const hasRequiredGroups = Boolean(nodeOneOfRequiredGroups && nodeOneOfRequiredGroups.length > 0);
|
|
85472
|
+
const hasBranches = Boolean(nodeOneOfBranches && nodeOneOfBranches.length > 0);
|
|
85473
|
+
if (!hasRequiredGroups && !hasBranches) {
|
|
85338
85474
|
return [];
|
|
85339
85475
|
}
|
|
85340
|
-
const
|
|
85476
|
+
const requiredGroupError = hasRequiredGroups ? getOneOfRequiredGroupsError({
|
|
85341
85477
|
value,
|
|
85342
85478
|
name: path,
|
|
85343
|
-
groups: nodeOneOfRequiredGroups
|
|
85344
|
-
});
|
|
85479
|
+
groups: nodeOneOfRequiredGroups || []
|
|
85480
|
+
}) : void 0;
|
|
85481
|
+
const branchErrors = hasBranches ? getOneOfBranchErrors({
|
|
85482
|
+
value,
|
|
85483
|
+
name: path,
|
|
85484
|
+
branches: nodeOneOfBranches || []
|
|
85485
|
+
}) : [];
|
|
85345
85486
|
return [
|
|
85346
85487
|
{
|
|
85347
85488
|
name: path,
|
|
85348
|
-
errors:
|
|
85489
|
+
errors: [...requiredGroupError ? [requiredGroupError] : [], ...branchErrors]
|
|
85349
85490
|
}
|
|
85350
85491
|
];
|
|
85351
85492
|
};
|
|
@@ -85360,6 +85501,7 @@ const collectOneOfRequiredGroupStates = ({
|
|
|
85360
85501
|
const currentState = getCurrentOneOfRequiredGroupState({
|
|
85361
85502
|
path,
|
|
85362
85503
|
nodeOneOfRequiredGroups: node.oneOfRequiredGroups,
|
|
85504
|
+
nodeOneOfBranches: node.oneOfBranches,
|
|
85363
85505
|
value
|
|
85364
85506
|
});
|
|
85365
85507
|
const nestedObjectStates = node.properties && value && typeof value === "object" && !Array.isArray(value) ? collectOneOfRequiredGroupStates({
|
|
@@ -85371,6 +85513,7 @@ const collectOneOfRequiredGroupStates = ({
|
|
|
85371
85513
|
...getCurrentOneOfRequiredGroupState({
|
|
85372
85514
|
path: [...path, index],
|
|
85373
85515
|
nodeOneOfRequiredGroups: node.items?.oneOfRequiredGroups,
|
|
85516
|
+
nodeOneOfBranches: node.items?.oneOfBranches,
|
|
85374
85517
|
value: get$1(values, [...path, index])
|
|
85375
85518
|
}),
|
|
85376
85519
|
...node.items?.properties ? collectOneOfRequiredGroupStates({
|
|
@@ -85401,6 +85544,145 @@ const getRequiredRule = (isRequired, name, nullable) => {
|
|
|
85401
85544
|
}
|
|
85402
85545
|
return { required: true, message };
|
|
85403
85546
|
};
|
|
85547
|
+
const getPatternRule = (pattern, name) => {
|
|
85548
|
+
if (!pattern) {
|
|
85549
|
+
return void 0;
|
|
85550
|
+
}
|
|
85551
|
+
let regexp;
|
|
85552
|
+
const fieldPath = prettyFieldPath(name);
|
|
85553
|
+
try {
|
|
85554
|
+
regexp = new RegExp(pattern);
|
|
85555
|
+
} catch (error) {
|
|
85556
|
+
console.warn("[BlackholeForm] OpenAPI pattern cannot be compiled as JavaScript RegExp", {
|
|
85557
|
+
fieldPath,
|
|
85558
|
+
pattern,
|
|
85559
|
+
error
|
|
85560
|
+
});
|
|
85561
|
+
return void 0;
|
|
85562
|
+
}
|
|
85563
|
+
const message = `Value must match pattern for ${fieldPath}: ${pattern}`;
|
|
85564
|
+
return {
|
|
85565
|
+
validator: async (_, value) => {
|
|
85566
|
+
if (value === void 0 || value === null || value === "") return;
|
|
85567
|
+
if (typeof value !== "string") return;
|
|
85568
|
+
if (!regexp.test(value)) {
|
|
85569
|
+
throw new Error(message);
|
|
85570
|
+
}
|
|
85571
|
+
}
|
|
85572
|
+
};
|
|
85573
|
+
};
|
|
85574
|
+
const getStringLengthRule = ({
|
|
85575
|
+
minLength,
|
|
85576
|
+
maxLength,
|
|
85577
|
+
name
|
|
85578
|
+
}) => {
|
|
85579
|
+
if (minLength === void 0 && maxLength === void 0) {
|
|
85580
|
+
return void 0;
|
|
85581
|
+
}
|
|
85582
|
+
let message = `Value must be at most ${maxLength} characters for ${prettyFieldPath(name)}`;
|
|
85583
|
+
if (minLength !== void 0 && maxLength !== void 0) {
|
|
85584
|
+
message = `Value must be between ${minLength} and ${maxLength} characters for ${prettyFieldPath(name)}`;
|
|
85585
|
+
} else if (minLength !== void 0) {
|
|
85586
|
+
message = `Value must be at least ${minLength} characters for ${prettyFieldPath(name)}`;
|
|
85587
|
+
}
|
|
85588
|
+
return {
|
|
85589
|
+
validator: async (_, value) => {
|
|
85590
|
+
if (value === void 0 || value === null || value === "") return;
|
|
85591
|
+
if (typeof value !== "string") return;
|
|
85592
|
+
if (minLength !== void 0 && value.length < minLength) {
|
|
85593
|
+
throw new Error(message);
|
|
85594
|
+
}
|
|
85595
|
+
if (maxLength !== void 0 && value.length > maxLength) {
|
|
85596
|
+
throw new Error(message);
|
|
85597
|
+
}
|
|
85598
|
+
}
|
|
85599
|
+
};
|
|
85600
|
+
};
|
|
85601
|
+
const getStringFormatRule = (format, name) => {
|
|
85602
|
+
if (!format || format !== "date" && format !== "date-time") {
|
|
85603
|
+
return void 0;
|
|
85604
|
+
}
|
|
85605
|
+
const message = format === "date" ? `Value must match date format for ${prettyFieldPath(name)}: YYYY-MM-DD` : `Value must match date-time format for ${prettyFieldPath(name)}: RFC 3339 date-time`;
|
|
85606
|
+
return {
|
|
85607
|
+
validator: async (_, value) => {
|
|
85608
|
+
if (value === void 0 || value === null || value === "") return;
|
|
85609
|
+
if (typeof value !== "string") return;
|
|
85610
|
+
const matchesFormat = format === "date" ? matchesDateFormat(value) : matchesDateTimeFormat(value);
|
|
85611
|
+
if (!matchesFormat) {
|
|
85612
|
+
throw new Error(message);
|
|
85613
|
+
}
|
|
85614
|
+
}
|
|
85615
|
+
};
|
|
85616
|
+
};
|
|
85617
|
+
const getArrayItemsRule = ({
|
|
85618
|
+
minItems,
|
|
85619
|
+
maxItems,
|
|
85620
|
+
name
|
|
85621
|
+
}) => {
|
|
85622
|
+
if (minItems === void 0 && maxItems === void 0) {
|
|
85623
|
+
return void 0;
|
|
85624
|
+
}
|
|
85625
|
+
let message = `Value must contain at most ${maxItems} items for ${prettyFieldPath(name)}`;
|
|
85626
|
+
if (minItems !== void 0 && maxItems !== void 0) {
|
|
85627
|
+
message = `Value must contain between ${minItems} and ${maxItems} items for ${prettyFieldPath(name)}`;
|
|
85628
|
+
} else if (minItems !== void 0) {
|
|
85629
|
+
message = `Value must contain at least ${minItems} items for ${prettyFieldPath(name)}`;
|
|
85630
|
+
}
|
|
85631
|
+
return {
|
|
85632
|
+
validator: async (_, value) => {
|
|
85633
|
+
if (value === void 0 || value === null) return;
|
|
85634
|
+
if (!Array.isArray(value)) return;
|
|
85635
|
+
if (minItems !== void 0 && value.length < minItems) {
|
|
85636
|
+
throw new Error(message);
|
|
85637
|
+
}
|
|
85638
|
+
if (maxItems !== void 0 && value.length > maxItems) {
|
|
85639
|
+
throw new Error(message);
|
|
85640
|
+
}
|
|
85641
|
+
}
|
|
85642
|
+
};
|
|
85643
|
+
};
|
|
85644
|
+
const getNumberFormatRule = (format, name) => {
|
|
85645
|
+
if (format !== "int32") {
|
|
85646
|
+
return void 0;
|
|
85647
|
+
}
|
|
85648
|
+
const message = `Value must be a 32-bit signed integer for ${prettyFieldPath(name)}`;
|
|
85649
|
+
return {
|
|
85650
|
+
validator: async (_, value) => {
|
|
85651
|
+
if (value === void 0 || value === null || value === "") return;
|
|
85652
|
+
if (typeof value !== "number") return;
|
|
85653
|
+
if (!Number.isInteger(value) || value < INT32_MIN || value > INT32_MAX) {
|
|
85654
|
+
throw new Error(message);
|
|
85655
|
+
}
|
|
85656
|
+
}
|
|
85657
|
+
};
|
|
85658
|
+
};
|
|
85659
|
+
const getNumberRangeRule = ({
|
|
85660
|
+
minimum,
|
|
85661
|
+
maximum,
|
|
85662
|
+
name
|
|
85663
|
+
}) => {
|
|
85664
|
+
if (minimum === void 0 && maximum === void 0) {
|
|
85665
|
+
return void 0;
|
|
85666
|
+
}
|
|
85667
|
+
let message = `Value must be at most ${maximum} for ${prettyFieldPath(name)}`;
|
|
85668
|
+
if (minimum !== void 0 && maximum !== void 0) {
|
|
85669
|
+
message = `Value must be between ${minimum} and ${maximum} for ${prettyFieldPath(name)}`;
|
|
85670
|
+
} else if (minimum !== void 0) {
|
|
85671
|
+
message = `Value must be at least ${minimum} for ${prettyFieldPath(name)}`;
|
|
85672
|
+
}
|
|
85673
|
+
return {
|
|
85674
|
+
validator: async (_, value) => {
|
|
85675
|
+
if (value === void 0 || value === null || value === "") return;
|
|
85676
|
+
if (typeof value !== "number") return;
|
|
85677
|
+
if (minimum !== void 0 && value < minimum) {
|
|
85678
|
+
throw new Error(message);
|
|
85679
|
+
}
|
|
85680
|
+
if (maximum !== void 0 && value > maximum) {
|
|
85681
|
+
throw new Error(message);
|
|
85682
|
+
}
|
|
85683
|
+
}
|
|
85684
|
+
};
|
|
85685
|
+
};
|
|
85404
85686
|
|
|
85405
85687
|
const FormListInput = ({
|
|
85406
85688
|
name,
|
|
@@ -85416,7 +85698,9 @@ const FormListInput = ({
|
|
|
85416
85698
|
customProps,
|
|
85417
85699
|
urlParams,
|
|
85418
85700
|
onRemoveByMinus,
|
|
85419
|
-
defaultValue
|
|
85701
|
+
defaultValue,
|
|
85702
|
+
minItems,
|
|
85703
|
+
maxItems
|
|
85420
85704
|
}) => {
|
|
85421
85705
|
const designNewLayout = useDesignNewLayout();
|
|
85422
85706
|
const onValuesChangeCallBack = useOnValuesChangeCallback();
|
|
@@ -85428,6 +85712,7 @@ const FormListInput = ({
|
|
|
85428
85712
|
const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
|
|
85429
85713
|
const formFieldName = arrName || fixedName;
|
|
85430
85714
|
const defaultBtn = useDefaultValueButton(formFieldName, defaultValue);
|
|
85715
|
+
const arrayItemsRule = getArrayItemsRule({ minItems, maxItems, name });
|
|
85431
85716
|
const fullFieldPath = normalizeNameToPath(fixedName);
|
|
85432
85717
|
const baseForRelative = listItemBasePath(fullFieldPath);
|
|
85433
85718
|
const relatedPath = customProps.relatedValuePath ? resolveFormPath(customProps.relatedValuePath, baseForRelative) : void 0;
|
|
@@ -85563,7 +85848,10 @@ const FormListInput = ({
|
|
|
85563
85848
|
ResetedFormItem$1,
|
|
85564
85849
|
{
|
|
85565
85850
|
name: formFieldName,
|
|
85566
|
-
rules: [
|
|
85851
|
+
rules: [
|
|
85852
|
+
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name),
|
|
85853
|
+
...arrayItemsRule ? [arrayItemsRule] : []
|
|
85854
|
+
],
|
|
85567
85855
|
validateTrigger: "onBlur",
|
|
85568
85856
|
hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
|
|
85569
85857
|
style: { flex: 1 },
|
|
@@ -85974,15 +86262,42 @@ const FormRangeInput = ({
|
|
|
85974
86262
|
);
|
|
85975
86263
|
};
|
|
85976
86264
|
|
|
86265
|
+
const isNamespaceAvailable = (candidate, namespaceData) => namespaceData.selectValues.some((option) => option.value === candidate);
|
|
85977
86266
|
const FormNamespaceInput = ({
|
|
85978
86267
|
name,
|
|
85979
86268
|
namespaceData,
|
|
85980
86269
|
isAdditionalProperties,
|
|
85981
86270
|
removeField,
|
|
85982
|
-
defaultValue
|
|
86271
|
+
defaultValue,
|
|
86272
|
+
contextNamespace
|
|
85983
86273
|
}) => {
|
|
85984
86274
|
const designNewLayout = useDesignNewLayout();
|
|
86275
|
+
const form = Form.useFormInstance();
|
|
85985
86276
|
const defaultBtn = useDefaultValueButton(name, defaultValue);
|
|
86277
|
+
const cascadeAppliedRef = useRef(false);
|
|
86278
|
+
useEffect(() => {
|
|
86279
|
+
if (cascadeAppliedRef.current) return;
|
|
86280
|
+
if (!namespaceData) return;
|
|
86281
|
+
const currentValue = form.getFieldValue(name);
|
|
86282
|
+
if (currentValue !== void 0 && currentValue !== null && currentValue !== "") {
|
|
86283
|
+
cascadeAppliedRef.current = true;
|
|
86284
|
+
return;
|
|
86285
|
+
}
|
|
86286
|
+
const defaultIsValid = defaultValue !== void 0 && isNamespaceAvailable(defaultValue, namespaceData);
|
|
86287
|
+
if (defaultValue !== void 0 && !defaultIsValid) {
|
|
86288
|
+
console.warn(
|
|
86289
|
+
`[FormNamespaceInput] Default namespace "${defaultValue}" is not available in this cluster for ${prettyFieldPath(
|
|
86290
|
+
name
|
|
86291
|
+
)}, falling back to URL context`
|
|
86292
|
+
);
|
|
86293
|
+
}
|
|
86294
|
+
if (defaultIsValid) {
|
|
86295
|
+
form.setFieldValue(name, defaultValue);
|
|
86296
|
+
} else if (contextNamespace !== void 0 && isNamespaceAvailable(contextNamespace, namespaceData)) {
|
|
86297
|
+
form.setFieldValue(name, contextNamespace);
|
|
86298
|
+
}
|
|
86299
|
+
cascadeAppliedRef.current = true;
|
|
86300
|
+
}, [namespaceData, defaultValue, contextNamespace, form, name]);
|
|
85986
86301
|
if (!namespaceData) {
|
|
85987
86302
|
return null;
|
|
85988
86303
|
}
|
|
@@ -86065,7 +86380,11 @@ const FormStringInput = ({
|
|
|
86065
86380
|
onRemoveByMinus,
|
|
86066
86381
|
defaultValue,
|
|
86067
86382
|
example,
|
|
86068
|
-
nullable
|
|
86383
|
+
nullable,
|
|
86384
|
+
format,
|
|
86385
|
+
pattern,
|
|
86386
|
+
minLength,
|
|
86387
|
+
maxLength
|
|
86069
86388
|
}) => {
|
|
86070
86389
|
const designNewLayout = useDesignNewLayout();
|
|
86071
86390
|
const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
|
|
@@ -86073,6 +86392,9 @@ const FormStringInput = ({
|
|
|
86073
86392
|
const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
|
|
86074
86393
|
const nullBtn = useNullToggleButton(formFieldName, nullable);
|
|
86075
86394
|
const exampleTooltip = getExampleTooltip(defaultValue, example);
|
|
86395
|
+
const formatRule = getStringFormatRule(format, name);
|
|
86396
|
+
const patternRule = getPatternRule(pattern, name);
|
|
86397
|
+
const lengthRule = getStringLengthRule({ minLength, maxLength, name });
|
|
86076
86398
|
const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
86077
86399
|
getStringByName(name),
|
|
86078
86400
|
required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
|
|
@@ -86102,7 +86424,10 @@ const FormStringInput = ({
|
|
|
86102
86424
|
{
|
|
86103
86425
|
name: formFieldName,
|
|
86104
86426
|
rules: [
|
|
86105
|
-
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
|
|
86427
|
+
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
|
|
86428
|
+
...formatRule ? [formatRule] : [],
|
|
86429
|
+
...patternRule ? [patternRule] : [],
|
|
86430
|
+
...lengthRule ? [lengthRule] : []
|
|
86106
86431
|
],
|
|
86107
86432
|
validateTrigger: "onBlur",
|
|
86108
86433
|
hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
|
|
@@ -86141,7 +86466,7 @@ const fromBase64 = (b64) => {
|
|
|
86141
86466
|
const MarginBottom = styled.div`
|
|
86142
86467
|
margin-bottom: 8px;
|
|
86143
86468
|
`;
|
|
86144
|
-
const Styled$
|
|
86469
|
+
const Styled$l = {
|
|
86145
86470
|
MarginBottom
|
|
86146
86471
|
};
|
|
86147
86472
|
|
|
@@ -86160,7 +86485,11 @@ const FormStringMultilineInput = ({
|
|
|
86160
86485
|
isBase64,
|
|
86161
86486
|
defaultValue,
|
|
86162
86487
|
example,
|
|
86163
|
-
nullable
|
|
86488
|
+
nullable,
|
|
86489
|
+
format,
|
|
86490
|
+
pattern,
|
|
86491
|
+
minLength,
|
|
86492
|
+
maxLength
|
|
86164
86493
|
}) => {
|
|
86165
86494
|
const designNewLayout = useDesignNewLayout();
|
|
86166
86495
|
const placeholder = buildPlaceholder(name, defaultValue, example);
|
|
@@ -86171,6 +86500,9 @@ const FormStringMultilineInput = ({
|
|
|
86171
86500
|
const form = Form.useFormInstance();
|
|
86172
86501
|
const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
|
|
86173
86502
|
const nullBtn = useNullToggleButton(formFieldName, nullable);
|
|
86503
|
+
const formatRule = !isBase64 ? getStringFormatRule(format, name) : void 0;
|
|
86504
|
+
const patternRule = !isBase64 ? getPatternRule(pattern, name) : void 0;
|
|
86505
|
+
const lengthRule = !isBase64 ? getStringLengthRule({ minLength, maxLength, name }) : void 0;
|
|
86174
86506
|
const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
86175
86507
|
getStringByName(name),
|
|
86176
86508
|
required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
|
|
@@ -86209,7 +86541,10 @@ const FormStringMultilineInput = ({
|
|
|
86209
86541
|
{
|
|
86210
86542
|
name: arrName || fixedName,
|
|
86211
86543
|
rules: [
|
|
86212
|
-
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
|
|
86544
|
+
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
|
|
86545
|
+
...formatRule ? [formatRule] : [],
|
|
86546
|
+
...patternRule ? [patternRule] : [],
|
|
86547
|
+
...lengthRule ? [lengthRule] : []
|
|
86213
86548
|
],
|
|
86214
86549
|
validateTrigger: "onBlur",
|
|
86215
86550
|
hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
|
|
@@ -86228,7 +86563,7 @@ const FormStringMultilineInput = ({
|
|
|
86228
86563
|
},
|
|
86229
86564
|
arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
|
|
86230
86565
|
),
|
|
86231
|
-
isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
86566
|
+
isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.MarginBottom, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86232
86567
|
Input.TextArea,
|
|
86233
86568
|
{
|
|
86234
86569
|
placeholder,
|
|
@@ -86255,7 +86590,7 @@ const CrossContainer = styled.div`
|
|
|
86255
86590
|
cursor: pointer;
|
|
86256
86591
|
padding-top: 11px;
|
|
86257
86592
|
`;
|
|
86258
|
-
const Styled$
|
|
86593
|
+
const Styled$k = {
|
|
86259
86594
|
SwitchAndCrossContainer,
|
|
86260
86595
|
CrossContainer
|
|
86261
86596
|
};
|
|
@@ -86283,7 +86618,7 @@ const FormBooleanInput = ({
|
|
|
86283
86618
|
onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
|
|
86284
86619
|
] })
|
|
86285
86620
|
] }),
|
|
86286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
86621
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$k.SwitchAndCrossContainer, { children: [
|
|
86287
86622
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86288
86623
|
ResetedFormItem$1,
|
|
86289
86624
|
{
|
|
@@ -86302,7 +86637,7 @@ const FormBooleanInput = ({
|
|
|
86302
86637
|
}
|
|
86303
86638
|
),
|
|
86304
86639
|
!defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86305
|
-
Styled$
|
|
86640
|
+
Styled$k.CrossContainer,
|
|
86306
86641
|
{
|
|
86307
86642
|
onClick: () => {
|
|
86308
86643
|
if (makeValueUndefined) {
|
|
@@ -86401,13 +86736,18 @@ const FormNumberInput = ({
|
|
|
86401
86736
|
onRemoveByMinus,
|
|
86402
86737
|
defaultValue,
|
|
86403
86738
|
example,
|
|
86404
|
-
nullable
|
|
86739
|
+
nullable,
|
|
86740
|
+
format,
|
|
86741
|
+
minimum,
|
|
86742
|
+
maximum
|
|
86405
86743
|
}) => {
|
|
86406
86744
|
const designNewLayout = useDesignNewLayout();
|
|
86407
86745
|
const formFieldName = arrName || name;
|
|
86408
86746
|
const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
|
|
86409
86747
|
const nullBtn = useNullToggleButton(formFieldName, nullable);
|
|
86410
86748
|
const exampleTooltip = getExampleTooltip(defaultValue, example);
|
|
86749
|
+
const formatRule = getNumberFormatRule(format, name);
|
|
86750
|
+
const rangeRule = getNumberRangeRule({ minimum, maximum, name });
|
|
86411
86751
|
const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
86412
86752
|
getStringByName(name),
|
|
86413
86753
|
required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: "*" }),
|
|
@@ -86437,7 +86777,9 @@ const FormNumberInput = ({
|
|
|
86437
86777
|
{
|
|
86438
86778
|
name: formFieldName,
|
|
86439
86779
|
rules: [
|
|
86440
|
-
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
|
|
86780
|
+
getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
|
|
86781
|
+
...formatRule ? [formatRule] : [],
|
|
86782
|
+
...rangeRule ? [rangeRule] : []
|
|
86441
86783
|
],
|
|
86442
86784
|
validateTrigger: "onBlur",
|
|
86443
86785
|
hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
|
|
@@ -86446,6 +86788,8 @@ const FormNumberInput = ({
|
|
|
86446
86788
|
{
|
|
86447
86789
|
placeholder: buildPlaceholder(name, defaultValue, example),
|
|
86448
86790
|
step: isNumber ? 0.1 : 1,
|
|
86791
|
+
min: minimum,
|
|
86792
|
+
max: maximum,
|
|
86449
86793
|
disabled: nullBtn.visible && nullBtn.isNull
|
|
86450
86794
|
}
|
|
86451
86795
|
)
|
|
@@ -86468,6 +86812,7 @@ const FormObjectFromSwagger = ({
|
|
|
86468
86812
|
collapseTitle,
|
|
86469
86813
|
collapseFormName,
|
|
86470
86814
|
oneOfRequiredGroups,
|
|
86815
|
+
oneOfBranches,
|
|
86471
86816
|
validationErrors,
|
|
86472
86817
|
data,
|
|
86473
86818
|
inputProps,
|
|
@@ -86476,6 +86821,7 @@ const FormObjectFromSwagger = ({
|
|
|
86476
86821
|
const designNewLayout = useDesignNewLayout();
|
|
86477
86822
|
const form = Form.useFormInstance();
|
|
86478
86823
|
const [additionalPropValue, setAddditionalPropValue] = useState();
|
|
86824
|
+
const hasOneOfValidation = Boolean(oneOfRequiredGroups && oneOfRequiredGroups.length > 0) || Boolean(oneOfBranches && oneOfBranches.length > 0);
|
|
86479
86825
|
const focusFieldInput = (path) => {
|
|
86480
86826
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
86481
86827
|
return;
|
|
@@ -86539,7 +86885,7 @@ const FormObjectFromSwagger = ({
|
|
|
86539
86885
|
persistedCheckbox: inputProps ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "obj" }),
|
|
86540
86886
|
children: [
|
|
86541
86887
|
data,
|
|
86542
|
-
|
|
86888
|
+
hasOneOfValidation ? /* @__PURE__ */ jsxRuntimeExports.jsx(Form.ErrorList, { errors: validationErrors }) : null,
|
|
86543
86889
|
inputProps && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86544
86890
|
Input,
|
|
86545
86891
|
{
|
|
@@ -86592,7 +86938,7 @@ const Container$2 = styled.div`
|
|
|
86592
86938
|
border-radius: 8px;
|
|
86593
86939
|
}
|
|
86594
86940
|
`;
|
|
86595
|
-
const Styled$
|
|
86941
|
+
const Styled$j = {
|
|
86596
86942
|
Container: Container$2
|
|
86597
86943
|
};
|
|
86598
86944
|
|
|
@@ -86646,7 +86992,7 @@ const FormInlineYamlEditor = ({ path, persistedControls, externalValue }) => {
|
|
|
86646
86992
|
}
|
|
86647
86993
|
}
|
|
86648
86994
|
}, [yamlText, modelUri]);
|
|
86649
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
86995
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.Container, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
86650
86996
|
Ft$1,
|
|
86651
86997
|
{
|
|
86652
86998
|
language: "yaml",
|
|
@@ -86929,7 +87275,7 @@ const BigText = styled.div`
|
|
|
86929
87275
|
font-size: 16px;
|
|
86930
87276
|
line-height: 24px;
|
|
86931
87277
|
`;
|
|
86932
|
-
const Styled$
|
|
87278
|
+
const Styled$i = {
|
|
86933
87279
|
ResetedFormList,
|
|
86934
87280
|
Container: Container$1,
|
|
86935
87281
|
OverflowContainer: OverflowContainer$1,
|
|
@@ -86953,7 +87299,12 @@ const getStringFormItemFromSwagger = ({
|
|
|
86953
87299
|
onRemoveByMinus,
|
|
86954
87300
|
defaultValue,
|
|
86955
87301
|
example,
|
|
86956
|
-
nullable
|
|
87302
|
+
nullable,
|
|
87303
|
+
format,
|
|
87304
|
+
pattern,
|
|
87305
|
+
minLength,
|
|
87306
|
+
maxLength,
|
|
87307
|
+
urlParams
|
|
86957
87308
|
}) => {
|
|
86958
87309
|
if (Array.isArray(name) && name.length === 2 && name[0] === "metadata" && name[1] === "namespace" && namespaceData) {
|
|
86959
87310
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -86962,7 +87313,9 @@ const getStringFormItemFromSwagger = ({
|
|
|
86962
87313
|
name,
|
|
86963
87314
|
namespaceData,
|
|
86964
87315
|
isAdditionalProperties,
|
|
86965
|
-
removeField
|
|
87316
|
+
removeField,
|
|
87317
|
+
defaultValue,
|
|
87318
|
+
contextNamespace: urlParams?.namespace
|
|
86966
87319
|
},
|
|
86967
87320
|
`${arrKey}-${JSON.stringify(name)}-namespace`
|
|
86968
87321
|
);
|
|
@@ -86983,7 +87336,11 @@ const getStringFormItemFromSwagger = ({
|
|
|
86983
87336
|
onRemoveByMinus,
|
|
86984
87337
|
defaultValue,
|
|
86985
87338
|
example,
|
|
86986
|
-
nullable
|
|
87339
|
+
nullable,
|
|
87340
|
+
format,
|
|
87341
|
+
pattern,
|
|
87342
|
+
minLength,
|
|
87343
|
+
maxLength
|
|
86987
87344
|
},
|
|
86988
87345
|
`${arrKey}-${JSON.stringify(name)}`
|
|
86989
87346
|
);
|
|
@@ -87042,7 +87399,10 @@ const getNumberFormItemFromSwagger = ({
|
|
|
87042
87399
|
onRemoveByMinus,
|
|
87043
87400
|
defaultValue,
|
|
87044
87401
|
example,
|
|
87045
|
-
nullable
|
|
87402
|
+
nullable,
|
|
87403
|
+
format,
|
|
87404
|
+
minimum,
|
|
87405
|
+
maximum
|
|
87046
87406
|
}) => {
|
|
87047
87407
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87048
87408
|
FormNumberInput,
|
|
@@ -87061,7 +87421,10 @@ const getNumberFormItemFromSwagger = ({
|
|
|
87061
87421
|
onRemoveByMinus,
|
|
87062
87422
|
defaultValue,
|
|
87063
87423
|
example,
|
|
87064
|
-
nullable
|
|
87424
|
+
nullable,
|
|
87425
|
+
format,
|
|
87426
|
+
minimum,
|
|
87427
|
+
maximum
|
|
87065
87428
|
},
|
|
87066
87429
|
`${arrKey}-${JSON.stringify(name)}`
|
|
87067
87430
|
);
|
|
@@ -87114,7 +87477,11 @@ const getStringMultilineFormItemFromSwagger = ({
|
|
|
87114
87477
|
isBase64,
|
|
87115
87478
|
defaultValue,
|
|
87116
87479
|
example,
|
|
87117
|
-
nullable
|
|
87480
|
+
nullable,
|
|
87481
|
+
format,
|
|
87482
|
+
pattern,
|
|
87483
|
+
minLength,
|
|
87484
|
+
maxLength
|
|
87118
87485
|
}) => {
|
|
87119
87486
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87120
87487
|
FormStringMultilineInput,
|
|
@@ -87133,7 +87500,11 @@ const getStringMultilineFormItemFromSwagger = ({
|
|
|
87133
87500
|
isBase64,
|
|
87134
87501
|
defaultValue,
|
|
87135
87502
|
example,
|
|
87136
|
-
nullable
|
|
87503
|
+
nullable,
|
|
87504
|
+
format,
|
|
87505
|
+
pattern,
|
|
87506
|
+
minLength,
|
|
87507
|
+
maxLength
|
|
87137
87508
|
},
|
|
87138
87509
|
`${arrKey}-${JSON.stringify(name)}`
|
|
87139
87510
|
);
|
|
@@ -87152,7 +87523,9 @@ const getListInputFormItemFromSwagger = ({
|
|
|
87152
87523
|
customProps,
|
|
87153
87524
|
urlParams,
|
|
87154
87525
|
onRemoveByMinus,
|
|
87155
|
-
defaultValue
|
|
87526
|
+
defaultValue,
|
|
87527
|
+
minItems,
|
|
87528
|
+
maxItems
|
|
87156
87529
|
}) => {
|
|
87157
87530
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87158
87531
|
FormListInput,
|
|
@@ -87170,7 +87543,9 @@ const getListInputFormItemFromSwagger = ({
|
|
|
87170
87543
|
customProps,
|
|
87171
87544
|
urlParams,
|
|
87172
87545
|
onRemoveByMinus,
|
|
87173
|
-
defaultValue
|
|
87546
|
+
defaultValue,
|
|
87547
|
+
minItems,
|
|
87548
|
+
maxItems
|
|
87174
87549
|
},
|
|
87175
87550
|
`${arrKey}-${JSON.stringify(name)}`
|
|
87176
87551
|
);
|
|
@@ -87225,6 +87600,21 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87225
87600
|
onRemoveByMinus
|
|
87226
87601
|
}) => {
|
|
87227
87602
|
if (schema.type === "array") {
|
|
87603
|
+
const requiredArrayRule = !forceNonRequired && required?.includes(getStringByName(name)) ? {
|
|
87604
|
+
validator: async (_, value) => {
|
|
87605
|
+
if (!Array.isArray(value) || value.length < 1) {
|
|
87606
|
+
return Promise.reject(new Error(`Please enter ${prettyFieldPath(name)}`));
|
|
87607
|
+
}
|
|
87608
|
+
}
|
|
87609
|
+
} : void 0;
|
|
87610
|
+
const arrayItemsRule = getArrayItemsRule({
|
|
87611
|
+
minItems: schema.minItems,
|
|
87612
|
+
maxItems: schema.maxItems,
|
|
87613
|
+
name
|
|
87614
|
+
});
|
|
87615
|
+
const arrayRules = [];
|
|
87616
|
+
if (requiredArrayRule) arrayRules.push(requiredArrayRule);
|
|
87617
|
+
if (arrayItemsRule) arrayRules.push(arrayItemsRule);
|
|
87228
87618
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
|
|
87229
87619
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87230
87620
|
FormArrayHeader,
|
|
@@ -87240,18 +87630,10 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87240
87630
|
}
|
|
87241
87631
|
),
|
|
87242
87632
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
87243
|
-
Styled$
|
|
87633
|
+
Styled$i.ResetedFormList,
|
|
87244
87634
|
{
|
|
87245
87635
|
name: arrName || name,
|
|
87246
|
-
rules:
|
|
87247
|
-
{
|
|
87248
|
-
validator: async (_, value) => {
|
|
87249
|
-
if (!value || value.length < 1) {
|
|
87250
|
-
return Promise.reject(new Error(`Please enter ${prettyFieldPath(name)}`));
|
|
87251
|
-
}
|
|
87252
|
-
}
|
|
87253
|
-
}
|
|
87254
|
-
] : void 0,
|
|
87636
|
+
rules: arrayRules.length > 0 ? arrayRules : void 0,
|
|
87255
87637
|
children: (fields, { add, remove }, { errors }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
87256
87638
|
fields.map((field) => {
|
|
87257
87639
|
const itemSchema = schema.items;
|
|
@@ -87270,7 +87652,12 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87270
87652
|
description: description2,
|
|
87271
87653
|
removeField,
|
|
87272
87654
|
persistedControls,
|
|
87273
|
-
onRemoveByMinus: () => remove(field.name)
|
|
87655
|
+
onRemoveByMinus: () => remove(field.name),
|
|
87656
|
+
format: itemSchema?.format,
|
|
87657
|
+
pattern: itemSchema?.pattern,
|
|
87658
|
+
minLength: itemSchema?.minLength,
|
|
87659
|
+
maxLength: itemSchema?.maxLength,
|
|
87660
|
+
urlParams
|
|
87274
87661
|
}),
|
|
87275
87662
|
(fieldType === "number" || fieldType === "integer") && getNumberFormItemFromSwagger({
|
|
87276
87663
|
isNumber: fieldType === "number",
|
|
@@ -87282,7 +87669,10 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87282
87669
|
description: description2,
|
|
87283
87670
|
removeField,
|
|
87284
87671
|
persistedControls,
|
|
87285
|
-
onRemoveByMinus: () => remove(field.name)
|
|
87672
|
+
onRemoveByMinus: () => remove(field.name),
|
|
87673
|
+
format: itemSchema?.format,
|
|
87674
|
+
minimum: itemSchema?.minimum,
|
|
87675
|
+
maximum: itemSchema?.maximum
|
|
87286
87676
|
}),
|
|
87287
87677
|
(fieldType === "rangeInputCpu" || fieldType === "rangeInputMemory") && getRangeInputFormItemFromSwagger({
|
|
87288
87678
|
name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
|
|
@@ -87308,7 +87698,9 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87308
87698
|
persistedControls,
|
|
87309
87699
|
customProps: schema.items.customProps,
|
|
87310
87700
|
urlParams,
|
|
87311
|
-
onRemoveByMinus: () => remove(field.name)
|
|
87701
|
+
onRemoveByMinus: () => remove(field.name),
|
|
87702
|
+
minItems: itemSchema?.minItems,
|
|
87703
|
+
maxItems: itemSchema?.maxItems
|
|
87312
87704
|
}),
|
|
87313
87705
|
(fieldType === "multilineString" || fieldType === "multilineStringBase64") && getStringMultilineFormItemFromSwagger({
|
|
87314
87706
|
name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
|
|
@@ -87320,7 +87712,11 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87320
87712
|
removeField,
|
|
87321
87713
|
persistedControls,
|
|
87322
87714
|
onRemoveByMinus: () => remove(field.name),
|
|
87323
|
-
isBase64: fieldType === "multilineStringBase64"
|
|
87715
|
+
isBase64: fieldType === "multilineStringBase64",
|
|
87716
|
+
format: itemSchema?.format,
|
|
87717
|
+
pattern: itemSchema?.pattern,
|
|
87718
|
+
minLength: itemSchema?.minLength,
|
|
87719
|
+
maxLength: itemSchema?.maxLength
|
|
87324
87720
|
}),
|
|
87325
87721
|
fieldType === "boolean" && getBooleanFormItemFromSwagger({
|
|
87326
87722
|
name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
|
|
@@ -87355,6 +87751,7 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87355
87751
|
// merging properties near items by this
|
|
87356
87752
|
properties: deepMerge(entry.properties, additionalProperties?.[field.key]?.properties || {}),
|
|
87357
87753
|
oneOfRequiredGroups: entry.oneOfRequiredGroups,
|
|
87754
|
+
oneOfBranches: entry.oneOfBranches,
|
|
87358
87755
|
name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
|
|
87359
87756
|
arrKey: field.key,
|
|
87360
87757
|
arrName: [field.name],
|
|
@@ -87383,6 +87780,7 @@ const getArrayFormItemFromSwagger = ({
|
|
|
87383
87780
|
{
|
|
87384
87781
|
type: "text",
|
|
87385
87782
|
size: "small",
|
|
87783
|
+
disabled: schema.maxItems !== void 0 && fields.length >= schema.maxItems,
|
|
87386
87784
|
onClick: () => {
|
|
87387
87785
|
add();
|
|
87388
87786
|
},
|
|
@@ -87482,7 +87880,12 @@ const getObjectFormItemsDraft = ({
|
|
|
87482
87880
|
persistedControls,
|
|
87483
87881
|
defaultValue: extractStringDefault(properties[el].default),
|
|
87484
87882
|
example: extractStringDefault(properties[el].example),
|
|
87485
|
-
nullable: properties[el].nullable
|
|
87883
|
+
nullable: properties[el].nullable,
|
|
87884
|
+
format: properties[el].format,
|
|
87885
|
+
pattern: properties[el].pattern,
|
|
87886
|
+
minLength: properties[el].minLength,
|
|
87887
|
+
maxLength: properties[el].maxLength,
|
|
87888
|
+
urlParams
|
|
87486
87889
|
});
|
|
87487
87890
|
}
|
|
87488
87891
|
if (properties[el].type === "number" || properties[el].type === "integer") {
|
|
@@ -87501,7 +87904,10 @@ const getObjectFormItemsDraft = ({
|
|
|
87501
87904
|
persistedControls,
|
|
87502
87905
|
defaultValue: extractNumberDefault(properties[el].default),
|
|
87503
87906
|
example: extractNumberDefault(properties[el].example),
|
|
87504
|
-
nullable: properties[el].nullable
|
|
87907
|
+
nullable: properties[el].nullable,
|
|
87908
|
+
format: properties[el].format,
|
|
87909
|
+
minimum: properties[el].minimum,
|
|
87910
|
+
maximum: properties[el].maximum
|
|
87505
87911
|
});
|
|
87506
87912
|
}
|
|
87507
87913
|
if (properties[el].type === "rangeInputCpu" || properties[el].type === "rangeInputMemory") {
|
|
@@ -87534,7 +87940,9 @@ const getObjectFormItemsDraft = ({
|
|
|
87534
87940
|
removeField,
|
|
87535
87941
|
persistedControls,
|
|
87536
87942
|
urlParams,
|
|
87537
|
-
defaultValue: extractListInputDefault(properties[el].default)
|
|
87943
|
+
defaultValue: extractListInputDefault(properties[el].default),
|
|
87944
|
+
minItems: properties[el].minItems,
|
|
87945
|
+
maxItems: properties[el].maxItems
|
|
87538
87946
|
});
|
|
87539
87947
|
}
|
|
87540
87948
|
if (properties[el].type === "multilineString" || properties[el].type === "multilineStringBase64") {
|
|
@@ -87553,7 +87961,11 @@ const getObjectFormItemsDraft = ({
|
|
|
87553
87961
|
isBase64: properties[el].type === "multilineStringBase64",
|
|
87554
87962
|
defaultValue: extractStringDefault(properties[el].default),
|
|
87555
87963
|
example: extractStringDefault(properties[el].example),
|
|
87556
|
-
nullable: properties[el].nullable
|
|
87964
|
+
nullable: properties[el].nullable,
|
|
87965
|
+
format: properties[el].format,
|
|
87966
|
+
pattern: properties[el].pattern,
|
|
87967
|
+
minLength: properties[el].minLength,
|
|
87968
|
+
maxLength: properties[el].maxLength
|
|
87557
87969
|
});
|
|
87558
87970
|
}
|
|
87559
87971
|
if (properties[el].type === "boolean") {
|
|
@@ -87638,6 +88050,7 @@ const getObjectFormItemsDraft = ({
|
|
|
87638
88050
|
return getObjectFormItemFromSwagger({
|
|
87639
88051
|
properties: properties[el].properties,
|
|
87640
88052
|
oneOfRequiredGroups: properties[el].oneOfRequiredGroups,
|
|
88053
|
+
oneOfBranches: properties[el].oneOfBranches,
|
|
87641
88054
|
name: Array.isArray(name) ? [...name, String(el)] : [name, String(el)],
|
|
87642
88055
|
arrKey,
|
|
87643
88056
|
arrName: Array.isArray(arrName) ? [...arrName, String(el)] : void 0,
|
|
@@ -87666,6 +88079,7 @@ const getObjectFormItemsDraft = ({
|
|
|
87666
88079
|
const getObjectFormItemFromSwagger = ({
|
|
87667
88080
|
properties,
|
|
87668
88081
|
oneOfRequiredGroups,
|
|
88082
|
+
oneOfBranches,
|
|
87669
88083
|
objectValidationErrors,
|
|
87670
88084
|
name,
|
|
87671
88085
|
arrKey,
|
|
@@ -87717,6 +88131,7 @@ const getObjectFormItemFromSwagger = ({
|
|
|
87717
88131
|
selfRequired,
|
|
87718
88132
|
description,
|
|
87719
88133
|
oneOfRequiredGroups,
|
|
88134
|
+
oneOfBranches,
|
|
87720
88135
|
validationErrors: objectValidationErrors?.[pathKey$1(Array.isArray(name) ? name : [name])],
|
|
87721
88136
|
isAdditionalProperties,
|
|
87722
88137
|
removeField,
|
|
@@ -87873,6 +88288,370 @@ const isPathArray = (p) => Array.isArray(p);
|
|
|
87873
88288
|
const toStringPath = (p) => isPathArray(p) ? p.map(String) : [String(p)];
|
|
87874
88289
|
const isPrefix = (full, prefix) => prefix.length <= full.length && prefix.every((seg, i) => full[i] === seg);
|
|
87875
88290
|
|
|
88291
|
+
const isPresentForOneOfBranchVisibility = (value) => {
|
|
88292
|
+
if (value === null) return true;
|
|
88293
|
+
if (value === void 0) return false;
|
|
88294
|
+
if (typeof value === "string") return value.length > 0;
|
|
88295
|
+
if (Array.isArray(value)) return value.length > 0;
|
|
88296
|
+
if (typeof value === "object") return Object.keys(value).length > 0;
|
|
88297
|
+
return true;
|
|
88298
|
+
};
|
|
88299
|
+
const getCurrentNodeHiddenPaths = ({
|
|
88300
|
+
node,
|
|
88301
|
+
value,
|
|
88302
|
+
path
|
|
88303
|
+
}) => {
|
|
88304
|
+
if (!node.oneOfBranches || node.oneOfBranches.length === 0) {
|
|
88305
|
+
return [];
|
|
88306
|
+
}
|
|
88307
|
+
const matchedBranches = node.oneOfBranches.filter((branch) => matchesOneOfBranch(value, branch));
|
|
88308
|
+
if (matchedBranches.length !== 1) {
|
|
88309
|
+
return [];
|
|
88310
|
+
}
|
|
88311
|
+
const [activeBranch] = matchedBranches;
|
|
88312
|
+
return collectInactiveOneOfBranchPaths({ branches: node.oneOfBranches, activeBranch }).filter((branchPath) => !isPresentForOneOfBranchVisibility(get$1(value, branchPath))).map((branchPath) => [...path, ...branchPath]);
|
|
88313
|
+
};
|
|
88314
|
+
const collectOneOfBranchHiddenPaths = ({
|
|
88315
|
+
properties,
|
|
88316
|
+
values,
|
|
88317
|
+
currentPath = []
|
|
88318
|
+
}) => {
|
|
88319
|
+
return Object.entries(properties).flatMap(([key, node]) => {
|
|
88320
|
+
const path = [...currentPath, key];
|
|
88321
|
+
const value = get$1(values, path);
|
|
88322
|
+
const currentHiddenPaths = getCurrentNodeHiddenPaths({
|
|
88323
|
+
node,
|
|
88324
|
+
value,
|
|
88325
|
+
path
|
|
88326
|
+
});
|
|
88327
|
+
const nestedObjectHiddenPaths = node.properties ? collectOneOfBranchHiddenPaths({
|
|
88328
|
+
properties: node.properties,
|
|
88329
|
+
values,
|
|
88330
|
+
currentPath: path
|
|
88331
|
+
}) : [];
|
|
88332
|
+
const nestedArrayHiddenPaths = node.type === "array" && node.items && Array.isArray(value) ? value.flatMap((_, index) => {
|
|
88333
|
+
const itemPath = [...path, index];
|
|
88334
|
+
const itemValue = get$1(values, itemPath);
|
|
88335
|
+
const itemHiddenPaths = getCurrentNodeHiddenPaths({
|
|
88336
|
+
node: node.items,
|
|
88337
|
+
value: itemValue,
|
|
88338
|
+
path: itemPath
|
|
88339
|
+
});
|
|
88340
|
+
return [
|
|
88341
|
+
...itemHiddenPaths,
|
|
88342
|
+
...node.items?.properties ? collectOneOfBranchHiddenPaths({
|
|
88343
|
+
properties: node.items.properties,
|
|
88344
|
+
values,
|
|
88345
|
+
currentPath: itemPath
|
|
88346
|
+
}) : []
|
|
88347
|
+
];
|
|
88348
|
+
}) : [];
|
|
88349
|
+
return [...currentHiddenPaths, ...nestedObjectHiddenPaths, ...nestedArrayHiddenPaths];
|
|
88350
|
+
});
|
|
88351
|
+
};
|
|
88352
|
+
|
|
88353
|
+
/** Used for built-in method references. */
|
|
88354
|
+
|
|
88355
|
+
var objectProto$1 = Object.prototype;
|
|
88356
|
+
|
|
88357
|
+
/** Used to check objects for own properties. */
|
|
88358
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
88359
|
+
|
|
88360
|
+
/**
|
|
88361
|
+
* The base implementation of `_.has` without support for deep paths.
|
|
88362
|
+
*
|
|
88363
|
+
* @private
|
|
88364
|
+
* @param {Object} [object] The object to query.
|
|
88365
|
+
* @param {Array|string} key The key to check.
|
|
88366
|
+
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
88367
|
+
*/
|
|
88368
|
+
function baseHas$1(object, key) {
|
|
88369
|
+
return object != null && hasOwnProperty$1.call(object, key);
|
|
88370
|
+
}
|
|
88371
|
+
|
|
88372
|
+
var _baseHas = baseHas$1;
|
|
88373
|
+
|
|
88374
|
+
var baseGetTag = _baseGetTag,
|
|
88375
|
+
isObjectLike$1 = isObjectLike_1;
|
|
88376
|
+
|
|
88377
|
+
/** `Object#toString` result references. */
|
|
88378
|
+
var argsTag = '[object Arguments]';
|
|
88379
|
+
|
|
88380
|
+
/**
|
|
88381
|
+
* The base implementation of `_.isArguments`.
|
|
88382
|
+
*
|
|
88383
|
+
* @private
|
|
88384
|
+
* @param {*} value The value to check.
|
|
88385
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
88386
|
+
*/
|
|
88387
|
+
function baseIsArguments$1(value) {
|
|
88388
|
+
return isObjectLike$1(value) && baseGetTag(value) == argsTag;
|
|
88389
|
+
}
|
|
88390
|
+
|
|
88391
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
88392
|
+
|
|
88393
|
+
var baseIsArguments = _baseIsArguments,
|
|
88394
|
+
isObjectLike = isObjectLike_1;
|
|
88395
|
+
|
|
88396
|
+
/** Used for built-in method references. */
|
|
88397
|
+
var objectProto = Object.prototype;
|
|
88398
|
+
|
|
88399
|
+
/** Used to check objects for own properties. */
|
|
88400
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
88401
|
+
|
|
88402
|
+
/** Built-in value references. */
|
|
88403
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
88404
|
+
|
|
88405
|
+
/**
|
|
88406
|
+
* Checks if `value` is likely an `arguments` object.
|
|
88407
|
+
*
|
|
88408
|
+
* @static
|
|
88409
|
+
* @memberOf _
|
|
88410
|
+
* @since 0.1.0
|
|
88411
|
+
* @category Lang
|
|
88412
|
+
* @param {*} value The value to check.
|
|
88413
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
88414
|
+
* else `false`.
|
|
88415
|
+
* @example
|
|
88416
|
+
*
|
|
88417
|
+
* _.isArguments(function() { return arguments; }());
|
|
88418
|
+
* // => true
|
|
88419
|
+
*
|
|
88420
|
+
* _.isArguments([1, 2, 3]);
|
|
88421
|
+
* // => false
|
|
88422
|
+
*/
|
|
88423
|
+
var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
88424
|
+
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
88425
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
88426
|
+
};
|
|
88427
|
+
|
|
88428
|
+
var isArguments_1 = isArguments$1;
|
|
88429
|
+
|
|
88430
|
+
/** Used as references for various `Number` constants. */
|
|
88431
|
+
|
|
88432
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
88433
|
+
|
|
88434
|
+
/** Used to detect unsigned integer values. */
|
|
88435
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
88436
|
+
|
|
88437
|
+
/**
|
|
88438
|
+
* Checks if `value` is a valid array-like index.
|
|
88439
|
+
*
|
|
88440
|
+
* @private
|
|
88441
|
+
* @param {*} value The value to check.
|
|
88442
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
88443
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
88444
|
+
*/
|
|
88445
|
+
function isIndex$1(value, length) {
|
|
88446
|
+
var type = typeof value;
|
|
88447
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
88448
|
+
|
|
88449
|
+
return !!length &&
|
|
88450
|
+
(type == 'number' ||
|
|
88451
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
88452
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
88453
|
+
}
|
|
88454
|
+
|
|
88455
|
+
var _isIndex = isIndex$1;
|
|
88456
|
+
|
|
88457
|
+
/** Used as references for various `Number` constants. */
|
|
88458
|
+
|
|
88459
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
88460
|
+
|
|
88461
|
+
/**
|
|
88462
|
+
* Checks if `value` is a valid array-like length.
|
|
88463
|
+
*
|
|
88464
|
+
* **Note:** This method is loosely based on
|
|
88465
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
88466
|
+
*
|
|
88467
|
+
* @static
|
|
88468
|
+
* @memberOf _
|
|
88469
|
+
* @since 4.0.0
|
|
88470
|
+
* @category Lang
|
|
88471
|
+
* @param {*} value The value to check.
|
|
88472
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
88473
|
+
* @example
|
|
88474
|
+
*
|
|
88475
|
+
* _.isLength(3);
|
|
88476
|
+
* // => true
|
|
88477
|
+
*
|
|
88478
|
+
* _.isLength(Number.MIN_VALUE);
|
|
88479
|
+
* // => false
|
|
88480
|
+
*
|
|
88481
|
+
* _.isLength(Infinity);
|
|
88482
|
+
* // => false
|
|
88483
|
+
*
|
|
88484
|
+
* _.isLength('3');
|
|
88485
|
+
* // => false
|
|
88486
|
+
*/
|
|
88487
|
+
function isLength$1(value) {
|
|
88488
|
+
return typeof value == 'number' &&
|
|
88489
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
88490
|
+
}
|
|
88491
|
+
|
|
88492
|
+
var isLength_1 = isLength$1;
|
|
88493
|
+
|
|
88494
|
+
var castPath = _castPath,
|
|
88495
|
+
isArguments = isArguments_1,
|
|
88496
|
+
isArray = isArray_1,
|
|
88497
|
+
isIndex = _isIndex,
|
|
88498
|
+
isLength = isLength_1,
|
|
88499
|
+
toKey = _toKey;
|
|
88500
|
+
|
|
88501
|
+
/**
|
|
88502
|
+
* Checks if `path` exists on `object`.
|
|
88503
|
+
*
|
|
88504
|
+
* @private
|
|
88505
|
+
* @param {Object} object The object to query.
|
|
88506
|
+
* @param {Array|string} path The path to check.
|
|
88507
|
+
* @param {Function} hasFunc The function to check properties.
|
|
88508
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
88509
|
+
*/
|
|
88510
|
+
function hasPath$1(object, path, hasFunc) {
|
|
88511
|
+
path = castPath(path, object);
|
|
88512
|
+
|
|
88513
|
+
var index = -1,
|
|
88514
|
+
length = path.length,
|
|
88515
|
+
result = false;
|
|
88516
|
+
|
|
88517
|
+
while (++index < length) {
|
|
88518
|
+
var key = toKey(path[index]);
|
|
88519
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
88520
|
+
break;
|
|
88521
|
+
}
|
|
88522
|
+
object = object[key];
|
|
88523
|
+
}
|
|
88524
|
+
if (result || ++index != length) {
|
|
88525
|
+
return result;
|
|
88526
|
+
}
|
|
88527
|
+
length = object == null ? 0 : object.length;
|
|
88528
|
+
return !!length && isLength(length) && isIndex(key, length) &&
|
|
88529
|
+
(isArray(object) || isArguments(object));
|
|
88530
|
+
}
|
|
88531
|
+
|
|
88532
|
+
var _hasPath = hasPath$1;
|
|
88533
|
+
|
|
88534
|
+
var baseHas = _baseHas,
|
|
88535
|
+
hasPath = _hasPath;
|
|
88536
|
+
|
|
88537
|
+
/**
|
|
88538
|
+
* Checks if `path` is a direct property of `object`.
|
|
88539
|
+
*
|
|
88540
|
+
* @static
|
|
88541
|
+
* @since 0.1.0
|
|
88542
|
+
* @memberOf _
|
|
88543
|
+
* @category Object
|
|
88544
|
+
* @param {Object} object The object to query.
|
|
88545
|
+
* @param {Array|string} path The path to check.
|
|
88546
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
88547
|
+
* @example
|
|
88548
|
+
*
|
|
88549
|
+
* var object = { 'a': { 'b': 2 } };
|
|
88550
|
+
* var other = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
88551
|
+
*
|
|
88552
|
+
* _.has(object, 'a');
|
|
88553
|
+
* // => true
|
|
88554
|
+
*
|
|
88555
|
+
* _.has(object, 'a.b');
|
|
88556
|
+
* // => true
|
|
88557
|
+
*
|
|
88558
|
+
* _.has(object, ['a', 'b']);
|
|
88559
|
+
* // => true
|
|
88560
|
+
*
|
|
88561
|
+
* _.has(other, 'a');
|
|
88562
|
+
* // => false
|
|
88563
|
+
*/
|
|
88564
|
+
function has(object, path) {
|
|
88565
|
+
return object != null && hasPath(object, path, baseHas);
|
|
88566
|
+
}
|
|
88567
|
+
|
|
88568
|
+
var has_1 = has;
|
|
88569
|
+
|
|
88570
|
+
const has$1 = /*@__PURE__*/getDefaultExportFromCjs(has_1);
|
|
88571
|
+
|
|
88572
|
+
const isAnyMatchKeyChangedAtNode = ({
|
|
88573
|
+
branches,
|
|
88574
|
+
nodePath,
|
|
88575
|
+
changedValues
|
|
88576
|
+
}) => {
|
|
88577
|
+
return collectOneOfBranchMatchKeys(branches).some((matchKey) => {
|
|
88578
|
+
const fullPath = [...nodePath, ...toOneOfBranchPath(matchKey)];
|
|
88579
|
+
return has$1(changedValues, fullPath);
|
|
88580
|
+
});
|
|
88581
|
+
};
|
|
88582
|
+
const getCurrentNodeCleanupPaths = ({
|
|
88583
|
+
node,
|
|
88584
|
+
value,
|
|
88585
|
+
path,
|
|
88586
|
+
changedValues
|
|
88587
|
+
}) => {
|
|
88588
|
+
if (!node.oneOfBranches || node.oneOfBranches.length === 0) {
|
|
88589
|
+
return [];
|
|
88590
|
+
}
|
|
88591
|
+
if (!isAnyMatchKeyChangedAtNode({
|
|
88592
|
+
branches: node.oneOfBranches,
|
|
88593
|
+
nodePath: path,
|
|
88594
|
+
changedValues
|
|
88595
|
+
})) {
|
|
88596
|
+
return [];
|
|
88597
|
+
}
|
|
88598
|
+
const matchedBranches = node.oneOfBranches.filter((branch) => matchesOneOfBranch(value, branch));
|
|
88599
|
+
if (matchedBranches.length !== 1) {
|
|
88600
|
+
return [];
|
|
88601
|
+
}
|
|
88602
|
+
const [activeBranch] = matchedBranches;
|
|
88603
|
+
return collectInactiveOneOfBranchPaths({ branches: node.oneOfBranches, activeBranch }).map((branchPath) => [
|
|
88604
|
+
...path,
|
|
88605
|
+
...branchPath
|
|
88606
|
+
]);
|
|
88607
|
+
};
|
|
88608
|
+
const collectInactiveBranchCleanupPaths = ({
|
|
88609
|
+
properties,
|
|
88610
|
+
values,
|
|
88611
|
+
changedValues,
|
|
88612
|
+
currentPath = []
|
|
88613
|
+
}) => {
|
|
88614
|
+
if (!changedValues) {
|
|
88615
|
+
return [];
|
|
88616
|
+
}
|
|
88617
|
+
return Object.entries(properties).flatMap(([key, node]) => {
|
|
88618
|
+
const path = [...currentPath, key];
|
|
88619
|
+
const value = get$1(values, path);
|
|
88620
|
+
const currentCleanupPaths = getCurrentNodeCleanupPaths({
|
|
88621
|
+
node,
|
|
88622
|
+
value,
|
|
88623
|
+
path,
|
|
88624
|
+
changedValues
|
|
88625
|
+
});
|
|
88626
|
+
const nestedObjectCleanupPaths = node.properties ? collectInactiveBranchCleanupPaths({
|
|
88627
|
+
properties: node.properties,
|
|
88628
|
+
values,
|
|
88629
|
+
changedValues,
|
|
88630
|
+
currentPath: path
|
|
88631
|
+
}) : [];
|
|
88632
|
+
const nestedArrayCleanupPaths = node.type === "array" && node.items && Array.isArray(value) ? value.flatMap((_, index) => {
|
|
88633
|
+
const itemPath = [...path, index];
|
|
88634
|
+
const itemValue = get$1(values, itemPath);
|
|
88635
|
+
const itemCleanupPaths = getCurrentNodeCleanupPaths({
|
|
88636
|
+
node: node.items,
|
|
88637
|
+
value: itemValue,
|
|
88638
|
+
path: itemPath,
|
|
88639
|
+
changedValues
|
|
88640
|
+
});
|
|
88641
|
+
return [
|
|
88642
|
+
...itemCleanupPaths,
|
|
88643
|
+
...node.items?.properties ? collectInactiveBranchCleanupPaths({
|
|
88644
|
+
properties: node.items.properties,
|
|
88645
|
+
values,
|
|
88646
|
+
changedValues,
|
|
88647
|
+
currentPath: itemPath
|
|
88648
|
+
}) : []
|
|
88649
|
+
];
|
|
88650
|
+
}) : [];
|
|
88651
|
+
return [...currentCleanupPaths, ...nestedObjectCleanupPaths, ...nestedArrayCleanupPaths];
|
|
88652
|
+
});
|
|
88653
|
+
};
|
|
88654
|
+
|
|
87876
88655
|
const handleSubmitError = ({
|
|
87877
88656
|
error,
|
|
87878
88657
|
expandedKeys
|
|
@@ -88165,7 +88944,9 @@ const BlackholeForm = ({
|
|
|
88165
88944
|
}
|
|
88166
88945
|
});
|
|
88167
88946
|
}
|
|
88168
|
-
|
|
88947
|
+
const schemaNamespaceDefault = staticProperties.metadata?.properties?.namespace?.default;
|
|
88948
|
+
const hasSchemaNamespaceDefault = typeof schemaNamespaceDefault === "string" && schemaNamespaceDefault.length > 0;
|
|
88949
|
+
if (prefillValueNamespaceOnly && !hasSchemaNamespaceDefault) {
|
|
88169
88950
|
_$1.set(allValues2, ["metadata", "namespace"], prefillValueNamespaceOnly);
|
|
88170
88951
|
}
|
|
88171
88952
|
if (normalizedPrefill) {
|
|
@@ -88175,7 +88956,15 @@ const BlackholeForm = ({
|
|
|
88175
88956
|
}
|
|
88176
88957
|
const sorted = Object.fromEntries(Object.entries(allValues2).sort(([a], [b]) => a.localeCompare(b)));
|
|
88177
88958
|
return sorted;
|
|
88178
|
-
}, [
|
|
88959
|
+
}, [
|
|
88960
|
+
formsPrefills,
|
|
88961
|
+
prefillValueNamespaceOnly,
|
|
88962
|
+
isCreate,
|
|
88963
|
+
apiGroupApiVersion,
|
|
88964
|
+
kind,
|
|
88965
|
+
normalizedPrefill,
|
|
88966
|
+
staticProperties
|
|
88967
|
+
]);
|
|
88179
88968
|
const prefillTemplates = useMemo(() => {
|
|
88180
88969
|
const templates = [];
|
|
88181
88970
|
if (formsPrefills?.spec?.values?.length) {
|
|
@@ -88251,12 +89040,31 @@ const BlackholeForm = ({
|
|
|
88251
89040
|
sanitized.forEach((p, i) => wdbg(`#${i}`, prettyPath(p)));
|
|
88252
89041
|
return sanitized;
|
|
88253
89042
|
}, [expandedPaths]);
|
|
89043
|
+
const resolveHiddenPaths = useCallback(
|
|
89044
|
+
(values) => {
|
|
89045
|
+
const hiddenResolved = expandWildcardTemplates(hiddenWildcardTemplates, values, {
|
|
89046
|
+
includeMissingExact: true,
|
|
89047
|
+
includeMissingFinalForWildcard: true
|
|
89048
|
+
});
|
|
89049
|
+
const oneOfBranchHiddenPaths = collectOneOfBranchHiddenPaths({
|
|
89050
|
+
properties,
|
|
89051
|
+
values
|
|
89052
|
+
});
|
|
89053
|
+
const seen = /* @__PURE__ */ new Set();
|
|
89054
|
+
return [...hiddenResolved, ...oneOfBranchHiddenPaths].filter((path) => {
|
|
89055
|
+
const key = JSON.stringify(path);
|
|
89056
|
+
if (seen.has(key)) {
|
|
89057
|
+
return false;
|
|
89058
|
+
}
|
|
89059
|
+
seen.add(key);
|
|
89060
|
+
return true;
|
|
89061
|
+
});
|
|
89062
|
+
},
|
|
89063
|
+
[hiddenWildcardTemplates, properties]
|
|
89064
|
+
);
|
|
88254
89065
|
useEffect(() => {
|
|
88255
89066
|
if (!initialValues) return;
|
|
88256
|
-
const hiddenResolved =
|
|
88257
|
-
includeMissingExact: true,
|
|
88258
|
-
includeMissingFinalForWildcard: true
|
|
88259
|
-
});
|
|
89067
|
+
const hiddenResolved = resolveHiddenPaths(initialValues);
|
|
88260
89068
|
wdbg("hidden resolved", hiddenResolved.map(prettyPath));
|
|
88261
89069
|
setResolvedHiddenPaths(hiddenResolved);
|
|
88262
89070
|
const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, initialValues);
|
|
@@ -88292,7 +89100,7 @@ const BlackholeForm = ({
|
|
|
88292
89100
|
}
|
|
88293
89101
|
return merged;
|
|
88294
89102
|
});
|
|
88295
|
-
}, [initialValues,
|
|
89103
|
+
}, [initialValues, resolveHiddenPaths, expandedWildcardTemplates, persistedWildcardTemplates]);
|
|
88296
89104
|
const resolvedHiddenStringPaths = useMemo(
|
|
88297
89105
|
() => resolvedHiddenPaths.map(toStringPath),
|
|
88298
89106
|
[resolvedHiddenPaths]
|
|
@@ -88319,14 +89127,28 @@ const BlackholeForm = ({
|
|
|
88319
89127
|
const onValuesChangeCallback = useCallback(
|
|
88320
89128
|
(values, changedValues) => {
|
|
88321
89129
|
const vRaw = values ?? form.getFieldsValue(true);
|
|
88322
|
-
|
|
89130
|
+
let v = scrubLiteralWildcardKeys(vRaw);
|
|
89131
|
+
if (changedValues) {
|
|
89132
|
+
const inactiveCleanupPaths = collectInactiveBranchCleanupPaths({
|
|
89133
|
+
properties,
|
|
89134
|
+
values: v,
|
|
89135
|
+
changedValues
|
|
89136
|
+
});
|
|
89137
|
+
if (inactiveCleanupPaths.length > 0) {
|
|
89138
|
+
inactiveCleanupPaths.forEach((path) => {
|
|
89139
|
+
form.setFieldValue(path, void 0);
|
|
89140
|
+
});
|
|
89141
|
+
v = scrubLiteralWildcardKeys(form.getFieldsValue(true));
|
|
89142
|
+
const formattedPaths = inactiveCleanupPaths.map((path) => prettyFieldPath(path)).join(", ");
|
|
89143
|
+
notificationApi.info({
|
|
89144
|
+
message: inactiveCleanupPaths.length === 1 ? "Cleared 1 inactive branch field" : `Cleared ${inactiveCleanupPaths.length} inactive branch fields`,
|
|
89145
|
+
description: `Removed ${formattedPaths} to match the new selector.`,
|
|
89146
|
+
placement: "bottomRight"
|
|
89147
|
+
});
|
|
89148
|
+
}
|
|
89149
|
+
}
|
|
88323
89150
|
applyOneOfValidationErrors(computeOneOfValidationStates(v));
|
|
88324
|
-
const hiddenResolved =
|
|
88325
|
-
hiddenWildcardTemplates,
|
|
88326
|
-
v,
|
|
88327
|
-
{ includeMissingExact: true, includeMissingFinalForWildcard: true }
|
|
88328
|
-
// only hidden opts in
|
|
88329
|
-
);
|
|
89151
|
+
const hiddenResolved = resolveHiddenPaths(v);
|
|
88330
89152
|
wdbg("hidden resolved", hiddenResolved.map(prettyPath));
|
|
88331
89153
|
setResolvedHiddenPaths(hiddenResolved);
|
|
88332
89154
|
const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, v);
|
|
@@ -88470,8 +89292,9 @@ const BlackholeForm = ({
|
|
|
88470
89292
|
applyOneOfValidationErrors,
|
|
88471
89293
|
applyPrefillForNewArrayItem,
|
|
88472
89294
|
applyPersistedForNewArrayItem,
|
|
88473
|
-
|
|
88474
|
-
expandedWildcardTemplates
|
|
89295
|
+
resolveHiddenPaths,
|
|
89296
|
+
expandedWildcardTemplates,
|
|
89297
|
+
notificationApi
|
|
88475
89298
|
]
|
|
88476
89299
|
);
|
|
88477
89300
|
useEffect(() => {
|
|
@@ -88744,8 +89567,8 @@ const BlackholeForm = ({
|
|
|
88744
89567
|
setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
|
|
88745
89568
|
};
|
|
88746
89569
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
88747
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
88748
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89570
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$i.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
|
|
89571
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
88749
89572
|
Form,
|
|
88750
89573
|
{
|
|
88751
89574
|
form,
|
|
@@ -88792,7 +89615,7 @@ const BlackholeForm = ({
|
|
|
88792
89615
|
) })
|
|
88793
89616
|
] }),
|
|
88794
89617
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
|
|
88795
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89618
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
88796
89619
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
88797
89620
|
Button,
|
|
88798
89621
|
{
|
|
@@ -88813,7 +89636,7 @@ const BlackholeForm = ({
|
|
|
88813
89636
|
open: !!error,
|
|
88814
89637
|
onOk: () => setError(void 0),
|
|
88815
89638
|
onCancel: () => setError(void 0),
|
|
88816
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89639
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.BigText, { children: "Error!" }) }),
|
|
88817
89640
|
cancelButtonProps: { style: { display: "none" } },
|
|
88818
89641
|
centered: true,
|
|
88819
89642
|
styles: {
|
|
@@ -88841,7 +89664,7 @@ const BlackholeForm = ({
|
|
|
88841
89664
|
paddingRight: "30px"
|
|
88842
89665
|
}
|
|
88843
89666
|
},
|
|
88844
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
89667
|
+
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(
|
|
88845
89668
|
Editor,
|
|
88846
89669
|
{
|
|
88847
89670
|
defaultLanguage: "json",
|
|
@@ -88860,6 +89683,16 @@ const BlackholeForm = ({
|
|
|
88860
89683
|
] });
|
|
88861
89684
|
};
|
|
88862
89685
|
|
|
89686
|
+
const LoadingContainer$1 = styled.div`
|
|
89687
|
+
display: flex;
|
|
89688
|
+
align-items: center;
|
|
89689
|
+
justify-content: center;
|
|
89690
|
+
min-height: ${({ $minHeight }) => $minHeight ? `${$minHeight}px` : "auto"};
|
|
89691
|
+
`;
|
|
89692
|
+
const Styled$h = {
|
|
89693
|
+
LoadingContainer: LoadingContainer$1
|
|
89694
|
+
};
|
|
89695
|
+
|
|
88863
89696
|
const BlackholeFormProvider = ({
|
|
88864
89697
|
theme,
|
|
88865
89698
|
cluster,
|
|
@@ -89008,7 +89841,7 @@ const BlackholeFormProvider = ({
|
|
|
89008
89841
|
applyForceViewMode
|
|
89009
89842
|
]);
|
|
89010
89843
|
if (isLoading) {
|
|
89011
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {});
|
|
89844
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.LoadingContainer, { $minHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
89012
89845
|
}
|
|
89013
89846
|
if (modeData?.current === "Manual") {
|
|
89014
89847
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -93643,4 +94476,4 @@ const usePluginManifest = ({
|
|
|
93643
94476
|
};
|
|
93644
94477
|
|
|
93645
94478
|
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 };
|
|
93646
|
-
//# sourceMappingURL=index-
|
|
94479
|
+
//# sourceMappingURL=index-D8riHM_k.mjs.map
|