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