@pisell/materials 6.11.107 → 6.11.109

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 (304) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/Pagination/index.d.ts +0 -1
  12. package/es/components/PisellTabbar/constants.d.ts +47 -0
  13. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  14. package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  15. package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  16. package/es/components/PisellTabbar/types.d.ts +90 -0
  17. package/es/components/PisellTabbar/utils/index.d.ts +69 -0
  18. package/es/components/SafeAreaTop/index.d.ts +5 -0
  19. package/es/components/SafeAreaTop/types.d.ts +9 -0
  20. package/es/components/appVersionControl/index.d.ts +0 -1
  21. package/es/components/buttonGroupPreview/index.js +2 -1
  22. package/es/components/cardPro/index.d.ts +3 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  25. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  26. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  29. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  30. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  31. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  32. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  33. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  34. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  35. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  36. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  37. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  38. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  39. package/es/components/filter/components/Dropdown/types.d.ts +15 -0
  40. package/es/components/filter/components/FilterButton/types.d.ts +29 -0
  41. package/es/components/filter/types.d.ts +52 -0
  42. package/es/components/iconfont/index.d.ts +8 -0
  43. package/es/components/page/index.d.ts +0 -1
  44. package/es/components/pisell-config-provider/context.d.ts +22 -0
  45. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  46. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  47. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  48. package/es/components/pisellFilter/index.d.ts +0 -1
  49. package/es/components/pisellFilter/type.d.ts +7 -0
  50. package/es/components/pisellFind/index.d.ts +34 -12
  51. package/es/components/pisellFind/index.js +114 -18
  52. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
  53. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
  54. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +24 -18
  55. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +4 -6
  56. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  57. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
  58. package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
  59. package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
  60. package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
  61. package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
  62. package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
  63. package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
  64. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  65. package/es/components/pisellInput/index.d.ts +0 -1
  66. package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
  67. package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  68. package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  69. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +4 -2
  70. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  71. package/es/components/pisellShellFrame/types.d.ts +62 -0
  72. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  73. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  74. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  75. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  76. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +3 -14
  77. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
  78. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -1
  79. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  80. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  81. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  82. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  83. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
  84. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -11
  85. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
  86. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  87. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  88. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  89. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  90. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  91. package/es/components/productCard/cartSkuCard/components/resources/index.less +4 -0
  92. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  93. package/es/components/productCard/cartSkuCard/components/specs/index.js +5 -1
  94. package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -24
  95. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  96. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  97. package/es/components/productCard/cartSkuCard/components/weighing/index.js +1 -4
  98. package/es/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
  99. package/es/components/productCard/cartSkuCard/index.less +0 -2
  100. package/es/components/productCard/cartSkuCard/locales.d.ts +203 -0
  101. package/es/components/productCard/components/Action/index.d.ts +3 -0
  102. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  103. package/es/components/productCard/components/Header/index.d.ts +0 -1
  104. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  105. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  106. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  107. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  108. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  109. package/es/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
  110. package/es/components/productCard/lineItem/BookingLineItem.js +39 -21
  111. package/es/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
  112. package/es/components/productCard/lineItem/components/Holders/index.js +74 -0
  113. package/es/components/productCard/lineItem/components/Holders/index.less +39 -0
  114. package/es/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -1
  115. package/es/components/productCard/lineItem/index.d.ts +11 -7
  116. package/es/components/productCard/lineItem/index.js +89 -27
  117. package/es/components/productCard/lineItem/index.less +40 -3
  118. package/es/components/productCard/lineItem/locales.d.ts +23 -0
  119. package/es/components/productCard/lineItem/types.d.ts +4 -0
  120. package/es/components/productCard/locales.d.ts +138 -0
  121. package/es/components/productCard/types.d.ts +1 -0
  122. package/es/components/select/index.d.ts +9 -0
  123. package/es/components/select-time/index.d.ts +0 -1
  124. package/es/components/table/BasicTable/index.d.ts +0 -1
  125. package/es/components/table/Table/utils.d.ts +1 -1
  126. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
  127. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  128. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  129. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  130. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  131. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  132. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  133. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  134. package/es/hooks/useResponsive.d.ts +1 -1
  135. package/es/locales/en-US.d.ts +565 -0
  136. package/es/locales/ja.d.ts +533 -0
  137. package/es/locales/pt.d.ts +533 -0
  138. package/es/locales/zh-CN.d.ts +560 -0
  139. package/es/locales/zh-TW.d.ts +560 -0
  140. package/lib/components/Pagination/index.d.ts +0 -1
  141. package/lib/components/PisellTabbar/constants.d.ts +47 -0
  142. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  143. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  144. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  145. package/lib/components/PisellTabbar/types.d.ts +90 -0
  146. package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
  147. package/lib/components/SafeAreaTop/index.d.ts +5 -0
  148. package/lib/components/SafeAreaTop/types.d.ts +9 -0
  149. package/lib/components/appVersionControl/index.d.ts +0 -1
  150. package/lib/components/buttonGroupPreview/index.js +2 -1
  151. package/lib/components/cardPro/index.d.ts +3 -0
  152. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  153. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  154. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  155. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  156. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  157. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  158. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  159. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  160. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  161. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  162. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  163. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  164. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  165. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  166. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  167. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  168. package/lib/components/filter/components/Dropdown/types.d.ts +15 -0
  169. package/lib/components/filter/components/FilterButton/types.d.ts +29 -0
  170. package/lib/components/filter/types.d.ts +52 -0
  171. package/lib/components/iconfont/index.d.ts +8 -0
  172. package/lib/components/page/index.d.ts +0 -1
  173. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  174. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  175. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  176. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  177. package/lib/components/pisellFilter/index.d.ts +0 -1
  178. package/lib/components/pisellFilter/type.d.ts +7 -0
  179. package/lib/components/pisellFind/index.d.ts +34 -12
  180. package/lib/components/pisellFind/index.js +80 -5
  181. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
  182. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
  183. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +36 -17
  184. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +3 -5
  185. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  186. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
  187. package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
  188. package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
  189. package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
  190. package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
  191. package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
  192. package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
  193. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  194. package/lib/components/pisellInput/index.d.ts +0 -1
  195. package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
  196. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
  197. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  198. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +1 -1
  199. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  200. package/lib/components/pisellShellFrame/types.d.ts +62 -0
  201. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  202. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  203. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  204. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  205. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +2 -11
  206. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
  207. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -1
  208. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  209. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  210. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  211. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  212. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
  213. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +10 -22
  214. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
  215. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  216. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  217. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  218. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  219. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  220. package/lib/components/productCard/cartSkuCard/components/resources/index.less +4 -0
  221. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  222. package/lib/components/productCard/cartSkuCard/components/specs/index.js +11 -1
  223. package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -24
  224. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  225. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  226. package/lib/components/productCard/cartSkuCard/components/weighing/index.js +4 -6
  227. package/lib/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
  228. package/lib/components/productCard/cartSkuCard/index.less +0 -2
  229. package/lib/components/productCard/cartSkuCard/locales.d.ts +203 -0
  230. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  231. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  232. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  233. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  234. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  235. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  236. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  237. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  238. package/lib/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
  239. package/lib/components/productCard/lineItem/BookingLineItem.js +40 -48
  240. package/lib/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
  241. package/lib/components/productCard/lineItem/components/Holders/index.js +83 -0
  242. package/lib/components/productCard/lineItem/components/Holders/index.less +39 -0
  243. package/lib/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -1
  244. package/lib/components/productCard/lineItem/index.d.ts +11 -7
  245. package/lib/components/productCard/lineItem/index.js +63 -21
  246. package/lib/components/productCard/lineItem/index.less +40 -3
  247. package/lib/components/productCard/lineItem/locales.d.ts +23 -0
  248. package/lib/components/productCard/lineItem/types.d.ts +4 -0
  249. package/lib/components/productCard/locales.d.ts +138 -0
  250. package/lib/components/productCard/types.d.ts +1 -0
  251. package/lib/components/select/index.d.ts +9 -0
  252. package/lib/components/select-time/index.d.ts +0 -1
  253. package/lib/components/table/BasicTable/index.d.ts +0 -1
  254. package/lib/components/table/Table/utils.d.ts +1 -1
  255. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
  256. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  257. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  258. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  259. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  260. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  261. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  262. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  263. package/lib/hooks/useResponsive.d.ts +1 -1
  264. package/lib/locales/en-US.d.ts +565 -0
  265. package/lib/locales/ja.d.ts +533 -0
  266. package/lib/locales/pt.d.ts +533 -0
  267. package/lib/locales/zh-CN.d.ts +560 -0
  268. package/lib/locales/zh-TW.d.ts +560 -0
  269. package/lowcode/pisell-find/meta.ts +19 -0
  270. package/package.json +1 -1
  271. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  272. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
  273. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  274. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  275. package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
  276. package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
  277. package/es/components/PisellScrollView/components/Actions/index.d.ts +0 -18
  278. package/es/components/PisellScrollView/types.d.ts +0 -203
  279. package/es/components/drag-sort-tree/index.d.ts +0 -4
  280. package/es/components/login-and-register/index.d.ts +0 -82
  281. package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
  282. package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
  283. package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
  284. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
  285. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
  286. package/es/components/pisellGridPro/index.d.ts +0 -4
  287. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  288. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  289. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
  290. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  291. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  292. package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
  293. package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
  294. package/lib/components/PisellScrollView/components/Actions/index.d.ts +0 -18
  295. package/lib/components/PisellScrollView/types.d.ts +0 -203
  296. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  297. package/lib/components/login-and-register/index.d.ts +0 -82
  298. package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
  299. package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
  300. package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
  301. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
  302. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
  303. package/lib/components/pisellGridPro/index.d.ts +0 -4
  304. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
