@pisell/private-materials 6.3.70 → 6.3.72

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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/Sales/Cart/index.js +20 -3
  12. package/es/components/Sales/Cart/utils.d.ts +5 -0
  13. package/es/components/Sales/Cart/utils.js +16 -0
  14. package/es/components/Sales/Summary/utils.js +5 -4
  15. package/es/components/booking/addons/model.d.ts +1 -10
  16. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  17. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  20. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  21. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  22. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  23. package/es/components/booking/components/voucher/index.js +8 -7
  24. package/es/components/booking/forms/model.d.ts +1 -10
  25. package/es/components/booking/forms/single/index.d.ts +0 -1
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  28. package/es/components/booking/info/date/index.d.ts +0 -1
  29. package/es/components/booking/info/model.d.ts +1 -10
  30. package/es/components/booking/info/notes/index.d.ts +0 -1
  31. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  32. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  33. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  34. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  35. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  36. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  37. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  38. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  39. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  40. package/es/components/booking/model.d.ts +1 -9
  41. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  42. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  43. package/es/components/booking/notes/model.d.ts +1 -10
  44. package/es/components/booking/payments/model.d.ts +1 -10
  45. package/es/components/booking/utils.d.ts +2 -2
  46. package/es/components/eftpos/index.d.ts +0 -1
  47. package/es/components/eftpos/pos.d.ts +0 -1
  48. package/es/components/eftposPay/amount.d.ts +1 -2
  49. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  50. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  51. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  52. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  53. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  54. package/es/components/eftposPay/device.d.ts +1 -1
  55. package/es/components/eftposPay/hooks.d.ts +2 -2
  56. package/es/components/eftposPay/pay.d.ts +0 -1
  57. package/es/components/eftposPay/payo/config.d.ts +0 -1
  58. package/es/components/eftposPay/store/index.d.ts +4 -4
  59. package/es/components/eftposPay/tip.d.ts +0 -1
  60. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  61. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  62. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  64. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  67. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  68. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  69. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  70. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  71. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  72. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  73. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  74. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  75. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/bookingDetailModal/components/Resource.d.ts +0 -1
  79. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  80. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  81. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  82. package/es/components/kioskSkuDetail/index.js +531 -0
  83. package/es/components/kioskSkuDetail/index.less +196 -0
  84. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  85. package/es/components/kioskSkuDetail/locales.js +26 -0
  86. package/es/components/login/index.d.ts +0 -1
  87. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  89. package/es/components/pay/toC/model.d.ts +1 -9
  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/Add/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/model.d.ts +1 -9
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  108. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  110. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  111. package/es/components/schedules/products/index.d.ts +0 -1
  112. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  113. package/es/components/schedules/products/list/index.d.ts +0 -1
  114. package/es/components/schedules/resources/index.d.ts +0 -1
  115. package/es/components/schedules/resources/list/index.d.ts +0 -1
  116. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  117. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  118. package/es/components/schedules/schedules/index.d.ts +0 -1
  119. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  120. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  121. package/es/components/shoppingCart/index.d.ts +0 -1
  122. package/es/components/walletList/index.js +7 -2
  123. package/es/hooks/usePaymentLogger.d.ts +0 -1
  124. package/es/index.d.ts +3 -1
  125. package/es/index.js +3 -1
  126. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  127. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  128. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  129. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  130. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  131. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  132. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  133. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  134. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  135. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  136. package/es/plus/skuOptionsSelection/locales.js +3 -0
  137. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  138. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  139. package/es/plus/skuOptionsSelection/types.js +2 -1
  140. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  141. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  142. package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
  143. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  144. package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
  145. package/es/plus/walletPassGallery/index.js +2 -2
  146. package/es/plus/walletPassGallery/serve.d.ts +8 -0
  147. package/es/plus/walletPassGallery/serve.js +78 -52
  148. package/es/pro/Selector/Selector.d.ts +1 -1
  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/Sales/Cart/index.js +25 -7
  162. package/lib/components/Sales/Cart/utils.d.ts +5 -0
  163. package/lib/components/Sales/Cart/utils.js +13 -1
  164. package/lib/components/Sales/Summary/utils.js +2 -4
  165. package/lib/components/booking/addons/model.d.ts +1 -10
  166. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  167. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  168. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  169. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  170. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  171. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  172. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  173. package/lib/components/booking/components/voucher/index.js +0 -1
  174. package/lib/components/booking/forms/model.d.ts +1 -10
  175. package/lib/components/booking/forms/single/index.d.ts +0 -1
  176. package/lib/components/booking/forms/table/index.d.ts +0 -1
  177. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  178. package/lib/components/booking/info/date/index.d.ts +0 -1
  179. package/lib/components/booking/info/model.d.ts +1 -10
  180. package/lib/components/booking/info/notes/index.d.ts +0 -1
  181. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  182. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  183. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  184. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  185. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  186. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  187. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  188. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  189. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  190. package/lib/components/booking/model.d.ts +1 -9
  191. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  192. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  193. package/lib/components/booking/notes/model.d.ts +1 -10
  194. package/lib/components/booking/payments/model.d.ts +1 -10
  195. package/lib/components/booking/utils.d.ts +2 -2
  196. package/lib/components/eftpos/index.d.ts +0 -1
  197. package/lib/components/eftpos/pos.d.ts +0 -1
  198. package/lib/components/eftposPay/amount.d.ts +1 -2
  199. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  200. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  201. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  202. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  203. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  204. package/lib/components/eftposPay/device.d.ts +1 -1
  205. package/lib/components/eftposPay/hooks.d.ts +2 -2
  206. package/lib/components/eftposPay/pay.d.ts +0 -1
  207. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  208. package/lib/components/eftposPay/store/index.d.ts +4 -4
  209. package/lib/components/eftposPay/tip.d.ts +0 -1
  210. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  211. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  212. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  213. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  214. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  215. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  216. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  217. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  218. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  219. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  220. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  221. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  222. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  223. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  224. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  225. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/bookingDetailModal/components/Resource.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  230. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  231. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  232. package/lib/components/kioskSkuDetail/index.js +393 -0
  233. package/lib/components/kioskSkuDetail/index.less +196 -0
  234. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  235. package/lib/components/kioskSkuDetail/locales.js +50 -0
  236. package/lib/components/login/index.d.ts +0 -1
  237. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  239. package/lib/components/pay/toC/model.d.ts +1 -9
  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/Add/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/model.d.ts +1 -9
  256. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  257. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  258. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  259. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  260. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  261. package/lib/components/schedules/products/index.d.ts +0 -1
  262. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  263. package/lib/components/schedules/products/list/index.d.ts +0 -1
  264. package/lib/components/schedules/resources/index.d.ts +0 -1
  265. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  266. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  267. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  268. package/lib/components/schedules/schedules/index.d.ts +0 -1
  269. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  270. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  271. package/lib/components/shoppingCart/index.d.ts +0 -1
  272. package/lib/components/walletList/index.js +5 -1
  273. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  274. package/lib/index.d.ts +3 -1
  275. package/lib/index.js +7 -1
  276. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  277. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  278. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  279. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  280. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  281. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  282. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  283. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  284. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  285. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  286. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  287. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  288. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  289. package/lib/plus/skuOptionsSelection/types.js +2 -1
  290. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  291. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  292. package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
  293. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  294. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
  295. package/lib/plus/walletPassGallery/index.js +2 -2
  296. package/lib/plus/walletPassGallery/serve.d.ts +8 -0
  297. package/lib/plus/walletPassGallery/serve.js +23 -10
  298. package/lib/pro/Selector/Selector.d.ts +1 -1
  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,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
  /**
@@ -6,10 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
7
  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); }
8
8
  import React from 'react';
9
+ import store from "../store/store";
9
10
  import VariantCard from "../components/VariantCard";
10
11
  import { checkVariantStockCanSell, checkSkuDisabled, checkVariantStockByValue } from "./checkSkuStatus";
11
12
  export var transformVariantGroup = function transformVariantGroup(variantGroup) {
13
+ var _store$getState$dataS;
12
14
  if (!Array.isArray(variantGroup)) return [];
15
+ var variantProducts = ((_store$getState$dataS = store.getState().dataSource) === null || _store$getState$dataS === void 0 ? void 0 : _store$getState$dataS.variant) || [];
13
16
  var formattedGroup = variantGroup.map(function (item) {
14
17
  var _item$variant_item;
15
18
  // Selector中选项数据源
@@ -18,12 +21,18 @@ export var transformVariantGroup = function transformVariantGroup(variantGroup)
18
21
  canSell = _checkVariantStockCan.canSell,
19
22
  hasStock = _checkVariantStockCan.hasStock;
20
23
  var disabled = checkSkuDisabled(variantItem, canSell);
24
+ var price = getVariantItemFixedPrice({
25
+ selectedVariantIds: ["".concat(variantItem === null || variantItem === void 0 ? void 0 : variantItem.variant_group_id, ":").concat(variantItem === null || variantItem === void 0 ? void 0 : variantItem.id)],
26
+ variantProducts: variantProducts
27
+ });
21
28
  return {
22
29
  _original: _objectSpread({}, variantItem || {}),
23
30
  id: variantItem === null || variantItem === void 0 ? void 0 : variantItem.id,
24
31
  title: variantItem === null || variantItem === void 0 ? void 0 : variantItem.name,
25
32
  value: variantItem === null || variantItem === void 0 ? void 0 : variantItem.id,
26
33
  disabled: disabled,
34
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
35
+ price: price,
27
36
  ruleConfig: {
28
37
  autoValidate: true
29
38
  },
@@ -68,12 +77,18 @@ export var transformVariantGroup = function transformVariantGroup(variantGroup)
68
77
 
69
78
  // 渲染选项卡片
70
79
  selectorDataSource.renderItem = function (itemProps) {
71
- var _itemProps$dataSource, _itemProps$dataSource2;
80
+ var _itemProps$dataSource, _itemProps$dataSource2, _itemProps$dataSource3;
72
81
  var _checkVariantStockByV = checkVariantStockByValue(itemProps === null || itemProps === void 0 || (_itemProps$dataSource = itemProps.dataSource) === null || _itemProps$dataSource === void 0 ? void 0 : _itemProps$dataSource._original),
73
82
  canSell = _checkVariantStockByV.canSell,
74
83
  hasStock = _checkVariantStockByV.hasStock;
84
+ var price = getVariantItemFixedPriceByValue({
85
+ variantItem: itemProps === null || itemProps === void 0 || (_itemProps$dataSource2 = itemProps.dataSource) === null || _itemProps$dataSource2 === void 0 ? void 0 : _itemProps$dataSource2._original,
86
+ variantProducts: variantProducts
87
+ });
75
88
  var _dataSource = _objectSpread(_objectSpread({}, (itemProps === null || itemProps === void 0 ? void 0 : itemProps.dataSource) || {}), {}, {
76
- disabled: checkSkuDisabled(itemProps === null || itemProps === void 0 || (_itemProps$dataSource2 = itemProps.dataSource) === null || _itemProps$dataSource2 === void 0 ? void 0 : _itemProps$dataSource2._original, canSell),
89
+ disabled: checkSkuDisabled(itemProps === null || itemProps === void 0 || (_itemProps$dataSource3 = itemProps.dataSource) === null || _itemProps$dataSource3 === void 0 ? void 0 : _itemProps$dataSource3._original, canSell),
90
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
91
+ price: price,
77
92
  _extra: {
78
93
  canSell: canSell,
79
94
  hasStock: hasStock
@@ -87,4 +102,56 @@ export var transformVariantGroup = function transformVariantGroup(variantGroup)
87
102
  return selectorDataSource;
88
103
  });
89
104
  return formattedGroup;
90
- };
105
+ };
106
+
107
+ /**
108
+ * @description 在给定匹配范围内计算“固定价格”
109
+ * - 若匹配到多个不同价格,则认为不是固定价格,返回 null(不展示)
110
+ */
111
+ function getVariantItemFixedPrice(params) {
112
+ var selectedVariantIds = params.selectedVariantIds;
113
+ var variantProducts = params.variantProducts;
114
+ var matchedVariants = Array.isArray(variantProducts) ? variantProducts.filter(function (item) {
115
+ var _item$sku_ids;
116
+ var ids = (item === null || item === void 0 || (_item$sku_ids = item.sku_ids) === null || _item$sku_ids === void 0 ? void 0 : _item$sku_ids.split('_')) || [];
117
+ return selectedVariantIds.every(function (selectedId) {
118
+ return ids.includes(selectedId);
119
+ });
120
+ }) : [];
121
+ var prices = matchedVariants.map(function (item) {
122
+ var _ref, _item$price;
123
+ return Number((_ref = (_item$price = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price !== void 0 ? _item$price : item === null || item === void 0 ? void 0 : item.base_price) !== null && _ref !== void 0 ? _ref : 0);
124
+ }).filter(function (n) {
125
+ return !Number.isNaN(n);
126
+ });
127
+ if (prices.length === 0) return null;
128
+ var uniquePrices = Array.from(new Set(prices));
129
+ if (uniquePrices.length !== 1) return null;
130
+ return uniquePrices[0];
131
+ }
132
+
133
+ /**
134
+ * @description 基于当前 selectorValue(已选项)计算某个 variantItem 的固定价格
135
+ * - 用当前选项 + 其它规格组已选项筛选组合 SKU
136
+ * - 若筛出来是多价,则不展示
137
+ */
138
+ function getVariantItemFixedPriceByValue(params) {
139
+ var _dataSource$variant_g;
140
+ var variantItem = params.variantItem;
141
+ var variantProducts = params.variantProducts;
142
+ var dataSource = store.getState().dataSource;
143
+ var selectorValue = store.getState().selectorValue;
144
+ var currentSkuId = "".concat(variantItem === null || variantItem === void 0 ? void 0 : variantItem.variant_group_id, ":").concat(variantItem === null || variantItem === void 0 ? void 0 : variantItem.id);
145
+ var selectedVariantIds = [currentSkuId];
146
+ dataSource === null || dataSource === void 0 || (_dataSource$variant_g = dataSource.variant_group) === null || _dataSource$variant_g === void 0 || _dataSource$variant_g.forEach(function (group) {
147
+ var _selectorValue$group$;
148
+ var selectedData = selectorValue === null || selectorValue === void 0 || (_selectorValue$group$ = selectorValue[group.id]) === null || _selectorValue$group$ === void 0 ? void 0 : _selectorValue$group$.data;
149
+ if (selectedData && group.id !== (variantItem === null || variantItem === void 0 ? void 0 : variantItem.variant_group_id)) {
150
+ selectedVariantIds.push("".concat(selectedData === null || selectedData === void 0 ? void 0 : selectedData.variant_group_id, ":").concat(selectedData === null || selectedData === void 0 ? void 0 : selectedData.id));
151
+ }
152
+ });
153
+ return getVariantItemFixedPrice({
154
+ selectedVariantIds: selectedVariantIds,
155
+ variantProducts: variantProducts
156
+ });
157
+ }
@@ -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;
@@ -56,7 +56,7 @@ var PassDetail = function PassDetail(props) {
56
56
  },
57
57
  store = _ref.store;
58
58
  var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {
59
- apiPrefix: "/h5"
59
+ apiPrefix: '/h5'
60
60
  },
61
61
  apiPrefix = _ref2.apiPrefix;
62
62
  var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 || (_store$getState = _store$getState.shop) === null || _store$getState === void 0 ? void 0 : _store$getState.timezone) || 'Asia/Shanghai';
