@dovetail-v2/refine 0.2.2-alpha.0 → 0.2.2
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-fe64524b.js → MonacoYamlDiffEditor-9cc6e5c7.js} +1 -1
- package/dist/{index-d00a6dbe.js → index-738afc30.js} +7 -5
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +6 -4
- package/lib/components/ShowContent/fields.d.ts +1 -1
- package/lib/constants/auth.d.ts +3 -1
- package/package.json +1 -1
|
@@ -9448,6 +9448,8 @@ var AccessControlAuth = /* @__PURE__ */ ((AccessControlAuth2) => {
|
|
|
9448
9448
|
AccessControlAuth2["Edit"] = "Edit";
|
|
9449
9449
|
AccessControlAuth2["Delete"] = "Delete";
|
|
9450
9450
|
AccessControlAuth2["Create"] = "Create";
|
|
9451
|
+
AccessControlAuth2["Read"] = "Read";
|
|
9452
|
+
AccessControlAuth2["None"] = "None";
|
|
9451
9453
|
return AccessControlAuth2;
|
|
9452
9454
|
})(AccessControlAuth || {});
|
|
9453
9455
|
function useSubmitForm(options) {
|
|
@@ -12208,7 +12210,7 @@ function ShowGroupComponent(props) {
|
|
|
12208
12210
|
});
|
|
12209
12211
|
}
|
|
12210
12212
|
const ShowContent = (props) => {
|
|
12211
|
-
var _a, _b, _c, _d, _e;
|
|
12213
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12212
12214
|
const {
|
|
12213
12215
|
showConfig,
|
|
12214
12216
|
formatter,
|
|
@@ -12322,13 +12324,13 @@ const ShowContent = (props) => {
|
|
|
12322
12324
|
},
|
|
12323
12325
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12324
12326
|
className: cx_default(Typo.Display.d2_regular_title, NameStyle),
|
|
12325
|
-
children: showConfig.displayName || ((
|
|
12327
|
+
children: ((_c = showConfig.displayName) == null ? void 0 : _c.call(showConfig, record)) || ((_d = record == null ? void 0 : record.metadata) == null ? void 0 : _d.name)
|
|
12326
12328
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
12327
12329
|
state: stateDisplay,
|
|
12328
12330
|
customResourceStateMap: showConfig.resourceStateMap
|
|
12329
12331
|
}) : void 0]
|
|
12330
12332
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
12331
|
-
children: [(
|
|
12333
|
+
children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
|
|
12332
12334
|
resource: resource == null ? void 0 : resource.name,
|
|
12333
12335
|
action: AccessControlAuth.Edit,
|
|
12334
12336
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
@@ -12336,7 +12338,7 @@ const ShowContent = (props) => {
|
|
|
12336
12338
|
marginRight: 8
|
|
12337
12339
|
},
|
|
12338
12340
|
onClick: openForm,
|
|
12339
|
-
children: ((
|
|
12341
|
+
children: ((_f = config.formConfig) == null ? void 0 : _f.formType) === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml")
|
|
12340
12342
|
})
|
|
12341
12343
|
}) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown2, {
|
|
12342
12344
|
record,
|
|
@@ -38792,7 +38794,7 @@ const Separator = () => {
|
|
|
38792
38794
|
});
|
|
38793
38795
|
};
|
|
38794
38796
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38795
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38797
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-9cc6e5c7.js"));
|
|
38796
38798
|
const YamlEditorComponent = forwardRef(
|
|
38797
38799
|
function YamlEditorComponent2(props, ref) {
|
|
38798
38800
|
const {
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bP, cF, A, aY, a_, aH, cd, bm, a3, cr, cf, aS, V, C, l, cL, aK, br, ae, cN, ak, ar, cW, az, cg, ce, cZ, aO, by, y, aF, bF, cY, cG, bI, D, b3, au, bL, at, av, a2, cc, cb, cX, bk, aW, cI, af, bS, cK, cJ, cM, cp, aI, al, v, t, cO, I, bv, aV, w, Q, bg, bi, ch, cQ, aN, bu, as, aA, aB, aa, aC, aZ, aG, bG, bJ, ab, d7, cq, cA, bO, N, a4, g, aX, a8, bR, bA, bz, cP, c2, d2, i, d1, aL, bs, cj, O, bc, bd, bq, K, be, L, bf, F, b7, cD, E, b6, J, ba, G, b8, H, b9, M, c3, bb, cC, ac, d5, d4, P, bo, x, ag, aj, c1, bl, cU, cT, b1, bw, c9, c8, s, aM, bn, z, bx, b2, d6, B, ct, cH, bM, bU, bV, d9, aJ, R, ai, ap, ao, bN, am, cV, c5, an, cE, ca, bj, bC, aw, k, U, T, bh, cw, cz, cv, cu, cx, cy, cs, ck, cn, co, cm, cl, ci, cB, bW, aP, bt, aD, o, bZ, n, a$, d0, q, b_, b0, p, aU, bp, m, c$, aR, aT, c7, bE, bD, c6, aQ, S, bH, c_, d3, b4, b5, bB, bK, c4, b$, c0, ad, a1, cS, ah, W, cR, aq, ay, ax, h, aE, bX, X, a5, d, dc, db, de, d8, a9, df, da, bT, dd, a7, a6, r, a, c, e, Z, Y, _, f, $, u, bQ, a0, bY, b } from "./index-
|
|
1
|
+
import { bP, cF, A, aY, a_, aH, cd, bm, a3, cr, cf, aS, V, C, l, cL, aK, br, ae, cN, ak, ar, cW, az, cg, ce, cZ, aO, by, y, aF, bF, cY, cG, bI, D, b3, au, bL, at, av, a2, cc, cb, cX, bk, aW, cI, af, bS, cK, cJ, cM, cp, aI, al, v, t, cO, I, bv, aV, w, Q, bg, bi, ch, cQ, aN, bu, as, aA, aB, aa, aC, aZ, aG, bG, bJ, ab, d7, cq, cA, bO, N, a4, g, aX, a8, bR, bA, bz, cP, c2, d2, i, d1, aL, bs, cj, O, bc, bd, bq, K, be, L, bf, F, b7, cD, E, b6, J, ba, G, b8, H, b9, M, c3, bb, cC, ac, d5, d4, P, bo, x, ag, aj, c1, bl, cU, cT, b1, bw, c9, c8, s, aM, bn, z, bx, b2, d6, B, ct, cH, bM, bU, bV, d9, aJ, R, ai, ap, ao, bN, am, cV, c5, an, cE, ca, bj, bC, aw, k, U, T, bh, cw, cz, cv, cu, cx, cy, cs, ck, cn, co, cm, cl, ci, cB, bW, aP, bt, aD, o, bZ, n, a$, d0, q, b_, b0, p, aU, bp, m, c$, aR, aT, c7, bE, bD, c6, aQ, S, bH, c_, d3, b4, b5, bB, bK, c4, b$, c0, ad, a1, cS, ah, W, cR, aq, ay, ax, h, aE, bX, X, a5, d, dc, db, de, d8, a9, df, da, bT, dd, a7, a6, r, a, c, e, Z, Y, _, f, $, u, bQ, a0, bY, b } from "./index-738afc30.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -9454,6 +9454,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9454
9454
|
AccessControlAuth2["Edit"] = "Edit";
|
|
9455
9455
|
AccessControlAuth2["Delete"] = "Delete";
|
|
9456
9456
|
AccessControlAuth2["Create"] = "Create";
|
|
9457
|
+
AccessControlAuth2["Read"] = "Read";
|
|
9458
|
+
AccessControlAuth2["None"] = "None";
|
|
9457
9459
|
return AccessControlAuth2;
|
|
9458
9460
|
})(AccessControlAuth || {});
|
|
9459
9461
|
function useSubmitForm(options) {
|
|
@@ -12214,7 +12216,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12214
12216
|
});
|
|
12215
12217
|
}
|
|
12216
12218
|
const ShowContent = (props) => {
|
|
12217
|
-
var _a, _b, _c, _d, _e;
|
|
12219
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12218
12220
|
const {
|
|
12219
12221
|
showConfig,
|
|
12220
12222
|
formatter,
|
|
@@ -12328,13 +12330,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12328
12330
|
},
|
|
12329
12331
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12330
12332
|
className: cx_default(eagle.Typo.Display.d2_regular_title, NameStyle),
|
|
12331
|
-
children: showConfig.displayName || ((
|
|
12333
|
+
children: ((_c = showConfig.displayName) == null ? void 0 : _c.call(showConfig, record)) || ((_d = record == null ? void 0 : record.metadata) == null ? void 0 : _d.name)
|
|
12332
12334
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
12333
12335
|
state: stateDisplay,
|
|
12334
12336
|
customResourceStateMap: showConfig.resourceStateMap
|
|
12335
12337
|
}) : void 0]
|
|
12336
12338
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
12337
|
-
children: [(
|
|
12339
|
+
children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
|
|
12338
12340
|
resource: resource == null ? void 0 : resource.name,
|
|
12339
12341
|
action: AccessControlAuth.Edit,
|
|
12340
12342
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
@@ -12342,7 +12344,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12342
12344
|
marginRight: 8
|
|
12343
12345
|
},
|
|
12344
12346
|
onClick: openForm,
|
|
12345
|
-
children: ((
|
|
12347
|
+
children: ((_f = config.formConfig) == null ? void 0 : _f.formType) === FormType.FORM ? t2("dovetail.edit") : t2("dovetail.edit_yaml")
|
|
12346
12348
|
})
|
|
12347
12349
|
}) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown, {
|
|
12348
12350
|
record,
|
|
@@ -39,7 +39,7 @@ export interface ShowConfig<Model extends ResourceModel = ResourceModel> {
|
|
|
39
39
|
color: Record<string, StatusCapsuleColor | 'loading'>;
|
|
40
40
|
text: Record<string, string>;
|
|
41
41
|
};
|
|
42
|
-
displayName?: string;
|
|
42
|
+
displayName?: (record: Model) => string | undefined;
|
|
43
43
|
}
|
|
44
44
|
export declare const ImageField: <Model extends WorkloadBaseModel>(i18n: I18nType) => ShowField<Model>;
|
|
45
45
|
export declare const ReplicaField: <Model extends JobModel | WorkloadModel>() => ShowField<Model>;
|
package/lib/constants/auth.d.ts
CHANGED