@@ -0,0 +1,52 @@
1
+ import { ModeType } from "../table/types";
2
+ /**
3
+ * 筛选总配置
4
+ */
5
+ export declare type FilterType = {
6
+ /** 筛选是否展示 */
7
+ show: boolean;
8
+ /** 筛选项排序按钮是否展示 */
9
+ sortButtonShow: boolean;
10
+ /** 筛选列表 */
11
+ list: FilterItemProps[];
12
+ items?: string[];
13
+ /** 快速筛选最大长度 */
14
+ quickFilterMaxLength: number;
15
+ /** 配置存储模式 */
16
+ storageMode: "" | "localStorage";
17
+ /** 筛选列表项dom */
18
+ dom?: any;
19
+ };
20
+ /**
21
+ * 筛选列表项配置
22
+ * - type 为 single/input/rangePicker 等时使用内置或映射组件
23
+ * - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
24
+ *
25
+ * other 扩展(节选):
26
+ * - useAntdMobileRangePicker?: 手机布局下是否用 PisellMobileDateRangePicker(antd-mobile)替代 MUI 单框范围;
27
+ * true 强制启用(无 showTime 时);false 强制关闭;缺省时仅对字段名 orderDate 自动启用。
28
+ */
29
+ export declare type FilterItemProps = {
30
+ type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
31
+ name?: string | string[];
32
+ key: string;
33
+ props?: object;
34
+ label?: string;
35
+ sort?: boolean;
36
+ localFilter?: boolean;
37
+ other: Record<string, any>;
38
+ isCustom?: boolean;
39
+ columnKey?: string;
40
+ isHidden?: boolean;
41
+ };
42
+ /**
43
+ * 筛选组件属性
44
+ */
45
+ export interface FilterProps {
46
+ filter: FilterType;
47
+ isRenderFormContent: boolean;
48
+ onValuesChange?: () => void;
49
+ tableId?: string;
50
+ viewMode?: ModeType;
51
+ isMobile?: boolean;
52
+ }
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  variablesConfig?: {
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { PisellAdjustPriceProps } from './type';
4
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,22 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
22
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellFilterProps } from './type';
3
2
  declare const PisellFilter: (props: PisellFilterProps) => JSX.Element;
