@pisell/private-materials 6.3.6 → 6.3.9

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 (371) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  9. package/es/components/booking/addons/model.d.ts +1 -10
  10. package/es/components/booking/forms/model.d.ts +1 -10
  11. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  12. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  13. package/es/components/booking/info/model.d.ts +1 -10
  14. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  15. package/es/components/booking/info2/service/addService/utils.js +16 -1
  16. package/es/components/booking/model.d.ts +1 -9
  17. package/es/components/booking/notes/model.d.ts +1 -10
  18. package/es/components/booking/payments/model.d.ts +1 -10
  19. package/es/components/booking/utils.d.ts +2 -2
  20. package/es/components/eftposPay/amount.d.ts +1 -1
  21. package/es/components/eftposPay/device.d.ts +1 -1
  22. package/es/components/eftposPay/hooks.d.ts +2 -2
  23. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  24. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  25. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  26. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  27. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  28. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  29. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  30. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  31. package/es/components/pay/toC/model.d.ts +1 -9
  32. package/es/components/schedules/model.d.ts +1 -9
  33. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  34. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  35. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  36. package/es/components/wallet/Detail/model.d.ts +1 -13
  37. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  38. package/es/components/wallet/PointCard/model.d.ts +1 -13
  39. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  40. package/es/components/wallet/Voucher/model.d.ts +1 -13
  41. package/es/components/wallet/model.d.ts +1 -9
  42. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  43. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  44. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  45. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  46. package/lib/components/booking/addons/model.d.ts +1 -10
  47. package/lib/components/booking/forms/model.d.ts +1 -10
  48. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  49. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  50. package/lib/components/booking/info/model.d.ts +1 -10
  51. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  52. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  53. package/lib/components/booking/model.d.ts +1 -9
  54. package/lib/components/booking/notes/model.d.ts +1 -10
  55. package/lib/components/booking/payments/model.d.ts +1 -10
  56. package/lib/components/booking/utils.d.ts +2 -2
  57. package/lib/components/eftposPay/amount.d.ts +1 -1
  58. package/lib/components/eftposPay/device.d.ts +1 -1
  59. package/lib/components/eftposPay/hooks.d.ts +2 -2
  60. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  61. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  62. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  63. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  64. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  65. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  66. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  67. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  68. package/lib/components/pay/toC/model.d.ts +1 -9
  69. package/lib/components/schedules/model.d.ts +1 -9
  70. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  71. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  72. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  73. package/lib/components/wallet/Detail/model.d.ts +1 -13
  74. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  75. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  76. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  77. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  78. package/lib/components/wallet/model.d.ts +1 -9
  79. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  80. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  81. package/package.json +4 -4
  82. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  83. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  84. package/es/businessModel/SalesModel/index.d.ts +0 -3
  85. package/es/businessModel/index.d.ts +0 -0
  86. package/es/components/Sales/Cart/serve.d.ts +0 -2
  87. package/es/components/Sales/Cart/types.d.ts +0 -31
  88. package/es/components/Sales/Cart/utils.d.ts +0 -63
  89. package/es/components/Sales/Checkout/index.d.ts +0 -37
  90. package/es/components/Sales/Checkout/serve.d.ts +0 -15
  91. package/es/components/Sales/Checkout/utils.d.ts +0 -41
  92. package/es/components/Sales/Customer/index.d.ts +0 -25
  93. package/es/components/Sales/Event/Detail.d.ts +0 -30
  94. package/es/components/Sales/Event/index.d.ts +0 -30
  95. package/es/components/Sales/Event/serve.d.ts +0 -49
  96. package/es/components/Sales/Holder/index.d.ts +0 -33
  97. package/es/components/Sales/Holder/serve.d.ts +0 -8
  98. package/es/components/Sales/Init/index.d.ts +0 -25
  99. package/es/components/Sales/Init/serve.d.ts +0 -3
  100. package/es/components/Sales/Resource/index.d.ts +0 -26
  101. package/es/components/Sales/Resource/serve.d.ts +0 -12
  102. package/es/components/Sales/Step/index.d.ts +0 -39
  103. package/es/components/Sales/Summary/index.d.ts +0 -35
  104. package/es/components/Sales/Summary/serve.d.ts +0 -1
  105. package/es/components/Sales/Summary/utils.d.ts +0 -51
  106. package/es/components/Sales/hooks/index.d.ts +0 -1
  107. package/es/components/Sales/index.d.ts +0 -20
  108. package/es/components/Sales/utils/index.d.ts +0 -1
  109. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  110. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  111. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  112. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  113. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  114. package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  115. package/es/components/appointmentBooking/context.d.ts +0 -35
  116. package/es/components/appointmentBooking/locales.d.ts +0 -360
  117. package/es/components/appointmentBooking/type.d.ts +0 -17
  118. package/es/components/booking/components/drawer/index.d.ts +0 -19
  119. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  120. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  121. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  122. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  123. package/es/components/booking/editBookingModal/serve.d.ts +0 -52
  124. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  125. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  126. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  127. package/es/components/booking/info/Provider.d.ts +0 -0
  128. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  129. package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  130. package/es/components/booking/info/index.d.ts +0 -3
  131. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  132. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  133. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  134. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  135. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  136. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  137. package/es/components/booking/info2/utils.d.ts +0 -4
  138. package/es/components/booking/locales.d.ts +0 -831
  139. package/es/components/eftposPay/const.d.ts +0 -184
  140. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  141. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  142. package/es/components/eftposPay/locales.d.ts +0 -330
  143. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  144. package/es/components/eftposPay/store/index.d.ts +0 -355
  145. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  146. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  147. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  148. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  149. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  150. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  151. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  152. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  153. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  154. package/es/components/eventBooking/locales.d.ts +0 -246
  155. package/es/components/eventBooking/type.d.ts +0 -17
  156. package/es/components/eventBooking/utils.d.ts +0 -45
  157. package/es/components/login/locales.d.ts +0 -24
  158. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  159. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  160. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  161. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  162. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  163. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  164. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  165. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  166. package/es/components/pay/toC/locales.d.ts +0 -289
  167. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  168. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  169. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  170. package/es/components/productSelect/locales.d.ts +0 -18
  171. package/es/components/productSelect/mock.d.ts +0 -134
  172. package/es/components/productSelect/theme/token.d.ts +0 -17
  173. package/es/components/shoppingCart/Provider.d.ts +0 -3
  174. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
  175. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  176. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  177. package/es/components/shoppingCart/locales.d.ts +0 -33
  178. package/es/components/shoppingCart/mock.d.ts +0 -40
  179. package/es/components/shoppingCart/type.d.ts +0 -48
  180. package/es/components/shoppingCart/utils.d.ts +0 -63
  181. package/es/components/stepController/components/Content/index.d.ts +0 -7
  182. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  183. package/es/components/stepController/locales.d.ts +0 -27
  184. package/es/components/stepController/types.d.ts +0 -23
  185. package/es/components/subTotal/locales.d.ts +0 -42
  186. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  187. package/es/components/ticketBooking/data.d.ts +0 -58
  188. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  189. package/es/components/ticketBooking/locales.d.ts +0 -174
  190. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  191. package/es/components/ticketBooking/serve.d.ts +0 -287
  192. package/es/components/wallet/Detail/locales.d.ts +0 -96
  193. package/es/components/wallet/Detail/serve.d.ts +0 -39
  194. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  195. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  196. package/es/components/wallet/components/index.d.ts +0 -2
  197. package/es/components/wallet/locales.d.ts +0 -132
  198. package/es/components/walletList/locales.d.ts +0 -18
  199. package/es/components/walletList/model.d.ts +0 -6
  200. package/es/components/walletList/serve.d.ts +0 -20
  201. package/es/components/walletList/types/index.d.ts +0 -194
  202. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  203. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  204. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  205. package/es/hooks/useEngineContext.d.ts +0 -10
  206. package/es/hooks/useLocale.d.ts +0 -2
  207. package/es/hooks/useLoginUser.d.ts +0 -2
  208. package/es/hooks/useWindowSize.d.ts +0 -5
  209. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +0 -10
  210. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -18
  211. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  212. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  213. package/es/plus/productSelect/ProductList/index.d.ts +0 -22
  214. package/es/plus/productSelect/components/IntersectionObserver.d.ts +0 -42
  215. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  216. package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +0 -22
  217. package/es/plus/productSelect/components/TabsStructure/index.d.ts +0 -5
  218. package/es/plus/productSelect/components/TabsStructure/styles.d.ts +0 -47
  219. package/es/plus/productSelect/components/TabsStructure/types.d.ts +0 -105
  220. package/es/plus/productSelect/components/TabsStructure/utils.d.ts +0 -12
  221. package/es/plus/productSelect/hooks/useToken.d.ts +0 -18
  222. package/es/plus/productSelect/locales.d.ts +0 -18
  223. package/es/plus/productSelect/theme/token.d.ts +0 -17
  224. package/es/utils/date.d.ts +0 -11
  225. package/es/utils/locales.d.ts +0 -1
  226. package/es/utils/tasks/type.d.ts +0 -4
  227. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  228. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  229. package/lib/businessModel/SalesModel/index.d.ts +0 -3
  230. package/lib/businessModel/index.d.ts +0 -0
  231. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  232. package/lib/components/Sales/Cart/types.d.ts +0 -31
  233. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  234. package/lib/components/Sales/Checkout/index.d.ts +0 -37
  235. package/lib/components/Sales/Checkout/serve.d.ts +0 -15
  236. package/lib/components/Sales/Checkout/utils.d.ts +0 -41
  237. package/lib/components/Sales/Customer/index.d.ts +0 -25
  238. package/lib/components/Sales/Event/Detail.d.ts +0 -30
  239. package/lib/components/Sales/Event/index.d.ts +0 -30
  240. package/lib/components/Sales/Event/serve.d.ts +0 -49
  241. package/lib/components/Sales/Holder/index.d.ts +0 -33
  242. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  243. package/lib/components/Sales/Init/index.d.ts +0 -25
  244. package/lib/components/Sales/Init/serve.d.ts +0 -3
  245. package/lib/components/Sales/Resource/index.d.ts +0 -26
  246. package/lib/components/Sales/Resource/serve.d.ts +0 -12
  247. package/lib/components/Sales/Step/index.d.ts +0 -39
  248. package/lib/components/Sales/Summary/index.d.ts +0 -35
  249. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  250. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  251. package/lib/components/Sales/hooks/index.d.ts +0 -1
  252. package/lib/components/Sales/index.d.ts +0 -20
  253. package/lib/components/Sales/utils/index.d.ts +0 -1
  254. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  255. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  256. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  257. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  258. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  259. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  260. package/lib/components/appointmentBooking/context.d.ts +0 -35
  261. package/lib/components/appointmentBooking/locales.d.ts +0 -360
  262. package/lib/components/appointmentBooking/type.d.ts +0 -17
  263. package/lib/components/booking/components/drawer/index.d.ts +0 -19
  264. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  265. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  266. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  267. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  268. package/lib/components/booking/editBookingModal/serve.d.ts +0 -52
  269. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  270. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  271. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  272. package/lib/components/booking/info/Provider.d.ts +0 -0
  273. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  274. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  275. package/lib/components/booking/info/index.d.ts +0 -3
  276. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  277. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  278. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  279. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  280. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  281. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  282. package/lib/components/booking/info2/utils.d.ts +0 -4
  283. package/lib/components/booking/locales.d.ts +0 -831
  284. package/lib/components/eftposPay/const.d.ts +0 -184
  285. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  286. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  287. package/lib/components/eftposPay/locales.d.ts +0 -330
  288. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  289. package/lib/components/eftposPay/store/index.d.ts +0 -355
  290. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  291. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  292. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  293. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  294. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  295. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  296. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  297. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  298. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  299. package/lib/components/eventBooking/locales.d.ts +0 -246
  300. package/lib/components/eventBooking/type.d.ts +0 -17
  301. package/lib/components/eventBooking/utils.d.ts +0 -45
  302. package/lib/components/login/locales.d.ts +0 -24
  303. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  304. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  305. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  306. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  307. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  308. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  309. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  310. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  311. package/lib/components/pay/toC/locales.d.ts +0 -289
  312. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  313. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  314. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  315. package/lib/components/productSelect/locales.d.ts +0 -18
  316. package/lib/components/productSelect/mock.d.ts +0 -134
  317. package/lib/components/productSelect/theme/token.d.ts +0 -17
  318. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  319. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
  320. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  321. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  322. package/lib/components/shoppingCart/locales.d.ts +0 -33
  323. package/lib/components/shoppingCart/mock.d.ts +0 -40
  324. package/lib/components/shoppingCart/type.d.ts +0 -48
  325. package/lib/components/shoppingCart/utils.d.ts +0 -63
  326. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  327. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  328. package/lib/components/stepController/locales.d.ts +0 -27
  329. package/lib/components/stepController/types.d.ts +0 -23
  330. package/lib/components/subTotal/locales.d.ts +0 -42
  331. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  332. package/lib/components/ticketBooking/data.d.ts +0 -58
  333. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  334. package/lib/components/ticketBooking/locales.d.ts +0 -174
  335. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  336. package/lib/components/ticketBooking/serve.d.ts +0 -287
  337. package/lib/components/wallet/Detail/locales.d.ts +0 -96
  338. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  339. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  340. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  341. package/lib/components/wallet/components/index.d.ts +0 -2
  342. package/lib/components/wallet/locales.d.ts +0 -132
  343. package/lib/components/walletList/locales.d.ts +0 -18
  344. package/lib/components/walletList/model.d.ts +0 -6
  345. package/lib/components/walletList/serve.d.ts +0 -20
  346. package/lib/components/walletList/types/index.d.ts +0 -194
  347. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  348. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  349. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  350. package/lib/hooks/useEngineContext.d.ts +0 -10
  351. package/lib/hooks/useLocale.d.ts +0 -2
  352. package/lib/hooks/useLoginUser.d.ts +0 -2
  353. package/lib/hooks/useWindowSize.d.ts +0 -5
  354. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +0 -10
  355. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -18
  356. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  357. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  358. package/lib/plus/productSelect/ProductList/index.d.ts +0 -22
  359. package/lib/plus/productSelect/components/IntersectionObserver.d.ts +0 -42
  360. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  361. package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +0 -22
  362. package/lib/plus/productSelect/components/TabsStructure/index.d.ts +0 -5
  363. package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +0 -47
  364. package/lib/plus/productSelect/components/TabsStructure/types.d.ts +0 -105
  365. package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +0 -12
  366. package/lib/plus/productSelect/hooks/useToken.d.ts +0 -18
  367. package/lib/plus/productSelect/locales.d.ts +0 -18
  368. package/lib/plus/productSelect/theme/token.d.ts +0 -17
  369. package/lib/utils/date.d.ts +0 -11
  370. package/lib/utils/locales.d.ts +0 -1
  371. package/lib/utils/tasks/type.d.ts +0 -4
