@pisell/private-materials 6.3.69 → 6.3.71

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 (318) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +3 -3
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/voucher/index.js +8 -7
  16. package/es/components/booking/forms/model.d.ts +1 -10
  17. package/es/components/booking/hooks/useQuotation.js +2 -2
  18. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  21. package/es/components/booking/info/index.d.ts +1 -0
  22. package/es/components/booking/info/model.d.ts +1 -10
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  27. package/es/components/booking/model.d.ts +1 -9
  28. package/es/components/booking/notes/model.d.ts +1 -10
  29. package/es/components/booking/payments/model.d.ts +1 -10
  30. package/es/components/eftposPay/amount.d.ts +1 -1
  31. package/es/components/eftposPay/device.d.ts +1 -1
  32. package/es/components/eftposPay/hooks.d.ts +2 -2
  33. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  40. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  41. package/es/components/kioskSkuDetail/index.js +531 -0
  42. package/es/components/kioskSkuDetail/index.less +196 -0
  43. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  44. package/es/components/kioskSkuDetail/locales.js +26 -0
  45. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  46. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  47. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  48. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  49. package/es/components/pay/toC/model.d.ts +1 -9
  50. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  51. package/es/components/schedules/model.d.ts +1 -9
  52. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  53. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  54. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  55. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  56. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  57. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  58. package/es/components/walletList/index.js +7 -2
  59. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  60. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  61. package/es/index.d.ts +3 -1
  62. package/es/index.js +3 -1
  63. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  64. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  65. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  66. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  67. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  68. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  69. package/es/plus/skuOptionsSelection/locales.js +3 -0
  70. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  71. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  72. package/es/plus/skuOptionsSelection/types.js +2 -1
  73. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  74. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  75. package/es/plus/walletPassGallery/index.js +2 -2
  76. package/es/pro/numberKeyboard/index.d.ts +28 -0
  77. package/es/pro/numberKeyboard/index.js +155 -0
  78. package/es/pro/numberKeyboard/index.less +25 -0
  79. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  80. package/es/pro/numberKeyboard/locales.js +11 -0
  81. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  82. package/es/pro/pisellNumberSelector/example.js +68 -0
  83. package/es/pro/pisellNumberSelector/index.d.ts +29 -0
  84. package/es/pro/pisellNumberSelector/index.js +257 -0
  85. package/es/pro/pisellNumberSelector/index.less +235 -0
  86. package/es/pro/skuDetailModal/index.d.ts +4 -0
  87. package/es/pro/skuDetailModal/index.js +1031 -0
  88. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  89. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  90. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  91. package/lib/components/booking/addons/model.d.ts +1 -10
  92. package/lib/components/booking/components/voucher/index.js +0 -1
  93. package/lib/components/booking/forms/model.d.ts +1 -10
  94. package/lib/components/booking/hooks/useQuotation.js +3 -3
  95. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  96. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  97. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  98. package/lib/components/booking/info/index.d.ts +1 -0
  99. package/lib/components/booking/info/model.d.ts +1 -10
  100. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  101. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  102. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  103. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  104. package/lib/components/booking/model.d.ts +1 -9
  105. package/lib/components/booking/notes/model.d.ts +1 -10
  106. package/lib/components/booking/payments/model.d.ts +1 -10
  107. package/lib/components/eftposPay/amount.d.ts +1 -1
  108. package/lib/components/eftposPay/device.d.ts +1 -1
  109. package/lib/components/eftposPay/hooks.d.ts +2 -2
  110. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  111. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  112. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  113. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  114. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  115. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  116. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  117. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  118. package/lib/components/kioskSkuDetail/index.js +393 -0
  119. package/lib/components/kioskSkuDetail/index.less +196 -0
  120. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  121. package/lib/components/kioskSkuDetail/locales.js +50 -0
  122. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  123. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  124. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  125. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  126. package/lib/components/pay/toC/model.d.ts +1 -9
  127. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  128. package/lib/components/schedules/model.d.ts +1 -9
  129. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  130. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  131. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  132. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  133. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  134. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  135. package/lib/components/walletList/index.js +5 -1
  136. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  137. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  138. package/lib/index.d.ts +3 -1
  139. package/lib/index.js +7 -1
  140. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  141. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  142. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  143. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  144. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  145. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  146. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  147. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  148. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  149. package/lib/plus/skuOptionsSelection/types.js +2 -1
  150. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  151. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  152. package/lib/plus/walletPassGallery/index.js +2 -2
  153. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  154. package/lib/pro/numberKeyboard/index.js +182 -0
  155. package/lib/pro/numberKeyboard/index.less +25 -0
  156. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  157. package/lib/pro/numberKeyboard/locales.js +35 -0
  158. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  159. package/lib/pro/pisellNumberSelector/example.js +93 -0
  160. package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
  161. package/lib/pro/pisellNumberSelector/index.js +275 -0
  162. package/lib/pro/pisellNumberSelector/index.less +235 -0
  163. package/lib/pro/skuDetailModal/index.d.ts +4 -0
  164. package/lib/pro/skuDetailModal/index.js +736 -0
  165. package/lowcode/kiosk-sku-detail/meta.ts +264 -0
  166. package/package.json +4 -4
  167. package/es/components/Sales/Cart/utils.d.ts +0 -63
  168. package/es/components/Sales/Summary/utils.d.ts +0 -51
  169. package/es/components/appointmentBooking/locales.d.ts +0 -363
  170. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  171. package/es/components/booking/dashboard/serve.d.ts +0 -1
  172. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  173. package/es/components/booking/forms/serve.d.ts +0 -18
  174. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  175. package/es/components/booking/info/client/serve.d.ts +0 -2
  176. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  177. package/es/components/booking/info/pet/serve.d.ts +0 -1
  178. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  179. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  180. package/es/components/booking/info/service/serve.d.ts +0 -20
  181. package/es/components/booking/info2/serve.d.ts +0 -6
  182. package/es/components/booking/locales.d.ts +0 -843
  183. package/es/components/eftposPay/const.d.ts +0 -184
  184. package/es/components/eftposPay/locales.d.ts +0 -330
  185. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  186. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  187. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  188. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  189. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  190. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  191. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  192. package/es/components/pay/toC/locales.d.ts +0 -307
  193. package/es/components/pay/toC/status.d.ts +0 -13
  194. package/es/components/ruleSetting/locales.d.ts +0 -48
  195. package/es/components/shoppingCart/locales.d.ts +0 -33
  196. package/es/components/shoppingCart/type.d.ts +0 -48
  197. package/es/components/subTotal/locales.d.ts +0 -42
  198. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  199. package/es/components/systemSettings/registry/services.d.ts +0 -77
  200. package/es/components/systemSettings/registry/types.d.ts +0 -126
  201. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  202. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  203. package/es/components/ticketBooking/locales.d.ts +0 -174
  204. package/es/components/wallet/utils.d.ts +0 -48
  205. package/es/components/walletList/locales.d.ts +0 -27
  206. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  207. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  208. package/es/hooks/useEngineContext.d.ts +0 -10
  209. package/es/hooks/useWindowSize.d.ts +0 -5
  210. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  211. package/es/plus/selectHolder/locales.d.ts +0 -21
  212. package/es/plus/selectHolder/types.d.ts +0 -104
  213. package/es/plus/selectHolder/utils.d.ts +0 -9
  214. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  215. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  216. package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  217. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  218. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  219. package/es/plus/walletEditor/locales.d.ts +0 -135
  220. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  221. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  222. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  223. package/es/pro/NumericStepper/index.d.ts +0 -43
  224. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  225. package/es/pro/Selector/Item.d.ts +0 -14
  226. package/es/pro/Selector/Selector.stories.d.ts +0 -78
  227. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  228. package/es/pro/Selector/components/Card/types.d.ts +0 -1
  229. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  230. package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  231. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  232. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  233. package/es/pro/Selector/components/Media/types.d.ts +0 -47
  234. package/es/pro/Selector/components/index.d.ts +0 -4
  235. package/es/pro/Selector/demo.d.ts +0 -2
  236. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  237. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  238. package/es/pro/Selector/index.d.ts +0 -11
  239. package/es/pro/Selector/locales.d.ts +0 -36
  240. package/es/pro/Selector/types.d.ts +0 -173
  241. package/es/pro/Selector/utils/index.d.ts +0 -49
  242. package/es/test/setup.d.ts +0 -1
  243. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  244. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  245. package/lib/components/appointmentBooking/locales.d.ts +0 -363
  246. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  247. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  248. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  249. package/lib/components/booking/forms/serve.d.ts +0 -18
  250. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  251. package/lib/components/booking/info/client/serve.d.ts +0 -2
  252. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  253. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  254. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  255. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  256. package/lib/components/booking/info/service/serve.d.ts +0 -20
  257. package/lib/components/booking/info2/serve.d.ts +0 -6
  258. package/lib/components/booking/locales.d.ts +0 -843
  259. package/lib/components/eftposPay/const.d.ts +0 -184
  260. package/lib/components/eftposPay/locales.d.ts +0 -330
  261. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  262. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  263. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  264. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  265. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  266. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  267. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  268. package/lib/components/pay/toC/locales.d.ts +0 -307
  269. package/lib/components/pay/toC/status.d.ts +0 -13
  270. package/lib/components/ruleSetting/locales.d.ts +0 -48
  271. package/lib/components/shoppingCart/locales.d.ts +0 -33
  272. package/lib/components/shoppingCart/type.d.ts +0 -48
  273. package/lib/components/subTotal/locales.d.ts +0 -42
  274. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  275. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  276. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  277. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  278. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  279. package/lib/components/ticketBooking/locales.d.ts +0 -174
  280. package/lib/components/wallet/utils.d.ts +0 -48
  281. package/lib/components/walletList/locales.d.ts +0 -27
  282. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  283. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  284. package/lib/hooks/useEngineContext.d.ts +0 -10
  285. package/lib/hooks/useWindowSize.d.ts +0 -5
  286. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  287. package/lib/plus/selectHolder/locales.d.ts +0 -21
  288. package/lib/plus/selectHolder/types.d.ts +0 -104
  289. package/lib/plus/selectHolder/utils.d.ts +0 -9
  290. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  291. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  292. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  293. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  294. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  295. package/lib/plus/walletEditor/locales.d.ts +0 -135
  296. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  297. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  298. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  299. package/lib/pro/NumericStepper/index.d.ts +0 -43
  300. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  301. package/lib/pro/Selector/Item.d.ts +0 -14
  302. package/lib/pro/Selector/Selector.stories.d.ts +0 -78
  303. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  304. package/lib/pro/Selector/components/Card/types.d.ts +0 -1
  305. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  306. package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  307. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  308. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  309. package/lib/pro/Selector/components/Media/types.d.ts +0 -47
  310. package/lib/pro/Selector/components/index.d.ts +0 -4
  311. package/lib/pro/Selector/demo.d.ts +0 -2
  312. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  313. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  314. package/lib/pro/Selector/index.d.ts +0 -11
  315. package/lib/pro/Selector/locales.d.ts +0 -36
  316. package/lib/pro/Selector/types.d.ts +0 -173
  317. package/lib/pro/Selector/utils/index.d.ts +0 -49
  318. package/lib/test/setup.d.ts +0 -1
