@pisell/materials 6.11.240 → 6.11.241
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/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.js +15 -15
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/pisellFind/index.d.ts +2 -0
- package/es/components/pisellFind/index.js +11 -0
- package/es/components/pisellLookup/PisellLookup.js +22 -6
- package/es/components/pisellLookup/components/LookupResultHost.js +56 -38
- package/es/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/es/components/pisellLookup/types.d.ts +36 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/pisellFind/index.d.ts +2 -0
- package/lib/components/pisellFind/index.js +19 -0
- package/lib/components/pisellLookup/PisellLookup.js +18 -4
- package/lib/components/pisellLookup/components/LookupResultHost.js +50 -35
- package/lib/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/lib/components/pisellLookup/types.d.ts +36 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -0
- package/package.json +3 -3
- package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/es/components/PisellGroupView/index.d.ts +0 -6
- package/es/components/PisellGroupView/types.d.ts +0 -124
- package/es/components/PisellGroupView/utils/index.d.ts +0 -20
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/es/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/types.d.ts +0 -123
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -39
- 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/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- 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/floorMapSelectionZone.d.ts +0 -24
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/types.d.ts +0 -899
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/es/components/productCard/lineItem/index.d.ts +0 -72
- package/es/components/productCard/lineItem/locales.d.ts +0 -38
- package/es/components/productCard/types.d.ts +0 -98
- package/es/components/select-time/RightPanel/index.d.ts +0 -10
- package/es/components/select-time/index.d.ts +0 -16
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/hooks/useTranslationOriginal.d.ts +0 -4
- package/es/locales/en-US.d.ts +0 -566
- package/es/locales/ja.d.ts +0 -534
- package/es/locales/pt.d.ts +0 -534
- package/es/locales/zh-CN.d.ts +0 -561
- package/es/locales/zh-TW.d.ts +0 -561
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/lib/components/PisellGroupView/index.d.ts +0 -6
- package/lib/components/PisellGroupView/types.d.ts +0 -124
- package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/types.d.ts +0 -123
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -39
- 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/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- 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/floorMapSelectionZone.d.ts +0 -24
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/types.d.ts +0 -899
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/lib/components/productCard/lineItem/index.d.ts +0 -72
- package/lib/components/productCard/lineItem/locales.d.ts +0 -38
- package/lib/components/productCard/types.d.ts +0 -98
- package/lib/components/select-time/RightPanel/index.d.ts +0 -10
- package/lib/components/select-time/index.d.ts +0 -16
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/hooks/useTranslationOriginal.d.ts +0 -4
- package/lib/locales/en-US.d.ts +0 -566
- package/lib/locales/ja.d.ts +0 -534
- package/lib/locales/pt.d.ts +0 -534
- package/lib/locales/zh-CN.d.ts +0 -561
- package/lib/locales/zh-TW.d.ts +0 -561
|
@@ -1,89 +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
|
-
/**
|
|
30
|
-
* 一次提交多个图元的坐标变更(选区分组拖拽时整组落库),用于一步撤销。
|
|
31
|
-
* 未传时分组拖拽降级为不落库(仅预览)。
|
|
32
|
-
*/
|
|
33
|
-
onUpdateItemsBatch?: (patches: Array<{
|
|
34
|
-
id: string;
|
|
35
|
-
patch: Partial<{
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
}>;
|
|
41
|
-
}>) => void;
|
|
42
|
-
snapStep?: number;
|
|
43
|
-
/** 画布当前缩放,用于将屏幕位移转为内容位移 */
|
|
44
|
-
scale?: number;
|
|
45
|
-
/** 拖拽/缩放图元时通知父组件,用于禁用画布平移,避免松手时画布跟着动 */
|
|
46
|
-
onInteractionChange?: (active: boolean) => void;
|
|
47
|
-
/**
|
|
48
|
-
* 拖拽/缩放过程中的像素矩形(内容坐标),用于 EdgeLayer 实时重算连线。
|
|
49
|
-
* itemId 为 null 表示结束交互。
|
|
50
|
-
*/
|
|
51
|
-
onLiveRectChange?: (itemId: string | null, rect: {
|
|
52
|
-
left: number;
|
|
53
|
-
top: number;
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
} | null) => void;
|
|
57
|
-
/**
|
|
58
|
-
* 选区分组拖拽过程中,选区与全部成员的实时像素矩形(内容坐标),用于 EdgeLayer 重算连线。
|
|
59
|
-
* 传 null 表示结束分组交互。
|
|
60
|
-
*/
|
|
61
|
-
onLiveRectsChange?: (rects: Record<string, {
|
|
62
|
-
left: number;
|
|
63
|
-
top: number;
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
}> | null) => void;
|
|
67
|
-
/**
|
|
68
|
-
* 对齐阈值(屏幕像素,组件内会按 scale 折算到内容坐标)。
|
|
69
|
-
* 0 或负数关闭对齐。
|
|
70
|
-
*/
|
|
71
|
-
alignSnapThresholdPx?: number;
|
|
72
|
-
/** 命中的对齐辅助线变化;交互结束时回调一次空数组 */
|
|
73
|
-
onAlignGuidesChange?: (guides: AlignGuide[]) => void;
|
|
74
|
-
/** 对齐辅助线颜色(推荐用主题 token `alignGuideStroke`) */
|
|
75
|
-
alignGuideStroke?: string;
|
|
76
|
-
/** 每项外层容器额外样式(与定位样式合并) */
|
|
77
|
-
getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
|
|
78
|
-
className?: string;
|
|
79
|
-
/** 编辑态选中时图元旁快捷栏(上锁 / 复制 / 删除) */
|
|
80
|
-
editQuickBar?: {
|
|
81
|
-
labels: FloorMapEditQuickActionLabels;
|
|
82
|
-
isLocked: boolean;
|
|
83
|
-
onToggleLock: () => void;
|
|
84
|
-
onDuplicate: () => void;
|
|
85
|
-
onDelete: () => void;
|
|
86
|
-
} | null;
|
|
87
|
-
}
|
|
88
|
-
export declare function EditableItemLayer<T extends FloorMapItemBase>(props: EditableItemLayerProps<T>): React.JSX.Element;
|
|
89
|
-
export default EditableItemLayer;
|
|
@@ -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,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapEditTopBar - 编辑态顶栏
|
|
3
|
-
* - `mode="compact"`:画布 Tab + 可选 `canvasTabsBarTrailing`(全屏入口在左下 Dock)
|
|
4
|
-
* - `mode="full"`:画布 Tab + `canvasTabsBarTrailing` + 保存(仅非浏览器全屏时)+ 扩展操作
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { CanvasTabsProps } from './CanvasTabs';
|
|
8
|
-
import type { FloorMapControlsConfig, FloorMapViewConfig } from '../types';
|
|
9
|
-
import './FloorMapEditTopBar.less';
|
|
10
|
-
export declare type FloorMapEditTopBarMode = 'full' | 'compact';
|
|
11
|
-
export interface FloorMapEditTopBarProps {
|
|
12
|
-
/** full:全屏时的完整顶栏;compact:非全屏时 Tab + 扩展区 */
|
|
13
|
-
mode?: FloorMapEditTopBarMode;
|
|
14
|
-
config: FloorMapViewConfig;
|
|
15
|
-
canvases: CanvasTabsProps['canvases'];
|
|
16
|
-
currentCanvasId: CanvasTabsProps['currentCanvasId'];
|
|
17
|
-
onTabChange: CanvasTabsProps['onTabChange'];
|
|
18
|
-
canEditTabs?: CanvasTabsProps['canEdit'];
|
|
19
|
-
onAddCanvas?: CanvasTabsProps['onAddCanvas'];
|
|
20
|
-
onRemoveCanvas?: CanvasTabsProps['onRemoveCanvas'];
|
|
21
|
-
onRenameCanvas?: CanvasTabsProps['onRenameCanvas'];
|
|
22
|
-
onSave?: () => void;
|
|
23
|
-
saving?: boolean;
|
|
24
|
-
saveError?: Error | string;
|
|
25
|
-
layoutDirty?: boolean;
|
|
26
|
-
/** full 模式:浏览器全屏时为 true,顶栏不展示保存(改由侧栏) */
|
|
27
|
-
isFullscreen?: boolean;
|
|
28
|
-
controls?: FloorMapControlsConfig;
|
|
29
|
-
/** 顶栏右侧扩展(如「区域定位」等),仅 full 模式 */
|
|
30
|
-
extraActions?: React.ReactNode;
|
|
31
|
-
/** 画布 Tab 同排最右侧业务区 */
|
|
32
|
-
canvasTabsBarTrailing?: React.ReactNode;
|
|
33
|
-
/** 启用画布仅 1 个时隐藏 Tab 行,仅保留右侧操作区(全屏顶栏保存等) */
|
|
34
|
-
hideCanvasTabs?: boolean;
|
|
35
|
-
/** 撤销当前编辑步骤(不传则不显示按钮) */
|
|
36
|
-
onUndo?: () => void;
|
|
37
|
-
/** 重做最近一次撤销(不传则不显示按钮) */
|
|
38
|
-
onRedo?: () => void;
|
|
39
|
-
/** 是否还有可撤销步骤 */
|
|
40
|
-
canUndo?: boolean;
|
|
41
|
-
/** 是否还有可重做步骤 */
|
|
42
|
-
canRedo?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 退出编辑模式回调(不保存)。
|
|
45
|
-
* 传入后顶栏右侧会渲染「取消编辑」+「完成」两个按钮,替代原独立「保存」按钮:
|
|
46
|
-
* - 取消编辑 → `onCancelEdit?.() ?? onExitEdit()`
|
|
47
|
-
* - 完成 → `onSave?.()` + `onExitEdit()`
|
|
48
|
-
* 不传则维持旧版「保存」按钮(保存但不退出)。
|
|
49
|
-
*/
|
|
50
|
-
onExitEdit?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* 「取消编辑」专用回调(可选)。传入时取消按钮优先调它,业务层可以在这里
|
|
53
|
-
* 完成「丢弃草稿 + 退出编辑」组合,从而保证回到阅读态不会看到未保存的脏数据。
|
|
54
|
-
* 不传时取消按钮回退到 `onExitEdit`。完成按钮链路不受此 prop 影响。
|
|
55
|
-
*/
|
|
56
|
-
onCancelEdit?: () => void;
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* 手机布局:顶栏拆两行(切换画布 / 操作区),并配合 Less 收紧 padding。
|
|
60
|
-
*/
|
|
61
|
-
phoneLayout?: boolean;
|
|
62
|
-
}
|
|
63
|
-
export declare function FloorMapEditTopBar(props: FloorMapEditTopBarProps): React.JSX.Element | null;
|
|
64
|
-
export default FloorMapEditTopBar;
|
|
@@ -1,49 +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
|
-
/**
|
|
42
|
-
* 点击区域标题(画布名标签)时回调,传入该区域的 `canvasId`。
|
|
43
|
-
* 传入后标题标签变为可点击(pointer-events 放开 + 指针光标),用于从 All 视图切回该画布。
|
|
44
|
-
*/
|
|
45
|
-
onSelectCanvas?: (canvasId: string) => void;
|
|
46
|
-
className?: string;
|
|
47
|
-
}
|
|
48
|
-
export declare function FloorMapOverview<T extends FloorMapItemBase>(props: FloorMapOverviewProps<T>): React.JSX.Element;
|
|
49
|
-
export default FloorMapOverview;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 选区(selection zone)图元展示:虚线框 + 左上角标题标签。
|
|
3
|
-
*
|
|
4
|
-
* 成员关系按「几何完全包含」实时计算(见 utils/floorMapSelectionZone),此组件仅负责视觉。
|
|
5
|
-
* 内部 body 设 `pointer-events: none`,仅外层定位容器接收拖拽,保证框内图元仍可单独点选/拖动。
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import './FloorMapSelectionZoneElement.less';
|
|
9
|
-
export interface FloorMapSelectionZoneElementProps {
|
|
10
|
-
/** 选区名称;为空时展示「未命名选区」占位 */
|
|
11
|
-
name?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function FloorMapSelectionZoneElement(props: FloorMapSelectionZoneElementProps): React.JSX.Element;
|
|
@@ -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;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 侧栏 palette「查看全部」:任意分类下图元超过展示上限时,弹窗内按数量多选并一键落点。
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { type FloorMapPaletteBulkPlaceItem, type FloorMapToolbarPaletteEntry } from '../utils/floorMapToolbarPalette';
|
|
6
|
-
export interface FloorMapToolbarViewAllModalProps {
|
|
7
|
-
open: boolean;
|
|
8
|
-
categoryLabel: string;
|
|
9
|
-
entries: FloorMapToolbarPaletteEntry[];
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
onConfirm: (items: FloorMapPaletteBulkPlaceItem[]) => void;
|
|
12
|
-
renderEntryPreview: (entry: FloorMapToolbarPaletteEntry) => React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* 容器平台:透传到 `PisellContainer` 的 `props.platform`。
|
|
15
|
-
* 手机布局应传 `'h5'`,否则默认 `'pc'`。
|
|
16
|
-
*/
|
|
17
|
-
platform?: 'pc' | 'h5' | 'ipad';
|
|
18
|
-
}
|
|
19
|
-
export declare function FloorMapToolbarViewAllModal(props: FloorMapToolbarViewAllModalProps): React.JSX.Element;
|
|
20
|
-
export default FloorMapToolbarViewAllModal;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { MouseEvent, MutableRefObject } from 'react';
|
|
2
|
-
import { type PlacementBoundingBox } from '../utils/batchScenePlacementLayout';
|
|
3
|
-
import type { DataSourceFormColumn, FloorMapCanvasNameI18n, FloorMapDataSourceRecordFormContent, FloorMapDataSources, FloorMapItemBase, FloorMapMergedItem, FloorMapPlaceMode, FloorMapSceneElement, FloorMapViewConfig } from '../types';
|
|
4
|
-
export interface UseFloorMapEditStateParams<T extends FloorMapItemBase> {
|
|
5
|
-
floorMapConfigProp: FloorMapViewConfig | undefined;
|
|
6
|
-
isFloorMapView: boolean;
|
|
7
|
-
itemsProp: T[];
|
|
8
|
-
cellSizeProp?: number;
|
|
9
|
-
dataSources: FloorMapDataSources | undefined;
|
|
10
|
-
onSave: ((config: FloorMapViewConfig) => void) | undefined;
|
|
11
|
-
onDataSourceRecordSave: ((dataSourceKey: string, id: string, newData: Record<string, unknown>) => void) | undefined;
|
|
12
|
-
dataSourceFormColumns: Record<string, DataSourceFormColumn[]> | undefined;
|
|
13
|
-
dataSourceRecordForm: Record<string, FloorMapDataSourceRecordFormContent> | undefined;
|
|
14
|
-
dataSourceLabels?: Record<string, string>;
|
|
15
|
-
layoutPrefix: string;
|
|
16
|
-
contentOffsetRef: MutableRefObject<{
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}>;
|
|
20
|
-
showDataSourceRecordFormBlock?: boolean;
|
|
21
|
-
/** 批量落点后由布局层注入:将视口移至新增图元区域 */
|
|
22
|
-
focusViewportOnBoundsRef?: MutableRefObject<((bounds: PlacementBoundingBox) => void) | null>;
|
|
23
|
-
/**
|
|
24
|
-
* 网格显隐缓存命名空间(通常与视口 `viewportPersistNamespace` 同源,拼自业务/门店/平面图)。
|
|
25
|
-
* 传入后网格 localStorage key 变为 `prefix:namespace:canvasId`,隔离不同门店/场景;
|
|
26
|
-
* 不传则沿用 `prefix:canvasId`(向后兼容,跨场景可能共享)。
|
|
27
|
-
*/
|
|
28
|
-
gridPersistNamespace?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare function useFloorMapEditState<T extends FloorMapItemBase>(params: UseFloorMapEditStateParams<T>): {
|
|
31
|
-
config: FloorMapViewConfig | null;
|
|
32
|
-
currentCanvasId: string | null;
|
|
33
|
-
setCurrentCanvasId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
34
|
-
selectedId: string | null;
|
|
35
|
-
setSelectedId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
36
|
-
placeMode: FloorMapPlaceMode;
|
|
37
|
-
setPlaceMode: import("react").Dispatch<import("react").SetStateAction<FloorMapPlaceMode>>;
|
|
38
|
-
mergedItems: FloorMapMergedItem[];
|
|
39
|
-
items: T[];
|
|
40
|
-
saving: boolean;
|
|
41
|
-
savingRecord: boolean;
|
|
42
|
-
handleAddCanvas: () => void;
|
|
43
|
-
handleRemoveCanvas: (canvasId: string) => void;
|
|
44
|
-
handleRenameCanvas: (canvasId: string, name: string | FloorMapCanvasNameI18n) => void;
|
|
45
|
-
handleUpdateItem: (itemId: string, patch: Partial<{
|
|
46
|
-
x: number;
|
|
47
|
-
y: number;
|
|
48
|
-
width: number;
|
|
49
|
-
height: number;
|
|
50
|
-
}>) => void;
|
|
51
|
-
handleUpdateItemsBatch: (patches: Array<{
|
|
52
|
-
id: string;
|
|
53
|
-
patch: Partial<{
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
width: number;
|
|
57
|
-
height: number;
|
|
58
|
-
}>;
|
|
59
|
-
}>) => void;
|
|
60
|
-
handleCanvasPlaceClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
61
|
-
handleSave: () => void;
|
|
62
|
-
discardDraft: () => void;
|
|
63
|
-
placeSceneElementFromPaletteDrop: (contentX: number, contentY: number, scene: Extract<FloorMapPlaceMode, {
|
|
64
|
-
type: 'scene';
|
|
65
|
-
}>) => boolean;
|
|
66
|
-
bulkPlacePaletteItems: (items: Array<{
|
|
67
|
-
elementKind: string;
|
|
68
|
-
builtinShapeKey?: string;
|
|
69
|
-
}>) => void;
|
|
70
|
-
editPanelParams: {
|
|
71
|
-
itemId: string;
|
|
72
|
-
sceneElement: FloorMapSceneElement;
|
|
73
|
-
onUpdate: (patch: Partial<FloorMapSceneElement>) => void;
|
|
74
|
-
onSaveRecord: ((dataSourceKey: string, id: string, newData: Record<string, unknown>) => void) | undefined;
|
|
75
|
-
onClose: () => void;
|
|
76
|
-
onDelete: (() => void) | undefined;
|
|
77
|
-
recordFormColumns: Record<string, DataSourceFormColumn[]> | undefined;
|
|
78
|
-
dataSourceRecordForm: Record<string, FloorMapDataSourceRecordFormContent> | undefined;
|
|
79
|
-
dataSourceLabels: Record<string, string> | undefined;
|
|
80
|
-
layoutDraftDirty: boolean;
|
|
81
|
-
showDataSourceRecordFormBlock: boolean | undefined;
|
|
82
|
-
} | null;
|
|
83
|
-
placeOverlayClass: string;
|
|
84
|
-
isLayoutDirty: boolean;
|
|
85
|
-
toggleDraftCanvasShowGrid: () => void;
|
|
86
|
-
toggleSelectedLayoutLock: () => void;
|
|
87
|
-
duplicateSelectedElement: () => void;
|
|
88
|
-
deleteSelectedElement: () => void;
|
|
89
|
-
undoDraft: () => void;
|
|
90
|
-
redoDraft: () => void;
|
|
91
|
-
canUndo: boolean;
|
|
92
|
-
canRedo: boolean;
|
|
93
|
-
commitDraft: (next: FloorMapViewConfig | ((prev: FloorMapViewConfig | null) => FloorMapViewConfig | null) | null, options?: import("./useDraftConfigHistory").DraftHistoryCommitOptions | undefined) => void;
|
|
94
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PisellFloorMapLayout 组件入口
|
|
3
|
-
* 空间布局视图:在二维平面按坐标渲染资源,支持缩放/平移/复位;支持 floorMapConfig + mode 平面图视图
|
|
4
|
-
*/
|
|
5
|
-
export { PisellFloorMapLayout } from './PisellFloorMapLayout';
|
|
6
|
-
export type { PisellFloorMapLayoutProps, PisellFloorMapLayoutRef, FloorMapItemBase, FloorMapItemUnit, FloorMapLayerConfig, FloorMapZoomConfig, FloorMapPanConfig, FloorMapControlsConfig, FloorMapItemShape, FloorMapBackgroundType, FloorMapPanBoundary, FloorMapLayoutMode, FloorMapGridLayoutConfig, FloorMapCanvas, FloorMapCanvasNameI18n, FloorMapElement, FloorMapData, FloorMapViewConfig, FloorMapCanvasUiConfig, FloorMapSceneElement, FloorMapSceneElementDataBinding, FloorMapPlaceMode, FloorMapElementKindCategory, FloorMapElementDataBindingPolicy, FloorMapElementDefaultPresentation, FloorMapEdge, FloorMapEdgeAnchor, FloorMapEdgeStatus, FloorMapElementKindConfig, FloorMapElementType, FloorMapTextSlot, FloorMapDataSources, FloorMapRenderOptions, FloorMapEditPanelParams, DataSourceFormColumn, FloorMapMergedItem, FloorMapRecordFormRenderContext, FloorMapDataSourceRecordFormContent, FloorMapFullscreenMode, FloorMapLayoutContextValue, FloorMapViewportOverlayRenderArgs, } from './types';
|
|
7
|
-
export { FLOOR_MAP_STAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, } from './types';
|
|
8
|
-
export { renderFloorMapFallbackPlaceholder } from './utils/floorMapFallbackRender';
|
|
9
|
-
export { isFloorMapImageElementKind, isFloorMapBuiltinShapeElementKind, } from './utils/floorMapElementKindUtils';
|
|
10
|
-
export { FLOOR_MAP_BUILTIN_SHAPES, getFloorMapBuiltinShapeDef, } from './utils/floorMapBuiltinShapes';
|
|
11
|
-
export type { FloorMapBuiltinShapeDef, FloorMapBuiltinShapeRenderProps, } from './utils/floorMapBuiltinShapes';
|
|
12
|
-
export { NAME_AS_TITLE_EXT_KEY, isElementNameAsTitleEnabled, buildNameAsTitleExtensionsPatch, resolveSceneElementDisplayTitle, } from './utils/floorMapElementNameAsTitle';
|
|
13
|
-
export { findFloorMapRowByDataBinding, getFloorMapBindingPlaceholderReason, } from './utils/floorMapDataBindingUtils';
|
|
14
|
-
export type { FloorMapDataSourceRow, FloorMapBindingPlaceholderReason, } from './utils/floorMapDataBindingUtils';
|
|
15
|
-
export { createShopFloorPlanClient, SHOP_FLOOR_PLAN_DUPLICATE_CODE, } from './shopFloorPlan/shopFloorPlanClient';
|
|
16
|
-
export type { ShopFloorPlanDetail, ShopFloorPlanLayoutItem, PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanHttpAdapter, CreateShopFloorPlanClientOptions, EnsureShopFloorPlanByCodeOptions, } from './shopFloorPlan/shopFloorPlanTypes';
|
|
17
|
-
export type { UseShopFloorPlanSubscriptionParams } from './hooks/useShopFloorPlanSubscription';
|
|
18
|
-
export { pickFloorPlanDetail, parseLayoutFieldToViewConfigPatch, mergeFloorPlanViewRemote, floorMapSavedConfigToRemotePatch, viewConfigToLayoutPayload, inferCanvasSizeFromScene, buildFloorPlanPutBody, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, isFloorPlanDuplicateCodeError, } from './shopFloorPlan/shopFloorPlanPure';
|
|
19
|
-
export { sceneElementsToShopLayout, shopLayoutToSceneElements, } from './shopFloorPlan/shopFloorPlanMapping';
|
|
20
|
-
export { useShopFloorPlanSubscription } from './hooks/useShopFloorPlanSubscription';
|
|
21
|
-
export { wrapFloorMapOnSaveWithRemotePersist, } from './utils/floorMapRemotePersist';
|
|
22
|
-
export type { WrapFloorMapOnSaveWithRemotePersistParams } from './utils/floorMapRemotePersist';
|
|
23
|
-
export { FloorMapLayoutProvider, useFloorMapLayoutContext, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, } from './context/FloorMapLayoutContext';
|
|
24
|
-
export type { FloorMapLayoutProviderProps } from './context/FloorMapLayoutContext';
|
|
25
|
-
export { mergeFloorMapLayoutPropsFromContext } from './context/mergeFloorMapLayoutContext';
|
|
26
|
-
export type { FloorMapResourcePickerSlotProps, PisellCardPickerItem, PisellCardPickerMode, PisellCardPickerCategoryConfig, PisellCardPickerCategoryLevelConfig, PisellCardPickerCategoryPath, PisellCardPickerCategoryMode, PisellCardPickerCardMeta, } from './utils/floorMapResourcePickerTypes';
|
|
27
|
-
export { parseNestedPathSegments } from './utils/floorMapResourcePickerTypes';
|
|
28
|
-
export type { FloorMapResourcePickerRecord } from './utils/floorMapResourcePickerDisplay';
|
|
29
|
-
export { getFloorMapResourcePickerCardMeta, getFloorMapCardPickerCategoryConfig, getFloorMapResourcePickerCategoryPath, floorMapResourcePickerRecordSearchText, } from './utils/floorMapResourcePickerDisplay';
|
|
30
|
-
export { getFloorMapDisplayLocale, initFloorMapLayoutLocales, } from './utils/floorMapCanvasDisplay';
|
|
31
|
-
/** 平面图内置文案表,供跨包组件在本包 `locales` 单例上自行 init */
|
|
32
|
-
export { default as floorMapLayoutLocales } from './locales';
|
|
33
|
-
export { FloorMapImageElement } from './components/FloorMapImageElement';
|
|
34
|
-
export { FloorMapBuiltinShapeElement } from './components/FloorMapBuiltinShapeElement';
|
|
35
|
-
export { FloorMapSelectionZoneElement } from './components/FloorMapSelectionZoneElement';
|
|
36
|
-
export { isSelectionZoneItem, rectFullyContains, computeSelectionZoneMemberIds, } from './utils/floorMapSelectionZone';
|
|
37
|
-
export type { SelectionZoneRect } from './utils/floorMapSelectionZone';
|
|
38
|
-
export { getFigmaTableCardFromMerged, renderFigmaStyleTableCard, renderFigmaStyleRoundTableCard, getRenderItemByKindTable, getRenderItemByKindRoundTable, } from './components/FigmaTableCard';
|
|
39
|
-
export type { FigmaTableCardItem, FigmaTableStatus, } from './components/FigmaTableCard';
|