@pisell/private-materials 6.3.137 → 6.3.138

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 (299) 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/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  9. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  10. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  11. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  12. package/es/components/appointmentBooking/utils.d.ts +227 -0
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  16. package/es/components/booking/components/footer/utils.d.ts +47 -0
  17. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  18. package/es/components/booking/components/voucher/index.d.ts +3 -0
  19. package/es/components/booking/deposit/index.d.ts +1 -0
  20. package/es/components/booking/forms/model.d.ts +1 -10
  21. package/es/components/booking/forms/single/index.d.ts +1 -0
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  24. package/es/components/booking/info/date/index.d.ts +1 -0
  25. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  26. package/es/components/booking/info/index.d.ts +1 -0
  27. package/es/components/booking/info/model.d.ts +1 -10
  28. package/es/components/booking/info/notes/index.d.ts +1 -0
  29. package/es/components/booking/info/service/Lists.d.ts +1 -0
  30. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  31. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  32. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  33. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  34. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  35. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  36. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info/service2/utils.d.ts +248 -0
  38. package/es/components/booking/info2/index.d.ts +12 -0
  39. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  41. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  43. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  44. package/es/components/booking/locales.d.ts +1489 -0
  45. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  48. package/es/components/booking/model.d.ts +112 -0
  49. package/es/components/booking/notes/model.d.ts +1 -10
  50. package/es/components/booking/payments/model.d.ts +1 -10
  51. package/es/components/eftposPay/amount.d.ts +21 -0
  52. package/es/components/eftposPay/app.d.ts +11 -0
  53. package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  54. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  55. package/es/components/eftposPay/component/fail/network.d.ts +8 -0
  56. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  57. package/es/components/eftposPay/component/manual/index.d.ts +9 -0
  58. package/es/components/eftposPay/component/signature/index.d.ts +8 -0
  59. package/es/components/eftposPay/device.d.ts +24 -0
  60. package/es/components/eftposPay/hooks.d.ts +2 -2
  61. package/es/components/eftposPay/index.d.ts +5 -0
  62. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  63. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  64. package/es/components/eftposPay/linkly/index.d.ts +3 -0
  65. package/es/components/eftposPay/pay.d.ts +21 -0
  66. package/es/components/eftposPay/payo/config.d.ts +12 -0
  67. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  68. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  69. package/es/components/eftposPay/store/index.d.ts +5 -5
  70. package/es/components/eftposPay/tip.d.ts +9 -0
  71. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  72. package/es/components/eftposPay/utils/payLog.d.ts +81 -0
  73. package/es/components/eftposPay/windcave/receiptAction.d.ts +22 -0
  74. package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
  75. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  79. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  80. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  81. package/es/components/eventBooking/index.d.ts +1 -0
  82. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  83. package/es/components/kioskSkuDetail/locales.d.ts +48 -0
  84. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  85. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  86. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  87. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  88. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  89. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  92. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  93. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  94. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  95. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  96. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  97. package/es/components/pay/toC/index.d.ts +3 -0
  98. package/es/components/pay/toC/locales.d.ts +631 -0
  99. package/es/components/pay/toC/model.d.ts +1 -9
  100. package/es/components/pay/toC/payGroup.d.ts +59 -0
  101. package/es/components/pay/toC/serve.d.ts +87 -0
  102. package/es/components/pay/toC/utils.d.ts +65 -0
  103. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  104. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  105. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  106. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  107. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  108. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  109. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  110. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  111. package/es/components/productExtension/index.d.ts +1 -0
  112. package/es/components/ruleSetting/index.d.ts +1 -0
  113. package/es/components/ruleSetting/locales.d.ts +78 -0
  114. package/es/components/scanOrder/components/Content/index.js +251 -69
  115. package/es/components/scanOrder/context.js +6 -18
  116. package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  117. package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
  118. package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  119. package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
  120. package/es/components/schedules/model.d.ts +1 -9
  121. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  122. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  123. package/es/components/shoppingCart/index.d.ts +1 -0
  124. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  125. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  126. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  127. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  128. package/es/components/ticketBooking/index.d.ts +7 -0
  129. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +1 -1
  130. package/es/components/venueBooking/context.js +32 -6
  131. package/es/index.d.ts +87 -0
  132. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  133. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  134. package/es/plus/pisellSalesProductCard/index.js +16 -1
  135. package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
  136. package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  137. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  138. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  139. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  140. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  141. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  142. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  143. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  144. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  145. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  146. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  147. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  148. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  149. package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
  150. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  151. package/es/pro/NumericStepper/index.d.ts +19 -0
  152. package/es/pro/NumericStepper/index.js +37 -6
  153. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  154. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  155. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  156. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  157. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  158. package/lib/components/appointmentBooking/utils.d.ts +227 -0
  159. package/lib/components/booking/addons/model.d.ts +1 -10
  160. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  161. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  162. package/lib/components/booking/components/footer/utils.d.ts +47 -0
  163. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  164. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  165. package/lib/components/booking/deposit/index.d.ts +1 -0
  166. package/lib/components/booking/forms/model.d.ts +1 -10
  167. package/lib/components/booking/forms/single/index.d.ts +1 -0
  168. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  169. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  170. package/lib/components/booking/info/date/index.d.ts +1 -0
  171. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  172. package/lib/components/booking/info/index.d.ts +1 -0
  173. package/lib/components/booking/info/model.d.ts +1 -10
  174. package/lib/components/booking/info/notes/index.d.ts +1 -0
  175. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  176. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  177. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  178. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  179. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  180. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  181. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  182. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  183. package/lib/components/booking/info/service2/utils.d.ts +248 -0
  184. package/lib/components/booking/info2/index.d.ts +12 -0
  185. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  186. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  187. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  188. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  189. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  190. package/lib/components/booking/locales.d.ts +1489 -0
  191. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  192. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  193. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  194. package/lib/components/booking/model.d.ts +112 -0
  195. package/lib/components/booking/notes/model.d.ts +1 -10
  196. package/lib/components/booking/payments/model.d.ts +1 -10
  197. package/lib/components/eftposPay/amount.d.ts +21 -0
  198. package/lib/components/eftposPay/app.d.ts +11 -0
  199. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  200. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  201. package/lib/components/eftposPay/component/fail/network.d.ts +8 -0
  202. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  203. package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
  204. package/lib/components/eftposPay/component/signature/index.d.ts +8 -0
  205. package/lib/components/eftposPay/device.d.ts +24 -0
  206. package/lib/components/eftposPay/hooks.d.ts +2 -2
  207. package/lib/components/eftposPay/index.d.ts +5 -0
  208. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  209. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  210. package/lib/components/eftposPay/linkly/index.d.ts +3 -0
  211. package/lib/components/eftposPay/pay.d.ts +21 -0
  212. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  213. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  214. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  215. package/lib/components/eftposPay/store/index.d.ts +5 -5
  216. package/lib/components/eftposPay/tip.d.ts +9 -0
  217. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  218. package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
  219. package/lib/components/eftposPay/windcave/receiptAction.d.ts +22 -0
  220. package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
  221. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  223. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  224. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  225. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  226. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  227. package/lib/components/eventBooking/index.d.ts +1 -0
  228. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  229. package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
  230. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  231. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  232. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  233. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  234. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  235. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  237. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  238. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  239. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  240. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  241. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  242. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  243. package/lib/components/pay/toC/index.d.ts +3 -0
  244. package/lib/components/pay/toC/locales.d.ts +631 -0
  245. package/lib/components/pay/toC/model.d.ts +1 -9
  246. package/lib/components/pay/toC/payGroup.d.ts +59 -0
  247. package/lib/components/pay/toC/serve.d.ts +87 -0
  248. package/lib/components/pay/toC/utils.d.ts +65 -0
  249. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  250. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  251. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  252. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  253. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  254. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  255. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  257. package/lib/components/productExtension/index.d.ts +1 -0
  258. package/lib/components/ruleSetting/index.d.ts +1 -0
  259. package/lib/components/ruleSetting/locales.d.ts +78 -0
  260. package/lib/components/scanOrder/components/Content/index.js +150 -41
  261. package/lib/components/scanOrder/context.js +0 -10
  262. package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
  263. package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
  264. package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
  265. package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
  266. package/lib/components/schedules/model.d.ts +1 -9
  267. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  268. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  269. package/lib/components/shoppingCart/index.d.ts +1 -0
  270. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  271. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  272. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  273. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  274. package/lib/components/ticketBooking/index.d.ts +7 -0
  275. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +1 -1
  276. package/lib/components/venueBooking/context.js +14 -6
  277. package/lib/index.d.ts +87 -0
  278. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  279. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
  280. package/lib/plus/pisellSalesProductCard/index.js +10 -0
  281. package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
  282. package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
  283. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  284. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  285. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  286. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  287. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  288. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  289. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  290. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  291. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  292. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  293. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  294. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  295. package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
  296. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  297. package/lib/pro/NumericStepper/index.d.ts +19 -0
  298. package/lib/pro/NumericStepper/index.js +21 -4
  299. package/package.json +1 -1
