@pisell/materials 1.8.41 → 1.8.42

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 (849) 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 +3 -3
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +51 -216
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +51 -216
  9. package/es/components/Pagination/index.js +43 -9
  10. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +2 -5
  11. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +171 -169
  12. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +27 -87
  13. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +7 -18
  14. package/es/components/PisellCards/components/TextCard/TextCard.js +3 -2
  15. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +6 -20
  16. package/es/components/PisellCards/components/TextCard/components/TextContent.js +1 -3
  17. package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +5 -36
  18. package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +258 -2434
  19. package/es/components/PisellCards/components/TextCard/docs/TextCard.md +13 -78
  20. package/es/components/PisellCards/index.d.ts +0 -3
  21. package/es/components/PisellCards/index.js +1 -3
  22. package/es/components/PisellLayouts/index.d.ts +1 -1
  23. package/es/components/PisellProcedure/components/ProcedureHeader.js +1 -1
  24. package/es/components/PisellTabbar/PisellTabbar.js +1 -1
  25. package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -1
  26. package/es/components/SafeAreaTop/index.d.ts +6 -0
  27. package/es/components/SafeAreaTop/index.js +112 -0
  28. package/es/components/SafeAreaTop/index.less +11 -0
  29. package/es/components/SafeAreaTop/types.d.ts +13 -0
  30. package/es/components/appVersionControl/index.js +2 -3
  31. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -4
  32. package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
  33. package/es/components/dataSourceComponents/dataSourceForm/index.js +1 -1
  34. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
  35. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
  36. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
  37. package/es/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
  38. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
  39. package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
  40. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +2 -3
  41. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  42. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
  43. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +0 -4
  44. package/es/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
  45. package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
  46. package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +1 -4
  47. package/es/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
  48. package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +1 -1
  49. package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
  50. package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
  51. package/es/components/drag-sort-tree/index.d.ts +0 -1
  52. package/es/components/drag-sort-tree/index.js +1 -0
  53. package/es/components/drawer/index.js +6 -7
  54. package/es/components/filter/components/Dropdown/index.js +4 -2
  55. package/es/components/filter/components/Dropdown/index.less +186 -0
  56. package/es/components/filter/components/FilterButton/index.js +41 -13
  57. package/es/components/filter/components/FilterButton/index.less +29 -0
  58. package/es/components/filter/components/FilterButton/types.d.ts +5 -0
  59. package/es/components/filter/components/FilterItem/index.js +93 -16
  60. package/es/components/filter/components/QuickFilter/index.js +7 -4
  61. package/es/components/filter/types.d.ts +4 -0
  62. package/es/components/login-and-register/index.js +5 -4
  63. package/es/components/page/index.js +1 -1
  64. package/es/components/pisellAppCard/PisellAppCard.js +1 -1
  65. package/es/components/pisellCardList/index.js +1 -1
  66. package/es/components/pisellCurrency/PisellCurrency.js +6 -13
  67. package/es/components/pisellCurrency/PisellCurrency.less +123 -0
  68. package/es/components/pisellDataSourceContainer/components/Pagination/index.js +9 -3
  69. package/es/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +240 -189
  70. package/es/components/pisellDataSourceContainer/type.d.ts +1 -1
  71. package/es/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
  72. package/es/components/pisellEmail/PisellEmail.js +6 -13
  73. package/es/components/pisellEmail/PisellEmail.less +92 -0
  74. package/es/components/pisellEmpty/index.d.ts +1 -1
  75. package/es/components/pisellFilter/docs/PisellFilter.md +2 -2
  76. package/es/components/pisellFilter/index.js +7 -3
  77. package/es/components/pisellFind/docs/pisellFind.md +2 -2
  78. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
  79. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +480 -88
  80. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +62 -0
  81. package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +4 -0
  82. package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +22 -0
  83. package/es/components/pisellFloorMapLayout/components/CanvasTabs.js +18 -3
  84. package/es/components/pisellFloorMapLayout/components/CanvasTabs.less +23 -0
  85. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +3 -2
  86. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
  87. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +209 -74
  88. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +11 -0
  89. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js +123 -0
  90. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +88 -12
  91. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +15 -0
  92. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +169 -23
  93. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +95 -1
  94. package/es/components/pisellFloorMapLayout/components/FloorMapOverview.js +94 -0
  95. package/es/components/pisellFloorMapLayout/components/FloorMapOverview.less +65 -0
  96. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +153 -38
  97. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +178 -4
  98. package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +64 -0
  99. package/es/components/pisellFloorMapLayout/components/ItemLayer.js +32 -10
  100. package/es/components/pisellFloorMapLayout/components/ItemLayer.less +30 -2
  101. package/es/components/pisellFloorMapLayout/components/ViewControls.js +119 -65
  102. package/es/components/pisellFloorMapLayout/components/ViewControls.less +263 -50
  103. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +4 -0
  104. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +3 -1
  105. package/es/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +559 -194
  106. package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +21 -0
  107. package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +47 -0
  108. package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +95 -0
  109. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +105 -25
  110. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +400 -66
  111. package/es/components/pisellFloorMapLayout/index.d.ts +5 -2
  112. package/es/components/pisellFloorMapLayout/locales-ja.js +39 -1
  113. package/es/components/pisellFloorMapLayout/locales-pt.js +39 -1
  114. package/es/components/pisellFloorMapLayout/locales.js +117 -3
  115. package/es/components/pisellFloorMapLayout/types.d.ts +86 -10
  116. package/es/components/pisellFloorMapLayout/types.js +7 -1
  117. package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +46 -0
  118. package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.js +533 -0
  119. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +139 -0
  120. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
  121. package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +3 -1
  122. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +3 -1
  123. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +31 -7
  124. package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +52 -0
  125. package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +61 -0
  126. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +12 -1
  127. package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +64 -0
  128. package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +3 -2
  129. package/es/components/pisellGoodPassCard/index.less +1 -0
  130. package/es/components/pisellGridPro/GridView/docs/GridView.md +47 -48
  131. package/es/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +4 -2
  132. package/es/components/pisellGridPro/ToolBar/docs/ToolBar.md +95 -81
  133. package/es/components/pisellGridPro/ToolBar/index.less +5 -4
  134. package/es/components/pisellGridPro/docs/PisellGridPro.md +173 -262
  135. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +3 -6
  136. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +3 -4
  137. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +1 -2
  138. package/es/components/pisellLongText/PisellLongText.js +6 -13
  139. package/es/components/pisellLongText/PisellLongText.less +67 -0
  140. package/es/components/pisellLookup/PisellLookup.js +1 -1
  141. package/es/components/pisellLookup/PisellLookup.less +46 -4
  142. package/es/components/pisellLookup/components/LookupResultHost.js +1 -1
  143. package/es/components/pisellLookup/components/LookupTrigger.js +6 -8
  144. package/es/components/pisellLookup/docs/pisellLookup.md +1 -1
  145. package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +9 -0
  146. package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +149 -0
  147. package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.less +73 -0
  148. package/es/components/pisellMobileDateRangePicker/index.d.ts +2 -0
  149. package/es/components/pisellMobileDateRangePicker/types.d.ts +31 -0
  150. package/es/components/pisellMobileDateRangePicker/types.js +4 -0
  151. package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +5 -7
  152. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +139 -18
  153. package/es/components/pisellMultipleSelect/components/EditView.js +0 -1
  154. package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +0 -4
  155. package/es/components/pisellNumber/PisellNumber.js +6 -13
  156. package/es/components/pisellNumber/PisellNumber.less +103 -0
  157. package/es/components/pisellPhone/PisellPhone.js +6 -13
  158. package/es/components/pisellPhone/PisellPhone.less +119 -0
  159. package/es/components/pisellPhone/components/EditView.js +19 -37
  160. package/es/components/pisellPhone/constants/countryCodes.js +25 -26
  161. package/es/components/pisellPhone/types.d.ts +2 -2
  162. package/es/components/pisellPhone/utils/countryCodeHelper.js +2 -2
  163. package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.md +1 -1
  164. package/es/components/pisellRating/PisellRating.js +3 -5
  165. package/es/components/pisellRecordBoard/PisellRecordBoard.js +29 -10
  166. package/es/components/pisellRecordBoard/README.md +12 -0
  167. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +716 -70
  168. package/es/components/pisellRecordBoard/docs/ShellFrame.md +62 -44
  169. package/es/components/pisellRecordBoard/index.d.ts +8 -1
  170. package/es/components/pisellRecordBoard/index.js +5 -0
  171. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +174 -17
  172. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +79 -0
  173. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +758 -0
  174. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +313 -0
  175. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
  176. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +10 -8
  177. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +191 -0
  178. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +22 -0
  179. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  180. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +39 -0
  181. package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +74 -0
  182. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +61 -0
  183. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +26 -0
  184. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +79 -0
  185. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +61 -0
  186. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +37 -0
  187. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +20 -0
  188. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +532 -0
  189. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +17 -0
  190. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +31 -0
  191. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +583 -0
  192. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +41 -0
  193. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +111 -0
  194. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +612 -0
  195. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +168 -0
  196. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +8 -0
  197. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +33 -0
  198. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +37 -0
  199. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +18 -0
  200. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +33 -0
  201. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +29 -0
  202. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
  203. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +7 -1
  204. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +43 -0
  205. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +14 -0
  206. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +436 -0
  207. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +11 -0
  208. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
  209. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +179 -0
  210. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +62 -0
  211. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +57 -0
  212. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +88 -0
  213. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +83 -0
  214. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +218 -0
  215. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +339 -0
  216. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
  217. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +153 -0
  218. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +32 -0
  219. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +170 -0
  220. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
  221. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -1
  222. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +30 -3
  223. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +157 -68
  224. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +11 -0
  225. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +56 -0
  226. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +406 -14
  227. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +14 -4
  228. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +9 -2
  229. package/es/components/pisellRecordBoard/shellFrame/index.js +73 -19
  230. package/es/components/pisellRecordBoard/types.d.ts +413 -8
  231. package/es/components/pisellRecordBoard/types.js +12 -0
  232. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +16 -0
  233. package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +22 -0
  234. package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.js +46 -0
  235. package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +67 -15
  236. package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +23 -0
  237. package/es/components/pisellReservationSchedule/locales.js +21 -3
  238. package/es/components/pisellReservationSchedule/types.d.ts +5 -0
  239. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +11 -6
  240. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +37 -4
  241. package/es/components/pisellReservationScheduleBand/index.d.ts +2 -1
  242. package/es/components/pisellReservationScheduleBand/types.d.ts +13 -2
  243. package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +13 -0
  244. package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.js +17 -0
  245. package/es/components/pisellShellFrame/PisellShellFrame.js +2 -2
  246. package/es/components/pisellShellFrame/PisellShellFrame.less +18 -2
  247. package/es/components/pisellShellFrame/types.d.ts +6 -0
  248. package/es/components/pisellSingleLineText/PisellSingleLineText.js +14 -21
  249. package/es/components/pisellSingleLineText/PisellSingleLineText.less +143 -0
  250. package/es/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
  251. package/es/components/pisellSingleSelect/PisellSingleSelect.js +4 -7
  252. package/es/components/pisellSingleSelect/PisellSingleSelect.less +106 -5
  253. package/es/components/pisellSingleSelect/docs/pisellSingleSelect.md +428 -525
  254. package/es/components/pisellSort/docs/PisellSort.md +131 -67
  255. package/es/components/pisellStatisticList/index.js +0 -1
  256. package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +227 -58
  257. package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +128 -15
  258. package/es/components/pisellTimeNavigator/components/CursorLayer.js +3 -3
  259. package/es/components/pisellTimeNavigator/components/GestureLayer.js +12 -3
  260. package/es/components/pisellTimeNavigator/components/ScaleLayer.js +34 -6
  261. package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +26 -42
  262. package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
  263. package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +43 -23
  264. package/es/components/pisellTimeNavigator/index.d.ts +1 -1
  265. package/es/components/pisellTimeNavigator/types.d.ts +15 -0
  266. package/es/components/pisellTimeNavigator/utils/index.d.ts +25 -4
  267. package/es/components/pisellTimeNavigator/utils/index.js +85 -17
  268. package/es/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +226 -227
  269. package/es/components/pisellUrl/PisellUrl.js +6 -13
  270. package/es/components/pisellWalletPassCard/index.js +5 -11
  271. package/es/components/productCard/cartSkuCard/components/Gift/index.js +34 -0
  272. package/es/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
  273. package/es/components/productCard/cartSkuCard/components/Promotion/index.js +23 -0
  274. package/es/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
  275. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +65 -4
  276. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +80 -1
  277. package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  278. package/es/components/productCard/cartSkuCard/components/packages/index.js +24 -9
  279. package/es/components/productCard/cartSkuCard/components/specs/index.js +22 -7
  280. package/es/components/productCard/cartSkuCard/components/specs/index.less +11 -0
  281. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +2 -1
  282. package/es/components/productCard/cartSkuCard/components/weighing/index.js +27 -0
  283. package/es/components/productCard/cartSkuCard/components/weighing/index.less +25 -0
  284. package/es/components/productCard/cartSkuCard/index.js +68 -8
  285. package/es/components/productCard/cartSkuCard/locales.js +40 -5
  286. package/es/components/productCard/components/Header/DeleteButton/index.js +2 -2
  287. package/es/components/productCard/components/Header/DeleteButton/index.less +1 -2
  288. package/es/components/productCard/components/Header/EditButton/index.js +2 -1
  289. package/es/components/productCard/components/Header/index.less +1 -1
  290. package/es/components/productCard/components/Time/components/SelectHolder/index.js +2 -3
  291. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  292. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
  293. package/es/components/productCard/components/Time/components/SelectResource/index.js +3 -6
  294. package/es/components/productCard/components/Time/index.js +2 -3
  295. package/es/components/productCard/index.d.ts +1 -0
  296. package/es/components/productCard/index.js +2 -0
  297. package/es/components/productCard/lineItem/BookingLineItem.js +173 -0
  298. package/es/components/productCard/lineItem/index.js +195 -0
  299. package/es/components/productCard/lineItem/index.less +195 -0
  300. package/es/components/productCard/lineItem/locales.js +25 -0
  301. package/es/components/productCard/status.js +3 -0
  302. package/es/components/productCard/types.d.ts +10 -0
  303. package/es/components/productCard/utils.js +1 -1
  304. package/es/components/select/index.js +1 -1
  305. package/es/components/select-time/index.js +1 -0
  306. package/es/components/table/Actions/component/ExportImport/index.js +4 -3
  307. package/es/components/table/Actions/component/GallerySetting/index.js +9 -10
  308. package/es/components/table/Actions/component/ViewMode/index.js +3 -4
  309. package/es/components/table/Actions/index.js +1 -1
  310. package/es/components/table/BasicTable/index.js +3 -4
  311. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  312. package/es/components/table/Gallery/components/GalleryItem/index.js +4 -12
  313. package/es/components/table/Gallery/components/GalleryItem/index.less +0 -1
  314. package/es/components/table/Gallery/index.js +3 -11
  315. package/es/components/table/Table/fields/text/Show/index.js +1 -1
  316. package/es/components/table/Table/index.js +1 -2
  317. package/es/components/table/Table/tableConfig/header/index.js +1 -1
  318. package/es/components/table/Table/utils.js +1 -5
  319. package/es/components/table/hooks/useTableSetting.js +0 -3
  320. package/es/components/table/hooks/useTransDataSource.js +3 -4
  321. package/es/components/table/index.js +1 -1
  322. package/es/components/tabs/index.less +1 -1
  323. package/es/components/translation/index.d.ts +0 -1
  324. package/es/components/translation/index.js +10 -36
  325. package/es/components/translation/index.less +0 -12
  326. package/es/components/versionModal/index.d.ts +0 -1
  327. package/es/components/versionModal/index.js +2 -2
  328. package/es/components/versionSelect/index.js +1 -1
  329. package/es/components/virtual-keyboard/Amount/index.js +1 -1
  330. package/es/index.d.ts +101 -106
  331. package/es/index.js +97 -94
  332. package/es/locales/en-US.js +195 -70
  333. package/es/locales/ja.js +196 -13
  334. package/es/locales/pt.js +196 -13
  335. package/es/locales/zh-CN.js +189 -64
  336. package/es/locales/zh-TW.js +194 -69
  337. package/es/pisell-materials.tw.css +0 -1
  338. package/es/tailwind-input.css +3 -1
  339. package/lib/components/Pagination/index.js +42 -8
  340. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +2 -5
  341. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +171 -169
  342. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +27 -87
  343. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +7 -18
  344. package/lib/components/PisellCards/components/TextCard/TextCard.js +3 -2
  345. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +6 -20
  346. package/lib/components/PisellCards/components/TextCard/components/TextContent.js +1 -3
  347. package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +5 -36
  348. package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +258 -2434
  349. package/lib/components/PisellCards/components/TextCard/docs/TextCard.md +13 -78
  350. package/lib/components/PisellCards/index.d.ts +0 -3
  351. package/lib/components/PisellCards/index.js +1 -3
  352. package/lib/components/PisellLayouts/index.d.ts +1 -1
  353. package/lib/components/PisellProcedure/components/ProcedureHeader.js +1 -1
  354. package/lib/components/PisellTabbar/PisellTabbar.js +6 -6
  355. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +6 -6
  356. package/lib/components/SafeAreaTop/index.d.ts +6 -0
  357. package/lib/components/SafeAreaTop/index.js +115 -0
  358. package/lib/components/SafeAreaTop/index.less +11 -0
  359. package/lib/components/SafeAreaTop/types.d.ts +13 -0
  360. package/lib/components/appVersionControl/index.js +11 -12
  361. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -6
  362. package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
  363. package/lib/components/dataSourceComponents/dataSourceForm/index.js +1 -1
  364. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
  365. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
  366. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
  367. package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
  368. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
  369. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
  370. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +2 -3
  371. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  372. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
  373. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +0 -4
  374. package/lib/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
  375. package/lib/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
  376. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +1 -4
  377. package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
  378. package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -4
  379. package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
  380. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
  381. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  382. package/lib/components/drag-sort-tree/index.js +1 -0
  383. package/lib/components/drawer/index.js +6 -7
  384. package/lib/components/filter/components/Dropdown/index.js +5 -2
  385. package/lib/components/filter/components/Dropdown/index.less +186 -0
  386. package/lib/components/filter/components/FilterButton/index.js +40 -12
  387. package/lib/components/filter/components/FilterButton/index.less +29 -0
  388. package/lib/components/filter/components/FilterButton/types.d.ts +5 -0
  389. package/lib/components/filter/components/FilterItem/index.js +94 -16
  390. package/lib/components/filter/components/QuickFilter/index.js +7 -4
  391. package/lib/components/filter/types.d.ts +4 -0
  392. package/lib/components/login-and-register/index.js +5 -4
  393. package/lib/components/page/index.js +1 -1
  394. package/lib/components/pisellAppCard/PisellAppCard.js +7 -7
  395. package/lib/components/pisellCardList/index.js +6 -6
  396. package/lib/components/pisellCurrency/PisellCurrency.js +6 -13
  397. package/lib/components/pisellCurrency/PisellCurrency.less +123 -0
  398. package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +9 -3
  399. package/lib/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +240 -189
  400. package/lib/components/pisellDataSourceContainer/type.d.ts +1 -1
  401. package/lib/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
  402. package/lib/components/pisellEmail/PisellEmail.js +6 -13
  403. package/lib/components/pisellEmail/PisellEmail.less +92 -0
  404. package/lib/components/pisellEmpty/index.d.ts +1 -1
  405. package/lib/components/pisellFilter/docs/PisellFilter.md +2 -2
  406. package/lib/components/pisellFilter/index.js +7 -3
  407. package/lib/components/pisellFind/docs/pisellFind.md +2 -2
  408. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
  409. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +478 -86
  410. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +62 -0
  411. package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +4 -0
  412. package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +22 -0
  413. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.js +18 -3
  414. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.less +23 -0
  415. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +3 -2
  416. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
  417. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +209 -74
  418. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +11 -0
  419. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js +125 -0
  420. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +86 -10
  421. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +15 -0
  422. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +168 -22
  423. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +95 -1
  424. package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.js +97 -0
  425. package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.less +65 -0
  426. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +150 -35
  427. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +178 -4
  428. package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +67 -0
  429. package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +32 -10
  430. package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +30 -2
  431. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +118 -64
  432. package/lib/components/pisellFloorMapLayout/components/ViewControls.less +263 -50
  433. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +4 -0
  434. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +3 -1
  435. package/lib/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +559 -194
  436. package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +25 -0
  437. package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +52 -0
  438. package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +96 -0
  439. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +104 -24
  440. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +399 -65
  441. package/lib/components/pisellFloorMapLayout/index.d.ts +5 -2
  442. package/lib/components/pisellFloorMapLayout/locales-ja.js +39 -1
  443. package/lib/components/pisellFloorMapLayout/locales-pt.js +39 -1
  444. package/lib/components/pisellFloorMapLayout/locales.js +117 -3
  445. package/lib/components/pisellFloorMapLayout/types.d.ts +86 -10
  446. package/lib/components/pisellFloorMapLayout/types.js +7 -0
  447. package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +46 -0
  448. package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.js +536 -0
  449. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +140 -0
  450. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
  451. package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +3 -1
  452. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +3 -1
  453. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +30 -5
  454. package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +52 -0
  455. package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +64 -0
  456. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +11 -0
  457. package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +64 -0
  458. package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +4 -2
  459. package/lib/components/pisellGoodPassCard/index.less +1 -0
  460. package/lib/components/pisellGridPro/GridView/docs/GridView.md +47 -48
  461. package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +4 -2
  462. package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.md +95 -81
  463. package/lib/components/pisellGridPro/ToolBar/index.less +5 -4
  464. package/lib/components/pisellGridPro/docs/PisellGridPro.md +173 -262
  465. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +3 -6
  466. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +3 -4
  467. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +1 -2
  468. package/lib/components/pisellLongText/PisellLongText.js +6 -13
  469. package/lib/components/pisellLongText/PisellLongText.less +67 -0
  470. package/lib/components/pisellLookup/PisellLookup.js +1 -1
  471. package/lib/components/pisellLookup/PisellLookup.less +46 -4
  472. package/lib/components/pisellLookup/components/LookupResultHost.js +1 -1
  473. package/lib/components/pisellLookup/components/LookupTrigger.js +6 -8
  474. package/lib/components/pisellLookup/docs/pisellLookup.md +1 -1
  475. package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +9 -0
  476. package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +160 -0
  477. package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.less +73 -0
  478. package/lib/components/pisellMobileDateRangePicker/index.d.ts +2 -0
  479. package/lib/components/pisellMobileDateRangePicker/types.d.ts +31 -0
  480. package/lib/components/pisellMobileDateRangePicker/types.js +4 -0
  481. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +4 -6
  482. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +139 -18
  483. package/lib/components/pisellMultipleSelect/components/EditView.js +0 -1
  484. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +0 -4
  485. package/lib/components/pisellNumber/PisellNumber.js +6 -13
  486. package/lib/components/pisellNumber/PisellNumber.less +103 -0
  487. package/lib/components/pisellPhone/PisellPhone.js +6 -13
  488. package/lib/components/pisellPhone/PisellPhone.less +119 -0
  489. package/lib/components/pisellPhone/components/EditView.js +19 -37
  490. package/lib/components/pisellPhone/constants/countryCodes.js +25 -26
  491. package/lib/components/pisellPhone/types.d.ts +2 -2
  492. package/lib/components/pisellPhone/utils/countryCodeHelper.js +2 -2
  493. package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.md +1 -1
  494. package/lib/components/pisellRating/PisellRating.js +2 -4
  495. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +29 -10
  496. package/lib/components/pisellRecordBoard/README.md +12 -0
  497. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +716 -70
  498. package/lib/components/pisellRecordBoard/docs/ShellFrame.md +62 -44
  499. package/lib/components/pisellRecordBoard/index.d.ts +8 -1
  500. package/lib/components/pisellRecordBoard/index.js +5 -0
  501. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +174 -16
  502. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +79 -0
  503. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +760 -0
  504. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +313 -0
  505. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
  506. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +11 -8
  507. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +197 -0
  508. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +23 -0
  509. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  510. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +44 -0
  511. package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +75 -0
  512. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +63 -0
  513. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +28 -0
  514. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +81 -0
  515. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +64 -0
  516. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +39 -0
  517. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +21 -0
  518. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +562 -0
  519. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +17 -0
  520. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +33 -0
  521. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +585 -0
  522. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +43 -0
  523. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +113 -0
  524. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +614 -0
  525. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +170 -0
  526. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +10 -0
  527. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +34 -0
  528. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +38 -0
  529. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +19 -0
  530. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +34 -0
  531. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +30 -0
  532. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
  533. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +7 -1
  534. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +45 -0
  535. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +14 -0
  536. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +439 -0
  537. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +11 -0
  538. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
  539. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +181 -0
  540. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +64 -0
  541. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +57 -0
  542. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +88 -0
  543. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +85 -0
  544. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +220 -0
  545. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +339 -0
  546. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
  547. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +153 -0
  548. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +32 -0
  549. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +181 -0
  550. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
  551. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -1
  552. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +30 -3
  553. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +170 -81
  554. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +14 -0
  555. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +63 -0
  556. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +406 -14
  557. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +14 -4
  558. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +9 -2
  559. package/lib/components/pisellRecordBoard/shellFrame/index.js +73 -19
  560. package/lib/components/pisellRecordBoard/types.d.ts +413 -8
  561. package/lib/components/pisellRecordBoard/types.js +12 -0
  562. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +16 -0
  563. package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +22 -0
  564. package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.js +50 -0
  565. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +67 -15
  566. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +23 -0
  567. package/lib/components/pisellReservationSchedule/locales.js +21 -3
  568. package/lib/components/pisellReservationSchedule/types.d.ts +5 -0
  569. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +11 -6
  570. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +37 -4
  571. package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -1
  572. package/lib/components/pisellReservationScheduleBand/types.d.ts +13 -2
  573. package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +13 -0
  574. package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.js +17 -0
  575. package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -2
  576. package/lib/components/pisellShellFrame/PisellShellFrame.less +18 -2
  577. package/lib/components/pisellShellFrame/types.d.ts +6 -0
  578. package/lib/components/pisellSingleLineText/PisellSingleLineText.js +14 -21
  579. package/lib/components/pisellSingleLineText/PisellSingleLineText.less +143 -0
  580. package/lib/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
  581. package/lib/components/pisellSingleSelect/PisellSingleSelect.js +4 -7
  582. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +106 -5
  583. package/lib/components/pisellSingleSelect/docs/pisellSingleSelect.md +428 -525
  584. package/lib/components/pisellSort/docs/PisellSort.md +131 -67
  585. package/lib/components/pisellStatisticList/index.js +0 -1
  586. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +226 -57
  587. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +128 -15
  588. package/lib/components/pisellTimeNavigator/components/CursorLayer.js +3 -3
  589. package/lib/components/pisellTimeNavigator/components/GestureLayer.js +12 -3
  590. package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +34 -6
  591. package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +26 -42
  592. package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
  593. package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.js +42 -22
  594. package/lib/components/pisellTimeNavigator/index.d.ts +1 -1
  595. package/lib/components/pisellTimeNavigator/types.d.ts +15 -0
  596. package/lib/components/pisellTimeNavigator/utils/index.d.ts +25 -4
  597. package/lib/components/pisellTimeNavigator/utils/index.js +88 -17
  598. package/lib/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +226 -227
  599. package/lib/components/pisellUrl/PisellUrl.js +6 -13
  600. package/lib/components/pisellWalletPassCard/index.js +5 -11
  601. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +36 -0
  602. package/lib/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
  603. package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +25 -0
  604. package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
  605. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +69 -8
  606. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +80 -1
  607. package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  608. package/lib/components/productCard/cartSkuCard/components/packages/index.js +26 -11
  609. package/lib/components/productCard/cartSkuCard/components/specs/index.js +23 -8
  610. package/lib/components/productCard/cartSkuCard/components/specs/index.less +11 -0
  611. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +2 -1
  612. package/lib/components/productCard/cartSkuCard/components/weighing/index.js +29 -0
  613. package/lib/components/productCard/cartSkuCard/components/weighing/index.less +25 -0
  614. package/lib/components/productCard/cartSkuCard/index.js +68 -8
  615. package/lib/components/productCard/cartSkuCard/locales.js +40 -5
  616. package/lib/components/productCard/components/Header/DeleteButton/index.js +2 -2
  617. package/lib/components/productCard/components/Header/DeleteButton/index.less +1 -2
  618. package/lib/components/productCard/components/Header/EditButton/index.js +2 -1
  619. package/lib/components/productCard/components/Header/index.less +1 -1
  620. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +2 -3
  621. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +5 -5
  622. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
  623. package/lib/components/productCard/components/Time/components/SelectResource/index.js +3 -6
  624. package/lib/components/productCard/components/Time/index.js +2 -3
  625. package/lib/components/productCard/index.d.ts +1 -0
  626. package/lib/components/productCard/index.js +2 -0
  627. package/lib/components/productCard/lineItem/BookingLineItem.js +177 -0
  628. package/lib/components/productCard/lineItem/index.js +197 -0
  629. package/lib/components/productCard/lineItem/index.less +195 -0
  630. package/lib/components/productCard/lineItem/locales.js +25 -0
  631. package/lib/components/productCard/status.js +3 -0
  632. package/lib/components/productCard/types.d.ts +10 -0
  633. package/lib/components/productCard/utils.js +1 -1
  634. package/lib/components/select/index.js +1 -1
  635. package/lib/components/select-time/index.js +1 -0
  636. package/lib/components/table/Actions/component/ExportImport/index.js +4 -3
  637. package/lib/components/table/Actions/component/GallerySetting/index.js +11 -12
  638. package/lib/components/table/Actions/component/ViewMode/index.js +5 -6
  639. package/lib/components/table/Actions/index.js +1 -1
  640. package/lib/components/table/BasicTable/index.js +3 -4
  641. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  642. package/lib/components/table/Gallery/components/GalleryItem/index.js +9 -17
  643. package/lib/components/table/Gallery/components/GalleryItem/index.less +0 -1
  644. package/lib/components/table/Gallery/index.js +3 -11
  645. package/lib/components/table/Table/fields/text/Show/index.js +1 -1
  646. package/lib/components/table/Table/index.js +1 -2
  647. package/lib/components/table/Table/tableConfig/header/index.js +2 -2
  648. package/lib/components/table/Table/utils.js +1 -5
  649. package/lib/components/table/hooks/useTableSetting.js +0 -3
  650. package/lib/components/table/hooks/useTransDataSource.js +3 -4
  651. package/lib/components/table/index.js +1 -1
  652. package/lib/components/tabs/index.less +1 -1
  653. package/lib/components/translation/index.d.ts +0 -1
  654. package/lib/components/translation/index.js +9 -35
  655. package/lib/components/translation/index.less +0 -12
  656. package/lib/components/versionModal/index.d.ts +0 -1
  657. package/lib/components/versionModal/index.js +2 -2
  658. package/lib/components/versionSelect/index.js +4 -4
  659. package/lib/components/virtual-keyboard/Amount/index.js +4 -4
  660. package/lib/index.d.ts +101 -106
  661. package/lib/index.js +314 -298
  662. package/lib/locales/en-US.js +195 -70
  663. package/lib/locales/ja.js +196 -13
  664. package/lib/locales/pt.js +196 -13
  665. package/lib/locales/zh-CN.js +189 -64
  666. package/lib/locales/zh-TW.js +194 -69
  667. package/lib/pisell-materials.tw.css +0 -1
  668. package/lib/tailwind-input.css +3 -1
  669. package/package.json +1 -1
  670. package/es/components/PisellContactBrief/PisellContactBrief.d.ts +0 -34
  671. package/es/components/PisellContactBrief/PisellContactBrief.js +0 -156
  672. package/es/components/PisellContactBrief/PisellContactBrief.less +0 -192
  673. package/es/components/PisellContactBrief/components/ContactFormModal.js +0 -140
  674. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +0 -109
  675. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +0 -106
  676. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +0 -125
  677. package/es/components/PisellContactBrief/docs/PisellContactBrief.md +0 -129
  678. package/es/components/PisellContactBrief/index.d.ts +0 -2
  679. package/es/components/PisellContactBrief/locales.js +0 -57
  680. package/es/components/PisellContactBrief/types.d.ts +0 -86
  681. package/es/components/Template/[ComponentName].less +0 -1
  682. package/es/components/Template/docs/[ComponentName].$tab-design.md +0 -7
  683. package/es/components/Template/docs/[ComponentName].$tab-dev.md +0 -1137
  684. package/es/components/Template/docs/[ComponentName].$tab-test.md +0 -7
  685. package/es/components/Template/docs/[ComponentName].md +0 -510
  686. package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -25
  687. package/es/components/hardwareErrorTip/errorCard/index.js +0 -68
  688. package/es/components/hardwareErrorTip/errorCard/index.less +0 -137
  689. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -10
  690. package/es/components/hardwareErrorTip/errorTipStatistics/index.js +0 -31
  691. package/es/components/hardwareErrorTip/errorTipStatistics/index.less +0 -34
  692. package/es/components/hardwareErrorTip/index.d.ts +0 -20
  693. package/es/components/hardwareErrorTip/index.js +0 -151
  694. package/es/components/hardwareErrorTip/index.less +0 -95
  695. package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -25
  696. package/es/components/hardwareErrorTip/logCard/index.js +0 -72
  697. package/es/components/hardwareErrorTip/logCard/index.less +0 -121
  698. package/es/components/hardwareErrorTip/readme.md +0 -309
  699. package/es/components/hardwareErrorTip/types.js +0 -54
  700. package/es/components/pisellActionPanel/PisellActionPanel.d.ts +0 -24
  701. package/es/components/pisellActionPanel/PisellActionPanel.js +0 -68
  702. package/es/components/pisellActionPanel/PisellActionPanel.less +0 -69
  703. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +0 -148
  704. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +0 -53
  705. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +0 -64
  706. package/es/components/pisellActionPanel/docs/pisellActionPanel.md +0 -160
  707. package/es/components/pisellActionPanel/index.d.ts +0 -2
  708. package/es/components/pisellActionPanel/types.d.ts +0 -87
  709. package/es/components/pisellBaseCard/PisellBaseCard.d.ts +0 -20
  710. package/es/components/pisellBaseCard/PisellBaseCard.js +0 -73
  711. package/es/components/pisellBaseCard/PisellBaseCard.less +0 -25
  712. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +0 -144
  713. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +0 -92
  714. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +0 -86
  715. package/es/components/pisellBaseCard/docs/pisellBaseCard.md +0 -165
  716. package/es/components/pisellBaseCard/index.d.ts +0 -2
  717. package/es/components/pisellBaseCard/types.d.ts +0 -49
  718. package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +0 -57
  719. package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +0 -92
  720. package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +0 -8
  721. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +0 -115
  722. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +0 -73
  723. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +0 -66
  724. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +0 -132
  725. package/es/components/pisellCustomerBrief/index.d.ts +0 -2
  726. package/es/components/pisellCustomerBrief/types.d.ts +0 -86
  727. package/es/components/pisellEntityCard/PisellEntityCard.d.ts +0 -47
  728. package/es/components/pisellEntityCard/PisellEntityCard.js +0 -315
  729. package/es/components/pisellEntityCard/PisellEntityCard.less +0 -362
  730. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +0 -209
  731. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +0 -82
  732. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +0 -122
  733. package/es/components/pisellEntityCard/docs/pisellEntityCard.md +0 -176
  734. package/es/components/pisellEntityCard/index.d.ts +0 -2
  735. package/es/components/pisellEntityCard/types.d.ts +0 -148
  736. package/es/components/pisellExport/PisellExport.d.ts +0 -11
  737. package/es/components/pisellExport/PisellExport.js +0 -44
  738. package/es/components/pisellExport/PisellExport.less +0 -141
  739. package/es/components/pisellExport/docs/pisellExport.$tab-design.md +0 -116
  740. package/es/components/pisellExport/docs/pisellExport.$tab-dev.md +0 -132
  741. package/es/components/pisellExport/docs/pisellExport.$tab-test.md +0 -61
  742. package/es/components/pisellExport/docs/pisellExport.md +0 -162
  743. package/es/components/pisellExport/index.d.ts +0 -2
  744. package/es/components/pisellExport/types.d.ts +0 -67
  745. package/es/components/pisellImport/PisellImport.d.ts +0 -11
  746. package/es/components/pisellImport/PisellImport.js +0 -81
  747. package/es/components/pisellImport/PisellImport.less +0 -141
  748. package/es/components/pisellImport/docs/pisellImport.$tab-design.md +0 -121
  749. package/es/components/pisellImport/docs/pisellImport.$tab-dev.md +0 -137
  750. package/es/components/pisellImport/docs/pisellImport.$tab-test.md +0 -69
  751. package/es/components/pisellImport/docs/pisellImport.md +0 -174
  752. package/es/components/pisellImport/index.d.ts +0 -2
  753. package/es/components/pisellImport/types.d.ts +0 -89
  754. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -3811
  755. package/es/components/productCard/components/Header/Actions/index.less +0 -15
  756. package/es/theme/pisell-components.js +0 -76
  757. package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +0 -34
  758. package/lib/components/PisellContactBrief/PisellContactBrief.js +0 -158
  759. package/lib/components/PisellContactBrief/PisellContactBrief.less +0 -192
  760. package/lib/components/PisellContactBrief/components/ContactFormModal.js +0 -139
  761. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +0 -109
  762. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +0 -106
  763. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +0 -125
  764. package/lib/components/PisellContactBrief/docs/PisellContactBrief.md +0 -129
  765. package/lib/components/PisellContactBrief/index.d.ts +0 -2
  766. package/lib/components/PisellContactBrief/locales.js +0 -57
  767. package/lib/components/PisellContactBrief/types.d.ts +0 -86
  768. package/lib/components/Template/[ComponentName].less +0 -1
  769. package/lib/components/Template/docs/[ComponentName].$tab-design.md +0 -7
  770. package/lib/components/Template/docs/[ComponentName].$tab-dev.md +0 -1137
  771. package/lib/components/Template/docs/[ComponentName].$tab-test.md +0 -7
  772. package/lib/components/Template/docs/[ComponentName].md +0 -510
  773. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -25
  774. package/lib/components/hardwareErrorTip/errorCard/index.js +0 -71
  775. package/lib/components/hardwareErrorTip/errorCard/index.less +0 -137
  776. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -10
  777. package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +0 -34
  778. package/lib/components/hardwareErrorTip/errorTipStatistics/index.less +0 -34
  779. package/lib/components/hardwareErrorTip/index.d.ts +0 -20
  780. package/lib/components/hardwareErrorTip/index.js +0 -153
  781. package/lib/components/hardwareErrorTip/index.less +0 -95
  782. package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -25
  783. package/lib/components/hardwareErrorTip/logCard/index.js +0 -75
  784. package/lib/components/hardwareErrorTip/logCard/index.less +0 -121
  785. package/lib/components/hardwareErrorTip/readme.md +0 -309
  786. package/lib/components/hardwareErrorTip/types.js +0 -57
  787. package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +0 -24
  788. package/lib/components/pisellActionPanel/PisellActionPanel.js +0 -71
  789. package/lib/components/pisellActionPanel/PisellActionPanel.less +0 -69
  790. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +0 -148
  791. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +0 -53
  792. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +0 -64
  793. package/lib/components/pisellActionPanel/docs/pisellActionPanel.md +0 -160
  794. package/lib/components/pisellActionPanel/index.d.ts +0 -2
  795. package/lib/components/pisellActionPanel/types.d.ts +0 -87
  796. package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +0 -20
  797. package/lib/components/pisellBaseCard/PisellBaseCard.js +0 -76
  798. package/lib/components/pisellBaseCard/PisellBaseCard.less +0 -25
  799. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +0 -144
  800. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +0 -92
  801. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +0 -86
  802. package/lib/components/pisellBaseCard/docs/pisellBaseCard.md +0 -165
  803. package/lib/components/pisellBaseCard/index.d.ts +0 -2
  804. package/lib/components/pisellBaseCard/types.d.ts +0 -49
  805. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +0 -57
  806. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +0 -94
  807. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +0 -8
  808. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +0 -115
  809. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +0 -73
  810. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +0 -66
  811. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +0 -132
  812. package/lib/components/pisellCustomerBrief/index.d.ts +0 -2
  813. package/lib/components/pisellCustomerBrief/types.d.ts +0 -86
  814. package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +0 -47
  815. package/lib/components/pisellEntityCard/PisellEntityCard.js +0 -318
  816. package/lib/components/pisellEntityCard/PisellEntityCard.less +0 -362
  817. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +0 -209
  818. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +0 -82
  819. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +0 -122
  820. package/lib/components/pisellEntityCard/docs/pisellEntityCard.md +0 -176
  821. package/lib/components/pisellEntityCard/index.d.ts +0 -2
  822. package/lib/components/pisellEntityCard/types.d.ts +0 -148
  823. package/lib/components/pisellExport/PisellExport.d.ts +0 -11
  824. package/lib/components/pisellExport/PisellExport.js +0 -47
  825. package/lib/components/pisellExport/PisellExport.less +0 -141
  826. package/lib/components/pisellExport/docs/pisellExport.$tab-design.md +0 -116
  827. package/lib/components/pisellExport/docs/pisellExport.$tab-dev.md +0 -132
  828. package/lib/components/pisellExport/docs/pisellExport.$tab-test.md +0 -61
  829. package/lib/components/pisellExport/docs/pisellExport.md +0 -162
  830. package/lib/components/pisellExport/index.d.ts +0 -2
  831. package/lib/components/pisellExport/types.d.ts +0 -67
  832. package/lib/components/pisellImport/PisellImport.d.ts +0 -11
  833. package/lib/components/pisellImport/PisellImport.js +0 -84
  834. package/lib/components/pisellImport/PisellImport.less +0 -141
  835. package/lib/components/pisellImport/docs/pisellImport.$tab-design.md +0 -121
  836. package/lib/components/pisellImport/docs/pisellImport.$tab-dev.md +0 -137
  837. package/lib/components/pisellImport/docs/pisellImport.$tab-test.md +0 -69
  838. package/lib/components/pisellImport/docs/pisellImport.md +0 -174
  839. package/lib/components/pisellImport/index.d.ts +0 -2
  840. package/lib/components/pisellImport/types.d.ts +0 -89
  841. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -3813
  842. package/lib/components/productCard/components/Header/Actions/index.less +0 -15
  843. package/lib/theme/pisell-components.js +0 -76
  844. /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-design.md +0 -0
  845. /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-dev.md +0 -0
  846. /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-test.md +0 -0
  847. /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-design.md +0 -0
  848. /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-dev.md +0 -0
  849. /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-test.md +0 -0
