@dovetail-v2/refine 0.1.18-alpha.4 → 0.1.18-alpha.5

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-ad86ff56.js";
1
+ import { j as jsxRuntimeExports } from "./index-51b14bbe.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -8958,7 +8958,7 @@ const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
8958
8958
  class: "a60f3dj",
8959
8959
  propsAsIs: false
8960
8960
  });
8961
- const index_17chkj7 = "";
8961
+ const index_pnc88f = "";
8962
8962
  const TableContainerStyle = "t47xc8k";
8963
8963
  function Table$1(props) {
8964
8964
  const {
@@ -8978,7 +8978,8 @@ function Table$1(props) {
8978
8978
  refetch,
8979
8979
  onPageChange,
8980
8980
  onSizeChange,
8981
- empty: empty2
8981
+ empty: empty2,
8982
+ hideNamespacesFilter
8982
8983
  } = props;
8983
8984
  const auxiliaryLineRef = useRef(null);
8984
8985
  const wrapperRef = useRef(null);
@@ -9020,6 +9021,7 @@ function Table$1(props) {
9020
9021
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
9021
9022
  ref: wrapperRef,
9022
9023
  className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
9024
+ "data-hide-ns-filter": hideNamespacesFilter,
9023
9025
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Table$2, {
9024
9026
  tableLayout: "fixed",
9025
9027
  columns: finalColumns,
@@ -12706,7 +12708,7 @@ function PVVolumeModeDisplay(props) {
12706
12708
  const GlobalStoreContext = createContext({});
12707
12709
  function Table(props) {
12708
12710
  var _a;
12709
- const { tableProps, displayName, errorContentProps } = props;
12711
+ const { tableProps, displayName, errorContentProps, hideNamespacesFilter } = props;
12710
12712
  const { Table: TableComponent } = useContext(ComponentContext);
12711
12713
  const Table2 = TableComponent || Table$1;
12712
12714
  const { i18n: i18n2 } = useTranslation();
@@ -12725,6 +12727,7 @@ function Table(props) {
12725
12727
  {
12726
12728
  ...tableProps,
12727
12729
  empty: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
12730
+ hideNamespacesFilter,
12728
12731
  className: cx_default(tableProps.className)
12729
12732
  }
12730
12733
  );
@@ -36013,7 +36016,8 @@ function ListPage(props) {
36013
36016
  y: "calc(100% - 48px)"
36014
36017
  }
36015
36018
  },
36016
- displayName: (config == null ? void 0 : config.displayName) || config.kind
36019
+ displayName: (config == null ? void 0 : config.displayName) || config.kind,
36020
+ hideNamespacesFilter: config.hideNamespacesFilter
36017
36021
  })
36018
36022
  })]
36019
36023
  })]
@@ -38461,7 +38465,7 @@ const Separator = () => {
38461
38465
  });
38462
38466
  };
38463
38467
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
38464
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-53aab510.js"));
38468
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-9fec703f.js"));
38465
38469
  const YamlEditorComponent = forwardRef(
38466
38470
  function YamlEditorComponent2(props, ref) {
38467
38471
  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-ad86ff56.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-51b14bbe.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -8964,7 +8964,7 @@ var __publicField = (obj, key, value) => {
8964
8964
  class: "a60f3dj",
8965
8965
  propsAsIs: false
8966
8966
  });
8967
- const index_17chkj7 = "";
8967
+ const index_pnc88f = "";
8968
8968
  const TableContainerStyle = "t47xc8k";
8969
8969
  function Table$1(props) {
8970
8970
  const {
@@ -8984,7 +8984,8 @@ var __publicField = (obj, key, value) => {
8984
8984
  refetch,
8985
8985
  onPageChange,
8986
8986
  onSizeChange,
8987
- empty: empty2
8987
+ empty: empty2,
8988
+ hideNamespacesFilter
8988
8989
  } = props;
8989
8990
  const auxiliaryLineRef = React.useRef(null);
8990
8991
  const wrapperRef = React.useRef(null);
@@ -9026,6 +9027,7 @@ var __publicField = (obj, key, value) => {
9026
9027
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
9027
9028
  ref: wrapperRef,
9028
9029
  className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
9030
+ "data-hide-ns-filter": hideNamespacesFilter,
9029
9031
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Table, {
9030
9032
  tableLayout: "fixed",
9031
9033
  columns: finalColumns,
@@ -12712,7 +12714,7 @@ var __publicField = (obj, key, value) => {
12712
12714
  const GlobalStoreContext = React.createContext({});
12713
12715
  function Table(props) {
12714
12716
  var _a;
12715
- const { tableProps, displayName, errorContentProps } = props;
12717
+ const { tableProps, displayName, errorContentProps, hideNamespacesFilter } = props;
12716
12718
  const { Table: TableComponent } = React.useContext(ComponentContext);
12717
12719
  const Table2 = TableComponent || Table$1;
12718
12720
  const { i18n: i18n2 } = useTranslation();
@@ -12731,6 +12733,7 @@ var __publicField = (obj, key, value) => {
12731
12733
  {
12732
12734
  ...tableProps,
12733
12735
  empty: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
12736
+ hideNamespacesFilter,
12734
12737
  className: cx_default(tableProps.className)
12735
12738
  }
12736
12739
  );
@@ -36019,7 +36022,8 @@ WARNING: This link could potentially be dangerous`)) {
36019
36022
  y: "calc(100% - 48px)"
36020
36023
  }
36021
36024
  },
36022
- displayName: (config == null ? void 0 : config.displayName) || config.kind
36025
+ displayName: (config == null ? void 0 : config.displayName) || config.kind,
36026
+ hideNamespacesFilter: config.hideNamespacesFilter
36023
36027
  })
36024
36028
  })]
36025
36029
  })]
package/dist/style.css CHANGED
@@ -462,6 +462,9 @@
462
462
  }
463
463
  .t47xc8k .table-container {
464
464
  min-height: 0;
465
+ }
466
+ .t47xc8k[data-hide-ns-filter=true] {
467
+ border-top: none;
465
468
  }/* // basic */
466
469
  /* FishEye Color Variables and Functions */
467
470
  /*
@@ -36,6 +36,7 @@ export type InternalTableProps<Data extends {
36
36
  }>;
37
37
  empty?: string;
38
38
  showMenuColumn?: boolean;
39
+ hideNamespacesFilter?: boolean;
39
40
  };
40
41
  declare function Table<Data extends {
41
42
  id: string;
@@ -6,6 +6,7 @@ interface TableProps<Model extends ResourceModel> {
6
6
  tableProps: InternalTableProps<Model>;
7
7
  displayName: string;
8
8
  errorContentProps?: WidgetErrorContentProps;
9
+ hideNamespacesFilter?: boolean;
9
10
  }
10
11
  export declare function Table<Model extends ResourceModel>(props: TableProps<Model>): JSX.Element;
11
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.18-alpha.4",
3
+ "version": "0.1.18-alpha.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",