@dovetail-v2/refine 0.1.14-alpha.5 → 0.1.15-alpha.0

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 (226) hide show
  1. package/dist/{MonacoYamlDiffEditor-d3889aba.js → MonacoYamlDiffEditor-22b5ead6.js} +1 -1
  2. package/dist/{index-ee3bfb45.js → index-11293d19.js} +22 -14
  3. package/dist/refine.js +1 -1
  4. package/dist/refine.umd.cjs +21 -13
  5. package/lib/utils/string.d.ts +1 -0
  6. package/package.json +1 -1
  7. package/lib/components/CronJobDropdown/index.d.ts +0 -9
  8. package/lib/components/K8sDropdown/index.d.ts +0 -9
  9. package/lib/components/PodDropdown/index.d.ts +0 -9
  10. package/lib/components/ReplicasDropdown/index.d.ts +0 -9
  11. package/lib/components/Table/TableToolBar.d.ts +0 -9
  12. package/lib/components/Table/TableWidgets.d.ts +0 -6
  13. package/lib/components/WorkloadDropdown/index.d.ts +0 -9
  14. package/lib/src/App.d.ts +0 -3
  15. package/lib/src/Dovetail.d.ts +0 -18
  16. package/lib/src/components/Breadcrumb/index.d.ts +0 -6
  17. package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +0 -7
  18. package/lib/src/components/ConditionsTable/index.d.ts +0 -1
  19. package/lib/src/components/CreateButton/index.d.ts +0 -2
  20. package/lib/src/components/CronJobDropdown/index.d.ts +0 -9
  21. package/lib/src/components/CronjobJobsTable/index.d.ts +0 -8
  22. package/lib/src/components/DeleteButton/index.d.ts +0 -2
  23. package/lib/src/components/DeleteManyButton/index.d.ts +0 -4
  24. package/lib/src/components/DrawerShow/DrawerShow.d.ts +0 -9
  25. package/lib/src/components/DrawerShow/index.d.ts +0 -1
  26. package/lib/src/components/DurationTime/index.d.ts +0 -6
  27. package/lib/src/components/EditButton/index.d.ts +0 -2
  28. package/lib/src/components/EditField/index.d.ts +0 -15
  29. package/lib/src/components/ErrorContent/index.d.ts +0 -17
  30. package/lib/src/components/EventsTable/EventsTable.d.ts +0 -6
  31. package/lib/src/components/EventsTable/index.d.ts +0 -1
  32. package/lib/src/components/Form/FormModal.d.ts +0 -9
  33. package/lib/src/components/Form/RefineFormContent.d.ts +0 -12
  34. package/lib/src/components/Form/RefineFormPage.d.ts +0 -7
  35. package/lib/src/components/Form/YamlForm.d.ts +0 -29
  36. package/lib/src/components/Form/index.d.ts +0 -7
  37. package/lib/src/components/Form/type.d.ts +0 -17
  38. package/lib/src/components/Form/useFieldsConfig.d.ts +0 -4
  39. package/lib/src/components/Form/useReactHookForm.d.ts +0 -30
  40. package/lib/src/components/Form/useRefineForm.d.ts +0 -13
  41. package/lib/src/components/Form/useYamlForm.d.ts +0 -50
  42. package/lib/src/components/FormErrorAlert/index.d.ts +0 -9
  43. package/lib/src/components/FormLayout/index.d.ts +0 -7
  44. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +0 -6
  45. package/lib/src/components/FormWidgets/MetadataForm.d.ts +0 -2
  46. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +0 -51
  47. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -9
  48. package/lib/src/components/FormWidgets/index.d.ts +0 -4
  49. package/lib/src/components/FormWidgets/widget.d.ts +0 -5
  50. package/lib/src/components/ImageNames/index.d.ts +0 -5
  51. package/lib/src/components/IngressRulesComponent/index.d.ts +0 -5
  52. package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
  53. package/lib/src/components/IngressRulesTable/index.d.ts +0 -1
  54. package/lib/src/components/K8sDropdown/index.d.ts +0 -9
  55. package/lib/src/components/KeyValue/KeyValue.d.ts +0 -7
  56. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +0 -6
  57. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +0 -5
  58. package/lib/src/components/KeyValue/index.d.ts +0 -3
  59. package/lib/src/components/Layout/index.d.ts +0 -3
  60. package/lib/src/components/LinkFallback/index.d.ts +0 -4
  61. package/lib/src/components/ListPage/index.d.ts +0 -10
  62. package/lib/src/components/Menu/index.d.ts +0 -2
  63. package/lib/src/components/NamespacesFilter/index.d.ts +0 -11
  64. package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
  65. package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
  66. package/lib/src/components/PVCDistributeStorage/index.d.ts +0 -16
  67. package/lib/src/components/PageShow/PageShow.d.ts +0 -12
  68. package/lib/src/components/PageShow/index.d.ts +0 -1
  69. package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +0 -8
  70. package/lib/src/components/PodContainersTable/index.d.ts +0 -1
  71. package/lib/src/components/PodDropdown/index.d.ts +0 -9
  72. package/lib/src/components/PodLog/index.d.ts +0 -6
  73. package/lib/src/components/PodSelectorTable/index.d.ts +0 -6
  74. package/lib/src/components/PodShellModal/PodShell.d.ts +0 -18
  75. package/lib/src/components/PodShellModal/index.d.ts +0 -10
  76. package/lib/src/components/PortsTable/index.d.ts +0 -7
  77. package/lib/src/components/ReferenceLink/index.d.ts +0 -8
  78. package/lib/src/components/ReplicasDropdown/index.d.ts +0 -9
  79. package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +0 -8
  80. package/lib/src/components/ResourceCRUD/create/index.d.ts +0 -8
  81. package/lib/src/components/ResourceCRUD/index.d.ts +0 -4
  82. package/lib/src/components/ResourceCRUD/list/index.d.ts +0 -9
  83. package/lib/src/components/ResourceCRUD/show/index.d.ts +0 -9
  84. package/lib/src/components/ResourceFiledDisplays.d.ts +0 -7
  85. package/lib/src/components/ResourceLink/index.d.ts +0 -8
  86. package/lib/src/components/ResourceSelect/index.d.ts +0 -12
  87. package/lib/src/components/ResourceTable/index.d.ts +0 -9
  88. package/lib/src/components/ResourceUsageBar/index.d.ts +0 -8
  89. package/lib/src/components/Separator/index.d.ts +0 -2
  90. package/lib/src/components/ServiceComponents/index.d.ts +0 -10
  91. package/lib/src/components/Shell/ShellToolbar.d.ts +0 -16
  92. package/lib/src/components/Shell/index.d.ts +0 -74
  93. package/lib/src/components/ShowContent/ShowContent.d.ts +0 -18
  94. package/lib/src/components/ShowContent/fields.d.ts +0 -76
  95. package/lib/src/components/ShowContent/groups.d.ts +0 -24
  96. package/lib/src/components/ShowContent/index.d.ts +0 -4
  97. package/lib/src/components/ShowContent/tabs.d.ts +0 -5
  98. package/lib/src/components/StateTag/StateTag.d.ts +0 -10
  99. package/lib/src/components/StateTag/index.d.ts +0 -1
  100. package/lib/src/components/Table/TableToolBar.d.ts +0 -8
  101. package/lib/src/components/Table/TableWidgets.d.ts +0 -6
  102. package/lib/src/components/Table/index.d.ts +0 -43
  103. package/lib/src/components/Tabs/index.d.ts +0 -10
  104. package/lib/src/components/Tags/index.d.ts +0 -6
  105. package/lib/src/components/TextTags/index.d.ts +0 -6
  106. package/lib/src/components/Time/index.d.ts +0 -8
  107. package/lib/src/components/ValueDisplay/index.d.ts +0 -9
  108. package/lib/src/components/WorkloadDropdown/index.d.ts +0 -9
  109. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
  110. package/lib/src/components/WorkloadPodsTable/index.d.ts +0 -1
  111. package/lib/src/components/WorkloadReplicas/index.d.ts +0 -17
  112. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
  113. package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
  114. package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
  115. package/lib/src/components/YamlEditor/index.d.ts +0 -1
  116. package/lib/src/components/YamlEditor/style.d.ts +0 -11
  117. package/lib/src/components/YamlEditor/yaml.worker.d.ts +0 -1
  118. package/lib/src/components/index.d.ts +0 -49
  119. package/lib/src/constants/auth.d.ts +0 -5
  120. package/lib/src/constants/index.d.ts +0 -3
  121. package/lib/src/constants/k8s.d.ts +0 -522
  122. package/lib/src/constants/state.d.ts +0 -15
  123. package/lib/src/contexts/component.d.ts +0 -8
  124. package/lib/src/contexts/configs.d.ts +0 -4
  125. package/lib/src/contexts/global-store.d.ts +0 -6
  126. package/lib/src/contexts/index.d.ts +0 -3
  127. package/lib/src/hooks/index.d.ts +0 -8
  128. package/lib/src/hooks/useDeleteModal/index.d.ts +0 -1
  129. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -8
  130. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
  131. package/lib/src/hooks/useDownloadYAML.d.ts +0 -7
  132. package/lib/src/hooks/useEagleTable/columns.d.ts +0 -47
  133. package/lib/src/hooks/useEagleTable/index.d.ts +0 -2
  134. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +0 -56
  135. package/lib/src/hooks/useEdit.d.ts +0 -4
  136. package/lib/src/hooks/useGlobalStore.d.ts +0 -3
  137. package/lib/src/hooks/useK8sYamlEditor.d.ts +0 -5
  138. package/lib/src/hooks/useNamespaceRefineFilter.d.ts +0 -5
  139. package/lib/src/hooks/useOpenForm.d.ts +0 -8
  140. package/lib/src/hooks/useSchema.d.ts +0 -21
  141. package/lib/src/hooks/useSubmitForm.d.ts +0 -14
  142. package/lib/src/hooks/useTableData.d.ts +0 -20
  143. package/lib/src/i18n.d.ts +0 -371
  144. package/lib/src/index.d.ts +0 -12
  145. package/lib/src/locales/en-US/index.d.ts +0 -175
  146. package/lib/src/locales/index.d.ts +0 -2
  147. package/lib/src/locales/zh-CN/index.d.ts +0 -193
  148. package/lib/src/main.d.ts +0 -3
  149. package/lib/src/models/cronjob-model.d.ts +0 -15
  150. package/lib/src/models/daemonset-model.d.ts +0 -15
  151. package/lib/src/models/deployment-model.d.ts +0 -13
  152. package/lib/src/models/event-model.d.ts +0 -7
  153. package/lib/src/models/index.d.ts +0 -19
  154. package/lib/src/models/ingress-model.d.ts +0 -20
  155. package/lib/src/models/job-model.d.ts +0 -20
  156. package/lib/src/models/network-policy-model.d.ts +0 -9
  157. package/lib/src/models/node-model.d.ts +0 -17
  158. package/lib/src/models/persistent-volume-claim.d.ts +0 -13
  159. package/lib/src/models/persistent-volume.d.ts +0 -13
  160. package/lib/src/models/pod-metrics-model.d.ts +0 -8
  161. package/lib/src/models/pod-model.d.ts +0 -20
  162. package/lib/src/models/resource-model.d.ts +0 -21
  163. package/lib/src/models/service-model.d.ts +0 -24
  164. package/lib/src/models/statefulset-model.d.ts +0 -13
  165. package/lib/src/models/storage-class.d.ts +0 -16
  166. package/lib/src/models/types/index.d.ts +0 -1
  167. package/lib/src/models/types/metric.d.ts +0 -25
  168. package/lib/src/models/workload-base-model.d.ts +0 -12
  169. package/lib/src/models/workload-model.d.ts +0 -18
  170. package/lib/src/pages/configmaps/index.d.ts +0 -4
  171. package/lib/src/pages/cronjobs/create/index.d.ts +0 -3
  172. package/lib/src/pages/cronjobs/index.d.ts +0 -3
  173. package/lib/src/pages/cronjobs/list/index.d.ts +0 -3
  174. package/lib/src/pages/cronjobs/show/index.d.ts +0 -3
  175. package/lib/src/pages/daemonsets/create/index.d.ts +0 -3
  176. package/lib/src/pages/daemonsets/index.d.ts +0 -3
  177. package/lib/src/pages/daemonsets/list/index.d.ts +0 -3
  178. package/lib/src/pages/daemonsets/show/index.d.ts +0 -3
  179. package/lib/src/pages/deployments/index.d.ts +0 -2
  180. package/lib/src/pages/deployments/list/index.d.ts +0 -3
  181. package/lib/src/pages/deployments/show/index.d.ts +0 -3
  182. package/lib/src/pages/ingresses/index.d.ts +0 -4
  183. package/lib/src/pages/jobs/index.d.ts +0 -4
  184. package/lib/src/pages/networkPolicies/index.d.ts +0 -4
  185. package/lib/src/pages/nodes/index.d.ts +0 -2
  186. package/lib/src/pages/nodes/list/index.d.ts +0 -3
  187. package/lib/src/pages/nodes/show/index.d.ts +0 -3
  188. package/lib/src/pages/persistentvolumeclaims/index.d.ts +0 -4
  189. package/lib/src/pages/persistentvolumes/index.d.ts +0 -4
  190. package/lib/src/pages/pods/create/index.d.ts +0 -3
  191. package/lib/src/pages/pods/index.d.ts +0 -3
  192. package/lib/src/pages/pods/list/index.d.ts +0 -3
  193. package/lib/src/pages/pods/show/index.d.ts +0 -3
  194. package/lib/src/pages/secrets/index.d.ts +0 -4
  195. package/lib/src/pages/services/index.d.ts +0 -4
  196. package/lib/src/pages/statefulsets/index.d.ts +0 -4
  197. package/lib/src/pages/storageclasses/form/index.d.ts +0 -9
  198. package/lib/src/pages/storageclasses/index.d.ts +0 -48
  199. package/lib/src/plugins/index.d.ts +0 -4
  200. package/lib/src/plugins/model-plugin.d.ts +0 -13
  201. package/lib/src/plugins/relation-plugin.d.ts +0 -26
  202. package/lib/src/plugins/type.d.ts +0 -8
  203. package/lib/src/providers/index.d.ts +0 -1
  204. package/lib/src/providers/router-provider/index.d.ts +0 -21
  205. package/lib/src/styles/button.d.ts +0 -1
  206. package/lib/src/styles/modal.d.ts +0 -1
  207. package/lib/src/types/index.d.ts +0 -1
  208. package/lib/src/types/resource.d.ts +0 -62
  209. package/lib/src/utils/addId.d.ts +0 -3
  210. package/lib/src/utils/download.d.ts +0 -1
  211. package/lib/src/utils/error.d.ts +0 -20
  212. package/lib/src/utils/form.d.ts +0 -3
  213. package/lib/src/utils/index.d.ts +0 -1
  214. package/lib/src/utils/k8s.d.ts +0 -3
  215. package/lib/src/utils/labels.d.ts +0 -9
  216. package/lib/src/utils/match-selector.d.ts +0 -3
  217. package/lib/src/utils/openapi.d.ts +0 -40
  218. package/lib/src/utils/schema.d.ts +0 -18
  219. package/lib/src/utils/selector.d.ts +0 -3
  220. package/lib/src/utils/shell.d.ts +0 -16
  221. package/lib/src/utils/storage.d.ts +0 -13
  222. package/lib/src/utils/string.d.ts +0 -1
  223. package/lib/src/utils/time.d.ts +0 -13
  224. package/lib/src/utils/unit.d.ts +0 -12
  225. package/lib/src/utils/yaml.d.ts +0 -2
  226. package/lib/vite.config.d.ts +0 -2