@@ -1,17 +1,20 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
- import { getContentSize, getPixelBoundingBox } from "../utils/layoutMeasurements.js";
2
+ import { getPixelBoundingBox } from "../utils/layoutMeasurements.js";
3
+ import { computeFloorMapContentStage } from "../utils/floorMapCanvasStage.js";
4
+ import { readPersistedViewport, readPersistedViewportLock, writePersistedViewport, writePersistedViewportLock } from "./floorMapViewportPersistence.js";
3
5
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
4
6
  //#region src/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.ts
5
7
  /**
6
8
  * 视口 / 地图区尺寸、内容区宽高与偏移、缩放与全屏、fitBounds、拖拽图元后恢复 transform
7
9
  */
8
- /** 平面图包围盒单侧默认外扩(像素);过大会导致首屏大量空白 */
9
- const DEFAULT_BOUNDING_PADDING = 56;
10
- /** 视口内与首屏对齐时,图元束左上与容器边缘的留白 */
11
- const VIEWPORT_TOP_LEFT_MARGIN = 16;
10
+ /**
11
+ * react-zoom-pan-pinch:`setTransform` 未显式传 `animationTime` 时默认约 200ms 缓动;
12
+ * 兜底清除「全览激活保持」略大于该值,避免极少数帧未到容差时限位不解除。
13
+ */
14
+ const FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS = 400;
12
15
  function useFloorMapTransformMetrics(params) {
13
- const { items, cellSize, itemGap, effectiveItemUnit, isFloorMapView, mode, zoom, transformRef, contentOffsetRef, boundingPadding: boundingPaddingProp, frameResetKey } = params;
14
- const padSingle = boundingPaddingProp !== null && boundingPaddingProp !== void 0 ? boundingPaddingProp : DEFAULT_BOUNDING_PADDING;
16
+ const { items, cellSize, itemGap, effectiveItemUnit, isFloorMapView, mode, zoom, transformRef, contentOffsetRef, boundingPadding: boundingPaddingProp, frameResetKey, viewportPersistKey } = params;
17
+ const padSingle = boundingPaddingProp !== null && boundingPaddingProp !== void 0 ? boundingPaddingProp : 56;
15
18
  const containerRef = useRef(null);
16
19
  const mapAreaRef = useRef(null);
17
20
  const [viewportSize, setViewportSize] = useState({
@@ -72,37 +75,76 @@ function useFloorMapTransformMetrics(params) {
72
75
  ]);
73
76
  const [scale, setScale] = useState(zoomConfig.initialScale);
74
77
  const [isFullscreen, setIsFullscreen] = useState(false);
78
+ /**
79
+ * 「适配视口」激活态:当前 transform 与最近一次 fitBounds 计算出的目标 transform 在容差内一致时为 true。
80
+ * 由 fitBounds 写入快照、notifyTransformed 比较;用户主动拖动/缩放后立即失活。
81
+ */
82
+ const lastFitSnapshotRef = useRef(null);
83
+ const [isAtFitBounds, setIsAtFitBounds] = useState(false);
84
+ /**
85
+ * 程序化 fitBounds 使用库默认缓动时,`onTransformed` 中间帧与快照不等会关掉「全览」激活态。
86
+ * 缓动持有期内不按中间帧降级,仅在到达快照(容差内)或兜底超时后再按真实 transform 对齐。
87
+ */
88
+ const fitBoundsTweenHoldRef = useRef(false);
89
+ const fitBoundsTweenHoldClearTimerRef = useRef(null);
90
+ const clearFitBoundsTweenHold = useCallback(() => {
91
+ if (fitBoundsTweenHoldClearTimerRef.current != null) {
92
+ clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
93
+ fitBoundsTweenHoldClearTimerRef.current = null;
94
+ }
95
+ fitBoundsTweenHoldRef.current = false;
96
+ }, []);
97
+ /**
98
+ * 视口锁定态:有 viewportPersistKey 时按 key 读写到 localStorage;无 key 时仅组件内存态(不写本地)。
99
+ * - 切 / 挂载时:有 key 则读持久化初值;无 key 则默认未锁定;
100
+ * - 用户切换时:有 key 则写回 localStorage;
101
+ * - 锁定后 fitBounds / 程序化 zoom 入口与 PisellFloorMapLayout 透传到 TransformWrapper 的
102
+ * panning/wheel/pinch.disabled 共同把所有视角写入路径关闭。
103
+ * 切 canvas(key 变化)时跟随新 key 重新初始化,互不影响。
104
+ */
105
+ const [viewportLocked, setViewportLockedState] = useState(() => viewportPersistKey ? readPersistedViewportLock(viewportPersistKey) : false);
106
+ const viewportLockedRef = useRef(viewportLocked);
107
+ viewportLockedRef.current = viewportLocked;
108
+ useEffect(() => {
109
+ if (!viewportPersistKey) {
110
+ setViewportLockedState(false);
111
+ return;
112
+ }
113
+ setViewportLockedState(readPersistedViewportLock(viewportPersistKey));
114
+ }, [viewportPersistKey]);
115
+ const setViewportLocked = useCallback((next) => {
116
+ setViewportLockedState(next);
117
+ const key = viewportPersistKey;
118
+ if (!key) return;
119
+ writePersistedViewportLock(key, next);
120
+ }, [viewportPersistKey]);
121
+ const toggleViewportLocked = useCallback(() => {
122
+ setViewportLocked(!viewportLockedRef.current);
123
+ }, [setViewportLocked]);
75
124
  const { contentWidth, contentHeight, contentOffsetX, contentOffsetY, alignPadSingle } = useMemo(() => {
76
- const fromItems = getContentSize(items, cellSize, itemGap, effectiveItemUnit);
77
- const pad = padSingle * 2;
78
- const zeroOffset = {
79
- contentOffsetX: 0,
80
- contentOffsetY: 0
125
+ const stage = computeFloorMapContentStage({
126
+ items,
127
+ cellSize,
128
+ itemGap,
129
+ itemUnit: effectiveItemUnit,
130
+ boundingPadding: padSingle,
131
+ preferPixelBoundingBox: isFloorMapView
132
+ });
133
+ let result = {
134
+ contentWidth: stage.contentWidth,
135
+ contentHeight: stage.contentHeight,
136
+ contentOffsetX: stage.contentOffsetX,
137
+ contentOffsetY: stage.contentOffsetY,
138
+ alignPadSingle: stage.alignPadSingle
81
139
  };
82
- const box = isFloorMapView && effectiveItemUnit === "pixel" && items.length > 0 ? getPixelBoundingBox(items, cellSize) : null;
83
- let padded;
84
- let alignPad = null;
85
- if (box) {
86
- padded = {
87
- contentWidth: box.maxRight - box.minLeft + pad,
88
- contentHeight: box.maxBottom - box.minTop + pad,
89
- contentOffsetX: padSingle - box.minLeft,
90
- contentOffsetY: padSingle - box.minTop
91
- };
92
- alignPad = padSingle;
93
- } else padded = _objectSpread2({
94
- contentWidth: fromItems.contentWidth + pad,
95
- contentHeight: fromItems.contentHeight + pad
96
- }, zeroOffset);
97
- let result = _objectSpread2(_objectSpread2({}, padded), {}, { alignPadSingle: alignPad });
98
140
  /** 像素平面图:阅读态与编辑态均将内容区至少撑满视口,便于大空白处平移 */
99
141
  if (!isFloorMapView || effectiveItemUnit !== "pixel") return result;
100
142
  const vw = mapAreaSize.width > 0 ? mapAreaSize.width : viewportSize.width;
101
143
  const vh = mapAreaSize.height > 0 ? mapAreaSize.height : viewportSize.height;
102
144
  if (vw <= 0 || vh <= 0) return result;
103
145
  result = _objectSpread2(_objectSpread2({}, result), {}, {
104
- contentWidth: Math.max(padded.contentWidth, vw),
105
- contentHeight: Math.max(padded.contentHeight, vh)
146
+ contentWidth: Math.max(stage.contentWidth, vw),
147
+ contentHeight: Math.max(stage.contentHeight, vh)
106
148
  });
107
149
  return result;
108
150
  }, [
@@ -118,8 +160,8 @@ function useFloorMapTransformMetrics(params) {
118
160
  padSingle
119
161
  ]);
120
162
  const padForAlign = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
121
- const initialPositionX = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
122
- const initialPositionY = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
163
+ const initialPositionX = 16 - padForAlign * zoomConfig.initialScale;
164
+ const initialPositionY = 16 - padForAlign * zoomConfig.initialScale;
123
165
  contentOffsetRef.current = {
124
166
  x: contentOffsetX,
125
167
  y: contentOffsetY
@@ -171,69 +213,128 @@ function useFloorMapTransformMetrics(params) {
171
213
  transformRef,
172
214
  autoFitOnMount
173
215
  ]);
216
+ /**
217
+ * 伪全屏:用 `position: fixed; inset: 0` 撑满视口,不调用浏览器 Fullscreen API。
218
+ * 与「资源墙大屏」一致的体验:避免浏览器全屏带来的右键菜单受限、第三方弹层被全屏元素隔绝等。
219
+ *
220
+ * 对应 className 与 body overflow 锁定见 PisellFloorMapLayout.less 中
221
+ * `.pisell-floor-map-layout--pseudo-fullscreen` 与 `body.pisell-floor-map-layout-fullscreen-host`。
222
+ *
223
+ * 注意:不再监听 ESC 退出全屏。平面图编辑态全屏与编辑模式强绑定(PisellFloorMapLayout 中 effect),
224
+ * 若 ESC 直接 setIsFullscreen(false) 会立刻被同步 effect 拉回 true,徒增闪烁。
225
+ * 退出全屏 = 退出编辑,由顶栏退出按钮承担。
226
+ */
174
227
  useEffect(() => {
175
- const el = containerRef.current;
176
- if (!el) return;
177
- const onFullscreenChange = () => setIsFullscreen(document.fullscreenElement === el);
178
- document.addEventListener("fullscreenchange", onFullscreenChange);
179
- return () => document.removeEventListener("fullscreenchange", onFullscreenChange);
228
+ if (!isFullscreen) return;
229
+ if (typeof document === "undefined") return;
230
+ const bodyCls = "pisell-floor-map-layout-fullscreen-host";
231
+ document.body.classList.add(bodyCls);
232
+ return () => {
233
+ document.body.classList.remove(bodyCls);
234
+ };
235
+ }, [isFullscreen]);
236
+ /** 卸载兜底:组件被卸载时不要把 body 锁住的样式残留 */
237
+ useEffect(() => {
238
+ return () => {
239
+ if (typeof document === "undefined") return;
240
+ document.body.classList.remove("pisell-floor-map-layout-fullscreen-host");
241
+ };
180
242
  }, []);
181
243
  const toggleFullscreen = useCallback(() => {
182
- const el = containerRef.current;
183
- if (!el) return;
184
- if (document.fullscreenElement) {
185
- var _document$exitFullscr, _document;
186
- (_document$exitFullscr = (_document = document).exitFullscreen) === null || _document$exitFullscr === void 0 || _document$exitFullscr.call(_document);
187
- } else {
188
- var _el$requestFullscreen;
189
- (_el$requestFullscreen = el.requestFullscreen) === null || _el$requestFullscreen === void 0 || _el$requestFullscreen.call(el);
190
- }
244
+ setIsFullscreen((prev) => !prev);
191
245
  }, []);
246
+ /**
247
+ * 仅保留 fitBoundsRef 给手动 fitBounds 按钮用。
248
+ *
249
+ * 历史上这里有个 useEffect:进入伪全屏时自动 fitBounds 适配新视口。
250
+ * 但现在「编辑态自动全屏 + 视口持久化」的组合下,这会把用户上次保存的视角
251
+ * 覆盖成 fit 结果,导致每次进编辑都被强制全览,违背用户意图。
252
+ * 视口尺寸变化由 ResizeObserver 自然处理,transform 不变即「保留用户视角」。
253
+ */
254
+ const fitBoundsRef = useRef(null);
192
255
  /** @returns 是否已调用 setTransform(用于首屏 autoFit:避免空跑仍标记 done) */
193
256
  const fitBounds = useCallback(() => {
194
- var _zoom$max3;
257
+ /**
258
+ * 锁定态:拦截所有 fitBounds 触发路径(按钮 / autoFit useLayoutEffect / ref API),
259
+ * 让画布严格停留在用户锁定时的视角。返回 true 让 autoFit 调用方将 done 置位,
260
+ * 避免被无限重试占用 rAF。
261
+ */
262
+ if (viewportLockedRef.current) return true;
195
263
  const ctx = transformRef.current;
196
264
  const container = containerRef.current;
197
265
  if (!ctx || !container) return false;
198
266
  const wrapper = container.querySelector(".react-transform-wrapper");
199
267
  if (!wrapper) return false;
200
268
  const wrapperRect = wrapper.getBoundingClientRect();
201
- if (wrapperRect.width <= 0 || wrapperRect.height <= 0) return false;
269
+ const wEl = wrapper;
270
+ /**
271
+ * 祖先链上若有 transform: scale / zoom,getBoundingClientRect 为「视觉」尺寸,
272
+ * clientWidth/Height 为布局盒尺寸。react-zoom-pan-pinch 的平移/缩放工作在布局坐标系,
273
+ * 若全览仅用 rect 算 avail 与 position,会与库内部不一致(日志:visual/layout≈0.864)。
274
+ */
275
+ const layoutW = wEl.clientWidth > 0 ? wEl.clientWidth : wrapperRect.width;
276
+ const layoutH = wEl.clientHeight > 0 ? wEl.clientHeight : wrapperRect.height;
277
+ if (layoutW <= 0 || layoutH <= 0) return false;
278
+ /** 程序化 setTransform 默认带缓动:写入快照后立即保持「全览激活」,缓动结束前不因中间帧关掉 */
279
+ const applyProgrammaticFit = (fx, fy, fScale) => {
280
+ clearFitBoundsTweenHold();
281
+ lastFitSnapshotRef.current = {
282
+ x: fx,
283
+ y: fy,
284
+ scale: fScale
285
+ };
286
+ setIsAtFitBounds(true);
287
+ fitBoundsTweenHoldRef.current = true;
288
+ fitBoundsTweenHoldClearTimerRef.current = setTimeout(() => {
289
+ fitBoundsTweenHoldClearTimerRef.current = null;
290
+ fitBoundsTweenHoldRef.current = false;
291
+ const cur = lastTransformRef.current;
292
+ const s = lastFitSnapshotRef.current;
293
+ if (!s) return;
294
+ setIsAtFitBounds(Math.abs(s.x - cur.x) < .5 && Math.abs(s.y - cur.y) < .5 && Math.abs(s.scale - cur.scale) < .005);
295
+ }, FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS);
296
+ ctx.setTransform(fx, fy, fScale);
297
+ };
202
298
  /**
203
299
  * 平面图像素模式:按「图元轴对齐包围盒」缩放并居中,不按整块 content(含编辑态撑满视口的空白)适配。
204
300
  * 画布 DOM 尺寸与网格空白不变,仅改变视口 transform;视口边可贴边(edgePx=0)。
205
301
  */
206
302
  const pixelBox = isFloorMapView && effectiveItemUnit === "pixel" && items.length > 0 ? getPixelBoundingBox(items, cellSize) : null;
303
+ /**
304
+ * 把按容器算出来的 raw fit 缩放夹到 `[zoom.min, zoom.max]`:
305
+ * - 上限保留原行为,避免 1×1 内容被放到比 max 还大;
306
+ * - **下限新增**:全览态下多画布拼合后 raw 经常 < minScale(如 40%),
307
+ * 原先直接落到 raw 会让 TransformWrapper 处于「比配置最小缩放更小」的
308
+ * 状态,用户再用鼠标 / +/- 一动就跳回 minScale,体验很怪。
309
+ * 夹到 minScale 后会自动按真实 minScale 居中,超出部分由用户平移浏览。
310
+ */
311
+ const clampFitScale = (raw) => {
312
+ var _zoom$min2, _zoom$max2;
313
+ return Math.max((_zoom$min2 = zoom.min) !== null && _zoom$min2 !== void 0 ? _zoom$min2 : .5, Math.min(raw, (_zoom$max2 = zoom.max) !== null && _zoom$max2 !== void 0 ? _zoom$max2 : 2));
314
+ };
207
315
  if (pixelBox) {
208
- var _zoom$max2;
209
316
  const bw = Math.max(1, pixelBox.maxRight - pixelBox.minLeft);
210
317
  const bh = Math.max(1, pixelBox.maxBottom - pixelBox.minTop);
211
318
  const edgePx = 0;
212
- const availW = Math.max(1, wrapperRect.width - 2 * edgePx);
213
- const availH = Math.max(1, wrapperRect.height - 2 * edgePx);
214
- const raw = Math.min(availW / bw, availH / bh);
215
- const nextScale = Math.min(raw, (_zoom$max2 = zoom.max) !== null && _zoom$max2 !== void 0 ? _zoom$max2 : 2);
319
+ const availW = Math.max(1, layoutW - 2 * edgePx);
320
+ const availH = Math.max(1, layoutH - 2 * edgePx);
321
+ const nextScale = clampFitScale(Math.min(availW / bw, availH / bh));
216
322
  const ap = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : padSingle;
217
323
  const bboxCx = ap + bw / 2;
218
324
  const bboxCy = ap + bh / 2;
219
- const x = wrapperRect.width / 2 - bboxCx * nextScale;
220
- const y = wrapperRect.height / 2 - bboxCy * nextScale;
221
- ctx.setTransform(x, y, nextScale);
325
+ applyProgrammaticFit(layoutW / 2 - bboxCx * nextScale, layoutH / 2 - bboxCy * nextScale, nextScale);
222
326
  return true;
223
327
  }
224
328
  if (contentWidth <= 0 || contentHeight <= 0) return false;
225
- /** 非平面图或无图元:仍按整块 content 适配 */
226
- const raw = Math.min(wrapperRect.width / contentWidth, wrapperRect.height / contentHeight);
227
- const nextScale = Math.min(raw, (_zoom$max3 = zoom.max) !== null && _zoom$max3 !== void 0 ? _zoom$max3 : 2);
329
+ const nextScale = clampFitScale(Math.min(layoutW / contentWidth, layoutH / contentHeight));
228
330
  const padA = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
229
- const x = VIEWPORT_TOP_LEFT_MARGIN - padA * nextScale;
230
- const y = VIEWPORT_TOP_LEFT_MARGIN - padA * nextScale;
231
- ctx.setTransform(x, y, nextScale);
331
+ applyProgrammaticFit(16 - padA * nextScale, 16 - padA * nextScale, nextScale);
232
332
  return true;
233
333
  }, [
334
+ clearFitBoundsTweenHold,
234
335
  contentWidth,
235
336
  contentHeight,
236
- zoom.max,
337
+ zoom,
237
338
  transformRef,
238
339
  alignPadSingle,
239
340
  isFloorMapView,
@@ -242,6 +343,8 @@ function useFloorMapTransformMetrics(params) {
242
343
  cellSize,
243
344
  padSingle
244
345
  ]);
346
+ /** 让"进入伪全屏后自动 fit"的 effect 能拿到最新的 fitBounds 实现 */
347
+ fitBoundsRef.current = fitBounds;
245
348
  /**
246
349
  * autoFitOnMount:每个画布在「有图元且 content 尺寸已按包围盒算好」后执行一次 fitBounds。
247
350
  * 避免首帧 items 仍为空时用占位尺寸 fit 完并标记 done,导致异步图元加载后不再适配。
@@ -252,6 +355,13 @@ function useFloorMapTransformMetrics(params) {
252
355
  });
253
356
  const prevItemsCountForAutoFitRef = useRef(null);
254
357
  /**
358
+ * 记录「本 frame 的 transform 已由视口缓存接管」:
359
+ * 命中 localStorage 恢复或 restore effect 完成后写入当前 frame。
360
+ * 只要等于当前 frame,autoFit 所有分支(包括 items 从 0→N 的 reset done)一律放弃,
361
+ * 防止 items 异步加载后 autoFit 覆盖恢复值 → onTransformed 又把 fit 结果回写到 localStorage。
362
+ */
363
+ const cachedRestoredFrameRef = useRef("");
364
+ /**
255
365
  * 首屏 auto fit:时序上易出现「Transform 未挂载 / wrapper 尺寸为 0 / 内容区尚未提交」,
256
366
  * 用 layoutEffect + 双 rAF 贴近浏览器布局完成时刻;仅 fitBounds 真正 setTransform 后才记 done;
257
367
  * viewportSize 纳入依赖以便父级 flex 迟到的尺寸更新后重试(超次不伪造 done)。
@@ -265,10 +375,24 @@ function useFloorMapTransformMetrics(params) {
265
375
  done: false
266
376
  };
267
377
  prevItemsCountForAutoFitRef.current = null;
378
+ /**
379
+ * 命中视口缓存:跳过本帧 autoFit,让恢复 effect 用缓存 transform 接管。
380
+ * 避免「先 autoFit 一次再被恢复覆盖」造成的视觉闪烁。
381
+ * 同步打上「缓存接管」标记,防止下面的「items 0→N reset done」再度启用 autoFit
382
+ * 覆盖恢复值并把 fit 结果通过 onTransformed 回写 localStorage。
383
+ */
384
+ if (viewportPersistKey && readPersistedViewport(viewportPersistKey)) {
385
+ autoFitOnceRef.current.done = true;
386
+ cachedRestoredFrameRef.current = frame;
387
+ } else if (cachedRestoredFrameRef.current !== frame) cachedRestoredFrameRef.current = "";
268
388
  }
269
389
  const itemCount = items.length;
270
390
  const prevN = prevItemsCountForAutoFitRef.current;
271
- if (prevN !== null && prevN === 0 && itemCount > 0) autoFitOnceRef.current.done = false;
391
+ /**
392
+ * 已由缓存接管本 frame 的 transform:items 异步加载完成后绝不重新启用 autoFit,
393
+ * 否则会把用户上次拖拽的位置覆盖成适配视口,且被 onTransformed 回写 localStorage。
394
+ */
395
+ if (prevN !== null && prevN === 0 && itemCount > 0 && cachedRestoredFrameRef.current !== frame) autoFitOnceRef.current.done = false;
272
396
  prevItemsCountForAutoFitRef.current = itemCount;
273
397
  if (autoFitOnceRef.current.done) return;
274
398
  if (effectiveItemUnit === "pixel" && itemCount === 0) return;
@@ -326,7 +450,8 @@ function useFloorMapTransformMetrics(params) {
326
450
  mapAreaSize.width,
327
451
  mapAreaSize.height,
328
452
  fitBounds,
329
- transformRef
453
+ transformRef,
454
+ viewportPersistKey
330
455
  ]);
331
456
  const lastTransformRef = useRef({
332
457
  x: 0,
@@ -349,6 +474,208 @@ function useFloorMapTransformMetrics(params) {
349
474
  });
350
475
  return () => cancelAnimationFrame(raf);
351
476
  }, [isInteractingWithElement, transformRef]);
477
+ /**
478
+ * 视口持久化:写入节流 + 切 canvas 时清掉 pending;
479
+ * persistKeyRef 保证 debounce 触发时仍然写到「触发时刻」对应的 key(避免 key 变化后被错位写入)。
480
+ */
481
+ const persistKeyRef = useRef(viewportPersistKey);
482
+ persistKeyRef.current = viewportPersistKey;
483
+ const persistTimerRef = useRef(null);
484
+ const flushPersistRef = useRef(null);
485
+ const schedulePersistViewport = useCallback((snapshot) => {
486
+ const key = persistKeyRef.current;
487
+ if (!key) return;
488
+ if (persistTimerRef.current != null) {
489
+ clearTimeout(persistTimerRef.current);
490
+ persistTimerRef.current = null;
491
+ }
492
+ const targetKey = key;
493
+ const doWrite = () => {
494
+ persistTimerRef.current = null;
495
+ flushPersistRef.current = null;
496
+ writePersistedViewport(targetKey, snapshot);
497
+ };
498
+ flushPersistRef.current = doWrite;
499
+ persistTimerRef.current = setTimeout(doWrite, 300);
500
+ }, []);
501
+ /**
502
+ * 由 onTransformed 回调统一上报当前 transform:
503
+ * - 写 lastTransformRef(替代父组件直接赋值)
504
+ * - 与最近一次 fitBounds 快照比较,更新激活态
505
+ *
506
+ * ❗注意:故意不在这里写 localStorage。
507
+ * react-zoom-pan-pinch 在挂载、`setTransform`、`fitBounds`、`resetTransform` 等程序化路径
508
+ * 也会触发 onTransformed(含挂载初始值 {x:16, y:16, scale:1}),若在此持久化,
509
+ * wrapper 重挂载时会用这份"初始值"覆盖 localStorage 里用户上次保存的视角。
510
+ * 持久化改由 onPanningStop / onPinchingStop / onZoomStop / onWheelStop 触发,
511
+ * 那些事件只在「用户真的拖完/缩放完」时才发生。
512
+ */
513
+ const notifyTransformed = useCallback((x, y, nextScale) => {
514
+ lastTransformRef.current = {
515
+ x,
516
+ y,
517
+ scale: nextScale
518
+ };
519
+ const snap = lastFitSnapshotRef.current;
520
+ if (snap) {
521
+ const same = Math.abs(snap.x - x) < .5 && Math.abs(snap.y - y) < .5 && Math.abs(snap.scale - nextScale) < .005;
522
+ if (fitBoundsTweenHoldRef.current) {
523
+ if (same) {
524
+ clearFitBoundsTweenHold();
525
+ setIsAtFitBounds(true);
526
+ }
527
+ /** 缓动中间帧:保持已设的「全览激活」,不因尚未对齐快照而关掉 */
528
+ return;
529
+ }
530
+ setIsAtFitBounds((prev) => prev === same ? prev : same);
531
+ } else setIsAtFitBounds((prev) => prev ? false : prev);
532
+ }, [clearFitBoundsTweenHold]);
533
+ /**
534
+ * 用户交互结束时(pan / zoom / pinch / wheel stop)调用:
535
+ * 以 lastTransformRef 当前值为快照写 localStorage(debounce 兜底高频 stop)。
536
+ * 程序化的 setTransform / fitBounds / 挂载初始化都不会调这里,避免污染缓存。
537
+ */
538
+ const persistCurrentViewport = useCallback(() => {
539
+ const snapshot = lastTransformRef.current;
540
+ schedulePersistViewport({
541
+ x: snapshot.x,
542
+ y: snapshot.y,
543
+ scale: snapshot.scale
544
+ });
545
+ }, [schedulePersistViewport]);
546
+ /** 让 restore 路径读到最新 frameResetKey,避免 closure 过期 */
547
+ const frameResetKeyRef = useRef(frameResetKey);
548
+ frameResetKeyRef.current = frameResetKey;
549
+ const viewportPersistKeyRef = useRef(viewportPersistKey);
550
+ viewportPersistKeyRef.current = viewportPersistKey;
551
+ /**
552
+ * 把缓存视角立即贴到画布上的统一入口(restore effect 与 attachTransformContext 共用)。
553
+ *
554
+ * 关键点:
555
+ * 1. setTransform 的 animationTime 必须传 0:
556
+ * - react-zoom-pan-pinch 默认 200ms 缓动;
557
+ * - 首屏若 namespace 异步、autoFit 抢先 setTransform(fit) 并仍在缓动中,
558
+ * restore 这次 setTransform 会被库认为是「动画过程中无意义的同向 set」吃掉
559
+ * 或与原动画合成,最终视觉停在 fit 处;
560
+ * - 传 0 等价于"立即落点",强制覆盖任何在飞动画。
561
+ * 2. 命中后立刻把 cachedRestoredFrameRef / autoFit done / initialAlign done 都打上,
562
+ * 防止后续 effect 反向覆盖缓存值。
563
+ */
564
+ const applyPersistedViewport = useCallback((cached) => {
565
+ clearFitBoundsTweenHold();
566
+ const ctx = transformRef.current;
567
+ if (!ctx) return false;
568
+ ctx.setTransform(cached.x, cached.y, cached.scale, 0);
569
+ lastTransformRef.current = _objectSpread2({}, cached);
570
+ lastFitSnapshotRef.current = null;
571
+ setIsAtFitBounds(false);
572
+ autoFitOnceRef.current.done = true;
573
+ initialAlignRef.current.done = true;
574
+ const currentFrame = frameResetKeyRef.current;
575
+ if (currentFrame !== void 0) cachedRestoredFrameRef.current = String(currentFrame);
576
+ return true;
577
+ }, [clearFitBoundsTweenHold, transformRef]);
578
+ /**
579
+ * 切换 viewportPersistKey 或 frameResetKey 时(含挂载、wrapper 重挂载):
580
+ * 尝试从 localStorage 读取上次视角并恢复。命中缓存 → 阻止本帧 autoFitOnMount /
581
+ * 首次左上对齐覆盖。未命中保持原行为。
582
+ *
583
+ * ❗frameResetKey 必须在依赖里:
584
+ * `transformWrapperKey` 在远端配置(boundingPadding / defaultScale)回包后会变,
585
+ * 触发 TransformWrapper 卸载重挂载并以 `initialPositionX/Y/Scale` (≈16,16,1) 渲染。
586
+ * 仅依赖 viewportPersistKey 时此处不会重跑,画布会停在初始 transform,
587
+ * 用户上次保存的视角虽然在 localStorage 里却没"贴回"画布。
588
+ */
589
+ useEffect(() => {
590
+ if (!viewportPersistKey) return;
591
+ const cached = readPersistedViewport(viewportPersistKey);
592
+ if (!cached) return;
593
+ let cancelled = false;
594
+ let raf1 = 0;
595
+ let raf2 = 0;
596
+ let attempts = 0;
597
+ const MAX_ATTEMPTS = 60;
598
+ const tick = () => {
599
+ if (cancelled) return;
600
+ if (!applyPersistedViewport(cached)) {
601
+ if (attempts++ < MAX_ATTEMPTS) raf1 = requestAnimationFrame(tick);
602
+ }
603
+ };
604
+ /** 双 rAF:等 TransformWrapper 的 ctx 就绪后再写 */
605
+ raf1 = requestAnimationFrame(() => {
606
+ raf2 = requestAnimationFrame(tick);
607
+ });
608
+ return () => {
609
+ cancelled = true;
610
+ cancelAnimationFrame(raf1);
611
+ cancelAnimationFrame(raf2);
612
+ };
613
+ }, [
614
+ viewportPersistKey,
615
+ frameResetKey,
616
+ applyPersistedViewport
617
+ ]);
618
+ /**
619
+ * PisellFloorMapLayout 在 TransformWrapper children render 中调用:
620
+ * {(ctx) => { attachTransformContext(ctx); return <>...</> }}
621
+ *
622
+ * 用途:wrapper 首次挂载 / 重挂载时,立刻 schedule 一次 restore,
623
+ * 避免依赖 useEffect、namespace 异步、autoFit 抢先 setTransform 之间的复杂时序。
624
+ *
625
+ * ⚠️ 不要用「ctx 引用是否变化」做去重:
626
+ * react-zoom-pan-pinch 在每次内部状态更新(缩放 / 平移过程中的 onTransformed)
627
+ * 都会让父组件重 render,children render 函数会再次被调用,部分版本下 ctx 是新对象引用。
628
+ * 一旦把它判成「新 ctx」再次 schedule restore,就会把用户刚做的缩放/平移
629
+ * 又覆盖回缓存,表现成「拖动可以,缩放回弹/缩放不动」。
630
+ *
631
+ * 改用 cachedRestoredFrameRef 做幂等:每个 frame(= TransformWrapper 的 key)
632
+ * 在生命周期内只 restore 一次。frame 真变化(wrapper 卸载重挂载)时,autoFit
633
+ * useLayoutEffect 的 reset 分支会清掉 / 重置该 ref,attach 自然能再次触发。
634
+ */
635
+ const attachTransformContext = useCallback((ctx) => {
636
+ transformRef.current = ctx;
637
+ const key = viewportPersistKeyRef.current;
638
+ const currentFrame = frameResetKeyRef.current;
639
+ if (!key || currentFrame === void 0) return;
640
+ const frameStr = String(currentFrame);
641
+ /** 该 frame 已经 restore 过(attach 触发或 autoFit reset 分支命中均会标记) */
642
+ if (cachedRestoredFrameRef.current === frameStr) return;
643
+ const cached = readPersistedViewport(key);
644
+ if (!cached) return;
645
+ /**
646
+ * 立刻占座:避免本帧后续如果触发 attach 重入 / restore useEffect 同步跑
647
+ * 出现两条 setTransform 路径并发。applyPersistedViewport 内部还会再设一次
648
+ * (等于幂等)。
649
+ */
650
+ cachedRestoredFrameRef.current = frameStr;
651
+ /**
652
+ * 双 rAF 等 wrapper 内部 useEffect / 初始 onTransformed 走完,
653
+ * 否则可能被库的 init 回调把 transform 又重置回 initial。
654
+ */
655
+ requestAnimationFrame(() => {
656
+ requestAnimationFrame(() => {
657
+ /** 等待期间 frame 又变了(快速切画布)则交给新 frame 的 attach 处理 */
658
+ if (frameResetKeyRef.current !== currentFrame) return;
659
+ applyPersistedViewport(cached);
660
+ });
661
+ });
662
+ }, [transformRef, applyPersistedViewport]);
663
+ /** 卸载 / key 变化时把待写的视口立刻 flush,避免快速来回切丢失最后一次操作 */
664
+ useEffect(() => {
665
+ return () => {
666
+ var _flushPersistRef$curr;
667
+ if (persistTimerRef.current != null) {
668
+ clearTimeout(persistTimerRef.current);
669
+ persistTimerRef.current = null;
670
+ }
671
+ (_flushPersistRef$curr = flushPersistRef.current) === null || _flushPersistRef$curr === void 0 || _flushPersistRef$curr.call(flushPersistRef);
672
+ flushPersistRef.current = null;
673
+ if (fitBoundsTweenHoldClearTimerRef.current != null) {
674
+ clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
675
+ fitBoundsTweenHoldClearTimerRef.current = null;
676
+ }
677
+ };
678
+ }, [viewportPersistKey]);
352
679
  return {
353
680
  containerRef,
354
681
  mapAreaRef,
@@ -366,9 +693,16 @@ function useFloorMapTransformMetrics(params) {
366
693
  isFullscreen,
367
694
  toggleFullscreen,
368
695
  fitBounds,
696
+ isAtFitBounds,
697
+ notifyTransformed,
698
+ persistCurrentViewport,
699
+ attachTransformContext,
369
700
  lastTransformRef,
370
701
  isInteractingWithElement,
371
- setIsInteractingWithElement
702
+ setIsInteractingWithElement,
703
+ viewportLocked,
704
+ setViewportLocked,
705
+ toggleViewportLocked
372
706
  };
373
707
  }
374
708
  //#endregion
@@ -1,7 +1,9 @@
1
- import { DataSourceFormColumn, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FloorMapBackgroundType, FloorMapCanvas, FloorMapCanvasNameI18n, FloorMapCanvasUiConfig, FloorMapControlsConfig, FloorMapDataSourceRecordFormContent, FloorMapDataSources, FloorMapEdge, FloorMapElementDataBindingPolicy, FloorMapElementDefaultPresentation, FloorMapElementKindCategory, FloorMapElementKindConfig, FloorMapFullscreenMode, FloorMapGridLayoutConfig, FloorMapItemBase, FloorMapItemShape, FloorMapItemUnit, FloorMapLayerConfig, FloorMapLayoutContextValue, FloorMapLayoutMode, FloorMapMergedItem, FloorMapPanBoundary, FloorMapPanConfig, FloorMapRecordFormRenderContext, FloorMapRenderOptions, FloorMapSceneElement, FloorMapSceneElementDataBinding, FloorMapTextSlot, FloorMapViewConfig, FloorMapViewportOverlayRenderArgs, FloorMapZoomConfig, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "./types.js";
1
+ import { DataSourceFormColumn, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FloorMapBackgroundType, FloorMapCanvas, FloorMapCanvasNameI18n, FloorMapCanvasUiConfig, FloorMapControlsConfig, FloorMapDataSourceRecordFormContent, FloorMapDataSources, FloorMapEdge, FloorMapElementDataBindingPolicy, FloorMapElementDefaultPresentation, FloorMapElementKindCategory, FloorMapElementKindConfig, FloorMapFullscreenMode, FloorMapGridLayoutConfig, FloorMapItemBase, FloorMapItemShape, FloorMapItemUnit, FloorMapLayerConfig, FloorMapLayoutContextValue, FloorMapLayoutMode, FloorMapMergedItem, FloorMapPanBoundary, FloorMapPanConfig, FloorMapRecordFormRenderContext, FloorMapRenderOptions, FloorMapSceneElement, FloorMapSceneElementDataBinding, FloorMapTextSlot, FloorMapViewConfig, FloorMapViewportOverlayRenderArgs, FloorMapZoomConfig, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "./types.js";
2
2
  import { PisellFloorMapLayout } from "./PisellFloorMapLayout.js";
3
3
  import { renderFloorMapFallbackPlaceholder } from "./utils/floorMapFallbackRender.js";
4
- import { isFloorMapImageElementKind } from "./utils/floorMapElementKindUtils.js";
4
+ import { isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind } from "./utils/floorMapElementKindUtils.js";
5
+ import { FLOOR_MAP_BUILTIN_SHAPES, FloorMapBuiltinShapeDef, FloorMapBuiltinShapeRenderProps, getFloorMapBuiltinShapeDef } from "./utils/floorMapBuiltinShapes.js";
6
+ import { NAME_AS_TITLE_EXT_KEY, buildNameAsTitleExtensionsPatch, isElementNameAsTitleEnabled, resolveSceneElementDisplayTitle } from "./utils/floorMapElementNameAsTitle.js";
5
7
  import { FloorMapBindingPlaceholderReason, FloorMapDataSourceRow, findFloorMapRowByDataBinding, getFloorMapBindingPlaceholderReason } from "./utils/floorMapDataBindingUtils.js";
6
8
  import { CreateShopFloorPlanClientOptions, EnsureShopFloorPlanByCodeOptions, PostShopFloorPlanBody, PutShopFloorPlanBody, SHOP_FLOOR_PLAN_DUPLICATE_CODE, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanHttpAdapter, ShopFloorPlanLayoutItem } from "./shopFloorPlan/shopFloorPlanTypes.js";
7
9
  import { createShopFloorPlanClient } from "./shopFloorPlan/shopFloorPlanClient.js";
@@ -12,4 +14,5 @@ import { WrapFloorMapOnSaveWithRemotePersistParams, wrapFloorMapOnSaveWithRemote
12
14
  import { EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, FloorMapLayoutProvider, FloorMapLayoutProviderProps, useFloorMapLayoutContext } from "./context/FloorMapLayoutContext.js";
13
15
  import { mergeFloorMapLayoutPropsFromContext } from "./context/mergeFloorMapLayoutContext.js";
14
16
  import { FloorMapImageElement } from "./components/FloorMapImageElement.js";
17
+ import { FloorMapBuiltinShapeElement } from "./components/FloorMapBuiltinShapeElement.js";
15
18
  import { FigmaTableCardItem, FigmaTableStatus, getFigmaTableCardFromMerged, getRenderItemByKindRoundTable, getRenderItemByKindTable, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard } from "./components/FigmaTableCard.js";