@sia.soul/sia-react-ui 0.1.113 → 0.1.115
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-Cf0xz1Tg.d.cts → Select-BAFXKVZB.d.cts} +1 -1
- package/dist/{Select-BddM4uXC.d.ts → Select-vjX7B63I.d.ts} +1 -1
- package/dist/{chunk-74LRPSE7.js → chunk-6XQ2LDGT.js} +2 -2
- package/dist/{chunk-KJWE5H3S.js → chunk-GNOZYUIH.js} +8 -5
- package/dist/{chunk-TENCZ54M.js → chunk-KPOK4HIQ.js} +11 -4
- package/dist/{chunk-SVAC7ZJP.js → chunk-MDU5EONC.js} +2 -2
- package/dist/{chunk-NOBJVU2S.js → chunk-SPIQSYWQ.js} +5 -2
- package/dist/{chunk-VFGQLRS6.js → chunk-XY7CXJS6.js} +42 -26
- package/dist/{core-CEaTbhWd.d.cts → core-O6oDXbkG.d.cts} +10 -6
- package/dist/{core-C6muCCSS.d.ts → core-uVaNwjTO.d.ts} +10 -6
- package/dist/core.cjs +55 -29
- package/dist/core.css +45 -8
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +4 -4
- package/dist/game.cjs +42 -26
- package/dist/game.js +1 -1
- package/dist/index.cjs +109 -42
- package/dist/index.css +76 -8
- package/dist/index.d.cts +9 -14
- package/dist/index.d.ts +9 -14
- package/dist/index.js +166 -128
- package/dist/rich-text-editor.cjs +46 -27
- package/dist/rich-text-editor.js +3 -3
- package/dist/{select-date-range-yGDEA1RP.d.ts → select-date-range-C9jlUrCX.d.ts} +1 -1
- package/dist/{select-date-range-Cm5o2xPp.d.cts → select-date-range-CIiI0F5o.d.cts} +1 -1
- package/dist/select-date-range.cjs +51 -28
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +4 -4
- package/package.json +1 -1
|
@@ -269,7 +269,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
269
269
|
*/
|
|
270
270
|
notFoundContent?: ReactNode;
|
|
271
271
|
}
|
|
272
|
-
/**
|
|
272
|
+
/** 选择器组件。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
|
|
273
273
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
274
274
|
|
|
275
275
|
export { type ModalOpenConfig as M, type OverlayContainer as O, type SelectOption as S, type OverlayApiHandle as a, type SelectChangeValue as b, type SelectProps as c, type ModalActionResult as d, Modal as e, type ModalProps as f, type ModalType as g, Select as h, type SelectMode as i, type SelectValue as j };
|
|
@@ -269,7 +269,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
269
269
|
*/
|
|
270
270
|
notFoundContent?: ReactNode;
|
|
271
271
|
}
|
|
272
|
-
/**
|
|
272
|
+
/** 选择器组件。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
|
|
273
273
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
274
274
|
|
|
275
275
|
export { type ModalOpenConfig as M, type OverlayContainer as O, type SelectOption as S, type OverlayApiHandle as a, type SelectChangeValue as b, type SelectProps as c, type ModalActionResult as d, Modal as e, type ModalProps as f, type ModalType as g, Select as h, type SelectMode as i, type SelectValue as j };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FloatingScrollbarProvider,
|
|
3
3
|
Select
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KPOK4HIQ.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XY7CXJS6.js";
|
|
8
8
|
import {
|
|
9
9
|
useFloatingPlaceholder
|
|
10
10
|
} from "./chunk-KY6A5IJH.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover,
|
|
3
3
|
Tooltip
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KPOK4HIQ.js";
|
|
5
5
|
import {
|
|
6
6
|
Dropdown
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SPIQSYWQ.js";
|
|
8
8
|
import {
|
|
9
9
|
TextArea
|
|
10
10
|
} from "./chunk-SCEHVGKV.js";
|
|
11
11
|
import {
|
|
12
12
|
Icon,
|
|
13
13
|
useOverlayLifecycle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XY7CXJS6.js";
|
|
15
15
|
import {
|
|
16
16
|
Button
|
|
17
17
|
} from "./chunk-CZ2ITBRW.js";
|
|
@@ -1124,7 +1124,7 @@ function ImagePreview({ open, src, alt = "", onOpenChange }) {
|
|
|
1124
1124
|
] })
|
|
1125
1125
|
] }), document.body);
|
|
1126
1126
|
}
|
|
1127
|
-
function Image({ fallback, placeholder, preview = true, rootClassName = "", className = "", src, alt = "", onError, style, ...props }) {
|
|
1127
|
+
function Image({ fallback, placeholder, preview = true, rootClassName = "", className = "", src, alt = "", onLoad, onError, style, ...props }) {
|
|
1128
1128
|
const config = typeof preview === "object" ? preview : {};
|
|
1129
1129
|
const controlled = typeof preview === "object" && preview.open !== void 0;
|
|
1130
1130
|
const [internalOpen, setInternalOpen] = useState5(false);
|
|
@@ -1143,7 +1143,10 @@ function Image({ fallback, placeholder, preview = true, rootClassName = "", clas
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return /* @__PURE__ */ jsxs6("span", { className: `sia-image ${rootClassName}`.trim(), style: rootStyle, children: [
|
|
1145
1145
|
!loaded && placeholder ? /* @__PURE__ */ jsx6("span", { className: "sia-image__placeholder", children: placeholder }) : null,
|
|
1146
|
-
/* @__PURE__ */ jsx6("img", { ...withTitleTooltip(props), src: displaySrc, alt, className, onLoad: (
|
|
1146
|
+
/* @__PURE__ */ jsx6("img", { ...withTitleTooltip(props), src: displaySrc, alt, className, onLoad: (event) => {
|
|
1147
|
+
setLoaded(true);
|
|
1148
|
+
onLoad?.(event);
|
|
1149
|
+
}, onError: (event) => {
|
|
1147
1150
|
if (!failed && fallback) setFailed(true);
|
|
1148
1151
|
onError?.(event);
|
|
1149
1152
|
} }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dropdown,
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SPIQSYWQ.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon,
|
|
7
7
|
Modal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XY7CXJS6.js";
|
|
9
9
|
import {
|
|
10
10
|
Button
|
|
11
11
|
} from "./chunk-CZ2ITBRW.js";
|
|
@@ -1678,8 +1678,15 @@ var Select = forwardRef2(function Select2({
|
|
|
1678
1678
|
function clearSelection() {
|
|
1679
1679
|
setCurrentValue(multiple ? [] : null);
|
|
1680
1680
|
}
|
|
1681
|
+
function handleDropdownEscape(event) {
|
|
1682
|
+
if (event.key !== "Escape" || !open || popupMode !== "dropdown") return false;
|
|
1683
|
+
event.preventDefault();
|
|
1684
|
+
event.stopPropagation();
|
|
1685
|
+
closeDropdown();
|
|
1686
|
+
return true;
|
|
1687
|
+
}
|
|
1681
1688
|
function handleInteractionKeyDown(event, fromSearch = false) {
|
|
1682
|
-
if (popupMode === "modal" && open) return;
|
|
1689
|
+
if (handleDropdownEscape(event) || popupMode === "modal" && open) return;
|
|
1683
1690
|
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
1684
1691
|
event.preventDefault();
|
|
1685
1692
|
if (!open) openDropdown();
|
|
@@ -1784,7 +1791,7 @@ var Select = forwardRef2(function Select2({
|
|
|
1784
1791
|
}
|
|
1785
1792
|
),
|
|
1786
1793
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ jsx5("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ jsx5(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
1787
|
-
/* @__PURE__ */ jsxs5(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
1794
|
+
/* @__PURE__ */ jsxs5(PopupPortal, { ref: popupRef, onKeyDown: handleDropdownEscape, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
1788
1795
|
/* @__PURE__ */ jsx5(FloatingScrollbarProvider, { targetRef: listRef }),
|
|
1789
1796
|
showSearch || allowInput ? /* @__PURE__ */ jsxs5("label", { className: "sia-select__search", children: [
|
|
1790
1797
|
/* @__PURE__ */ jsx5(Icon, { name: "search", size: 15 }),
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Icon,
|
|
6
6
|
Modal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XY7CXJS6.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
10
|
} from "./chunk-CZ2ITBRW.js";
|
|
@@ -167,6 +167,7 @@ function MenuLevel({
|
|
|
167
167
|
function Menu({
|
|
168
168
|
items,
|
|
169
169
|
mode = "vertical",
|
|
170
|
+
gridColumns = 2,
|
|
170
171
|
theme = "light",
|
|
171
172
|
selectedKeys,
|
|
172
173
|
defaultSelectedKeys = [],
|
|
@@ -182,6 +183,7 @@ function Menu({
|
|
|
182
183
|
onDeselect,
|
|
183
184
|
onOpenChange,
|
|
184
185
|
className = "",
|
|
186
|
+
style,
|
|
185
187
|
...rest
|
|
186
188
|
}) {
|
|
187
189
|
const menuId = useId();
|
|
@@ -214,7 +216,8 @@ function Menu({
|
|
|
214
216
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
215
217
|
if (mode !== "inline") setOpen([]);
|
|
216
218
|
}
|
|
217
|
-
|
|
219
|
+
const gridStyle = mode === "grid" ? { "--sia-menu-grid-columns": gridColumns === "auto" ? "repeat(auto-fill, minmax(88px, 1fr))" : `repeat(${Number.isFinite(gridColumns) ? Math.max(1, Math.floor(Number(gridColumns))) : 2}, minmax(0, 1fr))` } : {};
|
|
220
|
+
return /* @__PURE__ */ jsx("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...withTitleTooltip(rest), style: { ...gridStyle, ...style }, "data-sia-menu-owner": menuId, children: /* @__PURE__ */ jsx(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
|
|
218
221
|
}
|
|
219
222
|
function Steps({ items, current = 0, initial = 0, direction = "horizontal", type = "default", size = "default", status = "process", progressDot = false, onChange, className = "", ...props }) {
|
|
220
223
|
return /* @__PURE__ */ jsx("div", { className: `sia-steps sia-steps--${direction} sia-steps--${type} sia-steps--${size} ${className}`.trim(), ...withTitleTooltip(props), children: items.map((item, rawIndex) => {
|
|
@@ -11,44 +11,60 @@ import { forwardRef } from "react";
|
|
|
11
11
|
// src/components/IconCatalog.tsx
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
var extendedIconPaths = {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// 业务图标直接采用圆弧轮廓,与框架圆角矩形及圆端描边一致;不以描边连接代替轮廓圆角。
|
|
15
|
+
/** 商品资料:圆角包装箱,适用于商品与规格数据入口。 */
|
|
16
|
+
package: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
|
|
18
|
+
/* @__PURE__ */ jsx("path", { d: "M9 5v5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5M7 17h3" })
|
|
19
|
+
] }),
|
|
16
20
|
/** 订单:带商品明细的订单单据。 */
|
|
17
|
-
"order-receipt": /* @__PURE__ */
|
|
21
|
+
"order-receipt": /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx("rect", { x: "5", y: "3", width: "14", height: "18", rx: "2.5" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M9 8h6M9 12h6M9 16h3" })
|
|
24
|
+
] }),
|
|
18
25
|
/** 售后单:退回箭头与售后单据,区别于告警文档。 */
|
|
19
|
-
"after-sales": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
26
|
+
"after-sales": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M10 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M14 15h4a3 3 0 0 1 0 6h-2M16 12.5l-2 2a.7.7 0 0 0 0 1l2 2" }) }),
|
|
20
27
|
/** 库存:仓库及内部货位。 */
|
|
21
|
-
warehouse: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
28
|
+
warehouse: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 10v8.5A2.5 2.5 0 0 0 5.5 21h13a2.5 2.5 0 0 0 2.5-2.5V10c0-.9-.5-1.7-1.2-2.1l-6.6-3.8a2.4 2.4 0 0 0-2.4 0L4.2 7.9C3.5 8.3 3 9.1 3 10ZM8 21v-8.5A1.5 1.5 0 0 1 9.5 11h5a1.5 1.5 0 0 1 1.5 1.5V21M8 16h8" }) }),
|
|
22
29
|
/** 店铺商品资料:店铺橱窗中的商品。 */
|
|
23
|
-
"shop-products": /* @__PURE__ */
|
|
30
|
+
"shop-products": /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "6", rx: "2.5" }),
|
|
32
|
+
/* @__PURE__ */ jsx("path", { d: "M5 9v9.5A2.5 2.5 0 0 0 7.5 21h9a2.5 2.5 0 0 0 2.5-2.5V9M9 21v-6.5A1.5 1.5 0 0 1 10.5 13h3a1.5 1.5 0 0 1 1.5 1.5V21" })
|
|
33
|
+
] }),
|
|
24
34
|
/** 合作方商品:商品资料与合作关系。 */
|
|
25
|
-
"partner-products": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
35
|
+
"partner-products": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M8 19H5.5A2.5 2.5 0 0 1 3 16.5v-11A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V11M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M14 15h-1a3 3 0 0 0 0 6h1M18 15h1a3 3 0 0 1 0 6h-1M13.5 18h5" }) }),
|
|
26
36
|
/** 采购退货:采购单与退出箭头。 */
|
|
27
|
-
"purchase-return": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
37
|
+
"purchase-return": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M21 17h-7.5M16 14l-2.3 2.3a1 1 0 0 0 0 1.4L16 20" }) }),
|
|
28
38
|
/** 采购入库:采购单与进入箭头。 */
|
|
29
|
-
"purchase-inbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
39
|
+
"purchase-inbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
30
40
|
/** 其它出入库:仓储流入与流出。 */
|
|
31
|
-
"stock-movement": /* @__PURE__ */
|
|
41
|
+
"stock-movement": /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
43
|
+
/* @__PURE__ */ jsx("path", { d: "M7 9h10M15 6.5l2 2a.7.7 0 0 1 0 1l-2 2M17 15H7M9 12.5l-2 2a.7.7 0 0 0 0 1l2 2" })
|
|
44
|
+
] }),
|
|
32
45
|
/** 库存盘点:库存清单与核对标记。 */
|
|
33
|
-
stocktaking: /* @__PURE__ */
|
|
46
|
+
stocktaking: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47
|
+
/* @__PURE__ */ jsx("path", { d: "M8 4H7a2 2 0 0 0-2 2v12.5A2.5 2.5 0 0 0 7.5 21H11M16 4h1a2 2 0 0 1 2 2v5M9 11h5M9 15h1M13 18l1.8 1.8a1 1 0 0 0 1.4 0L21 15" }),
|
|
48
|
+
/* @__PURE__ */ jsx("rect", { x: "8", y: "3", width: "8", height: "4", rx: "1.5" })
|
|
49
|
+
] }),
|
|
34
50
|
/** 平台报文:平台窗口中的结构化数据。 */
|
|
35
51
|
"platform-message": /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
-
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "
|
|
37
|
-
/* @__PURE__ */ jsx("path", { d: "M3
|
|
52
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
53
|
+
/* @__PURE__ */ jsx("path", { d: "M3 8h18M7 5.5h.1M9 12l-2 2a1.4 1.4 0 0 0 0 2l2 2M15 12l2 2a1.4 1.4 0 0 1 0 2l-2 2" })
|
|
38
54
|
] }),
|
|
39
55
|
/** 分析报文:报表窗口中的统计数据,可用于胜算等分析系统。 */
|
|
40
56
|
"analytics-message": /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41
|
-
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "
|
|
42
|
-
/* @__PURE__ */ jsx("path", { d: "M3
|
|
57
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
58
|
+
/* @__PURE__ */ jsx("path", { d: "M3 8h18M7 5.5h.1M7 17v-3M12 17v-5M17 17v-2" })
|
|
43
59
|
] }),
|
|
44
60
|
/** 销售退仓:货物退回仓储。 */
|
|
45
|
-
"sales-return": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
61
|
+
"sales-return": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5v-13A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V10M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M14 15h4a3 3 0 0 1 0 6h-2M16 12.5l-2 2a.7.7 0 0 0 0 1l2 2" }) }),
|
|
46
62
|
/** 销售出库:货物及向外发货箭头。 */
|
|
47
|
-
"sales-outbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
63
|
+
"sales-outbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5v-13A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V10M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
48
64
|
/** 调拨出库:仓库及向外调拨箭头。 */
|
|
49
|
-
"transfer-outbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
65
|
+
"transfer-outbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5V10c0-.9.5-1.7 1.2-2.1l6.6-3.8a2.4 2.4 0 0 1 2.4 0l6.6 3.8c.7.4 1.2 1.2 1.2 2.1v1M8 21v-7.5A1.5 1.5 0 0 1 9.5 12H13M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
50
66
|
/** 调拨入库:仓库及向内调拨箭头。 */
|
|
51
|
-
"transfer-inbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "
|
|
67
|
+
"transfer-inbound": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5V10c0-.9.5-1.7 1.2-2.1l6.6-3.8a2.4 2.4 0 0 1 2.4 0l6.6 3.8c.7.4 1.2 1.2 1.2 2.1v1M8 21v-7.5A1.5 1.5 0 0 1 9.5 12H13M21 17h-7.5M16 14l-2.3 2.3a1 1 0 0 0 0 1.4L16 20" }) }),
|
|
52
68
|
"notepad-file": /* @__PURE__ */ jsxs("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
|
|
53
69
|
/* @__PURE__ */ jsx("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
|
|
54
70
|
/* @__PURE__ */ jsx("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
|
|
@@ -532,22 +548,22 @@ var extendedIconPaths = {
|
|
|
532
548
|
// src/components/iconBounds.ts
|
|
533
549
|
var outlineIconBounds = {
|
|
534
550
|
// 业务单据与库存图标原始边界;与目录路径同步,由图标组件统一归一化到 18 单位。
|
|
535
|
-
"package": [3,
|
|
551
|
+
"package": [3, 5, 18, 16],
|
|
536
552
|
"order-receipt": [5, 3, 14, 18],
|
|
537
553
|
"after-sales": [5, 3, 16, 18],
|
|
538
|
-
"warehouse": [3, 3, 18,
|
|
554
|
+
"warehouse": [3, 3.778461, 18, 17.221539],
|
|
539
555
|
"shop-products": [3, 3, 18, 18],
|
|
540
|
-
"partner-products": [3, 3,
|
|
556
|
+
"partner-products": [3, 3, 19, 18],
|
|
541
557
|
"purchase-return": [5, 3, 16, 18],
|
|
542
|
-
"purchase-inbound": [5, 3,
|
|
558
|
+
"purchase-inbound": [5, 3, 15.585855, 18],
|
|
543
559
|
"stock-movement": [3, 3, 18, 18],
|
|
544
560
|
"stocktaking": [5, 3, 16, 18],
|
|
545
561
|
"platform-message": [3, 3, 18, 18],
|
|
546
562
|
"analytics-message": [3, 3, 18, 18],
|
|
547
563
|
"sales-return": [3, 3, 18, 18],
|
|
548
|
-
"sales-outbound": [3, 3,
|
|
549
|
-
"transfer-outbound": [3, 3, 18,
|
|
550
|
-
"transfer-inbound": [3, 3, 18,
|
|
564
|
+
"sales-outbound": [3, 3, 17.585855, 18],
|
|
565
|
+
"transfer-outbound": [3, 3.778461, 18, 17.221539],
|
|
566
|
+
"transfer-inbound": [3, 3.778461, 18, 17.221539],
|
|
551
567
|
"activity": [3, 6, 18, 13],
|
|
552
568
|
"align-center": [4, 6, 16, 12],
|
|
553
569
|
"align-justify": [4, 6, 16, 12],
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-O_pNB3SQ.cjs';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-BAFXKVZB.cjs';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -486,8 +486,8 @@ interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
486
486
|
/** 标记状态或筛选条件的标签,支持语义配色、自定义边框色或背景色及关闭操作。 */
|
|
487
487
|
declare function Tag({ size: sizeProp, color, status, compact, variant, icon, closable, closeOnHover, disabled, onClose, className, children, style, ...props }: TagProps): react.JSX.Element;
|
|
488
488
|
|
|
489
|
-
/**
|
|
490
|
-
type MenuMode = "vertical" | "horizontal" | "inline";
|
|
489
|
+
/** 菜单排列模式;vertical 为纵向列表,horizontal 为横向菜单,inline 为内嵌子菜单,grid 为双列圆角卡片(图标在上、名称在下,子菜单以弹层展开)。 */
|
|
490
|
+
type MenuMode = "vertical" | "horizontal" | "inline" | "grid";
|
|
491
491
|
/** 菜单的亮色或暗色主题。 */
|
|
492
492
|
type MenuTheme = "light" | "dark";
|
|
493
493
|
/** 菜单的项目定义。 */
|
|
@@ -533,10 +533,12 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
533
533
|
/** 按展示顺序排列的项目配置。 */
|
|
534
534
|
items: readonly MenuItem[];
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
|
|
537
537
|
* @defaultValue "vertical"
|
|
538
538
|
*/
|
|
539
539
|
mode?: MenuMode;
|
|
540
|
+
/** grid 模式的列数,默认 2;正数取整且至少为 1,auto 按每列至少 88px 自动换列。通过 --sia-menu-grid-columns 传递到分组;style 中的同名变量可覆盖。其他模式不生效。 */
|
|
541
|
+
gridColumns?: number | "auto";
|
|
540
542
|
/**
|
|
541
543
|
组件的配色主题。
|
|
542
544
|
* @defaultValue "light"
|
|
@@ -597,7 +599,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
597
599
|
onOpenChange?: (keys: string[]) => void;
|
|
598
600
|
}
|
|
599
601
|
/** 菜单组件。 */
|
|
600
|
-
declare function Menu({ items, mode, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, ...rest }: MenuProps): react.JSX.Element;
|
|
602
|
+
declare function Menu({ items, mode, gridColumns, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
|
|
601
603
|
/** Step的状态类型。 */
|
|
602
604
|
type StepStatus = "wait" | "process" | "finish" | "error";
|
|
603
605
|
/** Step的项目定义。 */
|
|
@@ -1890,6 +1892,8 @@ interface ImagePreviewConfig {
|
|
|
1890
1892
|
}
|
|
1891
1893
|
/** 图片的属性配置。 */
|
|
1892
1894
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
1895
|
+
/** 图片成功加载后触发,传入原生图片的 React 加载事件;在框架更新占位状态后调用,可用于恢复业务预览状态。 */
|
|
1896
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>["onLoad"];
|
|
1893
1897
|
/** 资源加载失败时使用的替代内容或地址。 */
|
|
1894
1898
|
fallback?: string;
|
|
1895
1899
|
/** 未填写或未选择时的提示内容。 */
|
|
@@ -1906,7 +1910,7 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
1906
1910
|
rootClassName?: string;
|
|
1907
1911
|
}
|
|
1908
1912
|
/** 图片组件。 */
|
|
1909
|
-
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1913
|
+
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onLoad, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1910
1914
|
|
|
1911
1915
|
/** 输入框的属性配置。 */
|
|
1912
1916
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-BiL3Wjsd.js';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-vjX7B63I.js';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -486,8 +486,8 @@ interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
486
486
|
/** 标记状态或筛选条件的标签,支持语义配色、自定义边框色或背景色及关闭操作。 */
|
|
487
487
|
declare function Tag({ size: sizeProp, color, status, compact, variant, icon, closable, closeOnHover, disabled, onClose, className, children, style, ...props }: TagProps): react.JSX.Element;
|
|
488
488
|
|
|
489
|
-
/**
|
|
490
|
-
type MenuMode = "vertical" | "horizontal" | "inline";
|
|
489
|
+
/** 菜单排列模式;vertical 为纵向列表,horizontal 为横向菜单,inline 为内嵌子菜单,grid 为双列圆角卡片(图标在上、名称在下,子菜单以弹层展开)。 */
|
|
490
|
+
type MenuMode = "vertical" | "horizontal" | "inline" | "grid";
|
|
491
491
|
/** 菜单的亮色或暗色主题。 */
|
|
492
492
|
type MenuTheme = "light" | "dark";
|
|
493
493
|
/** 菜单的项目定义。 */
|
|
@@ -533,10 +533,12 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
533
533
|
/** 按展示顺序排列的项目配置。 */
|
|
534
534
|
items: readonly MenuItem[];
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
|
|
537
537
|
* @defaultValue "vertical"
|
|
538
538
|
*/
|
|
539
539
|
mode?: MenuMode;
|
|
540
|
+
/** grid 模式的列数,默认 2;正数取整且至少为 1,auto 按每列至少 88px 自动换列。通过 --sia-menu-grid-columns 传递到分组;style 中的同名变量可覆盖。其他模式不生效。 */
|
|
541
|
+
gridColumns?: number | "auto";
|
|
540
542
|
/**
|
|
541
543
|
组件的配色主题。
|
|
542
544
|
* @defaultValue "light"
|
|
@@ -597,7 +599,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
597
599
|
onOpenChange?: (keys: string[]) => void;
|
|
598
600
|
}
|
|
599
601
|
/** 菜单组件。 */
|
|
600
|
-
declare function Menu({ items, mode, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, ...rest }: MenuProps): react.JSX.Element;
|
|
602
|
+
declare function Menu({ items, mode, gridColumns, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
|
|
601
603
|
/** Step的状态类型。 */
|
|
602
604
|
type StepStatus = "wait" | "process" | "finish" | "error";
|
|
603
605
|
/** Step的项目定义。 */
|
|
@@ -1890,6 +1892,8 @@ interface ImagePreviewConfig {
|
|
|
1890
1892
|
}
|
|
1891
1893
|
/** 图片的属性配置。 */
|
|
1892
1894
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
1895
|
+
/** 图片成功加载后触发,传入原生图片的 React 加载事件;在框架更新占位状态后调用,可用于恢复业务预览状态。 */
|
|
1896
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>["onLoad"];
|
|
1893
1897
|
/** 资源加载失败时使用的替代内容或地址。 */
|
|
1894
1898
|
fallback?: string;
|
|
1895
1899
|
/** 未填写或未选择时的提示内容。 */
|
|
@@ -1906,7 +1910,7 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
1906
1910
|
rootClassName?: string;
|
|
1907
1911
|
}
|
|
1908
1912
|
/** 图片组件。 */
|
|
1909
|
-
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1913
|
+
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onLoad, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1910
1914
|
|
|
1911
1915
|
/** 输入框的属性配置。 */
|
|
1912
1916
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
|
package/dist/core.cjs
CHANGED
|
@@ -395,44 +395,60 @@ var import_react5 = require("react");
|
|
|
395
395
|
// src/components/IconCatalog.tsx
|
|
396
396
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
397
397
|
var extendedIconPaths = {
|
|
398
|
-
|
|
399
|
-
|
|
398
|
+
// 业务图标直接采用圆弧轮廓,与框架圆角矩形及圆端描边一致;不以描边连接代替轮廓圆角。
|
|
399
|
+
/** 商品资料:圆角包装箱,适用于商品与规格数据入口。 */
|
|
400
|
+
package: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
401
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
|
|
402
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 5v5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5M7 17h3" })
|
|
403
|
+
] }),
|
|
400
404
|
/** 订单:带商品明细的订单单据。 */
|
|
401
|
-
"order-receipt": /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
405
|
+
"order-receipt": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
406
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "3", width: "14", height: "18", rx: "2.5" }),
|
|
407
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 8h6M9 12h6M9 16h3" })
|
|
408
|
+
] }),
|
|
402
409
|
/** 售后单:退回箭头与售后单据,区别于告警文档。 */
|
|
403
|
-
"after-sales": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
410
|
+
"after-sales": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M14 15h4a3 3 0 0 1 0 6h-2M16 12.5l-2 2a.7.7 0 0 0 0 1l2 2" }) }),
|
|
404
411
|
/** 库存:仓库及内部货位。 */
|
|
405
|
-
warehouse: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
412
|
+
warehouse: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 10v8.5A2.5 2.5 0 0 0 5.5 21h13a2.5 2.5 0 0 0 2.5-2.5V10c0-.9-.5-1.7-1.2-2.1l-6.6-3.8a2.4 2.4 0 0 0-2.4 0L4.2 7.9C3.5 8.3 3 9.1 3 10ZM8 21v-8.5A1.5 1.5 0 0 1 9.5 11h5a1.5 1.5 0 0 1 1.5 1.5V21M8 16h8" }) }),
|
|
406
413
|
/** 店铺商品资料:店铺橱窗中的商品。 */
|
|
407
|
-
"shop-products": /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
414
|
+
"shop-products": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
415
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "6", rx: "2.5" }),
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 9v9.5A2.5 2.5 0 0 0 7.5 21h9a2.5 2.5 0 0 0 2.5-2.5V9M9 21v-6.5A1.5 1.5 0 0 1 10.5 13h3a1.5 1.5 0 0 1 1.5 1.5V21" })
|
|
417
|
+
] }),
|
|
408
418
|
/** 合作方商品:商品资料与合作关系。 */
|
|
409
|
-
"partner-products": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
419
|
+
"partner-products": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 19H5.5A2.5 2.5 0 0 1 3 16.5v-11A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V11M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M14 15h-1a3 3 0 0 0 0 6h1M18 15h1a3 3 0 0 1 0 6h-1M13.5 18h5" }) }),
|
|
410
420
|
/** 采购退货:采购单与退出箭头。 */
|
|
411
|
-
"purchase-return": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
421
|
+
"purchase-return": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M21 17h-7.5M16 14l-2.3 2.3a1 1 0 0 0 0 1.4L16 20" }) }),
|
|
412
422
|
/** 采购入库:采购单与进入箭头。 */
|
|
413
|
-
"purchase-inbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
423
|
+
"purchase-inbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H7.5A2.5 2.5 0 0 1 5 18.5v-13A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V10M9 8h6M9 12h2M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
414
424
|
/** 其它出入库:仓储流入与流出。 */
|
|
415
|
-
"stock-movement": /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
425
|
+
"stock-movement": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
426
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
427
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 9h10M15 6.5l2 2a.7.7 0 0 1 0 1l-2 2M17 15H7M9 12.5l-2 2a.7.7 0 0 0 0 1l2 2" })
|
|
428
|
+
] }),
|
|
416
429
|
/** 库存盘点:库存清单与核对标记。 */
|
|
417
|
-
stocktaking: /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
430
|
+
stocktaking: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
431
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4H7a2 2 0 0 0-2 2v12.5A2.5 2.5 0 0 0 7.5 21H11M16 4h1a2 2 0 0 1 2 2v5M9 11h5M9 15h1M13 18l1.8 1.8a1 1 0 0 0 1.4 0L21 15" }),
|
|
432
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "8", y: "3", width: "8", height: "4", rx: "1.5" })
|
|
433
|
+
] }),
|
|
418
434
|
/** 平台报文:平台窗口中的结构化数据。 */
|
|
419
435
|
"platform-message": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
420
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "
|
|
421
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3
|
|
436
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
437
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 8h18M7 5.5h.1M9 12l-2 2a1.4 1.4 0 0 0 0 2l2 2M15 12l2 2a1.4 1.4 0 0 1 0 2l-2 2" })
|
|
422
438
|
] }),
|
|
423
439
|
/** 分析报文:报表窗口中的统计数据,可用于胜算等分析系统。 */
|
|
424
440
|
"analytics-message": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
425
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "
|
|
426
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3
|
|
441
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 8h18M7 5.5h.1M7 17v-3M12 17v-5M17 17v-2" })
|
|
427
443
|
] }),
|
|
428
444
|
/** 销售退仓:货物退回仓储。 */
|
|
429
|
-
"sales-return": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
445
|
+
"sales-return": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5v-13A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V10M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M14 15h4a3 3 0 0 1 0 6h-2M16 12.5l-2 2a.7.7 0 0 0 0 1l2 2" }) }),
|
|
430
446
|
/** 销售出库:货物及向外发货箭头。 */
|
|
431
|
-
"sales-outbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
447
|
+
"sales-outbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5v-13A2.5 2.5 0 0 1 5.5 3h10A2.5 2.5 0 0 1 18 5.5V10M8 3v5a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
432
448
|
/** 调拨出库:仓库及向外调拨箭头。 */
|
|
433
|
-
"transfer-outbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
449
|
+
"transfer-outbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5V10c0-.9.5-1.7 1.2-2.1l6.6-3.8a2.4 2.4 0 0 1 2.4 0l6.6 3.8c.7.4 1.2 1.2 1.2 2.1v1M8 21v-7.5A1.5 1.5 0 0 1 9.5 12H13M13 17h7.5M18 14l2.3 2.3a1 1 0 0 1 0 1.4L18 20" }) }),
|
|
434
450
|
/** 调拨入库:仓库及向内调拨箭头。 */
|
|
435
|
-
"transfer-inbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
451
|
+
"transfer-inbound": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21H5.5A2.5 2.5 0 0 1 3 18.5V10c0-.9.5-1.7 1.2-2.1l6.6-3.8a2.4 2.4 0 0 1 2.4 0l6.6 3.8c.7.4 1.2 1.2 1.2 2.1v1M8 21v-7.5A1.5 1.5 0 0 1 9.5 12H13M21 17h-7.5M16 14l-2.3 2.3a1 1 0 0 0 0 1.4L16 20" }) }),
|
|
436
452
|
"notepad-file": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
|
|
437
453
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
|
|
438
454
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
|
|
@@ -916,22 +932,22 @@ var extendedIconPaths = {
|
|
|
916
932
|
// src/components/iconBounds.ts
|
|
917
933
|
var outlineIconBounds = {
|
|
918
934
|
// 业务单据与库存图标原始边界;与目录路径同步,由图标组件统一归一化到 18 单位。
|
|
919
|
-
"package": [3,
|
|
935
|
+
"package": [3, 5, 18, 16],
|
|
920
936
|
"order-receipt": [5, 3, 14, 18],
|
|
921
937
|
"after-sales": [5, 3, 16, 18],
|
|
922
|
-
"warehouse": [3, 3, 18,
|
|
938
|
+
"warehouse": [3, 3.778461, 18, 17.221539],
|
|
923
939
|
"shop-products": [3, 3, 18, 18],
|
|
924
|
-
"partner-products": [3, 3,
|
|
940
|
+
"partner-products": [3, 3, 19, 18],
|
|
925
941
|
"purchase-return": [5, 3, 16, 18],
|
|
926
|
-
"purchase-inbound": [5, 3,
|
|
942
|
+
"purchase-inbound": [5, 3, 15.585855, 18],
|
|
927
943
|
"stock-movement": [3, 3, 18, 18],
|
|
928
944
|
"stocktaking": [5, 3, 16, 18],
|
|
929
945
|
"platform-message": [3, 3, 18, 18],
|
|
930
946
|
"analytics-message": [3, 3, 18, 18],
|
|
931
947
|
"sales-return": [3, 3, 18, 18],
|
|
932
|
-
"sales-outbound": [3, 3,
|
|
933
|
-
"transfer-outbound": [3, 3, 18,
|
|
934
|
-
"transfer-inbound": [3, 3, 18,
|
|
948
|
+
"sales-outbound": [3, 3, 17.585855, 18],
|
|
949
|
+
"transfer-outbound": [3, 3.778461, 18, 17.221539],
|
|
950
|
+
"transfer-inbound": [3, 3.778461, 18, 17.221539],
|
|
935
951
|
"activity": [3, 6, 18, 13],
|
|
936
952
|
"align-center": [4, 6, 16, 12],
|
|
937
953
|
"align-justify": [4, 6, 16, 12],
|
|
@@ -1693,6 +1709,7 @@ function MenuLevel({
|
|
|
1693
1709
|
function Menu({
|
|
1694
1710
|
items,
|
|
1695
1711
|
mode = "vertical",
|
|
1712
|
+
gridColumns = 2,
|
|
1696
1713
|
theme = "light",
|
|
1697
1714
|
selectedKeys,
|
|
1698
1715
|
defaultSelectedKeys = [],
|
|
@@ -1708,6 +1725,7 @@ function Menu({
|
|
|
1708
1725
|
onDeselect,
|
|
1709
1726
|
onOpenChange,
|
|
1710
1727
|
className = "",
|
|
1728
|
+
style,
|
|
1711
1729
|
...rest
|
|
1712
1730
|
}) {
|
|
1713
1731
|
const menuId = (0, import_react6.useId)();
|
|
@@ -1740,7 +1758,8 @@ function Menu({
|
|
|
1740
1758
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
1741
1759
|
if (mode !== "inline") setOpen([]);
|
|
1742
1760
|
}
|
|
1743
|
-
|
|
1761
|
+
const gridStyle = mode === "grid" ? { "--sia-menu-grid-columns": gridColumns === "auto" ? "repeat(auto-fill, minmax(88px, 1fr))" : `repeat(${Number.isFinite(gridColumns) ? Math.max(1, Math.floor(Number(gridColumns))) : 2}, minmax(0, 1fr))` } : {};
|
|
1762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...withTitleTooltip(rest), style: { ...gridStyle, ...style }, "data-sia-menu-owner": menuId, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
|
|
1744
1763
|
}
|
|
1745
1764
|
function Segmented({ options, value, defaultValue, variant = "default", shape = "capsule", size: sizeProp, block = false, vertical = false, disabled = false, onChange, className = "", onKeyDown, ...props }) {
|
|
1746
1765
|
const size = useControlSize(sizeProp);
|
|
@@ -4557,8 +4576,15 @@ var Select = (0, import_react25.forwardRef)(function Select2({
|
|
|
4557
4576
|
function clearSelection() {
|
|
4558
4577
|
setCurrentValue(multiple ? [] : null);
|
|
4559
4578
|
}
|
|
4579
|
+
function handleDropdownEscape(event) {
|
|
4580
|
+
if (event.key !== "Escape" || !open || popupMode !== "dropdown") return false;
|
|
4581
|
+
event.preventDefault();
|
|
4582
|
+
event.stopPropagation();
|
|
4583
|
+
closeDropdown();
|
|
4584
|
+
return true;
|
|
4585
|
+
}
|
|
4560
4586
|
function handleInteractionKeyDown(event, fromSearch = false) {
|
|
4561
|
-
if (popupMode === "modal" && open) return;
|
|
4587
|
+
if (handleDropdownEscape(event) || popupMode === "modal" && open) return;
|
|
4562
4588
|
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
4563
4589
|
event.preventDefault();
|
|
4564
4590
|
if (!open) openDropdown();
|
|
@@ -4663,7 +4689,7 @@ var Select = (0, import_react25.forwardRef)(function Select2({
|
|
|
4663
4689
|
}
|
|
4664
4690
|
),
|
|
4665
4691
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
4666
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
4692
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PopupPortal, { ref: popupRef, onKeyDown: handleDropdownEscape, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
4667
4693
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FloatingScrollbarProvider, { targetRef: listRef }),
|
|
4668
4694
|
showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "sia-select__search", children: [
|
|
4669
4695
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "search", size: 15 }),
|