@pisell/materials 6.11.55 → 6.11.56

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 (486) 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 +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/drawer/index.js +12 -5
  8. package/lib/components/drawer/index.js +10 -4
  9. package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
  10. package/package.json +3 -3
  11. package/es/components/Pagination/index.d.ts +0 -14
  12. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  13. package/es/components/PisellLayouts/index.d.ts +0 -37
  14. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  15. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  16. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  17. package/es/components/PisellSuperTabs/types.d.ts +0 -212
  18. package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  19. package/es/components/PisellTabbar/constants.d.ts +0 -47
  20. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  21. package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  22. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
  23. package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  24. package/es/components/PisellTabbar/types.d.ts +0 -90
  25. package/es/components/PisellTabbar/utils/index.d.ts +0 -69
  26. package/es/components/cardPro/index.d.ts +0 -4
  27. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  28. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -18
  29. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  30. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
  31. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  32. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -35
  33. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  34. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  35. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  36. package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  37. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -121
  38. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  39. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  40. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  41. package/es/components/filter/components/FilterItem/index.d.ts +0 -5
  42. package/es/components/filter/components/QuickFilter/index.d.ts +0 -12
  43. package/es/components/iconfont/index.d.ts +0 -8
  44. package/es/components/page/index.d.ts +0 -9
  45. package/es/components/pisell-config-provider/context.d.ts +0 -22
  46. package/es/components/pisell-config-provider/index.d.ts +0 -13
  47. package/es/components/pisellAdjustPrice/index.d.ts +0 -5
  48. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  49. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  50. package/es/components/pisellCardList/index.d.ts +0 -107
  51. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  52. package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  53. package/es/components/pisellFilter/index.d.ts +0 -4
  54. package/es/components/pisellFilter/type.d.ts +0 -7
  55. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
  56. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
  57. package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
  58. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
  59. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -43
  60. package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -21
  61. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
  62. package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
  63. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -60
  64. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  65. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -35
  66. package/es/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
  67. package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -57
  68. package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
  69. package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -55
  70. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -25
  71. package/es/components/pisellFloorMapLayout/components/index.d.ts +0 -21
  72. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
  73. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
  74. package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -4
  75. package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
  76. package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
  77. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -71
  78. package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
  79. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -89
  80. package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
  81. package/es/components/pisellFloorMapLayout/index.d.ts +0 -26
  82. package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -133
  83. package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -133
  84. package/es/components/pisellFloorMapLayout/locales.d.ts +0 -651
  85. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
  86. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
  87. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
  88. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
  89. package/es/components/pisellFloorMapLayout/types.d.ts +0 -646
  90. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
  91. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
  92. package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
  93. package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
  94. package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
  95. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -22
  96. package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
  97. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
  98. package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
  99. package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
  100. package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
  101. package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
  102. package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
  103. package/es/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
  104. package/es/components/pisellGoodPassCard/index.d.ts +0 -50
  105. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
  106. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
  107. package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
  108. package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
  109. package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
  110. package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
  111. package/es/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
  112. package/es/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
  113. package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  114. package/es/components/pisellModal/index.d.ts +0 -62
  115. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  116. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -89
  117. package/es/components/pisellRecordBoard/index.d.ts +0 -51
  118. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  119. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
  120. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
  121. package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
  122. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
  123. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
  124. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
  125. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -49
  126. package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
  127. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
  128. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -17
  129. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  130. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
  131. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -232
  132. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -13
  133. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -53
  134. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
  135. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
  136. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
  137. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
  138. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
  139. package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
  140. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  141. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
  142. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
  143. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
  144. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
  145. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
  146. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
  147. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
  148. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
  149. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
  150. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
  151. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
  152. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
  153. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
  154. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
  155. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
  156. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
  157. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
  158. package/es/components/pisellRecordBoard/types.d.ts +0 -802
  159. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
  160. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
  161. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
  162. package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
  163. package/es/components/pisellReservationSchedule/index.d.ts +0 -2
  164. package/es/components/pisellReservationSchedule/locales.d.ts +0 -43
  165. package/es/components/pisellReservationSchedule/types.d.ts +0 -52
  166. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
  167. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
  168. package/es/components/pisellReservationScheduleBand/index.d.ts +0 -2
  169. package/es/components/pisellReservationScheduleBand/types.d.ts +0 -61
  170. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
  171. package/es/components/pisellShellFrame/types.d.ts +0 -62
  172. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  173. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
  174. package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
  175. package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
  176. package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -27
  177. package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
  178. package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
  179. package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
  180. package/es/components/pisellTimeNavigator/components/index.d.ts +0 -5
  181. package/es/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
  182. package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
  183. package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
  184. package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
  185. package/es/components/pisellTimeNavigator/index.d.ts +0 -5
  186. package/es/components/pisellTimeNavigator/locales.d.ts +0 -22
  187. package/es/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
  188. package/es/components/pisellTimeNavigator/types.d.ts +0 -160
  189. package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -41
  190. package/es/components/pisellToast/index.d.ts +0 -17
  191. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  192. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  193. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  194. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  195. package/es/components/pisellWalletPassCard/index.d.ts +0 -146
  196. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  197. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
  198. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  199. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  200. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  201. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  202. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  203. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  204. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  205. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  206. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
  207. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  208. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  209. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  210. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  211. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  212. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  213. package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -19
  214. package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
  215. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -198
  216. package/es/components/productCard/components/Action/index.d.ts +0 -4
  217. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
  218. package/es/components/productCard/components/Header/index.d.ts +0 -4
  219. package/es/components/productCard/components/Sales/index.d.ts +0 -4
  220. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  221. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  222. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
  223. package/es/components/productCard/index.d.ts +0 -7
  224. package/es/components/productCard/locales.d.ts +0 -138
  225. package/es/components/productCard/status.d.ts +0 -32
  226. package/es/components/productCard/types.d.ts +0 -95
  227. package/es/components/productCard/utils.d.ts +0 -33
  228. package/es/components/select-time/index.d.ts +0 -14
  229. package/es/components/sort/index.d.ts +0 -5
  230. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  231. package/es/components/table/index.d.ts +0 -4
  232. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  233. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  234. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  235. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  236. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  237. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  238. package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
  239. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  240. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  241. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  242. package/es/components/virtual-keyboard/index.d.ts +0 -25
  243. package/es/index.d.ts +0 -265
  244. package/es/locales/en-US.d.ts +0 -560
  245. package/es/locales/ja.d.ts +0 -528
  246. package/es/locales/pt.d.ts +0 -528
  247. package/es/locales/zh-CN.d.ts +0 -555
  248. package/es/locales/zh-TW.d.ts +0 -555
  249. package/lib/components/Pagination/index.d.ts +0 -14
  250. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  251. package/lib/components/PisellLayouts/index.d.ts +0 -37
  252. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  253. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  254. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  255. package/lib/components/PisellSuperTabs/types.d.ts +0 -212
  256. package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  257. package/lib/components/PisellTabbar/constants.d.ts +0 -47
  258. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  259. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  260. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
  261. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  262. package/lib/components/PisellTabbar/types.d.ts +0 -90
  263. package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
  264. package/lib/components/cardPro/index.d.ts +0 -4
  265. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  266. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -18
  267. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  268. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
  269. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  270. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -35
  271. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  272. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  273. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  274. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  275. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -121
  276. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  277. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  278. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  279. package/lib/components/filter/components/FilterItem/index.d.ts +0 -5
  280. package/lib/components/filter/components/QuickFilter/index.d.ts +0 -12
  281. package/lib/components/iconfont/index.d.ts +0 -8
  282. package/lib/components/page/index.d.ts +0 -9
  283. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  284. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  285. package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
  286. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  287. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  288. package/lib/components/pisellCardList/index.d.ts +0 -107
  289. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  290. package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  291. package/lib/components/pisellFilter/index.d.ts +0 -4
  292. package/lib/components/pisellFilter/type.d.ts +0 -7
  293. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
  294. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
  295. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
  296. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
  297. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -43
  298. package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -21
  299. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
  300. package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
  301. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -60
  302. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  303. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -35
  304. package/lib/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
  305. package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -57
  306. package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
  307. package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -55
  308. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -25
  309. package/lib/components/pisellFloorMapLayout/components/index.d.ts +0 -21
  310. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
  311. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
  312. package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -4
  313. package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
  314. package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
  315. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -71
  316. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
  317. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -89
  318. package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
  319. package/lib/components/pisellFloorMapLayout/index.d.ts +0 -26
  320. package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -133
  321. package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -133
  322. package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -651
  323. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
  324. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
  325. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
  326. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
  327. package/lib/components/pisellFloorMapLayout/types.d.ts +0 -646
  328. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
  329. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
  330. package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
  331. package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
  332. package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
  333. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -22
  334. package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
  335. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
  336. package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
  337. package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
  338. package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
  339. package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
  340. package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
  341. package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
  342. package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
  343. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
  344. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
  345. package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
  346. package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
  347. package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
  348. package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
  349. package/lib/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
  350. package/lib/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
  351. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  352. package/lib/components/pisellModal/index.d.ts +0 -62
  353. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  354. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -89
  355. package/lib/components/pisellRecordBoard/index.d.ts +0 -51
  356. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  357. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
  358. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
  359. package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
  360. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
  361. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
  362. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
  363. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -49
  364. package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
  365. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
  366. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -17
  367. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  368. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
  369. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -232
  370. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -13
  371. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -53
  372. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
  373. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
  374. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
  375. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
  376. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
  377. package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
  378. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  379. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
  380. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
  381. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
  382. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
  383. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
  384. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
  385. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
  386. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
  387. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
  388. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
  389. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
  390. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
  391. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
  392. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
  393. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
  394. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
  395. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
  396. package/lib/components/pisellRecordBoard/types.d.ts +0 -802
  397. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
  398. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
  399. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
  400. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
  401. package/lib/components/pisellReservationSchedule/index.d.ts +0 -2
  402. package/lib/components/pisellReservationSchedule/locales.d.ts +0 -43
  403. package/lib/components/pisellReservationSchedule/types.d.ts +0 -52
  404. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
  405. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
  406. package/lib/components/pisellReservationScheduleBand/index.d.ts +0 -2
  407. package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -61
  408. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
  409. package/lib/components/pisellShellFrame/types.d.ts +0 -62
  410. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  411. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
  412. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
  413. package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
  414. package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -27
  415. package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
  416. package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
  417. package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
  418. package/lib/components/pisellTimeNavigator/components/index.d.ts +0 -5
  419. package/lib/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
  420. package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
  421. package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
  422. package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
  423. package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
  424. package/lib/components/pisellTimeNavigator/locales.d.ts +0 -22
  425. package/lib/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
  426. package/lib/components/pisellTimeNavigator/types.d.ts +0 -160
  427. package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -41
  428. package/lib/components/pisellToast/index.d.ts +0 -17
  429. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  430. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  431. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  432. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  433. package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
  434. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  435. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
  436. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  437. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  438. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  439. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  440. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  441. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  442. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  443. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  444. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
  445. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  446. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  447. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  448. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  449. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  450. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  451. package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -19
  452. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
  453. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -198
  454. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  455. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
  456. package/lib/components/productCard/components/Header/index.d.ts +0 -4
  457. package/lib/components/productCard/components/Sales/index.d.ts +0 -4
  458. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  459. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  460. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
  461. package/lib/components/productCard/index.d.ts +0 -7
  462. package/lib/components/productCard/locales.d.ts +0 -138
  463. package/lib/components/productCard/status.d.ts +0 -32
  464. package/lib/components/productCard/types.d.ts +0 -95
  465. package/lib/components/productCard/utils.d.ts +0 -33
  466. package/lib/components/select-time/index.d.ts +0 -14
  467. package/lib/components/sort/index.d.ts +0 -5
  468. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  469. package/lib/components/table/index.d.ts +0 -4
  470. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  471. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  472. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  473. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  474. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  475. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  476. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
  477. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  478. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  479. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  480. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  481. package/lib/index.d.ts +0 -265
  482. package/lib/locales/en-US.d.ts +0 -560
  483. package/lib/locales/ja.d.ts +0 -528
  484. package/lib/locales/pt.d.ts +0 -528
  485. package/lib/locales/zh-CN.d.ts +0 -555
  486. package/lib/locales/zh-TW.d.ts +0 -555