@@ -142,9 +142,9 @@ var PassDetail = function PassDetail(props) {
142
142
  var expireText = expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate');
143
143
  if (scheduleList.length > 0) {
144
144
  // 换行展示
145
- var validityTexts = "";
146
- var excludedText = "";
147
- var includedText = "";
145
+ var validityTexts = '';
146
+ var excludedText = '';
147
+ var includedText = '';
148
148
  detail.forEach(function (item) {
149
149
  if (item.validityTexts.length > 0) {
150
150
  validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
@@ -246,7 +246,8 @@ var PassDetail = function PassDetail(props) {
246
246
  return /*#__PURE__*/React.createElement(TimelineSection, {
247
247
  code: code,
248
248
  tag: tag,
249
- timezone: timezone
249
+ timezone: timezone,
250
+ apiPrefix: apiPrefix
250
251
  });
251
252
  };
252
253
  if (!props.dataSource) return null;
@@ -3,6 +3,7 @@ interface TimelineSectionProps {
3
3
  code: string;
4
4
  tag: string;
5
5
  timezone: string;
6
+ apiPrefix?: '/shop' | '/h5';
6
7
  }
7
8
  declare const TimelineSection: (props: TimelineSectionProps) => JSX.Element;
8
9
  export default TimelineSection;
@@ -11,7 +11,7 @@ import timezonePlugin from 'dayjs/plugin/timezone';
11
11
  import utcPlugin from 'dayjs/plugin/utc';
12
12
  import { locales } from '@pisell/utils';
13
13
  import { Timeline, Skeleton, PisellEmpty, usePisellConfig, PisellModal, PisellStatisticList, Button } from '@pisell/materials';
14
- import { getAssetList } from "../../serve";
14
+ import { getAssetList, getActiveLogs } from "../../serve";
15
15
  import "./index.less";
16
16
  dayjs.extend(timezonePlugin);
17
17
  dayjs.extend(utcPlugin);
@@ -19,7 +19,8 @@ var stateTimeUnix = 1723255863; // 2024.8.10 时间戳
19
19
  var TimelineSection = function TimelineSection(props) {
20
20
  var code = props.code,
21
21
  tag = props.tag,
22
- timezone = props.timezone;
22
+ timezone = props.timezone,
23
+ apiPrefix = props.apiPrefix;
23
24
  var _usePisellConfig = usePisellConfig(),
24
25
  _usePisellConfig$symb = _usePisellConfig.symbol,
25
26
  symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
@@ -87,6 +88,11 @@ var TimelineSection = function TimelineSection(props) {
87
88
  }, amount && currency_symbol ? formatCurrencyAmount(amount, action === 'order_expend') : ''));
88
89
  }, [assetActionEnum, formatCurrencyAmount]);
89
90
  var assetListReq = useRequest(function () {
91
+ if (apiPrefix === '/shop') {
92
+ return getActiveLogs({
93
+ filter_card_id: code
94
+ });
95
+ }
90
96
  return getAssetList({
91
97
  num: '99',
92
98
  skip: '1',
@@ -165,7 +171,7 @@ var TimelineSection = function TimelineSection(props) {
165
171
  label: locales.getText('wallet-pass-gallery.viewOrder'),
166
172
  value: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_code ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_code) : timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.transaction_id ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.transaction_id) : '',
167
173
  isLink: !!(timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id),
168
- link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : undefined
174
+ link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? apiPrefix === '/shop' ? "/admin/order/orders/detail?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : undefined
169
175
  }],
170
176
  labelColor: "#101828",
171
177
  valueColor: "#101828",
@@ -106,7 +106,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
106
106
  tags: TAGS,
107
107
  filter_wallet_id: walletId || undefined,
108
108
  filter_holder_id: holderId || undefined,
109
- with: ['holder.detail']
109
+ with: ['customScheduleSnapshot', 'holder.detail']
110
110
  });
111
111
  case 5:
112
112
  res = _context.sent;
@@ -149,7 +149,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
149
149
  tags: TAGS,
150
150
  filter_wallet_id: walletId || undefined,
151
151
  filter_holder_id: holderId || undefined,
152
- with: ['holder.detail']
152
+ with: ['customScheduleSnapshot', 'holder.detail']
153
153
  });
