@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.96 → 0.0.1-alpha.98

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 (26) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +799 -101
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +798 -100
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/components/atoms/CustomSelect/CustomSelect.d.ts +5 -1
  6. package/dist/types/components/atoms/CustomSelect/styled.d.ts +6 -154
  7. package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/EditModal.d.ts +2 -1
  8. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/Taints.d.ts +6 -0
  9. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/index.d.ts +1 -0
  10. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/EditModal.d.ts +17 -0
  11. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/index.d.ts +1 -0
  12. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/styled.d.ts +23 -0
  13. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/index.d.ts +1 -0
  14. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/types.d.ts +6 -0
  15. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/utils.d.ts +9 -0
  16. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/Tolerations.d.ts +6 -0
  17. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/index.d.ts +1 -0
  18. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/EditModal.d.ts +17 -0
  19. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/index.d.ts +1 -0
  20. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/styled.d.ts +23 -0
  21. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/index.d.ts +1 -0
  22. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/types.d.ts +8 -0
  23. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/utils.d.ts +8 -0
  24. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +2 -0
  25. package/dist/types/components/organisms/DynamicComponents/types.d.ts +37 -1
  26. package/package.json +1 -1
@@ -1,3 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import { SelectProps } from 'antd';
3
- export declare const CustomSelect: FC<SelectProps>;
3
+ type TCustomSelectProps = SelectProps & {
4
+ paddingContainerEnd?: string;
5
+ };
6
+ export declare const CustomSelect: FC<TCustomSelectProps>;
7
+ export {};
@@ -1,158 +1,10 @@
1
1
  /// <reference types="react" />
2
+ type TCustomSelectProps = {
3
+ $paddingContainerEnd?: string;
4
+ };
2
5
  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;
6
+ CustomSelect: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("antd").SelectProps<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> & {
78
7
  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
- }>;
8
+ } & import("react").RefAttributes<import("antd").RefSelectProps>, TCustomSelectProps>>;
158
9
  };
10
+ export {};
@@ -11,7 +11,8 @@ type TEditModalProps = {
11
11
  allowClearEditSelect?: boolean;
12
12
  endpoint: string;
13
13
  pathToValue: string;
14
- editModalWidth?: number;
14
+ editModalWidth?: number | string;
15
+ paddingContainerEnd?: string;
15
16
  };
16
17
  export declare const EditModal: FC<TEditModalProps>;
17
18
  export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Taints: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Taints'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { TTaintLike } from '../../types';
