@dovetail-v2/refine 0.0.32 → 0.0.34

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 (68) hide show
  1. package/dist/{MonacoYamlDiffEditor-6563a22b.js → MonacoYamlDiffEditor-799d6dfe.js} +5 -3
  2. package/dist/{index-3d05d4c7.js → index-3113dd7a.js} +11985 -7646
  3. package/dist/refine.js +171 -133
  4. package/dist/refine.umd.cjs +13116 -8930
  5. package/dist/style.css +75 -42
  6. package/lib/src/components/DurationTime/index.d.ts +6 -0
  7. package/lib/src/components/Form/FormModal.d.ts +9 -0
  8. package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
  9. package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
  10. package/lib/src/components/Form/YamlForm.d.ts +26 -0
  11. package/lib/src/components/Form/index.d.ts +7 -4
  12. package/lib/src/components/Form/type.d.ts +17 -0
  13. package/lib/src/components/Form/useRefineForm.d.ts +10 -0
  14. package/lib/src/components/Form/useYamlForm.d.ts +51 -0
  15. package/lib/src/components/FormErrorAlert/index.d.ts +1 -0
  16. package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
  17. package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
  18. package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
  19. package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
  20. package/lib/src/components/FormWidgets/index.d.ts +4 -0
  21. package/lib/src/components/FormWidgets/widget.d.ts +5 -0
  22. package/lib/src/components/ImageNames/index.d.ts +1 -0
  23. package/lib/src/components/KeyValue/KeyValue.d.ts +6 -5
  24. package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
  25. package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
  26. package/lib/src/components/KeyValue/index.d.ts +2 -0
  27. package/lib/src/components/ListPage/index.d.ts +0 -1
  28. package/lib/src/components/NamespacesFilter/index.d.ts +6 -2
  29. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
  30. package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
  31. package/lib/src/components/PortsTable/index.d.ts +7 -0
  32. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  33. package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
  34. package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
  35. package/lib/src/components/ServiceComponents/index.d.ts +4 -1
  36. package/lib/src/components/ShowContent/ShowContent.d.ts +5 -0
  37. package/lib/src/components/ShowContent/fields.d.ts +19 -12
  38. package/lib/src/components/ShowContent/groups.d.ts +14 -3
  39. package/lib/src/components/ShowContent/tabs.d.ts +1 -8
  40. package/lib/src/components/StateTag/StateTag.d.ts +1 -0
  41. package/lib/src/components/Table/TableToolBar.d.ts +1 -1
  42. package/lib/src/components/Table/index.d.ts +1 -0
  43. package/lib/src/components/Time/index.d.ts +1 -1
  44. package/lib/src/components/ValueDisplay/index.d.ts +9 -0
  45. package/lib/src/components/WorkloadDropdown/index.d.ts +2 -2
  46. package/lib/src/components/WorkloadReplicas/index.d.ts +13 -3
  47. package/lib/src/components/YamlForm/index.d.ts +4 -0
  48. package/lib/src/components/index.d.ts +2 -3
  49. package/lib/src/constants/k8s.d.ts +289 -89
  50. package/lib/src/constants/state.d.ts +2 -1
  51. package/lib/src/hooks/index.d.ts +1 -1
  52. package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +1 -2
  53. package/lib/src/hooks/useEagleForm.d.ts +2 -1
  54. package/lib/src/hooks/useEagleTable/columns.d.ts +8 -2
  55. package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +4 -0
  56. package/lib/src/hooks/useOpenForm.d.ts +3 -0
  57. package/lib/src/i18n.d.ts +168 -15
  58. package/lib/src/locales/en-US/index.d.ts +104 -1
  59. package/lib/src/locales/zh-CN/index.d.ts +64 -14
  60. package/lib/src/models/daemonset-model.d.ts +3 -1
  61. package/lib/src/models/deployment-model.d.ts +1 -1
  62. package/lib/src/models/ingress-model.d.ts +5 -3
  63. package/lib/src/models/job-model.d.ts +2 -0
  64. package/lib/src/models/statefulset-model.d.ts +1 -1
  65. package/lib/src/pages/deployments/index.d.ts +0 -1
  66. package/lib/src/types/resource.d.ts +12 -3
  67. package/package.json +6 -4
  68. package/dist/MonacoYamlEditor-a6e20f8c.js +0 -167