154
154
  case 5:
155
155
  res = _context2.sent;
@@ -166,6 +166,14 @@ export interface IAssetItem {
166
166
  export declare const getAssetList: (params: IAssetListProps) => Promise<{
167
167
  list: IAssetItem[];
168
168
  }>;
169
+ /**
170
+ * 资产明细(admin)
171
+ */
172
+ export declare const getActiveLogs: (params: {
173
+ filter_card_id: string;
174
+ }) => Promise<{
175
+ list: IAssetItem[];
176
+ }>;
169
177
  /**
170
178
  * 获取资产详情
171
179
  * @param params 接口请求参数
@@ -203,26 +203,16 @@ export var getAssetList = /*#__PURE__*/function () {
203
203
  }();
204
204
 
205
205
  /**
206
- * 获取资产详情
207
- * @param params 接口请求参数
208
- * @returns 资产详情
206
+ * 资产明细(admin)
209
207
  */
210
- export var getDetailApi = /*#__PURE__*/function () {
208
+ export var getActiveLogs = /*#__PURE__*/function () {
211
209
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(params) {
212
210
  var _yield$request$getReq6, data;
213
211
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
214
212
  while (1) switch (_context6.prev = _context6.next) {
215
213
  case 0:
216
214
  _context6.next = 2;
217
- return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
218
- order_behavior_count: 1,
219
- // 订单行为次数
220
- order_behavior_count_customer: 1,
221
- // 客户订单行为次数
222
- order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
223
- }, {
224
- isOriginHost: true
225
- });
215
+ return request.getRequest().get("/shop/asset", params);
226
216
  case 2:
227
217
  _yield$request$getReq6 = _context6.sent;
228
218
  data = _yield$request$getReq6.data;
@@ -233,28 +223,32 @@ export var getDetailApi = /*#__PURE__*/function () {
233
223
  }
234
224
  }, _callee6);
235
225
  }));