@@ -1,646 +0,0 @@
1
- import type { CSSProperties, MouseEvent as ReactMouseEvent, ReactNode } from 'react';
2
- /**
3
- * 资源项形状
4
- * @description 展示层支持的基础形状
5
- */
6
- export declare type FloorMapItemShape = 'rect' | 'circle' | 'triangle' | 'polygon' | 'custom';
7
- /**
8
- * 底层背景类型
9
- * @description 地图底层的展示方式
10
- */
11
- export declare type FloorMapBackgroundType = 'none' | 'color' | 'image' | 'svg';
12
- /**
13
- * 平移边界策略
14
- * @description 拖拽/手势平移时的边界行为
15
- */
16
- export declare type FloorMapPanBoundary = 'none' | 'clamp' | 'bounce';
17
- /**
18
- * 资源项坐标/尺寸单位
19
- * - cell:x/y/width/height 为格子数,由 cellSize 转为像素
20
- * - pixel:x/y/width/height 为像素
21
- */
22
- export declare type FloorMapItemUnit = 'cell' | 'pixel';
23
- /**
24
- * 资源项基础类型
25
- * @description 每个资源至少包含 id 与坐标 (x, y),其余由外部扩展。
26
- * 单位由布局的 itemUnit 决定:cell 时为格子数,pixel 时为像素。
27
- */
28
- export interface FloorMapItemBase {
29
- /** 唯一标识 */
30
- id: string;
31
- /** 坐标 x(cell 时为格子索引,pixel 时为像素) */
32
- x: number;
33
- /** 坐标 y */
34
- y: number;
35
- /** 显示名称,与 x/y 同级,所有图元可编辑 */
36
- name?: string;
37
- /** 层级,与 x/y 同级,所有图元可编辑;数值越大越靠前 */
38
- zIndex?: number;
39
- /** 宽度(可选;cell 时为格子数,pixel 时为像素,缺省时 cell 为 1,pixel 为 cellSize) */
40
- width?: number;
41
- /** 高度(可选) */
42
- height?: number;
43
- /** 形状,默认 rect */
44
- shape?: FloorMapItemShape;
45
- }
46
- /**
47
- * 底层(MapLayer)配置
48
- */
49
- export interface FloorMapLayerConfig {
50
- /** 背景类型 */
51
- backgroundType?: FloorMapBackgroundType;
52
- /** 纯色背景时的颜色(backgroundType 为 color 时有效) */
53
- backgroundColor?: string;
54
- /** 图片背景 URL(backgroundType 为 image 时有效) */
55
- backgroundImage?: string;
56
- /** SVG 背景内容或 URL(backgroundType 为 svg 时有效) */
57
- backgroundSvg?: string;
58
- /** 是否显示网格线,默认 false */
59
- showGrid?: boolean;
60
- /** 底层内边距(如 16 或 "16px") */
61
- padding?: number | string;
62
- /** 格子/元素间距 */
63
- gap?: number | string;
64
- /** 坐标吸附间隔(逻辑单位),0 表示不吸附 */
65
- snapStep?: number;
66
- /**
67
- * 平面图像素模式:按图元包围盒外扩的单侧留白(像素),影响画布尺寸与初始对齐。
68
- * 不传时默认约 56;若需更大拖拽边距可设大值(如 200)。
69
- */
70
- boundingPadding?: number;
71
- }
72
- /**
73
- * 缩放配置
74
- */
75
- export interface FloorMapZoomConfig {
76
- /** 默认缩放比例,如 1 表示 100% */
77
- defaultScale?: number;
78
- /** 最小缩放,默认 0.5 (50%) */
79
- min?: number;
80
- /** 最大缩放,默认 2 (200%) */
81
- max?: number;
82
- /** 缩放步进,默认 0.1 (10%) */
83
- step?: number;
84
- /**
85
- * 为 false 时关闭;未传或其它值时默认开启(平面图像素模式且当前画布有图元时,每画布自动 fitBounds 一次,可视区域刚好容纳全部图元)。
86
- * 开启时跳过「首帧 defaultScale 左上对齐」,避免与 fit 闪动叠加。
87
- */
88
- autoFitOnMount?: boolean;
89
- }
90
- /**
91
- * 平移配置
92
- */
93
- export interface FloorMapPanConfig {
94
- /** 是否允许平移,默认 false */
95
- enabled?: boolean;
96
- /**
97
- * 平移边界:`none` 时不限制(无限拖动画布);`clamp` / `bounce` / 未传时限制在内容区内(对齐 react-zoom-pan-pinch `limitToBounds`)。
98
- */
99
- boundary?: FloorMapPanBoundary;
100
- }
101
- /**
102
- * 视图控制显隐(默认仅显示放大/缩小,复位与区域定位需配置开启)
103
- */
104
- export interface FloorMapControlsConfig {
105
- /** 是否显示缩放按钮(+ / −),默认 true */
106
- showZoom?: boolean;
107
- /** 是否显示复位按钮,默认 false */
108
- showReset?: boolean;
109
- /** 是否显示区域定位(fitBounds)按钮,默认 false */
110
- showFitBounds?: boolean;
111
- /** 是否显示全屏按钮,默认 false */
112
- showFullscreen?: boolean;
113
- /**
114
- * 是否显示网格开关(写入当前画布 draft 的 mapLayer.showGrid),默认 false
115
- */
116
- showGridToggle?: boolean;
117
- /**
118
- * 是否显示「视口锁定」按钮:锁定后画布的位置 / 缩放不允许通过任何用户交互(拖拽、滚轮、触摸缩放、缩放按钮、适配视口)改变,
119
- * 防止误触改变视图。默认 false;平面图模式下由 PisellFloorMapLayout 默认置 true(与是否持久化视口到本地无关)。显式传 false 可隐藏。
120
- */
121
- showViewportLock?: boolean;
122
- /**
123
- * 悬浮控件条水平位置:`start` 左下(默认),`end` 右下
124
- */
125
- horizontalAlign?: 'start' | 'end';
126
- }
127
- /**
128
- * 布局模式(规则网格 vs 完全自由坐标)
129
- */
130
- export declare type FloorMapLayoutMode = 'grid' | 'free';
131
- /**
132
- * 规则网格布局配置(layoutMode 为 grid 时可用)
133
- */
134
- export interface FloorMapGridLayoutConfig {
135
- /** 每行列数 */
136
- columns?: number;
137
- }
138
- /** 图元类型:是否绑定业务资源 */
139
- export declare type FloorMapElementType = 'resource' | 'decoration';
140
- /**
141
- * 画布名称多语言结构(与低代码 Translation 字段一致)
142
- */
143
- export declare type FloorMapCanvasNameI18n = {
144
- en: string;
145
- 'zh-CN': string;
146
- 'zh-HK': string;
147
- ja: string;
148
- pt: string;
149
- };
150
- /** 画布(对应一个 Tab,如 1楼、2楼) */
151
- export interface FloorMapCanvas {
152
- id: string;
153
- /**
154
- * 展示名:纯字符串或各语言对象;对象时按引擎 locale 取字段,缺省回退 `en` 等。
155
- */
156
- name: string | FloorMapCanvasNameI18n;
157
- /**
158
- * 多语言文案 key(`locales.getText`);配置后 Tab / 侧栏「所属画布」优先显示当前语言译名。
159
- * 用户重命名后会清除 `nameKey`,以 `name` 为准。
160
- */
161
- nameKey?: string;
162
- /**
163
- * Tab 标签旁 (n) 数量;未配置时 `mergeCanvasesForTabs` 可按 `sceneElements` 数量推断(>0 才显示)。
164
- */
165
- tabBadge?: number;
166
- order: number;
167
- enabled: boolean;
168
- background?: string;
169
- categoryIds?: string[];
170
- mapLayer?: FloorMapLayerConfig;
171
- }
172
- /** 文字槽位(编辑时在 SVG 上添加,阅读态通过参数传文案) */
173
- export interface FloorMapTextSlot {
174
- id: string;
175
- x: number;
176
- y: number;
177
- align?: 'left' | 'center' | 'right';
178
- verticalAlign?: 'top' | 'middle' | 'bottom';
179
- defaultText?: string;
180
- }
181
- /** 地图图元:资源或装饰,编辑与阅读共用(name/zIndex 继承自 FloorMapItemBase) */
182
- export interface FloorMapElement extends FloorMapItemBase {
183
- canvasId: string;
184
- type: FloorMapElementType;
185
- elementKind?: string;
186
- fillColor?: string;
187
- strokeColor?: string;
188
- resourceId?: string;
189
- capacity?: number;
190
- textSlots?: FloorMapTextSlot[];
191
- points?: [number, number][];
192
- svgPath?: string;
193
- svgUrl?: string;
194
- imageUrl?: string;
195
- extensions?: Record<string, unknown>;
196
- }
197
- /** 单门店 Floor Map 数据(编辑/阅读共用) */
198
- export interface FloorMapData {
199
- canvases: FloorMapCanvas[];
200
- elements: FloorMapElement[];
201
- }
202
- /** 多数据源:key 为数据源标识,value 为该数据源下的记录列表 */
203
- export declare type FloorMapDataSources = Record<string, Array<{
204
- id: string;
205
- [k: string]: unknown;
206
- }>>;
207
- /**
208
- * 画布图元与可选数据源行的绑定(无绑定时仅展示图元种类默认态)
209
- */
210
- export interface FloorMapSceneElementDataBinding {
211
- dataSourceKey: string;
212
- recordId: string;
213
- }
214
- /**
215
- * 画布上的单一图元实例(原 dataSourcePlacements + decorations 合并为同一结构)
216
- */
217
- export interface FloorMapSceneElement {
218
- /** 实例唯一 id,持久化主键 */
219
- instanceId: string;
220
- /** 所属画布 id */
221
- canvasId: string;
222
- x: number;
223
- y: number;
224
- name?: string;
225
- zIndex?: number;
226
- width?: number;
227
- height?: number;
228
- elementKind?: string;
229
- scale?: number;
230
- shape?: FloorMapItemShape;
231
- fillColor?: string;
232
- strokeColor?: string;
233
- textSlots?: FloorMapTextSlot[];
234
- points?: [number, number][];
235
- svgPath?: string;
236
- svgUrl?: string;
237
- imageUrl?: string;
238
- extensions?: Record<string, unknown>;
239
- dataBinding?: FloorMapSceneElementDataBinding;
240
- /**
241
- * 为 true 时:侧栏锁定 X/Y/层级/宽高的编辑,且画布上不可拖拽、不可缩放控制点。
242
- * 仍可改名称、图片地址等其它字段(如适用)。
243
- */
244
- layoutTransformLocked?: boolean;
245
- }
246
- /**
247
- * 矩形区域类装饰(无数据源绑定),如画布上的「舞台/舞池」等。
248
- * 在 `elementKinds` 中配置 `{ value: 'stage', label: '…', showInPalette: true }`,名称在编辑面板「显示名称」中修改。
249
- */
250
- export declare const FLOOR_MAP_STAGE_ELEMENT_KIND = "stage";
251
- /**
252
- * 图片图元:无数据源绑定,通过 `imageUrl` 展示位图;适合铺底图或与业务图元叠放(调 `zIndex`)。
253
- */
254
- export declare const FLOOR_MAP_IMAGE_ELEMENT_KIND = "floorMapImage";
255
- /** 图元是否接受数据源及是否必填 */
256
- export declare type FloorMapElementDataBindingPolicy = 'none' | 'optional' | 'required';
257
- /** 图元种类所属分类(调色板分组) */
258
- export interface FloorMapElementKindCategory {
259
- id: string;
260
- label: string;
261
- order?: number;
262
- }
263
- /** 无数据源行时的占位展示文案/扩展(与 defaultShape 等并列) */
264
- export interface FloorMapElementDefaultPresentation {
265
- title?: string;
266
- subtitle?: string;
267
- extensions?: Record<string, unknown>;
268
- }
269
- /** 图元间连线(边) */
270
- export interface FloorMapEdge {
271
- id: string;
272
- sourceId: string;
273
- targetId: string;
274
- sourceAnchor?: 'top' | 'right' | 'bottom' | 'left' | 'center';
275
- targetAnchor?: 'top' | 'right' | 'bottom' | 'left' | 'center';
276
- }
277
- /** 图元种类配置(由后端或上层注入) */
278
- export interface FloorMapElementKindConfig {
279
- value: string;
280
- label: string;
281
- /** 调色板分组,对应 {@link FloorMapViewConfig.elementKindCategories} 的 id */
282
- categoryId?: string;
283
- /**
284
- * 是否接受数据源绑定:none 纯图元;optional 可先占位后绑定;required 在存在可选行时须先选行再落点(数据源为空时仍允许占位 recordId)
285
- */
286
- dataBindingPolicy?: FloorMapElementDataBindingPolicy;
287
- /** 允许绑定的数据源 key,缺省表示不限制(在 policy 非 none 时生效) */
288
- allowedDataSourceKeys?: string[];
289
- /** 校验绑定行是否包含这些字段(有绑定且行存在时检查) */
290
- expectedRecordFields?: string[];
291
- defaultShape?: FloorMapItemShape;
292
- defaultFillColor?: string;
293
- defaultStrokeColor?: string;
294
- showInPalette?: boolean;
295
- defaultPoints?: [number, number][];
296
- defaultSvgUrl?: string;
297
- defaultSvgPath?: string;
298
- defaultImageUrl?: string;
299
- /** 无绑定或行缺失时的说明向展示 */
300
- defaultPresentation?: FloorMapElementDefaultPresentation;
301
- /**
302
- * 是否允许该 kind 的图元在编辑面板里勾选「将图元名作为资源标题」。
303
- * 缺省 false:新增 kind 默认不显示该选项,需业务显式开启,向前兼容。
304
- *
305
- * 勾选效果(业务展示侧统一通过 {@link resolveSceneElementDisplayTitle} 接入):
306
- * `el.name` 非空时优先于业务字段(如预约页的 `row.main_field`/`row.code`)作为标题;
307
- * 未勾选保持现状(业务字段为主,`el.name` 仅作兜底)。
308
- */
309
- nameAsTitleConfigurable?: boolean;
310
- }
311
- /**
312
- * 画布/编辑器层能力:新建图元、布局与画布 Tab 的编辑权限
313
- * @description 与 `canvases` 列表配合使用,统一挂在平面图配置的「画布 UI」下
314
- */
315
- export interface FloorMapCanvasUiConfig {
316
- /** 是否展示左侧调色板并从新建模式落点图元 */
317
- canCreate: boolean;
318
- /**
319
- * 是否允许:画布 Tab 增删改名、选中图元侧栏、保存布局与数据源记录、画布内拖拽等
320
- */
321
- canEdit: boolean;
322
- }
323
- /** Floor Map 视图配置(仅平面图视图需要持久化) */
324
- export interface FloorMapViewConfig {
325
- canvases: FloorMapCanvas[];
326
- /** 画布编辑能力(原根级 canCreate / canEdit,现归并于此) */
327
- canvasUi: FloorMapCanvasUiConfig;
328
- /** 图元分类,供调色板分组 */
329
- elementKindCategories?: FloorMapElementKindCategory[];
330
- elementKinds: FloorMapElementKindConfig[];
331
- /** 画布上的全部图元实例(合并原落位与装饰) */
332
- sceneElements: FloorMapSceneElement[];
333
- datasourceComponents?: Record<string, {
334
- componentId?: string;
335
- [k: string]: unknown;
336
- }>;
337
- edges?: FloorMapEdge[];
338
- }
339
- /** 编辑态:选中图元种类后的放置模式(点击画布落点) */
340
- export declare type FloorMapPlaceMode = null | {
341
- type: 'scene';
342
- elementKind: string;
343
- dataSourceKey?: string;
344
- /** 单选落一条;与 {@link recordIds} 二选一,多选时优先 {@link recordIds} */
345
- recordId?: string;
346
- /** 多选后在画布一次落多条,按锚点阶梯偏移 */
347
- recordIds?: string[];
348
- };
349
- /** 阅读态 renderItem 可选第三参数 */
350
- export interface FloorMapRenderOptions {
351
- textSlotValues?: Record<string, string>;
352
- }
353
- /** 数据源记录表单列配置(用于编辑面板中的「数据源记录」区块) */
354
- export interface DataSourceFormColumn {
355
- key: string;
356
- label: string;
357
- type?: 'string' | 'number' | 'select';
358
- options?: Array<{
359
- label: string;
360
- value: string;
361
- }>;
362
- }
363
- /**
364
- * 自定义「数据源记录」表单(ReactNode 或 render prop)可用的上下文
365
- * @description 与内置 {@link FloorMapDataForm} 数据源一致,便于复杂表单、多步校验、联动等
366
- */
367
- export interface FloorMapRecordFormRenderContext {
368
- /** 当前数据源 key */
369
- dataSourceKey: string;
370
- /** 当前绑定的记录 id */
371
- recordId: string;
372
- /** 当前行数据(来自 dataSources) */
373
- record: Record<string, unknown>;
374
- /** 全量数据源,只读引用 */
375
- dataSources: FloorMapDataSources;
376
- /** 当前画布图元实例(含坐标、绑定等) */
377
- sceneElement: FloorMapSceneElement;
378
- /** 当前平面图草稿配置 */
379
- config: FloorMapViewConfig;
380
- /** 与侧栏「保存记录」一致:写入单条记录;未配置 {@link PisellFloorMapLayoutProps.onDataSourceRecordSave} 时为 undefined */
381
- onSaveRecord?: (newData: Record<string, unknown>) => void;
382
- /** 内置表单保存中的 loading 同步字段,自定义表单可自行维护 loading */
383
- savingRecord: boolean;
384
- }
385
- /**
386
- * 按 dataSourceKey 替换「数据源记录」区块的表单内容:静态节点或通过 context 渲染
387
- */
388
- export declare type FloorMapDataSourceRecordFormContent = ReactNode | ((ctx: FloorMapRecordFormRenderContext) => ReactNode);
389
- /** 选中图元后编辑面板参数 */
390
- export interface FloorMapEditPanelParams {
391
- itemId: string;
392
- sceneElement: FloorMapSceneElement;
393
- onUpdate: (patch: Partial<FloorMapSceneElement>) => void;
394
- onSaveRecord?: (dataSourceKey: string, id: string, newData: Record<string, unknown>) => void;
395
- onClose: () => void;
396
- /** 从草稿中移除当前选中的图元,并关闭面板(需用户再点「保存」持久化布局) */
397
- onDelete?: () => void;
398
- /** 按 dataSourceKey 配置记录表单列(标签、类型、选项),不传则自动列举 record 除 id 外字段 */
399
- recordFormColumns?: Record<string, DataSourceFormColumn[]>;
400
- /**
401
- * 按 dataSourceKey 完全替换「数据源记录」内的表单区域(仍保留上方「选择数据行」等)
402
- * 若某 key 存在且非空,则不再渲染该 key 下的 {@link FloorMapDataForm}(列配置仅作未自定义时的后备)
403
- */
404
- dataSourceRecordForm?: Record<string, FloorMapDataSourceRecordFormContent>;
405
- /** 数据源 key → 展示名(侧栏「数据源」下拉与工具栏一致) */
406
- dataSourceLabels?: Record<string, string>;
407
- /**
408
- * 布局草稿相对上游持久化配置已变更(拖拽、绑定、侧栏应用等均会写入草稿);
409
- * 用于提示用户点击顶部「保存」持久化布局草稿。
410
- */
411
- layoutDraftDirty?: boolean;
412
- /**
413
- * 为 false 时不渲染「数据绑定」下方的数据源记录编辑表单(FloorMapDataForm / 自定义 record 表单);
414
- * 数据绑定选数据源与选行仍可展示。
415
- */
416
- showDataSourceRecordFormBlock?: boolean;
417
- }
418
- /**
419
- * 合并当前画布的 sceneElements 为 items(用于 Layout 渲染)
420
- */
421
- export declare type FloorMapMergedItem = FloorMapItemBase & {
422
- /** 与 {@link FloorMapSceneElement.instanceId} 一致 */
423
- id: string;
424
- instanceId: string;
425
- _sceneElement: FloorMapSceneElement;
426
- elementKind?: string;
427
- };
428
- /**
429
- * 平面图编辑态全屏 UI 策略(`floorMapFullscreenMode`)
430
- *
431
- * - **toggle**(默认):顶栏提供进入/退出全屏,与浏览器 Fullscreen API 联动
432
- * - **locked**:始终使用全屏顶栏(Tab + 保存等),**不提供退出全屏**;适合外层遮罩铺满
433
- * - **disabled**:**不提供全屏按钮**,仅小屏顶栏 + 侧栏保存
434
- */
435
- export declare type FloorMapFullscreenMode = 'toggle' | 'locked' | 'disabled';
436
- /**
437
- * 平面图 Layout 注入上下文:数据、保存、侧栏表单与状态等(不包含 renderItem/mapLayer 等展示向 props)。
438
- * 由 `FloorMapLayoutProvider` / RecordBoard `floorMapLayoutContext` 提供,与 `PisellFloorMapLayout` props 按 `??` 合并,props 优先。
439
- */
440
- export declare type FloorMapLayoutContextValue = Partial<Pick<PisellFloorMapLayoutProps<FloorMapItemBase>, 'floorMapConfig' | 'dataSources' | 'onSave' | 'onDataSourceRecordSave' | 'dataSourceLabels' | 'dataSourceFormColumns' | 'dataSourceRecordForm' | 'loading' | 'saveError' | 'onElementRenderError' | 'toolbarShowSave' | 'floorMapFullscreenMode' | 'showDataSourceRecordFormBlock' | 'viewportDockTrailing'>>;
441
- /**
442
- * PisellFloorMapLayout 组件 Props
443
- * @template T - 资源项类型,需继承 FloorMapItemBase 或兼容 id/x/y
444
- */
445
- export interface PisellFloorMapLayoutProps<T extends FloorMapItemBase = FloorMapItemBase> {
446
- /**
447
- * 自定义类名
448
- */
449
- className?: string;
450
- /**
451
- * 自定义样式(作用于最外层容器)
452
- */
453
- style?: CSSProperties;
454
- /**
455
- * 资源列表;每项至少包含 id、x、y
456
- */
457
- items: T[];
458
- /**
459
- * 每个资源项的渲染函数;内容与样式由调用方完全控制
460
- * 当使用 floorMapConfig 时可选传入第三参数 options(如 textSlotValues)
461
- */
462
- renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => ReactNode;
463
- /**
464
- * 指定每项的唯一 key,默认使用 item.id
465
- */
466
- rowKey?: string | ((item: T, index: number) => string);
467
- /**
468
- * 按 elementKind 的渲染函数(key 为 kind value),优先于 renderItem
469
- * 仅在使用 floorMapConfig 时生效
470
- */
471
- renderItemByKind?: Record<string, (item: T, index: number, options?: FloorMapRenderOptions) => ReactNode>;
472
- /**
473
- * 合并图元**外层定位容器**的额外样式(如列表/搜索筛选未命中时降低透明度)。
474
- * 在宽高与定位样式之后展开合并,适合传 `opacity`;避免覆盖 `position/left/top/width/height` 除非有意为之。
475
- */
476
- getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
477
- /**
478
- * 底层(地图层)配置:背景、网格、padding、gap、吸附
479
- */
480
- mapLayer?: FloorMapLayerConfig;
481
- /**
482
- * 每格像素尺寸(itemUnit 为 cell 时:逻辑 1 单位对应的像素;为 pixel 时:缺省宽高的默认像素)
483
- * @default 64
484
- */
485
- cellSize?: number;
486
- /**
487
- * item 坐标与尺寸单位:cell 格子数,pixel 像素
488
- * @default 'cell'
489
- */
490
- itemUnit?: FloorMapItemUnit;
491
- /**
492
- * 布局模式:grid 规则网格,free 完全按坐标
493
- * @default 'free'
494
- */
495
- layoutMode?: FloorMapLayoutMode;
496
- /**
497
- * 规则网格时的配置(列数等)
498
- */
499
- gridLayout?: FloorMapGridLayoutConfig;
500
- /**
501
- * 缩放配置
502
- */
503
- zoom?: FloorMapZoomConfig;
504
- /**
505
- * 平移配置
506
- */
507
- pan?: FloorMapPanConfig;
508
- /**
509
- * 视图控制按钮显隐
510
- */
511
- controls?: FloorMapControlsConfig;
512
- /**
513
- * 视口(画布位置 + 缩放百分比)持久化开关,默认 `true`。
514
- * 设为 `false` 时完全不读不写 localStorage,始终走 autoFit / 初始对齐行为。
515
- *
516
- * 仅在平面图模式(有 `floorMapConfig`)下生效;其它模式没有「画布」概念。
517
- */
518
- viewportPersist?: boolean;
519
- /**
520
- * 视口持久化的业务命名空间(建议传入店铺 / floor plan 维度的稳定标识,如 floor plan code)。
521
- *
522
- * 存储 key 形如 `pisell-floor-map-layout.viewport:<namespace>:<canvasId>`;
523
- * 不传时 fallback 为仅用 `<canvasId>`,同一 `canvasId` 在跨业务场景(不同店铺 / 不同平面图)会共享视角,
524
- * 若 `canvasId` 存在全局冲突(例如业务里使用固定常量作 canvasId),务必传入此字段做隔离。
525
- */
526
- viewportPersistNamespace?: string;
527
- /**
528
- * 是否开启 hover 高亮或 hover 事件,默认 true
529
- */
530
- enableHover?: boolean;
531
- /**
532
- * 阅读态(`mode === 'read'`):与 {@link rowKey} 解析出的图元 id 相等时,外层容器加选中描边(如详情弹层打开时锚定画布上的桌位)。
533
- * 传 `null` / `undefined` / 空字符串时不展示选中外圈。
534
- */
535
- readModeSelectedItemId?: string | null;
536
- /**
537
- * 资源项点击回调
538
- */
539
- onItemClick?: (item: T, index: number, event: ReactMouseEvent<HTMLElement>) => void;
540
- /**
541
- * 资源项鼠标进入
542
- */
543
- onItemHover?: (item: T, index: number, event: ReactMouseEvent<HTMLElement>) => void;
544
- /**
545
- * 资源项鼠标离开
546
- */
547
- onItemLeave?: (item: T, index: number, event: ReactMouseEvent<HTMLElement>) => void;
548
- /** 编辑态全屏按钮与顶栏形态,见 {@link FloorMapFullscreenMode} */
549
- floorMapFullscreenMode?: FloorMapFullscreenMode;
550
- /**
551
- * 模式:read 仅展示,edit 可编辑;与 floorMapConfig 同时使用时生效
552
- */
553
- mode?: 'read' | 'edit';
554
- /**
555
- * 平面图视图配置;传入时由组件内部按当前画布合并 items,忽略外部传入的 items
556
- */
557
- floorMapConfig?: FloorMapViewConfig;
558
- /**
559
- * 多数据源;与 floorMapConfig 同时使用
560
- */
561
- dataSources?: FloorMapDataSources;
562
- /** 保存平面图配置,由上层调接口持久化 */
563
- onSave?: (config: FloorMapViewConfig) => void;
564
- /**
565
- * 退出编辑模式回调(不保存)。
566
- * 传入后编辑态顶栏会展示「取消编辑」+「完成」两个按钮:
567
- * - 取消编辑 → `onExitEdit()`(业务层负责把 `mode` 切回 `read`)
568
- * - 完成 → 先 `onSave(config)` 再 `onExitEdit()`
569
- * 不传则保持旧版「保存」按钮行为(仅保存,不退出)。
570
- */
571
- onExitEdit?: () => void;
572
- /** 保存单条数据源记录 */
573
- onDataSourceRecordSave?: (dataSourceKey: string, id: string, newData: Record<string, unknown>) => void;
574
- /** 数据源展示名,key 为 dataSourceKey */
575
- dataSourceLabels?: Record<string, string>;
576
- /** 按 dataSourceKey 配置编辑面板「数据源记录」表单列(标签、类型、选项) */
577
- dataSourceFormColumns?: Record<string, DataSourceFormColumn[]>;
578
- /**
579
- * 按 dataSourceKey 自定义侧栏「数据源记录」表单:传入 ReactNode 或 `(ctx) => ReactNode`;
580
- * 指定 key 后优先于 dataSourceFormColumns + 内置 FloorMapDataForm,用于复杂业务表单
581
- */
582
- dataSourceRecordForm?: Record<string, FloorMapDataSourceRecordFormContent>;
583
- /** 编辑态 loading */
584
- loading?: boolean;
585
- /** 保存失败时的错误信息 */
586
- saveError?: Error | string;
587
- /**
588
- * 单图元渲染抛出异常或内部校验失败时回调(如 renderItemByKind 抛错、绑定数据不合法)
589
- */
590
- onElementRenderError?: (element: FloorMapSceneElement, error: unknown) => void;
591
- /**
592
- * 是否在左侧工具栏底部显示「保存」(默认 true;非全屏时顶栏为 Tab+全屏,保存多在侧栏;全屏时保存仅在顶栏)
593
- */
594
- toolbarShowSave?: boolean;
595
- /**
596
- * 为 false 时隐藏侧栏「数据源记录」表单区(保留数据绑定选源/选行)。
597
- */
598
- showDataSourceRecordFormBlock?: boolean;
599
- /**
600
- * 画布 Tab 行右侧扩展(阅读态顶栏、编辑态 compact/full 顶栏)。
601
- * 传入且阅读态仅单画布时仍会显示顶栏以便放置该插槽;全屏入口在左下 Dock(`viewportDockTrailing` 亦放 Dock,不占顶栏)。
602
- */
603
- canvasTabsBarTrailing?: ReactNode;
604
- /**
605
- * 视口左下角 Dock 展开区业务插槽(与缩放/全屏同条),不占用顶栏 Tab 行;平面图模式推荐放「编辑画布」等。
606
- */
607
- viewportDockTrailing?: ReactNode;
608
- /**
609
- * 平面图模式:`floorMapViewportOverlay` 锚点;默认左上,预约 HUD 等可用左下。
610
- */
611
- viewportOverlayPlacement?: 'top-start' | 'bottom-start';
612
- /**
613
- * 视口悬浮层容器额外类名(如场控抽屉打开时需叠在固定层之上)。
614
- */
615
- viewportOverlayClassName?: string;
616
- /**
617
- * 平面图模式:在地图视口内悬浮层(不随画布缩放平移),如状态统计。
618
- * 传入函数时可拿到当前画布合并后的 items 与数据源。
619
- */
620
- floorMapViewportOverlay?: ReactNode | ((args: FloorMapViewportOverlayRenderArgs<T>) => ReactNode);
621
- }
622
- /**
623
- * {@link PisellFloorMapLayoutProps.floorMapViewportOverlay} 函数形态时的参数
624
- */
625
- export declare type FloorMapViewportOverlayRenderArgs<T extends FloorMapItemBase = FloorMapItemBase> = {
626
- items: T[];
627
- dataSources: FloorMapDataSources | undefined;
628
- currentCanvasId: string | null;
629
- mode: 'read' | 'edit';
630
- };
631
- /**
632
- * `PisellFloorMapLayout` 通过 ref 暴露的 imperative API。
633
- * 缩放/复位委托内部 `react-zoom-pan-pinch`;`fitBounds` / `saveLayout` 依赖当前画布与编辑状态。
634
- */
635
- export interface PisellFloorMapLayoutRef {
636
- /** 在允许范围内放大一级(与右下角「+」一致) */
637
- zoomIn: () => void;
638
- /** 在允许范围内缩小一级(与右下角「−」一致) */
639
- zoomOut: () => void;
640
- /** 重置 transform 为初始 scale 与 initialPosition(与「复位」控件一致) */
641
- reset: () => void;
642
- /** 计算内容包盒并将视口平移/缩放至全部图元可见 */
643
- fitBounds: () => void;
644
- /** 触发与顶栏/侧栏相同的保存流程(无 `onSave` 时内部可能为 no-op,由 hook 决定) */
645
- saveLayout: () => void;
646
- }
@@ -1,20 +0,0 @@
1
- import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
2
- /**
3
- * 合并平面图 Tab 用多语言包(与业务侧 `locales.init` 可叠加)。
4
- */
5
- export declare function initFloorMapLayoutLocales(engineLocale: string): void;
6
- /**
7
- * 从多语言对象中取当前 locale 下展示字符串,缺省按 en → 其余首个非空。
8
- */
9
- export declare function pickFloorMapCanvasI18nString(obj: FloorMapCanvasNameI18n, engineLocale: string): string;
10
- /**
11
- * 画布在 Tab / 下拉中的展示名:
12
- * 1. `name` 为多语言对象时 **优先** 按引擎 locale 取字段(与配置内嵌文案一致);
13
- * 2. 否则 `nameKey` + `locales.getText`(需业务侧已 init 对应语言包);
14
- * 3. 否则 `name` 字符串。
15
- */
16
- export declare function getFloorMapCanvasDisplayName(canvas: FloorMapCanvas, engineLocale: string): string;
17
- /**
18
- * 打开重命名弹层时的初始多语言值(与 Translation 表单一致)。
19
- */
20
- export declare function seedFloorMapCanvasNameI18n(canvas: FloorMapCanvas, displayFallback: string): FloorMapCanvasNameI18n;
@@ -1,8 +0,0 @@
1
- /**
2
- * 将当前画布的 sceneElements 合并为 Layout 使用的 FloorMapMergedItem[]
3
- */
4
- import type { FloorMapViewConfig, FloorMapMergedItem } from '../types';
5
- /**
6
- * 合并指定画布下的 sceneElements 为一份 items(用于 ItemLayer / EditableItemLayer)
7
- */
8
- export declare function mergeCanvasItems(canvasId: string, config: Pick<FloorMapViewConfig, 'sceneElements' | 'elementKinds'>, defaultCellSize?: number): FloorMapMergedItem[];