@dovetail-v2/refine 0.1.15-alpha.1 → 0.1.15
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-440e4624.js → MonacoYamlDiffEditor-93fa7132.js} +1 -1
- package/dist/{index-0e3c2558.js → index-9c0a49f4.js} +45 -30
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +44 -29
- package/lib/components/EditMetadataForm/KeyValueTableForm.d.ts +1 -0
- package/lib/components/EditMetadataForm/LabelFormatPopover.d.ts +3 -1
- package/lib/i18n.d.ts +1 -0
- package/lib/locales/zh-CN/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1548,6 +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 = "分配量不能超过 64 TiB。";
|
|
1551
1552
|
const key_empty_text = "请填写键。";
|
|
1552
1553
|
const format_error = "格式错误。";
|
|
1553
1554
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1782,6 +1783,7 @@ const dovetail = {
|
|
|
1782
1783
|
pvc_storage_required,
|
|
1783
1784
|
pvc_storage_min,
|
|
1784
1785
|
pvc_storage_reduce_limit,
|
|
1786
|
+
pvc_storage_max_limit,
|
|
1785
1787
|
key_empty_text,
|
|
1786
1788
|
format_error,
|
|
1787
1789
|
taint_effect_empty_text,
|
|
@@ -9504,6 +9506,8 @@ const DistributeStorageForm = React__default.forwardRef(function DistributeStora
|
|
|
9504
9506
|
return t2("dovetail.pvc_storage_required");
|
|
9505
9507
|
} else if (value2 < defaultValue) {
|
|
9506
9508
|
return t2("dovetail.pvc_storage_reduce_limit");
|
|
9509
|
+
} else if (value2 > 64 * 1024) {
|
|
9510
|
+
return t2("dovetail.pvc_storage_max_limit");
|
|
9507
9511
|
}
|
|
9508
9512
|
return "";
|
|
9509
9513
|
}
|
|
@@ -12185,8 +12189,7 @@ function KeyValueSecret(props) {
|
|
|
12185
12189
|
});
|
|
12186
12190
|
}
|
|
12187
12191
|
function validateLabelKey(key2) {
|
|
12188
|
-
const
|
|
12189
|
-
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]$)/;
|
|
12190
12193
|
let prefix, name2;
|
|
12191
12194
|
const splitResult = key2.split("/");
|
|
12192
12195
|
if (splitResult.length === 1) {
|
|
@@ -12198,10 +12201,10 @@ function validateLabelKey(key2) {
|
|
|
12198
12201
|
if (prefix === "") {
|
|
12199
12202
|
return { isValid: false, errorMessage: "EMPTY_PREFIX" };
|
|
12200
12203
|
}
|
|
12201
|
-
if (prefix && !
|
|
12204
|
+
if (prefix && !labelRegex.test(prefix)) {
|
|
12202
12205
|
return { isValid: false, errorMessage: "INVALID_PREFIX" };
|
|
12203
12206
|
}
|
|
12204
|
-
if (!
|
|
12207
|
+
if (!labelRegex.test(name2)) {
|
|
12205
12208
|
return { isValid: false, errorMessage: "INVALID_NAME" };
|
|
12206
12209
|
}
|
|
12207
12210
|
if (prefix && prefix.length > 253) {
|
|
@@ -12213,7 +12216,7 @@ function validateLabelKey(key2) {
|
|
|
12213
12216
|
return { isValid: true };
|
|
12214
12217
|
}
|
|
12215
12218
|
function validateLabelValue(value2) {
|
|
12216
|
-
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]$)/;
|
|
12217
12220
|
if (value2 === "") {
|
|
12218
12221
|
return { isValid: true };
|
|
12219
12222
|
}
|
|
@@ -12227,31 +12230,37 @@ function validateLabelValue(value2) {
|
|
|
12227
12230
|
}
|
|
12228
12231
|
const LabelFormatPopover_105yfzn = "";
|
|
12229
12232
|
const PodLabelFormatRulePopoverStyle = "p5jt6nm";
|
|
12230
|
-
const LabelFormatPopover = (
|
|
12233
|
+
const LabelFormatPopover = ({
|
|
12234
|
+
noValueValidation
|
|
12235
|
+
}) => {
|
|
12231
12236
|
const {
|
|
12232
12237
|
t: t2
|
|
12233
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
|
+
}
|
|
12234
12258
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, {
|
|
12235
12259
|
overlayClassName: PodLabelFormatRulePopoverStyle,
|
|
12236
12260
|
placement: "bottomRight",
|
|
12237
12261
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(AntdTable, {
|
|
12238
12262
|
bordered: true,
|
|
12239
|
-
dataSource:
|
|
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
|
-
object: t2("dovetail.value"),
|
|
12251
|
-
contains: t2("dovetail.name"),
|
|
12252
|
-
optional: t2("dovetail.no"),
|
|
12253
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12254
|
-
}],
|
|
12263
|
+
dataSource: data2,
|
|
12255
12264
|
columns: [{
|
|
12256
12265
|
key: "object",
|
|
12257
12266
|
title: t2("dovetail.object"),
|
|
@@ -12303,7 +12312,8 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12303
12312
|
defaultValue,
|
|
12304
12313
|
onSubmit,
|
|
12305
12314
|
extraColumns,
|
|
12306
|
-
addButtonText
|
|
12315
|
+
addButtonText,
|
|
12316
|
+
noValueValidation
|
|
12307
12317
|
} = props;
|
|
12308
12318
|
const {
|
|
12309
12319
|
t: t2
|
|
@@ -12373,6 +12383,8 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12373
12383
|
validator: ({
|
|
12374
12384
|
value: value22
|
|
12375
12385
|
}) => {
|
|
12386
|
+
if (noValueValidation)
|
|
12387
|
+
return;
|
|
12376
12388
|
const {
|
|
12377
12389
|
isValid
|
|
12378
12390
|
} = validateLabelValue(value22 || "");
|
|
@@ -12391,7 +12403,9 @@ function _KeyValueTableFormForm(props, ref) {
|
|
|
12391
12403
|
row: {
|
|
12392
12404
|
deletable: true
|
|
12393
12405
|
}
|
|
12394
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12406
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12407
|
+
noValueValidation
|
|
12408
|
+
})]
|
|
12395
12409
|
});
|
|
12396
12410
|
}
|
|
12397
12411
|
const KeyValueTableFormForm = React__default.forwardRef(_KeyValueTableFormForm);
|
|
@@ -13379,8 +13393,8 @@ const SCReclaimPolicyField = (i18n2) => {
|
|
|
13379
13393
|
};
|
|
13380
13394
|
const IsSCAllowVolumeExpansionField = (i18n2) => {
|
|
13381
13395
|
return {
|
|
13382
|
-
key: "
|
|
13383
|
-
path: ["
|
|
13396
|
+
key: "allowVolumeExpansion",
|
|
13397
|
+
path: ["allowVolumeExpansion"],
|
|
13384
13398
|
title: i18n2.t("dovetail.allow_expand"),
|
|
13385
13399
|
renderContent(val) {
|
|
13386
13400
|
return val ? i18n2.t("dovetail.support") : i18n2.t("dovetail.not_support");
|
|
@@ -38394,7 +38408,7 @@ const Separator = () => {
|
|
|
38394
38408
|
});
|
|
38395
38409
|
};
|
|
38396
38410
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38397
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38411
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-93fa7132.js"));
|
|
38398
38412
|
const YamlEditorComponent = forwardRef(
|
|
38399
38413
|
function YamlEditorComponent2(props, ref) {
|
|
38400
38414
|
const {
|
|
@@ -39603,7 +39617,8 @@ const EditAnnotationForm = React__default.forwardRef(function EditAnnotationForm
|
|
|
39603
39617
|
ref,
|
|
39604
39618
|
defaultValue,
|
|
39605
39619
|
onSubmit,
|
|
39606
|
-
addButtonText: t2("dovetail.add_annotation")
|
|
39620
|
+
addButtonText: t2("dovetail.add_annotation"),
|
|
39621
|
+
noValueValidation: true
|
|
39607
39622
|
}
|
|
39608
39623
|
);
|
|
39609
39624
|
});
|
|
@@ -40626,9 +40641,9 @@ const SCReclaimPolicyColumnRenderer = (i18n2) => {
|
|
|
40626
40641
|
};
|
|
40627
40642
|
const SCAllowExpandColumnRenderer = (i18n2) => {
|
|
40628
40643
|
return {
|
|
40629
|
-
key: "
|
|
40644
|
+
key: "allowVolumeExpansion",
|
|
40630
40645
|
display: true,
|
|
40631
|
-
dataIndex: ["
|
|
40646
|
+
dataIndex: ["allowVolumeExpansion"],
|
|
40632
40647
|
title: i18n2.t("dovetail.allow_expand"),
|
|
40633
40648
|
width: 120,
|
|
40634
40649
|
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-9c0a49f4.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -1554,6 +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 = "分配量不能超过 64 TiB。";
|
|
1557
1558
|
const key_empty_text = "请填写键。";
|
|
1558
1559
|
const format_error = "格式错误。";
|
|
1559
1560
|
const taint_effect_empty_text = "请选择效果。";
|
|
@@ -1788,6 +1789,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1788
1789
|
pvc_storage_required,
|
|
1789
1790
|
pvc_storage_min,
|
|
1790
1791
|
pvc_storage_reduce_limit,
|
|
1792
|
+
pvc_storage_max_limit,
|
|
1791
1793
|
key_empty_text,
|
|
1792
1794
|
format_error,
|
|
1793
1795
|
taint_effect_empty_text,
|
|
@@ -9510,6 +9512,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9510
9512
|
return t2("dovetail.pvc_storage_required");
|
|
9511
9513
|
} else if (value2 < defaultValue) {
|
|
9512
9514
|
return t2("dovetail.pvc_storage_reduce_limit");
|
|
9515
|
+
} else if (value2 > 64 * 1024) {
|
|
9516
|
+
return t2("dovetail.pvc_storage_max_limit");
|
|
9513
9517
|
}
|
|
9514
9518
|
return "";
|
|
9515
9519
|
}
|
|
@@ -12191,8 +12195,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12191
12195
|
});
|
|
12192
12196
|
}
|
|
12193
12197
|
function validateLabelKey(key2) {
|
|
12194
|
-
const
|
|
12195
|
-
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]$)/;
|
|
12196
12199
|
let prefix, name2;
|
|
12197
12200
|
const splitResult = key2.split("/");
|
|
12198
12201
|
if (splitResult.length === 1) {
|
|
@@ -12204,10 +12207,10 @@ var __publicField = (obj, key, value) => {
|
|
|
12204
12207
|
if (prefix === "") {
|
|
12205
12208
|
return { isValid: false, errorMessage: "EMPTY_PREFIX" };
|
|
12206
12209
|
}
|
|
12207
|
-
if (prefix && !
|
|
12210
|
+
if (prefix && !labelRegex.test(prefix)) {
|
|
12208
12211
|
return { isValid: false, errorMessage: "INVALID_PREFIX" };
|
|
12209
12212
|
}
|
|
12210
|
-
if (!
|
|
12213
|
+
if (!labelRegex.test(name2)) {
|
|
12211
12214
|
return { isValid: false, errorMessage: "INVALID_NAME" };
|
|
12212
12215
|
}
|
|
12213
12216
|
if (prefix && prefix.length > 253) {
|
|
@@ -12219,7 +12222,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12219
12222
|
return { isValid: true };
|
|
12220
12223
|
}
|
|
12221
12224
|
function validateLabelValue(value2) {
|
|
12222
|
-
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]$)/;
|
|
12223
12226
|
if (value2 === "") {
|
|
12224
12227
|
return { isValid: true };
|
|
12225
12228
|
}
|
|
@@ -12233,31 +12236,37 @@ var __publicField = (obj, key, value) => {
|
|
|
12233
12236
|
}
|
|
12234
12237
|
const LabelFormatPopover_105yfzn = "";
|
|
12235
12238
|
const PodLabelFormatRulePopoverStyle = "p5jt6nm";
|
|
12236
|
-
const LabelFormatPopover = (
|
|
12239
|
+
const LabelFormatPopover = ({
|
|
12240
|
+
noValueValidation
|
|
12241
|
+
}) => {
|
|
12237
12242
|
const {
|
|
12238
12243
|
t: t2
|
|
12239
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
|
+
}
|
|
12240
12264
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Popover, {
|
|
12241
12265
|
overlayClassName: PodLabelFormatRulePopoverStyle,
|
|
12242
12266
|
placement: "bottomRight",
|
|
12243
12267
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdTable, {
|
|
12244
12268
|
bordered: true,
|
|
12245
|
-
dataSource:
|
|
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
|
-
object: t2("dovetail.value"),
|
|
12257
|
-
contains: t2("dovetail.name"),
|
|
12258
|
-
optional: t2("dovetail.no"),
|
|
12259
|
-
rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
|
|
12260
|
-
}],
|
|
12269
|
+
dataSource: data2,
|
|
12261
12270
|
columns: [{
|
|
12262
12271
|
key: "object",
|
|
12263
12272
|
title: t2("dovetail.object"),
|
|
@@ -12309,7 +12318,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12309
12318
|
defaultValue,
|
|
12310
12319
|
onSubmit,
|
|
12311
12320
|
extraColumns,
|
|
12312
|
-
addButtonText
|
|
12321
|
+
addButtonText,
|
|
12322
|
+
noValueValidation
|
|
12313
12323
|
} = props;
|
|
12314
12324
|
const {
|
|
12315
12325
|
t: t2
|
|
@@ -12379,6 +12389,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12379
12389
|
validator: ({
|
|
12380
12390
|
value: value22
|
|
12381
12391
|
}) => {
|
|
12392
|
+
if (noValueValidation)
|
|
12393
|
+
return;
|
|
12382
12394
|
const {
|
|
12383
12395
|
isValid
|
|
12384
12396
|
} = validateLabelValue(value22 || "");
|
|
@@ -12397,7 +12409,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12397
12409
|
row: {
|
|
12398
12410
|
deletable: true
|
|
12399
12411
|
}
|
|
12400
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12412
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(LabelFormatPopover, {
|
|
12413
|
+
noValueValidation
|
|
12414
|
+
})]
|
|
12401
12415
|
});
|
|
12402
12416
|
}
|
|
12403
12417
|
const KeyValueTableFormForm = React.forwardRef(_KeyValueTableFormForm);
|
|
@@ -13385,8 +13399,8 @@ var __publicField = (obj, key, value) => {
|
|
|
13385
13399
|
};
|
|
13386
13400
|
const IsSCAllowVolumeExpansionField = (i18n2) => {
|
|
13387
13401
|
return {
|
|
13388
|
-
key: "
|
|
13389
|
-
path: ["
|
|
13402
|
+
key: "allowVolumeExpansion",
|
|
13403
|
+
path: ["allowVolumeExpansion"],
|
|
13390
13404
|
title: i18n2.t("dovetail.allow_expand"),
|
|
13391
13405
|
renderContent(val) {
|
|
13392
13406
|
return val ? i18n2.t("dovetail.support") : i18n2.t("dovetail.not_support");
|
|
@@ -39609,7 +39623,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39609
39623
|
ref,
|
|
39610
39624
|
defaultValue,
|
|
39611
39625
|
onSubmit,
|
|
39612
|
-
addButtonText: t2("dovetail.add_annotation")
|
|
39626
|
+
addButtonText: t2("dovetail.add_annotation"),
|
|
39627
|
+
noValueValidation: true
|
|
39613
39628
|
}
|
|
39614
39629
|
);
|
|
39615
39630
|
});
|
|
@@ -40632,9 +40647,9 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40632
40647
|
};
|
|
40633
40648
|
const SCAllowExpandColumnRenderer = (i18n2) => {
|
|
40634
40649
|
return {
|
|
40635
|
-
key: "
|
|
40650
|
+
key: "allowVolumeExpansion",
|
|
40636
40651
|
display: true,
|
|
40637
|
-
dataIndex: ["
|
|
40652
|
+
dataIndex: ["allowVolumeExpansion"],
|
|
40638
40653
|
title: i18n2.t("dovetail.allow_expand"),
|
|
40639
40654
|
width: 120,
|
|
40640
40655
|
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/i18n.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ export declare const resources: {
|
|
|
385
385
|
pvc_storage_required: string;
|
|
386
386
|
pvc_storage_min: string;
|
|
387
387
|
pvc_storage_reduce_limit: string;
|
|
388
|
+
pvc_storage_max_limit: string;
|
|
388
389
|
key_empty_text: string;
|
|
389
390
|
format_error: string;
|
|
390
391
|
taint_effect_empty_text: string;
|