@pisell/private-materials 6.6.41 → 6.6.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) 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 +16 -16
  7. package/build/lowcode/render/default/view.js +7 -7
  8. package/build/lowcode/view.js +13 -13
  9. package/es/components/Sales/Cart/utils.d.ts +63 -0
  10. package/es/components/Sales/Checkout/utils.d.ts +41 -0
  11. package/es/components/Sales/Summary/index.d.ts +35 -0
  12. package/es/components/Sales/Summary/utils.d.ts +51 -0
  13. package/es/components/appointmentBooking/locales.d.ts +603 -0
  14. package/es/components/booking/components/voucher/utils.d.ts +5 -0
  15. package/es/components/booking/dashboard/serve.d.ts +2 -0
  16. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  17. package/es/components/booking/forms/serve.d.ts +18 -0
  18. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  19. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  20. package/es/components/booking/info/client/serve.d.ts +2 -0
  21. package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  22. package/es/components/booking/info/index.d.ts +4 -0
  23. package/es/components/booking/info/pet/serve.d.ts +1 -0
  24. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  25. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  26. package/es/components/booking/info/service/serve.d.ts +34 -0
  27. package/es/components/booking/info2/cartClientCard/locales.d.ts +33 -0
  28. package/es/components/booking/info2/serve.d.ts +6 -0
  29. package/es/components/booking/locales.d.ts +1619 -0
  30. package/es/components/booking/utils.d.ts +2 -2
  31. package/es/components/checkout/PaymentProvider.d.ts +13 -0
  32. package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
  33. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  34. package/es/components/checkout/components/PaymentResultToast/index.d.ts +9 -0
  35. package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  36. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  37. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  38. package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
  39. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +11 -0
  40. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +7 -0
  41. package/es/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +5 -0
  42. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  43. package/es/components/checkout/constants.d.ts +2 -0
  44. package/es/components/checkout/export.d.ts +9 -0
  45. package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  46. package/es/components/checkout/index.d.ts +5 -0
  47. package/es/components/checkout/locales.d.ts +853 -0
  48. package/es/components/checkout/styles.d.ts +67 -0
  49. package/es/components/checkout/types.d.ts +130 -0
  50. package/es/components/checkout/utils.d.ts +3 -0
  51. package/es/components/eftpos/const.d.ts +64 -0
  52. package/es/components/eftpos/hooks.d.ts +33 -0
  53. package/es/components/eftpos/locales.d.ts +163 -0
  54. package/es/components/eftposPay/EFTPos.d.ts +14 -0
  55. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  56. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  57. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  58. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  59. package/es/components/eftposPay/amount.d.ts +1 -1
  60. package/es/components/eftposPay/const.d.ts +195 -0
  61. package/es/components/eftposPay/device.d.ts +1 -1
  62. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  63. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  64. package/es/components/eftposPay/locales.d.ts +608 -0
  65. package/es/components/eftposPay/manufacturer.d.ts +8 -0
  66. package/es/components/eftposPay/serve.d.ts +16 -0
  67. package/es/components/eftposPay/store/index.d.ts +362 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  69. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
  70. package/es/components/list/List.d.ts +5 -0
  71. package/es/components/list/ResponsiveWrapper.d.ts +16 -0
  72. package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
  73. package/es/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  74. package/es/components/list/components/EmptyState/index.d.ts +2 -0
  75. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  76. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  77. package/es/components/list/components/Pagination/Pagination.d.ts +30 -0
  78. package/es/components/list/components/Pagination/index.d.ts +1 -0
  79. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  80. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  81. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  82. package/es/components/list/components/Tab/index.d.ts +2 -0
  83. package/es/components/list/components/Tab/types.d.ts +14 -0
  84. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  85. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  86. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  87. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  88. package/es/components/list/examples/GroupedListExample.d.ts +3 -0
  89. package/es/components/list/hooks/index.d.ts +5 -0
  90. package/es/components/list/hooks/useDevice.d.ts +24 -0
  91. package/es/components/list/hooks/useListState.d.ts +43 -0
  92. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  93. package/es/components/list/index.d.ts +10 -0
  94. package/es/components/list/locales.d.ts +108 -0
  95. package/es/components/list/types.d.ts +177 -0
  96. package/es/components/list/utils/getText.d.ts +53 -0
  97. package/es/components/list/utils/index.d.ts +4 -0
  98. package/es/components/pay/toB/components/CardGroup/index.d.ts +8 -0
  99. package/es/components/pay/toB/components/Content/index.d.ts +4 -0
  100. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  101. package/es/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
  102. package/es/components/pay/toB/components/index.d.ts +5 -0
  103. package/es/components/pay/toB/hooks.d.ts +12 -0
  104. package/es/components/pay/toB/locales.d.ts +88 -0
  105. package/es/components/pay/toB/paymentMethods/index.d.ts +11 -0
  106. package/es/components/pay/toB/store/context.d.ts +3 -0
  107. package/es/components/pay/toB/store/index.d.ts +3 -0
  108. package/es/components/pay/toB/store/provider.d.ts +4 -0
  109. package/es/components/pay/toB/types/index.d.ts +61 -0
  110. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  111. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  112. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  113. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  114. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  115. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  118. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  119. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
  120. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  121. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  122. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  123. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
  125. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  126. package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  127. package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  128. package/es/components/ruleSetting/locales.d.ts +78 -0
  129. package/es/components/schedules/locales.d.ts +143 -0
  130. package/es/components/shoppingCart/Provider.d.ts +3 -0
  131. package/es/components/shoppingCart/locales.d.ts +58 -0
  132. package/es/components/shoppingCart/mock.d.ts +40 -0
  133. package/es/components/shoppingCart/type.d.ts +50 -0
  134. package/es/components/shoppingCart/utils.d.ts +63 -0
  135. package/es/components/subTotal/locales.d.ts +68 -0
  136. package/es/components/systemSettings/registry/locales.d.ts +456 -0
  137. package/es/components/systemSettings/registry/services.d.ts +77 -0
  138. package/es/components/systemSettings/registry/types.d.ts +128 -0
  139. package/es/components/taxSelect/locales.d.ts +38 -0
  140. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  141. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  142. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  143. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +9 -0
  144. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  145. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  146. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  147. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  148. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  149. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  150. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  151. package/es/components/ticketBooking/context/index.d.ts +2 -0
  152. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  153. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  154. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  155. package/es/components/ticketBooking/locales.d.ts +328 -0
  156. package/es/components/ticketBooking/serve.d.ts +288 -0
  157. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  158. package/es/components/walletList/serve.d.ts +43 -0
  159. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
  160. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  161. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  162. package/es/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
  163. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +4 -0
  164. package/es/components/workSpaceList/components/Sort/index.d.ts +7 -0
  165. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  166. package/es/hooks/index.d.ts +10 -0
  167. package/es/hooks/useEngineContext.d.ts +3 -0
  168. package/es/hooks/useLocale.d.ts +2 -0
  169. package/es/hooks/useLogger.d.ts +2 -0
  170. package/es/hooks/useModal.d.ts +35 -0
  171. package/es/hooks/useModal.example.d.ts +12 -0
  172. package/es/hooks/useModal.integration.example.d.ts +15 -0
  173. package/es/hooks/useToast.d.ts +2 -0
  174. package/es/hooks/useWindowSize.d.ts +5 -0
  175. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  176. package/es/plus/noteModal/locales.d.ts +53 -0
  177. package/es/plus/noteModal/types.d.ts +19 -0
  178. package/es/plus/productSelect/CategoryTabs/index.d.ts +20 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
  181. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
  182. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +8 -0
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +5 -0
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +7 -0
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +7 -0
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
  192. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +7 -0
  193. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
  195. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
  196. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
  197. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
  198. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
  199. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +164 -0
  200. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  201. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  202. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  203. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  204. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +14 -0
  205. package/es/plus/saasAttendance/locales.d.ts +528 -0
  206. package/es/plus/saasAttendance/settings/types.d.ts +130 -0
  207. package/es/plus/selectHolder/locales.d.ts +38 -0
  208. package/es/plus/walletPassGallery/components/passDetail/index.js +3 -3
  209. package/es/plus/walletPassGallery/components/timelineSection/index.js +6 -1
  210. package/es/pro/Login2.0/locales.d.ts +903 -0
  211. package/es/pro/Login2.0/shared/types.d.ts +234 -0
  212. package/es/pro/NumberKeyboardPopover/index.d.ts +36 -0
  213. package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
  214. package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
  215. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  216. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  217. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  218. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  219. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  220. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  221. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  222. package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  223. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  224. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
  225. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  226. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
  227. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  228. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
  229. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  230. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  231. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
  232. package/es/pro/priceKeyboard/index.d.ts +3 -0
  233. package/es/pro/skuDetailModal/locales.d.ts +78 -0
  234. package/es/pro/skuDetailModal/types.d.ts +352 -0
  235. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  236. package/lib/components/Sales/Checkout/utils.d.ts +41 -0
  237. package/lib/components/Sales/Summary/index.d.ts +35 -0
  238. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  239. package/lib/components/appointmentBooking/locales.d.ts +603 -0
  240. package/lib/components/booking/components/voucher/utils.d.ts +5 -0
  241. package/lib/components/booking/dashboard/serve.d.ts +2 -0
  242. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  243. package/lib/components/booking/forms/serve.d.ts +18 -0
  244. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  245. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  246. package/lib/components/booking/info/client/serve.d.ts +2 -0
  247. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  248. package/lib/components/booking/info/index.d.ts +4 -0
  249. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  250. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  251. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  252. package/lib/components/booking/info/service/serve.d.ts +34 -0
  253. package/lib/components/booking/info2/cartClientCard/locales.d.ts +33 -0
  254. package/lib/components/booking/info2/serve.d.ts +6 -0
  255. package/lib/components/booking/locales.d.ts +1619 -0
  256. package/lib/components/booking/utils.d.ts +2 -2
  257. package/lib/components/checkout/PaymentProvider.d.ts +13 -0
  258. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
  259. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  260. package/lib/components/checkout/components/PaymentResultToast/index.d.ts +9 -0
  261. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  262. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  263. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  264. package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
  265. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +11 -0
  266. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +7 -0
  267. package/lib/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +5 -0
  268. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  269. package/lib/components/checkout/constants.d.ts +2 -0
  270. package/lib/components/checkout/export.d.ts +9 -0
  271. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  272. package/lib/components/checkout/index.d.ts +5 -0
  273. package/lib/components/checkout/locales.d.ts +853 -0
  274. package/lib/components/checkout/styles.d.ts +67 -0
  275. package/lib/components/checkout/types.d.ts +130 -0
  276. package/lib/components/checkout/utils.d.ts +3 -0
  277. package/lib/components/eftpos/const.d.ts +64 -0
  278. package/lib/components/eftpos/hooks.d.ts +33 -0
  279. package/lib/components/eftpos/locales.d.ts +163 -0
  280. package/lib/components/eftposPay/EFTPos.d.ts +14 -0
  281. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  282. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  283. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  284. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  285. package/lib/components/eftposPay/amount.d.ts +1 -1
  286. package/lib/components/eftposPay/const.d.ts +195 -0
  287. package/lib/components/eftposPay/device.d.ts +1 -1
  288. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  289. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  290. package/lib/components/eftposPay/locales.d.ts +608 -0
  291. package/lib/components/eftposPay/manufacturer.d.ts +8 -0
  292. package/lib/components/eftposPay/serve.d.ts +16 -0
  293. package/lib/components/eftposPay/store/index.d.ts +362 -0
  294. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  295. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
  296. package/lib/components/list/List.d.ts +5 -0
  297. package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
  298. package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
  299. package/lib/components/list/components/EmptyState/EmptyState.d.ts +20 -0
  300. package/lib/components/list/components/EmptyState/index.d.ts +2 -0
  301. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  302. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  303. package/lib/components/list/components/Pagination/Pagination.d.ts +30 -0
  304. package/lib/components/list/components/Pagination/index.d.ts +1 -0
  305. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  306. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  307. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  308. package/lib/components/list/components/Tab/index.d.ts +2 -0
  309. package/lib/components/list/components/Tab/types.d.ts +14 -0
  310. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  311. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  312. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  313. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  314. package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
  315. package/lib/components/list/hooks/index.d.ts +5 -0
  316. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  317. package/lib/components/list/hooks/useListState.d.ts +43 -0
  318. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  319. package/lib/components/list/index.d.ts +10 -0
  320. package/lib/components/list/locales.d.ts +108 -0
  321. package/lib/components/list/types.d.ts +177 -0
  322. package/lib/components/list/utils/getText.d.ts +53 -0
  323. package/lib/components/list/utils/index.d.ts +4 -0
  324. package/lib/components/pay/toB/components/CardGroup/index.d.ts +8 -0
  325. package/lib/components/pay/toB/components/Content/index.d.ts +4 -0
  326. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  327. package/lib/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
  328. package/lib/components/pay/toB/components/index.d.ts +5 -0
  329. package/lib/components/pay/toB/hooks.d.ts +12 -0
  330. package/lib/components/pay/toB/locales.d.ts +88 -0
  331. package/lib/components/pay/toB/paymentMethods/index.d.ts +11 -0
  332. package/lib/components/pay/toB/store/context.d.ts +3 -0
  333. package/lib/components/pay/toB/store/index.d.ts +3 -0
  334. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  335. package/lib/components/pay/toB/types/index.d.ts +61 -0
  336. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  337. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  338. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  339. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  340. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  341. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  342. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  343. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  344. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  345. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
  346. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  347. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  348. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  349. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  350. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
  351. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  352. package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  353. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  354. package/lib/components/ruleSetting/locales.d.ts +78 -0
  355. package/lib/components/schedules/locales.d.ts +143 -0
  356. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  357. package/lib/components/shoppingCart/locales.d.ts +58 -0
  358. package/lib/components/shoppingCart/mock.d.ts +40 -0
  359. package/lib/components/shoppingCart/type.d.ts +50 -0
  360. package/lib/components/shoppingCart/utils.d.ts +63 -0
  361. package/lib/components/subTotal/locales.d.ts +68 -0
  362. package/lib/components/systemSettings/registry/locales.d.ts +456 -0
  363. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  364. package/lib/components/systemSettings/registry/types.d.ts +128 -0
  365. package/lib/components/taxSelect/locales.d.ts +38 -0
  366. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +27 -0
  367. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  368. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  369. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +9 -0
  370. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  371. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  372. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  373. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  374. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  375. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  376. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  377. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  378. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  379. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  380. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  381. package/lib/components/ticketBooking/locales.d.ts +328 -0
  382. package/lib/components/ticketBooking/serve.d.ts +288 -0
  383. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  384. package/lib/components/walletList/serve.d.ts +43 -0
  385. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
  386. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  387. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  388. package/lib/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
  389. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +4 -0
  390. package/lib/components/workSpaceList/components/Sort/index.d.ts +7 -0
  391. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  392. package/lib/hooks/index.d.ts +10 -0
  393. package/lib/hooks/useEngineContext.d.ts +3 -0
  394. package/lib/hooks/useLocale.d.ts +2 -0
  395. package/lib/hooks/useLogger.d.ts +2 -0
  396. package/lib/hooks/useModal.d.ts +35 -0
  397. package/lib/hooks/useModal.example.d.ts +12 -0
  398. package/lib/hooks/useModal.integration.example.d.ts +15 -0
  399. package/lib/hooks/useToast.d.ts +2 -0
  400. package/lib/hooks/useWindowSize.d.ts +5 -0
  401. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  402. package/lib/plus/noteModal/locales.d.ts +53 -0
  403. package/lib/plus/noteModal/types.d.ts +19 -0
  404. package/lib/plus/productSelect/CategoryTabs/index.d.ts +20 -0
  405. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
  406. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
  407. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
  408. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
  409. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
  410. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +8 -0
  411. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  412. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +5 -0
  413. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  414. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +7 -0
  415. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +7 -0
  416. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  417. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
  418. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +7 -0
  419. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  420. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
  421. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
  422. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
  423. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
  424. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
  425. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +164 -0
  426. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  427. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  428. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  429. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  430. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +14 -0
  431. package/lib/plus/saasAttendance/locales.d.ts +528 -0
  432. package/lib/plus/saasAttendance/settings/types.d.ts +130 -0
  433. package/lib/plus/selectHolder/locales.d.ts +38 -0
  434. package/lib/plus/walletPassGallery/components/timelineSection/index.js +15 -8
  435. package/lib/pro/Login2.0/locales.d.ts +903 -0
  436. package/lib/pro/Login2.0/shared/types.d.ts +234 -0
  437. package/lib/pro/NumberKeyboardPopover/index.d.ts +36 -0
  438. package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
  439. package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
  440. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  441. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  442. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  443. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  444. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  445. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  446. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  447. package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  448. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  449. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
  450. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  451. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
  452. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  453. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
  454. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  455. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  456. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
  457. package/lib/pro/priceKeyboard/index.d.ts +3 -0
  458. package/lib/pro/skuDetailModal/locales.d.ts +78 -0
  459. package/lib/pro/skuDetailModal/types.d.ts +352 -0
  460. package/package.json +2 -2