4
3
  export default PisellFilter;
@@ -0,0 +1,7 @@
1
+ import { FilterListProps } from '../filter/components/FilterButton/types';
2
+ /**
3
+ * 筛选弹层 + 快筛列表;内部通过 Form.useForm 托管表单,无需也不应把 antd FormInstance 并入 props。
4
+ */
5
+ export declare type PisellFilterProps = FilterListProps & {
6
+ hasForm?: boolean;
7
+ };
@@ -1,10 +1,37 @@
1
1
  import React from 'react';
2
2
  import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
3
+ /**
4
+ * 原生扫码事件名,对齐宿主端约定。
5
+ */
6
+ export declare const SCAN_RESULT_EVENT = "nativeScanResult";
7
+ /**
8
+ * 扫码枪回传数据(对齐宿主 ScanResultPayload)
9
+ * - code: 条码标识(如条码格式 / 业务字段)
10
+ * - data: 扫描得到的字符串值(写入输入框的内容)
11
+ */
12
+ export interface PisellFindScannerData {
13
+ code: string;
14
+ data: string;
15
+ }
3
16
  /**
4
17
  * PisellFind Props
5
- * 继承 PisellLookup 的所有 Props
18
+ * 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
6
19
  */
7
- export declare type PisellFindProps = PisellLookupProps;
20
+ export interface PisellFindProps extends PisellLookupProps {
21
+ /**
22
+ * 是否开启扫码枪监听
23
+ * 通过宿主 `app.pubsub.subscribe('nativeScanResult', ...)` 订阅;
24
+ * 切换 false 时会 unsubscribe,停止接收事件。
25
+ * @default false
26
+ */
27
+ enableScanner?: boolean;
28
+ /**
29
+ * 扫码枪回调
30
+ * 监听到扫码枪事件时触发,参数为原始 payload 对象(含 `data` 字段)。
31
+ * 注意:仅在 enableScanner 为 true 时才会触发。
32
+ */
33
+ onScannerData?: (data: PisellFindScannerData) => void;
34
+ }
8
35
  /**
9
36
  * PisellFind Ref
10
37
  * 继承 PisellLookup 的所有 Ref 方法
@@ -19,22 +46,17 @@ export declare type PisellFindRef = PisellLookupRef;
19
46
  * - 默认不显示确认按钮(输入即搜索)
20
47
  * - 默认开启搜索历史
21
48
  * - 默认不展示结果区(结果在页面其他位置展示)
49
+ * - 通过 `enableScanner` 接入扫码枪:使用宿主 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`,
50
+ * 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动 unsubscribe。
22
51
  *
23
52
  * @example
24
53
  * ```tsx
25
- * // 基础用法
26
- * <PisellFind
27
- * onSearch={(keyword) => {
28
- * const filtered = data.filter(item => item.name.includes(keyword));
29
- * setFilteredData(filtered);
30
- * }}
31
- * />
32
- *
33
- * // 切换为 Input 模式
34
54
  * <PisellFind
35
55
  * triggerType="input"
56
+ * enableScanner={isActive}
57
+ * onScannerData={(payload) => console.log('scan:', payload.data)}
36
58
  * onSearch={(keyword) => filterData(keyword)}
37
59
  * />
38
60
  * ```
39
61
  */
