@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.97 → 0.0.1-alpha.99

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 (32) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +1123 -126
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +1122 -125
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/Annotations.d.ts +6 -0
  6. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/index.d.ts +1 -0
  7. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/EditModal.d.ts +19 -0
  8. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/index.d.ts +1 -0
  9. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/styled.d.ts +23 -0
  10. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/index.d.ts +1 -0
  11. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/types.d.ts +1 -0
  12. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/utils.d.ts +6 -0
  13. package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/EditModal.d.ts +3 -1
  14. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/Taints.d.ts +6 -0
  15. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/index.d.ts +1 -0
  16. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/EditModal.d.ts +19 -0
  17. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/index.d.ts +1 -0
  18. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/styled.d.ts +23 -0
  19. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/index.d.ts +1 -0
  20. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/types.d.ts +6 -0
  21. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/utils.d.ts +9 -0
  22. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/Tolerations.d.ts +6 -0
  23. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/index.d.ts +1 -0
  24. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/EditModal.d.ts +19 -0
  25. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/index.d.ts +1 -0
  26. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/styled.d.ts +23 -0
  27. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/index.d.ts +1 -0
  28. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/types.d.ts +8 -0
  29. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/utils.d.ts +8 -0
  30. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +3 -0
  31. package/dist/types/components/organisms/DynamicComponents/types.d.ts +61 -0
  32. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Annotations: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Annotations'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1,19 @@
1
+ import { FC, CSSProperties } from 'react';
2
+ import { TStringNumberRecord } from '../../types';
3
+ type TEditModalProps = {
4
+ open: boolean;
5
+ close: () => void;
6
+ values?: TStringNumberRecord;
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
+ modalDescriptionTextStyle?: CSSProperties;
16
+ inputLabelStyle?: CSSProperties;
17
+ };
18
+ export declare const EditModal: FC<TEditModalProps>;
19
+ 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 @@
1
+ export type TStringNumberRecord = Record<string, string>;
@@ -0,0 +1,6 @@
1
+ import { TStringNumberRecord } from './types';
2
+ export declare const getItemsInside: (value: any[]) => {
3
+ counter?: number;
4
+ annotations?: TStringNumberRecord;
5
+ error?: string;
6
+ };
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC, CSSProperties } from 'react';
2
2
  type TEditModalProps = {
3
3
  open: boolean;
4
4
  close: () => void;
@@ -13,6 +13,8 @@ type TEditModalProps = {
13
13
  pathToValue: string;
14
14
  editModalWidth?: number | string;
15
15
  paddingContainerEnd?: string;
16
+ modalDescriptionTextStyle?: CSSProperties;
17
+ inputLabelStyle?: CSSProperties;
16
18
  };
17
19
  export declare const EditModal: FC<TEditModalProps>;
18
20
  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,19 @@
1
+ import { FC, CSSProperties } 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
+ modalDescriptionTextStyle?: CSSProperties;
16
+ inputLabelStyle?: CSSProperties;
17
+ };
18
+ export declare const EditModal: FC<TEditModalProps>;
19
+ 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,19 @@
1
+ import { FC, CSSProperties } 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
+ modalDescriptionTextStyle?: CSSProperties;
16
+ inputLabelStyle?: CSSProperties;
17
+ };
18
+ export declare const EditModal: FC<TEditModalProps>;
19
+ 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,6 @@ 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';
32
+ export * from './Annotations';
@@ -182,7 +182,9 @@ export type TDynamicComponentsAppTypeMap = {
182
182
  notificationSuccessMessageDescription?: string;
183
183
  modalTitle?: string;
184
184
  modalDescriptionText?: string;
185
+ modalDescriptionTextStyle?: CSSProperties;
185
186
  inputLabel?: string;
187
+ inputLabelStyle?: CSSProperties;
186
188
  containerStyle?: CSSProperties;
187
189
  maxEditTagTextLength?: number;
188
190
  allowClearEditSelect?: boolean;
@@ -196,5 +198,64 @@ export type TDynamicComponentsAppTypeMap = {
196
198
  reqIndex: string;
197
199
  jsonPathToLabels: string;
198
200
  linkPrefix: string;
201
+ errorText: string;
199
202
  } & Omit<LinkProps, 'id' | 'children' | 'href'>;
203
+ Taints: {
204
+ id: number | string;
205
+ reqIndex: string;
206
+ jsonPathToArray: string;
207
+ text: string;
208
+ errorText: string;
209
+ style?: CSSProperties;
210
+ notificationSuccessMessage?: string;
211
+ notificationSuccessMessageDescription?: string;
212
+ modalTitle?: string;
213
+ modalDescriptionText?: string;
214
+ modalDescriptionTextStyle?: CSSProperties;
215
+ inputLabel?: string;
216
+ inputLabelStyle?: CSSProperties;
217
+ containerStyle?: CSSProperties;
218
+ endpoint?: string;
219
+ pathToValue?: string;
220
+ editModalWidth?: number | string;
221
+ cols: number[];
222
+ };
223
+ Tolerations: {
224
+ id: number | string;
225
+ reqIndex: string;
226
+ jsonPathToArray: string;
227
+ text: string;
228
+ errorText: string;
229
+ containerStyle?: CSSProperties;
230
+ notificationSuccessMessage?: string;
231
+ notificationSuccessMessageDescription?: string;
232
+ modalTitle?: string;
233
+ modalDescriptionText?: string;
234
+ modalDescriptionTextStyle?: CSSProperties;
235
+ inputLabel?: string;
236
+ inputLabelStyle?: CSSProperties;
237
+ endpoint?: string;
238
+ pathToValue?: string;
239
+ editModalWidth?: number | string;
240
+ cols: number[];
241
+ };
242
+ Annotations: {
243
+ id: number | string;
244
+ reqIndex: string;
245
+ jsonPathToObj: string;
246
+ text: string;
247
+ errorText: string;
248
+ containerStyle?: CSSProperties;
249
+ notificationSuccessMessage?: string;
250
+ notificationSuccessMessageDescription?: string;
251
+ modalTitle?: string;
252
+ modalDescriptionText?: string;
253
+ modalDescriptionTextStyle?: CSSProperties;
254
+ inputLabel?: string;
255
+ inputLabelStyle?: CSSProperties;
256
+ endpoint?: string;
257
+ pathToValue?: string;
258
+ editModalWidth?: number | string;
259
+ cols: number[];
260
+ };
200
261
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.97",
3
+ "version": "0.0.1-alpha.99",
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",