@dovetail-v2/refine 0.0.51 → 0.0.52
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-b82fbea9.js → MonacoYamlDiffEditor-1745c907.js} +1 -1
- package/dist/{index-51cc13dd.js → index-7fe9ade3.js} +25 -15
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +24 -14
- package/dist/style.css +8 -6
- package/lib/src/types/resource.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9632,6 +9632,9 @@ class JobModel extends WorkloadBaseModel {
|
|
|
9632
9632
|
}
|
|
9633
9633
|
get completionsDisplay() {
|
|
9634
9634
|
var _a, _b;
|
|
9635
|
+
if (this._rawYaml.spec.parallelism && !this._rawYaml.spec.completions) {
|
|
9636
|
+
return `0/1 of ${this._rawYaml.spec.parallelism}`;
|
|
9637
|
+
}
|
|
9635
9638
|
return `${((_a = this._rawYaml.status) == null ? void 0 : _a.succeeded) || 0}/${(_b = this._rawYaml.spec) == null ? void 0 : _b.completions}`;
|
|
9636
9639
|
}
|
|
9637
9640
|
get succeeded() {
|
|
@@ -22081,7 +22084,7 @@ function useForm$1(props = {}) {
|
|
|
22081
22084
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
22082
22085
|
return _formControl.current;
|
|
22083
22086
|
}
|
|
22084
|
-
const
|
|
22087
|
+
const RefineFormContent_1ypjp9c = "";
|
|
22085
22088
|
const RefineFormContent = (props) => {
|
|
22086
22089
|
var _a, _b, _c, _d;
|
|
22087
22090
|
const {
|
|
@@ -22163,6 +22166,7 @@ const RefineFormContent = (props) => {
|
|
|
22163
22166
|
switch (c2.type) {
|
|
22164
22167
|
case "number":
|
|
22165
22168
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.Integer, {
|
|
22169
|
+
className: "c154n7ie",
|
|
22166
22170
|
placeholder: c2.placeholder,
|
|
22167
22171
|
input: {
|
|
22168
22172
|
value: value2,
|
|
@@ -22183,9 +22187,9 @@ const RefineFormContent = (props) => {
|
|
|
22183
22187
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
22184
22188
|
size: 4,
|
|
22185
22189
|
direction: "vertical",
|
|
22186
|
-
className: "
|
|
22190
|
+
className: "c1c9j4da",
|
|
22187
22191
|
children: [ele, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
22188
|
-
className: cx_default(Typo.Footnote.f2_regular, "
|
|
22192
|
+
className: cx_default(Typo.Footnote.f2_regular, "cjxv8cf"),
|
|
22189
22193
|
children: c2.helperText
|
|
22190
22194
|
})]
|
|
22191
22195
|
});
|
|
@@ -22209,7 +22213,7 @@ const RefineFormContent = (props) => {
|
|
|
22209
22213
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
22210
22214
|
direction: "vertical",
|
|
22211
22215
|
size: 16,
|
|
22212
|
-
className: "
|
|
22216
|
+
className: "c1xsnuvk",
|
|
22213
22217
|
children: [fields, /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
22214
22218
|
errorMsgs: errorMsg ? [errorMsg] : [],
|
|
22215
22219
|
style: {
|
|
@@ -22900,7 +22904,7 @@ const Separator = () => {
|
|
|
22900
22904
|
});
|
|
22901
22905
|
};
|
|
22902
22906
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22903
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22907
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-1745c907.js"));
|
|
22904
22908
|
const YamlEditorComponent = forwardRef(
|
|
22905
22909
|
function YamlEditorComponent2(props, ref) {
|
|
22906
22910
|
const {
|
|
@@ -23424,6 +23428,8 @@ const useYamlForm = ({
|
|
|
23424
23428
|
if (error.message === "expected a single document in the stream, but found more") {
|
|
23425
23429
|
setEditorErrors([t2("dovetail.only_support_one_yaml")]);
|
|
23426
23430
|
return;
|
|
23431
|
+
} else {
|
|
23432
|
+
setEditorErrors([error.message]);
|
|
23427
23433
|
}
|
|
23428
23434
|
}
|
|
23429
23435
|
}
|
|
@@ -23584,12 +23590,13 @@ function YamlForm(props) {
|
|
|
23584
23590
|
})
|
|
23585
23591
|
});
|
|
23586
23592
|
}
|
|
23587
|
-
const
|
|
23593
|
+
const FormModal_12opmyh = "";
|
|
23588
23594
|
const FullscreenModalStyle = "f1nltbcu";
|
|
23589
|
-
const
|
|
23590
|
-
const
|
|
23595
|
+
const MaxWidthModalStyle = "m1qgcca6";
|
|
23596
|
+
const FormDescStyle = "f1tl3wq2";
|
|
23597
|
+
const ErrorStyle = "exjt4uc";
|
|
23591
23598
|
function FormModal(props) {
|
|
23592
|
-
var _a, _b, _c, _d, _e, _f;
|
|
23599
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
23593
23600
|
const {
|
|
23594
23601
|
resource: resourceFromProps,
|
|
23595
23602
|
id,
|
|
@@ -23680,23 +23687,26 @@ function FormModal(props) {
|
|
|
23680
23687
|
});
|
|
23681
23688
|
}, [action, config.formConfig, config == null ? void 0 : config.kind, i18n2, id]);
|
|
23682
23689
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
|
|
23683
|
-
className: FullscreenModalStyle,
|
|
23690
|
+
className: cx_default(FullscreenModalStyle, isYamlForm ? "" : MaxWidthModalStyle),
|
|
23684
23691
|
width: "calc(100vw - 16px)",
|
|
23685
23692
|
title,
|
|
23686
23693
|
error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
23687
23694
|
className: ErrorStyle,
|
|
23688
23695
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
|
|
23689
23696
|
}) : "",
|
|
23690
|
-
okButtonProps:
|
|
23697
|
+
okButtonProps: {
|
|
23698
|
+
...saveButtonProps,
|
|
23699
|
+
children: (_e = config.formConfig) == null ? void 0 : _e.saveButtonText
|
|
23700
|
+
},
|
|
23691
23701
|
closeIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseCircleFilled$1, {}),
|
|
23692
23702
|
okText,
|
|
23693
23703
|
onOk,
|
|
23694
23704
|
onCancel,
|
|
23695
23705
|
destroyOnClose: true,
|
|
23696
23706
|
fullscreen: true,
|
|
23697
|
-
children: [((
|
|
23707
|
+
children: [((_f = config.formConfig) == null ? void 0 : _f.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23698
23708
|
className: FormDescStyle,
|
|
23699
|
-
children: (
|
|
23709
|
+
children: (_g = config.formConfig) == null ? void 0 : _g.formDesc
|
|
23700
23710
|
}) : void 0, formEle]
|
|
23701
23711
|
});
|
|
23702
23712
|
}
|
|
@@ -24473,8 +24483,8 @@ const IngressDefaultBackendColumnRenderer = (i18n2) => {
|
|
|
24473
24483
|
sorter: CommonSorter(["spec", "defaultBackend"]),
|
|
24474
24484
|
width: 120,
|
|
24475
24485
|
render: (defaultBackend) => {
|
|
24476
|
-
var _a;
|
|
24477
|
-
if ((_a = defaultBackend == null ? void 0 : defaultBackend.service) == null ? void 0 : _a.name)
|
|
24486
|
+
var _a, _b;
|
|
24487
|
+
if (((_a = defaultBackend == null ? void 0 : defaultBackend.service) == null ? void 0 : _a.name) || ((_b = defaultBackend == null ? void 0 : defaultBackend.resource) == null ? void 0 : _b.name))
|
|
24478
24488
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
24479
24489
|
children: i18n2.t("dovetail.true")
|
|
24480
24490
|
});
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-
|
|
1
|
+
import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-7fe9ade3.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -9638,6 +9638,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9638
9638
|
}
|
|
9639
9639
|
get completionsDisplay() {
|
|
9640
9640
|
var _a, _b;
|
|
9641
|
+
if (this._rawYaml.spec.parallelism && !this._rawYaml.spec.completions) {
|
|
9642
|
+
return `0/1 of ${this._rawYaml.spec.parallelism}`;
|
|
9643
|
+
}
|
|
9641
9644
|
return `${((_a = this._rawYaml.status) == null ? void 0 : _a.succeeded) || 0}/${(_b = this._rawYaml.spec) == null ? void 0 : _b.completions}`;
|
|
9642
9645
|
}
|
|
9643
9646
|
get succeeded() {
|
|
@@ -22087,7 +22090,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22087
22090
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
22088
22091
|
return _formControl.current;
|
|
22089
22092
|
}
|
|
22090
|
-
const
|
|
22093
|
+
const RefineFormContent_1ypjp9c = "";
|
|
22091
22094
|
const RefineFormContent = (props) => {
|
|
22092
22095
|
var _a, _b, _c, _d;
|
|
22093
22096
|
const {
|
|
@@ -22169,6 +22172,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22169
22172
|
switch (c2.type) {
|
|
22170
22173
|
case "number":
|
|
22171
22174
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.Integer, {
|
|
22175
|
+
className: "c154n7ie",
|
|
22172
22176
|
placeholder: c2.placeholder,
|
|
22173
22177
|
input: {
|
|
22174
22178
|
value: value2,
|
|
@@ -22189,9 +22193,9 @@ var __publicField = (obj, key, value) => {
|
|
|
22189
22193
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
22190
22194
|
size: 4,
|
|
22191
22195
|
direction: "vertical",
|
|
22192
|
-
className: "
|
|
22196
|
+
className: "c1c9j4da",
|
|
22193
22197
|
children: [ele, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
22194
|
-
className: cx_default(eagle.Typo.Footnote.f2_regular, "
|
|
22198
|
+
className: cx_default(eagle.Typo.Footnote.f2_regular, "cjxv8cf"),
|
|
22195
22199
|
children: c2.helperText
|
|
22196
22200
|
})]
|
|
22197
22201
|
});
|
|
@@ -22215,7 +22219,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22215
22219
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
22216
22220
|
direction: "vertical",
|
|
22217
22221
|
size: 16,
|
|
22218
|
-
className: "
|
|
22222
|
+
className: "c1xsnuvk",
|
|
22219
22223
|
children: [fields, /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
22220
22224
|
errorMsgs: errorMsg ? [errorMsg] : [],
|
|
22221
22225
|
style: {
|
|
@@ -23430,6 +23434,8 @@ var __publicField = (obj, key, value) => {
|
|
|
23430
23434
|
if (error.message === "expected a single document in the stream, but found more") {
|
|
23431
23435
|
setEditorErrors([t2("dovetail.only_support_one_yaml")]);
|
|
23432
23436
|
return;
|
|
23437
|
+
} else {
|
|
23438
|
+
setEditorErrors([error.message]);
|
|
23433
23439
|
}
|
|
23434
23440
|
}
|
|
23435
23441
|
}
|
|
@@ -23590,12 +23596,13 @@ var __publicField = (obj, key, value) => {
|
|
|
23590
23596
|
})
|
|
23591
23597
|
});
|
|
23592
23598
|
}
|
|
23593
|
-
const
|
|
23599
|
+
const FormModal_12opmyh = "";
|
|
23594
23600
|
const FullscreenModalStyle = "f1nltbcu";
|
|
23595
|
-
const
|
|
23596
|
-
const
|
|
23601
|
+
const MaxWidthModalStyle = "m1qgcca6";
|
|
23602
|
+
const FormDescStyle = "f1tl3wq2";
|
|
23603
|
+
const ErrorStyle = "exjt4uc";
|
|
23597
23604
|
function FormModal(props) {
|
|
23598
|
-
var _a, _b, _c, _d, _e, _f;
|
|
23605
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
23599
23606
|
const {
|
|
23600
23607
|
resource: resourceFromProps,
|
|
23601
23608
|
id,
|
|
@@ -23686,23 +23693,26 @@ var __publicField = (obj, key, value) => {
|
|
|
23686
23693
|
});
|
|
23687
23694
|
}, [action, config.formConfig, config == null ? void 0 : config.kind, i18n2, id]);
|
|
23688
23695
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
|
|
23689
|
-
className: FullscreenModalStyle,
|
|
23696
|
+
className: cx_default(FullscreenModalStyle, isYamlForm ? "" : MaxWidthModalStyle),
|
|
23690
23697
|
width: "calc(100vw - 16px)",
|
|
23691
23698
|
title,
|
|
23692
23699
|
error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
23693
23700
|
className: ErrorStyle,
|
|
23694
23701
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
|
|
23695
23702
|
}) : "",
|
|
23696
|
-
okButtonProps:
|
|
23703
|
+
okButtonProps: {
|
|
23704
|
+
...saveButtonProps,
|
|
23705
|
+
children: (_e = config.formConfig) == null ? void 0 : _e.saveButtonText
|
|
23706
|
+
},
|
|
23697
23707
|
closeIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseCircleFilled$1, {}),
|
|
23698
23708
|
okText,
|
|
23699
23709
|
onOk,
|
|
23700
23710
|
onCancel,
|
|
23701
23711
|
destroyOnClose: true,
|
|
23702
23712
|
fullscreen: true,
|
|
23703
|
-
children: [((
|
|
23713
|
+
children: [((_f = config.formConfig) == null ? void 0 : _f.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23704
23714
|
className: FormDescStyle,
|
|
23705
|
-
children: (
|
|
23715
|
+
children: (_g = config.formConfig) == null ? void 0 : _g.formDesc
|
|
23706
23716
|
}) : void 0, formEle]
|
|
23707
23717
|
});
|
|
23708
23718
|
}
|
|
@@ -24479,8 +24489,8 @@ var __publicField = (obj, key, value) => {
|
|
|
24479
24489
|
sorter: CommonSorter(["spec", "defaultBackend"]),
|
|
24480
24490
|
width: 120,
|
|
24481
24491
|
render: (defaultBackend) => {
|
|
24482
|
-
var _a;
|
|
24483
|
-
if ((_a = defaultBackend == null ? void 0 : defaultBackend.service) == null ? void 0 : _a.name)
|
|
24492
|
+
var _a, _b;
|
|
24493
|
+
if (((_a = defaultBackend == null ? void 0 : defaultBackend.service) == null ? void 0 : _a.name) || ((_b = defaultBackend == null ? void 0 : defaultBackend.resource) == null ? void 0 : _b.name))
|
|
24484
24494
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
24485
24495
|
children: i18n2.t("dovetail.true")
|
|
24486
24496
|
});
|
package/dist/style.css
CHANGED
|
@@ -1520,15 +1520,17 @@
|
|
|
1520
1520
|
.l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1521
1521
|
.tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
1522
1522
|
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1523
|
-
.c154n7ie{width:
|
|
1524
|
-
.c1c9j4da{
|
|
1525
|
-
.cjxv8cf{
|
|
1523
|
+
.c154n7ie{max-width:144px;}
|
|
1524
|
+
.c1c9j4da{width:100%;}
|
|
1525
|
+
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1526
|
+
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;width:100%;}
|
|
1526
1527
|
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1527
1528
|
|
|
1528
1529
|
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1529
|
-
.f1nltbcu.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-footer{
|
|
1530
|
-
.
|
|
1531
|
-
.
|
|
1530
|
+
.f1nltbcu.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
|
|
1531
|
+
.m1qgcca6 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1qgcca6 .ant-modal-body{max-width:656px;width:100%;padding:0 4px !important;margin:auto;}.m1qgcca6 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}
|
|
1532
|
+
.f1tl3wq2{margin-bottom:16px;}
|
|
1533
|
+
.exjt4uc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
|
|
1532
1534
|
.c1pvtlkp{width:100%;}
|
|
1533
1535
|
.wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
|
|
1534
1536
|
.mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
|
|
@@ -47,6 +47,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
47
47
|
records: Model[];
|
|
48
48
|
action: 'create' | 'edit';
|
|
49
49
|
}) => RefineFormField[];
|
|
50
|
+
saveButtonText?: string;
|
|
50
51
|
renderForm?: (props: YamlFormProps) => React.ReactNode;
|
|
51
52
|
formType?: FormType;
|
|
52
53
|
transformInitValues?: (values: Unstructured) => Unstructured;
|