@@ -1,17 +0,0 @@
1
- export interface ProductSelectToken {
2
- colorPrimary: string;
3
- colorText: string;
4
- colorTextSecondary: string;
5
- searchInputColor: string;
6
- containerBg: string;
7
- tabItemBg: string;
8
- tabItemHoverBg: string;
9
- tabItemActiveBg: string;
10
- categoryTextColor: string;
11
- cardBg: string;
12
- cardHoverBg: string;
13
- cardSelectedBg: string;
14
- cardSelectedTextColor: string;
15
- cardSelectedSecondaryTextColor: string;
16
- }
17
- export declare const defaultToken: ProductSelectToken;
@@ -1,11 +0,0 @@
1
- /**
2
- * @title: 格式化时间
3
- * @description:
4
- * @param {Moment} date 时间
5
- * @param {string} cnFormat 中文
6
- * @param {string} enFormat 英文
7
- * @return {*}
8
- * @Author: Wzw
9
- * @Date: 2022-07-28 11:57
10
- */
11
- export declare const formatDate: (date: any, cnFormat?: string, enFormat?: string) => string;
@@ -1 +0,0 @@
1
- export declare const getLocale: () => string;
@@ -1,4 +0,0 @@
1
- export interface Task {
2
- id: string;
3
- code: (...args: any[]) => any;
4
- }
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- interface SalesProviderProps {
3
- children: React.ReactNode;
4
- hooks?: any;
5
- config?: {
6
- useSessionStorage?: boolean;
7
- };
8
- }
9
- interface SalesContextProps {
10
- data: {
11
- [key: string]: any;
12
- };
13
- setData: any;
14
- hooks: any;
15
- setHooks: any;
16
- getCurrentData: any;
17
- setSessionStorage: () => void;
18
- getSessionStorage: () => any;
19
- removeSessionStorage: () => void;
20
- }
21
- export declare const SalesContext: React.Context<SalesContextProps>;
22
- export declare const SalesProvider: React.FC<SalesProviderProps>;
23
- export declare const useSales: () => SalesContextProps;
24
- export {};
@@ -1 +0,0 @@
1
- export declare const useHooks: () => any;
@@ -1,3 +0,0 @@
1
- declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
- export * from './Sales';
3
- export default SalesModel;
File without changes
@@ -1,2 +0,0 @@
1
- export declare const getResourceListApi: () => Promise<any>;
2
- export declare const checkBeforeAddToCartApi: (data: any) => Promise<any>;
@@ -1,31 +0,0 @@
1
- /**
2
- * available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
3
- */
4
- export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
5
- /**
6
- * 商品不可用原因
7
- */
8
- export interface IUnavailableResult {
9
- event_unique_identifier: number;
10
- relation_id: number;
11
- product_id: number;
12
- details?: Array<{
13
- type: TCartItemUnavailableType;
14
- }>;
15
- }
16
- /**
17
- * 更新失效的购物车商品
18
- */
19
- export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
20
- export interface ICalculatePriceParams {
21
- /** 商品 */
22
- product: any;
23
- /** 规格 */
24
- variant?: any;
25
- /** 套餐 */
26
- bundle?: any[];
27
- /** 规格 */
28
- options?: any[];
29
- /** 数量 */
30
- num?: number;
31
- }
@@ -1,63 +0,0 @@
1
- import Decimal from 'decimal.js';
2
- import { ICalculatePriceParams } from './types';
3
- export declare const handleProductInfo: (eventDetail: any, num: number) => {
4
- totalPrice: number;
5
- originTotal: any;
6
- is_charge_tax: any;
7
- };
8
- /**
9
- * 获取商品总价
10
- * @description 当前总价计算基于商品数量为1
11
- * @param item 商品
12
- * @returns 商品总价
13
- */
14
- export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
15
- /**
16
- * 获取商品原始总价
17
- * @description 当前总价计算基于商品数量为1
18
- * @param item 商品
19
- * @returns 商品原始总价
20
- */
21
- export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
22
- export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
23
- export declare const formatBundleToOrigin: (bundle: any) => any;
24
- export declare const formatOptionsToOrigin: (options: any) => any;
25
- export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
26
- total: number;
27
- protocols: any;
28
- } | null;
29
- /**
30
- * 获取商品定金
31
- * @description 定金基于商品售价来算,最终乘商品数量
32
- * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
33
- * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
34
- * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
35
- * @param params 参数
36
- * @returns 商品定金
37
- */
38
- export declare const getProductDeposit: (params: {
39
- cartItem: any;
40
- product: any;
41
- bundle?: any;
42
- options?: any;
43
- num?: number;
44
- }) => {
45
- total: number;
46
- protocols: any;
47
- } | null;
48
- /**
49
- * 计算商品定金
50
- * @param params 参数
51
- * @returns 商品定金
52
- */
53
- export declare const calculateProductDeposit: (params: {
54
- depositData: {
55
- deposit_fixed?: string;
56
- deposit_percentage?: string;
57
- };
58
- total: string | number;
59
- num: number;
60
- }) => {
61
- result: boolean;
62
- depositTotal: Decimal;
63
- };
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- interface CheckoutData {
3
- }
4
- interface PayProps {
5
- order_id: string;
6
- amount: number;
7
- sale_channel?: string;
8
- is_deposit?: number;
9
- deposit_amount?: number;
10
- total_amount?: number;
11
- }
12
- interface CheckoutContextType {
13
- onCheckBeforeBooking: (data: any) => Promise<{
14
- result: boolean;
15
- num: number;
16
- }>;
17
- onCheckout: (data: any) => Promise<any>;
18
- onPay: (payProps: PayProps) => void;
19
- createBooking: any;
20
- checkBeforeBooking: any;
21
- freePay: any;
22
- }
23
- interface CheckoutProviderProps {
24
- children: React.ReactNode;
25
- }
26
- export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
27
- export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
28
- /**
29
- * 使用步骤管理的Hook
30
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
31
- * @returns {StepContextType} 步骤管理上下文
32
- */
33
- export declare const useCheckout: () => CheckoutContextType;
34
- declare const _default: {
35
- defaultState: CheckoutData;
36
- };
37
- export default _default;
@@ -1,15 +0,0 @@
1
- /**
2
- * @title: 下单前置校验接口
3
- * @param {any} data
4
- */
5
- export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
6
- /**
7
- * @title: 创建订单
8
- * @param {any} data
9
- */
10
- export declare const createBookingApi: (data: any) => Promise<any>;
11
- /**
12
- * @title: 免费支付
13
- * @param {string} orderId
14
- */
15
- export declare const freePayApi: (orderId: string) => Promise<any>;
@@ -1,41 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- /**
20
- * @title: 格式化下单接口数据
21
- * @description:
22
- * @param {any} state saledModel数据源
23
- * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
24
- * @Author: xiangfeng.xue
25
- * @Date: 2025-01-21 17:57
26
- */
27
- export declare const formatValues: (params: {
28
- state: any;
29
- platform: 'h5' | 'pc';
30
- excludeDisabled?: boolean;
31
- extra?: Record<string, any>;
32
- otherValue?: Record<string, any>;
33
- }) => any;
34
- /**
35
- * @title: 获取拉开表单弹窗参数
36
- * @param state
37
- */
38
- export declare const getFormParams: (state: any) => {
39
- product_id: any;
40
- appointment_type: string;
41
- };
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- interface CustomerData {
3
- }
4
- interface CustomerContextType {
5
- appContext: any;
6
- appUtils: any;
7
- isLogin: () => boolean;
8
- openLoginModal: (params: any) => void;
9
- getUserInfo: () => any;
10
- }
11
- interface CustomerProviderProps {
12
- children: React.ReactNode;
13
- }
14
- export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
15
- export declare const CustomerProvider: React.FC<CustomerProviderProps>;
16
- /**
17
- * 使用步骤管理的Hook
18
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
19
- * @returns {StepContextType} 步骤管理上下文
20
- */
21
- export declare const useCustomer: () => CustomerContextType;
22
- declare const _default: {
23
- defaultState: CustomerData;
24
- };
25
- export default _default;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- interface EventDetailContextType {
3
- detail: any;
4
- open: boolean;
5
- onOpenEventDetail: (eventItem: any) => void;
6
- onCloseEventDetail: () => void;
7
- onSelectEventDetail: () => void;
8
- selectEventDetailBookingOptions: (v: any) => void;
9
- getEventDetailSelectDate: {
10
- run: (id: number, params: any) => void;
11
- loading: boolean;
12
- data?: any;
13
- };
14
- currentBookingOption: any;
15
- selectEventDetailProductDetail: (productDetail: any) => void;
16
- checkBeforeSelectEventDetail: () => boolean;
17
- getProductDetailRequest: any;
18
- }
19
- interface EventDetailProviderProps {
20
- children: React.ReactNode;
21
- }
22
- export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
23
- export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
24
- /**
25
- * 使用步骤管理的Hook
26
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
- * @returns {StepContextType} 步骤管理上下文
28
- */
29
- export declare const useEventDetail: () => EventDetailContextType;
30
- export {};
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- interface EventData {
3
- currentEventItem: any;
4
- eventList: any[];
5
- }
6
- interface EventContextType {
7
- eventData: EventData;
8
- getEventList: {
9
- run: (params: any) => void;
10
- loading: boolean;
11
- data?: EventData['eventList'];
12
- };
13
- getEventListByTitle: (title: string) => any;
14
- selectEvent: (eventItem: any) => void;
15
- }
16
- interface EventProviderProps {
17
- children: React.ReactNode;
18
- }
19
- export declare const EventContext: React.Context<EventContextType | undefined>;
20
- export declare const EventProvider: React.FC<EventProviderProps>;
21
- /**
22
- * 使用步骤管理的Hook
23
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
24
- * @returns {StepContextType} 步骤管理上下文
25
- */
26
- export declare const useEvent: () => EventContextType;
27
- declare const _default: {
28
- defaultState: EventData;
29
- };
30
- export default _default;
@@ -1,49 +0,0 @@
1
- /**
2
- * @title: 获取活动列表
3
- * @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
4
- * @param {any} params
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- */
8
- export declare const getEventListApi: (params: {
9
- event_item_resource_id: number | string;
10
- title?: string;
11
- skip?: number;
12
- num?: number;
13
- open_quotation: number;
14
- }) => Promise<any>;
15
- export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
16
- export declare const getEventDetailTeacherApi: (params: {
17
- event_item_id: number | string;
18
- }) => Promise<any>;
19
- export declare const getEventDetailBookingOptionsApi: (params: {
20
- ids: number | string;
21
- num: number;
22
- skip: number;
23
- customer_id?: number;
24
- open_quotation?: number;
25
- is_eject?: number;
26
- }) => Promise<any>;
27
- export declare const getEventDetailSelectDateApi: (id: number | string, params: {
28
- days: number;
29
- start_date?: string;
30
- }) => Promise<any>;
31
- /**
32
- * 批量查询指定商品的最新价格
33
- * @param params
34
- */
35
- export declare const getProductPrice: (params: {
36
- ids: number[];
37
- customer_id: number;
38
- schedule_date?: string;
39
- }) => Promise<any>;
40
- /**
41
- * 获取商品详情
42
- * @param id 商品id
43
- * @param params 参数
44
- * @returns
45
- */
46
- export declare const getProductDetailApi: (id: number, params: {
47
- open_deposit?: string | number;
48
- front_end_cache_id?: string;
49
- }) => Promise<any>;
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- interface HolderData {
3
- }
4
- interface HolderContextType {
5
- holderData: HolderData;
6
- getHolderList: any;
7
- selectHolder: any;
8
- open: boolean;
9
- onOpenCreateHolder: any;
10
- onHolderOpen: any;
11
- onHolderClose: any;
12
- createHolder: any;
13
- selectedHolderIds: any;
14
- refreshHolder: () => void;
15
- deleteHolderById: (holderId: number) => void;
16
- updateHolderList: (holerItem: any) => void;
17
- defaultSelectedHolder: any;
18
- }
19
- interface HolderProviderProps {
20
- children: React.ReactNode;
21
- }
22
- export declare const HolderContext: React.Context<HolderContextType | undefined>;
23
- export declare const HolderProvider: React.FC<HolderProviderProps>;
24
- /**
25
- * 使用步骤管理的Hook
26
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
- * @returns {StepContextType} 步骤管理上下文
28
- */
29
- export declare const useHolder: () => HolderContextType;
30
- declare const _default: {
31
- defaultState: HolderData;
32
- };
33
- export default _default;
@@ -1,8 +0,0 @@
1
- export declare const getHolderListApi: (params: {
2
- form_id: string | number;
3
- shop_id: string | number;
4
- num?: number;
5
- skip?: number;
6
- customer_id?: number;
7
- }) => Promise<any>;
8
- export declare const createHolderApi: (data: any) => Promise<any>;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- interface InitData {
3
- boardSetting?: any;
4
- form_id?: number;
5
- shop_id?: number;
6
- shop?: any;
7
- scheduleDisplayType?: 'calendarView' | 'textList';
8
- }
9
- interface InitContextType {
10
- getBoardSetting: any;
11
- initData: InitData;
12
- resetInitPartData: () => void;
13
- }
14
- interface InitProviderProps {
15
- children: React.ReactNode;
16
- }
17
- export declare const InitContext: React.Context<InitContextType | undefined>;
18
- export declare const InitProvider: React.FC<InitProviderProps>;
19
- /**
20
- * 使用步骤管理的Hook
21
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
22
- * @returns {StepContextType} 步骤管理上下文
23
- */
24
- export declare const useInit: () => InitContextType;
25
- export {};
@@ -1,3 +0,0 @@
1
- export declare const getBoardSettingApi: ({ item_type, }: {
2
- item_type: 'appointment_booking' | 'event_booking_v2';
3
- }) => Promise<any>;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- interface ResourceData {
3
- }
4
- interface ResourceContextType {
5
- getResourceList: {
6
- run: (params: any) => void;
7
- loading: boolean;
8
- data?: any;
9
- };
10
- selectResource: (newResourceData: Partial<ResourceData>) => void;
11
- }
12
- interface ResourceProviderProps {
13
- children: React.ReactNode;
14
- }
15
- export declare const ResourceContext: React.Context<ResourceContextType | undefined>;
16
- export declare const ResourceProvider: React.FC<ResourceProviderProps>;
17
- /**
18
- * 使用步骤管理的Hook
19
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
20
- * @returns {StepContextType} 步骤管理上下文
21
- */
22
- export declare const useResource: () => ResourceContextType;
23
- declare const _default: {
24
- defaultState: ResourceData;
25
- };
26
- export default _default;
@@ -1,12 +0,0 @@
1
- export declare const getResourceListApi: (params: {
2
- form_id: string;
3
- shop_id: string;
4
- form_data_status: string;
5
- }) => Promise<any>;
6
- /**
7
- * @title: 获取特殊资源列表
8
- * @Author: xiangfeng.xue
9
- */
10
- export declare const getSpecialResourceListApi: (params: {
11
- event_item_ids?: string | number[];
12
- }) => Promise<any>;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- interface Step {
3
- key: StepKey;
4
- title: string;
5
- description: string;
6
- }
7
- declare type StepKey = 'select-category' | 'select-event' | 'confirm-information';
8
- interface StepData {
9
- currentStep: StepKey;
10
- isAutoOperate?: boolean;
11
- }
12
- interface StepContextType {
13
- setStepData: (data: Partial<StepData>) => void;
14
- currentStepData: Step;
15
- nextStep: () => void;
16
- prevStep: () => void;
17
- closePage: () => void;
18
- toFirstStep: () => void;
19
- isLastStep: boolean;
20
- isFirstStep: boolean;
21
- isTwoStep: boolean;
22
- changeAutoOperate: (newAutoOperate: boolean) => void;
23
- }
24
- interface StepProviderProps {
25
- children: React.ReactNode;
26
- }
27
- export declare const steps: Step[];
28
- export declare const StepContext: React.Context<StepContextType | undefined>;
29
- export declare const StepProvider: React.FC<StepProviderProps>;
30
- /**
31
- * 使用步骤管理的Hook
32
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
33
- * @returns {StepContextType} 步骤管理上下文
34
- */
35
- export declare const useStep: () => StepContextType;
36
- declare const _default: {
37
- defaultState: StepData;
38
- };
39
- export default _default;
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- interface SummaryData {
3
- }
4
- interface SummaryContextType {
5
- subtotal: number | string;
6
- total: number | string;
7
- taxTitle?: string;
8
- totalTaxFee?: string;
9
- isPriceIncludeTax?: 0 | 1;
10
- deposit?: {
11
- total: string;
12
- protocols: any[];
13
- hasDeposit: boolean;
14
- };
15
- isAgreeDepositPolicy: boolean;
16
- setIsAgreeDepositPolicy: (value: boolean) => void;
17
- getDepositProtocol: (params: {
18
- id: string;
19
- }) => Promise<any>;
20
- }
21
- interface SummaryProviderProps {
22
- children: React.ReactNode;
23
- }
24
- export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
25
- export declare const SummaryProvider: React.FC<SummaryProviderProps>;
26
- /**
27
- * 使用步骤管理的Hook
28
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
29
- * @returns {StepContextType} 步骤管理上下文
30
- */
31
- export declare const useSummary: () => SummaryContextType;
32
- declare const _default: {
33
- defaultState: SummaryData;
34
- };
35
- export default _default;
@@ -1 +0,0 @@
1
- export declare const getDepositProtocolApi: (id: string) => Promise<any>;
@@ -1,51 +0,0 @@
1
- import Decimal from 'decimal.js';
2
- interface CartItem {
3
- price: number | string;
4
- quantity?: number;
5
- [k: string]: any;
6
- }
7
- interface PriceDetail {
8
- subtotal: string;
9
- total: string;
10
- taxTitle?: string;
11
- totalTaxFee?: string;
12
- isPriceIncludeTax?: 0 | 1;
13
- deposit?: {
14
- total: string;
15
- protocols: any[];
16
- hasDeposit: boolean;
17
- };
18
- }
19
- /**
20
- * 计算商品小计(不含其他费用)
21
- * @param items - 购物车商品数组
22
- * @returns 商品总价字符串,保留2位小数
23
- */
24
- export declare const calculateSubtotal: (items: CartItem[]) => string;
25
- /**
26
- * @title: 单个商品的税费
27
- * @description:
28
- * 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
29
- * $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
30
- * @return {*}
31
- * @Author: xiangfeng.xue
32
- */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
- /**
35
- * 计算所有价格明细
36
- * @param items - 购物车商品数组
37
- * @param options - 其他费用配置
38
- * @returns 价格明细对象
39
- */
40
- export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
41
- /**
42
- * @title: 计算定金
43
- * @param items - 购物车商品数组
44
- * @returns 定金字符串,保留2位小数
45
- */
46
- export declare const calculateDeposit: (items: CartItem[]) => {
47
- total: string;
48
- protocols: any[];
49
- hasDeposit: never;
50
- } | undefined;
51
- export {};
@@ -1 +0,0 @@
1
- export declare const useCustomInit: () => {};