@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.98 → 0.0.1-alpha.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi-k8s-toolkit.es.js +462 -156
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +462 -156
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/Annotations.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/EditModal.d.ts +19 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/styled.d.ts +23 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/types.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/utils.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/EditModal.d.ts +3 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/EditModal.d.ts +3 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/EditModal.d.ts +3 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +26 -0
- package/package.json +1 -1
|
@@ -2504,7 +2504,7 @@ const CustomTreeProvider = st.div`
|
|
|
2504
2504
|
justify-content: center;
|
|
2505
2505
|
}
|
|
2506
2506
|
`;
|
|
2507
|
-
const Styled$
|
|
2507
|
+
const Styled$t = {
|
|
2508
2508
|
CustomTreeProvider
|
|
2509
2509
|
};
|
|
2510
2510
|
|
|
@@ -2569,7 +2569,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
|
|
|
2569
2569
|
});
|
|
2570
2570
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2571
2571
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Search, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
|
|
2572
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
2572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2573
2573
|
Tree,
|
|
2574
2574
|
{
|
|
2575
2575
|
treeData: loop(treeData),
|
|
@@ -2681,7 +2681,7 @@ function isArrayBufferView(val) {
|
|
|
2681
2681
|
*
|
|
2682
2682
|
* @returns {boolean} True if value is a String, otherwise false
|
|
2683
2683
|
*/
|
|
2684
|
-
const isString = typeOfTest('string');
|
|
2684
|
+
const isString$1 = typeOfTest('string');
|
|
2685
2685
|
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Determine if a value is a Function
|
|
@@ -2707,7 +2707,7 @@ const isNumber = typeOfTest('number');
|
|
|
2707
2707
|
*
|
|
2708
2708
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
2709
2709
|
*/
|
|
2710
|
-
const isObject$
|
|
2710
|
+
const isObject$4 = (thing) => thing !== null && typeof thing === 'object';
|
|
2711
2711
|
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Determine if a value is a Boolean
|
|
@@ -2724,7 +2724,7 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
2724
2724
|
*
|
|
2725
2725
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
2726
2726
|
*/
|
|
2727
|
-
const isPlainObject = (val) => {
|
|
2727
|
+
const isPlainObject$1 = (val) => {
|
|
2728
2728
|
if (kindOf(val) !== 'object') {
|
|
2729
2729
|
return false;
|
|
2730
2730
|
}
|
|
@@ -2776,7 +2776,7 @@ const isFileList = kindOfTest('FileList');
|
|
|
2776
2776
|
*
|
|
2777
2777
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
2778
2778
|
*/
|
|
2779
|
-
const isStream = (val) => isObject$
|
|
2779
|
+
const isStream = (val) => isObject$4(val) && isFunction$1(val.pipe);
|
|
2780
2780
|
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Determine if a value is a FormData
|
|
@@ -2910,9 +2910,9 @@ function merge$2(/* obj1, obj2, obj3, ... */) {
|
|
|
2910
2910
|
const result = {};
|
|
2911
2911
|
const assignValue = (val, key) => {
|
|
2912
2912
|
const targetKey = caseless && findKey(result, key) || key;
|
|
2913
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
2913
|
+
if (isPlainObject$1(result[targetKey]) && isPlainObject$1(val)) {
|
|
2914
2914
|
result[targetKey] = merge$2(result[targetKey], val);
|
|
2915
|
-
} else if (isPlainObject(val)) {
|
|
2915
|
+
} else if (isPlainObject$1(val)) {
|
|
2916
2916
|
result[targetKey] = merge$2({}, val);
|
|
2917
2917
|
} else if (isArray(val)) {
|
|
2918
2918
|
result[targetKey] = val.slice();
|
|
@@ -3234,7 +3234,7 @@ const toJSONObject = (obj) => {
|
|
|
3234
3234
|
|
|
3235
3235
|
const visit = (source, i) => {
|
|
3236
3236
|
|
|
3237
|
-
if (isObject$
|
|
3237
|
+
if (isObject$4(source)) {
|
|
3238
3238
|
if (stack.indexOf(source) >= 0) {
|
|
3239
3239
|
return;
|
|
3240
3240
|
}
|
|
@@ -3263,7 +3263,7 @@ const toJSONObject = (obj) => {
|
|
|
3263
3263
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
3264
3264
|
|
|
3265
3265
|
const isThenable = (thing) =>
|
|
3266
|
-
thing && (isObject$
|
|
3266
|
+
thing && (isObject$4(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
3267
3267
|
|
|
3268
3268
|
const utils = {
|
|
3269
3269
|
isArray,
|
|
@@ -3271,11 +3271,11 @@ const utils = {
|
|
|
3271
3271
|
isBuffer,
|
|
3272
3272
|
isFormData,
|
|
3273
3273
|
isArrayBufferView,
|
|
3274
|
-
isString,
|
|
3274
|
+
isString: isString$1,
|
|
3275
3275
|
isNumber,
|
|
3276
3276
|
isBoolean,
|
|
3277
|
-
isObject: isObject$
|
|
3278
|
-
isPlainObject,
|
|
3277
|
+
isObject: isObject$4,
|
|
3278
|
+
isPlainObject: isPlainObject$1,
|
|
3279
3279
|
isUndefined,
|
|
3280
3280
|
isDate,
|
|
3281
3281
|
isFile,
|
|
@@ -8443,14 +8443,14 @@ const ContentContainer = st.div`
|
|
|
8443
8443
|
display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
|
|
8444
8444
|
flex-flow: ${({ $flexFlow }) => $flexFlow};
|
|
8445
8445
|
`;
|
|
8446
|
-
const Styled$
|
|
8446
|
+
const Styled$s = {
|
|
8447
8447
|
ContentContainer
|
|
8448
8448
|
};
|
|
8449
8449
|
|
|
8450
8450
|
const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
|
|
8451
8451
|
const { token } = theme.useToken();
|
|
8452
8452
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8453
|
-
Styled$
|
|
8453
|
+
Styled$s.ContentContainer,
|
|
8454
8454
|
{
|
|
8455
8455
|
$flexGrow: flexGrow,
|
|
8456
8456
|
$bgColor: token.colorBgContainer,
|
|
@@ -8511,13 +8511,13 @@ const UncontrolledSelect$1 = st(Select)`
|
|
|
8511
8511
|
padding-inline: 8px;
|
|
8512
8512
|
}
|
|
8513
8513
|
`;
|
|
8514
|
-
const Styled$
|
|
8514
|
+
const Styled$r = {
|
|
8515
8515
|
UncontrolledSelect: UncontrolledSelect$1
|
|
8516
8516
|
};
|
|
8517
8517
|
|
|
8518
8518
|
const UncontrolledSelect = (props) => {
|
|
8519
8519
|
const { isCursorPointer } = props;
|
|
8520
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8520
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
|
|
8521
8521
|
};
|
|
8522
8522
|
|
|
8523
8523
|
const CustomSelect$5 = st(Select)`
|
|
@@ -8563,13 +8563,13 @@ const CustomSelect$5 = st(Select)`
|
|
|
8563
8563
|
margin-block: 0 !important;
|
|
8564
8564
|
}
|
|
8565
8565
|
`;
|
|
8566
|
-
const Styled$
|
|
8566
|
+
const Styled$q = {
|
|
8567
8567
|
CustomSelect: CustomSelect$5
|
|
8568
8568
|
};
|
|
8569
8569
|
|
|
8570
8570
|
const CustomSelect$4 = (props) => {
|
|
8571
8571
|
const { paddingContainerEnd, ...rest } = props;
|
|
8572
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8572
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
|
|
8573
8573
|
};
|
|
8574
8574
|
|
|
8575
8575
|
const CursorPointerTag = st(Tag)`
|
|
@@ -8679,7 +8679,7 @@ const NoWrapContainer = st.div`
|
|
|
8679
8679
|
flex-wrap: nowrap !important;
|
|
8680
8680
|
}
|
|
8681
8681
|
`;
|
|
8682
|
-
const Styled$
|
|
8682
|
+
const Styled$p = {
|
|
8683
8683
|
PositionRelativeContainer,
|
|
8684
8684
|
FullWidthContainer,
|
|
8685
8685
|
NoWrapContainer
|
|
@@ -8722,9 +8722,9 @@ const CollapsibleBreadcrumb = ({ items }) => {
|
|
|
8722
8722
|
};
|
|
8723
8723
|
return [firstItem, ellipsisItem, lastItem];
|
|
8724
8724
|
};
|
|
8725
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
8726
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8727
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8725
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.PositionRelativeContainer, { children: [
|
|
8726
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
|
|
8727
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
|
|
8728
8728
|
] });
|
|
8729
8729
|
};
|
|
8730
8730
|
|
|
@@ -8732,12 +8732,12 @@ const HeightDiv = st.div`
|
|
|
8732
8732
|
min-height: 22px;
|
|
8733
8733
|
width: 100%;
|
|
8734
8734
|
`;
|
|
8735
|
-
const Styled$
|
|
8735
|
+
const Styled$o = {
|
|
8736
8736
|
HeightDiv
|
|
8737
8737
|
};
|
|
8738
8738
|
|
|
8739
8739
|
const ManageableBreadcrumbs = ({ data }) => {
|
|
8740
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8740
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
|
|
8741
8741
|
};
|
|
8742
8742
|
const ManageableBreadcrumbsWithDataProvider = ({
|
|
8743
8743
|
uri,
|
|
@@ -8761,7 +8761,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
|
|
|
8761
8761
|
return null;
|
|
8762
8762
|
}
|
|
8763
8763
|
if (rawDataLoading) {
|
|
8764
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8764
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
8765
8765
|
}
|
|
8766
8766
|
if (!rawData) {
|
|
8767
8767
|
return null;
|
|
@@ -8776,7 +8776,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
|
|
|
8776
8776
|
idToCompare
|
|
8777
8777
|
});
|
|
8778
8778
|
if (!result) {
|
|
8779
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
8779
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.HeightDiv, {});
|
|
8780
8780
|
}
|
|
8781
8781
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result });
|
|
8782
8782
|
};
|
|
@@ -8867,7 +8867,7 @@ const CustomMenu = st(Menu)`
|
|
|
8867
8867
|
margin: 0 !important;
|
|
8868
8868
|
}
|
|
8869
8869
|
`;
|
|
8870
|
-
const Styled$
|
|
8870
|
+
const Styled$n = {
|
|
8871
8871
|
CustomMenu
|
|
8872
8872
|
};
|
|
8873
8873
|
|
|
@@ -8894,7 +8894,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
|
|
|
8894
8894
|
setSelectedKeys(data.selectedKeys);
|
|
8895
8895
|
}, [data.selectedKeys]);
|
|
8896
8896
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8897
|
-
Styled$
|
|
8897
|
+
Styled$n.CustomMenu,
|
|
8898
8898
|
{
|
|
8899
8899
|
selectedKeys,
|
|
8900
8900
|
onSelect: () => {
|
|
@@ -26171,7 +26171,7 @@ const ShortenedText = st.div`
|
|
|
26171
26171
|
white-space: nowrap;
|
|
26172
26172
|
text-overflow: ellipsis;
|
|
26173
26173
|
`;
|
|
26174
|
-
const Styled$
|
|
26174
|
+
const Styled$m = {
|
|
26175
26175
|
ShortenedText
|
|
26176
26176
|
};
|
|
26177
26177
|
|
|
@@ -26180,7 +26180,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
|
|
|
26180
26180
|
const trimmedText = text.substring(0, trimLength);
|
|
26181
26181
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, placement: "top", children: trimmedText });
|
|
26182
26182
|
}
|
|
26183
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
26183
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.ShortenedText, { $maxWidth: maxWidth, children: text }) });
|
|
26184
26184
|
};
|
|
26185
26185
|
|
|
26186
26186
|
const FilterDropdown = ({
|
|
@@ -33757,7 +33757,7 @@ function debounce(func, wait, options) {
|
|
|
33757
33757
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
33758
33758
|
}
|
|
33759
33759
|
wait = toNumber(wait) || 0;
|
|
33760
|
-
if (isObject$
|
|
33760
|
+
if (isObject$3(options)) {
|
|
33761
33761
|
leading = !!options.leading;
|
|
33762
33762
|
maxing = 'maxWait' in options;
|
|
33763
33763
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -33888,7 +33888,7 @@ function debounce(func, wait, options) {
|
|
|
33888
33888
|
* _.isObject(null);
|
|
33889
33889
|
* // => false
|
|
33890
33890
|
*/
|
|
33891
|
-
function isObject$
|
|
33891
|
+
function isObject$3(value) {
|
|
33892
33892
|
var type = typeof value;
|
|
33893
33893
|
return !!value && (type == 'object' || type == 'function');
|
|
33894
33894
|
}
|
|
@@ -33973,9 +33973,9 @@ function toNumber(value) {
|
|
|
33973
33973
|
if (isSymbol(value)) {
|
|
33974
33974
|
return NAN;
|
|
33975
33975
|
}
|
|
33976
|
-
if (isObject$
|
|
33976
|
+
if (isObject$3(value)) {
|
|
33977
33977
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
33978
|
-
value = isObject$
|
|
33978
|
+
value = isObject$3(other) ? (other + '') : other;
|
|
33979
33979
|
}
|
|
33980
33980
|
if (typeof value != 'string') {
|
|
33981
33981
|
return value === 0 ? value : +value;
|
|
@@ -34437,7 +34437,7 @@ function curry$1(fn) {
|
|
|
34437
34437
|
};
|
|
34438
34438
|
}
|
|
34439
34439
|
|
|
34440
|
-
function isObject$
|
|
34440
|
+
function isObject$2(value) {
|
|
34441
34441
|
return {}.toString.call(value).includes('Object');
|
|
34442
34442
|
}
|
|
34443
34443
|
|
|
@@ -34454,7 +34454,7 @@ function hasOwnProperty(object, property) {
|
|
|
34454
34454
|
}
|
|
34455
34455
|
|
|
34456
34456
|
function validateChanges(initial, changes) {
|
|
34457
|
-
if (!isObject$
|
|
34457
|
+
if (!isObject$2(changes)) errorHandler$1('changeType');
|
|
34458
34458
|
if (Object.keys(changes).some(function (field) {
|
|
34459
34459
|
return !hasOwnProperty(initial, field);
|
|
34460
34460
|
})) errorHandler$1('changeField');
|
|
@@ -34466,15 +34466,15 @@ function validateSelector(selector) {
|
|
|
34466
34466
|
}
|
|
34467
34467
|
|
|
34468
34468
|
function validateHandler(handler) {
|
|
34469
|
-
if (!(isFunction(handler) || isObject$
|
|
34470
|
-
if (isObject$
|
|
34469
|
+
if (!(isFunction(handler) || isObject$2(handler))) errorHandler$1('handlerType');
|
|
34470
|
+
if (isObject$2(handler) && Object.values(handler).some(function (_handler) {
|
|
34471
34471
|
return !isFunction(_handler);
|
|
34472
34472
|
})) errorHandler$1('handlersType');
|
|
34473
34473
|
}
|
|
34474
34474
|
|
|
34475
34475
|
function validateInitial(initial) {
|
|
34476
34476
|
if (!initial) errorHandler$1('initialIsRequired');
|
|
34477
|
-
if (!isObject$
|
|
34477
|
+
if (!isObject$2(initial)) errorHandler$1('initialType');
|
|
34478
34478
|
if (isEmpty$1(initial)) errorHandler$1('initialContent');
|
|
34479
34479
|
}
|
|
34480
34480
|
|
|
@@ -34574,7 +34574,7 @@ function curry(fn) {
|
|
|
34574
34574
|
};
|
|
34575
34575
|
}
|
|
34576
34576
|
|
|
34577
|
-
function isObject(value) {
|
|
34577
|
+
function isObject$1(value) {
|
|
34578
34578
|
return {}.toString.call(value).includes('Object');
|
|
34579
34579
|
}
|
|
34580
34580
|
|
|
@@ -34586,7 +34586,7 @@ function isObject(value) {
|
|
|
34586
34586
|
|
|
34587
34587
|
function validateConfig(config) {
|
|
34588
34588
|
if (!config) errorHandler('configIsRequired');
|
|
34589
|
-
if (!isObject(config)) errorHandler('configType');
|
|
34589
|
+
if (!isObject$1(config)) errorHandler('configType');
|
|
34590
34590
|
|
|
34591
34591
|
if (config.urls) {
|
|
34592
34592
|
informAboutDeprecation();
|
|
@@ -41720,7 +41720,7 @@ const BorderRadiusContainer$1 = st.div`
|
|
|
41720
41720
|
border-radius: 8px;
|
|
41721
41721
|
}
|
|
41722
41722
|
`;
|
|
41723
|
-
const Styled$
|
|
41723
|
+
const Styled$l = {
|
|
41724
41724
|
BorderRadiusContainer: BorderRadiusContainer$1
|
|
41725
41725
|
};
|
|
41726
41726
|
|
|
@@ -41729,7 +41729,7 @@ const YamlEditor = ({ theme, currentValues, onChange }) => {
|
|
|
41729
41729
|
useEffect(() => {
|
|
41730
41730
|
setYamlData(stringify(currentValues));
|
|
41731
41731
|
}, [currentValues]);
|
|
41732
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41732
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.BorderRadiusContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41733
41733
|
Ft,
|
|
41734
41734
|
{
|
|
41735
41735
|
defaultLanguage: "yaml",
|
|
@@ -41768,7 +41768,7 @@ const BigText$1 = st.div`
|
|
|
41768
41768
|
font-size: 16px;
|
|
41769
41769
|
line-height: 24px;
|
|
41770
41770
|
`;
|
|
41771
|
-
const Styled$
|
|
41771
|
+
const Styled$k = {
|
|
41772
41772
|
BorderRadiusContainer,
|
|
41773
41773
|
ControlsRowContainer: ControlsRowContainer$1,
|
|
41774
41774
|
BigText: BigText$1
|
|
@@ -41847,7 +41847,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41847
41847
|
};
|
|
41848
41848
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
41849
41849
|
contextHolder,
|
|
41850
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41850
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
41851
41851
|
Ft,
|
|
41852
41852
|
{
|
|
41853
41853
|
defaultLanguage: "yaml",
|
|
@@ -41863,7 +41863,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41863
41863
|
}
|
|
41864
41864
|
}
|
|
41865
41865
|
) }),
|
|
41866
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41866
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
41867
41867
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
|
|
41868
41868
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" })
|
|
41869
41869
|
] }) }),
|
|
@@ -41873,7 +41873,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
41873
41873
|
open: !!error,
|
|
41874
41874
|
onOk: () => setError(void 0),
|
|
41875
41875
|
onCancel: () => setError(void 0),
|
|
41876
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
41876
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.BigText, { children: "Error!" }) }),
|
|
41877
41877
|
cancelButtonProps: { style: { display: "none" } },
|
|
41878
41878
|
children: [
|
|
41879
41879
|
"An error has occurred: ",
|
|
@@ -41953,7 +41953,7 @@ const Content$1 = st.div`
|
|
|
41953
41953
|
display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
|
|
41954
41954
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
41955
41955
|
`;
|
|
41956
|
-
const Styled$
|
|
41956
|
+
const Styled$j = {
|
|
41957
41957
|
Container: Container$1,
|
|
41958
41958
|
TitleBar,
|
|
41959
41959
|
Content: Content$1
|
|
@@ -41980,14 +41980,14 @@ const CustomCollapse = ({
|
|
|
41980
41980
|
}
|
|
41981
41981
|
};
|
|
41982
41982
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
41983
|
-
Styled$
|
|
41983
|
+
Styled$j.Container,
|
|
41984
41984
|
{
|
|
41985
41985
|
$designNewLayout: designNewLayout,
|
|
41986
41986
|
$borderColor: token.colorBorder,
|
|
41987
41987
|
$bgColor: token.colorBgContainer,
|
|
41988
41988
|
children: [
|
|
41989
41989
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
41990
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
41990
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$j.TitleBar, { onClick: () => toggleCollapse(), children: [
|
|
41991
41991
|
!designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
|
|
41992
41992
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
|
|
41993
41993
|
designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
|
|
@@ -41998,7 +41998,7 @@ const CustomCollapse = ({
|
|
|
41998
41998
|
persistedCheckbox
|
|
41999
41999
|
] })
|
|
42000
42000
|
] }),
|
|
42001
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
42001
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
|
|
42002
42002
|
]
|
|
42003
42003
|
}
|
|
42004
42004
|
);
|
|
@@ -42032,13 +42032,13 @@ const CustomSizeTitle = st.div`
|
|
|
42032
42032
|
const Content = st.div`
|
|
42033
42033
|
padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
|
|
42034
42034
|
`;
|
|
42035
|
-
const Styled$
|
|
42035
|
+
const Styled$i = {
|
|
42036
42036
|
Content
|
|
42037
42037
|
};
|
|
42038
42038
|
|
|
42039
42039
|
const ArrayInsideContainer = ({ children }) => {
|
|
42040
42040
|
const designNewLayout = useDesignNewLayout();
|
|
42041
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
42041
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.Content, { $designNewLayout: designNewLayout, children });
|
|
42042
42042
|
};
|
|
42043
42043
|
|
|
42044
42044
|
const arraysEqual = (arr1, arr2) => {
|
|
@@ -42714,7 +42714,7 @@ const CrossContainer = st.div`
|
|
|
42714
42714
|
cursor: pointer;
|
|
42715
42715
|
padding-top: 11px;
|
|
42716
42716
|
`;
|
|
42717
|
-
const Styled$
|
|
42717
|
+
const Styled$h = {
|
|
42718
42718
|
SwitchAndCrossContainer,
|
|
42719
42719
|
CrossContainer
|
|
42720
42720
|
};
|
|
@@ -42739,7 +42739,7 @@ const FormBooleanInput = ({
|
|
|
42739
42739
|
onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
|
|
42740
42740
|
] })
|
|
42741
42741
|
] }),
|
|
42742
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
42742
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$h.SwitchAndCrossContainer, { children: [
|
|
42743
42743
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42744
42744
|
ResetedFormItem,
|
|
42745
42745
|
{
|
|
@@ -42749,7 +42749,7 @@ const FormBooleanInput = ({
|
|
|
42749
42749
|
arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
|
|
42750
42750
|
),
|
|
42751
42751
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42752
|
-
Styled$
|
|
42752
|
+
Styled$h.CrossContainer,
|
|
42753
42753
|
{
|
|
42754
42754
|
onClick: () => {
|
|
42755
42755
|
if (makeValueUndefined) {
|
|
@@ -42947,7 +42947,7 @@ const OverflowContainer$1 = st.div`
|
|
|
42947
42947
|
overflow-x: auto;
|
|
42948
42948
|
scrollbar-width: thin;
|
|
42949
42949
|
`;
|
|
42950
|
-
const ResetedFormList$
|
|
42950
|
+
const ResetedFormList$3 = st(Form.List)`
|
|
42951
42951
|
margin-bottom: 8px;
|
|
42952
42952
|
`;
|
|
42953
42953
|
const ControlsRowContainer = st.div`
|
|
@@ -42965,8 +42965,8 @@ const BigText = st.div`
|
|
|
42965
42965
|
font-size: 16px;
|
|
42966
42966
|
line-height: 24px;
|
|
42967
42967
|
`;
|
|
42968
|
-
const Styled$
|
|
42969
|
-
ResetedFormList: ResetedFormList$
|
|
42968
|
+
const Styled$g = {
|
|
42969
|
+
ResetedFormList: ResetedFormList$3,
|
|
42970
42970
|
Container,
|
|
42971
42971
|
OverflowContainer: OverflowContainer$1,
|
|
42972
42972
|
ControlsRowContainer,
|
|
@@ -43213,7 +43213,7 @@ const getArrayFormItemFromSwagger = ({
|
|
|
43213
43213
|
}
|
|
43214
43214
|
),
|
|
43215
43215
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43216
|
-
Styled$
|
|
43216
|
+
Styled$g.ResetedFormList,
|
|
43217
43217
|
{
|
|
43218
43218
|
name: arrName || name,
|
|
43219
43219
|
rules: !forceNonRequired && required?.includes(getStringByName(name)) ? [
|
|
@@ -43940,8 +43940,8 @@ const BlackholeForm = ({
|
|
|
43940
43940
|
setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
|
|
43941
43941
|
};
|
|
43942
43942
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
43943
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
43944
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43943
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$g.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
|
|
43944
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43945
43945
|
Form,
|
|
43946
43946
|
{
|
|
43947
43947
|
form,
|
|
@@ -43985,7 +43985,7 @@ const BlackholeForm = ({
|
|
|
43985
43985
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditor, { theme: theme$1, currentValues: yamlValues || {}, onChange: onYamlChangeCallback }) })
|
|
43986
43986
|
] }),
|
|
43987
43987
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
|
|
43988
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
43988
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
|
|
43989
43989
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
|
|
43990
43990
|
backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
|
|
43991
43991
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => setIsDebugModalOpen(true), icon: /* @__PURE__ */ jsxRuntimeExports.jsx(BugOutlined, {}) }),
|
|
@@ -43997,7 +43997,7 @@ const BlackholeForm = ({
|
|
|
43997
43997
|
open: !!error,
|
|
43998
43998
|
onOk: () => setError(void 0),
|
|
43999
43999
|
onCancel: () => setError(void 0),
|
|
44000
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44000
|
+
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BigText, { children: "Error!" }) }),
|
|
44001
44001
|
cancelButtonProps: { style: { display: "none" } },
|
|
44002
44002
|
children: [
|
|
44003
44003
|
"An error has occurred: ",
|
|
@@ -44013,7 +44013,7 @@ const BlackholeForm = ({
|
|
|
44013
44013
|
onCancel: () => setIsDebugModalOpen(false),
|
|
44014
44014
|
title: "Debug for properties",
|
|
44015
44015
|
width: "90vw",
|
|
44016
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44016
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44017
44017
|
Editor,
|
|
44018
44018
|
{
|
|
44019
44019
|
defaultLanguage: "json",
|
|
@@ -44167,12 +44167,12 @@ const CustomCard$5 = st(Card)`
|
|
|
44167
44167
|
padding: 8px;
|
|
44168
44168
|
}
|
|
44169
44169
|
`;
|
|
44170
|
-
const Styled$
|
|
44170
|
+
const Styled$f = {
|
|
44171
44171
|
CustomCard: CustomCard$5
|
|
44172
44172
|
};
|
|
44173
44173
|
|
|
44174
44174
|
const AddCard = ({ onAddClick }) => {
|
|
44175
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44175
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.CustomCard, { onClick: onAddClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusOutlined, {}) });
|
|
44176
44176
|
};
|
|
44177
44177
|
|
|
44178
44178
|
const byteToHex = [];
|
|
@@ -44476,7 +44476,7 @@ const EditButtonContainer = st.div`
|
|
|
44476
44476
|
bottom: 6px;
|
|
44477
44477
|
right: 6px;
|
|
44478
44478
|
`;
|
|
44479
|
-
const Styled$
|
|
44479
|
+
const Styled$e = {
|
|
44480
44480
|
CustomCard: CustomCard$4,
|
|
44481
44481
|
ImageContainer,
|
|
44482
44482
|
OverflowContainer,
|
|
@@ -44553,14 +44553,14 @@ const MarketplaceCard$1 = ({
|
|
|
44553
44553
|
return null;
|
|
44554
44554
|
}
|
|
44555
44555
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44556
|
-
Styled$
|
|
44556
|
+
Styled$e.CustomCard,
|
|
44557
44557
|
{
|
|
44558
44558
|
$isDisabled: disabled,
|
|
44559
44559
|
$hoverColor: token.colorPrimary,
|
|
44560
44560
|
onClick: () => disabled ? null : navigate(navigateUrl),
|
|
44561
44561
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { vertical: true, style: { width: "100%", height: "100%" }, justify: "spaceBetween", children: [
|
|
44562
44562
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44563
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44563
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.ImageContainer, { dangerouslySetInnerHTML: { __html: decodedIcon } }),
|
|
44564
44564
|
isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44565
44565
|
"div",
|
|
44566
44566
|
{
|
|
@@ -44581,8 +44581,8 @@ const MarketplaceCard$1 = ({
|
|
|
44581
44581
|
}
|
|
44582
44582
|
)
|
|
44583
44583
|
] }),
|
|
44584
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44585
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
44584
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$e.OverflowContainer, { children: [
|
|
44585
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$e.TitleContainer, { children: [
|
|
44586
44586
|
name,
|
|
44587
44587
|
" ",
|
|
44588
44588
|
addedMode && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
@@ -44590,10 +44590,10 @@ const MarketplaceCard$1 = ({
|
|
|
44590
44590
|
k8sList?.items?.length
|
|
44591
44591
|
] })
|
|
44592
44592
|
] }),
|
|
44593
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44594
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44593
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.TagsContainer, { children: tags.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.CustomTag, { children: tag }, tag)) }),
|
|
44594
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.DescriptionContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: description }) })
|
|
44595
44595
|
] }),
|
|
44596
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44596
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.EditButtonContainer, { children: isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44597
44597
|
"div",
|
|
44598
44598
|
{
|
|
44599
44599
|
onClick: (e) => {
|
|
@@ -44651,7 +44651,7 @@ const BigValue = st.div`
|
|
|
44651
44651
|
line-clamp: 1;
|
|
44652
44652
|
word-break: break-all;
|
|
44653
44653
|
`;
|
|
44654
|
-
const Styled$
|
|
44654
|
+
const Styled$d = {
|
|
44655
44655
|
BigValue
|
|
44656
44656
|
};
|
|
44657
44657
|
|
|
@@ -44762,7 +44762,7 @@ const MarketPlace = ({
|
|
|
44762
44762
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
|
|
44763
44763
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
|
|
44764
44764
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: "Available Products" }) }),
|
|
44765
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
44765
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.BigValue, { children: "Marketplace" }) })
|
|
44766
44766
|
] }) }),
|
|
44767
44767
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
|
|
44768
44768
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchTextInput, { uniqueTags, selectedTags, onSelectedTags: setSelectedTags }),
|
|
@@ -44966,7 +44966,7 @@ st.div`
|
|
|
44966
44966
|
line-clamp: 1;
|
|
44967
44967
|
word-break: break-all;
|
|
44968
44968
|
`;
|
|
44969
|
-
const Styled$
|
|
44969
|
+
const Styled$c = {
|
|
44970
44970
|
ActionMenuPlaceholder};
|
|
44971
44971
|
|
|
44972
44972
|
const ProjectInfoCard$1 = ({
|
|
@@ -45044,7 +45044,7 @@ const ProjectInfoCard$1 = ({
|
|
|
45044
45044
|
} : void 0,
|
|
45045
45045
|
onUpdate: updatePermission.data?.status.allowed ? openUpdate : void 0
|
|
45046
45046
|
}
|
|
45047
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45047
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.ActionMenuPlaceholder, {}) }),
|
|
45048
45048
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownAccessGroups, { accessGroups })
|
|
45049
45049
|
] }) })
|
|
45050
45050
|
] }),
|
|
@@ -45130,7 +45130,7 @@ const FullWidthDiv$3 = st.div`
|
|
|
45130
45130
|
width: 100%;
|
|
45131
45131
|
height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
|
|
45132
45132
|
`;
|
|
45133
|
-
const Styled$
|
|
45133
|
+
const Styled$b = {
|
|
45134
45134
|
FullWidthDiv: FullWidthDiv$3,
|
|
45135
45135
|
CustomCard: CustomCard$3
|
|
45136
45136
|
};
|
|
@@ -45215,7 +45215,7 @@ const XTerminal$2 = ({ endpoint, namespace, podName, container, substractHeight
|
|
|
45215
45215
|
};
|
|
45216
45216
|
}, [terminal, endpoint, namespace, podName, container]);
|
|
45217
45217
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45218
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45218
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.CustomCard, { $isVisible: !isLoading && !error, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45219
45219
|
isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45220
45220
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
|
|
45221
45221
|
] });
|
|
@@ -45226,7 +45226,7 @@ const CustomSelect$3 = st.div`
|
|
|
45226
45226
|
width: 200px;
|
|
45227
45227
|
}
|
|
45228
45228
|
`;
|
|
45229
|
-
const Styled$
|
|
45229
|
+
const Styled$a = {
|
|
45230
45230
|
CustomSelect: CustomSelect$3
|
|
45231
45231
|
};
|
|
45232
45232
|
|
|
@@ -45237,7 +45237,7 @@ const PodTerminal$1 = ({ cluster, namespace, podName, containers, substractHeigh
|
|
|
45237
45237
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
|
|
45238
45238
|
}
|
|
45239
45239
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45240
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45240
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45241
45241
|
Select,
|
|
45242
45242
|
{
|
|
45243
45243
|
placeholder: "Select container",
|
|
@@ -45289,7 +45289,7 @@ const ProgressContainer = st.div`
|
|
|
45289
45289
|
align-items: center;
|
|
45290
45290
|
gap: 8px;
|
|
45291
45291
|
`;
|
|
45292
|
-
const Styled$
|
|
45292
|
+
const Styled$9 = {
|
|
45293
45293
|
FullWidthDiv: FullWidthDiv$2,
|
|
45294
45294
|
CustomCard: CustomCard$2,
|
|
45295
45295
|
ProgressContainer
|
|
@@ -45421,8 +45421,8 @@ const XTerminal$1 = ({ endpoint, nodeName, profile, substractHeight }) => {
|
|
|
45421
45421
|
};
|
|
45422
45422
|
}, [terminal, endpoint, nodeName, profile]);
|
|
45423
45423
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45424
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45425
|
-
!isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$
|
|
45424
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$9.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$9.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45425
|
+
!isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$9.ProgressContainer, { $substractHeight: substractHeight, children: [
|
|
45426
45426
|
isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45427
45427
|
!isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Progress, { type: "circle", percent: progressPercent }),
|
|
45428
45428
|
warmupMessage && /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Text, { children: [
|
|
@@ -45443,7 +45443,7 @@ const CustomSelect$2 = st.div`
|
|
|
45443
45443
|
width: 200px;
|
|
45444
45444
|
}
|
|
45445
45445
|
`;
|
|
45446
|
-
const Styled$
|
|
45446
|
+
const Styled$8 = {
|
|
45447
45447
|
CustomSelect: CustomSelect$2
|
|
45448
45448
|
};
|
|
45449
45449
|
|
|
@@ -45452,7 +45452,7 @@ const NodeTerminal$1 = ({ cluster, nodeName, substractHeight, defaultProfile })
|
|
|
45452
45452
|
const endpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalNode/terminalNode`;
|
|
45453
45453
|
const profiles = ["legacy", "general", "baseline", "netadmin", "restricted", "sysadmin"];
|
|
45454
45454
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45455
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45455
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45456
45456
|
Select,
|
|
45457
45457
|
{
|
|
45458
45458
|
placeholder: "Select profile",
|
|
@@ -45491,7 +45491,7 @@ const FullWidthDiv$1 = st.div`
|
|
|
45491
45491
|
width: 100%;
|
|
45492
45492
|
height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
|
|
45493
45493
|
`;
|
|
45494
|
-
const Styled$
|
|
45494
|
+
const Styled$7 = {
|
|
45495
45495
|
FullWidthDiv: FullWidthDiv$1,
|
|
45496
45496
|
CustomCard: CustomCard$1
|
|
45497
45497
|
};
|
|
@@ -45572,7 +45572,7 @@ const XTerminal = ({ endpoint, namespace, podName, container, substractHeight })
|
|
|
45572
45572
|
};
|
|
45573
45573
|
}, [terminal, endpoint, namespace, podName, container]);
|
|
45574
45574
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45575
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45575
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
|
|
45576
45576
|
isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
|
|
45577
45577
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
|
|
45578
45578
|
] });
|
|
@@ -45583,7 +45583,7 @@ const CustomSelect$1 = st.div`
|
|
|
45583
45583
|
width: 200px;
|
|
45584
45584
|
}
|
|
45585
45585
|
`;
|
|
45586
|
-
const Styled$
|
|
45586
|
+
const Styled$6 = {
|
|
45587
45587
|
CustomSelect: CustomSelect$1
|
|
45588
45588
|
};
|
|
45589
45589
|
|
|
@@ -45594,7 +45594,7 @@ const PodLogs$1 = ({ cluster, namespace, podName, containers, substractHeight })
|
|
|
45594
45594
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
|
|
45595
45595
|
}
|
|
45596
45596
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45597
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45597
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45598
45598
|
Select,
|
|
45599
45599
|
{
|
|
45600
45600
|
placeholder: "Select container",
|
|
@@ -45644,7 +45644,7 @@ const CursorPointerDiv = st.div`
|
|
|
45644
45644
|
cursor: pointer;
|
|
45645
45645
|
user-select: none;
|
|
45646
45646
|
`;
|
|
45647
|
-
const Styled$
|
|
45647
|
+
const Styled$5 = {
|
|
45648
45648
|
FullWidthDiv,
|
|
45649
45649
|
CustomCard,
|
|
45650
45650
|
VisibilityContainer: VisibilityContainer$2,
|
|
@@ -45718,9 +45718,9 @@ const MonacoEditor = ({
|
|
|
45718
45718
|
};
|
|
45719
45719
|
}, [endpoint, namespace, podName, container, previous]);
|
|
45720
45720
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45721
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45721
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
|
|
45722
45722
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45723
|
-
Styled$
|
|
45723
|
+
Styled$5.CursorPointerDiv,
|
|
45724
45724
|
{
|
|
45725
45725
|
onClick: () => {
|
|
45726
45726
|
if (isPaused) {
|
|
@@ -45745,7 +45745,7 @@ const MonacoEditor = ({
|
|
|
45745
45745
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isPaused ? "Not streaming events" : "Streaming events" })
|
|
45746
45746
|
] }) }),
|
|
45747
45747
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 16, $samespace: true }),
|
|
45748
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45748
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.CustomCard, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.FullWidthDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45749
45749
|
Ft,
|
|
45750
45750
|
{
|
|
45751
45751
|
defaultLanguage: "plaintext",
|
|
@@ -45776,7 +45776,7 @@ const CustomSelect = st.div`
|
|
|
45776
45776
|
width: 200px;
|
|
45777
45777
|
}
|
|
45778
45778
|
`;
|
|
45779
|
-
const Styled$
|
|
45779
|
+
const Styled$4 = {
|
|
45780
45780
|
TopRowContent,
|
|
45781
45781
|
CustomSelect
|
|
45782
45782
|
};
|
|
@@ -45822,8 +45822,8 @@ const PodLogsMonaco = ({
|
|
|
45822
45822
|
}
|
|
45823
45823
|
];
|
|
45824
45824
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45825
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45826
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45825
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
|
|
45826
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45827
45827
|
Select,
|
|
45828
45828
|
{
|
|
45829
45829
|
placeholder: "Select container",
|
|
@@ -45838,7 +45838,7 @@ const PodLogsMonaco = ({
|
|
|
45838
45838
|
}
|
|
45839
45839
|
}
|
|
45840
45840
|
) }),
|
|
45841
|
-
currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
45841
|
+
currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45842
45842
|
Select,
|
|
45843
45843
|
{
|
|
45844
45844
|
placeholder: "Select current/previous",
|
|
@@ -46751,7 +46751,7 @@ const YamlEditorSingleton = ({
|
|
|
46751
46751
|
const VisibilityContainer$1 = st.div`
|
|
46752
46752
|
display: ${({ $hidden }) => $hidden ? "none" : "block"};
|
|
46753
46753
|
`;
|
|
46754
|
-
const Styled$
|
|
46754
|
+
const Styled$3 = {
|
|
46755
46755
|
VisibilityContainer: VisibilityContainer$1
|
|
46756
46756
|
};
|
|
46757
46757
|
|
|
@@ -46774,7 +46774,7 @@ const VisibilityContainer = ({
|
|
|
46774
46774
|
if (isMultiqueryLoading) {
|
|
46775
46775
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
|
|
46776
46776
|
}
|
|
46777
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
46777
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$3.VisibilityContainer, { $hidden: valuePrepared === "~undefined-value~", children });
|
|
46778
46778
|
};
|
|
46779
46779
|
|
|
46780
46780
|
const unknownToString = (value) => {
|
|
@@ -46863,7 +46863,7 @@ const ArrayOfObjectsToKeyValues = ({ data, children }) => {
|
|
|
46863
46863
|
};
|
|
46864
46864
|
|
|
46865
46865
|
const flattenOnce$2 = (arr) => arr.reduce((acc, row) => [...acc, ...row], []);
|
|
46866
|
-
const getItemsInside$
|
|
46866
|
+
const getItemsInside$4 = (value) => {
|
|
46867
46867
|
if (!Array.isArray(value)) {
|
|
46868
46868
|
return { error: "Value on jsonPath is not an array" };
|
|
46869
46869
|
}
|
|
@@ -46911,7 +46911,7 @@ const ItemCounter = ({
|
|
|
46911
46911
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: errorText });
|
|
46912
46912
|
}
|
|
46913
46913
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToArray}`);
|
|
46914
|
-
const { counter, error: errorArrayOfObjects } = getItemsInside$
|
|
46914
|
+
const { counter, error: errorArrayOfObjects } = getItemsInside$4(anythingForNow);
|
|
46915
46915
|
if (errorArrayOfObjects) {
|
|
46916
46916
|
console.log(`Item Counter: ${id}: ${errorArrayOfObjects}`);
|
|
46917
46917
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: errorText });
|
|
@@ -46924,7 +46924,7 @@ const ItemCounter = ({
|
|
|
46924
46924
|
] });
|
|
46925
46925
|
};
|
|
46926
46926
|
|
|
46927
|
-
const getItemsInside$
|
|
46927
|
+
const getItemsInside$3 = (value) => {
|
|
46928
46928
|
if (!Array.isArray(value)) {
|
|
46929
46929
|
return { error: "Value on jsonPath is not an array" };
|
|
46930
46930
|
}
|
|
@@ -46968,7 +46968,7 @@ const KeyCounter = ({
|
|
|
46968
46968
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: errorText });
|
|
46969
46969
|
}
|
|
46970
46970
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToObj}`);
|
|
46971
|
-
const { counter, error: errorArrayOfObjects } = getItemsInside$
|
|
46971
|
+
const { counter, error: errorArrayOfObjects } = getItemsInside$3(anythingForNow);
|
|
46972
46972
|
if (errorArrayOfObjects) {
|
|
46973
46973
|
console.log(`Key Counter: ${id}: ${errorArrayOfObjects}`);
|
|
46974
46974
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: errorText });
|
|
@@ -46998,7 +46998,7 @@ const truncate = (text, max) => {
|
|
|
46998
46998
|
return text.length > max ? text.slice(0, max) + "..." : text;
|
|
46999
46999
|
};
|
|
47000
47000
|
|
|
47001
|
-
const EditModal$
|
|
47001
|
+
const EditModal$3 = ({
|
|
47002
47002
|
open,
|
|
47003
47003
|
close,
|
|
47004
47004
|
values,
|
|
@@ -47011,7 +47011,9 @@ const EditModal$2 = ({
|
|
|
47011
47011
|
endpoint,
|
|
47012
47012
|
pathToValue,
|
|
47013
47013
|
editModalWidth,
|
|
47014
|
-
paddingContainerEnd
|
|
47014
|
+
paddingContainerEnd,
|
|
47015
|
+
modalDescriptionTextStyle,
|
|
47016
|
+
inputLabelStyle
|
|
47015
47017
|
}) => {
|
|
47016
47018
|
const queryClient = useQueryClient();
|
|
47017
47019
|
const [error, setError] = useState();
|
|
@@ -47070,11 +47072,11 @@ const EditModal$2 = ({
|
|
|
47070
47072
|
children: [
|
|
47071
47073
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message: "Error while submitting", description: error?.response?.data?.message }),
|
|
47072
47074
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47073
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modalDescriptionText }),
|
|
47075
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
47074
47076
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
47075
47077
|
] }),
|
|
47076
47078
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Form, { form, children: [
|
|
47077
|
-
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, children: inputLabel }),
|
|
47079
|
+
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, style: inputLabelStyle, children: inputLabel }),
|
|
47078
47080
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
47079
47081
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47080
47082
|
ResetedFormItem,
|
|
@@ -47137,7 +47139,9 @@ const Labels = ({ data, children }) => {
|
|
|
47137
47139
|
notificationSuccessMessageDescription,
|
|
47138
47140
|
modalTitle,
|
|
47139
47141
|
modalDescriptionText,
|
|
47142
|
+
modalDescriptionTextStyle,
|
|
47140
47143
|
inputLabel,
|
|
47144
|
+
inputLabelStyle,
|
|
47141
47145
|
containerStyle,
|
|
47142
47146
|
maxEditTagTextLength,
|
|
47143
47147
|
allowClearEditSelect,
|
|
@@ -47224,7 +47228,7 @@ const Labels = ({ data, children }) => {
|
|
|
47224
47228
|
children,
|
|
47225
47229
|
contextHolder,
|
|
47226
47230
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47227
|
-
EditModal$
|
|
47231
|
+
EditModal$3,
|
|
47228
47232
|
{
|
|
47229
47233
|
open,
|
|
47230
47234
|
close: () => setOpen(false),
|
|
@@ -47237,7 +47241,9 @@ const Labels = ({ data, children }) => {
|
|
|
47237
47241
|
endpoint: endpointPrepared,
|
|
47238
47242
|
pathToValue: pathToValuePrepared,
|
|
47239
47243
|
editModalWidth,
|
|
47240
|
-
paddingContainerEnd
|
|
47244
|
+
paddingContainerEnd,
|
|
47245
|
+
modalDescriptionTextStyle,
|
|
47246
|
+
inputLabelStyle
|
|
47241
47247
|
}
|
|
47242
47248
|
)
|
|
47243
47249
|
] });
|
|
@@ -47288,7 +47294,7 @@ const Labels = ({ data, children }) => {
|
|
|
47288
47294
|
children,
|
|
47289
47295
|
contextHolder,
|
|
47290
47296
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47291
|
-
EditModal$
|
|
47297
|
+
EditModal$3,
|
|
47292
47298
|
{
|
|
47293
47299
|
open,
|
|
47294
47300
|
close: () => setOpen(false),
|
|
@@ -47302,7 +47308,9 @@ const Labels = ({ data, children }) => {
|
|
|
47302
47308
|
endpoint: endpointPrepared,
|
|
47303
47309
|
pathToValue: pathToValuePrepared,
|
|
47304
47310
|
editModalWidth,
|
|
47305
|
-
paddingContainerEnd
|
|
47311
|
+
paddingContainerEnd,
|
|
47312
|
+
modalDescriptionTextStyle,
|
|
47313
|
+
inputLabelStyle
|
|
47306
47314
|
}
|
|
47307
47315
|
)
|
|
47308
47316
|
] });
|
|
@@ -47326,6 +47334,7 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
47326
47334
|
reqIndex,
|
|
47327
47335
|
jsonPathToLabels,
|
|
47328
47336
|
linkPrefix,
|
|
47337
|
+
errorText,
|
|
47329
47338
|
...linkProps
|
|
47330
47339
|
} = data;
|
|
47331
47340
|
const { data: multiQueryData, isLoading: isMultiQueryLoading, isError: isMultiQueryErrors, errors } = useMultiQuery();
|
|
@@ -47349,15 +47358,23 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
47349
47358
|
}
|
|
47350
47359
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToLabels}`);
|
|
47351
47360
|
const { data: labelsRaw, error: errorArrayOfObjects } = parseArrayOfAny(anythingForNow);
|
|
47361
|
+
const linkPrefixPrepared = parseAll({ text: linkPrefix, replaceValues, multiQueryData });
|
|
47352
47362
|
if (!labelsRaw) {
|
|
47353
47363
|
if (errorArrayOfObjects) {
|
|
47354
|
-
|
|
47364
|
+
console.log(errorArrayOfObjects);
|
|
47365
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: linkPrefixPrepared, ...linkProps, children: [
|
|
47366
|
+
errorText,
|
|
47367
|
+
children
|
|
47368
|
+
] });
|
|
47355
47369
|
}
|
|
47356
|
-
|
|
47370
|
+
console.log("Not a valid data structure");
|
|
47371
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: linkPrefixPrepared, ...linkProps, children: [
|
|
47372
|
+
errorText,
|
|
47373
|
+
children
|
|
47374
|
+
] });
|
|
47357
47375
|
}
|
|
47358
47376
|
const labels = Object.entries(labelsRaw).map(([key, value]) => `${key}=${value}`).join(",");
|
|
47359
47377
|
const labelsEncoded = encodeURIComponent(labels);
|
|
47360
|
-
const linkPrefixPrepared = parseAll({ text: linkPrefix, replaceValues, multiQueryData });
|
|
47361
47378
|
const hrefPrepared = `${linkPrefixPrepared}?${labelsEncoded}`;
|
|
47362
47379
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, ...linkProps, children: [
|
|
47363
47380
|
labels,
|
|
@@ -47365,14 +47382,14 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
47365
47382
|
] });
|
|
47366
47383
|
};
|
|
47367
47384
|
|
|
47368
|
-
const ResetedFormList$
|
|
47385
|
+
const ResetedFormList$2 = st(Form.List)`
|
|
47369
47386
|
margin-bottom: 8px;
|
|
47370
47387
|
`;
|
|
47371
|
-
const Styled$
|
|
47372
|
-
ResetedFormList: ResetedFormList$
|
|
47388
|
+
const Styled$2 = {
|
|
47389
|
+
ResetedFormList: ResetedFormList$2
|
|
47373
47390
|
};
|
|
47374
47391
|
|
|
47375
|
-
const EditModal$
|
|
47392
|
+
const EditModal$2 = ({
|
|
47376
47393
|
open,
|
|
47377
47394
|
close,
|
|
47378
47395
|
values,
|
|
@@ -47383,7 +47400,9 @@ const EditModal$1 = ({
|
|
|
47383
47400
|
endpoint,
|
|
47384
47401
|
pathToValue,
|
|
47385
47402
|
editModalWidth,
|
|
47386
|
-
cols
|
|
47403
|
+
cols,
|
|
47404
|
+
modalDescriptionTextStyle,
|
|
47405
|
+
inputLabelStyle
|
|
47387
47406
|
}) => {
|
|
47388
47407
|
const queryClient = useQueryClient();
|
|
47389
47408
|
const [error, setError] = useState();
|
|
@@ -47438,11 +47457,11 @@ const EditModal$1 = ({
|
|
|
47438
47457
|
children: [
|
|
47439
47458
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message: "Error while submitting", description: error?.response?.data?.message }),
|
|
47440
47459
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47441
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modalDescriptionText }),
|
|
47460
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
47442
47461
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
47443
47462
|
] }),
|
|
47444
47463
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Form, { form, children: [
|
|
47445
|
-
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, children: inputLabel }),
|
|
47464
|
+
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, style: inputLabelStyle, children: inputLabel }),
|
|
47446
47465
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
47447
47466
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
47448
47467
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Key" }) }),
|
|
@@ -47451,7 +47470,7 @@ const EditModal$1 = ({
|
|
|
47451
47470
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[3], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
47452
47471
|
] }),
|
|
47453
47472
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
47454
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$
|
|
47473
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47455
47474
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
47456
47475
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47457
47476
|
ResetedFormItem,
|
|
@@ -47523,7 +47542,7 @@ const filterTaintLikes = (input) => {
|
|
|
47523
47542
|
if (!Array.isArray(input)) return [];
|
|
47524
47543
|
return input.filter(isTaintLike);
|
|
47525
47544
|
};
|
|
47526
|
-
const getItemsInside$
|
|
47545
|
+
const getItemsInside$2 = (value) => {
|
|
47527
47546
|
if (!Array.isArray(value)) {
|
|
47528
47547
|
return { error: "Value on jsonPath is not an array" };
|
|
47529
47548
|
}
|
|
@@ -47550,7 +47569,9 @@ const Taints = ({ data, children }) => {
|
|
|
47550
47569
|
notificationSuccessMessageDescription,
|
|
47551
47570
|
modalTitle,
|
|
47552
47571
|
modalDescriptionText,
|
|
47572
|
+
modalDescriptionTextStyle,
|
|
47553
47573
|
inputLabel,
|
|
47574
|
+
inputLabelStyle,
|
|
47554
47575
|
containerStyle,
|
|
47555
47576
|
endpoint,
|
|
47556
47577
|
pathToValue,
|
|
@@ -47580,7 +47601,7 @@ const Taints = ({ data, children }) => {
|
|
|
47580
47601
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: errorText });
|
|
47581
47602
|
}
|
|
47582
47603
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToArray}`);
|
|
47583
|
-
const { counter, taints, error: errorArrayOfObjects } = getItemsInside$
|
|
47604
|
+
const { counter, taints, error: errorArrayOfObjects } = getItemsInside$2(anythingForNow);
|
|
47584
47605
|
const notificationSuccessMessagePrepared = notificationSuccessMessage ? parseAll({
|
|
47585
47606
|
text: notificationSuccessMessage,
|
|
47586
47607
|
replaceValues,
|
|
@@ -47624,7 +47645,7 @@ const Taints = ({ data, children }) => {
|
|
|
47624
47645
|
] }) }),
|
|
47625
47646
|
contextHolder,
|
|
47626
47647
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47627
|
-
EditModal$
|
|
47648
|
+
EditModal$2,
|
|
47628
47649
|
{
|
|
47629
47650
|
open,
|
|
47630
47651
|
close: () => setOpen(false),
|
|
@@ -47636,7 +47657,9 @@ const Taints = ({ data, children }) => {
|
|
|
47636
47657
|
endpoint: endpointPrepared,
|
|
47637
47658
|
pathToValue: pathToValuePrepared,
|
|
47638
47659
|
editModalWidth,
|
|
47639
|
-
cols
|
|
47660
|
+
cols,
|
|
47661
|
+
modalDescriptionTextStyle,
|
|
47662
|
+
inputLabelStyle
|
|
47640
47663
|
}
|
|
47641
47664
|
)
|
|
47642
47665
|
] });
|
|
@@ -47664,7 +47687,7 @@ const Taints = ({ data, children }) => {
|
|
|
47664
47687
|
] }),
|
|
47665
47688
|
contextHolder,
|
|
47666
47689
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47667
|
-
EditModal$
|
|
47690
|
+
EditModal$2,
|
|
47668
47691
|
{
|
|
47669
47692
|
open,
|
|
47670
47693
|
close: () => setOpen(false),
|
|
@@ -47676,20 +47699,22 @@ const Taints = ({ data, children }) => {
|
|
|
47676
47699
|
endpoint: endpointPrepared,
|
|
47677
47700
|
pathToValue: pathToValuePrepared,
|
|
47678
47701
|
editModalWidth,
|
|
47679
|
-
cols
|
|
47702
|
+
cols,
|
|
47703
|
+
modalDescriptionTextStyle,
|
|
47704
|
+
inputLabelStyle
|
|
47680
47705
|
}
|
|
47681
47706
|
)
|
|
47682
47707
|
] });
|
|
47683
47708
|
};
|
|
47684
47709
|
|
|
47685
|
-
const ResetedFormList = st(Form.List)`
|
|
47710
|
+
const ResetedFormList$1 = st(Form.List)`
|
|
47686
47711
|
margin-bottom: 8px;
|
|
47687
47712
|
`;
|
|
47688
|
-
const Styled = {
|
|
47689
|
-
ResetedFormList
|
|
47713
|
+
const Styled$1 = {
|
|
47714
|
+
ResetedFormList: ResetedFormList$1
|
|
47690
47715
|
};
|
|
47691
47716
|
|
|
47692
|
-
const EditModal = ({
|
|
47717
|
+
const EditModal$1 = ({
|
|
47693
47718
|
open,
|
|
47694
47719
|
close,
|
|
47695
47720
|
values,
|
|
@@ -47700,7 +47725,9 @@ const EditModal = ({
|
|
|
47700
47725
|
endpoint,
|
|
47701
47726
|
pathToValue,
|
|
47702
47727
|
editModalWidth,
|
|
47703
|
-
cols
|
|
47728
|
+
cols,
|
|
47729
|
+
modalDescriptionTextStyle,
|
|
47730
|
+
inputLabelStyle
|
|
47704
47731
|
}) => {
|
|
47705
47732
|
const queryClient = useQueryClient();
|
|
47706
47733
|
const [error, setError] = useState();
|
|
@@ -47756,11 +47783,11 @@ const EditModal = ({
|
|
|
47756
47783
|
children: [
|
|
47757
47784
|
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message: "Error while submitting", description: error?.response?.data?.message }),
|
|
47758
47785
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47759
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modalDescriptionText }),
|
|
47786
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
47760
47787
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
47761
47788
|
] }),
|
|
47762
47789
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Form, { form, children: [
|
|
47763
|
-
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, children: inputLabel }),
|
|
47790
|
+
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, style: inputLabelStyle, children: inputLabel }),
|
|
47764
47791
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
47765
47792
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
47766
47793
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
@@ -47778,7 +47805,7 @@ const EditModal = ({
|
|
|
47778
47805
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[4], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
47779
47806
|
] }),
|
|
47780
47807
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
47781
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47808
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47782
47809
|
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
47783
47810
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47784
47811
|
ResetedFormItem,
|
|
@@ -47831,9 +47858,6 @@ const EditModal = ({
|
|
|
47831
47858
|
if (op === "Equal" && (!v || v === "")) {
|
|
47832
47859
|
return Promise.reject(new Error("Value is required when operator is Equal."));
|
|
47833
47860
|
}
|
|
47834
|
-
if (op === "Exists" && v) {
|
|
47835
|
-
return Promise.reject(new Error("Value must be empty when operator is Exists."));
|
|
47836
|
-
}
|
|
47837
47861
|
return Promise.resolve();
|
|
47838
47862
|
}
|
|
47839
47863
|
})
|
|
@@ -47846,12 +47870,6 @@ const EditModal = ({
|
|
|
47846
47870
|
{
|
|
47847
47871
|
...restField,
|
|
47848
47872
|
name: [name, "effect"],
|
|
47849
|
-
rules: [
|
|
47850
|
-
{ required: true, message: "Effect is required." },
|
|
47851
|
-
{
|
|
47852
|
-
validator: (_, v) => v && effectOptions.includes(v) ? Promise.resolve() : Promise.reject(new Error("Select a valid effect."))
|
|
47853
|
-
}
|
|
47854
|
-
],
|
|
47855
47873
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47856
47874
|
Select,
|
|
47857
47875
|
{
|
|
@@ -47895,7 +47913,7 @@ const filterTolerations = (input) => {
|
|
|
47895
47913
|
if (!Array.isArray(input)) return [];
|
|
47896
47914
|
return input.filter(isToleration);
|
|
47897
47915
|
};
|
|
47898
|
-
const getItemsInside = (value) => {
|
|
47916
|
+
const getItemsInside$1 = (value) => {
|
|
47899
47917
|
if (!Array.isArray(value)) {
|
|
47900
47918
|
return { error: "Value on jsonPath is not an array" };
|
|
47901
47919
|
}
|
|
@@ -47924,7 +47942,9 @@ const Tolerations = ({
|
|
|
47924
47942
|
notificationSuccessMessageDescription,
|
|
47925
47943
|
modalTitle,
|
|
47926
47944
|
modalDescriptionText,
|
|
47945
|
+
modalDescriptionTextStyle,
|
|
47927
47946
|
inputLabel,
|
|
47947
|
+
inputLabelStyle,
|
|
47928
47948
|
containerStyle,
|
|
47929
47949
|
endpoint,
|
|
47930
47950
|
pathToValue,
|
|
@@ -47954,7 +47974,7 @@ const Tolerations = ({
|
|
|
47954
47974
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: containerStyle, children: errorText });
|
|
47955
47975
|
}
|
|
47956
47976
|
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToArray}`);
|
|
47957
|
-
const { counter, tolerations, error: errorArrayOfObjects } = getItemsInside(anythingForNow);
|
|
47977
|
+
const { counter, tolerations, error: errorArrayOfObjects } = getItemsInside$1(anythingForNow);
|
|
47958
47978
|
const notificationSuccessMessagePrepared = notificationSuccessMessage ? parseAll({
|
|
47959
47979
|
text: notificationSuccessMessage,
|
|
47960
47980
|
replaceValues,
|
|
@@ -47997,7 +48017,7 @@ const Tolerations = ({
|
|
|
47997
48017
|
] }) }),
|
|
47998
48018
|
contextHolder,
|
|
47999
48019
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48000
|
-
EditModal,
|
|
48020
|
+
EditModal$1,
|
|
48001
48021
|
{
|
|
48002
48022
|
open,
|
|
48003
48023
|
close: () => setOpen(false),
|
|
@@ -48009,7 +48029,9 @@ const Tolerations = ({
|
|
|
48009
48029
|
endpoint: endpointPrepared,
|
|
48010
48030
|
pathToValue: pathToValuePrepared,
|
|
48011
48031
|
editModalWidth,
|
|
48012
|
-
cols
|
|
48032
|
+
cols,
|
|
48033
|
+
modalDescriptionTextStyle,
|
|
48034
|
+
inputLabelStyle
|
|
48013
48035
|
}
|
|
48014
48036
|
)
|
|
48015
48037
|
] });
|
|
@@ -48037,7 +48059,7 @@ const Tolerations = ({
|
|
|
48037
48059
|
] }),
|
|
48038
48060
|
contextHolder,
|
|
48039
48061
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48040
|
-
EditModal,
|
|
48062
|
+
EditModal$1,
|
|
48041
48063
|
{
|
|
48042
48064
|
open,
|
|
48043
48065
|
close: () => setOpen(false),
|
|
@@ -48049,7 +48071,290 @@ const Tolerations = ({
|
|
|
48049
48071
|
endpoint: endpointPrepared,
|
|
48050
48072
|
pathToValue: pathToValuePrepared,
|
|
48051
48073
|
editModalWidth,
|
|
48052
|
-
cols
|
|
48074
|
+
cols,
|
|
48075
|
+
modalDescriptionTextStyle,
|
|
48076
|
+
inputLabelStyle
|
|
48077
|
+
}
|
|
48078
|
+
)
|
|
48079
|
+
] });
|
|
48080
|
+
};
|
|
48081
|
+
|
|
48082
|
+
const ResetedFormList = st(Form.List)`
|
|
48083
|
+
margin-bottom: 8px;
|
|
48084
|
+
`;
|
|
48085
|
+
const Styled = {
|
|
48086
|
+
ResetedFormList
|
|
48087
|
+
};
|
|
48088
|
+
|
|
48089
|
+
const EditModal = ({
|
|
48090
|
+
open,
|
|
48091
|
+
close,
|
|
48092
|
+
values,
|
|
48093
|
+
openNotificationSuccess,
|
|
48094
|
+
modalTitle,
|
|
48095
|
+
modalDescriptionText,
|
|
48096
|
+
inputLabel,
|
|
48097
|
+
endpoint,
|
|
48098
|
+
pathToValue,
|
|
48099
|
+
editModalWidth,
|
|
48100
|
+
cols,
|
|
48101
|
+
modalDescriptionTextStyle,
|
|
48102
|
+
inputLabelStyle
|
|
48103
|
+
}) => {
|
|
48104
|
+
const queryClient = useQueryClient();
|
|
48105
|
+
const [error, setError] = useState();
|
|
48106
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
48107
|
+
const [form] = Form.useForm();
|
|
48108
|
+
const annotations = Form.useWatch("annotations", form);
|
|
48109
|
+
useEffect(() => {
|
|
48110
|
+
if (open) {
|
|
48111
|
+
form.setFieldsValue({
|
|
48112
|
+
annotations: values ? Object.entries(values).map(([key, value]) => ({
|
|
48113
|
+
key,
|
|
48114
|
+
value
|
|
48115
|
+
})) : []
|
|
48116
|
+
});
|
|
48117
|
+
}
|
|
48118
|
+
}, [open, form]);
|
|
48119
|
+
const submit = () => {
|
|
48120
|
+
form.validateFields().then(() => {
|
|
48121
|
+
const result = {};
|
|
48122
|
+
annotations.forEach(({ key, value }) => {
|
|
48123
|
+
result[key] = value || "";
|
|
48124
|
+
});
|
|
48125
|
+
console.log(JSON.stringify(result));
|
|
48126
|
+
setIsLoading(true);
|
|
48127
|
+
setError(void 0);
|
|
48128
|
+
patchEntryWithReplaceOp({ endpoint, pathToValue, body: result }).then(() => {
|
|
48129
|
+
queryClient.invalidateQueries({ queryKey: ["multi"] });
|
|
48130
|
+
if (openNotificationSuccess) {
|
|
48131
|
+
openNotificationSuccess();
|
|
48132
|
+
}
|
|
48133
|
+
setIsLoading(false);
|
|
48134
|
+
setError(void 0);
|
|
48135
|
+
close();
|
|
48136
|
+
}).catch((error2) => {
|
|
48137
|
+
setIsLoading(false);
|
|
48138
|
+
setError(error2);
|
|
48139
|
+
});
|
|
48140
|
+
}).catch(() => console.log("Validating error"));
|
|
48141
|
+
};
|
|
48142
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
48143
|
+
Modal,
|
|
48144
|
+
{
|
|
48145
|
+
title: modalTitle,
|
|
48146
|
+
open,
|
|
48147
|
+
onOk: () => submit(),
|
|
48148
|
+
onCancel: () => {
|
|
48149
|
+
close();
|
|
48150
|
+
form.resetFields();
|
|
48151
|
+
setIsLoading(false);
|
|
48152
|
+
setError(void 0);
|
|
48153
|
+
},
|
|
48154
|
+
okText: "Save",
|
|
48155
|
+
confirmLoading: isLoading,
|
|
48156
|
+
maskClosable: false,
|
|
48157
|
+
width: editModalWidth || 520,
|
|
48158
|
+
destroyOnHidden: true,
|
|
48159
|
+
centered: true,
|
|
48160
|
+
children: [
|
|
48161
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message: "Error while submitting", description: error?.response?.data?.message }),
|
|
48162
|
+
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
48163
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
48164
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
48165
|
+
] }),
|
|
48166
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Form, { form, children: [
|
|
48167
|
+
inputLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomSizeTitle, { $designNewLayout: true, style: inputLabelStyle, children: inputLabel }),
|
|
48168
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
48169
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
48170
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Key" }) }),
|
|
48171
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[1], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Value" }) }),
|
|
48172
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
|
|
48173
|
+
] }),
|
|
48174
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
|
|
48175
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
48176
|
+
fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
|
|
48177
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48178
|
+
ResetedFormItem,
|
|
48179
|
+
{
|
|
48180
|
+
...restField,
|
|
48181
|
+
name: [name, "key"],
|
|
48182
|
+
rules: [{ required: true, message: "Key is required" }],
|
|
48183
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { placeholder: "key" })
|
|
48184
|
+
}
|
|
48185
|
+
) }),
|
|
48186
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[1], children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResetedFormItem, { ...restField, name: [name, "value"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { placeholder: "value" }) }) }),
|
|
48187
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: () => remove(name), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) }) })
|
|
48188
|
+
] }, key)),
|
|
48189
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ResetedFormItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "text", size: "small", onClick: () => add(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusIcon, {}) }) })
|
|
48190
|
+
] }) })
|
|
48191
|
+
] })
|
|
48192
|
+
]
|
|
48193
|
+
}
|
|
48194
|
+
);
|
|
48195
|
+
};
|
|
48196
|
+
|
|
48197
|
+
const isObject = (x) => typeof x === "object" && x !== null;
|
|
48198
|
+
const isPlainObject = (x) => isObject(x) && !Array.isArray(x) && (Object.getPrototypeOf(x) === Object.prototype || Object.getPrototypeOf(x) === null);
|
|
48199
|
+
const isString = (v) => typeof v === "string";
|
|
48200
|
+
const isStringNumberRecord = (x) => isPlainObject(x) && Object.values(x).every(isString);
|
|
48201
|
+
const getItemsInside = (value) => {
|
|
48202
|
+
if (!Array.isArray(value)) {
|
|
48203
|
+
return { error: "Value on jsonPath is not an array" };
|
|
48204
|
+
}
|
|
48205
|
+
if (typeof value[0] !== "object" || value[0] === null) {
|
|
48206
|
+
return { counter: 0, annotations: isStringNumberRecord(value[0]) ? value[0] : void 0 };
|
|
48207
|
+
}
|
|
48208
|
+
return { counter: Object.keys(value[0]).length, annotations: isStringNumberRecord(value[0]) ? value[0] : void 0 };
|
|
48209
|
+
};
|
|
48210
|
+
|
|
48211
|
+
const Annotations = ({
|
|
48212
|
+
data,
|
|
48213
|
+
children
|
|
48214
|
+
}) => {
|
|
48215
|
+
const {
|
|
48216
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48217
|
+
id,
|
|
48218
|
+
reqIndex,
|
|
48219
|
+
jsonPathToObj,
|
|
48220
|
+
text,
|
|
48221
|
+
errorText,
|
|
48222
|
+
notificationSuccessMessage,
|
|
48223
|
+
notificationSuccessMessageDescription,
|
|
48224
|
+
modalTitle,
|
|
48225
|
+
modalDescriptionText,
|
|
48226
|
+
modalDescriptionTextStyle,
|
|
48227
|
+
inputLabel,
|
|
48228
|
+
inputLabelStyle,
|
|
48229
|
+
containerStyle,
|
|
48230
|
+
endpoint,
|
|
48231
|
+
pathToValue,
|
|
48232
|
+
editModalWidth,
|
|
48233
|
+
cols
|
|
48234
|
+
} = data;
|
|
48235
|
+
const [api, contextHolder] = notification.useNotification();
|
|
48236
|
+
const [open, setOpen] = useState(false);
|
|
48237
|
+
const { data: multiQueryData, isLoading: isMultiQueryLoading, isError: isMultiQueryErrors, errors } = useMultiQuery();
|
|
48238
|
+
const partsOfUrl = usePartsOfUrl();
|
|
48239
|
+
if (isMultiQueryLoading) {
|
|
48240
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
48241
|
+
}
|
|
48242
|
+
if (isMultiQueryErrors) {
|
|
48243
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
48244
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: "Errors:" }),
|
|
48245
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errors.map((e, i) => e && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: e.message }, i)) })
|
|
48246
|
+
] });
|
|
48247
|
+
}
|
|
48248
|
+
const replaceValues = partsOfUrl.partsOfUrl.reduce((acc, value, index) => {
|
|
48249
|
+
acc[index.toString()] = value;
|
|
48250
|
+
return acc;
|
|
48251
|
+
}, {});
|
|
48252
|
+
const jsonRoot = multiQueryData[`req${reqIndex}`];
|
|
48253
|
+
if (jsonRoot === void 0) {
|
|
48254
|
+
console.log("Item Counter: ${id}: No root for json path");
|
|
48255
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: containerStyle, children: errorText });
|
|
48256
|
+
}
|
|
48257
|
+
const anythingForNow = jp.query(jsonRoot, `$${jsonPathToObj}`);
|
|
48258
|
+
const { counter, annotations, error: errorArrayOfObjects } = getItemsInside(anythingForNow);
|
|
48259
|
+
const notificationSuccessMessagePrepared = notificationSuccessMessage ? parseAll({
|
|
48260
|
+
text: notificationSuccessMessage,
|
|
48261
|
+
replaceValues,
|
|
48262
|
+
multiQueryData
|
|
48263
|
+
}) : "Success";
|
|
48264
|
+
const notificationSuccessMessageDescriptionPrepared = notificationSuccessMessageDescription ? parseAll({
|
|
48265
|
+
text: notificationSuccessMessageDescription,
|
|
48266
|
+
replaceValues,
|
|
48267
|
+
multiQueryData
|
|
48268
|
+
}) : "Success";
|
|
48269
|
+
const modalTitlePrepared = modalTitle ? parseAll({ text: modalTitle, replaceValues, multiQueryData }) : "Edit";
|
|
48270
|
+
const modalDescriptionTextPrepared = modalDescriptionText ? parseAll({ text: modalDescriptionText, replaceValues, multiQueryData }) : void 0;
|
|
48271
|
+
const inputLabelPrepared = inputLabel ? parseAll({ text: inputLabel, replaceValues, multiQueryData }) : void 0;
|
|
48272
|
+
const endpointPrepared = endpoint ? parseAll({ text: endpoint, replaceValues, multiQueryData }) : "no-endpoint-provided";
|
|
48273
|
+
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
48274
|
+
const openNotificationSuccess = () => {
|
|
48275
|
+
api.success({
|
|
48276
|
+
message: notificationSuccessMessagePrepared,
|
|
48277
|
+
description: notificationSuccessMessageDescriptionPrepared,
|
|
48278
|
+
placement: "bottomRight"
|
|
48279
|
+
});
|
|
48280
|
+
};
|
|
48281
|
+
if (errorArrayOfObjects) {
|
|
48282
|
+
console.log(`Item Counter: ${id}: ${errorArrayOfObjects}`);
|
|
48283
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
48284
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: containerStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
48285
|
+
errorText,
|
|
48286
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48287
|
+
Button,
|
|
48288
|
+
{
|
|
48289
|
+
type: "text",
|
|
48290
|
+
size: "small",
|
|
48291
|
+
onClick: (e) => {
|
|
48292
|
+
e.stopPropagation();
|
|
48293
|
+
setOpen(true);
|
|
48294
|
+
},
|
|
48295
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {})
|
|
48296
|
+
}
|
|
48297
|
+
)
|
|
48298
|
+
] }) }),
|
|
48299
|
+
contextHolder,
|
|
48300
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48301
|
+
EditModal,
|
|
48302
|
+
{
|
|
48303
|
+
open,
|
|
48304
|
+
close: () => setOpen(false),
|
|
48305
|
+
values: annotations,
|
|
48306
|
+
openNotificationSuccess,
|
|
48307
|
+
modalTitle: modalTitlePrepared,
|
|
48308
|
+
modalDescriptionText: modalDescriptionTextPrepared,
|
|
48309
|
+
inputLabel: inputLabelPrepared,
|
|
48310
|
+
endpoint: endpointPrepared,
|
|
48311
|
+
pathToValue: pathToValuePrepared,
|
|
48312
|
+
editModalWidth,
|
|
48313
|
+
cols,
|
|
48314
|
+
modalDescriptionTextStyle,
|
|
48315
|
+
inputLabelStyle
|
|
48316
|
+
}
|
|
48317
|
+
)
|
|
48318
|
+
] });
|
|
48319
|
+
}
|
|
48320
|
+
const parsedText = parseAll({ text, replaceValues, multiQueryData });
|
|
48321
|
+
const parsedTextWithCounter = parsedText.replace("~counter~", String(counter || 0));
|
|
48322
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
48323
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
48324
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
48325
|
+
parsedTextWithCounter,
|
|
48326
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48327
|
+
Button,
|
|
48328
|
+
{
|
|
48329
|
+
type: "text",
|
|
48330
|
+
size: "small",
|
|
48331
|
+
onClick: (e) => {
|
|
48332
|
+
e.stopPropagation();
|
|
48333
|
+
setOpen(true);
|
|
48334
|
+
},
|
|
48335
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {})
|
|
48336
|
+
}
|
|
48337
|
+
)
|
|
48338
|
+
] }),
|
|
48339
|
+
children
|
|
48340
|
+
] }),
|
|
48341
|
+
contextHolder,
|
|
48342
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
48343
|
+
EditModal,
|
|
48344
|
+
{
|
|
48345
|
+
open,
|
|
48346
|
+
close: () => setOpen(false),
|
|
48347
|
+
values: annotations,
|
|
48348
|
+
openNotificationSuccess,
|
|
48349
|
+
modalTitle: modalTitlePrepared,
|
|
48350
|
+
modalDescriptionText: modalDescriptionTextPrepared,
|
|
48351
|
+
inputLabel: inputLabelPrepared,
|
|
48352
|
+
endpoint: endpointPrepared,
|
|
48353
|
+
pathToValue: pathToValuePrepared,
|
|
48354
|
+
editModalWidth,
|
|
48355
|
+
cols,
|
|
48356
|
+
modalDescriptionTextStyle,
|
|
48357
|
+
inputLabelStyle
|
|
48053
48358
|
}
|
|
48054
48359
|
)
|
|
48055
48360
|
] });
|
|
@@ -48086,7 +48391,8 @@ const DynamicComponents = {
|
|
|
48086
48391
|
LabelsToSearchParams,
|
|
48087
48392
|
KeyCounter,
|
|
48088
48393
|
Taints,
|
|
48089
|
-
Tolerations
|
|
48394
|
+
Tolerations,
|
|
48395
|
+
Annotations
|
|
48090
48396
|
};
|
|
48091
48397
|
|
|
48092
48398
|
const prepareUrlsToFetchForDynamicRenderer = ({
|