@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
@@ -0,0 +1,116 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Voucher/components/Voucher.tsx
30
+ var Voucher_exports = {};
31
+ __export(Voucher_exports, {
32
+ default: () => Voucher_default
33
+ });
34
+ module.exports = __toCommonJS(Voucher_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_ChevronDown = __toESM(require("@pisell/icon/es/ChevronDown"));
37
+ var import_UserCircle = __toESM(require("@pisell/icon/es/UserCircle"));
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_utils = require("@pisell/utils");
40
+ var import_materials = require("@pisell/materials");
41
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
42
+ var import_locales = __toESM(require("./locales"));
43
+ var import_index = require("./index.less");
44
+ var VoucherUI = ({
45
+ showDetail,
46
+ onToggleDetail,
47
+ isLogin,
48
+ onLoginClick,
49
+ availableData,
50
+ onDiscountChange,
51
+ mixedSort,
52
+ code,
53
+ onCodeChange,
54
+ onApplyCode,
55
+ codeDisabled = false
56
+ }) => {
57
+ var _a;
58
+ const context = (0, import_useEngineContext.default)();
59
+ const utils = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
60
+ (0, import_react.useEffect)(() => {
61
+ var _a2;
62
+ const locale = ((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("umi_locale")) || "en";
63
+ import_utils.locales.init(import_locales.default, locale);
64
+ }, [utils]);
65
+ const renderLoginCard = () => {
66
+ if (isLogin) return null;
67
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "login-card" }, /* @__PURE__ */ import_react.default.createElement(import_UserCircle.default, { style: { fontSize: 28 } }), /* @__PURE__ */ import_react.default.createElement("div", { className: "text-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText, { className: "login-btn", onClick: onLoginClick }, import_utils.locales.getText("pisell2.voucher.login")), /* @__PURE__ */ import_react.default.createElement("span", null, " ", import_utils.locales.getText("pisell2.voucher.login-tip"))));
68
+ };
69
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__event-booking-voucher-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "voucher-title" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "voucher-title-left" }, import_utils.locales.getText("pisell2.voucher.title")), /* @__PURE__ */ import_react.default.createElement("span", { className: "voucher-title-right", onClick: onToggleDetail }, import_utils.locales.getText("pisell2.voucher.details"), " ", /* @__PURE__ */ import_react.default.createElement(
70
+ import_ChevronDown.default,
71
+ {
72
+ className: (0, import_classnames.default)("voucher-right-icon", {
73
+ show: showDetail
74
+ })
75
+ }
76
+ ))), /* @__PURE__ */ import_react.default.createElement(
77
+ "div",
78
+ {
79
+ className: (0, import_classnames.default)("voucher-detail", {
80
+ show: showDetail
81
+ })
82
+ },
83
+ (availableData == null ? void 0 : availableData.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(
84
+ import_materials.PisellGoodPassCard,
85
+ {
86
+ style: { width: "100%" },
87
+ dataSource: availableData,
88
+ mixedSort,
89
+ onChange: onDiscountChange
90
+ }
91
+ ) : null,
92
+ renderLoginCard(),
93
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "voucher-code-input-wrapper" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "voucher-code-input" }, /* @__PURE__ */ import_react.default.createElement("div", { style: { whiteSpace: "nowrap" } }, import_utils.locales.getText("pisell2.voucher.code"), ":"), /* @__PURE__ */ import_react.default.createElement(
94
+ import_materials.PisellInput,
95
+ {
96
+ value: code,
97
+ allowClear: true,
98
+ onChange: (e) => {
99
+ var _a2;
100
+ onCodeChange((_a2 = e.target) == null ? void 0 : _a2.value);
101
+ },
102
+ size: "small",
103
+ placeholder: import_utils.locales.getText("pisell2.voucher.enter-code")
104
+ }
105
+ )), /* @__PURE__ */ import_react.default.createElement(
106
+ import_materials.Button,
107
+ {
108
+ size: "small",
109
+ disabled: codeDisabled,
110
+ onClick: () => onApplyCode()
111
+ },
112
+ import_utils.locales.getText("pisell2.voucher.apply")
113
+ ))
114
+ ));
115
+ };
116
+ var Voucher_default = VoucherUI;
@@ -0,0 +1,124 @@
1
+ .pisell-lowcode__event-booking-voucher-container {
2
+ margin-bottom: 8px;
3
+
4
+ .login-card {
5
+ border-radius: 8px;
6
+ border: 1px solid var(--Gray-300, #d0d5dd);
7
+ background: #fff;
8
+ display: flex;
9
+ padding: 12px;
10
+ justify-content: center;
11
+ align-items: center;
12
+ gap: 10px;
13
+ color: var(--Gray-500, #667085);
14
+ font-size: 14px;
15
+ font-style: normal;
16
+ font-weight: 600;
17
+ margin-top: 6px;
18
+
19
+ .text-wrapper {
20
+ max-width: 200px;
21
+ }
22
+
23
+ .login-btn {
24
+ cursor: pointer;
25
+ color: var(--theme-color, #8157d5);
26
+ }
27
+ }
28
+
29
+ .voucher-title {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+ margin-bottom: 10px;
34
+
35
+ .voucher-title-left {
36
+ color: var(--base-black, #000);
37
+ font-size: 18px;
38
+ font-style: normal;
39
+ font-weight: 600;
40
+ line-height: 28px;
41
+ display: flex;
42
+ flex-direction: column;
43
+ }
44
+
45
+ .voucher-title-right {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ gap: 4px;
50
+ color: var(--theme-color, #7f56d9);
51
+ cursor: pointer;
52
+ font-size: 18px;
53
+ font-style: normal;
54
+ font-weight: 500;
55
+ }
56
+
57
+ .voucher-right-icon {
58
+ font-size: 20px;
59
+ width: 24px;
60
+ height: 24px;
61
+ color: var(--theme-color, #7f56d9);
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+
66
+ &.show {
67
+ transform: rotate(180deg);
68
+ }
69
+ }
70
+ }
71
+
72
+ .voucher-detail {
73
+ width: 100%;
74
+ transition: 0.2s;
75
+ max-height: 0;
76
+ overflow: hidden;
77
+ display: flex;
78
+ flex-direction: column;
79
+
80
+ &.show {
81
+ max-height: unset;
82
+ }
83
+ }
84
+
85
+ .voucher-code-input-wrapper {
86
+ margin-top: 6px;
87
+ display: flex;
88
+ width: 100%;
89
+ height: 42px;
90
+ padding: 8px;
91
+ justify-content: space-between;
92
+ align-items: center;
93
+ gap: 8px;
94
+ flex-shrink: 0;
95
+ border-radius: 8px;
96
+ border: 1px solid var(--Gray-300, #d0d5dd);
97
+ background: #fff;
98
+ }
99
+
100
+ .voucher-code-input {
101
+ display: flex;
102
+ align-items: center;
103
+ flex: 1;
104
+
105
+ > div {
106
+ color: var(--Gray-500, #667085);
107
+ text-align: center;
108
+ font-size: 16px;
109
+ font-style: normal;
110
+ font-weight: 600;
111
+ line-height: 20px;
112
+ margin-right: 8px;
113
+ }
114
+
115
+ .pisell-materials__input {
116
+ flex: 1;
117
+ }
118
+ }
119
+
120
+ input {
121
+ box-shadow: none !important;
122
+ }
123
+ }
124
+
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Voucher 组件多语言配置
3
+ */
4
+ declare const _default: {
5
+ en: {
6
+ 'pisell2.voucher.title': string;
7
+ 'pisell2.voucher.details': string;
8
+ 'pisell2.voucher.login': string;
9
+ 'pisell2.voucher.login-tip': string;
10
+ 'pisell2.voucher.code': string;
11
+ 'pisell2.voucher.enter-code': string;
12
+ 'pisell2.voucher.apply': string;
13
+ 'pisell2.voucher.code-invalid': string;
14
+ 'pisell2.voucher.code-invalid-cart': string;
15
+ };
16
+ 'zh-CN': {
17
+ 'pisell2.voucher.title': string;
18
+ 'pisell2.voucher.details': string;
19
+ 'pisell2.voucher.login': string;
20
+ 'pisell2.voucher.login-tip': string;
21
+ 'pisell2.voucher.code': string;
22
+ 'pisell2.voucher.enter-code': string;
23
+ 'pisell2.voucher.apply': string;
24
+ 'pisell2.voucher.code-invalid': string;
25
+ 'pisell2.voucher.code-invalid-cart': string;
26
+ };
27
+ 'zh-HK': {
28
+ 'pisell2.voucher.title': string;
29
+ 'pisell2.voucher.details': string;
30
+ 'pisell2.voucher.login': string;
31
+ 'pisell2.voucher.login-tip': string;
32
+ 'pisell2.voucher.code': string;
33
+ 'pisell2.voucher.enter-code': string;
34
+ 'pisell2.voucher.apply': string;
35
+ 'pisell2.voucher.code-invalid': string;
36
+ 'pisell2.voucher.code-invalid-cart': string;
37
+ };
38
+ };
39
+ export default _default;
@@ -0,0 +1,59 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/eventBooking/components/Voucher/components/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ "pisell2.voucher.title": "Promotion",
28
+ "pisell2.voucher.details": "Details",
29
+ "pisell2.voucher.login": "Login",
30
+ "pisell2.voucher.login-tip": "to view your vouchers",
31
+ "pisell2.voucher.code": "Code",
32
+ "pisell2.voucher.enter-code": "Enter voucher code",
33
+ "pisell2.voucher.apply": "Apply",
34
+ "pisell2.voucher.code-invalid": "Invalid voucher code",
35
+ "pisell2.voucher.code-invalid-cart": "Voucher not applicable to current cart"
36
+ },
37
+ "zh-CN": {
38
+ "pisell2.voucher.title": "促销",
39
+ "pisell2.voucher.details": "详情",
40
+ "pisell2.voucher.login": "登录",
41
+ "pisell2.voucher.login-tip": "查看您的优惠券",
42
+ "pisell2.voucher.code": "优惠码",
43
+ "pisell2.voucher.enter-code": "请输入优惠码",
44
+ "pisell2.voucher.apply": "应用",
45
+ "pisell2.voucher.code-invalid": "优惠码无效",
46
+ "pisell2.voucher.code-invalid-cart": "优惠券不适用于当前购物车"
47
+ },
48
+ "zh-HK": {
49
+ "pisell2.voucher.title": "促销",
50
+ "pisell2.voucher.details": "詳情",
51
+ "pisell2.voucher.login": "登錄",
52
+ "pisell2.voucher.login-tip": "查看您的優惠券",
53
+ "pisell2.voucher.code": "優惠碼",
54
+ "pisell2.voucher.enter-code": "請輸入優惠碼",
55
+ "pisell2.voucher.apply": "應用",
56
+ "pisell2.voucher.code-invalid": "優惠碼無效",
57
+ "pisell2.voucher.code-invalid-cart": "優惠券不適用於當前購物車"
58
+ }
59
+ };
@@ -0,0 +1,7 @@
1
+ export declare const useShopDiscount: () => any;
2
+ /**
3
+ * @title 登录后重新获取应用报价单后的价格
4
+ */
5
+ export declare const useVoucherLogin: () => {
6
+ getCartItemProductsWithQuotation: () => Promise<void>;
7
+ };
@@ -0,0 +1,176 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Voucher/hooks.ts
30
+ var hooks_exports = {};
31
+ __export(hooks_exports, {
32
+ useShopDiscount: () => useShopDiscount,
33
+ useVoucherLogin: () => useVoucherLogin
34
+ });
35
+ module.exports = __toCommonJS(hooks_exports);
36
+ var import_Sales = require("../../../Sales");
37
+ var import_ahooks = require("ahooks");
38
+ var import_serve = require("../../../Sales/Event/serve");
39
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
40
+ var useShopDiscount = () => {
41
+ const pisellOS = (0, import_useEngineContext.usePisellOS)();
42
+ return pisellOS.getModule("shopDiscount:eventBooking");
43
+ };
44
+ var useVoucherLogin = () => {
45
+ var _a;
46
+ const context = (0, import_useEngineContext.default)();
47
+ const { getStore } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
48
+ const { setData } = (0, import_Sales.useSales)();
49
+ const { cartData } = (0, import_Sales.useCart)();
50
+ const _getProductPrice = (0, import_ahooks.useRequest)(import_serve.getProductPrice, {
51
+ manual: true,
52
+ onSuccess: (res) => {
53
+ const list = res.data || [];
54
+ const productById = list.reduce((pre, cur) => {
55
+ pre[cur.id] = cur;
56
+ return pre;
57
+ }, {});
58
+ console.log("start update price");
59
+ const newCartItems = cartData.cartItems.map((item) => {
60
+ var _a2;
61
+ const { product } = item._originData || {};
62
+ let newProduct = productById[product.product_id];
63
+ let _totalPrice = Number(newProduct.price);
64
+ if (!(item == null ? void 0 : item._productDetail)) {
65
+ item.price = _totalPrice;
66
+ item.total = _totalPrice;
67
+ return item;
68
+ }
69
+ const { bundle = [], options } = item._productDetail;
70
+ if (
71
+ // 1. 套餐商品
72
+ Array.isArray(product == null ? void 0 : product.product_bundle) && product.product_bundle.length > 0
73
+ ) {
74
+ const { bundle_group = [] } = newProduct;
75
+ for (let i = 0; i < product.product_bundle.length; i++) {
76
+ const pbItem = product.product_bundle[i];
77
+ const { bundle_group_id, bundle_id, option } = pbItem;
78
+ const _originBundleItemInfo = bundle.find(
79
+ (bi) => bi.id === bundle_id
80
+ );
81
+ const _targetBundleGroup = bundle_group.find(
82
+ (bg) => bg.id === bundle_group_id
83
+ );
84
+ if ((_a2 = _targetBundleGroup == null ? void 0 : _targetBundleGroup.bundle_item) == null ? void 0 : _a2.length) {
85
+ let _newBundleItemInfo = _targetBundleGroup.bundle_item.find(
86
+ (bi) => bi.id === bundle_id
87
+ );
88
+ if ((_originBundleItemInfo == null ? void 0 : _originBundleItemInfo._bundle_product_id) === (_newBundleItemInfo == null ? void 0 : _newBundleItemInfo.bundle_product_id)) {
89
+ const {
90
+ price_type,
91
+ num = 1,
92
+ option: _originBundleItemOptions
93
+ } = _originBundleItemInfo;
94
+ const _bundleItemPrice = Number(_newBundleItemInfo.price);
95
+ if (price_type === "markup") {
96
+ _totalPrice += _bundleItemPrice * num;
97
+ } else if (price_type === "markdown") {
98
+ _totalPrice -= _bundleItemPrice * num;
99
+ } else {
100
+ _totalPrice += _bundleItemPrice * num;
101
+ }
102
+ if (Array.isArray(option) && (option == null ? void 0 : option.length) > 0) {
103
+ for (let j = 0; j < option.length; j++) {
104
+ const { option_group_item_id } = option[j];
105
+ const _originOptionItem = _originBundleItemOptions.find(
106
+ (op) => op.product_option_item_id === option_group_item_id
107
+ );
108
+ if (_originOptionItem) {
109
+ const { price, num: _optionNum = 1 } = _originOptionItem;
110
+ _totalPrice += Number(price) * _optionNum;
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ } else {
118
+ if (product == null ? void 0 : product.product_variant_id) {
119
+ const { variant = [] } = newProduct;
120
+ const _variant = variant.find(
121
+ (v) => v.id === product.product_variant_id
122
+ );
123
+ if (_variant) {
124
+ _totalPrice = Number(_variant.price);
125
+ }
126
+ }
127
+ if (Array.isArray(product == null ? void 0 : product.product_option_item) && product.product_option_item.length > 0) {
128
+ for (let i = 0; i < product.product_option_item.length; i++) {
129
+ const { option_group_item_id } = product.product_option_item[i];
130
+ const _originOptionItem = options.find(
131
+ (op) => op.product_option_item_id === option_group_item_id
132
+ );
133
+ if (_originOptionItem) {
134
+ const { price, num = 1 } = _originOptionItem;
135
+ _totalPrice += Number(price) * num;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ item.price = _totalPrice;
141
+ item.total = _totalPrice;
142
+ return item;
143
+ });
144
+ console.log("new cart data", newCartItems);
145
+ setData({
146
+ cartData: {
147
+ ...cartData,
148
+ cartItems: newCartItems
149
+ }
150
+ });
151
+ }
152
+ });
153
+ const getCartItemProductsWithQuotation = async () => {
154
+ var _a2, _b;
155
+ const ids = cartData.cartItems.map((item) => {
156
+ const { product = {} } = item._originData || {};
157
+ const { product_id } = product;
158
+ return product_id;
159
+ }).filter((id) => !!id);
160
+ const store = getStore();
161
+ const customer = (_b = (_a2 = store == null ? void 0 : store.getState()) == null ? void 0 : _a2.global) == null ? void 0 : _b.userInfo;
162
+ if (!(ids == null ? void 0 : ids.length)) return;
163
+ _getProductPrice.run({
164
+ ids,
165
+ customer_id: customer == null ? void 0 : customer.id
166
+ });
167
+ };
168
+ return {
169
+ getCartItemProductsWithQuotation
170
+ };
171
+ };
172
+ // Annotate the CommonJS export names for ESM import in node:
173
+ 0 && (module.exports = {
174
+ useShopDiscount,
175
+ useVoucherLogin
176
+ });
@@ -0,0 +1,2 @@
1
+ declare const VoucherCard: () => JSX.Element | null;
2
+ export default VoucherCard;