@pisell/materials 6.11.96 → 6.11.97
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/buttonGroupPreview/index.js +1 -2
- package/es/components/pisellFind/index.d.ts +12 -34
- package/es/components/pisellFind/index.js +18 -114
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +2 -4
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +3 -1
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +5 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -4
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +3 -3
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +5 -0
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +1 -2
- package/es/components/productCard/lineItem/BookingLineItem.js +6 -15
- package/es/components/productCard/lineItem/index.d.ts +8 -10
- package/es/components/productCard/lineItem/index.js +13 -61
- package/es/components/productCard/lineItem/index.less +3 -3
- package/es/components/productCard/lineItem/types.d.ts +0 -4
- package/es/components/productCard/types.d.ts +0 -1
- package/lib/components/buttonGroupPreview/index.js +1 -2
- package/lib/components/pisellFind/index.d.ts +12 -34
- package/lib/components/pisellFind/index.js +5 -80
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +17 -5
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +5 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -4
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +21 -1
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +5 -0
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +1 -2
- package/lib/components/productCard/lineItem/BookingLineItem.js +2 -14
- package/lib/components/productCard/lineItem/index.d.ts +8 -10
- package/lib/components/productCard/lineItem/index.js +10 -51
- package/lib/components/productCard/lineItem/index.less +3 -3
- package/lib/components/productCard/lineItem/types.d.ts +0 -4
- package/lib/components/productCard/types.d.ts +0 -1
- package/lowcode/pisell-find/meta.ts +0 -19
- package/package.json +3 -3
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/es/components/PisellScrollView/types.d.ts +0 -203
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -29
- package/es/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +0 -37
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -66
- package/es/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +0 -16
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -26
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -44
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +0 -9
- package/es/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -61
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -28
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +0 -61
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +0 -15
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -79
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -91
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -37
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -778
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +0 -45
- package/es/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +0 -267
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +0 -44
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +0 -34
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/es/components/productCard/lineItem/components/Holders/index.js +0 -74
- package/es/components/productCard/lineItem/components/Holders/index.less +0 -39
- package/es/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -12
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/lib/components/PisellScrollView/types.d.ts +0 -203
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -29
- package/lib/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +0 -37
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -66
- package/lib/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +0 -16
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -26
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -44
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +0 -9
- package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -61
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -28
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +0 -61
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +0 -15
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -79
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -91
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -37
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -778
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +0 -45
- package/lib/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +0 -267
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +0 -44
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +0 -34
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/lib/components/productCard/lineItem/components/Holders/index.js +0 -83
- package/lib/components/productCard/lineItem/components/Holders/index.less +0 -39
- package/lib/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.97",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"antd-mobile": "^5.38.1",
|
|
100
100
|
"vod-js-sdk-v6": "^1.4.11",
|
|
101
101
|
"@pisell/date-picker": "3.0.8",
|
|
102
|
-
"@pisell/
|
|
103
|
-
"@pisell/
|
|
102
|
+
"@pisell/icon": "0.0.11",
|
|
103
|
+
"@pisell/utils": "3.0.2"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": "^18.0.0",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellScrollViewProps, PisellScrollViewRef } from './types';
|
|
3
|
-
import './PisellScrollView.less';
|
|
4
|
-
declare const PisellScrollView: React.ForwardRefExoticComponent<Omit<PisellScrollViewProps, "ref"> & React.RefAttributes<PisellScrollViewRef>>;
|
|
5
|
-
export default PisellScrollView;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ScrollEventData, PisellScrollViewProps, ScrollActionsConfig } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface ActionsContainerProps {
|
|
5
|
-
scrollState: ScrollEventData;
|
|
6
|
-
overflow: PisellScrollViewProps['overflow'];
|
|
7
|
-
scrollActionsConfig: ScrollActionsConfig;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
9
|
-
onClick: (direction: 'left' | 'right' | 'top' | 'bottom') => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ActionsContainer 根据 scrollActionsConfig 渲染滚动辅助操作。
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <ActionsContainer scrollActionsConfig={{ show: true, type: 'indicator' }} />
|
|
16
|
-
*/
|
|
17
|
-
declare const ActionsContainer: ({ containerRef, scrollState, overflow, scrollActionsConfig, onClick, }: ActionsContainerProps) => React.JSX.Element | null;
|
|
18
|
-
export default ActionsContainer;
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 滚动位置配置
|
|
4
|
-
*/
|
|
5
|
-
export interface ScrollPosition {
|
|
6
|
-
/** 竖向滚动位置(像素) */
|
|
7
|
-
scrollTop?: number;
|
|
8
|
-
/** 横向滚动位置(像素) */
|
|
9
|
-
scrollLeft?: number;
|
|
10
|
-
/** 滚动行为 */
|
|
11
|
-
behavior?: 'auto' | 'smooth';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 滚动到元素配置
|
|
15
|
-
*/
|
|
16
|
-
export interface ScrollToElementConfig {
|
|
17
|
-
/** 目标元素 ID */
|
|
18
|
-
targetId: string;
|
|
19
|
-
/** 对齐方式 */
|
|
20
|
-
align?: 'start' | 'center' | 'end' | 'nearest';
|
|
21
|
-
/** 滚动行为 */
|
|
22
|
-
behavior?: 'auto' | 'smooth';
|
|
23
|
-
/** 偏移量 */
|
|
24
|
-
offset?: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 滚动百分比配置
|
|
28
|
-
*/
|
|
29
|
-
export interface ScrollPercentage {
|
|
30
|
-
/** 竖向滚动百分比 (0-100) */
|
|
31
|
-
percentY?: number;
|
|
32
|
-
/** 横向滚动百分比 (0-100) */
|
|
33
|
-
percentX?: number;
|
|
34
|
-
/** 滚动行为 */
|
|
35
|
-
behavior?: 'auto' | 'smooth';
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 滚动按钮配置
|
|
39
|
-
*/
|
|
40
|
-
export interface ScrollActionsConfig {
|
|
41
|
-
show?: boolean;
|
|
42
|
-
/** 按钮类型 */
|
|
43
|
-
type: "backTop" | "rArrows" | "lrArrows" | "tbArrows" | "indicator" | "custom";
|
|
44
|
-
style?: CSSProperties;
|
|
45
|
-
scrollDistance?: number;
|
|
46
|
-
/** 按钮配置 根据type不同,配置不同 */
|
|
47
|
-
config?: any;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* 滚动事件数据
|
|
51
|
-
*/
|
|
52
|
-
export interface ScrollEventData {
|
|
53
|
-
/** 当前滚动位置 */
|
|
54
|
-
scrollTop: number;
|
|
55
|
-
scrollLeft: number;
|
|
56
|
-
/** 滚动百分比 */
|
|
57
|
-
percentY: number;
|
|
58
|
-
percentX: number;
|
|
59
|
-
/** 可滚动高度/宽度 */
|
|
60
|
-
scrollHeight: number;
|
|
61
|
-
scrollWidth: number;
|
|
62
|
-
/** 容器尺寸 */
|
|
63
|
-
clientHeight: number;
|
|
64
|
-
clientWidth: number;
|
|
65
|
-
/** 滚动方向 */
|
|
66
|
-
direction: 'up' | 'down' | 'left' | 'right' | null;
|
|
67
|
-
/** 是否滚动到顶部 */
|
|
68
|
-
isScrollToTop: boolean;
|
|
69
|
-
/** 是否滚动到底部 */
|
|
70
|
-
isScrollToBottom: boolean;
|
|
71
|
-
/** 是否滚动到左边 */
|
|
72
|
-
isScrollToLeft: boolean;
|
|
73
|
-
/** 是否滚动到右边 */
|
|
74
|
-
isScrollToRight: boolean;
|
|
75
|
-
/** 是否已经产生滚动条 */
|
|
76
|
-
isOverflows: boolean;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* 视图监听配置
|
|
80
|
-
*/
|
|
81
|
-
export interface IntersectionConfig {
|
|
82
|
-
/** 是否启用视图监听 */
|
|
83
|
-
enabled?: boolean;
|
|
84
|
-
/** 交叉阈值 (0-1) */
|
|
85
|
-
threshold?: number | number[];
|
|
86
|
-
/** 根边距 */
|
|
87
|
-
rootMargin?: string;
|
|
88
|
-
/** 元素进入视图回调 */
|
|
89
|
-
onEnterViewport?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
90
|
-
/** 元素离开视图回调 */
|
|
91
|
-
onLeaveViewport?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
92
|
-
/** 可见度变化回调 */
|
|
93
|
-
onVisibilityChange?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
94
|
-
/** 需要监听的元素选择器 */
|
|
95
|
-
targetSelector?: string;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* 吸附滚动配置
|
|
99
|
-
*/
|
|
100
|
-
export interface SnapScrollConfig {
|
|
101
|
-
/** 是否启用吸附滚动 */
|
|
102
|
-
enabled?: boolean;
|
|
103
|
-
/** 吸附类型 */
|
|
104
|
-
type?: 'mandatory' | 'proximity';
|
|
105
|
-
/** 吸附对齐方式 */
|
|
106
|
-
align?: 'start' | 'center' | 'end';
|
|
107
|
-
/** 吸附开始回调 */
|
|
108
|
-
onSnapStart?: (targetIndex: number, targetPosition: number) => void;
|
|
109
|
-
/** 吸附结束回调 */
|
|
110
|
-
onSnapEnd?: (currentIndex: number, currentPosition: number) => void;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* PisellScrollView 组件 Props
|
|
114
|
-
*/
|
|
115
|
-
export interface PisellScrollViewProps {
|
|
116
|
-
/** 子元素 */
|
|
117
|
-
children?: ReactNode;
|
|
118
|
-
/** 自定义类名 */
|
|
119
|
-
className?: string;
|
|
120
|
-
/** 自定义样式 */
|
|
121
|
-
style?: CSSProperties;
|
|
122
|
-
/** 滚动方向 */
|
|
123
|
-
overflow?: 'auto' | 'scroll' | 'hidden' | 'x' | 'y' | 'both';
|
|
124
|
-
/** 滚动条样式 */
|
|
125
|
-
scrollbarStyle?: 'default' | 'thin' | 'minimal' | 'rounded' | 'overlay' | 'custom' | 'none';
|
|
126
|
-
/** 自定义滚动条类名(当 scrollbarStyle 为 'custom' 时使用) */
|
|
127
|
-
scrollbarClassName?: string;
|
|
128
|
-
/** 是否显示滚动按钮 */
|
|
129
|
-
showScrollButtons?: boolean;
|
|
130
|
-
/** 箭头操作 */
|
|
131
|
-
scrollActionsConfig?: ScrollActionsConfig;
|
|
132
|
-
/** 滚动时触发 */
|
|
133
|
-
onScroll?: (data: ScrollEventData) => void;
|
|
134
|
-
/** 开始滚动时触发 */
|
|
135
|
-
onScrollStart?: (data: ScrollEventData) => void;
|
|
136
|
-
/** 滚动结束时触发(防抖延迟,默认 150ms) */
|
|
137
|
-
onScrollEnd?: (data: ScrollEventData) => void;
|
|
138
|
-
/** 滚动结束防抖延迟时间(ms) */
|
|
139
|
-
scrollEndDelay?: number;
|
|
140
|
-
/** 到达顶部时触发 */
|
|
141
|
-
onReachTop?: (data: ScrollEventData) => void;
|
|
142
|
-
/** 到达底部时触发 */
|
|
143
|
-
onReachBottom?: (data: ScrollEventData) => void;
|
|
144
|
-
/** 到达左边时触发 */
|
|
145
|
-
onReachLeft?: (data: ScrollEventData) => void;
|
|
146
|
-
/** 到达右边时触发 */
|
|
147
|
-
onReachRight?: (data: ScrollEventData) => void;
|
|
148
|
-
/** 边界阈值(到达边界的像素阈值) */
|
|
149
|
-
reachThreshold?: number;
|
|
150
|
-
/** IntersectionObserver 配置 */
|
|
151
|
-
intersection?: IntersectionConfig;
|
|
152
|
-
/** 吸附滚动配置 */
|
|
153
|
-
snapScroll?: SnapScrollConfig;
|
|
154
|
-
/** 容器宽度 */
|
|
155
|
-
width?: number | string;
|
|
156
|
-
/** 容器高度 */
|
|
157
|
-
height?: number | string;
|
|
158
|
-
/** 最大宽度 */
|
|
159
|
-
maxWidth?: number | string;
|
|
160
|
-
/** 最大高度 */
|
|
161
|
-
maxHeight?: number | string;
|
|
162
|
-
/** 最小宽度 */
|
|
163
|
-
minWidth?: number | string;
|
|
164
|
-
/** 最小高度 */
|
|
165
|
-
minHeight?: number | string;
|
|
166
|
-
/** Ref 引用 */
|
|
167
|
-
ref?: React.Ref<PisellScrollViewRef>;
|
|
168
|
-
/** 设计模式 */
|
|
169
|
-
__designMode?: boolean;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* 组件暴露的方法
|
|
173
|
-
*/
|
|
174
|
-
export interface PisellScrollViewRef {
|
|
175
|
-
/** 滚动到指定位置 */
|
|
176
|
-
scrollTo: (position: ScrollPosition) => void;
|
|
177
|
-
/** 滚动到指定元素 */
|
|
178
|
-
scrollToElement: (config: ScrollToElementConfig) => void;
|
|
179
|
-
/** 滚动到百分比位置 */
|
|
180
|
-
scrollToPercentage: (percentage: ScrollPercentage) => void;
|
|
181
|
-
/** 滚动到顶部 */
|
|
182
|
-
scrollToTop: (behavior?: 'auto' | 'smooth') => void;
|
|
183
|
-
/** 滚动到底部 */
|
|
184
|
-
scrollToBottom: (behavior?: 'auto' | 'smooth') => void;
|
|
185
|
-
/** 滚动到最左侧 */
|
|
186
|
-
scrollToLeft: (behavior?: 'auto' | 'smooth') => void;
|
|
187
|
-
/** 滚动到最右侧 */
|
|
188
|
-
scrollToRight: (behavior?: 'auto' | 'smooth') => void;
|
|
189
|
-
/** 获取当前滚动信息 */
|
|
190
|
-
getScrollData: () => ScrollEventData;
|
|
191
|
-
/** 获取滚动容器 DOM 元素 */
|
|
192
|
-
getScrollContainer: () => HTMLElement | null;
|
|
193
|
-
/** 滚动到指定吸附点(索引) */
|
|
194
|
-
scrollToSnapPoint: (index: number, behavior?: 'auto' | 'smooth') => void;
|
|
195
|
-
/** 获取所有吸附点位置 */
|
|
196
|
-
getSnapPoints: () => number[];
|
|
197
|
-
/** 获取当前吸附点索引 */
|
|
198
|
-
getCurrentSnapIndex: () => number;
|
|
199
|
-
/** 滚动到下一个吸附点 */
|
|
200
|
-
scrollToNextSnap: (behavior?: 'auto' | 'smooth') => void;
|
|
201
|
-
/** 滚动到上一个吸附点 */
|
|
202
|
-
scrollToPrevSnap: (behavior?: 'auto' | 'smooth') => void;
|
|
203
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
'zh-CN': string;
|
|
10
|
-
'zh-HK': string;
|
|
11
|
-
'ja': string;
|
|
12
|
-
'pt': string;
|
|
13
|
-
original: string;
|
|
14
|
-
};
|
|
15
|
-
code: string;
|
|
16
|
-
calling_code: string;
|
|
17
|
-
currency_code: string;
|
|
18
|
-
sort: number;
|
|
19
|
-
status: string;
|
|
20
|
-
created_at: string;
|
|
21
|
-
updated_at: string;
|
|
22
|
-
prefix: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const useCountries: () => {
|
|
25
|
-
data: Country[];
|
|
26
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
|
|
6
|
-
export interface Country {
|
|
7
|
-
id: number;
|
|
8
|
-
name: {
|
|
9
|
-
en: string;
|
|
10
|
-
'zh-CN': string;
|
|
11
|
-
'zh-HK': string;
|
|
12
|
-
'ja': string;
|
|
13
|
-
'pt': string;
|
|
14
|
-
original: string;
|
|
15
|
-
};
|
|
16
|
-
code: string;
|
|
17
|
-
calling_code: string;
|
|
18
|
-
currency_code: string;
|
|
19
|
-
sort: number;
|
|
20
|
-
status: string;
|
|
21
|
-
created_at: string;
|
|
22
|
-
updated_at: string;
|
|
23
|
-
prefix: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const useCountries: () => {
|
|
26
|
-
data: Country[];
|
|
27
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceContainerContextType } from '../../type';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<Partial<import("antd").PaginationProps> & DataSourceContainerContextType & React.RefAttributes<unknown> & {
|
|
4
|
-
refId?: string | undefined;
|
|
5
|
-
}, "ref"> & React.RefAttributes<any>>;
|
|
6
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PisellFloorMapLayout - 空间布局视图
|
|
3
|
-
* 支持两种用法:1) 仅传入 items + renderItem(原有用法);2) 传入 floorMapConfig + dataSources + mode 使用平面图视图(含多画布/编辑态)
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { FloorMapItemBase, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from './types';
|
|
7
|
-
import './PisellFloorMapLayout.less';
|
|
8
|
-
/** 空间布局根组件:阅读/编辑、列表与平面图双模式,ref 见 {@link PisellFloorMapLayoutRef} */
|
|
9
|
-
declare const PisellFloorMapLayout: <T extends FloorMapItemBase = FloorMapItemBase>(props: PisellFloorMapLayoutProps<T> & {
|
|
10
|
-
ref?: React.Ref<PisellFloorMapLayoutRef | null> | undefined;
|
|
11
|
-
}) => React.ReactElement;
|
|
12
|
-
export { PisellFloorMapLayout };
|
|
13
|
-
export default PisellFloorMapLayout;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { FloorMapEdgeStatus } from '../types';
|
|
2
|
-
export declare type FloorMapAppearanceMode = 'light' | 'dark';
|
|
3
|
-
export interface FloorMapEdgeStatusStyle {
|
|
4
|
-
readonly stroke: string;
|
|
5
|
-
readonly dashed: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface FloorMapAppearanceTokens {
|
|
8
|
-
readonly mode: FloorMapAppearanceMode;
|
|
9
|
-
/**
|
|
10
|
-
* 外观模式提供的画布背景兜底色。
|
|
11
|
-
* 若调用方显式传入 `mapLayer.backgroundColor`,应以显式背景色为准。
|
|
12
|
-
*/
|
|
13
|
-
readonly fallbackCanvasBackgroundColor: string;
|
|
14
|
-
/** 按连线状态默认描边样式 */
|
|
15
|
-
readonly edgeStatusStyles: Record<FloorMapEdgeStatus, FloorMapEdgeStatusStyle>;
|
|
16
|
-
readonly edgeSelectedStroke: string;
|
|
17
|
-
readonly edgeGhostStroke: string;
|
|
18
|
-
readonly edgePortLabelBackground: string;
|
|
19
|
-
readonly edgePortLabelText: string;
|
|
20
|
-
readonly edgePortLabelBorder: string;
|
|
21
|
-
/** 拖动/缩放图元时的边对齐辅助线颜色(主题色) */
|
|
22
|
-
readonly alignGuideStroke: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 按外观模式返回 floorMap 画布背景 token。
|
|
26
|
-
* 当前仅承载通用画布背景兜底色,不包含业务壳层颜色;
|
|
27
|
-
* 渲染层应先尊重显式 `mapLayer.backgroundColor`,再回退到这里的 token。
|
|
28
|
-
*/
|
|
29
|
-
export declare function getFloorMapAppearanceTokens(mode: FloorMapAppearanceMode): FloorMapAppearanceTokens;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EdgeLayer - 拓扑连线 SVG 层(正交折线 + 端口标签)
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapAppearanceTokens } from '../appearance/floorMapAppearance';
|
|
6
|
-
import type { FloorMapEdge } from '../types';
|
|
7
|
-
import { type FloorMapEdgeRoute, type FloorMapItemPixelRect } from '../utils/edgeRouting';
|
|
8
|
-
import './EdgeLayer.less';
|
|
9
|
-
export interface EdgeLayerProps {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
contentOffsetX?: number;
|
|
13
|
-
contentOffsetY?: number;
|
|
14
|
-
edges: FloorMapEdge[];
|
|
15
|
-
routes: FloorMapEdgeRoute[];
|
|
16
|
-
rectsById: Map<string, FloorMapItemPixelRect>;
|
|
17
|
-
appearance: FloorMapAppearanceTokens;
|
|
18
|
-
mode: 'read' | 'edit';
|
|
19
|
-
selectedEdgeId?: string | null;
|
|
20
|
-
ghostPathD?: string | null;
|
|
21
|
-
onEdgeClick?: (edgeId: string, event: React.MouseEvent) => void;
|
|
22
|
-
/** 画布 viewport scale,用于段手柄反向缩放 */
|
|
23
|
-
viewportScale?: number;
|
|
24
|
-
/** 段手柄拖动开始(含首/末段以触发 stub 插入) */
|
|
25
|
-
onSegmentDragStart?: (params: {
|
|
26
|
-
edgeId: string;
|
|
27
|
-
role: 'first' | 'last' | 'inner';
|
|
28
|
-
segmentIndex: number;
|
|
29
|
-
axis: 'h' | 'v';
|
|
30
|
-
startPosition: number;
|
|
31
|
-
clientX: number;
|
|
32
|
-
clientY: number;
|
|
33
|
-
segmentLength?: number;
|
|
34
|
-
}) => void;
|
|
35
|
-
className?: string;
|
|
36
|
-
}
|
|
37
|
-
export declare function EdgeLayer(props: EdgeLayerProps): React.JSX.Element;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EditableItemLayer - 编辑态图元层:拖拽、缩放、选中、吸附
|
|
3
|
-
*/
|
|
4
|
-
import React, { type CSSProperties } from 'react';
|
|
5
|
-
import type { FloorMapItemBase, FloorMapMergedItem, FloorMapRenderOptions } from '../types';
|
|
6
|
-
import { type AlignGuide } from '../utils/alignSnap';
|
|
7
|
-
import { type FloorMapEditQuickActionLabels } from './FloorMapEditQuickActions';
|
|
8
|
-
import './EditableItemLayer.less';
|
|
9
|
-
export interface EditableItemLayerProps<T extends FloorMapItemBase = FloorMapMergedItem> {
|
|
10
|
-
items: T[];
|
|
11
|
-
renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => React.ReactNode;
|
|
12
|
-
rowKey?: string | ((item: T, index: number) => string);
|
|
13
|
-
cellSize: number;
|
|
14
|
-
itemUnit?: 'cell' | 'pixel';
|
|
15
|
-
itemGap?: number;
|
|
16
|
-
contentWidth: number;
|
|
17
|
-
contentHeight: number;
|
|
18
|
-
/** 内容区 X/Y 偏移(画布包围盒向左/上扩展时,图元层整体平移) */
|
|
19
|
-
contentOffsetX?: number;
|
|
20
|
-
contentOffsetY?: number;
|
|
21
|
-
selectedId: string | null;
|
|
22
|
-
onSelect: (id: string | null) => void;
|
|
23
|
-
onUpdateItem: (itemId: string, patch: Partial<{
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}>) => void;
|
|
29
|
-
snapStep?: number;
|
|
30
|
-
/** 画布当前缩放,用于将屏幕位移转为内容位移 */
|
|
31
|
-
scale?: number;
|
|
32
|
-
/** 拖拽/缩放图元时通知父组件,用于禁用画布平移,避免松手时画布跟着动 */
|
|
33
|
-
onInteractionChange?: (active: boolean) => void;
|
|
34
|
-
/**
|
|
35
|
-
* 拖拽/缩放过程中的像素矩形(内容坐标),用于 EdgeLayer 实时重算连线。
|
|
36
|
-
* itemId 为 null 表示结束交互。
|
|
37
|
-
*/
|
|
38
|
-
onLiveRectChange?: (itemId: string | null, rect: {
|
|
39
|
-
left: number;
|
|
40
|
-
top: number;
|
|
41
|
-
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
} | null) => void;
|
|
44
|
-
/**
|
|
45
|
-
* 对齐阈值(屏幕像素,组件内会按 scale 折算到内容坐标)。
|
|
46
|
-
* 0 或负数关闭对齐。
|
|
47
|
-
*/
|
|
48
|
-
alignSnapThresholdPx?: number;
|
|
49
|
-
/** 命中的对齐辅助线变化;交互结束时回调一次空数组 */
|
|
50
|
-
onAlignGuidesChange?: (guides: AlignGuide[]) => void;
|
|
51
|
-
/** 对齐辅助线颜色(推荐用主题 token `alignGuideStroke`) */
|
|
52
|
-
alignGuideStroke?: string;
|
|
53
|
-
/** 每项外层容器额外样式(与定位样式合并) */
|
|
54
|
-
getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
|
|
55
|
-
className?: string;
|
|
56
|
-
/** 编辑态选中时图元旁快捷栏(上锁 / 复制 / 删除) */
|
|
57
|
-
editQuickBar?: {
|
|
58
|
-
labels: FloorMapEditQuickActionLabels;
|
|
59
|
-
isLocked: boolean;
|
|
60
|
-
onToggleLock: () => void;
|
|
61
|
-
onDuplicate: () => void;
|
|
62
|
-
onDelete: () => void;
|
|
63
|
-
} | null;
|
|
64
|
-
}
|
|
65
|
-
export declare function EditableItemLayer<T extends FloorMapItemBase>(props: EditableItemLayerProps<T>): React.JSX.Element;
|
|
66
|
-
export default EditableItemLayer;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapEdgeEditPanel - 选中连线后的侧栏编辑
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapEdge, FloorMapViewConfig } from '../types';
|
|
6
|
-
import './FloorMapEdgeEditPanel.less';
|
|
7
|
-
export interface FloorMapEdgeEditPanelProps {
|
|
8
|
-
edge: FloorMapEdge;
|
|
9
|
-
config: FloorMapViewConfig;
|
|
10
|
-
onUpdate: (patch: Partial<FloorMapEdge>) => void;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onDelete?: () => void;
|
|
13
|
-
layoutDraftDirty?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function FloorMapEdgeEditPanel(props: FloorMapEdgeEditPanelProps): React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapEditPanel - 选中图元后的编辑面板:画布属性 + 可选数据绑定 + 数据源记录表单
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapEditPanelParams, FloorMapViewConfig, FloorMapDataSources } from '../types';
|
|
6
|
-
import './FloorMapEditPanel.less';
|
|
7
|
-
export interface FloorMapEditPanelProps extends FloorMapEditPanelParams {
|
|
8
|
-
config: FloorMapViewConfig;
|
|
9
|
-
dataSources: FloorMapDataSources;
|
|
10
|
-
savingRecord?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function FloorMapEditPanel(props: FloorMapEditPanelProps): React.JSX.Element;
|
|
14
|
-
export default FloorMapEditPanel;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 编辑态选中图元旁的快捷操作:锁定 / 复制 / 删除(与侧栏同源逻辑)
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface FloorMapEditQuickActionLabels {
|
|
6
|
-
lock: string;
|
|
7
|
-
unlock: string;
|
|
8
|
-
duplicate: string;
|
|
9
|
-
delete: string;
|
|
10
|
-
popTitle: string;
|
|
11
|
-
popDesc: string;
|
|
12
|
-
cancel: string;
|
|
13
|
-
okDelete: string;
|
|
14
|
-
ariaToolbar: string;
|
|
15
|
-
}
|
|
16
|
-
export interface FloorMapEditQuickActionsProps {
|
|
17
|
-
className?: string;
|
|
18
|
-
labels: FloorMapEditQuickActionLabels;
|
|
19
|
-
isLocked: boolean;
|
|
20
|
-
onToggleLock: () => void;
|
|
21
|
-
onDuplicate: () => void;
|
|
22
|
-
onDelete: () => void;
|
|
23
|
-
/** 画布 viewport scale,用于按 1/scale 反向缩放整个工具条,保持视觉尺寸恒定 */
|
|
24
|
-
viewportScale?: number;
|
|
25
|
-
}
|
|
26
|
-
export declare function FloorMapEditQuickActions(props: FloorMapEditQuickActionsProps): React.JSX.Element;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapOverview - 阅读态「All」全览视图(纯渲染版)
|
|
3
|
-
*
|
|
4
|
-
* 仅负责把 {@link OverviewLayout} 中各画布的图元渲染到对应的绝对定位区域里;
|
|
5
|
-
* 由 PisellFloorMapLayout 在主 TransformWrapper 内挂载,与单画布共享同一套
|
|
6
|
-
* 视口控件(缩放、平移、锁定、全屏、fitBounds、网格按钮等)。
|
|
7
|
-
*
|
|
8
|
-
* 设计要点:
|
|
9
|
-
* - 不再自带 TransformWrapper / ResizeObserver / fit 算法;
|
|
10
|
-
* - 每个画布作为独立区域,仅一条细边框作分隔,无背景色/网格;
|
|
11
|
-
* - 画布名显示在边框外的标题带;标题不拦截图元交互;
|
|
12
|
-
* - 仅渲染 ItemLayer(阅读态),与单画布的 hover/click 行为一致;编辑层不渲染。
|
|
13
|
-
*/
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import type { OverviewLayout } from '../utils/floorMapOverviewLayout';
|
|
16
|
-
import type { FloorMapItemBase, FloorMapItemUnit, FloorMapRenderOptions, FloorMapViewConfig } from '../types';
|
|
17
|
-
import './FloorMapOverview.less';
|
|
18
|
-
export interface FloorMapOverviewProps<T extends FloorMapItemBase> {
|
|
19
|
-
/** 由 PisellFloorMapLayout 算好的整体布局(区域位置 + 总尺寸) */
|
|
20
|
-
overviewLayout: OverviewLayout;
|
|
21
|
-
/**
|
|
22
|
-
* 仅用于把 `canvas.id` 映射成展示名(区域左上角 chip)。
|
|
23
|
-
* 直接传 config 而非映射表,避免父组件再多构造一层。
|
|
24
|
-
*/
|
|
25
|
-
config: FloorMapViewConfig;
|
|
26
|
-
itemUnit?: FloorMapItemUnit;
|
|
27
|
-
renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* 主 TransformWrapper 的当前缩放,透传到各区域 ItemLayer 的 `viewportScale`。
|
|
30
|
-
* 缺省(undefined)时下游 `renderItem` 拿不到 viewportScale,预约/桌位卡只能
|
|
31
|
-
* 按布局像素算 visualShortSide,**永远停在 comfortable 档**,进不去 tooltip-time
|
|
32
|
-
* 小卡片模式——这正是 All 视图缩放后看不到小卡的根因。
|
|
33
|
-
*/
|
|
34
|
-
viewportScale?: number;
|
|
35
|
-
enableHover?: boolean;
|
|
36
|
-
onItemClick?: (item: T, index: number, e: React.MouseEvent<HTMLElement>) => void;
|
|
37
|
-
onItemHover?: (item: T, index: number, e: React.MouseEvent<HTMLElement>) => void;
|
|
38
|
-
onItemLeave?: (item: T, index: number, e: React.MouseEvent<HTMLElement>) => void;
|
|
39
|
-
getMergedItemWrapperStyle?: (item: T, index: number) => React.CSSProperties | undefined;
|
|
40
|
-
readModeSelectedItemId?: string | null;
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare function FloorMapOverview<T extends FloorMapItemBase>(props: FloorMapOverviewProps<T>): React.JSX.Element;
|
|
44
|
-
export default FloorMapOverview;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapToolbar - 编辑态左侧侧边栏:按分类添加图元、绑定数据源与行;保存可选(默认用顶栏)
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapViewConfig, FloorMapDataSources, FloorMapMergedItem, FloorMapSceneElement, FloorMapPlaceMode } from '../types';
|
|
6
|
-
import { type FloorMapPaletteDragPayload } from '../utils/floorMapDropUtils';
|
|
7
|
-
import { type FloorMapPaletteBulkPlaceItem, type FloorMapToolbarPaletteEntry } from '../utils/floorMapToolbarPalette';
|
|
8
|
-
import type { FloorMapResourcePickerSlotProps } from '../utils/floorMapResourcePickerTypes';
|
|
9
|
-
import './FloorMapToolbar.less';
|
|
10
|
-
export type { FloorMapPlaceMode as PlaceMode };
|
|
11
|
-
export interface FloorMapToolbarProps {
|
|
12
|
-
config: FloorMapViewConfig;
|
|
13
|
-
dataSources: FloorMapDataSources;
|
|
14
|
-
dataSourceLabels?: Record<string, string>;
|
|
15
|
-
canCreate: boolean;
|
|
16
|
-
placeMode: FloorMapPlaceMode;
|
|
17
|
-
onPlaceModeChange: (mode: FloorMapPlaceMode) => void;
|
|
18
|
-
renderPreviewItem?: (item: FloorMapMergedItem) => React.ReactNode;
|
|
19
|
-
placementPreviewSize?: {
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
};
|
|
23
|
-
decorationPreviewSize?: number;
|
|
24
|
-
sceneElements?: FloorMapSceneElement[];
|
|
25
|
-
onSave?: () => void;
|
|
26
|
-
saving?: boolean;
|
|
27
|
-
saveError?: Error | string;
|
|
28
|
-
/** 布局草稿已相对持久化配置变更,提示用户点击本栏「保存」 */
|
|
29
|
-
layoutDirty?: boolean;
|
|
30
|
-
className?: string;
|
|
31
|
-
/** 触摸/笔:Pointer 拖拽落点(mouse 仍用 HTML5 DnD) */
|
|
32
|
-
onPaletteCardPointerDown?: (payload: FloorMapPaletteDragPayload, e: React.PointerEvent<HTMLButtonElement>) => void;
|
|
33
|
-
/** 触摸拖放结束后吞掉按钮 click,避免误触切换落点模式 */
|
|
34
|
-
consumeToolbarClickIfTouchDrag?: () => boolean;
|
|
35
|
-
/** 手机布局:侧栏悬浮覆盖画布(由 PisellFloorMapLayout + Less 控制定位) */
|
|
36
|
-
phoneLayout?: boolean;
|
|
37
|
-
/** 为 true 时初始为收起(预约手机编辑态默认收起图元栏) */
|
|
38
|
-
defaultCollapsed?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* 手机布局:选中图元种类后,一键在当前视口中心落点(与画布点击落点规则一致)。
|
|
41
|
-
*/
|
|
42
|
-
onRequestPlaceAtCanvasCenter?: () => void;
|
|
43
|
-
/**
|
|
44
|
-
* 每个调色板分类在侧栏直接展示的图元数量;超出则显示「查看全部」(默认见
|
|
45
|
-
* floorMapLayoutConstants.FLOOR_MAP_TOOLBAR_PALETTE_SIDEBAR_LIMIT,默认 5)。
|
|
46
|
-
*/
|
|
47
|
-
paletteSidebarVisibleLimit?: number;
|
|
48
|
-
/** 「查看全部」弹窗确认:批量落在画布右侧空白区(所有分类通用)。 */
|
|
49
|
-
onBulkAddPaletteToCanvas?: (items: FloorMapPaletteBulkPlaceItem[]) => void;
|
|
50
|
-
/**
|
|
51
|
-
* 「查看全部」弹窗渲染槽位:用于业务侧复用统一的选择弹窗(如 Selector + 数量选择)。
|
|
52
|
-
* 未传时使用内置 `FloorMapToolbarViewAllModal`(加减步进器)。
|
|
53
|
-
*/
|
|
54
|
-
renderPaletteViewAllModal?: (props: {
|
|
55
|
-
open: boolean;
|
|
56
|
-
categoryLabel: string;
|
|
57
|
-
entries: FloorMapToolbarPaletteEntry[];
|
|
58
|
-
onClose: () => void;
|
|
59
|
-
onConfirm: (items: FloorMapPaletteBulkPlaceItem[]) => void;
|
|
60
|
-
renderEntryPreview: (entry: FloorMapToolbarPaletteEntry) => React.ReactNode;
|
|
61
|
-
/** 容器平台:手机布局透传 `'h5'`,默认 `'pc'` */
|
|
62
|
-
platform?: 'pc' | 'h5' | 'ipad';
|
|
63
|
-
}) => React.ReactNode;
|
|
64
|
-
/**
|
|
65
|
-
* 资源选择弹窗点「确定」:按已选 recordIds 落画布(多选走批量网格,单选落视口中心附近)。
|
|
66
|
-
* @returns 是否已成功写入草稿
|
|
67
|
-
*/
|
|
68
|
-
onResourcePickerConfirmPlace?: (scene: Extract<FloorMapPlaceMode, {
|
|
69
|
-
type: 'scene';
|
|
70
|
-
}>) => boolean;
|
|
71
|
-
/**
|
|
72
|
-
* 资源选择 Modal 渲染(必传)。
|
|
73
|
-
* 通用基础 modal 已下线,业务侧需注入实现(如 `PisellProResourcePickerModal`);
|
|
74
|
-
* 未注入时仅打 warn,不渲染选择弹窗,资源选择交互不可用。
|
|
75
|
-
*/
|
|
76
|
-
renderResourcePickerModal?: (props: FloorMapResourcePickerSlotProps) => React.ReactNode;
|
|
77
|
-
/**
|
|
78
|
-
* 无二次选择的调色板项(装饰内置图形、底图图片、`dataBindingPolicy: none` 等):
|
|
79
|
-
* 侧栏点击即落在画布右侧空白区,不进入「再点画布」落点模式。
|
|
80
|
-
*/
|
|
81
|
-
onDirectPlacePaletteItem?: (item: FloorMapPaletteBulkPlaceItem) => void;
|
|
82
|
-
}
|
|
83
|
-
export declare function FloorMapToolbar(props: FloorMapToolbarProps): React.JSX.Element;
|
|
84
|
-
export default FloorMapToolbar;
|