@sia.soul/sia-react-ui 0.1.22 → 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-O_yY51vc.d.ts +307 -0
- package/dist/Select-W_xpkpOW.d.cts +307 -0
- package/dist/chart.cjs +1401 -1160
- package/dist/chart.css +21 -0
- package/dist/chart.js +4 -4
- package/dist/{chunk-3TRRBMXY.js → chunk-6R7JY7IY.js} +44 -21
- 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-7RNS52YG.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-VN6PIPP7.js → chunk-T2QIW4OO.js} +8 -7
- package/dist/{core-DeZknKwc.d.ts → core-BOzLwiXG.d.ts} +40 -158
- package/dist/{core-C5OnrCi4.d.cts → core-tbb9ZiBY.d.cts} +40 -158
- package/dist/core.cjs +1656 -1443
- package/dist/core.css +60 -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 +3801 -3580
- package/dist/index.css +60 -0
- package/dist/index.d.cts +33 -16
- package/dist/index.d.ts +33 -16
- package/dist/index.js +94 -85
- 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-CGRb3-W8.d.ts → select-date-range-BjqFUeU6.d.ts} +1 -1
- package/dist/{select-date-range-DDmYGDD4.d.cts → select-date-range-C9w8z3G8.d.cts} +1 -1
- package/dist/select-date-range.cjs +1209 -1061
- 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/Select-4hGJt3RJ.d.cts +0 -142
- package/dist/Select-BNSE67xn.d.ts +0 -142
- package/dist/chunk-3VJ4CZDQ.js +0 -43
package/dist/index.css
CHANGED
|
@@ -4419,6 +4419,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4419
4419
|
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
4420
4420
|
border-radius: 0 0 var(--sia-radius) var(--sia-radius);
|
|
4421
4421
|
}
|
|
4422
|
+
.sia-select-modal__header-extra {
|
|
4423
|
+
display: flex;
|
|
4424
|
+
align-items: center;
|
|
4425
|
+
flex-wrap: wrap;
|
|
4426
|
+
gap: 12px;
|
|
4427
|
+
min-width: 0;
|
|
4428
|
+
margin-bottom: 16px;
|
|
4429
|
+
}
|
|
4422
4430
|
.sia-select-modal__heading {
|
|
4423
4431
|
display: flex;
|
|
4424
4432
|
justify-content: space-between;
|
|
@@ -4898,6 +4906,37 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4898
4906
|
.sia-table-settings__loading {
|
|
4899
4907
|
min-height: 160px;
|
|
4900
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
|
+
}
|
|
4901
4940
|
|
|
4902
4941
|
/* src/components-extra.css */
|
|
4903
4942
|
.sia-flex {
|
|
@@ -9644,6 +9683,27 @@ button.sia-treemap__tile:focus-visible,
|
|
|
9644
9683
|
color: var(--sia-color-text-secondary, #777);
|
|
9645
9684
|
}
|
|
9646
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
|
+
|
|
9647
9707
|
/* src/breadcrumb.css */
|
|
9648
9708
|
.sia-breadcrumb {
|
|
9649
9709
|
color: var(--sia-color-text-secondary);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, b as ModalActionResult, B as ButtonProps, T as TagStatus, c as ButtonSize, d as BadgeProps } from './core-C5OnrCi4.cjs';
|
|
4
|
-
export { e as Badge, f as BadgeRibbonProps, g as BadgeStatus, h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, l as ButtonVariant, C as Calendar, m as CalendarProps, n as Card, o as CardAccent, p as CardProps, q as Carousel, r as CarouselProps, s as CarouselRef, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, D as Dropdown, x as DropdownButtonProps, y as DropdownMenuProps, z as DropdownOpenSource, A as DropdownPlacement, E as DropdownProps, F as DropdownTrigger, G as FILLED_ICON_NAMES, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, P as FloatingPlacement, Q as FloatingTrigger, R as ICON_NAMES, S as Icon, U as IconName, V as IconProps, W as IconVariant, X as Image, Y as ImagePreview, Z as ImagePreviewConfig, _ as ImagePreviewProps, $ as ImageProps, a0 as Input, a1 as InputProps, a2 as Menu, a3 as MenuClickInfo, a4 as MenuItem, a5 as MenuMode, a6 as MenuProps, a7 as MenuTheme, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-C5OnrCi4.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
|
-
|
|
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';
|
|
7
9
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
|
|
8
10
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
|
|
9
11
|
import * as Monaco from 'monaco-editor';
|
|
10
|
-
import { S as SelectOption, a as SelectChangeValue, b as SelectProps } from './Select-4hGJt3RJ.cjs';
|
|
11
|
-
export { c as Select, d as SelectMode, e as SelectValue } from './Select-4hGJt3RJ.cjs';
|
|
12
12
|
export { BaiduMapHostOptions, BaiduMapInstance, BaiduMapNamespace, BaiduMapPoint, BarChart, BarChartProps, BarDatum, BarSeries, CHART_VIEWBOX_HEIGHT, CHART_VIEWBOX_WIDTH, CandlestickChart, CandlestickChartProps, CandlestickDatum, CartesianChartProps, ChartAxis, ChartAxisProps, ChartComposite, ChartCompositeLayer, ChartCompositeProps, ChartCompositeRef, ChartDataClickInfo, ChartDataEditor, ChartDataEditorProps, ChartDataZoom, ChartDataZoomProps, ChartLegend, ChartLegendItem, ChartLegendProps, ChartMapOverlay, ChartMapOverlayProps, ChartMark, ChartMarkProps, ChartRoamController, ChartRoamControllerProps, ChartSeries, ChartTimeline, ChartTimelineProps, ChartToolbox, ChartToolboxFeature, ChartToolboxOptions, ChartToolboxProps, ChartTooltip, ChartTooltipProps, ChartValueAddress, ChartValueChannel, ChartValueIsland, ChartValueIslandProps, ChartValueTransferHandler, ChartVisualMap, ChartVisualMapProps, ChartWhirlingLoading, ChartWhirlingLoadingProps, ChordChart, ChordChartProps, ChordLink, ChordNode, DEFAULT_CHART_PALETTE, EventRiverChart, EventRiverChartProps, EventRiverEvent, EventRiverEvolution, EventRiverSeries, ForceChart, ForceGraphChart, FunnelChart, FunnelChartProps, FunnelDatum, FunnelSeries, GaugeChart, GaugeChartProps, GaugeDatum, GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonMultiPolygonGeometry, GeoJsonPolygonGeometry, GraphChart, GraphChartProps, GraphLink, GraphNode, HeatmapChart, HeatmapChartProps, HeatmapPoint, KLineChart, LineChart, LineChartProps, LinePoint, LineSeries, LineShareChart, LineShareChartProps, MapChart, MapChartProps, MapDatum, MapMarkLine, MapMarkPoint, MapOverlayEvent, MapOverlayHost, MapOverlaySnapshot, MixedChart, MixedChartProps, MixedSeries, PieChart, PieChartProps, PieDatum, PieSeries, RadarChart, RadarChartProps, RadarIndicator, RadarPanel, RadarSeries, ScatterChart, ScatterChartProps, ScatterDatum, ScatterVisualMap, SiaChart, SiaChartProps, SiaChartRef, SvgMapPlot, SvgMapPlotProps, ThemeRiverChart, ThemeRiverChartProps, ThemeRiverSeries, TreeChart, TreeChartProps, TreeDatum, TreemapChart, TreemapChartProps, TreemapDatum, TreemapItemStyle, VennChart, VennChartProps, VennIntersection, VennSet, WordCloudChart, WordCloudChartProps, WordCloudDatum, XYChart, XYChartProps, XYSeries, chartColor, chartTicks, createBaiduMapHost, formatChartNumber, getChartMap, linearScale, niceChartDomain, paddedValueExtent, registerChartMap, saveCompositeImage, serializeChartStack, smoothSvgPath, svgArcPath, transferCompositeValue } from './chart.cjs';
|
|
13
13
|
import 'vditor';
|
|
14
14
|
|
|
@@ -1674,24 +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
|
+
/** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
|
|
1690
|
+
headerExtra?: ReactNode;
|
|
1691
|
+
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1692
|
+
extraValues?: Record<string, unknown>;
|
|
1693
|
+
/** 搜索框的占位提示文字。
|
|
1694
|
+
* @defaultValue "搜索选项" */
|
|
1686
1695
|
searchPlaceholder?: string;
|
|
1687
|
-
/**
|
|
1696
|
+
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
1688
1697
|
filterOption?: SelectProps["filterOption"];
|
|
1689
|
-
/**
|
|
1698
|
+
/** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
|
|
1690
1699
|
onSearch?: SelectProps["onSearch"];
|
|
1691
|
-
/**
|
|
1692
|
-
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => ModalActionResult;
|
|
1693
|
-
}
|
|
1694
|
-
/**
|
|
1700
|
+
/** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
|
|
1701
|
+
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px。
|
|
1705
|
+
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1706
|
+
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1707
|
+
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
|
1708
|
+
*/
|
|
1695
1709
|
declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
|
|
1696
1710
|
|
|
1697
1711
|
/** 矩形树图节点的种类。 */
|
|
@@ -2104,6 +2118,9 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2104
2118
|
stickyHeader?: boolean;
|
|
2105
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2106
2120
|
resizable?: boolean;
|
|
2121
|
+
/** 是否启用单元格选择;false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
|
+
* @defaultValue true */
|
|
2123
|
+
cellSelection?: boolean;
|
|
2107
2124
|
/** 点击行时调用。 */
|
|
2108
2125
|
onRowClick?: (record: T, index: number) => void;
|
|
2109
2126
|
/** 双击行时调用。 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, b as ModalActionResult, B as ButtonProps, T as TagStatus, c as ButtonSize, d as BadgeProps } from './core-DeZknKwc.js';
|
|
4
|
-
export { e as Badge, f as BadgeRibbonProps, g as BadgeStatus, h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, l as ButtonVariant, C as Calendar, m as CalendarProps, n as Card, o as CardAccent, p as CardProps, q as Carousel, r as CarouselProps, s as CarouselRef, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, D as Dropdown, x as DropdownButtonProps, y as DropdownMenuProps, z as DropdownOpenSource, A as DropdownPlacement, E as DropdownProps, F as DropdownTrigger, G as FILLED_ICON_NAMES, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, P as FloatingPlacement, Q as FloatingTrigger, R as ICON_NAMES, S as Icon, U as IconName, V as IconProps, W as IconVariant, X as Image, Y as ImagePreview, Z as ImagePreviewConfig, _ as ImagePreviewProps, $ as ImageProps, a0 as Input, a1 as InputProps, a2 as Menu, a3 as MenuClickInfo, a4 as MenuItem, a5 as MenuMode, a6 as MenuProps, a7 as MenuTheme, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-DeZknKwc.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
6
|
-
|
|
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';
|
|
7
9
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
|
|
8
10
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
|
|
9
11
|
import * as Monaco from 'monaco-editor';
|
|
10
|
-
import { S as SelectOption, a as SelectChangeValue, b as SelectProps } from './Select-BNSE67xn.js';
|
|
11
|
-
export { c as Select, d as SelectMode, e as SelectValue } from './Select-BNSE67xn.js';
|
|
12
12
|
export { BaiduMapHostOptions, BaiduMapInstance, BaiduMapNamespace, BaiduMapPoint, BarChart, BarChartProps, BarDatum, BarSeries, CHART_VIEWBOX_HEIGHT, CHART_VIEWBOX_WIDTH, CandlestickChart, CandlestickChartProps, CandlestickDatum, CartesianChartProps, ChartAxis, ChartAxisProps, ChartComposite, ChartCompositeLayer, ChartCompositeProps, ChartCompositeRef, ChartDataClickInfo, ChartDataEditor, ChartDataEditorProps, ChartDataZoom, ChartDataZoomProps, ChartLegend, ChartLegendItem, ChartLegendProps, ChartMapOverlay, ChartMapOverlayProps, ChartMark, ChartMarkProps, ChartRoamController, ChartRoamControllerProps, ChartSeries, ChartTimeline, ChartTimelineProps, ChartToolbox, ChartToolboxFeature, ChartToolboxOptions, ChartToolboxProps, ChartTooltip, ChartTooltipProps, ChartValueAddress, ChartValueChannel, ChartValueIsland, ChartValueIslandProps, ChartValueTransferHandler, ChartVisualMap, ChartVisualMapProps, ChartWhirlingLoading, ChartWhirlingLoadingProps, ChordChart, ChordChartProps, ChordLink, ChordNode, DEFAULT_CHART_PALETTE, EventRiverChart, EventRiverChartProps, EventRiverEvent, EventRiverEvolution, EventRiverSeries, ForceChart, ForceGraphChart, FunnelChart, FunnelChartProps, FunnelDatum, FunnelSeries, GaugeChart, GaugeChartProps, GaugeDatum, GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonMultiPolygonGeometry, GeoJsonPolygonGeometry, GraphChart, GraphChartProps, GraphLink, GraphNode, HeatmapChart, HeatmapChartProps, HeatmapPoint, KLineChart, LineChart, LineChartProps, LinePoint, LineSeries, LineShareChart, LineShareChartProps, MapChart, MapChartProps, MapDatum, MapMarkLine, MapMarkPoint, MapOverlayEvent, MapOverlayHost, MapOverlaySnapshot, MixedChart, MixedChartProps, MixedSeries, PieChart, PieChartProps, PieDatum, PieSeries, RadarChart, RadarChartProps, RadarIndicator, RadarPanel, RadarSeries, ScatterChart, ScatterChartProps, ScatterDatum, ScatterVisualMap, SiaChart, SiaChartProps, SiaChartRef, SvgMapPlot, SvgMapPlotProps, ThemeRiverChart, ThemeRiverChartProps, ThemeRiverSeries, TreeChart, TreeChartProps, TreeDatum, TreemapChart, TreemapChartProps, TreemapDatum, TreemapItemStyle, VennChart, VennChartProps, VennIntersection, VennSet, WordCloudChart, WordCloudChartProps, WordCloudDatum, XYChart, XYChartProps, XYSeries, chartColor, chartTicks, createBaiduMapHost, formatChartNumber, getChartMap, linearScale, niceChartDomain, paddedValueExtent, registerChartMap, saveCompositeImage, serializeChartStack, smoothSvgPath, svgArcPath, transferCompositeValue } from './chart.js';
|
|
13
13
|
import 'vditor';
|
|
14
14
|
|
|
@@ -1674,24 +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
|
+
/** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
|
|
1690
|
+
headerExtra?: ReactNode;
|
|
1691
|
+
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1692
|
+
extraValues?: Record<string, unknown>;
|
|
1693
|
+
/** 搜索框的占位提示文字。
|
|
1694
|
+
* @defaultValue "搜索选项" */
|
|
1686
1695
|
searchPlaceholder?: string;
|
|
1687
|
-
/**
|
|
1696
|
+
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
1688
1697
|
filterOption?: SelectProps["filterOption"];
|
|
1689
|
-
/**
|
|
1698
|
+
/** 搜索输入变化时调用,参数为未裁剪的输入文本,清空时为空字符串。默认仍执行本地过滤;远程搜索结果需通过句柄 update({ options }) 回填。 */
|
|
1690
1699
|
onSearch?: SelectProps["onSearch"];
|
|
1691
|
-
/**
|
|
1692
|
-
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => ModalActionResult;
|
|
1693
|
-
}
|
|
1694
|
-
/**
|
|
1700
|
+
/** 点击确定时接收 value、option 和 extraValues:单选未选择时前两项为 null,多选为空时为 [];第三项为扩展数据的浅拷贝。返回 Promise 时等待完成并禁用选择操作;返回 false 或抛出异常时保留弹框供重试,否则关闭。取消不调用此回调。 */
|
|
1701
|
+
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px。
|
|
1705
|
+
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1706
|
+
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1707
|
+
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
|
1708
|
+
*/
|
|
1695
1709
|
declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
|
|
1696
1710
|
|
|
1697
1711
|
/** 矩形树图节点的种类。 */
|
|
@@ -2104,6 +2118,9 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
2104
2118
|
stickyHeader?: boolean;
|
|
2105
2119
|
/** 是否允许拖拽表头边界调整列宽;默认启用内置列宽调整插件。 */
|
|
2106
2120
|
resizable?: boolean;
|
|
2121
|
+
/** 是否启用单元格选择;false 时禁用(包括显式传入的插件)。启用时显式传入的单元格选择插件优先于内置默认插件。
|
|
2122
|
+
* @defaultValue true */
|
|
2123
|
+
cellSelection?: boolean;
|
|
2107
2124
|
/** 点击行时调用。 */
|
|
2108
2125
|
onRowClick?: (record: T, index: number) => void;
|
|
2109
2126
|
/** 双击行时调用。 */
|