@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,15 @@
1
+ import type { PisellHierarchicalSummaryListKey } from '../types';
2
+ export interface UseExpandedKeysOptions {
3
+ expandedKeys?: PisellHierarchicalSummaryListKey[];
4
+ defaultExpandedKeys?: PisellHierarchicalSummaryListKey[];
5
+ onExpandedKeysChange?: (keys: PisellHierarchicalSummaryListKey[]) => void;
6
+ }
7
+ export interface ExpandedKeysController {
8
+ expandedKeys: PisellHierarchicalSummaryListKey[];
9
+ expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
10
+ setExpandedKeys: (next: PisellHierarchicalSummaryListKey[]) => void;
11
+ }
12
+ /**
13
+ * 展开态管理(兼容受控/非受控)。
14
+ */
15
+ export declare function useExpandedKeys(options: UseExpandedKeysOptions): ExpandedKeysController;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * PisellHierarchicalSummaryList 组件导出
3
+ */
4
+ export { PisellHierarchicalSummaryList, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, } from './PisellHierarchicalSummaryList';
5
+ export type * from './types';
@@ -0,0 +1,248 @@
1
+ import type React from 'react';
2
+ import type { CSSProperties } from 'react';
3
+ export declare type PisellHierarchicalSummaryListKey = React.Key;
4
+ export interface PisellHierarchicalSummaryListItem {
5
+ /**
6
+ * 行标题。最小字段(必填)
7
+ */
8
+ label: React.ReactNode;
9
+ /**
10
+ * 行数值。允许 ReactNode(string/number/组合展示)。
11
+ * 若不传且开启聚合,可能由 children 聚合得到。
12
+ */
13
+ value?: React.ReactNode;
14
+ /**
15
+ * 子级数据(无限层级递归)
16
+ */
17
+ children?: PisellHierarchicalSummaryListItem[];
18
+ /**
19
+ * 可选:稳定 key(推荐传入以保证展开态稳定)。
20
+ * 不传时组件会基于层级路径生成 key。
21
+ */
22
+ key?: PisellHierarchicalSummaryListKey;
23
+ /**
24
+ * 可选:是否隐藏该项
25
+ */
26
+ hidden?: boolean;
27
+ /**
28
+ * 可选:排序权重,值越小越靠前
29
+ */
30
+ order?: number;
31
+ /**
32
+ * 可选:条目数提示(如 "N items" / "N 条"),允许 ReactNode
33
+ */
34
+ itemsCount?: React.ReactNode;
35
+ /**
36
+ * 可选:信息提示 tooltip 内容(hover 触达)
37
+ */
38
+ infoTooltip?: React.ReactNode;
39
+ /**
40
+ * 可选:右侧 value 后附加轻量操作(tag/pill/button 等)
41
+ */
42
+ extra?: React.ReactNode;
43
+ /**
44
+ * 可选:覆盖当前行样式
45
+ */
46
+ rowStyle?: CSSProperties;
47
+ /**
48
+ * 可选:覆盖当前行类名
49
+ */
50
+ rowClassName?: string;
51
+ /**
52
+ * 可选:自定义展开内容。若设置,行可展开且展开后渲染此内容(不再渲染 children 列表)。
53
+ * 用于在列表中嵌入 Collapse 等自定义区块。
54
+ */
55
+ expandedContent?: React.ReactNode;
56
+ }
57
+ export interface PisellHierarchicalSummaryListLevelTextStyle {
58
+ fontSize?: number | string;
59
+ fontWeight?: number | string;
60
+ color?: string;
61
+ /** 行高,如 24 或 '24px' */
62
+ lineHeight?: number | string;
63
+ }
64
+ export interface PisellHierarchicalSummaryListIconStyle {
65
+ /** 图标尺寸(px),用于 fontSize 或宽高一致时的边长) */
66
+ size?: number;
67
+ color?: string;
68
+ /** 图标容器宽(px),不传则用 size */
69
+ width?: number;
70
+ /** 图标容器高(px),不传则用 size */
71
+ height?: number;
72
+ }
73
+ export interface PisellHierarchicalSummaryListDividerStyle {
74
+ show?: boolean;
75
+ color?: string;
76
+ style?: 'solid' | 'dashed' | 'dotted';
77
+ }
78
+ export interface PisellHierarchicalSummaryListLevelConfig {
79
+ /**
80
+ * 层级缩进(px)。不传则继承全局 indent 规则。
81
+ */
82
+ indent?: number;
83
+ /**
84
+ * 是否显示 "·" 分隔符(标题区元信息前的点)
85
+ */
86
+ showDotSeparator?: boolean;
87
+ /**
88
+ * 层级内分割线
89
+ */
90
+ divider?: PisellHierarchicalSummaryListDividerStyle;
91
+ /**
92
+ * 行容器样式(背景/边框/padding/圆角/阴影等)
93
+ */
94
+ rowStyle?: CSSProperties;
95
+ /**
96
+ * 行容器类名
97
+ */
98
+ rowClassName?: string;
99
+ /**
100
+ * 标题文本样式
101
+ */
102
+ labelTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
103
+ /**
104
+ * 数值文本样式
105
+ */
106
+ valueTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
107
+ /**
108
+ * info icon 样式(size/color)
109
+ */
110
+ infoIconStyle?: PisellHierarchicalSummaryListIconStyle;
111
+ /**
112
+ * 展开/收起箭头 icon 样式(size/color)
113
+ */
114
+ expandIconStyle?: PisellHierarchicalSummaryListIconStyle;
115
+ /**
116
+ * 行内元信息样式(如 "·"、N items、info icon 的文案颜色/字号等)
117
+ */
118
+ metaTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
119
+ }
120
+ export declare type PisellHierarchicalSummaryListAggregateMode = 'none' | 'sum';
121
+ export interface PisellHierarchicalSummaryListAggregateConfig {
122
+ /**
123
+ * 聚合模式
124
+ * - none: 不聚合
125
+ * - sum: 对子级 number 值求和(或使用 getNumberValue 提取)
126
+ * @default 'none'
127
+ */
128
+ mode?: PisellHierarchicalSummaryListAggregateMode;
129
+ /**
130
+ * 从条目提取 number 值,用于 sum 聚合。
131
+ * 默认:若 item.value 是 number,则使用该值;否则忽略。
132
+ */
133
+ getNumberValue?: (item: PisellHierarchicalSummaryListItem) => number | null | undefined;
134
+ /**
135
+ * 聚合结果格式化(sum 输出到 value 区)
136
+ */
137
+ format?: (sum: number, ctx: {
138
+ item: PisellHierarchicalSummaryListItem;
139
+ level: number;
140
+ }) => React.ReactNode;
141
+ }
142
+ export interface PisellHierarchicalSummaryListRenderContext {
143
+ level: number;
144
+ pathKeys: PisellHierarchicalSummaryListKey[];
145
+ expanded: boolean;
146
+ hasChildren: boolean;
147
+ aggregatedValue?: React.ReactNode;
148
+ }
149
+ export interface PisellHierarchicalSummaryListProps {
150
+ /**
151
+ * 数据源
152
+ */
153
+ items: PisellHierarchicalSummaryListItem[];
154
+ /**
155
+ * 展开项 keys(受控)
156
+ */
157
+ expandedKeys?: PisellHierarchicalSummaryListKey[];
158
+ /**
159
+ * 默认展开项 keys(非受控)
160
+ */
161
+ defaultExpandedKeys?: PisellHierarchicalSummaryListKey[];
162
+ /**
163
+ * 默认展开层级(非受控初始化)。0 表示只展示 L1(不默认展开子级)。
164
+ * @default 0
165
+ */
166
+ defaultExpandedLevel?: number;
167
+ /**
168
+ * 展开项变化回调
169
+ */
170
+ onExpandedKeysChange?: (keys: PisellHierarchicalSummaryListKey[]) => void;
171
+ /**
172
+ * 手风琴模式:同一层级下仅允许一个子项展开
173
+ * @default false
174
+ */
175
+ accordion?: boolean;
176
+ /**
177
+ * 最大渲染层级(从 1 开始)。超过层级仍保留行,但不再渲染 children。
178
+ */
179
+ maxRenderLevel?: number;
180
+ /**
181
+ * 最大可展开层级(从 1 开始)。超过层级不显示展开箭头。
182
+ */
183
+ maxExpandLevel?: number;
184
+ /**
185
+ * 全局缩进(px),作用于 L2+;也可通过 levelConfig 覆盖。
186
+ * @default 16
187
+ */
188
+ indent?: number;
189
+ /**
190
+ * 行间距(px)
191
+ * @default 8
192
+ */
193
+ rowGap?: number;
194
+ /**
195
+ * 容器内边距(px 或 CSS 值),不传则使用 less 默认 20px
196
+ */
197
+ padding?: number | string;
198
+ /**
199
+ * 行内间距(px),用于 1:1 复刻设计稿
200
+ * - row: 行内左右两栏间距
201
+ * - rowLeft: 左侧 label 与 meta(· / N items)间距
202
+ * - meta: meta 内 dot / items-count / info 间距
203
+ * - rowRight: 右侧 value 与 extra / 展开图标间距
204
+ */
205
+ gaps?: {
206
+ row?: number;
207
+ rowLeft?: number;
208
+ meta?: number;
209
+ rowRight?: number;
210
+ };
211
+ /**
212
+ * 按层级配置样式与功能开关(key 为 level,从 1 开始)
213
+ */
214
+ levelConfig?: Record<number, PisellHierarchicalSummaryListLevelConfig>;
215
+ /**
216
+ * 自定义渲染 label
217
+ */
218
+ renderLabel?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
219
+ /**
220
+ * 自定义渲染 value
221
+ */
222
+ renderValue?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
223
+ /**
224
+ * 自定义 key 生成(当 item.key 不存在时使用)
225
+ */
226
+ getKey?: (item: PisellHierarchicalSummaryListItem, ctx: {
227
+ level: number;
228
+ index: number;
229
+ parentPathKeys: PisellHierarchicalSummaryListKey[];
230
+ }) => PisellHierarchicalSummaryListKey;
231
+ /**
232
+ * 聚合配置:支持内置或外部传入
233
+ */
234
+ aggregate?: PisellHierarchicalSummaryListAggregateConfig;
235
+ /**
236
+ * 根节点类名
237
+ */
238
+ className?: string;
239
+ /**
240
+ * 根节点样式
241
+ */
242
+ style?: CSSProperties;
243
+ /**
244
+ * 是否渲染根节点 div。为 false 时只渲染内部内容(用于外层用同一 DOM 包裹列表与其它区块)。
245
+ * @default true
246
+ */
247
+ renderRoot?: boolean;
248
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { PisellLookupProps, PisellLookupRef } from './types';
3
+ import './PisellLookup.less';
4
+ export declare const PisellLookup: React.ForwardRefExoticComponent<PisellLookupProps & React.RefAttributes<PisellLookupRef>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { LookupResultHostProps } from '../types';
3
+ /**
4
+ * LookupResultHost 组件
5
+ * 结果承载层:根据展示类型渲染不同的容器
6
+ */
7
+ export declare const LookupResultHost: React.FC<LookupResultHostProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LookupTriggerProps, LookupTriggerRef } from '../types';
3
+ export declare const LookupTrigger: React.ForwardRefExoticComponent<LookupTriggerProps & React.RefAttributes<LookupTriggerRef>>;
@@ -217,8 +217,10 @@ var RecordBoardGridView = function RecordBoardGridView(props) {
217
217
  }) : rawScrollX;
