@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.116 → 0.0.1-alpha.118
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 +18 -9
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +18 -9
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +2 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -0
- package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -8791,8 +8791,10 @@ const getLabel = ({
|
|
|
8791
8791
|
preparedLink,
|
|
8792
8792
|
label,
|
|
8793
8793
|
key,
|
|
8794
|
-
externalKeys
|
|
8794
|
+
externalKeys,
|
|
8795
|
+
replaceValues
|
|
8795
8796
|
}) => {
|
|
8797
|
+
const preparedLabel = prepareTemplate({ template: label, replaceValues });
|
|
8796
8798
|
if (preparedLink) {
|
|
8797
8799
|
if (externalKeys && externalKeys.includes(key)) {
|
|
8798
8800
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -8804,13 +8806,13 @@ const getLabel = ({
|
|
|
8804
8806
|
const url = preparedLink.startsWith("/") ? `${window.location.origin}${preparedLink}` : preparedLink;
|
|
8805
8807
|
window.open(url);
|
|
8806
8808
|
},
|
|
8807
|
-
children:
|
|
8809
|
+
children: preparedLabel
|
|
8808
8810
|
}
|
|
8809
8811
|
);
|
|
8810
8812
|
}
|
|
8811
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: preparedLink, children:
|
|
8813
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: preparedLink, children: preparedLabel });
|
|
8812
8814
|
}
|
|
8813
|
-
return
|
|
8815
|
+
return preparedLabel;
|
|
8814
8816
|
};
|
|
8815
8817
|
const mapLinksFromRaw = ({
|
|
8816
8818
|
rawLinks,
|
|
@@ -8821,7 +8823,7 @@ const mapLinksFromRaw = ({
|
|
|
8821
8823
|
const preparedLink = link ? prepareTemplate({ template: link, replaceValues }) : void 0;
|
|
8822
8824
|
return {
|
|
8823
8825
|
key,
|
|
8824
|
-
label: getLabel({ preparedLink, label, key, externalKeys }),
|
|
8826
|
+
label: getLabel({ preparedLink, label, key, externalKeys, replaceValues }),
|
|
8825
8827
|
internalMetaLink: preparedLink,
|
|
8826
8828
|
children: children ? mapLinksFromRaw({
|
|
8827
8829
|
rawLinks: children,
|
|
@@ -48316,7 +48318,8 @@ const MarketplaceCard = ({
|
|
|
48316
48318
|
onDeleteClick,
|
|
48317
48319
|
onEditClick,
|
|
48318
48320
|
addedMode,
|
|
48319
|
-
standalone
|
|
48321
|
+
standalone,
|
|
48322
|
+
showZeroResources
|
|
48320
48323
|
}) => {
|
|
48321
48324
|
const { useToken } = theme;
|
|
48322
48325
|
const { token } = useToken();
|
|
@@ -48360,7 +48363,7 @@ const MarketplaceCard = ({
|
|
|
48360
48363
|
refetchInterval: false,
|
|
48361
48364
|
isEnabled: addedMode && listUrl !== void 0
|
|
48362
48365
|
});
|
|
48363
|
-
if (addedMode && (k8sListError || type === "direct")) {
|
|
48366
|
+
if (addedMode && (k8sListError || type === "direct") && !showZeroResources) {
|
|
48364
48367
|
return null;
|
|
48365
48368
|
}
|
|
48366
48369
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -48474,7 +48477,9 @@ const MarketPlace = ({
|
|
|
48474
48477
|
mpResourceName,
|
|
48475
48478
|
mpResourceKind,
|
|
48476
48479
|
baseprefix,
|
|
48477
|
-
standalone
|
|
48480
|
+
standalone,
|
|
48481
|
+
forceAddedMode,
|
|
48482
|
+
showZeroResources
|
|
48478
48483
|
}) => {
|
|
48479
48484
|
const [api, contextHolder] = notification.useNotification();
|
|
48480
48485
|
const [isEditMode, setIsEditMode] = useState(false);
|
|
@@ -48628,7 +48633,9 @@ const MarketPlace = ({
|
|
|
48628
48633
|
onEditClick: () => {
|
|
48629
48634
|
setIsAddEditOpen(marketplacePanels.items.find(({ spec }) => spec.name === name) || false);
|
|
48630
48635
|
},
|
|
48631
|
-
standalone
|
|
48636
|
+
standalone,
|
|
48637
|
+
addedMode: forceAddedMode,
|
|
48638
|
+
showZeroResources
|
|
48632
48639
|
},
|
|
48633
48640
|
name
|
|
48634
48641
|
)
|
|
@@ -48791,6 +48798,7 @@ const ProjectInfoCard = ({
|
|
|
48791
48798
|
projectResourceName,
|
|
48792
48799
|
baseprefix,
|
|
48793
48800
|
accessGroups,
|
|
48801
|
+
showZeroResources,
|
|
48794
48802
|
children
|
|
48795
48803
|
}) => {
|
|
48796
48804
|
const navigate = useNavigate();
|
|
@@ -48881,6 +48889,7 @@ const ProjectInfoCard = ({
|
|
|
48881
48889
|
apiGroup,
|
|
48882
48890
|
apiVersion,
|
|
48883
48891
|
tags,
|
|
48892
|
+
showZeroResources,
|
|
48884
48893
|
addedMode: true
|
|
48885
48894
|
},
|
|
48886
48895
|
name
|