@sia.soul/sia-react-ui 0.1.23 → 0.1.24
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/{Select-BoVx-D0D.d.ts → Select-O_yY51vc.d.ts} +4 -2
- package/dist/{Select-BO3VyE2n.d.cts → Select-W_xpkpOW.d.cts} +4 -2
- package/dist/chart.cjs +1401 -1160
- package/dist/chart.css +21 -0
- package/dist/chart.js +4 -4
- package/dist/{chunk-VX2JECOU.js → chunk-6R7JY7IY.js} +20 -16
- package/dist/{chunk-TZGUBGA4.js → chunk-6WBABNAX.js} +4 -3
- package/dist/{chunk-OKP4DIQH.js → chunk-GUXAWU63.js} +29 -26
- package/dist/{chunk-QJ4OQNQ4.js → chunk-LA7O3PN4.js} +4 -3
- package/dist/{chunk-NPB33IXJ.js → chunk-LIYCU2GU.js} +349 -278
- package/dist/{chunk-KLI65JVD.js → chunk-LRPQ5FGE.js} +68 -186
- package/dist/chunk-NSSPGXNM.js +284 -0
- package/dist/{chunk-YT6E3X2K.js → chunk-OH6YILJW.js} +4 -3
- package/dist/{chunk-RWGSZW32.js → chunk-RGXVPS37.js} +7 -6
- package/dist/{chunk-GM47DAAN.js → chunk-T2QIW4OO.js} +8 -7
- package/dist/{core-Cqgl6Z7h.d.ts → core-BOzLwiXG.d.ts} +44 -5
- package/dist/{core-DF0pknX6.d.cts → core-tbb9ZiBY.d.cts} +44 -5
- package/dist/core.cjs +1637 -1443
- package/dist/core.css +52 -0
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +8 -6
- package/dist/index.cjs +3705 -3505
- package/dist/index.css +52 -0
- package/dist/index.d.cts +28 -15
- package/dist/index.d.ts +28 -15
- package/dist/index.js +90 -83
- package/dist/markdown-editor.cjs +269 -28
- package/dist/markdown-editor.css +20 -0
- package/dist/markdown-editor.js +2 -2
- package/dist/rich-text-editor.cjs +1156 -1031
- package/dist/rich-text-editor.css +20 -0
- package/dist/rich-text-editor.js +4 -4
- package/dist/{select-date-range-a6nzK7Wu.d.ts → select-date-range-BjqFUeU6.d.ts} +1 -1
- package/dist/{select-date-range-IOe6MMqu.d.cts → select-date-range-C9w8z3G8.d.cts} +1 -1
- package/dist/select-date-range.cjs +1188 -1059
- package/dist/select-date-range.css +20 -0
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +5 -5
- package/package.json +2 -2
- package/dist/chunk-3VJ4CZDQ.js +0 -43
package/dist/index.css
CHANGED
|
@@ -4906,6 +4906,37 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4906
4906
|
.sia-table-settings__loading {
|
|
4907
4907
|
min-height: 160px;
|
|
4908
4908
|
}
|
|
4909
|
+
.sia-toolbar {
|
|
4910
|
+
display: flex;
|
|
4911
|
+
align-items: center;
|
|
4912
|
+
position: relative;
|
|
4913
|
+
width: 100%;
|
|
4914
|
+
min-width: 0;
|
|
4915
|
+
gap: 4px;
|
|
4916
|
+
flex-wrap: nowrap;
|
|
4917
|
+
overflow: hidden;
|
|
4918
|
+
}
|
|
4919
|
+
.sia-toolbar__item {
|
|
4920
|
+
display: inline-flex;
|
|
4921
|
+
flex: 0 0 auto;
|
|
4922
|
+
width: max-content;
|
|
4923
|
+
white-space: nowrap;
|
|
4924
|
+
}
|
|
4925
|
+
.sia-toolbar__item--hidden {
|
|
4926
|
+
position: absolute;
|
|
4927
|
+
top: 0;
|
|
4928
|
+
left: 0;
|
|
4929
|
+
visibility: hidden;
|
|
4930
|
+
pointer-events: none;
|
|
4931
|
+
}
|
|
4932
|
+
.sia-table__toolbar > div:first-child {
|
|
4933
|
+
flex: 1;
|
|
4934
|
+
min-width: 0;
|
|
4935
|
+
}
|
|
4936
|
+
.sia-table__toolbar > div:last-child {
|
|
4937
|
+
flex-shrink: 0;
|
|
4938
|
+
flex-wrap: nowrap;
|
|
4939
|
+
}
|
|
4909
4940
|
|
|
4910
4941
|
/* src/components-extra.css */
|
|
4911
4942
|
.sia-flex {
|
|
@@ -9652,6 +9683,27 @@ button.sia-treemap__tile:focus-visible,
|
|
|
9652
9683
|
color: var(--sia-color-text-secondary, #777);
|
|
9653
9684
|
}
|
|
9654
9685
|
|
|
9686
|
+
/* src/title-tooltip.css */
|
|
9687
|
+
body > .sia-title-tooltip[data-sia-popup-layer] {
|
|
9688
|
+
position: fixed;
|
|
9689
|
+
z-index: 1800;
|
|
9690
|
+
display: block;
|
|
9691
|
+
box-sizing: border-box;
|
|
9692
|
+
width: max-content;
|
|
9693
|
+
max-width: min(320px, calc(100vw - 16px));
|
|
9694
|
+
max-height: calc(100vh - 16px);
|
|
9695
|
+
padding: 7px 10px;
|
|
9696
|
+
color: var(--sia-color-text, #1f2329);
|
|
9697
|
+
background: var(--sia-color-surface, #fff);
|
|
9698
|
+
border: 1px solid var(--sia-color-border, #d9d9d9);
|
|
9699
|
+
border-radius: var(--sia-radius, 6px);
|
|
9700
|
+
box-shadow: var(--sia-shadow-popup, 0 4px 16px rgb(0 0 0 / 12%));
|
|
9701
|
+
font: 400 13px/1.5 system-ui, sans-serif;
|
|
9702
|
+
pointer-events: none;
|
|
9703
|
+
overflow-wrap: anywhere;
|
|
9704
|
+
white-space: pre-wrap;
|
|
9705
|
+
}
|
|
9706
|
+
|
|
9655
9707
|
/* src/breadcrumb.css */
|
|
9656
9708
|
.sia-breadcrumb {
|
|
9657
9709
|
color: var(--sia-color-text-secondary);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-tbb9ZiBY.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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aG as Tooltip, aH as TooltipProps, aI as Tour, aJ as TourProps, aK as TourStep, aL as Tree, aM as TreeDropPosition, aN as TreeKey, aO as TreeNode, aP as TreeProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, a_ as UploadProps, a$ as UploadRequestOptions, b0 as Watermark, b1 as WatermarkFont, b2 as WatermarkProps, b3 as message, b4 as notification } from './core-tbb9ZiBY.cjs';
|
|
1
3
|
import * as react from 'react';
|
|
2
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-DF0pknX6.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 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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Tooltip, aE as TooltipProps, aF as Tour, aG as TourProps, aH as TourStep, aI as Tree, aJ as TreeDropPosition, aK as TreeKey, aL as TreeNode, aM as TreeProps, aN as Typography, aO as TypographyLinkProps, aP as TypographyProps, aQ as TypographyTitleProps, aR as TypographyType, aS as Upload, aT as UploadChangeInfo, aU as UploadDraggerProps, aV as UploadFile, aW as UploadFileStatus, aX as UploadProps, aY as UploadRequestOptions, aZ as Watermark, a_ as WatermarkFont, a$ as WatermarkProps, b0 as message, b1 as notification } from './core-DF0pknX6.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
|
-
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-
|
|
7
|
-
export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-
|
|
8
|
-
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-W_xpkpOW.cjs';
|
|
7
|
+
export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-W_xpkpOW.cjs';
|
|
8
|
+
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-C9w8z3G8.cjs';
|
|
9
9
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
|
|
10
10
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
|
|
11
11
|
import * as Monaco from 'monaco-editor';
|
|
@@ -1674,28 +1674,38 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1674
1674
|
options: readonly SelectOption[];
|
|
1675
1675
|
/** 弹框打开时的初始选中值;通过返回句柄 update({ value }) 可替换当前草稿。 */
|
|
1676
1676
|
value?: SelectChangeValue;
|
|
1677
|
-
/**
|
|
1677
|
+
/** 单选或多选模式;single 确认时返回单值,multiple 返回数组。
|
|
1678
|
+
* @defaultValue "single" */
|
|
1678
1679
|
mode?: SelectProps["mode"];
|
|
1679
|
-
/**
|
|
1680
|
+
/** 在选项名称下方另起一行显示 value;关闭此项仍可按 value 搜索。
|
|
1681
|
+
* @defaultValue false */
|
|
1680
1682
|
showValue?: boolean;
|
|
1681
|
-
/** 弹框选项每行列数;长文本单行省略。
|
|
1683
|
+
/** 弹框选项每行列数;长文本单行省略。
|
|
1684
|
+
* @defaultValue 3 */
|
|
1682
1685
|
columns?: number;
|
|
1683
|
-
/**
|
|
1686
|
+
/** 选项列表的最大可视高度,单位为像素;超出时在列表内滚动,不包含标题、搜索区和底部按钮。
|
|
1687
|
+
* @defaultValue 360 */
|
|
1684
1688
|
maxHeight?: number;
|
|
1685
1689
|
/** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
|
|
1686
1690
|
headerExtra?: ReactNode;
|
|
1687
|
-
/**
|
|
1691
|
+
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1688
1692
|
extraValues?: Record<string, unknown>;
|
|
1689
|
-
/** 搜索框的占位提示文字。
|
|
1693
|
+
/** 搜索框的占位提示文字。
|
|
1694
|
+
* @defaultValue "搜索选项" */
|
|
1690
1695
|
searchPlaceholder?: string;
|
|
1691
|
-
/**
|
|
1696
|
+
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
1692
1697
|
filterOption?: SelectProps["filterOption"];
|
|
1693
|
-
/**
|
|
1698
|
+
/** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
|
|
1694
1699
|
onSearch?: SelectProps["onSearch"];
|
|
1695
|
-
/**
|
|
1700
|
+
/** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
|
|
1696
1701
|
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1697
1702
|
}
|
|
1698
|
-
/**
|
|
1703
|
+
/**
|
|
1704
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px。
|
|
1705
|
+
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1706
|
+
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1707
|
+
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
|
1708
|
+
*/
|
|
1699
1709
|
declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
|
|
1700
1710
|
|
|
1701
1711
|
/** 矩形树图节点的种类。 */
|
|
@@ -2108,6 +2118,9 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2108
2118
|
stickyHeader?: boolean;
|
|
2109
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2110
2120
|
resizable?: boolean;
|
|
2121
|
+
/** 是否启用单元格选择;false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
|
+
* @defaultValue true */
|
|
2123
|
+
cellSelection?: boolean;
|
|
2111
2124
|
/** 点击行时调用。 */
|
|
2112
2125
|
onRowClick?: (record: T, index: number) => void;
|
|
2113
2126
|
/** 双击行时调用。 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-BOzLwiXG.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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aG as Tooltip, aH as TooltipProps, aI as Tour, aJ as TourProps, aK as TourStep, aL as Tree, aM as TreeDropPosition, aN as TreeKey, aO as TreeNode, aP as TreeProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, a_ as UploadProps, a$ as UploadRequestOptions, b0 as Watermark, b1 as WatermarkFont, b2 as WatermarkProps, b3 as message, b4 as notification } from './core-BOzLwiXG.js';
|
|
1
3
|
import * as react from 'react';
|
|
2
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-Cqgl6Z7h.js';
|
|
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 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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Tooltip, aE as TooltipProps, aF as Tour, aG as TourProps, aH as TourStep, aI as Tree, aJ as TreeDropPosition, aK as TreeKey, aL as TreeNode, aM as TreeProps, aN as Typography, aO as TypographyLinkProps, aP as TypographyProps, aQ as TypographyTitleProps, aR as TypographyType, aS as Upload, aT as UploadChangeInfo, aU as UploadDraggerProps, aV as UploadFile, aW as UploadFileStatus, aX as UploadProps, aY as UploadRequestOptions, aZ as Watermark, a_ as WatermarkFont, a$ as WatermarkProps, b0 as message, b1 as notification } from './core-Cqgl6Z7h.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
6
|
-
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-
|
|
7
|
-
export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-
|
|
8
|
-
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-O_yY51vc.js';
|
|
7
|
+
export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-O_yY51vc.js';
|
|
8
|
+
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-BjqFUeU6.js';
|
|
9
9
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
|
|
10
10
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
|
|
11
11
|
import * as Monaco from 'monaco-editor';
|
|
@@ -1674,28 +1674,38 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1674
1674
|
options: readonly SelectOption[];
|
|
1675
1675
|
/** 弹框打开时的初始选中值;通过返回句柄 update({ value }) 可替换当前草稿。 */
|
|
1676
1676
|
value?: SelectChangeValue;
|
|
1677
|
-
/**
|
|
1677
|
+
/** 单选或多选模式;single 确认时返回单值,multiple 返回数组。
|
|
1678
|
+
* @defaultValue "single" */
|
|
1678
1679
|
mode?: SelectProps["mode"];
|
|
1679
|
-
/**
|
|
1680
|
+
/** 在选项名称下方另起一行显示 value;关闭此项仍可按 value 搜索。
|
|
1681
|
+
* @defaultValue false */
|
|
1680
1682
|
showValue?: boolean;
|
|
1681
|
-
/** 弹框选项每行列数;长文本单行省略。
|
|
1683
|
+
/** 弹框选项每行列数;长文本单行省略。
|
|
1684
|
+
* @defaultValue 3 */
|
|
1682
1685
|
columns?: number;
|
|
1683
|
-
/**
|
|
1686
|
+
/** 选项列表的最大可视高度,单位为像素;超出时在列表内滚动,不包含标题、搜索区和底部按钮。
|
|
1687
|
+
* @defaultValue 360 */
|
|
1684
1688
|
maxHeight?: number;
|
|
1685
1689
|
/** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
|
|
1686
1690
|
headerExtra?: ReactNode;
|
|
1687
|
-
/**
|
|
1691
|
+
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1688
1692
|
extraValues?: Record<string, unknown>;
|
|
1689
|
-
/** 搜索框的占位提示文字。
|
|
1693
|
+
/** 搜索框的占位提示文字。
|
|
1694
|
+
* @defaultValue "搜索选项" */
|
|
1690
1695
|
searchPlaceholder?: string;
|
|
1691
|
-
/**
|
|
1696
|
+
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
1692
1697
|
filterOption?: SelectProps["filterOption"];
|
|
1693
|
-
/**
|
|
1698
|
+
/** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
|
|
1694
1699
|
onSearch?: SelectProps["onSearch"];
|
|
1695
|
-
/**
|
|
1700
|
+
/** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
|
|
1696
1701
|
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1697
1702
|
}
|
|
1698
|
-
/**
|
|
1703
|
+
/**
|
|
1704
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px。
|
|
1705
|
+
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1706
|
+
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1707
|
+
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
|
1708
|
+
*/
|
|
1699
1709
|
declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
|
|
1700
1710
|
|
|
1701
1711
|
/** 矩形树图节点的种类。 */
|
|
@@ -2108,6 +2118,9 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2108
2118
|
stickyHeader?: boolean;
|
|
2109
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2110
2120
|
resizable?: boolean;
|
|
2121
|
+
/** 是否启用单元格选择;false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
|
+
* @defaultValue true */
|
|
2123
|
+
cellSelection?: boolean;
|
|
2111
2124
|
/** 点击行时调用。 */
|
|
2112
2125
|
onRowClick?: (record: T, index: number) => void;
|
|
2113
2126
|
/** 双击行时调用。 */
|