218
218
  if (scroll !== null && scroll !== void 0 && scroll.autoCalc && typeof ctx.scrollAreaHeight === 'number') {
219
219
  var wrapHeight = ctx.scrollAreaHeight;
220
- // 40:表头等固定占高;uniformSummaryHeight:同值列总结区动态高度,无总结时为 0, 24是 uniformSummary padding
221
- var reservedHeight = 40 + uniformSummaryHeight + 24;
220
+ // 40:表头固定高;uniformSummaryHeight:同值列总结区高度(ResizeObserver 量出,仅 content-box,不含 padding/border);
221
+ // 25:仅在确实展示 uniformSummary 时补回 padding 12*2 + 1px border-bottom(见 Grid.less .pisell-record-board-uniform-summary)。
222
+ // 无总结时不应再多扣,否则 Table 不能撑满 scroll-body,会在 Table 与底部分页之间留白。
223
+ var reservedHeight = 40 + (uniformSummaryHeight > 0 ? uniformSummaryHeight + 25 : 0);
222
224
  return {
223
225
  x: scrollX !== null && scrollX !== void 0 ? scrollX : sumColumnWidths,
224
226
  y: Math.max(wrapHeight - reservedHeight, 100),
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { PisellShellFrameProps } from './types';
3
+ import './PisellShellFrame.less';
4
+ /**
5
+ * PisellShellFrame:通用壳层布局组件。
6
+ * 支持通过 config 控制各区域显隐,不同展示类型(表格/看板/日历/楼层图等)复用同一壳层。
7
+ *
8
+ * - 顶部:标题区(标题/副标题/辅助信息)、工具区(Toolbar)、统计区(Statistic List,可选折叠)
9
+ * - 中间:滚动承载(可选)+ Layout 插槽(children)
10
+ * - 底部:批量操作条(按选中状态出现)、状态提示区(加载/错误/同步提示等)
11
+ */
12
+ export declare const PisellShellFrame: React.FC<PisellShellFrameProps>;
13
+ export default PisellShellFrame;
@@ -0,0 +1,62 @@
1
+ import type { ReactNode, CSSProperties } from 'react';
2
+ /**
3
+ * 滚动配置:为 true 时使用默认滚动;为对象时传入样式或 scroll 相关配置。
4
+ */
5
+ export declare type PisellShellFrameScrollConfig = boolean | {
6
+ style?: CSSProperties;
7
+ className?: string;
8
+ };
9
+ /**
10
+ * PisellShellFrame 配置:控制各区域的展示与行为。
11
+ * 不同展示类型(表格/看板/日历等)复用同一壳层,通过配置控制显隐。
12
+ */
13
+ export interface PisellShellFrameConfig {
14
+ /** 是否展示顶部标题区(标题/副标题/辅助信息) */
15
+ showTitle?: boolean;
16
+ /** 是否展示顶部工具区(Toolbar) */
17
+ showToolbar?: boolean;
18
+ /** 是否展示顶部统计区(Statistic List) */
19
+ showStatistic?: boolean;
20
+ /** 统计区是否支持折叠,仅 showStatistic 为 true 时有效 */
21
+ statisticCollapsible?: boolean;
22
+ /** 中间内容区是否使用滚动承载包裹;为 true 时默认 overflow auto */
23
+ scroll?: PisellShellFrameScrollConfig;
24
+ /** 是否展示底部批量操作条(按选中状态出现由调用方控制,此处仅控制是否渲染该槽位) */
25
+ showBatchActionBar?: boolean;
26
+ /** 是否展示底部状态提示区(加载/错误/同步提示等) */
27
+ showStatusArea?: boolean;
28
+ }
29
+ /**
30
+ * PisellShellFrame 组件 Props。
31
+ * 通过 config 控制各区域显隐,通过 slot props 传入各区域内容。
32
+ */
33
+ export interface PisellShellFrameProps {
34
+ /** 类名 */
35
+ className?: string;
36
+ /** 内联样式 */
37
+ style?: CSSProperties;
38
+ /** 区域显隐与行为配置,未传则默认不展示可选区域 */
39
+ config?: PisellShellFrameConfig;
40
+ /** 标题 */
41
+ title?: ReactNode;
42
+ /** 副标题 */
43
+ subtitle?: ReactNode;
44
+ /** 标题区右侧辅助信息 */
45
+ titleExtra?: ReactNode;
46
+ /** 工具栏内容 */
47
+ toolbar?: ReactNode;
48
+ /**
49
+ * 工具栏正下方、统计/正文之上的"附加条"插槽,渲染于 header 内部。
50
+ * 适用于「统计摘要 / 当前所选筛选标签」等需要紧贴 toolbar 的轻量条目。
51
+ * 当为空时不占位、不渲染外壳。
52
+ */
53
+ belowToolbar?: ReactNode;
54
+ /** 统计列表内容(如 PisellStatisticList 或自定义) */
55
+ statisticList?: ReactNode;
56
+ /** 主内容(表格/看板/日历/楼层图等),当 config.scroll 为 true 时会被滚动容器包裹 */
57
+ children?: ReactNode;
58
+ /** 批量操作条,通常按选中状态显隐由调用方控制 */
59
+ batchActionBar?: ReactNode;
60
+ /** 状态提示(加载/错误/同步提示等) */
61
+ statusArea?: ReactNode;
62
+ }
@@ -0,0 +1,15 @@
1
+ import { clear, show, success, info, loading, fail, hide } from './methods';
2
+ import './index.less';
3
+ interface ToastInstance {
4
+ show: typeof show;
5
+ clear: typeof clear;
6
+ success: typeof success;
7
+ info: typeof info;
8
+ loading: typeof loading;
9
+ fail: typeof fail;
10
+ error: typeof fail;
11
+ hide: typeof hide;
12
+ }
13
+ declare const Toast: ToastInstance;
14
+ export declare const useToast: () => ToastInstance;
15
+ export default Toast;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ToastProps } from './toast';
3
+ interface ToastInstance {
4
+ close: () => void;
5
+ }
6
+ declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
7
+ declare const clear: () => void;
8
+ declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
9
+ declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
10
+ declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
11
+ declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
12
+ declare const hide: () => void;
13
+ export { show, clear, success, info, loading, fail, hide };
@@ -0,0 +1,28 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { Root } from 'react-dom/client';
3
+ import React from 'react';
4
+ declare type ImperativeProps = {
5
+ open?: boolean;
6
+ onCancel?: () => void;
7
+ afterClose?: () => void;
8
+ };
9
+ declare type TargetElement = ReactElement<ImperativeProps>;
10
+ export declare type ImperativeHandler = {
11
+ close: () => void;
12
+ replace: (element: TargetElement) => void;
13
+ isRendered?: () => boolean;
14
+ };
15
+ export declare type UnmountType = () => Promise<void>;
16
+ export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
17
+ declare const MARK = "__pisell_react_root__";
18
+ declare type ContainerType = (Element | DocumentFragment) & {
19
+ [MARK]?: Root;
20
+ };
21
+ export declare function render(node: React.ReactElement, container: ContainerType): void;
22
+ export declare function unmount(container: ContainerType): Promise<void>;
23
+ /**
24
+ * @deprecated 设置 React 渲染函数以兼容使用。
25
+ */
26
+ export declare function unstableSetRender(render?: RenderType): RenderType;
27
+ export declare function renderImperatively(element: TargetElement): ImperativeHandler;
28
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
4
+ export interface ToastProps {
5
+ /** Toast 类型 */
6
+ icon?: ToastType | React.ReactNode;
7
+ /** 显示的内容,支持文本或 React 节点 */
8
+ content: React.ReactNode;
9
+ /** 是否显示 */
10
+ open?: boolean;
11
+ /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
12
+ duration?: number;
13
+ /** 关闭 */
14
+ onCancel?: () => void;
15
+ /** 关闭后回调 */
16
+ afterClose?: () => void;
17
+ /** 自定义样式类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示遮罩 */
22
+ mask?: boolean;
23
+ }
24
+ declare const Toast: React.FC<ToastProps>;
25
+ export default Toast;
@@ -5,7 +5,7 @@ import { Tag, Tooltip } from 'antd';
5
5
  import { QuestionCircleOutlined } from '@ant-design/icons';
6
6
  import { _formatAmount } from "../packages/utils";
7
7
  import "./index.less";
8
- import { locales, formatAmountWithOptions } from '@pisell/utils';
8
+ import { locales } from '@pisell/utils';
9
9
  import { PREFIX } from "../../index";
10
10
  var Footer = function Footer(_ref) {
11
11
  var _item$_origin;
@@ -20,17 +20,6 @@ var Footer = function Footer(_ref) {
20
20
  num = item.num,
21
21
  discount_reason = item.discount_reason;
22
22
  var weighingInfo = item === null || item === void 0 || (_item$_origin = item._origin) === null || _item$_origin === void 0 || (_item$_origin = _item$_origin._extend) === null || _item$_origin === void 0 ? void 0 : _item$_origin.weighing;
23
- var formatFooterAmount = function formatFooterAmount(amount) {
24
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
25
- if (!weighingInfo) {
26
- return _formatAmount(amount, symbol, precision);
27
- }
28
- return formatAmountWithOptions(amount, symbol, {
29
- precision: precision,
30
- hideDecimalForWholeNumbers: false
31
- });
32
- };
33
-
34
23
  /**
35
24
  * @title: 折扣
36
25
  * @description:
@@ -76,7 +65,7 @@ var Footer = function Footer(_ref) {
76
65
  className: classNames("".concat(PREFIX, "__footer-price-wrap"), weighingInfo && "".concat(PREFIX, "__footer-price-wrap--weighing"))
77
66
  }, !isOnlyTotal ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
78
67
  className: classNames("".concat(PREFIX, "__footer-price"))
79
- }, /*#__PURE__*/React.createElement("span", null, formatFooterAmount(total)), tip ? /*#__PURE__*/React.createElement(Tooltip, {
68
+ }, /*#__PURE__*/React.createElement("span", null, _formatAmount(total, symbol)), tip ? /*#__PURE__*/React.createElement(Tooltip, {
80
69
  title: locales.getText(tip),
81
70
  destroyTooltipOnHide: true
82
71
  }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
@@ -88,6 +77,6 @@ var Footer = function Footer(_ref) {
88
77
  className: "".concat(PREFIX, "__footer-total")
89
78
  }, isDiscount ? /*#__PURE__*/React.createElement("span", {
90
79
  className: "".concat(PREFIX, "__footer-origin-total")
91
- }, formatFooterAmount(origin_total * num)) : null, /*#__PURE__*/React.createElement("span", null, formatFooterAmount(total * num))))), renderDiscountReason());
80
+ }, _formatAmount(origin_total * num, symbol, 2)) : null, /*#__PURE__*/React.createElement("span", null, _formatAmount(total * num, symbol))))), renderDiscountReason());
92
81
  };
