@sia.soul/sia-react-ui 0.1.83 → 0.1.84
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/{chunk-BCOFQJ76.js → chunk-2ETLCXNS.js} +2 -2
- package/dist/{chunk-N6DVNCZT.js → chunk-36FXHK4W.js} +2 -2
- package/dist/{chunk-SBNHEETW.js → chunk-N4P3QKCY.js} +1 -1
- package/dist/{chunk-CLBWJEID.js → chunk-VNVDG4AC.js} +2 -2
- package/dist/{chunk-V4GGPMKS.js → chunk-W3EKQOPR.js} +1 -1
- package/dist/{core-DOEG2EHr.d.cts → core-BT21wlHN.d.cts} +7 -1
- package/dist/{core-BjXlrCQ3.d.ts → core-OI4ySo2K.d.ts} +7 -1
- package/dist/core.cjs +2 -2
- package/dist/core.css +117 -0
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/index.cjs +406 -59
- package/dist/index.css +117 -0
- package/dist/index.d.cts +45 -8
- package/dist/index.d.ts +45 -8
- package/dist/index.js +407 -60
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -5055,6 +5055,69 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5055
5055
|
gap: var(--sia-query-field-gap, 8px);
|
|
5056
5056
|
padding-top: 8px;
|
|
5057
5057
|
}
|
|
5058
|
+
.sia-query-settings {
|
|
5059
|
+
display: grid;
|
|
5060
|
+
gap: 12px;
|
|
5061
|
+
}
|
|
5062
|
+
.sia-query-settings__trigger.sia-button {
|
|
5063
|
+
padding-inline: 6px;
|
|
5064
|
+
}
|
|
5065
|
+
.sia-query-settings__hint {
|
|
5066
|
+
margin: 0;
|
|
5067
|
+
color: var(--sia-color-text-secondary);
|
|
5068
|
+
}
|
|
5069
|
+
.sia-query-settings__list {
|
|
5070
|
+
display: grid;
|
|
5071
|
+
gap: 6px;
|
|
5072
|
+
max-height: 360px;
|
|
5073
|
+
overflow-y: auto;
|
|
5074
|
+
}
|
|
5075
|
+
.sia-query-settings__item {
|
|
5076
|
+
position: relative;
|
|
5077
|
+
display: flex;
|
|
5078
|
+
align-items: center;
|
|
5079
|
+
gap: 8px;
|
|
5080
|
+
min-height: 42px;
|
|
5081
|
+
padding: 8px;
|
|
5082
|
+
background: var(--sia-color-surface);
|
|
5083
|
+
border: 1px solid var(--sia-color-border);
|
|
5084
|
+
border-radius: var(--sia-radius);
|
|
5085
|
+
touch-action: none;
|
|
5086
|
+
cursor: grab;
|
|
5087
|
+
}
|
|
5088
|
+
.sia-query-settings__item.is-disabled {
|
|
5089
|
+
cursor: default;
|
|
5090
|
+
}
|
|
5091
|
+
.sia-query-settings__name {
|
|
5092
|
+
flex: 1;
|
|
5093
|
+
min-width: 0;
|
|
5094
|
+
overflow-wrap: anywhere;
|
|
5095
|
+
}
|
|
5096
|
+
.sia-query-settings__list.is-sorting .sia-query-settings__item {
|
|
5097
|
+
transition: transform 180ms ease;
|
|
5098
|
+
user-select: none;
|
|
5099
|
+
}
|
|
5100
|
+
.sia-query-settings__list.is-sorting .sia-query-settings__item.is-dragging {
|
|
5101
|
+
z-index: 2;
|
|
5102
|
+
transition: none;
|
|
5103
|
+
cursor: grabbing;
|
|
5104
|
+
border-color: var(--sia-color-primary);
|
|
5105
|
+
background: var(--sia-color-primary-light);
|
|
5106
|
+
box-shadow: 0 4px 10px -3px rgb(0 0 0 / 25%);
|
|
5107
|
+
}
|
|
5108
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5109
|
+
.sia-query-settings__list.is-sorting .sia-query-settings__item {
|
|
5110
|
+
transition: none;
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
.sia-query-settings__item > .sia-checkbox {
|
|
5114
|
+
min-width: 0;
|
|
5115
|
+
overflow-wrap: anywhere;
|
|
5116
|
+
}
|
|
5117
|
+
.sia-query-settings__order {
|
|
5118
|
+
display: flex;
|
|
5119
|
+
flex-shrink: 0;
|
|
5120
|
+
}
|
|
5058
5121
|
.sia-query-form__field {
|
|
5059
5122
|
--sia-query-item-width: var(--sia-query-field-width, 220px);
|
|
5060
5123
|
flex: 0 1 var(--sia-query-item-width);
|
|
@@ -10539,6 +10602,60 @@ button.sia-treemap__tile:focus-visible,
|
|
|
10539
10602
|
.sia-time-panel button {
|
|
10540
10603
|
font: inherit;
|
|
10541
10604
|
}
|
|
10605
|
+
.sia-segmented.sia-segmented--zigzag {
|
|
10606
|
+
gap: 0;
|
|
10607
|
+
padding: 0;
|
|
10608
|
+
overflow: hidden;
|
|
10609
|
+
background: var(--sia-color-surface);
|
|
10610
|
+
border: 1px solid var(--sia-color-border);
|
|
10611
|
+
border-radius: 999px;
|
|
10612
|
+
}
|
|
10613
|
+
.sia-segmented--zigzag:not(.sia-segmented--block) {
|
|
10614
|
+
width: max-content;
|
|
10615
|
+
}
|
|
10616
|
+
.sia-segmented--zigzag button {
|
|
10617
|
+
position: relative;
|
|
10618
|
+
isolation: isolate;
|
|
10619
|
+
padding-inline: 20px;
|
|
10620
|
+
border-radius: 0;
|
|
10621
|
+
}
|
|
10622
|
+
.sia-segmented--zigzag button::before {
|
|
10623
|
+
position: absolute;
|
|
10624
|
+
z-index: -1;
|
|
10625
|
+
inset: 0;
|
|
10626
|
+
content: "";
|
|
10627
|
+
background: var(--sia-color-surface);
|
|
10628
|
+
transition: background 140ms ease;
|
|
10629
|
+
pointer-events: none;
|
|
10630
|
+
}
|
|
10631
|
+
.sia-segmented--zigzag button:first-child::before {
|
|
10632
|
+
right: -6px;
|
|
10633
|
+
clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 42%, calc(100% - 2px) 42%, calc(100% - 12px) 100%, 0 100%);
|
|
10634
|
+
}
|
|
10635
|
+
.sia-segmented--zigzag button:last-child::before {
|
|
10636
|
+
left: -6px;
|
|
10637
|
+
clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 10px 42%, 2px 42%);
|
|
10638
|
+
}
|
|
10639
|
+
.sia-segmented--zigzag button:hover:not(:disabled)::before {
|
|
10640
|
+
background: var(--sia-color-control-hover);
|
|
10641
|
+
}
|
|
10642
|
+
.sia-segmented--zigzag button.is-selected {
|
|
10643
|
+
z-index: 1;
|
|
10644
|
+
color: #fff;
|
|
10645
|
+
background: transparent;
|
|
10646
|
+
box-shadow: none;
|
|
10647
|
+
}
|
|
10648
|
+
.sia-segmented--zigzag button.is-selected::before,
|
|
10649
|
+
.sia-segmented--zigzag button.is-selected:hover:not(:disabled)::before {
|
|
10650
|
+
background: var(--sia-color-primary);
|
|
10651
|
+
}
|
|
10652
|
+
.sia-segmented--zigzag button.is-selected:hover:not(:disabled) {
|
|
10653
|
+
color: #fff;
|
|
10654
|
+
}
|
|
10655
|
+
.sia-segmented--zigzag button:focus-visible {
|
|
10656
|
+
outline: 2px solid var(--sia-color-primary);
|
|
10657
|
+
outline-offset: -2px;
|
|
10658
|
+
}
|
|
10542
10659
|
|
|
10543
10660
|
/* src/title-tooltip.css */
|
|
10544
10661
|
body > .sia-title-tooltip[data-sia-popup-layer] {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-BT21wlHN.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 TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-BT21wlHN.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';
|
|
@@ -1838,6 +1838,37 @@ interface TreemapProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">
|
|
|
1838
1838
|
/** 矩形树图组件。 */
|
|
1839
1839
|
declare function Treemap({ data, activeKey, expandedKeys, defaultExpandedKeys, focusedKey, defaultFocusedKey, gap, headerHeight, minLabelWidth, minLabelHeight, minTileWidth, minTileHeight, maxVisibleNodes, aggregateOverflow, emptyContent, valueFormatter, overflowLabel, showValueInCompactTiles, onExpandedChange, onFocusedChange, onNodeClick, className, style, ...props }: TreemapProps): react.JSX.Element;
|
|
1840
1840
|
|
|
1841
|
+
/** 单个查询条件的云端布局;key 对应 QueryFormField.key 或直接子项的 React key。 */
|
|
1842
|
+
interface QueryFormFieldSetting {
|
|
1843
|
+
/** 查询条件的稳定标识,修改标识会被视为新增字段。 */
|
|
1844
|
+
key: string;
|
|
1845
|
+
/** 是否显示该条件;隐藏仅影响布局,不清空值或卸载字段。 */
|
|
1846
|
+
visible: boolean;
|
|
1847
|
+
/** 从 0 开始的排列序号;序号相同时保持原字段顺序。 */
|
|
1848
|
+
order: number;
|
|
1849
|
+
}
|
|
1850
|
+
/** 保存在共用配置 queryForm 属性中的查询布局,不包含查询值或快捷查询记录。 */
|
|
1851
|
+
interface QueryFormSettingsSnapshot {
|
|
1852
|
+
/** 字段显隐和顺序;未保存的新字段默认显示并追加到末尾。 */
|
|
1853
|
+
fields: readonly QueryFormFieldSetting[];
|
|
1854
|
+
/** 加载或应用设置后的默认收起状态;受控 collapsed 优先,collapsible=false 时不折叠。 */
|
|
1855
|
+
defaultCollapsed: boolean;
|
|
1856
|
+
}
|
|
1857
|
+
/** 查询云设置入口;与表格共用适配器实例及业务标识,分别读写 queryForm 和 columns。 */
|
|
1858
|
+
interface QueryFormSettingsConfig {
|
|
1859
|
+
/** 共用配置的异步读写适配器;挂载及打开设置时读取,保存前读取最新快照并合并,失败保留面板和草稿。 */
|
|
1860
|
+
adapter: TableSettingsAdapter;
|
|
1861
|
+
/** 云配置所属业务;与列设置使用相同 scope 可保存到同一记录。 */
|
|
1862
|
+
scope: {
|
|
1863
|
+
/** 所属业务模块名称。 */
|
|
1864
|
+
moduleName: string;
|
|
1865
|
+
/** 模块内配置记录的稳定标识。 */
|
|
1866
|
+
businessKey: string;
|
|
1867
|
+
};
|
|
1868
|
+
/** 配置读取或保存失败时通知;界面同时显示错误,不清除已应用设置。 */
|
|
1869
|
+
onError?: (error: unknown, operation: "load" | "save") => void;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1841
1872
|
/** 表格行或列的唯一标识类型。 */
|
|
1842
1873
|
type TableKey = Key;
|
|
1843
1874
|
/** 表格列的固定方向。 */
|
|
@@ -2264,8 +2295,10 @@ interface TableColumnSettingItem {
|
|
|
2264
2295
|
/** 排序位置或排序方向。 */
|
|
2265
2296
|
order: number;
|
|
2266
2297
|
}
|
|
2267
|
-
/**
|
|
2298
|
+
/** 表格与查询区共用的持久化快照;分别使用 columns/pageSize 和 queryForm 保存各自设置。 */
|
|
2268
2299
|
interface TableSettingsSnapshot {
|
|
2300
|
+
/** 查询条件的显隐、排序及默认收起设置;保存列设置时保留该属性。 */
|
|
2301
|
+
queryForm?: QueryFormSettingsSnapshot;
|
|
2269
2302
|
/** 列配置或选项布局列数,具体类型见签名。 */
|
|
2270
2303
|
columns?: readonly TableColumnSettingItem[];
|
|
2271
2304
|
/** 每页显示的记录数。 */
|
|
@@ -2275,14 +2308,14 @@ interface TableSettingsSnapshot {
|
|
|
2275
2308
|
}
|
|
2276
2309
|
/** 读取与保存表格设置的适配器契约。 */
|
|
2277
2310
|
interface TableSettingsAdapter {
|
|
2278
|
-
/** 按 scope
|
|
2311
|
+
/** 按 scope 读取共用配置;挂载、打开设置及合并保存前调用。无配置时返回 null;应保留 queryForm、columns、pageSize 等完整属性。 */
|
|
2279
2312
|
load: (scope: {
|
|
2280
2313
|
/** 所属业务模块名称。 */
|
|
2281
2314
|
moduleName: string;
|
|
2282
2315
|
/** 同一模块内用于区分表格配置的业务标识。 */
|
|
2283
2316
|
businessKey: string;
|
|
2284
2317
|
}) => Promise<TableSettingsSnapshot | null>;
|
|
2285
|
-
/** 按 scope
|
|
2318
|
+
/** 按 scope 保存完整配置;用于查询设置、列设置、列宽或分页变化。框架保存前合并最新记录,同页共用适配器实例时串行写入;失败应拒绝 Promise。 */
|
|
2286
2319
|
save: (scope: {
|
|
2287
2320
|
/** 所属业务模块名称。 */
|
|
2288
2321
|
moduleName: string;
|
|
@@ -3084,6 +3117,8 @@ declare const InputSelect: react.ForwardRefExoticComponent<InputSelectProps & re
|
|
|
3084
3117
|
interface QueryFormField extends FormItemProps {
|
|
3085
3118
|
/** 字段布局的稳定唯一标识;用于 React 渲染,不替代 Form.Item 的 name 字段路径。 */
|
|
3086
3119
|
key: string;
|
|
3120
|
+
/** 查询设置面板中的名称;默认取 label、控件 placeholder,最后回退为 key,不影响表单标签。 */
|
|
3121
|
+
settingsLabel?: ReactNode;
|
|
3087
3122
|
/** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列,SelectDateRange 占三列,均包含跨列间距。 */
|
|
3088
3123
|
width?: number | string;
|
|
3089
3124
|
}
|
|
@@ -3117,6 +3152,8 @@ interface QueryFormSearchInfo {
|
|
|
3117
3152
|
interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormProps, "onFinish" | "children" | "onError"> {
|
|
3118
3153
|
/** 查询字段配置,每项包含稳定 key、可选宽度以及 Form.Item 属性;提供后优先于 children。 */
|
|
3119
3154
|
fields?: readonly QueryFormField[];
|
|
3155
|
+
/** 云设置入口,在查询操作按钮组末尾显示竖向三点图标;复用表格 adapter 和 scope,读写共用快照的 queryForm 属性。未提供时不显示入口。隐藏字段保留挂载和值;children 模式需提供稳定 React key。 */
|
|
3156
|
+
settings?: QueryFormSettingsConfig;
|
|
3120
3157
|
/** 也可直接放入 Form.Item 或 Space.Compact,每个直接子项视为一个查询字段。 */
|
|
3121
3158
|
children?: ReactNode;
|
|
3122
3159
|
/** 表单校验通过后执行查询。values 是完整条件;info.source 区分 submit(查询)、reset(重置)、quick(顶部预设)和 saved(已保存条件)。返回 Promise 时自动显示加载状态并阻止重复提交。 */
|
|
@@ -3139,7 +3176,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3139
3176
|
/** 受控收起状态,需在 onCollapsedChange 中更新;全部字段能单行显示时不执行收起。收起时保留字段挂载和值,只隐藏放不下的字段,底部快捷标签始终保留。 */
|
|
3140
3177
|
collapsed?: boolean;
|
|
3141
3178
|
/**
|
|
3142
|
-
*
|
|
3179
|
+
* 非受控模式的初始收起状态;默认展开全部查询条件。启用 settings 后,云端 defaultCollapsed 在加载完成时优先;受控 collapsed 始终优先。
|
|
3143
3180
|
* @defaultValue false
|
|
3144
3181
|
*/
|
|
3145
3182
|
defaultCollapsed?: boolean;
|
|
@@ -3205,7 +3242,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3205
3242
|
actionsExtra?: ReactNode;
|
|
3206
3243
|
}
|
|
3207
3244
|
/** 可复用的业务查询表单;快捷查询的存储和结果数据由业务方管理。 */
|
|
3208
|
-
declare function QueryForm<T extends FormValues = FormValues>({ fields, children, form: providedForm, onSearch, loading, fieldWidth, collapsible, collapsed: controlledCollapsed, defaultCollapsed, collapsedCount, onCollapsedChange, quickQueries, quickQuerySize, savedQueries, shortcutsLoading, onSaveQuery, onRemoveQuery, onError, searchText, resetText, saveText, resetSearch, actionsExtra, disabled, className, placeholderMode, onValuesChange, onFinishFailed, ...formProps }: QueryFormProps<T>): react.JSX.Element;
|
|
3245
|
+
declare function QueryForm<T extends FormValues = FormValues>({ fields, settings, children, form: providedForm, onSearch, loading, fieldWidth, collapsible, collapsed: controlledCollapsed, defaultCollapsed, collapsedCount, onCollapsedChange, quickQueries, quickQuerySize, savedQueries, shortcutsLoading, onSaveQuery, onRemoveQuery, onError, searchText, resetText, saveText, resetSearch, actionsExtra, disabled, className, placeholderMode, onValuesChange, onFinishFailed, ...formProps }: QueryFormProps<T>): react.JSX.Element;
|
|
3209
3246
|
|
|
3210
3247
|
/** 数字区间,依次为下限和上限;null 表示该端未填写,0 是有效数值。 */
|
|
3211
3248
|
type NumberRangeValue = [number | null, number | null];
|
|
@@ -3245,4 +3282,4 @@ interface NumberRangeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChan
|
|
|
3245
3282
|
/** 日期区间风格的双数字输入框,使用波浪线分隔;可直接绑定 Form.Item。 */
|
|
3246
3283
|
declare const NumberRange: react.ForwardRefExoticComponent<NumberRangeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3247
3284
|
|
|
3248
|
-
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingScrollbarProvider, type FloatingScrollbarProviderProps, Form, type FormErrorField, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormProps, type QueryFormSearchInfo, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, openSelectModal, useForm };
|
|
3285
|
+
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingScrollbarProvider, type FloatingScrollbarProviderProps, Form, type FormErrorField, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormFieldSetting, type QueryFormProps, type QueryFormSearchInfo, type QueryFormSettingsConfig, type QueryFormSettingsSnapshot, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, openSelectModal, useForm };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-OI4ySo2K.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 TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-OI4ySo2K.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';
|
|
@@ -1838,6 +1838,37 @@ interface TreemapProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">
|
|
|
1838
1838
|
/** 矩形树图组件。 */
|
|
1839
1839
|
declare function Treemap({ data, activeKey, expandedKeys, defaultExpandedKeys, focusedKey, defaultFocusedKey, gap, headerHeight, minLabelWidth, minLabelHeight, minTileWidth, minTileHeight, maxVisibleNodes, aggregateOverflow, emptyContent, valueFormatter, overflowLabel, showValueInCompactTiles, onExpandedChange, onFocusedChange, onNodeClick, className, style, ...props }: TreemapProps): react.JSX.Element;
|
|
1840
1840
|
|
|
1841
|
+
/** 单个查询条件的云端布局;key 对应 QueryFormField.key 或直接子项的 React key。 */
|
|
1842
|
+
interface QueryFormFieldSetting {
|
|
1843
|
+
/** 查询条件的稳定标识,修改标识会被视为新增字段。 */
|
|
1844
|
+
key: string;
|
|
1845
|
+
/** 是否显示该条件;隐藏仅影响布局,不清空值或卸载字段。 */
|
|
1846
|
+
visible: boolean;
|
|
1847
|
+
/** 从 0 开始的排列序号;序号相同时保持原字段顺序。 */
|
|
1848
|
+
order: number;
|
|
1849
|
+
}
|
|
1850
|
+
/** 保存在共用配置 queryForm 属性中的查询布局,不包含查询值或快捷查询记录。 */
|
|
1851
|
+
interface QueryFormSettingsSnapshot {
|
|
1852
|
+
/** 字段显隐和顺序;未保存的新字段默认显示并追加到末尾。 */
|
|
1853
|
+
fields: readonly QueryFormFieldSetting[];
|
|
1854
|
+
/** 加载或应用设置后的默认收起状态;受控 collapsed 优先,collapsible=false 时不折叠。 */
|
|
1855
|
+
defaultCollapsed: boolean;
|
|
1856
|
+
}
|
|
1857
|
+
/** 查询云设置入口;与表格共用适配器实例及业务标识,分别读写 queryForm 和 columns。 */
|
|
1858
|
+
interface QueryFormSettingsConfig {
|
|
1859
|
+
/** 共用配置的异步读写适配器;挂载及打开设置时读取,保存前读取最新快照并合并,失败保留面板和草稿。 */
|
|
1860
|
+
adapter: TableSettingsAdapter;
|
|
1861
|
+
/** 云配置所属业务;与列设置使用相同 scope 可保存到同一记录。 */
|
|
1862
|
+
scope: {
|
|
1863
|
+
/** 所属业务模块名称。 */
|
|
1864
|
+
moduleName: string;
|
|
1865
|
+
/** 模块内配置记录的稳定标识。 */
|
|
1866
|
+
businessKey: string;
|
|
1867
|
+
};
|
|
1868
|
+
/** 配置读取或保存失败时通知;界面同时显示错误,不清除已应用设置。 */
|
|
1869
|
+
onError?: (error: unknown, operation: "load" | "save") => void;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1841
1872
|
/** 表格行或列的唯一标识类型。 */
|
|
1842
1873
|
type TableKey = Key;
|
|
1843
1874
|
/** 表格列的固定方向。 */
|
|
@@ -2264,8 +2295,10 @@ interface TableColumnSettingItem {
|
|
|
2264
2295
|
/** 排序位置或排序方向。 */
|
|
2265
2296
|
order: number;
|
|
2266
2297
|
}
|
|
2267
|
-
/**
|
|
2298
|
+
/** 表格与查询区共用的持久化快照;分别使用 columns/pageSize 和 queryForm 保存各自设置。 */
|
|
2268
2299
|
interface TableSettingsSnapshot {
|
|
2300
|
+
/** 查询条件的显隐、排序及默认收起设置;保存列设置时保留该属性。 */
|
|
2301
|
+
queryForm?: QueryFormSettingsSnapshot;
|
|
2269
2302
|
/** 列配置或选项布局列数,具体类型见签名。 */
|
|
2270
2303
|
columns?: readonly TableColumnSettingItem[];
|
|
2271
2304
|
/** 每页显示的记录数。 */
|
|
@@ -2275,14 +2308,14 @@ interface TableSettingsSnapshot {
|
|
|
2275
2308
|
}
|
|
2276
2309
|
/** 读取与保存表格设置的适配器契约。 */
|
|
2277
2310
|
interface TableSettingsAdapter {
|
|
2278
|
-
/** 按 scope
|
|
2311
|
+
/** 按 scope 读取共用配置;挂载、打开设置及合并保存前调用。无配置时返回 null;应保留 queryForm、columns、pageSize 等完整属性。 */
|
|
2279
2312
|
load: (scope: {
|
|
2280
2313
|
/** 所属业务模块名称。 */
|
|
2281
2314
|
moduleName: string;
|
|
2282
2315
|
/** 同一模块内用于区分表格配置的业务标识。 */
|
|
2283
2316
|
businessKey: string;
|
|
2284
2317
|
}) => Promise<TableSettingsSnapshot | null>;
|
|
2285
|
-
/** 按 scope
|
|
2318
|
+
/** 按 scope 保存完整配置;用于查询设置、列设置、列宽或分页变化。框架保存前合并最新记录,同页共用适配器实例时串行写入;失败应拒绝 Promise。 */
|
|
2286
2319
|
save: (scope: {
|
|
2287
2320
|
/** 所属业务模块名称。 */
|
|
2288
2321
|
moduleName: string;
|
|
@@ -3084,6 +3117,8 @@ declare const InputSelect: react.ForwardRefExoticComponent<InputSelectProps & re
|
|
|
3084
3117
|
interface QueryFormField extends FormItemProps {
|
|
3085
3118
|
/** 字段布局的稳定唯一标识;用于 React 渲染,不替代 Form.Item 的 name 字段路径。 */
|
|
3086
3119
|
key: string;
|
|
3120
|
+
/** 查询设置面板中的名称;默认取 label、控件 placeholder,最后回退为 key,不影响表单标签。 */
|
|
3121
|
+
settingsLabel?: ReactNode;
|
|
3087
3122
|
/** 字段占用宽度,优先于自动布局。未指定时普通控件占一列,日期/时间区间及横向组合控件占两列,SelectDateRange 占三列,均包含跨列间距。 */
|
|
3088
3123
|
width?: number | string;
|
|
3089
3124
|
}
|
|
@@ -3117,6 +3152,8 @@ interface QueryFormSearchInfo {
|
|
|
3117
3152
|
interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormProps, "onFinish" | "children" | "onError"> {
|
|
3118
3153
|
/** 查询字段配置,每项包含稳定 key、可选宽度以及 Form.Item 属性;提供后优先于 children。 */
|
|
3119
3154
|
fields?: readonly QueryFormField[];
|
|
3155
|
+
/** 云设置入口,在查询操作按钮组末尾显示竖向三点图标;复用表格 adapter 和 scope,读写共用快照的 queryForm 属性。未提供时不显示入口。隐藏字段保留挂载和值;children 模式需提供稳定 React key。 */
|
|
3156
|
+
settings?: QueryFormSettingsConfig;
|
|
3120
3157
|
/** 也可直接放入 Form.Item 或 Space.Compact,每个直接子项视为一个查询字段。 */
|
|
3121
3158
|
children?: ReactNode;
|
|
3122
3159
|
/** 表单校验通过后执行查询。values 是完整条件;info.source 区分 submit(查询)、reset(重置)、quick(顶部预设)和 saved(已保存条件)。返回 Promise 时自动显示加载状态并阻止重复提交。 */
|
|
@@ -3139,7 +3176,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3139
3176
|
/** 受控收起状态,需在 onCollapsedChange 中更新;全部字段能单行显示时不执行收起。收起时保留字段挂载和值,只隐藏放不下的字段,底部快捷标签始终保留。 */
|
|
3140
3177
|
collapsed?: boolean;
|
|
3141
3178
|
/**
|
|
3142
|
-
*
|
|
3179
|
+
* 非受控模式的初始收起状态;默认展开全部查询条件。启用 settings 后,云端 defaultCollapsed 在加载完成时优先;受控 collapsed 始终优先。
|
|
3143
3180
|
* @defaultValue false
|
|
3144
3181
|
*/
|
|
3145
3182
|
defaultCollapsed?: boolean;
|
|
@@ -3205,7 +3242,7 @@ interface QueryFormProps<T extends FormValues = FormValues> extends Omit<FormPro
|
|
|
3205
3242
|
actionsExtra?: ReactNode;
|
|
3206
3243
|
}
|
|
3207
3244
|
/** 可复用的业务查询表单;快捷查询的存储和结果数据由业务方管理。 */
|
|
3208
|
-
declare function QueryForm<T extends FormValues = FormValues>({ fields, children, form: providedForm, onSearch, loading, fieldWidth, collapsible, collapsed: controlledCollapsed, defaultCollapsed, collapsedCount, onCollapsedChange, quickQueries, quickQuerySize, savedQueries, shortcutsLoading, onSaveQuery, onRemoveQuery, onError, searchText, resetText, saveText, resetSearch, actionsExtra, disabled, className, placeholderMode, onValuesChange, onFinishFailed, ...formProps }: QueryFormProps<T>): react.JSX.Element;
|
|
3245
|
+
declare function QueryForm<T extends FormValues = FormValues>({ fields, settings, children, form: providedForm, onSearch, loading, fieldWidth, collapsible, collapsed: controlledCollapsed, defaultCollapsed, collapsedCount, onCollapsedChange, quickQueries, quickQuerySize, savedQueries, shortcutsLoading, onSaveQuery, onRemoveQuery, onError, searchText, resetText, saveText, resetSearch, actionsExtra, disabled, className, placeholderMode, onValuesChange, onFinishFailed, ...formProps }: QueryFormProps<T>): react.JSX.Element;
|
|
3209
3246
|
|
|
3210
3247
|
/** 数字区间,依次为下限和上限;null 表示该端未填写,0 是有效数值。 */
|
|
3211
3248
|
type NumberRangeValue = [number | null, number | null];
|
|
@@ -3245,4 +3282,4 @@ interface NumberRangeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChan
|
|
|
3245
3282
|
/** 日期区间风格的双数字输入框,使用波浪线分隔;可直接绑定 Form.Item。 */
|
|
3246
3283
|
declare const NumberRange: react.ForwardRefExoticComponent<NumberRangeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3247
3284
|
|
|
3248
|
-
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingScrollbarProvider, type FloatingScrollbarProviderProps, Form, type FormErrorField, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormProps, type QueryFormSearchInfo, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, openSelectModal, useForm };
|
|
3285
|
+
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingScrollbarProvider, type FloatingScrollbarProviderProps, Form, type FormErrorField, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormFieldSetting, type QueryFormProps, type QueryFormSearchInfo, type QueryFormSettingsConfig, type QueryFormSettingsSnapshot, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, openSelectModal, useForm };
|