@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.94 → 0.0.1-alpha.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi-k8s-toolkit.es.js +169 -47
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +168 -45
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/forms.d.ts +5 -0
- package/dist/types/components/atoms/CustomSelect/CustomSelect.d.ts +3 -0
- package/dist/types/components/atoms/CustomSelect/index.d.ts +1 -0
- package/dist/types/components/atoms/CustomSelect/styled.d.ts +158 -0
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/EditModal.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +9 -3
- package/package.json +10 -4
|
@@ -10,3 +10,8 @@ export declare const updateEntry: <T>({ endpoint, body, }: {
|
|
|
10
10
|
export declare const deleteEntry: <T>({ endpoint }: {
|
|
11
11
|
endpoint: string;
|
|
12
12
|
}) => Promise<AxiosResponse<T, any>>;
|
|
13
|
+
export declare const patchEntryWithReplaceOp: <T>({ endpoint, pathToValue, body, }: {
|
|
14
|
+
endpoint: string;
|
|
15
|
+
pathToValue: string;
|
|
16
|
+
body: unknown;
|
|
17
|
+
}) => Promise<AxiosResponse<T, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomSelect';
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Styled: {
|
|
3
|
+
CustomSelect: import("styled-components").IStyledComponent<"web", {
|
|
4
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
5
|
+
mode?: "multiple" | "tags" | undefined;
|
|
6
|
+
status?: "" | "error" | "warning" | undefined;
|
|
7
|
+
popupClassName?: string | undefined;
|
|
8
|
+
dropdownClassName?: string | undefined;
|
|
9
|
+
dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
10
|
+
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
|
+
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
16
|
+
defaultValue?: unknown;
|
|
17
|
+
autoFocus?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
placeholder?: import("react").ReactNode;
|
|
21
|
+
style?: import("react").CSSProperties | undefined;
|
|
22
|
+
tabIndex?: number | undefined;
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
prefix?: import("react").ReactNode;
|
|
25
|
+
"aria-activedescendant"?: string | undefined;
|
|
26
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
27
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
28
|
+
"aria-braillelabel"?: string | undefined;
|
|
29
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
30
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
31
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
32
|
+
"aria-colcount"?: number | undefined;
|
|
33
|
+
"aria-colindex"?: number | undefined;
|
|
34
|
+
"aria-colindextext"?: string | undefined;
|
|
35
|
+
"aria-colspan"?: number | undefined;
|
|
36
|
+
"aria-controls"?: string | undefined;
|
|
37
|
+
"aria-current"?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
38
|
+
"aria-describedby"?: string | undefined;
|
|
39
|
+
"aria-description"?: string | undefined;
|
|
40
|
+
"aria-details"?: string | undefined;
|
|
41
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
42
|
+
"aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
43
|
+
"aria-errormessage"?: string | undefined;
|
|
44
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
45
|
+
"aria-flowto"?: string | undefined;
|
|
46
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
47
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
48
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
49
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
50
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
51
|
+
"aria-label"?: string | undefined;
|
|
52
|
+
"aria-labelledby"?: string | undefined;
|
|
53
|
+
"aria-level"?: number | undefined;
|
|
54
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
55
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
56
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
57
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
59
|
+
"aria-owns"?: string | undefined;
|
|
60
|
+
"aria-placeholder"?: string | undefined;
|
|
61
|
+
"aria-posinset"?: number | undefined;
|
|
62
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
63
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
64
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
65
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
66
|
+
"aria-roledescription"?: string | undefined;
|
|
67
|
+
"aria-rowcount"?: number | undefined;
|
|
68
|
+
"aria-rowindex"?: number | undefined;
|
|
69
|
+
"aria-rowindextext"?: string | undefined;
|
|
70
|
+
"aria-rowspan"?: number | undefined;
|
|
71
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
"aria-setsize"?: number | undefined;
|
|
73
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
74
|
+
"aria-valuemax"?: number | undefined;
|
|
75
|
+
"aria-valuemin"?: number | undefined;
|
|
76
|
+
"aria-valuenow"?: number | undefined;
|
|
77
|
+
"aria-valuetext"?: string | undefined;
|
|
78
|
+
children?: import("react").ReactNode;
|
|
79
|
+
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
80
|
+
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
81
|
+
onChange?: ((value: unknown, option?: import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType | (import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType)[] | undefined) => void) | undefined;
|
|
82
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
83
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
84
|
+
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
85
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
86
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
87
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
88
|
+
onSelect?: import("rc-select/lib/Select").SelectHandler<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> | undefined;
|
|
89
|
+
prefixCls?: string | undefined;
|
|
90
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
91
|
+
fieldNames?: import("rc-select/lib/Select").FieldNames | undefined;
|
|
92
|
+
disabled?: boolean | undefined;
|
|
93
|
+
virtual?: boolean | undefined;
|
|
94
|
+
rootClassName?: string | undefined;
|
|
95
|
+
searchValue?: string | undefined;
|
|
96
|
+
size?: import("antd/es/button").ButtonSize;
|
|
97
|
+
value?: unknown;
|
|
98
|
+
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
|
+
onClear?: (() => void) | undefined;
|
|
106
|
+
allowClear?: boolean | {
|
|
107
|
+
clearIcon?: import("rc-select/lib/interface").RenderNode;
|
|
108
|
+
} | undefined;
|
|
109
|
+
open?: boolean | undefined;
|
|
110
|
+
loading?: boolean | undefined;
|
|
111
|
+
options?: (import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType)[] | undefined;
|
|
112
|
+
animation?: string | undefined;
|
|
113
|
+
transitionName?: string | undefined;
|
|
114
|
+
autoClearSearchValue?: boolean | undefined;
|
|
115
|
+
onSearch?: ((value: string) => void) | undefined;
|
|
116
|
+
showSearch?: boolean | undefined;
|
|
117
|
+
tagRender?: ((props: import("rc-select/lib/BaseSelect").CustomTagProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
118
|
+
notFoundContent?: import("react").ReactNode;
|
|
119
|
+
choiceTransitionName?: string | undefined;
|
|
120
|
+
defaultOpen?: boolean | undefined;
|
|
121
|
+
maxTagTextLength?: number | undefined;
|
|
122
|
+
maxTagCount?: number | "responsive" | undefined;
|
|
123
|
+
maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("rc-select/lib/interface").DisplayValueType[]) => import("react").ReactNode);
|
|
124
|
+
tokenSeparators?: string[] | undefined;
|
|
125
|
+
suffixIcon?: import("react").ReactNode;
|
|
126
|
+
clearIcon?: import("rc-select/lib/interface").RenderNode;
|
|
127
|
+
removeIcon?: import("rc-select/lib/interface").RenderNode;
|
|
128
|
+
dropdownAlign?: import("@rc-component/trigger").AlignType | undefined;
|
|
129
|
+
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
130
|
+
getPopupContainer?: import("rc-select/lib/interface").RenderDOMFunc | undefined;
|
|
131
|
+
showAction?: ("focus" | "click")[] | undefined;
|
|
132
|
+
onPopupScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
133
|
+
onInputKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
134
|
+
inputValue?: string | undefined;
|
|
135
|
+
onDeselect?: import("rc-select/lib/Select").SelectHandler<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> | undefined;
|
|
136
|
+
filterOption?: boolean | import("rc-select/lib/Select").FilterFunc<import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> | undefined;
|
|
137
|
+
filterSort?: ((optionA: import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType, optionB: import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType, info: {
|
|
138
|
+
searchValue: string;
|
|
139
|
+
}) => number) | undefined;
|
|
140
|
+
optionFilterProp?: string | undefined;
|
|
141
|
+
optionLabelProp?: string | undefined;
|
|
142
|
+
optionRender?: ((oriOption: import("rc-select/lib/interface").FlattenOptionData<import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType>, info: {
|
|
143
|
+
index: number;
|
|
144
|
+
}) => import("react").ReactNode) | undefined;
|
|
145
|
+
defaultActiveFirstOption?: boolean | undefined;
|
|
146
|
+
listHeight?: number | undefined;
|
|
147
|
+
listItemHeight?: number | undefined;
|
|
148
|
+
labelRender?: ((props: import("rc-select/lib/Select").LabelInValueType) => import("react").ReactNode) | undefined;
|
|
149
|
+
menuItemSelectedIcon?: import("rc-select/lib/interface").RenderNode;
|
|
150
|
+
labelInValue?: boolean | undefined;
|
|
151
|
+
maxCount?: number | undefined;
|
|
152
|
+
bordered?: boolean | undefined;
|
|
153
|
+
showArrow?: boolean | undefined;
|
|
154
|
+
variant?: "outlined" | "borderless" | "filled" | "underlined" | undefined;
|
|
155
|
+
ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
|
|
156
|
+
key?: import("react").Key | null | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
};
|
|
@@ -7,6 +7,11 @@ type TEditModalProps = {
|
|
|
7
7
|
modalTitle: string;
|
|
8
8
|
modalDescriptionText?: string;
|
|
9
9
|
inputLabel?: string;
|
|
10
|
+
maxEditTagTextLength?: number;
|
|
11
|
+
allowClearEditSelect?: boolean;
|
|
12
|
+
endpoint: string;
|
|
13
|
+
pathToValue: string;
|
|
14
|
+
editModalWidth?: number;
|
|
10
15
|
};
|
|
11
16
|
export declare const EditModal: FC<TEditModalProps>;
|
|
12
17
|
export {};
|
|
@@ -177,12 +177,18 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
177
177
|
reqIndex: string;
|
|
178
178
|
jsonPathToLabels: string;
|
|
179
179
|
selectProps?: SelectProps;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
readOnly?: true;
|
|
181
|
+
notificationSuccessMessage?: string;
|
|
182
|
+
notificationSuccessMessageDescription?: string;
|
|
183
|
+
modalTitle?: string;
|
|
183
184
|
modalDescriptionText?: string;
|
|
184
185
|
inputLabel?: string;
|
|
185
186
|
containerStyle?: CSSProperties;
|
|
187
|
+
maxEditTagTextLength?: number;
|
|
188
|
+
allowClearEditSelect?: boolean;
|
|
189
|
+
endpoint?: string;
|
|
190
|
+
pathToValue?: string;
|
|
191
|
+
editModalWidth?: number;
|
|
186
192
|
};
|
|
187
193
|
LabelsToSearchParams: {
|
|
188
194
|
id: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prorobotech/openapi-k8s-toolkit",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.96",
|
|
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",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"watch:build": "chokidar \"src/**/*\" -c \"npm run build\" -d 5000",
|
|
18
18
|
"watch:yalc": "chokidar \"dist/**/*\" -c \"yalc push\" -d 5000",
|
|
19
19
|
"dev:open": "cross-env BASEPREFIX=/toolkit vite --open --port 3002 --strictPort",
|
|
20
|
-
"build": "vite build && tsc && tsc-alias -p tsconfig.json",
|
|
21
|
-
"build:local": "vite build && tsc && tsc-alias -p tsconfig.json && yalc publish --replace",
|
|
20
|
+
"build": "vite build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
|
21
|
+
"build:local": "vite build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yalc publish --replace && yalc push",
|
|
22
22
|
"serve": "vite preview --port 3002 --strictPort",
|
|
23
23
|
"preview": "vite preview --port 3002 --strictPort",
|
|
24
24
|
"tsc": "tsc --project tsconfig.json",
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
"lint": "npm run lint:js && npm run lint:css && npm run tsc",
|
|
28
28
|
"test": "jest",
|
|
29
29
|
"test:watch": "jest --watch",
|
|
30
|
-
"test:coverage": "jest --coverage"
|
|
30
|
+
"test:coverage": "jest --coverage",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"storybook:build": "storybook build",
|
|
33
|
+
"storybook:serve": "serve storybook-static"
|
|
31
34
|
},
|
|
32
35
|
"peerDependencies": {
|
|
33
36
|
"@ant-design/icons": "5.6.0",
|
|
@@ -60,6 +63,7 @@
|
|
|
60
63
|
},
|
|
61
64
|
"devDependencies": {
|
|
62
65
|
"@ant-design/icons": "5.6.0",
|
|
66
|
+
"@storybook/react-vite": "9.1.2",
|
|
63
67
|
"@stylelint/postcss-css-in-js": "0.38.0",
|
|
64
68
|
"@tanstack/react-query": "5.62.2",
|
|
65
69
|
"@tanstack/react-query-devtools": "5.62.2",
|
|
@@ -94,6 +98,8 @@
|
|
|
94
98
|
"react": "18.3.1",
|
|
95
99
|
"react-dom": "18.3.1",
|
|
96
100
|
"react-router-dom": "6.25.1",
|
|
101
|
+
"serve": "14.2.4",
|
|
102
|
+
"storybook": "9.1.2",
|
|
97
103
|
"stylelint": "16.14.1",
|
|
98
104
|
"stylelint-config-standard": "37.0.0",
|
|
99
105
|
"ts-jest": "29.3.2",
|