@sia.soul/sia-react-ui 0.1.3 → 0.1.5
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-CJJ5LQap.d.ts → Select-GiTHMScg.d.cts} +4 -5
- package/dist/{Select-CJJ5LQap.d.cts → Select-rtDktLYY.d.ts} +4 -5
- package/dist/chart.cjs +731 -707
- package/dist/chart.css +1 -1
- package/dist/chart.js +3 -2
- package/dist/{chunk-6VXOLMKZ.js → chunk-5ZTWY3PG.js} +18 -1
- package/dist/{chunk-2RRTDU3N.js → chunk-EJ23MVR6.js} +3 -18
- package/dist/chunk-EJDPRAU2.js +36 -0
- package/dist/{chunk-IMZT6VCU.js → chunk-IHTODT53.js} +8 -5
- package/dist/{chunk-R4OWKIXJ.js → chunk-MJUTLEEE.js} +20 -8
- package/dist/{chunk-OQLDEVCF.js → chunk-PX6BOFTW.js} +10 -3
- package/dist/{chunk-OAC7BSUR.js → chunk-R7BVDN3Q.js} +91 -43
- package/dist/{chunk-Q4XNFMUH.js → chunk-S2JAJCLN.js} +6 -4
- package/dist/{chunk-NZAT2RUM.js → chunk-WHARTF2I.js} +10 -1
- package/dist/{chunk-I342FGQY.js → chunk-Z3T6RDQP.js} +1 -1
- package/dist/{core-DFYheaoJ.d.ts → core-CBtbeAms.d.cts} +2 -1
- package/dist/{core-De2pRX5w.d.cts → core-D8BSMfHD.d.ts} +2 -1
- package/dist/core.cjs +275 -210
- package/dist/core.css +294 -41
- package/dist/core.d.cts +3 -2
- package/dist/core.d.ts +3 -2
- package/dist/core.js +6 -5
- package/dist/index.cjs +2709 -2434
- package/dist/index.css +295 -42
- package/dist/index.d.cts +23 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +414 -224
- package/dist/markdown-editor.cjs +52 -20
- package/dist/markdown-editor.d.cts +3 -1
- package/dist/markdown-editor.d.ts +3 -1
- package/dist/markdown-editor.js +2 -1
- package/dist/rich-text-editor.cjs +884 -864
- package/dist/rich-text-editor.d.cts +3 -1
- package/dist/rich-text-editor.d.ts +3 -1
- package/dist/rich-text-editor.js +4 -3
- package/dist/{select-date-range-DOyG1DGp.d.ts → select-date-range-CQ1vmze_.d.ts} +7 -4
- package/dist/{select-date-range-UyYrHex6.d.cts → select-date-range-DRmGaEzP.d.cts} +7 -4
- package/dist/select-date-range.cjs +972 -903
- package/dist/select-date-range.d.cts +3 -2
- package/dist/select-date-range.d.ts +3 -2
- package/dist/select-date-range.js +4 -3
- package/dist/shared-DAYZvZVu.d.cts +5 -0
- package/dist/shared-DAYZvZVu.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { O as OverlayContainer, a as OverlayApiHandle } from './core-
|
|
4
|
-
export { B as Badge, b as BadgeProps, c as BadgeRibbonProps, d as BadgeStatus, e as Breadcrumb, f as BreadcrumbItem, g as BreadcrumbProps, h as Button, i as ButtonProps, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, 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-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { S as Select, b as SelectChangeValue, c as SelectMode, d as SelectOption, e as SelectProps, f as SelectValue } from './Select-CJJ5LQap.cjs';
|
|
3
|
+
import { O as OverlayContainer, a as OverlayApiHandle } from './core-CBtbeAms.cjs';
|
|
4
|
+
export { B as Badge, b as BadgeProps, c as BadgeRibbonProps, d as BadgeStatus, e as Breadcrumb, f as BreadcrumbItem, g as BreadcrumbProps, h as Button, i as ButtonProps, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, 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-CBtbeAms.cjs';
|
|
5
|
+
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.cjs';
|
|
6
|
+
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-DRmGaEzP.cjs';
|
|
8
7
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
|
|
9
8
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
|
|
10
9
|
import * as Monaco from 'monaco-editor';
|
|
10
|
+
export { S as Select, a as SelectChangeValue, b as SelectMode, c as SelectOption, d as SelectProps, e as SelectValue } from './Select-GiTHMScg.cjs';
|
|
11
11
|
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';
|
|
12
12
|
import 'vditor';
|
|
13
13
|
|
|
@@ -71,13 +71,14 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
|
|
|
71
71
|
changeOnSelect?: boolean;
|
|
72
72
|
expandTrigger?: "click" | "hover";
|
|
73
73
|
placeholder?: ReactNode;
|
|
74
|
+
placeholderMode?: InputPlaceholderMode;
|
|
74
75
|
disabled?: boolean;
|
|
75
76
|
fieldNames?: CascaderFieldNames;
|
|
76
77
|
displayRender?: (labels: ReactNode[], selectedOptions: CascaderOption[]) => ReactNode;
|
|
77
78
|
loadData?: (selectedOptions: CascaderOption[]) => void | Promise<void>;
|
|
78
79
|
onChange?: (value: readonly CascaderValue[] | readonly (readonly CascaderValue[])[] | undefined, selectedOptions: CascaderOption[] | CascaderOption[][]) => void;
|
|
79
80
|
}
|
|
80
|
-
declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
|
|
81
|
+
declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
|
|
81
82
|
|
|
82
83
|
type LayoutGap = "small" | "medium" | "large" | number | string;
|
|
83
84
|
type FlexAlign = "normal" | "start" | "center" | "end" | "stretch" | "baseline";
|
|
@@ -300,6 +301,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
300
301
|
form?: FormInstance;
|
|
301
302
|
initialValues?: FormValues;
|
|
302
303
|
layout?: "horizontal" | "vertical" | "inline";
|
|
304
|
+
placeholderMode?: InputPlaceholderMode;
|
|
303
305
|
disabled?: boolean;
|
|
304
306
|
requiredMark?: boolean | "optional";
|
|
305
307
|
onFinish?: (values: FormValues) => void;
|
|
@@ -309,7 +311,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
309
311
|
}) => void;
|
|
310
312
|
onValuesChange?: (changedValues: FormValues, values: FormValues) => void;
|
|
311
313
|
}
|
|
312
|
-
declare function FormRoot({ form, initialValues, layout, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
|
|
314
|
+
declare function FormRoot({ form, initialValues, layout, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
|
|
313
315
|
interface FormItemProps {
|
|
314
316
|
name?: NamePath;
|
|
315
317
|
label?: ReactNode;
|
|
@@ -461,6 +463,7 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
|
|
|
461
463
|
declare function ColorPicker({ value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
|
|
462
464
|
|
|
463
465
|
interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange"> {
|
|
466
|
+
placeholderMode?: InputPlaceholderMode;
|
|
464
467
|
value?: string;
|
|
465
468
|
defaultValue?: string;
|
|
466
469
|
size?: ControlSize;
|
|
@@ -481,7 +484,7 @@ interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "defaultV
|
|
|
481
484
|
onChange?: (value: readonly [string, string]) => void;
|
|
482
485
|
}
|
|
483
486
|
declare function TimeRangePicker({ value, defaultValue, placeholder, separator, onChange, className, style, ...props }: TimeRangePickerProps): react.JSX.Element;
|
|
484
|
-
declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
|
|
487
|
+
declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
|
|
485
488
|
declare namespace TimePicker {
|
|
486
489
|
const RangePicker: typeof TimeRangePicker;
|
|
487
490
|
}
|
|
@@ -507,7 +510,9 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
507
510
|
allowClear?: boolean;
|
|
508
511
|
treeDefaultExpandAll?: boolean;
|
|
509
512
|
placeholder?: ReactNode;
|
|
513
|
+
placeholderMode?: InputPlaceholderMode;
|
|
510
514
|
searchPlaceholder?: string;
|
|
515
|
+
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
511
516
|
maxTagCount?: number;
|
|
512
517
|
disabled?: boolean;
|
|
513
518
|
size?: ControlSize;
|
|
@@ -540,7 +545,7 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
540
545
|
onSearch?: (value: string) => void;
|
|
541
546
|
onDropdownVisibleChange?: (open: boolean) => void;
|
|
542
547
|
}
|
|
543
|
-
declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
|
|
548
|
+
declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
|
|
544
549
|
|
|
545
550
|
interface FlatTreeOptions {
|
|
546
551
|
idField?: string;
|
|
@@ -558,6 +563,7 @@ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
|
558
563
|
hint?: ReactNode;
|
|
559
564
|
status?: ControlStatus;
|
|
560
565
|
showCount?: boolean;
|
|
566
|
+
placeholderMode?: InputPlaceholderMode;
|
|
561
567
|
}
|
|
562
568
|
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
563
569
|
|
|
@@ -767,6 +773,7 @@ interface TableColumn<T = Record<string, unknown>> {
|
|
|
767
773
|
align?: TableAlign;
|
|
768
774
|
fixed?: TableFixed | boolean;
|
|
769
775
|
hidden?: boolean;
|
|
776
|
+
/** 默认单行显示并省略溢出内容(含 Space 标签组);设为 false 允许多行。 */
|
|
770
777
|
ellipsis?: boolean;
|
|
771
778
|
showTitle?: boolean;
|
|
772
779
|
sortable?: boolean;
|
|
@@ -873,6 +880,8 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
873
880
|
tableHeight?: number | string;
|
|
874
881
|
size?: TableSize;
|
|
875
882
|
bordered?: boolean;
|
|
883
|
+
/** 是否将工具栏纳入表格边框,默认 false;表格主体边框仍由 bordered 控制。 */
|
|
884
|
+
toolbarBordered?: boolean;
|
|
876
885
|
striped?: boolean;
|
|
877
886
|
virtual?: boolean;
|
|
878
887
|
virtualThreshold?: number;
|
|
@@ -1165,6 +1174,10 @@ interface TableResizeApi {
|
|
|
1165
1174
|
}
|
|
1166
1175
|
declare function createResizePlugin<T extends Record<string, unknown>>(options?: TableResizePluginOptions): TablePlugin<T, ResizeState, TableResizeApi>;
|
|
1167
1176
|
interface TableColumnSettingPluginOptions<T> {
|
|
1177
|
+
/** 追加到设置下拉菜单中的业务操作。 */
|
|
1178
|
+
menuItems?: readonly TableToolbarItem<T>[];
|
|
1179
|
+
/** 是否显示设置菜单中的导出操作,默认 true。 */
|
|
1180
|
+
showExport?: boolean;
|
|
1168
1181
|
defaultVisibleKeys?: readonly string[];
|
|
1169
1182
|
showButton?: boolean;
|
|
1170
1183
|
onVisibleChange?: (columns: readonly TableColumn<T>[]) => void;
|
|
@@ -1295,6 +1308,7 @@ interface InputSelectProps {
|
|
|
1295
1308
|
displayField?: "label" | "value";
|
|
1296
1309
|
showValue?: boolean;
|
|
1297
1310
|
placeholder?: string;
|
|
1311
|
+
placeholderMode?: InputPlaceholderMode;
|
|
1298
1312
|
size?: ControlSize;
|
|
1299
1313
|
status?: ControlStatus;
|
|
1300
1314
|
disabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { O as OverlayContainer, a as OverlayApiHandle } from './core-
|
|
4
|
-
export { B as Badge, b as BadgeProps, c as BadgeRibbonProps, d as BadgeStatus, e as Breadcrumb, f as BreadcrumbItem, g as BreadcrumbProps, h as Button, i as ButtonProps, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, 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-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { S as Select, b as SelectChangeValue, c as SelectMode, d as SelectOption, e as SelectProps, f as SelectValue } from './Select-CJJ5LQap.js';
|
|
3
|
+
import { O as OverlayContainer, a as OverlayApiHandle } from './core-D8BSMfHD.js';
|
|
4
|
+
export { B as Badge, b as BadgeProps, c as BadgeRibbonProps, d as BadgeStatus, e as Breadcrumb, f as BreadcrumbItem, g as BreadcrumbProps, h as Button, i as ButtonProps, j as ButtonSize, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, T as IconVariant, U as Image, V as ImagePreview, W as ImagePreviewConfig, X as ImagePreviewProps, Y as ImageProps, Z as Input, _ as InputProps, $ as Menu, a0 as MenuClickInfo, a1 as MenuItem, a2 as MenuMode, a3 as MenuProps, a4 as MenuTheme, a5 as MessageConfig, a6 as MessageHandle, a7 as MessageKey, a8 as MessageType, a9 as Modal, aa as ModalActionResult, ab as ModalOpenConfig, ac as ModalProps, ad as ModalType, ae as NotificationConfig, af as NotificationPlacement, ag as NotificationType, ah as Popconfirm, ai as PopconfirmProps, aj as Popover, ak as PopoverProps, al as Progress, am as ProgressProps, an as ProgressStatus, ao as Rate, ap as RateProps, aq as Segmented, ar as SegmentedOption, as as SegmentedProps, at as SegmentedValue, au as Spin, av as SpinProps, aw as StepItem, ax as StepStatus, ay as Steps, az as StepsProps, aA as TabItem, aB as Tabs, aC as TabsContextMenuClickInfo, aD as TabsOrientation, aE as TabsPosition, aF as TabsProps, aG as TabsType, aH as Tag, aI as TagProps, aJ as TagStatus, 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-D8BSMfHD.js';
|
|
5
|
+
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-DAYZvZVu.js';
|
|
6
|
+
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-CQ1vmze_.js';
|
|
8
7
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
|
|
9
8
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
|
|
10
9
|
import * as Monaco from 'monaco-editor';
|
|
10
|
+
export { S as Select, a as SelectChangeValue, b as SelectMode, c as SelectOption, d as SelectProps, e as SelectValue } from './Select-rtDktLYY.js';
|
|
11
11
|
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';
|
|
12
12
|
import 'vditor';
|
|
13
13
|
|
|
@@ -71,13 +71,14 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVal
|
|
|
71
71
|
changeOnSelect?: boolean;
|
|
72
72
|
expandTrigger?: "click" | "hover";
|
|
73
73
|
placeholder?: ReactNode;
|
|
74
|
+
placeholderMode?: InputPlaceholderMode;
|
|
74
75
|
disabled?: boolean;
|
|
75
76
|
fieldNames?: CascaderFieldNames;
|
|
76
77
|
displayRender?: (labels: ReactNode[], selectedOptions: CascaderOption[]) => ReactNode;
|
|
77
78
|
loadData?: (selectedOptions: CascaderOption[]) => void | Promise<void>;
|
|
78
79
|
onChange?: (value: readonly CascaderValue[] | readonly (readonly CascaderValue[])[] | undefined, selectedOptions: CascaderOption[] | CascaderOption[][]) => void;
|
|
79
80
|
}
|
|
80
|
-
declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
|
|
81
|
+
declare function Cascader({ options, value, defaultValue, multiple, showSearch, allowClear, changeOnSelect, expandTrigger, placeholder, placeholderMode, disabled, fieldNames, displayRender, loadData, onChange, className, ...props }: CascaderProps): react.JSX.Element;
|
|
81
82
|
|
|
82
83
|
type LayoutGap = "small" | "medium" | "large" | number | string;
|
|
83
84
|
type FlexAlign = "normal" | "start" | "center" | "end" | "stretch" | "baseline";
|
|
@@ -300,6 +301,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
300
301
|
form?: FormInstance;
|
|
301
302
|
initialValues?: FormValues;
|
|
302
303
|
layout?: "horizontal" | "vertical" | "inline";
|
|
304
|
+
placeholderMode?: InputPlaceholderMode;
|
|
303
305
|
disabled?: boolean;
|
|
304
306
|
requiredMark?: boolean | "optional";
|
|
305
307
|
onFinish?: (values: FormValues) => void;
|
|
@@ -309,7 +311,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
309
311
|
}) => void;
|
|
310
312
|
onValuesChange?: (changedValues: FormValues, values: FormValues) => void;
|
|
311
313
|
}
|
|
312
|
-
declare function FormRoot({ form, initialValues, layout, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
|
|
314
|
+
declare function FormRoot({ form, initialValues, layout, placeholderMode, disabled, requiredMark, className, onFinish, onFinishFailed, onValuesChange, children, ...props }: FormProps): react.JSX.Element;
|
|
313
315
|
interface FormItemProps {
|
|
314
316
|
name?: NamePath;
|
|
315
317
|
label?: ReactNode;
|
|
@@ -461,6 +463,7 @@ interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "default
|
|
|
461
463
|
declare function ColorPicker({ value, defaultValue, mode, defaultMode, modes, disabled, allowClear, showText, showAlpha, presets, className, onChange, onChangeComplete, onModeChange, onClear, ...props }: ColorPickerProps): react.JSX.Element;
|
|
462
464
|
|
|
463
465
|
interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "value" | "defaultValue" | "onChange"> {
|
|
466
|
+
placeholderMode?: InputPlaceholderMode;
|
|
464
467
|
value?: string;
|
|
465
468
|
defaultValue?: string;
|
|
466
469
|
size?: ControlSize;
|
|
@@ -481,7 +484,7 @@ interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "defaultV
|
|
|
481
484
|
onChange?: (value: readonly [string, string]) => void;
|
|
482
485
|
}
|
|
483
486
|
declare function TimeRangePicker({ value, defaultValue, placeholder, separator, onChange, className, style, ...props }: TimeRangePickerProps): react.JSX.Element;
|
|
484
|
-
declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
|
|
487
|
+
declare function TimePicker({ value, defaultValue, size, status, allowClear, use12Hours, showSecond, suffixIcon, disabledTime, disabled, readOnly, className, style, onChange, onOpenChange, placeholder, placeholderMode, min, max, step, ...props }: TimePickerProps): react.JSX.Element;
|
|
485
488
|
declare namespace TimePicker {
|
|
486
489
|
const RangePicker: typeof TimeRangePicker;
|
|
487
490
|
}
|
|
@@ -507,7 +510,9 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
507
510
|
allowClear?: boolean;
|
|
508
511
|
treeDefaultExpandAll?: boolean;
|
|
509
512
|
placeholder?: ReactNode;
|
|
513
|
+
placeholderMode?: InputPlaceholderMode;
|
|
510
514
|
searchPlaceholder?: string;
|
|
515
|
+
/** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
|
|
511
516
|
maxTagCount?: number;
|
|
512
517
|
disabled?: boolean;
|
|
513
518
|
size?: ControlSize;
|
|
@@ -540,7 +545,7 @@ interface TreeSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultV
|
|
|
540
545
|
onSearch?: (value: string) => void;
|
|
541
546
|
onDropdownVisibleChange?: (open: boolean) => void;
|
|
542
547
|
}
|
|
543
|
-
declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
|
|
548
|
+
declare function TreeSelect({ treeData, value, defaultValue, multiple, treeCheckable, showSearch, allowClear, treeDefaultExpandAll, placeholder, placeholderMode, searchPlaceholder, maxTagCount, disabled, size, status, className, onChange, onSearch, onDropdownVisibleChange, open: controlledOpen, defaultOpen, searchValue, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, filterTreeNode, treeCheckStrictly, showCheckedStrategy, loading, listHeight, popupClassName, popupStyle, dropdownFooter, displayRender, renderTrigger, onClear, onSelect, onDeselect, ...props }: TreeSelectProps): react.JSX.Element;
|
|
544
549
|
|
|
545
550
|
interface FlatTreeOptions {
|
|
546
551
|
idField?: string;
|
|
@@ -558,6 +563,7 @@ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
|
558
563
|
hint?: ReactNode;
|
|
559
564
|
status?: ControlStatus;
|
|
560
565
|
showCount?: boolean;
|
|
566
|
+
placeholderMode?: InputPlaceholderMode;
|
|
561
567
|
}
|
|
562
568
|
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
563
569
|
|
|
@@ -767,6 +773,7 @@ interface TableColumn<T = Record<string, unknown>> {
|
|
|
767
773
|
align?: TableAlign;
|
|
768
774
|
fixed?: TableFixed | boolean;
|
|
769
775
|
hidden?: boolean;
|
|
776
|
+
/** 默认单行显示并省略溢出内容(含 Space 标签组);设为 false 允许多行。 */
|
|
770
777
|
ellipsis?: boolean;
|
|
771
778
|
showTitle?: boolean;
|
|
772
779
|
sortable?: boolean;
|
|
@@ -873,6 +880,8 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
873
880
|
tableHeight?: number | string;
|
|
874
881
|
size?: TableSize;
|
|
875
882
|
bordered?: boolean;
|
|
883
|
+
/** 是否将工具栏纳入表格边框,默认 false;表格主体边框仍由 bordered 控制。 */
|
|
884
|
+
toolbarBordered?: boolean;
|
|
876
885
|
striped?: boolean;
|
|
877
886
|
virtual?: boolean;
|
|
878
887
|
virtualThreshold?: number;
|
|
@@ -1165,6 +1174,10 @@ interface TableResizeApi {
|
|
|
1165
1174
|
}
|
|
1166
1175
|
declare function createResizePlugin<T extends Record<string, unknown>>(options?: TableResizePluginOptions): TablePlugin<T, ResizeState, TableResizeApi>;
|
|
1167
1176
|
interface TableColumnSettingPluginOptions<T> {
|
|
1177
|
+
/** 追加到设置下拉菜单中的业务操作。 */
|
|
1178
|
+
menuItems?: readonly TableToolbarItem<T>[];
|
|
1179
|
+
/** 是否显示设置菜单中的导出操作,默认 true。 */
|
|
1180
|
+
showExport?: boolean;
|
|
1168
1181
|
defaultVisibleKeys?: readonly string[];
|
|
1169
1182
|
showButton?: boolean;
|
|
1170
1183
|
onVisibleChange?: (columns: readonly TableColumn<T>[]) => void;
|
|
@@ -1295,6 +1308,7 @@ interface InputSelectProps {
|
|
|
1295
1308
|
displayField?: "label" | "value";
|
|
1296
1309
|
showValue?: boolean;
|
|
1297
1310
|
placeholder?: string;
|
|
1311
|
+
placeholderMode?: InputPlaceholderMode;
|
|
1298
1312
|
size?: ControlSize;
|
|
1299
1313
|
status?: ControlStatus;
|
|
1300
1314
|
disabled?: boolean;
|