@dovetail-v2/refine 0.1.18-alpha.0 → 0.1.18-alpha.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/{MonacoYamlDiffEditor-139710b4.js → MonacoYamlDiffEditor-9629377e.js} +1 -1
- package/dist/{index-ae8ef32a.js → index-508721f9.js} +6 -6
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +5 -5
- package/lib/pages/storageclasses/index.d.ts +1 -0
- package/lib/types/resource.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12137,13 +12137,13 @@ const ShowContent = (props) => {
|
|
|
12137
12137
|
})]
|
|
12138
12138
|
});
|
|
12139
12139
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$12, {
|
|
12140
|
-
tabs: (showConfig.tabs || []).map((tab) => {
|
|
12140
|
+
tabs: (showConfig.tabs || []).map((tab, tabIndex) => {
|
|
12141
12141
|
var _a2;
|
|
12142
12142
|
return {
|
|
12143
12143
|
title: tab.title,
|
|
12144
12144
|
key: tab.key,
|
|
12145
12145
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
12146
|
-
className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
|
|
12146
|
+
className: cx_default(TabContentStyle, tab.groups.length <= 1 && tabIndex !== 0 && FullTabContentStyle),
|
|
12147
12147
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
12148
12148
|
const GroupContainer = group.title ? ShowGroupComponent : React__default.Fragment;
|
|
12149
12149
|
const FieldContainer = group.title ? Row : React__default.Fragment;
|
|
@@ -37670,7 +37670,7 @@ const RefineFormContent = (props) => {
|
|
|
37670
37670
|
},
|
|
37671
37671
|
fieldState
|
|
37672
37672
|
}) => {
|
|
37673
|
-
var _a;
|
|
37673
|
+
var _a, _b;
|
|
37674
37674
|
const formValue = getValues();
|
|
37675
37675
|
let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.String, {
|
|
37676
37676
|
placeholder: c2.placeholder,
|
|
@@ -37721,9 +37721,9 @@ const RefineFormContent = (props) => {
|
|
|
37721
37721
|
label: c2.label,
|
|
37722
37722
|
colon: false,
|
|
37723
37723
|
labelCol: {
|
|
37724
|
-
flex:
|
|
37724
|
+
flex: `0 0 ${((_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.labelWidth) || "216px"}`
|
|
37725
37725
|
},
|
|
37726
|
-
help: (
|
|
37726
|
+
help: (_b = fieldState.error) == null ? void 0 : _b.message,
|
|
37727
37727
|
validateStatus: fieldState.invalid ? "error" : void 0,
|
|
37728
37728
|
children: ele
|
|
37729
37729
|
}, c2.key);
|
|
@@ -38436,7 +38436,7 @@ const Separator = () => {
|
|
|
38436
38436
|
});
|
|
38437
38437
|
};
|
|
38438
38438
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38439
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38439
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-9629377e.js"));
|
|
38440
38440
|
const YamlEditorComponent = forwardRef(
|
|
38441
38441
|
function YamlEditorComponent2(props, ref) {
|
|
38442
38442
|
const {
|
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-508721f9.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -12143,13 +12143,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12143
12143
|
})]
|
|
12144
12144
|
});
|
|
12145
12145
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$1, {
|
|
12146
|
-
tabs: (showConfig.tabs || []).map((tab) => {
|
|
12146
|
+
tabs: (showConfig.tabs || []).map((tab, tabIndex) => {
|
|
12147
12147
|
var _a2;
|
|
12148
12148
|
return {
|
|
12149
12149
|
title: tab.title,
|
|
12150
12150
|
key: tab.key,
|
|
12151
12151
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
12152
|
-
className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
|
|
12152
|
+
className: cx_default(TabContentStyle, tab.groups.length <= 1 && tabIndex !== 0 && FullTabContentStyle),
|
|
12153
12153
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
12154
12154
|
const GroupContainer = group.title ? ShowGroupComponent : React.Fragment;
|
|
12155
12155
|
const FieldContainer = group.title ? eagle.Row : React.Fragment;
|
|
@@ -37676,7 +37676,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
37676
37676
|
},
|
|
37677
37677
|
fieldState
|
|
37678
37678
|
}) => {
|
|
37679
|
-
var _a;
|
|
37679
|
+
var _a, _b;
|
|
37680
37680
|
const formValue = getValues();
|
|
37681
37681
|
let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.String, {
|
|
37682
37682
|
placeholder: c2.placeholder,
|
|
@@ -37727,9 +37727,9 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
37727
37727
|
label: c2.label,
|
|
37728
37728
|
colon: false,
|
|
37729
37729
|
labelCol: {
|
|
37730
|
-
flex:
|
|
37730
|
+
flex: `0 0 ${((_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.labelWidth) || "216px"}`
|
|
37731
37731
|
},
|
|
37732
|
-
help: (
|
|
37732
|
+
help: (_b = fieldState.error) == null ? void 0 : _b.message,
|
|
37733
37733
|
validateStatus: fieldState.invalid ? "error" : void 0,
|
|
37734
37734
|
children: ele
|
|
37735
37735
|
}, c2.key);
|
|
@@ -34,6 +34,7 @@ export declare const StorageClassConfig: (i18n: I18n) => {
|
|
|
34
34
|
transformApplyValues?: ((values: Record<string, unknown>) => import("k8s-api-provider").Unstructured) | undefined;
|
|
35
35
|
formTitle?: string | ((action: "create" | "edit") => string) | undefined;
|
|
36
36
|
formDesc?: string | ((action: "create" | "edit") => string) | undefined;
|
|
37
|
+
labelWidth?: string | undefined;
|
|
37
38
|
formatError?: ((errorBody: unknown) => string) | undefined;
|
|
38
39
|
refineCoreProps?: import("@refinedev/core").UseFormProps<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, import("react-hook-form").FieldValues, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError> | undefined;
|
|
39
40
|
useFormProps?: import("@refinedev/react-hook-form").UseFormProps | undefined;
|
package/lib/types/resource.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
58
58
|
transformApplyValues?: (values: Record<string, unknown>) => Model['_rawYaml'];
|
|
59
59
|
formTitle?: string | ((action: 'create' | 'edit') => string);
|
|
60
60
|
formDesc?: string | ((action: 'create' | 'edit') => string);
|
|
61
|
+
labelWidth?: string;
|
|
61
62
|
formatError?: (errorBody: unknown) => string;
|
|
62
63
|
refineCoreProps?: UseFormProps['refineCoreProps'];
|
|
63
64
|
useFormProps?: UseFormProps;
|