@sia.soul/sia-react-ui 0.1.23 → 0.1.25

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.
Files changed (42) hide show
  1. package/dist/{Select-BoVx-D0D.d.ts → Select-O_yY51vc.d.ts} +4 -2
  2. package/dist/{Select-BO3VyE2n.d.cts → Select-W_xpkpOW.d.cts} +4 -2
  3. package/dist/chart.cjs +1401 -1160
  4. package/dist/chart.css +21 -0
  5. package/dist/chart.js +4 -4
  6. package/dist/{chunk-KLI65JVD.js → chunk-27ZYAKII.js} +68 -186
  7. package/dist/{chunk-TZGUBGA4.js → chunk-IYNS423D.js} +4 -3
  8. package/dist/{chunk-GM47DAAN.js → chunk-IYO2JSGQ.js} +8 -7
  9. package/dist/{chunk-QJ4OQNQ4.js → chunk-PXHBIRQW.js} +4 -3
  10. package/dist/{chunk-VX2JECOU.js → chunk-QCBKT5FV.js} +20 -16
  11. package/dist/chunk-RAO3JHDL.js +284 -0
  12. package/dist/{chunk-RWGSZW32.js → chunk-RWODH2LW.js} +7 -6
  13. package/dist/{chunk-OKP4DIQH.js → chunk-TZROBD65.js} +29 -26
  14. package/dist/{chunk-NPB33IXJ.js → chunk-W52CNNWW.js} +349 -278
  15. package/dist/{chunk-YT6E3X2K.js → chunk-YQDHCORW.js} +4 -3
  16. package/dist/{core-Cqgl6Z7h.d.ts → core-BOzLwiXG.d.ts} +44 -5
  17. package/dist/{core-DF0pknX6.d.cts → core-tbb9ZiBY.d.cts} +44 -5
  18. package/dist/core.cjs +1637 -1443
  19. package/dist/core.css +53 -0
  20. package/dist/core.d.cts +2 -2
  21. package/dist/core.d.ts +2 -2
  22. package/dist/core.js +8 -6
  23. package/dist/index.cjs +3797 -3583
  24. package/dist/index.css +53 -0
  25. package/dist/index.d.cts +36 -17
  26. package/dist/index.d.ts +36 -17
  27. package/dist/index.js +104 -83
  28. package/dist/markdown-editor.cjs +269 -28
  29. package/dist/markdown-editor.css +20 -0
  30. package/dist/markdown-editor.js +2 -2
  31. package/dist/rich-text-editor.cjs +1156 -1031
  32. package/dist/rich-text-editor.css +20 -0
  33. package/dist/rich-text-editor.js +4 -4
  34. package/dist/{select-date-range-a6nzK7Wu.d.ts → select-date-range-BjqFUeU6.d.ts} +1 -1
  35. package/dist/{select-date-range-IOe6MMqu.d.cts → select-date-range-C9w8z3G8.d.cts} +1 -1
  36. package/dist/select-date-range.cjs +1188 -1059
  37. package/dist/select-date-range.css +20 -0
  38. package/dist/select-date-range.d.cts +2 -2
  39. package/dist/select-date-range.d.ts +2 -2
  40. package/dist/select-date-range.js +5 -5
  41. package/package.json +2 -2
  42. package/dist/chunk-3VJ4CZDQ.js +0 -43
package/dist/index.css CHANGED
@@ -2393,6 +2393,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
2393
2393
  padding-inline: 16px;
2394
2394
  }
