@dovetail-v2/refine 0.0.32-beta.0 → 0.0.33

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 (59) hide show
  1. package/dist/{MonacoYamlDiffEditor-0d108b88.js → MonacoYamlDiffEditor-cf5e1ebf.js} +3 -3
  2. package/dist/{MonacoYamlEditor-e382457d.js → MonacoYamlEditor-816f672c.js} +3 -3
  3. package/dist/{index-3a367ae3.js → index-57b8cbed.js} +11268 -10385
  4. package/dist/refine.js +158 -130
  5. package/dist/refine.umd.cjs +9177 -8294
  6. package/dist/style.css +69 -47
  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 +49 -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 +5 -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/PodSelectorTable/index.d.ts +6 -0
  30. package/lib/src/components/PortsTable/index.d.ts +7 -0
  31. package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
  32. package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
  33. package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
  34. package/lib/src/components/ServiceComponents/index.d.ts +4 -1
  35. package/lib/src/components/ShowContent/ShowContent.d.ts +5 -0
  36. package/lib/src/components/ShowContent/fields.d.ts +17 -11
  37. package/lib/src/components/ShowContent/groups.d.ts +11 -3
  38. package/lib/src/components/ShowContent/tabs.d.ts +1 -5
  39. package/lib/src/components/StateTag/StateTag.d.ts +1 -0
  40. package/lib/src/components/Table/TableToolBar.d.ts +1 -1
  41. package/lib/src/components/ValueDisplay/index.d.ts +8 -0
  42. package/lib/src/components/WorkloadDropdown/index.d.ts +2 -2
  43. package/lib/src/components/WorkloadReplicas/index.d.ts +11 -1
  44. package/lib/src/components/index.d.ts +2 -4
  45. package/lib/src/constants/k8s.d.ts +271 -94
  46. package/lib/src/constants/state.d.ts +2 -1
  47. package/lib/src/hooks/index.d.ts +1 -1
  48. package/lib/src/hooks/useEagleTable/columns.d.ts +4 -1
  49. package/lib/src/hooks/useOpenForm.d.ts +3 -0
  50. package/lib/src/i18n.d.ts +22 -4
  51. package/lib/src/locales/en-US/index.d.ts +4 -1
  52. package/lib/src/locales/zh-CN/index.d.ts +18 -3
  53. package/lib/src/models/daemonset-model.d.ts +3 -1
  54. package/lib/src/models/deployment-model.d.ts +1 -1
  55. package/lib/src/models/ingress-model.d.ts +5 -3
  56. package/lib/src/models/statefulset-model.d.ts +1 -1
  57. package/lib/src/pages/deployments/index.d.ts +0 -1
  58. package/lib/src/types/resource.d.ts +12 -5
  59. package/package.json +1 -1
package/dist/refine.js CHANGED
@@ -1,164 +1,192 @@
1
- import { aO, A, an, ap, a7, a$, az, B, b1, ah, p, C, h, bf, aa, aC, H, bh, O, _, bq, a1, b2, b0, bt, ad, av, a5, aF, bs, bc, aI, D, aK, br, ar, al, aY, be, bg, b7, a8, Q, n, m, bi, I, as, ak, o, b3, bk, ac, aw, a2, K, ao, a6, aG, aJ, M, b8, aN, N, w, b, am, E, aQ, au, at, bj, aZ, f, b5, G, ax, J, aX, ay, bo, bn, P, ab, aA, bx, bd, aL, aS, aR, a9, R, X, V, aM, T, bp, U, $, g, b9, b6, b4, aE, ae, aq, a3, k, aT, bw, l, aU, aj, aB, i, bv, ag, ai, aD, af, S, aH, bu, ba, a_, aV, aW, bm, L, W, bl, Z, a0, e, bb, a4, x, d, F, z, y, r, a, s, q, t, v, aP, u } from "./index-3a367ae3.js";
1
+ import { b0, A, au, aw, ae, bg, aG, B, bu, bi, ao, t, C, h, bH, ah, aK, Q, bJ, V, a2, bS, a6, bj, bh, bV, ak, s, aE, ac, aS, bU, bE, aW, D, aY, bT, aB, as, b3, bG, bI, bs, af, X, o, n, bK, I, aN, ar, p, bk, bM, aj, aM, a7, a8, L, a9, av, ad, aT, aX, M, bt, a$, N, E, b, at, J, b2, aD, aC, bL, be, f, bm, O, P, aI, q, T, bd, aF, bQ, bP, az, aO, m, ai, aH, aP, aA, bZ, bF, aZ, b4, b5, ag, R, a0, $, a_, Z, bR, _, a3, g, bz, bC, by, bx, bA, bB, bv, bn, bq, br, bp, bo, bl, b6, al, aL, aa, k, b9, ax, bY, l, ba, ay, aq, aJ, i, bX, an, ap, aR, aQ, am, S, aV, aU, bW, bw, bf, bb, bc, bO, U, W, bN, a1, a5, a4, e, bD, ab, b7, F, d, K, H, G, r, a, w, v, x, y, b1, z, b8, u } from "./index-57b8cbed.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
- import "js-yaml";
4
+ import "@cloudtower/icons-react";
5
5
  import "react";