@@ -0,0 +1,196 @@
1
+ .pisell-kiosk-sku-detail-viewport {
2
+ position: relative;
3
+ width: 100vw;
4
+ height: 100vh;
5
+ overflow: hidden;
6
+ background: #f2f4f7;
7
+ }
8
+
9
+ .pisell-kiosk-sku-detail {
10
+ position: absolute;
11
+ top: 0;
12
+ left: 50%;
13
+ width: 1080px;
14
+ height: 1800px;
15
+ overflow-y: auto;
16
+ background: #f2f4f7;
17
+ background-size: cover;
18
+ background-position: center;
19
+ padding: 40px;
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ .pisell-kiosk-sku-detail__content {
24
+ width: 100%;
25
+ margin: 0 auto;
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 40px;
29
+ padding-bottom: 220px; // avoid overlap with footer
30
+ .pisell-pro-selector_header-content {
31
+ .pisell-pro-selector_header-content-title {
32
+ color: #101828;
33
+ font-size: 36px !important;
34
+ }
35
+ .pisell-lowcode-tag {
36
+ font-size: 22px !important;
37
+ margin-left: 20px !important;
38
+ padding-top: 5px !important;
39
+ padding-bottom: 5px !important;
40
+ }
41
+ }
42
+ .pisell-pro-selector_tip {
43
+ font-size: 36px !important;
44
+ color: #667085;
45
+ }
46
+ .pisell-sku-options-selection-variant-card__title {
47
+ font-size: 36px !important;
48
+ font-weight: 600 !important;
49
+ color: #101828;
50
+ }
51
+ .pisell-sku-options-selection-variant-card__price {
52
+ font-size: 30px !important;
53
+ }
54
+ .pisell-sku-options-selection-variant-card {
55
+ padding-top: 30px !important;
56
+ padding-bottom: 30px !important;
57
+ }
58
+ }
59
+
60
+ .pisell-kiosk-sku-detail__hero {
61
+ width: 100%;
62
+ border-radius: 40px;
63
+ overflow: hidden;
64
+ background: #ffffff;
65
+ }
66
+
67
+ .pisell-kiosk-sku-detail__hero-img {
68
+ width: 100%;
69
+ height: 633px;
70
+ object-fit: cover;
71
+ display: block;
72
+ }
73
+
74
+ .pisell-kiosk-sku-detail__hero-placeholder {
75
+ width: 100%;
76
+ height: 633px;
77
+ background: #f2f4f7;
78
+ }
79
+
80
+ .pisell-kiosk-sku-detail__header {
81
+ display: flex;
82
+ flex-direction: column;
83
+ align-items: center;
84
+ gap: 20px;
85
+ text-align: center;
86
+ }
87
+
88
+ .pisell-kiosk-sku-detail__title {
89
+ font-size: 60px;
90
+ line-height: 72px;
91
+ font-weight: 600;
92
+ color: #000;
93
+ }
94
+
95
+ .pisell-kiosk-sku-detail__desc {
96
+ font-size: 36px;
97
+ line-height: 44px;
98
+ font-weight: 400;
99
+ color: #475467;
100
+ }
101
+
102
+ .pisell-kiosk-sku-detail__price-range {
103
+ font-size: 48px;
104
+ line-height: 60px;
105
+ font-weight: 600;
106
+ color: #f79009;
107
+ }
108
+
109
+ .pisell-kiosk-sku-detail__error {
110
+ font-size: 20px;
111
+ line-height: 30px;
112
+ color: #b42318;
113
+ }
114
+
115
+ .pisell-kiosk-sku-detail__options-card {
116
+ background: #fff;
117
+ border-radius: 40px;
118
+ padding: 40px;
119
+ .pisell-pro-selector_options-container {
120
+ grid-template-columns: 1fr 1fr !important;
121
+ }
122
+ }
123
+
124
+ .pisell-kiosk-sku-detail__options-loading {
125
+ font-size: 20px;
126
+ color: #667085;
127
+ padding: 20px 0;
128
+ }
129
+
130
+ .pisell-kiosk-sku-detail__footer {
131
+ // 注意:父容器有 transform(scale),fixed 会相对该容器定位(适配小分辨率缩放舞台)
132
+ position: fixed;
133
+ left: 30px;
134
+ right: 30px;
135
+ bottom: 30px;
136
+ transform: none;
137
+ width: auto;
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: space-between;
141
+ gap: 20px;
142
+ padding: 30px;
143
+ background: #fff;
144
+ border: 1px solid #d0d5dd;
145
+ border-radius: 80px;
146
+ box-shadow:
147
+ 0px 4px 6px -2px rgba(16, 24, 40, 0.03),
148
+ 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
149
+ box-sizing: border-box;
150
+ }
151
+
152
+ .pisell-kiosk-sku-detail__back-btn {
153
+ border-radius: 80px;
154
+ border: 1px solid #98a2b3 !important;
155
+ background: #fff !important;
156
+ color: #101828 !important;
157
+ height: 72px;
158
+ padding: 0 24px;
159
+ font-size: 20px;
160
+ font-weight: 600;
161
+ }
162
+
163
+ .pisell-kiosk-sku-detail__footer-center {
164
+ display: flex;
165
+ align-items: center;
166
+ gap: 20px;
167
+ // 靠右,并与右侧主按钮保持 20px 间距
168
+ margin-left: auto;
169
+ margin-right: 20px;
170
+ }
171
+
172
+ .pisell-kiosk-sku-detail__item-total {
173
+ font-size: 20px;
174
+ line-height: 30px;
175
+ font-weight: 600;
176
+ color: #101828;
177
+ white-space: nowrap;
178
+ }
179
+
180
+ .pisell-kiosk-sku-detail__qty {
181
+ display: flex;
182
+ align-items: center;
183
+ }
184
+
185
+ .pisell-kiosk-sku-detail__add-btn {
186
+ border-radius: 80px !important;
187
+ height: 72px;
188
+ padding: 0 36px !important;
189
+ font-size: 24px !important;
190
+ font-weight: 600 !important;
191
+ background: #ffbc0d !important;
192
+ border-color: #ffbc0d !important;
193
+ color: #fff !important;
194
+ }
195
+
196
+
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.kiosk.sku.detail.btn.back': string;
4
+ 'pisell2.text.kiosk.sku.detail.item.total': string;
5
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
6
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
7
+ 'pisell2.text.kiosk.sku.detail.loading.options': string;
8
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
9
+ };
10
+ 'zh-CN': {
11
+ 'pisell2.text.kiosk.sku.detail.btn.back': string;
12
+ 'pisell2.text.kiosk.sku.detail.item.total': string;
13
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
14
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
15
+ 'pisell2.text.kiosk.sku.detail.loading.options': string;
16
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
17
+ };
18
+ 'zh-TW': {
19
+ 'pisell2.text.kiosk.sku.detail.btn.back': string;
20
+ 'pisell2.text.kiosk.sku.detail.item.total': string;
21
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
22
+ 'pisell2.text.kiosk.sku.detail.btn.update': string;
23
+ 'pisell2.text.kiosk.sku.detail.loading.options': string;
24
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
25
+ };
26
+ };
27
+ export default _default;
@@ -0,0 +1,26 @@
1
+ export default {
2
+ en: {
3
+ 'pisell2.text.kiosk.sku.detail.btn.back': 'Back',
4
+ 'pisell2.text.kiosk.sku.detail.item.total': 'Item total',
5
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': 'Add to cart',
6
+ 'pisell2.text.kiosk.sku.detail.btn.update': 'Update',
7
+ 'pisell2.text.kiosk.sku.detail.loading.options': 'Loading options…',
8
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': 'Please select a top-up option'
9
+ },
10
+ 'zh-CN': {
11
+ 'pisell2.text.kiosk.sku.detail.btn.back': '返回',
12
+ 'pisell2.text.kiosk.sku.detail.item.total': '小计',
13
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': '加入购物车',
14
+ 'pisell2.text.kiosk.sku.detail.btn.update': '更新',
15
+ 'pisell2.text.kiosk.sku.detail.loading.options': '正在加载选项…',
16
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': '请选择充值选项'
17
+ },
18
+ 'zh-TW': {
19
+ 'pisell2.text.kiosk.sku.detail.btn.back': '返回',
20
+ 'pisell2.text.kiosk.sku.detail.item.total': '小計',
21
+ 'pisell2.text.kiosk.sku.detail.btn.add.to.cart': '加入購物車',
22
+ 'pisell2.text.kiosk.sku.detail.btn.update': '更新',
23
+ 'pisell2.text.kiosk.sku.detail.loading.options': '正在載入選項…',
24
+ 'pisell2.text.kiosk.sku.detail.toast.select.variant': '請選擇充值選項'
25
+ }
26
+ };
@@ -380,6 +380,11 @@ export var createThreeDSMethodIframe = /*#__PURE__*/function () {
380
380
  if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf('securesuite') !== -1) {
381
381
  // 返回 threeDSServerTransID 则 res
382
382
  if (typeof event.data.threeDSServerTransID == 'string') {
383
+ setHistoryLog({
384
+ msg: '第三步: message 返回 threeDSServerTransID',
385
+ time: getCurrentTime(),
386
+ threeDSServerTransID: event.data.threeDSServerTransID
387
+ });
383
388
  if (timer) {
384
389
  clearTimeout(timer);
385
390
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -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 ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;
@@ -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
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -172,7 +172,8 @@ var DEFAULT_BALANCE = {
172
172
  gift_card_balance: 0,
173
173
  point_card_balance: 0,
174
174
  voucher_count: 0,
175
- discount_card_count: 0
175
+ discount_card_count: 0,
176
+ good_pass_count: 0
176
177
  };
177
178
  var WalletList = Provider(function (props) {
178
179
  var _utils$getStore, _context$engine, _store$getState;
@@ -776,7 +777,7 @@ var WalletList = Provider(function (props) {
776
777
  return bi.wallet_id == item.wallet_id;
777
778
  }) || DEFAULT_BALANCE;
778
779
 
779
- // 字段映射关系
780
+ // 字段映射关系 voucher 需要额外处理 good_pass_count(@date: 251229)
780
781
  var _balanceKeyMap = {
781
782
  rechargeable: 'gift_card_balance',
782
783
  point: 'point_card_balance',
@@ -786,6 +787,10 @@ var WalletList = Provider(function (props) {
786
787
  var cardItems = showcaseWalletPassNew.map(function (showCaseItem) {
787
788
  var balanceKey = _balanceKeyMap[showCaseItem.type];
788
789
  var value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
790
+ // voucher 类型需要额外处理 good_pass_count
791
+ if (showCaseItem.type === 'voucher') {
792
+ value += balanceItem.good_pass_count || 0;
793
+ }
789
794
  return _objectSpread(_objectSpread({}, showCaseItem), {}, {
790
795
  value: value
791
796
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
package/es/index.d.ts CHANGED
@@ -57,8 +57,10 @@ export { Login2, Register2, AuthModal } from './pro/Login2.0';
57
57
  export { default as WalletEditor } from './plus/walletEditor';
58
58
  export { default as WalletPassGallery } from './plus/walletPassGallery';
59
59
  export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
60
- export { default as SettingsRegistry } from './components/systemSettings/registry';
61
60
  export { default as SelectHolder } from './plus/selectHolder';
62
61
  export { default as HolderList } from './plus/selectHolder/components/HolderList';
62
+ export { default as SettingsRegistry } from './components/systemSettings/registry';
63
+ export { default as KioskSkuDetail } from './components/kioskSkuDetail';
64
+ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
63
65
  export { default as Selector } from './pro/Selector';
64
66
  export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
package/es/index.js CHANGED
@@ -60,8 +60,10 @@ export { Login2, Register2, AuthModal } from "./pro/Login2.0";
60
60
  export { default as WalletEditor } from "./plus/walletEditor";
61
61
  export { default as WalletPassGallery } from "./plus/walletPassGallery";
62
62
  export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
63
- export { default as SettingsRegistry } from "./components/systemSettings/registry";
64
63
  export { default as SelectHolder } from "./plus/selectHolder";
65
64
  export { default as HolderList } from "./plus/selectHolder/components/HolderList";
65
+ export { default as SettingsRegistry } from "./components/systemSettings/registry";
66
+ export { default as KioskSkuDetail } from "./components/kioskSkuDetail";
67
+ export { default as ProNumberSelector } from "./pro/pisellNumberSelector";
66
68
  export { default as Selector } from "./pro/Selector";
67
69
  export { default as SKUOptionsSelection } from "./plus/skuOptionsSelection";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RenderItemProps } from '../../../../pro/Selector/types';
2
3
  declare const NormalCard: (props: RenderItemProps & {
3
4
  parentDataSource: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface OptionsModalProps {
2
3
  parentDataSource: any;
3
4
  dataSource: any;
@@ -1,12 +1,25 @@
1
1
  import React from 'react';
2
2
  import { locales } from '@pisell/utils';
3
3
  import Selector from "../../../../pro/Selector";
4
+ import useStore from "../../hooks/useStore";
4
5
  import "./index.less";
5
6
  var VariantCard = function VariantCard(props) {
6
7
  var _props$dataSource, _props$dataSource2;
7
8
  var _ref = props || {},
8
9
  dataSource = _ref.dataSource,
9
10
  actions = _ref.actions;
11
+ var symbol = useStore(function (s) {
12
+ return s.symbol;
13
+ });
14
+ var skuCardConfig = useStore(function (s) {
15
+ return s.skuCardConfig;
16
+ });
17
+ var isVariantPriceVisible = (skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.variantPriceVisible) === true;
18
+ var priceConfig = skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.price;
19
+ var priceText = formatPriceText({
20
+ symbol: symbol,
21
+ price: dataSource === null || dataSource === void 0 ? void 0 : dataSource.price
22
+ });
10
23
  var handleClick = function handleClick(e) {
11
24
  e.stopPropagation();
12
25
  if (dataSource !== null && dataSource !== void 0 && dataSource.disabled) return;
@@ -24,6 +37,22 @@ var VariantCard = function VariantCard(props) {
24
37
  return /*#__PURE__*/React.createElement(Selector.Item, props || {}, /*#__PURE__*/React.createElement("div", {
25
38
  className: "pisell-sku-options-selection-variant-card",
26
39
  onClick: handleClick
27
- }, ((_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.title) || '', ((_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 || (_props$dataSource2 = _props$dataSource2._extra) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.hasStock) === false ? " (".concat(locales.getText('pisell2.skuOptionsSelection.variantItemCard.soldOut'), ")") : null));
40
+ }, /*#__PURE__*/React.createElement("div", {
41
+ className: "pisell-sku-options-selection-variant-card__title"
42
+ }, ((_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.title) || '', ((_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 || (_props$dataSource2 = _props$dataSource2._extra) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.hasStock) === false ? " (".concat(locales.getText('pisell2.skuOptionsSelection.variantItemCard.soldOut'), ")") : null), isVariantPriceVisible && (priceConfig === null || priceConfig === void 0 ? void 0 : priceConfig.visible) !== false && !!priceText ? /*#__PURE__*/React.createElement("div", {
43
+ className: "pisell-sku-options-selection-variant-card__price",
44
+ style: {
45
+ fontSize: priceConfig === null || priceConfig === void 0 ? void 0 : priceConfig.fontSize,
46
+ fontWeight: priceConfig === null || priceConfig === void 0 ? void 0 : priceConfig.fontWeight,
47
+ color: priceConfig === null || priceConfig === void 0 ? void 0 : priceConfig.color
48
+ }
49
+ }, locales.getText('pisell2.skuOptionsSelection.variantItemCard.price'), ":", priceText) : null));
28
50
  };
51
+ function formatPriceText(params) {
52
+ var symbol = params.symbol || '$';
53
+ var price = Number(params.price);
54
+ if (!params.price && params.price !== 0) return '';
55
+ if (Number.isNaN(price)) return '';
56
+ return "".concat(symbol).concat(price.toFixed(2));
57
+ }
29
58
  export default VariantCard;
@@ -3,7 +3,17 @@
3
3
  height: 100%;
4
4
  padding: 12px 16px;
5
5
  display: flex;
6
+ flex-direction: column;
7
+ gap: 4px;
6
8
  align-items: center;
7
9
  justify-content: center;
8
10
  text-align: center;
11
+ }
12
+
13
+ .pisell-sku-options-selection-variant-card__title {
14
+ line-height: 1.2;
15
+ }
16
+
17
+ .pisell-sku-options-selection-variant-card__price {
18
+ line-height: 1.2;
9
19
  }
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
6
6
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
7
7
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
8
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
8
9
  'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
9
10
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
10
11
  };
@@ -14,6 +15,7 @@ declare const _default: {
14
15
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
15
16
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
16
17
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
18
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
17
19
  'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
18
20
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
19
21
  };
@@ -23,6 +25,7 @@ declare const _default: {
23
25
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': string;
24
26
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': string;
25
27
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': string;
28
+ 'pisell2.skuOptionsSelection.variantItemCard.price': string;
26
29
  'pisell2.skuOptionsSelection.optionItemCard.typeText': string;
27
30
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': string;
28
31
  };
@@ -5,6 +5,7 @@ export default {
5
5
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': 'Subtotal: {{price}}',
6
6
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': 'Edit selections',
7
7
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': 'Out of stock',
8
+ 'pisell2.skuOptionsSelection.variantItemCard.price': 'Price',
8
9
  'pisell2.skuOptionsSelection.optionItemCard.typeText': 'Type',
9
10
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': 'Over selected'
10
11
  },
@@ -14,6 +15,7 @@ export default {
14
15
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': '小计:{{price}}',
15
16
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': '编辑选择',
16
17
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': '库存不足',
18
+ 'pisell2.skuOptionsSelection.variantItemCard.price': '价格',
17
19
  'pisell2.skuOptionsSelection.optionItemCard.typeText': '类型',
18
20
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': '已达上限'
19
21
  },
@@ -23,6 +25,7 @@ export default {
23
25
  'pisell2.skuOptionsSelection.titleExtra.totalPrice': '小計:{{price}}',
24
26
  'pisell2.skuOptionsSelection.optionItemCard.editSelections': '編輯選擇',
25
27
  'pisell2.skuOptionsSelection.variantItemCard.soldOut': '庫存不足',
28
+ 'pisell2.skuOptionsSelection.variantItemCard.price': '價格',
26
29
  'pisell2.skuOptionsSelection.optionItemCard.typeText': '類型',
27
30
  'pisell2.skuOptionsSelection.optionItemCard.overSelected': '已達上限'
28
31
  }
@@ -1,3 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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); }
1
7
  import store, { initialState } from "./store";
2
8
  var actions = {
3
9
  /** 更新数据源 */
@@ -38,8 +44,17 @@ var actions = {
38
44
  },
39
45
  /** 更新 SKU Card 配置 */
40
46
  updateSkuCardConfig: function updateSkuCardConfig(skuCardConfig) {
41
- store.setState({
42
- skuCardConfig: skuCardConfig
47
+ // 支持局部更新:避免调用方只传一个字段时覆盖默认配置
48
+ store.setState(function (prev) {
49
+ var _prev$skuCardConfig, _prev$skuCardConfig2, _prev$skuCardConfig3, _prev$skuCardConfig4;
50
+ return {
51
+ skuCardConfig: _objectSpread(_objectSpread(_objectSpread({}, prev.skuCardConfig || {}), skuCardConfig || {}), {}, {
52
+ title: _objectSpread(_objectSpread({}, ((_prev$skuCardConfig = prev.skuCardConfig) === null || _prev$skuCardConfig === void 0 ? void 0 : _prev$skuCardConfig.title) || {}), (skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.title) || {}),
53
+ subTitle: _objectSpread(_objectSpread({}, ((_prev$skuCardConfig2 = prev.skuCardConfig) === null || _prev$skuCardConfig2 === void 0 ? void 0 : _prev$skuCardConfig2.subTitle) || {}), (skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.subTitle) || {}),
54
+ price: _objectSpread(_objectSpread({}, ((_prev$skuCardConfig3 = prev.skuCardConfig) === null || _prev$skuCardConfig3 === void 0 ? void 0 : _prev$skuCardConfig3.price) || {}), (skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.price) || {}),
55
+ image: _objectSpread(_objectSpread({}, ((_prev$skuCardConfig4 = prev.skuCardConfig) === null || _prev$skuCardConfig4 === void 0 ? void 0 : _prev$skuCardConfig4.image) || {}), (skuCardConfig === null || skuCardConfig === void 0 ? void 0 : skuCardConfig.image) || {})
56
+ })
57
+ };
43
58
  });
44
59
  },
45
60
  /** 更新自定义配置 */
@@ -41,6 +41,11 @@ export interface SkuCardConfig {
41
41
  price?: Omit<SkuCardTextConfig, 'lineClamp'>;
42
42
  /** 图片配置 */
43
43
  image?: SkuCardImageConfig;
44
+ /**
45
+ * @description 是否在「组合规格选项卡片(VariantCard)」展示价格
46
+ * - 默认不展示,避免影响现有业务 UI
47
+ */
48
+ variantPriceVisible?: boolean;
44
49
  }
45
50
  /**
46
51
  * SKU store状态类型
@@ -29,7 +29,8 @@ export var defaultSkuCardConfig = {
29
29
  },
30
30
  image: {
31
31
  visible: true
32
- }
32
+ },
33
+ variantPriceVisible: false
33
34
  };
34
35
 
35
36
  /**