@pisell/materials 1.8.38 → 1.8.41

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 (758) 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 +216 -51
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +216 -51
  9. package/es/components/Pagination/index.js +9 -43
  10. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
  11. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
  12. package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
  13. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
  14. package/es/components/PisellCards/components/TextCard/TextCard.js +2 -3
  15. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
  16. package/es/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
  17. package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
  18. package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
  19. package/es/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
  20. package/es/components/PisellCards/index.d.ts +3 -0
  21. package/es/components/PisellCards/index.js +3 -1
  22. package/es/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
  23. package/es/components/PisellContactBrief/PisellContactBrief.js +156 -0
  24. package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
  25. package/es/components/PisellContactBrief/components/ContactFormModal.js +140 -0
  26. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
  27. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
  28. package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
  29. package/es/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
  30. package/es/components/PisellContactBrief/index.d.ts +2 -0
  31. package/es/components/PisellContactBrief/locales.js +57 -0
  32. package/es/components/PisellContactBrief/types.d.ts +86 -0
  33. package/es/components/PisellLayouts/index.d.ts +1 -1
  34. package/es/components/PisellProcedure/components/ProcedureHeader.js +1 -1
  35. package/es/components/PisellTabbar/PisellTabbar.js +1 -1
  36. package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -1
  37. package/es/components/Template/[ComponentName].less +1 -0
  38. package/es/components/Template/docs/[ComponentName].$tab-design.md +7 -0
  39. package/es/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
  40. package/es/components/Template/docs/[ComponentName].$tab-test.md +7 -0
  41. package/es/components/Template/docs/[ComponentName].md +510 -0
  42. package/es/components/appVersionControl/index.js +3 -2
  43. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -4
  44. package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
  45. package/es/components/dataSourceComponents/dataSourceForm/index.js +1 -1
  46. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
  47. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
  48. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
  49. package/es/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
  50. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
  51. package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
  52. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
  53. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  54. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
  55. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
  56. package/es/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
  57. package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
  58. package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
  59. package/es/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
  60. package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +1 -1
  61. package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
  62. package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
  63. package/es/components/drag-sort-tree/index.d.ts +1 -0
  64. package/es/components/drag-sort-tree/index.js +0 -1
  65. package/es/components/drawer/index.js +7 -6
  66. package/es/components/filter/components/FilterItem/index.js +1 -3
  67. package/es/components/filter/components/QuickFilter/index.js +2 -3
  68. package/es/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
  69. package/es/components/hardwareErrorTip/errorCard/index.js +68 -0
  70. package/es/components/hardwareErrorTip/errorCard/index.less +137 -0
  71. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
  72. package/es/components/hardwareErrorTip/errorTipStatistics/index.js +31 -0
  73. package/es/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
  74. package/es/components/hardwareErrorTip/index.d.ts +20 -0
  75. package/es/components/hardwareErrorTip/index.js +151 -0
  76. package/es/components/hardwareErrorTip/index.less +95 -0
  77. package/es/components/hardwareErrorTip/logCard/index.d.ts +25 -0
  78. package/es/components/hardwareErrorTip/logCard/index.js +72 -0
  79. package/es/components/hardwareErrorTip/logCard/index.less +121 -0
  80. package/es/components/hardwareErrorTip/readme.md +309 -0
  81. package/es/components/hardwareErrorTip/types.js +54 -0
  82. package/es/components/iconfont/index.js +1 -1
  83. package/es/components/login-and-register/index.js +4 -5
  84. package/es/components/page/index.js +1 -1
  85. package/es/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
  86. package/es/components/pisellActionPanel/PisellActionPanel.js +68 -0
  87. package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
  88. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
  89. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
  90. package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
  91. package/es/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
  92. package/es/components/pisellActionPanel/index.d.ts +2 -0
  93. package/es/components/pisellActionPanel/types.d.ts +87 -0
  94. package/es/components/pisellAppCard/PisellAppCard.js +1 -1
  95. package/es/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
  96. package/es/components/pisellBaseCard/PisellBaseCard.js +73 -0
  97. package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
  98. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
  99. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
  100. package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
  101. package/es/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
  102. package/es/components/pisellBaseCard/index.d.ts +2 -0
  103. package/es/components/pisellBaseCard/types.d.ts +49 -0
  104. package/es/components/pisellCardList/index.js +1 -1
  105. package/es/components/pisellCurrency/PisellCurrency.js +13 -6
  106. package/es/components/pisellCurrency/PisellCurrency.less +0 -123
  107. package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
  108. package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +92 -0
  109. package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
  110. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
  111. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
  112. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
  113. package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
  114. package/es/components/pisellCustomerBrief/index.d.ts +2 -0
  115. package/es/components/pisellCustomerBrief/types.d.ts +86 -0
  116. package/es/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
  117. package/es/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
  118. package/es/components/pisellDataSourceContainer/type.d.ts +1 -1
  119. package/es/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
  120. package/es/components/pisellEmail/PisellEmail.js +13 -6
  121. package/es/components/pisellEmail/PisellEmail.less +0 -92
  122. package/es/components/pisellEmpty/index.d.ts +1 -1
  123. package/es/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
  124. package/es/components/pisellEntityCard/PisellEntityCard.js +315 -0
  125. package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
  126. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
  127. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
  128. package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
  129. package/es/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
  130. package/es/components/pisellEntityCard/index.d.ts +2 -0
  131. package/es/components/pisellEntityCard/types.d.ts +148 -0
  132. package/es/components/pisellExport/PisellExport.d.ts +11 -0
  133. package/es/components/pisellExport/PisellExport.js +44 -0
  134. package/es/components/pisellExport/PisellExport.less +141 -0
  135. package/es/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
  136. package/es/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
  137. package/es/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
  138. package/es/components/pisellExport/docs/pisellExport.md +162 -0
  139. package/es/components/pisellExport/index.d.ts +2 -0
  140. package/es/components/pisellExport/types.d.ts +67 -0
  141. package/es/components/pisellFilter/docs/PisellFilter.md +2 -2
  142. package/es/components/pisellFind/docs/pisellFind.md +2 -2
  143. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
  144. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
  145. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
  146. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
  147. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
  148. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
  149. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +5 -40
  150. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +12 -131
  151. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
  152. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +3 -24
  153. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
  154. package/es/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
  155. package/es/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
  156. package/es/components/pisellFloorMapLayout/components/ViewControls.js +65 -119
  157. package/es/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
  158. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
  159. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
  160. package/es/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
  161. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
  162. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
  163. package/es/components/pisellFloorMapLayout/index.d.ts +0 -1
  164. package/es/components/pisellFloorMapLayout/locales-ja.js +1 -21
  165. package/es/components/pisellFloorMapLayout/locales-pt.js +1 -21
  166. package/es/components/pisellFloorMapLayout/locales.js +3 -63
  167. package/es/components/pisellFloorMapLayout/types.d.ts +9 -70
  168. package/es/components/pisellGoodPassCard/index.less +0 -1
  169. package/es/components/pisellGridPro/GridView/docs/GridView.md +48 -47
  170. package/es/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
  171. package/es/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
  172. package/es/components/pisellGridPro/ToolBar/index.less +4 -5
  173. package/es/components/pisellGridPro/docs/PisellGridPro.md +262 -173
  174. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
  175. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
  176. package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
  177. package/es/components/pisellImport/PisellImport.d.ts +11 -0
  178. package/es/components/pisellImport/PisellImport.js +81 -0
  179. package/es/components/pisellImport/PisellImport.less +141 -0
  180. package/es/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
  181. package/es/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
  182. package/es/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
  183. package/es/components/pisellImport/docs/pisellImport.md +174 -0
  184. package/es/components/pisellImport/index.d.ts +2 -0
  185. package/es/components/pisellImport/types.d.ts +89 -0
  186. package/es/components/pisellLongText/PisellLongText.js +13 -6
  187. package/es/components/pisellLongText/PisellLongText.less +0 -67
  188. package/es/components/pisellLookup/PisellLookup.less +1 -1
  189. package/es/components/pisellLookup/components/LookupTrigger.js +8 -6
  190. package/es/components/pisellLookup/docs/pisellLookup.md +1 -1
  191. package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +7 -5
  192. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
  193. package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
  194. package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
  195. package/es/components/pisellNumber/PisellNumber.js +13 -6
  196. package/es/components/pisellNumber/PisellNumber.less +0 -103
  197. package/es/components/pisellPhone/PisellPhone.js +13 -6
  198. package/es/components/pisellPhone/PisellPhone.less +0 -119
  199. package/es/components/pisellPhone/components/EditView.js +37 -19
  200. package/es/components/pisellPhone/constants/countryCodes.js +26 -25
  201. package/es/components/pisellPhone/types.d.ts +2 -2
  202. package/es/components/pisellPhone/utils/countryCodeHelper.js +2 -2
  203. package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
  204. package/es/components/pisellRating/PisellRating.js +5 -3
  205. package/es/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
  206. package/es/components/pisellRecordBoard/README.md +0 -12
  207. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
  208. package/es/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
  209. package/es/components/pisellRecordBoard/index.d.ts +1 -7
  210. package/es/components/pisellRecordBoard/index.js +0 -4
  211. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +9 -147
  212. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
  213. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3811 -0
  214. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
  215. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -10
  216. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  217. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
  218. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
  219. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
  220. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
  221. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +65 -143
  222. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
  223. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
  224. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
  225. package/es/components/pisellRecordBoard/shellFrame/index.js +19 -73
  226. package/es/components/pisellRecordBoard/types.d.ts +8 -374
  227. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
  228. package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
  229. package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
  230. package/es/components/pisellReservationSchedule/locales.js +3 -21
  231. package/es/components/pisellReservationSchedule/types.d.ts +0 -5
  232. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
  233. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
  234. package/es/components/pisellReservationScheduleBand/types.d.ts +0 -4
  235. package/es/components/pisellShellFrame/PisellShellFrame.js +2 -2
  236. package/es/components/pisellShellFrame/PisellShellFrame.less +2 -18
  237. package/es/components/pisellShellFrame/types.d.ts +0 -6
  238. package/es/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
  239. package/es/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
  240. package/es/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
  241. package/es/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
  242. package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
  243. package/es/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
  244. package/es/components/pisellSort/docs/PisellSort.md +67 -131
  245. package/es/components/pisellStatisticList/index.js +1 -0
  246. package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +37 -151
  247. package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
  248. package/es/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
  249. package/es/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
  250. package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
  251. package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
  252. package/es/components/pisellTimeNavigator/index.d.ts +1 -1
  253. package/es/components/pisellTimeNavigator/utils/index.d.ts +3 -9
  254. package/es/components/pisellTimeNavigator/utils/index.js +6 -15
  255. package/es/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
  256. package/es/components/pisellUrl/PisellUrl.js +13 -6
  257. package/es/components/pisellWalletPassCard/index.js +11 -5
  258. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -65
  259. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
  260. package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  261. package/es/components/productCard/cartSkuCard/components/packages/index.js +9 -24
  262. package/es/components/productCard/cartSkuCard/components/specs/index.js +7 -22
  263. package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -11
  264. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
  265. package/es/components/productCard/cartSkuCard/index.js +8 -68
  266. package/es/components/productCard/cartSkuCard/locales.js +5 -40
  267. package/es/components/productCard/components/Header/Actions/index.less +15 -0
  268. package/es/components/productCard/components/Header/DeleteButton/index.js +2 -2
  269. package/es/components/productCard/components/Header/DeleteButton/index.less +2 -1
  270. package/es/components/productCard/components/Header/EditButton/index.js +1 -2
  271. package/es/components/productCard/components/Header/index.less +1 -1
  272. package/es/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
  273. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  274. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
  275. package/es/components/productCard/components/Time/components/SelectResource/index.js +6 -3
  276. package/es/components/productCard/components/Time/index.js +3 -2
  277. package/es/components/productCard/status.js +0 -3
  278. package/es/components/productCard/types.d.ts +0 -10
  279. package/es/components/productCard/utils.js +1 -1
  280. package/es/components/select-time/index.js +0 -1
  281. package/es/components/table/Actions/component/ExportImport/index.js +3 -4
  282. package/es/components/table/Actions/component/GallerySetting/index.js +10 -9
  283. package/es/components/table/Actions/component/ViewMode/index.js +4 -3
  284. package/es/components/table/Actions/index.js +1 -1
  285. package/es/components/table/BasicTable/index.js +4 -3
  286. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  287. package/es/components/table/Gallery/components/GalleryItem/index.js +12 -4
  288. package/es/components/table/Gallery/components/GalleryItem/index.less +1 -0
  289. package/es/components/table/Gallery/index.js +11 -3
  290. package/es/components/table/Table/fields/text/Show/index.js +1 -1
  291. package/es/components/table/Table/index.js +2 -1
  292. package/es/components/table/Table/tableConfig/header/index.js +1 -1
  293. package/es/components/table/Table/utils.js +5 -1
  294. package/es/components/table/hooks/useTableSetting.js +3 -0
  295. package/es/components/table/hooks/useTransDataSource.js +4 -3
  296. package/es/components/table/index.js +1 -1
  297. package/es/components/tabs/index.less +1 -1
  298. package/es/components/translation/index.d.ts +1 -0
  299. package/es/components/translation/index.js +36 -10
  300. package/es/components/translation/index.less +12 -0
  301. package/es/components/versionModal/index.d.ts +1 -0
  302. package/es/components/versionModal/index.js +2 -2
  303. package/es/components/versionSelect/index.js +1 -1
  304. package/es/components/virtual-keyboard/Amount/index.js +2 -1
  305. package/es/components/virtual-keyboard/Amount/types.d.ts +1 -0
  306. package/es/index.d.ts +105 -94
  307. package/es/index.js +92 -90
  308. package/es/locales/en-US.js +69 -191
  309. package/es/locales/ja.js +12 -192
  310. package/es/locales/pt.js +12 -192
  311. package/es/locales/zh-CN.js +63 -185
  312. package/es/locales/zh-TW.js +68 -190
  313. package/es/pisell-materials.tw.css +1 -2414
  314. package/es/tailwind-input.css +1 -3
  315. package/es/theme/pisell-components.js +76 -0
  316. package/lib/components/Pagination/index.js +8 -42
  317. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
  318. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
  319. package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
  320. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
  321. package/lib/components/PisellCards/components/TextCard/TextCard.js +2 -3
  322. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
  323. package/lib/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
  324. package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
  325. package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
  326. package/lib/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
  327. package/lib/components/PisellCards/index.d.ts +3 -0
  328. package/lib/components/PisellCards/index.js +3 -1
  329. package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
  330. package/lib/components/PisellContactBrief/PisellContactBrief.js +158 -0
  331. package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
  332. package/lib/components/PisellContactBrief/components/ContactFormModal.js +139 -0
  333. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
  334. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
  335. package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
  336. package/lib/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
  337. package/lib/components/PisellContactBrief/index.d.ts +2 -0
  338. package/lib/components/PisellContactBrief/locales.js +57 -0
  339. package/lib/components/PisellContactBrief/types.d.ts +86 -0
  340. package/lib/components/PisellLayouts/index.d.ts +1 -1
  341. package/lib/components/PisellProcedure/components/ProcedureHeader.js +1 -1
  342. package/lib/components/PisellTabbar/PisellTabbar.js +6 -6
  343. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +6 -6
  344. package/lib/components/Template/[ComponentName].less +1 -0
  345. package/lib/components/Template/docs/[ComponentName].$tab-design.md +7 -0
  346. package/lib/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
  347. package/lib/components/Template/docs/[ComponentName].$tab-test.md +7 -0
  348. package/lib/components/Template/docs/[ComponentName].md +510 -0
  349. package/lib/components/appVersionControl/index.js +12 -11
  350. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -6
  351. package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
  352. package/lib/components/dataSourceComponents/dataSourceForm/index.js +1 -1
  353. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
  354. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
  355. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
  356. package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
  357. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
  358. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
  359. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
  360. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  361. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
  362. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
  363. package/lib/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
  364. package/lib/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
  365. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
  366. package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
  367. package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -4
  368. package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
  369. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
  370. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  371. package/lib/components/drag-sort-tree/index.js +0 -1
  372. package/lib/components/drawer/index.js +7 -6
  373. package/lib/components/filter/components/FilterItem/index.js +1 -3
  374. package/lib/components/filter/components/QuickFilter/index.js +2 -3
  375. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
  376. package/lib/components/hardwareErrorTip/errorCard/index.js +71 -0
  377. package/lib/components/hardwareErrorTip/errorCard/index.less +137 -0
  378. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
  379. package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +34 -0
  380. package/lib/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
  381. package/lib/components/hardwareErrorTip/index.d.ts +20 -0
  382. package/lib/components/hardwareErrorTip/index.js +153 -0
  383. package/lib/components/hardwareErrorTip/index.less +95 -0
  384. package/lib/components/hardwareErrorTip/logCard/index.d.ts +25 -0
  385. package/lib/components/hardwareErrorTip/logCard/index.js +75 -0
  386. package/lib/components/hardwareErrorTip/logCard/index.less +121 -0
  387. package/lib/components/hardwareErrorTip/readme.md +309 -0
  388. package/lib/components/hardwareErrorTip/types.js +57 -0
  389. package/lib/components/iconfont/index.js +1 -1
  390. package/lib/components/login-and-register/index.js +4 -5
  391. package/lib/components/page/index.js +1 -1
  392. package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
  393. package/lib/components/pisellActionPanel/PisellActionPanel.js +71 -0
  394. package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
  395. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
  396. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
  397. package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
  398. package/lib/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
  399. package/lib/components/pisellActionPanel/index.d.ts +2 -0
  400. package/lib/components/pisellActionPanel/types.d.ts +87 -0
  401. package/lib/components/pisellAppCard/PisellAppCard.js +7 -7
  402. package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
  403. package/lib/components/pisellBaseCard/PisellBaseCard.js +76 -0
  404. package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
  405. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
  406. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
  407. package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
  408. package/lib/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
  409. package/lib/components/pisellBaseCard/index.d.ts +2 -0
  410. package/lib/components/pisellBaseCard/types.d.ts +49 -0
  411. package/lib/components/pisellCardList/index.js +6 -6
  412. package/lib/components/pisellCurrency/PisellCurrency.js +13 -6
  413. package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
  414. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
  415. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +94 -0
  416. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
  417. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
  418. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
  419. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
  420. package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
  421. package/lib/components/pisellCustomerBrief/index.d.ts +2 -0
  422. package/lib/components/pisellCustomerBrief/types.d.ts +86 -0
  423. package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
  424. package/lib/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
  425. package/lib/components/pisellDataSourceContainer/type.d.ts +1 -1
  426. package/lib/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
  427. package/lib/components/pisellEmail/PisellEmail.js +13 -6
  428. package/lib/components/pisellEmail/PisellEmail.less +0 -92
  429. package/lib/components/pisellEmpty/index.d.ts +1 -1
  430. package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
  431. package/lib/components/pisellEntityCard/PisellEntityCard.js +318 -0
  432. package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
  433. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
  434. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
  435. package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
  436. package/lib/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
  437. package/lib/components/pisellEntityCard/index.d.ts +2 -0
  438. package/lib/components/pisellEntityCard/types.d.ts +148 -0
  439. package/lib/components/pisellExport/PisellExport.d.ts +11 -0
  440. package/lib/components/pisellExport/PisellExport.js +47 -0
  441. package/lib/components/pisellExport/PisellExport.less +141 -0
  442. package/lib/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
  443. package/lib/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
  444. package/lib/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
  445. package/lib/components/pisellExport/docs/pisellExport.md +162 -0
  446. package/lib/components/pisellExport/index.d.ts +2 -0
  447. package/lib/components/pisellExport/types.d.ts +67 -0
  448. package/lib/components/pisellFilter/docs/PisellFilter.md +2 -2
  449. package/lib/components/pisellFind/docs/pisellFind.md +2 -2
  450. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
  451. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
  452. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
  453. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
  454. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
  455. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
  456. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +4 -39
  457. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +11 -130
  458. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
  459. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +2 -23
  460. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
  461. package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
  462. package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
  463. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +64 -118
  464. package/lib/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
  465. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
  466. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
  467. package/lib/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
  468. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
  469. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
  470. package/lib/components/pisellFloorMapLayout/index.d.ts +0 -1
  471. package/lib/components/pisellFloorMapLayout/locales-ja.js +1 -21
  472. package/lib/components/pisellFloorMapLayout/locales-pt.js +1 -21
  473. package/lib/components/pisellFloorMapLayout/locales.js +3 -63
  474. package/lib/components/pisellFloorMapLayout/types.d.ts +9 -70
  475. package/lib/components/pisellGoodPassCard/index.less +0 -1
  476. package/lib/components/pisellGridPro/GridView/docs/GridView.md +48 -47
  477. package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
  478. package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
  479. package/lib/components/pisellGridPro/ToolBar/index.less +4 -5
  480. package/lib/components/pisellGridPro/docs/PisellGridPro.md +262 -173
  481. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
  482. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
  483. package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
  484. package/lib/components/pisellImport/PisellImport.d.ts +11 -0
  485. package/lib/components/pisellImport/PisellImport.js +84 -0
  486. package/lib/components/pisellImport/PisellImport.less +141 -0
  487. package/lib/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
  488. package/lib/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
  489. package/lib/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
  490. package/lib/components/pisellImport/docs/pisellImport.md +174 -0
  491. package/lib/components/pisellImport/index.d.ts +2 -0
  492. package/lib/components/pisellImport/types.d.ts +89 -0
  493. package/lib/components/pisellLongText/PisellLongText.js +13 -6
  494. package/lib/components/pisellLongText/PisellLongText.less +0 -67
  495. package/lib/components/pisellLookup/PisellLookup.less +1 -1
  496. package/lib/components/pisellLookup/components/LookupTrigger.js +8 -6
  497. package/lib/components/pisellLookup/docs/pisellLookup.md +1 -1
  498. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +6 -4
  499. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
  500. package/lib/components/pisellMultipleSelect/components/EditView.js +1 -0
  501. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
  502. package/lib/components/pisellNumber/PisellNumber.js +13 -6
  503. package/lib/components/pisellNumber/PisellNumber.less +0 -103
  504. package/lib/components/pisellPhone/PisellPhone.js +13 -6
  505. package/lib/components/pisellPhone/PisellPhone.less +0 -119
  506. package/lib/components/pisellPhone/components/EditView.js +37 -19
  507. package/lib/components/pisellPhone/constants/countryCodes.js +26 -25
  508. package/lib/components/pisellPhone/types.d.ts +2 -2
  509. package/lib/components/pisellPhone/utils/countryCodeHelper.js +2 -2
  510. package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
  511. package/lib/components/pisellRating/PisellRating.js +4 -2
  512. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
  513. package/lib/components/pisellRecordBoard/README.md +0 -12
  514. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
  515. package/lib/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
  516. package/lib/components/pisellRecordBoard/index.d.ts +1 -7
  517. package/lib/components/pisellRecordBoard/index.js +0 -4
  518. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +8 -146
  519. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
  520. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3813 -0
  521. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
  522. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -11
  523. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  524. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
  525. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
  526. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
  527. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
  528. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +78 -156
  529. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
  530. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
  531. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
  532. package/lib/components/pisellRecordBoard/shellFrame/index.js +19 -73
  533. package/lib/components/pisellRecordBoard/types.d.ts +8 -374
  534. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
  535. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
  536. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
  537. package/lib/components/pisellReservationSchedule/locales.js +3 -21
  538. package/lib/components/pisellReservationSchedule/types.d.ts +0 -5
  539. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
  540. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
  541. package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -4
  542. package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -2
  543. package/lib/components/pisellShellFrame/PisellShellFrame.less +2 -18
  544. package/lib/components/pisellShellFrame/types.d.ts +0 -6
  545. package/lib/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
  546. package/lib/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
  547. package/lib/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
  548. package/lib/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
  549. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
  550. package/lib/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
  551. package/lib/components/pisellSort/docs/PisellSort.md +67 -131
  552. package/lib/components/pisellStatisticList/index.js +1 -0
  553. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +38 -152
  554. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
  555. package/lib/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
  556. package/lib/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
  557. package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
  558. package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
  559. package/lib/components/pisellTimeNavigator/index.d.ts +1 -1
  560. package/lib/components/pisellTimeNavigator/utils/index.d.ts +3 -9
  561. package/lib/components/pisellTimeNavigator/utils/index.js +5 -16
  562. package/lib/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
  563. package/lib/components/pisellUrl/PisellUrl.js +13 -6
  564. package/lib/components/pisellWalletPassCard/index.js +11 -5
  565. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +8 -69
  566. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
  567. package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
  568. package/lib/components/productCard/cartSkuCard/components/packages/index.js +11 -26
  569. package/lib/components/productCard/cartSkuCard/components/specs/index.js +8 -23
  570. package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -11
  571. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
  572. package/lib/components/productCard/cartSkuCard/index.js +8 -68
  573. package/lib/components/productCard/cartSkuCard/locales.js +5 -40
  574. package/lib/components/productCard/components/Header/Actions/index.less +15 -0
  575. package/lib/components/productCard/components/Header/DeleteButton/index.js +2 -2
  576. package/lib/components/productCard/components/Header/DeleteButton/index.less +2 -1
  577. package/lib/components/productCard/components/Header/EditButton/index.js +1 -2
  578. package/lib/components/productCard/components/Header/index.less +1 -1
  579. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
  580. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +5 -5
  581. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
  582. package/lib/components/productCard/components/Time/components/SelectResource/index.js +6 -3
  583. package/lib/components/productCard/components/Time/index.js +3 -2
  584. package/lib/components/productCard/status.js +0 -3
  585. package/lib/components/productCard/types.d.ts +0 -10
  586. package/lib/components/productCard/utils.js +1 -1
  587. package/lib/components/select-time/index.js +0 -1
  588. package/lib/components/table/Actions/component/ExportImport/index.js +3 -4
  589. package/lib/components/table/Actions/component/GallerySetting/index.js +12 -11
  590. package/lib/components/table/Actions/component/ViewMode/index.js +6 -5
  591. package/lib/components/table/Actions/index.js +1 -1
  592. package/lib/components/table/BasicTable/index.js +4 -3
  593. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  594. package/lib/components/table/Gallery/components/GalleryItem/index.js +17 -9
  595. package/lib/components/table/Gallery/components/GalleryItem/index.less +1 -0
  596. package/lib/components/table/Gallery/index.js +11 -3
  597. package/lib/components/table/Table/fields/text/Show/index.js +1 -1
  598. package/lib/components/table/Table/index.js +2 -1
  599. package/lib/components/table/Table/tableConfig/header/index.js +2 -2
  600. package/lib/components/table/Table/utils.js +5 -1
  601. package/lib/components/table/hooks/useTableSetting.js +3 -0
  602. package/lib/components/table/hooks/useTransDataSource.js +4 -3
  603. package/lib/components/table/index.js +1 -1
  604. package/lib/components/tabs/index.less +1 -1
  605. package/lib/components/translation/index.d.ts +1 -0
  606. package/lib/components/translation/index.js +35 -9
  607. package/lib/components/translation/index.less +12 -0
  608. package/lib/components/versionModal/index.d.ts +1 -0
  609. package/lib/components/versionModal/index.js +2 -2
  610. package/lib/components/versionSelect/index.js +4 -4
  611. package/lib/components/virtual-keyboard/Amount/index.js +5 -4
  612. package/lib/components/virtual-keyboard/Amount/types.d.ts +1 -0
  613. package/lib/index.d.ts +105 -94
  614. package/lib/index.js +298 -299
  615. package/lib/locales/en-US.js +69 -191
  616. package/lib/locales/ja.js +12 -192
  617. package/lib/locales/pt.js +12 -192
  618. package/lib/locales/zh-CN.js +63 -185
  619. package/lib/locales/zh-TW.js +68 -190
  620. package/lib/pisell-materials.tw.css +1 -2414
  621. package/lib/tailwind-input.css +1 -3
  622. package/lib/theme/pisell-components.js +76 -0
  623. package/lowcode/pisell-time-navigator/meta.ts +10 -0
  624. package/package.json +3 -2
  625. package/es/components/SafeAreaTop/index.d.ts +0 -6
  626. package/es/components/SafeAreaTop/index.js +0 -112
  627. package/es/components/SafeAreaTop/index.less +0 -11
  628. package/es/components/SafeAreaTop/types.d.ts +0 -13
  629. package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
  630. package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
  631. package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -64
  632. package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
  633. package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -47
  634. package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -95
  635. package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
  636. package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -61
  637. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -758
  638. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
  639. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -191
  640. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -22
  641. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -39
  642. package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -74
  643. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -61
  644. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -26
  645. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -79
  646. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -48
  647. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -37
  648. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -20
  649. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -532
  650. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
  651. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -31
  652. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -583
  653. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -41
  654. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -111
  655. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -612
  656. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -162
  657. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -8
  658. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -33
  659. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -37
  660. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -18
  661. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -33
  662. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -29
  663. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -43
  664. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
  665. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -436
  666. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
  667. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
  668. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -179
  669. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -62
  670. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
  671. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
  672. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -91
  673. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -218
  674. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
  675. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
  676. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
  677. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
  678. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -170
  679. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -11
  680. package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -56
  681. package/es/components/pisellRecordBoard/types.js +0 -12
  682. package/es/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
  683. package/es/components/productCard/cartSkuCard/components/Gift/index.js +0 -34
  684. package/es/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
  685. package/es/components/productCard/cartSkuCard/components/Promotion/index.js +0 -23
  686. package/es/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
  687. package/es/components/productCard/cartSkuCard/components/weighing/index.js +0 -27
  688. package/es/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
  689. package/lib/components/SafeAreaTop/index.d.ts +0 -6
  690. package/lib/components/SafeAreaTop/index.js +0 -115
  691. package/lib/components/SafeAreaTop/index.less +0 -11
  692. package/lib/components/SafeAreaTop/types.d.ts +0 -13
  693. package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
  694. package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
  695. package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -67
  696. package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
  697. package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -52
  698. package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -96
  699. package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
  700. package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -64
  701. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -760
  702. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
  703. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -197
  704. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -23
  705. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -44
  706. package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -75
  707. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -63
  708. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -28
  709. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -81
  710. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -50
  711. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -39
  712. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -21
  713. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -562
  714. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
  715. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -33
  716. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -585
  717. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -43
  718. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -113
  719. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -614
  720. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -164
  721. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -10
  722. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -34
  723. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -38
  724. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -19
  725. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -34
  726. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -30
  727. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -45
  728. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
  729. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -439
  730. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
  731. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
  732. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -181
  733. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -64
  734. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
  735. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
  736. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -93
  737. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -220
  738. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
  739. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
  740. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
  741. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
  742. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -181
  743. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -14
  744. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -63
  745. package/lib/components/pisellRecordBoard/types.js +0 -12
  746. package/lib/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
  747. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +0 -36
  748. package/lib/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
  749. package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +0 -25
  750. package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
  751. package/lib/components/productCard/cartSkuCard/components/weighing/index.js +0 -29
  752. package/lib/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
  753. /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
  754. /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
  755. /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
  756. /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
  757. /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
  758. /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
