@pisell/materials 6.11.17 → 6.11.19

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 (553) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +32 -32
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -25
  11. package/es/components/PisellCards/index.d.ts +1 -0
  12. package/es/components/PisellFields/index.d.ts +1 -0
  13. package/es/components/PisellLayouts/index.d.ts +11 -5
  14. package/es/components/PisellLayouts/index.js +8 -4
  15. package/es/components/PisellMetrics/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  17. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
  19. package/es/components/dataSourceComponents/dataSourceSubForm/index.js +274 -0
  20. package/es/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
  21. package/es/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
  22. package/es/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
  23. package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
  24. package/es/components/dataSourceComponents/dataSourceSubForm/types.js +1 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
  29. package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +61 -0
  30. package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
  31. package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +176 -0
  32. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
  33. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.js +11 -0
  34. package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
  35. package/es/components/dataSourceComponents/fields/RecordListWrapper/type.js +1 -0
  36. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  37. package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
  38. package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.js +16 -0
  39. package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
  40. package/es/components/dataSourceComponents/fields/Tabs/Tabs.js +93 -0
  41. package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
  42. package/es/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
  43. package/es/components/dataSourceComponents/fields/Tabs/WithMode.js +9 -0
  44. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +13 -0
  45. package/es/components/dataSourceComponents/fields/Tabs/index.js +18 -0
  46. package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
  47. package/es/components/dataSourceComponents/fields/Tabs/type.js +1 -0
  48. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  49. package/es/components/dataSourceComponents/fields/index.d.ts +50 -11
  50. package/es/components/dataSourceComponents/fields/index.js +5 -1
  51. package/es/components/dataSourceComponents/fields/utils.js +3 -0
  52. package/es/components/date-picker/index.d.ts +1 -0
  53. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  54. package/es/components/pisellFilter/type.d.ts +4 -2
  55. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +12 -0
  56. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +611 -0
  57. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +92 -0
  58. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
  59. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +1667 -0
  60. package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +27 -0
  61. package/es/components/pisellFloorMapLayout/components/CanvasTabs.js +203 -0
  62. package/es/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
  63. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
  64. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +341 -0
  65. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
  66. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +43 -0
  67. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +436 -0
  68. package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +21 -0
  69. package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.js +133 -0
  70. package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
  71. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +14 -0
  72. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +543 -0
  73. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +162 -0
  74. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +36 -0
  75. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +135 -0
  76. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +150 -0
  77. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +9 -0
  78. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.js +71 -0
  79. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
  80. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +369 -0
  81. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +239 -0
  82. package/es/components/pisellFloorMapLayout/components/ItemLayer.js +195 -0
  83. package/es/components/pisellFloorMapLayout/components/ItemLayer.less +19 -0
  84. package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
  85. package/es/components/pisellFloorMapLayout/components/MapLayer.js +85 -0
  86. package/es/components/pisellFloorMapLayout/components/MapLayer.less +7 -0
  87. package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +33 -0
  88. package/es/components/pisellFloorMapLayout/components/ViewControls.js +90 -0
  89. package/es/components/pisellFloorMapLayout/components/ViewControls.less +101 -0
  90. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +16 -0
  91. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +29 -0
  92. package/es/components/pisellFloorMapLayout/components/index.d.ts +21 -0
  93. package/es/components/pisellFloorMapLayout/components/index.js +13 -0
  94. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
  95. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +21 -0
  96. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
  97. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +28 -0
  98. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +63 -0
  99. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +562 -0
  100. package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
  101. package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +122 -0
  102. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
  103. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +399 -0
  104. package/es/components/pisellFloorMapLayout/index.d.ts +15 -0
  105. package/es/components/pisellFloorMapLayout/index.js +12 -0
  106. package/es/components/pisellFloorMapLayout/locales-ja.d.ts +104 -0
  107. package/es/components/pisellFloorMapLayout/locales-ja.js +103 -0
  108. package/es/components/pisellFloorMapLayout/locales-pt.d.ts +104 -0
  109. package/es/components/pisellFloorMapLayout/locales-pt.js +103 -0
  110. package/es/components/pisellFloorMapLayout/locales.d.ts +506 -0
  111. package/es/components/pisellFloorMapLayout/locales.js +310 -0
  112. package/es/components/pisellFloorMapLayout/types.d.ts +586 -0
  113. package/es/components/pisellFloorMapLayout/types.js +152 -0
  114. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
  115. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +129 -0
  116. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
  117. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +87 -0
  118. package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +8 -0
  119. package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.js +15 -0
  120. package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +27 -0
  121. package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +56 -0
  122. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +22 -0
  123. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +156 -0
  124. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
  125. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +89 -0
  126. package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
  127. package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +8 -0
  128. package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
  129. package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +108 -0
  130. package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
  131. package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.js +125 -0
  132. package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
  133. package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +29 -0
  134. package/es/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
  135. package/es/components/pisellFloorMapLayout/utils/snap.js +21 -0
  136. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  137. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +175 -0
  138. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
  139. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +237 -0
  140. package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
  141. package/es/components/pisellHierarchicalSummaryList/components/Row.js +313 -0
  142. package/es/components/pisellHierarchicalSummaryList/components/index.js +1 -0
  143. package/es/components/pisellHierarchicalSummaryList/hooks/index.js +1 -0
  144. package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +34 -0
  145. package/es/components/pisellHierarchicalSummaryList/index.js +5 -0
  146. package/es/components/pisellHierarchicalSummaryList/types.js +1 -0
  147. package/es/components/pisellModal/components/index.d.ts +1 -0
  148. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
  149. package/es/components/pisellRecordBoard/PisellRecordBoard.js +98 -18
  150. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
  151. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1276 -344
  152. package/es/components/pisellRecordBoard/index.d.ts +8 -2
  153. package/es/components/pisellRecordBoard/index.js +4 -2
  154. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -3
  155. package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
  156. package/es/components/pisellRecordBoard/shellFrame/FloorMap.js +15 -0
  157. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
  158. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +11 -0
  159. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +61 -0
  160. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
  161. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +69 -11
  162. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
  163. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +6 -10
  164. package/es/components/pisellRecordBoard/shellFrame/index.js +111 -20
  165. package/es/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
  166. package/es/components/pisellRecordBoard/types.d.ts +68 -2
  167. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
  168. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +57 -0
  169. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +3 -2
  170. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
  171. package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +156 -0
  172. package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
  173. package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
  174. package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +105 -0
  175. package/es/components/pisellReservationSchedule/index.d.ts +2 -0
  176. package/es/components/pisellReservationSchedule/index.js +1 -0
  177. package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
  178. package/es/components/pisellReservationSchedule/locales.js +24 -0
  179. package/es/components/pisellReservationSchedule/types.d.ts +42 -0
  180. package/es/components/pisellReservationSchedule/types.js +1 -0
  181. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
  182. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +94 -0
  183. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +66 -0
  184. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
  185. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +197 -0
  186. package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
  187. package/es/components/pisellReservationScheduleBand/index.js +1 -0
  188. package/es/components/pisellReservationScheduleBand/types.d.ts +49 -0
  189. package/es/components/pisellReservationScheduleBand/types.js +1 -0
  190. package/es/components/pisellShellFrame/PisellShellFrame.less +11 -0
  191. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
  192. package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +787 -0
  193. package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +461 -0
  194. package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
  195. package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +290 -0
  196. package/es/components/pisellTimeNavigator/components/BackgroundLayer.js +30 -0
  197. package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
  198. package/es/components/pisellTimeNavigator/components/CursorLayer.js +77 -0
  199. package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
  200. package/es/components/pisellTimeNavigator/components/GestureLayer.js +91 -0
  201. package/es/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
  202. package/es/components/pisellTimeNavigator/components/NowButton.js +38 -0
  203. package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +22 -0
  204. package/es/components/pisellTimeNavigator/components/ScaleLayer.js +73 -0
  205. package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
  206. package/es/components/pisellTimeNavigator/components/index.js +5 -0
  207. package/es/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
  208. package/es/components/pisellTimeNavigator/hooks/index.js +3 -0
  209. package/es/components/pisellTimeNavigator/hooks/useDragInertia.js +109 -0
  210. package/es/components/pisellTimeNavigator/hooks/useRealtime.js +16 -0
  211. package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +76 -0
  212. package/es/components/pisellTimeNavigator/index.d.ts +5 -0
  213. package/es/components/pisellTimeNavigator/index.js +4 -0
  214. package/es/components/pisellTimeNavigator/locales.d.ts +22 -0
  215. package/es/components/pisellTimeNavigator/locales.js +21 -0
  216. package/es/components/pisellTimeNavigator/types.js +1 -0
  217. package/es/components/pisellTimeNavigator/utils/index.js +116 -0
  218. package/es/components/pisellWalletPassCard/index.js +1 -1
  219. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  220. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  221. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  222. package/es/components/table/Table/fields/index.d.ts +3 -2
  223. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  224. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  225. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  226. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  227. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  228. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  229. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  230. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  231. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  232. package/es/components/table/Table/utils.d.ts +1 -1
  233. package/es/components/table/index.js +1 -1
  234. package/es/hooks/useResponsive.d.ts +1 -1
  235. package/es/index.d.ts +49 -33
  236. package/es/index.js +47 -27
  237. package/es/locales/en-US.d.ts +3 -0
  238. package/es/locales/en-US.js +3 -0
  239. package/es/locales/ja.d.ts +8 -0
  240. package/es/locales/ja.js +25 -7
  241. package/es/locales/pt.d.ts +8 -0
  242. package/es/locales/pt.js +21 -3
  243. package/es/locales/zh-CN.d.ts +3 -0
  244. package/es/locales/zh-CN.js +3 -0
  245. package/es/locales/zh-TW.d.ts +3 -0
  246. package/es/locales/zh-TW.js +3 -0
  247. package/lib/components/PisellCards/index.d.ts +1 -0
  248. package/lib/components/PisellFields/index.d.ts +1 -0
  249. package/lib/components/PisellLayouts/index.d.ts +11 -5
  250. package/lib/components/PisellLayouts/index.js +15 -1
  251. package/lib/components/PisellMetrics/index.d.ts +1 -0
  252. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  253. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  254. package/lib/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
  255. package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +229 -0
  256. package/lib/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
  257. package/lib/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
  258. package/lib/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
  259. package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
  260. package/lib/components/dataSourceComponents/dataSourceSubForm/types.js +17 -0
  261. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  262. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  263. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  264. package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
  265. package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +64 -0
  266. package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
  267. package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +157 -0
  268. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
  269. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.js +40 -0
  270. package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
  271. package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.js +17 -0
  272. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  273. package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
  274. package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.js +45 -0
  275. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
  276. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.js +95 -0
  277. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
  278. package/lib/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
  279. package/lib/components/dataSourceComponents/fields/Tabs/WithMode.js +39 -0
  280. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +13 -0
  281. package/lib/components/dataSourceComponents/fields/Tabs/index.js +40 -0
  282. package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
  283. package/lib/components/dataSourceComponents/fields/Tabs/type.js +17 -0
  284. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  285. package/lib/components/dataSourceComponents/fields/index.d.ts +50 -11
  286. package/lib/components/dataSourceComponents/fields/index.js +5 -1
  287. package/lib/components/dataSourceComponents/fields/utils.js +3 -0
  288. package/lib/components/date-picker/index.d.ts +1 -0
  289. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  290. package/lib/components/pisellFilter/type.d.ts +4 -2
  291. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +12 -0
  292. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +709 -0
  293. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +92 -0
  294. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
  295. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +1353 -0
  296. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +27 -0
  297. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.js +237 -0
  298. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
  299. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
  300. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +358 -0
  301. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
  302. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +43 -0
  303. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +486 -0
  304. package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +21 -0
  305. package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.js +119 -0
  306. package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
  307. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +14 -0
  308. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +556 -0
  309. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +162 -0
  310. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +36 -0
  311. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +199 -0
  312. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +150 -0
  313. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +9 -0
  314. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.js +96 -0
  315. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
  316. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +348 -0
  317. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +239 -0
  318. package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +219 -0
  319. package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +19 -0
  320. package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
  321. package/lib/components/pisellFloorMapLayout/components/MapLayer.js +110 -0
  322. package/lib/components/pisellFloorMapLayout/components/MapLayer.less +7 -0
  323. package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +33 -0
  324. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +127 -0
  325. package/lib/components/pisellFloorMapLayout/components/ViewControls.less +101 -0
  326. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +16 -0
  327. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +65 -0
  328. package/lib/components/pisellFloorMapLayout/components/index.d.ts +21 -0
  329. package/lib/components/pisellFloorMapLayout/components/index.js +56 -0
  330. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
  331. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +54 -0
  332. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
  333. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +47 -0
  334. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +63 -0
  335. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +546 -0
  336. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
  337. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +146 -0
  338. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
  339. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +382 -0
  340. package/lib/components/pisellFloorMapLayout/index.d.ts +15 -0
  341. package/lib/components/pisellFloorMapLayout/index.js +64 -0
  342. package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +104 -0
  343. package/lib/components/pisellFloorMapLayout/locales-ja.js +124 -0
  344. package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +104 -0
  345. package/lib/components/pisellFloorMapLayout/locales-pt.js +124 -0
  346. package/lib/components/pisellFloorMapLayout/locales.d.ts +506 -0
  347. package/lib/components/pisellFloorMapLayout/locales.js +340 -0
  348. package/lib/components/pisellFloorMapLayout/types.d.ts +586 -0
  349. package/lib/components/pisellFloorMapLayout/types.js +32 -0
  350. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
  351. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +126 -0
  352. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
  353. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +66 -0
  354. package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +8 -0
  355. package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.js +38 -0
  356. package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +27 -0
  357. package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +67 -0
  358. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +22 -0
  359. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +142 -0
  360. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
  361. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +136 -0
  362. package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
  363. package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +33 -0
  364. package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
  365. package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +128 -0
  366. package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
  367. package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.js +96 -0
  368. package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
  369. package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +41 -0
  370. package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
  371. package/lib/components/pisellFloorMapLayout/utils/snap.js +43 -0
  372. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  373. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +179 -0
  374. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
  375. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +185 -0
  376. package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
  377. package/lib/components/pisellHierarchicalSummaryList/components/Row.js +343 -0
  378. package/lib/components/pisellHierarchicalSummaryList/components/index.js +29 -0
  379. package/lib/components/pisellHierarchicalSummaryList/hooks/index.js +29 -0
  380. package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +49 -0
  381. package/lib/components/pisellHierarchicalSummaryList/index.js +31 -0
  382. package/lib/components/pisellHierarchicalSummaryList/types.js +17 -0
  383. package/lib/components/pisellModal/components/index.d.ts +1 -0
  384. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
  385. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +86 -8
  386. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
  387. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +915 -25
  388. package/lib/components/pisellRecordBoard/index.d.ts +8 -2
  389. package/lib/components/pisellRecordBoard/index.js +6 -2
  390. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +8 -2
  391. package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
  392. package/lib/components/pisellRecordBoard/shellFrame/FloorMap.js +27 -0
  393. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
  394. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +45 -0
  395. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +61 -0
  396. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
  397. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +60 -8
  398. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
  399. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +6 -10
  400. package/lib/components/pisellRecordBoard/shellFrame/index.js +101 -9
  401. package/lib/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
  402. package/lib/components/pisellRecordBoard/types.d.ts +68 -2
  403. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
  404. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +88 -0
  405. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +11 -1
  406. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
  407. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +200 -0
  408. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
  409. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
  410. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +116 -0
  411. package/lib/components/pisellReservationSchedule/index.d.ts +2 -0
  412. package/lib/components/pisellReservationSchedule/index.js +29 -0
  413. package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
  414. package/lib/components/pisellReservationSchedule/locales.js +47 -0
  415. package/lib/components/pisellReservationSchedule/types.d.ts +42 -0
  416. package/lib/components/pisellReservationSchedule/types.js +17 -0
  417. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
  418. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +128 -0
  419. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +66 -0
  420. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
  421. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +181 -0
  422. package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
  423. package/lib/components/pisellReservationScheduleBand/index.js +29 -0
  424. package/lib/components/pisellReservationScheduleBand/types.d.ts +49 -0
  425. package/lib/components/pisellReservationScheduleBand/types.js +17 -0
  426. package/lib/components/pisellShellFrame/PisellShellFrame.less +11 -0
  427. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
  428. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +901 -0
  429. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +461 -0
  430. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
  431. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +273 -0
  432. package/lib/components/pisellTimeNavigator/components/BackgroundLayer.js +78 -0
  433. package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
  434. package/lib/components/pisellTimeNavigator/components/CursorLayer.js +111 -0
  435. package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
  436. package/lib/components/pisellTimeNavigator/components/GestureLayer.js +170 -0
  437. package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
  438. package/lib/components/pisellTimeNavigator/components/NowButton.js +81 -0
  439. package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +22 -0
  440. package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +116 -0
  441. package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
  442. package/lib/components/pisellTimeNavigator/components/index.js +41 -0
  443. package/lib/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
  444. package/lib/components/pisellTimeNavigator/hooks/index.js +35 -0
  445. package/lib/components/pisellTimeNavigator/hooks/useDragInertia.js +136 -0
  446. package/lib/components/pisellTimeNavigator/hooks/useRealtime.js +49 -0
  447. package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.js +87 -0
  448. package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
  449. package/lib/components/pisellTimeNavigator/index.js +47 -0
  450. package/lib/components/pisellTimeNavigator/locales.d.ts +22 -0
  451. package/lib/components/pisellTimeNavigator/locales.js +41 -0
  452. package/lib/components/pisellTimeNavigator/types.js +17 -0
  453. package/lib/components/pisellTimeNavigator/utils/index.js +107 -0
  454. package/lib/components/pisellWalletPassCard/index.js +1 -1
  455. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  456. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  457. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  458. package/lib/components/table/Table/fields/index.d.ts +3 -2
  459. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  460. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  461. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  462. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  463. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  464. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  465. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  466. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  467. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  468. package/lib/components/table/Table/utils.d.ts +1 -1
  469. package/lib/components/table/index.js +2 -2
  470. package/lib/hooks/useResponsive.d.ts +1 -1
  471. package/lib/index.d.ts +49 -33
  472. package/lib/index.js +93 -27
  473. package/lib/locales/en-US.d.ts +3 -0
  474. package/lib/locales/en-US.js +3 -0
  475. package/lib/locales/ja.d.ts +8 -0
  476. package/lib/locales/ja.js +22 -1
  477. package/lib/locales/pt.d.ts +8 -0
  478. package/lib/locales/pt.js +22 -1
  479. package/lib/locales/zh-CN.d.ts +3 -0
  480. package/lib/locales/zh-CN.js +3 -0
  481. package/lib/locales/zh-TW.d.ts +3 -0
  482. package/lib/locales/zh-TW.js +3 -0
  483. package/lowcode/data-source-form/constants.ts +3 -0
  484. package/lowcode/data-source-form/utils.ts +31 -5
  485. package/lowcode/data-source-sub-form/meta.ts +259 -0
  486. package/lowcode/data-source-sub-form/snippets.ts +21 -0
  487. package/lowcode/floor-map-image-element/meta.ts +113 -0
  488. package/lowcode/floor-map-layout-provider/meta.ts +65 -0
  489. package/lowcode/form-item-record-list-wrapper/meta.ts +180 -0
  490. package/lowcode/form-item-record-list-wrapper/snippets.ts +18 -0
  491. package/lowcode/form-item-tabs/meta.ts +172 -0
  492. package/lowcode/pisell-floor-map-layout/meta.ts +5599 -0
  493. package/lowcode/pisell-hierarchical-summary-list/meta.ts +240 -0
  494. package/lowcode/pisell-reservation-schedule/index.ts +3 -0
  495. package/lowcode/pisell-reservation-schedule/meta.ts +69 -0
  496. package/lowcode/pisell-reservation-schedule/snippets.ts +1 -0
  497. package/lowcode/pisell-reservation-schedule-band/index.ts +3 -0
  498. package/lowcode/pisell-reservation-schedule-band/meta.ts +96 -0
  499. package/lowcode/pisell-reservation-schedule-band/snippets.ts +1 -0
  500. package/lowcode/pisell-time-navigator/index.ts +3 -0
  501. package/lowcode/pisell-time-navigator/meta.ts +298 -0
  502. package/lowcode/pisell-time-navigator/snippets.ts +1 -0
  503. package/lowcode/render-figma-style-round-table-card/meta.ts +589 -0
  504. package/lowcode/render-figma-style-table-card/meta.ts +589 -0
  505. package/package.json +4 -3
  506. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  507. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  508. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  509. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  510. package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
  511. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  512. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
  513. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  514. package/es/components/drag-sort-tree/index.d.ts +0 -5
  515. package/es/components/iconfont/index.d.ts +0 -8
  516. package/es/components/login-and-register/index.d.ts +0 -82
  517. package/es/components/pisell-config-provider/index.d.ts +0 -13
  518. package/es/components/pisellEmpty/index.d.ts +0 -19
  519. package/es/components/pisellGridPro/index.d.ts +0 -4
  520. package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  521. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  522. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  523. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
  524. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  525. package/es/components/productCard/status.d.ts +0 -32
  526. package/es/components/productCard/types.d.ts +0 -95
  527. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  528. package/es/components/table/types.d.ts +0 -268
  529. package/es/components/versionModal/index.d.ts +0 -23
  530. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  531. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  532. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  533. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  534. package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
  535. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  536. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
  537. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  538. package/lib/components/drag-sort-tree/index.d.ts +0 -5
  539. package/lib/components/iconfont/index.d.ts +0 -8
  540. package/lib/components/login-and-register/index.d.ts +0 -82
  541. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  542. package/lib/components/pisellEmpty/index.d.ts +0 -19
  543. package/lib/components/pisellGridPro/index.d.ts +0 -4
  544. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  545. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  546. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  547. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
  548. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  549. package/lib/components/productCard/status.d.ts +0 -32
  550. package/lib/components/productCard/types.d.ts +0 -95
  551. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  552. package/lib/components/table/types.d.ts +0 -268
  553. package/lib/components/versionModal/index.d.ts +0 -23