236
- return function getDetailApi(_x6) {
226
+ return function getActiveLogs(_x6) {
237
227
  return _ref6.apply(this, arguments);
238
228
  };
239
229
  }();
240
230
 
241
231
  /**
242
- * 详情响应数据结构,供组件消费
243
- */
244
-
245
- /**
246
- * 下单接口
247
- * @param params - 订单参数
248
- * @returns 订单响应数据
232
+ * 获取资产详情
233
+ * @param params 接口请求参数
234
+ * @returns 资产详情
249
235
  */
250
- export var orderRechargeProduct = /*#__PURE__*/function () {
236
+ export var getDetailApi = /*#__PURE__*/function () {
251
237
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
252
238
  var _yield$request$getReq7, data;
253
239
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
254
240
  while (1) switch (_context7.prev = _context7.next) {
255
241
  case 0:
256
242
  _context7.next = 2;
257
- return request.getRequest().post("/h5/order/order", params);
243
+ return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
244
+ order_behavior_count: 1,
245
+ // 订单行为次数
246
+ order_behavior_count_customer: 1,
247
+ // 客户订单行为次数
248
+ order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
249
+ }, {
250
+ isOriginHost: true
251
+ });
258
252
  case 2:
259
253
  _yield$request$getReq7 = _context7.sent;
260
254
  data = _yield$request$getReq7.data;
@@ -265,75 +259,79 @@ export var orderRechargeProduct = /*#__PURE__*/function () {
265
259
  }
266
260
  }, _callee7);
