@dovetail-v2/refine 0.1.15-alpha.2 → 0.1.16
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/{MonacoYamlDiffEditor-8f26322f.js → MonacoYamlDiffEditor-4fb3ff3b.js} +1 -1
- package/dist/{index-8560b9d7.js → index-c5295550.js} +44 -32
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +43 -31
- package/lib/components/EditMetadataForm/KeyValueTableForm.d.ts +1 -0
- package/lib/components/EditMetadataForm/LabelFormatPopover.d.ts +3 -1
- package/lib/types/resource.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1548,7 +1548,7 @@ const change_form_mode_alert = "从编辑 YAML 切回表单编辑,将无法保
|
|
|
1548
1548
|
const pvc_storage_required = "请填写分配量。";
|
|
1549
1549
|
const pvc_storage_min = "请输入正整数。";
|
|
1550
1550
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1551
|
-
const pvc_storage_max_limit = "分配量不能超过
|
|
1551
|
+
const pvc_storage_max_limit = "分配量不能超过 64 TiB。";
|
|
1552
1552
|
const key_empty_text = "请填写键。";
|
|
1553
1553
|
const format_error = "格式错误。";
|
|
1554
1554
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -12189,8 +12189,7 @@ function KeyValueSecret(props) {
|
|
|
12189
12189
|
});
|
|
12190
12190
|
}
|
|
12191
12191
|
function validateLabelKey(key2) {
|
|
12192
|
-
const
|
|
12193
|
-
const labelNameRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-]*[a-zA-Z0-9]$)/;
|
|
12192
|
+
const labelRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-\_]*[a-zA-Z0-9]$)/;
|
|
12194
12193
|
let prefix, name2;
|
|
12195
12194
|
const splitResult = key2.split("/");
|
|
12196
12195
|
if (splitResult.length === 1) {
|
|
@@ -12202,10 +12201,10 @@ function validateLabelKey(key2) {
|
|
|
12202
12201
|
if (prefix === "") {
|
|
12203
12202
|
return { isValid: false, errorMessage: "EMPTY_PREFIX" };
|
|
12204
12203
|
}
|
|
12205
|
-
if (prefix && !
|
|
12204
|
+
if (prefix && !labelRegex.test(prefix)) {
|
|
12206
12205
|
return { isValid: false, errorMessage: "INVALID_PREFIX" };
|
|
12207
12206
|
}
|
|
12208
|
-
if (!
|
|
12207
|
+
if (!labelRegex.test(name2)) {
|
|
12209
12208
|
return { isValid: false, errorMessage: "INVALID_NAME" };
|
|
12210
12209
|
}
|
|
12211
12210
|
if (prefix && prefix.length > 253) {
|
|
@@ -12217,7 +12216,7 @@ function validateLabelKey(key2) {
|
|
|
12217
12216
|
return { isValid: true };
|
|
12218
12217
|
}
|
|
12219
12218
|
function validateLabelValue(value2) {
|
|
12220
|
-
const labelValueRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9
|
|
12219
|
+
const labelValueRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-\_]*[a-zA-Z0-9]$)/;
|
|
12221
12220
|
if (value2 === "") {
|
|
12222
12221
|
return { isValid: true };
|
|
12223
12222
|
}
|
|
@@ -12231,31 +12230,37 @@ function validateLabelValue(value2) {
|
|
|
12231
12230
|
}
|
|
12232
12231
|
const LabelFormatPopover_105yfzn = "";
|
|
12233
12232
|
const PodLabelFormatRulePopoverStyle = "p5jt6nm";
|
|
12234
|
-
const LabelFormatPopover = (
|
|
12233
|
+
const LabelFormatPopover = ({
|
|
12234
|
+
noValueValidation
|
|
12235
|
+
}) => {
|
|
12235
12236
|
const {
|
|
12236
12237
|
t: t2
|
|
12237
12238
|
} = useTranslation();
|
|
12239
|
+
const data2 = [{
|
|
12240
|
+
object: t2("dovetail.key"),
|
|
12241
|
+
contains: t2("dovetail.suffix"),
|
|
12242
|
+
optional: t2("dovetail.no"),
|
|
12243
|
+
rule: [t2("dovetail.suffix_format_rule_1"), t2("dovetail.suffix_format_rule_2"), t2("dovetail.suffix_format_rule_3")]
|
|
12244
|
+
}, {
|
|
12245
|
+
object: t2("dovetail.key"),
|
|
12246
|
+
contains: t2("dovetail.name"),
|
|
12247
|
+
optional: t2("dovetail.yes"),
|
|
12248
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12249
|
+
}];
|
|
12250
|
+
if (!noValueValidation) {
|
|
12251
|
+
data2.push({
|
|
12252
|
+
object: t2("dovetail.value"),
|
|
12253
|
+
contains: t2("dovetail.name"),
|
|
12254
|
+
optional: t2("dovetail.no"),
|
|
12255
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12256
|
+
});
|
|
12257
|
+
}
|
|
12238
12258
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, {
|
|
12239
12259
|
overlayClassName: PodLabelFormatRulePopoverStyle,
|
|
12240
12260
|
placement: "bottomRight",
|
|
12241
12261
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(AntdTable, {
|
|
12242
12262
|
bordered: true,
|
|
12243
|
-
dataSource:
|
|
12244
|
-
object: t2("dovetail.key"),
|
|
12245
|
-
contains: t2("dovetail.suffix"),
|
|
12246
|
-
optional: t2("dovetail.no"),
|
|
12247
|
-
rule: [t2("dovetail.suffix_format_rule_1"), t2("dovetail.suffix_format_rule_2"), t2("dovetail.suffix_format_rule_3")]
|
|
12248
|
-
}, {
|
|
12249
|
-
object: t2("dovetail.key"),
|
|
12250
|
-
contains: t2("dovetail.name"),
|
|
12251
|
-
optional: t2("dovetail.yes"),
|
|
12252
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12253
|
-
}, {
|
|
12254
|
-
object: t2("dovetail.value"),
|
|
12255
|
-
contains: t2("dovetail.name"),
|
|
12256
|
-
optional: t2("dovetail.no"),
|
|
12257
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12258
|
-
}],
|
|
12263
|
+
dataSource: data2,
|
|
12259
12264
|
columns: [{
|
|
12260
12265
|
key: "object",
|
|
12261
12266
|
title: t2("dovetail.object"),
|
|
@@ -12307,7 +12312,8 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12307
12312
|
defaultValue,
|
|
12308
12313
|
onSubmit,
|
|
12309
12314
|
extraColumns,
|
|
12310
|
-
addButtonText
|
|
12315
|
+
addButtonText,
|
|
12316
|
+
noValueValidation
|
|
12311
12317
|
} = props;
|
|
12312
12318
|
const {
|
|
12313
12319
|
t: t2
|
|
@@ -12377,6 +12383,8 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12377
12383
|
validator: ({
|
|
12378
12384
|
value: value22
|
|
12379
12385
|
}) => {
|
|
12386
|
+
if (noValueValidation)
|
|
12387
|
+
return;
|
|
12380
12388
|
const {
|
|
12381
12389
|
isValid
|
|
12382
12390
|
} = validateLabelValue(value22 || "");
|
|
@@ -12395,7 +12403,9 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12395
12403
|
row: {
|
|
12396
12404
|
deletable: true
|
|
12397
12405
|
}
|
|
12398
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12406
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12407
|
+
noValueValidation
|
|
12408
|
+
})]
|
|
12399
12409
|
});
|
|
12400
12410
|
}
|
|
12401
12411
|
const KeyValueTableFormForm = React__default.forwardRef(_KeyValueTableFormForm);
|
|
@@ -13383,8 +13393,8 @@ const SCReclaimPolicyField = (i18n2) => {
|
|
|
13383
13393
|
};
|
|
13384
13394
|
const IsSCAllowVolumeExpansionField = (i18n2) => {
|
|
13385
13395
|
return {
|
|
13386
|
-
key: "
|
|
13387
|
-
path: ["
|
|
13396
|
+
key: "allowVolumeExpansion",
|
|
13397
|
+
path: ["allowVolumeExpansion"],
|
|
13388
13398
|
title: i18n2.t("dovetail.allow_expand"),
|
|
13389
13399
|
renderContent(val) {
|
|
13390
13400
|
return val ? i18n2.t("dovetail.support") : i18n2.t("dovetail.not_support");
|
|
@@ -35926,7 +35936,8 @@ function ListPage(props) {
|
|
|
35926
35936
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
35927
35937
|
selectedKeys,
|
|
35928
35938
|
title: config == null ? void 0 : config.displayName,
|
|
35929
|
-
description: config == null ? void 0 : config.description
|
|
35939
|
+
description: config == null ? void 0 : config.description,
|
|
35940
|
+
hideCreate: config == null ? void 0 : config.hideCreate
|
|
35930
35941
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
35931
35942
|
style: {
|
|
35932
35943
|
margin: 0,
|
|
@@ -38398,7 +38409,7 @@ const Separator = () => {
|
|
|
38398
38409
|
});
|
|
38399
38410
|
};
|
|
38400
38411
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38401
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38412
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-4fb3ff3b.js"));
|
|
38402
38413
|
const YamlEditorComponent = forwardRef(
|
|
38403
38414
|
function YamlEditorComponent2(props, ref) {
|
|
38404
38415
|
const {
|
|
@@ -39607,7 +39618,8 @@ const EditAnnotationForm = React__default.forwardRef(function EditAnnotationForm
|
|
|
39607
39618
|
ref,
|
|
39608
39619
|
defaultValue,
|
|
39609
39620
|
onSubmit,
|
|
39610
|
-
addButtonText: t2("dovetail.add_annotation")
|
|
39621
|
+
addButtonText: t2("dovetail.add_annotation"),
|
|
39622
|
+
noValueValidation: true
|
|
39611
39623
|
}
|
|
39612
39624
|
);
|
|
39613
39625
|
});
|
|
@@ -40630,9 +40642,9 @@ const SCReclaimPolicyColumnRenderer = (i18n2) => {
|
|
|
40630
40642
|
};
|
|
40631
40643
|
const SCAllowExpandColumnRenderer = (i18n2) => {
|
|
40632
40644
|
return {
|
|
40633
|
-
key: "
|
|
40645
|
+
key: "allowVolumeExpansion",
|
|
40634
40646
|
display: true,
|
|
40635
|
-
dataIndex: ["
|
|
40647
|
+
dataIndex: ["allowVolumeExpansion"],
|
|
40636
40648
|
title: i18n2.t("dovetail.allow_expand"),
|
|
40637
40649
|
width: 120,
|
|
40638
40650
|
sortable: true,
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-
|
|
1
|
+
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-c5295550.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -1554,7 +1554,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1554
1554
|
const pvc_storage_required = "请填写分配量。";
|
|
1555
1555
|
const pvc_storage_min = "请输入正整数。";
|
|
1556
1556
|
const pvc_storage_reduce_limit = "输入值不得小于当前数值。";
|
|
1557
|
-
const pvc_storage_max_limit = "分配量不能超过
|
|
1557
|
+
const pvc_storage_max_limit = "分配量不能超过 64 TiB。";
|
|
1558
1558
|
const key_empty_text = "请填写键。";
|
|
1559
1559
|
const format_error = "格式错误。";
|
|
1560
1560
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -12195,8 +12195,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12195
12195
|
});
|
|
12196
12196
|
}
|
|
12197
12197
|
function validateLabelKey(key2) {
|
|
12198
|
-
const
|
|
12199
|
-
const labelNameRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-]*[a-zA-Z0-9]$)/;
|
|
12198
|
+
const labelRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-\_]*[a-zA-Z0-9]$)/;
|
|
12200
12199
|
let prefix, name2;
|
|
12201
12200
|
const splitResult = key2.split("/");
|
|
12202
12201
|
if (splitResult.length === 1) {
|
|
@@ -12208,10 +12207,10 @@ var __publicField = (obj, key, value) => {
|
|
|
12208
12207
|
if (prefix === "") {
|
|
12209
12208
|
return { isValid: false, errorMessage: "EMPTY_PREFIX" };
|
|
12210
12209
|
}
|
|
12211
|
-
if (prefix && !
|
|
12210
|
+
if (prefix && !labelRegex.test(prefix)) {
|
|
12212
12211
|
return { isValid: false, errorMessage: "INVALID_PREFIX" };
|
|
12213
12212
|
}
|
|
12214
|
-
if (!
|
|
12213
|
+
if (!labelRegex.test(name2)) {
|
|
12215
12214
|
return { isValid: false, errorMessage: "INVALID_NAME" };
|
|
12216
12215
|
}
|
|
12217
12216
|
if (prefix && prefix.length > 253) {
|
|
@@ -12223,7 +12222,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12223
12222
|
return { isValid: true };
|
|
12224
12223
|
}
|
|
12225
12224
|
function validateLabelValue(value2) {
|
|
12226
|
-
const labelValueRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9
|
|
12225
|
+
const labelValueRegex = /(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9\.\-\_]*[a-zA-Z0-9]$)/;
|
|
12227
12226
|
if (value2 === "") {
|
|
12228
12227
|
return { isValid: true };
|
|
12229
12228
|
}
|
|
@@ -12237,31 +12236,37 @@ var __publicField = (obj, key, value) => {
|
|
|
12237
12236
|
}
|
|
12238
12237
|
const LabelFormatPopover_105yfzn = "";
|
|
12239
12238
|
const PodLabelFormatRulePopoverStyle = "p5jt6nm";
|
|
12240
|
-
const LabelFormatPopover = (
|
|
12239
|
+
const LabelFormatPopover = ({
|
|
12240
|
+
noValueValidation
|
|
12241
|
+
}) => {
|
|
12241
12242
|
const {
|
|
12242
12243
|
t: t2
|
|
12243
12244
|
} = useTranslation();
|
|
12245
|
+
const data2 = [{
|
|
12246
|
+
object: t2("dovetail.key"),
|
|
12247
|
+
contains: t2("dovetail.suffix"),
|
|
12248
|
+
optional: t2("dovetail.no"),
|
|
12249
|
+
rule: [t2("dovetail.suffix_format_rule_1"), t2("dovetail.suffix_format_rule_2"), t2("dovetail.suffix_format_rule_3")]
|
|
12250
|
+
}, {
|
|
12251
|
+
object: t2("dovetail.key"),
|
|
12252
|
+
contains: t2("dovetail.name"),
|
|
12253
|
+
optional: t2("dovetail.yes"),
|
|
12254
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12255
|
+
}];
|
|
12256
|
+
if (!noValueValidation) {
|
|
12257
|
+
data2.push({
|
|
12258
|
+
object: t2("dovetail.value"),
|
|
12259
|
+
contains: t2("dovetail.name"),
|
|
12260
|
+
optional: t2("dovetail.no"),
|
|
12261
|
+
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12262
|
+
});
|
|
12263
|
+
}
|
|
12244
12264
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Popover, {
|
|
12245
12265
|
overlayClassName: PodLabelFormatRulePopoverStyle,
|
|
12246
12266
|
placement: "bottomRight",
|
|
12247
12267
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdTable, {
|
|
12248
12268
|
bordered: true,
|
|
12249
|
-
dataSource:
|
|
12250
|
-
object: t2("dovetail.key"),
|
|
12251
|
-
contains: t2("dovetail.suffix"),
|
|
12252
|
-
optional: t2("dovetail.no"),
|
|
12253
|
-
rule: [t2("dovetail.suffix_format_rule_1"), t2("dovetail.suffix_format_rule_2"), t2("dovetail.suffix_format_rule_3")]
|
|
12254
|
-
}, {
|
|
12255
|
-
object: t2("dovetail.key"),
|
|
12256
|
-
contains: t2("dovetail.name"),
|
|
12257
|
-
optional: t2("dovetail.yes"),
|
|
12258
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12259
|
-
}, {
|
|
12260
|
-
object: t2("dovetail.value"),
|
|
12261
|
-
contains: t2("dovetail.name"),
|
|
12262
|
-
optional: t2("dovetail.no"),
|
|
12263
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12264
|
-
}],
|
|
12269
|
+
dataSource: data2,
|
|
12265
12270
|
columns: [{
|
|
12266
12271
|
key: "object",
|
|
12267
12272
|
title: t2("dovetail.object"),
|
|
@@ -12313,7 +12318,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12313
12318
|
defaultValue,
|
|
12314
12319
|
onSubmit,
|
|
12315
12320
|
extraColumns,
|
|
12316
|
-
addButtonText
|
|
12321
|
+
addButtonText,
|
|
12322
|
+
noValueValidation
|
|
12317
12323
|
} = props;
|
|
12318
12324
|
const {
|
|
12319
12325
|
t: t2
|
|
@@ -12383,6 +12389,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12383
12389
|
validator: ({
|
|
12384
12390
|
value: value22
|
|
12385
12391
|
}) => {
|
|
12392
|
+
if (noValueValidation)
|
|
12393
|
+
return;
|
|
12386
12394
|
const {
|
|
12387
12395
|
isValid
|
|
12388
12396
|
} = validateLabelValue(value22 || "");
|
|
@@ -12401,7 +12409,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12401
12409
|
row: {
|
|
12402
12410
|
deletable: true
|
|
12403
12411
|
}
|
|
12404
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12412
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12413
|
+
noValueValidation
|
|
12414
|
+
})]
|
|
12405
12415
|
});
|
|
12406
12416
|
}
|
|
12407
12417
|
const KeyValueTableFormForm = React.forwardRef(_KeyValueTableFormForm);
|
|
@@ -13389,8 +13399,8 @@ var __publicField = (obj, key, value) => {
|
|
|
13389
13399
|
};
|
|
13390
13400
|
const IsSCAllowVolumeExpansionField = (i18n2) => {
|
|
13391
13401
|
return {
|
|
13392
|
-
key: "
|
|
13393
|
-
path: ["
|
|
13402
|
+
key: "allowVolumeExpansion",
|
|
13403
|
+
path: ["allowVolumeExpansion"],
|
|
13394
13404
|
title: i18n2.t("dovetail.allow_expand"),
|
|
13395
13405
|
renderContent(val) {
|
|
13396
13406
|
return val ? i18n2.t("dovetail.support") : i18n2.t("dovetail.not_support");
|
|
@@ -35932,7 +35942,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
35932
35942
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
35933
35943
|
selectedKeys,
|
|
35934
35944
|
title: config == null ? void 0 : config.displayName,
|
|
35935
|
-
description: config == null ? void 0 : config.description
|
|
35945
|
+
description: config == null ? void 0 : config.description,
|
|
35946
|
+
hideCreate: config == null ? void 0 : config.hideCreate
|
|
35936
35947
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
|
|
35937
35948
|
style: {
|
|
35938
35949
|
margin: 0,
|
|
@@ -39613,7 +39624,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39613
39624
|
ref,
|
|
39614
39625
|
defaultValue,
|
|
39615
39626
|
onSubmit,
|
|
39616
|
-
addButtonText: t2("dovetail.add_annotation")
|
|
39627
|
+
addButtonText: t2("dovetail.add_annotation"),
|
|
39628
|
+
noValueValidation: true
|
|
39617
39629
|
}
|
|
39618
39630
|
);
|
|
39619
39631
|
});
|
|
@@ -40636,9 +40648,9 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40636
40648
|
};
|
|
40637
40649
|
const SCAllowExpandColumnRenderer = (i18n2) => {
|
|
40638
40650
|
return {
|
|
40639
|
-
key: "
|
|
40651
|
+
key: "allowVolumeExpansion",
|
|
40640
40652
|
display: true,
|
|
40641
|
-
dataIndex: ["
|
|
40653
|
+
dataIndex: ["allowVolumeExpansion"],
|
|
40642
40654
|
title: i18n2.t("dovetail.allow_expand"),
|
|
40643
40655
|
width: 120,
|
|
40644
40656
|
sortable: true,
|
|
@@ -10,6 +10,7 @@ interface KeyValueTableFormFormProps<T extends KeyValuePair> {
|
|
|
10
10
|
onSubmit: (value: T[]) => Promise<unknown> | undefined;
|
|
11
11
|
extraColumns?: TableFormColumn[];
|
|
12
12
|
addButtonText?: string;
|
|
13
|
+
noValueValidation?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare const KeyValueTableFormForm: React.ForwardRefExoticComponent<KeyValueTableFormFormProps<KeyValuePair> & React.RefAttributes<EditFieldFormHandler>>;
|
|
15
16
|
export {};
|
package/lib/types/resource.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
31
31
|
hideListToolBar?: boolean;
|
|
32
32
|
hideNamespacesFilter?: boolean;
|
|
33
33
|
hideEdit?: boolean;
|
|
34
|
+
hideCreate?: boolean;
|
|
34
35
|
description?: string;
|
|
35
36
|
parent?: RESOURCE_GROUP;
|
|
36
37
|
formatter?: (v: Model) => Model;
|