@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.2 → 0.0.1-alpha.21
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 +18741 -38983
- package/dist/openapi-k8s-toolkit.es.js.map +1 -0
- package/dist/openapi-k8s-toolkit.umd.js +381 -417
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -0
- package/dist/types/api/forms.d.ts +12 -0
- package/dist/types/api/getApiResource.d.ts +17 -0
- package/dist/types/api/getApiResourceTypes.d.ts +9 -0
- package/dist/types/api/getBuiltinResource.d.ts +13 -0
- package/dist/types/api/getBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/api/getClusterList.d.ts +3 -0
- package/dist/types/api/getCrdData.d.ts +6 -0
- package/dist/types/api/getCrdResource.d.ts +16 -0
- package/dist/types/api/getDirectUnknownResource.d.ts +4 -0
- package/dist/types/api/getSwagger.d.ts +5 -0
- package/dist/types/api/permissions.d.ts +14 -0
- package/dist/types/components/atoms/DeleteModal/DeleteModal.d.ts +7 -0
- package/dist/types/components/atoms/DeleteModal/index.d.ts +2 -0
- package/dist/types/components/atoms/DeleteModalMany/DeleteModalMany.d.ts +9 -0
- package/dist/types/components/atoms/DeleteModalMany/index.d.ts +2 -0
- package/dist/types/components/atoms/Spacer/Spacer.d.ts +7 -0
- package/dist/types/components/atoms/Spacer/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/TreeWithSearch.d.ts +7 -0
- package/dist/types/components/atoms/TreeWithSearch/index.d.ts +2 -0
- package/dist/types/components/atoms/TreeWithSearch/styled.d.ts +276 -0
- package/dist/types/components/atoms/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/CursorPointerText.d.ts +7 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CursorPointerText/styled.d.ts +276 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/styled.d.ts +553 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +11 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/styled.d.ts +277 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/PossibleHiddenContainer.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +49 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +6 -0
- package/dist/types/components/molecules/BlackholeForm/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/styled.d.ts +548 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +22 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +13 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +20 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +18 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +19 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/YamlEditor.d.ts +8 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/styled.d.ts +276 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +15 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/index.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/styled.d.ts +276 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +9 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +31 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/guards.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/index.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +1112 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +195 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +45 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/guards.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/helpers.d.ts +16 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts +4 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/utils.d.ts +43 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/index.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +30 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/FilterDropdown/FilterDropdown.d.ts +11 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/FilterDropdown/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/ShortenedTextWithTooltip.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/styled.d.ts +9 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TableComponents/TableComponents.d.ts +284 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TableComponents/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TextAlignContainer/TextAlignContainer.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TextAlignContainer/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +312 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TinyButton/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TrimmedTags/TrimmedTags.d.ts +7 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/TrimmedTags/index.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/atoms/index.d.ts +6 -0
- package/dist/types/components/molecules/EnrichedTable/index.d.ts +3 -0
- package/dist/types/components/molecules/EnrichedTable/types.d.ts +16 -0
- package/dist/types/components/molecules/EnrichedTable/utils.d.ts +17 -0
- package/dist/types/components/molecules/EnrichedTableProvider/EnrichedTableProvider.d.ts +45 -0
- package/dist/types/components/molecules/EnrichedTableProvider/index.d.ts +3 -0
- package/dist/types/components/molecules/EnrichedTableProvider/utils.d.ts +25 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +16 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/styled.d.ts +276 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/types.d.ts +17 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/utils.d.ts +13 -0
- package/dist/types/components/molecules/ManageableSidebar/ManageableSidebar.d.ts +17 -0
- package/dist/types/components/molecules/ManageableSidebar/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableSidebar/styled.d.ts +322 -0
- package/dist/types/components/molecules/ManageableSidebar/types.d.ts +18 -0
- package/dist/types/components/molecules/ManageableSidebar/utils.d.ts +14 -0
- package/dist/types/components/molecules/index.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/AntdCard.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/AntdCol.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/AntdFlex.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/AntdRow.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/AntdText.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/MultiQuery.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/ParsedText.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/PartsOfUrl.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +32 -0
- package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +7 -0
- package/dist/types/components/organisms/DynamicRenderer/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +6 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/multiQueryProvider.d.ts +17 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/partsOfUrlContext.d.ts +9 -0
- package/dist/types/components/organisms/index.d.ts +3 -0
- package/dist/types/hooks/useApiResource.d.ts +28 -0
- package/dist/types/hooks/useApisResourceTypes.d.ts +30 -0
- package/dist/types/hooks/useBuiltinResource.d.ts +24 -0
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +4 -0
- package/dist/types/hooks/useClusterList.d.ts +3 -0
- package/dist/types/hooks/useCrdData.d.ts +26 -0
- package/dist/types/hooks/useCrdResource.d.ts +39 -0
- package/dist/types/hooks/useDirectUnknownResource.d.ts +7 -0
- package/dist/types/hooks/usePermissions.d.ts +13 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/localTypes/JSON.d.ts +3 -0
- package/dist/types/localTypes/api.d.ts +8 -0
- package/dist/types/localTypes/clusterList.d.ts +7 -0
- package/dist/types/localTypes/dynamicRender.d.ts +29 -0
- package/dist/types/localTypes/form.d.ts +27 -0
- package/dist/types/localTypes/formExtensions.d.ts +71 -0
- package/dist/types/localTypes/k8s.d.ts +100 -0
- package/dist/types/localTypes/richTable.d.ts +31 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/dist/types/utils/createContextFactory/createContextFactory.d.ts +7 -0
- package/dist/types/utils/createContextFactory/index.d.ts +1 -0
- package/dist/types/utils/filterSelectOptions/filterSelectOptions.d.ts +2 -0
- package/dist/types/utils/filterSelectOptions/index.d.ts +1 -0
- package/dist/types/utils/getAllPathsFromObj/getAllPathsFromObj.d.ts +3 -0
- package/dist/types/utils/getAllPathsFromObj/index.d.ts +1 -0
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +54 -0
- package/dist/types/utils/getGroupsByCategory/index.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/getPrefixSubArrays.d.ts +1 -0
- package/dist/types/utils/getPrefixSubArrays/index.d.ts +1 -0
- package/dist/types/utils/getStringByName/getStringByName.d.ts +2 -0
- package/dist/types/utils/getStringByName/index.d.ts +1 -0
- package/dist/types/utils/groupsToTreeData/groupsToTreeData.d.ts +7 -0
- package/dist/types/utils/groupsToTreeData/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +17 -0
- package/dist/types/utils/isFlatObject/index.d.ts +1 -0
- package/dist/types/utils/isFlatObject/isFlatObject.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/index.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/nestedStringsArrayInclude.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/index.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.d.ts +3 -0
- package/dist/types/utils/openApi/index.d.ts +1 -0
- package/dist/types/utils/openApi/openApi.d.ts +17 -0
- package/dist/types/utils/overwriteMatchingKeys/index.d.ts +1 -0
- package/dist/types/utils/overwriteMatchingKeys/overwriteMatchingKeys.d.ts +3 -0
- package/dist/types/utils/parseColumnsOverrides/guards.d.ts +21 -0
- package/dist/types/utils/parseColumnsOverrides/index.d.ts +2 -0
- package/dist/types/utils/parseColumnsOverrides/parseColumnsOverrides.d.ts +23 -0
- package/dist/types/utils/parseForQuotaValues/index.d.ts +1 -0
- package/dist/types/utils/parseForQuotaValues/parseForQuotaValues.d.ts +4 -0
- package/dist/types/utils/prepareTableMappings/index.d.ts +1 -0
- package/dist/types/utils/prepareTableMappings/prepareTableMappings.d.ts +20 -0
- package/dist/types/utils/prepareTemplate/index.d.ts +1 -0
- package/dist/types/utils/prepareTemplate/prepareTemplate.d.ts +4 -0
- package/dist/types/utils/prepareTemplate/prepareTemplate.test.d.ts +1 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/index.d.ts +1 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/prepareUrlsToFetchForDynamicRenderer.d.ts +4 -0
- package/dist/types/utils/removeEmptyFormValues/index.d.ts +1 -0
- package/dist/types/utils/removeEmptyFormValues/removeEmptyFormValues.d.ts +4 -0
- package/package.json +26 -15
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
+
import { TListInputCustomProps, TRangeInputCustomProps } from '../../../../../localTypes/formExtensions';
|
|
3
|
+
import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from '../../../../../localTypes/form';
|
|
4
|
+
export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, namespaceData, isAdditionalProperties, removeField, persistedControls, }: {
|
|
5
|
+
name: TFormName;
|
|
6
|
+
arrKey?: number | undefined;
|
|
7
|
+
arrName?: TFormName | undefined;
|
|
8
|
+
persistName?: TFormName | undefined;
|
|
9
|
+
required?: string[] | undefined;
|
|
10
|
+
forceNonRequired?: boolean | undefined;
|
|
11
|
+
isHidden?: boolean | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
namespaceData?: TNamespaceData;
|
|
14
|
+
isAdditionalProperties?: boolean | undefined;
|
|
15
|
+
removeField: ({ path }: {
|
|
16
|
+
path: TFormName;
|
|
17
|
+
}) => void;
|
|
18
|
+
persistedControls: TPersistedControls;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const getEnumStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, isAdditionalProperties, removeField, options, persistedControls, }: {
|
|
21
|
+
name: TFormName;
|
|
22
|
+
arrKey?: number | undefined;
|
|
23
|
+
arrName?: TFormName | undefined;
|
|
24
|
+
persistName?: TFormName | undefined;
|
|
25
|
+
required?: string[] | undefined;
|
|
26
|
+
forceNonRequired?: boolean | undefined;
|
|
27
|
+
isHidden?: boolean | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
isAdditionalProperties?: boolean | undefined;
|
|
30
|
+
removeField: ({ path }: {
|
|
31
|
+
path: TFormName;
|
|
32
|
+
}) => void;
|
|
33
|
+
options: string[];
|
|
34
|
+
persistedControls: TPersistedControls;
|
|
35
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const getNumberFormItemFromSwagger: ({ isNumber, name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, isAdditionalProperties, removeField, persistedControls, }: {
|
|
37
|
+
isNumber?: boolean | undefined;
|
|
38
|
+
name: TFormName;
|
|
39
|
+
arrKey?: number | undefined;
|
|
40
|
+
arrName?: TFormName | undefined;
|
|
41
|
+
persistName?: TFormName | undefined;
|
|
42
|
+
required?: string[] | undefined;
|
|
43
|
+
forceNonRequired?: boolean | undefined;
|
|
44
|
+
isHidden?: boolean | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
isAdditionalProperties?: boolean | undefined;
|
|
47
|
+
removeField: ({ path }: {
|
|
48
|
+
path: TFormName;
|
|
49
|
+
}) => void;
|
|
50
|
+
persistedControls: TPersistedControls;
|
|
51
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const getRangeInputFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, isEdit, persistedControls, customProps, urlParams, }: {
|
|
53
|
+
name: TFormName;
|
|
54
|
+
arrKey?: number | undefined;
|
|
55
|
+
arrName?: TFormName | undefined;
|
|
56
|
+
persistName?: TFormName | undefined;
|
|
57
|
+
required?: string[] | undefined;
|
|
58
|
+
forceNonRequired?: boolean | undefined;
|
|
59
|
+
isHidden?: boolean | undefined;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
isEdit: boolean;
|
|
62
|
+
persistedControls: TPersistedControls;
|
|
63
|
+
customProps: TRangeInputCustomProps;
|
|
64
|
+
urlParams: TUrlParams;
|
|
65
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare const getListInputFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, isAdditionalProperties, removeField, persistedControls, customProps, urlParams, }: {
|
|
67
|
+
name: TFormName;
|
|
68
|
+
arrKey?: number | undefined;
|
|
69
|
+
arrName?: TFormName | undefined;
|
|
70
|
+
persistName?: TFormName | undefined;
|
|
71
|
+
required?: string[] | undefined;
|
|
72
|
+
forceNonRequired?: boolean | undefined;
|
|
73
|
+
isHidden?: boolean | undefined;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
isAdditionalProperties?: boolean | undefined;
|
|
76
|
+
removeField: ({ path }: {
|
|
77
|
+
path: TFormName;
|
|
78
|
+
}) => void;
|
|
79
|
+
persistedControls: TPersistedControls;
|
|
80
|
+
customProps: TListInputCustomProps;
|
|
81
|
+
urlParams: TUrlParams;
|
|
82
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
export declare const getBooleanFormItemFromSwagger: ({ name, arrKey, arrName, isHidden, description, makeValueUndefined, isAdditionalProperties, removeField, }: {
|
|
84
|
+
name: TFormName;
|
|
85
|
+
arrKey?: number | undefined;
|
|
86
|
+
arrName?: TFormName | undefined;
|
|
87
|
+
isHidden?: boolean | undefined;
|
|
88
|
+
description?: string | undefined;
|
|
89
|
+
makeValueUndefined?: ((path: TFormName) => void) | undefined;
|
|
90
|
+
isAdditionalProperties?: boolean | undefined;
|
|
91
|
+
removeField: ({ path }: {
|
|
92
|
+
path: TFormName;
|
|
93
|
+
}) => void;
|
|
94
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare const getArrayFormItemFromSwagger: ({ schema, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, isHidden, description, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, urlParams, }: {
|
|
96
|
+
schema: OpenAPIV2.SchemaObject;
|
|
97
|
+
name: TFormName;
|
|
98
|
+
arrKey?: number | undefined;
|
|
99
|
+
arrName?: TFormName | undefined;
|
|
100
|
+
expandName?: TFormName | undefined;
|
|
101
|
+
persistName?: TFormName | undefined;
|
|
102
|
+
required?: string[] | undefined;
|
|
103
|
+
forceNonRequired?: boolean | undefined;
|
|
104
|
+
isHidden?: boolean | undefined;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
makeValueUndefined?: ((path: TFormName) => void) | undefined;
|
|
107
|
+
addField: ({ path, name, type, items, nestedProperties, required, }: {
|
|
108
|
+
path: TFormName;
|
|
109
|
+
name: string;
|
|
110
|
+
type: string;
|
|
111
|
+
items?: {
|
|
112
|
+
type: string;
|
|
113
|
+
} | undefined;
|
|
114
|
+
nestedProperties?: OpenAPIV2.SchemaObject['properties'];
|
|
115
|
+
required?: string | undefined;
|
|
116
|
+
}) => void;
|
|
117
|
+
isAdditionalProperties?: boolean | undefined;
|
|
118
|
+
removeField: ({ path }: {
|
|
119
|
+
path: TFormName;
|
|
120
|
+
}) => void;
|
|
121
|
+
isEdit: boolean;
|
|
122
|
+
expandedControls: TExpandedControls;
|
|
123
|
+
persistedControls: TPersistedControls;
|
|
124
|
+
urlParams: TUrlParams;
|
|
125
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
126
|
+
export declare const getObjectFormItemsDraft: ({ properties, name, arrKey, arrName, expandName, persistName, required, forceNonRequired, isHidden, hiddenPaths, description, namespaceData, makeValueUndefined, addField, removeField, isEdit, expandedControls, persistedControls, urlParams, }: {
|
|
127
|
+
properties: {
|
|
128
|
+
[name: string]: OpenAPIV2.SchemaObject;
|
|
129
|
+
};
|
|
130
|
+
name: TFormName;
|
|
131
|
+
arrKey?: number | undefined;
|
|
132
|
+
arrName?: TFormName | undefined;
|
|
133
|
+
persistName?: TFormName | undefined;
|
|
134
|
+
expandName?: TFormName | undefined;
|
|
135
|
+
required?: (string | number)[] | undefined;
|
|
136
|
+
forceNonRequired?: boolean | undefined;
|
|
137
|
+
isHidden?: boolean | undefined;
|
|
138
|
+
hiddenPaths?: string[][] | undefined;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
namespaceData?: TNamespaceData;
|
|
141
|
+
makeValueUndefined?: ((path: TFormName) => void) | undefined;
|
|
142
|
+
addField: ({ path, name, type, items, nestedProperties, required, }: {
|
|
143
|
+
path: TFormName;
|
|
144
|
+
name: string;
|
|
145
|
+
type: string;
|
|
146
|
+
items?: {
|
|
147
|
+
type: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
nestedProperties?: OpenAPIV2.SchemaObject['properties'];
|
|
150
|
+
required?: string | undefined;
|
|
151
|
+
}) => void;
|
|
152
|
+
removeField: ({ path }: {
|
|
153
|
+
path: TFormName;
|
|
154
|
+
}) => void;
|
|
155
|
+
isEdit: boolean;
|
|
156
|
+
expandedControls: TExpandedControls;
|
|
157
|
+
persistedControls: TPersistedControls;
|
|
158
|
+
urlParams: TUrlParams;
|
|
159
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
160
|
+
export declare const getObjectFormItemFromSwagger: ({ properties, name, arrKey, arrName, expandName, persistName, selfRequired, required, forceNonRequired, isHidden, hiddenPaths, description, namespaceData, makeValueUndefined, addField, isAdditionalProperties, removeField, isEdit, expandedControls, persistedControls, urlParams, }: {
|
|
161
|
+
properties: {
|
|
162
|
+
[name: string]: OpenAPIV2.SchemaObject;
|
|
163
|
+
};
|
|
164
|
+
name: TFormName;
|
|
165
|
+
arrKey?: number | undefined;
|
|
166
|
+
arrName?: TFormName | undefined;
|
|
167
|
+
expandName?: TFormName | undefined;
|
|
168
|
+
persistName?: TFormName | undefined;
|
|
169
|
+
selfRequired?: boolean | undefined;
|
|
170
|
+
required?: (string | number)[] | undefined;
|
|
171
|
+
forceNonRequired?: boolean | undefined;
|
|
172
|
+
isHidden?: boolean | undefined;
|
|
173
|
+
hiddenPaths?: string[][] | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
namespaceData?: TNamespaceData;
|
|
176
|
+
makeValueUndefined?: ((path: TFormName) => void) | undefined;
|
|
177
|
+
addField: ({ path, name, type, items, nestedProperties, required, }: {
|
|
178
|
+
path: TFormName;
|
|
179
|
+
name: string;
|
|
180
|
+
type: string;
|
|
181
|
+
items?: {
|
|
182
|
+
type: string;
|
|
183
|
+
} | undefined;
|
|
184
|
+
nestedProperties?: OpenAPIV2.SchemaObject['properties'];
|
|
185
|
+
required?: string | undefined;
|
|
186
|
+
}) => void;
|
|
187
|
+
isAdditionalProperties?: boolean | undefined;
|
|
188
|
+
removeField: ({ path }: {
|
|
189
|
+
path: TFormName;
|
|
190
|
+
}) => void;
|
|
191
|
+
isEdit: boolean;
|
|
192
|
+
expandedControls: TExpandedControls;
|
|
193
|
+
persistedControls: TPersistedControls;
|
|
194
|
+
urlParams: TUrlParams;
|
|
195
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TJSON } from '../../../../../localTypes/JSON';
|
|
3
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
4
|
+
import { TUrlParams } from '../../../../../localTypes/form';
|
|
5
|
+
import { TFormsPrefillsData, TFormsOverridesData } from '../../../../../localTypes/formExtensions';
|
|
6
|
+
export type TBlackholeFormDataProviderProps = {
|
|
7
|
+
theme: 'light' | 'dark';
|
|
8
|
+
cluster: string;
|
|
9
|
+
urlParams: TUrlParams;
|
|
10
|
+
urlParamsForPermissions: {
|
|
11
|
+
apiGroup?: string;
|
|
12
|
+
typeName?: string;
|
|
13
|
+
};
|
|
14
|
+
swagger: OpenAPIV2.Document | undefined;
|
|
15
|
+
namespacesData?: {
|
|
16
|
+
items: ({
|
|
17
|
+
metadata: {
|
|
18
|
+
name: string;
|
|
19
|
+
} & unknown;
|
|
20
|
+
} & unknown)[];
|
|
21
|
+
};
|
|
22
|
+
formsPrefillsData?: TFormsPrefillsData;
|
|
23
|
+
formsOverridesData?: TFormsOverridesData;
|
|
24
|
+
data: {
|
|
25
|
+
type: 'builtin';
|
|
26
|
+
typeName: string;
|
|
27
|
+
prefillValuesSchema?: TJSON;
|
|
28
|
+
prefillValueNamespaceOnly?: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: 'apis';
|
|
31
|
+
apiGroup: string;
|
|
32
|
+
apiVersion: string;
|
|
33
|
+
typeName: string;
|
|
34
|
+
prefillValuesSchema?: TJSON;
|
|
35
|
+
prefillValueNamespaceOnly?: string;
|
|
36
|
+
};
|
|
37
|
+
isCreate?: boolean;
|
|
38
|
+
backlink?: string | null;
|
|
39
|
+
modeData?: {
|
|
40
|
+
current: string;
|
|
41
|
+
onChange: (value: string) => void;
|
|
42
|
+
onDisabled: () => void;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const BlackholeFormDataProvider: FC<TBlackholeFormDataProviderProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
+
import { TJSON } from '../../../../../localTypes/JSON';
|
|
3
|
+
export declare const getPathsWithAdditionalProperties: ({ properties, currentPath, result, }: {
|
|
4
|
+
properties: OpenAPIV2.SchemaObject['properties'];
|
|
5
|
+
currentPath?: (string | number)[] | undefined;
|
|
6
|
+
result?: (string | number)[][] | undefined;
|
|
7
|
+
}) => (string | number)[][];
|
|
8
|
+
export declare const buildNestedObject: ({ path, defaultValue, }: {
|
|
9
|
+
path: (string | number)[];
|
|
10
|
+
defaultValue: unknown;
|
|
11
|
+
}) => Record<string, unknown>;
|
|
12
|
+
export declare const getPropertiesToMerge: ({ pathsWithAdditionalProperties, prefillValuesSchema, bodyParametersSchema, }: {
|
|
13
|
+
pathsWithAdditionalProperties: (string | number)[][];
|
|
14
|
+
prefillValuesSchema?: TJSON | undefined;
|
|
15
|
+
bodyParametersSchema: any;
|
|
16
|
+
}) => Record<string, unknown>;
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { BlackholeFormDataProvider } from './BlackholeFormDataProvider';
|
|
2
|
+
export type { TBlackholeFormDataProviderProps } from './BlackholeFormDataProvider';
|
|
3
|
+
export { isFormOverride } from './guards';
|
|
4
|
+
export { getSwaggerPathAndIsNamespaceScoped, getBodyParametersSchema, processOverride } from './utils';
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/utils.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TJSON } from '../../../../../localTypes/JSON';
|
|
2
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
3
|
+
import { TFormOverride } from '../../../../../localTypes/formExtensions';
|
|
4
|
+
export declare const getSwaggerPathAndIsNamespaceScoped: ({ swagger, data, }: {
|
|
5
|
+
swagger: OpenAPIV2.Document;
|
|
6
|
+
data: {
|
|
7
|
+
type: 'builtin';
|
|
8
|
+
typeName: string;
|
|
9
|
+
prefillValuesSchema?: TJSON;
|
|
10
|
+
prefillValueNamespaceOnly?: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'apis';
|
|
13
|
+
apiGroup: string;
|
|
14
|
+
apiVersion: string;
|
|
15
|
+
typeName: string;
|
|
16
|
+
prefillValuesSchema?: TJSON;
|
|
17
|
+
prefillValueNamespaceOnly?: string;
|
|
18
|
+
};
|
|
19
|
+
}) => {
|
|
20
|
+
swaggerPath: string;
|
|
21
|
+
isNamespaced: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const getBodyParametersSchema: ({ swagger, swaggerPath, }: {
|
|
24
|
+
swagger: OpenAPIV2.Document;
|
|
25
|
+
swaggerPath: string;
|
|
26
|
+
}) => {
|
|
27
|
+
bodyParametersSchema: any;
|
|
28
|
+
kindName?: string | undefined;
|
|
29
|
+
error?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const processOverride: ({ specificCustomOverrides, newProperties, bodyParametersSchema, }: {
|
|
32
|
+
specificCustomOverrides?: TFormOverride | undefined;
|
|
33
|
+
newProperties: any;
|
|
34
|
+
bodyParametersSchema: any;
|
|
35
|
+
}) => {
|
|
36
|
+
hiddenPaths?: string[][] | undefined;
|
|
37
|
+
expandedPaths?: string[][] | undefined;
|
|
38
|
+
persistedPaths?: string[][] | undefined;
|
|
39
|
+
propertiesToApply: {
|
|
40
|
+
[name: string]: OpenAPIV2.SchemaObject;
|
|
41
|
+
};
|
|
42
|
+
requiredToApply?: string[] | undefined;
|
|
43
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
import { TableProps, TablePaginationConfig } from 'antd';
|
|
3
|
+
import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from '../../../localTypes/richTable';
|
|
4
|
+
export type TEnrichedTableProps = {
|
|
5
|
+
theme: 'light' | 'dark';
|
|
6
|
+
baseprefix?: string;
|
|
7
|
+
dataSource: TableProps['dataSource'];
|
|
8
|
+
columns: TableProps['columns'];
|
|
9
|
+
pathToNavigate?: string;
|
|
10
|
+
recordKeysForNavigation?: string[];
|
|
11
|
+
additionalPrinterColumnsUndefinedValues?: TAdditionalPrinterColumnsUndefinedValues;
|
|
12
|
+
additionalPrinterColumnsTrimLengths?: TAdditionalPrinterColumnsTrimLengths;
|
|
13
|
+
additionalPrinterColumnsColWidths?: TAdditionalPrinterColumnsColWidths;
|
|
14
|
+
selectData?: {
|
|
15
|
+
onChange: (selectedRowKeys: React.Key[], selectedRowsData: {
|
|
16
|
+
name: string;
|
|
17
|
+
endpoint: string;
|
|
18
|
+
}[]) => void;
|
|
19
|
+
selectedRowKeys: React.Key[];
|
|
20
|
+
};
|
|
21
|
+
withoutControls?: boolean;
|
|
22
|
+
tableProps?: {
|
|
23
|
+
borderless?: boolean;
|
|
24
|
+
paginationPosition?: TablePaginationConfig['position'];
|
|
25
|
+
isTotalLeft?: boolean;
|
|
26
|
+
editIcon?: ReactNode;
|
|
27
|
+
deleteIcon?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const EnrichedTable: FC<TEnrichedTableProps>;
|
package/dist/types/components/molecules/EnrichedTable/atoms/FilterDropdown/FilterDropdown.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FC, Key } from 'react';
|
|
2
|
+
import { FilterConfirmProps } from 'antd/es/table/interface';
|
|
3
|
+
type TFilterDropdownProps = {
|
|
4
|
+
setSelectedKeys: (selectedKeys: React.Key[]) => void;
|
|
5
|
+
selectedKeys: Key[];
|
|
6
|
+
confirm: (param?: FilterConfirmProps | undefined) => void;
|
|
7
|
+
close: () => void;
|
|
8
|
+
clearFilters?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FilterDropdown: FC<TFilterDropdownProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterDropdown';
|
package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ShortenedTextWithTooltip';
|
package/dist/types/components/molecules/EnrichedTable/atoms/ShortenedTextWithTooltip/styled.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TShortenedTextProps = {
|
|
3
|
+
$maxWidth: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const ShortenedText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TShortenedTextProps>>;
|
|
6
|
+
export declare const Styled: {
|
|
7
|
+
ShortenedText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TShortenedTextProps>>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|