@@ -0,0 +1,1667 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
14
+ import { Button, Space, Tabs, Avatar, Form, Input } from 'antd';
15
+ import { UserOutlined, ClockCircleOutlined, TeamOutlined, AuditOutlined, FieldTimeOutlined } from '@ant-design/icons';
16
+ import { FLOOR_MAP_IMAGE_ELEMENT_KIND } from "./types";
17
+ import { PisellFloorMapLayout } from "./PisellFloorMapLayout";
18
+ import { FloorMapLayoutProvider } from "./context/FloorMapLayoutContext";
19
+ import { getRenderItemByKindTable, getRenderItemByKindRoundTable } from "./components/FigmaTableCard";
20
+ // Figma 设计 token(Pisell 2.0 Component Library,node 13998:648 / 14004:1168 变量)
21
+ var FIGMA = {
22
+ white: '#FFFFFF',
23
+ gray50: '#F9FAFB',
24
+ gray100: '#F2F4F7',
25
+ gray200: '#EAECF0',
26
+ gray300: '#D0D5DD',
27
+ gray400: '#98A2B3',
28
+ gray500: '#667085',
29
+ gray700: '#344054',
30
+ gray900: '#101828',
31
+ shadowSm: '0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1)',
32
+ fontFamily: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
33
+ // 状态色(与图例、卡片边框及小条一致)
34
+ available: '#EAECF0',
35
+ reserved: '#9254de',
36
+ waiting: '#fa8c16',
37
+ dining: '#1890ff',
38
+ billed: '#52c41a',
39
+ availableSoon: '#f5222d',
40
+ /** 选中 Tab 背景(node 13998:648) */
41
+ tabActiveBg: '#1890ff',
42
+ /** 矩形外小条:Available 用灰,有状态用对应边框色 */
43
+ barFillAvailable: '#EAECF0',
44
+ /** 图例圆点色(Figma 14131:6266 设计 token) */
45
+ legendReserved: '#D6BBFB',
46
+ legendWaiting: '#FEC84B',
47
+ legendDining: '#84CAFF',
48
+ legendBilled: '#75E0A7',
49
+ legendAvailableSoon: '#FDA29B'
50
+ };
51
+
52
+ /**
53
+ * PisellFloorMapLayout 楼层图布局
54
+ *
55
+ * 空间布局视图:在二维平面按坐标渲染资源(桌台/房间/工位等),
56
+ * 支持缩放、平移、复位、区域定位,仅负责展示与交互。
57
+ */
58
+ var meta = {
59
+ title: 'Data Display/PisellFloorMapLayout',
60
+ component: PisellFloorMapLayout,
61
+ parameters: {
62
+ layout: 'padded',
63
+ docs: {
64
+ description: {
65
+ component: '在二维平面按坐标渲染资源,状态由外部通过 item 与 renderItem 传入。支持 itemUnit:cell(格子数)或 pixel(像素);格子模式下可用 mapLayer.gap 控制 item 间距。支持底层背景/网格、缩放/平移、内置视图控制按钮。'
66
+ }
67
+ }
68
+ },
69
+ tags: ['autodocs'],
70
+ argTypes: {
71
+ itemUnit: {
72
+ control: 'select',
73
+ options: ['cell', 'pixel'],
74
+ description: 'item 坐标与尺寸单位:cell 格子数,pixel 像素'
75
+ },
76
+ layoutMode: {
77
+ control: 'select',
78
+ options: ['free', 'grid'],
79
+ description: '布局模式'
80
+ },
81
+ enableHover: {
82
+ control: 'boolean',
83
+ description: '是否开启 hover'
84
+ }
85
+ }
86
+ };
87
+ export default meta;
88
+ /** 示例:基础格子项数据(5x4 网格) */
89
+ var defaultItems = [{
90
+ id: 'S-1',
91
+ x: 0,
92
+ y: 0
93
+ }, {
94
+ id: 'S-2',
95
+ x: 1,
96
+ y: 0
97
+ }, {
98
+ id: 'S-3',
99
+ x: 2,
100
+ y: 0
101
+ }, {
102
+ id: 'S-4',
103
+ x: 3,
104
+ y: 0
105
+ }, {
106
+ id: 'M-1',
107
+ x: 0,
108
+ y: 1
109
+ }, {
110
+ id: 'M-2',
111
+ x: 1,
112
+ y: 1
113
+ }, {
114
+ id: 'M-3',
115
+ x: 2,
116
+ y: 1
117
+ }, {
118
+ id: 'M-4',
119
+ x: 3,
120
+ y: 1
121
+ }, {
122
+ id: 'L-1',
123
+ x: 0,
124
+ y: 2
125
+ }, {
126
+ id: 'L-2',
127
+ x: 1,
128
+ y: 2
129
+ }, {
130
+ id: 'L-3',
131
+ x: 2,
132
+ y: 2
133
+ }, {
134
+ id: 'X-1',
135
+ x: 0,
136
+ y: 3
137
+ }, {
138
+ id: 'X-2',
139
+ x: 1,
140
+ y: 3
141
+ }, {
142
+ id: 'X-3',
143
+ x: 2,
144
+ y: 3
145
+ }, {
146
+ id: 'X-4',
147
+ x: 3,
148
+ y: 3
149
+ }];
150
+
151
+ /** 简单格子渲染:仅显示 id;尊重 item.shape(如 circle 则圆形容器) */
152
+ function renderSimpleItem(item) {
153
+ var isCircle = item.shape === 'circle';
154
+ return /*#__PURE__*/React.createElement("div", {
155
+ style: {
156
+ width: '100%',
157
+ height: '100%',
158
+ display: 'flex',
159
+ alignItems: 'center',
160
+ justifyContent: 'center',
161
+ background: '#fff',
162
+ border: '4px solid #d9d9d9',
163
+ borderRadius: isCircle ? '50%' : 4,
164
+ fontSize: 12
165
+ }
166
+ }, item.id);
167
+ }
168
+
169
+ /**
170
+ * 默认 - 纯色底 + 简单格子(格子单位,默认 item 间距 8px)
171
+ */
172
+ export var Default = {
173
+ parameters: {
174
+ layout: 'fullscreen'
175
+ },
176
+ decorators: [function (Story) {
177
+ return /*#__PURE__*/React.createElement("div", {
178
+ style: {
179
+ boxSizing: 'border-box',
180
+ height: '100vh',
181
+ minHeight: '100vh',
182
+ padding: 16,
183
+ display: 'flex',
184
+ flexDirection: 'column'
185
+ }
186
+ }, /*#__PURE__*/React.createElement("div", {
187
+ style: {
188
+ flex: 1,
189
+ minHeight: 0,
190
+ minWidth: 0
191
+ }
192
+ }, /*#__PURE__*/React.createElement(Story, null)));
193
+ }],
194
+ args: {
195
+ items: defaultItems,
196
+ renderItem: function renderItem(item) {
197
+ return renderSimpleItem(item);
198
+ },
199
+ itemUnit: 'cell',
200
+ mapLayer: {
201
+ backgroundType: 'color',
202
+ backgroundColor: '#f5f5f5',
203
+ padding: 16,
204
+ gap: 8
205
+ },
206
+ zoom: {
207
+ defaultScale: 1,
208
+ min: 0.5,
209
+ max: 2
210
+ },
211
+ pan: {
212
+ enabled: false
213
+ },
214
+ enableHover: true,
215
+ style: {
216
+ height: '100%',
217
+ width: '100%',
218
+ minHeight: 0
219
+ }
220
+ }
221
+ };
222
+
223
+ /**
224
+ * 显示网格线(item 间距由 mapLayer.gap 控制)
225
+ */
226
+ export var WithGrid = {
227
+ args: {
228
+ items: defaultItems,
229
+ renderItem: function renderItem(item) {
230
+ return renderSimpleItem(item);
231
+ },
232
+ itemUnit: 'cell',
233
+ mapLayer: {
234
+ backgroundType: 'color',
235
+ backgroundColor: '#fafafa',
236
+ showGrid: true,
237
+ padding: 16,
238
+ gap: 8
239
+ },
240
+ zoom: {
241
+ defaultScale: 1
242
+ },
243
+ pan: {
244
+ enabled: true
245
+ }
246
+ }
247
+ };
248
+
249
+ /**
250
+ * 开启平移 - 可拖拽画布
251
+ */
252
+ export var WithPan = {
253
+ args: {
254
+ items: defaultItems,
255
+ renderItem: function renderItem(item) {
256
+ return renderSimpleItem(item);
257
+ },
258
+ itemUnit: 'cell',
259
+ mapLayer: {
260
+ backgroundType: 'color',
261
+ backgroundColor: '#f0f5ff',
262
+ showGrid: true,
263
+ padding: 16,
264
+ gap: 8
265
+ },
266
+ zoom: {
267
+ defaultScale: 1
268
+ },
269
+ pan: {
270
+ enabled: true
271
+ },
272
+ controls: {
273
+ showZoom: true,
274
+ showReset: true,
275
+ showFitBounds: true,
276
+ showFullscreen: true
277
+ }
278
+ }
279
+ };
280
+
281
+ /**
282
+ * 不同形状 - 矩形、圆形、三角形;含不同格子宽高(如 rect2 为 2x1)
283
+ */
284
+ var shapeItems = [{
285
+ id: 'rect',
286
+ x: 0,
287
+ y: 0,
288
+ shape: 'rect'
289
+ }, {
290
+ id: 'circle',
291
+ x: 2,
292
+ y: 0,
293
+ shape: 'circle'
294
+ }, {
295
+ id: 'triangle',
296
+ x: 4,
297
+ y: 0,
298
+ shape: 'triangle'
299
+ }, {
300
+ id: 'rect2',
301
+ x: 0,
302
+ y: 2,
303
+ width: 2,
304
+ height: 1
305
+ }];
306
+ export var WithShapes = {
307
+ args: {
308
+ items: shapeItems,
309
+ renderItem: function renderItem(item) {
310
+ return renderSimpleItem(item);
311
+ },
312
+ itemUnit: 'cell',
313
+ mapLayer: {
314
+ backgroundType: 'color',
315
+ backgroundColor: '#f5f5f5',
316
+ showGrid: true,
317
+ padding: 16,
318
+ gap: 8
319
+ },
320
+ zoom: {
321
+ defaultScale: 1
322
+ },
323
+ pan: {
324
+ enabled: true
325
+ }
326
+ }
327
+ };
328
+
329
+ /**
330
+ * 格子单位下不同宽高 - 每个 item 可设置 width/height(格子数)
331
+ */
332
+ var variableSizeItems = [{
333
+ id: '1x1',
334
+ x: 0,
335
+ y: 0
336
+ }, {
337
+ id: '2x1',
338
+ x: 1,
339
+ y: 0,
340
+ width: 2,
341
+ height: 1
342
+ }, {
343
+ id: '1x2',
344
+ x: 3,
345
+ y: 0,
346
+ width: 1,
347
+ height: 2
348
+ }, {
349
+ id: '2x2',
350
+ x: 0,
351
+ y: 2,
352
+ width: 2,
353
+ height: 2
354
+ }, {
355
+ id: '3x1',
356
+ x: 2,
357
+ y: 2,
358
+ width: 3,
359
+ height: 1
360
+ }];
361
+ export var WithVariableSizes = {
362
+ parameters: {
363
+ docs: {
364
+ description: {
365
+ story: 'itemUnit 为 cell 时,每条数据可设置 width/height(格子数),实现不同大小的格子。'
366
+ }
367
+ }
368
+ },
369
+ args: {
370
+ items: variableSizeItems,
371
+ renderItem: function renderItem(item) {
372
+ return renderSimpleItem(item);
373
+ },
374
+ itemUnit: 'cell',
375
+ cellSize: 72,
376
+ mapLayer: {
377
+ backgroundType: 'color',
378
+ backgroundColor: '#f5f5f5',
379
+ showGrid: true,
380
+ padding: 16,
381
+ gap: 8
382
+ },
383
+ zoom: {
384
+ defaultScale: 1
385
+ },
386
+ pan: {
387
+ enabled: true
388
+ }
389
+ }
390
+ };
391
+
392
+ /**
393
+ * 像素单位 - x、y、width、height 均为像素,可任意位置与尺寸
394
+ */
395
+ var pixelItems = [{
396
+ id: 'A',
397
+ x: 20,
398
+ y: 20,
399
+ width: 100,
400
+ height: 80
401
+ }, {
402
+ id: 'B',
403
+ x: 140,
404
+ y: 20,
405
+ width: 200,
406
+ height: 80
407
+ }, {
408
+ id: 'C',
409
+ x: 20,
410
+ y: 120,
411
+ width: 80,
412
+ height: 100
413
+ }, {
414
+ id: 'D',
415
+ x: 120,
416
+ y: 120,
417
+ width: 150,
418
+ height: 120
419
+ }, {
420
+ id: 'E',
421
+ x: 290,
422
+ y: 120
423
+ } // 不写 width/height 时使用 cellSize 作为默认尺寸
424
+ ];
425
+ export var PixelUnits = {
426
+ parameters: {
427
+ docs: {
428
+ description: {
429
+ story: 'itemUnit 为 pixel 时,item 的 x、y、width、height 均为像素;不写 width/height 时以 cellSize 为默认宽高。'
430
+ }
431
+ }
432
+ },
433
+ args: {
434
+ items: pixelItems,
435
+ renderItem: function renderItem(item) {
436
+ return renderSimpleItem(item);
437
+ },
438
+ itemUnit: 'pixel',
439
+ cellSize: 64,
440
+ mapLayer: {
441
+ backgroundType: 'color',
442
+ backgroundColor: '#f5f5f5',
443
+ padding: 16
444
+ },
445
+ zoom: {
446
+ defaultScale: 1
447
+ },
448
+ pan: {
449
+ enabled: true
450
+ }
451
+ }
452
+ };
453
+
454
+ /**
455
+ * 点击与 Hover 事件
456
+ */
457
+ export var WithEvents = {
458
+ args: {
459
+ items: defaultItems.slice(0, 6),
460
+ renderItem: function renderItem(item) {
461
+ return renderSimpleItem(item);
462
+ },
463
+ itemUnit: 'cell',
464
+ mapLayer: {
465
+ backgroundType: 'color',
466
+ backgroundColor: '#f5f5f5',
467
+ padding: 16,
468
+ gap: 8
469
+ },
470
+ enableHover: true,
471
+ onItemClick: function onItemClick(item) {
472
+ console.log('click', item.id);
473
+ alert("\u70B9\u51FB\u4E86 ".concat(item.id));
474
+ },
475
+ onItemHover: function onItemHover(item) {
476
+ return console.log('hover', item.id);
477
+ },
478
+ onItemLeave: function onItemLeave(item) {
479
+ return console.log('leave', item.id);
480
+ }
481
+ }
482
+ };
483
+
484
+ /**
485
+ * Ref 调用 - 外部按钮控制缩放/复位/区域定位
486
+ */
487
+ export var WithRefControls = {
488
+ render: function WithRefControlsRender() {
489
+ var ref = useRef(null);
490
+ return /*#__PURE__*/React.createElement(Space, {
491
+ direction: "vertical",
492
+ style: {
493
+ width: '100%'
494
+ },
495
+ size: "middle"
496
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
497
+ onClick: function onClick() {
498
+ var _ref$current;
499
+ return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.zoomIn();
500
+ }
501
+ }, "\u653E\u5927"), /*#__PURE__*/React.createElement(Button, {
502
+ onClick: function onClick() {
503
+ var _ref$current2;
504
+ return (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.zoomOut();
505
+ }
506
+ }, "\u7F29\u5C0F"), /*#__PURE__*/React.createElement(Button, {
507
+ onClick: function onClick() {
508
+ var _ref$current3;
509
+ return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.reset();
510
+ }
511
+ }, "\u590D\u4F4D"), /*#__PURE__*/React.createElement(Button, {
512
+ onClick: function onClick() {
513
+ var _ref$current4;
514
+ return (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.fitBounds();
515
+ }
516
+ }, "\u533A\u57DF\u5B9A\u4F4D")), /*#__PURE__*/React.createElement("div", {
517
+ style: {
518
+ height: 400
519
+ }
520
+ }, /*#__PURE__*/React.createElement(PisellFloorMapLayout, {
521
+ ref: ref,
522
+ items: defaultItems,
523
+ renderItem: function renderItem(item) {
524
+ return renderSimpleItem(item);
525
+ },
526
+ itemUnit: "cell",
527
+ mapLayer: {
528
+ backgroundType: 'color',
529
+ backgroundColor: '#fafafa',
530
+ showGrid: true,
531
+ padding: 16,
532
+ gap: 8
533
+ },
534
+ zoom: {
535
+ defaultScale: 1
536
+ },
537
+ pan: {
538
+ enabled: true
539
+ },
540
+ style: {
541
+ height: 400
542
+ }
543
+ })));
544
+ }
545
+ };
546
+
547
+ /**
548
+ * Floor Map 视图 - 编辑态(多画布 Tab + 占位工具栏/编辑面板)
549
+ * 传入 floorMapConfig + dataSources + mode='edit',由组件内部合并 items
550
+ */
551
+ var mockFloorMapConfig = {
552
+ canvasUi: {
553
+ canCreate: true,
554
+ canEdit: true
555
+ },
556
+ canvases: [{
557
+ id: 'f1',
558
+ name: '1楼',
559
+ order: 0,
560
+ enabled: true
561
+ }, {
562
+ id: 'f2',
563
+ name: '2楼',
564
+ order: 1,
565
+ enabled: true
566
+ }],
567
+ elementKindCategories: [{
568
+ id: 'c1',
569
+ label: '餐桌',
570
+ order: 0
571
+ }, {
572
+ id: 'c2',
573
+ label: '装饰',
574
+ order: 1
575
+ }],
576
+ elementKinds: [{
577
+ value: 'table',
578
+ label: '方桌',
579
+ categoryId: 'c1',
580
+ dataBindingPolicy: 'optional',
581
+ allowedDataSourceKeys: ['sales']
582
+ }, {
583
+ value: 'roundTable',
584
+ label: '圆桌',
585
+ categoryId: 'c1',
586
+ dataBindingPolicy: 'optional',
587
+ allowedDataSourceKeys: ['sales'],
588
+ defaultShape: 'circle'
589
+ }, {
590
+ value: 'deco',
591
+ label: '装饰',
592
+ categoryId: 'c2',
593
+ dataBindingPolicy: 'none'
594
+ }, {
595
+ value: 'stage',
596
+ label: '舞台/区域',
597
+ categoryId: 'c2',
598
+ dataBindingPolicy: 'none'
599
+ }, {
600
+ value: FLOOR_MAP_IMAGE_ELEMENT_KIND,
601
+ label: '图片(底图)',
602
+ categoryId: 'c2',
603
+ dataBindingPolicy: 'none'
604
+ }],
605
+ sceneElements: [{
606
+ instanceId: 'elm_bg_demo',
607
+ canvasId: 'f1',
608
+ x: 40,
609
+ y: 40,
610
+ width: 520,
611
+ height: 280,
612
+ zIndex: -8,
613
+ elementKind: FLOOR_MAP_IMAGE_ELEMENT_KIND,
614
+ name: '底图示例',
615
+ imageUrl: ''
616
+ }, {
617
+ instanceId: 'elm_s1',
618
+ canvasId: 'f1',
619
+ x: 50,
620
+ y: 50,
621
+ elementKind: 'table',
622
+ width: 180,
623
+ height: 120,
624
+ zIndex: 0,
625
+ dataBinding: {
626
+ dataSourceKey: 'sales',
627
+ recordId: 's1'
628
+ }
629
+ }, {
630
+ instanceId: 'elm_s2',
631
+ canvasId: 'f1',
632
+ x: 150,
633
+ y: 50,
634
+ elementKind: 'table',
635
+ width: 180,
636
+ height: 120,
637
+ zIndex: 0,
638
+ dataBinding: {
639
+ dataSourceKey: 'sales',
640
+ recordId: 's2'
641
+ }
642
+ }, {
643
+ instanceId: 'elm_r1',
644
+ canvasId: 'f1',
645
+ x: 250,
646
+ y: 50,
647
+ elementKind: 'roundTable',
648
+ width: 100,
649
+ height: 100,
650
+ zIndex: 0,
651
+ dataBinding: {
652
+ dataSourceKey: 'sales',
653
+ recordId: 'r1'
654
+ }
655
+ }, {
656
+ instanceId: 'elm_d1',
657
+ canvasId: 'f1',
658
+ x: 200,
659
+ y: 120,
660
+ width: 60,
661
+ height: 60,
662
+ shape: 'circle',
663
+ elementKind: 'deco',
664
+ zIndex: 0
665
+ }]
666
+ };
667
+ var mockDataSources = {
668
+ sales: [{
669
+ id: 's1',
670
+ name: '桌台 A'
671
+ }, {
672
+ id: 's2',
673
+ name: '桌台 B'
674
+ }, {
675
+ id: 'r1',
676
+ name: '圆桌1'
677
+ }]
678
+ };
679
+ export var FloorMapViewEdit = {
680
+ parameters: {
681
+ docs: {
682
+ description: {
683
+ story: '平面图编辑态:**非全屏**时顶栏为画布 **Tab + 全屏**,保存多在侧栏;**全屏**后顶栏含 Tab、保存、退出全屏等。左侧图元可**拖到画布**生成图元。左下角为缩放。'
684
+ }
685
+ }
686
+ },
687
+ args: {
688
+ items: [],
689
+ renderItem: function renderItem(item) {
690
+ return renderSimpleItem(item);
691
+ },
692
+ renderItemByKind: {
693
+ table: getRenderItemByKindTable(mockDataSources),
694
+ roundTable: getRenderItemByKindRoundTable(mockDataSources)
695
+ },
696
+ floorMapConfig: mockFloorMapConfig,
697
+ dataSources: mockDataSources,
698
+ mode: 'edit',
699
+ mapLayer: {
700
+ backgroundType: 'color',
701
+ backgroundColor: '#f5f5f5',
702
+ padding: 16
703
+ },
704
+ zoom: {
705
+ defaultScale: 1
706
+ },
707
+ pan: {
708
+ enabled: true
709
+ },
710
+ controls: {
711
+ showZoom: true,
712
+ showFullscreen: true,
713
+ showFitBounds: true
714
+ },
715
+ style: {
716
+ height: 560
717
+ }
718
+ }
719
+ };
720
+
721
+ /** Story:`dataSourceRecordForm` 自定义「数据源记录」表单 */
722
+ function SalesRecordInlineForm(props) {
723
+ var ctx = props.ctx;
724
+ var _Form$useForm = Form.useForm(),
725
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
726
+ form = _Form$useForm2[0];
727
+ useEffect(function () {
728
+ form.setFieldsValue(ctx.record);
729
+ }, [ctx.recordId, ctx.record, form]);
730
+ return /*#__PURE__*/React.createElement(Form, {
731
+ form: form,
732
+ layout: "vertical",
733
+ size: "small",
734
+ onFinish: function onFinish(values) {
735
+ var _ctx$onSaveRecord;
736
+ return (_ctx$onSaveRecord = ctx.onSaveRecord) === null || _ctx$onSaveRecord === void 0 ? void 0 : _ctx$onSaveRecord.call(ctx, values);
737
+ }
738
+ }, /*#__PURE__*/React.createElement(Form.Item, {
739
+ name: "name",
740
+ label: "\u540D\u79F0"
741
+ }, /*#__PURE__*/React.createElement(Input, null)), /*#__PURE__*/React.createElement(Button, {
742
+ type: "primary",
743
+ htmlType: "submit",
744
+ size: "small",
745
+ loading: ctx.savingRecord,
746
+ block: true
747
+ }, "\u4FDD\u5B58\uFF08\u81EA\u5B9A\u4E49\u8868\u5355\uFF09"));
748
+ }
749
+
750
+ /**
751
+ * 平面图编辑态 + 自定义数据源记录表单(`dataSourceRecordForm.sales`)
752
+ */
753
+ export var FloorMapViewEditCustomRecordForm = {
754
+ parameters: {
755
+ docs: {
756
+ description: {
757
+ story: '选中落位后,侧栏「数据源记录」由 `dataSourceRecordForm` 渲染自定义 Form;`ctx.onSaveRecord` 与内置 FloorMapDataForm 相同,写回 `onDataSourceRecordSave`。本 Story 用本地 state 更新 `dataSources`,卡片文案会同步。'
758
+ }
759
+ }
760
+ },
761
+ render: function FloorMapViewEditCustomRecordFormRender() {
762
+ var _useState = useState(function () {
763
+ return _objectSpread({}, mockDataSources);
764
+ }),
765
+ _useState2 = _slicedToArray(_useState, 2),
766
+ dataSources = _useState2[0],
767
+ setDataSources = _useState2[1];
768
+ var handleRecordSave = useCallback(function (dataSourceKey, id, newData) {
769
+ setDataSources(function (prev) {
770
+ var _prev$dataSourceKey;
771
+ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, dataSourceKey, ((_prev$dataSourceKey = prev[dataSourceKey]) !== null && _prev$dataSourceKey !== void 0 ? _prev$dataSourceKey : []).map(function (row) {
772
+ return row.id === id ? _objectSpread(_objectSpread({}, row), newData) : row;
773
+ })));
774
+ });
775
+ }, []);
776
+ return /*#__PURE__*/React.createElement(PisellFloorMapLayout, {
777
+ items: [],
778
+ renderItem: function renderItem(item) {
779
+ return renderSimpleItem(item);
780
+ },
781
+ renderItemByKind: {
782
+ table: getRenderItemByKindTable(dataSources),
783
+ roundTable: getRenderItemByKindRoundTable(dataSources)
784
+ },
785
+ floorMapConfig: mockFloorMapConfig,
786
+ dataSources: dataSources,
787
+ mode: "edit",
788
+ onDataSourceRecordSave: handleRecordSave,
789
+ dataSourceRecordForm: {
790
+ sales: function sales(ctx) {
791
+ return /*#__PURE__*/React.createElement(SalesRecordInlineForm, {
792
+ ctx: ctx
793
+ });
794
+ }
795
+ },
796
+ mapLayer: {
797
+ backgroundType: 'color',
798
+ backgroundColor: '#f5f5f5',
799
+ padding: 16
800
+ },
801
+ zoom: {
802
+ defaultScale: 1
803
+ },
804
+ pan: {
805
+ enabled: true
806
+ },
807
+ style: {
808
+ height: 560
809
+ }
810
+ });
811
+ }
812
+ };
813
+
814
+ /**
815
+ * Floor Map 视图 - 阅读态(方桌同样用 Figma 样式)
816
+ */
817
+ export var FloorMapViewRead = {
818
+ parameters: {
819
+ docs: {
820
+ description: {
821
+ story: '平面图视图阅读态:无 Tab/工具栏,方桌采用 Figma 设计稿样式。'
822
+ }
823
+ }
824
+ },
825
+ args: {
826
+ items: [],
827
+ renderItem: function renderItem(item) {
828
+ return renderSimpleItem(item);
829
+ },
830
+ renderItemByKind: {
831
+ table: getRenderItemByKindTable(mockDataSources),
832
+ roundTable: getRenderItemByKindRoundTable(mockDataSources)
833
+ },
834
+ floorMapConfig: mockFloorMapConfig,
835
+ dataSources: mockDataSources,
836
+ mode: 'read',
837
+ mapLayer: {
838
+ backgroundType: 'color',
839
+ backgroundColor: '#f5f5f5',
840
+ padding: 16
841
+ },
842
+ zoom: {
843
+ defaultScale: 1
844
+ },
845
+ pan: {
846
+ enabled: true
847
+ },
848
+ style: {
849
+ height: 400
850
+ }
851
+ }
852
+ };
853
+
854
+ /**
855
+ * 自定义控制按钮显隐
856
+ */
857
+ export var ControlsHidden = {
858
+ args: {
859
+ items: defaultItems.slice(0, 4),
860
+ renderItem: function renderItem(item) {
861
+ return renderSimpleItem(item);
862
+ },
863
+ itemUnit: 'cell',
864
+ mapLayer: {
865
+ backgroundType: 'color',
866
+ backgroundColor: '#f5f5f5',
867
+ padding: 16,
868
+ gap: 8
869
+ },
870
+ controls: {
871
+ showZoom: false,
872
+ showReset: true,
873
+ showFitBounds: false
874
+ }
875
+ }
876
+ };
877
+
878
+ /**
879
+ * `FloorMapLayoutProvider` 注入 `floorMapConfig` / `dataSources`;Layout 仅传展示向 props
880
+ */
881
+ export var FloorMapWithLayoutProvider = {
882
+ parameters: {
883
+ docs: {
884
+ description: {
885
+ story: '演示 `FloorMapLayoutProvider`:`floorMapConfig` 与 `dataSources` 由 Context 提供,`PisellFloorMapLayout` 只写 `renderItemByKind`、`mapLayer`、`mode` 等。'
886
+ }
887
+ }
888
+ },
889
+ render: function FloorMapWithLayoutProviderRender() {
890
+ var providerValue = useMemo(function () {
891
+ return {
892
+ floorMapConfig: mockFloorMapConfig,
893
+ dataSources: mockDataSources
894
+ };
895
+ }, []);
896
+ return /*#__PURE__*/React.createElement(FloorMapLayoutProvider, {
897
+ value: providerValue
898
+ }, /*#__PURE__*/React.createElement(PisellFloorMapLayout, {
899
+ items: [],
900
+ renderItem: function renderItem(item) {
901
+ return renderSimpleItem(item);
902
+ },
903
+ renderItemByKind: {
904
+ table: getRenderItemByKindTable(mockDataSources),
905
+ roundTable: getRenderItemByKindRoundTable(mockDataSources)
906
+ },
907
+ mode: "edit",
908
+ mapLayer: {
909
+ backgroundType: 'color',
910
+ backgroundColor: '#f5f5f5',
911
+ padding: 16
912
+ },
913
+ zoom: {
914
+ defaultScale: 1
915
+ },
916
+ pan: {
917
+ enabled: true
918
+ },
919
+ controls: {
920
+ showZoom: true,
921
+ showFullscreen: true,
922
+ showFitBounds: true
923
+ },
924
+ style: {
925
+ height: 560
926
+ }
927
+ }));
928
+ }
929
+ };
930
+
931
+ // ---------- Figma 设计稿还原(node 14004:1168)----------
932
+
933
+ /** 桌台状态:对应 Figma 中的边框颜色与图例 */
934
+
935
+ /** Figma 桌台项:在 FloorMapItemBase 上扩展状态与展示字段 */
936
+
937
+ var STATUS_BORDER = {
938
+ available: FIGMA.gray200,
939
+ reserved: FIGMA.reserved,
940
+ waiting: FIGMA.waiting,
941
+ dining: FIGMA.dining,
942
+ billed: FIGMA.billed,
943
+ availableSoon: FIGMA.availableSoon
944
+ };
945
+
946
+ /** 5 列 x 4 行(最后一行 4 格),与 Figma 设计稿一致 */
947
+ var figmaTableItems = [{
948
+ id: 'S-1',
949
+ x: 0,
950
+ y: 0,
951
+ status: 'reserved',
952
+ customerName: 'Carolino',
953
+ reserveTime: '13:00'
954
+ }, {
955
+ id: 'S-2',
956
+ x: 1,
957
+ y: 0,
958
+ status: 'available'
959
+ }, {
960
+ id: 'S-3',
961
+ x: 2,
962
+ y: 0,
963
+ status: 'availableSoon',
964
+ guests: 7,
965
+ dishes: '5/5 Dishes',
966
+ duration: '35m30s'
967
+ }, {
968
+ id: 'S-4',
969
+ x: 3,
970
+ y: 0,
971
+ status: 'available'
972
+ }, {
973
+ id: 'S-5',
974
+ x: 4,
975
+ y: 0,
976
+ status: 'available'
977
+ }, {
978
+ id: 'M-1',
979
+ x: 0,
980
+ y: 1,
981
+ status: 'available'
982
+ }, {
983
+ id: 'M-2',
984
+ x: 1,
985
+ y: 1,
986
+ status: 'available'
987
+ }, {
988
+ id: 'M-3',
989
+ x: 2,
990
+ y: 1,
991
+ status: 'waiting',
992
+ guests: 2,
993
+ dishes: '3/5 Dishes',
994
+ duration: '15m30s'
995
+ }, {
996
+ id: 'M-4',
997
+ x: 3,
998
+ y: 1,
999
+ status: 'available'
1000
+ }, {
1001
+ id: 'M-7',
1002
+ x: 4,
1003
+ y: 1,
1004
+ status: 'dining',
1005
+ guests: 5,
1006
+ dishes: '5/5 Dishes',
1007
+ duration: '5m30s'
1008
+ }, {
1009
+ id: 'L-1',
1010
+ x: 0,
1011
+ y: 2,
1012
+ status: 'dining',
1013
+ guests: 5,
1014
+ dishes: '5/5 Dishes',
1015
+ duration: '5m30s'
1016
+ }, {
1017
+ id: 'L-2',
1018
+ x: 1,
1019
+ y: 2,
1020
+ status: 'billed',
1021
+ guests: 5,
1022
+ dishes: '5/5 Dishes',
1023
+ duration: '25m30s'
1024
+ }, {
1025
+ id: 'L-3',
1026
+ x: 2,
1027
+ y: 2,
1028
+ status: 'available'
1029
+ }, {
1030
+ id: 'X-1',
1031
+ x: 3,
1032
+ y: 2,
1033
+ status: 'available'
1034
+ }, {
1035
+ id: 'L-4',
1036
+ x: 4,
1037
+ y: 2,
1038
+ status: 'available'
1039
+ }, {
1040
+ id: 'X-2',
1041
+ x: 0,
1042
+ y: 3,
1043
+ status: 'dining',
1044
+ guests: 5,
1045
+ dishes: '5/5 Dishes',
1046
+ duration: '5m30s'
1047
+ }, {
1048
+ id: 'X-3',
1049
+ x: 1,
1050
+ y: 3,
1051
+ status: 'available'
1052
+ }, {
1053
+ id: 'X-4',
1054
+ x: 2,
1055
+ y: 3,
1056
+ status: 'waiting',
1057
+ guests: 2,
1058
+ dishes: '3/5 Dishes',
1059
+ duration: '15m30s'
1060
+ }, {
1061
+ id: 'X-5',
1062
+ x: 3,
1063
+ y: 3,
1064
+ status: 'available'
1065
+ }];
1066
+
1067
+ /** Figma node 13998:648 像素布局:小格 160×160,中格 240×160,大格 250×160,XL 超大格 460×160,间距 50px */
1068
+ var GAP = 50;
1069
+ var SMALL_W = 160;
1070
+ var MED_W = 240;
1071
+ var LARGE_W = 350;
1072
+ var XL_W = 460;
1073
+ var H = 160;
1074
+ var figma13998PixelItems = [
1075
+ // Row 0: S-1, S-2, M-1, L-0(大格带内容,Figma 14000:335)
1076
+ {
1077
+ id: 'S-1',
1078
+ x: 0,
1079
+ y: 0,
1080
+ width: SMALL_W,
1081
+ height: H,
1082
+ status: 'reserved',
1083
+ customerName: 'Carolino',
1084
+ reserveTime: '13:00'
1085
+ }, {
1086
+ id: 'S-2',
1087
+ x: SMALL_W + GAP,
1088
+ y: 0,
1089
+ width: SMALL_W,
1090
+ height: H,
1091
+ status: 'available'
1092
+ }, {
1093
+ id: 'M-1',
1094
+ x: (SMALL_W + GAP) * 2,
1095
+ y: 0,
1096
+ width: MED_W,
1097
+ height: H,
1098
+ status: 'available'
1099
+ }, {
1100
+ id: 'L-0',
1101
+ x: (SMALL_W + GAP) * 2 + MED_W + GAP,
1102
+ y: 0,
1103
+ width: LARGE_W,
1104
+ height: H,
1105
+ status: 'dining',
1106
+ guests: 4,
1107
+ dishes: '5/5 Dishes',
1108
+ duration: '18m20s'
1109
+ }, {
1110
+ id: 'M-0',
1111
+ x: (SMALL_W + GAP) * 2 + MED_W + GAP + LARGE_W + GAP,
1112
+ y: 0,
1113
+ width: MED_W,
1114
+ height: H,
1115
+ status: 'available'
1116
+ },
1117
+ // Row 1: S-3, M-4, S-5, S-6, XL-0(第二个改成 m,最后添加 xl)
1118
+ {
1119
+ id: 'S-3',
1120
+ x: 0,
1121
+ y: H + GAP,
1122
+ width: SMALL_W,
1123
+ height: H,
1124
+ status: 'availableSoon',
1125
+ guests: 7,
1126
+ dishes: '5/5 Dishes',
1127
+ duration: '35m30s'
1128
+ }, {
1129
+ id: 'M-4',
1130
+ x: SMALL_W + GAP,
1131
+ y: H + GAP,
1132
+ width: MED_W,
1133
+ height: H,
1134
+ status: 'available'
1135
+ }, {
1136
+ id: 'S-5',
1137
+ x: SMALL_W + GAP + MED_W + GAP,
1138
+ y: H + GAP,
1139
+ width: SMALL_W,
1140
+ height: H,
1141
+ status: 'dining',
1142
+ guests: 2,
1143
+ dishes: '3/5 Dishes',
1144
+ duration: '15m30s'
1145
+ }, {
1146
+ id: 'S-6',
1147
+ x: SMALL_W + GAP + MED_W + GAP + SMALL_W + GAP,
1148
+ y: H + GAP,
1149
+ width: SMALL_W,
1150
+ height: H,
1151
+ status: 'reserved',
1152
+ customerName: 'Alex',
1153
+ reserveTime: '14:00'
1154
+ }, {
1155
+ id: 'XL-0',
1156
+ x: (SMALL_W + GAP) * 2 + MED_W + GAP + SMALL_W + GAP,
1157
+ y: H + GAP,
1158
+ width: XL_W,
1159
+ height: H,
1160
+ status: 'available'
1161
+ },
1162
+ // Row 2: L-1(MED), L-2(LARGE), L-5(LARGE), S-7, S-10(S-7 紧接 L-5 右边界 + GAP,避免与 L-5 重叠)
1163
+ {
1164
+ id: 'L-1',
1165
+ x: 0,
1166
+ y: (H + GAP) * 2,
1167
+ width: MED_W,
1168
+ height: H,
1169
+ status: 'available'
1170
+ }, {
1171
+ id: 'L-2',
1172
+ x: MED_W + GAP,
1173
+ y: (H + GAP) * 2,
1174
+ width: LARGE_W,
1175
+ height: H,
1176
+ status: 'billed',
1177
+ guests: 5,
1178
+ dishes: '5/5 Dishes',
1179
+ duration: '25m30s'
1180
+ }, {
1181
+ id: 'L-5',
1182
+ x: MED_W + GAP + LARGE_W + GAP,
1183
+ y: (H + GAP) * 2,
1184
+ width: LARGE_W,
1185
+ height: H,
1186
+ status: 'available'
1187
+ }, {
1188
+ id: 'S-7',
1189
+ x: MED_W + GAP + LARGE_W + GAP + LARGE_W + GAP,
1190
+ y: (H + GAP) * 2,
1191
+ width: SMALL_W,
1192
+ height: H,
1193
+ status: 'reserved',
1194
+ customerName: 'Carolino',
1195
+ reserveTime: '13:00'
1196
+ }, {
1197
+ id: 'S-10',
1198
+ x: MED_W + GAP + LARGE_W + GAP + LARGE_W + GAP + SMALL_W + GAP,
1199
+ y: (H + GAP) * 2,
1200
+ width: SMALL_W,
1201
+ height: H,
1202
+ status: 'available'
1203
+ },
1204
+ // Row 3: M-3, L-3, S-8, M-5(第四格 = S-8 右边界 + GAP,避免重叠)
1205
+ {
1206
+ id: 'M-3',
1207
+ x: 0,
1208
+ y: (H + GAP) * 3,
1209
+ width: MED_W,
1210
+ height: H,
1211
+ status: 'waiting',
1212
+ guests: 2,
1213
+ dishes: '3/5 Dishes',
1214
+ duration: '15m30s'
1215
+ }, {
1216
+ id: 'L-3',
1217
+ x: MED_W + GAP,
1218
+ y: (H + GAP) * 3,
1219
+ width: LARGE_W,
1220
+ height: H,
1221
+ status: 'available'
1222
+ }, {
1223
+ id: 'S-8',
1224
+ x: MED_W + GAP + LARGE_W + GAP,
1225
+ y: (H + GAP) * 3,
1226
+ width: SMALL_W,
1227
+ height: H,
1228
+ status: 'dining',
1229
+ guests: 6,
1230
+ dishes: '4/5 Dishes',
1231
+ duration: '24m30s'
1232
+ }, {
1233
+ id: 'M-5',
1234
+ x: MED_W + GAP + LARGE_W + GAP + SMALL_W + GAP,
1235
+ y: (H + GAP) * 3,
1236
+ width: MED_W,
1237
+ height: H,
1238
+ status: 'available'
1239
+ },
1240
+ // Row 4: X-1, S-9, X-2, L-4
1241
+ {
1242
+ id: 'X-1',
1243
+ x: 0,
1244
+ y: (H + GAP) * 4,
1245
+ width: LARGE_W,
1246
+ height: H,
1247
+ status: 'available'
1248
+ }, {
1249
+ id: 'S-9',
1250
+ x: LARGE_W + GAP,
1251
+ y: (H + GAP) * 4,
1252
+ width: SMALL_W,
1253
+ height: H,
1254
+ status: 'available'
1255
+ }, {
1256
+ id: 'X-2',
1257
+ x: LARGE_W + GAP + SMALL_W + GAP,
1258
+ y: (H + GAP) * 4,
1259
+ width: LARGE_W,
1260
+ height: H,
1261
+ status: 'waiting',
1262
+ guests: 2,
1263
+ dishes: '3/5 Dishes',
1264
+ duration: '15m30s'
1265
+ }, {
1266
+ id: 'L-4',
1267
+ x: LARGE_W + GAP + SMALL_W + GAP + LARGE_W + GAP,
1268
+ y: (H + GAP) * 4,
1269
+ width: LARGE_W,
1270
+ height: H,
1271
+ status: 'billed',
1272
+ guests: 5,
1273
+ dishes: '5/5 Dishes',
1274
+ duration: '25m30s'
1275
+ },
1276
+ // Row 5: XL-1 超大格
1277
+ {
1278
+ id: 'XL-1',
1279
+ x: 0,
1280
+ y: (H + GAP) * 5,
1281
+ width: XL_W,
1282
+ height: H,
1283
+ status: 'dining',
1284
+ guests: 12,
1285
+ dishes: '8/8 Dishes',
1286
+ duration: '45m00s'
1287
+ }];
1288
+
1289
+ /** 卡片内一行:左侧图标 + 文案(Figma Text sm/Regular 14/400/20) */
1290
+ function FigmaCardRow(_ref) {
1291
+ var icon = _ref.icon,
1292
+ children = _ref.children;
1293
+ return /*#__PURE__*/React.createElement("div", {
1294
+ style: {
1295
+ display: 'flex',
1296
+ alignItems: 'center',
1297
+ gap: 4,
1298
+ fontFamily: FIGMA.fontFamily,
1299
+ fontSize: 14,
1300
+ lineHeight: '20px',
1301
+ fontWeight: 400,
1302
+ color: FIGMA.gray700,
1303
+ flexShrink: 0,
1304
+ minHeight: '20px'
1305
+ }
1306
+ }, /*#__PURE__*/React.createElement("span", {
1307
+ style: {
1308
+ flexShrink: 0,
1309
+ color: FIGMA.gray400,
1310
+ fontSize: 14
1311
+ }
1312
+ }, icon), /*#__PURE__*/React.createElement("span", {
1313
+ style: {
1314
+ flexShrink: 0
1315
+ }
1316
+ }, children));
1317
+ }
1318
+
1319
+ /** 根据 item id 前缀得到小条数量:S=1, M=2, L=3, X=3, XL=4;编辑态落位 id 可能为 dataSourceKey_id,按后半或默认 1 */
1320
+ function getBarCountFromItemId(id) {
1321
+ var upper = id.toUpperCase();
1322
+ if (upper.startsWith('XL-') || id.endsWith('-XL')) return 4;
1323
+ if (upper.startsWith('L-') || upper.startsWith('X-') || id.endsWith('-L') || id.endsWith('-X')) return 3;
1324
+ if (upper.startsWith('M-') || id.endsWith('-M')) return 2;
1325
+ return 1; // S- 及其他
1326
+ }
1327
+ var CARD_BAR_WIDTH = 80;
1328
+ var CARD_BAR_HEIGHT = 12;
1329
+
1330
+ /** 矩形外小条:S 上下各 1 条,M 各 2 条,L 各 3 条,XL 各 4 条;单条 80×12px */
1331
+ function CardBars(_ref2) {
1332
+ var count = _ref2.count,
1333
+ position = _ref2.position,
1334
+ barColor = _ref2.barColor;
1335
+ return /*#__PURE__*/React.createElement("div", {
1336
+ style: {
1337
+ display: 'flex',
1338
+ flexDirection: 'row',
1339
+ gap: 30,
1340
+ justifyContent: 'center',
1341
+ flexShrink: 0,
1342
+ padding: position === 'top' ? '0 0 4px 0' : '4px 0 0 0'
1343
+ }
1344
+ }, Array.from({
1345
+ length: count
1346
+ }, function (_, i) {
1347
+ return /*#__PURE__*/React.createElement("div", {
1348
+ key: i,
1349
+ style: {
1350
+ width: CARD_BAR_WIDTH,
1351
+ height: CARD_BAR_HEIGHT,
1352
+ borderRadius: 6,
1353
+ background: barColor
1354
+ }
1355
+ });
1356
+ }));
1357
+ }
1358
+
1359
+ /** 方桌卡片展示用数据结构(与 Figma 设计一致,供编辑态/阅读态复用) */
1360
+
1361
+ /** 渲染 Figma 样式的方桌卡片(上下小条 + 白底卡片 + 状态边框),供 FigmaDesign 与编辑态方桌复用 */
1362
+ function renderFigmaStyleTableCard(cardItem) {
1363
+ var _cardItem$status, _cardItem$displayName, _cardItem$customerNam, _cardItem$reserveTime;
1364
+ var status = (_cardItem$status = cardItem.status) !== null && _cardItem$status !== void 0 ? _cardItem$status : 'available';
1365
+ var borderColor = STATUS_BORDER[status];
1366
+ var isAvailable = status === 'available';
1367
+ return /*#__PURE__*/React.createElement("div", {
1368
+ className: "figma-table-card",
1369
+ style: {
1370
+ width: '100%',
1371
+ height: '100%',
1372
+ boxSizing: 'border-box',
1373
+ display: 'flex',
1374
+ flexDirection: 'column',
1375
+ justifyContent: 'flex-start',
1376
+ gap: 0,
1377
+ fontFamily: FIGMA.fontFamily,
1378
+ overflow: 'hidden'
1379
+ }
1380
+ }, /*#__PURE__*/React.createElement(CardBars, {
1381
+ count: getBarCountFromItemId(cardItem.id),
1382
+ position: "top",
1383
+ barColor: isAvailable ? FIGMA.barFillAvailable : borderColor
1384
+ }), /*#__PURE__*/React.createElement("div", {
1385
+ style: {
1386
+ flex: 1,
1387
+ minHeight: 0,
1388
+ padding: 8,
1389
+ boxSizing: 'border-box',
1390
+ background: FIGMA.white,
1391
+ border: isAvailable ? "4px solid ".concat(FIGMA.gray200) : "4px solid ".concat(borderColor),
1392
+ borderRadius: 8,
1393
+ boxShadow: FIGMA.shadowSm,
1394
+ display: 'flex',
1395
+ flexDirection: 'column',
1396
+ justifyContent: isAvailable ? 'flex-start' : 'center',
1397
+ alignItems: isAvailable ? 'stretch' : 'center',
1398
+ gap: 4
1399
+ }
1400
+ }, isAvailable ? /*#__PURE__*/React.createElement("div", {
1401
+ style: {
1402
+ flex: 1,
1403
+ display: 'flex',
1404
+ alignItems: 'center',
1405
+ justifyContent: 'center',
1406
+ minHeight: 0,
1407
+ fontWeight: 600,
1408
+ fontSize: 18,
1409
+ lineHeight: '24px',
1410
+ color: FIGMA.gray400,
1411
+ letterSpacing: 0
1412
+ }
1413
+ }, (_cardItem$displayName = cardItem.displayName) !== null && _cardItem$displayName !== void 0 ? _cardItem$displayName : cardItem.id) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1414
+ style: {
1415
+ fontWeight: 600,
1416
+ fontSize: 18,
1417
+ lineHeight: '24px',
1418
+ color: FIGMA.gray900,
1419
+ letterSpacing: 0,
1420
+ textAlign: 'center'
1421
+ }
1422
+ }, cardItem.id), status === 'reserved' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FigmaCardRow, {
1423
+ icon: /*#__PURE__*/React.createElement(Avatar, {
1424
+ size: 16,
1425
+ icon: /*#__PURE__*/React.createElement(UserOutlined, null),
1426
+ style: {
1427
+ backgroundColor: FIGMA.gray200
1428
+ }
1429
+ })
1430
+ }, /*#__PURE__*/React.createElement("span", null, (_cardItem$customerNam = cardItem.customerName) !== null && _cardItem$customerNam !== void 0 ? _cardItem$customerNam : '')), /*#__PURE__*/React.createElement(FigmaCardRow, {
1431
+ icon: /*#__PURE__*/React.createElement(ClockCircleOutlined, null)
1432
+ }, /*#__PURE__*/React.createElement("span", null, (_cardItem$reserveTime = cardItem.reserveTime) !== null && _cardItem$reserveTime !== void 0 ? _cardItem$reserveTime : ''))), (status === 'dining' || status === 'waiting' || status === 'billed' || status === 'availableSoon') && cardItem.guests != null && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FigmaCardRow, {
1433
+ icon: /*#__PURE__*/React.createElement(TeamOutlined, null)
1434
+ }, /*#__PURE__*/React.createElement("span", null, cardItem.guests)), cardItem.dishes && /*#__PURE__*/React.createElement(FigmaCardRow, {
1435
+ icon: /*#__PURE__*/React.createElement(AuditOutlined, null)
1436
+ }, /*#__PURE__*/React.createElement("span", null, cardItem.dishes)), cardItem.duration && /*#__PURE__*/React.createElement(FigmaCardRow, {
1437
+ icon: /*#__PURE__*/React.createElement(FieldTimeOutlined, null)
1438
+ }, /*#__PURE__*/React.createElement("span", null, cardItem.duration))))), /*#__PURE__*/React.createElement(CardBars, {
1439
+ count: getBarCountFromItemId(cardItem.id),
1440
+ position: "bottom",
1441
+ barColor: isAvailable ? FIGMA.barFillAvailable : borderColor
1442
+ }));
1443
+ }
1444
+ function renderFigmaTableCard(item) {
1445
+ return renderFigmaStyleTableCard({
1446
+ id: item.id,
1447
+ status: item.status,
1448
+ customerName: item.customerName,
1449
+ reserveTime: item.reserveTime,
1450
+ guests: item.guests,
1451
+ dishes: item.dishes,
1452
+ duration: item.duration
1453
+ });
1454
+ }
1455
+
1456
+ /** 从编辑态 merged item + dataSources 得到方桌卡片数据(用于 renderItemByKind.table) */
1457
+ function getTableCardItemFromMerged(item, dataSources) {
1458
+ var _item$_sceneElement, _dataSources$binding$, _binding$recordId, _ref3;
1459
+ var binding = (_item$_sceneElement = item._sceneElement) === null || _item$_sceneElement === void 0 ? void 0 : _item$_sceneElement.dataBinding;
1460
+ var record = binding ? (_dataSources$binding$ = dataSources[binding.dataSourceKey]) === null || _dataSources$binding$ === void 0 ? void 0 : _dataSources$binding$.find(function (r) {
1461
+ return r.id === binding.recordId;
1462
+ }) : undefined;
1463
+ var displayId = (_binding$recordId = binding === null || binding === void 0 ? void 0 : binding.recordId) !== null && _binding$recordId !== void 0 ? _binding$recordId : item.id;
1464
+ return {
1465
+ id: displayId,
1466
+ displayName: record === null || record === void 0 ? void 0 : record.name,
1467
+ status: (_ref3 = record === null || record === void 0 ? void 0 : record.status) !== null && _ref3 !== void 0 ? _ref3 : 'available',
1468
+ customerName: record === null || record === void 0 ? void 0 : record.customerName,
1469
+ reserveTime: record === null || record === void 0 ? void 0 : record.reserveTime,
1470
+ guests: record === null || record === void 0 ? void 0 : record.guests,
1471
+ dishes: record === null || record === void 0 ? void 0 : record.dishes,
1472
+ duration: record === null || record === void 0 ? void 0 : record.duration
1473
+ };
1474
+ }
1475
+
1476
+ /** 图例单项:圆点 + 文案 */
1477
+ function LegendItem(_ref4) {
1478
+ var color = _ref4.color,
1479
+ label = _ref4.label,
1480
+ _ref4$fill = _ref4.fill,
1481
+ fill = _ref4$fill === void 0 ? false : _ref4$fill;
1482
+ return /*#__PURE__*/React.createElement("span", {
1483
+ style: {
1484
+ display: 'inline-flex',
1485
+ alignItems: 'center',
1486
+ gap: 6,
1487
+ fontFamily: FIGMA.fontFamily,
1488
+ fontSize: 14,
1489
+ fontWeight: 500,
1490
+ lineHeight: '20px',
1491
+ color: FIGMA.gray700
1492
+ }
1493
+ }, /*#__PURE__*/React.createElement("span", {
1494
+ style: {
1495
+ width: 8,
1496
+ height: 8,
1497
+ borderRadius: '50%',
1498
+ background: fill ? color : FIGMA.white,
1499
+ border: "4px solid ".concat(color),
1500
+ flexShrink: 0
1501
+ }
1502
+ }), label);
1503
+ }
1504
+
1505
+ /** 图例单项(Figma 14131:6266):16px 圆点,Available 白底+灰边,其余实心填色;文案 14px Medium、黑色 */
1506
+ function LegendItem14131(_ref5) {
1507
+ var color = _ref5.color,
1508
+ label = _ref5.label,
1509
+ _ref5$fill = _ref5.fill,
1510
+ fill = _ref5$fill === void 0 ? false : _ref5$fill;
1511
+ return /*#__PURE__*/React.createElement("span", {
1512
+ style: {
1513
+ display: 'inline-flex',
1514
+ alignItems: 'center',
1515
+ gap: 6,
1516
+ fontFamily: FIGMA.fontFamily,
1517
+ fontSize: 14,
1518
+ fontWeight: 500,
1519
+ lineHeight: '20px',
1520
+ color: '#000000'
1521
+ }
1522
+ }, /*#__PURE__*/React.createElement("span", {
1523
+ style: {
1524
+ width: 16,
1525
+ height: 16,
1526
+ borderRadius: '50%',
1527
+ background: fill ? color : FIGMA.white,
1528
+ border: fill ? 'none' : "1px solid ".concat(FIGMA.gray200),
1529
+ flexShrink: 0
1530
+ }
1531
+ }), label);
1532
+ }
1533
+
1534
+ /**
1535
+ * Figma 设计稿效果 - 餐厅桌台状态图(顶部 Tab + 图例参考 node 14131:6266,内容区不变)
1536
+ */
1537
+ export var FigmaDesign = {
1538
+ parameters: {
1539
+ docs: {
1540
+ description: {
1541
+ story: 'Figma node 14131:6266 还原:顶部 Tabs 灰底容器、选中白底+阴影、16px Semibold;图例 16px 圆点(Available 白底灰边/其余实心)、14px Medium 黑字、gap 12px 40px。内容区未改。'
1542
+ }
1543
+ }
1544
+ },
1545
+ render: function FigmaDesignRender() {
1546
+ return /*#__PURE__*/React.createElement("div", {
1547
+ style: {
1548
+ display: 'flex',
1549
+ flexDirection: 'column',
1550
+ gap: 20,
1551
+ background: FIGMA.gray50,
1552
+ padding: 24,
1553
+ borderRadius: 12,
1554
+ fontFamily: FIGMA.fontFamily
1555
+ }
1556
+ }, /*#__PURE__*/React.createElement("div", {
1557
+ className: "figma-story-header-14131",
1558
+ style: {
1559
+ display: 'flex',
1560
+ flexDirection: 'row',
1561
+ alignItems: 'center',
1562
+ justifyContent: 'space-between',
1563
+ flexWrap: 'nowrap',
1564
+ gap: 24
1565
+ }
1566
+ }, /*#__PURE__*/React.createElement("div", {
1567
+ className: "figma-story-tabs-wrap-14131",
1568
+ style: {
1569
+ flexShrink: 0,
1570
+ background: FIGMA.gray50,
1571
+ border: "1px solid ".concat(FIGMA.gray200),
1572
+ padding: 6,
1573
+ borderRadius: 8,
1574
+ display: 'inline-flex',
1575
+ gap: 8
1576
+ }
1577
+ }, /*#__PURE__*/React.createElement(Tabs, {
1578
+ defaultActiveKey: "main",
1579
+ size: "middle",
1580
+ style: {
1581
+ marginBottom: 0
1582
+ },
1583
+ items: [{
1584
+ key: 'main',
1585
+ label: 'Main Area'
1586
+ }, {
1587
+ key: 'secondary',
1588
+ label: 'Secondary Area'
1589
+ }, {
1590
+ key: 'vip',
1591
+ label: 'VIP Area'
1592
+ }],
1593
+ className: "figma-story-tabs figma-story-tabs-14131"
1594
+ })), /*#__PURE__*/React.createElement("div", {
1595
+ className: "figma-story-legend-14131",
1596
+ style: {
1597
+ display: 'flex',
1598
+ flexWrap: 'wrap',
1599
+ gap: '12px 40px',
1600
+ alignItems: 'center',
1601
+ justifyContent: 'flex-end',
1602
+ minWidth: 0
1603
+ }
1604
+ }, /*#__PURE__*/React.createElement(LegendItem14131, {
1605
+ color: FIGMA.gray200,
1606
+ label: "Available (4)",
1607
+ fill: false
1608
+ }), /*#__PURE__*/React.createElement(LegendItem14131, {
1609
+ color: FIGMA.legendReserved,
1610
+ label: "Reserved (2)",
1611
+ fill: true
1612
+ }), /*#__PURE__*/React.createElement(LegendItem14131, {
1613
+ color: FIGMA.legendWaiting,
1614
+ label: "Waiting (3)",
1615
+ fill: true
1616
+ }), /*#__PURE__*/React.createElement(LegendItem14131, {
1617
+ color: FIGMA.legendDining,
1618
+ label: "Dining (1)",
1619
+ fill: true
1620
+ }), /*#__PURE__*/React.createElement(LegendItem14131, {
1621
+ color: FIGMA.legendBilled,
1622
+ label: "Billed (2)",
1623
+ fill: true
1624
+ }), /*#__PURE__*/React.createElement(LegendItem14131, {
1625
+ color: FIGMA.legendAvailableSoon,
1626
+ label: "Available Soon (1)",
1627
+ fill: true
1628
+ }))), /*#__PURE__*/React.createElement("div", {
1629
+ className: "figma-story-map-wrap",
1630
+ style: {
1631
+ height: 520,
1632
+ background: FIGMA.white,
1633
+ border: "4px solid ".concat(FIGMA.gray200),
1634
+ borderRadius: 8,
1635
+ overflow: 'hidden',
1636
+ boxShadow: FIGMA.shadowSm
1637
+ }
1638
+ }, /*#__PURE__*/React.createElement(PisellFloorMapLayout, {
1639
+ className: "figma-story-map",
1640
+ items: figma13998PixelItems,
1641
+ renderItem: function renderItem(item) {
1642
+ return renderFigmaTableCard(item);
1643
+ },
1644
+ itemUnit: "pixel",
1645
+ cellSize: 64,
1646
+ mapLayer: {
1647
+ showGrid: false,
1648
+ padding: 20
1649
+ },
1650
+ zoom: {
1651
+ defaultScale: 0.8,
1652
+ min: 0.5,
1653
+ max: 2
1654
+ },
1655
+ pan: {
1656
+ enabled: true
1657
+ },
1658
+ controls: {
1659
+ showZoom: true,
1660
+ showFullscreen: true
1661
+ },
1662
+ style: {
1663
+ height: '100%'
1664
+ }
1665
+ })), /*#__PURE__*/React.createElement("style", null, "\n .figma-story-tabs-wrap-14131 .ant-tabs-nav {\n margin: 0;\n }\n .figma-story-tabs-wrap-14131 .ant-tabs-nav-list {\n gap: 8px;\n }\n .figma-story-tabs.figma-story-tabs-14131 .ant-tabs-tab {\n font-family: ".concat(FIGMA.fontFamily, ";\n padding: 10px 14px;\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n color: ").concat(FIGMA.gray500, ";\n border-radius: 6px;\n }\n .figma-story-tabs.figma-story-tabs-14131 .ant-tabs-tab.ant-tabs-tab-active {\n background: ").concat(FIGMA.white, ";\n box-shadow: ").concat(FIGMA.shadowSm, ";\n }\n .figma-story-tabs.figma-story-tabs-14131 .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(FIGMA.gray700, ";\n }\n .figma-story-tabs.figma-story-tabs-14131 .ant-tabs-ink-bar {\n display: none;\n }\n .figma-story-tabs.figma-story-tabs-14131 .ant-tabs-nav::before {\n display: none;\n }\n .figma-story-map-wrap [class*=\"react-transform-wrapper\"],\n .figma-story-map-wrap [class*=\"react-transform-element\"] {\n overflow: visible !important;\n }\n .figma-story-map-wrap .pisell-floor-map-layout {\n overflow: visible !important;\n }\n .figma-table-card,\n .figma-table-card * {\n visibility: visible !important;\n }\n .figma-table-card {\n color: ").concat(FIGMA.gray900, ";\n }\n .figma-table-card .ant-avatar {\n flex-shrink: 0;\n }\n ")));
1666
+ }
1667
+ };