@pisell/materials 1.10.6 → 1.10.7

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.
Files changed (125) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +5 -5
  6. package/build/lowcode/view.js +5 -5
  7. package/es/components/PisellSuperTabs/PisellSuperTabs.js +30 -8
  8. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  10. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  11. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +1 -0
  12. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
  13. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +2 -1
  14. package/es/components/productCard/cartSkuCard/components/packages/index.js +2 -0
  15. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  16. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +2 -1
  17. package/es/components/productCard/cartSkuCard/components/sales/index.js +3 -1
  18. package/es/components/productCard/cartSkuCard/index.js +11 -3
  19. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  20. package/es/components/productCard/lineItem/BookingLineItem.js +5 -1
  21. package/es/components/productCard/types.d.ts +1 -0
  22. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  23. package/es/components/table/Table/fields/index.d.ts +0 -1
  24. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  25. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  26. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  27. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  28. package/es/components/table/Table/utils.d.ts +1 -1
  29. package/es/utils/index.d.ts +1 -1
  30. package/es/utils/platform.d.ts +1 -1
  31. package/lib/components/PisellSuperTabs/PisellSuperTabs.js +28 -8
  32. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  33. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  34. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  35. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +1 -0
  36. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -3
  37. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +2 -1
  38. package/lib/components/productCard/cartSkuCard/components/packages/index.js +7 -1
  39. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  40. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +2 -1
  41. package/lib/components/productCard/cartSkuCard/components/sales/index.js +7 -1
  42. package/lib/components/productCard/cartSkuCard/index.js +15 -2
  43. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  44. package/lib/components/productCard/lineItem/BookingLineItem.js +3 -0
  45. package/lib/components/productCard/types.d.ts +1 -0
  46. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  47. package/lib/components/table/Table/fields/index.d.ts +0 -1
  48. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  49. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  50. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  51. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  52. package/lib/components/table/Table/utils.d.ts +1 -1
  53. package/lib/utils/index.d.ts +1 -1
  54. package/lib/utils/platform.d.ts +1 -1
  55. package/package.json +1 -1
  56. package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
  57. package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
  58. package/es/components/PisellGroupView/index.d.ts +0 -6
  59. package/es/components/PisellGroupView/types.d.ts +0 -124
  60. package/es/components/PisellGroupView/utils/index.d.ts +0 -20
  61. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  62. package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
  63. package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
  64. package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  65. package/es/components/PisellTabbar/constants.d.ts +0 -47
  66. package/es/components/PisellTabbar/index.d.ts +0 -10
  67. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -16
  68. package/es/components/PisellTabbar/template/Template1/index.d.ts +0 -7
  69. package/es/components/pisellFind/index.d.ts +0 -69
  70. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  71. package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
  72. package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  73. package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  74. package/es/components/pisellLookup/types.d.ts +0 -797
  75. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  76. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  77. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  78. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  79. package/es/components/pisellTimeRangeDisplay/index.d.ts +0 -3
  80. package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  81. package/es/components/select-time/RightPanel/index.d.ts +0 -10
  82. package/es/components/select-time/index.d.ts +0 -16
  83. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  84. package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
  85. package/es/components/virtual-keyboard/index.d.ts +0 -25
  86. package/es/hooks/useTranslationOriginal.d.ts +0 -4
  87. package/es/locales/ja.d.ts +0 -534
  88. package/es/locales/pt.d.ts +0 -534
  89. package/es/locales/zh-CN.d.ts +0 -561
  90. package/es/locales/zh-TW.d.ts +0 -561
  91. package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
  92. package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
  93. package/lib/components/PisellGroupView/index.d.ts +0 -6
  94. package/lib/components/PisellGroupView/types.d.ts +0 -124
  95. package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
  96. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  97. package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
  98. package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
  99. package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  100. package/lib/components/PisellTabbar/constants.d.ts +0 -47
  101. package/lib/components/PisellTabbar/index.d.ts +0 -10
  102. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -16
  103. package/lib/components/PisellTabbar/template/Template1/index.d.ts +0 -7
  104. package/lib/components/pisellFind/index.d.ts +0 -69
  105. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  106. package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
  107. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  108. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  109. package/lib/components/pisellLookup/types.d.ts +0 -797
  110. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  111. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  112. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  113. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  114. package/lib/components/pisellTimeRangeDisplay/index.d.ts +0 -3
  115. package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  116. package/lib/components/select-time/RightPanel/index.d.ts +0 -10
  117. package/lib/components/select-time/index.d.ts +0 -16
  118. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  119. package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
  120. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  121. package/lib/hooks/useTranslationOriginal.d.ts +0 -4
  122. package/lib/locales/ja.d.ts +0 -534
  123. package/lib/locales/pt.d.ts +0 -534
  124. package/lib/locales/zh-CN.d.ts +0 -561
  125. package/lib/locales/zh-TW.d.ts +0 -561
