@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.1 → 1.5.0-alpha.11

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 (90) hide show
  1. package/dist/{index-_9cT8fBl.mjs → index-BPDbJet7.mjs} +2 -2
  2. package/dist/{index-_9cT8fBl.mjs.map → index-BPDbJet7.mjs.map} +1 -1
  3. package/dist/{index-BFIWg9xn.mjs → index-C1Lorapd.mjs} +3711 -707
  4. package/dist/index-C1Lorapd.mjs.map +1 -0
  5. package/dist/openapi-k8s-toolkit.es.js +1 -1
  6. package/dist/openapi-k8s-toolkit.umd.js +3708 -702
  7. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  8. package/dist/types/components/atoms/CursorPointerTag/CursorPointerTag.d.ts +33 -7
  9. package/dist/types/components/atoms/CursorPointerTagMinContent/CursorPointerTagMinContent.d.ts +33 -7
  10. package/dist/types/components/atoms/CustomSelect/styled.d.ts +1 -1
  11. package/dist/types/components/atoms/ResourceBadgeAbbr/index.d.ts +1 -0
  12. package/dist/types/components/atoms/ResourceBadgeAbbr/styled.d.ts +7 -0
  13. package/dist/types/components/atoms/UncontrolledSelect/styled.d.ts +1 -1
  14. package/dist/types/components/atoms/index.d.ts +1 -0
  15. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.d.ts +10 -0
  16. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.test.d.ts +1 -0
  17. package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/index.d.ts +1 -0
  18. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.d.ts +6 -0
  19. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.test.d.ts +1 -0
  20. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/index.d.ts +1 -0
  21. package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/styled.d.ts +380 -0
  22. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.d.ts +9 -0
  23. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.test.d.ts +1 -0
  24. package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/index.d.ts +1 -0
  25. package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +6 -7
  26. package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +3 -0
  27. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -0
  28. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.test.d.ts +1 -0
  29. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +3 -0
  30. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +3 -0
  31. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +12 -0
  32. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.test.d.ts +1 -0
  33. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +6 -0
  34. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +7 -6
  35. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +7 -0
  36. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.test.d.ts +1 -0
  37. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +7 -0
  38. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.test.d.ts +1 -0
  39. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.d.ts +12 -0
  40. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.test.d.ts +1 -0
  41. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.d.ts +9 -0
  42. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.test.d.ts +1 -0
  43. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.d.ts +12 -0
  44. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.test.d.ts +1 -0
  45. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.d.ts +16 -0
  46. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.test.d.ts +1 -0
  47. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +35 -4
  48. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +2 -2
  49. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +4 -4
  50. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.d.ts +4 -0
  51. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.test.d.ts +1 -0
  52. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.d.ts +2 -4
  53. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.d.ts +7 -0
  54. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.test.d.ts +1 -0
  55. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.d.ts +6 -0
  56. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.test.d.ts +1 -0
  57. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +2 -2
  58. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +52 -29
  59. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/styled.d.ts +8 -0
  60. package/dist/types/components/molecules/EnrichedTable/organisms/ClusterListTable/ClusterListTable.d.ts +4 -3
  61. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +5 -3
  62. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/SyncedHorizontalScrollbar.d.ts +7 -0
  63. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/SyncedHorizontalScrollbar.test.d.ts +1 -0
  64. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/index.d.ts +1 -0
  65. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +26 -8
  66. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/styled.d.ts +69 -16
  67. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +4 -0
  68. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +9 -3
  69. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +3 -1
  70. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/styled.d.ts +8 -0
  71. package/dist/types/components/molecules/MarketPlace/atoms/AddCard/styled.d.ts +40 -4
  72. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/styled.d.ts +33 -7
  73. package/dist/types/components/molecules/Search/styled.d.ts +72 -21
  74. package/dist/types/components/molecules/Terminals/PodLogsMonaco/styled.d.ts +26 -8
  75. package/dist/types/components/molecules/Terminals/PodTerminal/PodTerminal.d.ts +1 -0
  76. package/dist/types/components/molecules/Terminals/PodTerminal/utils.d.ts +1 -0
  77. package/dist/types/components/molecules/Terminals/PodTerminal/utils.test.d.ts +1 -0
  78. package/dist/types/components/organisms/DynamicComponents/atoms/modals/AnnotationsEditModal/styled.d.ts +2 -2
  79. package/dist/types/components/organisms/DynamicComponents/atoms/modals/TaintsEditModal/styled.d.ts +2 -2
  80. package/dist/types/components/organisms/DynamicComponents/atoms/modals/TolerationsEditModal/styled.d.ts +2 -2
  81. package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.d.ts +30 -0
  82. package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.test.d.ts +1 -0
  83. package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/styled.d.ts +26 -8
  84. package/dist/types/components/organisms/DynamicComponents/molecules/DropdownRedirect/styled.d.ts +106 -33
  85. package/dist/types/components/organisms/DynamicComponents/types/Terminals.d.ts +1 -0
  86. package/dist/types/localTypes/bff/form.d.ts +4 -6
  87. package/dist/types/localTypes/formSchema.d.ts +42 -0
  88. package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +2 -2
  89. package/package.json +5 -5
  90. package/dist/index-BFIWg9xn.mjs.map +0 -1