267
261
  }));
268
- return function orderRechargeProduct(_x7) {
262
+ return function getDetailApi(_x7) {
269
263
  return _ref7.apply(this, arguments);
270
264
  };
271
265
  }();
272
266
 
273
267
  /**
274
- * @desc: 获取钱包信息
275
- * @author: Arthur
276
- * @date: 2025-11-03 15:30
268
+ * 详情响应数据结构,供组件消费
277
269
  */
278
- export var getWalletDetail = /*#__PURE__*/function () {
279
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(id) {
270
+
271
+ /**
272
+ * 下单接口
273
+ * @param params - 订单参数
274
+ * @returns 订单响应数据
275
+ */
276
+ export var orderRechargeProduct = /*#__PURE__*/function () {
277
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
278
+ var _yield$request$getReq8, data;
280
279
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
281
280
  while (1) switch (_context8.prev = _context8.next) {
282
281
  case 0:
283
- return _context8.abrupt("return", request.getRequest().get("/h5/wallet/".concat(id), {}));
284
- case 1:
282
+ _context8.next = 2;
283
+ return request.getRequest().post("/h5/order/order", params);
284
+ case 2:
285
+ _yield$request$getReq8 = _context8.sent;
286
+ data = _yield$request$getReq8.data;
287
+ return _context8.abrupt("return", data);
288
+ case 5:
285
289
  case "end":
286
290
  return _context8.stop();
287
291
  }
288
292
  }, _callee8);
289
293
  }));