@@ -1,19 +1,17 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import { getContentSize, getPixelBoundingBox } from "../utils/layoutMeasurements.js";
3
- import { readPersistedViewport, readPersistedViewportLock, writePersistedViewport, writePersistedViewportLock } from "./floorMapViewportPersistence.js";
4
3
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
5
4
  //#region src/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.ts
6
5
  /**
7
6
  * 视口 / 地图区尺寸、内容区宽高与偏移、缩放与全屏、fitBounds、拖拽图元后恢复 transform
8
7
  */
9
- /**
10
- * react-zoom-pan-pinch:`setTransform` 未显式传 `animationTime` 时默认约 200ms 缓动;
11
- * 兜底清除「全览激活保持」略大于该值,避免极少数帧未到容差时限位不解除。
12
- */
13
- const FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS = 400;
8
+ /** 平面图包围盒单侧默认外扩(像素);过大会导致首屏大量空白 */
9
+ const DEFAULT_BOUNDING_PADDING = 56;
10
+ /** 视口内与首屏对齐时,图元束左上与容器边缘的留白 */
11
+ const VIEWPORT_TOP_LEFT_MARGIN = 16;
14
12
  function useFloorMapTransformMetrics(params) {
15
- const { items, cellSize, itemGap, effectiveItemUnit, isFloorMapView, mode, zoom, transformRef, contentOffsetRef, boundingPadding: boundingPaddingProp, frameResetKey, viewportPersistKey } = params;
16
- const padSingle = boundingPaddingProp !== null && boundingPaddingProp !== void 0 ? boundingPaddingProp : 56;
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;
17
15
  const containerRef = useRef(null);
18
16
  const mapAreaRef = useRef(null);
19
17
  const [viewportSize, setViewportSize] = useState({
@@ -74,52 +72,6 @@ function useFloorMapTransformMetrics(params) {
74
72
  ]);
75
73
  const [scale, setScale] = useState(zoomConfig.initialScale);
76
74
  const [isFullscreen, setIsFullscreen] = useState(false);
77
- /**
78
- * 「适配视口」激活态:当前 transform 与最近一次 fitBounds 计算出的目标 transform 在容差内一致时为 true。
79
- * 由 fitBounds 写入快照、notifyTransformed 比较;用户主动拖动/缩放后立即失活。
80
- */
81
- const lastFitSnapshotRef = useRef(null);
82
- const [isAtFitBounds, setIsAtFitBounds] = useState(false);
83
- /**
84
- * 程序化 fitBounds 使用库默认缓动时,`onTransformed` 中间帧与快照不等会关掉「全览」激活态。
85
- * 缓动持有期内不按中间帧降级,仅在到达快照(容差内)或兜底超时后再按真实 transform 对齐。
86
- */
87
- const fitBoundsTweenHoldRef = useRef(false);
88
- const fitBoundsTweenHoldClearTimerRef = useRef(null);
89
- const clearFitBoundsTweenHold = useCallback(() => {
90
- if (fitBoundsTweenHoldClearTimerRef.current != null) {
91
- clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
92
- fitBoundsTweenHoldClearTimerRef.current = null;
93
- }
94
- fitBoundsTweenHoldRef.current = false;
95
- }, []);
96
- /**
97
- * 视口锁定态:有 viewportPersistKey 时按 key 读写到 localStorage;无 key 时仅组件内存态(不写本地)。
98
- * - 切 / 挂载时:有 key 则读持久化初值;无 key 则默认未锁定;
99
- * - 用户切换时:有 key 则写回 localStorage;
100
- * - 锁定后 fitBounds / 程序化 zoom 入口与 PisellFloorMapLayout 透传到 TransformWrapper 的
101
- * panning/wheel/pinch.disabled 共同把所有视角写入路径关闭。
102
- * 切 canvas(key 变化)时跟随新 key 重新初始化,互不影响。
103
- */
104
- const [viewportLocked, setViewportLockedState] = useState(() => viewportPersistKey ? readPersistedViewportLock(viewportPersistKey) : false);
105
- const viewportLockedRef = useRef(viewportLocked);
106
- viewportLockedRef.current = viewportLocked;
107
- useEffect(() => {
108
- if (!viewportPersistKey) {
109
- setViewportLockedState(false);
110
- return;
111
- }
112
- setViewportLockedState(readPersistedViewportLock(viewportPersistKey));
113
- }, [viewportPersistKey]);
114
- const setViewportLocked = useCallback((next) => {
115
- setViewportLockedState(next);
116
- const key = viewportPersistKey;
117
- if (!key) return;
118
- writePersistedViewportLock(key, next);
119
- }, [viewportPersistKey]);
120
- const toggleViewportLocked = useCallback(() => {
121
- setViewportLocked(!viewportLockedRef.current);
122
- }, [setViewportLocked]);
123
75
  const { contentWidth, contentHeight, contentOffsetX, contentOffsetY, alignPadSingle } = useMemo(() => {
124
76
  const fromItems = getContentSize(items, cellSize, itemGap, effectiveItemUnit);
125
77
  const pad = padSingle * 2;
@@ -166,8 +118,8 @@ function useFloorMapTransformMetrics(params) {
166
118
  padSingle
167
119
  ]);
168
120
  const padForAlign = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
169
- const initialPositionX = 16 - padForAlign * zoomConfig.initialScale;
170
- const initialPositionY = 16 - padForAlign * zoomConfig.initialScale;
121
+ const initialPositionX = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
122
+ const initialPositionY = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
171
123
  contentOffsetRef.current = {
172
124
  x: contentOffsetX,
173
125
  y: contentOffsetY
@@ -219,89 +171,34 @@ function useFloorMapTransformMetrics(params) {
219
171
  transformRef,
220
172
  autoFitOnMount
221
173
  ]);
222
- /**
223
- * 伪全屏:用 `position: fixed; inset: 0` 撑满视口,不调用浏览器 Fullscreen API。
224
- * 与「资源墙大屏」一致的体验:避免浏览器全屏带来的右键菜单受限、第三方弹层被全屏元素隔绝等。
225
- *
226
- * 对应 className 与 body overflow 锁定见 PisellFloorMapLayout.less 中
227
- * `.pisell-floor-map-layout--pseudo-fullscreen` 与 `body.pisell-floor-map-layout-fullscreen-host`。
228
- *
229
- * 注意:不再监听 ESC 退出全屏。平面图编辑态全屏与编辑模式强绑定(PisellFloorMapLayout 中 effect),
230
- * 若 ESC 直接 setIsFullscreen(false) 会立刻被同步 effect 拉回 true,徒增闪烁。
231
- * 退出全屏 = 退出编辑,由顶栏退出按钮承担。
232
- */
233
174
  useEffect(() => {
234
- if (!isFullscreen) return;
235
- if (typeof document === "undefined") return;
236
- const bodyCls = "pisell-floor-map-layout-fullscreen-host";
237
- document.body.classList.add(bodyCls);
238
- return () => {
239
- document.body.classList.remove(bodyCls);
240
- };
241
- }, [isFullscreen]);
242
- /** 卸载兜底:组件被卸载时不要把 body 锁住的样式残留 */
243
- useEffect(() => {
244
- return () => {
245
- if (typeof document === "undefined") return;
246
- document.body.classList.remove("pisell-floor-map-layout-fullscreen-host");
247
- };
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);
248
180
  }, []);
249
181
  const toggleFullscreen = useCallback(() => {
250
- setIsFullscreen((prev) => !prev);
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
+ }
251
191
  }, []);
252
- /**
253
- * 仅保留 fitBoundsRef 给手动 fitBounds 按钮用。
254
- *
255
- * 历史上这里有个 useEffect:进入伪全屏时自动 fitBounds 适配新视口。
256
- * 但现在「编辑态自动全屏 + 视口持久化」的组合下,这会把用户上次保存的视角
257
- * 覆盖成 fit 结果,导致每次进编辑都被强制全览,违背用户意图。
258
- * 视口尺寸变化由 ResizeObserver 自然处理,transform 不变即「保留用户视角」。
259
- */
260
- const fitBoundsRef = useRef(null);
261
192
  /** @returns 是否已调用 setTransform(用于首屏 autoFit:避免空跑仍标记 done) */
262
193
  const fitBounds = useCallback(() => {
263
194
  var _zoom$max3;
264
- /**
265
- * 锁定态:拦截所有 fitBounds 触发路径(按钮 / autoFit useLayoutEffect / ref API),
266
- * 让画布严格停留在用户锁定时的视角。返回 true 让 autoFit 调用方将 done 置位,
267
- * 避免被无限重试占用 rAF。
268
- */
269
- if (viewportLockedRef.current) return true;
270
195
  const ctx = transformRef.current;
271
196
  const container = containerRef.current;
272
197
  if (!ctx || !container) return false;
273
198
  const wrapper = container.querySelector(".react-transform-wrapper");
274
199
  if (!wrapper) return false;
275
200
  const wrapperRect = wrapper.getBoundingClientRect();
276
- const wEl = wrapper;
277
- /**
278
- * 祖先链上若有 transform: scale / zoom,getBoundingClientRect 为「视觉」尺寸,
279
- * clientWidth/Height 为布局盒尺寸。react-zoom-pan-pinch 的平移/缩放工作在布局坐标系,
280
- * 若全览仅用 rect 算 avail 与 position,会与库内部不一致(日志:visual/layout≈0.864)。
281
- */
282
- const layoutW = wEl.clientWidth > 0 ? wEl.clientWidth : wrapperRect.width;
283
- const layoutH = wEl.clientHeight > 0 ? wEl.clientHeight : wrapperRect.height;
284
- if (layoutW <= 0 || layoutH <= 0) return false;
285
- /** 程序化 setTransform 默认带缓动:写入快照后立即保持「全览激活」,缓动结束前不因中间帧关掉 */
286
- const applyProgrammaticFit = (fx, fy, fScale) => {
287
- clearFitBoundsTweenHold();
288
- lastFitSnapshotRef.current = {
289
- x: fx,
290
- y: fy,
291
- scale: fScale
292
- };
293
- setIsAtFitBounds(true);
294
- fitBoundsTweenHoldRef.current = true;
295
- fitBoundsTweenHoldClearTimerRef.current = setTimeout(() => {
296
- fitBoundsTweenHoldClearTimerRef.current = null;
297
- fitBoundsTweenHoldRef.current = false;
298
- const cur = lastTransformRef.current;
299
- const s = lastFitSnapshotRef.current;
300
- if (!s) return;
301
- setIsAtFitBounds(Math.abs(s.x - cur.x) < .5 && Math.abs(s.y - cur.y) < .5 && Math.abs(s.scale - cur.scale) < .005);
302
- }, FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS);
303
- ctx.setTransform(fx, fy, fScale);
304
- };
201
+ if (wrapperRect.width <= 0 || wrapperRect.height <= 0) return false;
305
202
  /**
306
203
  * 平面图像素模式:按「图元轴对齐包围盒」缩放并居中,不按整块 content(含编辑态撑满视口的空白)适配。
307
204
  * 画布 DOM 尺寸与网格空白不变,仅改变视口 transform;视口边可贴边(edgePx=0)。
@@ -312,28 +209,31 @@ function useFloorMapTransformMetrics(params) {
312
209
  const bw = Math.max(1, pixelBox.maxRight - pixelBox.minLeft);
313
210
  const bh = Math.max(1, pixelBox.maxBottom - pixelBox.minTop);
314
211
  const edgePx = 0;
315
- const availW = Math.max(1, layoutW - 2 * edgePx);
316
- const availH = Math.max(1, layoutH - 2 * edgePx);
212
+ const availW = Math.max(1, wrapperRect.width - 2 * edgePx);
213
+ const availH = Math.max(1, wrapperRect.height - 2 * edgePx);
317
214
  const raw = Math.min(availW / bw, availH / bh);
318
215
  const nextScale = Math.min(raw, (_zoom$max2 = zoom.max) !== null && _zoom$max2 !== void 0 ? _zoom$max2 : 2);
319
216
  const ap = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : padSingle;
320
217
  const bboxCx = ap + bw / 2;
321
218
  const bboxCy = ap + bh / 2;
322
- applyProgrammaticFit(layoutW / 2 - bboxCx * nextScale, layoutH / 2 - bboxCy * nextScale, nextScale);
219
+ const x = wrapperRect.width / 2 - bboxCx * nextScale;
220
+ const y = wrapperRect.height / 2 - bboxCy * nextScale;
221
+ ctx.setTransform(x, y, nextScale);
323
222
  return true;
324
223
  }
325
224
  if (contentWidth <= 0 || contentHeight <= 0) return false;
326
225
  /** 非平面图或无图元:仍按整块 content 适配 */
327
- const raw = Math.min(layoutW / contentWidth, layoutH / contentHeight);
226
+ const raw = Math.min(wrapperRect.width / contentWidth, wrapperRect.height / contentHeight);
328
227
  const nextScale = Math.min(raw, (_zoom$max3 = zoom.max) !== null && _zoom$max3 !== void 0 ? _zoom$max3 : 2);
329
228
  const padA = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
330
- applyProgrammaticFit(16 - padA * nextScale, 16 - padA * nextScale, nextScale);
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
232
  return true;
332
233
  }, [
333
- clearFitBoundsTweenHold,
334
234
  contentWidth,
335
235
  contentHeight,
336
- zoom,
236
+ zoom.max,
337
237
  transformRef,
338
238
  alignPadSingle,
339
239
  isFloorMapView,
@@ -342,8 +242,6 @@ function useFloorMapTransformMetrics(params) {
342
242
  cellSize,
343
243
  padSingle
344
244
  ]);
345
- /** 让"进入伪全屏后自动 fit"的 effect 能拿到最新的 fitBounds 实现 */
346
- fitBoundsRef.current = fitBounds;
347
245
  /**
348
246
  * autoFitOnMount:每个画布在「有图元且 content 尺寸已按包围盒算好」后执行一次 fitBounds。
349
247
  * 避免首帧 items 仍为空时用占位尺寸 fit 完并标记 done,导致异步图元加载后不再适配。
@@ -354,13 +252,6 @@ function useFloorMapTransformMetrics(params) {
354
252
  });
355
253
  const prevItemsCountForAutoFitRef = useRef(null);
356
254
  /**
357
- * 记录「本 frame 的 transform 已由视口缓存接管」:
358
- * 命中 localStorage 恢复或 restore effect 完成后写入当前 frame。
359
- * 只要等于当前 frame,autoFit 所有分支(包括 items 从 0→N 的 reset done)一律放弃,
360
- * 防止 items 异步加载后 autoFit 覆盖恢复值 → onTransformed 又把 fit 结果回写到 localStorage。
361
- */
362
- const cachedRestoredFrameRef = useRef("");
363
- /**
364
255
  * 首屏 auto fit:时序上易出现「Transform 未挂载 / wrapper 尺寸为 0 / 内容区尚未提交」,
365
256
  * 用 layoutEffect + 双 rAF 贴近浏览器布局完成时刻;仅 fitBounds 真正 setTransform 后才记 done;
366
257
  * viewportSize 纳入依赖以便父级 flex 迟到的尺寸更新后重试(超次不伪造 done)。
@@ -374,24 +265,10 @@ function useFloorMapTransformMetrics(params) {
374
265
  done: false
375
266
  };
376
267
  prevItemsCountForAutoFitRef.current = null;
377
- /**
378
- * 命中视口缓存:跳过本帧 autoFit,让恢复 effect 用缓存 transform 接管。
379
- * 避免「先 autoFit 一次再被恢复覆盖」造成的视觉闪烁。
380
- * 同步打上「缓存接管」标记,防止下面的「items 0→N reset done」再度启用 autoFit
381
- * 覆盖恢复值并把 fit 结果通过 onTransformed 回写 localStorage。
382
- */
383
- if (viewportPersistKey && readPersistedViewport(viewportPersistKey)) {
384
- autoFitOnceRef.current.done = true;
385
- cachedRestoredFrameRef.current = frame;
386
- } else if (cachedRestoredFrameRef.current !== frame) cachedRestoredFrameRef.current = "";
387
268
  }
388
269
  const itemCount = items.length;
389
270
  const prevN = prevItemsCountForAutoFitRef.current;
390
- /**
391
- * 已由缓存接管本 frame 的 transform:items 异步加载完成后绝不重新启用 autoFit,
392
- * 否则会把用户上次拖拽的位置覆盖成适配视口,且被 onTransformed 回写 localStorage。
393
- */
394
- if (prevN !== null && prevN === 0 && itemCount > 0 && cachedRestoredFrameRef.current !== frame) autoFitOnceRef.current.done = false;
271
+ if (prevN !== null && prevN === 0 && itemCount > 0) autoFitOnceRef.current.done = false;
395
272
  prevItemsCountForAutoFitRef.current = itemCount;
396
273
  if (autoFitOnceRef.current.done) return;
397
274
  if (effectiveItemUnit === "pixel" && itemCount === 0) return;
@@ -449,8 +326,7 @@ function useFloorMapTransformMetrics(params) {
449
326
  mapAreaSize.width,
450
327
  mapAreaSize.height,
451
328
  fitBounds,
452
- transformRef,
453
- viewportPersistKey
329
+ transformRef
454
330
  ]);
