@prorobotech/openapi-k8s-toolkit 1.2.0-alpha.16 → 1.2.0-alpha.17
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 +14 -5
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +14 -5
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +2 -1
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -35111,6 +35111,7 @@
|
|
|
35111
35111
|
k8sResource,
|
|
35112
35112
|
dataForControls,
|
|
35113
35113
|
baseprefix,
|
|
35114
|
+
pathToKey,
|
|
35114
35115
|
...props
|
|
35115
35116
|
} = data;
|
|
35116
35117
|
const theme = useTheme();
|
|
@@ -35276,6 +35277,7 @@
|
|
|
35276
35277
|
dataForControls: dataForControlsPrepared,
|
|
35277
35278
|
withoutControls: !dataForControlsPrepared,
|
|
35278
35279
|
baseprefix,
|
|
35280
|
+
pathToKey,
|
|
35279
35281
|
...props
|
|
35280
35282
|
}
|
|
35281
35283
|
),
|
|
@@ -77298,6 +77300,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
77298
77300
|
|
|
77299
77301
|
const prepare = ({
|
|
77300
77302
|
dataItems,
|
|
77303
|
+
pathToKey,
|
|
77301
77304
|
resourceSchema,
|
|
77302
77305
|
dataForControls,
|
|
77303
77306
|
additionalPrinterColumns
|
|
@@ -77368,13 +77371,15 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
77368
77371
|
onDeleteHandle: dataForControls.onDeleteHandle,
|
|
77369
77372
|
permissions: dataForControls.permissions
|
|
77370
77373
|
};
|
|
77374
|
+
const key2 = pathToKey ? jp.query(el, `$${pathToKey}`)[0] : `${el.metadata.name}${el.metadata.namespace ? `-${el.metadata.namespace}` : ""}`;
|
|
77371
77375
|
return {
|
|
77372
|
-
key:
|
|
77376
|
+
key: key2,
|
|
77373
77377
|
...el,
|
|
77374
77378
|
internalDataForControls
|
|
77375
77379
|
};
|
|
77376
77380
|
}
|
|
77377
|
-
|
|
77381
|
+
const key = pathToKey ? jp.query(el, `$${pathToKey}`)[0] : JSON.stringify(el);
|
|
77382
|
+
return { key, ...el };
|
|
77378
77383
|
}
|
|
77379
77384
|
return {};
|
|
77380
77385
|
});
|
|
@@ -77451,13 +77456,15 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
77451
77456
|
onDeleteHandle: dataForControls.onDeleteHandle,
|
|
77452
77457
|
permissions: dataForControls.permissions
|
|
77453
77458
|
};
|
|
77459
|
+
const key2 = pathToKey ? jp.query(el, `$${pathToKey}`)[0] : `${el.metadata.name}${el.metadata.namespace ? `-${el.metadata.namespace}` : ""}`;
|
|
77454
77460
|
return {
|
|
77455
|
-
key:
|
|
77461
|
+
key: key2,
|
|
77456
77462
|
...el.spec,
|
|
77457
77463
|
internalDataForControls
|
|
77458
77464
|
};
|
|
77459
77465
|
}
|
|
77460
|
-
|
|
77466
|
+
const key = pathToKey ? jp.query(el, `$${pathToKey}`)[0] : JSON.stringify(el.spec);
|
|
77467
|
+
return { key, ...el.spec };
|
|
77461
77468
|
}
|
|
77462
77469
|
return {};
|
|
77463
77470
|
});
|
|
@@ -77482,7 +77489,8 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
77482
77489
|
forceDefaultAdditionalPrinterColumns,
|
|
77483
77490
|
selectData,
|
|
77484
77491
|
tableProps,
|
|
77485
|
-
withoutControls
|
|
77492
|
+
withoutControls,
|
|
77493
|
+
pathToKey
|
|
77486
77494
|
}) => {
|
|
77487
77495
|
const location = reactRouterDom.useLocation();
|
|
77488
77496
|
const [preparedProps, setPreparedProps] = React$1.useState();
|
|
@@ -77545,6 +77553,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
77545
77553
|
const fullPath = `${location.pathname}${location.search}`;
|
|
77546
77554
|
const { dataSource, columns } = prepare({
|
|
77547
77555
|
dataItems,
|
|
77556
|
+
pathToKey,
|
|
77548
77557
|
resourceSchema,
|
|
77549
77558
|
dataForControls: dataForControls ? {
|
|
77550
77559
|
...dataForControls,
|