@dovetail-v2/refine 0.1.15-alpha.0 → 0.1.15-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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "./index-11293d19.js";
1
+ import { j as jsxRuntimeExports } from "./index-0e3c2558.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -10243,7 +10243,7 @@ const STORAGE_CLASS_INIT_VALUE = {
10243
10243
  "csi.storage.k8s.io/fstype": "ext4"
10244
10244
  },
10245
10245
  "provisioner": "",
10246
- "reclaimPolicy": "",
10246
+ "reclaimPolicy": "Delete",
10247
10247
  "allowVolumeExpansion": true,
10248
10248
  "volumeBindingMode": "Immediate"
10249
10249
  };
@@ -10275,10 +10275,11 @@ const PVC_INIT_VALUE = {
10275
10275
  "accessModes": [],
10276
10276
  "resources": {
10277
10277
  "requests": {
10278
- "storage": "40Gi"
10278
+ "storage": "10Gi"
10279
10279
  }
10280
10280
  },
10281
- "storageClassName": ""
10281
+ "storageClassName": "",
10282
+ "volumeMode": "Filesystem"
10282
10283
  }
10283
10284
  };
10284
10285
  var ResourceState = /* @__PURE__ */ ((ResourceState2) => {
@@ -11252,7 +11253,7 @@ function K8sDropdown(props) {
11252
11253
  Dropdown,
11253
11254
  {
11254
11255
  overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(Menu$1, { children: [
11255
- isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, { onClick: openForm, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16PrimaryIcon, children: ((_a = config.formConfig) == null ? void 0 : _a.fields) ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
11256
+ isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false || config.hideEdit ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, { onClick: openForm, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16PrimaryIcon, children: ((_a = config.formConfig) == null ? void 0 : _a.fields) ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
11256
11257
  /* @__PURE__ */ jsxRuntimeExports.jsx(
11257
11258
  Menu$1.Item,
11258
11259
  {
@@ -12087,7 +12088,7 @@ const ShowContent = (props) => {
12087
12088
  resourceKind: (_d = resource == null ? void 0 : resource.meta) == null ? void 0 : _d.kind
12088
12089
  }) : void 0]
12089
12090
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
12090
- children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
12091
+ children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
12091
12092
  resource: resource == null ? void 0 : resource.name,
12092
12093
  action: AccessControlAuth.Edit,
12093
12094
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
@@ -38393,7 +38394,7 @@ const Separator = () => {
38393
38394
  });
38394
38395
  };
38395
38396
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
38396
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-22b5ead6.js"));
38397
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-440e4624.js"));
38397
38398
  const YamlEditorComponent = forwardRef(
38398
38399
  function YamlEditorComponent2(props, ref) {
38399
38400
  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-11293d19.js";
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-0e3c2558.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -10249,7 +10249,7 @@ var __publicField = (obj, key, value) => {
10249
10249
  "csi.storage.k8s.io/fstype": "ext4"
10250
10250
  },
10251
10251
  "provisioner": "",
10252
- "reclaimPolicy": "",
10252
+ "reclaimPolicy": "Delete",
10253
10253
  "allowVolumeExpansion": true,
10254
10254
  "volumeBindingMode": "Immediate"
10255
10255
  };
@@ -10281,10 +10281,11 @@ var __publicField = (obj, key, value) => {
10281
10281
  "accessModes": [],
10282
10282
  "resources": {
10283
10283
  "requests": {
10284
- "storage": "40Gi"
10284
+ "storage": "10Gi"
10285
10285
  }
10286
10286
  },
10287
- "storageClassName": ""
10287
+ "storageClassName": "",
10288
+ "volumeMode": "Filesystem"
10288
10289
  }
10289
10290
  };
10290
10291
  var ResourceState = /* @__PURE__ */ ((ResourceState2) => {
@@ -11258,7 +11259,7 @@ var __publicField = (obj, key, value) => {
11258
11259
  eagle.Dropdown,
11259
11260
  {
11260
11261
  overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Menu, { children: [
11261
- isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu.Item, { onClick: openForm, children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: ((_a = config.formConfig) == null ? void 0 : _a.fields) ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
11262
+ isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false || config.hideEdit ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Menu.Item, { onClick: openForm, children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Icon, { src: iconsReact.EditPen16PrimaryIcon, children: ((_a = config.formConfig) == null ? void 0 : _a.fields) ? t2("dovetail.edit") : t2("dovetail.edit_yaml") }) }),
11262
11263
  /* @__PURE__ */ jsxRuntimeExports.jsx(
11263
11264
  eagle.Menu.Item,
11264
11265
  {
@@ -12093,7 +12094,7 @@ var __publicField = (obj, key, value) => {
12093
12094
  resourceKind: (_d = resource == null ? void 0 : resource.meta) == null ? void 0 : _d.kind
12094
12095
  }) : void 0]
12095
12096
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
12096
- children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
12097
+ children: [(_e = showConfig.renderExtraButton) == null ? void 0 : _e.call(showConfig, record), !config.hideEdit ? /* @__PURE__ */ jsxRuntimeExports.jsx(core.CanAccess, {
12097
12098
  resource: resource == null ? void 0 : resource.name,
12098
12099
  action: AccessControlAuth.Edit,
12099
12100
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
@@ -34,7 +34,6 @@ export type ShowTab<Model extends ResourceModel> = {
34
34
  export interface ShowConfig<Model extends ResourceModel = ResourceModel> {
35
35
  tabs?: ShowTab<Model>[];
36
36
  renderExtraButton?: (record: Model) => React.ReactNode;
37
- hideEditYamlButton?: boolean;
38
37
  }
39
38
  export declare const ImageField: <Model extends WorkloadBaseModel>(i18n: I18nType) => ShowField<Model>;
40
39
  export declare const ReplicaField: <Model extends JobModel | WorkloadModel>() => ShowField<Model>;
@@ -520,5 +520,6 @@ export declare const PVC_INIT_VALUE: {
520
520
  };
521
521
  };
522
522
  storageClassName: string;
523
+ volumeMode: string;
523
524
  };
524
525
  };
@@ -30,6 +30,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
30
30
  displayName?: string;
31
31
  hideListToolBar?: boolean;
32
32
  hideNamespacesFilter?: boolean;
33
+ hideEdit?: boolean;
33
34
  description?: string;
34
35
  parent?: RESOURCE_GROUP;
35
36
  formatter?: (v: Model) => Model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.15-alpha.0",
3
+ "version": "0.1.15-alpha.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",