@@ -50,7 +50,7 @@ function normalizeBundleItems(bundleItems) {
50
50
  });
51
51
  }
52
52
  export function transformProductDetailToOrderProduct(params) {
53
- var _ref, _ref2, _payload$product_id, _ref3, _payload$product_vari, _payload$_origin, _ref4, _ref5, _ref6, _ref7, _payload$price, _ref8, _ref9, _payload$original_pri, _ref10, _ref11, _payload$payment_pric, _ref12, _payload$tax_fee, _ref13, _payload$is_charge_ta, _payload$quantity, _payload$option, _payload$bundle;
53
+ var _ref, _ref2, _payload$product_id, _ref3, _payload$product_vari, _payload$_origin, _ref4, _ref5, _ref6, _ref7, _payload$price, _ref8, _payload$tax_fee, _ref9, _payload$is_charge_ta, _payload$quantity, _payload$option, _payload$bundle;
54
54
  var payload = params.payload,
55
55
  _params$fallbackProdu = params.fallbackProductId,
56
56
  fallbackProductId = _params$fallbackProdu === void 0 ? null : _params$fallbackProdu,
@@ -62,10 +62,12 @@ export function transformProductDetailToOrderProduct(params) {
62
62
  var productVariantId = toNumber((_ref3 = (_payload$product_vari = payload.product_variant_id) !== null && _payload$product_vari !== void 0 ? _payload$product_vari : payload.variant_id) !== null && _ref3 !== void 0 ? _ref3 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.product_variant_id, 0);
63
63
  var callbackOrigin = (payload === null || payload === void 0 ? void 0 : payload.origin) || (payload === null || payload === void 0 || (_payload$_origin = payload._origin) === null || _payload$_origin === void 0 ? void 0 : _payload$_origin.sourceItem) || (payload === null || payload === void 0 ? void 0 : payload._origin) || {};
64
64
  var sellingPrice = toPriceString((_ref4 = (_ref5 = (_ref6 = (_ref7 = (_payload$price = payload === null || payload === void 0 ? void 0 : payload.price) !== null && _payload$price !== void 0 ? _payload$price : payload === null || payload === void 0 ? void 0 : payload.selling_price) !== null && _ref7 !== void 0 ? _ref7 : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.price) !== null && _ref6 !== void 0 ? _ref6 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.price) !== null && _ref5 !== void 0 ? _ref5 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.selling_price) !== null && _ref4 !== void 0 ? _ref4 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.base_price, '0.00');
65
- var originalPrice = toPriceString((_ref8 = (_ref9 = (_payload$original_pri = payload === null || payload === void 0 ? void 0 : payload.original_price) !== null && _payload$original_pri !== void 0 ? _payload$original_pri : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.original_price) !== null && _ref9 !== void 0 ? _ref9 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.original_price) !== null && _ref8 !== void 0 ? _ref8 : sellingPrice, sellingPrice);
66
- var paymentPrice = toPriceString((_ref10 = (_ref11 = (_payload$payment_pric = payload === null || payload === void 0 ? void 0 : payload.payment_price) !== null && _payload$payment_pric !== void 0 ? _payload$payment_pric : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.payment_price) !== null && _ref11 !== void 0 ? _ref11 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.payment_price) !== null && _ref10 !== void 0 ? _ref10 : sellingPrice, sellingPrice);
67
- var taxFee = toPriceString((_ref12 = (_payload$tax_fee = payload === null || payload === void 0 ? void 0 : payload.tax_fee) !== null && _payload$tax_fee !== void 0 ? _payload$tax_fee : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.tax_fee) !== null && _ref12 !== void 0 ? _ref12 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.tax_fee, '0.00');
68
- var isChargeTax = toNumber((_ref13 = (_payload$is_charge_ta = payload === null || payload === void 0 ? void 0 : payload.is_charge_tax) !== null && _payload$is_charge_ta !== void 0 ? _payload$is_charge_ta : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.is_charge_tax) !== null && _ref13 !== void 0 ? _ref13 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.is_charge_tax, 0);
65
+ // 入口不引入后台划线价(payload/source.original_price 可能承载 UI 划线展示用的原价)。
66
+ // 订单域 original_price 语义为「券前店铺售价」,初次加购恒等于 selling_price;
67
+ // 券应用后由 SDK Rules 引擎维护差异。
68
+ var originalPrice = sellingPrice;
69
+ var taxFee = toPriceString((_ref8 = (_payload$tax_fee = payload === null || payload === void 0 ? void 0 : payload.tax_fee) !== null && _payload$tax_fee !== void 0 ? _payload$tax_fee : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.tax_fee) !== null && _ref8 !== void 0 ? _ref8 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.tax_fee, '0.00');
70
+ var isChargeTax = toNumber((_ref9 = (_payload$is_charge_ta = payload === null || payload === void 0 ? void 0 : payload.is_charge_tax) !== null && _payload$is_charge_ta !== void 0 ? _payload$is_charge_ta : callbackOrigin === null || callbackOrigin === void 0 ? void 0 : callbackOrigin.is_charge_tax) !== null && _ref9 !== void 0 ? _ref9 : sourceItem === null || sourceItem === void 0 ? void 0 : sourceItem.is_charge_tax, 0);
69
71
  return {
70
72
  product_id: productId,
71
73
  product_variant_id: productVariantId,
@@ -74,7 +76,6 @@ export function transformProductDetailToOrderProduct(params) {
74
76
  product_bundle: normalizeBundleItems((_payload$bundle = payload.bundle) !== null && _payload$bundle !== void 0 ? _payload$bundle : payload.product_bundle),
75
77
  selling_price: sellingPrice,
76
78
  original_price: originalPrice,
77
- payment_price: paymentPrice,
78
79
  tax_fee: taxFee,
79
80
  is_charge_tax: isChargeTax,
80
81
  metadata: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ interface AddServiceProps {
3
+ onEdit?: any;
4
+ dispatch?: any;
5
+ state?: any;
6
+ renderMode?: 'current' | 'drawer';
7
+ }
8
+ declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
9
+ export default AddSerivce;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
+ declare const TicketBooking: () => JSX.Element;
4
+ export default TicketBooking;
@@ -0,0 +1,12 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import './index.less';
3
+ interface ITimeBarProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ onDateChange: (date: Dayjs, dateString?: string) => void;
7
+ onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
+ setIntervalTime: (value: boolean) => void;
9
+ locale: string;
10
+ }
11
+ declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
12
+ export default TimeBar;
@@ -0,0 +1,7 @@
1
+ import './index.less';
2
+ interface TicketBookingProps {
3
+ productExtensionType: string[];
4
+ bookingConfigParams: Record<string, any>;
5
+ }
6
+ declare const _default: (props: TicketBookingProps) => JSX.Element;
7
+ export default _default;
@@ -347,7 +347,7 @@ export default function TimeGrid() {
347
347
  symbol: symbol,
348
348
  precision: 2,
349
349
  showCurrencySymbol: true,
350
- hideDecimalForWholeNumbers: false,
350
+ hideDecimalForWholeNumbers: true,
351
351
  className: "text-[13px] font-normal leading-4 ".concat(priceClass, " md:text-sm")
352
352
  }), tag ? /*#__PURE__*/React.createElement("div", {
353
353
  className: "inline-flex rounded-full px-1.5 py-0 text-[8px] font-semibold leading-4 ring-1 md:text-[9px] ".concat(tag.className)
@@ -243,6 +243,13 @@ export function VenueBookingProvider(_ref) {
243
243
  var anchorDateRef = useRef(anchorDate);
244
244
  anchorDateRef.current = anchorDate;
245
245
 
246
+ /**
247
+ * bootstrap 只跑一次:避免宿主 Provider 重渲染导致的依赖身份抖动
248
+ * (例如 utils 引用变化 → syncCustomerLoginToModule 重建 → effect 重跑 → 骨架屏闪烁)。
249
+ * 只在首次 venueBookingModule 就绪时执行,和步骤 hydrate 的 hydratedRef 同语义。
250
+ */
251
+ var bootstrappedRef = useRef(false);
252
+
246
253
  /** 是否有已选时段(用于判断能否进入下一步) */
247
254
  var canNext = useMemo(function () {
248
255
  // 优先从 OS 模块查询选中状态
@@ -730,6 +737,18 @@ export function VenueBookingProvider(_ref) {
730
737
  }, _callee8, null, [[0, 9]]);
731
738
  })), [syncCustomerLoginToModule, venueBookingModule, refreshViewModel]);
732
739
 
740
+ /**
741
+ * 以 ref 持有最新的 callback,供仅需稳定调用、不希望因 callback 身份变动而重跑的 effect 使用
742
+ * - bootstrap useEffect:只关心 venueBookingModule 首次就绪,不应被 utils/callback 身份抖动连带重跑
743
+ * - pubsub 订阅 useEffect:只订阅一次,真正回调取最新实现
744
+ */
745
+ var syncCustomerLoginRef = useRef(syncCustomerLoginToModule);
746
+ syncCustomerLoginRef.current = syncCustomerLoginToModule;
747
+ var goToNearestAvailableDateRef = useRef(goToNearestAvailableDate);
748
+ goToNearestAvailableDateRef.current = goToNearestAvailableDate;
749
+ var handleLoginSuccessRef = useRef(handleLoginSuccess);
750
+ handleLoginSuccessRef.current = handleLoginSuccess;
751
+
733
752
  /** 结账步骤提交订单(调用 OS venueBooking.submitOrder) */
734
753
  var submitOrder = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
735
754
  var _result$data, _viewModel$summary, result, orderId, totalAmount, _otherParams$openData, otherParams;
@@ -894,6 +913,8 @@ export function VenueBookingProvider(_ref) {
894
913
  }, [currentStep, canNext, isAgreeDepositPolicy, viewModel.summary, stepList, proceedToCheckout, goToStep, handleSubmitOrder]);
895
914
 
896
915
  // ── 监听全局登录成功事件(Voucher 区域内登录等场景) ──
916
+ // 仅依赖 pubsub 实例,回调经 ref 取最新实现,避免 handleLoginSuccess 重建
917
+ // 时反复 sub/unsub(宿主 utils 引用抖动也会连带触发)。
897
918
  useEffect(function () {
898
919
  var _pubsub$subscribe;
899
920
  var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
@@ -908,7 +929,7 @@ export function VenueBookingProvider(_ref) {
908
929
  break;
909
930
  }
910
931
  _context12.next = 3;
911
- return handleLoginSuccess();
932
+ return handleLoginSuccessRef.current();
912
933
  case 3:
913
934
  case "end":
914
935
  return _context12.stop();
@@ -924,7 +945,7 @@ export function VenueBookingProvider(_ref) {
924
945
  var _pubsub$unsubscribe;
925
946
  (_pubsub$unsubscribe = pubsub.unsubscribe) === null || _pubsub$unsubscribe === void 0 || _pubsub$unsubscribe.call(pubsub, 'pisell1.login.success', onGlobalLoginSuccess);
926
947
  };
927
- }, [utils === null || utils === void 0 ? void 0 : utils.pubsub, handleLoginSuccess]);
948
+ }, [utils === null || utils === void 0 ? void 0 : utils.pubsub]);
928
949
 
