@dovetail-v2/refine 0.3.0 → 0.3.1
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/{MonacoYamlEditor-74ecf0d5.js → MonacoYamlEditor-5e4c98ce.js} +1 -1
- package/dist/{MonacoYamlEditor-1ed09191.cjs → MonacoYamlEditor-9b8b7cef.cjs} +1 -1
- package/dist/components/Form/FormModal.d.ts +2 -0
- package/dist/components/Form/RefineFormContainer.d.ts +2 -1
- package/dist/components/Form/YamlForm.d.ts +2 -2
- package/dist/components/Form/YamlFormContainer.d.ts +3 -2
- package/dist/components/Form/type.d.ts +11 -1
- package/dist/components/KeyValueTableForm/index.d.ts +34 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useOpenForm.d.ts +5 -2
- package/dist/i18n.d.ts +1 -0
- package/dist/{index-23ef5f69.js → index-c4f4f337.js} +393 -252
- package/dist/{index-7c78ef6f.cjs → index-e9523181.cjs} +306 -165
- package/dist/locales/zh-CN/index.d.ts +1 -0
- package/dist/refine.cjs +6 -1
- package/dist/refine.js +90 -85
- package/dist/style.css +9 -4
- package/dist/utils/file.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/validation.d.ts +5 -1
- package/package.json +1 -1
- package/dist/components/EditMetadataForm/KeyValueTableForm.d.ts +0 -16
package/dist/refine.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const refine = require("./index-
|
|
3
|
+
const refine = require("./index-e9523181.cjs");
|
|
4
4
|
require("./common-1eb43414.cjs");
|
|
5
5
|
require("@cloudtower/eagle");
|
|
6
6
|
require("@refinedev/core");
|
|
@@ -67,6 +67,7 @@ exports.EventsTab = refine.EventsTab;
|
|
|
67
67
|
exports.EventsTableTabField = refine.EventsTableTabField;
|
|
68
68
|
exports.FormContainerType = refine.FormContainerType;
|
|
69
69
|
exports.FormErrorAlert = refine.FormErrorAlert;
|
|
70
|
+
exports.FormItemLayout = refine.FormItemLayout;
|
|
70
71
|
exports.FormModal = refine.FormModal;
|
|
71
72
|
exports.FormMode = refine.FormMode;
|
|
72
73
|
exports.FormType = refine.FormType;
|
|
@@ -93,6 +94,7 @@ exports.KeyValue = refine.KeyValue;
|
|
|
93
94
|
exports.KeyValueAnnotation = refine.KeyValueAnnotation;
|
|
94
95
|
exports.KeyValueListWidget = refine.KeyValueListWidget;
|
|
95
96
|
exports.KeyValueSecret = refine.KeyValueSecret;
|
|
97
|
+
exports.KeyValueTableForm = refine.KeyValueTableForm;
|
|
96
98
|
exports.LabelsField = refine.LabelsField;
|
|
97
99
|
exports.Layout = refine.Layout;
|
|
98
100
|
exports.ListPage = refine.ListPage;
|
|
@@ -278,3 +280,6 @@ exports.useNamespacesFilter = refine.useNamespacesFilter;
|
|
|
278
280
|
exports.useOpenForm = refine.useOpenForm;
|
|
279
281
|
exports.useRefineForm = refine.useRefineForm;
|
|
280
282
|
exports.useSchema = refine.useSchema;
|
|
283
|
+
exports.validateDnsSubdomain = refine.validateDnsSubdomain;
|
|
284
|
+
exports.validateLabelKey = refine.validateLabelKey;
|
|
285
|
+
exports.validateLabelValue = refine.validateLabelValue;
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bO,
|
|
1
|
+
import { bO, cE, A, aX, aZ, aG, cc, bl, a2, cq, ce, aR, T, C, j, cK, aJ, bq, ad, cM, aj, aq, cV, ay, cf, cd, cY, aN, bx, w, aE, bE, cX, cF, bH, D, b2, at, bK, as, au, a1, ca, c9, cW, bj, aV, cH, ae, bY, bR, cJ, cI, cL, co, aH, ak, s, q, cN, I, bu, aU, t, M, bf, bh, cg, cP, aM, bt, ar, az, aA, a9, aB, cb, aY, aF, bF, bI, aa, d6, cp, cz, bN, N, a3, g, aW, a7, bQ, bz, by, cO, c2, d1, i, d0, aK, br, ci, L, bb, bc, bp, H, bd, J, be, B, b6, cC, z, b5, G, b9, E, b7, F, b8, K, c3, ba, cB, ab, d4, d3, P, bn, v, af, ai, c1, bk, cT, cS, b0, bv, c7, c6, p, aL, bm, x, bw, b1, d5, y, cs, cG, bL, bT, bU, d8, aI, h, ah, ao, an, bM, al, cU, c5, am, cD, c8, bi, bB, av, R, Q, O, bg, cv, cy, cu, ct, cw, cx, cr, cj, cm, cn, cl, ck, ch, cA, bV, aO, bs, aC, m, bZ, l, a_, c$, o, b_, a$, n, aT, bo, k, c_, aQ, aS, bD, bC, aP, S, bG, cZ, d2, b3, b4, bA, bJ, c4, b$, c0, ac, a0, cR, ag, W, cQ, ap, ax, aw, aD, bW, U, a4, d, db, da, dd, dg, df, d7, a8, de, d9, bS, dc, a6, a5, r, a, c, e, X, V, Z, f, _, u, bP, $, bX, b, dh, di, dj } from "./index-c4f4f337.js";
|
|
2
2
|
import "./common-feae5742.js";
|
|
3
3
|
import "@cloudtower/eagle";
|
|
4
4
|
import "@refinedev/core";
|
|
@@ -18,39 +18,39 @@ import "react-hook-form";
|
|
|
18
18
|
import "antd";
|
|
19
19
|
export {
|
|
20
20
|
bO as ALL_NS,
|
|
21
|
-
|
|
21
|
+
cE as AccessControlAuth,
|
|
22
22
|
A as AgeColumnRenderer,
|
|
23
23
|
aX as AgeField,
|
|
24
24
|
aZ as AnnotationsField,
|
|
25
25
|
aG as AreaType,
|
|
26
|
-
|
|
26
|
+
cc as BASE_INIT_VALUE,
|
|
27
27
|
bl as BasicGroup,
|
|
28
28
|
a2 as Breadcrumb,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
cq as CONFIG_MAP_INIT_VALUE,
|
|
30
|
+
ce as CRONJOB_INIT_VALUE,
|
|
31
31
|
aR as ClusterIpField,
|
|
32
32
|
T as ColumnKeys,
|
|
33
33
|
C as CommonSorter,
|
|
34
34
|
j as CompletionsCountColumnRenderer,
|
|
35
|
-
|
|
35
|
+
cK as ComponentContext,
|
|
36
36
|
aJ as ConditionsField,
|
|
37
37
|
bq as ConditionsGroup,
|
|
38
38
|
ad as ConditionsTable,
|
|
39
|
-
|
|
39
|
+
cM as ConfigsContext,
|
|
40
40
|
aj as CreateButton,
|
|
41
41
|
aq as CronJobDropdown,
|
|
42
|
-
|
|
42
|
+
cV as CronJobModel,
|
|
43
43
|
ay as CronjobJobsTable,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
cf as DAEMONSET_INIT_VALUE,
|
|
45
|
+
cd as DEPLOYMENT_INIT_VALUE,
|
|
46
|
+
cY as DaemonSetModel,
|
|
47
47
|
aN as DataField,
|
|
48
48
|
bx as DataGroup,
|
|
49
49
|
w as DataKeysColumnRenderer,
|
|
50
50
|
aE as DeleteButton,
|
|
51
51
|
bE as DeleteManyButton,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
cX as DeploymentModel,
|
|
53
|
+
cF as Dovetail,
|
|
54
54
|
bH as DrawerShow,
|
|
55
55
|
D as DurationColumnRenderer,
|
|
56
56
|
b2 as DurationField,
|
|
@@ -59,23 +59,24 @@ export {
|
|
|
59
59
|
as as EditLabelDropdownMenuItem,
|
|
60
60
|
au as EditNodeTaintDropdownMenuItem,
|
|
61
61
|
a1 as ErrorContent,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
ca as ErrorContentType,
|
|
63
|
+
c9 as ErrorWrapper,
|
|
64
|
+
cW as EventModel,
|
|
65
65
|
bj as EventsTab,
|
|
66
66
|
aV as EventsTableTabField,
|
|
67
|
-
|
|
67
|
+
cH as FormContainerType,
|
|
68
68
|
ae as FormErrorAlert,
|
|
69
|
+
bY as FormItemLayout,
|
|
69
70
|
bR as FormModal,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
cJ as FormMode,
|
|
72
|
+
cI as FormType,
|
|
73
|
+
cL as GlobalStoreContext,
|
|
74
|
+
co as INGRESS_INIT_VALUE,
|
|
74
75
|
aH as ImageField,
|
|
75
76
|
ak as ImageNames,
|
|
76
77
|
s as IngressClassColumnRenderer,
|
|
77
78
|
q as IngressDefaultBackendColumnRenderer,
|
|
78
|
-
|
|
79
|
+
cN as IngressModel,
|
|
79
80
|
I as IngressRulesColumnRenderer,
|
|
80
81
|
bu as IngressRulesGroup,
|
|
81
82
|
aU as IngressRulesTableTabField,
|
|
@@ -83,8 +84,8 @@ export {
|
|
|
83
84
|
M as IsDefaultSCColumnRenderer,
|
|
84
85
|
bf as IsDefaultSCField,
|
|
85
86
|
bh as IsSCAllowVolumeExpansionField,
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
cg as JOB_INIT_VALUE,
|
|
88
|
+
cP as JobModel,
|
|
88
89
|
aM as JobsField,
|
|
89
90
|
bt as JobsGroup,
|
|
90
91
|
ar as K8sDropdown,
|
|
@@ -92,14 +93,15 @@ export {
|
|
|
92
93
|
aA as KeyValueAnnotation,
|
|
93
94
|
a9 as KeyValueListWidget,
|
|
94
95
|
aB as KeyValueSecret,
|
|
96
|
+
cb as KeyValueTableForm,
|
|
95
97
|
aY as LabelsField,
|
|
96
98
|
aF as Layout,
|
|
97
99
|
bF as ListPage,
|
|
98
100
|
bI as Menu,
|
|
99
101
|
aa as MetadataForm,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
d6 as ModelPlugin,
|
|
103
|
+
cp as NETWORK_POLICY_INIT_VALUE,
|
|
104
|
+
cz as NODE_INIT_VALUE,
|
|
103
105
|
bN as NS_STORE_KEY,
|
|
104
106
|
N as NameColumnRenderer,
|
|
105
107
|
a3 as NameInputWidget,
|
|
@@ -109,14 +111,14 @@ export {
|
|
|
109
111
|
bQ as NamespacesFilter,
|
|
110
112
|
bz as NetworkPolicyEgressRulesGroup,
|
|
111
113
|
by as NetworkPolicyIngressRulesGroup,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
cO as NetworkPolicyModel,
|
|
115
|
+
c2 as NetworkPolicyRulesViewer,
|
|
116
|
+
d1 as NodeModel,
|
|
115
117
|
i as NodeNameColumnRenderer,
|
|
116
|
-
|
|
118
|
+
d0 as NodeRole,
|
|
117
119
|
aK as NodeTaintsField,
|
|
118
120
|
br as NodeTaintsGroup,
|
|
119
|
-
|
|
121
|
+
ci as POD_INIT_VALUE,
|
|
120
122
|
L as PVAccessModeColumnRenderer,
|
|
121
123
|
bb as PVAccessModeField,
|
|
122
124
|
bc as PVCPodsField,
|
|
@@ -127,7 +129,7 @@ export {
|
|
|
127
129
|
be as PVCSIRefField,
|
|
128
130
|
B as PVCStorageColumnRenderer,
|
|
129
131
|
b6 as PVCStorageField,
|
|
130
|
-
|
|
132
|
+
cC as PVC_INIT_VALUE,
|
|
131
133
|
z as PVCapacityColumnRenderer,
|
|
132
134
|
b5 as PVCapacityField,
|
|
133
135
|
G as PVPhaseColumnRenderer,
|
|
@@ -137,39 +139,39 @@ export {
|
|
|
137
139
|
F as PVStorageClassColumnRenderer,
|
|
138
140
|
b8 as PVStorageClassField,
|
|
139
141
|
K as PVVolumeModeColumnRenderer,
|
|
140
|
-
|
|
142
|
+
c3 as PVVolumeModeDisplay,
|
|
141
143
|
ba as PVVolumeModeField,
|
|
142
|
-
|
|
144
|
+
cB as PV_INIT_VALUE,
|
|
143
145
|
ab as PageShow,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
d4 as PersistentVolumeClaimModel,
|
|
147
|
+
d3 as PersistentVolumeModel,
|
|
146
148
|
P as PlainTextNameColumnRenderer,
|
|
147
149
|
bn as PodContainersGroup,
|
|
148
150
|
v as PodContainersNumColumnRenderer,
|
|
149
151
|
af as PodContainersTable,
|
|
150
152
|
ai as PodDropdown,
|
|
151
|
-
|
|
153
|
+
c1 as PodLog,
|
|
152
154
|
bk as PodLogTab,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
cT as PodMetricsModel,
|
|
156
|
+
cS as PodModel,
|
|
155
157
|
b0 as PodSelectorField,
|
|
156
158
|
bv as PodSelectorGroup,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
c7 as PodShell,
|
|
160
|
+
c6 as PodShellModal,
|
|
159
161
|
p as PodWorkloadColumnRenderer,
|
|
160
162
|
aL as PodsField,
|
|
161
163
|
bm as PodsGroup,
|
|
162
164
|
x as PortMappingColumnRenderer,
|
|
163
165
|
bw as PortsGroup,
|
|
164
166
|
b1 as PortsTableField,
|
|
165
|
-
|
|
167
|
+
d5 as ProviderPlugins,
|
|
166
168
|
y as ProvisionerColumnRenderer,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
cs as REDEPLOY_TIMESTAMP_KEY,
|
|
170
|
+
cG as RESOURCE_GROUP,
|
|
169
171
|
bL as ReferenceLink,
|
|
170
172
|
bT as RefineFormContent,
|
|
171
173
|
bU as RefineFormPage,
|
|
172
|
-
|
|
174
|
+
d8 as RelationPlugin,
|
|
173
175
|
aI as ReplicaField,
|
|
174
176
|
h as ReplicasColumnRenderer,
|
|
175
177
|
ah as ReplicasDropdown,
|
|
@@ -177,11 +179,11 @@ export {
|
|
|
177
179
|
an as ResourceForm,
|
|
178
180
|
bM as ResourceLink,
|
|
179
181
|
al as ResourceList,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
cU as ResourceModel,
|
|
183
|
+
c5 as ResourceSelect,
|
|
182
184
|
am as ResourceShow,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
cD as ResourceState,
|
|
186
|
+
c8 as ResourceTable,
|
|
185
187
|
bi as ResourceTableField,
|
|
186
188
|
bB as ResourceTableGroup,
|
|
187
189
|
av as ResourceUsageBar,
|
|
@@ -189,37 +191,37 @@ export {
|
|
|
189
191
|
Q as SCAllowExpandColumnRenderer,
|
|
190
192
|
O as SCReclaimPolicyColumnRenderer,
|
|
191
193
|
bg as SCReclaimPolicyField,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
cv as SECRET_BASIC_AUTH_INIT_VALUE,
|
|
195
|
+
cy as SECRET_CUSTOM_INIT_VALUE,
|
|
196
|
+
cu as SECRET_IMAGE_REPO_INIT_VALUE,
|
|
197
|
+
ct as SECRET_OPAQUE_INIT_VALUE,
|
|
198
|
+
cw as SECRET_SSH_AUTH_INIT_VALUE,
|
|
199
|
+
cx as SECRET_TLS_INIT_VALUE,
|
|
200
|
+
cr as SERVER_INSTANCE_INIT_VALUE,
|
|
201
|
+
cj as SERVICE_CLUSTER_IP_INIT_VALUE,
|
|
202
|
+
cm as SERVICE_EXTERNAL_NAME_INIT_VALUE,
|
|
203
|
+
cn as SERVICE_HEADLESS_INIT_VALUE,
|
|
204
|
+
cl as SERVICE_LOAD_BALANCER_INIT_VALUE,
|
|
205
|
+
ck as SERVICE_NODE_PORT_INIT_VALUE,
|
|
206
|
+
ch as STATEFULSET_INIT_VALUE,
|
|
207
|
+
cA as STORAGE_CLASS_INIT_VALUE,
|
|
206
208
|
bV as SchemaStrategy,
|
|
207
209
|
aO as SecretDataField,
|
|
208
210
|
bs as SecretDataGroup,
|
|
209
211
|
aC as Separator,
|
|
210
212
|
m as ServiceInClusterAccessColumnRenderer,
|
|
211
|
-
|
|
213
|
+
bZ as ServiceInClusterAccessComponent,
|
|
212
214
|
l as ServiceInClusterAccessTitle,
|
|
213
215
|
a_ as ServiceInnerClusterAccessField,
|
|
214
|
-
|
|
216
|
+
c$ as ServiceModel,
|
|
215
217
|
o as ServiceOutClusterAccessColumnRenderer,
|
|
216
|
-
|
|
218
|
+
b_ as ServiceOutClusterAccessComponent,
|
|
217
219
|
a$ as ServiceOutClusterAccessField,
|
|
218
220
|
n as ServiceOutClusterAccessTitle,
|
|
219
221
|
aT as ServicePodsField,
|
|
220
222
|
bo as ServicePodsGroup,
|
|
221
223
|
k as ServiceTypeColumnRenderer,
|
|
222
|
-
|
|
224
|
+
c_ as ServiceTypeEnum,
|
|
223
225
|
aQ as ServiceTypeField,
|
|
224
226
|
aS as SessionAffinityField,
|
|
225
227
|
bD as ShowContent,
|
|
@@ -227,21 +229,21 @@ export {
|
|
|
227
229
|
aP as StartTimeField,
|
|
228
230
|
S as StateDisplayColumnRenderer,
|
|
229
231
|
bG as StateTag,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
cZ as StatefulSetModel,
|
|
233
|
+
d2 as StorageClassModel,
|
|
232
234
|
b3 as StorageClassProvisionerField,
|
|
233
235
|
b4 as StorageClassPvField,
|
|
234
236
|
bA as StorageClassPvGroup,
|
|
235
237
|
bJ as Table,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
c4 as Tabs,
|
|
239
|
+
b$ as Tags,
|
|
240
|
+
c0 as TextTags,
|
|
239
241
|
ac as Time,
|
|
240
242
|
a0 as ValueDisplay,
|
|
241
|
-
|
|
243
|
+
cR as WorkloadBaseModel,
|
|
242
244
|
ag as WorkloadDropdown,
|
|
243
245
|
W as WorkloadImageColumnRenderer,
|
|
244
|
-
|
|
246
|
+
cQ as WorkloadModel,
|
|
245
247
|
ap as WorkloadPodsTable,
|
|
246
248
|
ax as WorkloadReplicas,
|
|
247
249
|
aw as WorkloadReplicasForm,
|
|
@@ -250,17 +252,17 @@ export {
|
|
|
250
252
|
U as addDefaultRenderToColumns,
|
|
251
253
|
a4 as dnsSubDomainRules,
|
|
252
254
|
d as dovetailRefineI18n,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
db as generateSchemaTypeValue,
|
|
256
|
+
da as generateValueFromSchema,
|
|
257
|
+
dd as getApiVersion,
|
|
258
|
+
dg as getResourceNameByKind,
|
|
259
|
+
df as matchSelector,
|
|
260
|
+
d7 as modelPlugin,
|
|
259
261
|
a8 as namespaceRules,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
+
de as pruneBeforeEdit,
|
|
263
|
+
d9 as relationPlugin,
|
|
262
264
|
bS as renderCommonFormFiled,
|
|
263
|
-
|
|
265
|
+
dc as resolveRef,
|
|
264
266
|
a6 as rfc1035LabelRules,
|
|
265
267
|
a5 as rfc1123LabelRules,
|
|
266
268
|
r as routerProvider,
|
|
@@ -276,5 +278,8 @@ export {
|
|
|
276
278
|
bP as useNamespacesFilter,
|
|
277
279
|
$ as useOpenForm,
|
|
278
280
|
bX as useRefineForm,
|
|
279
|
-
b as useSchema
|
|
281
|
+
b as useSchema,
|
|
282
|
+
dh as validateDnsSubdomain,
|
|
283
|
+
di as validateLabelKey,
|
|
284
|
+
dj as validateLabelValue
|
|
280
285
|
};
|
package/dist/style.css
CHANGED
|
@@ -1852,11 +1852,11 @@
|
|
|
1852
1852
|
/* box shadow */
|
|
1853
1853
|
/* fisheye */
|
|
1854
1854
|
/* z-index */
|
|
1855
|
-
.
|
|
1855
|
+
.c17gq8cd {
|
|
1856
1856
|
min-height: 24px !important;
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
|
-
.
|
|
1859
|
+
.c1n7fiws {
|
|
1860
1860
|
width: 100%;
|
|
1861
1861
|
}/* // basic */
|
|
1862
1862
|
/* FishEye Color Variables and Functions */
|
|
@@ -3826,11 +3826,16 @@
|
|
|
3826
3826
|
/* box shadow */
|
|
3827
3827
|
/* fisheye */
|
|
3828
3828
|
/* z-index */
|
|
3829
|
-
.
|
|
3830
|
-
|
|
3829
|
+
.v154n7ie.ant-form-item {
|
|
3830
|
+
flex-direction: column !important;
|
|
3831
|
+
gap: 8px;
|
|
3831
3832
|
}
|
|
3832
3833
|
|
|
3833
3834
|
.c1c9j4da {
|
|
3835
|
+
max-width: 144px;
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
.cjxv8cf {
|
|
3834
3839
|
flex-basis: 58%;
|
|
3835
3840
|
width: 100%;
|
|
3836
3841
|
margin: 0 auto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function readFileAsBase64(file: File): Promise<unknown>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
export declare function validateDnsSubdomain(subdomain: string): {
|
|
2
|
+
isValid: boolean;
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
};
|
|
1
5
|
export declare function validateLabelKey(key: string): {
|
|
2
6
|
isValid: boolean;
|
|
3
7
|
errorMessage?: string;
|
|
4
8
|
};
|
|
5
|
-
export declare function validateLabelValue(value: string): {
|
|
9
|
+
export declare function validateLabelValue(value: string, isOptional?: boolean): {
|
|
6
10
|
isValid: boolean;
|
|
7
11
|
errorMessage?: string;
|
|
8
12
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TableFormColumn } from '@cloudtower/eagle';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { EditFieldFormHandler } from '../EditField';
|
|
4
|
-
export type KeyValuePair = {
|
|
5
|
-
key: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
};
|
|
8
|
-
interface KeyValueTableFormFormProps<T extends KeyValuePair> {
|
|
9
|
-
defaultValue: T[];
|
|
10
|
-
onSubmit: (value: T[]) => Promise<unknown> | undefined;
|
|
11
|
-
extraColumns?: TableFormColumn[];
|
|
12
|
-
addButtonText?: string;
|
|
13
|
-
noValueValidation?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const KeyValueTableFormForm: React.ForwardRefExoticComponent<KeyValueTableFormFormProps<KeyValuePair> & React.RefAttributes<EditFieldFormHandler>>;
|
|
16
|
-
export {};
|