@@ -1,4 +1,5 @@
1
1
  export { CustomCollapse } from './CustomCollapse';
2
+ export { DefaultValueButton } from './DefaultValueButton';
2
3
  export { PersistedCheckbox } from './PersistedCheckbox';
3
4
  export { DebugNameViewer } from './DebugNameViewer';
4
5
  export { PossibleHiddenContainer } from './PossibleHiddenContainer';
@@ -7,3 +8,5 @@ export { CustomSizeTitle } from './CustomSizeTitle';
7
8
  export { ArrayInsideContainer } from './ArrayInsideContainer';
8
9
  export { HiddenContainer } from './HiddenContainer';
9
10
  export { HeightContainer } from './HeightContainer';
11
+ export { ExampleTooltipIcon } from './ExampleTooltipIcon';
12
+ export { NullToggleButton } from './NullToggleButton';
@@ -11,6 +11,7 @@ type TFormBooleanInputProps = {
11
11
  path: TFormName;
12
12
  }) => void;
13
13
  onRemoveByMinus?: () => void;
14
+ defaultValue?: boolean;
14
15
  };
15
16
  export declare const FormBooleanInput: FC<TFormBooleanInputProps>;
16
17
  export {};
@@ -15,6 +15,9 @@ type TFormEnumStringInputProps = {
15
15
  options: string[];
16
16
  persistedControls: TPersistedControls;
17
17
  onRemoveByMinus?: () => void;
18
+ defaultValue?: string;
19
+ example?: string;
20
+ nullable?: boolean;
18
21
  };
19
22
  export declare const FormEnumStringInput: FC<TFormEnumStringInputProps>;
20
23
  export {};
@@ -17,6 +17,9 @@ type TFormListInputProps = {
17
17
  customProps: TListInputCustomProps;
18
18
  urlParams: TUrlParams;
19
19
  onRemoveByMinus?: () => void;
20
+ defaultValue?: string | string[];
21
+ minItems?: number;
22
+ maxItems?: number;
20
23
  };
21
24
  export declare const FormListInput: FC<TFormListInputProps>;
22
25
  export {};
@@ -7,6 +7,18 @@ type TFormNamespaceInputProps = {
7
7
  removeField: ({ path }: {
8
8
  path: TFormName;
9
9
  }) => void;
10
+ /**
11
+ * YAML / OpenAPI default for the namespace field. Drives placeholder hint and the
12
+ * Apply Default / Clear button, and has priority over contextNamespace in the
13
+ * one-shot mount cascade because it's an explicit declarative choice from the
14
+ * schema author.
15
+ */
16
+ defaultValue?: string;
17
+ /**
18
+ * Current namespace from the URL route context. Used as a fallback when defaultValue
19
+ * is absent or refers to a namespace that doesn't exist in the cluster.
20
+ */
21
+ contextNamespace?: string;
10
22
  };
11
23
  export declare const FormNamespaceInput: FC<TFormNamespaceInputProps>;
12
24
  export {};
@@ -15,6 +15,12 @@ type TFormNumberItemProps = {
15
15
  }) => void;
16
16
  persistedControls: TPersistedControls;
17
17
  onRemoveByMinus?: () => void;
18
+ defaultValue?: number;
19
+ example?: number;
20
+ nullable?: boolean;
21
+ format?: string;
22
+ minimum?: number;
23
+ maximum?: number;
18
24
  };
19
25
  export declare const FormNumberInput: FC<TFormNumberItemProps>;
20
26
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { OpenAPIV2, IJsonSchema } from 'openapi-types';
3
2
  import { TFormName, TExpandedControls, TPersistedControls } from '../../../../../localTypes/form';
3
+ import { TFormSchemaNode, TFormSchemaOneOfBranch, TFormSchemaProperties } from '../../../../../localTypes/formSchema';
4
4
  type TFormObjectFromSwaggerProps = {
5
5
  name: TFormName;
6
6
  persistName?: TFormName;
@@ -15,19 +15,20 @@ type TFormObjectFromSwaggerProps = {
15
15
  persistedControls: TPersistedControls;
16
16
  collapseTitle: TFormName;
17
17
  collapseFormName: TFormName;
18
+ oneOfRequiredGroups?: string[][];
19
+ oneOfBranches?: TFormSchemaOneOfBranch[];
20
+ validationErrors?: string[];
18
21
  data?: JSX.Element;
19
22
  inputProps?: {
20
23
  addField: ({ path, name, type, items, nestedProperties, required, }: {
21
24
  path: TFormName;
22
25
  name: string;
23
26
  type: string;
24
- items?: {
25
- type: string;
26
- };
27
- nestedProperties?: OpenAPIV2.SchemaObject['properties'];
27
+ items?: TFormSchemaNode;
28
+ nestedProperties?: TFormSchemaProperties;
28
29
  required?: string;
29
30
  }) => void;
30
- additionalProperties: boolean | IJsonSchema | undefined;
31
+ additionalProperties: boolean | TFormSchemaNode | undefined;
31
32
  };
32
33
  onRemoveByMinus?: () => void;
33
34
  };
@@ -14,6 +14,13 @@ type TFormStringInputProps = {
14
14
  }) => void;
