@dovetail-v2/refine 0.1.17 → 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-bc29572d.js → MonacoYamlDiffEditor-9629377e.js} +1 -1
- package/dist/{index-809eef35.js → index-508721f9.js} +15 -10
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +14 -9
- package/lib/models/persistent-volume.d.ts +1 -0
- package/lib/pages/storageclasses/index.d.ts +1 -0
- package/lib/types/resource.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10794,6 +10794,9 @@ class PersistentVolumeModel extends ResourceModel {
|
|
|
10794
10794
|
var _a;
|
|
10795
10795
|
return (_a = this._rawYaml.spec.claimRef) == null ? void 0 : _a.namespace;
|
|
10796
10796
|
}
|
|
10797
|
+
get storageBytes() {
|
|
10798
|
+
return parseSi(get$3(this._rawYaml, ["spec", "capacity", "storage"]));
|
|
10799
|
+
}
|
|
10797
10800
|
}
|
|
10798
10801
|
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10799
10802
|
constructor(_rawYaml, _globalStore) {
|
|
@@ -11725,11 +11728,13 @@ const ResourceLink = (props) => {
|
|
|
11725
11728
|
}
|
|
11726
11729
|
});
|
|
11727
11730
|
};
|
|
11728
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
11731
|
+
return resourceId ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
11729
11732
|
className: LinkStyle,
|
|
11730
11733
|
onClick,
|
|
11731
11734
|
title: resourceId,
|
|
11732
11735
|
children: resourceId
|
|
11736
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
11737
|
+
value: ""
|
|
11733
11738
|
});
|
|
11734
11739
|
};
|
|
11735
11740
|
const IngressRulesTable = ({ ingress }) => {
|
|
@@ -12132,13 +12137,13 @@ const ShowContent = (props) => {
|
|
|
12132
12137
|
})]
|
|
12133
12138
|
});
|
|
12134
12139
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$12, {
|
|
12135
|
-
tabs: (showConfig.tabs || []).map((tab) => {
|
|
12140
|
+
tabs: (showConfig.tabs || []).map((tab, tabIndex) => {
|
|
12136
12141
|
var _a2;
|
|
12137
12142
|
return {
|
|
12138
12143
|
title: tab.title,
|
|
12139
12144
|
key: tab.key,
|
|
12140
12145
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
12141
|
-
className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
|
|
12146
|
+
className: cx_default(TabContentStyle, tab.groups.length <= 1 && tabIndex !== 0 && FullTabContentStyle),
|
|
12142
12147
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
12143
12148
|
const GroupContainer = group.title ? ShowGroupComponent : React__default.Fragment;
|
|
12144
12149
|
const FieldContainer = group.title ? Row : React__default.Fragment;
|
|
@@ -37665,7 +37670,7 @@ const RefineFormContent = (props) => {
|
|
|
37665
37670
|
},
|
|
37666
37671
|
fieldState
|
|
37667
37672
|
}) => {
|
|
37668
|
-
var _a;
|
|
37673
|
+
var _a, _b;
|
|
37669
37674
|
const formValue = getValues();
|
|
37670
37675
|
let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.String, {
|
|
37671
37676
|
placeholder: c2.placeholder,
|
|
@@ -37716,9 +37721,9 @@ const RefineFormContent = (props) => {
|
|
|
37716
37721
|
label: c2.label,
|
|
37717
37722
|
colon: false,
|
|
37718
37723
|
labelCol: {
|
|
37719
|
-
flex:
|
|
37724
|
+
flex: `0 0 ${((_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.labelWidth) || "216px"}`
|
|
37720
37725
|
},
|
|
37721
|
-
help: (
|
|
37726
|
+
help: (_b = fieldState.error) == null ? void 0 : _b.message,
|
|
37722
37727
|
validateStatus: fieldState.invalid ? "error" : void 0,
|
|
37723
37728
|
children: ele
|
|
37724
37729
|
}, c2.key);
|
|
@@ -38431,7 +38436,7 @@ const Separator = () => {
|
|
|
38431
38436
|
});
|
|
38432
38437
|
};
|
|
38433
38438
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38434
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38439
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-9629377e.js"));
|
|
38435
38440
|
const YamlEditorComponent = forwardRef(
|
|
38436
38441
|
function YamlEditorComponent2(props, ref) {
|
|
38437
38442
|
const {
|
|
@@ -40503,15 +40508,15 @@ const PVCapacityColumnRenderer = (i18n2) => {
|
|
|
40503
40508
|
return {
|
|
40504
40509
|
key: "capacity",
|
|
40505
40510
|
display: true,
|
|
40506
|
-
dataIndex: ["
|
|
40511
|
+
dataIndex: ["storageBytes"],
|
|
40507
40512
|
title: i18n2.t("dovetail.capacity"),
|
|
40508
40513
|
width: 120,
|
|
40509
40514
|
sortable: true,
|
|
40510
40515
|
align: "right",
|
|
40511
40516
|
render(value2) {
|
|
40512
40517
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, {
|
|
40513
|
-
rawValue:
|
|
40514
|
-
decimals:
|
|
40518
|
+
rawValue: value2,
|
|
40519
|
+
decimals: 2
|
|
40515
40520
|
});
|
|
40516
40521
|
}
|
|
40517
40522
|
};
|
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
|
@@ -10800,6 +10800,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10800
10800
|
var _a;
|
|
10801
10801
|
return (_a = this._rawYaml.spec.claimRef) == null ? void 0 : _a.namespace;
|
|
10802
10802
|
}
|
|
10803
|
+
get storageBytes() {
|
|
10804
|
+
return parseSi(lodashEs.get(this._rawYaml, ["spec", "capacity", "storage"]));
|
|
10805
|
+
}
|
|
10803
10806
|
}
|
|
10804
10807
|
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10805
10808
|
constructor(_rawYaml, _globalStore) {
|
|
@@ -11731,11 +11734,13 @@ var __publicField = (obj, key, value) => {
|
|
|
11731
11734
|
}
|
|
11732
11735
|
});
|
|
11733
11736
|
};
|
|
11734
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Link, {
|
|
11737
|
+
return resourceId ? /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Link, {
|
|
11735
11738
|
className: LinkStyle,
|
|
11736
11739
|
onClick,
|
|
11737
11740
|
title: resourceId,
|
|
11738
11741
|
children: resourceId
|
|
11742
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
11743
|
+
value: ""
|
|
11739
11744
|
});
|
|
11740
11745
|
};
|
|
11741
11746
|
const IngressRulesTable = ({ ingress }) => {
|
|
@@ -12138,13 +12143,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12138
12143
|
})]
|
|
12139
12144
|
});
|
|
12140
12145
|
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$1, {
|
|
12141
|
-
tabs: (showConfig.tabs || []).map((tab) => {
|
|
12146
|
+
tabs: (showConfig.tabs || []).map((tab, tabIndex) => {
|
|
12142
12147
|
var _a2;
|
|
12143
12148
|
return {
|
|
12144
12149
|
title: tab.title,
|
|
12145
12150
|
key: tab.key,
|
|
12146
12151
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
12147
|
-
className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
|
|
12152
|
+
className: cx_default(TabContentStyle, tab.groups.length <= 1 && tabIndex !== 0 && FullTabContentStyle),
|
|
12148
12153
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
12149
12154
|
const GroupContainer = group.title ? ShowGroupComponent : React.Fragment;
|
|
12150
12155
|
const FieldContainer = group.title ? eagle.Row : React.Fragment;
|
|
@@ -37671,7 +37676,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
37671
37676
|
},
|
|
37672
37677
|
fieldState
|
|
37673
37678
|
}) => {
|
|
37674
|
-
var _a;
|
|
37679
|
+
var _a, _b;
|
|
37675
37680
|
const formValue = getValues();
|
|
37676
37681
|
let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.String, {
|
|
37677
37682
|
placeholder: c2.placeholder,
|
|
@@ -37722,9 +37727,9 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
37722
37727
|
label: c2.label,
|
|
37723
37728
|
colon: false,
|
|
37724
37729
|
labelCol: {
|
|
37725
|
-
flex:
|
|
37730
|
+
flex: `0 0 ${((_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.labelWidth) || "216px"}`
|
|
37726
37731
|
},
|
|
37727
|
-
help: (
|
|
37732
|
+
help: (_b = fieldState.error) == null ? void 0 : _b.message,
|
|
37728
37733
|
validateStatus: fieldState.invalid ? "error" : void 0,
|
|
37729
37734
|
children: ele
|
|
37730
37735
|
}, c2.key);
|
|
@@ -40509,15 +40514,15 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40509
40514
|
return {
|
|
40510
40515
|
key: "capacity",
|
|
40511
40516
|
display: true,
|
|
40512
|
-
dataIndex: ["
|
|
40517
|
+
dataIndex: ["storageBytes"],
|
|
40513
40518
|
title: i18n2.t("dovetail.capacity"),
|
|
40514
40519
|
width: 120,
|
|
40515
40520
|
sortable: true,
|
|
40516
40521
|
align: "right",
|
|
40517
40522
|
render(value2) {
|
|
40518
40523
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, {
|
|
40519
|
-
rawValue:
|
|
40520
|
-
decimals:
|
|
40524
|
+
rawValue: value2,
|
|
40525
|
+
decimals: 2
|
|
40521
40526
|
});
|
|
40522
40527
|
}
|
|
40523
40528
|
};
|
|
@@ -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;
|