@dovetail-v2/refine 0.1.27 → 0.1.29
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.
|
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip,
|
|
13
|
+
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
14
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
15
15
|
import { first, get as get$3, cloneDeep, set as set$1, omit as omit$1, merge, debounce, last, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
16
16
|
import yaml$2 from "js-yaml";
|
|
@@ -11243,16 +11243,11 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
11243
11243
|
display: true,
|
|
11244
11244
|
dataIndex: "status",
|
|
11245
11245
|
title: t2("dovetail.state"),
|
|
11246
|
-
render(value2) {
|
|
11247
|
-
const colorMap = {
|
|
11248
|
-
"True": "green",
|
|
11249
|
-
"False": "red",
|
|
11250
|
-
"Unknown": "warning"
|
|
11251
|
-
};
|
|
11252
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
11253
|
-
},
|
|
11254
11246
|
width: 120,
|
|
11255
|
-
sortable: true
|
|
11247
|
+
sortable: true,
|
|
11248
|
+
render: (value2) => {
|
|
11249
|
+
return value2;
|
|
11250
|
+
}
|
|
11256
11251
|
},
|
|
11257
11252
|
{
|
|
11258
11253
|
key: "lastTransitionTime",
|
|
@@ -12864,8 +12859,6 @@ const NodeTaintsTable = ({
|
|
|
12864
12859
|
const {
|
|
12865
12860
|
t: t2
|
|
12866
12861
|
} = useTranslation();
|
|
12867
|
-
const component = useContext(ComponentContext);
|
|
12868
|
-
const Table2 = component.Table || Table$1;
|
|
12869
12862
|
const taintsWithId = addId(taints, "key");
|
|
12870
12863
|
const columns = [{
|
|
12871
12864
|
key: "key",
|
|
@@ -12919,7 +12912,7 @@ const NodeTaintsTable = ({
|
|
|
12919
12912
|
type: ErrorContentType.Card
|
|
12920
12913
|
});
|
|
12921
12914
|
}
|
|
12922
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12915
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
12923
12916
|
tableKey: "condition",
|
|
12924
12917
|
loading: false,
|
|
12925
12918
|
data: finalData,
|
|
@@ -38681,7 +38674,7 @@ const useRefineForm = (props) => {
|
|
|
38681
38674
|
const [responseErrorMsgs, setResponseErrorMsgs] = useState([]);
|
|
38682
38675
|
const { i18n: i18n2 } = useTranslation();
|
|
38683
38676
|
const result = useForm({
|
|
38684
|
-
mode: "
|
|
38677
|
+
mode: "onTouched",
|
|
38685
38678
|
reValidateMode: "onChange",
|
|
38686
38679
|
refineCoreProps: {
|
|
38687
38680
|
errorNotification: false,
|
|
@@ -38732,7 +38725,7 @@ const Separator = () => {
|
|
|
38732
38725
|
});
|
|
38733
38726
|
};
|
|
38734
38727
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38735
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38728
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-0b32c27a.js"));
|
|
38736
38729
|
const YamlEditorComponent = forwardRef(
|
|
38737
38730
|
function YamlEditorComponent2(props, ref) {
|
|
38738
38731
|
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-ba328da4.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -11249,16 +11249,11 @@ var __publicField = (obj, key, value) => {
|
|
|
11249
11249
|
display: true,
|
|
11250
11250
|
dataIndex: "status",
|
|
11251
11251
|
title: t2("dovetail.state"),
|
|
11252
|
-
render(value2) {
|
|
11253
|
-
const colorMap = {
|
|
11254
|
-
"True": "green",
|
|
11255
|
-
"False": "red",
|
|
11256
|
-
"Unknown": "warning"
|
|
11257
|
-
};
|
|
11258
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
11259
|
-
},
|
|
11260
11252
|
width: 120,
|
|
11261
|
-
sortable: true
|
|
11253
|
+
sortable: true,
|
|
11254
|
+
render: (value2) => {
|
|
11255
|
+
return value2;
|
|
11256
|
+
}
|
|
11262
11257
|
},
|
|
11263
11258
|
{
|
|
11264
11259
|
key: "lastTransitionTime",
|
|
@@ -12870,8 +12865,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12870
12865
|
const {
|
|
12871
12866
|
t: t2
|
|
12872
12867
|
} = useTranslation();
|
|
12873
|
-
const component = React.useContext(ComponentContext);
|
|
12874
|
-
const Table2 = component.Table || Table$1;
|
|
12875
12868
|
const taintsWithId = addId(taints, "key");
|
|
12876
12869
|
const columns = [{
|
|
12877
12870
|
key: "key",
|
|
@@ -12925,7 +12918,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12925
12918
|
type: ErrorContentType.Card
|
|
12926
12919
|
});
|
|
12927
12920
|
}
|
|
12928
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12921
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
12929
12922
|
tableKey: "condition",
|
|
12930
12923
|
loading: false,
|
|
12931
12924
|
data: finalData,
|
|
@@ -38687,7 +38680,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
38687
38680
|
const [responseErrorMsgs, setResponseErrorMsgs] = React.useState([]);
|
|
38688
38681
|
const { i18n: i18n2 } = useTranslation();
|
|
38689
38682
|
const result = useForm({
|
|
38690
|
-
mode: "
|
|
38683
|
+
mode: "onTouched",
|
|
38691
38684
|
reValidateMode: "onChange",
|
|
38692
38685
|
refineCoreProps: {
|
|
38693
38686
|
errorNotification: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dayjs": "^1.11.10",
|
|
31
31
|
"i18next": "^23.2.3",
|
|
32
32
|
"js-yaml": "^4.1.0",
|
|
33
|
-
"k8s-api-provider": "^0.0.
|
|
33
|
+
"k8s-api-provider": "^0.0.28",
|
|
34
34
|
"ky": "^0.33.3",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"mitt": "^3.0.1",
|