@@ -1,30 +0,0 @@
1
- import { BaseRecord, HttpError, UseFormProps as UseFormCoreProps, UseFormReturnType as UseFormReturnTypeCore } from '@refinedev/core';
2
- import React from 'react';
3
- import { UseFormProps as UseHookFormProps, UseFormReturn, FieldValues } from 'react-hook-form';
4
- export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturn<TVariables, TContext> & {
5
- refineCore: UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
6
- saveButtonProps: {
7
- disabled: boolean;
8
- onClick: (e: React.BaseSyntheticEvent) => void;
9
- };
10
- };
11
- export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = {
12
- /**
13
- * Configuration object for the core of the [useForm](/docs/api-reference/core/hooks/useForm/)
14
- * @type [`UseFormCoreProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>`](/docs/api-reference/core/hooks/useForm/#properties)
15
- */
16
- refineCoreProps?: UseFormCoreProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
17
- /**
18
- * When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box.
19
- * @default `false*`
20
- */
21
- warnWhenUnsavedChanges?: boolean;
22
- /**
23
- * Disables server-side validation
24
- * @default false
25
- * @see {@link https://refine.dev/docs/advanced-tutorials/forms/server-side-form-validation/}
26
- */
27
- disableServerSideValidation?: boolean;
28
- transformApplyValues?: (values: TVariables) => TVariables;
29
- } & UseHookFormProps<TVariables, TContext>;
30
- export declare const useForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends FieldValues = FieldValues, TContext extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ refineCoreProps, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, disableServerSideValidation: disableServerSideValidationProp, transformApplyValues, ...rest }?: UseFormProps<TQueryFnData, TError, TVariables, TContext, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TContext, TData, TResponse, TResponseError>;
@@ -1,13 +0,0 @@
1
- import { ResourceConfig } from '../../types';
2
- import { UseFormProps } from './useReactHookForm';
3
- export declare const useRefineForm: (props: {
4
- config: ResourceConfig;
5
- id?: string;
6
- refineProps?: UseFormProps['refineCoreProps'];
7
- useFormProps?: UseFormProps;
8
- }) => {
9
- formResult: import("./useReactHookForm").UseFormReturnType<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, {
10
- [x: string]: any;
11
- }, {}, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError>;
12
- responseErrorMsg: string;
13
- };
@@ -1,50 +0,0 @@
1
- import { HttpError, BaseRecord, UseFormReturnType as UseFormReturnTypeCore, UseFormProps as UseFormPropsCore, CreateResponse, UpdateResponse } from '@refinedev/core';
2
- import { ButtonProps } from 'antd/lib/button';
3
- import { FormInstance, FormProps } from 'antd/lib/form';
4
- import { JSONSchema7 } from 'json-schema';
5
- import { Unstructured } from 'k8s-api-provider';
6
- import React from 'react';
7
- import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
8
- type EditorProps = YamlEditorProps & {
9
- ref: React.RefObject<YamlEditorHandle>;
10
- };
11
- export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
12
- submitOnEnter?: boolean;
13
- /**
14
- * Shows notification when unsaved changes exist
15
- */
16
- warnWhenUnsavedChanges?: boolean;
17
- editorOptions?: {
18
- isGenerateAnnotations?: boolean;
19
- isSkipSchema?: boolean;
20
- };
21
- initialValuesForCreate?: Record<string, unknown>;
22
- transformInitValues?: (values: Record<string, unknown>) => Record<string, unknown>;
23
- transformApplyValues?: (values: Unstructured) => Unstructured;
24
- };
25
- export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
26
- form: FormInstance;
27
- formProps: Omit<FormProps, 'onFinish'> & {
28
- onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void> | undefined;
29
- };
30
- saveButtonProps: ButtonProps & {
31
- onClick: () => void;
32
- };
33
- editorProps: EditorProps;
34
- schemas: JSONSchema7[] | null;
35
- isLoadingSchema: boolean;
36
- loadSchemaError: Error | null;
37
- fetchSchema: () => void;
38
- enableEditor: boolean;
39
- errorResponseBody?: Record<string, unknown> | null;
40
- switchEditor: () => void;
41
- onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void>;
42
- };
43
- declare const useYamlForm: <TQueryFnData extends Unstructured = Unstructured & {
44
- id: string;
45
- }, TError extends HttpError = HttpError, TVariables extends {
46
- [prop: string]: unknown;
47
- } = {
48
- [prop: string]: unknown;
49
- }, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action: actionFromProps, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, queryMeta, mutationMeta, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, overtimeOptions, editorOptions, initialValuesForCreate, transformInitValues, transformApplyValues, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
50
- export default useYamlForm;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface FormErrorAlertProps {
3
- errorMsgs: string[];
4
- style?: React.CSSProperties;
5
- className?: string;
6
- isEdit?: boolean;
7
- }
8
- export declare function FormErrorAlert(props: FormErrorAlertProps): JSX.Element | null;
9
- export {};
@@ -1,7 +0,0 @@
1
- import { ButtonProps } from '@cloudtower/eagle';
2
- import React from 'react';
3
- type FormLayoutProps = {
4
- saveButtonProps?: ButtonProps;
5
- };
6
- declare function FormLayout(props: React.PropsWithChildren<FormLayoutProps>): JSX.Element;
7
- export default FormLayout;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FormWidgetProps } from './widget';
3
- export type KeyValueListWidgetProps = FormWidgetProps<Record<string, string>> & {
4
- disabled?: boolean;
5
- };
6
- export declare function KeyValueListWidget(props: KeyValueListWidgetProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function MetadataForm(): JSX.Element;
@@ -1,51 +0,0 @@
1
- /// <reference types="react" />
2
- import { AntdInputProps } from '@cloudtower/eagle';
3
- export declare function NameInputWidget(props: AntdInputProps): JSX.Element;
4
- export declare const dnsSubDomainRules: ({
5
- required: boolean;
6
- message: string;
7
- pattern?: undefined;
8
- max?: undefined;
9
- } | {
10
- pattern: RegExp;
11
- message: string;
12
- required?: undefined;
13
- max?: undefined;
14
- } | {
15
- max: number;
16
- message: string;
17
- required?: undefined;
18
- pattern?: undefined;
19
- })[];
20
- export declare const rfc1123LabelRules: ({
21
- required: boolean;
22
- message: string;
23
- pattern?: undefined;
24
- max?: undefined;
25
- } | {
26
- pattern: RegExp;
27
- message: string;
28
- required?: undefined;
29
- max?: undefined;
30
- } | {
31
- max: number;
32
- message: string;
33
- required?: undefined;
34
- pattern?: undefined;
35
- })[];
36
- export declare const rfc1035LabelRules: ({
37
- required: boolean;
38
- message: string;
39
- pattern?: undefined;
40
- max?: undefined;
41
- } | {
42
- pattern: RegExp;
43
- message: string;
44
- required?: undefined;
45
- max?: undefined;
46
- } | {
47
- max: number;
48
- message: string;
49
- required?: undefined;
50
- pattern?: undefined;
51
- })[];
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import type { FormWidgetProps } from './widget';
3
- type NamespaceSelectProps = FormWidgetProps<string | string[]>;
4
- export declare function NamespaceSelectWidget(props: NamespaceSelectProps): JSX.Element;
5
- export declare const namespaceRules: {
6
- required: boolean;
7
- message: string;
8
- }[];
9
- export {};
@@ -1,4 +0,0 @@
1
- export * from './NameInputWidget';
2
- export * from './NamespaceSelectWidget';
3
- export * from './KeyValueListWidget';
4
- export * from './MetadataForm';
@@ -1,5 +0,0 @@
1
- export interface FormWidgetProps<V> {
2
- value?: V;
3
- onChange?: (value: V) => void;
4
- [prop: string]: unknown;
5
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const ImageNames: React.FC<{
3
- value: string[];
4
- breakLine?: boolean;
5
- }>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { IngressModel } from '../../models';
3
- export declare const IngressRulesComponent: React.FC<{
4
- ingress: IngressModel;
5
- }>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { IngressModel } from '../../models';
3
- type Props = {
4
- ingress: IngressModel;
5
- };
6
- export declare const IngressRulesTable: React.FC<Props>;
7
- export {};
@@ -1 +0,0 @@
1
- export * from './IngressRulesTable';
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ResourceModel } from '../../models';
3
- export type DropdownSize = 'normal' | 'large';
4
- interface K8sDropdownProps {
5
- record: ResourceModel;
6
- size?: DropdownSize;
7
- }
8
- export declare function K8sDropdown(props: React.PropsWithChildren<K8sDropdownProps>): JSX.Element;
9
- export default K8sDropdown;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface KeyValueProps {
3
- data: Record<string, string>;
4
- empty?: string;
5
- hideSecret?: boolean;
6
- }
7
- export declare const KeyValue: React.FC<KeyValueProps>;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface KeyValueDataProps {
3
- data: Record<string, string>;
4
- expandable?: boolean;
5
- }
6
- export declare function KeyValueAnnotation(props: KeyValueDataProps): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export interface KeyValueSecretProps {
3
- data: Record<string, string>;
4
- }
5
- export declare function KeyValueSecret(props: KeyValueSecretProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './KeyValue';
2
- export * from './KeyValueAnnotation';
3
- export * from './KeyValueSecret';
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import React from 'react';
3
- export declare const Layout: React.FC<PropsWithChildren<Record<string, unknown>>>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LinkFallback({ fullPath }: {
3
- fullPath: string;
4
- }): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { TableProps } from 'src/components/Table';
3
- import { ResourceModel } from '../../models';
4
- interface ListPageProps<T extends ResourceModel> {
5
- selectedKeys: string[];
6
- tableProps: TableProps<T>;
7
- contentClassName?: string;
8
- }
9
- export declare function ListPage<T extends ResourceModel>(props: ListPageProps<T>): JSX.Element;
10
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Menu: () => JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export declare const NS_STORE_KEY = "namespace-filter";
3
- export declare const ALL_NS = "_all";
4
- export declare const useNamespacesFilter: () => {
5
- value: string[];
6
- };
7
- interface NamespaceFilterProps {
8
- className?: string;
9
- }
10
- export declare const NamespacesFilter: React.FC<NamespaceFilterProps>;
11
- export {};
@@ -1,8 +0,0 @@
1
- import type { NetworkPolicyIngressRule, NetworkPolicyEgressRule } from 'kubernetes-types/networking/v1';
2
- import React from 'react';
3
- type Props = {
4
- ingressOrEgress: NetworkPolicyIngressRule[] | NetworkPolicyEgressRule[];
5
- kind?: string;
6
- };
7
- export declare const NetworkPolicyRulesViewer: React.FC<Props>;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './NetworkPolicyRulesViewer';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { PersistentVolumeClaimModel } from 'src/models';
3
- interface DistributeStorageFormHandler {
4
- submit: () => Promise<unknown> | undefined;
5
- }
6
- interface DistributeStorageFormProps {
7
- pvc: PersistentVolumeClaimModel;
8
- defaultValue: number;
9
- }
10
- export declare const DistributeStorageForm: React.ForwardRefExoticComponent<DistributeStorageFormProps & React.RefAttributes<DistributeStorageFormHandler>>;
11
- interface PVCDistributeStorageProps {
12
- pvc: PersistentVolumeClaimModel;
13
- editable: boolean;
14
- }
15
- declare function PVCDistributeStorage({ pvc, editable }: PVCDistributeStorageProps): JSX.Element;
16
- export default PVCDistributeStorage;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { ResourceModel } from '../../models';
3
- import { ShowConfig } from '../ShowContent';
4
- type Props<Model extends ResourceModel> = {
5
- showConfig: ShowConfig<Model>;
6
- formatter?: (r: Model) => Model;
7
- Dropdown?: React.FC<{
8
- record: Model;
9
- }>;
10
- };
11
- export declare const PageShow: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
12
- export {};
@@ -1 +0,0 @@
1
- export * from './PageShow';
@@ -1,8 +0,0 @@
1
- import { ContainerStatus } from 'kubernetes-types/core/v1';
2
- import React from 'react';
3
- type Props = {
4
- containerStatuses: ContainerStatus[];
5
- initContainerStatuses: ContainerStatus[];
6
- };
7
- export declare const PodContainersTable: React.FC<Props>;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './PodContainersTable';
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { PodModel } from '../../models';
3
- import { DropdownSize } from '../K8sDropdown';
4
- type Props<Model extends PodModel> = {
5
- record: Model;
6
- size?: DropdownSize;
7
- };
8
- export declare function PodDropdown<Model extends PodModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
9
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import '@patternfly/react-core/dist/styles/base-no-reset.css';
3
- import { PodModel } from '../../models';
4
- export declare const PodLog: React.FC<{
5
- pod: PodModel;
6
- }>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- podSelectors: Record<string, string>;
4
- };
5
- export declare const PodSelectorTable: React.FC<Props>;
6
- export {};
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { SocketStatus } from 'src/components/Shell';
3
- import '@xterm/xterm/css/xterm.css';
4
- import { PodModel } from 'src/models/pod-model';
5
- export declare enum OS {
6
- Linux = "linux",
7
- Windows = "windows"
8
- }
9
- interface PodShellProps {
10
- pod: PodModel;
11
- basePath: string;
12
- onSocketStatusChange?: (socketStatus: SocketStatus) => void;
13
- }
14
- interface PodShellHandler {
15
- getAllTerminalContents: () => string[];
16
- }
17
- export declare const PodShell: React.ForwardRefExoticComponent<PodShellProps & React.RefAttributes<PodShellHandler>>;
18
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { SocketStatus } from 'src/components/Shell';
3
- import { PodModel } from 'src/models';
4
- import { PodShell } from './PodShell';
5
- interface PodShellModalProps {
6
- pod: PodModel;
7
- onSocketStatusChange?: (socketStatus: SocketStatus) => void;
8
- }
9
- export declare function PodShellModal(props: PodShellModalProps): JSX.Element;
10
- export { PodShell };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ServiceModel } from 'src/models/service-model';
3
- type Props = {
4
- service: ServiceModel;
5
- };
6
- export declare const PortsTable: React.FC<Props>;
7
- export {};
@@ -1,8 +0,0 @@
1
- import type { OwnerReference } from 'kubernetes-types/meta/v1';
2
- import React from 'react';
3
- type Props = {
4
- ownerReference: OwnerReference;
5
- namespace: string;
6
- };
7
- export declare const ReferenceLink: React.FC<Props>;
8
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { WorkloadModel } from '../../models';
3
- import { DropdownSize } from '../K8sDropdown';
4
- type Props<Model extends WorkloadModel> = {
5
- record: Model;
6
- size?: DropdownSize;
7
- };
8
- export declare function ReplicasDropdown<Model extends WorkloadModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
9
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ResourceConfig } from '../../types';
3
- type Props = {
4
- configs: ResourceConfig[];
5
- urlPrefix?: string;
6
- };
7
- export declare function ResourceCRUD(props: Props): JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ResourceModel } from '../../../models';
3
- import { ResourceConfig } from '../../../types';
4
- type Props<Model extends ResourceModel> = {
5
- config: ResourceConfig<Model>;
6
- };
7
- export declare function ResourceForm<Model extends ResourceModel>(props: Props<Model>): JSX.Element;
8
- export {};
@@ -1,4 +0,0 @@
1
- export * from './list';
2
- export * from './show';
3
- export * from './create';
4
- export * from './ResourceCRUD';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { IResourceComponentsProps } from '@refinedev/core';
3
- import { ResourceModel } from 'src/models';
4
- import { ResourceConfig } from 'src/types';
5
- type Props<Model extends ResourceModel> = IResourceComponentsProps & {
6
- config: ResourceConfig<Model>;
7
- };
8
- export declare function ResourceList<Model extends ResourceModel>(props: Props<Model>): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { IResourceComponentsProps } from '@refinedev/core';
3
- import { ResourceModel } from '../../../models';
4
- import { ResourceConfig } from '../../../types';
5
- type Props<Model extends ResourceModel> = IResourceComponentsProps & {
6
- config: ResourceConfig<Model>;
7
- };
8
- export declare function ResourceShow<Model extends ResourceModel>(props: Props<Model>): JSX.Element;
9
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- value: string;
4
- }
5
- export declare function PVPhaseDisplay(props: Props): JSX.Element;
6
- export declare function PVVolumeModeDisplay(props: Props): JSX.Element;
7
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- resourceName: string;
4
- namespace: string;
5
- resourceId: string;
6
- };
7
- export declare const ResourceLink: React.FC<Props>;
8
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { KitSelectProps } from '@cloudtower/eagle';
3
- type ResourceSelectProps = {
4
- resource: string;
5
- resourceBasePath: string;
6
- kind: string;
7
- value: string;
8
- onChange: (...params: unknown[]) => void;
9
- selectProps?: KitSelectProps;
10
- };
11
- export declare function ResourceSelect(props: ResourceSelectProps): JSX.Element;
12
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { useTable } from '@refinedev/core';
3
- import { ResourceModel } from 'src/models';
4
- interface ResourceTableProps<Model extends ResourceModel> {
5
- resource: string;
6
- useTableParams?: Parameters<typeof useTable<Model>>[0];
7
- }
8
- export declare function ResourceTable<Model extends ResourceModel>(props: ResourceTableProps<Model>): JSX.Element;
9
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- usage: string;
4
- requestNum: number;
5
- limitNum: number;
6
- };
7
- export declare const ResourceUsageBar: React.FC<Props>;
8
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Separator: React.FC;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ServiceModel } from '../../models';
3
- type Props = {
4
- service: ServiceModel;
5
- };
6
- export declare const ServiceInClusterAccessComponent: React.FC<Props>;
7
- export declare const ServiceOutClusterAccessComponent: React.FC<Props & {
8
- breakLine?: boolean;
9
- }>;
10
- export {};
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- type OperationType = ('fontSize' | 'downloadLog' | 'clear');
3
- export interface ShellToolbarProps {
4
- className?: string;
5
- leftSlot?: React.ReactNode;
6
- operations?: (OperationType | React.ReactNode)[];
7
- searchMatchedTotal: number;
8
- onSearchNext: (search: string) => void;
9
- onSearchPre: (search: string) => void;
10
- onSetFontSize?: (size: number) => void;
11
- onDownFontSize?: () => void;
12
- onDownloadLog?: () => void;
13
- onClear?: () => void;
14
- }
15
- declare function ShellToolbar(props: ShellToolbarProps): JSX.Element;
16
- export default ShellToolbar;