93
82
  export default Footer;
@@ -23,9 +23,8 @@
23
23
  }
24
24
 
25
25
  &__footer-price-wrap--weighing {
26
- font-size: var(--pisell-cart-sku-card-physical-text-height, 4mm);
27
- line-height: 1.3;
28
- letter-spacing: -0.02em;
26
+ font-size: 14px;
27
+ line-height: 20px;
29
28
  }
30
29
 
31
30
  &__footer-discount {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGiftProps } from './types';
3
2
  import './index.less';
4
3
  declare const Gift: (props: IGiftProps) => JSX.Element | null;
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * 赠品项数据结构
4
+ */
5
+ export interface IGiftItem {
6
+ /** 图片 URL */
7
+ image?: string;
8
+ /** 标题 */
9
+ title?: string;
10
+ /** 唯一标识 */
11
+ id?: string;
12
+ }
13
+ /**
14
+ * Gift 组件 Props
15
+ */
16
+ export interface IGiftProps {
17
+ /** 是否显示赠品组件 */
18
+ isShow?: boolean;
19
+ /** 赠品总数量(可选择的总数) */
20
+ totalCount?: number;
21
+ /** 已选择的赠品列表 */
22
+ selectedGifts?: IGiftItem[];
23
+ /** 选择的赠品原始数据列表 */
24
+ _selectedOriginGifts?: any[];
25
+ /** 提示文本(未选择时显示) */
26
+ promptText?: string;
27
+ /** 点击事件回调 */
28
+ onClick?: (e: React.MouseEvent) => void;
29
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Note: (props: any) => JSX.Element | null;
4
3
  export default Note;
@@ -0,0 +1,6 @@
1
+ interface IPromotionProps {
2
+ promotions: any[];
3
+ onClick?: (item: any) => void;
4
+ }
5
+ declare const Promotion: (props: IPromotionProps) => JSX.Element;
6
+ export default Promotion;
@@ -1,7 +1,3 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
1
  import React, { useMemo } from 'react';
6
2
  import classNames from 'classnames';
7
3
  import { image as imageAli, formatAmount } from '@pisell/utils';
@@ -58,14 +54,11 @@ var BasicInfo = function BasicInfo(props) {
58
54
  var weighingInfo = dataSource === null || dataSource === void 0 || (_origin = dataSource._origin) === null || _origin === void 0 || (_origin = _origin._extend) === null || _origin === void 0 ? void 0 : _origin.weighing;
59
55
  var hasWeighingInfo = Boolean(weighingInfo && (Number.isFinite(Number(weighingInfo === null || weighingInfo === void 0 ? void 0 : weighingInfo.weight)) || Number.isFinite(Number(weighingInfo === null || weighingInfo === void 0 ? void 0 : weighingInfo.net_weight))));
60
56
  var hasProductMeta = hasSpecs || hasWeighingInfo;
61
- var basicInfoClassName = classNames("".concat(PREFIX, "__basic-info"), _defineProperty({}, "".concat(PREFIX, "__basic-info--weighing"), hasWeighingInfo));
62
57
  var renderProductMeta = function renderProductMeta() {
63
58
  if (!hasProductMeta) {
64
59
  return null;
65
60
  }
66
- return /*#__PURE__*/React.createElement("div", {
67
- className: classNames("".concat(PREFIX, "__product-meta"), _defineProperty({}, "".concat(PREFIX, "__product-meta--weighing"), hasWeighingInfo))
68
- }, hasWeighingInfo ? /*#__PURE__*/React.createElement(Weighing, {
61
+ return /*#__PURE__*/React.createElement(React.Fragment, null, hasWeighingInfo ? /*#__PURE__*/React.createElement(Weighing, {
69
62
  dataSource: weighingInfo,
70
63
  symbol: symbol
71
64
  }) : null, hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
@@ -120,7 +113,7 @@ var BasicInfo = function BasicInfo(props) {
120
113
  }, [isShowOriginalPrice, origin_total, total, hasSpecs, hasWeighingInfo]);
121
114
  if (type === 'a5') {
122
115
  return /*#__PURE__*/React.createElement("div", {
123
- className: basicInfoClassName,
116
+ className: "".concat(PREFIX, "__basic-info"),
124
117
  style: style || {}
125
118
  }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
126
119
  style: {
@@ -143,7 +136,7 @@ var BasicInfo = function BasicInfo(props) {
143
136
  // 套餐列表中,如果没有规格,则显示总价
144
137
  var _price = showAmount ? Number(price !== null && price !== void 0 ? price : 0) * num : price;
145
138
  return /*#__PURE__*/React.createElement("div", {
146
- className: basicInfoClassName,
139
+ className: "".concat(PREFIX, "__basic-info"),
147
140
  style: style || {}
148
141
  }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
149
142
  style: {
@@ -164,7 +157,7 @@ var BasicInfo = function BasicInfo(props) {
164
157
  }, formatAmount(origin_total, 2, symbol)) : null)), renderProductMeta()), renderEdit));
165
158
  }
166
159
  return /*#__PURE__*/React.createElement("div", {
167
- className: basicInfoClassName,
160
+ className: "".concat(PREFIX, "__basic-info"),
168
161
  style: style || {}
169
162
  }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
170
163
  style: {