290
- return function getWalletDetail(_x8) {
294
+ return function orderRechargeProduct(_x8) {
291
295
  return _ref8.apply(this, arguments);
292
296
  };
293
297
  }();
294
298
 
295
299
  /**
296
- * 更新卡券持有人
297
- * @param id 卡券ID
298
- * @param params 更新参数
299
- * @returns 更新结果
300
+ * @desc: 获取钱包信息
301
+ * @author: Arthur
302
+ * @date: 2025-11-03 15:30
300
303
  */
301
- export var updateWalletPassHolder = /*#__PURE__*/function () {
302
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id, params) {
303
- var _yield$request$getReq8, data;
304
+ export var getWalletDetail = /*#__PURE__*/function () {
305
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id) {
304
306
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
305
307
  while (1) switch (_context9.prev = _context9.next) {
306
308
  case 0:
307
- _context9.next = 2;
308
- return request.getRequest().post("/h5/machinecode/".concat(id, "/bind-holder"), params);
309
- case 2:
310
- _yield$request$getReq8 = _context9.sent;
311
- data = _yield$request$getReq8.data;
312
- return _context9.abrupt("return", data);
313
- case 5:
309
+ return _context9.abrupt("return", request.getRequest().get("/h5/wallet/".concat(id), {}));
310
+ case 1:
314
311
  case "end":
315
312
  return _context9.stop();
316
313
  }
317
314
  }, _callee9);
