@dovetail-v2/refine 0.1.17 → 0.1.18-alpha.0

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-809eef35.js";
1
+ import { j as jsxRuntimeExports } from "./index-ae8ef32a.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -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 }) => {
@@ -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-bc29572d.js"));
38439
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-139710b4.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: ["spec", "capacity", "storage"],
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: parseSi(value2),
40514
- decimals: 1
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-809eef35.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-ae8ef32a.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -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 }) => {
@@ -40509,15 +40514,15 @@ WARNING: This link could potentially be dangerous`)) {
40509
40514
  return {
40510
40515
  key: "capacity",
40511
40516
  display: true,
40512
- dataIndex: ["spec", "capacity", "storage"],
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: parseSi(value2),
40520
- decimals: 1
40524
+ rawValue: value2,
40525
+ decimals: 2
40521
40526
  });
40522
40527
  }
40523
40528
  };
@@ -12,5 +12,6 @@ export declare class PersistentVolumeModel extends ResourceModel {
12
12
  get csi(): string | undefined;
13
13
  get pvc(): string | undefined;
14
14
  get pvcNamespace(): string | undefined;
15
+ get storageBytes(): number;
15
16
  }
16
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.17",
3
+ "version": "0.1.18-alpha.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",