40
- export declare const PisellFind: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
62
+ export declare const PisellFind: React.ForwardRefExoticComponent<PisellFindProps & React.RefAttributes<PisellLookupRef>>;
@@ -1,15 +1,27 @@
1
- var _excluded = ["triggerType", "buttonText", "placeholder", "showConfirmButton", "showHistory", "historyKey"];
1
+ var _excluded = ["triggerType", "buttonText", "placeholder", "showConfirmButton", "showHistory", "historyKey", "enableScanner", "onScannerData", "onSearch"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- import React, { forwardRef } from 'react';
5
+ import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
6
6
  import { locales as utilsLocales } from '@pisell/utils';
7
7
  import { PisellLookup } from "../pisellLookup";
8
+ import useEngineContext from "../../hooks/useEngineContext";
8
9
  import { getText } from "../../locales";
9
10
 
11
+ /**
12
+ * 原生扫码事件名,对齐宿主端约定。
13
+ */
14
+ export var SCAN_RESULT_EVENT = 'nativeScanResult';
15
+
16
+ /**
17
+ * 扫码枪回传数据(对齐宿主 ScanResultPayload)
18
+ * - code: 条码标识(如条码格式 / 业务字段)
19
+ * - data: 扫描得到的字符串值(写入输入框的内容)
20
+ */
21
+
10
22
  /**
11
23
  * PisellFind Props
12
- * 继承 PisellLookup 的所有 Props
24
+ * 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
13
25
  */
14
26
 
15
27
  /**
@@ -20,31 +32,27 @@ import { getText } from "../../locales";
20
32
  /**
21
33
  * PisellFind 组件
22
34
  * 基于 PisellLookup 的组件内查找优化版本
23
- *
35
+ *
24
36
  * 核心特点:
25
37
  * - 默认使用 button 触发器
26
38
  * - 默认不显示确认按钮(输入即搜索)
27
39
  * - 默认开启搜索历史
28
40
  * - 默认不展示结果区(结果在页面其他位置展示)
29
- *
41
+ * - 通过 `enableScanner` 接入扫码枪:使用宿主 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`,
42
+ * 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动 unsubscribe。
43
+ *
30
44
  * @example
31
45
  * ```tsx
32
- * // 基础用法
33
- * <PisellFind
34
- * onSearch={(keyword) => {
35
- * const filtered = data.filter(item => item.name.includes(keyword));
36
- * setFilteredData(filtered);
37
- * }}
38
- * />
39
- *
40
- * // 切换为 Input 模式
41
46
  * <PisellFind
42
47
  * triggerType="input"
48
+ * enableScanner={isActive}
49
+ * onScannerData={(payload) => console.log('scan:', payload.data)}
43
50
  * onSearch={(keyword) => filterData(keyword)}
44
51
  * />
45
52
  * ```
46
53
  */
47
54
  export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
55
+ var _engineContext$appHel;
48
56
  var _props$triggerType = props.triggerType,
49
57
  triggerType = _props$triggerType === void 0 ? 'button' : _props$triggerType,
50
58
  _props$buttonText = props.buttonText,
@@ -65,17 +73,105 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
65
73
  showHistory = _props$showHistory === void 0 ? true : _props$showHistory,
66
74
  _props$historyKey = props.historyKey,
67
75
  historyKey = _props$historyKey === void 0 ? 'pisell_find_history' : _props$historyKey,
76
+ _props$enableScanner = props.enableScanner,
77
+ enableScanner = _props$enableScanner === void 0 ? false : _props$enableScanner,
78
+ onScannerData = props.onScannerData,
79
+ onSearch = props.onSearch,
68
80
  restProps = _objectWithoutProperties(props, _excluded);
81
+ var lookupRef = useRef(null);
82
+
83
+ /** 透传给监听回调的最新引用,避免回调闭包 stale */
84
+ var onScannerDataRef = useRef(onScannerData);
85
+ var onSearchRef = useRef(onSearch);
86
+ useEffect(function () {
87
+ onScannerDataRef.current = onScannerData;
88
+ }, [onScannerData]);
89
+ useEffect(function () {
90
+ onSearchRef.current = onSearch;
91
+ }, [onSearch]);
92
+ useImperativeHandle(ref, function () {
93
+ return {
94
+ open: function open() {
95
+ var _lookupRef$current;
96
+ return (_lookupRef$current = lookupRef.current) === null || _lookupRef$current === void 0 ? void 0 : _lookupRef$current.open();
97
+ },
98
+ close: function close() {
99
+ var _lookupRef$current2;
100
+ return (_lookupRef$current2 = lookupRef.current) === null || _lookupRef$current2 === void 0 ? void 0 : _lookupRef$current2.close();
101
+ },
102
+ getKeyword: function getKeyword() {
103
+ var _lookupRef$current$ge, _lookupRef$current3;
104
+ return (_lookupRef$current$ge = (_lookupRef$current3 = lookupRef.current) === null || _lookupRef$current3 === void 0 ? void 0 : _lookupRef$current3.getKeyword()) !== null && _lookupRef$current$ge !== void 0 ? _lookupRef$current$ge : '';
105
+ },
106
+ setKeyword: function setKeyword(v) {
107
+ var _lookupRef$current4;
108
+ return (_lookupRef$current4 = lookupRef.current) === null || _lookupRef$current4 === void 0 ? void 0 : _lookupRef$current4.setKeyword(v);
109
+ }
110
+ };
111
+ }, []);
112
+
113
+ /** 通过 useEngineContext 拿到宿主 app(含 pubsub.subscribe / unsubscribe) */
114
+ var engineContext = useEngineContext();
115
+ /**
116
+ * 用 ref 稳定 getApp 引用:低代码环境下 engineContext 每次渲染可能返回新引用,
117
+ * 若把 getApp 直接放进 effect 依赖会导致频繁 unsubscribe/subscribe(甚至漏掉扫码事件)。
118
+ * effect 依赖只保留 enableScanner,运行时通过 ref 拿最新的 getApp。
119
+ */
120
+ var getAppRef = useRef(undefined);
121
+ getAppRef.current = typeof (engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 || (_engineContext$appHel = _engineContext$appHel.utils) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.getApp) === 'function' ? engineContext.appHelper.utils.getApp : undefined;
122
+ useEffect(function () {
123
+ if (!enableScanner) return undefined;
124
+ var getApp = getAppRef.current;
125
+ if (typeof getApp !== 'function') return undefined;
126
+ var app = getApp();
127
+ var pubsub = app === null || app === void 0 ? void 0 : app.pubsub;
128
+ if (!pubsub || typeof pubsub.subscribe !== 'function') {
129
+ return undefined;
130
+ }
131
+
132
+ /**
133
+ * 监听回调:每次扫码直接覆盖输入框。
134
+ * ScanResultPayload: { code, data },取 code 作为输入框值与搜索关键词。
135
+ * setKeyword 在受控模式下会触发外部 onChange;onSearch 需要显式触发以驱动后续搜索流程
136
+ * (受控模式下宿主一般只通过 onSearch 拿到新关键词,不会在 onChange 里再触发一次 onSearch,
137
+ * 因此这里不会产生重复请求。如需自定义合流,可绑定 onScannerData 自行处理)。
138
+ *
139
+ * 非法 payload(无 code 或 code 为空串)直接忽略,避免把输入框/搜索条件意外清空。
140
+ */
141
+ var onScan = function onScan(payload) {
142
+ var _lookupRef$current5, _onSearchRef$current, _onScannerDataRef$cur;
143
+ var data = payload === null || payload === void 0 ? void 0 : payload.data;
144
+ if (typeof data !== 'string' || data.length === 0) {
145
+ return;
146
+ }
147
+ (_lookupRef$current5 = lookupRef.current) === null || _lookupRef$current5 === void 0 || _lookupRef$current5.setKeyword(data);
148
+ (_onSearchRef$current = onSearchRef.current) === null || _onSearchRef$current === void 0 || _onSearchRef$current.call(onSearchRef, data);
149
+ (_onScannerDataRef$cur = onScannerDataRef.current) === null || _onScannerDataRef$cur === void 0 || _onScannerDataRef$cur.call(onScannerDataRef, payload);
150
+ };
151
+ try {
152
+ pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
153
+ } catch (e) {
154
+ console.warn('[PisellFind] subscribe scanner failed:', e);
155
+ return undefined;
156
+ }
157
+ return function () {
158
+ try {
159
+ var _pubsub$unsubscribe;
160
+ (_pubsub$unsubscribe = pubsub.unsubscribe) === null || _pubsub$unsubscribe === void 0 || _pubsub$unsubscribe.call(pubsub, SCAN_RESULT_EVENT, onScan);
161
+ } catch (e) {
162
+ console.warn('[PisellFind] unsubscribe scanner failed:', e);
163
+ }
164
+ };
165
+ }, [enableScanner]);
69
166
  return /*#__PURE__*/React.createElement(PisellLookup, _extends({
70
- ref: ref,
167
+ ref: lookupRef,
71
168
  triggerType: triggerType,
72
169
  buttonText: buttonText,
73
170
  placeholder: placeholder,
74
171
  showConfirmButton: showConfirmButton,
75
172
  showHistory: showHistory,
76
- historyKey: historyKey
173
+ historyKey: historyKey,
174
+ onSearch: onSearch
77
175
  }, restProps));
78
176
  });
