@pisell/private-materials 3.4.59 → 3.4.61

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 (312) 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 +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  17. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  19. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  20. package/es/components/booking/forms/footer.d.ts +0 -1
  21. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  22. package/es/components/booking/forms/single/index.d.ts +0 -1
  23. package/es/components/booking/forms/table/index.d.ts +0 -1
  24. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  26. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  27. package/es/components/booking/info/date/index.d.ts +0 -1
  28. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  29. package/es/components/booking/info/notes/index.d.ts +0 -1
  30. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  31. package/es/components/booking/info/service/like/index.d.ts +0 -1
  32. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  33. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  34. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  35. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  36. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  37. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  38. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  39. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  42. package/es/components/eftpos/form/index.d.ts +0 -1
  43. package/es/components/eftpos/group/index.d.ts +0 -1
  44. package/es/components/eftpos/hooks.d.ts +0 -1
  45. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  46. package/es/components/eftpos/icon/device.d.ts +0 -1
  47. package/es/components/eftpos/index.d.ts +0 -1
  48. package/es/components/eftpos/pos.d.ts +0 -1
  49. package/es/components/eftpos/receipt/index.d.ts +0 -1
  50. package/es/components/eftposPay/amount.d.ts +1 -2
  51. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  52. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  53. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  54. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  55. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  56. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  57. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  58. package/es/components/eftposPay/device.d.ts +1 -1
  59. package/es/components/eftposPay/hooks.d.ts +2 -2
  60. package/es/components/eftposPay/payo/config.d.ts +0 -1
  61. package/es/components/eftposPay/store/index.d.ts +5 -5
  62. package/es/components/eftposPay/tip.d.ts +0 -1
  63. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  64. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  65. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  66. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  69. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  80. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  81. package/es/components/kioskSkuDetail/index.js +531 -0
  82. package/es/components/kioskSkuDetail/index.less +196 -0
  83. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  84. package/es/components/kioskSkuDetail/locales.js +26 -0
  85. package/es/components/login/index.d.ts +0 -1
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  87. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  89. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  90. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  91. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  92. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  93. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  94. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  95. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  96. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  97. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  98. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  99. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  100. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  101. package/es/components/schedules/calendar/index.d.ts +0 -1
  102. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  103. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  104. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  108. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  109. package/es/components/schedules/products/list/index.d.ts +0 -1
  110. package/es/components/schedules/resources/list/index.d.ts +0 -1
  111. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  112. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  113. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  114. package/es/components/schedules/schedules/index.d.ts +0 -1
  115. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  116. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  117. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  118. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  119. package/es/components/shoppingCart/index.d.ts +0 -1
  120. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  121. package/es/hooks/usePaymentLogger.d.ts +0 -1
  122. package/es/index.d.ts +2 -0
  123. package/es/index.js +2 -0
  124. package/es/plus/clientName/index.d.ts +0 -1
  125. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  126. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  127. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  128. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  129. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  130. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  131. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  132. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  133. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  134. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  135. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  136. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  137. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  138. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  139. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  140. package/es/plus/skuOptionsSelection/locales.js +3 -0
  141. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  142. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  143. package/es/plus/skuOptionsSelection/types.js +2 -1
  144. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  145. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  146. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  147. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  148. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  149. package/es/pro/numberKeyboard/index.d.ts +28 -0
  150. package/es/pro/numberKeyboard/index.js +155 -0
  151. package/es/pro/numberKeyboard/index.less +25 -0
  152. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  153. package/es/pro/numberKeyboard/locales.js +11 -0
  154. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  155. package/es/pro/pisellNumberSelector/example.js +68 -0
  156. package/es/pro/pisellNumberSelector/index.d.ts +29 -0
  157. package/es/pro/pisellNumberSelector/index.js +257 -0
  158. package/es/pro/pisellNumberSelector/index.less +235 -0
  159. package/es/pro/skuDetailModal/index.d.ts +4 -0
  160. package/es/pro/skuDetailModal/index.js +1031 -0
  161. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  162. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  163. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  164. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  165. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  166. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  167. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  168. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  169. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  170. package/lib/components/booking/forms/footer.d.ts +0 -1
  171. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  172. package/lib/components/booking/forms/single/index.d.ts +0 -1
  173. package/lib/components/booking/forms/table/index.d.ts +0 -1
  174. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  175. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  176. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  177. package/lib/components/booking/info/date/index.d.ts +0 -1
  178. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  179. package/lib/components/booking/info/notes/index.d.ts +0 -1
  180. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  181. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  182. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  183. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  184. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  185. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  186. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  187. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  188. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  189. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  190. package/lib/components/booking/utils.d.ts +2 -2
  191. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  192. package/lib/components/eftpos/form/index.d.ts +0 -1
  193. package/lib/components/eftpos/group/index.d.ts +0 -1
  194. package/lib/components/eftpos/hooks.d.ts +0 -1
  195. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  196. package/lib/components/eftpos/icon/device.d.ts +0 -1
  197. package/lib/components/eftpos/index.d.ts +0 -1
  198. package/lib/components/eftpos/pos.d.ts +0 -1
  199. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  200. package/lib/components/eftposPay/amount.d.ts +1 -2
  201. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  202. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  203. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  204. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  205. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  206. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  207. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  208. package/lib/components/eftposPay/device.d.ts +1 -1
  209. package/lib/components/eftposPay/hooks.d.ts +2 -2
  210. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  211. package/lib/components/eftposPay/store/index.d.ts +5 -5
  212. package/lib/components/eftposPay/tip.d.ts +0 -1
  213. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  214. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  215. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  216. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  217. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  218. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  219. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  220. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  221. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  222. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  230. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  231. package/lib/components/kioskSkuDetail/index.js +393 -0
  232. package/lib/components/kioskSkuDetail/index.less +196 -0
  233. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  234. package/lib/components/kioskSkuDetail/locales.js +50 -0
  235. package/lib/components/login/index.d.ts +0 -1
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  237. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  239. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  240. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  241. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  242. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  243. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  244. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  245. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  246. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  247. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  248. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  249. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  250. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  251. package/lib/components/schedules/calendar/index.d.ts +0 -1
  252. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  253. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  254. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  255. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  256. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  257. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  258. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  259. package/lib/components/schedules/products/list/index.d.ts +0 -1
  260. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  261. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  262. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  263. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  264. package/lib/components/schedules/schedules/index.d.ts +0 -1
  265. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  266. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  267. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  268. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  269. package/lib/components/shoppingCart/index.d.ts +0 -1
  270. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  271. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  272. package/lib/index.d.ts +2 -0
  273. package/lib/index.js +6 -0
  274. package/lib/plus/clientName/index.d.ts +0 -1
  275. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  276. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  277. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  278. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  279. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  280. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  281. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  282. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  283. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  284. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  285. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  286. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  287. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  288. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  289. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  290. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  291. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  292. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  293. package/lib/plus/skuOptionsSelection/types.js +2 -1
  294. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  295. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  296. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  297. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  298. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  299. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  300. package/lib/pro/numberKeyboard/index.js +182 -0
  301. package/lib/pro/numberKeyboard/index.less +25 -0
  302. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  303. package/lib/pro/numberKeyboard/locales.js +35 -0
  304. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  305. package/lib/pro/pisellNumberSelector/example.js +93 -0
  306. package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
  307. package/lib/pro/pisellNumberSelector/index.js +275 -0
  308. package/lib/pro/pisellNumberSelector/index.less +235 -0
  309. package/lib/pro/skuDetailModal/index.d.ts +4 -0
  310. package/lib/pro/skuDetailModal/index.js +736 -0
  311. package/lowcode/kiosk-sku-detail/meta.ts +264 -0
  312. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Calendar: () => JSX.Element;
