@sia.soul/sia-react-ui 0.1.142 → 0.1.144
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/{Button-BiL3Wjsd.d.ts → Button-C8W8ZHWV.d.ts} +1 -1
- package/dist/{Button-O_pNB3SQ.d.cts → Button-CxKBjLda.d.cts} +1 -1
- package/dist/{Select-DeD4O8FL.d.ts → Select-CTSd8zum.d.ts} +14 -10
- package/dist/{Select-Y0e9kaxE.d.cts → Select-bKLket9n.d.cts} +14 -10
- package/dist/chart.cjs +1051 -335
- package/dist/chart.js +5 -5
- package/dist/chunk-4OHS7RXE.js +1004 -0
- package/dist/{chunk-WIRIEIRO.js → chunk-4TYHSAR3.js} +5 -5
- package/dist/{chunk-TUGCP3GB.js → chunk-566S64IP.js} +5 -5
- package/dist/{chunk-CZ2ITBRW.js → chunk-7SEGBB6V.js} +34 -5
- package/dist/{chunk-KY6A5IJH.js → chunk-ETQJ2DQ2.js} +1 -1
- package/dist/{chunk-WD56MJO2.js → chunk-F52O2MOV.js} +7 -3
- package/dist/{chunk-PQBCD54U.js → chunk-JRXYM5YH.js} +167 -64
- package/dist/{chunk-SCEHVGKV.js → chunk-LKLPCYEP.js} +2 -2
- package/dist/{chunk-3KYG7IU7.js → chunk-MD4CGSOR.js} +105 -61
- package/dist/{chunk-PGP4TEPP.js → chunk-ORSQAJ22.js} +154 -494
- package/dist/{chunk-SO7IJZIR.js → chunk-PD3K5U5Y.js} +2 -2
- package/dist/{chunk-UVHC6OEX.js → chunk-WCYVBO2N.js} +342 -123
- package/dist/{core-DYo5C4Si.d.cts → core-COaZfusa.d.cts} +51 -24
- package/dist/{core-sWwvVAmP.d.ts → core-CvfsQGuT.d.ts} +51 -24
- package/dist/core.cjs +1996 -1250
- package/dist/core.css +413 -344
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +18 -9
- package/dist/game.cjs +1984 -1169
- package/dist/game.css +182 -177
- package/dist/game.d.cts +1 -1
- package/dist/game.d.ts +1 -1
- package/dist/game.js +8 -3
- package/dist/index.cjs +4660 -3541
- package/dist/index.css +413 -344
- package/dist/index.d.cts +78 -81
- package/dist/index.d.ts +78 -81
- package/dist/index.js +1083 -715
- package/dist/markdown-editor.cjs +727 -40
- package/dist/markdown-editor.js +8 -3
- package/dist/rich-text-editor.cjs +1265 -308
- package/dist/rich-text-editor.js +12 -7
- package/dist/{select-date-range-X6a9Y-Te.d.ts → select-date-range-C8cacfmb.d.ts} +1 -1
- package/dist/{select-date-range-DiBQQ0Rn.d.cts → select-date-range-Dad0IdD4.d.cts} +1 -1
- package/dist/select-date-range.cjs +1277 -806
- package/dist/select-date-range.d.cts +3 -3
- package/dist/select-date-range.d.ts +3 -3
- package/dist/select-date-range.js +13 -8
- package/package.json +9 -2
- package/dist/chunk-NZMUW5XI.js +0 -292
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
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
|
|
2
|
+
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-COaZfusa.cjs';
|
|
4
|
+
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 FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-COaZfusa.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
|
-
import { B as ButtonProps, a as ButtonSize } from './Button-
|
|
7
|
-
export { b as Button, c as ButtonVariant } from './Button-
|
|
8
|
-
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-
|
|
9
|
-
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-
|
|
10
|
-
export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-
|
|
6
|
+
import { B as ButtonProps, a as ButtonSize } from './Button-CxKBjLda.cjs';
|
|
7
|
+
export { b as Button, c as ButtonVariant } from './Button-CxKBjLda.cjs';
|
|
8
|
+
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-bKLket9n.cjs';
|
|
9
|
+
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-bKLket9n.cjs';
|
|
10
|
+
export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-Dad0IdD4.cjs';
|
|
11
11
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
|
|
12
12
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
|
|
13
13
|
import * as Monaco from 'monaco-editor';
|
|
@@ -65,7 +65,7 @@ interface AutoSizerProps {
|
|
|
65
65
|
declare function AutoSizer({ children }: AutoSizerProps): react.JSX.Element;
|
|
66
66
|
/** 非模态任务浮层配置,不管理业务任务或轮询。 */
|
|
67
67
|
interface FloatingPanelProps {
|
|
68
|
-
/**
|
|
68
|
+
/** 是否显示;入场以 180ms 淡入,关闭沿同一轨迹反播后卸载内容。减少动态效果时直接切换,不显示遮罩,也不抢夺焦点。 */
|
|
69
69
|
open: boolean;
|
|
70
70
|
/** 浮层可访问名称,同时作为标题展示。 */
|
|
71
71
|
title: string;
|
|
@@ -133,10 +133,10 @@ interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
|
133
133
|
banner?: boolean;
|
|
134
134
|
/** 请求关闭时触发的回调。 */
|
|
135
135
|
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
136
|
-
/**
|
|
136
|
+
/** 180ms 淡出完成并移除提示后调用一次;减少动态效果时直接完成。父组件提前卸载 Alert 时不触发。 */
|
|
137
137
|
afterClose?: () => void;
|
|
138
138
|
}
|
|
139
|
-
/**
|
|
139
|
+
/** 警告提示组件;入场及关闭使用同一条 180ms 淡入轨迹,关闭反播后卸载;onClose 立即触发,afterClose 等待退场完成。 */
|
|
140
140
|
declare function Alert({ status, type, title, message, description, action, showIcon, closable, closeIcon, banner, onClose, afterClose, className, ...props }: AlertProps): react.JSX.Element | null;
|
|
141
141
|
|
|
142
142
|
/** 分页器默认提供的每页记录数选项。 */
|
|
@@ -284,7 +284,7 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
|
|
|
284
284
|
/** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
|
|
285
285
|
onChange?: (value: readonly CascaderValue[] | readonly (readonly CascaderValue[])[] | undefined, selectedOptions: CascaderOption[] | CascaderOption[][]) => void;
|
|
286
286
|
}
|
|
287
|
-
/**
|
|
287
|
+
/** 级联选择组件;弹层宽度由当前展开的菜单列及搜索栏决定,每列最小宽度为 170px,不跟随输入框预留空白子级区域;展开子项后才增加对应列,分隔线仅显示在相邻列之间。 */
|
|
288
288
|
declare function Cascader({ options, value, defaultValue, size: sizeProp, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
|
|
289
289
|
|
|
290
290
|
/** 布局间距,可使用预设等级或数值。 */
|
|
@@ -557,9 +557,45 @@ interface ToolPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" |
|
|
|
557
557
|
/** 鼠标或键盘调整结束时触发 */
|
|
558
558
|
onResizeEnd?: (size: number) => void;
|
|
559
559
|
}
|
|
560
|
-
/**
|
|
560
|
+
/** 可折叠、可调整宽度的工具面板;活动栏仅纵向滚动,收起后保留入口和已挂载内容状态。 */
|
|
561
561
|
declare function ToolPanel({ title, icon, items, activeKey, defaultActiveKey, onActiveKeyChange, placement, open, defaultOpen, defaultSize, minSize, maxSize, onOpenChange, onResize, onResizeEnd, className, style, children, ...props }: ToolPanelProps): react.JSX.Element;
|
|
562
562
|
|
|
563
|
+
/** SiaTheme的模式类型。 */
|
|
564
|
+
type SiaThemeMode = "light" | "dark";
|
|
565
|
+
/** 框架主题令牌集合。 */
|
|
566
|
+
declare const SIA_THEME: {
|
|
567
|
+
/** 主色。 */
|
|
568
|
+
readonly colorPrimary: "#1677ff";
|
|
569
|
+
/** 主色的悬停色。 */
|
|
570
|
+
readonly colorPrimaryHover: "#4096ff";
|
|
571
|
+
/** 主色的按下色。 */
|
|
572
|
+
readonly colorPrimaryActive: "#0958d9";
|
|
573
|
+
/** 主要文本颜色。 */
|
|
574
|
+
readonly colorText: "#1f1f1f";
|
|
575
|
+
/** 次要文本颜色。 */
|
|
576
|
+
readonly colorTextSecondary: "#666666";
|
|
577
|
+
/** 页面背景颜色。 */
|
|
578
|
+
readonly colorBackground: "#f5f7fa";
|
|
579
|
+
/** 组件表面颜色。 */
|
|
580
|
+
readonly colorSurface: "#ffffff";
|
|
581
|
+
/** 默认边框颜色。 */
|
|
582
|
+
readonly colorBorder: "#d9d9d9";
|
|
583
|
+
/** 默认圆角半径,单位为像素。 */
|
|
584
|
+
readonly borderRadius: 6;
|
|
585
|
+
/** 默认控件高度,单位为像素。 */
|
|
586
|
+
readonly controlHeight: 32;
|
|
587
|
+
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
588
|
+
readonly spacing: 8;
|
|
589
|
+
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
590
|
+
readonly fontSize: 13;
|
|
591
|
+
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
|
592
|
+
readonly fontSizeSmall: 13;
|
|
593
|
+
/** 大号文字尺寸,单位为像素。 */
|
|
594
|
+
readonly fontSizeLarge: 18;
|
|
595
|
+
};
|
|
596
|
+
/** 将亮色或暗色主题应用到指定元素;省略目标时应用到文档根节点。 */
|
|
597
|
+
declare function applySiaTheme(mode: SiaThemeMode, target?: HTMLElement): void;
|
|
598
|
+
|
|
563
599
|
/** 窗口控制操作名称。 */
|
|
564
600
|
type WindowAction = "start-dragging" | "minimize" | "toggle-maximize" | "close";
|
|
565
601
|
/** 窗口控制按钮可执行的操作。 */
|
|
@@ -621,6 +657,12 @@ interface WindowControlsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
621
657
|
}
|
|
622
658
|
/** 窗口标题栏的属性配置。 */
|
|
623
659
|
interface WindowTitleBarProps extends HTMLAttributes<HTMLElement> {
|
|
660
|
+
/** 是否在窗口控制组前显示浅色/深色切换按钮,默认 true;不受 actionsAlign 和 controls 影响。 */
|
|
661
|
+
showThemeSwitch?: boolean;
|
|
662
|
+
/** 当前主题的受控值;传入后点击仅调用 onThemeChange,由宿主更新此值并应用主题。省略时读取当前文档根节点的 data-sia-theme,未设置时为 light,点击自动切换文档主题。 */
|
|
663
|
+
theme?: SiaThemeMode;
|
|
664
|
+
/** 点击主题按钮时同步返回目标主题 light 或 dark;非受控模式在应用文档主题后调用,受控模式需由宿主回填 theme 并应用主题;外部主题变化不触发此回调。 */
|
|
665
|
+
onThemeChange?: (theme: SiaThemeMode) => void;
|
|
624
666
|
/** 标题前的内容区域。 */
|
|
625
667
|
leading?: ReactNode;
|
|
626
668
|
/** 附加的操作按钮区域。 */
|
|
@@ -657,8 +699,8 @@ interface WindowTitleBarProps extends HTMLAttributes<HTMLElement> {
|
|
|
657
699
|
declare function WindowFrame({ titleBar, textSelectable, className, children, ...props }: WindowFrameProps): react.JSX.Element;
|
|
658
700
|
/** 窗口控制按钮组件,采用横线、单方框/叠放方框及叉号表示最小化、最大化/还原和关闭;实际窗口操作由 onAction 交给宿主执行。 */
|
|
659
701
|
declare function WindowControls({ maximized, showMinimize, showMaximize, showClose, disabledActions, labels, onAction, className, ...props }: WindowControlsProps): react.JSX.Element;
|
|
660
|
-
/**
|
|
661
|
-
declare function WindowTitleBar({ leading, actions, actionsAlign, controls, maximized, draggable, disabledActions, controlLabels, onWindowAction, className, children, onMouseDown, ...props }: WindowTitleBarProps): react.JSX.Element;
|
|
702
|
+
/** 窗口标题栏,默认在右侧显示浅色/深色主题切换入口;支持主题受控接入与宿主窗口操作。 */
|
|
703
|
+
declare function WindowTitleBar({ showThemeSwitch, theme, onThemeChange, leading, actions, actionsAlign, controls, maximized, draggable, disabledActions, controlLabels, onWindowAction, className, children, onMouseDown, ...props }: WindowTitleBarProps): react.JSX.Element;
|
|
662
704
|
|
|
663
705
|
/** 抽屉的位置类型。 */
|
|
664
706
|
type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
@@ -671,8 +713,12 @@ interface DrawerPushConfig {
|
|
|
671
713
|
type DrawerPush = boolean | DrawerPushConfig;
|
|
672
714
|
/** 抽屉的属性配置。 */
|
|
673
715
|
interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
674
|
-
/**
|
|
716
|
+
/** 是否显示抽屉;打开为 320ms 弹性滑入,关闭为 180ms 无回弹滑出,结束后卸载。快速切换从当前画面接续,系统减少动态效果时直接切换。 */
|
|
675
717
|
open: boolean;
|
|
718
|
+
/** 是否在入场完成后才挂载正文,默认 false,立即挂载;设为 true 时等待入场完成。关闭时正文卸载并由等高骨架占位,随外壳完成退场。仅延后子组件挂载,不会延后父组件已执行的数据计算。 */
|
|
719
|
+
deferContent?: boolean;
|
|
720
|
+
/** 入场等待及关闭退场期间的正文占位,未传时入场显示两列六行静态骨架,关闭时按已显示的可见控件和文字行生成近似布局骨架(最多 80 块),尚未挂载正文时沿用入场骨架;占位阶段裁剪溢出且不显示滚动条,正文就绪后恢复滚动。配合固定高度可避免尺寸变化,入场时仅 deferContent=true 生效,关闭时始终生效;传 null 可关闭占位内容。 */
|
|
721
|
+
loadingFallback?: ReactNode;
|
|
676
722
|
/** 标题内容,可传入文本或 React 节点。 */
|
|
677
723
|
title?: ReactNode;
|
|
678
724
|
/** 抽屉主体内容;溢出时默认使用不占布局空间的浮动滚动条,标题及底部操作区保持固定。 */
|
|
@@ -721,7 +767,7 @@ interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
|
721
767
|
onClose?: () => void;
|
|
722
768
|
/** 打开状态改变时触发,参数为新的打开状态。 */
|
|
723
769
|
onOpenChange?: (open: boolean) => void;
|
|
724
|
-
/**
|
|
770
|
+
/** 真实展开动画完成且正文已提交后触发;deferContent=true 时等待延后正文挂载,快速关闭会取消尚未完成的展开回调。 */
|
|
725
771
|
afterOpen?: () => void;
|
|
726
772
|
/** 关闭动画完成且面板已隐藏后触发。 */
|
|
727
773
|
afterClose?: () => void;
|
|
@@ -730,7 +776,7 @@ interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
|
730
776
|
interface DrawerOpenConfig extends Omit<DrawerProps, "open"> {
|
|
731
777
|
}
|
|
732
778
|
declare function openDrawer(config: DrawerOpenConfig): OverlayApiHandle<DrawerOpenConfig>;
|
|
733
|
-
/**
|
|
779
|
+
/** 从屏幕边缘弹性回弹展开的抽屉;主体默认使用浮动滚动条,支持四个方向、嵌套推移、重正文延后挂载及静态 API。 */
|
|
734
780
|
declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>> & {
|
|
735
781
|
/** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
|
|
736
782
|
open: typeof openDrawer;
|
|
@@ -758,7 +804,7 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"
|
|
|
758
804
|
/** 状态变化时返回最新布尔值 */
|
|
759
805
|
onCheckedChange?: (checked: boolean) => void;
|
|
760
806
|
}
|
|
761
|
-
/**
|
|
807
|
+
/** 开关组件;标准样式在深色主题关闭时使用 #333335 轨道与 #8b90a0 圆球,开启时使用主题色轨道与白色圆球。滑块以 220ms 位移回弹切换,按下时标准圆球等比例放大至 1.35 倍,分段滑块为 1.16 倍,松开后恢复;禁用时不响应按压,系统减少动态效果时直接更新。 */
|
|
762
808
|
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
763
809
|
/** 表单字段路径;字符串表示顶层字段,数组表示嵌套字段。 */
|
|
764
810
|
type NamePath = string | number | readonly (string | number)[];
|
|
@@ -1033,7 +1079,7 @@ interface CheckboxGroupProps {
|
|
|
1033
1079
|
onChange?: (values: readonly CheckboxValue[]) => void;
|
|
1034
1080
|
}
|
|
1035
1081
|
declare function CheckboxGroup({ size: sizeProp, shape, columns, direction, gap, value, defaultValue, options, disabled, name, className, children, onChange, }: CheckboxGroupProps): react.JSX.Element;
|
|
1036
|
-
/**
|
|
1082
|
+
/** 复选框组件;有效点击以 360ms 等比缩放图形并回弹,标签文字保持原比例,勾选与回调立即更新。支持方形、圆形及半选,禁用或系统减少动态效果时跳过回弹。 */
|
|
1037
1083
|
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>> & {
|
|
1038
1084
|
/** 组合多个子项并统一管理布局或选择状态。 */
|
|
1039
1085
|
Group: typeof CheckboxGroup;
|
|
@@ -1077,7 +1123,7 @@ interface RadioGroupProps {
|
|
|
1077
1123
|
*/
|
|
1078
1124
|
optionType?: "default" | "button";
|
|
1079
1125
|
/**
|
|
1080
|
-
*
|
|
1126
|
+
* 按钮选中样式:outline 使用描边及320ms 点击回弹;solid 使用主题色实心背景,选项切换时以 280ms 液体轮廓经沙漏细颈流入目标项并铺满,文字不缩放。双向等时长,连续切换接续当前轮廓;选择值和回调立即更新,首次显示、尺寸变化、禁用项及减少动态效果直接对齐。
|
|
1081
1127
|
* @defaultValue "outline"
|
|
1082
1128
|
*/
|
|
1083
1129
|
buttonStyle?: "outline" | "solid";
|
|
@@ -1097,11 +1143,11 @@ interface RadioGroupProps {
|
|
|
1097
1143
|
}
|
|
1098
1144
|
declare function RadioButton(props: RadioProps): react.JSX.Element;
|
|
1099
1145
|
declare function RadioGroup({ size: sizeProp, value, defaultValue, options, optionType, buttonStyle, disabled, name, className, children, onChange, }: RadioGroupProps): react.JSX.Element;
|
|
1100
|
-
/**
|
|
1146
|
+
/** 单选框组件;普通形态点击以 360ms 等比缩放图形并回弹,描边按钮使用较小幅度;实心按钮分组以 280ms 液体沙漏形变转移选中背景。值和回调立即更新,禁用及减少动态效果时跳过动效。 */
|
|
1101
1147
|
declare const Radio: react.ForwardRefExoticComponent<RadioProps & {
|
|
1102
1148
|
button?: boolean;
|
|
1103
1149
|
} & react.RefAttributes<HTMLInputElement>> & {
|
|
1104
|
-
/**
|
|
1150
|
+
/** 按钮形态单选项;放在 Radio.Group 内共享值与 buttonStyle,实心样式切换时由分组背景完成 280ms 液体沙漏形变。 */
|
|
1105
1151
|
Button: typeof RadioButton;
|
|
1106
1152
|
/** 组合多个子项并统一管理布局或选择状态。 */
|
|
1107
1153
|
Group: typeof RadioGroup;
|
|
@@ -2942,7 +2988,7 @@ interface TableColumnSettingApi {
|
|
|
2942
2988
|
/** 应用传入的配置;是否持久化由方法参数或插件选项控制。 */
|
|
2943
2989
|
apply: (settings: readonly TableColumnSettingItem[]) => void;
|
|
2944
2990
|
}
|
|
2945
|
-
/** 创建表格列设置和持久化插件。将返回值加入 Table 的 plugins
|
|
2991
|
+
/** 创建表格列设置和持久化插件。将返回值加入 Table 的 plugins 后生效;序号和勾选附加列不显示在设置中,不参与业务列排序、显隐、固定位置与宽度配置,旧存储中的附加列配置会被忽略。动态分组展开时自动补齐新叶子列,收起时保留子列设置供再次展开恢复。面板草稿在父级重渲染、聚焦、滚动或尺寸变化时保留;重新打开或外部配置实际变化时同步保存值。 */
|
|
2946
2992
|
declare function createColumnSettingPlugin<T extends Record<string, unknown>>(options?: TableColumnSettingPluginOptions<T>): TablePlugin<T, ColumnSettingState, TableColumnSettingApi>;
|
|
2947
2993
|
/** 创建使用 localStorage 持久化表格设置的适配器,按模块及业务标识隔离配置。 */
|
|
2948
2994
|
declare function createLocalStorageTableSettingsAdapter(prefix?: string): TableSettingsAdapter;
|
|
@@ -3132,55 +3178,6 @@ interface ThemeSwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
3132
3178
|
/** 主题切换组件。 */
|
|
3133
3179
|
declare const ThemeSwitch: react.ForwardRefExoticComponent<ThemeSwitchProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3134
3180
|
|
|
3135
|
-
/** 浮动滚动条接入组件的属性配置。 */
|
|
3136
|
-
interface FloatingScrollbarProviderProps {
|
|
3137
|
-
/**
|
|
3138
|
-
* 是否禁用交互。
|
|
3139
|
-
* @defaultValue false
|
|
3140
|
-
*/
|
|
3141
|
-
disabled?: boolean;
|
|
3142
|
-
/** 仅接管指定容器;不传时接管页面中的滚动容器。 */
|
|
3143
|
-
targetRef?: RefObject<HTMLElement | null>;
|
|
3144
|
-
}
|
|
3145
|
-
/** 为页面或指定容器接入浮动滚动条;悬停、滚动或拖动时显示,离开且停止交互后隐藏,不占用布局宽度。轨道保留滚动容器的交互归属,供菜单判断内部操作;布局变化重新发现容器,定尺寸脱离文档流元素的定位变化仅复核相关子树与祖先。 */
|
|
3146
|
-
declare function FloatingScrollbarProvider({ disabled, targetRef }: FloatingScrollbarProviderProps): null;
|
|
3147
|
-
|
|
3148
|
-
/** SiaTheme的模式类型。 */
|
|
3149
|
-
type SiaThemeMode = "light" | "dark";
|
|
3150
|
-
/** 框架主题令牌集合。 */
|
|
3151
|
-
declare const SIA_THEME: {
|
|
3152
|
-
/** 主色。 */
|
|
3153
|
-
readonly colorPrimary: "#1677ff";
|
|
3154
|
-
/** 主色的悬停色。 */
|
|
3155
|
-
readonly colorPrimaryHover: "#4096ff";
|
|
3156
|
-
/** 主色的按下色。 */
|
|
3157
|
-
readonly colorPrimaryActive: "#0958d9";
|
|
3158
|
-
/** 主要文本颜色。 */
|
|
3159
|
-
readonly colorText: "#1f1f1f";
|
|
3160
|
-
/** 次要文本颜色。 */
|
|
3161
|
-
readonly colorTextSecondary: "#666666";
|
|
3162
|
-
/** 页面背景颜色。 */
|
|
3163
|
-
readonly colorBackground: "#f5f7fa";
|
|
3164
|
-
/** 组件表面颜色。 */
|
|
3165
|
-
readonly colorSurface: "#ffffff";
|
|
3166
|
-
/** 默认边框颜色。 */
|
|
3167
|
-
readonly colorBorder: "#d9d9d9";
|
|
3168
|
-
/** 默认圆角半径,单位为像素。 */
|
|
3169
|
-
readonly borderRadius: 6;
|
|
3170
|
-
/** 默认控件高度,单位为像素。 */
|
|
3171
|
-
readonly controlHeight: 32;
|
|
3172
|
-
/** 默认布局间距为 8 像素,对应 --sia-spacing;业务可通过容器或组件上的同名 CSS 变量覆盖。 */
|
|
3173
|
-
readonly spacing: 8;
|
|
3174
|
-
/** 默认基础字号为 13 像素,对应 --sia-font-size;业务可通过 CSS 变量覆盖。 */
|
|
3175
|
-
readonly fontSize: 13;
|
|
3176
|
-
/** 默认小号文字尺寸为 13 像素,对应 --sia-font-size-small;业务可通过 CSS 变量覆盖。 */
|
|
3177
|
-
readonly fontSizeSmall: 13;
|
|
3178
|
-
/** 大号文字尺寸,单位为像素。 */
|
|
3179
|
-
readonly fontSizeLarge: 18;
|
|
3180
|
-
};
|
|
3181
|
-
/** 将亮色或暗色主题应用到指定元素;省略目标时应用到文档根节点。 */
|
|
3182
|
-
declare function applySiaTheme(mode: SiaThemeMode, target?: HTMLElement): void;
|
|
3183
|
-
|
|
3184
3181
|
/** Selection的值类型。 */
|
|
3185
3182
|
type SelectionValue = string | number;
|
|
3186
3183
|
/** Selection的候选项定义。 */
|
|
@@ -3204,7 +3201,7 @@ interface SelectionOption {
|
|
|
3204
3201
|
interface SelectionPanelProps {
|
|
3205
3202
|
/** 可供用户选择的候选项列表。 */
|
|
3206
3203
|
options: readonly SelectionOption[];
|
|
3207
|
-
/**
|
|
3204
|
+
/** 当前已选值,需在 onChange 中同步更新;未匹配 options 的空字符串或纯空格不计入选择,数字 0 和显式空值选项仍有效。 */
|
|
3208
3205
|
value: readonly SelectionValue[];
|
|
3209
3206
|
/** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
|
|
3210
3207
|
onChange: (values: SelectionValue[]) => void;
|
|
@@ -3239,7 +3236,7 @@ interface SelectionPanelProps {
|
|
|
3239
3236
|
*/
|
|
3240
3237
|
showActions?: boolean;
|
|
3241
3238
|
/**
|
|
3242
|
-
* 是否将不在 options
|
|
3239
|
+
* 是否将不在 options 中的已选值作为自定义选项展示;空字符串和纯空格不会生成自定义选项。
|
|
3243
3240
|
* @defaultValue true
|
|
3244
3241
|
*/
|
|
3245
3242
|
includeUnknownValues?: boolean;
|
|
@@ -3279,15 +3276,15 @@ interface SelectionPanelProps {
|
|
|
3279
3276
|
autoFocusSearch?: boolean;
|
|
3280
3277
|
}
|
|
3281
3278
|
/** 可嵌入下拉或弹窗的分组选择面板,长列表按行虚拟化。 */
|
|
3282
|
-
declare function SelectionPanel({ options, value, onChange, multiple, allowDeselect, disabled, loading, showSearch, showActions, includeUnknownValues, searchValue, onSearch, selectedOnly, showValue, displayField, columns, maxHeight, autoFocusSearch, groupCheckable }: SelectionPanelProps): react.JSX.Element;
|
|
3279
|
+
declare function SelectionPanel({ options, value: rawValue, onChange, multiple, allowDeselect, disabled, loading, showSearch, showActions, includeUnknownValues, searchValue, onSearch, selectedOnly, showValue, displayField, columns, maxHeight, autoFocusSearch, groupCheckable }: SelectionPanelProps): react.JSX.Element;
|
|
3283
3280
|
|
|
3284
3281
|
/** 输入选择组合控件的属性配置。 */
|
|
3285
3282
|
interface InputSelectProps {
|
|
3286
3283
|
/** 可供用户选择的候选项列表。 */
|
|
3287
3284
|
options: readonly SelectionOption[];
|
|
3288
|
-
/**
|
|
3285
|
+
/** 当前值;受控时需在 onChange 中同步更新。null 表示未选择;未匹配 options 的空字符串或纯空格不计入选择,数字 0 和显式空值选项仍有效。 */
|
|
3289
3286
|
value?: SelectionValue | readonly SelectionValue[] | null;
|
|
3290
|
-
/**
|
|
3287
|
+
/** 非受控模式的初始值,仅在初始化时使用;未匹配 options 的空字符串或纯空格按未选择处理,保留数字 0 和显式空值选项。 */
|
|
3291
3288
|
defaultValue?: SelectionValue | readonly SelectionValue[];
|
|
3292
3289
|
/** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
|
|
3293
3290
|
onChange?: (value: SelectionValue | SelectionValue[] | undefined) => void;
|
|
@@ -3367,7 +3364,7 @@ interface InputSelectProps {
|
|
|
3367
3364
|
/** 打开状态改变时触发,参数为新的打开状态。 */
|
|
3368
3365
|
onOpenChange?: (open: boolean) => void;
|
|
3369
3366
|
}
|
|
3370
|
-
/**
|
|
3367
|
+
/** 输入选择组合控件;下拉面板背景与文字跟随当前主题,支持直接输入及从候选项选择。 */
|
|
3371
3368
|
declare const InputSelect: react.ForwardRefExoticComponent<InputSelectProps & react.RefAttributes<HTMLInputElement>>;
|
|
3372
3369
|
|
|
3373
3370
|
/** 查询区中的一个字段,复用 Form.Item 绑定能力并增加布局宽度配置。 */
|
|
@@ -3438,7 +3435,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3438
3435
|
* @defaultValue true
|
|
3439
3436
|
*/
|
|
3440
3437
|
collapsible?: boolean;
|
|
3441
|
-
/** 受控收起状态,需在 onCollapsedChange
|
|
3438
|
+
/** 受控收起状态,需在 onCollapsedChange 中更新;全部字段能单行显示时不执行收起。展开/收起共用 240ms 高度及字段过渡,退场字段立即停止交互、结束后隐藏,保留挂载和值;底部快捷标签始终保留。最多对前 24 个字段和操作区建立独立位移动画,减少动态效果时直接切换。 */
|
|
3442
3439
|
collapsed?: boolean;
|
|
3443
3440
|
/**
|
|
3444
3441
|
* 非受控模式的初始收起状态;显式 true/false 分别指定收起/展开。未指定且没有云端设置或用户手动切换时,按可见查询字段的实际展开行数自动决定:达到 3 行收起,少于 3 行展开;不计操作按钮、快捷查询或设置隐藏的字段,容器宽度变化后重新计算。
|
|
@@ -3548,4 +3545,4 @@ interface NumberRangeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChan
|
|
|
3548
3545
|
/** 日期区间风格的双数字输入框,使用波浪线分隔;可直接绑定 Form.Item。 */
|
|
3549
3546
|
declare const NumberRange: react.ForwardRefExoticComponent<NumberRangeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3550
3547
|
|
|
3551
|
-
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, AutoSizer, type AutoSizerProps, type AutoSizerSize, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, CursorPreview, type CursorPreviewFrame, type CursorPreviewProps, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingPanel, type FloatingPanelProps,
|
|
3548
|
+
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, AutoSizer, type AutoSizerProps, type AutoSizerSize, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, CursorPreview, type CursorPreviewFrame, type CursorPreviewProps, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingPanel, type FloatingPanelProps, Form, type FormErrorField, type FormFieldData, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormFieldSetting, type QueryFormProps, type QueryFormSearchInfo, type QueryFormSettingsConfig, type QueryFormSettingsSnapshot, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, type SortableKey, SortableList, type SortableListProps, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellFocusOptions, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, type TableWorksheetApi, type TableWorksheetChange, type TableWorksheetHistory, type TableWorksheetOperation, type TableWorksheetPluginOptions, type TableWorksheetReason, type TableWorksheetValueContext, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, createWorksheetPlugin, openSelectModal, useForm };
|