@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.134 → 0.0.1-alpha.136
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 +17 -8
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +17 -8
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +5 -2
- package/dist/types/localTypes/bff/table.d.ts +6 -1
- package/package.json +1 -1
|
@@ -34489,6 +34489,7 @@ const EnrichedTable$1 = ({
|
|
|
34489
34489
|
labelsSelectorFull,
|
|
34490
34490
|
fieldSelector,
|
|
34491
34491
|
namespace,
|
|
34492
|
+
k8sResource,
|
|
34492
34493
|
dataForControls,
|
|
34493
34494
|
baseprefix,
|
|
34494
34495
|
...props
|
|
@@ -34504,6 +34505,12 @@ const EnrichedTable$1 = ({
|
|
|
34504
34505
|
replaceValues
|
|
34505
34506
|
});
|
|
34506
34507
|
const namespacePrepared = namespace ? parseAll({ text: namespace, replaceValues, multiQueryData }) : void 0;
|
|
34508
|
+
const k8sResourcePrePrepared = k8sResource ? {
|
|
34509
|
+
apiGroup: k8sResource.apiGroup ? parseAll({ text: k8sResource.apiGroup, replaceValues, multiQueryData }) : void 0,
|
|
34510
|
+
apiVersion: parseAll({ text: k8sResource.apiVersion, replaceValues, multiQueryData }),
|
|
34511
|
+
resource: parseAll({ text: k8sResource.resource, replaceValues, multiQueryData })
|
|
34512
|
+
} : void 0;
|
|
34513
|
+
const k8sResourcePrepared = k8sResourcePrePrepared?.apiGroup === "-" ? { apiVersion: k8sResourcePrePrepared.apiVersion, resource: k8sResourcePrePrepared.resource } : k8sResourcePrePrepared;
|
|
34507
34514
|
const dataForControlsPrepared = dataForControls ? {
|
|
34508
34515
|
cluster: clusterName,
|
|
34509
34516
|
syntheticProject: dataForControls.syntheticProject ? parseAll({ text: dataForControls.syntheticProject, replaceValues, multiQueryData }) : void 0,
|
|
@@ -34608,6 +34615,7 @@ const EnrichedTable$1 = ({
|
|
|
34608
34615
|
setSelectedRowsData(selectedRowsData2);
|
|
34609
34616
|
}
|
|
34610
34617
|
} : void 0,
|
|
34618
|
+
k8sResource: k8sResourcePrepared,
|
|
34611
34619
|
dataForControlsInternal: { onDeleteHandle },
|
|
34612
34620
|
dataForControls: dataForControlsPrepared,
|
|
34613
34621
|
withoutControls: !dataForControlsPrepared,
|
|
@@ -38504,8 +38512,9 @@ const EnrichedTableProvider = ({
|
|
|
38504
38512
|
baseprefix,
|
|
38505
38513
|
dataItems,
|
|
38506
38514
|
resourceSchema,
|
|
38507
|
-
|
|
38508
|
-
|
|
38515
|
+
k8sResource,
|
|
38516
|
+
// isNamespaced,
|
|
38517
|
+
// isNamespacedLoading,
|
|
38509
38518
|
dataForControls,
|
|
38510
38519
|
dataForControlsInternal,
|
|
38511
38520
|
customizationId,
|
|
@@ -38542,7 +38551,9 @@ const EnrichedTableProvider = ({
|
|
|
38542
38551
|
customizationId,
|
|
38543
38552
|
tableMappingsReplaceValues,
|
|
38544
38553
|
forceDefaultAdditionalPrinterColumns,
|
|
38545
|
-
|
|
38554
|
+
namespace,
|
|
38555
|
+
k8sResource
|
|
38556
|
+
// namespaceScopedWithoutNamespace: isNamespaced && !namespace,
|
|
38546
38557
|
};
|
|
38547
38558
|
axios.post(`/api/clusters/${cluster}/openapi-bff/tables/tablePrepare/prepareTableProps`, payload).then(({ data }) => {
|
|
38548
38559
|
setPreparedProps(data);
|
|
@@ -38557,12 +38568,10 @@ const EnrichedTableProvider = ({
|
|
|
38557
38568
|
customizationId,
|
|
38558
38569
|
tableMappingsReplaceValues,
|
|
38559
38570
|
forceDefaultAdditionalPrinterColumns,
|
|
38560
|
-
|
|
38561
|
-
|
|
38571
|
+
namespace,
|
|
38572
|
+
k8sResource
|
|
38573
|
+
// isNamespaced,
|
|
38562
38574
|
]);
|
|
38563
|
-
if (isNamespacedLoading) {
|
|
38564
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38565
|
-
}
|
|
38566
38575
|
if (!preparedProps && isLoading) {
|
|
38567
38576
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38568
38577
|
}
|