@dovetail-v2/refine 0.3.24-alpha.2 → 0.3.25-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.
- package/dist/refine.cjs +13 -7
- package/dist/refine.js +14 -8
- package/dist/style.css +0 -5
- package/package.json +1 -1
package/dist/refine.cjs
CHANGED
|
@@ -7631,7 +7631,7 @@ const useDeleteModal = ({
|
|
|
7631
7631
|
});
|
|
7632
7632
|
return { openDeleteConfirmModal, closeDeleteConfirmModal };
|
|
7633
7633
|
};
|
|
7634
|
-
const
|
|
7634
|
+
const index_yx16t2 = "";
|
|
7635
7635
|
const EMPTY_VALUES = [void 0, null, "", "-"];
|
|
7636
7636
|
const EmptyStyle = "e5223w8";
|
|
7637
7637
|
const ContentStyle$2 = "cdjsw14";
|
|
@@ -7642,16 +7642,21 @@ function ValueDisplay(props) {
|
|
|
7642
7642
|
className,
|
|
7643
7643
|
style
|
|
7644
7644
|
} = props;
|
|
7645
|
-
|
|
7646
|
-
|
|
7645
|
+
const result = useOverflow ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
|
|
7646
|
+
content: value2,
|
|
7647
7647
|
style,
|
|
7648
|
-
|
|
7648
|
+
className: common.cx_default(className, ContentStyle$2)
|
|
7649
7649
|
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
7650
7650
|
style,
|
|
7651
|
-
className: common.cx_default(className, ContentStyle$2
|
|
7651
|
+
className: common.cx_default(className, ContentStyle$2),
|
|
7652
7652
|
title: typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "",
|
|
7653
7653
|
children: value2
|
|
7654
7654
|
});
|
|
7655
|
+
return EMPTY_VALUES.includes(value2) ? /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
7656
|
+
className: common.cx_default(EmptyStyle, "empty-text", className),
|
|
7657
|
+
style,
|
|
7658
|
+
children: "-"
|
|
7659
|
+
}) : result;
|
|
7655
7660
|
}
|
|
7656
7661
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7657
7662
|
__proto__: null,
|
|
@@ -12045,7 +12050,7 @@ function K8sDropdown(props) {
|
|
|
12045
12050
|
)}` : t2("dovetail.edit_yaml") })
|
|
12046
12051
|
}
|
|
12047
12052
|
),
|
|
12048
|
-
|
|
12053
|
+
(canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12049
12054
|
eagle.Menu.Item,
|
|
12050
12055
|
{
|
|
12051
12056
|
onClick: () => openForm({
|
|
@@ -15248,7 +15253,8 @@ const ShowContentView = (props) => {
|
|
|
15248
15253
|
style: {
|
|
15249
15254
|
height: "100%"
|
|
15250
15255
|
},
|
|
15251
|
-
value: content
|
|
15256
|
+
value: content,
|
|
15257
|
+
useOverflow: false
|
|
15252
15258
|
});
|
|
15253
15259
|
});
|
|
15254
15260
|
}
|
package/dist/refine.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNav
|
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import React, { createElement, isValidElement, cloneElement, Children, useContext, useCallback, createContext, useState, useEffect, useMemo, useRef, useImperativeHandle, forwardRef, Suspense, lazy, memo } from "react";
|
|
13
13
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
14
|
-
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Typo, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, ImmersiveDialog, SmallDialog, Fields, Units, Link as Link$1,
|
|
14
|
+
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, OverflowTooltip, Typo, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, ImmersiveDialog, SmallDialog, Fields, Units, Link as Link$1, Tooltip, Divider, Icon, Dropdown, Menu as Menu$1, LegacyModal, StatusCapsule, Popover, AntdTable, Upload, TableForm, AutoComplete, getOptions, DonutChart, SegmentControl, Checkbox, Tabs as Tabs$1, TabsTabPane, Col, Row, useMessage, SearchInput, Token, AntdSelectOptGroup, WizardDialog, MenuItemGroup, Layout as Layout$1, InputGroup, InputInteger, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
15
15
|
import { HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, Retry16GradientBlueIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, OpenTerminal16GradientBlueIcon, ArrowChevronDown16BlueIcon, ArrowChevronUp16BlueIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
16
16
|
import { first, get as get$2, cloneDeep, set, setWith, clone, debounce, isEqual as isEqual$1, isObject as isObject$4, uniq, omit as omit$1, merge, last, keyBy } from "lodash-es";
|
|
17
17
|
import yaml$2 from "js-yaml";
|
|
@@ -7612,7 +7612,7 @@ const useDeleteModal = ({
|
|
|
7612
7612
|
});
|
|
7613
7613
|
return { openDeleteConfirmModal, closeDeleteConfirmModal };
|
|
7614
7614
|
};
|
|
7615
|
-
const
|
|
7615
|
+
const index_yx16t2 = "";
|
|
7616
7616
|
const EMPTY_VALUES = [void 0, null, "", "-"];
|
|
7617
7617
|
const EmptyStyle = "e5223w8";
|
|
7618
7618
|
const ContentStyle$2 = "cdjsw14";
|
|
@@ -7623,16 +7623,21 @@ function ValueDisplay(props) {
|
|
|
7623
7623
|
className,
|
|
7624
7624
|
style
|
|
7625
7625
|
} = props;
|
|
7626
|
-
|
|
7627
|
-
|
|
7626
|
+
const result = useOverflow ? /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
7627
|
+
content: value2,
|
|
7628
7628
|
style,
|
|
7629
|
-
|
|
7629
|
+
className: cx_default(className, ContentStyle$2)
|
|
7630
7630
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
7631
7631
|
style,
|
|
7632
|
-
className: cx_default(className, ContentStyle$2
|
|
7632
|
+
className: cx_default(className, ContentStyle$2),
|
|
7633
7633
|
title: typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "",
|
|
7634
7634
|
children: value2
|
|
7635
7635
|
});
|
|
7636
|
+
return EMPTY_VALUES.includes(value2) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
7637
|
+
className: cx_default(EmptyStyle, "empty-text", className),
|
|
7638
|
+
style,
|
|
7639
|
+
children: "-"
|
|
7640
|
+
}) : result;
|
|
7636
7641
|
}
|
|
7637
7642
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7638
7643
|
__proto__: null,
|
|
@@ -12026,7 +12031,7 @@ function K8sDropdown(props) {
|
|
|
12026
12031
|
)}` : t2("dovetail.edit_yaml") })
|
|
12027
12032
|
}
|
|
12028
12033
|
),
|
|
12029
|
-
|
|
12034
|
+
(canEditData == null ? void 0 : canEditData.can) === false || (config == null ? void 0 : config.hideEdit) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12030
12035
|
Menu$1.Item,
|
|
12031
12036
|
{
|
|
12032
12037
|
onClick: () => openForm({
|
|
@@ -15229,7 +15234,8 @@ const ShowContentView = (props) => {
|
|
|
15229
15234
|
style: {
|
|
15230
15235
|
height: "100%"
|
|
15231
15236
|
},
|
|
15232
|
-
value: content
|
|
15237
|
+
value: content,
|
|
15238
|
+
useOverflow: false
|
|
15233
15239
|
});
|
|
15234
15240
|
});
|
|
15235
15241
|
}
|
package/dist/style.css
CHANGED