@@ -1,155 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import PisellSteps from './PisellSteps';
3
- /**
4
- * PisellSteps 步骤条组件
5
- *
6
- * 基于 Ant Design Steps 组件进行二次封装和增强
7
- * 支持多种展示样式、布局方式和丰富的交互功能
8
- */
9
- declare const meta: Meta<typeof PisellSteps>;
10
- export default meta;
11
- declare type Story = StoryObj<typeof PisellSteps>;
12
- /**
13
- * 基础用法 - 默认步骤条
14
- */
15
- export declare const Default: Story;
16
- /**
17
- * 非受控模式
18
- * @description 使用 defaultCurrent 设置初始步骤
19
- */
20
- export declare const Uncontrolled: Story;
21
- /**
22
- * 垂直方向
23
- */
24
- export declare const Vertical: Story;
25
- /**
26
- * 点状步骤条
27
- * @description 通过 progressDot 属性启用点状样式
28
- */
29
- export declare const Dot: Story;
30
- /**
31
- * 自定义点状渲染
32
- * @description 使用函数自定义点状图标的渲染
33
- */
34
- export declare const CustomProgressDot: Story;
35
- /**
36
- * 导航步骤条
37
- */
38
- export declare const Navigation: Story;
39
- /**
40
- * 小尺寸
41
- */
42
- export declare const Small: Story;
43
- /**
44
- * 大尺寸
45
- */
46
- export declare const Large: Story;
47
- /**
48
- * 标签垂直布局
49
- * @description 标签在图标下方显示
50
- */
51
- export declare const LabelVertical: Story;
52
- /**
53
- * 错误状态
54
- */
55
- export declare const ErrorStatus: Story;
56
- /**
57
- * 自定义步骤状态
58
- * @description 每个步骤可以单独设置状态
59
- */
60
- export declare const CustomStatus: Story;
61
- /**
62
- * 可点击步骤
63
- */
64
- export declare const Clickable: Story;
65
- /**
66
- * 禁止点击已完成步骤
67
- * @description 设置 allowClickFinished 为 false
68
- */
69
- export declare const DisallowClickFinished: Story;
70
- /**
71
- * 禁用特定步骤
72
- * @description 通过 disabled 属性禁用某个步骤
73
- */
74
- export declare const DisabledStep: Story;
75
- /**
76
- * 自定义图标
77
- */
78
- export declare const CustomIcon: Story;
79
- /**
80
- * 完成图标
81
- */
82
- export declare const FinishIcon: Story;
83
- /**
84
- * 栅格布局
85
- * @description 启用栅格布局,自定义列数
86
- */
87
- export declare const GridLayout: Story;
88
- /**
89
- * 自定义图标与文本间距
90
- * @description 通过 itemGap 属性自定义间距
91
- */
92
- export declare const CustomItemGap: Story;
93
- /**
94
- * 移动端 - 完整模式
95
- * @description 移动端显示完整步骤条
96
- */
97
- export declare const MobileModeFull: Story;
98
- /**
99
- * 移动端 - 当前步骤模式
100
- * @description 只显示当前步骤信息
101
- */
102
- export declare const MobileModeCurrent: Story;
103
- /**
104
- * 移动端 - 自动模式
105
- * @description 根据屏幕宽度自动切换显示模式
106
- */
107
- export declare const MobileModeAuto: Story;
108
- /**
109
- * 自定义移动端断点
110
- * @description 通过 mobileBreakpoint 自定义断点宽度
111
- */
112
- export declare const CustomMobileBreakpoint: Story;
113
- /**
114
- * 自定义起始索引
115
- * @description 通过 initial 设置起始步骤索引
116
- */
117
- export declare const InitialIndex: Story;
118
- /**
119
- * 隐藏特定步骤
120
- * @description 通过 hidden 属性动态隐藏步骤
121
- */
122
- export declare const HiddenStep: Story;
123
- /**
124
- * 带子标题
125
- * @description 步骤可以包含子标题
126
- */
127
- export declare const WithSubTitle: Story;
128
- /**
129
- * 响应式步骤条
130
- * @description 开启响应式后会自动调整布局
131
- */
132
- export declare const Responsive: Story;
133
- /**
134
- * 完整功能演示
135
- * @description 展示多种功能的组合使用
136
- */
137
- export declare const FullFeature: Story;
138
- /**
139
- * 多步骤流程
140
- * @description 更多步骤的场景
141
- */
142
- export declare const ManySteps: Story;
143
- /**
144
- * 购物流程示例
145
- * @description 模拟真实的购物流程
146
- */
147
- export declare const ShoppingFlow: Story;
148
- /**
149
- * 交互测试 - 点击步骤
150
- */
151
- export declare const InteractionTest: Story;
152
- /**
153
- * 交互测试 - 验证组件渲染
154
- */
155
- export declare const RenderTest: Story;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import './PisellTabbar.less';
3
- import { PisellTabbarProps } from './types';
4
- /**
5
- * PisellTabbar - 多层级 Tabbar 组件
6
- *
7
- * 支持最多 3 层级的 Tab 导航,每层级可独立展开/收起
8
- *
9
- * @component
10
- * @example
11
- * ```tsx
12
- * <PisellTabbar
13
- * dataSource={categoryData}
14
- * value={[1, 10, 100]}
15
- * onChange={(value) => console.log('当前选中:', value)}
16
- * />
17
- * ```
18
- */
19
- declare const PisellTabbar: React.FC<PisellTabbarProps>;
20
- export default PisellTabbar;
@@ -1,47 +0,0 @@
1
- import { TabbarLevelConfig, ExpandConfig, LevelType } from './types';
2
- /**
3
- * 默认层级配置
4
- */
5
- export declare const DEFAULT_LEVEL_CONFIG: Record<LevelType, TabbarLevelConfig>;
6
- /**
7
- * 获取展开配置
8
- */
9
- export declare const getExpandConfig: () => ExpandConfig;
10
- /**
11
- * 默认数据项配置
12
- */
13
- export declare const DEFAULT_ITEMS: {
14
- all: {
15
- id: string;
16
- shop_id: number;
17
- parent_id: number;
18
- name: any;
19
- slug: string;
20
- icon: string;
21
- };
22
- search: {
23
- id: string;
24
- shop_id: number;
25
- parent_id: number;
26
- name: any;
27
- text: any;
28
- slug: string;
29
- key: string;
30
- icon: string;
31
- customClick: boolean;
32
- };
33
- expand: {
34
- id: string;
35
- shop_id: number;
36
- parent_id: number;
37
- key: string;
38
- icon: string;
39
- name: string;
40
- slug: string;
41
- customClick: boolean;
42
- };
43
- };
44
- /**
45
- * 获取层级对应的添加项配置
46
- */
47
- export declare const LEVEL_ADD_ITEMS: Record<LevelType, ('all' | 'search' | 'expand')[]>;
@@ -1,10 +0,0 @@
1
- /**
2
- * PisellTabbar 组件导出文件
3
- * @module PisellTabbar
4
- */
5
- import PisellTabbar from './PisellTabbar';
6
- import PisellTabbarTemplate1 from './template/Template1';
7
- export type { LevelType, PisellTabbarProps, TabbarActionItem, TabbarDataSource, } from './types';
8
- export type { PisellTabbarTemplate1Direction, PisellTabbarTemplate1Props, } from './template/Template1';
9
- export { PisellTabbarTemplate1 };
10
- export default PisellTabbar;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import '../../PisellTabbar.less';
3
- import { PisellTabbarProps } from '../../types';
4
- export declare type PisellTabbarTemplate1Direction = 'horizontal' | 'vertical';
5
- export interface PisellTabbarTemplate1Props extends PisellTabbarProps {
6
- /** Tab 排列方向;默认保持现有横向布局。 */
7
- direction?: PisellTabbarTemplate1Direction;
8
- /** 是否在每个层级展示自动生成的 All 分类;默认保持展示。 */
9
- showAllItem?: boolean;
10
- /** 是否展示一级分类中自动生成的搜索入口;默认保持展示。 */
11
- showSearchItem?: boolean;
12
- /** 外部切换选中项时,是否自动把一级分类滚动到可视区域。 */
13
- scrollActiveItemIntoView?: boolean;
14
- }
15
- declare const _default: React.ForwardRefExoticComponent<PisellTabbarTemplate1Props & React.RefAttributes<unknown>>;
16
- export default _default;
@@ -1,7 +0,0 @@
1
- /**
2
- * PisellTabbar 组件导出文件
3
- * @module PisellTabbar
4
- */
5
- import PisellTabbar from './PisellTabbar';
6
- export type { PisellTabbarTemplate1Direction, PisellTabbarTemplate1Props, } from './PisellTabbar';
7
- export default PisellTabbar;
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
3
- /**
4
- * 原生扫码事件名,对齐宿主端约定。
5
- */
6
- export declare const SCAN_RESULT_EVENT = "nativeScanResult";
7
- /** 无扫码焦点栈时,供页面级全局扫码监听避让 Find 的回退计数。 */
8
- export declare const FIND_FALLBACK_SCANNER_COUNT_KEY = "__pisellFindFallbackScannerCount";
9
- /**
10
- * 扫码枪回传数据(对齐宿主 ScanResultPayload)
11
- * - code: 条码标识(如条码格式 / 业务字段)
12
- * - data: 扫描得到的字符串值(写入输入框的内容)
13
- */
14
- export interface PisellFindScannerData {
15
- code: string;
16
- data: string;
17
- }
18
- /**
19
- * PisellFind Props
20
- * 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
21
- */
22
- export interface PisellFindProps extends PisellLookupProps {
23
- /**
24
- * 是否开启扫码枪监听
25
- * - 优先:通过宿主 `appHelper.utils.acquireScanFocus` 接入「扫码焦点栈」,
26
- * 保证同一页面存在多个 PisellFind 时,只有「栈顶」(最后开启监听的那个,
27
- * 如列表上方拉起的弹窗)响应扫码,底层组件不响应;关闭/卸载时自动释放,焦点回退。
28
- * - 回退:宿主未注册焦点栈时,退回到直连 `app.pubsub.subscribe('nativeScanResult', ...)`。
29
- * 切换 false 时会释放焦点 / unsubscribe,停止接收事件。
30
- * @default false
31
- */
32
- enableScanner?: boolean;
33
- /**
34
- * 扫码枪回调
35
- * 监听到扫码枪事件时触发,参数为原始 payload 对象(含 `data` 字段)。
36
- * 注意:仅在 enableScanner 为 true 时才会触发。
37
- */
38
- onScannerData?: (data: PisellFindScannerData) => void;
39
- }
40
- /**
41
- * PisellFind Ref
42
- * 继承 PisellLookup 的所有 Ref 方法
43
- */
44
- export declare type PisellFindRef = PisellLookupRef;
45
- /**
46
- * PisellFind 组件
47
- * 基于 PisellLookup 的组件内查找优化版本
48
- *
49
- * 核心特点:
50
- * - 默认使用 button 触发器
51
- * - 默认不显示确认按钮(输入即搜索)
52
- * - 默认开启搜索历史
53
- * - 默认不展示结果区(结果在页面其他位置展示)
54
- * - 通过 `enableScanner` 接入扫码枪:优先走宿主注入的「扫码焦点栈」
55
- * (`appHelper.utils.acquireScanFocus`),保证同页多个 PisellFind 只有栈顶响应;
56
- * 宿主未注册时回退到直连 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`。
57
- * 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动释放 / unsubscribe。
58
- *
59
- * @example
60
- * ```tsx
61
- * <PisellFind
62
- * triggerType="input"
63
- * enableScanner={isActive}
64
- * onScannerData={(payload) => console.log('scan:', payload.data)}
65
- * onSearch={(keyword) => filterData(keyword)}
66
- * />
67
- * ```
68
- */
69
- export declare const PisellFind: React.ForwardRefExoticComponent<PisellFindProps & React.RefAttributes<PisellLookupRef>>;
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLookupProps, PisellLookupRef } from './types';
3
- import './PisellLookup.less';
4
- export declare const PisellLookup: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { LookupResultHostProps } from '../types';
3
- /**
4
- * LookupResultHost 组件
5
- * 结果承载层:根据展示类型渲染不同的容器
6
- */
7
- export declare const LookupResultHost: React.FC<LookupResultHostProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { LookupTriggerProps, LookupTriggerRef } from '../types';
3
- export declare const LookupTrigger: React.ForwardRefExoticComponent<LookupTriggerProps & React.RefAttributes<LookupTriggerRef>>;