@@ -0,0 +1,43 @@
1
+ import { TabItem, LoadDataParams } from '../types';
2
+ export interface ListState {
3
+ activeTab: string;
4
+ currentPage: number;
5
+ isStickyActive: boolean;
6
+ }
7
+ export declare type ListAction = {
8
+ type: 'SET_ACTIVE_TAB';
9
+ payload: string;
10
+ } | {
11
+ type: 'SET_CURRENT_PAGE';
12
+ payload: number;
13
+ } | {
14
+ type: 'SET_STICKY_ACTIVE';
15
+ payload: boolean;
16
+ } | {
17
+ type: 'RESET_PAGE';
18
+ };
19
+ export interface UseListStateProps {
20
+ /** 外部传入的当前页码 */
21
+ externalCurrentPage?: number;
22
+ /** tab数据 */
23
+ tabItems: TabItem[];
24
+ /** 默认页面大小 */
25
+ defaultPageSize: number;
26
+ /** 数据加载回调 */
27
+ onLoadData?: (params: LoadDataParams) => void;
28
+ }
29
+ export interface UseListStateReturn {
30
+ state: ListState;
31
+ setActiveTab: (tab: string) => void;
32
+ setCurrentPage: (page: number) => void;
33
+ setStickyActive: (active: boolean) => void;
34
+ resetPage: () => void;
35
+ handleTabChange: (key: string) => void;
36
+ handlePageChange: (page: number, size?: number) => void;
37
+ handleShowSizeChange: (current: number, size: number) => void;
38
+ handleLoadMore: () => void;
39
+ handleViewLess: () => void;
40
+ handleScrollLoad: () => void;
41
+ actualCurrentPage: number;
42
+ }
43
+ export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
@@ -0,0 +1,34 @@
1
+ export interface WaterfallItem {
2
+ id: string | number;
3
+ data: any;
4
+ height?: number;
5
+ width?: number;
6
+ }
7
+ export interface WaterfallTrack<T = any> {
8
+ items: T[];
9
+ size: number;
10
+ }
11
+ export interface WaterfallLayoutOptions {
12
+ tracks: number;
13
+ trackGap: number;
14
+ itemGap: number;
15
+ direction: 'vertical' | 'horizontal';
16
+ }
17
+ export interface WaterfallLayout<T = any> {
18
+ tracks: WaterfallTrack<T>[];
19
+ totalSize: number;
20
+ }
21
+ export declare const useWaterfall: <T extends {
22
+ id: string | number;
23
+ height?: number | undefined;
24
+ width?: number | undefined;
25
+ }>(items: T[], options: WaterfallLayoutOptions) => {
26
+ layout: WaterfallLayout<T>;
27
+ registerItemRef: (id: string | number, element: HTMLElement | null) => void;
28
+ measureItemSize: (id: string | number) => {
29
+ width: number;
30
+ height: number;
31
+ };
32
+ recalculateLayout: () => void;
33
+ };
34
+ export default useWaterfall;
@@ -0,0 +1,10 @@
1
+ export { default } from './List';
2
+ export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
3
+ export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
4
+ export { default as Pagination } from './components/Pagination';
5
+ export { default as Tab } from './components/Tab';
6
+ export { useDevice, getUserAgentInfo } from './hooks/useDevice';
7
+ export { default as TestList } from './TestResponsiveWrapper';
8
+ export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
9
+ export type { TabProps } from './components/Tab';
10
+ export type { PaginationProps } from './components/Pagination/Pagination';
@@ -0,0 +1,108 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell-list-tab-group-default': string;
4
+ 'pisell-list-empty-text-default': string;
5
+ 'pisell-list-load-more': string;
6
+ 'pisell-list-view-less': string;
7
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
8
+ 'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
9
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
10
+ 'pisell-list-pagination-previous': string;
11
+ 'pisell-list-pagination-next': string;
12
+ 'pisell-list-scroll-down': string;
13
+ 'pisell-list-scroll-right': string;
14
+ 'pisell-list-scroll-to-bottom': string;
15
+ 'pisell-list-scroll-to-end': string;
16
+ 'pisell-list-loading': string;
17
+ 'pisell-list-loading-more': string;
18
+ 'pisell-list-no-more-data': string;
19
+ 'pisell-list-group-title-all': string;
20
+ 'pisell-list-load-error': string;
21
+ 'pisell-list-retry': string;
22
+ };
23
+ 'zh-CN': {
24
+ 'pisell-list-tab-group-default': string;
25
+ 'pisell-list-empty-text-default': string;
26
+ 'pisell-list-load-more': string;
27
+ 'pisell-list-view-less': string;
28
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
29
+ 'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
30
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
31
+ 'pisell-list-pagination-previous': string;
32
+ 'pisell-list-pagination-next': string;
33
+ 'pisell-list-scroll-down': string;
34
+ 'pisell-list-scroll-right': string;
35
+ 'pisell-list-scroll-to-bottom': string;
36
+ 'pisell-list-scroll-to-end': string;
37
+ 'pisell-list-loading': string;
38
+ 'pisell-list-loading-more': string;
39
+ 'pisell-list-no-more-data': string;
40
+ 'pisell-list-group-title-all': string;
41
+ 'pisell-list-load-error': string;
42
+ 'pisell-list-retry': string;
43
+ };
44
+ 'zh-HK': {
45
+ 'pisell-list-tab-group-default': string;
46
+ 'pisell-list-empty-text-default': string;
47
+ 'pisell-list-load-more': string;
48
+ 'pisell-list-view-less': string;
49
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
50
+ 'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
51
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
52
+ 'pisell-list-pagination-previous': string;
53
+ 'pisell-list-pagination-next': string;
54
+ 'pisell-list-scroll-down': string;
55
+ 'pisell-list-scroll-right': string;
56
+ 'pisell-list-scroll-to-bottom': string;
57
+ 'pisell-list-scroll-to-end': string;
58
+ 'pisell-list-loading': string;
59
+ 'pisell-list-loading-more': string;
60
+ 'pisell-list-no-more-data': string;
61
+ 'pisell-list-group-title-all': string;
62
+ 'pisell-list-load-error': string;
63
+ 'pisell-list-retry': string;
64
+ };
65
+ ja: {
66
+ 'pisell-list-tab-group-default': string;
67
+ 'pisell-list-empty-text-default': string;
68
+ 'pisell-list-load-more': string;
69
+ 'pisell-list-view-less': string;
70
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
71
+ 'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
72
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
73
+ 'pisell-list-pagination-previous': string;
74
+ 'pisell-list-pagination-next': string;
75
+ 'pisell-list-scroll-down': string;
76
+ 'pisell-list-scroll-right': string;
77
+ 'pisell-list-scroll-to-bottom': string;
78
+ 'pisell-list-scroll-to-end': string;
79
+ 'pisell-list-loading': string;
80
+ 'pisell-list-loading-more': string;
81
+ 'pisell-list-no-more-data': string;
82
+ 'pisell-list-group-title-all': string;
83
+ 'pisell-list-load-error': string;
84
+ 'pisell-list-retry': string;
85
+ };
86
+ pt: {
87
+ 'pisell-list-tab-group-default': string;
88
+ 'pisell-list-empty-text-default': string;
89
+ 'pisell-list-load-more': string;
90
+ 'pisell-list-view-less': string;
91
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
92
+ 'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
93
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
94
+ 'pisell-list-pagination-previous': string;
95
+ 'pisell-list-pagination-next': string;
96
+ 'pisell-list-scroll-down': string;
97
+ 'pisell-list-scroll-right': string;
98
+ 'pisell-list-scroll-to-bottom': string;
99
+ 'pisell-list-scroll-to-end': string;
100
+ 'pisell-list-loading': string;
101
+ 'pisell-list-loading-more': string;
102
+ 'pisell-list-no-more-data': string;
103
+ 'pisell-list-group-title-all': string;
104
+ 'pisell-list-load-error': string;
105
+ 'pisell-list-retry': string;
106
+ };
107
+ };
108
+ export default _default;
@@ -0,0 +1,177 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ /** 设备类型 */
3
+ export declare type DeviceType = 'pc' | 'pad' | 'mobile';
4
+ /** 设备信息 */
5
+ export interface DeviceInfo {
6
+ type: DeviceType;
7
+ isMobile: boolean;
8
+ isPad: boolean;
9
+ isPc: boolean;
10
+ width: number;
11
+ height: number;
12
+ }
13
+ /** 响应式配置接口 */
14
+ export interface ResponsiveConfig {
15
+ /** PC端特定配置 */
16
+ pc?: Partial<ListProps>;
17
+ /** 平板端特定配置 */
18
+ pad?: Partial<ListProps>;
19
+ /** 移动端特定配置 */
20
+ mobile?: Partial<ListProps>;
21
+ }
22
+ /** 响应式Props接口 - 继承ListProps并添加responsive属性 */
23
+ export interface ResponsiveProps extends ListProps {
24
+ /** 响应式配置 */
25
+ responsive?: ResponsiveConfig;
26
+ }
27
+ /** ResponsiveWrapper 组件属性 */
28
+ export interface ResponsiveWrapperProps extends ResponsiveProps {
29
+ /** 子元素 */
30
+ children?: ReactNode;
31
+ }
32
+ /** 基础列表项接口 */
33
+ export interface BaseListItem {
34
+ /** 唯一标识 */
35
+ id: string | number;
36
+ /** 预设高度(瀑布流模式) */
37
+ height?: number;
38
+ /** 预设宽度(瀑布流模式) */
39
+ width?: number;
40
+ /** 其他任意属性,可以包含用于分组的字段 */
41
+ [key: string]: any;
42
+ }
43
+ /** 空状态配置接口 */
44
+ export interface EmptyStateConfig {
45
+ /** 是否显示空状态 */
46
+ show?: boolean;
47
+ /** 空状态文本 */
48
+ text?: string;
49
+ /** 空状态图标 */
50
+ icon?: ReactNode;
51
+ /** 空状态描述 */
52
+ description?: string;
53
+ }
54
+ /** 分页信息接口 */
55
+ export interface PaginationInfo {
56
+ /** 当前页数 */
57
+ current?: number;
58
+ /** 总页数 */
59
+ total?: number;
60
+ /** 总数据条数 */
61
+ totalCount?: number;
62
+ }
63
+ /** 布局配置接口 */
64
+ export interface LayoutConfig {
65
+ /** 显示样式 */
66
+ displayStyle?: 'grid' | 'waterfall';
67
+ /** 排版方式 */
68
+ layoutDirection?: 'horizontal' | 'vertical';
69
+ /** 列数 */
70
+ columns?: number;
71
+ /** 行数 */
72
+ rows?: number;
73
+ /** 列间距 */
74
+ columnGap?: number;
75
+ /** 行间距 */
76
+ rowGap?: number;
77
+ /** 缩放倍率 */
78
+ zoom?: number;
79
+ }
80
+ /** Tab配置接口 */
81
+ export interface TabConfig {
82
+ /** tab样式 */
83
+ tabStyle?: 'anchor' | 'switch' | 'none';
84
+ /** 指定用于分组的数据字段名,例如 'category'、'type' 等 */
85
+ tabGroup?: string;
86
+ /** Tab数据源 */
87
+ tabData?: TabItem[];
88
+ /** 顶部固定 */
89
+ stickyTop?: boolean;
90
+ }
91
+ /** 分页配置接口 */
92
+ export interface PaginationConfig {
93
+ /** 分页方式 */
94
+ paginationType?: 'all' | 'scroll' | 'pager' | 'more';
95
+ /** 默认显示个数 */
96
+ defaultPageSize?: number;
97
+ /** 每次加载个数 */
98
+ pageSize?: number;
99
+ /** 分页信息 */
100
+ pagination?: PaginationInfo;
101
+ }
102
+ /** 泛型List组件Props接口 */
103
+ export interface ListProps<TItem extends BaseListItem = BaseListItem> {
104
+ /** 基础属性 */
105
+ className?: string;
106
+ style?: CSSProperties;
107
+ width?: string | number;
108
+ height?: string | number;
109
+ /** 布局配置 */
110
+ displayStyle?: LayoutConfig['displayStyle'];
111
+ layoutDirection?: LayoutConfig['layoutDirection'];
112
+ columns?: LayoutConfig['columns'];
113
+ rows?: LayoutConfig['rows'];
114
+ columnGap?: LayoutConfig['columnGap'];
115
+ rowGap?: LayoutConfig['rowGap'];
116
+ zoom?: LayoutConfig['zoom'];
117
+ /** Tab配置 */
118
+ tabStyle?: TabConfig['tabStyle'];
119
+ tabGroup?: TabConfig['tabGroup'];
120
+ tabData?: TabConfig['tabData'];
121
+ stickyTop?: TabConfig['stickyTop'];
122
+ /** 分页配置 */
123
+ paginationType?: PaginationConfig['paginationType'];
124
+ defaultPageSize?: PaginationConfig['defaultPageSize'];
125
+ pageSize?: PaginationConfig['pageSize'];
126
+ pagination?: PaginationConfig['pagination'];
127
+ /** 数据和渲染 */
128
+ data?: TItem[];
129
+ children?: ReactNode;
130
+ renderItem?: (item: TItem, index: number) => ReactNode;
131
+ /** 回调函数 */
132
+ onLoadData?: (params: LoadDataParams) => void;
133
+ /** 状态配置 */
134
+ emptyConfig?: EmptyStateConfig;
135
+ loading?: boolean;
136
+ }
137
+ /** 向后兼容的非泛型版本 */
138
+ export interface LegacyListProps extends ListProps<any> {
139
+ /** 兼容旧的any[]类型 */
140
+ data?: any[];
141
+ renderItem?: (item: any, index: number) => ReactNode;
142
+ }
143
+ export interface TabItem {
144
+ /** 唯一标识,同时用作anchor模式下的锚点标识 */
145
+ key: string;
146
+ /** 显示文本 */
147
+ label: string;
148
+ /** 分组值,对应数据项中 tabGroup 指定字段的值 */
149
+ group?: string;
150
+ /** 是否禁用 */
151
+ disabled?: boolean;
152
+ }
153
+ export interface LoadMoreParams {
154
+ /** 当前页码 */
155
+ currentPage: number;
156
+ /** 每页数量 */
157
+ pageSize: number;
158
+ /** 当前tab */
159
+ activeTab?: string;
160
+ }
161
+ /** 数据加载触发类型 */
162
+ export declare type LoadDataTrigger = 'tabChange' | 'pagination' | 'pageSize' | 'loadMore' | 'scroll';
163
+ /** 统一的数据加载参数 */
164
+ export interface LoadDataParams {
165
+ /** 触发类型 */
166
+ trigger: LoadDataTrigger;
167
+ /** 当前页码 */
168
+ currentPage: number;
169
+ /** 每页数量 */
170
+ pageSize: number;
171
+ /** 当前激活的tab */
172
+ activeTab?: string;
173
+ /** 上一页页码(分页变化时提供) */
174
+ previousPage?: number;
175
+ /** 上一页大小(页大小变化时提供) */
176
+ previousPageSize?: number;
177
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * 国际化文案获取工具函数
3
+ * 参考 AmountSummary 组件的实现方式,使用 useEngineContext 获取语言设置
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * import { useGetText } from './utils';
8
+ * import locales from './locales';
9
+ *
10
+ * const MyComponent = () => {
11
+ * const { getText, getTextFunc } = useGetText(locales);
12
+ *
13
+ * // 获取字符串文案
14
+ * const title = getText('component.title', 'Default Title');
15
+ *
16
+ * // 获取函数类型文案
17
+ * const formatFunc = getTextFunc('component.format');
18
+ * const formattedText = typeof formatFunc === 'function'
19
+ * ? formatFunc(arg1, arg2)
20
+ * : 'Default Text';
21
+ *
22
+ * return <div>{title}</div>;
23
+ * };
24
+ * ```
25
+ */
26
+ export declare type SupportedLanguage = 'en' | 'zh-CN' | 'zh-HK' | 'ja' | 'pt';
27
+ export interface LocalesObject {
28
+ [key: string]: {
29
+ [key: string]: string | ((...args: any[]) => string);
30
+ };
31
+ }
32
+ export interface GetTextFunctions {
33
+ getText: (key: string, fallback?: string) => string;
34
+ getTextFunc: (key: string) => any;
35
+ getCurrentLanguage: () => string;
36
+ }
37
+ /**
38
+ * 使用 useEngineContext 创建本地化文案获取函数的 Hook
39
+ * @param locales - 本地化文案对象
40
+ * @returns getText 和 getTextFunc 函数
41
+ */
42
+ export declare const useGetText: (locales: LocalesObject) => GetTextFunctions;
43
+ /**
44
+ * 创建本地化文案获取函数(非 Hook 版本,保持向后兼容)
45
+ * @param locales - 本地化文案对象
46
+ * @returns getText 和 getTextFunc 函数
47
+ * @deprecated 推荐使用 useGetText Hook 版本
48
+ */
49
+ export declare const createGetText: (locales: LocalesObject) => GetTextFunctions;
50
+ /**
51
+ * 默认导出:直接创建一个通用的 getText 函数工厂
52
+ */
53
+ export default createGetText;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * List 组件工具函数导出
3
+ */
4
+ export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions } from './getText';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PayMethod, PayMethodGroup } from '../../types';
3
+ import './index.less';
4
+ declare const ToBPayCardGroup: (props: {
5
+ data: PayMethodGroup;
6
+ onChange: (item: PayMethod, type: 'fullPay' | 'pay') => void;
7
+ }) => React.JSX.Element;
8
+ export default ToBPayCardGroup;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const ToBPayContent: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default ToBPayContent;
@@ -0,0 +1,16 @@
1
+ import { Order, PayMethod, PayMethodCode } from '../../types';
2
+ export declare const isEftposPay: (code: PayMethodCode) => boolean;
3
+ /**
4
+ * @title: 处理eftpos支付
5
+ * @description: 处理eftpos支付
6
+ * @param {any} action 引擎action
7
+ * @param {any} params 参数
8
+ * @param {any} successCallback 成功回调
9
+ */
10
+ export declare const handleEftposPay: (action: any, params: {
11
+ payMethod: PayMethod;
12
+ order: Order;
13
+ symbol: string;
14
+ network: any;
15
+ type: string;
16
+ }, successCallback: (res: any) => void) => void;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface EFTPOSProps {
4
+ dynamicMaxHeight?: string;
5
+ isWebPos?: boolean;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<EFTPOSProps & React.RefAttributes<unknown>>;
8
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export { default as ToBPayContent } from './Content';
2
+ export { default as ToBPayCard } from './Card';
3
+ export { default as ToBPayCardGroup } from './CardGroup';
4
+ export { default as ConfirmedPayment } from './ConfirmedPayment';
5
+ export { default as ToBPayCache } from './Cache';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @title: 获取引擎utils
3
+ */
4
+ export declare const useEngineUtils: () => any;
5
+ /**
6
+ * @title: 获取当前的语言
7
+ */
8
+ export declare const useEngineLocale: () => any;
9
+ /**
10
+ * @title: 获取当前的货币符号
11
+ */
12
+ export declare const useSymbol: () => any;
@@ -0,0 +1,88 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'tobPay.text.back': string;
4
+ 'tobPay.text.waitPay': string;
5
+ 'tobPay.text.card.edit.amount': string;
6
+ 'tobPay.text.group.normalPay': string;
7
+ 'tobPay.text.group.thirdPay': string;
8
+ 'tobPay.text.cancel': string;
9
+ 'tobPay.text.submit': string;
10
+ 'tobPay.text.confirmed.payment': string;
11
+ 'tobPay.text.cash.modal.amount.toPay': string;
12
+ 'tobPay.text.cash.modal.input.title': string;
13
+ 'tobPay.text.cash.modal.no.change.given': string;
14
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
15
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
16
+ 'tobPay.text.cash.modal.ok': string;
17
+ 'tobPay.text.payment.with.surcharge': string;
18
+ };
19
+ 'zh-CN': {
20
+ 'tobPay.text.back': string;
21
+ 'tobPay.text.waitPay': string;
22
+ 'tobPay.text.card.edit.amount': string;
23
+ 'tobPay.text.group.normalPay': string;
24
+ 'tobPay.text.group.thirdPay': string;
25
+ 'tobPay.text.cancel': string;
26
+ 'tobPay.text.submit': string;
27
+ 'tobPay.text.confirmed.payment': string;
28
+ 'tobPay.text.cash.modal.amount.toPay': string;
29
+ 'tobPay.text.cash.modal.input.title': string;
30
+ 'tobPay.text.cash.modal.no.change.given': string;
31
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
32
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
33
+ 'tobPay.text.cash.modal.ok': string;
34
+ 'tobPay.text.payment.with.surcharge': string;
35
+ };
36
+ 'zh-HK': {
37
+ 'tobPay.text.back': string;
38
+ 'tobPay.text.waitPay': string;
39
+ 'tobPay.text.card.edit.amount': string;
40
+ 'tobPay.text.group.normalPay': string;
41
+ 'tobPay.text.group.thirdPay': string;
42
+ 'tobPay.text.cancel': string;
43
+ 'tobPay.text.submit': string;
44
+ 'tobPay.text.confirmed.payment': string;
45
+ 'tobPay.text.cash.modal.amount.toPay': string;
46
+ 'tobPay.text.cash.modal.input.title': string;
47
+ 'tobPay.text.cash.modal.no.change.given': string;
48
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
49
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
50
+ 'tobPay.text.cash.modal.ok': string;
51
+ 'tobPay.text.payment.with.surcharge': string;
52
+ };
53
+ ja: {
54
+ 'tobPay.text.back': string;
55
+ 'tobPay.text.waitPay': string;
56
+ 'tobPay.text.card.edit.amount': string;
57
+ 'tobPay.text.group.normalPay': string;
58
+ 'tobPay.text.group.thirdPay': string;
59
+ 'tobPay.text.cancel': string;
60
+ 'tobPay.text.submit': string;
61
+ 'tobPay.text.confirmed.payment': string;
62
+ 'tobPay.text.cash.modal.amount.toPay': string;
63
+ 'tobPay.text.cash.modal.input.title': string;
64
+ 'tobPay.text.cash.modal.no.change.given': string;
65
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
66
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
67
+ 'tobPay.text.cash.modal.ok': string;
68
+ 'tobPay.text.payment.with.surcharge': string;
69
+ };
70
+ pt: {
71
+ 'tobPay.text.back': string;
72
+ 'tobPay.text.waitPay': string;
73
+ 'tobPay.text.card.edit.amount': string;
74
+ 'tobPay.text.group.normalPay': string;
75
+ 'tobPay.text.group.thirdPay': string;
76
+ 'tobPay.text.cancel': string;
77
+ 'tobPay.text.submit': string;
78
+ 'tobPay.text.confirmed.payment': string;
79
+ 'tobPay.text.cash.modal.amount.toPay': string;
80
+ 'tobPay.text.cash.modal.input.title': string;
81
+ 'tobPay.text.cash.modal.no.change.given': string;
82
+ 'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
83
+ 'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
84
+ 'tobPay.text.cash.modal.ok': string;
85
+ 'tobPay.text.payment.with.surcharge': string;
86
+ };
87
+ };
88
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ToBPayParams } from '../types';
3
+ export interface PaymentMethodsRef {
4
+ onPay: (type: 'eftpos' | 'mx51', params: ToBPayParams) => void;
5
+ }
6
+ export interface PaymentMethodsProps {
7
+ dynamicMaxHeight?: string;
8
+ isWebPos?: boolean;
9
+ }
10
+ declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<PaymentMethodsRef>>;
11
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ToBPayContextType } from '../types';
3
+ export declare const ToBPayContext: import("react").Context<ToBPayContextType>;
@@ -0,0 +1,3 @@
1
+ export * from './context';
2
+ export * from './provider';
3
+ export * from './hooks';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ToBPayProvider: ({ children }: {
3
+ children: React.ReactNode;
4
+ }) => React.JSX.Element;