318
315
  }));
319
- return function updateWalletPassHolder(_x9, _x10) {
316
+ return function getWalletDetail(_x9) {
320
317
  return _ref9.apply(this, arguments);
321
318
  };
322
319
  }();
323
320
 
324
321
  /**
325
- * 获取卡券详情
322
+ * 更新卡券持有人
326
323
  * @param id 卡券ID
327
- * @returns 卡券详情
324
+ * @param params 更新参数
325
+ * @returns 更新结果
328
326
  */
329
- export var getWalletPassDetail = /*#__PURE__*/function () {
327
+ export var updateWalletPassHolder = /*#__PURE__*/function () {
330
328
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(id, params) {
331
329
  var _yield$request$getReq9, data;
332
330
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
333
331
  while (1) switch (_context10.prev = _context10.next) {
334
332
  case 0:
335
333
  _context10.next = 2;
336
- return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(id), params);
334
+ return request.getRequest().post("/h5/machinecode/".concat(id, "/bind-holder"), params);
337
335
  case 2:
338
336
  _yield$request$getReq9 = _context10.sent;
339
337
  data = _yield$request$getReq9.data;
@@ -344,7 +342,35 @@ export var getWalletPassDetail = /*#__PURE__*/function () {
344
342
  }
345
343
  }, _callee10);
346
344
  }));
347
- return function getWalletPassDetail(_x11, _x12) {
345
+ return function updateWalletPassHolder(_x10, _x11) {
348
346
  return _ref10.apply(this, arguments);
349
347
  };
348
+ }();
349
+
350
+ /**
351
+ * 获取卡券详情
352
+ * @param id 卡券ID
353
+ * @returns 卡券详情
354
+ */
355
+ export var getWalletPassDetail = /*#__PURE__*/function () {
356
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(id, params) {
357
+ var _yield$request$getReq10, data;
358
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
359
+ while (1) switch (_context11.prev = _context11.next) {
360
+ case 0:
361
+ _context11.next = 2;
362
+ return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(id), params);
363
+ case 2:
364
+ _yield$request$getReq10 = _context11.sent;
365
+ data = _yield$request$getReq10.data;
366
+ return _context11.abrupt("return", data);
367
+ case 5:
368
+ case "end":
369
+ return _context11.stop();
370
+ }
371
+ }, _callee11);
372
+ }));
373
+ return function getWalletPassDetail(_x12, _x13) {
374
+ return _ref11.apply(this, arguments);
375
+ };
350
376
  }();
@@ -3,7 +3,7 @@ import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } f
3
3
  import './selector.less';
4
4
  export declare const SelectorContext: React.Context<{
5
5
  disabled?: boolean | undefined;
6
- mode?: "multiple" | "single" | undefined;
6
+ mode?: "single" | "multiple" | undefined;
7
7
  itemLayout?: ItemLayout | undefined;
8
8
  valueType?: "object" | "primitive" | undefined;
9
9
  variant?: SelectorVariant | undefined;