@dovetail-v2/refine 0.3.2 → 0.3.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.
- package/dist/{MonacoYamlEditor-bdd52136.cjs → MonacoYamlEditor-142a783d.cjs} +1 -1
- package/dist/{MonacoYamlEditor-d09e7de9.js → MonacoYamlEditor-cff3beeb.js} +1 -1
- package/dist/components/PageShow/PageShow.d.ts +2 -2
- package/dist/components/PodLog/index.d.ts +1 -0
- package/dist/components/ShowContent/ShowContent.d.ts +2 -2
- package/dist/components/ShowContent/ShowContentView.d.ts +4 -2
- package/dist/components/ShowContent/tabs.d.ts +1 -1
- package/dist/i18n.d.ts +2 -0
- package/dist/{index-ec66ac8f.cjs → index-046411a8.cjs} +103 -29
- package/dist/{index-3126e84d.js → index-6b1e1f45.js} +215 -141
- package/dist/locales/zh-CN/index.d.ts +2 -0
- package/dist/refine.cjs +2 -1
- package/dist/refine.js +112 -111
- package/dist/style.css +25 -13
- package/package.json +1 -1
|
@@ -7,13 +7,13 @@ var __publicField = (obj, key2, value2) => {
|
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
8
|
import i18n from "i18next";
|
|
9
9
|
import { w as warnOnce, g as getDefaults, a as warn, b as getI18n, s as setDefaults, d as setI18n, I as I18nContext, j as jsxRuntimeExports, u as useTranslation, c as cx_default, S as SocketStatus } from "./common-feae5742.js";
|
|
10
|
-
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany,
|
|
10
|
+
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
import React__default, { createElement, isValidElement, cloneElement, Children, useContext, useCallback, createContext, useState, useEffect, useMemo, useRef, useImperativeHandle, lazy, Suspense, forwardRef } from "react";
|
|
14
14
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
15
15
|
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Popover, AntdTable, TableForm, Upload, getOptions, DonutChart, SegmentControl, Checkbox, Tabs as Tabs$1, TabsTabPane, Row, Col, useMessage, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
16
|
-
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, Retry16GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
16
|
+
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ArrowChevronUp16BoldSecondaryIcon, ArrowBoldDown16Icon, Retry16GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
17
17
|
import { first, get as get$2, cloneDeep, set, omit as omit$1, merge, isEqual, debounce, last, setWith, clone, isObject as isObject$3, uniq, keyBy } from "lodash-es";
|
|
18
18
|
import yaml$2 from "js-yaml";
|
|
19
19
|
import { useLocalStorage } from "usehooks-ts";
|
|
@@ -1164,6 +1164,8 @@ const cant_delete_resource = "无法删除{{resource}}";
|
|
|
1164
1164
|
const cant_delete_resource_with_name = "无法删除{{resource}} <0>{{name}}</0> 。";
|
|
1165
1165
|
const close = "关闭";
|
|
1166
1166
|
const import_from_file = "从文件读取";
|
|
1167
|
+
const view_all_info = "查看全部信息";
|
|
1168
|
+
const collapse = "收起";
|
|
1167
1169
|
const dovetail = {
|
|
1168
1170
|
copy,
|
|
1169
1171
|
reset_arguments,
|
|
@@ -1406,7 +1408,9 @@ const dovetail = {
|
|
|
1406
1408
|
cant_delete_resource,
|
|
1407
1409
|
cant_delete_resource_with_name,
|
|
1408
1410
|
close,
|
|
1409
|
-
import_from_file
|
|
1411
|
+
import_from_file,
|
|
1412
|
+
view_all_info,
|
|
1413
|
+
collapse
|
|
1410
1414
|
};
|
|
1411
1415
|
const ZH = {
|
|
1412
1416
|
dovetail
|
|
@@ -12463,13 +12467,14 @@ const ResourceTableField = (resource, useTableParams) => {
|
|
|
12463
12467
|
};
|
|
12464
12468
|
};
|
|
12465
12469
|
const baseNoReset = "";
|
|
12466
|
-
const
|
|
12470
|
+
const index_14irc29 = "";
|
|
12467
12471
|
const WrapperStyle$3 = "wve7dfm";
|
|
12468
12472
|
const ToolbarStyle = "t9oeh3c";
|
|
12469
12473
|
const ToolbarAreaStyle = "t1u2zqn6";
|
|
12470
12474
|
const ContentStyle$1 = "c8wrcus";
|
|
12471
12475
|
const PodLog = ({
|
|
12472
|
-
pod: pod2
|
|
12476
|
+
pod: pod2,
|
|
12477
|
+
apiUrl
|
|
12473
12478
|
}) => {
|
|
12474
12479
|
var _a, _b, _c, _d, _e;
|
|
12475
12480
|
const [selectedContainer, setSelectedContainer] = useState(((_b = (_a = pod2.spec) == null ? void 0 : _a.containers[0]) == null ? void 0 : _b.name) || "");
|
|
@@ -12480,8 +12485,6 @@ const PodLog = ({
|
|
|
12480
12485
|
const [wrap, setWrap] = useState(false);
|
|
12481
12486
|
const logViewerRef = useRef(null);
|
|
12482
12487
|
const abortControllerRef = useRef(null);
|
|
12483
|
-
const dataProvider2 = useDataProvider();
|
|
12484
|
-
const apiUrl = dataProvider2()["getApiUrl"]();
|
|
12485
12488
|
const {
|
|
12486
12489
|
t: t2
|
|
12487
12490
|
} = useTranslation();
|
|
@@ -12671,7 +12674,7 @@ const EventsTab = (i18n2) => ({
|
|
|
12671
12674
|
}
|
|
12672
12675
|
]
|
|
12673
12676
|
});
|
|
12674
|
-
const PodLogTab = (i18n2) => ({
|
|
12677
|
+
const PodLogTab = (i18n2, apiUrl) => ({
|
|
12675
12678
|
title: i18n2.t("dovetail.log"),
|
|
12676
12679
|
key: "pod-log",
|
|
12677
12680
|
groups: [
|
|
@@ -12683,7 +12686,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
12683
12686
|
key: "log",
|
|
12684
12687
|
path: [],
|
|
12685
12688
|
renderContent: (_, record) => {
|
|
12686
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(PodLog, { pod: record });
|
|
12689
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PodLog, { pod: record, apiUrl });
|
|
12687
12690
|
}
|
|
12688
12691
|
}
|
|
12689
12692
|
]
|
|
@@ -12693,7 +12696,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
12693
12696
|
]
|
|
12694
12697
|
});
|
|
12695
12698
|
const NetworkPolicyRulesViewer_r6jity = "";
|
|
12696
|
-
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-
|
|
12699
|
+
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-cff3beeb.js"));
|
|
12697
12700
|
const EditorStyle$1 = "e1cjl2b8";
|
|
12698
12701
|
const NetworkPolicyRulesViewer = ({
|
|
12699
12702
|
ingressOrEgress,
|
|
@@ -13037,7 +13040,7 @@ function Tabs(props) {
|
|
|
13037
13040
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
13038
13041
|
}) });
|
|
13039
13042
|
}
|
|
13040
|
-
const
|
|
13043
|
+
const ShowContentView_19saq6u = "";
|
|
13041
13044
|
const ShowContentWrapperStyle = "soapvs9";
|
|
13042
13045
|
const BackButton = "b13d603q";
|
|
13043
13046
|
const ToolBarWrapper = "tm8eaia";
|
|
@@ -13045,12 +13048,14 @@ const NameStyle = "nhnus27";
|
|
|
13045
13048
|
const TopBarStyle = "t16t20f5";
|
|
13046
13049
|
const ShowContentHeaderStyle = "s97y2wr";
|
|
13047
13050
|
const GroupStyle = "g1rhnxqx";
|
|
13048
|
-
const
|
|
13049
|
-
const
|
|
13050
|
-
const
|
|
13051
|
-
const
|
|
13052
|
-
const
|
|
13053
|
-
const
|
|
13051
|
+
const BasicGroupStyle = "b1f1s2pc";
|
|
13052
|
+
const GroupTitleStyle = "g1qw3bxx";
|
|
13053
|
+
const FullTabContentStyle = "flfewds";
|
|
13054
|
+
const FieldWrapperStyle = "f1c7cta8";
|
|
13055
|
+
const TabContentStyle = "t1pt61xk";
|
|
13056
|
+
const ValueStyle = "v1to6fie";
|
|
13057
|
+
const TabsStyle = "tca5959";
|
|
13058
|
+
const KindTagStyle = "k3dcesi";
|
|
13054
13059
|
function ShowGroupComponent(props) {
|
|
13055
13060
|
const {
|
|
13056
13061
|
title,
|
|
@@ -13068,6 +13073,15 @@ function ShowGroupComponent(props) {
|
|
|
13068
13073
|
}), children]
|
|
13069
13074
|
});
|
|
13070
13075
|
}
|
|
13076
|
+
function BasicShowGroupComponent(props) {
|
|
13077
|
+
const {
|
|
13078
|
+
children
|
|
13079
|
+
} = props;
|
|
13080
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13081
|
+
className: BasicGroupStyle,
|
|
13082
|
+
children
|
|
13083
|
+
});
|
|
13084
|
+
}
|
|
13071
13085
|
const ShowContentView = (props) => {
|
|
13072
13086
|
var _a, _b, _c, _d;
|
|
13073
13087
|
const {
|
|
@@ -13075,8 +13089,10 @@ const ShowContentView = (props) => {
|
|
|
13075
13089
|
resourceName,
|
|
13076
13090
|
showConfig,
|
|
13077
13091
|
formatter,
|
|
13092
|
+
children,
|
|
13078
13093
|
Dropdown: Dropdown2 = K8sDropdown,
|
|
13079
|
-
hideBackButton = false
|
|
13094
|
+
hideBackButton = false,
|
|
13095
|
+
canCollapseTabs = false
|
|
13080
13096
|
} = props;
|
|
13081
13097
|
const {
|
|
13082
13098
|
queryResult
|
|
@@ -13119,7 +13135,7 @@ const ShowContentView = (props) => {
|
|
|
13119
13135
|
return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(Col, {
|
|
13120
13136
|
flex: areaType === AreaType.Inline ? "none" : "",
|
|
13121
13137
|
span: field.col || 24,
|
|
13122
|
-
className: "
|
|
13138
|
+
className: "czyzuo8",
|
|
13123
13139
|
children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
13124
13140
|
className: FieldWrapperStyle,
|
|
13125
13141
|
children: [field.title && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
@@ -13152,8 +13168,13 @@ const ShowContentView = (props) => {
|
|
|
13152
13168
|
});
|
|
13153
13169
|
});
|
|
13154
13170
|
}
|
|
13155
|
-
function renderGroup(group) {
|
|
13156
|
-
|
|
13171
|
+
function renderGroup(group, isBasicGroup = false) {
|
|
13172
|
+
let GroupContainer = React__default.Fragment;
|
|
13173
|
+
if (isBasicGroup) {
|
|
13174
|
+
GroupContainer = BasicShowGroupComponent;
|
|
13175
|
+
} else if (group.title) {
|
|
13176
|
+
GroupContainer = ShowGroupComponent;
|
|
13177
|
+
}
|
|
13157
13178
|
const FieldContainer = group.title ? Row : React__default.Fragment;
|
|
13158
13179
|
const groupContainerProps = group.title ? {
|
|
13159
13180
|
title: group.title || ""
|
|
@@ -13202,7 +13223,10 @@ const ShowContentView = (props) => {
|
|
|
13202
13223
|
style: {
|
|
13203
13224
|
display: "flex"
|
|
13204
13225
|
},
|
|
13205
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13226
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Tag.NameTag, {
|
|
13227
|
+
className: KindTagStyle,
|
|
13228
|
+
children: config.kind
|
|
13229
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
13206
13230
|
className: cx_default(Typo.Display.d2_regular_title, NameStyle),
|
|
13207
13231
|
children: ((_a = showConfig.displayName) == null ? void 0 : _a.call(showConfig, record)) || ((_b = record == null ? void 0 : record.metadata) == null ? void 0 : _b.name)
|
|
13208
13232
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
@@ -13240,25 +13264,72 @@ const ShowContentView = (props) => {
|
|
|
13240
13264
|
key: tab.key,
|
|
13241
13265
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13242
13266
|
className: cx_default(TabContentStyle, tab.groups.length <= 1 && tabIndex !== 0 && FullTabContentStyle),
|
|
13243
|
-
children: (_a2 = tab.groups) == null ? void 0 : _a2.map(renderGroup)
|
|
13267
|
+
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => renderGroup(group, false))
|
|
13244
13268
|
})
|
|
13245
13269
|
};
|
|
13246
13270
|
}),
|
|
13247
13271
|
className: TabsStyle
|
|
13248
13272
|
});
|
|
13249
|
-
const basicInfo = showConfig.basicGroup ? renderGroup(showConfig.basicGroup) : null;
|
|
13273
|
+
const basicInfo = showConfig.basicGroup ? renderGroup(showConfig.basicGroup, true) : null;
|
|
13250
13274
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
13251
13275
|
className: ShowContentWrapperStyle,
|
|
13252
13276
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Space, {
|
|
13253
13277
|
direction: "vertical",
|
|
13254
13278
|
className: ShowContentHeaderStyle,
|
|
13255
13279
|
children: topBar
|
|
13256
|
-
}), basicInfo,
|
|
13280
|
+
}), basicInfo, canCollapseTabs ? /* @__PURE__ */ jsxRuntimeExports.jsx(CollapseTabs, {
|
|
13281
|
+
children: tabs
|
|
13282
|
+
}) : tabs, children]
|
|
13257
13283
|
});
|
|
13258
13284
|
};
|
|
13285
|
+
const CollapseTabs = (props) => {
|
|
13286
|
+
const [isCollapsed, setIsCollapsed] = useState(true);
|
|
13287
|
+
const {
|
|
13288
|
+
t: t2
|
|
13289
|
+
} = useTranslation();
|
|
13290
|
+
if (isCollapsed) {
|
|
13291
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13292
|
+
style: {
|
|
13293
|
+
display: "flex"
|
|
13294
|
+
},
|
|
13295
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
13296
|
+
style: {
|
|
13297
|
+
margin: "auto",
|
|
13298
|
+
cursor: "pointer"
|
|
13299
|
+
},
|
|
13300
|
+
type: "quiet",
|
|
13301
|
+
onClick: () => setIsCollapsed((v) => !v),
|
|
13302
|
+
suffixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
13303
|
+
src: ArrowChevronUp16BoldSecondaryIcon
|
|
13304
|
+
}),
|
|
13305
|
+
children: t2("dovetail.view_all_info")
|
|
13306
|
+
})
|
|
13307
|
+
});
|
|
13308
|
+
} else {
|
|
13309
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
13310
|
+
children: [props.children, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
13311
|
+
style: {
|
|
13312
|
+
display: "flex"
|
|
13313
|
+
},
|
|
13314
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
13315
|
+
style: {
|
|
13316
|
+
margin: "auto",
|
|
13317
|
+
cursor: "pointer"
|
|
13318
|
+
},
|
|
13319
|
+
type: "quiet",
|
|
13320
|
+
onClick: () => setIsCollapsed((v) => !v),
|
|
13321
|
+
suffixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
13322
|
+
src: ArrowBoldDown16Icon
|
|
13323
|
+
}),
|
|
13324
|
+
children: t2("dovetail.collapse")
|
|
13325
|
+
})
|
|
13326
|
+
})]
|
|
13327
|
+
});
|
|
13328
|
+
}
|
|
13329
|
+
};
|
|
13259
13330
|
const ShowContent = (props) => {
|
|
13260
13331
|
var _a;
|
|
13261
|
-
const { showConfig, formatter, Dropdown: Dropdown2 = K8sDropdown } = props;
|
|
13332
|
+
const { showConfig, formatter, Dropdown: Dropdown2 = K8sDropdown, children, canCollapseTabs } = props;
|
|
13262
13333
|
const parsed = useParsed();
|
|
13263
13334
|
const { resource } = useResource();
|
|
13264
13335
|
const id = (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id;
|
|
@@ -13269,7 +13340,9 @@ const ShowContent = (props) => {
|
|
|
13269
13340
|
resourceName: (resource == null ? void 0 : resource.name) || "",
|
|
13270
13341
|
showConfig,
|
|
13271
13342
|
formatter,
|
|
13272
|
-
Dropdown: Dropdown2
|
|
13343
|
+
Dropdown: Dropdown2,
|
|
13344
|
+
canCollapseTabs,
|
|
13345
|
+
children
|
|
13273
13346
|
}
|
|
13274
13347
|
);
|
|
13275
13348
|
};
|
|
@@ -13322,7 +13395,7 @@ const PageShow = (props) => {
|
|
|
13322
13395
|
nav.list(resource);
|
|
13323
13396
|
}
|
|
13324
13397
|
}, [isError, nav, resource, queryResult, parsed, msg, notExistMsg, isLoading]);
|
|
13325
|
-
return isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props });
|
|
13398
|
+
return isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props, children: props.children });
|
|
13326
13399
|
};
|
|
13327
13400
|
const index_az4wrx = "";
|
|
13328
13401
|
const WrapperStyle$2 = "w1akirqw";
|
|
@@ -16248,8 +16321,8 @@ const useForm = ({
|
|
|
16248
16321
|
const data2 = (_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data;
|
|
16249
16322
|
if (!data2)
|
|
16250
16323
|
return;
|
|
16251
|
-
const registeredFields = Object.keys(flattenObjectKeys(getValues()));
|
|
16252
16324
|
const transformedData = transformInitValues ? transformInitValues(data2) : data2;
|
|
16325
|
+
const registeredFields = Object.keys(flattenObjectKeys(transformedData));
|
|
16253
16326
|
registeredFields.forEach((path2) => {
|
|
16254
16327
|
const hasValue = has$1(transformedData, path2);
|
|
16255
16328
|
const dataValue = get$1(transformedData, path2);
|
|
@@ -16257,7 +16330,7 @@ const useForm = ({
|
|
|
16257
16330
|
setValue(path2, dataValue);
|
|
16258
16331
|
}
|
|
16259
16332
|
});
|
|
16260
|
-
}, [queryResult == null ? void 0 : queryResult.data, setValue,
|
|
16333
|
+
}, [queryResult == null ? void 0 : queryResult.data, setValue, transformInitValues, formState.isDirty]);
|
|
16261
16334
|
useEffect(() => {
|
|
16262
16335
|
const subscription = watch((values, { type: type2 }) => {
|
|
16263
16336
|
if (type2 === "change") {
|
|
@@ -16374,7 +16447,7 @@ const PlainCodeStyle = "pqch97v";
|
|
|
16374
16447
|
const ErrorMsgStyle = "eh2qjnl";
|
|
16375
16448
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
16376
16449
|
const YamlEditorStyle = "y16u5v3w";
|
|
16377
|
-
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-
|
|
16450
|
+
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-cff3beeb.js"));
|
|
16378
16451
|
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-7de94ad2.js"));
|
|
16379
16452
|
const YamlEditorComponent = forwardRef(
|
|
16380
16453
|
function YamlEditorComponent2(props, ref) {
|
|
@@ -19134,7 +19207,7 @@ export {
|
|
|
19134
19207
|
CronjobJobsTable as ay,
|
|
19135
19208
|
KeyValue as az,
|
|
19136
19209
|
useSchema as b,
|
|
19137
|
-
|
|
19210
|
+
ServiceInClusterAccessComponent as b$,
|
|
19138
19211
|
PodSelectorField as b0,
|
|
19139
19212
|
PortsTableField as b1,
|
|
19140
19213
|
DurationField as b2,
|
|
@@ -19149,29 +19222,29 @@ export {
|
|
|
19149
19222
|
ResourceTableGroup as bB,
|
|
19150
19223
|
ShowContent as bC,
|
|
19151
19224
|
ShowGroupComponent as bD,
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19225
|
+
BasicShowGroupComponent as bE,
|
|
19226
|
+
ShowContentView as bF,
|
|
19227
|
+
DeleteManyButton as bG,
|
|
19228
|
+
ListPage as bH,
|
|
19229
|
+
StateTag as bI,
|
|
19230
|
+
DrawerShow as bJ,
|
|
19231
|
+
Menu as bK,
|
|
19232
|
+
Table as bL,
|
|
19233
|
+
EditButton as bM,
|
|
19234
|
+
ReferenceLink as bN,
|
|
19235
|
+
ResourceLink as bO,
|
|
19236
|
+
NS_STORE_KEY as bP,
|
|
19237
|
+
ALL_NS as bQ,
|
|
19238
|
+
useNamespacesFilter as bR,
|
|
19239
|
+
NamespacesFilter as bS,
|
|
19240
|
+
FormModal as bT,
|
|
19241
|
+
renderCommonFormFiled as bU,
|
|
19242
|
+
RefineFormContent as bV,
|
|
19243
|
+
RefineFormPage as bW,
|
|
19244
|
+
SchemaStrategy as bX,
|
|
19245
|
+
YamlForm as bY,
|
|
19246
|
+
useRefineForm as bZ,
|
|
19247
|
+
FormItemLayout as b_,
|
|
19175
19248
|
PVVolumeModeField as ba,
|
|
19176
19249
|
PVAccessModeField as bb,
|
|
19177
19250
|
PVCPodsField as bc,
|
|
@@ -19199,93 +19272,94 @@ export {
|
|
|
19199
19272
|
NetworkPolicyIngressRulesGroup as by,
|
|
19200
19273
|
NetworkPolicyEgressRulesGroup as bz,
|
|
19201
19274
|
useDeleteModal as c,
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19275
|
+
DaemonSetModel as c$,
|
|
19276
|
+
ServiceOutClusterAccessComponent as c0,
|
|
19277
|
+
Tags as c1,
|
|
19278
|
+
TextTags as c2,
|
|
19279
|
+
PodLog as c3,
|
|
19280
|
+
NetworkPolicyRulesViewer as c4,
|
|
19281
|
+
PVVolumeModeDisplay as c5,
|
|
19282
|
+
Tabs as c6,
|
|
19283
|
+
ResourceSelect as c7,
|
|
19284
|
+
PodShellModal as c8,
|
|
19285
|
+
PodShell as c9,
|
|
19286
|
+
SECRET_CUSTOM_INIT_VALUE as cA,
|
|
19287
|
+
NODE_INIT_VALUE as cB,
|
|
19288
|
+
STORAGE_CLASS_INIT_VALUE as cC,
|
|
19289
|
+
PV_INIT_VALUE as cD,
|
|
19290
|
+
PVC_INIT_VALUE as cE,
|
|
19291
|
+
ResourceState as cF,
|
|
19292
|
+
AccessControlAuth as cG,
|
|
19293
|
+
Dovetail as cH,
|
|
19294
|
+
RESOURCE_GROUP as cI,
|
|
19295
|
+
FormContainerType as cJ,
|
|
19296
|
+
FormType as cK,
|
|
19297
|
+
FormMode as cL,
|
|
19298
|
+
ComponentContext as cM,
|
|
19299
|
+
GlobalStoreContext as cN,
|
|
19300
|
+
ConfigsContext as cO,
|
|
19301
|
+
IngressModel as cP,
|
|
19302
|
+
NetworkPolicyModel as cQ,
|
|
19303
|
+
JobModel as cR,
|
|
19304
|
+
WorkloadModel as cS,
|
|
19305
|
+
WorkloadBaseModel as cT,
|
|
19306
|
+
PodModel as cU,
|
|
19307
|
+
PodMetricsModel as cV,
|
|
19308
|
+
ResourceModel as cW,
|
|
19309
|
+
ReplicaSetModel as cX,
|
|
19310
|
+
CronJobModel as cY,
|
|
19311
|
+
EventModel as cZ,
|
|
19312
|
+
DeploymentModel as c_,
|
|
19313
|
+
ResourceTable as ca,
|
|
19314
|
+
ErrorWrapper as cb,
|
|
19315
|
+
ErrorContentType as cc,
|
|
19316
|
+
KeyValueTableForm as cd,
|
|
19317
|
+
BASE_INIT_VALUE as ce,
|
|
19318
|
+
DEPLOYMENT_INIT_VALUE as cf,
|
|
19319
|
+
CRONJOB_INIT_VALUE as cg,
|
|
19320
|
+
DAEMONSET_INIT_VALUE as ch,
|
|
19321
|
+
JOB_INIT_VALUE as ci,
|
|
19322
|
+
STATEFULSET_INIT_VALUE as cj,
|
|
19323
|
+
POD_INIT_VALUE as ck,
|
|
19324
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as cl,
|
|
19325
|
+
SERVICE_NODE_PORT_INIT_VALUE as cm,
|
|
19326
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as cn,
|
|
19327
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as co,
|
|
19328
|
+
SERVICE_HEADLESS_INIT_VALUE as cp,
|
|
19329
|
+
INGRESS_INIT_VALUE as cq,
|
|
19330
|
+
NETWORK_POLICY_INIT_VALUE as cr,
|
|
19331
|
+
CONFIG_MAP_INIT_VALUE as cs,
|
|
19332
|
+
SERVER_INSTANCE_INIT_VALUE as ct,
|
|
19333
|
+
REDEPLOY_TIMESTAMP_KEY as cu,
|
|
19334
|
+
SECRET_OPAQUE_INIT_VALUE as cv,
|
|
19335
|
+
SECRET_IMAGE_REPO_INIT_VALUE as cw,
|
|
19336
|
+
SECRET_BASIC_AUTH_INIT_VALUE as cx,
|
|
19337
|
+
SECRET_SSH_AUTH_INIT_VALUE as cy,
|
|
19338
|
+
SECRET_TLS_INIT_VALUE as cz,
|
|
19266
19339
|
dovetailRefineI18n as d,
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19340
|
+
StatefulSetModel as d0,
|
|
19341
|
+
ServiceTypeEnum as d1,
|
|
19342
|
+
ServiceModel as d2,
|
|
19343
|
+
NodeRole as d3,
|
|
19344
|
+
NodeModel as d4,
|
|
19345
|
+
StorageClassModel as d5,
|
|
19346
|
+
PersistentVolumeModel as d6,
|
|
19347
|
+
PersistentVolumeClaimModel as d7,
|
|
19348
|
+
ProviderPlugins as d8,
|
|
19349
|
+
ModelPlugin as d9,
|
|
19350
|
+
modelPlugin as da,
|
|
19351
|
+
RelationPlugin as db,
|
|
19352
|
+
relationPlugin as dc,
|
|
19353
|
+
generateValueFromSchema as dd,
|
|
19354
|
+
generateSchemaTypeValue as de,
|
|
19355
|
+
resolveRef as df,
|
|
19356
|
+
getApiVersion as dg,
|
|
19357
|
+
pruneBeforeEdit as dh,
|
|
19358
|
+
matchSelector as di,
|
|
19359
|
+
getResourceNameByKind as dj,
|
|
19360
|
+
validateDnsSubdomain as dk,
|
|
19361
|
+
validateLabelKey as dl,
|
|
19362
|
+
validateLabelValue as dm,
|
|
19289
19363
|
useDeleteModalOnly as e,
|
|
19290
19364
|
useFailedModal as f,
|
|
19291
19365
|
NameSpaceColumnRenderer as g,
|
package/dist/refine.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const refine = require("./index-
|
|
3
|
+
const refine = require("./index-046411a8.cjs");
|
|
4
4
|
require("./common-1eb43414.cjs");
|
|
5
5
|
require("@cloudtower/eagle");
|
|
6
6
|
require("@refinedev/core");
|
|
@@ -26,6 +26,7 @@ exports.AnnotationsField = refine.AnnotationsField;
|
|
|
26
26
|
exports.AreaType = refine.AreaType;
|
|
27
27
|
exports.BASE_INIT_VALUE = refine.BASE_INIT_VALUE;
|
|
28
28
|
exports.BasicGroup = refine.BasicGroup;
|
|
29
|
+
exports.BasicShowGroupComponent = refine.BasicShowGroupComponent;
|
|
29
30
|
exports.Breadcrumb = refine.Breadcrumb;
|
|
30
31
|
exports.CONFIG_MAP_INIT_VALUE = refine.CONFIG_MAP_INIT_VALUE;
|
|
31
32
|
exports.CRONJOB_INIT_VALUE = refine.CRONJOB_INIT_VALUE;
|