@@ -7,60 +7,62 @@ export declare const BASE_INIT_VALUE: {
7
7
  };
8
8
  };
9
9
  export declare const DEPLOYMENT_INIT_VALUE: {
10
+ apiVersion: string;
11
+ kind: string;
12
+ metadata: {
13
+ name: string;
14
+ namespace: string;
15
+ };
10
16
  spec: {
11
- replicas: number;
12
17
  selector: {
13
18
  matchLabels: {
14
- "sks.user.kubesmart.smtx.io/app": string;
19
+ app: string;
15
20
  };
16
21
  };
22
+ replicas: number;
17
23
  template: {
18
24
  metadata: {
19
25
  labels: {
20
- "sks.user.kubesmart.smtx.io/app": string;
26
+ app: string;
21
27
  };
22
28
  };
23
29
  spec: {
24
- affinity: {};
25
- imagePullSecrets: never[];
26
- initContainers: never[];
27
- volumes: never[];
28
30
  containers: {
29
31
  name: string;
30
- imagePullPolicy: string;
31
32
  image: string;
33
+ ports: {
34
+ containerPort: number;
35
+ protocol: string;
36
+ }[];
32
37
  }[];
33
- restartPolicy: string;
38
+ };
39
+ };
40
+ strategy: {
41
+ type: string;
42
+ rollingUpdate: {
43
+ maxSurge: string;
44
+ maxUnavailable: string;
34
45
  };
35
46
  };
36
47
  };
48
+ };
49
+ export declare const CRONJOB_INIT_VALUE: {
50
+ apiVersion: string;
51
+ kind: string;
37
52
  metadata: {
38
53
  name: string;
39
54
  namespace: string;
40
- annotations: {};
41
- labels: {};
42
55
  };
43
- apiVersion: string;
44
- kind: string;
45
- };
46
- export declare const CRONJOB_INIT_VALUE: {
47
56
  spec: {
48
57
  schedule: string;
49
58
  jobTemplate: {
50
- metadata: {
51
- labels: {};
52
- };
53
59
  spec: {
54
60
  template: {
55
61
  spec: {
56
- affinity: {};
57
- imagePullSecrets: never[];
58
- initContainers: never[];
59
- volumes: never[];
60
62
  containers: {
61
63
  name: string;
62
- imagePullPolicy: string;
63
64
  image: string;
65
+ args: string[];
64
66
  }[];
65
67
  restartPolicy: string;
66
68
  };
@@ -68,162 +70,262 @@ export declare const CRONJOB_INIT_VALUE: {
68
70
  };
69
71
  };
70
72
  };
73
+ };
74
+ export declare const DAEMONSET_INIT_VALUE: {
75
+ apiVersion: string;
76
+ kind: string;
71
77
  metadata: {
72
78
  name: string;
73
79
  namespace: string;
74
- annotations: {};
75
- labels: {};
76
80
  };
77
- apiVersion: string;
78
- kind: string;
79
- };
80
- export declare const DAEMONSET_INIT_VALUE: {
81
81
  spec: {
82
- replicas: number;
83
82
  selector: {
84
83
  matchLabels: {
85
- "sks.user.kubesmart.smtx.io/app": string;
84
+ app: string;
86
85
  };
87
86
  };
88
87
  template: {
89
88
  metadata: {
90
89
  labels: {
91
- "sks.user.kubesmart.smtx.io/app": string;
90
+ app: string;
92
91
  };
93
92
  };
94
93
  spec: {
95
- affinity: {};
96
- imagePullSecrets: never[];
97
- initContainers: never[];
98
- volumes: never[];
99
94
  containers: {
100
95
  name: string;
101
- imagePullPolicy: string;
102
96
  image: string;
97
+ ports: {
98
+ containerPort: number;
99
+ }[];
103
100
  }[];
104
- restartPolicy: string;
105
101
  };
106
102
  };
107
103
  };
104
+ };
105
+ export declare const JOB_INIT_VALUE: {
106
+ apiVersion: string;
107
+ kind: string;
108
108
  metadata: {
109
109
  name: string;
110
110
  namespace: string;
111
- annotations: {};
112
- labels: {};
113
111
  };
114
- apiVersion: string;
115
- kind: string;
116
- };
117
- export declare const JOB_INIT_VALUE: {
118
112
  spec: {
119
- replicas: number;
120
- selector: {
121
- matchLabels: {};
122
- };
113
+ selector: {};
123
114
  template: {
124
115
  metadata: {
125
- labels: {};
116
+ name: string;
126
117
  };
127
118
  spec: {
128
- affinity: {};
129
- imagePullSecrets: never[];
130
- initContainers: never[];
131
- volumes: never[];
132
119
  containers: {
133
120
  name: string;
134
- imagePullPolicy: string;
135
121
  image: string;
122
+ command: string[];
136
123
  }[];
137
124
  restartPolicy: string;
138
125
  };
139
126
  };
140
127
  };
128
+ };
129
+ export declare const STATEFULSET_INIT_VALUE: {
130
+ apiVersion: string;
131
+ kind: string;
141
132
  metadata: {
142
133
  name: string;
143
134
  namespace: string;
144
- annotations: {};
145
- labels: {};
146
135
  };
147
- apiVersion: string;
148
- kind: string;
149
- };
150
- export declare const STATEFULSET_INIT_VALUE: {
151
136
  spec: {
137
+ serviceName: string;
152
138
  replicas: number;
153
139
  selector: {
154
140
  matchLabels: {
155
- "sks.user.kubesmart.smtx.io/app": string;
141
+ app: string;
156
142
  };
157
143
  };
158
144
  template: {
159
145
  metadata: {
160
146
  labels: {
161
- "sks.user.kubesmart.smtx.io/app": string;
147
+ app: string;
162
148
  };
163
149
  };
164
150
  spec: {
165
- affinity: {};
166
- imagePullSecrets: never[];
167
- initContainers: never[];
168
- volumes: never[];
151
+ terminationGracePeriodSeconds: number;
169
152
  containers: {
170
153
  name: string;
171
- imagePullPolicy: string;
172
154
  image: string;
155
+ command: string[];
156
+ args: string[];
157
+ ports: {
158
+ containerPort: number;
159
+ name: string;
160
+ }[];
161
+ volumeMounts: {
162
+ name: string;
163
+ mountPath: string;
164
+ }[];
173
165
  }[];
174
- restartPolicy: string;
175
166
  };
176
167
  };
168
+ volumeClaimTemplates: {
169
+ metadata: {
170
+ name: string;
171
+ };
172
+ spec: {
173
+ accessModes: string[];
174
+ resources: {
175
+ requests: {
176
+ storage: string;
177
+ };
178
+ };
179
+ };
180
+ }[];
177
181
  };
182
+ };
183
+ export declare const POD_INIT_VALUE: {
184
+ apiVersion: string;
185
+ kind: string;
178
186
  metadata: {
179
187
  name: string;
180
188
  namespace: string;
181
- annotations: {};
182
- labels: {};
189
+ labels: {
190
+ app: string;
191
+ };
183
192
  };
184
- apiVersion: string;
185
- kind: string;
186
- };
187
- export declare const POD_INIT_VALUE: {
188
193
  spec: {
194
+ securityContext: {
195
+ runAsNonRoot: boolean;
196
+ seccompProfile: {
197
+ type: string;
198
+ };
199
+ };
189
200
  containers: {
190
201
  name: string;
191
- imagePullPolicy: string;
192
202
  image: string;
203
+ ports: {
204
+ containerPort: number;
205
+ }[];
206
+ securityContext: {
207
+ allowPrivilegeEscalation: boolean;
208
+ capabilities: {
209
+ drop: string[];
210
+ };
211
+ };
193
212
  }[];
194
213
  };
214
+ };
215
+ export declare const SERVICE_CLUSTER_IP_INIT_VALUE: {
216
+ apiVersion: string;
217
+ kind: string;
195
218
  metadata: {
196
219
  name: string;
197
220
  namespace: string;
198
- annotations: {};
199
- labels: {};
200
221
  };
222
+ spec: {
223
+ selector: {
224
+ app: string;
225
+ };
226
+ ports: {
227
+ name: string;
228
+ port: number;
229
+ protocol: string;
230
+ targetPort: number;
231
+ }[];
232
+ sessionAffinity: string;
233
+ type: string;
234
+ };
235
+ };
236
+ export declare const SERVICE_NODE_PORT_INIT_VALUE: {
201
237
  apiVersion: string;
202
238
  kind: string;
239
+ metadata: {
240
+ name: string;
241
+ namespace: string;
242
+ };
243
+ spec: {
244
+ selector: {
245
+ app: string;
246
+ };
247
+ ports: {
248
+ name: string;
249
+ port: number;
250
+ protocol: string;
251
+ targetPort: number;
252
+ }[];
253
+ sessionAffinity: string;
254
+ type: string;
255
+ };
203
256
  };
204
- export declare const SERVICE_INIT_VALUE: {
257
+ export declare const SERVICE_LOAD_BALANCER_INIT_VALUE: {
258
+ apiVersion: string;
259
+ kind: string;
260
+ metadata: {
261
+ name: string;
262
+ namespace: string;
263
+ };
205
264
  spec: {
206
- selector: {};
207
- clusterIP: null;
265
+ selector: {
266
+ app: string;
267
+ };
208
268
  ports: {
209
269
  name: string;
210
- port: null;
270
+ port: number;
211
271
  protocol: string;
212
- targetPort: null;
272
+ targetPort: number;
213
273
  }[];
214
274
  sessionAffinity: string;
215
275
  type: string;
216
276
  };
277
+ };
278
+ export declare const SERVICE_EXTERNAL_NAME_INIT_VALUE: {
279
+ apiVersion: string;
280
+ kind: string;
217
281
  metadata: {
218
282
  name: string;
219
283
  namespace: string;
220
- annotations: {};
221
- labels: {};
222
284
  };
285
+ spec: {
286
+ selector: {
287
+ app: string;
288
+ };
289
+ ports: {
290
+ name: string;
291
+ port: number;
292
+ protocol: string;
293
+ targetPort: number;
294
+ }[];
295
+ sessionAffinity: string;
296
+ type: string;
297
+ externalName: string;
298
+ };
299
+ };
300
+ export declare const SERVICE_HEADLESS_INIT_VALUE: {
223
301
  apiVersion: string;
224
302
  kind: string;
303
+ metadata: {
304
+ name: string;
305
+ namespace: string;
306
+ };
307
+ spec: {
308
+ selector: {
309
+ app: string;
310
+ };
311
+ clusterIP: string;
312
+ ports: {
313
+ name: string;
314
+ port: null;
315
+ protocol: string;
316
+ targetPort: null;
317
+ }[];
318
+ sessionAffinity: string;
319
+ type: string;
320
+ };
225
321
  };
226
322
  export declare const INGRESS_INIT_VALUE: {
323
+ apiVersion: string;
324
+ kind: string;
325
+ metadata: {
326
+ name: string;
327
+ namespace: string;
328
+ };
227
329
  spec: {
228
330
  rules: {
229
331
  host: string;
@@ -243,19 +345,44 @@ export declare const INGRESS_INIT_VALUE: {
243
345
  };
244
346
  }[];
245
347
  };
348
+ };
349
+ export declare const NETWORK_POLICY_INIT_VALUE: {
350
+ apiVersion: string;
351
+ kind: string;
246
352
  metadata: {
247
353
  name: string;
248
354
  namespace: string;
249
- annotations: {};
250
- labels: {};
251
355
  };
356
+ spec: {
357
+ podSelector: {};
358
+ policyTypes: never[];
359
+ };
360
+ };
361
+ export declare const CONFIG_MAP_INIT_VALUE: {
252
362
  apiVersion: string;
253
363
  kind: string;
364
+ metadata: {
365
+ name: string;
366
+ namespace: string;
367
+ };
368
+ data: {
369
+ key: string;
370
+ };
371
+ immutable: boolean;
254
372
  };
255
- export declare const NETWORK_POLICY_INIT_VALUE: {
373
+ export declare const SERVER_INSTANCE_INIT_VALUE: {
256
374
  spec: {
257
- podSelector: {};
258
- policyTypes: never[];
375
+ address: {
376
+ host: string;
377
+ port: number;
378
+ protocol: string;
379
+ credentials: {
380
+ ssh: {
381
+ username: string;
382
+ password: string;
383
+ };
384
+ };
385
+ };
259
386
  };
260
387
  metadata: {
261
388
  name: string;
@@ -267,3 +394,76 @@ export declare const NETWORK_POLICY_INIT_VALUE: {
267
394
  kind: string;
268
395
  };
269
396
  export declare const TIMESTAMP_LABEL = "sks.user.kubesmart.smtx.io/timestamp";
397
+ export declare const SECRET_OPAQUE_INIT_VALUE: {
398
+ apiVersion: string;
399
+ kind: string;
400
+ metadata: {
401
+ name: string;
402
+ namespace: string;
403
+ };
404
+ type: string;
405
+ data: {
406
+ key: string;
407
+ };
408
+ };
409
+ export declare const SECRET_IMAGE_REPO_INIT_VALUE: {
410
+ apiVersion: string;
411
+ kind: string;
412
+ metadata: {
413
+ name: string;
414
+ namespace: string;
415
+ };
416
+ type: string;
417
+ data: {
418
+ '.dockerconfigjson': string;
419
+ };
420
+ };
421
+ export declare const SECRET_BASIC_AUTH_INIT_VALUE: {
422
+ apiVersion: string;
423
+ kind: string;
424
+ metadata: {
425
+ name: string;
426
+ namespace: string;
427
+ };
428
+ type: string;
429
+ data: {
430
+ username: string;
431
+ password: string;
432
+ };
433
+ };
434
+ export declare const SECRET_SSH_AUTH_INIT_VALUE: {
435
+ apiVersion: string;
436
+ kind: string;
437
+ metadata: {
438
+ name: string;
439
+ namespace: string;
440
+ };
441
+ type: string;
442
+ data: {
443
+ 'ssh-publickey': string;
444
+ 'ssh-privatekey': string;
445
+ };
446
+ };
447
+ export declare const SECRET_TLS_INIT_VALUE: {
448
+ apiVersion: string;
449
+ kind: string;
450
+ metadata: {
451
+ name: string;
452
+ namespace: string;
453
+ };
454
+ type: string;
455
+ data: {
456
+ 'tls.crt': string;
457
+ 'tls.key': string;
458
+ };
459
+ };
460
+ export declare const SECRET_CUSTOM_INIT_VALUE: {
461
+ apiVersion: string;
462
+ kind: string;
463
+ metadata: {
464
+ name: string;
465
+ namespace: string;
466
+ };
467
+ type: string;
468
+ data: {};
469
+ };
@@ -1,5 +1,6 @@
1
1
  export declare enum WorkloadState {
2
- UPDATEING = "updating",
2
+ Terminated = "terminated",
3
+ UPDATING = "updating",
3
4
  READY = "ready",
4
5
  COMPLETED = "completed",
5
6
  FAILED = "failed",
@@ -1,7 +1,7 @@
1
- export * from './useEagleForm';
2
1
  export * from './useSchema';
3
2
  export * from './useDeleteModal';
4
3
  export * from './useEagleTable';
5
4
  export * from './useDownloadYAML';
6
5
  export * from './useEdit';
7
6
  export * from './useGlobalStore';
7
+ export * from './useOpenForm';
@@ -1,7 +1,6 @@
1
1
  import { ModalProps } from '@cloudtower/eagle';
2
- import { BaseKey } from '@refinedev/core';
3
2
  export declare const useDeleteModal: (resource: string) => {
4
3
  modalProps: ModalProps;
5
4
  visible: boolean;
6
- openDeleteConfirmModal: (id: BaseKey) => void;
5
+ openDeleteConfirmModal: (id: string) => void;
7
6
  };
@@ -20,6 +20,7 @@ export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError ex
20
20
  isSkipSchema?: boolean;
21
21
  };
22
22
  initialValuesForCreate?: Record<string, unknown>;
23
+ transformValues?: (values: Record<string, unknown>) => Record<string, unknown>;
23
24
  };
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> & {
25
26
  form: FormInstance;
@@ -43,5 +44,5 @@ declare const useEagleForm: <TQueryFnData extends Unstructured = Unstructured &
43
44
  [prop: string]: unknown;
44
45
  } = {
45
46
  [prop: string]: unknown;
46
- }, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action, 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, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
47
+ }, 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, transformValues, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
47
48
  export default useEagleForm;
@@ -3,21 +3,27 @@ import { Column } from '../../components/Table';
3
3
  import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, DaemonSetModel } from '../../models';
4
4
  export declare const CommonSorter: (dataIndex: string[]) => (a: unknown, b: unknown) => 0 | 1 | -1;
5
5
  export declare const NameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType, resource?: string) => Column<Model>;
6
+ export declare const PlainTextNameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
6
7
  export declare const NameSpaceColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
7
8
  export declare const StateDisplayColumnRenderer: <Model extends PodModel | JobModel | WorkloadModel | CronJobModel | DaemonSetModel | ServiceModel>(i18n: I18nType) => Column<Model>;
8
9
  export declare const WorkloadImageColumnRenderer: <Model extends WorkloadBaseModel>(i18n: I18nType) => Column<Model>;
9
10
  export declare const WorkloadRestartsColumnRenderer: <Model extends WorkloadModel>(i18n: I18nType) => Column<Model>;
10
11
  export declare const ReplicasColumnRenderer: <Model extends WorkloadModel>(i18n: I18nType) => Column<Model>;
11
- export declare const AgeColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
12
+ export declare const AgeColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType, config?: {
13
+ title?: string;
14
+ }) => Column<Model>;
12
15
  export declare const NodeNameColumnRenderer: <Model extends PodModel>(i18n: I18nType, options?: Partial<Column<Model>> | undefined) => Column<Model>;
13
16
  export declare const RestartCountColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
14
17
  export declare const CompletionsCountColumnRenderer: <Model extends JobModel | CronJobModel>(i18n: I18nType) => Column<Model>;
15
18
  export declare const DurationColumnRenderer: <Model extends JobModel | CronJobModel>(i18n: I18nType) => Column<Model>;
16
19
  export declare const ServiceTypeColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
17
20
  export declare const ServiceInClusterAccessColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
18
- export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
21
+ export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>(i18n: I18nType, clusterVip: string) => Column<Model>;
19
22
  export declare const PodWorkloadColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
20
23
  export declare const IngressRulesColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
21
24
  export declare const IngressDefaultBackendColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
22
25
  export declare const IngressClassColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
23
26
  export declare const IngressTlsColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
27
+ export declare const PodContainersNumColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
28
+ export declare const DataKeysColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
29
+ export declare const PortMappingColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
@@ -1,3 +1,4 @@
1
+ import { RequiredColumnProps } from '@cloudtower/eagle';
1
2
  import { useTable } from '@refinedev/core';
2
3
  import React from 'react';
3
4
  import { Column, TableProps } from '../../components/Table';
@@ -20,6 +21,9 @@ export declare enum ColumnKeys {
20
21
  deploymentImage = "deploymentImage",
21
22
  podImage = "podImage"
22
23
  }
24
+ export declare function addDefaultRenderToColumns<Data, Col extends RequiredColumnProps<Data> = RequiredColumnProps<Data>>(columns: Col[]): ({
25
+ render(value: unknown): JSX.Element;
26
+ } & Col)[];
23
27
  export declare const useEagleTable: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(params: Params<Model>) => {
24
28
  tableQueryResult: import("@tanstack/query-core").QueryObserverResult<import("@refinedev/core").GetListResponse<Model>, import("@refinedev/core").HttpError>;
25
29
  sorter: import("@refinedev/core").CrudSorting;
@@ -1,5 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { YamlFormProps } from '../components';
1
3
  interface UseOpenFormOptions {
2
4
  id?: string;
5
+ renderForm?: (props: YamlFormProps) => React.ReactNode;
3
6
  }
4
7
  export declare function useOpenForm(options?: UseOpenFormOptions): () => void;
5
8
  export {};