15
15
  persistedControls: TPersistedControls;
16
16
  onRemoveByMinus?: () => void;
17
+ defaultValue?: string;
18
+ example?: string;
19
+ nullable?: boolean;
20
+ format?: string;
21
+ pattern?: string;
22
+ minLength?: number;
23
+ maxLength?: number;
17
24
  };
18
25
  export declare const FormStringInput: FC<TFormStringInputProps>;
19
26
  export {};
@@ -15,6 +15,13 @@ type TFormStringMultilineInputProps = {
15
15
  persistedControls: TPersistedControls;
16
16
  onRemoveByMinus?: () => void;
17
17
  isBase64?: boolean;
18
+ defaultValue?: string;
19
+ example?: string;
20
+ nullable?: boolean;
21
+ format?: string;
22
+ pattern?: string;
23
+ minLength?: number;
24
+ maxLength?: number;
18
25
  };
19
26
  export declare const FormStringMultilineInput: FC<TFormStringMultilineInputProps>;
20
27
  export {};
@@ -0,0 +1,12 @@
1
+ import { TFormName } from '../../../../../localTypes/form';
2
+ export type TDisplayableDefaultValue = string | number | boolean | string[];
3
+ export declare const hasActionableDefaultValue: (defaultValue: TDisplayableDefaultValue | undefined) => defaultValue is TDisplayableDefaultValue;
4
+ export declare const formatDefaultValue: (defaultValue: TDisplayableDefaultValue) => string;
5
+ export declare const buildPlaceholder: (name: TFormName, defaultValue?: TDisplayableDefaultValue, example?: TDisplayableDefaultValue) => string;
6
+ /**
7
+ * Returns a tooltip body with the example when both `default` and `example` are set —
8
+ * `default` occupies the placeholder, so `example` would otherwise be lost. Returns
9
+ * `undefined` when no dedicated tooltip is needed (example is either absent or already
10
+ * surfaced as the placeholder).
11
+ */
12
+ export declare const getExampleTooltip: (defaultValue?: TDisplayableDefaultValue, example?: TDisplayableDefaultValue) => string | undefined;
@@ -0,0 +1,9 @@
1
+ import { TFormSchemaOneOfBranch } from '../../../../../localTypes/formSchema';
2
+ export declare const toOneOfBranchPath: (path: string) => (string | number)[];
3
+ export declare const getOneOfBranchPathKey: (path: (string | number)[]) => string;
4
+ export declare const matchesOneOfBranch: (value: unknown, branch: TFormSchemaOneOfBranch) => boolean;
5
+ export declare const collectOneOfBranchMatchKeys: (branches: TFormSchemaOneOfBranch[]) => string[];
6
+ export declare const collectInactiveOneOfBranchPaths: ({ branches, activeBranch, }: {
7
+ branches: TFormSchemaOneOfBranch[];
8
+ activeBranch: TFormSchemaOneOfBranch;
9
+ }) => (string | number)[][];
@@ -0,0 +1,12 @@
1
+ import { TFormName } from '../../../../../localTypes/form';
2
+ import { TDisplayableDefaultValue } from './buildPlaceholder';
3
+ type TDefaultValueButtonState = {
4
+ visible: false;
5
+ } | {
6
+ visible: true;
7
+ isApplied: boolean;
8
+ handleApply: () => void;
9
+ handleClear: () => void;
10
+ };
11
+ export declare const useDefaultValueButton: (formFieldName: TFormName, defaultValue: TDisplayableDefaultValue | undefined, nullable?: boolean) => TDefaultValueButtonState;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ import { TFormName } from '../../../../../localTypes/form';
2
+ type TNullToggleButtonState = {
3
+ visible: false;
4
+ } | {
5
+ visible: true;
6
+ isNull: boolean;
7
+ handleSetNull: () => void;
8
+ handleClear: () => void;
9
+ };
10
+ /**
11
+ * Surfaces a "Set null / Clear null" control only for schema nodes marked `nullable: true`.
12
+ * `null` is a distinct, persisted value (not the same as empty-and-omitted); consumers must
13
+ * propagate it through the submit pipeline for nullable paths.
14
+ */
15
+ export declare const useNullToggleButton: (formFieldName: TFormName, nullable?: boolean) => TNullToggleButtonState;
16
+ export {};
@@ -1,6 +1,37 @@
1
+ import { Rule } from 'antd/es/form';
2
+ import { TFormSchemaProperties } from '../../../../../localTypes/formSchema';
1
3
  import { TFormName } from '../../../../../localTypes/form';