79
-
80
- // 显示名称
81
177
  PisellFind.displayName = 'PisellFind';
@@ -147,7 +147,12 @@ function PisellFloorMapLayoutInner(props, ref) {
147
147
  layoutPrefix: PREFIX,
148
148
  contentOffsetRef: contentOffsetRef,
149
149
  showDataSourceRecordFormBlock: showDataSourceRecordFormBlock,
150
- focusViewportOnBoundsRef: focusViewportOnBoundsRef
150
+ focusViewportOnBoundsRef: focusViewportOnBoundsRef,
151
+ /**
152
+ * 网格显隐缓存与视口持久化共用同一命名空间,按业务/门店/平面图隔离;
153
+ * 与视口 `viewportPersistKey` 同源,避免换门店/平面图读到别家的网格偏好。
154
+ */
155
+ gridPersistNamespace: viewportPersistNamespace
151
156
  });
152
157
  var config = edit.config,
153
158
  currentCanvasId = edit.currentCanvasId,
@@ -20,6 +20,12 @@ export interface UseFloorMapEditStateParams<T extends FloorMapItemBase> {
20
20
  showDataSourceRecordFormBlock?: boolean;
21
21
  /** 批量落点后由布局层注入:将视口移至新增图元区域 */
22
22
  focusViewportOnBoundsRef?: MutableRefObject<((bounds: PlacementBoundingBox) => void) | null>;
23
+ /**
24
+ * 网格显隐缓存命名空间(通常与视口 `viewportPersistNamespace` 同源,拼自业务/门店/平面图)。
25
+ * 传入后网格 localStorage key 变为 `prefix:namespace:canvasId`,隔离不同门店/场景;
26
+ * 不传则沿用 `prefix:canvasId`(向后兼容,跨场景可能共享)。
27
+ */
28
+ gridPersistNamespace?: string;
23
29
  }