3
+ type TEditModalProps = {
4
+ open: boolean;
5
+ close: () => void;
6
+ values?: TTaintLike[];
7
+ openNotificationSuccess?: () => void;
8
+ modalTitle: string;
9
+ modalDescriptionText?: string;
10
+ inputLabel?: string;
11
+ endpoint: string;
12
+ pathToValue: string;
13
+ editModalWidth?: number | string;
14
+ cols: number[];
15
+ };
16
+ export declare const EditModal: FC<TEditModalProps>;
17
+ export {};
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
3
+ prefixCls?: string | undefined;
4
+ name: string | number | (string | number)[];
5
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
6
+ initialValue?: any[] | undefined;
7
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
8
+ errors: import("react").ReactNode[];
9
+ warnings: import("react").ReactNode[];
10
+ }) => import("react").ReactNode;
11
+ }>;
12
+ export declare const Styled: {
13
+ ResetedFormList: import("styled-components").IStyledComponent<"web", {
14
+ prefixCls?: string | undefined;
15
+ name: string | number | (string | number)[];
16
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
17
+ initialValue?: any[] | undefined;
18
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
19
+ errors: import("react").ReactNode[];
20
+ warnings: import("react").ReactNode[];
21
+ }) => import("react").ReactNode;
22
+ }>;
23
+ };
@@ -0,0 +1,6 @@
1
+ export type TTaintEffect = 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
2
+ export type TTaintLike = {
3
+ key?: string;
4
+ value?: string;
5
+ effect: TTaintEffect;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { TTaintLike } from './types';
2
+ export declare const isTaintLike: (x: unknown) => x is TTaintLike;
3
+ /** Filters any unknown value to an array of valid {key?, value?, effect} objects */
4
+ export declare const filterTaintLikes: (input: unknown) => TTaintLike[];
5
+ export declare const getItemsInside: (value: any[]) => {
6
+ counter?: number;
7
+ taints?: TTaintLike[];
8
+ error?: string;
9
+ };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Tolerations: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Tolerations'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { TToleration } from '../../types';
3
+ type TEditModalProps = {
4
+ open: boolean;
5
+ close: () => void;
6
+ values?: TToleration[];
7
+ openNotificationSuccess?: () => void;
8
+ modalTitle: string;
9
+ modalDescriptionText?: string;
10
+ inputLabel?: string;
11
+ endpoint: string;
12
+ pathToValue: string;
13
+ editModalWidth?: number | string;
14
+ cols: number[];
15
+ };
16
+ export declare const EditModal: FC<TEditModalProps>;
17
+ export {};
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
3
+ prefixCls?: string | undefined;
4
+ name: string | number | (string | number)[];
5
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
6
+ initialValue?: any[] | undefined;
7
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
8
+ errors: import("react").ReactNode[];
9
+ warnings: import("react").ReactNode[];
10
+ }) => import("react").ReactNode;
11
+ }>;
12
+ export declare const Styled: {
13
+ ResetedFormList: import("styled-components").IStyledComponent<"web", {
14
+ prefixCls?: string | undefined;
15
+ name: string | number | (string | number)[];
16
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
17
+ initialValue?: any[] | undefined;
18
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
19
+ errors: import("react").ReactNode[];
20
+ warnings: import("react").ReactNode[];
21
+ }) => import("react").ReactNode;
22
+ }>;
23
+ };
@@ -0,0 +1,8 @@
1
+ export type TTolerationOperator = 'Exists' | 'Equal';
2
+ export type TTaintEffect = 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
3
+ export type TToleration = {
4
+ key?: string;
5
+ operator?: TTolerationOperator;
6
+ value?: string;
7
+ effect?: TTaintEffect;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { TToleration } from './types';
2
+ export declare const isToleration: (x: unknown) => x is TToleration;
3
+ export declare const filterTolerations: (input: unknown) => TToleration[];
4
+ export declare const getItemsInside: (value: any[]) => {
5
+ counter?: number;
6
+ tolerations?: TToleration[];
7
+ error?: string;
8
+ };
@@ -27,3 +27,5 @@ export * from './ItemCounter';
27
27
  export * from './KeyCounter';
28
28
  export * from './Labels';
29
29
  export * from './LabelsToSearchParams';
30
+ export * from './Taints';
31
+ export * from './Tolerations';
@@ -188,7 +188,8 @@ export type TDynamicComponentsAppTypeMap = {
188
188
  allowClearEditSelect?: boolean;
189
189
  endpoint?: string;
190
190
  pathToValue?: string;
191
- editModalWidth?: number;
191
+ editModalWidth?: number | string;
192
+ paddingContainerEnd?: string;
192
193
  };
193
194
  LabelsToSearchParams: {
194
195
  id: number | string;
@@ -196,4 +197,39 @@ export type TDynamicComponentsAppTypeMap = {
196
197
  jsonPathToLabels: string;
197
198
  linkPrefix: string;
198
199
  } & Omit<LinkProps, 'id' | 'children' | 'href'>;
200
+ Taints: {
201
+ id: number | string;
202
+ reqIndex: string;
203
+ jsonPathToArray: string;
204
+ text: string;
205
+ errorText: string;
206
+ style?: CSSProperties;
207
+ notificationSuccessMessage?: string;
208
+ notificationSuccessMessageDescription?: string;
209
+ modalTitle?: string;
210
+ modalDescriptionText?: string;
211
+ inputLabel?: string;
212
+ containerStyle?: CSSProperties;
213
+ endpoint?: string;
214
+ pathToValue?: string;
215
+ editModalWidth?: number | string;
216
+ cols: number[];
217
+ };
218
+ Tolerations: {
219
+ id: number | string;
220
+ reqIndex: string;
221
+ jsonPathToArray: string;
222
+ text: string;
223
+ errorText: string;
224
+ containerStyle?: CSSProperties;
225
+ notificationSuccessMessage?: string;
226
+ notificationSuccessMessageDescription?: string;
227
+ modalTitle?: string;
228
+ modalDescriptionText?: string;
229
+ inputLabel?: string;
230
+ endpoint?: string;
231
+ pathToValue?: string;
232
+ editModalWidth?: number | string;
233
+ cols: number[];
234
+ };
199
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.96",
3
+ "version": "0.0.1-alpha.98",
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",