@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.15 → 1.4.0-alpha.16

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 (89) hide show
  1. package/dist/{index-mwV-HNIP.mjs → index-Cc-4YPOA.mjs} +37 -3
  2. package/dist/{index-mwV-HNIP.mjs.map → index-Cc-4YPOA.mjs.map} +1 -1
  3. package/dist/{index-_-34pI9_.mjs → index-Drku3xGg.mjs} +2 -2
  4. package/dist/{index-_-34pI9_.mjs.map → index-Drku3xGg.mjs.map} +1 -1
  5. package/dist/openapi-k8s-toolkit.es.js +1 -1
  6. package/dist/openapi-k8s-toolkit.umd.js +35 -1
  7. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  8. package/dist/types/api/bff/plugins/getPlugins.d.ts +1 -1
  9. package/dist/types/api/bff/scopes/checkScopes.d.ts +1 -1
  10. package/dist/types/api/bff/scopes/filterScopes.d.ts +2 -2
  11. package/dist/types/api/bff/search/getKinds.d.ts +1 -1
  12. package/dist/types/api/bff/swagger/getSwagger.d.ts +1 -1
  13. package/dist/types/api/getClusterList.d.ts +1 -1
  14. package/dist/types/api/permissions.d.ts +1 -1
  15. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +1 -1
  16. package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +1 -1
  17. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +1 -1
  18. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/utils.d.ts +1 -1
  19. package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +1 -1
  20. package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/FormArrayHeader.d.ts +1 -1
  21. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -1
  22. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +1 -1
  23. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/FormInlineYamlEditor.d.ts +1 -1
  24. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -2
  25. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +1 -1
  26. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +1 -1
  27. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +1 -1
  28. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.test.d.ts +1 -0
  29. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +2 -2
  30. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +1 -1
  31. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +1 -1
  32. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +1 -1
  33. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +1 -1
  34. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +1 -1
  35. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
  36. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +1 -1
  37. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.d.ts +1 -1
  38. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/hiddenExpanded.d.ts +1 -1
  39. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +2 -2
  40. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.d.ts +1 -1
  41. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +2 -2
  42. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +1 -1
  43. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +2 -2
  44. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  45. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +2 -2
  46. package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +1 -1
  47. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
  48. package/dist/types/components/molecules/Search/Search.d.ts +1 -1
  49. package/dist/types/components/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
  50. package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +1 -1
  51. package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/ActionsDropdown.test.d.ts +1 -0
  52. package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/dropdownPlacement.d.ts +12 -0
  53. package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/dropdownPlacement.test.d.ts +1 -0
  54. package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/permissionsMap.d.ts +1 -1
  55. package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/helpers.d.ts +1 -1
  56. package/dist/types/components/organisms/DynamicComponents/molecules/UsageGraphCard/atoms/FormattedValue/utils.d.ts +2 -2
  57. package/dist/types/components/organisms/DynamicComponents/types/ContentCard.d.ts +1 -1
  58. package/dist/types/components/organisms/DynamicComponents/types/ConverterBytes.d.ts +1 -1
  59. package/dist/types/components/organisms/DynamicComponents/types/ConverterCores.d.ts +1 -1
  60. package/dist/types/components/organisms/DynamicComponents/types/EnrichedTable.d.ts +1 -1
  61. package/dist/types/components/organisms/DynamicComponents/types/PrometheusGraph.d.ts +1 -1
  62. package/dist/types/components/organisms/DynamicComponents/types/SidebarProvider.d.ts +1 -1
  63. package/dist/types/components/organisms/DynamicComponents/types/Spacer.d.ts +1 -1
  64. package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +1 -1
  65. package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +2 -2
  66. package/dist/types/components/organisms/DynamicRendererWithProviders/providers/hybridDataProvider/hybridDataProvider.d.ts +1 -1
  67. package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiK8sProvider/multiK8sProvider.d.ts +1 -1
  68. package/dist/types/hooks/useApiResource.d.ts +1 -1
  69. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +1 -1
  70. package/dist/types/hooks/useCrdResource.d.ts +1 -1
  71. package/dist/types/hooks/useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts +1 -1
  72. package/dist/types/hooks/useListThenWatch/reducer.d.ts +1 -1
  73. package/dist/types/hooks/useListThenWatch/types.d.ts +1 -1
  74. package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -1
  75. package/dist/types/hooks/useListThenWatch/utils.d.ts +1 -1
  76. package/dist/types/hooks/usePermissions.d.ts +1 -1
  77. package/dist/types/localTypes/bff/table.d.ts +1 -1
  78. package/dist/types/localTypes/dynamicRender.d.ts +1 -1
  79. package/dist/types/localTypes/search.d.ts +1 -1
  80. package/dist/types/utils/converterBytes/converterBytes.d.ts +1 -1
  81. package/dist/types/utils/converterCores/converterCores.d.ts +1 -1
  82. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +1 -1
  83. package/dist/types/utils/getSortedKinds/getSortedKinds.d.ts +2 -2
  84. package/dist/types/utils/getSortedKindsAll/getSortedKindsAll.d.ts +2 -2
  85. package/dist/types/utils/getStringByName/getStringByName.d.ts +1 -1
  86. package/dist/types/utils/kindByGvr/kindByGvr.d.ts +1 -1
  87. package/dist/types/utils/namespacedByGvr/namespacedByGvr.d.ts +1 -1
  88. package/dist/types/utils/pluralByKind/pluralByKind.d.ts +1 -1
  89. package/package.json +1 -1
