@sia.soul/sia-react-ui 0.1.167 → 0.1.168
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-Dxevc0f6.d.cts → Select-BXL6JVj0.d.cts} +3 -1
- package/dist/{Select-tsENCXQI.d.ts → Select-xBynHOUn.d.ts} +3 -1
- package/dist/{chunk-5CGJVE4C.js → chunk-55MXRT55.js} +1 -1
- package/dist/{chunk-S6FA6NN3.js → chunk-DQR7EPRA.js} +1 -1
- package/dist/{chunk-KDNOLFDJ.js → chunk-V4YT4LT5.js} +34 -27
- package/dist/{core-D7C32Rdq.d.ts → core-BlCSI1Tm.d.ts} +1 -1
- package/dist/{core-C7Was4Vc.d.cts → core-D_D7pOTq.d.cts} +1 -1
- package/dist/core.cjs +34 -27
- package/dist/core.css +10 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/game.css +10 -2
- package/dist/index.cjs +80 -61
- package/dist/index.css +10 -2
- package/dist/index.d.cts +14 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +49 -37
- package/dist/{select-date-range-AOleKBXc.d.ts → select-date-range-C-29x2BA.d.ts} +1 -1
- package/dist/{select-date-range-BtTkMElI.d.cts → select-date-range-CewOaLtk.d.cts} +1 -1
- package/dist/select-date-range.cjs +34 -27
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +2 -2
- package/package.json +1 -1
|
@@ -183,7 +183,9 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
183
183
|
columns?: number;
|
|
184
184
|
/** 列表最大可视高度,默认 360px。 */
|
|
185
185
|
maxHeight?: number;
|
|
186
|
-
/**
|
|
186
|
+
/** 标题栏右侧搜索框左侧的扩展内容;与内置搜索框一起显示在关闭按钮左侧。 */
|
|
187
|
+
titleExtra?: ReactNode;
|
|
188
|
+
/** 标题下方的独立首行扩展内容,位于选项范围上方。 */
|
|
187
189
|
headerExtra?: ReactNode;
|
|
188
190
|
/** 顶部扩展控件的业务数据,由业务方更新此属性;框架不会自动绑定 headerExtra 内的控件。确认时将当前对象的浅拷贝作为 onConfirm 第三个参数传出,未配置时为 {}。 */
|
|
189
191
|
extraValues?: Record<string, unknown>;
|
|
@@ -183,7 +183,9 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
183
183
|
columns?: number;
|
|
184
184
|
/** 列表最大可视高度,默认 360px。 */
|
|
185
185
|
maxHeight?: number;
|
|
186
|
-
/**
|
|
186
|
+
/** 标题栏右侧搜索框左侧的扩展内容;与内置搜索框一起显示在关闭按钮左侧。 */
|
|
187
|
+
titleExtra?: ReactNode;
|
|
188
|
+
/** 标题下方的独立首行扩展内容,位于选项范围上方。 */
|
|
187
189
|
headerExtra?: ReactNode;
|
|
188
190
|
/** 顶部扩展控件的业务数据,由业务方更新此属性;框架不会自动绑定 headerExtra 内的控件。确认时将当前对象的浅拷贝作为 onConfirm 第三个参数传出,未配置时为 {}。 */
|
|
189
191
|
extraValues?: Record<string, unknown>;
|
|
@@ -1542,6 +1542,27 @@ var Select = forwardRef2(function Select2({
|
|
|
1542
1542
|
open,
|
|
1543
1543
|
title: modalConfig?.title ?? placeholder,
|
|
1544
1544
|
width: modalConfig?.width ?? 900,
|
|
1545
|
+
titleExtra: /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1546
|
+
modalConfig?.titleExtra != null && modalConfig.titleExtra !== false ? modalConfig.titleExtra : null,
|
|
1547
|
+
/* @__PURE__ */ jsx5(
|
|
1548
|
+
Input,
|
|
1549
|
+
{
|
|
1550
|
+
className: "sia-select-modal__search",
|
|
1551
|
+
"aria-label": searchPlaceholder,
|
|
1552
|
+
placeholder: searchPlaceholder,
|
|
1553
|
+
placeholderMode: "default",
|
|
1554
|
+
prefix: /* @__PURE__ */ jsx5(Icon, { name: "search", size: 14 }),
|
|
1555
|
+
value: query,
|
|
1556
|
+
allowClear: true,
|
|
1557
|
+
disabled: modalSubmitting || disabled,
|
|
1558
|
+
onChange: (event) => {
|
|
1559
|
+
setQuery(event.target.value);
|
|
1560
|
+
onSearch?.(event.target.value);
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"sia-select-modal-search"
|
|
1564
|
+
)
|
|
1565
|
+
] }),
|
|
1545
1566
|
confirmLoading: modalSubmitting,
|
|
1546
1567
|
onOpenChange: (next) => {
|
|
1547
1568
|
if (!next) closeDropdown();
|
|
@@ -1556,43 +1577,27 @@ var Select = forwardRef2(function Select2({
|
|
|
1556
1577
|
] }),
|
|
1557
1578
|
children: open ? /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1558
1579
|
modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ jsx5("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
/* @__PURE__ */
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
] }),
|
|
1568
|
-
/* @__PURE__ */ jsx5(
|
|
1569
|
-
Input,
|
|
1570
|
-
{
|
|
1571
|
-
"aria-label": searchPlaceholder,
|
|
1572
|
-
placeholder: searchPlaceholder,
|
|
1573
|
-
prefix: /* @__PURE__ */ jsx5(Icon, { name: "search", size: 14 }),
|
|
1574
|
-
value: query,
|
|
1575
|
-
allowClear: true,
|
|
1576
|
-
onChange: (event) => {
|
|
1577
|
-
setQuery(event.target.value);
|
|
1578
|
-
onSearch?.(event.target.value);
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
)
|
|
1582
|
-
] }),
|
|
1580
|
+
/* @__PURE__ */ jsx5("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ jsxs5("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
1581
|
+
/* @__PURE__ */ jsx5(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
1582
|
+
/* @__PURE__ */ jsxs5(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
1583
|
+
"\u5DF2\u9009\u9879(",
|
|
1584
|
+
modalValues.length,
|
|
1585
|
+
")"
|
|
1586
|
+
] })
|
|
1587
|
+
] }) }),
|
|
1583
1588
|
multiple && showSelectAll ? /* @__PURE__ */ jsxs5("div", { className: "sia-select-modal__actions", children: [
|
|
1584
1589
|
/* @__PURE__ */ jsx5(
|
|
1585
1590
|
Checkbox2,
|
|
1586
1591
|
{
|
|
1587
1592
|
checked: modalEnabled.length > 0 && modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
1588
1593
|
indeterminate: modalEnabled.some((option) => modalValues.includes(option.value)) && !modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
1589
|
-
disabled: !modalEnabled.length,
|
|
1594
|
+
disabled: modalSubmitting || disabled || loading || !modalEnabled.length,
|
|
1590
1595
|
onChange: (checked) => modalBatch(checked ? "all" : "remove"),
|
|
1591
1596
|
children: "\u5168\u9009"
|
|
1592
1597
|
}
|
|
1593
1598
|
),
|
|
1594
|
-
/* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", disabled: !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
1595
|
-
/* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", danger: true, disabled: !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
1599
|
+
/* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", disabled: modalSubmitting || disabled || loading || !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
1600
|
+
/* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", danger: true, disabled: modalSubmitting || disabled || loading || !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
1596
1601
|
] }) : null,
|
|
1597
1602
|
allowInput && canSubmitInput ? /* @__PURE__ */ jsxs5(Button, { variant: "link", onClick: () => {
|
|
1598
1603
|
setModalValues(multiple ? [.../* @__PURE__ */ new Set([...modalValues, inputValue])] : [inputValue]);
|
|
@@ -1611,6 +1616,8 @@ var Select = forwardRef2(function Select2({
|
|
|
1611
1616
|
multiple,
|
|
1612
1617
|
groupCheckable: modalConfig?.groupCheckable,
|
|
1613
1618
|
allowDeselect: allowClear,
|
|
1619
|
+
disabled: modalSubmitting || disabled,
|
|
1620
|
+
loading,
|
|
1614
1621
|
selectedOnly,
|
|
1615
1622
|
showValue,
|
|
1616
1623
|
showSearch: false,
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-B59TIes7.js';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-xBynHOUn.js';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-xLR4Yt57.cjs';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-BXL6JVj0.cjs';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
package/dist/core.cjs
CHANGED
|
@@ -5782,6 +5782,27 @@ var Select = (0, import_react31.forwardRef)(function Select2({
|
|
|
5782
5782
|
open,
|
|
5783
5783
|
title: modalConfig?.title ?? placeholder,
|
|
5784
5784
|
width: modalConfig?.width ?? 900,
|
|
5785
|
+
titleExtra: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
5786
|
+
modalConfig?.titleExtra != null && modalConfig.titleExtra !== false ? modalConfig.titleExtra : null,
|
|
5787
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5788
|
+
Input,
|
|
5789
|
+
{
|
|
5790
|
+
className: "sia-select-modal__search",
|
|
5791
|
+
"aria-label": searchPlaceholder,
|
|
5792
|
+
placeholder: searchPlaceholder,
|
|
5793
|
+
placeholderMode: "default",
|
|
5794
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "search", size: 14 }),
|
|
5795
|
+
value: query,
|
|
5796
|
+
allowClear: true,
|
|
5797
|
+
disabled: modalSubmitting || disabled,
|
|
5798
|
+
onChange: (event) => {
|
|
5799
|
+
setQuery(event.target.value);
|
|
5800
|
+
onSearch?.(event.target.value);
|
|
5801
|
+
}
|
|
5802
|
+
},
|
|
5803
|
+
"sia-select-modal-search"
|
|
5804
|
+
)
|
|
5805
|
+
] }),
|
|
5785
5806
|
confirmLoading: modalSubmitting,
|
|
5786
5807
|
onOpenChange: (next) => {
|
|
5787
5808
|
if (!next) closeDropdown();
|
|
@@ -5796,43 +5817,27 @@ var Select = (0, import_react31.forwardRef)(function Select2({
|
|
|
5796
5817
|
] }),
|
|
5797
5818
|
children: open ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
5798
5819
|
modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
|
|
5799
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.
|
|
5800
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
] }),
|
|
5808
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5809
|
-
Input,
|
|
5810
|
-
{
|
|
5811
|
-
"aria-label": searchPlaceholder,
|
|
5812
|
-
placeholder: searchPlaceholder,
|
|
5813
|
-
prefix: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "search", size: 14 }),
|
|
5814
|
-
value: query,
|
|
5815
|
-
allowClear: true,
|
|
5816
|
-
onChange: (event) => {
|
|
5817
|
-
setQuery(event.target.value);
|
|
5818
|
-
onSearch?.(event.target.value);
|
|
5819
|
-
}
|
|
5820
|
-
}
|
|
5821
|
-
)
|
|
5822
|
-
] }),
|
|
5820
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
5822
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
5823
|
+
"\u5DF2\u9009\u9879(",
|
|
5824
|
+
modalValues.length,
|
|
5825
|
+
")"
|
|
5826
|
+
] })
|
|
5827
|
+
] }) }),
|
|
5823
5828
|
multiple && showSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "sia-select-modal__actions", children: [
|
|
5824
5829
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5825
5830
|
Checkbox2,
|
|
5826
5831
|
{
|
|
5827
5832
|
checked: modalEnabled.length > 0 && modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
5828
5833
|
indeterminate: modalEnabled.some((option) => modalValues.includes(option.value)) && !modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
5829
|
-
disabled: !modalEnabled.length,
|
|
5834
|
+
disabled: modalSubmitting || disabled || loading || !modalEnabled.length,
|
|
5830
5835
|
onChange: (checked) => modalBatch(checked ? "all" : "remove"),
|
|
5831
5836
|
children: "\u5168\u9009"
|
|
5832
5837
|
}
|
|
5833
5838
|
),
|
|
5834
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "link", size: "small", disabled: !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
5835
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
5839
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "link", size: "small", disabled: modalSubmitting || disabled || loading || !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: modalSubmitting || disabled || loading || !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
5836
5841
|
] }) : null,
|
|
5837
5842
|
allowInput && canSubmitInput ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Button, { variant: "link", onClick: () => {
|
|
5838
5843
|
setModalValues(multiple ? [.../* @__PURE__ */ new Set([...modalValues, inputValue])] : [inputValue]);
|
|
@@ -5851,6 +5856,8 @@ var Select = (0, import_react31.forwardRef)(function Select2({
|
|
|
5851
5856
|
multiple,
|
|
5852
5857
|
groupCheckable: modalConfig?.groupCheckable,
|
|
5853
5858
|
allowDeselect: allowClear,
|
|
5859
|
+
disabled: modalSubmitting || disabled,
|
|
5860
|
+
loading,
|
|
5854
5861
|
selectedOnly,
|
|
5855
5862
|
showValue,
|
|
5856
5863
|
showSearch: false,
|
package/dist/core.css
CHANGED
|
@@ -1864,6 +1864,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1864
1864
|
min-height: 58px;
|
|
1865
1865
|
padding: 18px 20px 12px;
|
|
1866
1866
|
}
|
|
1867
|
+
.sia-modal__header:has(.sia-modal__title-extra) {
|
|
1868
|
+
align-items: center;
|
|
1869
|
+
padding-top: 14px;
|
|
1870
|
+
}
|
|
1871
|
+
.sia-modal__header:has(.sia-modal__title-extra) .sia-modal__close {
|
|
1872
|
+
margin-top: 0;
|
|
1873
|
+
}
|
|
1867
1874
|
.sia-modal__heading {
|
|
1868
1875
|
display: flex;
|
|
1869
1876
|
align-items: center;
|
|
@@ -3358,12 +3365,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3358
3365
|
justify-content: space-between;
|
|
3359
3366
|
align-items: center;
|
|
3360
3367
|
gap: 16px;
|
|
3361
|
-
margin-bottom:
|
|
3368
|
+
margin-bottom: 12px;
|
|
3362
3369
|
flex-wrap: wrap;
|
|
3363
3370
|
}
|
|
3364
|
-
.sia-select-
|
|
3371
|
+
.sia-select-modal__search {
|
|
3365
3372
|
width: 240px;
|
|
3366
3373
|
max-width: 100%;
|
|
3374
|
+
flex: 0 1 240px;
|
|
3367
3375
|
}
|
|
3368
3376
|
.sia-select-modal__heading [role=tablist] {
|
|
3369
3377
|
display: flex;
|
package/dist/core.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-D_D7pOTq.cjs';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-xLR4Yt57.cjs';
|
|
3
|
-
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-
|
|
3
|
+
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-BXL6JVj0.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './shared-Bx4B28Wh.cjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-BlCSI1Tm.js';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-B59TIes7.js';
|
|
3
|
-
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-
|
|
3
|
+
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-xBynHOUn.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
Typography,
|
|
12
12
|
Upload,
|
|
13
13
|
message
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-55MXRT55.js";
|
|
15
15
|
import "./chunk-RX242MUO.js";
|
|
16
16
|
import {
|
|
17
17
|
Select
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V4YT4LT5.js";
|
|
19
19
|
import {
|
|
20
20
|
Input,
|
|
21
21
|
Segmented
|
package/dist/game.css
CHANGED
|
@@ -1915,6 +1915,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1915
1915
|
min-height: 58px;
|
|
1916
1916
|
padding: 18px 20px 12px;
|
|
1917
1917
|
}
|
|
1918
|
+
.sia-modal__header:has(.sia-modal__title-extra) {
|
|
1919
|
+
align-items: center;
|
|
1920
|
+
padding-top: 14px;
|
|
1921
|
+
}
|
|
1922
|
+
.sia-modal__header:has(.sia-modal__title-extra) .sia-modal__close {
|
|
1923
|
+
margin-top: 0;
|
|
1924
|
+
}
|
|
1918
1925
|
.sia-modal__heading {
|
|
1919
1926
|
display: flex;
|
|
1920
1927
|
align-items: center;
|
|
@@ -3409,12 +3416,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3409
3416
|
justify-content: space-between;
|
|
3410
3417
|
align-items: center;
|
|
3411
3418
|
gap: 16px;
|
|
3412
|
-
margin-bottom:
|
|
3419
|
+
margin-bottom: 12px;
|
|
3413
3420
|
flex-wrap: wrap;
|
|
3414
3421
|
}
|
|
3415
|
-
.sia-select-
|
|
3422
|
+
.sia-select-modal__search {
|
|
3416
3423
|
width: 240px;
|
|
3417
3424
|
max-width: 100%;
|
|
3425
|
+
flex: 0 1 240px;
|
|
3418
3426
|
}
|
|
3419
3427
|
.sia-select-modal__heading [role=tablist] {
|
|
3420
3428
|
display: flex;
|
package/dist/index.cjs
CHANGED
|
@@ -6584,6 +6584,27 @@ var Select = (0, import_react29.forwardRef)(function Select2({
|
|
|
6584
6584
|
open,
|
|
6585
6585
|
title: modalConfig?.title ?? placeholder,
|
|
6586
6586
|
width: modalConfig?.width ?? 900,
|
|
6587
|
+
titleExtra: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
6588
|
+
modalConfig?.titleExtra != null && modalConfig.titleExtra !== false ? modalConfig.titleExtra : null,
|
|
6589
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
6590
|
+
Input,
|
|
6591
|
+
{
|
|
6592
|
+
className: "sia-select-modal__search",
|
|
6593
|
+
"aria-label": searchPlaceholder,
|
|
6594
|
+
placeholder: searchPlaceholder,
|
|
6595
|
+
placeholderMode: "default",
|
|
6596
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "search", size: 14 }),
|
|
6597
|
+
value: query,
|
|
6598
|
+
allowClear: true,
|
|
6599
|
+
disabled: modalSubmitting || disabled,
|
|
6600
|
+
onChange: (event) => {
|
|
6601
|
+
setQuery(event.target.value);
|
|
6602
|
+
onSearch?.(event.target.value);
|
|
6603
|
+
}
|
|
6604
|
+
},
|
|
6605
|
+
"sia-select-modal-search"
|
|
6606
|
+
)
|
|
6607
|
+
] }),
|
|
6587
6608
|
confirmLoading: modalSubmitting,
|
|
6588
6609
|
onOpenChange: (next) => {
|
|
6589
6610
|
if (!next) closeDropdown();
|
|
@@ -6598,43 +6619,27 @@ var Select = (0, import_react29.forwardRef)(function Select2({
|
|
|
6598
6619
|
] }),
|
|
6599
6620
|
children: open ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
6600
6621
|
modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
|
|
6601
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.
|
|
6602
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
] }),
|
|
6610
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
6611
|
-
Input,
|
|
6612
|
-
{
|
|
6613
|
-
"aria-label": searchPlaceholder,
|
|
6614
|
-
placeholder: searchPlaceholder,
|
|
6615
|
-
prefix: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { name: "search", size: 14 }),
|
|
6616
|
-
value: query,
|
|
6617
|
-
allowClear: true,
|
|
6618
|
-
onChange: (event) => {
|
|
6619
|
-
setQuery(event.target.value);
|
|
6620
|
-
onSearch?.(event.target.value);
|
|
6621
|
-
}
|
|
6622
|
-
}
|
|
6623
|
-
)
|
|
6624
|
-
] }),
|
|
6622
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
6623
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
6624
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
6625
|
+
"\u5DF2\u9009\u9879(",
|
|
6626
|
+
modalValues.length,
|
|
6627
|
+
")"
|
|
6628
|
+
] })
|
|
6629
|
+
] }) }),
|
|
6625
6630
|
multiple && showSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "sia-select-modal__actions", children: [
|
|
6626
6631
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
6627
6632
|
Checkbox2,
|
|
6628
6633
|
{
|
|
6629
6634
|
checked: modalEnabled.length > 0 && modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
6630
6635
|
indeterminate: modalEnabled.some((option) => modalValues.includes(option.value)) && !modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
6631
|
-
disabled: !modalEnabled.length,
|
|
6636
|
+
disabled: modalSubmitting || disabled || loading || !modalEnabled.length,
|
|
6632
6637
|
onChange: (checked) => modalBatch(checked ? "all" : "remove"),
|
|
6633
6638
|
children: "\u5168\u9009"
|
|
6634
6639
|
}
|
|
6635
6640
|
),
|
|
6636
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "link", size: "small", disabled: !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
6637
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
6641
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "link", size: "small", disabled: modalSubmitting || disabled || loading || !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
6642
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: modalSubmitting || disabled || loading || !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
6638
6643
|
] }) : null,
|
|
6639
6644
|
allowInput && canSubmitInput ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Button, { variant: "link", onClick: () => {
|
|
6640
6645
|
setModalValues(multiple ? [.../* @__PURE__ */ new Set([...modalValues, inputValue])] : [inputValue]);
|
|
@@ -6653,6 +6658,8 @@ var Select = (0, import_react29.forwardRef)(function Select2({
|
|
|
6653
6658
|
multiple,
|
|
6654
6659
|
groupCheckable: modalConfig?.groupCheckable,
|
|
6655
6660
|
allowDeselect: allowClear,
|
|
6661
|
+
disabled: modalSubmitting || disabled,
|
|
6662
|
+
loading,
|
|
6656
6663
|
selectedOnly,
|
|
6657
6664
|
showValue,
|
|
6658
6665
|
showSearch: false,
|
|
@@ -14961,10 +14968,11 @@ var InputNumber = (0, import_react56.forwardRef)(function InputNumber2({
|
|
|
14961
14968
|
// src/components/SelectModal.tsx
|
|
14962
14969
|
var import_react57 = require("react");
|
|
14963
14970
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
14964
|
-
function SelectModalBody({ config, values, disabled, onChange }) {
|
|
14965
|
-
const [query, setQuery] = (0, import_react57.useState)("");
|
|
14971
|
+
function SelectModalBody({ config, values, query, disabled, onChange }) {
|
|
14966
14972
|
const [selectedOnly, setSelectedOnly] = (0, import_react57.useState)(false);
|
|
14967
14973
|
const multiple = config.mode === "multiple";
|
|
14974
|
+
const loading = Boolean(config.loading);
|
|
14975
|
+
const busy = disabled || loading;
|
|
14968
14976
|
const search = query.trim();
|
|
14969
14977
|
const filtered = config.options.filter((option) => !search || (config.filterOption ? config.filterOption(search, option) : [option.label, option.value].some((text) => String(text ?? "").toLowerCase().includes(search.toLowerCase()))));
|
|
14970
14978
|
const enabled = filtered.filter((option) => !option.disabled && (!selectedOnly || values.includes(option.value)));
|
|
@@ -14979,44 +14987,27 @@ function SelectModalBody({ config, values, disabled, onChange }) {
|
|
|
14979
14987
|
};
|
|
14980
14988
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
14981
14989
|
config.headerExtra != null && config.headerExtra !== false ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "sia-select-modal__header-extra", children: config.headerExtra }) : null,
|
|
14982
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.
|
|
14983
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
] }),
|
|
14991
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
14992
|
-
Input,
|
|
14993
|
-
{
|
|
14994
|
-
"aria-label": config.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879",
|
|
14995
|
-
placeholder: config.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879",
|
|
14996
|
-
prefix: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "search", size: 14 }),
|
|
14997
|
-
value: query,
|
|
14998
|
-
allowClear: true,
|
|
14999
|
-
disabled,
|
|
15000
|
-
onChange: (event) => {
|
|
15001
|
-
setQuery(event.target.value);
|
|
15002
|
-
config.onSearch?.(event.target.value);
|
|
15003
|
-
}
|
|
15004
|
-
}
|
|
15005
|
-
)
|
|
15006
|
-
] }),
|
|
14990
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
14991
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
14992
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
14993
|
+
"\u5DF2\u9009\u9879(",
|
|
14994
|
+
values.length,
|
|
14995
|
+
")"
|
|
14996
|
+
] })
|
|
14997
|
+
] }) }),
|
|
15007
14998
|
multiple ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "sia-select-modal__actions", children: [
|
|
15008
14999
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
15009
15000
|
Checkbox2,
|
|
15010
15001
|
{
|
|
15011
15002
|
checked: all,
|
|
15012
15003
|
indeterminate: !all && enabled.some((option) => values.includes(option.value)),
|
|
15013
|
-
disabled:
|
|
15004
|
+
disabled: busy || !enabled.length,
|
|
15014
15005
|
onChange: (checked) => batch(checked ? "all" : "remove"),
|
|
15015
15006
|
children: "\u5168\u9009"
|
|
15016
15007
|
}
|
|
15017
15008
|
),
|
|
15018
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { variant: "link", size: "small", disabled:
|
|
15019
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { variant: "link", size: "small", danger: true, disabled:
|
|
15009
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { variant: "link", size: "small", disabled: busy || !enabled.length, onClick: () => batch("invert"), children: "\u53CD\u9009" }),
|
|
15010
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: busy || !values.length, onClick: () => onChange([]), children: "\u6E05\u7A7A" })
|
|
15020
15011
|
] }) : null,
|
|
15021
15012
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
15022
15013
|
SelectionPanel,
|
|
@@ -15027,6 +15018,7 @@ function SelectModalBody({ config, values, disabled, onChange }) {
|
|
|
15027
15018
|
multiple,
|
|
15028
15019
|
groupCheckable: config.groupCheckable,
|
|
15029
15020
|
disabled,
|
|
15021
|
+
loading,
|
|
15030
15022
|
selectedOnly,
|
|
15031
15023
|
showValue: config.showValue,
|
|
15032
15024
|
showSearch: false,
|
|
@@ -15043,25 +15035,52 @@ function openSelectModal(config) {
|
|
|
15043
15035
|
const normalize = (value) => value == null ? [] : Array.isArray(value) ? [...value] : [value];
|
|
15044
15036
|
let values = normalize(config.value);
|
|
15045
15037
|
if (config.mode !== "multiple") values = values.slice(0, 1);
|
|
15038
|
+
let query = "";
|
|
15046
15039
|
let submitting = false;
|
|
15040
|
+
function renderTitleExtra() {
|
|
15041
|
+
const placeholder = current.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879";
|
|
15042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
15043
|
+
current.titleExtra != null && current.titleExtra !== false ? current.titleExtra : null,
|
|
15044
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
15045
|
+
Input,
|
|
15046
|
+
{
|
|
15047
|
+
className: "sia-select-modal__search",
|
|
15048
|
+
"aria-label": placeholder,
|
|
15049
|
+
placeholder,
|
|
15050
|
+
placeholderMode: "default",
|
|
15051
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "search", size: 14 }),
|
|
15052
|
+
value: query,
|
|
15053
|
+
allowClear: true,
|
|
15054
|
+
disabled: submitting || Boolean(current.confirmLoading),
|
|
15055
|
+
onChange: (event) => {
|
|
15056
|
+
query = event.target.value;
|
|
15057
|
+
current.onSearch?.(query);
|
|
15058
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
15059
|
+
}
|
|
15060
|
+
},
|
|
15061
|
+
"sia-select-modal-search"
|
|
15062
|
+
)
|
|
15063
|
+
] });
|
|
15064
|
+
}
|
|
15047
15065
|
function body() {
|
|
15048
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectModalBody, { config: current, values, disabled: submitting || Boolean(current.confirmLoading), onChange: (next) => {
|
|
15066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectModalBody, { config: current, values, query, disabled: submitting || Boolean(current.confirmLoading), onChange: (next) => {
|
|
15049
15067
|
values = next;
|
|
15050
15068
|
handle.update({ children: body() });
|
|
15051
15069
|
} });
|
|
15052
15070
|
}
|
|
15053
15071
|
function modalConfig() {
|
|
15054
|
-
const { options, value, mode, groupCheckable, showValue, columns, maxHeight, headerExtra, extraValues, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
|
|
15072
|
+
const { options, value, mode, groupCheckable, showValue, columns, maxHeight, loading, titleExtra, headerExtra, extraValues, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
|
|
15055
15073
|
return {
|
|
15056
15074
|
...modal,
|
|
15057
15075
|
title: current.title ?? "\u8BF7\u9009\u62E9",
|
|
15076
|
+
titleExtra: renderTitleExtra(),
|
|
15058
15077
|
width: current.width ?? 900,
|
|
15059
15078
|
className: `sia-select-modal ${current.className ?? ""}`,
|
|
15060
15079
|
children: body(),
|
|
15061
15080
|
onOk: async () => {
|
|
15062
15081
|
const selected = values.map((value2) => current.options.find((option) => option.value === value2) ?? { value: value2, label: String(value2) });
|
|
15063
15082
|
submitting = true;
|
|
15064
|
-
handle.update({ children: body() });
|
|
15083
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
15065
15084
|
try {
|
|
15066
15085
|
return await current.onConfirm?.(
|
|
15067
15086
|
current.mode === "multiple" ? [...values] : values[0] ?? null,
|
|
@@ -15070,7 +15089,7 @@ function openSelectModal(config) {
|
|
|
15070
15089
|
);
|
|
15071
15090
|
} finally {
|
|
15072
15091
|
submitting = false;
|
|
15073
|
-
handle.update({ children: body() });
|
|
15092
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
15074
15093
|
}
|
|
15075
15094
|
}
|
|
15076
15095
|
};
|
package/dist/index.css
CHANGED
|
@@ -1864,6 +1864,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1864
1864
|
min-height: 58px;
|
|
1865
1865
|
padding: 18px 20px 12px;
|
|
1866
1866
|
}
|
|
1867
|
+
.sia-modal__header:has(.sia-modal__title-extra) {
|
|
1868
|
+
align-items: center;
|
|
1869
|
+
padding-top: 14px;
|
|
1870
|
+
}
|
|
1871
|
+
.sia-modal__header:has(.sia-modal__title-extra) .sia-modal__close {
|
|
1872
|
+
margin-top: 0;
|
|
1873
|
+
}
|
|
1867
1874
|
.sia-modal__heading {
|
|
1868
1875
|
display: flex;
|
|
1869
1876
|
align-items: center;
|
|
@@ -3358,12 +3365,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3358
3365
|
justify-content: space-between;
|
|
3359
3366
|
align-items: center;
|
|
3360
3367
|
gap: 16px;
|
|
3361
|
-
margin-bottom:
|
|
3368
|
+
margin-bottom: 12px;
|
|
3362
3369
|
flex-wrap: wrap;
|
|
3363
3370
|
}
|
|
3364
|
-
.sia-select-
|
|
3371
|
+
.sia-select-modal__search {
|
|
3365
3372
|
width: 240px;
|
|
3366
3373
|
max-width: 100%;
|
|
3374
|
+
flex: 0 1 240px;
|
|
3367
3375
|
}
|
|
3368
3376
|
.sia-select-modal__heading [role=tablist] {
|
|
3369
3377
|
display: flex;
|
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, VideoHTMLAttributes } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-D_D7pOTq.cjs';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-D_D7pOTq.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-xLR4Yt57.cjs';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-xLR4Yt57.cjs';
|
|
8
|
-
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-
|
|
9
|
-
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-
|
|
10
|
-
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-
|
|
8
|
+
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-BXL6JVj0.cjs';
|
|
9
|
+
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-BXL6JVj0.cjs';
|
|
10
|
+
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-CewOaLtk.cjs';
|
|
11
11
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
|
|
12
12
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
|
|
13
13
|
import * as Monaco from 'monaco-editor';
|
|
@@ -1939,14 +1939,19 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1939
1939
|
/** 弹框选项每行列数;长文本单行省略。
|
|
1940
1940
|
* @defaultValue 3 */
|
|
1941
1941
|
columns?: number;
|
|
1942
|
-
/**
|
|
1942
|
+
/** 选项列表的最大可视高度,单位为像素;超出时在列表内滚动,不包含标题栏、选项范围和底部按钮。
|
|
1943
1943
|
* @defaultValue 360 */
|
|
1944
1944
|
maxHeight?: number;
|
|
1945
|
-
/**
|
|
1945
|
+
/** 候选项是否正在加载;为 true 时在选项区显示加载状态并禁用选择与批量操作。
|
|
1946
|
+
* @defaultValue false */
|
|
1947
|
+
loading?: boolean;
|
|
1948
|
+
/** 标题栏右侧搜索框左侧的扩展内容;与内置搜索框一起显示在关闭按钮左侧。 */
|
|
1949
|
+
titleExtra?: ReactNode;
|
|
1950
|
+
/** 标题下方的独立首行扩展内容,位于选项范围上方。 */
|
|
1946
1951
|
headerExtra?: ReactNode;
|
|
1947
1952
|
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1948
1953
|
extraValues?: Record<string, unknown>;
|
|
1949
|
-
/**
|
|
1954
|
+
/** 标题栏右侧搜索框的占位提示文字。
|
|
1950
1955
|
* @defaultValue "搜索选项" */
|
|
1951
1956
|
searchPlaceholder?: string;
|
|
1952
1957
|
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
@@ -1957,7 +1962,7 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1957
1962
|
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1958
1963
|
}
|
|
1959
1964
|
/**
|
|
1960
|
-
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px
|
|
1965
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px,搜索框固定在标题栏右侧(关闭按钮左侧)。
|
|
1961
1966
|
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1962
1967
|
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1963
1968
|
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
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, VideoHTMLAttributes } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-BlCSI1Tm.js';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-BlCSI1Tm.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-B59TIes7.js';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-B59TIes7.js';
|
|
8
|
-
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-
|
|
9
|
-
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-
|
|
10
|
-
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-
|
|
8
|
+
import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult } from './Select-xBynHOUn.js';
|
|
9
|
+
export { e as Modal, f as ModalProps, g as ModalType, h as Select, i as SelectMode, j as SelectValue } from './Select-xBynHOUn.js';
|
|
10
|
+
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-C-29x2BA.js';
|
|
11
11
|
export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
|
|
12
12
|
export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
|
|
13
13
|
import * as Monaco from 'monaco-editor';
|
|
@@ -1939,14 +1939,19 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1939
1939
|
/** 弹框选项每行列数;长文本单行省略。
|
|
1940
1940
|
* @defaultValue 3 */
|
|
1941
1941
|
columns?: number;
|
|
1942
|
-
/**
|
|
1942
|
+
/** 选项列表的最大可视高度,单位为像素;超出时在列表内滚动,不包含标题栏、选项范围和底部按钮。
|
|
1943
1943
|
* @defaultValue 360 */
|
|
1944
1944
|
maxHeight?: number;
|
|
1945
|
-
/**
|
|
1945
|
+
/** 候选项是否正在加载;为 true 时在选项区显示加载状态并禁用选择与批量操作。
|
|
1946
|
+
* @defaultValue false */
|
|
1947
|
+
loading?: boolean;
|
|
1948
|
+
/** 标题栏右侧搜索框左侧的扩展内容;与内置搜索框一起显示在关闭按钮左侧。 */
|
|
1949
|
+
titleExtra?: ReactNode;
|
|
1950
|
+
/** 标题下方的独立首行扩展内容,位于选项范围上方。 */
|
|
1946
1951
|
headerExtra?: ReactNode;
|
|
1947
1952
|
/** 顶部自定义控件的业务数据;框架不会自动绑定 headerExtra 内的控件,需由业务方在变更时调用句柄 update({ extraValues })。确认时将当前对象的浅拷贝作为第三个参数传出,未配置时为 {};update 会替换整个 extraValues 对象。 */
|
|
1948
1953
|
extraValues?: Record<string, unknown>;
|
|
1949
|
-
/**
|
|
1954
|
+
/** 标题栏右侧搜索框的占位提示文字。
|
|
1950
1955
|
* @defaultValue "搜索选项" */
|
|
1951
1956
|
searchPlaceholder?: string;
|
|
1952
1957
|
/** 自定义本地搜索:接收去除首尾空白的搜索词和选项,返回 true 时保留。默认同时匹配 label 和 value(忽略大小写);空搜索词显示全部选项。 */
|
|
@@ -1957,7 +1962,7 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
|
|
|
1957
1962
|
onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
|
|
1958
1963
|
}
|
|
1959
1964
|
/**
|
|
1960
|
-
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px
|
|
1965
|
+
* 无需渲染 Select,直接打开选择弹框;默认标题为“请选择”、宽度为 900px,搜索框固定在标题栏右侧(关闭按钮左侧)。
|
|
1961
1966
|
* 选择操作只更新弹框草稿,点击确定才调用 onConfirm,取消不提交。
|
|
1962
1967
|
* @param config 候选项、初始选择、弹框布局与确认回调。
|
|
1963
1968
|
* @returns 弹框句柄。update 合并配置并保留当前草稿,显式传 value 可替换草稿;destroy 销毁弹框。
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
Watermark,
|
|
83
83
|
message,
|
|
84
84
|
notification
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-55MXRT55.js";
|
|
86
86
|
import "./chunk-RX242MUO.js";
|
|
87
87
|
import {
|
|
88
88
|
MarkdownEditor
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
DatePicker,
|
|
97
97
|
SelectDateRange,
|
|
98
98
|
TimePanel
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-DQR7EPRA.js";
|
|
100
100
|
import {
|
|
101
101
|
Checkbox,
|
|
102
102
|
OverflowTags,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
Tree,
|
|
109
109
|
normalizeSelectionValues,
|
|
110
110
|
usePressFeedback
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-V4YT4LT5.js";
|
|
112
112
|
import {
|
|
113
113
|
Dropdown,
|
|
114
114
|
Input,
|
|
@@ -5643,10 +5643,11 @@ var InputNumber = forwardRef12(function InputNumber2({
|
|
|
5643
5643
|
// src/components/SelectModal.tsx
|
|
5644
5644
|
import { useState as useState19 } from "react";
|
|
5645
5645
|
import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5646
|
-
function SelectModalBody({ config, values, disabled, onChange }) {
|
|
5647
|
-
const [query, setQuery] = useState19("");
|
|
5646
|
+
function SelectModalBody({ config, values, query, disabled, onChange }) {
|
|
5648
5647
|
const [selectedOnly, setSelectedOnly] = useState19(false);
|
|
5649
5648
|
const multiple = config.mode === "multiple";
|
|
5649
|
+
const loading = Boolean(config.loading);
|
|
5650
|
+
const busy = disabled || loading;
|
|
5650
5651
|
const search = query.trim();
|
|
5651
5652
|
const filtered = config.options.filter((option) => !search || (config.filterOption ? config.filterOption(search, option) : [option.label, option.value].some((text) => String(text ?? "").toLowerCase().includes(search.toLowerCase()))));
|
|
5652
5653
|
const enabled = filtered.filter((option) => !option.disabled && (!selectedOnly || values.includes(option.value)));
|
|
@@ -5661,44 +5662,27 @@ function SelectModalBody({ config, values, disabled, onChange }) {
|
|
|
5661
5662
|
};
|
|
5662
5663
|
return /* @__PURE__ */ jsxs22(Fragment7, { children: [
|
|
5663
5664
|
config.headerExtra != null && config.headerExtra !== false ? /* @__PURE__ */ jsx23("div", { className: "sia-select-modal__header-extra", children: config.headerExtra }) : null,
|
|
5664
|
-
/* @__PURE__ */
|
|
5665
|
-
/* @__PURE__ */
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
] }),
|
|
5673
|
-
/* @__PURE__ */ jsx23(
|
|
5674
|
-
Input,
|
|
5675
|
-
{
|
|
5676
|
-
"aria-label": config.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879",
|
|
5677
|
-
placeholder: config.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879",
|
|
5678
|
-
prefix: /* @__PURE__ */ jsx23(Icon, { name: "search", size: 14 }),
|
|
5679
|
-
value: query,
|
|
5680
|
-
allowClear: true,
|
|
5681
|
-
disabled,
|
|
5682
|
-
onChange: (event) => {
|
|
5683
|
-
setQuery(event.target.value);
|
|
5684
|
-
config.onSearch?.(event.target.value);
|
|
5685
|
-
}
|
|
5686
|
-
}
|
|
5687
|
-
)
|
|
5688
|
-
] }),
|
|
5665
|
+
/* @__PURE__ */ jsx23("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ jsxs22("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
5666
|
+
/* @__PURE__ */ jsx23(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
5667
|
+
/* @__PURE__ */ jsxs22(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
5668
|
+
"\u5DF2\u9009\u9879(",
|
|
5669
|
+
values.length,
|
|
5670
|
+
")"
|
|
5671
|
+
] })
|
|
5672
|
+
] }) }),
|
|
5689
5673
|
multiple ? /* @__PURE__ */ jsxs22("div", { className: "sia-select-modal__actions", children: [
|
|
5690
5674
|
/* @__PURE__ */ jsx23(
|
|
5691
5675
|
Checkbox,
|
|
5692
5676
|
{
|
|
5693
5677
|
checked: all,
|
|
5694
5678
|
indeterminate: !all && enabled.some((option) => values.includes(option.value)),
|
|
5695
|
-
disabled:
|
|
5679
|
+
disabled: busy || !enabled.length,
|
|
5696
5680
|
onChange: (checked) => batch(checked ? "all" : "remove"),
|
|
5697
5681
|
children: "\u5168\u9009"
|
|
5698
5682
|
}
|
|
5699
5683
|
),
|
|
5700
|
-
/* @__PURE__ */ jsx23(Button, { variant: "link", size: "small", disabled:
|
|
5701
|
-
/* @__PURE__ */ jsx23(Button, { variant: "link", size: "small", danger: true, disabled:
|
|
5684
|
+
/* @__PURE__ */ jsx23(Button, { variant: "link", size: "small", disabled: busy || !enabled.length, onClick: () => batch("invert"), children: "\u53CD\u9009" }),
|
|
5685
|
+
/* @__PURE__ */ jsx23(Button, { variant: "link", size: "small", danger: true, disabled: busy || !values.length, onClick: () => onChange([]), children: "\u6E05\u7A7A" })
|
|
5702
5686
|
] }) : null,
|
|
5703
5687
|
/* @__PURE__ */ jsx23(
|
|
5704
5688
|
SelectionPanel,
|
|
@@ -5709,6 +5693,7 @@ function SelectModalBody({ config, values, disabled, onChange }) {
|
|
|
5709
5693
|
multiple,
|
|
5710
5694
|
groupCheckable: config.groupCheckable,
|
|
5711
5695
|
disabled,
|
|
5696
|
+
loading,
|
|
5712
5697
|
selectedOnly,
|
|
5713
5698
|
showValue: config.showValue,
|
|
5714
5699
|
showSearch: false,
|
|
@@ -5725,25 +5710,52 @@ function openSelectModal(config) {
|
|
|
5725
5710
|
const normalize = (value) => value == null ? [] : Array.isArray(value) ? [...value] : [value];
|
|
5726
5711
|
let values = normalize(config.value);
|
|
5727
5712
|
if (config.mode !== "multiple") values = values.slice(0, 1);
|
|
5713
|
+
let query = "";
|
|
5728
5714
|
let submitting = false;
|
|
5715
|
+
function renderTitleExtra() {
|
|
5716
|
+
const placeholder = current.searchPlaceholder ?? "\u641C\u7D22\u9009\u9879";
|
|
5717
|
+
return /* @__PURE__ */ jsxs22(Fragment7, { children: [
|
|
5718
|
+
current.titleExtra != null && current.titleExtra !== false ? current.titleExtra : null,
|
|
5719
|
+
/* @__PURE__ */ jsx23(
|
|
5720
|
+
Input,
|
|
5721
|
+
{
|
|
5722
|
+
className: "sia-select-modal__search",
|
|
5723
|
+
"aria-label": placeholder,
|
|
5724
|
+
placeholder,
|
|
5725
|
+
placeholderMode: "default",
|
|
5726
|
+
prefix: /* @__PURE__ */ jsx23(Icon, { name: "search", size: 14 }),
|
|
5727
|
+
value: query,
|
|
5728
|
+
allowClear: true,
|
|
5729
|
+
disabled: submitting || Boolean(current.confirmLoading),
|
|
5730
|
+
onChange: (event) => {
|
|
5731
|
+
query = event.target.value;
|
|
5732
|
+
current.onSearch?.(query);
|
|
5733
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
5734
|
+
}
|
|
5735
|
+
},
|
|
5736
|
+
"sia-select-modal-search"
|
|
5737
|
+
)
|
|
5738
|
+
] });
|
|
5739
|
+
}
|
|
5729
5740
|
function body() {
|
|
5730
|
-
return /* @__PURE__ */ jsx23(SelectModalBody, { config: current, values, disabled: submitting || Boolean(current.confirmLoading), onChange: (next) => {
|
|
5741
|
+
return /* @__PURE__ */ jsx23(SelectModalBody, { config: current, values, query, disabled: submitting || Boolean(current.confirmLoading), onChange: (next) => {
|
|
5731
5742
|
values = next;
|
|
5732
5743
|
handle.update({ children: body() });
|
|
5733
5744
|
} });
|
|
5734
5745
|
}
|
|
5735
5746
|
function modalConfig() {
|
|
5736
|
-
const { options, value, mode, groupCheckable, showValue, columns, maxHeight, headerExtra, extraValues, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
|
|
5747
|
+
const { options, value, mode, groupCheckable, showValue, columns, maxHeight, loading, titleExtra, headerExtra, extraValues, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
|
|
5737
5748
|
return {
|
|
5738
5749
|
...modal,
|
|
5739
5750
|
title: current.title ?? "\u8BF7\u9009\u62E9",
|
|
5751
|
+
titleExtra: renderTitleExtra(),
|
|
5740
5752
|
width: current.width ?? 900,
|
|
5741
5753
|
className: `sia-select-modal ${current.className ?? ""}`,
|
|
5742
5754
|
children: body(),
|
|
5743
5755
|
onOk: async () => {
|
|
5744
5756
|
const selected = values.map((value2) => current.options.find((option) => option.value === value2) ?? { value: value2, label: String(value2) });
|
|
5745
5757
|
submitting = true;
|
|
5746
|
-
handle.update({ children: body() });
|
|
5758
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
5747
5759
|
try {
|
|
5748
5760
|
return await current.onConfirm?.(
|
|
5749
5761
|
current.mode === "multiple" ? [...values] : values[0] ?? null,
|
|
@@ -5752,7 +5764,7 @@ function openSelectModal(config) {
|
|
|
5752
5764
|
);
|
|
5753
5765
|
} finally {
|
|
5754
5766
|
submitting = false;
|
|
5755
|
-
handle.update({ children: body() });
|
|
5767
|
+
handle.update({ titleExtra: renderTitleExtra(), children: body() });
|
|
5756
5768
|
}
|
|
5757
5769
|
}
|
|
5758
5770
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
|
|
3
3
|
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
4
|
-
import { S as SelectOption, j as SelectValue } from './Select-
|
|
4
|
+
import { S as SelectOption, j as SelectValue } from './Select-xBynHOUn.js';
|
|
5
5
|
|
|
6
6
|
/** 日期选择附带的时间选择配置。 */
|
|
7
7
|
type DatePickerShowTime = boolean | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
|
|
3
3
|
import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
4
|
-
import { S as SelectOption, j as SelectValue } from './Select-
|
|
4
|
+
import { S as SelectOption, j as SelectValue } from './Select-BXL6JVj0.cjs';
|
|
5
5
|
|
|
6
6
|
/** 日期选择附带的时间选择配置。 */
|
|
7
7
|
type DatePickerShowTime = boolean | {
|
|
@@ -5596,6 +5596,27 @@ var Select = (0, import_react21.forwardRef)(function Select2({
|
|
|
5596
5596
|
open,
|
|
5597
5597
|
title: modalConfig?.title ?? placeholder,
|
|
5598
5598
|
width: modalConfig?.width ?? 900,
|
|
5599
|
+
titleExtra: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
5600
|
+
modalConfig?.titleExtra != null && modalConfig.titleExtra !== false ? modalConfig.titleExtra : null,
|
|
5601
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
5602
|
+
Input,
|
|
5603
|
+
{
|
|
5604
|
+
className: "sia-select-modal__search",
|
|
5605
|
+
"aria-label": searchPlaceholder,
|
|
5606
|
+
placeholder: searchPlaceholder,
|
|
5607
|
+
placeholderMode: "default",
|
|
5608
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "search", size: 14 }),
|
|
5609
|
+
value: query,
|
|
5610
|
+
allowClear: true,
|
|
5611
|
+
disabled: modalSubmitting || disabled,
|
|
5612
|
+
onChange: (event) => {
|
|
5613
|
+
setQuery(event.target.value);
|
|
5614
|
+
onSearch?.(event.target.value);
|
|
5615
|
+
}
|
|
5616
|
+
},
|
|
5617
|
+
"sia-select-modal-search"
|
|
5618
|
+
)
|
|
5619
|
+
] }),
|
|
5599
5620
|
confirmLoading: modalSubmitting,
|
|
5600
5621
|
onOpenChange: (next) => {
|
|
5601
5622
|
if (!next) closeDropdown();
|
|
@@ -5610,43 +5631,27 @@ var Select = (0, import_react21.forwardRef)(function Select2({
|
|
|
5610
5631
|
] }),
|
|
5611
5632
|
children: open ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
5612
5633
|
modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
|
|
5613
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.
|
|
5614
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
] }),
|
|
5622
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
5623
|
-
Input,
|
|
5624
|
-
{
|
|
5625
|
-
"aria-label": searchPlaceholder,
|
|
5626
|
-
placeholder: searchPlaceholder,
|
|
5627
|
-
prefix: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "search", size: 14 }),
|
|
5628
|
-
value: query,
|
|
5629
|
-
allowClear: true,
|
|
5630
|
-
onChange: (event) => {
|
|
5631
|
-
setQuery(event.target.value);
|
|
5632
|
-
onSearch?.(event.target.value);
|
|
5633
|
-
}
|
|
5634
|
-
}
|
|
5635
|
-
)
|
|
5636
|
-
] }),
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
|
|
5635
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
|
|
5636
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
|
|
5637
|
+
"\u5DF2\u9009\u9879(",
|
|
5638
|
+
modalValues.length,
|
|
5639
|
+
")"
|
|
5640
|
+
] })
|
|
5641
|
+
] }) }),
|
|
5637
5642
|
multiple && showSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "sia-select-modal__actions", children: [
|
|
5638
5643
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
5639
5644
|
Checkbox2,
|
|
5640
5645
|
{
|
|
5641
5646
|
checked: modalEnabled.length > 0 && modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
5642
5647
|
indeterminate: modalEnabled.some((option) => modalValues.includes(option.value)) && !modalEnabled.every((option) => modalValues.includes(option.value)),
|
|
5643
|
-
disabled: !modalEnabled.length,
|
|
5648
|
+
disabled: modalSubmitting || disabled || loading || !modalEnabled.length,
|
|
5644
5649
|
onChange: (checked) => modalBatch(checked ? "all" : "remove"),
|
|
5645
5650
|
children: "\u5168\u9009"
|
|
5646
5651
|
}
|
|
5647
5652
|
),
|
|
5648
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "link", size: "small", disabled: !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
5649
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
5653
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "link", size: "small", disabled: modalSubmitting || disabled || loading || !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
|
|
5654
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "link", size: "small", danger: true, disabled: modalSubmitting || disabled || loading || !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
|
|
5650
5655
|
] }) : null,
|
|
5651
5656
|
allowInput && canSubmitInput ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { variant: "link", onClick: () => {
|
|
5652
5657
|
setModalValues(multiple ? [.../* @__PURE__ */ new Set([...modalValues, inputValue])] : [inputValue]);
|
|
@@ -5665,6 +5670,8 @@ var Select = (0, import_react21.forwardRef)(function Select2({
|
|
|
5665
5670
|
multiple,
|
|
5666
5671
|
groupCheckable: modalConfig?.groupCheckable,
|
|
5667
5672
|
allowDeselect: allowClear,
|
|
5673
|
+
disabled: modalSubmitting || disabled,
|
|
5674
|
+
loading,
|
|
5668
5675
|
selectedOnly,
|
|
5669
5676
|
showValue,
|
|
5670
5677
|
showSearch: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-
|
|
1
|
+
export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-CewOaLtk.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './shared-Bx4B28Wh.cjs';
|
|
4
|
-
import './Select-
|
|
4
|
+
import './Select-BXL6JVj0.cjs';
|
|
5
5
|
import './Button-xLR4Yt57.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-
|
|
1
|
+
export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-C-29x2BA.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './shared-Bx4B28Wh.js';
|
|
4
|
-
import './Select-
|
|
4
|
+
import './Select-xBynHOUn.js';
|
|
5
5
|
import './Button-B59TIes7.js';
|