2395
2395
  .sia-message {
2396
+ font-size: var(--sia-font-size, 16px);
2396
2397
  display: flex;
2397
2398
  align-items: center;
2398
2399
  gap: 9px;
@@ -4906,6 +4907,37 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4906
4907
  .sia-table-settings__loading {
4907
4908
  min-height: 160px;
4908
4909
  }
4910
+ .sia-toolbar {
4911
+ display: flex;
4912
+ align-items: center;
4913
+ position: relative;
4914
+ width: 100%;
4915
+ min-width: 0;
4916
+ gap: 4px;
4917
+ flex-wrap: nowrap;
4918
+ overflow: hidden;
4919
+ }
4920
+ .sia-toolbar__item {
4921
+ display: inline-flex;
4922
+ flex: 0 0 auto;
4923
+ width: max-content;
4924
+ white-space: nowrap;
4925
+ }
4926
+ .sia-toolbar__item--hidden {
4927
+ position: absolute;
4928
+ top: 0;
4929
+ left: 0;
4930
+ visibility: hidden;
4931
+ pointer-events: none;
4932
+ }
4933
+ .sia-table__toolbar > div:first-child {
4934
+ flex: 1;
4935
+ min-width: 0;
4936
+ }
4937
+ .sia-table__toolbar > div:last-child {
4938
+ flex-shrink: 0;
4939
+ flex-wrap: nowrap;
4940
+ }
4909
4941
 
4910
4942
  /* src/components-extra.css */
4911
4943
  .sia-flex {
@@ -9652,6 +9684,27 @@ button.sia-treemap__tile:focus-visible,
9652
9684
  color: var(--sia-color-text-secondary, #777);
9653
9685
  }
9654
9686
 
9687
+ /* src/title-tooltip.css */
9688
+ body > .sia-title-tooltip[data-sia-popup-layer] {
9689
+ position: fixed;
9690
+ z-index: 1800;
9691
+ display: block;
9692
+ box-sizing: border-box;
9693
+ width: max-content;
9694
+ max-width: min(320px, calc(100vw - 16px));
9695
+ max-height: calc(100vh - 16px);
9696
+ padding: 7px 10px;
9697
+ color: var(--sia-color-text, #1f2329);
9698
+ background: var(--sia-color-surface, #fff);
9699
+ border: 1px solid var(--sia-color-border, #d9d9d9);
9700
+ border-radius: var(--sia-radius, 6px);
9701
+ box-shadow: var(--sia-shadow-popup, 0 4px 16px rgb(0 0 0 / 12%));
9702
+ font: 400 13px/1.5 system-ui, sans-serif;
9703
+ pointer-events: none;
9704
+ overflow-wrap: anywhere;
9705
+ white-space: pre-wrap;
9706
+ }
9707
+
9655
9708
  /* src/breadcrumb.css */
9656
9709
  .sia-breadcrumb {
9657
9710
  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-BO3VyE2n.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-BO3VyE2n.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-IOe6MMqu.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-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
- /** 在选项名称下方显示 value,下拉与弹框模式均支持;不影响按 value 搜索 */
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
- /** 扩展控件数据,确认时作为第三个参数传出;可通过句柄 update({ extraValues }) 更新。 */
1691
+ /** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
1688
1692
  extraValues?: Record<string, unknown>;
1689
- /** 搜索框的占位提示文字。 */
1693
+ /** 搜索框的占位提示文字。
1694
+ * @defaultValue "搜索选项" */
1690
1695
  searchPlaceholder?: string;
1691
- /** 自定义搜索匹配函数,返回 true 时保留该选项。 */
1696
+ /** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
1692
1697
  filterOption?: SelectProps["filterOption"];
1693
- /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
1698
+ /** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
1694
1699
  onSearch?: SelectProps["onSearch"];
1695
- /** 确认后接收选中的值和对应选项;单选为单值,多选为数组。支持异步处理;返回 false 或抛出异常时保留弹框,允许重试。 */
1700
+ /** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
1696
1701
  onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
1697
1702
  }
1698
- /** 无需渲染 Select,直接打开选择弹框。取消不提交,确认支持异步处理及返回 false 阻止关闭。 */
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,15 @@ 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;
2124
+ /**
2125
+ * 是否显示序号列,默认从 1 开始;搭配分页插件时按页码连续编号,存在勾选列时放在其后。
2126
+ * 显式传入 createIndexPlugin 可自定义标题、宽度和起始编号,不会重复生成序号列;false 时禁用序号插件(包括显式传入的插件)。
2127
+ * @defaultValue true
2128
+ */
2129
+ showIndex?: boolean;
2111
2130
  /** 点击行时调用。 */
2112
2131
  onRowClick?: (record: T, index: number) => void;
2113
2132
  /** 双击行时调用。 */
@@ -2328,7 +2347,7 @@ interface TableCellSelectionApi<T> {
2328
2347
  /** 将当前选区转换为可复制文本。 */
2329
2348
  getCopyText: () => string;
2330
2349
  }
2331
- /** 创建表格单元格区域选择插件。将返回值加入 Table plugins 后生效。 */
2350
+ /** 创建表格单元格区域选择插件。Table 默认内置;点击表格空白处或表格外部时清除单元格选区,不改变行勾选状态。显式传入 plugins 可自定义选择和复制行为。 */
2332
2351
  declare function createCellSelectionPlugin<T extends Record<string, unknown>>(options?: TableCellSelectionPluginOptions<T>): TablePlugin<T, CellSelectionState, TableCellSelectionApi<T>>;
2333
2352
  /** TableRowSpan的插件配置。 */
2334
2353
  interface TableRowSpanPluginOptions<T> {
@@ -2526,7 +2545,7 @@ interface TableIndexPluginOptions {
2526
2545
  /** 序号列的起始编号。 */
2527
2546
  startIndex?: number;
2528
2547
  }
2529
- /** 创建表格序号列插件。将返回值加入 Table 的 plugins 后生效。 */
2548
+ /** 创建表格序号列插件。Table 默认内置;显式加入 plugins 可覆盖标题、宽度和起始编号,不重复加载。Table 的 showIndex=false 时禁用。 */
2530
2549
  declare function createIndexPlugin<T extends Record<string, unknown>>(options?: TableIndexPluginOptions): TablePlugin<T, undefined>;
2531
2550
  /** TableTree的插件配置。 */
2532
2551
  interface TableTreePluginOptions<T> {
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-BoVx-D0D.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-BoVx-D0D.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-a6nzK7Wu.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-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
- /** 在选项名称下方显示 value,下拉与弹框模式均支持;不影响按 value 搜索 */
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
- /** 扩展控件数据,确认时作为第三个参数传出;可通过句柄 update({ extraValues }) 更新。 */
1691
+ /** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
1688
1692
  extraValues?: Record<string, unknown>;
1689
- /** 搜索框的占位提示文字。 */
1693
+ /** 搜索框的占位提示文字。
1694
+ * @defaultValue "搜索选项" */
1690
1695
  searchPlaceholder?: string;
1691
- /** 自定义搜索匹配函数,返回 true 时保留该选项。 */
1696
+ /** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
1692
1697
  filterOption?: SelectProps["filterOption"];
1693
- /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
1698
+ /** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
1694
1699
  onSearch?: SelectProps["onSearch"];
1695
- /** 确认后接收选中的值和对应选项;单选为单值,多选为数组。支持异步处理;返回 false 或抛出异常时保留弹框,允许重试。 */
1700
+ /** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
1696
1701
  onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
1697
1702
  }
1698
- /** 无需渲染 Select,直接打开选择弹框。取消不提交,确认支持异步处理及返回 false 阻止关闭。 */
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,15 @@ 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;
2124
+ /**
2125
+ * 是否显示序号列,默认从 1 开始;搭配分页插件时按页码连续编号,存在勾选列时放在其后。
2126
+ * 显式传入 createIndexPlugin 可自定义标题、宽度和起始编号,不会重复生成序号列;false 时禁用序号插件(包括显式传入的插件)。
2127
+ * @defaultValue true
2128
+ */
2129
+ showIndex?: boolean;
2111
2130
  /** 点击行时调用。 */
2112
2131
  onRowClick?: (record: T, index: number) => void;
2113
2132
  /** 双击行时调用。 */
@@ -2328,7 +2347,7 @@ interface TableCellSelectionApi<T> {
2328
2347
  /** 将当前选区转换为可复制文本。 */
2329
2348
  getCopyText: () => string;
2330
2349
  }
2331
- /** 创建表格单元格区域选择插件。将返回值加入 Table plugins 后生效。 */
2350
+ /** 创建表格单元格区域选择插件。Table 默认内置;点击表格空白处或表格外部时清除单元格选区,不改变行勾选状态。显式传入 plugins 可自定义选择和复制行为。 */
2332
2351
  declare function createCellSelectionPlugin<T extends Record<string, unknown>>(options?: TableCellSelectionPluginOptions<T>): TablePlugin<T, CellSelectionState, TableCellSelectionApi<T>>;
2333
2352
  /** TableRowSpan的插件配置。 */
2334
2353
  interface TableRowSpanPluginOptions<T> {
@@ -2526,7 +2545,7 @@ interface TableIndexPluginOptions {
2526
2545
  /** 序号列的起始编号。 */
2527
2546
  startIndex?: number;
2528
2547
  }
2529
- /** 创建表格序号列插件。将返回值加入 Table 的 plugins 后生效。 */
2548
+ /** 创建表格序号列插件。Table 默认内置;显式加入 plugins 可覆盖标题、宽度和起始编号,不重复加载。Table 的 showIndex=false 时禁用。 */
2530
2549
  declare function createIndexPlugin<T extends Record<string, unknown>>(options?: TableIndexPluginOptions): TablePlugin<T, undefined>;
2531
2550
  /** TableTree的插件配置。 */
2532
2551
  interface TableTreePluginOptions<T> {