@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.20 → 0.0.1-alpha.22

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.
Files changed (42) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +17 -7
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +87 -87
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/api/getClusterList.d.ts +1 -1
  6. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +1 -1
  7. package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +1 -1
  8. package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +1 -1
  9. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -1
  10. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +1 -1
  11. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -2
  12. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +1 -1
  13. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +1 -1
  14. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +2 -2
  15. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +1 -1
  16. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +1 -1
  17. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +1 -1
  18. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
  19. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
  20. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/guards.d.ts +1 -1
  21. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +2 -2
  22. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +3 -3
  23. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/guards.d.ts +1 -1
  24. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/helpers.d.ts +1 -1
  25. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/utils.d.ts +2 -2
  26. package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +1 -1
  27. package/dist/types/components/molecules/EnrichedTable/utils.d.ts +1 -1
  28. package/dist/types/components/molecules/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  29. package/dist/types/components/molecules/EnrichedTableProvider/utils.d.ts +2 -2
  30. package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +1 -1
  31. package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +1 -1
  32. package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +1 -1
  33. package/dist/types/hooks/useApiResource.d.ts +1 -1
  34. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +1 -1
  35. package/dist/types/hooks/useCrdResource.d.ts +1 -1
  36. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +1 -1
  37. package/dist/types/utils/getStringByName/getStringByName.d.ts +1 -1
  38. package/dist/types/utils/parseColumnsOverrides/guards.d.ts +1 -1
  39. package/dist/types/utils/parseColumnsOverrides/parseColumnsOverrides.d.ts +2 -2
  40. package/dist/types/utils/prepareTableMappings/prepareTableMappings.d.ts +1 -1
  41. package/dist/types/utils/removeEmptyFormValues/removeEmptyFormValues.d.ts +1 -1
  42. package/package.json +2 -2
@@ -12037,22 +12037,32 @@ const KO = (e, t) => {
12037
12037
  }, Og = (e) => {
12038
12038
  if (typeof e == "string") {
12039
12039
  let t = parseFloat(e.replace(/[a-zA-Zа-яА-Я]/g, ""));
12040
- if (e.endsWith("m"))
12041
- t /= 1e3;
12042
- else if (e.endsWith("k"))
12040
+ if (e.endsWith("k"))
12043
12041
  t /= 1e6;
12042
+ else if (e.endsWith("m"))
12043
+ t /= 1e3;
12044
12044
  else if (e.endsWith("M"))
12045
12045
  t /= 1e3;
12046
12046
  else if (e.endsWith("G"))
12047
12047
  t /= 1;
12048
12048
  else if (e.endsWith("T"))
12049
12049
  t *= 1e3;
12050
+ else if (e.endsWith("P"))
12051
+ t *= 1e6;
12052
+ else if (e.endsWith("E"))
12053
+ t *= 1e9;
12050
12054
  else if (e.endsWith("Ki"))
12051
- t /= 1024, t /= 1e6;
12055
+ t *= 1024 / 1e9;
12052
12056
  else if (e.endsWith("Mi"))
12053
- t /= 1e3, t /= 1e3;
12054
- else if (/^\d+(\.\d+)?$/.test(e))
12055
- t /= 1e9;
12057
+ t /= 1048.576;
12058
+ else if (e.endsWith("Gi"))
12059
+ t *= 1.073741824;
12060
+ else if (e.endsWith("Ti"))
12061
+ t *= 1.099511628;
12062
+ else if (e.endsWith("Pi"))
12063
+ t *= 1.125899907;
12064
+ else if (e.endsWith("Ei"))
12065
+ t *= 1.152921505;
12056
12066
  else
12057
12067
  throw new Error("Invalid value");
12058
12068
  return za(t, 1);