4
3
  export default Calendar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from "../../type";
3
2
  import "./index.less";
4
3
  declare type ScheduleDetailListPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { ScheduleItem } from '../../type';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ResourcesModule: ({ product }: {
3
2
  product: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface ProductListProps {
4
3
  loading: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ResourcesListProps = {
4
3
  list: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from '../../type';
3
2
  import './index.less';
4
3
  declare type AllSchedulesPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DrawerProps } from "antd";
3
2
  import { ScheduleItem } from "../../type";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SchedulesConnect: () => JSX.Element;
3
2
  export default SchedulesConnect;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { shoppingCartProps } from './type';
3
2
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
4
3
  export default shoppingCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LogData {
3
2
  key: string;
4
3
  value: any;
package/lib/index.d.ts CHANGED
@@ -59,5 +59,7 @@ export { default as WalletEditor } from './plus/walletEditor';
59
59
  export { default as WalletPassGallery } from './plus/walletPassGallery';
60
60
  export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
61
61
  export { default as SettingsRegistry } from './components/systemSettings/registry';
62
+ export { default as KioskSkuDetail } from './components/kioskSkuDetail';
63
+ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
62
64
  export { default as Selector } from './pro/Selector';
63
65
  export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
package/lib/index.js CHANGED
@@ -64,6 +64,7 @@ __export(src_exports, {
64
64
  EventScheduleCalendar: () => import_scheduleCalendar.default,
65
65
  EventSelectHolder: () => import_selectHolder.default,
66
66
  EventTimeResourceSelector: () => import_timeResourceSelector.default,
67
+ KioskSkuDetail: () => import_kioskSkuDetail.default,
67
68
  Login: () => import_login.default,
68
69
  Login2: () => import_Login2.Login2,
69
70
  OAuthConfig: () => import_admin.OAuthConfig,
@@ -73,6 +74,7 @@ __export(src_exports, {
73
74
  PinModal: () => import_pinModal.default,
74
75
  PinVerifyModal: () => import_pinVerifyModal.default,
75
76
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
77
+ ProNumberSelector: () => import_pisellNumberSelector.default,
76
78
  ProductExtension: () => import_productExtension.default,
77
79
  Register2: () => import_Login2.Register2,
78
80
  RuleSetting: () => import_ruleSetting.default,
@@ -164,6 +166,8 @@ var import_walletEditor = __toESM(require("./plus/walletEditor"));
164
166
  var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
165
167
  var import_passDetail = __toESM(require("./plus/walletPassGallery/components/passDetail"));
166
168
  var import_registry = __toESM(require("./components/systemSettings/registry"));
169
+ var import_kioskSkuDetail = __toESM(require("./components/kioskSkuDetail"));
170
+ var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"));
167
171
  var import_Selector = __toESM(require("./pro/Selector"));
168
172
  var import_skuOptionsSelection = __toESM(require("./plus/skuOptionsSelection"));
169
173
  import_dayjs.default.extend(import_weekday.default);
@@ -205,6 +209,7 @@ import_dayjs.default.extend(import_localeData.default);
205
209
  EventScheduleCalendar,
206
210
  EventSelectHolder,
207
211
  EventTimeResourceSelector,
212
+ KioskSkuDetail,
208
213
  Login,
209
214
  Login2,
210
215
  OAuthConfig,
@@ -214,6 +219,7 @@ import_dayjs.default.extend(import_localeData.default);
214
219
  PinModal,
215
220
  PinVerifyModal,
216
221
  PisellSelectCustomerModal,
222
+ ProNumberSelector,
217
223
  ProductExtension,
218
224
  Register2,
219
225
  RuleSetting,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { IClientNameProps } from './type';
4
3
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SCOProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRStepStatus } from '../types';
3
2
  import '../index.less';
4
3
  declare const VerifyError: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VerifyingEmailLink: (props: {
4
3
  onVerifyLink: () => Promise<void>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VertifyEmail: (props: {
4
3
  email: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RenderItemProps } from '../../../../pro/Selector/types';
3
2
  declare const NormalCard: (props: RenderItemProps & {
4
3
  parentDataSource: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OptionItemCard: (props: any) => JSX.Element;
4
3
  export default OptionItemCard;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
- /// <reference types="react" />
5
4
  import { RenderItemProps } from '../../../../pro/Selector/types';
6
5
  import './index.less';
7
6
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const TitleExtra: (props: any) => JSX.Element;
4
3
  export default TitleExtra;
@@ -35,10 +35,19 @@ module.exports = __toCommonJS(VariantCard_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_utils = require("@pisell/utils");
37
37
  var import_Selector = __toESM(require("../../../../pro/Selector"));
38
+ var import_useStore = __toESM(require("../../hooks/useStore"));
38
39
  var import_index = require("./index.less");
39
40
  var VariantCard = (props) => {
40
41
  var _a, _b, _c;
41
42
  const { dataSource, actions } = props || {};
43
+ const symbol = (0, import_useStore.default)((s) => s.symbol);
44
+ const skuCardConfig = (0, import_useStore.default)((s) => s.skuCardConfig);
45
+ const isVariantPriceVisible = (skuCardConfig == null ? void 0 : skuCardConfig.variantPriceVisible) === true;
46
+ const priceConfig = skuCardConfig == null ? void 0 : skuCardConfig.price;
47
+ const priceText = formatPriceText({
48
+ symbol,
49
+ price: dataSource == null ? void 0 : dataSource.price
50
+ });
42
51
  const handleClick = (e) => {
43
52
  e.stopPropagation();
44
53
  if (dataSource == null ? void 0 : dataSource.disabled) return;
@@ -57,10 +66,30 @@ var VariantCard = (props) => {
57
66
  className: "pisell-sku-options-selection-variant-card",
58
67
  onClick: handleClick
59
68
  },
60
- ((_a = props.dataSource) == null ? void 0 : _a.title) || "",
61
- ((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
69
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-sku-options-selection-variant-card__title" }, ((_a = props.dataSource) == null ? void 0 : _a.title) || "", ((_c = (_b = props.dataSource) == null ? void 0 : _b._extra) == null ? void 0 : _c.hasStock) === false ? ` (${import_utils.locales.getText(
62
70
  "pisell2.skuOptionsSelection.variantItemCard.soldOut"
63
- )})` : null
71
+ )})` : null),
72
+ isVariantPriceVisible && (priceConfig == null ? void 0 : priceConfig.visible) !== false && !!priceText ? /* @__PURE__ */ import_react.default.createElement(
73
+ "div",
74
+ {
75
+ className: "pisell-sku-options-selection-variant-card__price",
76
+ style: {
77
+ fontSize: priceConfig == null ? void 0 : priceConfig.fontSize,
78
+ fontWeight: priceConfig == null ? void 0 : priceConfig.fontWeight,
79
+ color: priceConfig == null ? void 0 : priceConfig.color
80
+ }
81
+ },
82
+ import_utils.locales.getText("pisell2.skuOptionsSelection.variantItemCard.price"),
83
+ ":",
84
+ priceText
85
+ ) : null
64
86
  ));
65
87
  };
88
+ function formatPriceText(params) {
89
+ const symbol = params.symbol || "$";
90
+ const price = Number(params.price);
91
+ if (!params.price && params.price !== 0) return "";
92
+ if (Number.isNaN(price)) return "";
93
+ return `${symbol}${price.toFixed(2)}`;
94
+ }
66
95
  var VariantCard_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
  };
@@ -29,6 +29,7 @@ var locales_default = {
29
29
  "pisell2.skuOptionsSelection.titleExtra.totalPrice": "Subtotal: {{price}}",
30
30
  "pisell2.skuOptionsSelection.optionItemCard.editSelections": "Edit selections",
31
31
  "pisell2.skuOptionsSelection.variantItemCard.soldOut": "Out of stock",
32
+ "pisell2.skuOptionsSelection.variantItemCard.price": "Price",
32
33
  "pisell2.skuOptionsSelection.optionItemCard.typeText": "Type",
33
34
  "pisell2.skuOptionsSelection.optionItemCard.overSelected": "Over selected"
34
35
  },
@@ -38,6 +39,7 @@ var locales_default = {
38
39
  "pisell2.skuOptionsSelection.titleExtra.totalPrice": "小计:{{price}}",
39
40
  "pisell2.skuOptionsSelection.optionItemCard.editSelections": "编辑选择",
40
41
  "pisell2.skuOptionsSelection.variantItemCard.soldOut": "库存不足",
42
+ "pisell2.skuOptionsSelection.variantItemCard.price": "价格",
41
43
  "pisell2.skuOptionsSelection.optionItemCard.typeText": "类型",
42
44
  "pisell2.skuOptionsSelection.optionItemCard.overSelected": "已达上限"
43
45
  },
@@ -47,6 +49,7 @@ var locales_default = {
47
49
  "pisell2.skuOptionsSelection.titleExtra.totalPrice": "小計:{{price}}",
48
50
  "pisell2.skuOptionsSelection.optionItemCard.editSelections": "編輯選擇",
49
51
  "pisell2.skuOptionsSelection.variantItemCard.soldOut": "庫存不足",
52
+ "pisell2.skuOptionsSelection.variantItemCard.price": "價格",
50
53
  "pisell2.skuOptionsSelection.optionItemCard.typeText": "類型",
51
54
  "pisell2.skuOptionsSelection.optionItemCard.overSelected": "已達上限"
52
55
  }
@@ -60,7 +60,31 @@ var actions = {
60
60
  },
61
61
  /** 更新 SKU Card 配置 */
62
62
  updateSkuCardConfig: (skuCardConfig) => {
63
- import_store.default.setState({ skuCardConfig });
63
+ import_store.default.setState((prev) => {
64
+ var _a, _b, _c, _d;
65
+ return {
66
+ skuCardConfig: {
67
+ ...prev.skuCardConfig || {},
68
+ ...skuCardConfig || {},
69
+ title: {
70
+ ...((_a = prev.skuCardConfig) == null ? void 0 : _a.title) || {},
71
+ ...(skuCardConfig == null ? void 0 : skuCardConfig.title) || {}
72
+ },
73
+ subTitle: {
74
+ ...((_b = prev.skuCardConfig) == null ? void 0 : _b.subTitle) || {},
75
+ ...(skuCardConfig == null ? void 0 : skuCardConfig.subTitle) || {}
76
+ },
77
+ price: {
78
+ ...((_c = prev.skuCardConfig) == null ? void 0 : _c.price) || {},
79
+ ...(skuCardConfig == null ? void 0 : skuCardConfig.price) || {}
80
+ },
81
+ image: {
82
+ ...((_d = prev.skuCardConfig) == null ? void 0 : _d.image) || {},
83
+ ...(skuCardConfig == null ? void 0 : skuCardConfig.image) || {}
84
+ }
85
+ }
86
+ };
87
+ });
64
88
  },
65
89
  /** 更新自定义配置 */
66
90
  updateCustomConfig: (customConfig) => {
@@ -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状态类型
@@ -36,7 +36,8 @@ var defaultSkuCardConfig = {
36
36
  },
37
37
  image: {
38
38
  visible: true
39
- }
39
+ },
40
+ variantPriceVisible: false
40
41
  };
41
42
  // Annotate the CommonJS export names for ESM import in node:
42
43
  0 && (module.exports = {
@@ -33,22 +33,31 @@ __export(transformVariantGroup_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(transformVariantGroup_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_store = __toESM(require("../store/store"));
36
37
  var import_VariantCard = __toESM(require("../components/VariantCard"));
37
38
  var import_checkSkuStatus = require("./checkSkuStatus");
38
39
  var transformVariantGroup = (variantGroup) => {
40
+ var _a;
39
41
  if (!Array.isArray(variantGroup)) return [];
42
+ const variantProducts = ((_a = import_store.default.getState().dataSource) == null ? void 0 : _a.variant) || [];
40
43
  const formattedGroup = variantGroup.map((item) => {
41
- var _a;
42
- const selectorOptionsDataSource = (_a = item == null ? void 0 : item.variant_item) == null ? void 0 : _a.map(
44
+ var _a2;
45
+ const selectorOptionsDataSource = (_a2 = item == null ? void 0 : item.variant_item) == null ? void 0 : _a2.map(
43
46
  (variantItem) => {
44
47
  const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockCanSell)(variantItem);
45
48
  const disabled = (0, import_checkSkuStatus.checkSkuDisabled)(variantItem, canSell);
49
+ const price = getVariantItemFixedPrice({
50
+ selectedVariantIds: [`${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`],
51
+ variantProducts
52
+ });
46
53
  return {
47
54
  _original: { ...variantItem || {} },
48
55
  id: variantItem == null ? void 0 : variantItem.id,
49
56
  title: variantItem == null ? void 0 : variantItem.name,
50
57
  value: variantItem == null ? void 0 : variantItem.id,
51
58
  disabled,
59
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
60
+ price,
52
61
  ruleConfig: {
53
62
  autoValidate: true
54
63
  },
@@ -87,13 +96,19 @@ var transformVariantGroup = (variantGroup) => {
87
96
  }
88
97
  };
89
98
  selectorDataSource.renderItem = (itemProps) => {
90
- var _a2, _b;
99
+ var _a3, _b, _c;
91
100
  const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockByValue)(
92
- (_a2 = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _a2._original
101
+ (_a3 = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _a3._original
93
102
  );
103
+ const price = getVariantItemFixedPriceByValue({
104
+ variantItem: (_b = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _b._original,
105
+ variantProducts
106
+ });
94
107
  const _dataSource = {
95
108
  ...(itemProps == null ? void 0 : itemProps.dataSource) || {},
96
- disabled: (0, import_checkSkuStatus.checkSkuDisabled)((_b = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _b._original, canSell),
109
+ disabled: (0, import_checkSkuStatus.checkSkuDisabled)((_c = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _c._original, canSell),
110
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
111
+ price,
97
112
  _extra: {
98
113
  canSell,
99
114
  hasStock
@@ -112,6 +127,37 @@ var transformVariantGroup = (variantGroup) => {
112
127
  });
113
128
  return formattedGroup;
114
129
  };
130
+ function getVariantItemFixedPrice(params) {
131
+ const selectedVariantIds = params.selectedVariantIds;
132
+ const variantProducts = params.variantProducts;
133
+ const matchedVariants = Array.isArray(variantProducts) ? variantProducts.filter((item) => {
134
+ var _a;
135
+ const ids = ((_a = item == null ? void 0 : item.sku_ids) == null ? void 0 : _a.split("_")) || [];
136
+ return selectedVariantIds.every((selectedId) => ids.includes(selectedId));
137
+ }) : [];
138
+ const prices = matchedVariants.map((item) => Number((item == null ? void 0 : item.price) ?? (item == null ? void 0 : item.base_price) ?? 0)).filter((n) => !Number.isNaN(n));
139
+ if (prices.length === 0) return null;
140
+ const uniquePrices = Array.from(new Set(prices));
141
+ if (uniquePrices.length !== 1) return null;
142
+ return uniquePrices[0];
143
+ }
144
+ function getVariantItemFixedPriceByValue(params) {
145
+ var _a;
146
+ const variantItem = params.variantItem;
147
+ const variantProducts = params.variantProducts;
148
+ const dataSource = import_store.default.getState().dataSource;
149
+ const selectorValue = import_store.default.getState().selectorValue;
150
+ const currentSkuId = `${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`;
151
+ const selectedVariantIds = [currentSkuId];
152
+ (_a = dataSource == null ? void 0 : dataSource.variant_group) == null ? void 0 : _a.forEach((group) => {
153
+ var _a2;
154
+ const selectedData = (_a2 = selectorValue == null ? void 0 : selectorValue[group.id]) == null ? void 0 : _a2.data;
155
+ if (selectedData && group.id !== (variantItem == null ? void 0 : variantItem.variant_group_id)) {
156
+ selectedVariantIds.push(`${selectedData == null ? void 0 : selectedData.variant_group_id}:${selectedData == null ? void 0 : selectedData.id}`);
157
+ }
158
+ });
159
+ return getVariantItemFixedPrice({ selectedVariantIds, variantProducts });
160
+ }
115
161
  // Annotate the CommonJS export names for ESM import in node:
116
162
  0 && (module.exports = {
117
163
  transformVariantGroup
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: string[] | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TimelineSectionProps {
4
3
  code: string;