@dovetail-v2/refine 0.1.19-alpha.0 → 0.1.19-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.
|
@@ -11449,19 +11449,23 @@ const useEagleTable = (params) => {
|
|
|
11449
11449
|
}, []);
|
|
11450
11450
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
11451
11451
|
};
|
|
11452
|
+
const GlobalStoreContext = createContext({});
|
|
11452
11453
|
function CreateButton(props) {
|
|
11453
11454
|
var _a;
|
|
11454
11455
|
const { t: t2 } = useTranslation();
|
|
11455
11456
|
const openForm = useOpenForm();
|
|
11456
11457
|
const { resource } = useResource();
|
|
11458
|
+
const configs = useContext(ConfigsContext);
|
|
11459
|
+
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
11457
11460
|
const label2 = props.label || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind);
|
|
11461
|
+
const createButtonText = config.createButtonText;
|
|
11458
11462
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11459
11463
|
Button,
|
|
11460
11464
|
{
|
|
11461
11465
|
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusAddCreateNew16BoldOntintIcon, {}),
|
|
11462
11466
|
type: "primary",
|
|
11463
11467
|
onClick: openForm,
|
|
11464
|
-
children: t2("dovetail.create_resource", {
|
|
11468
|
+
children: createButtonText || t2("dovetail.create_resource", {
|
|
11465
11469
|
resource: addSpaceBeforeLetter(label2)
|
|
11466
11470
|
})
|
|
11467
11471
|
}
|
|
@@ -12716,7 +12720,6 @@ function PVVolumeModeDisplay(props) {
|
|
|
12716
12720
|
};
|
|
12717
12721
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
12718
12722
|
}
|
|
12719
|
-
const GlobalStoreContext = createContext({});
|
|
12720
12723
|
function Table(props) {
|
|
12721
12724
|
var _a;
|
|
12722
12725
|
const { tableProps, displayName, errorContentProps } = props;
|
|
@@ -38475,7 +38478,7 @@ const Separator = () => {
|
|
|
38475
38478
|
});
|
|
38476
38479
|
};
|
|
38477
38480
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38478
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38481
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-d782441c.js"));
|
|
38479
38482
|
const YamlEditorComponent = forwardRef(
|
|
38480
38483
|
function YamlEditorComponent2(props, ref) {
|
|
38481
38484
|
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-e72fe3d3.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -11455,19 +11455,23 @@ var __publicField = (obj, key, value) => {
|
|
|
11455
11455
|
}, []);
|
|
11456
11456
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
11457
11457
|
};
|
|
11458
|
+
const GlobalStoreContext = React.createContext({});
|
|
11458
11459
|
function CreateButton(props) {
|
|
11459
11460
|
var _a;
|
|
11460
11461
|
const { t: t2 } = useTranslation();
|
|
11461
11462
|
const openForm = useOpenForm();
|
|
11462
11463
|
const { resource } = core.useResource();
|
|
11464
|
+
const configs = React.useContext(ConfigsContext);
|
|
11465
|
+
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
11463
11466
|
const label2 = props.label || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind);
|
|
11467
|
+
const createButtonText = config.createButtonText;
|
|
11464
11468
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11465
11469
|
eagle.Button,
|
|
11466
11470
|
{
|
|
11467
11471
|
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.PlusAddCreateNew16BoldOntintIcon, {}),
|
|
11468
11472
|
type: "primary",
|
|
11469
11473
|
onClick: openForm,
|
|
11470
|
-
children: t2("dovetail.create_resource", {
|
|
11474
|
+
children: createButtonText || t2("dovetail.create_resource", {
|
|
11471
11475
|
resource: addSpaceBeforeLetter(label2)
|
|
11472
11476
|
})
|
|
11473
11477
|
}
|
|
@@ -12722,7 +12726,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12722
12726
|
};
|
|
12723
12727
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
12724
12728
|
}
|
|
12725
|
-
const GlobalStoreContext = React.createContext({});
|
|
12726
12729
|
function Table(props) {
|
|
12727
12730
|
var _a;
|
|
12728
12731
|
const { tableProps, displayName, errorContentProps } = props;
|
package/lib/types/resource.d.ts
CHANGED