@sia.soul/sia-react-ui 0.1.24 → 0.1.26
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-O_yY51vc.d.ts → Select-CCrPqULn.d.ts} +1 -1
- package/dist/{Select-W_xpkpOW.d.cts → Select-YJbT-MF1.d.cts} +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.js +4 -4
- package/dist/{chunk-6R7JY7IY.js → chunk-5MW3NE2V.js} +227 -202
- package/dist/{chunk-T2QIW4OO.js → chunk-IQU4GGLM.js} +11 -5
- package/dist/{chunk-6WBABNAX.js → chunk-IYNS423D.js} +1 -1
- package/dist/{chunk-RGXVPS37.js → chunk-LK56NX5F.js} +3 -3
- package/dist/{chunk-LIYCU2GU.js → chunk-NAOV53NK.js} +5 -5
- package/dist/{chunk-LA7O3PN4.js → chunk-PXHBIRQW.js} +1 -1
- package/dist/{chunk-NSSPGXNM.js → chunk-RAO3JHDL.js} +1 -1
- package/dist/{chunk-GUXAWU63.js → chunk-TZROBD65.js} +3 -3
- package/dist/{chunk-LRPQ5FGE.js → chunk-YF2I6SDB.js} +3 -3
- package/dist/{chunk-OH6YILJW.js → chunk-YQDHCORW.js} +1 -1
- package/dist/{core-tbb9ZiBY.d.cts → core-BM-wnJRa.d.cts} +3 -3
- package/dist/{core-BOzLwiXG.d.ts → core-CLqv6btD.d.ts} +3 -3
- package/dist/core.cjs +270 -243
- package/dist/core.css +10 -5
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +6 -6
- package/dist/index.cjs +296 -252
- package/dist/index.css +10 -5
- package/dist/index.d.cts +20 -14
- package/dist/index.d.ts +20 -14
- package/dist/index.js +29 -15
- package/dist/markdown-editor.cjs +1 -1
- package/dist/markdown-editor.js +2 -2
- package/dist/rich-text-editor.cjs +2 -2
- package/dist/rich-text-editor.js +4 -4
- package/dist/{select-date-range-C9w8z3G8.d.cts → select-date-range-CtA-B8DB.d.cts} +1 -1
- package/dist/{select-date-range-BjqFUeU6.d.ts → select-date-range-D9W_mmMq.d.ts} +1 -1
- package/dist/select-date-range.cjs +706 -674
- 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 +1 -1
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: calc(var(--sia-font-size, 16px) - 1px);
|
|
2396
2397
|
display: flex;
|
|
2397
2398
|
align-items: center;
|
|
2398
2399
|
gap: 9px;
|
|
@@ -6223,7 +6224,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6223
6224
|
width: max-content;
|
|
6224
6225
|
overflow: hidden;
|
|
6225
6226
|
color: var(--sia-color-text);
|
|
6226
|
-
font-size: var(--sia-font-size);
|
|
6227
|
+
font-size: calc(var(--sia-font-size) + 1px);
|
|
6227
6228
|
background: var(--sia-color-surface);
|
|
6228
6229
|
border: 1px solid var(--sia-color-border);
|
|
6229
6230
|
border-radius: 10px;
|
|
@@ -6235,7 +6236,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6235
6236
|
}
|
|
6236
6237
|
.sia-time-panel .sia-date-panel__time > strong {
|
|
6237
6238
|
font-variant-numeric: tabular-nums;
|
|
6238
|
-
font-size:
|
|
6239
|
+
font-size: 16px;
|
|
6239
6240
|
}
|
|
6240
6241
|
.sia-time-panel .sia-date-panel__time-columns {
|
|
6241
6242
|
grid-auto-columns: 64px;
|
|
@@ -6398,6 +6399,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6398
6399
|
}
|
|
6399
6400
|
}
|
|
6400
6401
|
.sia-date-panel {
|
|
6402
|
+
font-size: calc(1em + 1px);
|
|
6401
6403
|
width: 282px;
|
|
6402
6404
|
max-width: calc(100vw - 16px);
|
|
6403
6405
|
max-height: min(640px, calc(100vh - 16px));
|
|
@@ -6501,7 +6503,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6501
6503
|
color: var(--sia-color-primary-text);
|
|
6502
6504
|
background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
|
|
6503
6505
|
border-radius: 4px;
|
|
6504
|
-
font-size:
|
|
6506
|
+
font-size: 12px;
|
|
6505
6507
|
font-weight: 600;
|
|
6506
6508
|
}
|
|
6507
6509
|
.sia-date-panel__nav {
|
|
@@ -6644,9 +6646,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
6644
6646
|
}
|
|
6645
6647
|
.sia-date-panel__time-columns > div {
|
|
6646
6648
|
height: 100%;
|
|
6647
|
-
overflow:
|
|
6649
|
+
overflow: auto;
|
|
6648
6650
|
padding: 4px;
|
|
6649
|
-
scrollbar-width: thin;
|
|
6650
6651
|
}
|
|
6651
6652
|
.sia-date-panel__time-columns > div + div {
|
|
6652
6653
|
border-inline-start: 1px solid var(--sia-color-border);
|
|
@@ -9682,6 +9683,10 @@ button.sia-treemap__tile:focus-visible,
|
|
|
9682
9683
|
text-align: center;
|
|
9683
9684
|
color: var(--sia-color-text-secondary, #777);
|
|
9684
9685
|
}
|
|
9686
|
+
.sia-date-panel button,
|
|
9687
|
+
.sia-time-panel button {
|
|
9688
|
+
font: inherit;
|
|
9689
|
+
}
|
|
9685
9690
|
|
|
9686
9691
|
/* src/title-tooltip.css */
|
|
9687
9692
|
body > .sia-title-tooltip[data-sia-popup-layer] {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 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-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-BM-wnJRa.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-BM-wnJRa.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';
|
|
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-YJbT-MF1.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-YJbT-MF1.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-CtA-B8DB.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';
|
|
@@ -163,8 +163,8 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
|
|
|
163
163
|
*/
|
|
164
164
|
showSearch?: boolean;
|
|
165
165
|
/**
|
|
166
|
-
|
|
167
|
-
* @defaultValue
|
|
166
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
167
|
+
* @defaultValue true
|
|
168
168
|
*/
|
|
169
169
|
allowClear?: boolean;
|
|
170
170
|
/**
|
|
@@ -1093,8 +1093,8 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
|
|
|
1093
1093
|
*/
|
|
1094
1094
|
disabled?: boolean;
|
|
1095
1095
|
/**
|
|
1096
|
-
|
|
1097
|
-
* @defaultValue
|
|
1096
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
1097
|
+
* @defaultValue true
|
|
1098
1098
|
*/
|
|
1099
1099
|
allowClear?: boolean;
|
|
1100
1100
|
/**
|
|
@@ -1238,8 +1238,8 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
1238
1238
|
*/
|
|
1239
1239
|
showSearch?: boolean;
|
|
1240
1240
|
/**
|
|
1241
|
-
|
|
1242
|
-
* @defaultValue
|
|
1241
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
1242
|
+
* @defaultValue true
|
|
1243
1243
|
*/
|
|
1244
1244
|
allowClear?: boolean;
|
|
1245
1245
|
/**
|
|
@@ -2118,9 +2118,15 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2118
2118
|
stickyHeader?: boolean;
|
|
2119
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2120
2120
|
resizable?: boolean;
|
|
2121
|
-
/**
|
|
2121
|
+
/** 是否启用单元格选择;点击表格空白处或表格外部清除单元格选区,不影响行勾选。false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
2122
|
* @defaultValue true */
|
|
2123
2123
|
cellSelection?: boolean;
|
|
2124
|
+
/**
|
|
2125
|
+
* 是否显示序号列,默认从 1 开始;搭配分页插件时按页码连续编号,存在勾选列时放在其后。
|
|
2126
|
+
* 显式传入 createIndexPlugin 可自定义标题、宽度和起始编号,不会重复生成序号列;false 时禁用序号插件(包括显式传入的插件)。
|
|
2127
|
+
* @defaultValue true
|
|
2128
|
+
*/
|
|
2129
|
+
showIndex?: boolean;
|
|
2124
2130
|
/** 点击行时调用。 */
|
|
2125
2131
|
onRowClick?: (record: T, index: number) => void;
|
|
2126
2132
|
/** 双击行时调用。 */
|
|
@@ -2341,7 +2347,7 @@ interface TableCellSelectionApi<T> {
|
|
|
2341
2347
|
/** 将当前选区转换为可复制文本。 */
|
|
2342
2348
|
getCopyText: () => string;
|
|
2343
2349
|
}
|
|
2344
|
-
/**
|
|
2350
|
+
/** 创建表格单元格区域选择插件。Table 默认内置;点击表格空白处或表格外部时清除单元格选区,不改变行勾选状态。显式传入 plugins 可自定义选择和复制行为。 */
|
|
2345
2351
|
declare function createCellSelectionPlugin<T extends Record<string, unknown>>(options?: TableCellSelectionPluginOptions<T>): TablePlugin<T, CellSelectionState, TableCellSelectionApi<T>>;
|
|
2346
2352
|
/** TableRowSpan的插件配置。 */
|
|
2347
2353
|
interface TableRowSpanPluginOptions<T> {
|
|
@@ -2539,7 +2545,7 @@ interface TableIndexPluginOptions {
|
|
|
2539
2545
|
/** 序号列的起始编号。 */
|
|
2540
2546
|
startIndex?: number;
|
|
2541
2547
|
}
|
|
2542
|
-
/**
|
|
2548
|
+
/** 创建表格序号列插件。Table 默认内置;显式加入 plugins 可覆盖标题、宽度和起始编号,不重复加载。Table 的 showIndex=false 时禁用。 */
|
|
2543
2549
|
declare function createIndexPlugin<T extends Record<string, unknown>>(options?: TableIndexPluginOptions): TablePlugin<T, undefined>;
|
|
2544
2550
|
/** TableTree的插件配置。 */
|
|
2545
2551
|
interface TableTreePluginOptions<T> {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 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-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-CLqv6btD.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-CLqv6btD.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';
|
|
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-CCrPqULn.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-CCrPqULn.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-D9W_mmMq.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';
|
|
@@ -163,8 +163,8 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
|
|
|
163
163
|
*/
|
|
164
164
|
showSearch?: boolean;
|
|
165
165
|
/**
|
|
166
|
-
|
|
167
|
-
* @defaultValue
|
|
166
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
167
|
+
* @defaultValue true
|
|
168
168
|
*/
|
|
169
169
|
allowClear?: boolean;
|
|
170
170
|
/**
|
|
@@ -1093,8 +1093,8 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
|
|
|
1093
1093
|
*/
|
|
1094
1094
|
disabled?: boolean;
|
|
1095
1095
|
/**
|
|
1096
|
-
|
|
1097
|
-
* @defaultValue
|
|
1096
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
1097
|
+
* @defaultValue true
|
|
1098
1098
|
*/
|
|
1099
1099
|
allowClear?: boolean;
|
|
1100
1100
|
/**
|
|
@@ -1238,8 +1238,8 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
1238
1238
|
*/
|
|
1239
1239
|
showSearch?: boolean;
|
|
1240
1240
|
/**
|
|
1241
|
-
|
|
1242
|
-
* @defaultValue
|
|
1241
|
+
* 是否允许清空当前选择或输入值;默认启用,显式传入 false 可关闭。
|
|
1242
|
+
* @defaultValue true
|
|
1243
1243
|
*/
|
|
1244
1244
|
allowClear?: boolean;
|
|
1245
1245
|
/**
|
|
@@ -2118,9 +2118,15 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2118
2118
|
stickyHeader?: boolean;
|
|
2119
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2120
2120
|
resizable?: boolean;
|
|
2121
|
-
/**
|
|
2121
|
+
/** 是否启用单元格选择;点击表格空白处或表格外部清除单元格选区,不影响行勾选。false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
2122
|
* @defaultValue true */
|
|
2123
2123
|
cellSelection?: boolean;
|
|
2124
|
+
/**
|
|
2125
|
+
* 是否显示序号列,默认从 1 开始;搭配分页插件时按页码连续编号,存在勾选列时放在其后。
|
|
2126
|
+
* 显式传入 createIndexPlugin 可自定义标题、宽度和起始编号,不会重复生成序号列;false 时禁用序号插件(包括显式传入的插件)。
|
|
2127
|
+
* @defaultValue true
|
|
2128
|
+
*/
|
|
2129
|
+
showIndex?: boolean;
|
|
2124
2130
|
/** 点击行时调用。 */
|
|
2125
2131
|
onRowClick?: (record: T, index: number) => void;
|
|
2126
2132
|
/** 双击行时调用。 */
|
|
@@ -2341,7 +2347,7 @@ interface TableCellSelectionApi<T> {
|
|
|
2341
2347
|
/** 将当前选区转换为可复制文本。 */
|
|
2342
2348
|
getCopyText: () => string;
|
|
2343
2349
|
}
|
|
2344
|
-
/**
|
|
2350
|
+
/** 创建表格单元格区域选择插件。Table 默认内置;点击表格空白处或表格外部时清除单元格选区,不改变行勾选状态。显式传入 plugins 可自定义选择和复制行为。 */
|
|
2345
2351
|
declare function createCellSelectionPlugin<T extends Record<string, unknown>>(options?: TableCellSelectionPluginOptions<T>): TablePlugin<T, CellSelectionState, TableCellSelectionApi<T>>;
|
|
2346
2352
|
/** TableRowSpan的插件配置。 */
|
|
2347
2353
|
interface TableRowSpanPluginOptions<T> {
|
|
@@ -2539,7 +2545,7 @@ interface TableIndexPluginOptions {
|
|
|
2539
2545
|
/** 序号列的起始编号。 */
|
|
2540
2546
|
startIndex?: number;
|
|
2541
2547
|
}
|
|
2542
|
-
/**
|
|
2548
|
+
/** 创建表格序号列插件。Table 默认内置;显式加入 plugins 可覆盖标题、宽度和起始编号,不重复加载。Table 的 showIndex=false 时禁用。 */
|
|
2543
2549
|
declare function createIndexPlugin<T extends Record<string, unknown>>(options?: TableIndexPluginOptions): TablePlugin<T, undefined>;
|
|
2544
2550
|
/** TableTree的插件配置。 */
|
|
2545
2551
|
interface TableTreePluginOptions<T> {
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
smoothSvgPath,
|
|
57
57
|
svgArcPath,
|
|
58
58
|
transferCompositeValue
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-TZROBD65.js";
|
|
60
60
|
import {
|
|
61
61
|
Badge,
|
|
62
62
|
Breadcrumb,
|
|
@@ -80,22 +80,22 @@ import {
|
|
|
80
80
|
Watermark,
|
|
81
81
|
message,
|
|
82
82
|
notification
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-NAOV53NK.js";
|
|
84
84
|
import {
|
|
85
85
|
TextArea
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-YQDHCORW.js";
|
|
87
87
|
import {
|
|
88
88
|
MarkdownEditor
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-PXHBIRQW.js";
|
|
90
90
|
import {
|
|
91
91
|
RichTextContent,
|
|
92
92
|
RichTextEditor
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-LK56NX5F.js";
|
|
94
94
|
import {
|
|
95
95
|
DatePicker,
|
|
96
96
|
SelectDateRange,
|
|
97
97
|
TimePanel
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-IQU4GGLM.js";
|
|
99
99
|
import {
|
|
100
100
|
Checkbox,
|
|
101
101
|
FloatingScrollbarProvider,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
Tree,
|
|
111
111
|
useOverlayLifecycle,
|
|
112
112
|
useScrollbarProximity
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-5MW3NE2V.js";
|
|
114
114
|
import {
|
|
115
115
|
Dropdown,
|
|
116
116
|
FILLED_ICON_NAMES,
|
|
@@ -120,10 +120,10 @@ import {
|
|
|
120
120
|
Menu,
|
|
121
121
|
Segmented,
|
|
122
122
|
Steps
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-YF2I6SDB.js";
|
|
124
124
|
import {
|
|
125
125
|
Button
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-IYNS423D.js";
|
|
127
127
|
import {
|
|
128
128
|
ControlSizeContext,
|
|
129
129
|
PlaceholderModeContext,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
useFloatingPlaceholder,
|
|
134
134
|
usePlaceholderMode,
|
|
135
135
|
withTitleTooltip
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-RAO3JHDL.js";
|
|
137
137
|
|
|
138
138
|
// src/components/Alert.tsx
|
|
139
139
|
import { useState } from "react";
|
|
@@ -333,7 +333,7 @@ function Cascader({
|
|
|
333
333
|
size: sizeProp,
|
|
334
334
|
multiple = false,
|
|
335
335
|
showSearch = false,
|
|
336
|
-
allowClear =
|
|
336
|
+
allowClear = true,
|
|
337
337
|
changeOnSelect = false,
|
|
338
338
|
expandTrigger = "click",
|
|
339
339
|
placeholder = "\u8BF7\u9009\u62E9",
|
|
@@ -2095,7 +2095,7 @@ function ColorPicker({
|
|
|
2095
2095
|
defaultMode = "solid",
|
|
2096
2096
|
modes = DEFAULT_MODES,
|
|
2097
2097
|
disabled = false,
|
|
2098
|
-
allowClear =
|
|
2098
|
+
allowClear = true,
|
|
2099
2099
|
showText = false,
|
|
2100
2100
|
showAlpha = false,
|
|
2101
2101
|
presets,
|
|
@@ -2534,7 +2534,7 @@ function TreeSelect({
|
|
|
2534
2534
|
multiple = false,
|
|
2535
2535
|
treeCheckable = false,
|
|
2536
2536
|
showSearch = false,
|
|
2537
|
-
allowClear =
|
|
2537
|
+
allowClear = true,
|
|
2538
2538
|
treeDefaultExpandAll = false,
|
|
2539
2539
|
placeholder = "\u8BF7\u9009\u62E9",
|
|
2540
2540
|
placeholderMode,
|
|
@@ -5241,6 +5241,16 @@ function createCellSelectionPlugin(options = {}) {
|
|
|
5241
5241
|
event.clipboardData?.setData("text/plain", text);
|
|
5242
5242
|
options.onCopy?.(text, selectedCells(context));
|
|
5243
5243
|
};
|
|
5244
|
+
const clearOnOutsidePointerDown = (event) => {
|
|
5245
|
+
const context = latestContext;
|
|
5246
|
+
if (event.button !== 0 || !context?.state.range || !activeRoot) return;
|
|
5247
|
+
const target = event.target instanceof Element ? event.target : null;
|
|
5248
|
+
const cell = target?.closest("td[data-column-key], th[data-column-key]");
|
|
5249
|
+
if (cell?.closest(".sia-table") === activeRoot) return;
|
|
5250
|
+
stopDragging();
|
|
5251
|
+
setSelection(context, null);
|
|
5252
|
+
};
|
|
5253
|
+
document.addEventListener("pointerdown", clearOnOutsidePointerDown, true);
|
|
5244
5254
|
window.addEventListener("pointerup", stopDragging);
|
|
5245
5255
|
window.addEventListener("pointercancel", stopDragging);
|
|
5246
5256
|
window.addEventListener("blur", stopDragging);
|
|
@@ -5249,6 +5259,7 @@ function createCellSelectionPlugin(options = {}) {
|
|
|
5249
5259
|
document.addEventListener("copy", handleCopy);
|
|
5250
5260
|
return () => {
|
|
5251
5261
|
stopDragging();
|
|
5262
|
+
document.removeEventListener("pointerdown", clearOnOutsidePointerDown, true);
|
|
5252
5263
|
window.removeEventListener("pointerup", stopDragging);
|
|
5253
5264
|
window.removeEventListener("pointercancel", stopDragging);
|
|
5254
5265
|
window.removeEventListener("blur", stopDragging);
|
|
@@ -7330,6 +7341,7 @@ function TableInner(props, ref) {
|
|
|
7330
7341
|
stickyHeader = true,
|
|
7331
7342
|
resizable = true,
|
|
7332
7343
|
cellSelection = true,
|
|
7344
|
+
showIndex = true,
|
|
7333
7345
|
onRowClick,
|
|
7334
7346
|
onRowDoubleClick,
|
|
7335
7347
|
onCellContextMenu,
|
|
@@ -7353,13 +7365,15 @@ function TableInner(props, ref) {
|
|
|
7353
7365
|
const builtInResizePlugin = useMemo9(() => createResizePlugin(), []);
|
|
7354
7366
|
const builtInHighlightPlugin = useMemo9(() => createHighlightPlugin(), []);
|
|
7355
7367
|
const builtInCellSelectionPlugin = useMemo9(() => createCellSelectionPlugin(), []);
|
|
7368
|
+
const builtInIndexPlugin = useMemo9(() => createIndexPlugin(), []);
|
|
7356
7369
|
const activePlugins = useMemo9(() => {
|
|
7357
|
-
const plugins = providedPlugins.filter((plugin) => (resizable || plugin.id !== "resize") && (cellSelection || plugin.id !== "cellSelection"));
|
|
7370
|
+
const plugins = providedPlugins.filter((plugin) => (resizable || plugin.id !== "resize") && (cellSelection || plugin.id !== "cellSelection") && (showIndex || plugin.id !== "index"));
|
|
7358
7371
|
if (!plugins.some((plugin) => plugin.id === "highlight")) plugins.push(builtInHighlightPlugin);
|
|
7359
7372
|
if (resizable && !plugins.some((plugin) => plugin.id === "resize")) plugins.push(builtInResizePlugin);
|
|
7360
7373
|
if (cellSelection && !plugins.some((plugin) => plugin.id === "cellSelection")) plugins.push(builtInCellSelectionPlugin);
|
|
7374
|
+
if (showIndex && !plugins.some((plugin) => plugin.id === "index")) plugins.push(builtInIndexPlugin);
|
|
7361
7375
|
return plugins;
|
|
7362
|
-
}, [builtInHighlightPlugin, builtInResizePlugin, builtInCellSelectionPlugin, providedPlugins, resizable, cellSelection]);
|
|
7376
|
+
}, [builtInHighlightPlugin, builtInResizePlugin, builtInCellSelectionPlugin, builtInIndexPlugin, providedPlugins, resizable, cellSelection, showIndex]);
|
|
7363
7377
|
const sortedPlugins = useMemo9(() => [...activePlugins].sort((a, b) => (a.order ?? 100) - (b.order ?? 100)), [activePlugins]);
|
|
7364
7378
|
const pluginsByIdRef = useRef15(/* @__PURE__ */ new Map());
|
|
7365
7379
|
pluginsByIdRef.current = new Map(sortedPlugins.map((plugin) => [plugin.id, plugin]));
|
package/dist/markdown-editor.cjs
CHANGED
|
@@ -236,7 +236,7 @@ function installTitleTooltips(doc) {
|
|
|
236
236
|
else if (active.getAttribute("data-sia-title") !== doc.getElementById(tooltipId)?.textContent) render();
|
|
237
237
|
});
|
|
238
238
|
observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-sia-title"] });
|
|
239
|
-
},
|
|
239
|
+
}, 600);
|
|
240
240
|
};
|
|
241
241
|
doc.addEventListener("pointerover", (event) => {
|
|
242
242
|
if (event.pointerType === "touch") return;
|
package/dist/markdown-editor.js
CHANGED
|
@@ -237,7 +237,7 @@ function installTitleTooltips(doc) {
|
|
|
237
237
|
else if (active.getAttribute("data-sia-title") !== doc.getElementById(tooltipId)?.textContent) render();
|
|
238
238
|
});
|
|
239
239
|
observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-sia-title"] });
|
|
240
|
-
},
|
|
240
|
+
}, 600);
|
|
241
241
|
};
|
|
242
242
|
doc.addEventListener("pointerover", (event) => {
|
|
243
243
|
if (event.pointerType === "touch") return;
|
|
@@ -1653,7 +1653,7 @@ var Input = (0, import_react8.forwardRef)(function Input2({
|
|
|
1653
1653
|
size: sizeProp,
|
|
1654
1654
|
prefix,
|
|
1655
1655
|
suffix,
|
|
1656
|
-
allowClear =
|
|
1656
|
+
allowClear = true,
|
|
1657
1657
|
onClear,
|
|
1658
1658
|
showCount = false,
|
|
1659
1659
|
placeholderMode,
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RichTextContent,
|
|
3
3
|
RichTextEditor
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-LK56NX5F.js";
|
|
5
|
+
import "./chunk-YF2I6SDB.js";
|
|
6
|
+
import "./chunk-IYNS423D.js";
|
|
7
|
+
import "./chunk-RAO3JHDL.js";
|
|
8
8
|
export {
|
|
9
9
|
RichTextContent,
|
|
10
10
|
RichTextEditor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
|
|
3
3
|
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
4
|
-
import { S as SelectOption, m as SelectValue } from './Select-
|
|
4
|
+
import { S as SelectOption, m as SelectValue } from './Select-YJbT-MF1.cjs';
|
|
5
5
|
|
|
6
6
|
/** 日期选择附带的时间选择配置。 */
|
|
7
7
|
type DatePickerShowTime = boolean | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
|
|
3
3
|
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
4
|
-
import { S as SelectOption, m as SelectValue } from './Select-
|
|
4
|
+
import { S as SelectOption, m as SelectValue } from './Select-CCrPqULn.js';
|
|
5
5
|
|
|
6
6
|
/** 日期选择附带的时间选择配置。 */
|
|
7
7
|
type DatePickerShowTime = boolean | {
|