2
4
  export declare const prettyFieldPath: (name: TFormName) => string;
3
- export declare const getRequiredRule: (isRequired: boolean, name: TFormName) => {
4
- required: boolean;
5
- message: string;
6
- };
5
+ export declare const collectOneOfRequiredGroupStates: ({ properties, values, currentPath, }: {
6
+ properties: TFormSchemaProperties;
7
+ values: Record<string, unknown>;
8
+ currentPath?: (string | number)[] | undefined;
9
+ }) => {
10
+ name: TFormName;
11
+ errors: string[];
12
+ }[];
13
+ /**
14
+ * Returns an antd Form rule for a required field. When `nullable` is true, an explicit
15
+ * `null` is accepted as a valid value (it will be serialized as JSON null in the payload).
16
+ * For non-nullable fields, the standard antd `required: true` semantics apply — null is
17
+ * treated as empty, same as undefined/''/[].
18
+ */
19
+ export declare const getRequiredRule: (isRequired: boolean, name: TFormName, nullable?: boolean) => Rule;
20
+ export declare const getPatternRule: (pattern: string | undefined, name: TFormName) => Rule | undefined;
21
+ export declare const getStringLengthRule: ({ minLength, maxLength, name, }: {
22
+ minLength?: number | undefined;
23
+ maxLength?: number | undefined;
24
+ name: TFormName;
25
+ }) => Rule | undefined;
26
+ export declare const getStringFormatRule: (format: string | undefined, name: TFormName) => Rule | undefined;
27
+ export declare const getArrayItemsRule: ({ minItems, maxItems, name, }: {
28
+ minItems?: number | undefined;
29
+ maxItems?: number | undefined;
30
+ name: TFormName;
31
+ }) => Rule | undefined;
32
+ export declare const getNumberFormatRule: (format: string | undefined, name: TFormName) => Rule | undefined;
33
+ export declare const getNumberRangeRule: ({ minimum, maximum, name, }: {
34
+ minimum?: number | undefined;
35
+ maximum?: number | undefined;
36
+ name: TFormName;
37
+ }) => Rule | undefined;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- import { OpenAPIV2 } from 'openapi-types';
3
2
  import { TJSON } from '../../../../../localTypes/JSON';
4
3
  import { TUrlParams } from '../../../../../localTypes/form';
5
4
  import { TFormPrefill } from '../../../../../localTypes/formExtensions';