6
+ import "js-yaml";
6
7
  import "lodash-es";
7
8
  import "sunflower-antd";
8
- import "@cloudtower/icons-react";
9
9
  import "i18next";
10
10
  import "qs";
11
11
  import "react-router-dom";
12
12
  import "antd";
13
13
  import "k8s-api-provider";
14
14
  export {
15
- aO as ALL_NS,
15
+ b0 as ALL_NS,
16
16
  A as AgeColumnRenderer,
17
- an as AgeField,
18
- ap as AnnotationsField,
19
- a7 as AreaType,
20
- a$ as BASE_INIT_VALUE,
21
- az as BasicGroup,
17
+ au as AgeField,
18
+ aw as AnnotationsField,
19
+ ae as AreaType,
20
+ bg as BASE_INIT_VALUE,
21
+ aG as BasicGroup,
22
22
  B as Breadcrumb,
23
- b1 as CRONJOB_INIT_VALUE,
24
- ah as ClusterIpField,
25
- p as ColumnKeys,
23
+ bu as CONFIG_MAP_INIT_VALUE,
24
+ bi as CRONJOB_INIT_VALUE,
25
+ ao as ClusterIpField,
26
+ t as ColumnKeys,
26
27
  C as CommonSorter,
27
28
  h as CompletionsCountColumnRenderer,
28
- bf as ComponentContext,
29
- aa as ConditionsField,
30
- aC as ConditionsGroup,
31
- H as ConditionsTable,
32
- bh as ConfigsContext,
33
- O as CreateButton,
34
- _ as CronJobDropdown,
35
- bq as CronJobModel,
36
- a1 as CronjobJobsTable,
37
- b2 as DAEMONSET_INIT_VALUE,
38
- b0 as DEPLOYMENT_INIT_VALUE,
39
- bt as DaemonSetModel,
40
- ad as DataField,
41
- av as DataTab,
42
- a5 as DeleteButton,
43
- aF as DeleteManyButton,
44
- bs as DeploymentModel,
45
- bc as Dovetail,
46
- aI as DrawerShow,
29
+ bH as ComponentContext,
30
+ ah as ConditionsField,
31
+ aK as ConditionsGroup,
32
+ Q as ConditionsTable,
33
+ bJ as ConfigsContext,
34
+ V as CreateButton,
35
+ a2 as CronJobDropdown,
36
+ bS as CronJobModel,
37
+ a6 as CronjobJobsTable,
38
+ bj as DAEMONSET_INIT_VALUE,
39
+ bh as DEPLOYMENT_INIT_VALUE,
40
+ bV as DaemonSetModel,
41
+ ak as DataField,
42
+ s as DataKeysColumnRenderer,
43
+ aE as DataTab,
44
+ ac as DeleteButton,
45
+ aS as DeleteManyButton,
46
+ bU as DeploymentModel,
47
+ bE as Dovetail,
48
+ aW as DrawerShow,
47
49
  D as DurationColumnRenderer,
48
- aK as EditButton,
49
- br as EventModel,
50
- ar as EventsTab,
51
- al as EventsTableTabField,
52
- aY as FormModal,
53
- be as FormType,
54
- bg as GlobalStoreContext,
55
- b7 as INGRESS_INIT_VALUE,
56
- a8 as ImageField,
57
- Q as ImageNames,
58
- n as IngressClassColumnRenderer,
59
- m as IngressDefaultBackendColumnRenderer,
60
- bi as IngressModel,
50
+ aY as EditButton,
51
+ bT as EventModel,
52
+ aB as EventsTab,
53
+ as as EventsTableTabField,
54
+ b3 as FormModal,
55
+ bG as FormType,
56
+ bI as GlobalStoreContext,
57
+ bs as INGRESS_INIT_VALUE,
58
+ af as ImageField,
59
+ X as ImageNames,
60
+ o as IngressClassColumnRenderer,
61
+ n as IngressDefaultBackendColumnRenderer,
62
+ bK as IngressModel,
61
63
  I as IngressRulesColumnRenderer,
62
- as as IngressRulesTab,
63
- ak as IngressRulesTableTabField,
64
- o as IngressTlsColumnRenderer,
65
- b3 as JOB_INIT_VALUE,
66
- bk as JobModel,
67
- ac as JobsField,
68
- aw as JobsTab,
69
- a2 as KeyValue,
70
- K as KeyValueListWidget,
71
- ao as LabelsField,
72
- a6 as Layout,
73
- aG as ListPage,
74
- aJ as Menu,
64
+ aN as IngressRulesGroup,
65
+ ar as IngressRulesTableTabField,
66
+ p as IngressTlsColumnRenderer,
67
+ bk as JOB_INIT_VALUE,
68
+ bM as JobModel,
69
+ aj as JobsField,
70
+ aM as JobsGroup,
71
+ a7 as KeyValue,
72
+ a8 as KeyValueAnnotation,
73
+ L as KeyValueListWidget,
74
+ a9 as KeyValueSecret,
75
+ av as LabelsField,
76
+ ad as Layout,
77
+ aT as ListPage,
78
+ aX as Menu,
75
79
  M as MetadataForm,
76
- b8 as NETWORK_POLICY_INIT_VALUE,
77
- aN as NS_STORE_KEY,
80
+ bt as NETWORK_POLICY_INIT_VALUE,
81
+ a$ as NS_STORE_KEY,
78
82
  N as NameColumnRenderer,
79
- w as NameInputWidget,
83
+ E as NameInputWidget,
80
84
  b as NameSpaceColumnRenderer,
81
- am as NamespaceField,
82
- E as NamespaceSelectWidget,
83
- aQ as NamespacesFilter,
84
- au as NetworkPolicyEgressRulesTab,
85
- at as NetworkPolicyIngressRulesTab,
86
- bj as NetworkPolicyModel,
87
- aZ as NetworkPolicyRulesTable,
85
+ at as NamespaceField,
86
+ J as NamespaceSelectWidget,
87
+ b2 as NamespacesFilter,
88
+ aD as NetworkPolicyEgressRulesTab,
89
+ aC as NetworkPolicyIngressRulesTab,
90
+ bL as NetworkPolicyModel,
91
+ be as NetworkPolicyRulesTable,
88
92
  f as NodeNameColumnRenderer,
89
- b5 as POD_INIT_VALUE,
90
- G as PageShow,
91
- ax as PodContainersTab,
92
- J as PodContainersTable,
93
- aX as PodLog,
94
- ay as PodLogTab,
95
- bo as PodMetricsModel,
96
- bn as PodModel,
97
- P as PodWorkloadColumnRenderer,
98
- ab as PodsField,
99
- aA as PodsGroup,
100
- bx as ProviderPlugins,
101
- bd as RESOURCE_GROUP,
102
- aL as ReferenceLink,
103
- aS as RefineFormModal,
104
- aR as RefineFormPage,
105
- a9 as ReplicaField,
93
+ bm as POD_INIT_VALUE,
94
+ O as PageShow,
95
+ P as PlainTextNameColumnRenderer,
96
+ aI as PodContainersGroup,
97
+ q as PodContainersNumColumnRenderer,
98
+ T as PodContainersTable,
99
+ bd as PodLog,
100
+ aF as PodLogTab,
101
+ bQ as PodMetricsModel,
102
+ bP as PodModel,
103
+ az as PodSelectorField,
104
+ aO as PodSelectorGroup,
105
+ m as PodWorkloadColumnRenderer,
106
+ ai as PodsField,
107
+ aH as PodsGroup,
108
+ aP as PortsGroup,
109
+ aA as PortsTableField,
110
+ bZ as ProviderPlugins,
111
+ bF as RESOURCE_GROUP,
112
+ aZ as ReferenceLink,
113
+ b4 as RefineFormContent,
114
+ b5 as RefineFormPage,
115
+ ag as ReplicaField,
106
116
  R as ReplicasColumnRenderer,
107
- X as ResourceCRUD,
108
- V as ResourceForm,
109
- aM as ResourceLink,
110
- T as ResourceList,
111
- bp as ResourceModel,
112
- U as ResourceShow,
113
- $ as ResourceUsageBar,
117
+ a0 as ResourceCRUD,
118
+ $ as ResourceForm,
119
+ a_ as ResourceLink,
120
+ Z as ResourceList,
121
+ bR as ResourceModel,
122
+ _ as ResourceShow,
123
+ a3 as ResourceUsageBar,
114
124
  g as RestartCountColumnRenderer,
115
- b9 as SERVER_INSTANCE_INIT_VALUE,
116
- b6 as SERVICE_INIT_VALUE,
117
- b4 as STATEFULSET_INIT_VALUE,
118
- aE as SchemaStrategy,
119
- ae as SecretDataField,
120
- aq as SecretDataTab,
121
- a3 as Separator,
125
+ bz as SECRET_BASIC_AUTH_INIT_VALUE,
126
+ bC as SECRET_CUSTOM_INIT_VALUE,
127
+ by as SECRET_IMAGE_REPO_INIT_VALUE,
128
+ bx as SECRET_OPAQUE_INIT_VALUE,
129
+ bA as SECRET_SSH_AUTH_INIT_VALUE,
130
+ bB as SECRET_TLS_INIT_VALUE,
131
+ bv as SERVER_INSTANCE_INIT_VALUE,
132
+ bn as SERVICE_CLUSTER_IP_INIT_VALUE,
133
+ bq as SERVICE_EXTERNAL_NAME_INIT_VALUE,
134
+ br as SERVICE_HEADLESS_INIT_VALUE,
135
+ bp as SERVICE_LOAD_BALANCER_INIT_VALUE,
136
+ bo as SERVICE_NODE_PORT_INIT_VALUE,
137
+ bl as STATEFULSET_INIT_VALUE,
138
+ b6 as SchemaStrategy,
139
+ al as SecretDataField,
140
+ aL as SecretDataGroup,
141
+ aa as Separator,
122
142
  k as ServiceInClusterAccessColumnRenderer,
123
- aT as ServiceInClusterAccessComponent,
124
- bw as ServiceModel,
143
+ b9 as ServiceInClusterAccessComponent,
144
+ ax as ServiceInnerClusterAccessField,
145
+ bY as ServiceModel,
125
146
  l as ServiceOutClusterAccessColumnRenderer,
126
- aU as ServiceOutClusterAccessComponent,
127
- aj as ServicePodsField,
128
- aB as ServicePodsGroup,
147
+ ba as ServiceOutClusterAccessComponent,
148
+ ay as ServiceOutClusterAccessField,
149
+ aq as ServicePodsField,
150
+ aJ as ServicePodsGroup,
129
151
  i as ServiceTypeColumnRenderer,
130
- bv as ServiceTypeEnum,
131
- ag as ServiceTypeField,
132
- ai as SessionAffinityField,
133
- aD as ShowContent,
134
- af as StartTimeField,
152
+ bX as ServiceTypeEnum,
153
+ an as ServiceTypeField,
154
+ ap as SessionAffinityField,
155
+ aR as ShowContent,
156
+ aQ as ShowGroupComponent,
157
+ am as StartTimeField,
135
158
  S as StateDisplayColumnRenderer,
136
- aH as StateTag,
137
- bu as StatefulSetModel,
138
- ba as TIMESTAMP_LABEL,
139
- a_ as Tabs,
140
- aV as Tags,
141
- aW as TextTags,
142
- bm as WorkloadBaseModel,
143
- L as WorkloadDropdown,
159
+ aV as StateTag,
160
+ aU as StateTagStyle,
161
+ bW as StatefulSetModel,
162
+ bw as TIMESTAMP_LABEL,
163
+ bf as Tabs,
164
+ bb as Tags,
165
+ bc as TextTags,
166
+ bO as WorkloadBaseModel,
167
+ U as WorkloadDropdown,
144
168
  W as WorkloadImageColumnRenderer,
145
- bl as WorkloadModel,
146
- Z as WorkloadPodsTable,
147
- a0 as WorkloadReplicas,
169
+ bN as WorkloadModel,
170
+ a1 as WorkloadPodsTable,
171
+ a5 as WorkloadReplicas,
172
+ a4 as WorkloadReplicasForm,
148
173
  e as WorkloadRestartsColumnRenderer,
149
- bb as WorkloadState,
150
- a4 as YamlEditorComponent,
151
- x as dnsSubDomainRules,
174
+ bD as WorkloadState,
175
+ ab as YamlEditorComponent,
176
+ b7 as YamlForm,
177
+ F as dnsSubDomainRules,
152
178
  d as dovetailRefineI18n,
153
- F as namespaceRules,
154
- z as rfc1035LabelRules,
155
- y as rfc1123LabelRules,
179
+ K as namespaceRules,
180
+ H as rfc1035LabelRules,
181
+ G as rfc1123LabelRules,
156
182
  r as routerProvider,
157
183
  a as useDeleteModal,
158
- s as useDownloadYAML,
159
- q as useEagleTable,
160
- t as useEdit,
161
- v as useGlobalStore,
162
- aP as useNamespacesFilter,
184
+ w as useDownloadYAML,
185
+ v as useEagleTable,
186
+ x as useEdit,
187
+ y as useGlobalStore,
188
+ b1 as useNamespacesFilter,
189
+ z as useOpenForm,
190
+ b8 as useRefineForm,
163
191
  u as useSchema
164
192
  };