@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.
- package/dist/{index-_9cT8fBl.mjs → index-BPDbJet7.mjs} +2 -2
- package/dist/{index-_9cT8fBl.mjs.map → index-BPDbJet7.mjs.map} +1 -1
- package/dist/{index-BFIWg9xn.mjs → index-C1Lorapd.mjs} +3711 -707
- package/dist/index-C1Lorapd.mjs.map +1 -0
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +3708 -702
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/atoms/CursorPointerTag/CursorPointerTag.d.ts +33 -7
- package/dist/types/components/atoms/CursorPointerTagMinContent/CursorPointerTagMinContent.d.ts +33 -7
- package/dist/types/components/atoms/CustomSelect/styled.d.ts +1 -1
- package/dist/types/components/atoms/ResourceBadgeAbbr/index.d.ts +1 -0
- package/dist/types/components/atoms/ResourceBadgeAbbr/styled.d.ts +7 -0
- package/dist/types/components/atoms/UncontrolledSelect/styled.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.d.ts +10 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/DefaultValueButton.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DefaultValueButton/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/ExampleTooltipIcon.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ExampleTooltipIcon/styled.d.ts +380 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/NullToggleButton.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/NullToggleButton/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +6 -7
- package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +3 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +3 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +3 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +12 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +7 -6
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.d.ts +12 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/buildPlaceholder.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.d.ts +12 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useDefaultValueButton.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/useNullToggleButton.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +35 -4
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +4 -4
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/extractDefaultValue.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.d.ts +2 -4
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +2 -2
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +52 -29
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/styled.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/ClusterListTable/ClusterListTable.d.ts +4 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +5 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/SyncedHorizontalScrollbar.d.ts +7 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/SyncedHorizontalScrollbar.test.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/SyncedHorizontalScrollbar/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +26 -8
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/styled.d.ts +69 -16
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +4 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +9 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +3 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/styled.d.ts +8 -0
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/styled.d.ts +40 -4
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/styled.d.ts +33 -7
- package/dist/types/components/molecules/Search/styled.d.ts +72 -21
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/styled.d.ts +26 -8
- package/dist/types/components/molecules/Terminals/PodTerminal/PodTerminal.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/utils.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/PodTerminal/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/AnnotationsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/TaintsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/TolerationsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.d.ts +30 -0
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/styled.d.ts +26 -8
- package/dist/types/components/organisms/DynamicComponents/molecules/DropdownRedirect/styled.d.ts +106 -33
- package/dist/types/components/organisms/DynamicComponents/types/Terminals.d.ts +1 -0
- package/dist/types/localTypes/bff/form.d.ts +4 -6
- package/dist/types/localTypes/formSchema.d.ts +42 -0
- package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +2 -2
- package/package.json +5 -5
- package/dist/index-BFIWg9xn.mjs.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
3
3
|
prefixCls?: string | undefined;
|
|
4
4
|
name: string | number | (string | number)[];
|
|
5
|
-
rules?: import("rc-
|
|
5
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
6
6
|
initialValue?: any[] | undefined;
|
|
7
7
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
8
8
|
errors: import("react").ReactNode[];
|
|
@@ -13,7 +13,7 @@ export declare const Styled: {
|
|
|
13
13
|
ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
14
14
|
prefixCls?: string | undefined;
|
|
15
15
|
name: string | number | (string | number)[];
|
|
16
|
-
rules?: import("rc-
|
|
16
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
17
17
|
initialValue?: any[] | undefined;
|
|
18
18
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
19
19
|
errors: import("react").ReactNode[];
|
package/dist/types/components/organisms/DynamicComponents/atoms/modals/TaintsEditModal/styled.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
3
3
|
prefixCls?: string | undefined;
|
|
4
4
|
name: string | number | (string | number)[];
|
|
5
|
-
rules?: import("rc-
|
|
5
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
6
6
|
initialValue?: any[] | undefined;
|
|
7
7
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
8
8
|
errors: import("react").ReactNode[];
|
|
@@ -13,7 +13,7 @@ export declare const Styled: {
|
|
|
13
13
|
ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
14
14
|
prefixCls?: string | undefined;
|
|
15
15
|
name: string | number | (string | number)[];
|
|
16
|
-
rules?: import("rc-
|
|
16
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
17
17
|
initialValue?: any[] | undefined;
|
|
18
18
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
19
19
|
errors: import("react").ReactNode[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
3
3
|
prefixCls?: string | undefined;
|
|
4
4
|
name: string | number | (string | number)[];
|
|
5
|
-
rules?: import("rc-
|
|
5
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
6
6
|
initialValue?: any[] | undefined;
|
|
7
7
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
8
8
|
errors: import("react").ReactNode[];
|
|
@@ -13,7 +13,7 @@ export declare const Styled: {
|
|
|
13
13
|
ResetedFormList: import("styled-components").IStyledComponent<"web", {
|
|
14
14
|
prefixCls?: string | undefined;
|
|
15
15
|
name: string | number | (string | number)[];
|
|
16
|
-
rules?: import("rc-
|
|
16
|
+
rules?: import("@rc-component/form/lib/interface").ValidatorRule[] | undefined;
|
|
17
17
|
initialValue?: any[] | undefined;
|
|
18
18
|
children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
|
|
19
19
|
errors: import("react").ReactNode[];
|
package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The edit modals (Tolerations, Taints, Annotations) lay their fields out on Ant Design's 24-column grid,
|
|
3
|
+
* with the column spans supplied by the factory YAML via a `cols` array. Each modal renders a FIXED number
|
|
4
|
+
* of columns — Tolerations 5, Taints 4, Annotations 3 (each count includes the trailing actions column) —
|
|
5
|
+
* and the spans must sum to 24 for the row to fill the modal width.
|
|
6
|
+
*
|
|
7
|
+
* `cols` is hand-authored YAML, so the compile-time tuple types don't protect against it. This validator
|
|
8
|
+
* runs at render time and warns — without rewriting the author's values — when `cols` has the wrong length
|
|
9
|
+
* or the spans don't sum to 24. A misconfigured grid then surfaces in the console instead of silently
|
|
10
|
+
* producing a broken layout (columns that wrap, squash, or leave a gap on the right).
|
|
11
|
+
*
|
|
12
|
+
* `count` is intrinsic to each modal's structure; `ANTD_GRID_TOTAL` is Ant Design's fixed grid size.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ANTD_GRID_TOTAL = 24;
|
|
15
|
+
export type TGridColsValidationResult = {
|
|
16
|
+
valid: true;
|
|
17
|
+
} | {
|
|
18
|
+
valid: false;
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
21
|
+
type TGridColsSpec = {
|
|
22
|
+
/** Component name for the warning message, e.g. "Tolerations". */
|
|
23
|
+
component: string;
|
|
24
|
+
/** Exact number of columns the modal renders, including the trailing actions column. */
|
|
25
|
+
count: number;
|
|
26
|
+
/** Human-readable column list for the message, e.g. "Key, Operator, Value, Effect, actions". */
|
|
27
|
+
columns: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const validateGridCols: (cols: unknown, { component, count, columns }: TGridColsSpec) => TGridColsValidationResult;
|
|
30
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/styled.d.ts
CHANGED
|
@@ -552,10 +552,11 @@ export declare const Styled: {
|
|
|
552
552
|
autoInsertSpace?: boolean | undefined;
|
|
553
553
|
type?: "link" | "text" | "default" | "dashed" | "primary" | undefined;
|
|
554
554
|
color?: "default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "danger" | "volcano" | "geekblue" | "primary" | undefined;
|
|
555
|
-
variant?: "link" | "text" | "
|
|
555
|
+
variant?: "link" | "text" | "dashed" | "solid" | "filled" | "outlined" | undefined;
|
|
556
556
|
icon?: import("react").ReactNode;
|
|
557
557
|
iconPosition?: "end" | "start" | undefined;
|
|
558
|
-
|
|
558
|
+
iconPlacement?: "end" | "start" | undefined;
|
|
559
|
+
shape?: "circle" | "default" | "round" | "square" | undefined;
|
|
559
560
|
size?: import("antd/es/button").ButtonSize;
|
|
560
561
|
disabled?: boolean | undefined;
|
|
561
562
|
loading?: boolean | {
|
|
@@ -569,12 +570,29 @@ export declare const Styled: {
|
|
|
569
570
|
danger?: boolean | undefined;
|
|
570
571
|
block?: boolean | undefined;
|
|
571
572
|
children?: import("react").ReactNode;
|
|
572
|
-
classNames?: {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
573
|
+
classNames?: import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
|
|
574
|
+
root?: string | undefined;
|
|
575
|
+
icon?: string | undefined;
|
|
576
|
+
content?: string | undefined;
|
|
577
|
+
} | undefined> | ((info: {
|
|
578
|
+
props: import("antd/es/button/Button").BaseButtonProps;
|
|
579
|
+
}) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
|
|
580
|
+
root?: string | undefined;
|
|
581
|
+
icon?: string | undefined;
|
|
582
|
+
content?: string | undefined;
|
|
583
|
+
} | undefined>);
|
|
584
|
+
styles?: import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
|
|
585
|
+
root?: import("react").CSSProperties | undefined;
|
|
586
|
+
icon?: import("react").CSSProperties | undefined;
|
|
587
|
+
content?: import("react").CSSProperties | undefined;
|
|
588
|
+
} | undefined> | ((info: {
|
|
589
|
+
props: import("antd/es/button/Button").BaseButtonProps;
|
|
590
|
+
}) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
|
|
591
|
+
root?: import("react").CSSProperties | undefined;
|
|
592
|
+
icon?: import("react").CSSProperties | undefined;
|
|
593
|
+
content?: import("react").CSSProperties | undefined;
|
|
594
|
+
} | undefined>);
|
|
595
|
+
_skipSemantic?: boolean | undefined;
|
|
578
596
|
defaultChecked?: boolean | undefined;
|
|
579
597
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
580
598
|
suppressContentEditableWarning?: boolean | undefined;
|
package/dist/types/components/organisms/DynamicComponents/molecules/DropdownRedirect/styled.d.ts
CHANGED
|
@@ -3,15 +3,14 @@ export declare const Styled: {
|
|
|
3
3
|
TitleSelect: import("styled-components").IStyledComponent<"web", {
|
|
4
4
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
5
5
|
mode?: "multiple" | "tags" | undefined;
|
|
6
|
-
status?: "" | "error" | "warning" | undefined;
|
|
6
|
+
status?: "" | "error" | "success" | "warning" | "validating" | undefined;
|
|
7
7
|
popupClassName?: string | undefined;
|
|
8
8
|
dropdownClassName?: string | undefined;
|
|
9
|
+
dropdownStyle?: import("react").CSSProperties | undefined;
|
|
10
|
+
dropdownRender?: ((menu: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
11
|
+
onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
|
|
9
12
|
dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
10
13
|
popupMatchSelectWidth?: number | boolean | undefined;
|
|
11
|
-
dropdownRender?: ((menu: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
12
|
-
popupRender?: ((menu: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
13
|
-
dropdownStyle?: import("react").CSSProperties | undefined;
|
|
14
|
-
onDropdownVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
15
14
|
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
16
15
|
defaultValue?: unknown;
|
|
17
16
|
autoFocus?: boolean | undefined;
|
|
@@ -21,6 +20,7 @@ export declare const Styled: {
|
|
|
21
20
|
style?: import("react").CSSProperties | undefined;
|
|
22
21
|
tabIndex?: number | undefined;
|
|
23
22
|
title?: string | undefined;
|
|
23
|
+
role?: import("react").AriaRole | undefined;
|
|
24
24
|
prefix?: import("react").ReactNode;
|
|
25
25
|
"aria-activedescendant"?: string | undefined;
|
|
26
26
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -78,17 +78,87 @@ export declare const Styled: {
|
|
|
78
78
|
children?: import("react").ReactNode;
|
|
79
79
|
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
80
80
|
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
81
|
-
onChange?: ((value: unknown, option?: import("
|
|
81
|
+
onChange?: ((value: unknown, option?: import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType | (import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType)[] | undefined) => void) | undefined;
|
|
82
82
|
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
83
83
|
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
84
84
|
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
85
85
|
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
86
86
|
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
87
87
|
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
88
|
-
onSelect?: import("rc-select/lib/Select").SelectHandler<unknown, import("
|
|
88
|
+
onSelect?: import("@rc-component/select/lib/Select").SelectHandler<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> | undefined;
|
|
89
89
|
prefixCls?: string | undefined;
|
|
90
90
|
direction?: "ltr" | "rtl" | undefined;
|
|
91
|
-
|
|
91
|
+
classNames?: ((info: {
|
|
92
|
+
props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType>;
|
|
93
|
+
}) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
|
|
94
|
+
root?: string | undefined;
|
|
95
|
+
prefix?: string | undefined;
|
|
96
|
+
suffix?: string | undefined;
|
|
97
|
+
input?: string | undefined;
|
|
98
|
+
placeholder?: string | undefined;
|
|
99
|
+
content?: string | undefined;
|
|
100
|
+
item?: string | undefined;
|
|
101
|
+
itemContent?: string | undefined;
|
|
102
|
+
itemRemove?: string | undefined;
|
|
103
|
+
clear?: string | undefined;
|
|
104
|
+
popup?: {
|
|
105
|
+
root?: string | undefined;
|
|
106
|
+
listItem?: string | undefined;
|
|
107
|
+
list?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
} | undefined>) | import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
|
|
110
|
+
root?: string | undefined;
|
|
111
|
+
prefix?: string | undefined;
|
|
112
|
+
suffix?: string | undefined;
|
|
113
|
+
input?: string | undefined;
|
|
114
|
+
placeholder?: string | undefined;
|
|
115
|
+
content?: string | undefined;
|
|
116
|
+
item?: string | undefined;
|
|
117
|
+
itemContent?: string | undefined;
|
|
118
|
+
itemRemove?: string | undefined;
|
|
119
|
+
clear?: string | undefined;
|
|
120
|
+
popup?: {
|
|
121
|
+
root?: string | undefined;
|
|
122
|
+
listItem?: string | undefined;
|
|
123
|
+
list?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | undefined>;
|
|
126
|
+
styles?: ((info: {
|
|
127
|
+
props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType>;
|
|
128
|
+
}) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
|
|
129
|
+
root?: import("react").CSSProperties | undefined;
|
|
130
|
+
prefix?: import("react").CSSProperties | undefined;
|
|
131
|
+
suffix?: import("react").CSSProperties | undefined;
|
|
132
|
+
input?: import("react").CSSProperties | undefined;
|
|
133
|
+
placeholder?: import("react").CSSProperties | undefined;
|
|
134
|
+
content?: import("react").CSSProperties | undefined;
|
|
135
|
+
item?: import("react").CSSProperties | undefined;
|
|
136
|
+
itemContent?: import("react").CSSProperties | undefined;
|
|
137
|
+
itemRemove?: import("react").CSSProperties | undefined;
|
|
138
|
+
clear?: import("react").CSSProperties | undefined;
|
|
139
|
+
popup?: {
|
|
140
|
+
root?: import("react").CSSProperties | undefined;
|
|
141
|
+
listItem?: import("react").CSSProperties | undefined;
|
|
142
|
+
list?: import("react").CSSProperties | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
} | undefined>) | import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
|
|
145
|
+
root?: import("react").CSSProperties | undefined;
|
|
146
|
+
prefix?: import("react").CSSProperties | undefined;
|
|
147
|
+
suffix?: import("react").CSSProperties | undefined;
|
|
148
|
+
input?: import("react").CSSProperties | undefined;
|
|
149
|
+
placeholder?: import("react").CSSProperties | undefined;
|
|
150
|
+
content?: import("react").CSSProperties | undefined;
|
|
151
|
+
item?: import("react").CSSProperties | undefined;
|
|
152
|
+
itemContent?: import("react").CSSProperties | undefined;
|
|
153
|
+
itemRemove?: import("react").CSSProperties | undefined;
|
|
154
|
+
clear?: import("react").CSSProperties | undefined;
|
|
155
|
+
popup?: {
|
|
156
|
+
root?: import("react").CSSProperties | undefined;
|
|
157
|
+
listItem?: import("react").CSSProperties | undefined;
|
|
158
|
+
list?: import("react").CSSProperties | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
} | undefined>;
|
|
161
|
+
fieldNames?: import("@rc-component/select/lib/Select").FieldNames | undefined;
|
|
92
162
|
disabled?: boolean | undefined;
|
|
93
163
|
virtual?: boolean | undefined;
|
|
94
164
|
rootClassName?: string | undefined;
|
|
@@ -96,62 +166,65 @@ export declare const Styled: {
|
|
|
96
166
|
size?: import("antd/es/button").ButtonSize;
|
|
97
167
|
value?: unknown;
|
|
98
168
|
maxLength?: number | undefined;
|
|
99
|
-
classNames?: (Partial<Record<"root", string>> & {
|
|
100
|
-
popup?: Partial<Record<"root", string>> | undefined;
|
|
101
|
-
}) | undefined;
|
|
102
|
-
styles?: (Partial<Record<"root", import("react").CSSProperties>> & {
|
|
103
|
-
popup?: Partial<Record<"root", import("react").CSSProperties>> | undefined;
|
|
104
|
-
}) | undefined;
|
|
105
169
|
onClear?: (() => void) | undefined;
|
|
170
|
+
suffix?: import("@rc-component/select/lib/interface").RenderNode;
|
|
106
171
|
allowClear?: boolean | {
|
|
107
|
-
clearIcon?: import("
|
|
172
|
+
clearIcon?: import("react").ReactNode;
|
|
108
173
|
} | undefined;
|
|
109
174
|
open?: boolean | undefined;
|
|
110
175
|
loading?: boolean | undefined;
|
|
111
|
-
options?: (import("
|
|
176
|
+
options?: (import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType)[] | undefined;
|
|
112
177
|
animation?: string | undefined;
|
|
113
178
|
transitionName?: string | undefined;
|
|
114
179
|
autoClearSearchValue?: boolean | undefined;
|
|
115
180
|
onSearch?: ((value: string) => void) | undefined;
|
|
116
|
-
showSearch?: boolean |
|
|
117
|
-
|
|
181
|
+
showSearch?: boolean | (import("@rc-component/select/lib/Select").SearchConfig<import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
|
|
182
|
+
searchIcon?: import("react").ReactNode;
|
|
183
|
+
}) | undefined;
|
|
184
|
+
tagRender?: ((props: import("@rc-component/select/lib/BaseSelect").CustomTagProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
185
|
+
maxCount?: number | undefined;
|
|
118
186
|
notFoundContent?: import("react").ReactNode;
|
|
187
|
+
showScrollBar?: boolean | "optional" | undefined;
|
|
119
188
|
choiceTransitionName?: string | undefined;
|
|
120
189
|
defaultOpen?: boolean | undefined;
|
|
190
|
+
onPopupVisibleChange?: ((open: boolean) => void) | undefined;
|
|
121
191
|
maxTagTextLength?: number | undefined;
|
|
122
192
|
maxTagCount?: number | "responsive" | undefined;
|
|
123
|
-
maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("rc-select/lib/interface").DisplayValueType[]) => import("react").ReactNode);
|
|
193
|
+
maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("@rc-component/select/lib/interface").DisplayValueType[]) => import("react").ReactNode);
|
|
124
194
|
tokenSeparators?: string[] | undefined;
|
|
125
195
|
suffixIcon?: import("react").ReactNode;
|
|
126
|
-
clearIcon?: import("
|
|
127
|
-
removeIcon?: import("rc-select/lib/interface").RenderNode;
|
|
128
|
-
|
|
196
|
+
clearIcon?: import("react").ReactNode;
|
|
197
|
+
removeIcon?: import("@rc-component/select/lib/interface").RenderNode;
|
|
198
|
+
popupStyle?: import("react").CSSProperties | undefined;
|
|
199
|
+
popupRender?: ((menu: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
200
|
+
popupAlign?: import("@rc-component/trigger").AlignType | undefined;
|
|
129
201
|
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
130
|
-
getPopupContainer?: import("rc-select/lib/interface").RenderDOMFunc | undefined;
|
|
202
|
+
getPopupContainer?: import("@rc-component/select/lib/interface").RenderDOMFunc | undefined;
|
|
131
203
|
showAction?: ("focus" | "click")[] | undefined;
|
|
132
204
|
onPopupScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
133
205
|
onInputKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
134
|
-
|
|
135
|
-
onDeselect?: import("rc-select/lib/Select").SelectHandler<unknown, import("
|
|
136
|
-
|
|
137
|
-
|
|
206
|
+
components?: import("@rc-component/select/lib/hooks/useComponents").ComponentsConfig | undefined;
|
|
207
|
+
onDeselect?: import("@rc-component/select/lib/Select").SelectHandler<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> | undefined;
|
|
208
|
+
onActive?: ((value: unknown) => void) | undefined;
|
|
209
|
+
filterOption?: boolean | import("@rc-component/select/lib/Select").FilterFunc<import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> | undefined;
|
|
210
|
+
filterSort?: ((optionA: import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType, optionB: import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType, info: {
|
|
138
211
|
searchValue: string;
|
|
139
212
|
}) => number) | undefined;
|
|
140
|
-
optionFilterProp?: string | undefined;
|
|
213
|
+
optionFilterProp?: string | string[] | undefined;
|
|
141
214
|
optionLabelProp?: string | undefined;
|
|
142
|
-
optionRender?: ((oriOption: import("rc-select/lib/interface").FlattenOptionData<import("
|
|
215
|
+
optionRender?: ((oriOption: import("@rc-component/select/lib/interface").FlattenOptionData<import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType>, info: {
|
|
143
216
|
index: number;
|
|
144
217
|
}) => import("react").ReactNode) | undefined;
|
|
145
218
|
defaultActiveFirstOption?: boolean | undefined;
|
|
146
219
|
listHeight?: number | undefined;
|
|
147
220
|
listItemHeight?: number | undefined;
|
|
148
|
-
labelRender?: ((props: import("rc-select/lib/Select").LabelInValueType) => import("react").ReactNode) | undefined;
|
|
149
|
-
menuItemSelectedIcon?: import("rc-select/lib/interface").RenderNode;
|
|
221
|
+
labelRender?: ((props: import("@rc-component/select/lib/Select").LabelInValueType) => import("react").ReactNode) | undefined;
|
|
222
|
+
menuItemSelectedIcon?: import("@rc-component/select/lib/interface").RenderNode;
|
|
150
223
|
labelInValue?: boolean | undefined;
|
|
151
|
-
maxCount?: number | undefined;
|
|
152
224
|
bordered?: boolean | undefined;
|
|
153
225
|
showArrow?: boolean | undefined;
|
|
154
|
-
variant?: "
|
|
226
|
+
variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
227
|
+
loadingIcon?: import("react").ReactNode;
|
|
155
228
|
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
156
229
|
key?: import("react").Key | null | undefined;
|
|
157
230
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OpenAPIV2 } from 'openapi-types';
|
|
2
1
|
import { TJSON } from '../JSON';
|
|
3
2
|
import { TFormName } from '../form';
|
|
4
3
|
import { TFormPrefill } from '../formExtensions';
|
|
4
|
+
import { TFormSchemaProperties } from '../formSchema';
|
|
5
5
|
export type TPrepareFormReq = {
|
|
6
6
|
data: {
|
|
7
7
|
type: 'builtin';
|
|
@@ -30,9 +30,7 @@ export type TPrepareFormRes = {
|
|
|
30
30
|
isNamespaced: boolean;
|
|
31
31
|
} | {
|
|
32
32
|
result: 'success';
|
|
33
|
-
properties:
|
|
34
|
-
[name: string]: OpenAPIV2.SchemaObject;
|
|
35
|
-
};
|
|
33
|
+
properties: TFormSchemaProperties;
|
|
36
34
|
required: string[] | undefined;
|
|
37
35
|
hiddenPaths: string[][] | undefined;
|
|
38
36
|
expandedPaths: string[][] | undefined;
|
|
@@ -47,11 +45,11 @@ export type TPrepareFormRes = {
|
|
|
47
45
|
export type TYamlByValuesReq = {
|
|
48
46
|
values: any;
|
|
49
47
|
persistedKeys: TFormName[];
|
|
50
|
-
properties:
|
|
48
|
+
properties: TFormSchemaProperties;
|
|
51
49
|
};
|
|
52
50
|
export type TYamlByValuesRes = any;
|
|
53
51
|
export type TValuesByYamlReq = {
|
|
54
52
|
values: Record<string, unknown>;
|
|
55
|
-
properties:
|
|
53
|
+
properties: TFormSchemaProperties;
|
|
56
54
|
};
|
|
57
55
|
export type TValuesByYamlRes = any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type TFormSchemaKnownType = 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object' | 'listInput' | 'multilineString' | 'multilineStringBase64' | 'rangeInputCpu' | 'rangeInputMemory';
|
|
2
|
+
type TFormSchemaLooseType = TFormSchemaKnownType | (string & {});
|
|
3
|
+
export type TFormSchemaOneOfMatchValue = string | number | boolean;
|
|
4
|
+
export interface TFormSchemaOneOfBranch {
|
|
5
|
+
match?: Record<string, TFormSchemaOneOfMatchValue>;
|
|
6
|
+
required?: string[];
|
|
7
|
+
forbidden?: string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Mirror of the normalized form-schema contract returned by the BFF.
|
|
11
|
+
* Toolkit components should consume this type instead of raw OpenAPI v2 types.
|
|
12
|
+
*/
|
|
13
|
+
export interface TFormSchemaNode {
|
|
14
|
+
type?: TFormSchemaLooseType | TFormSchemaLooseType[];
|
|
15
|
+
properties?: TFormSchemaProperties;
|
|
16
|
+
items?: TFormSchemaNode;
|
|
17
|
+
additionalProperties?: boolean | TFormSchemaNode;
|
|
18
|
+
required?: string[];
|
|
19
|
+
enum?: string[];
|
|
20
|
+
oneOfRequiredGroups?: string[][];
|
|
21
|
+
oneOfBranches?: TFormSchemaOneOfBranch[];
|
|
22
|
+
default?: unknown;
|
|
23
|
+
example?: unknown;
|
|
24
|
+
nullable?: boolean;
|
|
25
|
+
format?: string;
|
|
26
|
+
pattern?: string;
|
|
27
|
+
minLength?: number;
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
minItems?: number;
|
|
30
|
+
maxItems?: number;
|
|
31
|
+
minimum?: number;
|
|
32
|
+
maximum?: number;
|
|
33
|
+
description?: string;
|
|
34
|
+
customProps?: unknown;
|
|
35
|
+
isAdditionalProperties?: boolean;
|
|
36
|
+
'x-kubernetes-preserve-unknown-fields'?: boolean;
|
|
37
|
+
'x-kubernetes-int-or-string'?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface TFormSchemaProperties {
|
|
40
|
+
[name: string]: TFormSchemaNode;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const normalizeValuesForQuotasToNumber: (object: any, properties:
|
|
1
|
+
import { TFormSchemaProperties } from '../../localTypes/formSchema';
|
|
2
|
+
export declare const normalizeValuesForQuotasToNumber: (object: any, properties: TFormSchemaProperties) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prorobotech/openapi-k8s-toolkit",
|
|
3
|
-
"version": "1.5.0-alpha.
|
|
3
|
+
"version": "1.5.0-alpha.11",
|
|
4
4
|
"description": "ProRobotech OpenAPI k8s tools",
|
|
5
5
|
"main": "dist/openapi-k8s-toolkit.cjs.js",
|
|
6
6
|
"module": "dist/openapi-k8s-toolkit.es.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"storybook:serve": "serve storybook-static"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ant-design/icons": "
|
|
36
|
+
"@ant-design/icons": "6.2.5",
|
|
37
37
|
"@tanstack/react-query": "5.62.2",
|
|
38
38
|
"@tanstack/react-query-devtools": "5.62.2",
|
|
39
|
-
"antd": "
|
|
39
|
+
"antd": "6.4.3",
|
|
40
40
|
"novnc-next": "1.0.0",
|
|
41
41
|
"react": "18.3.1",
|
|
42
42
|
"react-dom": "18.3.1",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"yaml": "2.7.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@ant-design/icons": "
|
|
68
|
+
"@ant-design/icons": "6.2.5",
|
|
69
69
|
"@storybook/react-vite": "9.1.2",
|
|
70
70
|
"@stylelint/postcss-css-in-js": "0.38.0",
|
|
71
71
|
"@tanstack/react-query": "5.62.2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/styled-components": "5.1.26",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "8.6.0",
|
|
84
84
|
"@vitejs/plugin-react-swc": "3.7.0",
|
|
85
|
-
"antd": "
|
|
85
|
+
"antd": "6.4.3",
|
|
86
86
|
"chokidar-cli": "3.0.0",
|
|
87
87
|
"concurrently": "9.2.0",
|
|
88
88
|
"eslint": "8.57.1",
|