@sia.soul/sia-react-ui 0.1.98 → 0.1.101
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/{chunk-FGGBNWBT.js → chunk-6KWMZ7JJ.js} +24 -3
- package/dist/{chunk-4TTHPU2S.js → chunk-FOLNXKBD.js} +2 -2
- package/dist/{chunk-DJTV4X6L.js → chunk-KKU35MWK.js} +1 -1
- package/dist/{chunk-YPHUBD4F.js → chunk-NURPAO7G.js} +1 -1
- package/dist/{chunk-X5BFQUFX.js → chunk-V6CRVCSB.js} +4 -3
- package/dist/{core-CkK9RRi0.d.cts → core-BTmyjw4F.d.cts} +21 -1
- package/dist/{core-uAx1caJB.d.ts → core-Bn1emNZn.d.ts} +21 -1
- package/dist/core.cjs +26 -3
- package/dist/core.css +50 -0
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +5 -3
- package/dist/index.cjs +37 -9
- package/dist/index.css +50 -0
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +18 -11
- package/dist/rich-text-editor.cjs +4 -3
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.cjs +4 -3
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover,
|
|
3
3
|
Tooltip
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KKU35MWK.js";
|
|
5
5
|
import {
|
|
6
6
|
Dropdown,
|
|
7
7
|
Icon,
|
|
8
8
|
useOverlayLifecycle
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V6CRVCSB.js";
|
|
10
10
|
import {
|
|
11
11
|
Button,
|
|
12
12
|
TextArea
|
|
@@ -2074,6 +2074,26 @@ var FloatButton2 = Object.assign(FloatButtonRoot, {
|
|
|
2074
2074
|
BackTop: FloatButtonBackTop
|
|
2075
2075
|
});
|
|
2076
2076
|
|
|
2077
|
+
// src/components/Result.tsx
|
|
2078
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2079
|
+
var icons = {
|
|
2080
|
+
success: "circle-check",
|
|
2081
|
+
error: "circle-close",
|
|
2082
|
+
info: "info",
|
|
2083
|
+
warning: "warning"
|
|
2084
|
+
};
|
|
2085
|
+
function Result({ status = "info", title, subTitle, icon, extra, children, className = "", ...props }) {
|
|
2086
|
+
const resultIcon = icon === void 0 ? /* @__PURE__ */ jsx12(Icon, { name: icons[status], size: 72, variant: "filled" }) : icon;
|
|
2087
|
+
const present = (value) => value !== void 0 && value !== null && value !== false;
|
|
2088
|
+
return /* @__PURE__ */ jsxs12("div", { ...props, className: `sia-result sia-result--${status} ${className}`.trim(), children: [
|
|
2089
|
+
present(resultIcon) && /* @__PURE__ */ jsx12("div", { className: "sia-result__icon", "aria-hidden": "true", children: resultIcon }),
|
|
2090
|
+
present(title) && /* @__PURE__ */ jsx12("div", { className: "sia-result__title", children: title }),
|
|
2091
|
+
present(subTitle) && /* @__PURE__ */ jsx12("div", { className: "sia-result__subtitle", children: subTitle }),
|
|
2092
|
+
present(children) && /* @__PURE__ */ jsx12("div", { className: "sia-result__content", children }),
|
|
2093
|
+
present(extra) && /* @__PURE__ */ jsx12("div", { className: "sia-result__extra", children: extra })
|
|
2094
|
+
] });
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2077
2097
|
export {
|
|
2078
2098
|
Toolbar,
|
|
2079
2099
|
Card,
|
|
@@ -2096,5 +2116,6 @@ export {
|
|
|
2096
2116
|
Upload,
|
|
2097
2117
|
Breadcrumb,
|
|
2098
2118
|
Typography,
|
|
2099
|
-
FloatButton2 as FloatButton
|
|
2119
|
+
FloatButton2 as FloatButton,
|
|
2120
|
+
Result
|
|
2100
2121
|
};
|
|
@@ -655,7 +655,8 @@ var outlineIconBounds = {
|
|
|
655
655
|
"search": [4, 4, 17, 17],
|
|
656
656
|
"send": [3, 3, 18, 18],
|
|
657
657
|
"server": [3, 4, 18, 16],
|
|
658
|
-
|
|
658
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
659
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
659
660
|
"share": [3, 2, 18, 20],
|
|
660
661
|
"shield": [4, 3, 16, 19],
|
|
661
662
|
"shield-check": [4, 3, 16, 19],
|
|
@@ -852,10 +853,10 @@ var coreIconPaths = {
|
|
|
852
853
|
/* @__PURE__ */ jsx3("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
853
854
|
/* @__PURE__ */ jsx3("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
854
855
|
] }),
|
|
855
|
-
//
|
|
856
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
856
857
|
settings: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
857
858
|
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
858
|
-
/* @__PURE__ */ jsx3("path", { d: "
|
|
859
|
+
/* @__PURE__ */ jsx3("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
859
860
|
] }),
|
|
860
861
|
edit: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
861
862
|
/* @__PURE__ */ jsx3("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
@@ -2354,4 +2354,24 @@ declare const FloatButton: react.ForwardRefExoticComponent<FloatButtonProps & re
|
|
|
2354
2354
|
BackTop: typeof FloatButtonBackTop;
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
2357
|
-
|
|
2357
|
+
/** 结果页的语义状态,决定默认图标及其颜色。 */
|
|
2358
|
+
type ResultStatus = "success" | "error" | "info" | "warning";
|
|
2359
|
+
/** 操作结果展示的属性;不执行请求,不自动生成重试或返回操作。 */
|
|
2360
|
+
interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2361
|
+
/** 状态图标的语义与颜色;不改变业务执行结果。默认 info。 */
|
|
2362
|
+
status?: ResultStatus;
|
|
2363
|
+
/** 结果标题,可传入文本或节点;未传时不占据标题空间。 */
|
|
2364
|
+
title?: ReactNode;
|
|
2365
|
+
/** 标题下的补充说明;长文本自动换行。 */
|
|
2366
|
+
subTitle?: ReactNode;
|
|
2367
|
+
/** 替换默认状态图标;null 或 false 隐藏图标及其占位,undefined 使用状态图标。 */
|
|
2368
|
+
icon?: ReactNode;
|
|
2369
|
+
/** 结果操作区,通常传入 Button;操作行为和加载状态由调用方管理。 */
|
|
2370
|
+
extra?: ReactNode;
|
|
2371
|
+
/** 补充详情,显示在说明之后、操作区之前;不自动添加边框。 */
|
|
2372
|
+
children?: ReactNode;
|
|
2373
|
+
}
|
|
2374
|
+
/** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
|
|
2375
|
+
declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
|
|
2376
|
+
|
|
2377
|
+
export { type MenuTheme as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, type FloatingTrigger as I, ICON_NAMES as J, Icon as K, type IconName as L, type IconProps as M, type IconVariant as N, Image as O, ImagePreview as P, type ImagePreviewConfig as Q, type ImagePreviewProps as R, type ImageProps as S, type TagStatus as T, Input as U, type InputProps as V, Menu as W, type MenuClickInfo as X, type MenuItem as Y, type MenuMode as Z, type MenuProps as _, Badge as a, type UploadDraggerProps as a$, type MessageConfig as a0, type MessageHandle as a1, type MessageKey as a2, type MessageType as a3, type NotificationConfig as a4, type NotificationPlacement as a5, type NotificationType as a6, Popconfirm as a7, type PopconfirmProps as a8, Popover as a9, Tag as aA, type TagProps as aB, type TagSize as aC, type TagVariant as aD, Timeline as aE, type TimelineItem as aF, type TimelineProps as aG, Toolbar as aH, type ToolbarItem as aI, type ToolbarProps as aJ, Tooltip as aK, type TooltipProps as aL, Tour as aM, type TourProps as aN, type TourStep as aO, Tree as aP, type TreeDropPosition as aQ, type TreeKey as aR, type TreeNode as aS, type TreeProps as aT, Typography as aU, type TypographyLinkProps as aV, type TypographyProps as aW, type TypographyTitleProps as aX, type TypographyType as aY, Upload as aZ, type UploadChangeInfo as a_, type PopoverProps as aa, Progress as ab, type ProgressProps as ac, type ProgressStatus as ad, Rate as ae, type RateProps as af, Result as ag, type ResultProps as ah, type ResultStatus as ai, Segmented as aj, type SegmentedOption as ak, type SegmentedProps as al, type SegmentedValue as am, Spin as an, type SpinProps as ao, type StepItem as ap, type StepStatus as aq, Steps as ar, type StepsProps as as, type TabItem as at, Tabs as au, type TabsContextMenuClickInfo as av, type TabsOrientation as aw, type TabsPosition as ax, type TabsProps as ay, type TabsType as az, type BadgeRibbonProps as b, type UploadFile as b0, type UploadFileStatus as b1, type UploadHttpRequest as b2, type UploadItemActions as b3, type UploadProps as b4, type UploadRef as b5, type UploadRejectInfo as b6, type UploadRequestHandle as b7, type UploadRequestOptions as b8, Watermark as b9, type WatermarkFont as ba, type WatermarkProps as bb, message as bc, notification as bd, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };
|
|
@@ -2354,4 +2354,24 @@ declare const FloatButton: react.ForwardRefExoticComponent<FloatButtonProps & re
|
|
|
2354
2354
|
BackTop: typeof FloatButtonBackTop;
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
2357
|
-
|
|
2357
|
+
/** 结果页的语义状态,决定默认图标及其颜色。 */
|
|
2358
|
+
type ResultStatus = "success" | "error" | "info" | "warning";
|
|
2359
|
+
/** 操作结果展示的属性;不执行请求,不自动生成重试或返回操作。 */
|
|
2360
|
+
interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2361
|
+
/** 状态图标的语义与颜色;不改变业务执行结果。默认 info。 */
|
|
2362
|
+
status?: ResultStatus;
|
|
2363
|
+
/** 结果标题,可传入文本或节点;未传时不占据标题空间。 */
|
|
2364
|
+
title?: ReactNode;
|
|
2365
|
+
/** 标题下的补充说明;长文本自动换行。 */
|
|
2366
|
+
subTitle?: ReactNode;
|
|
2367
|
+
/** 替换默认状态图标;null 或 false 隐藏图标及其占位,undefined 使用状态图标。 */
|
|
2368
|
+
icon?: ReactNode;
|
|
2369
|
+
/** 结果操作区,通常传入 Button;操作行为和加载状态由调用方管理。 */
|
|
2370
|
+
extra?: ReactNode;
|
|
2371
|
+
/** 补充详情,显示在说明之后、操作区之前;不自动添加边框。 */
|
|
2372
|
+
children?: ReactNode;
|
|
2373
|
+
}
|
|
2374
|
+
/** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
|
|
2375
|
+
declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
|
|
2376
|
+
|
|
2377
|
+
export { type MenuTheme as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, type FloatingTrigger as I, ICON_NAMES as J, Icon as K, type IconName as L, type IconProps as M, type IconVariant as N, Image as O, ImagePreview as P, type ImagePreviewConfig as Q, type ImagePreviewProps as R, type ImageProps as S, type TagStatus as T, Input as U, type InputProps as V, Menu as W, type MenuClickInfo as X, type MenuItem as Y, type MenuMode as Z, type MenuProps as _, Badge as a, type UploadDraggerProps as a$, type MessageConfig as a0, type MessageHandle as a1, type MessageKey as a2, type MessageType as a3, type NotificationConfig as a4, type NotificationPlacement as a5, type NotificationType as a6, Popconfirm as a7, type PopconfirmProps as a8, Popover as a9, Tag as aA, type TagProps as aB, type TagSize as aC, type TagVariant as aD, Timeline as aE, type TimelineItem as aF, type TimelineProps as aG, Toolbar as aH, type ToolbarItem as aI, type ToolbarProps as aJ, Tooltip as aK, type TooltipProps as aL, Tour as aM, type TourProps as aN, type TourStep as aO, Tree as aP, type TreeDropPosition as aQ, type TreeKey as aR, type TreeNode as aS, type TreeProps as aT, Typography as aU, type TypographyLinkProps as aV, type TypographyProps as aW, type TypographyTitleProps as aX, type TypographyType as aY, Upload as aZ, type UploadChangeInfo as a_, type PopoverProps as aa, Progress as ab, type ProgressProps as ac, type ProgressStatus as ad, Rate as ae, type RateProps as af, Result as ag, type ResultProps as ah, type ResultStatus as ai, Segmented as aj, type SegmentedOption as ak, type SegmentedProps as al, type SegmentedValue as am, Spin as an, type SpinProps as ao, type StepItem as ap, type StepStatus as aq, Steps as ar, type StepsProps as as, type TabItem as at, Tabs as au, type TabsContextMenuClickInfo as av, type TabsOrientation as aw, type TabsPosition as ax, type TabsProps as ay, type TabsType as az, type BadgeRibbonProps as b, type UploadFile as b0, type UploadFileStatus as b1, type UploadHttpRequest as b2, type UploadItemActions as b3, type UploadProps as b4, type UploadRef as b5, type UploadRejectInfo as b6, type UploadRequestHandle as b7, type UploadRequestOptions as b8, Watermark as b9, type WatermarkFont as ba, type WatermarkProps as bb, message as bc, notification as bd, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };
|
package/dist/core.cjs
CHANGED
|
@@ -29,6 +29,7 @@ __export(core_exports, {
|
|
|
29
29
|
Input: () => Input,
|
|
30
30
|
Modal: () => Modal2,
|
|
31
31
|
Progress: () => Progress,
|
|
32
|
+
Result: () => Result,
|
|
32
33
|
Segmented: () => Segmented,
|
|
33
34
|
Select: () => Select,
|
|
34
35
|
Tabs: () => Tabs,
|
|
@@ -1033,7 +1034,8 @@ var outlineIconBounds = {
|
|
|
1033
1034
|
"search": [4, 4, 17, 17],
|
|
1034
1035
|
"send": [3, 3, 18, 18],
|
|
1035
1036
|
"server": [3, 4, 18, 16],
|
|
1036
|
-
|
|
1037
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
1038
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
1037
1039
|
"share": [3, 2, 18, 20],
|
|
1038
1040
|
"shield": [4, 3, 16, 19],
|
|
1039
1041
|
"shield-check": [4, 3, 16, 19],
|
|
@@ -1230,10 +1232,10 @@ var coreIconPaths = {
|
|
|
1230
1232
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
1231
1233
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
1232
1234
|
] }),
|
|
1233
|
-
//
|
|
1235
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
1234
1236
|
settings: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1235
1237
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
1236
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "
|
|
1238
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
1237
1239
|
] }),
|
|
1238
1240
|
edit: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1239
1241
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
@@ -5658,6 +5660,26 @@ var FloatButton2 = Object.assign(FloatButtonRoot, {
|
|
|
5658
5660
|
/** 滚动超过指定距离后显示的返回顶部按钮。 */
|
|
5659
5661
|
BackTop: FloatButtonBackTop
|
|
5660
5662
|
});
|
|
5663
|
+
|
|
5664
|
+
// src/components/Result.tsx
|
|
5665
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5666
|
+
var icons = {
|
|
5667
|
+
success: "circle-check",
|
|
5668
|
+
error: "circle-close",
|
|
5669
|
+
info: "info",
|
|
5670
|
+
warning: "warning"
|
|
5671
|
+
};
|
|
5672
|
+
function Result({ status = "info", title, subTitle, icon, extra, children, className = "", ...props }) {
|
|
5673
|
+
const resultIcon = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { name: icons[status], size: 72, variant: "filled" }) : icon;
|
|
5674
|
+
const present = (value) => value !== void 0 && value !== null && value !== false;
|
|
5675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ...props, className: `sia-result sia-result--${status} ${className}`.trim(), children: [
|
|
5676
|
+
present(resultIcon) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "sia-result__icon", "aria-hidden": "true", children: resultIcon }),
|
|
5677
|
+
present(title) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "sia-result__title", children: title }),
|
|
5678
|
+
present(subTitle) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "sia-result__subtitle", children: subTitle }),
|
|
5679
|
+
present(children) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "sia-result__content", children }),
|
|
5680
|
+
present(extra) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "sia-result__extra", children: extra })
|
|
5681
|
+
] });
|
|
5682
|
+
}
|
|
5661
5683
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5662
5684
|
0 && (module.exports = {
|
|
5663
5685
|
Breadcrumb,
|
|
@@ -5669,6 +5691,7 @@ var FloatButton2 = Object.assign(FloatButtonRoot, {
|
|
|
5669
5691
|
Input,
|
|
5670
5692
|
Modal,
|
|
5671
5693
|
Progress,
|
|
5694
|
+
Result,
|
|
5672
5695
|
Segmented,
|
|
5673
5696
|
Select,
|
|
5674
5697
|
Tabs,
|
package/dist/core.css
CHANGED
|
@@ -11072,3 +11072,53 @@ body > .sia-title-tooltip[data-sia-popup-layer] {
|
|
|
11072
11072
|
animation: none;
|
|
11073
11073
|
}
|
|
11074
11074
|
}
|
|
11075
|
+
|
|
11076
|
+
/* src/components/result.css */
|
|
11077
|
+
.sia-result {
|
|
11078
|
+
padding: 48px 32px;
|
|
11079
|
+
min-width: 0;
|
|
11080
|
+
text-align: center;
|
|
11081
|
+
color: var(--sia-color-text);
|
|
11082
|
+
overflow-wrap: anywhere;
|
|
11083
|
+
}
|
|
11084
|
+
.sia-result__icon {
|
|
11085
|
+
display: flex;
|
|
11086
|
+
justify-content: center;
|
|
11087
|
+
margin-bottom: 24px;
|
|
11088
|
+
color: var(--sia-color-primary);
|
|
11089
|
+
}
|
|
11090
|
+
.sia-result--success .sia-result__icon {
|
|
11091
|
+
color: var(--sia-color-success, #52c41a);
|
|
11092
|
+
}
|
|
11093
|
+
.sia-result--error .sia-result__icon {
|
|
11094
|
+
color: var(--sia-color-danger, #ff4d4f);
|
|
11095
|
+
}
|
|
11096
|
+
.sia-result--warning .sia-result__icon {
|
|
11097
|
+
color: var(--sia-color-warning, #faad14);
|
|
11098
|
+
}
|
|
11099
|
+
.sia-result__title {
|
|
11100
|
+
font-size: 24px;
|
|
11101
|
+
line-height: 1.35;
|
|
11102
|
+
}
|
|
11103
|
+
.sia-result__subtitle {
|
|
11104
|
+
margin-top: 8px;
|
|
11105
|
+
font-size: 14px;
|
|
11106
|
+
line-height: 1.6;
|
|
11107
|
+
color: var(--sia-color-text-secondary);
|
|
11108
|
+
}
|
|
11109
|
+
.sia-result__content {
|
|
11110
|
+
margin-top: 24px;
|
|
11111
|
+
text-align: start;
|
|
11112
|
+
}
|
|
11113
|
+
.sia-result__extra {
|
|
11114
|
+
display: flex;
|
|
11115
|
+
flex-wrap: wrap;
|
|
11116
|
+
justify-content: center;
|
|
11117
|
+
gap: 8px;
|
|
11118
|
+
margin-top: 24px;
|
|
11119
|
+
}
|
|
11120
|
+
@media (max-width: 480px) {
|
|
11121
|
+
.sia-result {
|
|
11122
|
+
padding: 32px 16px;
|
|
11123
|
+
}
|
|
11124
|
+
}
|
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-BTmyjw4F.cjs';
|
|
2
2
|
export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-DQpfyK7I.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './shared-Bx4B28Wh.cjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-Bn1emNZn.js';
|
|
2
2
|
export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-DmT9pFRW.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -4,22 +4,23 @@ import {
|
|
|
4
4
|
Collapse,
|
|
5
5
|
FloatButton,
|
|
6
6
|
Progress,
|
|
7
|
+
Result,
|
|
7
8
|
Tabs,
|
|
8
9
|
Tag,
|
|
9
10
|
Toolbar,
|
|
10
11
|
Typography,
|
|
11
12
|
Upload,
|
|
12
13
|
message
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6KWMZ7JJ.js";
|
|
14
15
|
import {
|
|
15
16
|
Select
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KKU35MWK.js";
|
|
17
18
|
import {
|
|
18
19
|
Icon,
|
|
19
20
|
Input,
|
|
20
21
|
Modal,
|
|
21
22
|
Segmented
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V6CRVCSB.js";
|
|
23
24
|
import {
|
|
24
25
|
Button
|
|
25
26
|
} from "./chunk-SJFT5OSX.js";
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
Input,
|
|
35
36
|
Modal,
|
|
36
37
|
Progress,
|
|
38
|
+
Result,
|
|
37
39
|
Segmented,
|
|
38
40
|
Select,
|
|
39
41
|
Tabs,
|
package/dist/index.cjs
CHANGED
|
@@ -106,6 +106,7 @@ __export(index_exports, {
|
|
|
106
106
|
RadarChart: () => RadarChart,
|
|
107
107
|
Radio: () => Radio2,
|
|
108
108
|
Rate: () => Rate,
|
|
109
|
+
Result: () => Result,
|
|
109
110
|
RichTextContent: () => RichTextContent,
|
|
110
111
|
RichTextEditor: () => RichTextEditor,
|
|
111
112
|
Row: () => Row,
|
|
@@ -1182,7 +1183,8 @@ var outlineIconBounds = {
|
|
|
1182
1183
|
"search": [4, 4, 17, 17],
|
|
1183
1184
|
"send": [3, 3, 18, 18],
|
|
1184
1185
|
"server": [3, 4, 18, 16],
|
|
1185
|
-
|
|
1186
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
1187
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
1186
1188
|
"share": [3, 2, 18, 20],
|
|
1187
1189
|
"shield": [4, 3, 16, 19],
|
|
1188
1190
|
"shield-check": [4, 3, 16, 19],
|
|
@@ -1379,10 +1381,10 @@ var coreIconPaths = {
|
|
|
1379
1381
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
1380
1382
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
1381
1383
|
] }),
|
|
1382
|
-
//
|
|
1384
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
1383
1385
|
settings: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1384
1386
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
1385
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "
|
|
1387
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
1386
1388
|
] }),
|
|
1387
1389
|
edit: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1388
1390
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
@@ -24522,7 +24524,7 @@ function countQueryFieldRows(centers) {
|
|
|
24522
24524
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
24523
24525
|
function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed, disabled) {
|
|
24524
24526
|
const [snapshot, setSnapshot] = (0, import_react96.useState)();
|
|
24525
|
-
const [draft, setDraft] = (0, import_react96.useState)({ fields: [], defaultCollapsed });
|
|
24527
|
+
const [draft, setDraft] = (0, import_react96.useState)({ fields: [], defaultCollapsed: defaultCollapsed ?? false });
|
|
24526
24528
|
const [open, setOpen] = (0, import_react96.useState)(false);
|
|
24527
24529
|
const [loading, setLoading] = (0, import_react96.useState)(false);
|
|
24528
24530
|
const [saving, setSaving] = (0, import_react96.useState)(false);
|
|
@@ -24545,10 +24547,10 @@ function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed,
|
|
|
24545
24547
|
try {
|
|
24546
24548
|
const stored = (await current.config.adapter.load(current.config.scope))?.queryForm;
|
|
24547
24549
|
if (request !== token.current) return;
|
|
24548
|
-
const next = stored ?? { fields: [], defaultCollapsed: current.defaultCollapsed };
|
|
24550
|
+
const next = stored ?? { fields: [], defaultCollapsed: current.defaultCollapsed ?? false };
|
|
24549
24551
|
setSnapshot(next);
|
|
24550
24552
|
setDraft({ ...next, fields: reconcileQueryFields(latest.current.fields.map((field) => field.key), next.fields) });
|
|
24551
|
-
if (!edit) latest.current.applyCollapsed(
|
|
24553
|
+
if (!edit) latest.current.applyCollapsed(stored?.defaultCollapsed ?? latest.current.defaultCollapsed);
|
|
24552
24554
|
} catch (reason) {
|
|
24553
24555
|
if (request !== token.current) return;
|
|
24554
24556
|
setLoadFailed(true);
|
|
@@ -24671,7 +24673,7 @@ function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed,
|
|
|
24671
24673
|
},
|
|
24672
24674
|
item.key
|
|
24673
24675
|
)) }),
|
|
24674
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { type: "button", disabled: locked, onClick: () => setDraft({ fields: reconcileQueryFields(fields.map((field) => field.key)), defaultCollapsed }), children: "\u6062\u590D\u9ED8\u8BA4" })
|
|
24676
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { type: "button", disabled: locked, onClick: () => setDraft({ fields: reconcileQueryFields(fields.map((field) => field.key)), defaultCollapsed: defaultCollapsed ?? false }), children: "\u6062\u590D\u9ED8\u8BA4" })
|
|
24675
24677
|
] })
|
|
24676
24678
|
}
|
|
24677
24679
|
)
|
|
@@ -24692,7 +24694,7 @@ function QueryForm({
|
|
|
24692
24694
|
fieldWidth = 220,
|
|
24693
24695
|
collapsible = true,
|
|
24694
24696
|
collapsed: controlledCollapsed,
|
|
24695
|
-
defaultCollapsed
|
|
24697
|
+
defaultCollapsed,
|
|
24696
24698
|
collapsedCount = Infinity,
|
|
24697
24699
|
onCollapsedChange,
|
|
24698
24700
|
quickQueries = [],
|
|
@@ -24716,8 +24718,9 @@ function QueryForm({
|
|
|
24716
24718
|
}) {
|
|
24717
24719
|
const [form] = useForm(providedForm);
|
|
24718
24720
|
const [internalCollapsed, setInternalCollapsed] = (0, import_react97.useState)(defaultCollapsed);
|
|
24721
|
+
const [expandedRows, setExpandedRows] = (0, import_react97.useState)(0);
|
|
24719
24722
|
const [needsCollapse, setNeedsCollapse] = (0, import_react97.useState)(false);
|
|
24720
|
-
const collapsed = collapsible && needsCollapse && (controlledCollapsed ?? internalCollapsed);
|
|
24723
|
+
const collapsed = collapsible && needsCollapse && (controlledCollapsed ?? internalCollapsed ?? expandedRows >= 3);
|
|
24721
24724
|
const [searching, setSearching] = (0, import_react97.useState)(false);
|
|
24722
24725
|
const [saving, setSaving] = (0, import_react97.useState)(false);
|
|
24723
24726
|
const [removing, setRemoving] = (0, import_react97.useState)(false);
|
|
@@ -24794,6 +24797,10 @@ function QueryForm({
|
|
|
24794
24797
|
field.hidden = false;
|
|
24795
24798
|
});
|
|
24796
24799
|
if (toggle) toggle.hidden = true;
|
|
24800
|
+
if (row.clientWidth > 0) setExpandedRows(countQueryFieldRows(allFields.map((field) => {
|
|
24801
|
+
const rect = field.getBoundingClientRect();
|
|
24802
|
+
return rect.top + rect.height / 2;
|
|
24803
|
+
})));
|
|
24797
24804
|
const requiredWidth = allFields.reduce(
|
|
24798
24805
|
(total, field) => total + field.getBoundingClientRect().width + gap,
|
|
24799
24806
|
actions.getBoundingClientRect().width
|
|
@@ -25169,6 +25176,26 @@ var NumberRange = (0, import_react98.forwardRef)(function NumberRange2({
|
|
|
25169
25176
|
}
|
|
25170
25177
|
);
|
|
25171
25178
|
});
|
|
25179
|
+
|
|
25180
|
+
// src/components/Result.tsx
|
|
25181
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
25182
|
+
var icons = {
|
|
25183
|
+
success: "circle-check",
|
|
25184
|
+
error: "circle-close",
|
|
25185
|
+
info: "info",
|
|
25186
|
+
warning: "warning"
|
|
25187
|
+
};
|
|
25188
|
+
function Result({ status = "info", title, subTitle, icon, extra, children, className = "", ...props }) {
|
|
25189
|
+
const resultIcon = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: icons[status], size: 72, variant: "filled" }) : icon;
|
|
25190
|
+
const present = (value) => value !== void 0 && value !== null && value !== false;
|
|
25191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ...props, className: `sia-result sia-result--${status} ${className}`.trim(), children: [
|
|
25192
|
+
present(resultIcon) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sia-result__icon", "aria-hidden": "true", children: resultIcon }),
|
|
25193
|
+
present(title) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sia-result__title", children: title }),
|
|
25194
|
+
present(subTitle) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sia-result__subtitle", children: subTitle }),
|
|
25195
|
+
present(children) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sia-result__content", children }),
|
|
25196
|
+
present(extra) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sia-result__extra", children: extra })
|
|
25197
|
+
] });
|
|
25198
|
+
}
|
|
25172
25199
|
// Annotate the CommonJS export names for ESM import in node:
|
|
25173
25200
|
0 && (module.exports = {
|
|
25174
25201
|
Alert,
|
|
@@ -25247,6 +25274,7 @@ var NumberRange = (0, import_react98.forwardRef)(function NumberRange2({
|
|
|
25247
25274
|
RadarChart,
|
|
25248
25275
|
Radio,
|
|
25249
25276
|
Rate,
|
|
25277
|
+
Result,
|
|
25250
25278
|
RichTextContent,
|
|
25251
25279
|
RichTextEditor,
|
|
25252
25280
|
Row,
|
package/dist/index.css
CHANGED
|
@@ -12112,3 +12112,53 @@ body > .sia-title-tooltip[data-sia-popup-layer] {
|
|
|
12112
12112
|
.sia-chart__mark:focus > .sia-chart__mixed-hollow-symbol {
|
|
12113
12113
|
stroke-width: 4;
|
|
12114
12114
|
}
|
|
12115
|
+
|
|
12116
|
+
/* src/components/result.css */
|
|
12117
|
+
.sia-result {
|
|
12118
|
+
padding: 48px 32px;
|
|
12119
|
+
min-width: 0;
|
|
12120
|
+
text-align: center;
|
|
12121
|
+
color: var(--sia-color-text);
|
|
12122
|
+
overflow-wrap: anywhere;
|
|
12123
|
+
}
|
|
12124
|
+
.sia-result__icon {
|
|
12125
|
+
display: flex;
|
|
12126
|
+
justify-content: center;
|
|
12127
|
+
margin-bottom: 24px;
|
|
12128
|
+
color: var(--sia-color-primary);
|
|
12129
|
+
}
|
|
12130
|
+
.sia-result--success .sia-result__icon {
|
|
12131
|
+
color: var(--sia-color-success, #52c41a);
|
|
12132
|
+
}
|
|
12133
|
+
.sia-result--error .sia-result__icon {
|
|
12134
|
+
color: var(--sia-color-danger, #ff4d4f);
|
|
12135
|
+
}
|
|
12136
|
+
.sia-result--warning .sia-result__icon {
|
|
12137
|
+
color: var(--sia-color-warning, #faad14);
|
|
12138
|
+
}
|
|
12139
|
+
.sia-result__title {
|
|
12140
|
+
font-size: 24px;
|
|
12141
|
+
line-height: 1.35;
|
|
12142
|
+
}
|
|
12143
|
+
.sia-result__subtitle {
|
|
12144
|
+
margin-top: 8px;
|
|
12145
|
+
font-size: 14px;
|
|
12146
|
+
line-height: 1.6;
|
|
12147
|
+
color: var(--sia-color-text-secondary);
|
|
12148
|
+
}
|
|
12149
|
+
.sia-result__content {
|
|
12150
|
+
margin-top: 24px;
|
|
12151
|
+
text-align: start;
|
|
12152
|
+
}
|
|
12153
|
+
.sia-result__extra {
|
|
12154
|
+
display: flex;
|
|
12155
|
+
flex-wrap: wrap;
|
|
12156
|
+
justify-content: center;
|
|
12157
|
+
gap: 8px;
|
|
12158
|
+
margin-top: 24px;
|
|
12159
|
+
}
|
|
12160
|
+
@media (max-width: 480px) {
|
|
12161
|
+
.sia-result {
|
|
12162
|
+
padding: 32px 16px;
|
|
12163
|
+
}
|
|
12164
|
+
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
2
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-BTmyjw4F.cjs';
|
|
2
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-BTmyjw4F.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
@@ -3200,8 +3200,9 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3200
3200
|
/** 受控收起状态,需在 onCollapsedChange 中更新;全部字段能单行显示时不执行收起。收起时保留字段挂载和值,只隐藏放不下的字段,底部快捷标签始终保留。 */
|
|
3201
3201
|
collapsed?: boolean;
|
|
3202
3202
|
/**
|
|
3203
|
-
*
|
|
3204
|
-
*
|
|
3203
|
+
* 非受控模式的初始收起状态;显式 true/false 分别指定收起/展开。未指定且没有云端设置或用户手动切换时,按可见查询字段的实际展开行数自动决定:达到 3 行收起,少于 3 行展开;不计操作按钮、快捷查询或设置隐藏的字段,容器宽度变化后重新计算。
|
|
3204
|
+
* 用户手动切换后保持该选择,不再随行数自动改变。启用 settings 后,已保存的云端 defaultCollapsed 在加载完成时优先;受控 collapsed 始终优先,collapsible=false 禁用折叠。
|
|
3205
|
+
* @defaultValue undefined
|
|
3205
3206
|
*/
|
|
3206
3207
|
defaultCollapsed?: boolean;
|
|
3207
3208
|
/**
|
|
@@ -3209,7 +3210,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3209
3210
|
* @defaultValue Infinity
|
|
3210
3211
|
*/
|
|
3211
3212
|
collapsedCount?: number;
|
|
3212
|
-
/**
|
|
3213
|
+
/** 用户点击展开/收起时调用,参数为新的收起状态;自动行数判断和云设置应用不触发此回调。受控模式需在此回填 collapsed。 */
|
|
3213
3214
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
3214
3215
|
/**
|
|
3215
3216
|
* 顶部预设快捷查询按钮。点击后先恢复 initialValues,再覆盖该项 values,校验并自动触发 onSearch。
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
2
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-Bn1emNZn.js';
|
|
2
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-Bn1emNZn.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
@@ -3200,8 +3200,9 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3200
3200
|
/** 受控收起状态,需在 onCollapsedChange 中更新;全部字段能单行显示时不执行收起。收起时保留字段挂载和值,只隐藏放不下的字段,底部快捷标签始终保留。 */
|
|
3201
3201
|
collapsed?: boolean;
|
|
3202
3202
|
/**
|
|
3203
|
-
*
|
|
3204
|
-
*
|
|
3203
|
+
* 非受控模式的初始收起状态;显式 true/false 分别指定收起/展开。未指定且没有云端设置或用户手动切换时,按可见查询字段的实际展开行数自动决定:达到 3 行收起,少于 3 行展开;不计操作按钮、快捷查询或设置隐藏的字段,容器宽度变化后重新计算。
|
|
3204
|
+
* 用户手动切换后保持该选择,不再随行数自动改变。启用 settings 后,已保存的云端 defaultCollapsed 在加载完成时优先;受控 collapsed 始终优先,collapsible=false 禁用折叠。
|
|
3205
|
+
* @defaultValue undefined
|
|
3205
3206
|
*/
|
|
3206
3207
|
defaultCollapsed?: boolean;
|
|
3207
3208
|
/**
|
|
@@ -3209,7 +3210,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3209
3210
|
* @defaultValue Infinity
|
|
3210
3211
|
*/
|
|
3211
3212
|
collapsedCount?: number;
|
|
3212
|
-
/**
|
|
3213
|
+
/** 用户点击展开/收起时调用,参数为新的收起状态;自动行数判断和云设置应用不触发此回调。受控模式需在此回填 collapsed。 */
|
|
3213
3214
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
3214
3215
|
/**
|
|
3215
3216
|
* 顶部预设快捷查询按钮。点击后先恢复 initialValues,再覆盖该项 values,校验并自动触发 onSearch。
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
Popconfirm,
|
|
71
71
|
Progress,
|
|
72
72
|
Rate,
|
|
73
|
+
Result,
|
|
73
74
|
Spin,
|
|
74
75
|
Tabs,
|
|
75
76
|
Tag,
|
|
@@ -80,19 +81,19 @@ import {
|
|
|
80
81
|
Watermark,
|
|
81
82
|
message,
|
|
82
83
|
notification
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-6KWMZ7JJ.js";
|
|
84
85
|
import {
|
|
85
86
|
MarkdownEditor
|
|
86
87
|
} from "./chunk-TUXNOSCT.js";
|
|
87
88
|
import {
|
|
88
89
|
RichTextContent,
|
|
89
90
|
RichTextEditor
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-NURPAO7G.js";
|
|
91
92
|
import {
|
|
92
93
|
DatePicker,
|
|
93
94
|
SelectDateRange,
|
|
94
95
|
TimePanel
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-FOLNXKBD.js";
|
|
96
97
|
import {
|
|
97
98
|
Checkbox,
|
|
98
99
|
FloatingScrollbarProvider,
|
|
@@ -104,7 +105,7 @@ import {
|
|
|
104
105
|
Tooltip,
|
|
105
106
|
Tree,
|
|
106
107
|
useScrollbarProximity
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-KKU35MWK.js";
|
|
108
109
|
import {
|
|
109
110
|
Dropdown,
|
|
110
111
|
FILLED_ICON_NAMES,
|
|
@@ -117,7 +118,7 @@ import {
|
|
|
117
118
|
Segmented,
|
|
118
119
|
Steps,
|
|
119
120
|
useOverlayLifecycle
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-V6CRVCSB.js";
|
|
121
122
|
import {
|
|
122
123
|
Button,
|
|
123
124
|
TextArea
|
|
@@ -9128,7 +9129,7 @@ function countQueryFieldRows(centers) {
|
|
|
9128
9129
|
import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
9129
9130
|
function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed, disabled) {
|
|
9130
9131
|
const [snapshot, setSnapshot] = useState22();
|
|
9131
|
-
const [draft, setDraft] = useState22({ fields: [], defaultCollapsed });
|
|
9132
|
+
const [draft, setDraft] = useState22({ fields: [], defaultCollapsed: defaultCollapsed ?? false });
|
|
9132
9133
|
const [open, setOpen] = useState22(false);
|
|
9133
9134
|
const [loading, setLoading] = useState22(false);
|
|
9134
9135
|
const [saving, setSaving] = useState22(false);
|
|
@@ -9151,10 +9152,10 @@ function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed,
|
|
|
9151
9152
|
try {
|
|
9152
9153
|
const stored = (await current.config.adapter.load(current.config.scope))?.queryForm;
|
|
9153
9154
|
if (request !== token.current) return;
|
|
9154
|
-
const next = stored ?? { fields: [], defaultCollapsed: current.defaultCollapsed };
|
|
9155
|
+
const next = stored ?? { fields: [], defaultCollapsed: current.defaultCollapsed ?? false };
|
|
9155
9156
|
setSnapshot(next);
|
|
9156
9157
|
setDraft({ ...next, fields: reconcileQueryFields(latest.current.fields.map((field) => field.key), next.fields) });
|
|
9157
|
-
if (!edit) latest.current.applyCollapsed(
|
|
9158
|
+
if (!edit) latest.current.applyCollapsed(stored?.defaultCollapsed ?? latest.current.defaultCollapsed);
|
|
9158
9159
|
} catch (reason) {
|
|
9159
9160
|
if (request !== token.current) return;
|
|
9160
9161
|
setLoadFailed(true);
|
|
@@ -9277,7 +9278,7 @@ function useQueryFormSettings(config, fields, defaultCollapsed, applyCollapsed,
|
|
|
9277
9278
|
},
|
|
9278
9279
|
item.key
|
|
9279
9280
|
)) }),
|
|
9280
|
-
/* @__PURE__ */ jsx26(Button, { type: "button", disabled: locked, onClick: () => setDraft({ fields: reconcileQueryFields(fields.map((field) => field.key)), defaultCollapsed }), children: "\u6062\u590D\u9ED8\u8BA4" })
|
|
9281
|
+
/* @__PURE__ */ jsx26(Button, { type: "button", disabled: locked, onClick: () => setDraft({ fields: reconcileQueryFields(fields.map((field) => field.key)), defaultCollapsed: defaultCollapsed ?? false }), children: "\u6062\u590D\u9ED8\u8BA4" })
|
|
9281
9282
|
] })
|
|
9282
9283
|
}
|
|
9283
9284
|
)
|
|
@@ -9298,7 +9299,7 @@ function QueryForm({
|
|
|
9298
9299
|
fieldWidth = 220,
|
|
9299
9300
|
collapsible = true,
|
|
9300
9301
|
collapsed: controlledCollapsed,
|
|
9301
|
-
defaultCollapsed
|
|
9302
|
+
defaultCollapsed,
|
|
9302
9303
|
collapsedCount = Infinity,
|
|
9303
9304
|
onCollapsedChange,
|
|
9304
9305
|
quickQueries = [],
|
|
@@ -9322,8 +9323,9 @@ function QueryForm({
|
|
|
9322
9323
|
}) {
|
|
9323
9324
|
const [form] = useForm(providedForm);
|
|
9324
9325
|
const [internalCollapsed, setInternalCollapsed] = useState23(defaultCollapsed);
|
|
9326
|
+
const [expandedRows, setExpandedRows] = useState23(0);
|
|
9325
9327
|
const [needsCollapse, setNeedsCollapse] = useState23(false);
|
|
9326
|
-
const collapsed = collapsible && needsCollapse && (controlledCollapsed ?? internalCollapsed);
|
|
9328
|
+
const collapsed = collapsible && needsCollapse && (controlledCollapsed ?? internalCollapsed ?? expandedRows >= 3);
|
|
9327
9329
|
const [searching, setSearching] = useState23(false);
|
|
9328
9330
|
const [saving, setSaving] = useState23(false);
|
|
9329
9331
|
const [removing, setRemoving] = useState23(false);
|
|
@@ -9400,6 +9402,10 @@ function QueryForm({
|
|
|
9400
9402
|
field.hidden = false;
|
|
9401
9403
|
});
|
|
9402
9404
|
if (toggle) toggle.hidden = true;
|
|
9405
|
+
if (row.clientWidth > 0) setExpandedRows(countQueryFieldRows(allFields.map((field) => {
|
|
9406
|
+
const rect = field.getBoundingClientRect();
|
|
9407
|
+
return rect.top + rect.height / 2;
|
|
9408
|
+
})));
|
|
9403
9409
|
const requiredWidth = allFields.reduce(
|
|
9404
9410
|
(total, field) => total + field.getBoundingClientRect().width + gap,
|
|
9405
9411
|
actions.getBoundingClientRect().width
|
|
@@ -9852,6 +9858,7 @@ export {
|
|
|
9852
9858
|
RadarChart,
|
|
9853
9859
|
Radio2 as Radio,
|
|
9854
9860
|
Rate,
|
|
9861
|
+
Result,
|
|
9855
9862
|
RichTextContent,
|
|
9856
9863
|
RichTextEditor,
|
|
9857
9864
|
Row,
|
|
@@ -1051,7 +1051,8 @@ var outlineIconBounds = {
|
|
|
1051
1051
|
"search": [4, 4, 17, 17],
|
|
1052
1052
|
"send": [3, 3, 18, 18],
|
|
1053
1053
|
"server": [3, 4, 18, 16],
|
|
1054
|
-
|
|
1054
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
1055
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
1055
1056
|
"share": [3, 2, 18, 20],
|
|
1056
1057
|
"shield": [4, 3, 16, 19],
|
|
1057
1058
|
"shield-check": [4, 3, 16, 19],
|
|
@@ -1248,10 +1249,10 @@ var coreIconPaths = {
|
|
|
1248
1249
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
1249
1250
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
1250
1251
|
] }),
|
|
1251
|
-
//
|
|
1252
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
1252
1253
|
settings: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1253
1254
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
1254
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "
|
|
1255
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
1255
1256
|
] }),
|
|
1256
1257
|
edit: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1257
1258
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -968,7 +968,8 @@ var outlineIconBounds = {
|
|
|
968
968
|
"search": [4, 4, 17, 17],
|
|
969
969
|
"send": [3, 3, 18, 18],
|
|
970
970
|
"server": [3, 4, 18, 16],
|
|
971
|
-
|
|
971
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
972
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
972
973
|
"share": [3, 2, 18, 20],
|
|
973
974
|
"shield": [4, 3, 16, 19],
|
|
974
975
|
"shield-check": [4, 3, 16, 19],
|
|
@@ -1165,10 +1166,10 @@ var coreIconPaths = {
|
|
|
1165
1166
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
1166
1167
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
1167
1168
|
] }),
|
|
1168
|
-
//
|
|
1169
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
1169
1170
|
settings: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1170
1171
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
1171
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
1172
1173
|
] }),
|
|
1173
1174
|
edit: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1174
1175
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectDateRange
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FOLNXKBD.js";
|
|
4
|
+
import "./chunk-KKU35MWK.js";
|
|
5
|
+
import "./chunk-V6CRVCSB.js";
|
|
6
6
|
import "./chunk-SJFT5OSX.js";
|
|
7
7
|
import "./chunk-PUZWLIIJ.js";
|
|
8
8
|
export {
|