455
331
  const lastTransformRef = useRef({
456
332
  x: 0,
@@ -473,208 +349,6 @@ function useFloorMapTransformMetrics(params) {
473
349
  });
474
350
  return () => cancelAnimationFrame(raf);
475
351
  }, [isInteractingWithElement, transformRef]);
476
- /**
477
- * 视口持久化:写入节流 + 切 canvas 时清掉 pending;
478
- * persistKeyRef 保证 debounce 触发时仍然写到「触发时刻」对应的 key(避免 key 变化后被错位写入)。
479
- */
480
- const persistKeyRef = useRef(viewportPersistKey);
481
- persistKeyRef.current = viewportPersistKey;
482
- const persistTimerRef = useRef(null);
483
- const flushPersistRef = useRef(null);
484
- const schedulePersistViewport = useCallback((snapshot) => {
485
- const key = persistKeyRef.current;
486
- if (!key) return;
487
- if (persistTimerRef.current != null) {
488
- clearTimeout(persistTimerRef.current);
489
- persistTimerRef.current = null;
490
- }
491
- const targetKey = key;
492
- const doWrite = () => {
493
- persistTimerRef.current = null;
494
- flushPersistRef.current = null;
495
- writePersistedViewport(targetKey, snapshot);
496
- };
497
- flushPersistRef.current = doWrite;
498
- persistTimerRef.current = setTimeout(doWrite, 300);
499
- }, []);
500
- /**
501
- * 由 onTransformed 回调统一上报当前 transform:
502
- * - 写 lastTransformRef(替代父组件直接赋值)
503
- * - 与最近一次 fitBounds 快照比较,更新激活态
504
- *
505
- * ❗注意:故意不在这里写 localStorage。
506
- * react-zoom-pan-pinch 在挂载、`setTransform`、`fitBounds`、`resetTransform` 等程序化路径
507
- * 也会触发 onTransformed(含挂载初始值 {x:16, y:16, scale:1}),若在此持久化,
508
- * wrapper 重挂载时会用这份"初始值"覆盖 localStorage 里用户上次保存的视角。
509
- * 持久化改由 onPanningStop / onPinchingStop / onZoomStop / onWheelStop 触发,
510
- * 那些事件只在「用户真的拖完/缩放完」时才发生。
511
- */
512
- const notifyTransformed = useCallback((x, y, nextScale) => {
513
- lastTransformRef.current = {
514
- x,
515
- y,
516
- scale: nextScale
517
- };
518
- const snap = lastFitSnapshotRef.current;
519
- if (snap) {
520
- const same = Math.abs(snap.x - x) < .5 && Math.abs(snap.y - y) < .5 && Math.abs(snap.scale - nextScale) < .005;
521
- if (fitBoundsTweenHoldRef.current) {
522
- if (same) {
523
- clearFitBoundsTweenHold();
524
- setIsAtFitBounds(true);
525
- }
526
- /** 缓动中间帧:保持已设的「全览激活」,不因尚未对齐快照而关掉 */
527
- return;
528
- }
529
- setIsAtFitBounds((prev) => prev === same ? prev : same);
530
- } else setIsAtFitBounds((prev) => prev ? false : prev);
531
- }, [clearFitBoundsTweenHold]);
532
- /**
533
- * 用户交互结束时(pan / zoom / pinch / wheel stop)调用:
534
- * 以 lastTransformRef 当前值为快照写 localStorage(debounce 兜底高频 stop)。
535
- * 程序化的 setTransform / fitBounds / 挂载初始化都不会调这里,避免污染缓存。
536
- */
537
- const persistCurrentViewport = useCallback(() => {
538
- const snapshot = lastTransformRef.current;
539
- schedulePersistViewport({
540
- x: snapshot.x,
541
- y: snapshot.y,
542
- scale: snapshot.scale
543
- });
544
- }, [schedulePersistViewport]);
545
- /** 让 restore 路径读到最新 frameResetKey,避免 closure 过期 */
546
- const frameResetKeyRef = useRef(frameResetKey);
547
- frameResetKeyRef.current = frameResetKey;
548
- const viewportPersistKeyRef = useRef(viewportPersistKey);
549
- viewportPersistKeyRef.current = viewportPersistKey;
550
- /**
551
- * 把缓存视角立即贴到画布上的统一入口(restore effect 与 attachTransformContext 共用)。
552
- *
553
- * 关键点:
554
- * 1. setTransform 的 animationTime 必须传 0:
555
- * - react-zoom-pan-pinch 默认 200ms 缓动;
556
- * - 首屏若 namespace 异步、autoFit 抢先 setTransform(fit) 并仍在缓动中,
557
- * restore 这次 setTransform 会被库认为是「动画过程中无意义的同向 set」吃掉
558
- * 或与原动画合成,最终视觉停在 fit 处;
559
- * - 传 0 等价于"立即落点",强制覆盖任何在飞动画。
560
- * 2. 命中后立刻把 cachedRestoredFrameRef / autoFit done / initialAlign done 都打上,
561
- * 防止后续 effect 反向覆盖缓存值。
562
- */
563
- const applyPersistedViewport = useCallback((cached) => {
564
- clearFitBoundsTweenHold();
565
- const ctx = transformRef.current;
566
- if (!ctx) return false;
567
- ctx.setTransform(cached.x, cached.y, cached.scale, 0);
568
- lastTransformRef.current = _objectSpread2({}, cached);
569
- lastFitSnapshotRef.current = null;
570
- setIsAtFitBounds(false);
571
- autoFitOnceRef.current.done = true;
572
- initialAlignRef.current.done = true;
573
- const currentFrame = frameResetKeyRef.current;
574
- if (currentFrame !== void 0) cachedRestoredFrameRef.current = String(currentFrame);
575
- return true;
576
- }, [clearFitBoundsTweenHold, transformRef]);
577
- /**
578
- * 切换 viewportPersistKey 或 frameResetKey 时(含挂载、wrapper 重挂载):
579
- * 尝试从 localStorage 读取上次视角并恢复。命中缓存 → 阻止本帧 autoFitOnMount /
580
- * 首次左上对齐覆盖。未命中保持原行为。
581
- *
582
- * ❗frameResetKey 必须在依赖里:
583
- * `transformWrapperKey` 在远端配置(boundingPadding / defaultScale)回包后会变,
584
- * 触发 TransformWrapper 卸载重挂载并以 `initialPositionX/Y/Scale` (≈16,16,1) 渲染。
585
- * 仅依赖 viewportPersistKey 时此处不会重跑,画布会停在初始 transform,
586
- * 用户上次保存的视角虽然在 localStorage 里却没"贴回"画布。
587
- */
588
- useEffect(() => {
589
- if (!viewportPersistKey) return;
590
- const cached = readPersistedViewport(viewportPersistKey);
591
- if (!cached) return;
592
- let cancelled = false;
593
- let raf1 = 0;
594
- let raf2 = 0;
595
- let attempts = 0;
596
- const MAX_ATTEMPTS = 60;
597
- const tick = () => {
598
- if (cancelled) return;
599
- if (!applyPersistedViewport(cached)) {
600
- if (attempts++ < MAX_ATTEMPTS) raf1 = requestAnimationFrame(tick);
601
- }
602
- };
603
- /** 双 rAF:等 TransformWrapper 的 ctx 就绪后再写 */
604
- raf1 = requestAnimationFrame(() => {
605
- raf2 = requestAnimationFrame(tick);
606
- });
607
- return () => {
608
- cancelled = true;
609
- cancelAnimationFrame(raf1);
610
- cancelAnimationFrame(raf2);
611
- };
612
- }, [
613
- viewportPersistKey,
614
- frameResetKey,
615
- applyPersistedViewport
616
- ]);
617
- /**
618
- * PisellFloorMapLayout 在 TransformWrapper children render 中调用:
619
- * {(ctx) => { attachTransformContext(ctx); return <>...</> }}
620
- *
621
- * 用途:wrapper 首次挂载 / 重挂载时,立刻 schedule 一次 restore,
622
- * 避免依赖 useEffect、namespace 异步、autoFit 抢先 setTransform 之间的复杂时序。
623
- *
624
- * ⚠️ 不要用「ctx 引用是否变化」做去重:
625
- * react-zoom-pan-pinch 在每次内部状态更新(缩放 / 平移过程中的 onTransformed)
626
- * 都会让父组件重 render,children render 函数会再次被调用,部分版本下 ctx 是新对象引用。
627
- * 一旦把它判成「新 ctx」再次 schedule restore,就会把用户刚做的缩放/平移
628
- * 又覆盖回缓存,表现成「拖动可以,缩放回弹/缩放不动」。
629
- *
630
- * 改用 cachedRestoredFrameRef 做幂等:每个 frame(= TransformWrapper 的 key)
631
- * 在生命周期内只 restore 一次。frame 真变化(wrapper 卸载重挂载)时,autoFit
632
- * useLayoutEffect 的 reset 分支会清掉 / 重置该 ref,attach 自然能再次触发。
633
- */
634
- const attachTransformContext = useCallback((ctx) => {
635
- transformRef.current = ctx;
636
- const key = viewportPersistKeyRef.current;
637
- const currentFrame = frameResetKeyRef.current;
638
- if (!key || currentFrame === void 0) return;
639
- const frameStr = String(currentFrame);
640
- /** 该 frame 已经 restore 过(attach 触发或 autoFit reset 分支命中均会标记) */
641
- if (cachedRestoredFrameRef.current === frameStr) return;
642
- const cached = readPersistedViewport(key);
643
- if (!cached) return;
644
- /**
645
- * 立刻占座:避免本帧后续如果触发 attach 重入 / restore useEffect 同步跑
646
- * 出现两条 setTransform 路径并发。applyPersistedViewport 内部还会再设一次
647
- * (等于幂等)。
648
- */
649
- cachedRestoredFrameRef.current = frameStr;
650
- /**
651
- * 双 rAF 等 wrapper 内部 useEffect / 初始 onTransformed 走完,
652
- * 否则可能被库的 init 回调把 transform 又重置回 initial。
653
- */
654
- requestAnimationFrame(() => {
655
- requestAnimationFrame(() => {
656
- /** 等待期间 frame 又变了(快速切画布)则交给新 frame 的 attach 处理 */
657
- if (frameResetKeyRef.current !== currentFrame) return;
658
- applyPersistedViewport(cached);
659
- });
660
- });
661
- }, [transformRef, applyPersistedViewport]);
662
- /** 卸载 / key 变化时把待写的视口立刻 flush,避免快速来回切丢失最后一次操作 */
663
- useEffect(() => {
664
- return () => {
665
- var _flushPersistRef$curr;
666
- if (persistTimerRef.current != null) {
667
- clearTimeout(persistTimerRef.current);
668
- persistTimerRef.current = null;
669
- }
670
- (_flushPersistRef$curr = flushPersistRef.current) === null || _flushPersistRef$curr === void 0 || _flushPersistRef$curr.call(flushPersistRef);
671
- flushPersistRef.current = null;
672
- if (fitBoundsTweenHoldClearTimerRef.current != null) {
673
- clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
674
- fitBoundsTweenHoldClearTimerRef.current = null;
675
- }
676
- };
677
- }, [viewportPersistKey]);
678
352
  return {
679
353
  containerRef,
680
354
  mapAreaRef,
@@ -692,16 +366,9 @@ function useFloorMapTransformMetrics(params) {
692
366
  isFullscreen,
693
367
  toggleFullscreen,
694
368
  fitBounds,
695
- isAtFitBounds,
696
- notifyTransformed,
697
- persistCurrentViewport,
698
- attachTransformContext,
699
369
  lastTransformRef,
700
370
  isInteractingWithElement,
701
- setIsInteractingWithElement,
702
- viewportLocked,
703
- setViewportLocked,
704
- toggleViewportLocked
371
+ setIsInteractingWithElement
705
372
  };
706
373
  }
