@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.56 → 0.0.1-alpha.58
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.
|
@@ -45287,8 +45287,18 @@ const EnrichedTable = ({
|
|
|
45287
45287
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45288
45288
|
children
|
|
45289
45289
|
}) => {
|
|
45290
|
-
const { data: multiQueryData } = useMultiQuery();
|
|
45291
|
-
const {
|
|
45290
|
+
const { data: multiQueryData, isLoading: isMultiqueryLoading } = useMultiQuery();
|
|
45291
|
+
const {
|
|
45292
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45293
|
+
id,
|
|
45294
|
+
fetchUrl,
|
|
45295
|
+
pathToItems,
|
|
45296
|
+
clusterNamePartOfUrl,
|
|
45297
|
+
labelsSelector,
|
|
45298
|
+
labelsSelectorFull,
|
|
45299
|
+
fieldSelector,
|
|
45300
|
+
...props
|
|
45301
|
+
} = data;
|
|
45292
45302
|
const theme = useTheme();
|
|
45293
45303
|
const partsOfUrl = usePartsOfUrl();
|
|
45294
45304
|
const replaceValues = partsOfUrl.partsOfUrl.reduce((acc, value, index) => {
|
|
@@ -45313,6 +45323,11 @@ const EnrichedTable = ({
|
|
|
45313
45323
|
const serializedLabels = serializeLabels(parsedObject);
|
|
45314
45324
|
labelsSuffix = serializeLabels.length > 0 ? `?labelSelector=${serializedLabels}` : void 0;
|
|
45315
45325
|
}
|
|
45326
|
+
if (labelsSelectorFull) {
|
|
45327
|
+
const value = _$1.get(multiQueryData[`req${labelsSelectorFull.reqIndex}`], labelsSelectorFull.pathToLabels);
|
|
45328
|
+
const serializedLabels = serializeLabels(value);
|
|
45329
|
+
labelsSuffix = serializeLabels.length > 0 ? `?labelSelector=${serializedLabels}` : void 0;
|
|
45330
|
+
}
|
|
45316
45331
|
let fieldSelectorSuffix;
|
|
45317
45332
|
if (fieldSelector) {
|
|
45318
45333
|
const preparedFieldSelectorValueText = parseMutliqueryText({ text: fieldSelector?.parsedText, multiQueryData });
|
|
@@ -45332,8 +45347,12 @@ const EnrichedTable = ({
|
|
|
45332
45347
|
error: fetchedDataError
|
|
45333
45348
|
} = useDirectUnknownResource({
|
|
45334
45349
|
uri: `${fetchUrlPrepared}${labelsSuffix || ""}${fieldSelectorSuffix || ""}`,
|
|
45335
|
-
queryKey: [fetchUrlPrepared]
|
|
45350
|
+
queryKey: [fetchUrlPrepared],
|
|
45351
|
+
isEnabled: !isMultiqueryLoading
|
|
45336
45352
|
});
|
|
45353
|
+
if (isMultiqueryLoading) {
|
|
45354
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
|
|
45355
|
+
}
|
|
45337
45356
|
if (!fetchedData) {
|
|
45338
45357
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No data has been fetched" });
|
|
45339
45358
|
}
|