@dovetail-v2/refine 0.0.45-bowen.2 → 0.0.45-bowen.4
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.
|
@@ -18574,7 +18574,8 @@ function ResourceList(props) {
|
|
|
18574
18574
|
useTableParams: {},
|
|
18575
18575
|
columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
|
|
18576
18576
|
tableProps: {
|
|
18577
|
-
defaultSize: 50
|
|
18577
|
+
defaultSize: 50,
|
|
18578
|
+
...props.config.tableProps
|
|
18578
18579
|
},
|
|
18579
18580
|
formatter,
|
|
18580
18581
|
Dropdown
|
|
@@ -22595,7 +22596,7 @@ const Separator = () => {
|
|
|
22595
22596
|
});
|
|
22596
22597
|
};
|
|
22597
22598
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22598
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22599
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-edd70925.js"));
|
|
22599
22600
|
const YamlEditorComponent = forwardRef(
|
|
22600
22601
|
function YamlEditorComponent2(props, ref) {
|
|
22601
22602
|
const {
|
|
@@ -24294,12 +24295,7 @@ var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
|
|
|
24294
24295
|
function addDefaultRenderToColumns(columns) {
|
|
24295
24296
|
return columns.map((col) => ({
|
|
24296
24297
|
render(value2) {
|
|
24297
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24298
|
-
ValueDisplay,
|
|
24299
|
-
{
|
|
24300
|
-
value: value2
|
|
24301
|
-
}
|
|
24302
|
-
);
|
|
24298
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: value2 });
|
|
24303
24299
|
},
|
|
24304
24300
|
...col
|
|
24305
24301
|
}));
|
|
@@ -24343,7 +24339,10 @@ const useEagleTable = (params) => {
|
|
|
24343
24339
|
[setCurrentPage]
|
|
24344
24340
|
);
|
|
24345
24341
|
const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
|
|
24346
|
-
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice(
|
|
24342
|
+
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice(
|
|
24343
|
+
(currentPage - 1) * currentSize,
|
|
24344
|
+
currentPage * currentSize
|
|
24345
|
+
);
|
|
24347
24346
|
const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
|
|
24348
24347
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
24349
24348
|
const finalProps = {
|
|
@@ -24355,13 +24354,14 @@ const useEagleTable = (params) => {
|
|
|
24355
24354
|
error: false,
|
|
24356
24355
|
rowKey: "id",
|
|
24357
24356
|
currentPage,
|
|
24358
|
-
defaultSize: currentSize,
|
|
24359
24357
|
onPageChange,
|
|
24360
24358
|
onSelect: (keys) => {
|
|
24361
24359
|
setSelectedKeys(keys);
|
|
24362
24360
|
},
|
|
24363
24361
|
total,
|
|
24364
|
-
RowMenu: Dropdown
|
|
24362
|
+
RowMenu: Dropdown,
|
|
24363
|
+
...tableProps,
|
|
24364
|
+
defaultSize: currentSize
|
|
24365
24365
|
};
|
|
24366
24366
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
24367
24367
|
};
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b6, bK, A, az, aB, aj, bm, aJ, G, bA, bo, at, w, C, g, bO, am, aN, Y, bQ, a0, a7, bZ, ab, bp, bn, c0, ap, aT, t, ah, aY, b$, bL, b0, D, aG, b2, b_, aH, ax, b9, bN, bP, by, ak, a1, p, o, bR, I, aQ, aw, q, bq, bT, ao, aP, ac, ad, T, ae, aA, ai, aZ, b1, U, M, bz, b5, N, H, b, ay, O, b8, aV, aU, bS, bk, e, bs, V, P, aL, s, Z, bj, aI, bX, bW, aE, aR, n, an, aK, v, aS, aF, c4, bM, b3, ba, bb, al, R, $, a5, a4, b4, a2, bY, a3, a8, f, bF, bI, bE, bD, bG, bH, bB, bt, bw, bx, bv, bu, br, bc, aq, aO, af, k, bf, i, aC, c3, m, bg, aD, l, av, aM, h, c2, as, au, aX, aW, ar, S, a$, a_, c1, bC, bl, bh, bi, X, bV, _, W, bU, a6, aa, a9, c, bJ, ag, bd, x, J, d, Q, L, K, r, a, z, y, B, E, b7, F, be, u } from "./index-
|
|
1
|
+
import { b6, bK, A, az, aB, aj, bm, aJ, G, bA, bo, at, w, C, g, bO, am, aN, Y, bQ, a0, a7, bZ, ab, bp, bn, c0, ap, aT, t, ah, aY, b$, bL, b0, D, aG, b2, b_, aH, ax, b9, bN, bP, by, ak, a1, p, o, bR, I, aQ, aw, q, bq, bT, ao, aP, ac, ad, T, ae, aA, ai, aZ, b1, U, M, bz, b5, N, H, b, ay, O, b8, aV, aU, bS, bk, e, bs, V, P, aL, s, Z, bj, aI, bX, bW, aE, aR, n, an, aK, v, aS, aF, c4, bM, b3, ba, bb, al, R, $, a5, a4, b4, a2, bY, a3, a8, f, bF, bI, bE, bD, bG, bH, bB, bt, bw, bx, bv, bu, br, bc, aq, aO, af, k, bf, i, aC, c3, m, bg, aD, l, av, aM, h, c2, as, au, aX, aW, ar, S, a$, a_, c1, bC, bl, bh, bi, X, bV, _, W, bU, a6, aa, a9, c, bJ, ag, bd, x, J, d, Q, L, K, r, a, z, y, B, E, b7, F, be, u } from "./index-1a64b0dc.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -18580,7 +18580,8 @@ var __publicField = (obj, key, value) => {
|
|
|
18580
18580
|
useTableParams: {},
|
|
18581
18581
|
columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
|
|
18582
18582
|
tableProps: {
|
|
18583
|
-
defaultSize: 50
|
|
18583
|
+
defaultSize: 50,
|
|
18584
|
+
...props.config.tableProps
|
|
18584
18585
|
},
|
|
18585
18586
|
formatter,
|
|
18586
18587
|
Dropdown
|
|
@@ -24300,12 +24301,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24300
24301
|
function addDefaultRenderToColumns(columns) {
|
|
24301
24302
|
return columns.map((col) => ({
|
|
24302
24303
|
render(value2) {
|
|
24303
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24304
|
-
ValueDisplay,
|
|
24305
|
-
{
|
|
24306
|
-
value: value2
|
|
24307
|
-
}
|
|
24308
|
-
);
|
|
24304
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: value2 });
|
|
24309
24305
|
},
|
|
24310
24306
|
...col
|
|
24311
24307
|
}));
|
|
@@ -24349,7 +24345,10 @@ var __publicField = (obj, key, value) => {
|
|
|
24349
24345
|
[setCurrentPage]
|
|
24350
24346
|
);
|
|
24351
24347
|
const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
|
|
24352
|
-
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice(
|
|
24348
|
+
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice(
|
|
24349
|
+
(currentPage - 1) * currentSize,
|
|
24350
|
+
currentPage * currentSize
|
|
24351
|
+
);
|
|
24353
24352
|
const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
|
|
24354
24353
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
24355
24354
|
const finalProps = {
|
|
@@ -24361,13 +24360,14 @@ var __publicField = (obj, key, value) => {
|
|
|
24361
24360
|
error: false,
|
|
24362
24361
|
rowKey: "id",
|
|
24363
24362
|
currentPage,
|
|
24364
|
-
defaultSize: currentSize,
|
|
24365
24363
|
onPageChange,
|
|
24366
24364
|
onSelect: (keys) => {
|
|
24367
24365
|
setSelectedKeys(keys);
|
|
24368
24366
|
},
|
|
24369
24367
|
total,
|
|
24370
|
-
RowMenu: Dropdown
|
|
24368
|
+
RowMenu: Dropdown,
|
|
24369
|
+
...tableProps,
|
|
24370
|
+
defaultSize: currentSize
|
|
24371
24371
|
};
|
|
24372
24372
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
24373
24373
|
};
|
|
@@ -4,7 +4,7 @@ import { Unstructured } from 'k8s-api-provider';
|
|
|
4
4
|
import { YamlFormProps } from '../components';
|
|
5
5
|
import { RefineFormField } from '../components/Form';
|
|
6
6
|
import { ShowConfig } from '../components/ShowContent';
|
|
7
|
-
import { Column } from '../components/Table';
|
|
7
|
+
import { Column, TableProps } from '../components/Table';
|
|
8
8
|
import { ResourceModel } from '../models';
|
|
9
9
|
export declare enum RESOURCE_GROUP {
|
|
10
10
|
WORKLOAD = "WORKLOAD",
|
|
@@ -39,6 +39,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
39
39
|
Dropdown?: React.FC<{
|
|
40
40
|
record: Model;
|
|
41
41
|
}>;
|
|
42
|
+
tableProps?: Partial<TableProps<Model>>;
|
|
42
43
|
isCustom?: boolean;
|
|
43
44
|
formConfig?: {
|
|
44
45
|
fields?: (props: {
|