929
950
  // ── anchorDate 变化时刷新 timeSlotGrid + 短暂 grid 加载动画 ──
930
951
  useEffect(function () {
@@ -998,8 +1019,13 @@ export function VenueBookingProvider(_ref) {
998
1019
  }, [pisellOS, venueBookingModule]);
999
1020
 
1000
1021
  // ── 模块初始化引导 ──
1022
+ // 只在首次 venueBookingModule 就绪时执行一次;内部依赖的 callback 走 ref,
1023
+ // 避免宿主 Provider 重渲染(如登录弹窗打开/关闭)让 utils 引用变化,导致
1024
+ // syncCustomerLoginToModule / goToNearestAvailableDate 身份抖动连带 effect 重跑,
1025
+ // 进而触发 setIsWeekLoading(true) 造成 VenueSelection 骨架屏闪烁。
1001
1026
  useEffect(function () {
1002
- if (!venueBookingModule) return;
1027
+ if (bootstrappedRef.current || !venueBookingModule) return;
1028
+ bootstrappedRef.current = true;
1003
1029
  var unmounted = false;
1004
1030
  var bootstrap = /*#__PURE__*/function () {
1005
1031
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
@@ -1012,14 +1038,14 @@ export function VenueBookingProvider(_ref) {
1012
1038
 
1013
1039
  // 初始化阶段尝试同步 customer 到 venueBooking 模块(未登录时内部自动跳过)
1014
1040
  _context14.next = 4;
1015
- return syncCustomerLoginToModule();
1041
+ return syncCustomerLoginRef.current();
1016
1042
  case 4:
1017
1043
  _context14.next = 6;
1018
1044
  return loadVenueProducts(venueBookingModule, VENUE_PRODUCT_IDS);
1019
1045
  case 6:
1020
1046
  venueProducts = typeof (venueBookingModule === null || venueBookingModule === void 0 ? void 0 : venueBookingModule.getVenueProducts) === 'function' ? venueBookingModule.getVenueProducts() : []; // 2. 自动定位最近可用日期(当前周无可用则滚动到后续周)
1021
1047
  _context14.next = 9;
1022
- return goToNearestAvailableDate(anchorDateRef.current);
1048
+ return goToNearestAvailableDateRef.current(anchorDateRef.current);
1023
1049
  case 9:
1024
1050
  // 3. 刷新购物车数据
1025
1051
  moduleData = createVenueBookingViewModel(venueBookingModule);
@@ -1078,7 +1104,7 @@ export function VenueBookingProvider(_ref) {
1078
1104
  return function () {
1079
1105
  unmounted = true;
1080
1106
  };
1081
- }, [venueBookingModule, entryContext === null || entryContext === void 0 ? void 0 : entryContext.biz, entryContext === null || entryContext === void 0 ? void 0 : entryContext.resource_id, syncCustomerLoginToModule, goToNearestAvailableDate]);
1107
+ }, [venueBookingModule]);
1082
1108
 
1083
1109
  // ── 聚合 Context Value ──
1084
1110
  var value = useMemo(function () {
package/es/index.d.ts ADDED
@@ -0,0 +1,87 @@
1
+ export { default as Login } from './components/login';
2
+ export type { LoginProps } from './components/login';
3
+ export { default as BookingInfo } from './components/booking/info/index';
4
+ export { default as BookingNotes } from './components/booking/notes';
5
+ export { default as BookingAddons } from './components/booking/addons';
6
+ export { default as BookingForms } from './components/booking/forms';
7
+ export { default as BookingPayment } from './components/booking/payments';
8
+ export { default as Booking } from './components/booking';
9
+ export { default as Schedules } from './components/schedules';
10
+ export { default as BookingResources } from './components/booking/materiels/resources';
11
+ export { default as BookingStartTime } from './components/booking/materiels/startTime';
12
+ export { default as BookingDuration } from './components/booking/materiels/duration';
13
+ export { default as BookingContacts } from './components/booking/materiels/contacts';
14
+ export { VerticalClient } from './components/booking/info/clientVariant';
15
+ export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
16
+ export { default as ProductExtension } from './components/productExtension';
17
+ export { default as BookingDeposit } from './components/booking/deposit';
18
+ export { default as WorkspaceList } from './components/workSpaceList';
19
+ export { default as WorkspaceListDetail } from './components/workSpaceListDetail';
20
+ export { default as RuleSetting } from './components/ruleSetting';
21
+ export { default as TaxSelect } from './components/taxSelect';
22
+ export { default as EftposPay } from './components/eftposPay';
23
+ export { default as ToCPay } from './components/pay/toC';
24
+ export { default as Eftpos } from './components/eftpos';
25
+ export { default as WalletList } from './components/walletList';
26
+ export { default as BookingDashboard } from './components/booking/dashboard';
27
+ export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
28
+ export { default as EventBooking } from './components/eventBooking';
29
+ export { default as EventCard } from './components/eventBooking/components/eventCard';
30
+ export { default as EventResourceDisplay } from './components/eventBooking/components/resourceDisplay';
31
+ export { default as EventResourceUsability } from './components/eventBooking/components/resourceUsability';
32
+ export { default as EventProductCard } from './components/eventBooking/components/productCard';
33
+ export { default as EventTimeResourceSelector } from './components/eventBooking/components/timeResourceSelector';
34
+ export { default as EventSelectHolder } from './components/eventBooking/components/selectHolder';
35
+ export { default as EventBookingServiceList } from './components/eventBooking/components/bookingServiceList';
36
+ export { default as EventBookingAvailabilityCalendar } from './components/eventBooking/components/bookingAvailabilityCalendar';
37
+ export { default as EventScheduleCalendar } from './components/eventBooking/components/scheduleCalendar';
38
+ export { default as EventBookingDetailModal } from './components/eventBooking/components/bookingDetailModal';
39
+ export { default as EventProgressBar } from './components/eventBooking/components/progressBar';
40
+ export { default as ShoppingCart } from './components/shoppingCart';
41
+ export { default as AppointmentBooking } from './components/appointmentBooking';
42
+ export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
43
+ export { default as TicketBooking } from './components/ticketBooking';
44
+ export { default as ScanOrder } from './components/scanOrder';
45
+ export { default as VenueBooking } from './components/venueBooking';
46
+ export type { ScanOrderProps } from './components/scanOrder';
47
+ export { default as SubTotal } from './components/subTotal';
48
+ export { default as EditBookingModal } from './components/booking/editBookingModal';
49
+ export { default as StepController } from './components/stepController';
50
+ export { default as ClientCard } from './plus/clientCard';
51
+ export { default as ClientSearch } from './plus/clinetSearch';
52
+ export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
53
+ export { default as SaasLogin } from './plus/saasLogin';
54
+ export { default as SaasRegister } from './plus/saasRegister';
55
+ export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
56
+ export { default as PinModal } from './components/pinModal';
57
+ export { default as PinVerifyModal } from './components/pinVerifyModal';
58
+ export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, } from './components/authentication/admin';
59
+ export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps, } from './components/authentication/admin';
60
+ export { default as ContactInfo } from './plus/contactInfo';
61
+ export { default as ContactInfoModal } from './plus/contactInfoModal';
62
+ export { Login2, Register2, AuthModal } from './pro/Login2.0';
63
+ export { default as WalletEditor } from './plus/walletEditor';
64
+ export { default as WalletPassGallery } from './plus/walletPassGallery';
65
+ export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
66
+ export { default as SelectHolder } from './plus/selectHolder';
67
+ export { default as HolderList } from './plus/selectHolder/components/HolderList';
68
+ export { default as SettingsRegistry } from './components/systemSettings/registry';
69
+ export { default as SaasRole } from './plus/saasRole';
70
+ export { default as SaasTeamMembers } from './plus/saasTeamMembers';
71
+ export type { SaasTeamMembersProps } from './plus/saasTeamMembers/type';
72
+ export { default as KioskSkuDetail } from './components/kioskSkuDetail';
73
+ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
74
+ export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
75
+ export { default as SaasAttendance } from './plus/saasAttendance';
76
+ export { default as Selector } from './pro/Selector';
77
+ export { default as PisellSalesGrid } from './plus/pisellSalesGrid';
78
+ export { PisellReservationCore, PisellReservationBookingPage, PisellReservation, PisellVenueControlPage, default, } from './plus/pisellReservation';
79
+ export type { FloorMapBookingClickArgs, FloorMapBookingClickMode, PisellReservationProps, PisellReservationTableRow, } from './plus/pisellReservation';
80
+ export { defaultReservationTableRows, getDefaultReservationFloorMapConfig, } from './plus/pisellReservation';
81
+ export { default as EcoCupProject } from './components/ecocup/cupProject';
82
+ export { default as EcoCupList } from './components/ecocup/cupList';
83
+ export { default as EcoCustomerList } from './components/ecocup/customerList';
84
+ export { default as OrderList } from './plus/orderList';
85
+ export { default as pisellSalesManagement } from './plus/pisellSalesManagement';
86
+ export { PisellFinancialSummary, financialSummaryLocales } from './plus/pisellFinancialSummary';
87
+ export type { PisellFinancialSummaryProps, FinancialSummaryData, FinancialSummaryLineItem, FinancialSummaryPaymentItem, FinancialSummaryRefundItem, FinancialSummaryTotalBlock, FinancialSummaryAmountFormatOptions, } from './plus/pisellFinancialSummary';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -20,7 +20,7 @@ export declare const getFilterButtonList: () => ({
20
20
  }[];
21
21
  minInputNumberProps?: undefined;
22
22
  maxInputNumberProps?: undefined;
23
- readonly component?: undefined;
23
+ component?: undefined;
24
24
  isSearchServer?: undefined;
25
25
  showSearch?: undefined;
26
26
  showTime?: undefined;
@@ -46,7 +46,7 @@ export declare const getFilterButtonList: () => ({
46
46
  mode?: undefined;
47
47
  maxTagCount?: undefined;
48
48
  options?: undefined;
49
- readonly component?: undefined;
49
+ component?: undefined;
50
50
  isSearchServer?: undefined;
51
51
  showSearch?: undefined;
52
52
  showTime?: undefined;
@@ -91,7 +91,7 @@ export declare const getFilterButtonList: () => ({
91
91
  options: () => Promise<any>;
92
92
  minInputNumberProps?: undefined;
93
93
  maxInputNumberProps?: undefined;
94
- readonly component?: undefined;
94
+ component?: undefined;
95
95
  isSearchServer?: undefined;
96
96
  showSearch?: undefined;
97
97
  showTime?: undefined;
@@ -111,7 +111,7 @@ export declare const getFilterButtonList: () => ({
111
111
  options?: undefined;
112
112
  minInputNumberProps?: undefined;
113
113
  maxInputNumberProps?: undefined;
114
- readonly component?: undefined;
114
+ component?: undefined;
115
115
  isSearchServer?: undefined;
116
116
  showSearch?: undefined;
117
117
  showTime?: undefined;
@@ -133,7 +133,7 @@ export declare const getFilterButtonList: () => ({
133
133
  maxTagCount?: undefined;
134
134
  minInputNumberProps?: undefined;
135
135
  maxInputNumberProps?: undefined;
136
- readonly component?: undefined;
136
+ component?: undefined;
137
137
  showTime?: undefined;
138
138
  };
139
139
  sort?: undefined;
@@ -152,7 +152,7 @@ export declare const getFilterButtonList: () => ({
152
152
  options?: undefined;
153
153
  minInputNumberProps?: undefined;
154
154
  maxInputNumberProps?: undefined;
155
- readonly component?: undefined;
155
+ component?: undefined;
156
156
  isSearchServer?: undefined;
157
157
  showSearch?: undefined;
158
158
  };
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React, { useMemo } from 'react';
8
8
  import classNames from 'classnames';
9
- import { Button } from '@pisell/materials';
9
+ import { Button, PisellToast } from '@pisell/materials';
10
10
  import { image as imageAli, locales } from '@pisell/utils';
11
11
  import NumericStepper from "../../pro/NumericStepper";
12
12
  import PisellPriceText from "../productSelect/components/pisellPriceText";
@@ -173,6 +173,21 @@ var PisellSalesProductCard = function PisellSalesProductCard(_ref2) {
173
173
  max: cardMaxQuantity,
174
174
  step: (_stepperProps$step = stepperProps === null || stepperProps === void 0 ? void 0 : stepperProps.step) !== null && _stepperProps$step !== void 0 ? _stepperProps$step : 1,
175
175
  disabled: mergedDisabled,
176
+ onLimitExceeded: function onLimitExceeded(limitMeta) {
177
+ // 仅当 item_rule_limit 显式给出对应方向的文案时才提示。
178
+ // 达到库存 / 默认上限等"非 item_rule_limit 触发"的场景不弹 toast。
179
+ var raw = stepperProps === null || stepperProps === void 0 ? void 0 : stepperProps.limitMessage;
180
+ // 兼容旧 string 用法(等价于 { max: string })
181
+ var limitMsg = typeof raw === 'string' ? {
182
+ max: raw
183
+ } : raw || {};
184
+ var content = limitMeta.reason === 'max' ? limitMsg.max : limitMsg.min;
185
+ if (!content) return;
186
+ PisellToast({
187
+ content: content,
188
+ duration: 2
189
+ });
190
+ },
176
191
  onChange: function onChange(next, stepperMeta) {
177
192
  var _stepperProps$min4;
178
193
  var safeNext = Math.max((_stepperProps$min4 = stepperProps === null || stepperProps === void 0 ? void 0 : stepperProps.min) !== null && _stepperProps$min4 !== void 0 ? _stepperProps$min4 : 0, Math.min(cardMaxQuantity, next));
@@ -1,6 +1,26 @@
1
1
  /// <reference types="react" />
2
2
  import type { BundleGroupItem, BundleItem, OptionGroupItem, SkuCardConfig, VariantProductItem, VariantGroupItem } from '../skuOptionsSelection/types';
3
3
  import type { NumericStepperProps } from '../../pro/NumericStepper/index';
4
+ /**
5
+ * 达到 min / max 限制时希望展示的提示文案。
6
+ * 通常来自 item_rule_limit.maxValidationMessage / minValidationMessage。
7
+ * 对应字段为空时该方向不 toast(仍会走 locales 里的默认兑底,详见 PisellSalesProductCard)。
8
+ */
9
+ export interface SalesProductLimitMessage {
10
+ max?: string;
11
+ min?: string;
12
+ }
13
+ /**
14
+ * 商品卡使用的 stepper 配置,在 NumericStepperProps 基础上扩展业务字段。
15
+ */
16
+ export declare type SalesProductStepperProps = NumericStepperProps & {
17
+ /**
18
+ * 达到限制时希望展示的提示文案。支持:
19
+ * - string:等价于 { max: string }(兼容旧用法);
20
+ * - { min?, max? }:min / max 分开配置。
21
+ */
22
+ limitMessage?: string | SalesProductLimitMessage;
23
+ };
4
24
  export declare type SalesProductText = string | Record<string, string>;
5
25
  /**
6
26
  * 从 SKUOptionsSelection 数据结构反推的完整商品定义。
@@ -103,7 +123,7 @@ export interface PisellSalesProductCardProps {
103
123
  /** PRD products[i] value,组件会基于它进行增量更新并回传 */
104
124
  value?: Partial<SalesProductValue>;
105
125
  disabled?: boolean;
106
- stepperProps?: NumericStepperProps;
126
+ stepperProps?: SalesProductStepperProps;
107
127
  optionsText?: string;
108
128
  skuCardConfig?: SkuCardConfig;
109
129
  cartElementId?: string;
@@ -8,7 +8,7 @@ import PisellSalesProductCard from "../../pisellSalesProductCard";
8
8
  * 商品项内部渲染 PisellSalesProductCard。
9
9
  */
10
10
  var ProductCardV2 = /*#__PURE__*/memo(function (_ref) {
11
- var _ref2, _item$product_id2, _item$item_rule_limit, _item$item_rule_limit2;
11
+ var _ref2, _item$product_id2, _item$item_rule_limit, _item$item_rule_limit2, _item$item_rule_limit3, _item$item_rule_limit4, _item$item_rule_limit5, _item$item_rule_limit6;
12
12
  var item = _ref.item,
13
13
  index = _ref.index,
14
14
  context = _ref.context,
@@ -42,7 +42,11 @@ var ProductCardV2 = /*#__PURE__*/memo(function (_ref) {
42
42
  product: item,
43
43
  stepperProps: {
44
44
  min: item === null || item === void 0 || (_item$item_rule_limit = item.item_rule_limit) === null || _item$item_rule_limit === void 0 ? void 0 : _item$item_rule_limit.min,
45
- max: item === null || item === void 0 || (_item$item_rule_limit2 = item.item_rule_limit) === null || _item$item_rule_limit2 === void 0 ? void 0 : _item$item_rule_limit2.max
45
+ max: item === null || item === void 0 || (_item$item_rule_limit2 = item.item_rule_limit) === null || _item$item_rule_limit2 === void 0 ? void 0 : _item$item_rule_limit2.remainingMax,
46
+ limitMessage: {
47
+ max: (_item$item_rule_limit3 = item === null || item === void 0 || (_item$item_rule_limit4 = item.item_rule_limit) === null || _item$item_rule_limit4 === void 0 ? void 0 : _item$item_rule_limit4.maxValidationMessage) !== null && _item$item_rule_limit3 !== void 0 ? _item$item_rule_limit3 : item === null || item === void 0 || (_item$item_rule_limit5 = item.item_rule_limit) === null || _item$item_rule_limit5 === void 0 ? void 0 : _item$item_rule_limit5.validationMessage,
48
+ min: item === null || item === void 0 || (_item$item_rule_limit6 = item.item_rule_limit) === null || _item$item_rule_limit6 === void 0 ? void 0 : _item$item_rule_limit6.minValidationMessage
49
+ }
46
50
  },
47
51
  value: itemValue,
48
52
  skuCardConfig: {
@@ -0,0 +1,5 @@
1
+ import { RenderItemProps } from '../../../../pro/Selector/types';
2
+ declare const NormalCard: (props: RenderItemProps & {
3
+ parentDataSource: any;
4
+ }) => JSX.Element;
5
+ export default NormalCard;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const OptionItemCard: (props: any) => JSX.Element;
3
+ export default OptionItemCard;
@@ -0,0 +1,15 @@
1
+ interface OptionsModalProps {
2
+ parentDataSource: any;
3
+ dataSource: any;
4
+ modalDataSource: any;
5
+ values: any;
6
+ optionItemValue?: any;
7
+ modalValue: any;
8
+ remainingCount: number;
9
+ open: boolean;
10
+ title: string;
11
+ onCancel: () => void;
12
+ onConfirm: (v: any) => void;
13
+ }
14
+ declare const OptionsModal: (props: OptionsModalProps) => JSX.Element;
15
+ export default OptionsModal;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { IProps } from './types';
3
+ import './index.less';
4
+ declare const SKUOptionsSelection: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
5
+ export default SKUOptionsSelection;
@@ -0,0 +1,58 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.skuOptionsSelection.title': string;
4
+ 'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
5
+ 'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
6
+ 'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
7
+ 'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
8
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
9
+ 'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
10
+ 'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
11
+ 'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
12
+ };
13
+ 'zh-CN': {
14
+ 'pisell2.skuOptionsSelection.title': string;
15
+ 'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
16
+ 'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
17
+ 'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
18
+ 'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
19
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
20
+ 'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
21
+ 'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
22
+ 'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
23
+ };
24
+ 'zh-HK': {
25
+ 'pisell2.skuOptionsSelection.title': string;
26
+ 'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
27
+ 'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
28
+ 'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
29
+ 'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
30
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
31
+ 'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
32
+ 'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
33
+ 'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
34
+ };
35
+ ja: {
36
+ 'pisell2.skuOptionsSelection.title': string;
37
+ 'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
38
+ 'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
39
+ 'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
40
+ 'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
41
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
42
+ 'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
43
+ 'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
44
+ 'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
45
+ };
46
+ pt: {
47
+ 'pisell2.skuOptionsSelection.title': string;
48
+ 'pisell2.skuOptionsSelection.titleExtra.alreadySelected': string;
49
+ 'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
50
+ 'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
51
+ 'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
52
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
53
+ 'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
54
+ 'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
55
+ 'pisell2.skuOptionsSelection.optionItemCard.confirm': string;
56
+ };
57
+ };
58
+ export default _default;