707
374
  //#endregion
@@ -2,7 +2,6 @@ import { DataSourceFormColumn, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELE
2
2
  import { PisellFloorMapLayout } from "./PisellFloorMapLayout.js";
3
3
  import { renderFloorMapFallbackPlaceholder } from "./utils/floorMapFallbackRender.js";
4
4
  import { isFloorMapImageElementKind } from "./utils/floorMapElementKindUtils.js";
5
- import { NAME_AS_TITLE_EXT_KEY, buildNameAsTitleExtensionsPatch, isElementNameAsTitleEnabled, resolveSceneElementDisplayTitle } from "./utils/floorMapElementNameAsTitle.js";
6
5
  import { FloorMapBindingPlaceholderReason, FloorMapDataSourceRow, findFloorMapRowByDataBinding, getFloorMapBindingPlaceholderReason } from "./utils/floorMapDataBindingUtils.js";
7
6
  import { CreateShopFloorPlanClientOptions, EnsureShopFloorPlanByCodeOptions, PostShopFloorPlanBody, PutShopFloorPlanBody, SHOP_FLOOR_PLAN_DUPLICATE_CODE, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanHttpAdapter, ShopFloorPlanLayoutItem } from "./shopFloorPlan/shopFloorPlanTypes.js";
8
7
  import { createShopFloorPlanClient } from "./shopFloorPlan/shopFloorPlanClient.js";
@@ -13,14 +13,6 @@ var locales_ja_default = {
13
13
  "pisell-floor-map-layout.edit-top-bar.unsaved": "未保存",
14
14
  "pisell-floor-map-layout.edit-top-bar.save": "保存",
15
15
  "pisell-floor-map-layout.edit-top-bar.saving": "保存中…",
16
- "pisell-floor-map-layout.edit-top-bar.undo": "元に戻す",
17
- "pisell-floor-map-layout.edit-top-bar.redo": "やり直す",
18
- "pisell-floor-map-layout.edit-top-bar.cancel-edit": "キャンセル",
19
- "pisell-floor-map-layout.edit-top-bar.finish-edit": "完了",
20
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-title": "未保存の変更",
21
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-content": "このページを離れると、保存していない変更は失われます。",
22
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-ok": "確定",
23
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-cancel": "キャンセル",
24
16
  "pisell-floor-map-layout.canvas-tabs.empty": "キャンバスがありません",
25
17
  "pisell-floor-map-layout.canvas-tabs.add": "+ フロアを追加",
26
18
  "pisell-floor-map-layout.canvas-tabs.add-title": "フロアを追加",
@@ -50,8 +42,6 @@ var locales_ja_default = {
50
42
  "pisell-floor-map-layout.edit-panel.label-name-stage": "表示名(キャンバス上)",
51
43
  "pisell-floor-map-layout.edit-panel.ph-name-stage": "例:ステージ、DJ ブース、ダンスフロア",
52
44
  "pisell-floor-map-layout.edit-panel.ph-name": "要素名",
53
- "pisell-floor-map-layout.edit-panel.label-name-as-title": "この名前をリソース名として使用",
54
- "pisell-floor-map-layout.edit-panel.tip-name-as-title": "有効にするとキャンバス上のカードのタイトルがこの名前になり、紐付けたレコードのタイトルを上書きします。",
55
45
  "pisell-floor-map-layout.edit-panel.label-image-url": "画像 URL",
56
46
  "pisell-floor-map-layout.edit-panel.extra-image-url": "ネットワーク上の画像 URL を指定。重なり順を下げるとテーブルの下に配置できます。",
57
47
  "pisell-floor-map-layout.edit-panel.ph-https": "https://...",
@@ -92,8 +82,6 @@ var locales_ja_default = {
92
82
  "pisell-floor-map-layout.toolbar.layout-dirty-hint": "レイアウトが変更されました。「保存」で確定してください。",
93
83
  "pisell-floor-map-layout.toolbar.save": "保存",
94
84
  "pisell-floor-map-layout.toolbar.saving": "保存中…",
95
- "pisell-floor-map-layout.toolbar.collapse": "パネルを折りたたむ",
96
- "pisell-floor-map-layout.toolbar.expand": "パネルを展開",
97
85
  "pisell-floor-map-layout.view-controls.zoom-out-aria": "縮小",
98
86
  "pisell-floor-map-layout.view-controls.zoom-in-aria": "拡大",
99
87
  "pisell-floor-map-layout.view-controls.reset-aria": "表示をリセット",
@@ -104,8 +92,6 @@ var locales_ja_default = {
104
92
  "pisell-floor-map-layout.view-controls.fullscreen-exit-aria": "全画面を終了",
105
93
  "pisell-floor-map-layout.view-controls.expand-tools-aria": "その他の表示ツールを表示",
106
94
  "pisell-floor-map-layout.view-controls.collapse-tools-aria": "その他の表示ツールを隠す",
107
- "pisell-floor-map-layout.view-controls.viewport-lock-aria": "ビューを固定(パン・ズームを無効化)",
108
- "pisell-floor-map-layout.view-controls.viewport-unlock-aria": "ビュー固定を解除",
109
95
  "pisell-floor-map-layout.image-element.default-name": "画像要素",
110
96
  "pisell-floor-map-layout.placement.fallback-image-name": "背景",
111
97
  "pisell-floor-map-layout.image-element.hint-no-url": "サイドバーで画像 URL を入力。重なり順を下げるとテーブル下の背景にできます。",
@@ -123,13 +109,7 @@ var locales_ja_default = {
123
109
  "pisell-floor-map-layout.figma-card.kind-square-table": "テーブル",
124
110
  "pisell-floor-map-layout.figma-card.default-table": "テーブル",
125
111
  "pisell-floor-map-layout.figma-card.capacity-seats": "着席 {n} 名",
126
- "pisell-floor-map-layout.figma-card.guests-count": "{n} 名",
127
- "pisell-floor-map-layout.figma-card.status-available": "空席",
128
- "pisell-floor-map-layout.figma-card.status-reserved": "予約済",
129
- "pisell-floor-map-layout.figma-card.status-waiting": "待機中",
130
- "pisell-floor-map-layout.figma-card.status-dining": "食事中",
131
- "pisell-floor-map-layout.figma-card.status-billed": "会計済",
132
- "pisell-floor-map-layout.figma-card.status-availableSoon": "間もなく"
112
+ "pisell-floor-map-layout.figma-card.guests-count": "{n} 名"
133
113
  };
134
114
  //#endregion
135
115
  export { locales_ja_default as default };
@@ -13,14 +13,6 @@ var locales_pt_default = {
13
13
  "pisell-floor-map-layout.edit-top-bar.unsaved": "Não guardado",
14
14
  "pisell-floor-map-layout.edit-top-bar.save": "Guardar",
15
15
  "pisell-floor-map-layout.edit-top-bar.saving": "A guardar…",
16
- "pisell-floor-map-layout.edit-top-bar.undo": "Anular",
17
- "pisell-floor-map-layout.edit-top-bar.redo": "Refazer",
18
- "pisell-floor-map-layout.edit-top-bar.cancel-edit": "Cancelar",
19
- "pisell-floor-map-layout.edit-top-bar.finish-edit": "Concluir",
20
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-title": "Alterações não guardadas",
21
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-content": "Se sair desta página, quaisquer alterações não guardadas serão perdidas.",
22
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-ok": "OK",
23
- "pisell-floor-map-layout.edit-top-bar.cancel-confirm-cancel": "Cancelar",
24
16
  "pisell-floor-map-layout.canvas-tabs.empty": "Sem canvas",
25
17
  "pisell-floor-map-layout.canvas-tabs.add": "+ Adicionar piso",
26
18
  "pisell-floor-map-layout.canvas-tabs.add-title": "Adicionar piso",
@@ -50,8 +42,6 @@ var locales_pt_default = {
50
42
  "pisell-floor-map-layout.edit-panel.label-name-stage": "Nome (no canvas)",
51
43
  "pisell-floor-map-layout.edit-panel.ph-name-stage": "Ex.: palco, cabine DJ, pista de dança",
52
44
  "pisell-floor-map-layout.edit-panel.ph-name": "Nome do elemento",
53
- "pisell-floor-map-layout.edit-panel.label-name-as-title": "Usar este nome como título do recurso",
54
- "pisell-floor-map-layout.edit-panel.tip-name-as-title": "Quando ativado, este nome substitui o título do registro vinculado nos cards do mapa.",
55
45
  "pisell-floor-map-layout.edit-panel.label-image-url": "URL da imagem",
56
46
  "pisell-floor-map-layout.edit-panel.extra-image-url": "URL de imagem na rede. Baixe a ordem para colocar atrás das mesas.",
57
47
  "pisell-floor-map-layout.edit-panel.ph-https": "https://...",
@@ -92,8 +82,6 @@ var locales_pt_default = {
92
82
  "pisell-floor-map-layout.toolbar.layout-dirty-hint": "O layout foi alterado. Use «Guardar» para confirmar.",
93
83
  "pisell-floor-map-layout.toolbar.save": "Guardar",
94
84
  "pisell-floor-map-layout.toolbar.saving": "A guardar…",
95
- "pisell-floor-map-layout.toolbar.collapse": "Recolher painel",
96
- "pisell-floor-map-layout.toolbar.expand": "Expandir painel",
97
85
  "pisell-floor-map-layout.view-controls.zoom-out-aria": "Reduzir zoom",
98
86
  "pisell-floor-map-layout.view-controls.zoom-in-aria": "Aumentar zoom",
99
87
  "pisell-floor-map-layout.view-controls.reset-aria": "Repor vista",
@@ -104,8 +92,6 @@ var locales_pt_default = {
104
92
  "pisell-floor-map-layout.view-controls.fullscreen-exit-aria": "Sair do ecrã inteiro",
105
93
  "pisell-floor-map-layout.view-controls.expand-tools-aria": "Mostrar mais ferramentas de vista",
106
94
  "pisell-floor-map-layout.view-controls.collapse-tools-aria": "Ocultar ferramentas extra",
107
- "pisell-floor-map-layout.view-controls.viewport-lock-aria": "Bloquear vista (desativar deslocação e zoom)",
108
- "pisell-floor-map-layout.view-controls.viewport-unlock-aria": "Desbloquear vista",
109
95
  "pisell-floor-map-layout.image-element.default-name": "Elemento de imagem",
110
96
  "pisell-floor-map-layout.placement.fallback-image-name": "Fundo",
111
97
  "pisell-floor-map-layout.image-element.hint-no-url": "Introduza o URL da imagem na barra lateral. Baixe a ordem para ficar atrás das mesas.",
@@ -123,13 +109,7 @@ var locales_pt_default = {
123
109
  "pisell-floor-map-layout.figma-card.kind-square-table": "Mesa",
124
110
  "pisell-floor-map-layout.figma-card.default-table": "Mesa",
125
111
  "pisell-floor-map-layout.figma-card.capacity-seats": "Lotação {n}",
126
- "pisell-floor-map-layout.figma-card.guests-count": "{n} pessoas",
127
- "pisell-floor-map-layout.figma-card.status-available": "Livre",
128
- "pisell-floor-map-layout.figma-card.status-reserved": "Reservada",
129
- "pisell-floor-map-layout.figma-card.status-waiting": "Aguardando",
130
- "pisell-floor-map-layout.figma-card.status-dining": "Em uso",
131
- "pisell-floor-map-layout.figma-card.status-billed": "Cobrada",
132
- "pisell-floor-map-layout.figma-card.status-availableSoon": "Em breve"
112
+ "pisell-floor-map-layout.figma-card.guests-count": "{n} pessoas"
133
113
  };
134
114
  //#endregion
135
115
  export { locales_pt_default as default };