@@ -78596,7 +78596,7 @@ const TolerationsModal = ({
78596
78596
  };
78597
78597
 
78598
78598
  const LazyEnrichedTableModal = lazy(
78599
- () => import('./index-_-34pI9_.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
78599
+ () => import('./index-Drku3xGg.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
78600
78600
  );
78601
78601
  const renderActiveType = (activeType, extraProps) => {
78602
78602
  if (!activeType) return null;
@@ -83904,12 +83904,45 @@ const FormObjectFromSwagger = ({
83904
83904
  onRemoveByMinus
83905
83905
  }) => {
83906
83906
  const designNewLayout = useDesignNewLayout();
83907
+ const form = Form.useFormInstance();
83907
83908
  const [additionalPropValue, setAddditionalPropValue] = useState();
83909
+ const focusFieldInput = (path) => {
83910
+ if (typeof window === "undefined" || typeof document === "undefined") {
83911
+ return;
83912
+ }
83913
+ const tryFocus = (attempt = 0) => {
83914
+ const fieldInstance = form.getFieldInstance(path);
83915
+ if (fieldInstance && typeof fieldInstance.focus === "function") {
83916
+ fieldInstance.focus();
83917
+ return;
83918
+ }
83919
+ const tokens = Array.isArray(path) ? path.map(String) : [String(path)];
83920
+ const fieldId = tokens.join("_");
83921
+ const byId = document.getElementById(fieldId);
83922
+ if (byId && typeof byId.focus === "function") {
83923
+ const focusableById = byId;
83924
+ focusableById.focus();
83925
+ return;
83926
+ }
83927
+ const byIdSuffix = document.querySelector(`[id$="${fieldId}"]`);
83928
+ if (byIdSuffix && typeof byIdSuffix.focus === "function") {
83929
+ const focusableBySuffix = byIdSuffix;
83930
+ focusableBySuffix.focus();
83931
+ return;
83932
+ }
83933
+ if (attempt < 5) {
83934
+ window.requestAnimationFrame(() => tryFocus(attempt + 1));
83935
+ }
83936
+ };
83937
+ window.requestAnimationFrame(() => tryFocus());
83938
+ };
83908
83939
  const additionalPropCreate = () => {
83909
83940
  if (additionalPropValue && additionalPropValue.length > 0) {
83910
83941
  const addProps = inputProps?.additionalProperties;
83942
+ const path = Array.isArray(name) ? [...name, String(collapseTitle)] : [name, String(collapseTitle)];
83943
+ const newFieldPath = [...path, additionalPropValue];
83911
83944
  inputProps?.addField({
83912
- path: Array.isArray(name) ? [...name, String(collapseTitle)] : [name, String(collapseTitle)],
83945
+ path,
83913
83946
  name: additionalPropValue,
83914
83947
  type: addProps.type,
83915
83948
  items: addProps.items,
@@ -83917,6 +83950,7 @@ const FormObjectFromSwagger = ({
83917
83950
  required: addProps.required
83918
83951
  });
83919
83952
  setAddditionalPropValue(void 0);
83953
+ focusFieldInput(newFieldPath);
83920
83954
  }
83921
83955
  };
83922
83956
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -90771,4 +90805,4 @@ const usePluginManifest = ({
90771
90805
  };
90772
90806
 
90773
90807
  export { useInfiniteSentinel as $, getBuiltinResourceTypes as A, getCrdData as B, getDirectUnknownResource as C, DeleteIcon as D, EnrichedTableProvider as E, checkPermission as F, getSwagger as G, filterIfApiInstanceNamespaceScoped as H, filterIfBuiltInInstanceNamespaceScoped as I, checkIfApiInstanceNamespaceScoped as J, checkIfBuiltInInstanceNamespaceScoped as K, getKinds as L, useClusterList as M, useApiResources as N, useApiResourceSingle as O, PaddingContainer as P, useBuiltinResources as Q, ReadOnlyModal as R, useBuiltinResourceSingle as S, useCrdResources as T, useCrdResourceSingle as U, useApisResourceTypes as V, useApiResourceTypesByGroup as W, useBuiltinResourceTypes as X, useCrdData as Y, useListWatch as Z, _$1 as _, useTheme as a, parseQuotaValueCpu as a$, useK8sVerbs as a0, useManyK8sSmartResource as a1, useSmartResourceParams as a2, useResourceScope as a3, useKinds as a4, usePluginManifest as a5, Spacer$1 as a6, TreeWithSearch as a7, ConfirmModal as a8, UpIcon as a9, EnrichedTable as aA, ClusterListTable as aB, getEnrichedColumns as aC, getEnrichedColumnsWithControls as aD, YamlEditorSingleton$1 as aE, BlackholeFormProvider as aF, BlackholeForm as aG, getObjectFormItemsDraft as aH, MarketPlace as aI, MarketplaceCard as aJ, ProjectInfoCard as aK, PodTerminal as aL, NodeTerminal as aM, PodLogs as aN, PodLogsMonaco as aO, VMVNC as aP, Search as aQ, Events as aR, DynamicRenderer as aS, DynamicComponents as aT, DynamicRendererWithProviders as aU, prepareTemplate as aV, isFlatObject as aW, filterSelectOptions as aX, getStringByName as aY, floorToDecimal as aZ, parseQuotaValue as a_, DownIcon as aa, BackToDefaultIcon as ab, SuccessIcon as ac, feedbackIcons as ad, PlusIcon as ae, MinusIcon as af, LockedIcon as ag, UnlockedIcon as ah, PauseCircleIcon as ai, ResumeCircleIcon as aj, LookingGlassIcon as ak, EarthIcon as al, ContentCard$1 as am, FlexGrow as an, UncontrolledSelect as ao, CustomSelect$4 as ap, CursorPointerTag as aq, CursorPointerTagMinContent as ar, CursorDefaultDiv as as, ResourceLink as at, ManageableBreadcrumbsProvider as au, prepareDataForManageableBreadcrumbs as av, ManageableBreadcrumbs as aw, ManageableSidebarProvider as ax, prepareDataForManageableSidebar as ay, ManageableSidebar as az, usePartsOfUrl as b, parseQuotaValueMemoryAndStorage as b0, normalizeValuesForQuotasToNumber as b1, getAllPathsFromObj as b2, getPrefixSubarrays as b3, groupsToTreeData as b4, getBuiltinTreeData as b5, getGroupsByCategory as b6, createContextFactory as b7, prepareUrlsToFetchForDynamicRenderer as b8, deepMerge as b9, getSortedKinds as ba, getSortedKindsAll as bb, hslFromString as bc, getUppercase as bd, kindByGvr as be, pluralByKind as bf, namespacedByGvr as bg, getLinkToBuiltinForm as bh, getLinkToApiForm as bi, isMultilineString as bj, isMultilineFromYaml as bk, includesArray as bl, getResourceLink as bm, getNamespaceLink as bn, convertBytes as bo, formatBytesAuto as bp, toBytes as bq, convertStorage as br, parseValueWithUnit as bs, convertCores as bt, formatCoresAuto as bu, toCores as bv, convertCompute as bw, parseCoresWithUnit as bx, formatDateAuto as by, isValidRFC3339 as bz, usePermissions as c, useDirectUnknownResource as d, useK8sSmartResource as e, jsxRuntimeExports as f, EditIcon as g, getLinkToForm as h, DeleteModal as i, jp as j, DeleteModalMany as k, getClusterList as l, createNewEntry as m, updateEntry as n, deleteEntry as o, parseAll as p, getApiResources as q, getApiResourceSingle as r, serializeLabelsWithNoEncoding$1 as s, getBuiltinResources as t, useMultiQuery as u, getBuiltinResourceSingle as v, getCrdResources as w, getCrdResourceSingle as x, getApiResourceTypes as y, getApiResourceTypesByApiGroup as z };
90774
- //# sourceMappingURL=index-mwV-HNIP.mjs.map
90808
+ //# sourceMappingURL=index-Cc-4YPOA.mjs.map