5
+ import { TFormSchemaProperties } from '../../../../../localTypes/formSchema';
6
6
  export type TBlackholeFormProps = {
7
7
  cluster: string;
8
8
  theme: 'light' | 'dark';
@@ -12,7 +12,7 @@ export type TBlackholeFormProps = {
12
12
  plural?: string;
13
13
  };
14
14
  formsPrefills?: TFormPrefill;
15
- staticProperties: OpenAPIV2.SchemaObject['properties'];
15
+ staticProperties: TFormSchemaProperties;
16
16
  required: string[];
17
17
  hiddenPaths?: string[][];
18
18
  expandedPaths: string[][];
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { OpenAPIV2 } from 'openapi-types';
3
2
  import { TFormName } from '../../../../../../localTypes/form';
3
+ import { TFormSchemaProperties } from '../../../../../../localTypes/formSchema';
4
4
  export declare const pathKey: (p: (string | number)[]) => string;
5
5
  /**
6
6
  * Recursively prunes schema properties that are marked as "additional"
@@ -10,7 +10,7 @@ export declare const pathKey: (p: (string | number)[]) => string;
10
10
  * @param values - The actual data values that correspond to the schema.
11
11
  * @returns A new pruned copy of the schema `properties`.
12
12
  */
13
- export declare const pruneAdditionalForValues: (props: OpenAPIV2.SchemaObject['properties'], values: Record<string, unknown>, blockedPathsRef: MutableRefObject<Set<string>>) => OpenAPIV2.SchemaObject['properties'];
13
+ export declare const pruneAdditionalForValues: (props: TFormSchemaProperties, values: Record<string, unknown>, blockedPathsRef: MutableRefObject<Set<string>>) => TFormSchemaProperties;
14
14
  /**
15
15
  * Dynamically materializes (adds) new schema properties from the `values` object
16
16
  * whenever those properties correspond to `additionalProperties` in an OpenAPI schema.
@@ -36,8 +36,8 @@ export declare const pruneAdditionalForValues: (props: OpenAPIV2.SchemaObject['p
36
36
  * - `toExpand`: list of field paths that should be expanded (e.g., in a UI)
37
37
  * - `toPersist`: list of field paths that should be persisted (saved)
38
38
  */
39
- export declare const materializeAdditionalFromValues: (props: OpenAPIV2.SchemaObject['properties'], values: Record<string, unknown>, blockedPathsRef: MutableRefObject<Set<string>>) => {
40
- props: OpenAPIV2.SchemaObject['properties'];
39
+ export declare const materializeAdditionalFromValues: (props: TFormSchemaProperties, values: Record<string, unknown>, blockedPathsRef: MutableRefObject<Set<string>>) => {
40
+ props: TFormSchemaProperties;
41
41
  toExpand: TFormName[];
42
42
  toPersist: TFormName[];
43
43
  };
@@ -0,0 +1,4 @@
1
+ export declare const extractStringDefault: (value: unknown) => string | undefined;
2
+ export declare const extractNumberDefault: (value: unknown) => number | undefined;
3
+ export declare const extractBooleanDefault: (value: unknown) => boolean | undefined;
4
+ export declare const extractListInputDefault: (value: unknown) => string | string[] | undefined;
@@ -1,9 +1,7 @@
1
- import { OpenAPIV2 } from 'openapi-types';
2
1
  import { TFormName } from '../../../../../../localTypes/form';
2
+ import { TFormSchemaProperties } from '../../../../../../localTypes/formSchema';
3
3
  export declare const getSortedPropertyKeys: ({ name, sortPaths, properties, }: {
4
4
  name: TFormName;
5
5
  sortPaths?: string[][] | undefined;
6
- properties: {
7
- [name: string]: OpenAPIV2.SchemaObject;
8
- };
6
+ properties: TFormSchemaProperties;
9
7
  }) => (string | number)[];
@@ -0,0 +1,7 @@
1
+ import { TFormSchemaProperties } from '../../../../../../localTypes/formSchema';
2
+ export declare const collectInactiveBranchCleanupPaths: ({ properties, values, changedValues, currentPath, }: {
3
+ properties: TFormSchemaProperties;
4
+ values: Record<string, unknown>;
5
+ changedValues: Record<string, unknown> | undefined;
6
+ currentPath?: (string | number)[] | undefined;
7
+ }) => (string | number)[][];
@@ -0,0 +1,6 @@
1
+ import { TFormSchemaProperties } from '../../../../../../localTypes/formSchema';
2
+ export declare const collectOneOfBranchHiddenPaths: ({ properties, values, currentPath, }: {
3
+ properties: TFormSchemaProperties;
4
+ values: Record<string, unknown>;
5
+ currentPath?: (string | number)[] | undefined;
6
+ }) => (string | number)[][];
@@ -7,7 +7,7 @@ type TContainerProps = {
7
7
  export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
8
8
  prefixCls?: string | undefined;
9
9
  name: string | number | (string | number)[];
10
- rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
10
+ rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
11
11
  initialValue?: any[] | undefined;
12
12
  children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
13
13
  errors: import("react").ReactNode[];
@@ -25,7 +25,7 @@ export declare const Styled: {
25
25
  ResetedFormList: import("styled-components").IStyledComponent<"web", {
26
26
  prefixCls?: string | undefined;
27
27
  name: string | number | (string | number)[];
28
- rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
28
+ rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
29
29
  initialValue?: any[] | undefined;
30
30
  children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
31
31
  errors: import("react").ReactNode[];
@@ -1,7 +1,7 @@
1
- import { OpenAPIV2 } from 'openapi-types';
2
1
  import { TListInputCustomProps, TRangeInputCustomProps } from '../../../../../localTypes/formExtensions';
3
2
  import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from '../../../../../localTypes/form';
4
- export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, namespaceData, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, }: {
3
+ import { TFormSchemaNode, TFormSchemaProperties } from '../../../../../localTypes/formSchema';
4
+ export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, namespaceData, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, defaultValue, example, nullable, format, pattern, minLength, maxLength, urlParams, }: {
5
5
  name: TFormName;
6
6
  arrKey?: number | undefined;
7
7
  arrName?: TFormName | undefined;
@@ -16,8 +16,16 @@ export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, per
16
16
  }) => void;
17
17
  persistedControls: TPersistedControls;
18
18
  onRemoveByMinus?: (() => void) | undefined;
19
+ defaultValue?: string | undefined;
20
+ example?: string | undefined;
21
+ nullable?: boolean | undefined;
22
+ format?: string | undefined;
23
+ pattern?: string | undefined;
24
+ minLength?: number | undefined;
25
+ maxLength?: number | undefined;
26
+ urlParams?: TUrlParams | undefined;
19
27
  }) => import("react/jsx-runtime").JSX.Element;
20
- export declare const getEnumStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, options, persistedControls, onRemoveByMinus, }: {
28
+ export declare const getEnumStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, options, persistedControls, onRemoveByMinus, defaultValue, example, nullable, }: {
21
29
  name: TFormName;
22
30
  arrKey?: number | undefined;
23
31
  arrName?: TFormName | undefined;
@@ -32,8 +40,11 @@ export declare const getEnumStringFormItemFromSwagger: ({ name, arrKey, arrName,
32
40
  options: string[];
33
41
  persistedControls: TPersistedControls;
34
42
  onRemoveByMinus?: (() => void) | undefined;
43
+ defaultValue?: string | undefined;
44
+ example?: string | undefined;
45
+ nullable?: boolean | undefined;
35
46
  }) => import("react/jsx-runtime").JSX.Element;
36
- export declare const getNumberFormItemFromSwagger: ({ isNumber, name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, }: {
47
+ export declare const getNumberFormItemFromSwagger: ({ isNumber, name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, defaultValue, example, nullable, format, minimum, maximum, }: {
37
48
  isNumber?: boolean | undefined;
38
49
  name: TFormName;
39
50
  arrKey?: number | undefined;
@@ -48,6 +59,12 @@ export declare const getNumberFormItemFromSwagger: ({ isNumber, name, arrKey, ar
48
59
  }) => void;
49
60
  persistedControls: TPersistedControls;
50
61
  onRemoveByMinus?: (() => void) | undefined;
62
+ defaultValue?: number | undefined;
63
+ example?: number | undefined;
64
+ nullable?: boolean | undefined;
65
+ format?: string | undefined;
66
+ minimum?: number | undefined;
67
+ maximum?: number | undefined;
51
68
  }) => import("react/jsx-runtime").JSX.Element;
52
69
  export declare const getRangeInputFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isEdit, persistedControls, customProps, urlParams, onRemoveByMinus, }: {
53
70
  name: TFormName;
@@ -63,7 +80,7 @@ export declare const getRangeInputFormItemFromSwagger: ({ name, arrKey, arrName,
63
80
  urlParams: TUrlParams;
64
81
  onRemoveByMinus?: (() => void) | undefined;
65
82
  }) => import("react/jsx-runtime").JSX.Element;
66
- export declare const getStringMultilineFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, isBase64, }: {
83
+ export declare const getStringMultilineFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, onRemoveByMinus, isBase64, defaultValue, example, nullable, format, pattern, minLength, maxLength, }: {
67
84
  name: TFormName;
68
85
  arrKey?: number | undefined;
69
86
  arrName?: TFormName | undefined;
@@ -78,8 +95,15 @@ export declare const getStringMultilineFormItemFromSwagger: ({ name, arrKey, arr
78
95
  persistedControls: TPersistedControls;
79
96
  onRemoveByMinus?: (() => void) | undefined;
80
97
  isBase64?: boolean | undefined;
98
+ defaultValue?: string | undefined;
99
+ example?: string | undefined;
100
+ nullable?: boolean | undefined;
101
+ format?: string | undefined;
102
+ pattern?: string | undefined;
103
+ minLength?: number | undefined;
104
+ maxLength?: number | undefined;
81
105
  }) => import("react/jsx-runtime").JSX.Element;
82
- export declare const getListInputFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, customProps, urlParams, onRemoveByMinus, }: {
106
+ export declare const getListInputFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, description, isAdditionalProperties, removeField, persistedControls, customProps, urlParams, onRemoveByMinus, defaultValue, minItems, maxItems, }: {
83
107
  name: TFormName;
84
108
  arrKey?: number | undefined;
85
109
  arrName?: TFormName | undefined;
@@ -95,8 +119,11 @@ export declare const getListInputFormItemFromSwagger: ({ name, arrKey, arrName,
95
119
  customProps: TListInputCustomProps;
96
120
  urlParams: TUrlParams;
97
121
  onRemoveByMinus?: (() => void) | undefined;
122
+ defaultValue?: string | string[] | undefined;
123
+ minItems?: number | undefined;
124
+ maxItems?: number | undefined;
98
125
  }) => import("react/jsx-runtime").JSX.Element;
99
- export declare const getBooleanFormItemFromSwagger: ({ name, arrKey, arrName, description, makeValueUndefined, isAdditionalProperties, removeField, onRemoveByMinus, }: {
126
+ export declare const getBooleanFormItemFromSwagger: ({ name, arrKey, arrName, description, makeValueUndefined, isAdditionalProperties, removeField, onRemoveByMinus, defaultValue, }: {
100
127
  name: TFormName;
101
128
  arrKey?: number | undefined;
102
129
  arrName?: TFormName | undefined;
@@ -107,9 +134,10 @@ export declare const getBooleanFormItemFromSwagger: ({ name, arrKey, arrName, de
107
134
  path: TFormName;
108
135
  }) => void;
109
136
  onRemoveByMinus?: (() => void) | undefined;
137
+ defaultValue?: boolean | undefined;
110
138
  }) => import("react/jsx-runtime").JSX.Element;
111
- export declare const getArrayFormItemFromSwagger: ({ schema, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, description, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, sortPaths, urlParams, onRemoveByMinus, }: {
112
- schema: OpenAPIV2.SchemaObject;
139
+ export declare const getArrayFormItemFromSwagger: ({ schema, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, description, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, objectValidationErrors, sortPaths, urlParams, onRemoveByMinus, }: {
140
+ schema: TFormSchemaNode;
113
141
  name: TFormName;
114
142
  arrKey?: number | undefined;
115
143
  arrName?: TFormName | undefined;
@@ -123,10 +151,8 @@ export declare const getArrayFormItemFromSwagger: ({ schema, name, arrKey, arrNa
123
151
  path: TFormName;
124
152
  name: string;
125
153
  type: string;
126
- items?: {
127
- type: string;
128
- } | undefined;
129
- nestedProperties?: OpenAPIV2.SchemaObject['properties'];
154
+ items?: TFormSchemaNode | undefined;
155
+ nestedProperties?: TFormSchemaProperties | undefined;
130
156
  required?: string | undefined;
131
157
  }) => void;
132
158
  isAdditionalProperties?: boolean | undefined;
@@ -136,14 +162,13 @@ export declare const getArrayFormItemFromSwagger: ({ schema, name, arrKey, arrNa
136
162
  isEdit: boolean;
137
163
  expandedControls: TExpandedControls;
138
164
  persistedControls: TPersistedControls;
165
+ objectValidationErrors?: Record<string, string[]> | undefined;
139
166
  sortPaths?: string[][] | undefined;
140
167
  urlParams: TUrlParams;
141
168
  onRemoveByMinus?: (() => void) | undefined;
142
169
  }) => import("react/jsx-runtime").JSX.Element | null;
143
- export declare const getObjectFormItemsDraft: ({ properties, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, description, namespaceData, makeValueUndefined, addField, removeField, isEdit, expandedControls, persistedControls, sortPaths, urlParams, }: {
144
- properties: {
145
- [name: string]: OpenAPIV2.SchemaObject;
146
- };
170
+ export declare const getObjectFormItemsDraft: ({ properties, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, description, namespaceData, makeValueUndefined, addField, removeField, isEdit, expandedControls, persistedControls, objectValidationErrors, sortPaths, urlParams, }: {
171
+ properties: TFormSchemaProperties;
147
172
  name: TFormName;
148
173
  arrKey?: number | undefined;
149
174
  arrName?: TFormName | undefined;
@@ -158,10 +183,8 @@ export declare const getObjectFormItemsDraft: ({ properties, name, arrKey, arrNa
158
183
  path: TFormName;
159
184
  name: string;
160
185
  type: string;
161
- items?: {
162
- type: string;
163
- } | undefined;
164
- nestedProperties?: OpenAPIV2.SchemaObject['properties'];
186
+ items?: TFormSchemaNode | undefined;
187
+ nestedProperties?: TFormSchemaProperties | undefined;
165
188
  required?: string | undefined;
166
189
  }) => void;
167
190
  removeField: ({ path }: {
@@ -170,13 +193,15 @@ export declare const getObjectFormItemsDraft: ({ properties, name, arrKey, arrNa
170
193
  isEdit: boolean;
171
194
  expandedControls: TExpandedControls;
172
195
  persistedControls: TPersistedControls;
196
+ objectValidationErrors?: Record<string, string[]> | undefined;
173
197
  sortPaths?: string[][] | undefined;
174
198
  urlParams: TUrlParams;
175
199
  }) => import("react/jsx-runtime").JSX.Element;
176
- export declare const getObjectFormItemFromSwagger: ({ properties, name, arrKey, arrName, expandName, persistName, selfRequired, required, forceNonRequired, description, namespaceData, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, sortPaths, urlParams, onRemoveByMinus, }: {
177
- properties: {
178
- [name: string]: OpenAPIV2.SchemaObject;
179
- };
200
+ export declare const getObjectFormItemFromSwagger: ({ properties, oneOfRequiredGroups, oneOfBranches, objectValidationErrors, name, arrKey, arrName, expandName, persistName, selfRequired, required, forceNonRequired, description, namespaceData, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, sortPaths, urlParams, onRemoveByMinus, }: {
201
+ properties: TFormSchemaProperties;
202
+ oneOfRequiredGroups?: string[][] | undefined;
203
+ oneOfBranches?: TFormSchemaNode['oneOfBranches'];
204
+ objectValidationErrors?: Record<string, string[]> | undefined;
180
205
  name: TFormName;
181
206
  arrKey?: number | undefined;
182
207
  arrName?: TFormName | undefined;
@@ -192,10 +217,8 @@ export declare const getObjectFormItemFromSwagger: ({ properties, name, arrKey,
192
217
  path: TFormName;
193
218
  name: string;
194
219
  type: string;
195
- items?: {
196
- type: string;
197
- } | undefined;
198
- nestedProperties?: OpenAPIV2.SchemaObject['properties'];
220
+ items?: TFormSchemaNode | undefined;
221
+ nestedProperties?: TFormSchemaProperties | undefined;
199
222
  required?: string | undefined;
200
223
  }) => void;
201
224
  isAdditionalProperties?: boolean | undefined;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type TLoadingContainerProps = {
3
+ $minHeight?: number;
4
+ };
5
+ export declare const Styled: {
6
+ LoadingContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TLoadingContainerProps>>;
7
+ };
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { TableProps, TablePaginationConfig } from 'antd';
2
- import { AnyObject } from 'antd/es/_util/type';
3
- export type TClusterListTableProps<T extends AnyObject = AnyObject> = {
2
+ import { TTableRecord } from '../EnrichedTable/types';
3
+ export type TClusterListTableProps<T extends TTableRecord = TTableRecord> = {
4
4
  theme: 'light' | 'dark';
5
5
  dataSource: TableProps<T>['dataSource'];
6
6
  columns: TableProps<T>['columns'];
@@ -20,8 +20,9 @@ export type TClusterListTableProps<T extends AnyObject = AnyObject> = {
20
20
  paginationPosition?: TablePaginationConfig['position'];
21
21
  isTotalLeft?: boolean;
22
22
  maxHeight?: number;
23
+ scroll?: TableProps<T>['scroll'];
23
24
  virtual?: boolean;
24
25
  disablePagination?: boolean;
25
26
  };
26
27
  };
27
- export declare const ClusterListTable: <T extends AnyObject = AnyObject>({ theme, dataSource, columns, pathToNavigate, recordKeysForNavigation, rowClassName, onRow, rowClickable, navigationSettings, tableProps, }: TClusterListTableProps<T>) => import("react/jsx-runtime").JSX.Element | null;
28
+ export declare const ClusterListTable: <T extends TTableRecord = TTableRecord>({ theme, dataSource, columns, pathToNavigate, recordKeysForNavigation, rowClassName, onRow, rowClickable, navigationSettings, tableProps, }: TClusterListTableProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { TableProps, TablePaginationConfig } from 'antd';
3
- import { AnyObject } from 'antd/es/_util/type';
4
3
  import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsKeyTypeProps, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsCustomSortersAndFilters, TAdditionalPrinterColumnsTooltips } from '../../../../../localTypes/richTable';
5
- export type TEnrichedTableProps<T extends AnyObject = AnyObject> = {
4
+ import { TTableRecord } from './types';
5
+ export type TEnrichedTableProps<T extends TTableRecord = TTableRecord> = {
6
6
  theme: 'light' | 'dark';
7
7
  baseprefix?: string;
8
8
  dataSource: TableProps<T>['dataSource'];
@@ -35,8 +35,10 @@ export type TEnrichedTableProps<T extends AnyObject = AnyObject> = {
35
35
  editIcon?: ReactNode;
36
36
  deleteIcon?: ReactNode;
37
37
  maxHeight?: number;
38
+ scroll?: TableProps<T>['scroll'];
38
39
  virtual?: boolean;
39
40
  disablePagination?: boolean;
41
+ loadingMinHeight?: number | string;
40
42
  };
41
43
  };
42
- export declare const EnrichedTable: <T extends AnyObject = AnyObject>({ theme, baseprefix, dataSource, columns, pathToNavigate, recordKeysForNavigation, recordKeysForNavigationSecond, recordKeysForNavigationThird, additionalPrinterColumnsUndefinedValues, additionalPrinterColumnsTrimLengths, additionalPrinterColumnsColWidths, additionalPrinterColumnsTooltips, additionalPrinterColumnsKeyTypeProps, additionalPrinterColumnsCustomSortersAndFilters, selectData, withoutControls, rowClassName, onRow, rowClickable, tableProps, }: TEnrichedTableProps<T>) => import("react/jsx-runtime").JSX.Element | null;
44
+ export declare const EnrichedTable: <T extends TTableRecord = TTableRecord>({ theme, baseprefix, dataSource, columns, pathToNavigate, recordKeysForNavigation, recordKeysForNavigationSecond, recordKeysForNavigationThird, additionalPrinterColumnsUndefinedValues, additionalPrinterColumnsTrimLengths, additionalPrinterColumnsColWidths, additionalPrinterColumnsTooltips, additionalPrinterColumnsKeyTypeProps, additionalPrinterColumnsCustomSortersAndFilters, selectData, withoutControls, rowClassName, onRow, rowClickable, tableProps, }: TEnrichedTableProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import React, { FC } from 'react';
2
+ type TSyncedHorizontalScrollbarProps = {
3
+ tableContainerRef: React.RefObject<HTMLDivElement>;
4
+ disabled?: boolean;
5
+ };
6
+ export declare const SyncedHorizontalScrollbar: FC<TSyncedHorizontalScrollbarProps>;
7
+ export {};