24
30
  export declare function useFloorMapEditState<T extends FloorMapItemBase>(params: UseFloorMapEditStateParams<T>): {
25
31
  config: FloorMapViewConfig | null;
@@ -53,12 +53,17 @@ var ZONE_PLACE_DEFAULT = {
53
53
  height: 160
54
54
  };
55
55
  var GRID_VIS_STORAGE_PREFIX = 'pisell-floor-map-layout.grid-visible';
56
- function getGridVisStorageKey(canvasId) {
57
- return "".concat(GRID_VIS_STORAGE_PREFIX, ":").concat(canvasId);
56
+
57
+ /**
58
+ * 网格显隐缓存 key:可选 `namespace`(通常拼自业务/门店/平面图,与视口 `viewportPersistNamespace`
59
+ * 同源)用于隔离不同场景。未传 namespace 时保持原 `prefix:canvasId`,向后兼容。
60
+ */
61
+ function getGridVisStorageKey(canvasId, namespace) {
62
+ return namespace ? "".concat(GRID_VIS_STORAGE_PREFIX, ":").concat(namespace, ":").concat(canvasId) : "".concat(GRID_VIS_STORAGE_PREFIX, ":").concat(canvasId);
58
63
  }
59
- function readStoredGridVisible(canvasId) {
64
+ function readStoredGridVisible(canvasId, namespace) {
60
65
  try {
61
- var raw = localStorage.getItem(getGridVisStorageKey(canvasId));
66
+ var raw = localStorage.getItem(getGridVisStorageKey(canvasId, namespace));
62
67
  if (raw == null) return null;
63
68
  if (raw === '1') return true;
64
69
  if (raw === '0') return false;
@@ -67,21 +72,21 @@ function readStoredGridVisible(canvasId) {
67
72
  return null;
68
73
  }
69
74
  }
70
- function writeStoredGridVisible(canvasId, visible) {
75
+ function writeStoredGridVisible(canvasId, visible, namespace) {
71
76
  try {
72
- localStorage.setItem(getGridVisStorageKey(canvasId), visible ? '1' : '0');
77
+ localStorage.setItem(getGridVisStorageKey(canvasId, namespace), visible ? '1' : '0');
73
78
  } catch (_unused2) {
74
79
  // ignore localStorage failure (private mode / quota / sandbox)
75
80
  }
76
81
  }
77
82
 
78
83
  /** 与 props 同步 / dirty 基线一致:合并 localStorage 中的网格显隐偏好 */
79
- function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp) {
84
+ function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, namespace) {
80
85
  var baseConfig = normalizeFloorMapViewConfigFromProp(floorMapConfigProp);
81
86
  return _objectSpread(_objectSpread({}, baseConfig), {}, {
82
87
  canvases: baseConfig.canvases.map(function (canvas) {
83
88
  var _canvas$mapLayer;
84
- var stored = readStoredGridVisible(canvas.id);
89
+ var stored = readStoredGridVisible(canvas.id, namespace);
85
90
  if (stored == null) return canvas;
86
91
  return _objectSpread(_objectSpread({}, canvas), {}, {
87
92
  mapLayer: _objectSpread(_objectSpread({}, (_canvas$mapLayer = canvas.mapLayer) !== null && _canvas$mapLayer !== void 0 ? _canvas$mapLayer : {}), {}, {
@@ -182,7 +187,8 @@ export function useFloorMapEditState(params) {
182
187
  layoutPrefix = params.layoutPrefix,
183
188
  contentOffsetRef = params.contentOffsetRef,
184
189
  showDataSourceRecordFormBlock = params.showDataSourceRecordFormBlock,
185
- focusViewportOnBoundsRef = params.focusViewportOnBoundsRef;
190
+ focusViewportOnBoundsRef = params.focusViewportOnBoundsRef,
191
+ gridPersistNamespace = params.gridPersistNamespace;
186
192
  var scheduleFocusOnPlacements = useCallback(function (positions, sizes) {
187
193
  var _focusViewportOnBound;
188
194
  var box = getPlacementBoundingBox(positions, sizes);
@@ -244,7 +250,7 @@ export function useFloorMapEditState(params) {
244
250
  lastSyncedPropConfigRef.current = null;
245
251
  return;
246
252
  }
247
- var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
253
+ var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
248
254
  var lastSynced = lastSyncedPropConfigRef.current;
249
255
  /**
250
256
  * 仅当「自上次 props 同步后用户又改过草稿」时拒绝覆盖:
@@ -279,16 +285,16 @@ export function useFloorMapEditState(params) {
279
285
  return c.id === prev;
280
286
  }) ? prev : (_enabled$0$id = (_enabled$ = enabled[0]) === null || _enabled$ === void 0 ? void 0 : _enabled$.id) !== null && _enabled$0$id !== void 0 ? _enabled$0$id : null;
281
287
  });
282
- // replaceDraft 是稳定引用;故意只在上游 props 变时同步
288
+ // replaceDraft 是稳定引用;上游 props 或网格命名空间(切门店/平面图)变化时同步
283
289
  // eslint-disable-next-line react-hooks/exhaustive-deps
284
- }, [floorMapConfigProp]);
290
+ }, [floorMapConfigProp, gridPersistNamespace]);
285
291
 
286
292
  /** 当前草稿与上游持久化 `floorMapConfig`(经同等规范化)是否不一致 */
287
293
  var isLayoutDirty = useMemo(function () {
288
294
  if (!isFloorMapView || !draftConfig || !floorMapConfigProp) return false;
289
- var baseline = savedBaselineConfig !== null && savedBaselineConfig !== void 0 ? savedBaselineConfig : normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
295
+ var baseline = savedBaselineConfig !== null && savedBaselineConfig !== void 0 ? savedBaselineConfig : normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
290
296
  return !floorMapViewConfigsEqual(draftConfig, baseline);
291
- }, [isFloorMapView, draftConfig, floorMapConfigProp, savedBaselineConfig]);
297
+ }, [isFloorMapView, draftConfig, floorMapConfigProp, savedBaselineConfig, gridPersistNamespace]);
292
298
 
293
299
  /**
294
300
  * 撤销/重做后:若选中的图元已不存在于新草稿(如撤回了刚复制/新建的元素),
@@ -732,11 +738,11 @@ export function useFloorMapEditState(params) {
732
738
  setSavedBaselineConfig(null);
733
739
  return;
734
740
  }
735
- var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
741
+ var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
736
742
  replaceDraft(nextConfig);
737
743
  lastSyncedPropConfigRef.current = nextConfig;
738
744
  setSavedBaselineConfig(null);
739
- }, [floorMapConfigProp, replaceDraft]);
745
+ }, [floorMapConfigProp, replaceDraft, gridPersistNamespace]);
740
746
 
741
747
  /** 切换当前画布草稿中的 mapLayer.showGrid(随布局保存持久化) */
742
748
  var toggleDraftCanvasShowGrid = useCallback(function () {
@@ -747,7 +753,7 @@ export function useFloorMapEditState(params) {
747
753
  var _c$mapLayer;
748
754
  if (c.id !== currentCanvasId) return c;
749
755
  var nextShow = !Boolean((_c$mapLayer = c.mapLayer) === null || _c$mapLayer === void 0 ? void 0 : _c$mapLayer.showGrid);
750
- writeStoredGridVisible(currentCanvasId, nextShow);
756
+ writeStoredGridVisible(currentCanvasId, nextShow, gridPersistNamespace);
751
757
  return _objectSpread(_objectSpread({}, c), {}, {
752
758
  mapLayer: _objectSpread(_objectSpread({}, c.mapLayer), {}, {
753
759
  showGrid: nextShow
@@ -756,7 +762,7 @@ export function useFloorMapEditState(params) {
756
762
  })
757
763
  });
758
764
  });
759
- }, [currentCanvasId]);
765
+ }, [currentCanvasId, gridPersistNamespace]);
760
766
  var handleEditPanelUpdate = useCallback(function (patch) {
761
767
  if (!selectedId) return;
762
768
  var bindingPatch = patch.dataBinding;
@@ -24,9 +24,9 @@ function _fetchShopFloorPlanByCodeResponse() {
24
24
  case 0:
25
25
  _context7.next = 2;
26
26
  return http.get("/shop/schedule/floor-plan/code/".concat(encodeURIComponent(trimmedCode)), {}, _objectSpread({
27
- fullResult: true,
28
- isShopApi: true
27
+ fullResult: true
29
28
  }, (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== '' ? _objectSpread({
29
+ isShopApi: true,
30
30
  abort: true,
31
31
  osServer: subscribe.osServer !== false,
32
32
  subscriberId: subscribe.subscriberId
@@ -63,8 +63,7 @@ export function createShopFloorPlanClient(options) {
63
63
  case 0:
64
64
  _context4.next = 2;
65
65
  return http.post('/shop/schedule/floor-plan', body, {
66
- fullResult: true,
67
- isShopApi: true
66
+ fullResult: true
68
67
  });
69
68
  case 2:
70
69
  res = _context4.sent;
@@ -266,8 +265,7 @@ export function createShopFloorPlanClient(options) {
266
265
  case 0:
267
266
  _context3.next = 2;
268
267
  return http.put("/shop/schedule/floor-plan/".concat(id), body, {
269
- fullResult: true,
270
- isShopApi: true
268
+ fullResult: true
271
269
  });
272
270
  case 2:
273
271
  res = _context3.sent;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { PisellHierarchicalSummaryListProps } from './types';
3
+ import './PisellHierarchicalSummaryList.less';
4
+ /** 根节点类名,供上层用同一 DOM 包裹列表与其它区块时使用 */
5
+ export declare const PREFIX_CLS = "pisell-hierarchical-summary-list";
6
+ export declare const PisellHierarchicalSummaryList: React.FC<PisellHierarchicalSummaryListProps>;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellHierarchicalSummaryList } from './PisellHierarchicalSummaryList';
3
+ declare const meta: Meta<typeof PisellHierarchicalSummaryList>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof PisellHierarchicalSummaryList>;
6
+ export declare const Default: Story;
7
+ export declare const Accordion: Story;
8
+ export declare const MaxExpandLevel: Story;
9
+ export declare const AggregateSum: Story;
10
+ export declare const FullFeatured: Story;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import type { PisellHierarchicalSummaryListAggregateConfig, PisellHierarchicalSummaryListItem, PisellHierarchicalSummaryListKey, PisellHierarchicalSummaryListLevelConfig, PisellHierarchicalSummaryListRenderContext } from '../types';
3
+ export interface RowProps {
4
+ prefixCls: string;
5
+ item: PisellHierarchicalSummaryListItem;
6
+ level: number;
7
+ index: number;
8
+ parentPathKeys: PisellHierarchicalSummaryListKey[];
9
+ expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
10
+ toggleExpanded: (key: PisellHierarchicalSummaryListKey, options?: {
11
+ siblingKeys?: PisellHierarchicalSummaryListKey[];
12
+ }) => void;
13
+ getKey: (item: PisellHierarchicalSummaryListItem, ctx: {
14
+ level: number;
15
+ index: number;
16
+ parentPathKeys: PisellHierarchicalSummaryListKey[];
17
+ }) => PisellHierarchicalSummaryListKey;
18
+ levelConfig?: Record<number, PisellHierarchicalSummaryListLevelConfig>;
19
+ indent: number;
20
+ rowGap: number;
21
+ gaps?: {
22
+ row?: number;
23
+ rowLeft?: number;
24
+ meta?: number;
25
+ rowRight?: number;
26
+ };
27
+ maxRenderLevel?: number;
28
+ maxExpandLevel?: number;
29
+ aggregate?: PisellHierarchicalSummaryListAggregateConfig;
30
+ renderLabel?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
31
+ renderValue?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
32
+ /** 父行是否带有 itemsCount(仅此类子项显示圆点 + #667085,其他保持黑色) */
33
+ parentHasItemsCount?: boolean;
34
+ }
35
+ export declare const Row: React.FC<RowProps>;
@@ -0,0 +1 @@
1
+ export { Row } from './Row';
@@ -0,0 +1,2 @@
1
+ export { useExpandedKeys } from './useExpandedKeys';
2
+ export type { ExpandedKeysController, UseExpandedKeysOptions } from './useExpandedKeys';