@pisell/private-materials 6.8.11 → 6.8.12

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 (1205) hide show
  1. package/build/lowcode/assets/df14b0a48455e9836fb9b14034da0243.png +0 -0
  2. package/build/lowcode/assets-daily.json +11 -11
  3. package/build/lowcode/assets-dev.json +2 -2
  4. package/build/lowcode/assets-prod.json +11 -11
  5. package/build/lowcode/index.js +1 -1
  6. package/build/lowcode/meta.js +2 -2
  7. package/build/lowcode/preview.css +1 -1
  8. package/build/lowcode/preview.js +164 -159
  9. package/build/lowcode/render/default/assets/df14b0a48455e9836fb9b14034da0243.png +0 -0
  10. package/build/lowcode/render/default/view.css +1 -1
  11. package/build/lowcode/render/default/view.js +19 -12
  12. package/build/lowcode/view.css +1 -1
  13. package/build/lowcode/view.js +19 -12
  14. package/es/businessModel/SalesModel/index.d.ts +2 -2
  15. package/es/components/Sales/Summary/utils.d.ts +1 -1
  16. package/es/components/Sales/index.d.ts +1 -1
  17. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
  18. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
  19. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -2
  20. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -2
  21. package/es/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
  22. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -2
  23. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
  24. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -2
  25. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
  26. package/es/components/appointmentBooking/context.d.ts +2 -2
  27. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
  28. package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
  29. package/es/components/appointmentBooking/index.d.ts +1 -2
  30. package/es/components/booking/addons/model.d.ts +1 -10
  31. package/es/components/booking/components/TabProduct/index.d.ts +2 -2
  32. package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  33. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -2
  34. package/es/components/booking/components/authWrap/index.d.ts +1 -1
  35. package/es/components/booking/components/browserSelect/index.d.ts +1 -1
  36. package/es/components/booking/components/collapsibleList/utils.d.ts +2 -2
  37. package/es/components/booking/components/drawer/index.d.ts +1 -1
  38. package/es/components/booking/components/emptyBooking/index.d.ts +2 -2
  39. package/es/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
  40. package/es/components/booking/components/footer/index.d.ts +1 -2
  41. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
  42. package/es/components/booking/components/menuButton/index.d.ts +1 -1
  43. package/es/components/booking/components/voucher/index.d.ts +1 -2
  44. package/es/components/booking/deposit/ClientItem/index.d.ts +1 -1
  45. package/es/components/booking/deposit/DepositItem/index.d.ts +1 -1
  46. package/es/components/booking/deposit/index.d.ts +2 -2
  47. package/es/components/booking/forms/footer.d.ts +1 -2
  48. package/es/components/booking/forms/model.d.ts +1 -10
  49. package/es/components/booking/forms/single/index.d.ts +2 -2
  50. package/es/components/booking/forms/table/index.d.ts +2 -2
  51. package/es/components/booking/hooks/useClearCart.d.ts +1 -2
  52. package/es/components/booking/hooks/useQuotation.d.ts +1 -2
  53. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -2
  54. package/es/components/booking/info/client/index.d.ts +1 -1
  55. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
  56. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  57. package/es/components/booking/info/date/index.d.ts +1 -2
  58. package/es/components/booking/info/dateRange/index.d.ts +1 -2
  59. package/es/components/booking/info/header/index.d.ts +2 -2
  60. package/es/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
  61. package/es/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
  62. package/es/components/booking/info/hooks/useInfoHolder.js +2 -0
  63. package/es/components/booking/info/index.d.ts +2 -2
  64. package/es/components/booking/info/model.d.ts +1 -10
  65. package/es/components/booking/info/notes/index.d.ts +2 -2
  66. package/es/components/booking/info/pet/index.d.ts +1 -1
  67. package/es/components/booking/info/service/Lists.d.ts +2 -2
  68. package/es/components/booking/info/service/actions/index.d.ts +1 -2
  69. package/es/components/booking/info/service/addService/index.d.ts +1 -2
  70. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  71. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -2
  72. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
  73. package/es/components/booking/info/service/editService/index.js +3 -4
  74. package/es/components/booking/info/service/index.d.ts +1 -1
  75. package/es/components/booking/info/service/like/index.d.ts +2 -2
  76. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -2
  77. package/es/components/booking/info/service/serviceList/index.d.ts +2 -2
  78. package/es/components/booking/info/service2/Lists.d.ts +2 -2
  79. package/es/components/booking/info/service2/index.d.ts +1 -1
  80. package/es/components/booking/info2/service/actions/index.d.ts +1 -2
  81. package/es/components/booking/info2/service/addService/index.d.ts +1 -2
  82. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  83. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
  84. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
  85. package/es/components/booking/info2/service/editNormalService/index.js +80 -9
  86. package/es/components/booking/info2/service/editService/index.js +85 -72
  87. package/es/components/booking/info2/service/index.d.ts +1 -1
  88. package/es/components/booking/info2/service/index.js +12 -0
  89. package/es/components/booking/info2/service/openNormalService.js +15 -0
  90. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -2
  91. package/es/components/booking/info2/service/serviceList/index.d.ts +2 -2
  92. package/es/components/booking/materiels/contacts/index.d.ts +1 -2
  93. package/es/components/booking/materiels/duration/index.d.ts +1 -2
  94. package/es/components/booking/materiels/holder/index.d.ts +1 -2
  95. package/es/components/booking/materiels/startTime/index.d.ts +1 -2
  96. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +2 -2
  97. package/es/components/booking/notes/NoteBlock/index.d.ts +2 -2
  98. package/es/components/booking/notes/addNote/index.d.ts +2 -2
  99. package/es/components/booking/notes/model.d.ts +1 -10
  100. package/es/components/booking/payments/model.d.ts +1 -10
  101. package/es/components/checkout/components/AdditionalModule/index.d.ts +2 -2
  102. package/es/components/checkout/components/AmountSummary/index.d.ts +2 -2
  103. package/es/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
  104. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
  105. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
  106. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
  107. package/es/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
  108. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
  109. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
  110. package/es/components/checkout/hooks/useWalletPass.d.ts +16 -16
  111. package/es/components/eftpos/device.d.ts +1 -1
  112. package/es/components/eftpos/deviceList/index.d.ts +2 -2
  113. package/es/components/eftpos/form/index.d.ts +2 -2
  114. package/es/components/eftpos/group/index.d.ts +3 -3
  115. package/es/components/eftpos/hooks.d.ts +1 -0
  116. package/es/components/eftpos/icon/apiKey.d.ts +2 -2
  117. package/es/components/eftpos/icon/device.d.ts +2 -2
  118. package/es/components/eftpos/index.d.ts +2 -2
  119. package/es/components/eftpos/log.d.ts +2 -2
  120. package/es/components/eftpos/pos.d.ts +2 -2
  121. package/es/components/eftpos/receipt/index.d.ts +2 -2
  122. package/es/components/eftpos/surcharge/index.d.ts +2 -2
  123. package/es/components/eftposPay/amount.d.ts +1 -2
  124. package/es/components/eftposPay/app.d.ts +1 -2
  125. package/es/components/eftposPay/component/alert/index.d.ts +1 -1
  126. package/es/components/eftposPay/component/alert/warn.d.ts +2 -2
  127. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -2
  128. package/es/components/eftposPay/component/fail/index.d.ts +1 -2
  129. package/es/components/eftposPay/component/fail/network.d.ts +1 -2
  130. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -2
  131. package/es/components/eftposPay/component/header/index.d.ts +1 -1
  132. package/es/components/eftposPay/component/header/titlebar.d.ts +2 -2
  133. package/es/components/eftposPay/component/manual/index.d.ts +1 -2
  134. package/es/components/eftposPay/component/signature/index.d.ts +1 -2
  135. package/es/components/eftposPay/component/step/index.d.ts +1 -2
  136. package/es/components/eftposPay/component/step/step.d.ts +2 -2
  137. package/es/components/eftposPay/device.d.ts +2 -2
  138. package/es/components/eftposPay/index.d.ts +1 -2
  139. package/es/components/eftposPay/linkly/index.d.ts +1 -2
  140. package/es/components/eftposPay/pay.d.ts +1 -2
  141. package/es/components/eftposPay/payo/config.d.ts +2 -3
  142. package/es/components/eftposPay/payo/index.d.ts +1 -1
  143. package/es/components/eftposPay/store/index.d.ts +2 -2
  144. package/es/components/eftposPay/tip.d.ts +1 -2
  145. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  146. package/es/components/eftposPay/tyro/index.d.ts +1 -1
  147. package/es/components/eftposPay/windcave/receiptAction.d.ts +2 -3
  148. package/es/components/eftposPay/windcave/windcave.d.ts +1 -2
  149. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
  150. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
  151. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -2
  152. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
  153. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
  154. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
  155. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
  156. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
  157. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
  158. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
  159. package/es/components/eventBooking/components/Provider/Header/index.d.ts +2 -2
  160. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
  161. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
  162. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
  163. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
  164. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
  165. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -2
  166. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -1
  167. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
  168. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
  169. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
  170. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +2 -1
  171. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
  172. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
  173. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
  174. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
  175. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
  176. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -2
  177. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
  178. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
  179. package/es/components/eventBooking/index.d.ts +1 -2
  180. package/es/components/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
  181. package/es/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
  182. package/es/components/kioskSkuDetail/index.d.ts +33 -0
  183. package/es/components/kioskSkuDetail/index.js +282 -0
  184. package/es/components/kioskSkuDetail/index.less +152 -0
  185. package/es/components/login/index.d.ts +2 -2
  186. package/es/components/pay/toB/components/Cache/index.d.ts +1 -2
  187. package/es/components/pay/toB/components/Card/index.d.ts +1 -2
  188. package/es/components/pay/toB/components/CardGroup/index.d.ts +2 -2
  189. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
  190. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -2
  191. package/es/components/pay/toB/store/provider.d.ts +1 -1
  192. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
  193. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
  194. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
  195. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
  196. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +2 -2
  197. package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
  198. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
  199. package/es/components/pay/toC/model.d.ts +1 -9
  200. package/es/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
  201. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
  202. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
  203. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
  204. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
  205. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
  206. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
  207. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
  208. package/es/components/productExtension/fields/Actor/index.d.ts +2 -2
  209. package/es/components/productExtension/fields/Forms/index.d.ts +2 -2
  210. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
  211. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
  212. package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
  213. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
  214. package/es/components/productExtension/index.d.ts +2 -2
  215. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -2
  216. package/es/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
  217. package/es/components/productSelect/components/productGroup/index.d.ts +3 -3
  218. package/es/components/productSelect/index.d.ts +1 -1
  219. package/es/components/ruleSetting/index.d.ts +1 -2
  220. package/es/components/ruleSetting/ruleBorder/index.d.ts +2 -2
  221. package/es/components/schedules/calendar/calendarItem.d.ts +2 -2
  222. package/es/components/schedules/calendar/index.d.ts +2 -2
  223. package/es/components/schedules/components/Card/index.d.ts +1 -1
  224. package/es/components/schedules/components/CurrentDay/index.d.ts +2 -2
  225. package/es/components/schedules/components/ResourceList/index.d.ts +1 -1
  226. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
  227. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
  228. package/es/components/schedules/components/ScheduleList/index.d.ts +2 -2
  229. package/es/components/schedules/components/Search/index.d.ts +1 -1
  230. package/es/components/schedules/model.d.ts +1 -9
  231. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
  232. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
  233. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
  234. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
  235. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
  236. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
  237. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
  238. package/es/components/schedules/products/index.d.ts +2 -2
  239. package/es/components/schedules/products/list/ProductItem/index.d.ts +2 -2
  240. package/es/components/schedules/products/list/index.d.ts +2 -2
  241. package/es/components/schedules/resources/index.d.ts +2 -2
  242. package/es/components/schedules/resources/list/index.d.ts +2 -2
  243. package/es/components/schedules/resources/relationProduct/index.d.ts +2 -2
  244. package/es/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
  245. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -2
  246. package/es/components/schedules/schedules/Schedules.d.ts +1 -1
  247. package/es/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
  248. package/es/components/schedules/schedules/index.d.ts +2 -2
  249. package/es/components/shoppingCart/Provider.d.ts +1 -1
  250. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -2
  251. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -2
  252. package/es/components/shoppingCart/components/Empty/index.d.ts +2 -1
  253. package/es/components/shoppingCart/components/Render/index.d.ts +2 -2
  254. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -2
  255. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
  256. package/es/components/shoppingCart/index.d.ts +2 -2
  257. package/es/components/subTotal/index.d.ts +1 -1
  258. package/es/components/tabProduct/index.d.ts +1 -1
  259. package/es/components/taxSelect/index.d.ts +2 -2
  260. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
  261. package/es/components/ticketBooking/components/addServiceVariant/addService.js +45 -22
  262. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
  263. package/es/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
  264. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -2
  265. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
  266. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -2
  267. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
  268. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
  269. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
  270. package/es/components/ticketBooking/index.d.ts +1 -2
  271. package/es/components/ticketBooking/miniRedux.d.ts +1 -1
  272. package/es/components/walletList/index.d.ts +1 -2
  273. package/es/components/walletList/model.d.ts +1 -1
  274. package/es/components/walletList/tempHolderSelector/index.d.ts +2 -2
  275. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -2
  276. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
  277. package/es/hooks/usePaymentLogger.d.ts +3 -2
  278. package/es/index.d.ts +2 -0
  279. package/es/index.js +3 -1
  280. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
  281. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
  282. package/es/plus/noteModal/AddTempModal.d.ts +1 -2
  283. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
  284. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
  285. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
  286. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
  287. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
  288. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
  289. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
  290. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
  291. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
  292. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +2 -2
  293. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
  294. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  295. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +2 -2
  296. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
  297. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
  298. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -6
  299. package/es/plus/productSelect/ProductCard/index.d.ts +2 -2
  300. package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
  301. package/es/plus/productSelect/components/TabsStructure/TabsStructure.js +2 -7
  302. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
  303. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
  304. package/es/plus/productSelect/index.d.ts +1 -1
  305. package/es/plus/saasCreateOrganization/components/Header.d.ts +2 -2
  306. package/es/plus/saasCreateOrganization/index.d.ts +2 -2
  307. package/es/plus/saasRegister/components/EntryEmail.d.ts +2 -2
  308. package/es/plus/saasRegister/components/EntryInfo.d.ts +2 -2
  309. package/es/plus/saasRegister/components/GoLogin.d.ts +2 -2
  310. package/es/plus/saasRegister/components/Header.d.ts +2 -2
  311. package/es/plus/saasRegister/components/VerifyError.d.ts +2 -2
  312. package/es/plus/saasRegister/components/VerifyingLink.d.ts +2 -2
  313. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
  314. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
  315. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  316. package/es/plus/skuOptionsSelection/components/NormalCard/index.js +131 -0
  317. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  318. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +108 -0
  319. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
  320. package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +247 -0
  321. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
  322. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  323. package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +166 -0
  324. package/es/plus/skuOptionsSelection/components/TitleExtra/index.js +46 -0
  325. package/es/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
  326. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +29 -0
  327. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
  328. package/es/plus/skuOptionsSelection/hooks/index.js +3 -0
  329. package/es/plus/skuOptionsSelection/hooks/useLanguage.js +7 -0
  330. package/es/plus/skuOptionsSelection/hooks/useStore.js +3 -0
  331. package/es/plus/skuOptionsSelection/hooks/useSymbol.js +8 -0
  332. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  333. package/es/plus/skuOptionsSelection/index.js +125 -0
  334. package/es/plus/skuOptionsSelection/index.less +4 -0
  335. package/es/plus/skuOptionsSelection/locales.js +29 -0
  336. package/es/plus/skuOptionsSelection/store/actions.js +56 -0
  337. package/es/plus/skuOptionsSelection/store/createStore.js +117 -0
  338. package/es/plus/skuOptionsSelection/store/index.js +2 -0
  339. package/es/plus/skuOptionsSelection/store/store.js +18 -0
  340. package/es/plus/skuOptionsSelection/types.js +69 -0
  341. package/es/plus/skuOptionsSelection/utils/calculateOption.js +80 -0
  342. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.js +147 -0
  343. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  344. package/es/plus/skuOptionsSelection/utils/index.js +7 -0
  345. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  346. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +90 -0
  347. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  348. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +85 -0
  349. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +157 -0
  350. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +226 -0
  351. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +90 -0
  352. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
  353. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -2
  354. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
  355. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
  356. package/es/plus/walletPassGallery/index.d.ts +1 -2
  357. package/es/plus/webPosLogin/WebPosLogin.d.ts +1 -1
  358. package/es/pro/Cards/components/SKUCard/index.d.ts +60 -0
  359. package/es/pro/Cards/components/SKUCard/index.js +193 -0
  360. package/es/pro/Cards/components/SKUCard/index.less +102 -0
  361. package/es/pro/Cards/index.d.ts +1 -0
  362. package/es/pro/Cards/index.js +1 -0
  363. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
  364. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
  365. package/es/pro/Login2.0/components/PhoneInput.d.ts +1 -1
  366. package/es/pro/Login2.0/steps/CodeInput.d.ts +2 -6
  367. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
  368. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
  369. package/es/pro/Login2.0/steps/SetPassword.d.ts +2 -5
  370. package/es/pro/{Selector/components/NumericStepper → NumericStepper}/index.js +46 -19
  371. package/{lib/pro/Selector/components → es/pro}/NumericStepper/index.less +7 -8
  372. package/es/pro/Selector/BatchSelectorDemo.js +452 -38
  373. package/es/pro/Selector/Item.js +88 -0
  374. package/es/pro/Selector/Selector.js +188 -140
  375. package/es/pro/Selector/Selector.stories.js +1105 -0
  376. package/es/pro/Selector/SelectorGroup.js +189 -155
  377. package/es/pro/Selector/components/Card/index.js +92 -75
  378. package/es/pro/Selector/components/Card/index.less +113 -83
  379. package/es/pro/Selector/components/Card/types.js +1 -0
  380. package/es/pro/Selector/components/Indicator/index.js +101 -0
  381. package/es/pro/Selector/components/Indicator/index.less +114 -0
  382. package/es/pro/Selector/components/LayoutContainer/index.js +60 -0
  383. package/es/pro/Selector/components/Media/index.js +222 -0
  384. package/es/pro/Selector/components/Media/index.less +124 -0
  385. package/es/pro/Selector/components/Media/types.js +1 -0
  386. package/es/pro/Selector/components/index.js +3 -1
  387. package/es/pro/Selector/demo.js +1031 -101
  388. package/es/pro/Selector/hooks/usePresetItemProps.js +185 -0
  389. package/es/pro/Selector/hooks/usePresetProps.js +132 -0
  390. package/es/pro/Selector/hooks/useSelectionController.js +124 -98
  391. package/es/pro/Selector/index.js +3 -0
  392. package/es/pro/Selector/locales.js +69 -48
  393. package/es/pro/Selector/selector.less +108 -2
  394. package/es/pro/Selector/selectorGroup.less +8 -0
  395. package/es/pro/numberKeyboard/index.d.ts +1 -1
  396. package/es/pro/pisellNumberSelector/index.less +18 -2
  397. package/es/pro/pisellPaymentList/example.d.ts +10 -11
  398. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
  399. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
  400. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
  401. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -2
  402. package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
  403. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
  404. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
  405. package/es/pro/skuDetailModal/index.js +827 -179
  406. package/es/pro/skuDetailModal/index.less +136 -28
  407. package/es/pro/skuDetailModal/locales.js +62 -3
  408. package/es/pro/skuDetailModal/utils.js +21 -0
  409. package/es/test/setup.d.ts +1 -0
  410. package/es/test/setup.js +177 -0
  411. package/lib/businessModel/SalesModel/index.d.ts +2 -2
  412. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  413. package/lib/components/Sales/index.d.ts +1 -1
  414. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -2
  415. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
  416. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -2
  417. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -2
  418. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +2 -3
  419. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -2
  420. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -2
  421. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -2
  422. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -2
  423. package/lib/components/appointmentBooking/context.d.ts +2 -2
  424. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -2
  425. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -2
  426. package/lib/components/appointmentBooking/index.d.ts +1 -2
  427. package/lib/components/booking/addons/model.d.ts +1 -10
  428. package/lib/components/booking/components/TabProduct/index.d.ts +2 -2
  429. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  430. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +2 -2
  431. package/lib/components/booking/components/authWrap/index.d.ts +1 -1
  432. package/lib/components/booking/components/browserSelect/index.d.ts +1 -1
  433. package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -2
  434. package/lib/components/booking/components/drawer/index.d.ts +1 -1
  435. package/lib/components/booking/components/emptyBooking/index.d.ts +2 -2
  436. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +2 -2
  437. package/lib/components/booking/components/footer/index.d.ts +1 -2
  438. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +2 -2
  439. package/lib/components/booking/components/menuButton/index.d.ts +1 -1
  440. package/lib/components/booking/components/voucher/index.d.ts +1 -2
  441. package/lib/components/booking/deposit/ClientItem/index.d.ts +1 -1
  442. package/lib/components/booking/deposit/DepositItem/index.d.ts +1 -1
  443. package/lib/components/booking/deposit/index.d.ts +2 -2
  444. package/lib/components/booking/forms/footer.d.ts +1 -2
  445. package/lib/components/booking/forms/model.d.ts +1 -10
  446. package/lib/components/booking/forms/single/index.d.ts +2 -2
  447. package/lib/components/booking/forms/table/index.d.ts +2 -2
  448. package/lib/components/booking/hooks/useClearCart.d.ts +1 -2
  449. package/lib/components/booking/hooks/useQuotation.d.ts +1 -2
  450. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -2
  451. package/lib/components/booking/info/client/index.d.ts +1 -1
  452. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -2
  453. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  454. package/lib/components/booking/info/date/index.d.ts +1 -2
  455. package/lib/components/booking/info/dateRange/index.d.ts +1 -2
  456. package/lib/components/booking/info/header/index.d.ts +2 -2
  457. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +1 -1
  458. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +3 -2
  459. package/lib/components/booking/info/hooks/useInfoHolder.js +1 -0
  460. package/lib/components/booking/info/index.d.ts +2 -2
  461. package/lib/components/booking/info/model.d.ts +1 -10
  462. package/lib/components/booking/info/notes/index.d.ts +2 -2
  463. package/lib/components/booking/info/pet/index.d.ts +1 -1
  464. package/lib/components/booking/info/service/Lists.d.ts +2 -2
  465. package/lib/components/booking/info/service/actions/index.d.ts +1 -2
  466. package/lib/components/booking/info/service/addService/index.d.ts +1 -2
  467. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  468. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -2
  469. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -2
  470. package/lib/components/booking/info/service/editService/index.js +0 -2
  471. package/lib/components/booking/info/service/index.d.ts +1 -1
  472. package/lib/components/booking/info/service/like/index.d.ts +2 -2
  473. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -2
  474. package/lib/components/booking/info/service/serviceList/index.d.ts +2 -2
  475. package/lib/components/booking/info/service2/Lists.d.ts +2 -2
  476. package/lib/components/booking/info/service2/index.d.ts +1 -1
  477. package/lib/components/booking/info2/service/actions/index.d.ts +1 -2
  478. package/lib/components/booking/info2/service/addService/index.d.ts +1 -2
  479. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  480. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -1
  481. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -2
  482. package/lib/components/booking/info2/service/editNormalService/index.js +59 -4
  483. package/lib/components/booking/info2/service/editService/index.js +82 -68
  484. package/lib/components/booking/info2/service/index.d.ts +1 -1
  485. package/lib/components/booking/info2/service/index.js +10 -0
  486. package/lib/components/booking/info2/service/openNormalService.js +37 -0
  487. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -2
  488. package/lib/components/booking/info2/service/serviceList/index.d.ts +2 -2
  489. package/lib/components/booking/materiels/contacts/index.d.ts +1 -2
  490. package/lib/components/booking/materiels/duration/index.d.ts +1 -2
  491. package/lib/components/booking/materiels/holder/index.d.ts +1 -2
  492. package/lib/components/booking/materiels/startTime/index.d.ts +1 -2
  493. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +2 -2
  494. package/lib/components/booking/notes/NoteBlock/index.d.ts +2 -2
  495. package/lib/components/booking/notes/addNote/index.d.ts +2 -2
  496. package/lib/components/booking/notes/model.d.ts +1 -10
  497. package/lib/components/booking/payments/model.d.ts +1 -10
  498. package/lib/components/checkout/components/AdditionalModule/index.d.ts +2 -2
  499. package/lib/components/checkout/components/AmountSummary/index.d.ts +2 -2
  500. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +2 -2
  501. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +2 -2
  502. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -2
  503. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -2
  504. package/lib/components/checkout/components/SendPaymentLinkModal/index.d.ts +2 -2
  505. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +2 -3
  506. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -2
  507. package/lib/components/checkout/hooks/useWalletPass.d.ts +16 -16
  508. package/lib/components/eftpos/device.d.ts +1 -1
  509. package/lib/components/eftpos/deviceList/index.d.ts +2 -2
  510. package/lib/components/eftpos/form/index.d.ts +2 -2
  511. package/lib/components/eftpos/group/index.d.ts +3 -3
  512. package/lib/components/eftpos/hooks.d.ts +1 -0
  513. package/lib/components/eftpos/icon/apiKey.d.ts +2 -2
  514. package/lib/components/eftpos/icon/device.d.ts +2 -2
  515. package/lib/components/eftpos/index.d.ts +2 -2
  516. package/lib/components/eftpos/log.d.ts +2 -2
  517. package/lib/components/eftpos/pos.d.ts +2 -2
  518. package/lib/components/eftpos/receipt/index.d.ts +2 -2
  519. package/lib/components/eftpos/surcharge/index.d.ts +2 -2
  520. package/lib/components/eftposPay/amount.d.ts +1 -2
  521. package/lib/components/eftposPay/app.d.ts +1 -2
  522. package/lib/components/eftposPay/component/alert/index.d.ts +1 -1
  523. package/lib/components/eftposPay/component/alert/warn.d.ts +2 -2
  524. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -2
  525. package/lib/components/eftposPay/component/fail/index.d.ts +1 -2
  526. package/lib/components/eftposPay/component/fail/network.d.ts +1 -2
  527. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -2
  528. package/lib/components/eftposPay/component/header/index.d.ts +1 -1
  529. package/lib/components/eftposPay/component/header/titlebar.d.ts +2 -2
  530. package/lib/components/eftposPay/component/manual/index.d.ts +1 -2
  531. package/lib/components/eftposPay/component/signature/index.d.ts +1 -2
  532. package/lib/components/eftposPay/component/step/index.d.ts +1 -2
  533. package/lib/components/eftposPay/component/step/step.d.ts +2 -2
  534. package/lib/components/eftposPay/device.d.ts +2 -2
  535. package/lib/components/eftposPay/index.d.ts +1 -2
  536. package/lib/components/eftposPay/linkly/index.d.ts +1 -2
  537. package/lib/components/eftposPay/pay.d.ts +1 -2
  538. package/lib/components/eftposPay/payo/config.d.ts +2 -3
  539. package/lib/components/eftposPay/payo/index.d.ts +1 -1
  540. package/lib/components/eftposPay/store/index.d.ts +2 -2
  541. package/lib/components/eftposPay/tip.d.ts +1 -2
  542. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  543. package/lib/components/eftposPay/tyro/index.d.ts +1 -1
  544. package/lib/components/eftposPay/windcave/receiptAction.d.ts +2 -3
  545. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -2
  546. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -1
  547. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -2
  548. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -2
  549. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -2
  550. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -2
  551. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -2
  552. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -2
  553. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -2
  554. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -2
  555. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -2
  556. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +2 -2
  557. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -2
  558. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -2
  559. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -2
  560. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -2
  561. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -2
  562. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -2
  563. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +2 -1
  564. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -1
  565. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -1
  566. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -1
  567. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +2 -1
  568. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +2 -1
  569. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +2 -1
  570. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -2
  571. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -2
  572. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -2
  573. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +2 -2
  574. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -2
  575. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -2
  576. package/lib/components/eventBooking/index.d.ts +1 -2
  577. package/lib/components/kioskSkuDetail/assets/kiosk-launchpad-bg-773705.png +0 -0
  578. package/lib/components/kioskSkuDetail/assets/kiosk-launchpad-hero-c14ba2.png +0 -0
  579. package/lib/components/kioskSkuDetail/index.d.ts +33 -0
  580. package/lib/components/kioskSkuDetail/index.js +206 -0
  581. package/lib/components/kioskSkuDetail/index.less +152 -0
  582. package/lib/components/login/index.d.ts +2 -2
  583. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -2
  584. package/lib/components/pay/toB/components/Card/index.d.ts +1 -2
  585. package/lib/components/pay/toB/components/CardGroup/index.d.ts +2 -2
  586. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -2
  587. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -2
  588. package/lib/components/pay/toB/store/provider.d.ts +1 -1
  589. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -2
  590. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +2 -2
  591. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +2 -1
  592. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -2
  593. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +2 -2
  594. package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +1 -1
  595. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -2
  596. package/lib/components/pay/toC/model.d.ts +1 -9
  597. package/lib/components/pisellSelectCustomerModal/CustomerCard/index.d.ts +1 -1
  598. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +2 -2
  599. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +2 -2
  600. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -2
  601. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +2 -2
  602. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -2
  603. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +2 -2
  604. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -2
  605. package/lib/components/productExtension/fields/Actor/index.d.ts +2 -2
  606. package/lib/components/productExtension/fields/Forms/index.d.ts +2 -2
  607. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +2 -2
  608. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +2 -2
  609. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
  610. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +2 -2
  611. package/lib/components/productExtension/index.d.ts +2 -2
  612. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -2
  613. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +1 -1
  614. package/lib/components/productSelect/components/productGroup/index.d.ts +3 -3
  615. package/lib/components/productSelect/index.d.ts +1 -1
  616. package/lib/components/ruleSetting/index.d.ts +1 -2
  617. package/lib/components/ruleSetting/ruleBorder/index.d.ts +2 -2
  618. package/lib/components/schedules/calendar/calendarItem.d.ts +2 -2
  619. package/lib/components/schedules/calendar/index.d.ts +2 -2
  620. package/lib/components/schedules/components/Card/index.d.ts +1 -1
  621. package/lib/components/schedules/components/CurrentDay/index.d.ts +2 -2
  622. package/lib/components/schedules/components/ResourceList/index.d.ts +1 -1
  623. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +2 -2
  624. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +2 -2
  625. package/lib/components/schedules/components/ScheduleList/index.d.ts +2 -2
  626. package/lib/components/schedules/components/Search/index.d.ts +1 -1
  627. package/lib/components/schedules/model.d.ts +1 -9
  628. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +2 -2
  629. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +2 -2
  630. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +2 -2
  631. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +2 -2
  632. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +2 -2
  633. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +2 -2
  634. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +2 -2
  635. package/lib/components/schedules/products/index.d.ts +2 -2
  636. package/lib/components/schedules/products/list/ProductItem/index.d.ts +2 -2
  637. package/lib/components/schedules/products/list/index.d.ts +2 -2
  638. package/lib/components/schedules/resources/index.d.ts +2 -2
  639. package/lib/components/schedules/resources/list/index.d.ts +2 -2
  640. package/lib/components/schedules/resources/relationProduct/index.d.ts +2 -2
  641. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +2 -2
  642. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +2 -2
  643. package/lib/components/schedules/schedules/Schedules.d.ts +1 -1
  644. package/lib/components/schedules/schedules/SchedulesForDay/index.d.ts +1 -1
  645. package/lib/components/schedules/schedules/index.d.ts +2 -2
  646. package/lib/components/shoppingCart/Provider.d.ts +1 -1
  647. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -2
  648. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -2
  649. package/lib/components/shoppingCart/components/Empty/index.d.ts +2 -1
  650. package/lib/components/shoppingCart/components/Render/index.d.ts +2 -2
  651. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -2
  652. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -2
  653. package/lib/components/shoppingCart/index.d.ts +2 -2
  654. package/lib/components/subTotal/index.d.ts +1 -1
  655. package/lib/components/tabProduct/index.d.ts +1 -1
  656. package/lib/components/taxSelect/index.d.ts +2 -2
  657. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -2
  658. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
  659. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -2
  660. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +1 -1
  661. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -2
  662. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -2
  663. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -2
  664. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +9 -9
  665. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +2 -2
  666. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +3 -3
  667. package/lib/components/ticketBooking/index.d.ts +1 -2
  668. package/lib/components/ticketBooking/miniRedux.d.ts +1 -1
  669. package/lib/components/walletList/index.d.ts +1 -2
  670. package/lib/components/walletList/model.d.ts +1 -1
  671. package/lib/components/walletList/tempHolderSelector/index.d.ts +2 -2
  672. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -2
  673. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -2
  674. package/lib/hooks/usePaymentLogger.d.ts +3 -2
  675. package/lib/index.d.ts +2 -0
  676. package/lib/index.js +6 -0
  677. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -2
  678. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -2
  679. package/lib/plus/noteModal/AddTempModal.d.ts +1 -2
  680. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +2 -2
  681. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +2 -2
  682. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +2 -2
  683. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +2 -2
  684. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +2 -2
  685. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -2
  686. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +2 -2
  687. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -2
  688. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -2
  689. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +2 -2
  690. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -2
  691. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  692. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +2 -2
  693. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -2
  694. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -2
  695. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -6
  696. package/lib/plus/productSelect/ProductCard/index.d.ts +2 -2
  697. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -6
  698. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.js +38 -29
  699. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +6 -0
  700. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -1
  701. package/lib/plus/productSelect/index.d.ts +1 -1
  702. package/lib/plus/saasCreateOrganization/components/Header.d.ts +2 -2
  703. package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
  704. package/lib/plus/saasRegister/components/EntryEmail.d.ts +2 -2
  705. package/lib/plus/saasRegister/components/EntryInfo.d.ts +2 -2
  706. package/lib/plus/saasRegister/components/GoLogin.d.ts +2 -2
  707. package/lib/plus/saasRegister/components/Header.d.ts +2 -2
  708. package/lib/plus/saasRegister/components/VerifyError.d.ts +2 -2
  709. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +2 -2
  710. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -2
  711. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -1
  712. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  713. package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +142 -0
  714. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  715. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +153 -0
  716. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +10 -0
  717. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +229 -0
  718. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +113 -0
  719. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  720. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +140 -0
  721. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.js +78 -0
  722. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.less +23 -0
  723. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +66 -0
  724. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +9 -0
  725. package/lib/plus/skuOptionsSelection/hooks/index.js +45 -0
  726. package/lib/plus/skuOptionsSelection/hooks/useLanguage.js +41 -0
  727. package/lib/plus/skuOptionsSelection/hooks/useStore.js +36 -0
  728. package/lib/plus/skuOptionsSelection/hooks/useSymbol.js +42 -0
  729. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  730. package/lib/plus/skuOptionsSelection/index.js +141 -0
  731. package/lib/plus/skuOptionsSelection/index.less +4 -0
  732. package/lib/plus/skuOptionsSelection/locales.js +53 -0
  733. package/lib/plus/skuOptionsSelection/store/actions.js +74 -0
  734. package/lib/plus/skuOptionsSelection/store/createStore.js +87 -0
  735. package/lib/plus/skuOptionsSelection/store/index.js +42 -0
  736. package/lib/plus/skuOptionsSelection/store/store.js +57 -0
  737. package/lib/plus/skuOptionsSelection/types.js +44 -0
  738. package/lib/plus/skuOptionsSelection/utils/calculateOption.js +106 -0
  739. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.js +125 -0
  740. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  741. package/lib/plus/skuOptionsSelection/utils/index.js +35 -0
  742. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  743. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +115 -0
  744. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  745. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +113 -0
  746. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +171 -0
  747. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +212 -0
  748. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +118 -0
  749. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
  750. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -2
  751. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -2
  752. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +1 -1
  753. package/lib/plus/walletPassGallery/index.d.ts +1 -2
  754. package/lib/plus/webPosLogin/WebPosLogin.d.ts +1 -1
  755. package/lib/pro/Cards/components/SKUCard/index.d.ts +60 -0
  756. package/lib/pro/Cards/components/SKUCard/index.js +192 -0
  757. package/lib/pro/Cards/components/SKUCard/index.less +102 -0
  758. package/lib/pro/Cards/index.d.ts +1 -0
  759. package/lib/pro/Cards/index.js +39 -0
  760. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +2 -9
  761. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +2 -6
  762. package/lib/pro/Login2.0/components/PhoneInput.d.ts +1 -1
  763. package/lib/pro/Login2.0/steps/CodeInput.d.ts +2 -6
  764. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +2 -5
  765. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +2 -5
  766. package/lib/pro/Login2.0/steps/SetPassword.d.ts +2 -5
  767. package/lib/pro/{Selector/components/NumericStepper → NumericStepper}/index.js +31 -13
  768. package/{es/pro/Selector/components → lib/pro}/NumericStepper/index.less +7 -8
  769. package/lib/pro/Selector/BatchSelectorDemo.js +449 -137
  770. package/lib/pro/Selector/Item.js +109 -0
  771. package/lib/pro/Selector/Selector.js +194 -114
  772. package/lib/pro/Selector/Selector.stories.js +740 -0
  773. package/lib/pro/Selector/SelectorGroup.js +212 -141
  774. package/lib/pro/Selector/components/Card/index.js +72 -57
  775. package/lib/pro/Selector/components/Card/index.less +113 -83
  776. package/lib/pro/Selector/components/Card/types.js +17 -0
  777. package/lib/pro/Selector/components/Indicator/index.js +129 -0
  778. package/lib/pro/Selector/components/Indicator/index.less +114 -0
  779. package/lib/pro/Selector/components/LayoutContainer/index.js +64 -0
  780. package/lib/pro/Selector/components/Media/index.js +238 -0
  781. package/lib/pro/Selector/components/Media/index.less +124 -0
  782. package/lib/pro/Selector/components/Media/types.js +17 -0
  783. package/lib/pro/Selector/components/index.js +3 -3
  784. package/lib/pro/Selector/demo.js +808 -55
  785. package/lib/pro/Selector/hooks/usePresetItemProps.js +156 -0
  786. package/lib/pro/Selector/hooks/usePresetProps.js +133 -0
  787. package/lib/pro/Selector/hooks/useSelectionController.js +108 -67
  788. package/lib/pro/Selector/index.js +8 -0
  789. package/lib/pro/Selector/locales.js +51 -30
  790. package/lib/pro/Selector/selector.less +108 -2
  791. package/lib/pro/Selector/selectorGroup.less +8 -0
  792. package/lib/pro/numberKeyboard/index.d.ts +1 -1
  793. package/lib/pro/pisellNumberSelector/index.less +18 -2
  794. package/lib/pro/pisellPaymentList/example.d.ts +10 -11
  795. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -2
  796. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -2
  797. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +1 -1
  798. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +2 -2
  799. package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +2 -2
  800. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -2
  801. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -2
  802. package/lib/pro/skuDetailModal/index.js +540 -126
  803. package/lib/pro/skuDetailModal/index.less +136 -28
  804. package/lib/pro/skuDetailModal/locales.js +62 -3
  805. package/lib/pro/skuDetailModal/utils.js +42 -0
  806. package/lib/test/setup.d.ts +1 -0
  807. package/lib/test/setup.js +94 -0
  808. package/lowcode/kiosk-sku-detail/meta.ts +129 -0
  809. package/lowcode/selector/meta.ts +320 -285
  810. package/lowcode/selector/utils.ts +118 -0
  811. package/lowcode/selector.group/meta.ts +95 -10
  812. package/lowcode/selector.item/meta.ts +31 -0
  813. package/lowcode/sku-options-selection/default.ts +1215 -0
  814. package/lowcode/sku-options-selection/meta.ts +509 -0
  815. package/package.json +29 -8
  816. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
  817. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
  818. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
  819. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
  820. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
  821. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
  822. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
  823. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
  824. package/es/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
  825. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  826. package/es/components/authentication/admin/AuthMethods/types.d.ts +0 -76
  827. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  828. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  829. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  830. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  831. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  832. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  833. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
  834. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  835. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  836. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  837. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
  838. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  839. package/es/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
  840. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
  841. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  842. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
  843. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  844. package/es/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
  845. package/es/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
  846. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  847. package/es/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
  848. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  849. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
  850. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  851. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
  852. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  853. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
  854. package/es/components/authentication/index.d.ts +0 -0
  855. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  856. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  857. package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
  858. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  859. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  860. package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
  861. package/es/components/booking/model.d.ts +0 -120
  862. package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
  863. package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
  864. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
  865. package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
  866. package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
  867. package/es/components/checkout/constants.d.ts +0 -2
  868. package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
  869. package/es/components/checkout/locales.d.ts +0 -513
  870. package/es/components/checkout/styles.d.ts +0 -67
  871. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  872. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  873. package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  874. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  875. package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
  876. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  877. package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
  878. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  879. package/es/components/list/components/WaterfallList/index.d.ts +0 -2
  880. package/es/components/list/hooks/useDevice.d.ts +0 -24
  881. package/es/components/list/hooks/useWaterfall.d.ts +0 -34
  882. package/es/components/list/locales.d.ts +0 -66
  883. package/es/components/list/types.d.ts +0 -178
  884. package/es/components/list/utils/getText.d.ts +0 -53
  885. package/es/components/list/utils/index.d.ts +0 -19
  886. package/es/components/pay/toB/components/Content/Header.d.ts +0 -5
  887. package/es/components/pay/toB/hooks.d.ts +0 -12
  888. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  889. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  890. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  891. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
  892. package/es/components/pay/toC/locales.d.ts +0 -301
  893. package/es/components/pay/toC/status.d.ts +0 -13
  894. package/es/components/shoppingCart/locales.d.ts +0 -36
  895. package/es/components/shoppingCart/type.d.ts +0 -50
  896. package/es/components/subTotal/locales.d.ts +0 -42
  897. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  898. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  899. package/es/components/systemSettings/registry/services.d.ts +0 -77
  900. package/es/components/systemSettings/registry/types.d.ts +0 -126
  901. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  902. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  903. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  904. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
  905. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  906. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  907. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  908. package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  909. package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  910. package/es/components/ticketBooking/context/index.d.ts +0 -2
  911. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  912. package/es/components/ticketBooking/locales.d.ts +0 -201
  913. package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
  914. package/es/components/wallet/utils.d.ts +0 -48
  915. package/es/components/walletList/locales.d.ts +0 -27
  916. package/es/components/walletList/types/index.d.ts +0 -194
  917. package/es/hooks/printer.d.ts +0 -4
  918. package/es/hooks/useEngineContext.d.ts +0 -4
  919. package/es/hooks/useLogger.d.ts +0 -2
  920. package/es/hooks/useToast.d.ts +0 -2
  921. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  922. package/es/plus/clientCard/locales.d.ts +0 -18
  923. package/es/plus/clientCard/types.d.ts +0 -134
  924. package/es/plus/clientCard/utils.d.ts +0 -8
  925. package/es/plus/clientName/index.d.ts +0 -5
  926. package/es/plus/clientName/type.d.ts +0 -13
  927. package/es/plus/clientName/utils.d.ts +0 -2
  928. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
  929. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
  930. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  931. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  932. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  933. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  934. package/es/plus/contactInfo/locales.d.ts +0 -15
  935. package/es/plus/contactInfo/types.d.ts +0 -91
  936. package/es/plus/contactInfo/utils.d.ts +0 -7
  937. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  938. package/es/plus/noteModal/locales.d.ts +0 -33
  939. package/es/plus/noteModal/types.d.ts +0 -19
  940. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
  941. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  942. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
  943. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  944. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  945. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
  946. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  947. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  948. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  949. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  950. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  951. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
  952. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
  953. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  954. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  955. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  956. package/es/plus/productSelect/utils.d.ts +0 -39
  957. package/es/plus/selectHolder/locales.d.ts +0 -24
  958. package/es/plus/selectHolder/types.d.ts +0 -104
  959. package/es/plus/selectHolder/utils.d.ts +0 -9
  960. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  961. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
  962. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
  963. package/es/plus/walletEditor/locales.d.ts +0 -135
  964. package/es/plus/walletEditor/types.d.ts +0 -52
  965. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  966. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  967. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  968. package/es/pro/Login2.0/locales.d.ts +0 -543
  969. package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  970. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
  971. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
  972. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
  973. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
  974. package/es/pro/Login2.0/types.d.ts +0 -167
  975. package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
  976. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  977. package/es/pro/Selector/Selector.d.ts +0 -5
  978. package/es/pro/Selector/SelectorGroup.d.ts +0 -11
  979. package/es/pro/Selector/components/Card/index.d.ts +0 -27
  980. package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  981. package/es/pro/Selector/components/NumericStepper/index.d.ts +0 -41
  982. package/es/pro/Selector/components/index.d.ts +0 -2
  983. package/es/pro/Selector/demo.d.ts +0 -3
  984. package/es/pro/Selector/hooks/useSelectionController.d.ts +0 -42
  985. package/es/pro/Selector/index.d.ts +0 -8
  986. package/es/pro/Selector/locales.d.ts +0 -42
  987. package/es/pro/Selector/types.d.ts +0 -114
  988. package/es/pro/Selector/utils/index.d.ts +0 -49
  989. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  990. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  991. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  992. package/es/pro/comprehensiveSearch/types.d.ts +0 -32
  993. package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
  994. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  995. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  996. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  997. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  998. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
  999. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
  1000. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
  1001. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
  1002. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
  1003. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
  1004. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
  1005. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
  1006. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
  1007. package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
  1008. package/es/pro/priceKeyboard/utils.d.ts +0 -31
  1009. package/es/pro/skuDetailModal/locales.d.ts +0 -48
  1010. package/es/pro/skuDetailModal/types.d.ts +0 -348
  1011. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
  1012. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
  1013. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
  1014. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
  1015. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
  1016. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
  1017. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
  1018. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
  1019. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
  1020. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  1021. package/lib/components/authentication/admin/AuthMethods/types.d.ts +0 -76
  1022. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  1023. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  1024. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  1025. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  1026. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  1027. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  1028. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
  1029. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  1030. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  1031. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  1032. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
  1033. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  1034. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
  1035. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
  1036. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  1037. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
  1038. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  1039. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
  1040. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
  1041. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  1042. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
  1043. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  1044. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
  1045. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  1046. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
  1047. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  1048. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
  1049. package/lib/components/authentication/index.d.ts +0 -0
  1050. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  1051. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  1052. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
  1053. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  1054. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  1055. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
  1056. package/lib/components/booking/model.d.ts +0 -120
  1057. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
  1058. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
  1059. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
  1060. package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
  1061. package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
  1062. package/lib/components/checkout/constants.d.ts +0 -2
  1063. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
  1064. package/lib/components/checkout/locales.d.ts +0 -513
  1065. package/lib/components/checkout/styles.d.ts +0 -67
  1066. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  1067. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  1068. package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  1069. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  1070. package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
  1071. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  1072. package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
  1073. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  1074. package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
  1075. package/lib/components/list/hooks/useDevice.d.ts +0 -24
  1076. package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
  1077. package/lib/components/list/locales.d.ts +0 -66
  1078. package/lib/components/list/types.d.ts +0 -178
  1079. package/lib/components/list/utils/getText.d.ts +0 -53
  1080. package/lib/components/list/utils/index.d.ts +0 -19
  1081. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -5
  1082. package/lib/components/pay/toB/hooks.d.ts +0 -12
  1083. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  1084. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  1085. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  1086. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
  1087. package/lib/components/pay/toC/locales.d.ts +0 -301
  1088. package/lib/components/pay/toC/status.d.ts +0 -13
  1089. package/lib/components/shoppingCart/locales.d.ts +0 -36
  1090. package/lib/components/shoppingCart/type.d.ts +0 -50
  1091. package/lib/components/subTotal/locales.d.ts +0 -42
  1092. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  1093. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  1094. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  1095. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  1096. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  1097. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  1098. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  1099. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -83
  1100. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  1101. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  1102. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  1103. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  1104. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  1105. package/lib/components/ticketBooking/context/index.d.ts +0 -2
  1106. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  1107. package/lib/components/ticketBooking/locales.d.ts +0 -201
  1108. package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
  1109. package/lib/components/wallet/utils.d.ts +0 -48
  1110. package/lib/components/walletList/locales.d.ts +0 -27
  1111. package/lib/components/walletList/types/index.d.ts +0 -194
  1112. package/lib/hooks/printer.d.ts +0 -4
  1113. package/lib/hooks/useEngineContext.d.ts +0 -4
  1114. package/lib/hooks/useLogger.d.ts +0 -2
  1115. package/lib/hooks/useToast.d.ts +0 -2
  1116. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  1117. package/lib/plus/clientCard/locales.d.ts +0 -18
  1118. package/lib/plus/clientCard/types.d.ts +0 -134
  1119. package/lib/plus/clientCard/utils.d.ts +0 -8
  1120. package/lib/plus/clientName/index.d.ts +0 -5
  1121. package/lib/plus/clientName/type.d.ts +0 -13
  1122. package/lib/plus/clientName/utils.d.ts +0 -2
  1123. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
  1124. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
  1125. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  1126. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  1127. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  1128. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  1129. package/lib/plus/contactInfo/locales.d.ts +0 -15
  1130. package/lib/plus/contactInfo/types.d.ts +0 -91
  1131. package/lib/plus/contactInfo/utils.d.ts +0 -7
  1132. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  1133. package/lib/plus/noteModal/locales.d.ts +0 -33
  1134. package/lib/plus/noteModal/types.d.ts +0 -19
  1135. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
  1136. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  1137. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
  1138. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  1139. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  1140. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
  1141. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  1142. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  1143. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  1144. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  1145. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  1146. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
  1147. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
  1148. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  1149. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  1150. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  1151. package/lib/plus/productSelect/utils.d.ts +0 -39
  1152. package/lib/plus/selectHolder/locales.d.ts +0 -24
  1153. package/lib/plus/selectHolder/types.d.ts +0 -104
  1154. package/lib/plus/selectHolder/utils.d.ts +0 -9
  1155. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  1156. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
  1157. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
  1158. package/lib/plus/walletEditor/locales.d.ts +0 -135
  1159. package/lib/plus/walletEditor/types.d.ts +0 -52
  1160. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  1161. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  1162. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  1163. package/lib/pro/Login2.0/locales.d.ts +0 -543
  1164. package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  1165. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -16
  1166. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -11
  1167. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -10
  1168. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -21
  1169. package/lib/pro/Login2.0/types.d.ts +0 -167
  1170. package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
  1171. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  1172. package/lib/pro/Selector/Selector.d.ts +0 -5
  1173. package/lib/pro/Selector/SelectorGroup.d.ts +0 -11
  1174. package/lib/pro/Selector/components/Card/index.d.ts +0 -27
  1175. package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  1176. package/lib/pro/Selector/components/NumericStepper/index.d.ts +0 -41
  1177. package/lib/pro/Selector/components/index.d.ts +0 -2
  1178. package/lib/pro/Selector/demo.d.ts +0 -3
  1179. package/lib/pro/Selector/hooks/useSelectionController.d.ts +0 -42
  1180. package/lib/pro/Selector/index.d.ts +0 -8
  1181. package/lib/pro/Selector/locales.d.ts +0 -42
  1182. package/lib/pro/Selector/types.d.ts +0 -114
  1183. package/lib/pro/Selector/utils/index.d.ts +0 -49
  1184. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  1185. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  1186. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  1187. package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
  1188. package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
  1189. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  1190. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  1191. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  1192. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  1193. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
  1194. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
  1195. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
  1196. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
  1197. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
  1198. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
  1199. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
  1200. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
  1201. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
  1202. package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
  1203. package/lib/pro/priceKeyboard/utils.d.ts +0 -31
  1204. package/lib/pro/skuDetailModal/locales.d.ts +0 -48
  1205. package/lib/pro/skuDetailModal/types.d.ts +0 -348
@@ -0,0 +1,247 @@
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); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ /**
14
+ * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
15
+ */
16
+
17
+ import React, { useMemo, useState, useRef } from 'react';
18
+ import { locales } from '@pisell/utils';
19
+ import { PisellToast } from '@pisell/materials';
20
+ import { SKUCard } from "../../../../pro/Cards";
21
+ import { useStore } from "../../hooks";
22
+ import { calculateOptionItem, transformOptionGroup } from "../../utils";
23
+ import OptionsModal from "../OptionsModal";
24
+ import OptionItemCard from "./OptionItemCard";
25
+ import "./index.less";
26
+ var OptionsCard = function OptionsCard(props) {
27
+ var _props$dataSource, _props$parentDataSour2, _props$optionItemValu2, _props$dataSource3, _props$optionItemValu4;
28
+ var _ref = (props === null || props === void 0 ? void 0 : props.dataSource) || {},
29
+ uniqueKey = _ref._key,
30
+ selected = _ref.selected,
31
+ disabled = _ref.disabled;
32
+ var _ref2 = (props === null || props === void 0 || (_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource._original) || {},
33
+ cover = _ref2.cover,
34
+ title = _ref2.title,
35
+ name = _ref2.name,
36
+ product_subtitle = _ref2.product_subtitle,
37
+ price = _ref2.price,
38
+ price_type = _ref2.price_type,
39
+ option_group = _ref2.option_group;
40
+ var symbol = useStore(function (s) {
41
+ return s.symbol;
42
+ });
43
+ var skuCardConfig = useStore(function (s) {
44
+ return s.skuCardConfig;
45
+ });
46
+ var _useState = useState(false),
47
+ _useState2 = _slicedToArray(_useState, 2),
48
+ isOpen = _useState2[0],
49
+ setIsOpen = _useState2[1];
50
+ var _useState3 = useState([]),
51
+ _useState4 = _slicedToArray(_useState3, 2),
52
+ modalDataSource = _useState4[0],
53
+ setModalDataSource = _useState4[1];
54
+ var _useState5 = useState({}),
55
+ _useState6 = _slicedToArray(_useState5, 2),
56
+ modalValue = _useState6[0],
57
+ setModalValue = _useState6[1];
58
+ // 当前编辑的key
59
+ var currentEditIndexRef = useRef(-1);
60
+ var _useState7 = useState(-1),
61
+ _useState8 = _slicedToArray(_useState7, 2),
62
+ currentEditIndex = _useState8[0],
63
+ setCurrentEditIndex = _useState8[1];
64
+ var _indicator = /*#__PURE__*/React.cloneElement(props === null || props === void 0 ? void 0 : props.indicator);
65
+
66
+ // 根据当前Selector已选择了多少选项计算剩余可选数量
67
+ // 全局最大值 - 所有已选项的数量总和
68
+ var selectorRemainingCount = useMemo(function () {
69
+ var _props$parentDataSour;
70
+ var globalMax = (props === null || props === void 0 || (_props$parentDataSour = props.parentDataSource) === null || _props$parentDataSour === void 0 || (_props$parentDataSour = _props$parentDataSour.ruleConfig) === null || _props$parentDataSour === void 0 ? void 0 : _props$parentDataSour.max) || 0;
71
+ if (globalMax <= 0) return Infinity; // 无限制
72
+
73
+ var values = Array.isArray(props === null || props === void 0 ? void 0 : props.values) ? props === null || props === void 0 ? void 0 : props.values : [props === null || props === void 0 ? void 0 : props.values];
74
+ var totalSelected = values.reduce(function (sum, i) {
75
+ return sum + ((i === null || i === void 0 ? void 0 : i.quantity) || 0);
76
+ }, 0) || 0;
77
+ return Math.max(0, globalMax - totalSelected);
78
+ }, [props === null || props === void 0 || (_props$parentDataSour2 = props.parentDataSource) === null || _props$parentDataSour2 === void 0 || (_props$parentDataSour2 = _props$parentDataSour2.ruleConfig) === null || _props$parentDataSour2 === void 0 ? void 0 : _props$parentDataSour2.max, props === null || props === void 0 ? void 0 : props.values]);
79
+
80
+ // 当前选项剩余可选数量 = min(全局剩余, 选项自己的剩余)
81
+ var optionRemainingCount = useMemo(function () {
82
+ var _props$optionItemValu, _props$dataSource2;
83
+ var currentQuantity = (props === null || props === void 0 || (_props$optionItemValu = props.optionItemValue) === null || _props$optionItemValu === void 0 ? void 0 : _props$optionItemValu.quantity) || 0;
84
+ var optionMax = (props === null || props === void 0 || (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 || (_props$dataSource2 = _props$dataSource2.ruleConfig) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.max) || 0;
85
+
86
+ // 选项自己的剩余数量(0表示无限制)
87
+ var optionRemaining = optionMax > 0 ? optionMax - currentQuantity : Infinity;
88
+
89
+ // 取Selector剩余和当前选项剩余的最小值
90
+ return Math.max(0, Math.min(selectorRemainingCount, optionRemaining));
91
+ }, [props === null || props === void 0 || (_props$optionItemValu2 = props.optionItemValue) === null || _props$optionItemValu2 === void 0 ? void 0 : _props$optionItemValu2.quantity, selectorRemainingCount, props === null || props === void 0 || (_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 || (_props$dataSource3 = _props$dataSource3.ruleConfig) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.max]);
92
+
93
+ // 弹窗剩余可选数量:如果是单选场景下,新增数据时,optionRemainingCount在小于等于0时,设置为1,用于单选能能够切换选择
94
+ var modalRemainingCount = useMemo(function () {
95
+ if ((props === null || props === void 0 ? void 0 : props.mode) === 'single' && currentEditIndex === -1) {
96
+ return optionRemainingCount <= 0 ? 1 : optionRemainingCount;
97
+ }
98
+ return optionRemainingCount;
99
+ }, [props === null || props === void 0 ? void 0 : props.mode, optionRemainingCount, currentEditIndex]);
100
+
101
+ // 价格文本
102
+ var priceText = useMemo(function () {
103
+ return "".concat(price_type === 'markdown' ? '-' : '').concat(symbol).concat(Math.abs(Number(price || 0)));
104
+ }, [price, price_type, symbol]);
105
+
106
+ // 已选择的选项值
107
+ var selectedOptions = useMemo(function () {
108
+ var _props$optionItemValu3;
109
+ return (props === null || props === void 0 || (_props$optionItemValu3 = props.optionItemValue) === null || _props$optionItemValu3 === void 0 || (_props$optionItemValu3 = _props$optionItemValu3.data) === null || _props$optionItemValu3 === void 0 ? void 0 : _props$optionItemValu3._data) || [];
110
+ }, [props === null || props === void 0 || (_props$optionItemValu4 = props.optionItemValue) === null || _props$optionItemValu4 === void 0 || (_props$optionItemValu4 = _props$optionItemValu4.data) === null || _props$optionItemValu4 === void 0 ? void 0 : _props$optionItemValu4._data]);
111
+ var transformDataSource = function transformDataSource() {
112
+ if (!!(option_group !== null && option_group !== void 0 && option_group.length)) {
113
+ var renderOptionGroup = transformOptionGroup(option_group);
114
+ setModalDataSource(renderOptionGroup || []);
115
+ }
116
+ };
117
+ var handleClick = function handleClick() {
118
+ if (disabled) {
119
+ console.log('handleClick_disabled>>>>>', disabled);
120
+ return;
121
+ }
122
+ var needShowToast = false;
123
+ // 如果是单选场景下,如果剩余可选量小于等于0,但是点击的不是已选中选项,则不禁止用户点击,用于单选能能够切换选择
124
+ if (optionRemainingCount <= 0) {
125
+ if ((props === null || props === void 0 ? void 0 : props.mode) === 'single' && !selected) {
126
+ needShowToast = false;
127
+ } else {
128
+ needShowToast = true;
129
+ }
130
+ } else {
131
+ needShowToast = false;
132
+ }
133
+ if (needShowToast) {
134
+ PisellToast({
135
+ content: locales.getText('pisell2.skuOptionsSelection.optionItemCard.overSelected')
136
+ });
137
+ return;
138
+ }
139
+ setModalValue({});
140
+ currentEditIndexRef.current = -1;
141
+ setCurrentEditIndex(-1);
142
+ setIsOpen(true);
143
+ transformDataSource();
144
+ };
145
+ var handleUpdateClick = function handleUpdateClick(index) {
146
+ var _props$optionItemValu5;
147
+ currentEditIndexRef.current = index;
148
+ setCurrentEditIndex(index);
149
+ setIsOpen(true);
150
+ setModalValue((props === null || props === void 0 || (_props$optionItemValu5 = props.optionItemValue) === null || _props$optionItemValu5 === void 0 || (_props$optionItemValu5 = _props$optionItemValu5.data) === null || _props$optionItemValu5 === void 0 || (_props$optionItemValu5 = _props$optionItemValu5._data) === null || _props$optionItemValu5 === void 0 ? void 0 : _props$optionItemValu5[index]) || {});
151
+ transformDataSource();
152
+ };
153
+ var handleConfirm = function handleConfirm(v) {
154
+ var _props$actions;
155
+ console.log('onConfirm_v>>>>>', v, props === null || props === void 0 ? void 0 : props.optionItemValue, props === null || props === void 0 ? void 0 : props.values);
156
+ var _calculateOptionItem = calculateOptionItem({
157
+ editIndex: currentEditIndexRef.current,
158
+ optionItemValue: props === null || props === void 0 ? void 0 : props.optionItemValue,
159
+ optionItemDataSource: props === null || props === void 0 ? void 0 : props.dataSource,
160
+ data: v
161
+ }),
162
+ _calculateOptionItem2 = _slicedToArray(_calculateOptionItem, 3),
163
+ newOriginal = _calculateOptionItem2[0],
164
+ totalPrice = _calculateOptionItem2[1],
165
+ totalQuantity = _calculateOptionItem2[2];
166
+ props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || _props$actions.update(uniqueKey, {
167
+ quantity: totalQuantity,
168
+ totalPrice: totalPrice,
169
+ data: newOriginal
170
+ });
171
+ setIsOpen(false);
172
+ setModalValue({});
173
+ };
174
+ var handleQuantityChange = function handleQuantityChange(_index, _quantity) {
175
+ var _props$optionItemValu6, _props$actions2;
176
+ var currentData = (props === null || props === void 0 || (_props$optionItemValu6 = props.optionItemValue) === null || _props$optionItemValu6 === void 0 || (_props$optionItemValu6 = _props$optionItemValu6.data) === null || _props$optionItemValu6 === void 0 || (_props$optionItemValu6 = _props$optionItemValu6._data) === null || _props$optionItemValu6 === void 0 ? void 0 : _props$optionItemValu6[_index]) || {};
177
+ var _calculateOptionItem3 = calculateOptionItem({
178
+ editIndex: _index,
179
+ optionItemValue: props === null || props === void 0 ? void 0 : props.optionItemValue,
180
+ optionItemDataSource: props === null || props === void 0 ? void 0 : props.dataSource,
181
+ data: _objectSpread(_objectSpread({}, currentData), {}, {
182
+ quantity: _quantity
183
+ })
184
+ }),
185
+ _calculateOptionItem4 = _slicedToArray(_calculateOptionItem3, 3),
186
+ newOriginal = _calculateOptionItem4[0],
187
+ totalPrice = _calculateOptionItem4[1],
188
+ totalQuantity = _calculateOptionItem4[2];
189
+ props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 || _props$actions2.update(uniqueKey, {
190
+ quantity: totalQuantity,
191
+ totalPrice: totalPrice,
192
+ data: newOriginal
193
+ });
194
+ };
195
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
196
+ className: "pisell-plus-sku-options-card",
197
+ onClick: handleClick
198
+ }, /*#__PURE__*/React.createElement("div", {
199
+ onClick: function onClick(e) {
200
+ e.stopPropagation();
201
+ // 如果当前是选中状态,再点击则直接取消选中
202
+ if (selected) {
203
+ var _props$actions3;
204
+ props === null || props === void 0 || (_props$actions3 = props.actions) === null || _props$actions3 === void 0 || _props$actions3.update(uniqueKey, {
205
+ quantity: 0
206
+ });
207
+ } else {
208
+ handleClick();
209
+ }
210
+ },
211
+ className: "pisell-plus-sku-options-card-indicator-wrapper"
212
+ }, _indicator, /*#__PURE__*/React.createElement("div", {
213
+ className: "pisell-plus-sku-options-card-indicator-wrapper-overlay"
214
+ })), /*#__PURE__*/React.createElement(SKUCard, {
215
+ cover: cover,
216
+ title: title || name || '',
217
+ subtitle: product_subtitle,
218
+ price: priceText,
219
+ arrow: true,
220
+ selected: selected,
221
+ disabled: disabled,
222
+ skuCardConfig: skuCardConfig
223
+ })), (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 0 && /*#__PURE__*/React.createElement(OptionItemCard, {
224
+ optionItemValue: props === null || props === void 0 ? void 0 : props.optionItemValue,
225
+ parentDataSource: props === null || props === void 0 ? void 0 : props.parentDataSource,
226
+ dataSource: props === null || props === void 0 ? void 0 : props.dataSource,
227
+ data: selectedOptions,
228
+ remainingCount: optionRemainingCount,
229
+ onEdit: handleUpdateClick,
230
+ onQuantityChange: handleQuantityChange
231
+ }), isOpen && /*#__PURE__*/React.createElement(OptionsModal, {
232
+ parentDataSource: props === null || props === void 0 ? void 0 : props.parentDataSource,
233
+ dataSource: props === null || props === void 0 ? void 0 : props.dataSource,
234
+ modalDataSource: modalDataSource,
235
+ values: props === null || props === void 0 ? void 0 : props.values,
236
+ optionItemValue: props === null || props === void 0 ? void 0 : props.optionItemValue,
237
+ modalValue: modalValue,
238
+ remainingCount: modalRemainingCount,
239
+ open: isOpen,
240
+ title: title || name || '',
241
+ onCancel: function onCancel() {
242
+ return setIsOpen(false);
243
+ },
244
+ onConfirm: handleConfirm
245
+ }));
246
+ };
247
+ export default OptionsCard;
@@ -0,0 +1,113 @@
1
+ .pisell-plus-sku-options-card {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 10px;
5
+ cursor: pointer;
6
+
7
+ &-indicator-wrapper {
8
+ position: relative;
9
+
10
+ &-overlay {
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ height: 100%;
16
+ }
17
+ }
18
+
19
+ &-footer {
20
+ width: 100%;
21
+ display: flex;
22
+ justify-content: flex-end;
23
+ gap: 40px;
24
+ }
25
+ }
26
+
27
+ .pisell-plus-sku-options-card-option-item-card {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 12px;
31
+
32
+ &-item {
33
+ position: relative;
34
+ display: flex;
35
+ padding: 16px 16px 0 16px;
36
+ flex-direction: column;
37
+ align-items: flex-start;
38
+ gap: 20px;
39
+ border-radius: 12px;
40
+ background: #f5f5f5;
41
+
42
+ &-float {
43
+ position: absolute;
44
+ top: 0;
45
+ left: 0;
46
+ min-height: 22px;
47
+ padding: 0px 8px;
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ border-radius: 12px 0;
52
+ background: #fee4e2;
53
+ color: #b42318;
54
+ font-size: 10px;
55
+ font-weight: 400;
56
+ }
57
+
58
+ &-content {
59
+ width: 100%;
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: 4px;
63
+
64
+ &-top {
65
+ display: flex;
66
+ justify-content: space-between;
67
+ align-items: center;
68
+ }
69
+
70
+ &-title {
71
+ color: #101828;
72
+ font-size: 14px;
73
+ font-weight: 600;
74
+ }
75
+
76
+ &-price {
77
+ color: #101828;
78
+ font-size: 16px;
79
+ font-weight: 400;
80
+ }
81
+
82
+ &-text {
83
+ color: #667085;
84
+ font-size: 14px;
85
+ font-weight: 400;
86
+ line-height: 20px;
87
+ }
88
+ }
89
+
90
+ &-footer {
91
+ width: 100%;
92
+ min-height: 56px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-top: 1px solid #d0d5dd;
96
+
97
+ &-stepper {
98
+ display: flex;
99
+ flex: 1;
100
+ }
101
+
102
+ &-info {
103
+ padding-left: 12px;
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: space-between;
107
+ align-self: stretch;
108
+ gap: 12px;
109
+ cursor: pointer;
110
+ }
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,15 @@
1
+ interface OptionsModalProps {
2
+ parentDataSource: any;
3
+ dataSource: any;
4
+ modalDataSource: any;
5
+ values: any;
6
+ optionItemValue?: any;
7
+ modalValue: any;
8
+ remainingCount: number;
9
+ open: boolean;
10
+ title: string;
11
+ onCancel: () => void;
12
+ onConfirm: (v: any) => void;
13
+ }
14
+ declare const OptionsModal: (props: OptionsModalProps) => JSX.Element;
15
+ export default OptionsModal;
@@ -0,0 +1,166 @@
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ 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; }
4
+ 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; }
5
+ 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; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
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
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import React, { useMemo, useState, useRef, useEffect } from 'react';
17
+ import { PisellModal, Button } from '@pisell/materials';
18
+ import Selector from "../../../../pro/Selector";
19
+ import NumericStepper from "../../../../pro/NumericStepper";
20
+ import { useStore } from "../../hooks";
21
+ var SelectorGroup = Selector.Group;
22
+ var OptionsModal = function OptionsModal(props) {
23
+ var _props$optionItemValu, _props$dataSource2, _props$modalValue4, _props$dataSource4;
24
+ var open = props.open,
25
+ title = props.title,
26
+ remainingCount = props.remainingCount,
27
+ onCancel = props.onCancel,
28
+ onConfirm = props.onConfirm;
29
+ var selectorGroupRef = useRef(null);
30
+ var _useState = useState(1),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ stepNumber = _useState2[0],
33
+ setStepNumber = _useState2[1];
34
+ var _useState3 = useState((props === null || props === void 0 ? void 0 : props.modalValue) || {}),
35
+ _useState4 = _slicedToArray(_useState3, 2),
36
+ modalValue = _useState4[0],
37
+ setModalValue = _useState4[1];
38
+ var customConfig = useStore(function (s) {
39
+ return s.customConfig;
40
+ });
41
+ useEffect(function () {
42
+ var _props$modalValue;
43
+ if (!!(props !== null && props !== void 0 && (_props$modalValue = props.modalValue) !== null && _props$modalValue !== void 0 && _props$modalValue.quantity)) {
44
+ var _props$modalValue2;
45
+ // 如果optionItemValue有quantity,则直接设置为optionItemValue的quantity
46
+ setStepNumber(props === null || props === void 0 || (_props$modalValue2 = props.modalValue) === null || _props$modalValue2 === void 0 ? void 0 : _props$modalValue2.quantity);
47
+ } else if (remainingCount > 0) {
48
+ // 如果剩余可选数量大于0,则设置为剩余可选数量
49
+ setStepNumber(1);
50
+ } else {
51
+ // 如果剩余可选数量小于等于0,则设置为0
52
+ setStepNumber(0);
53
+ }
54
+ }, [remainingCount, props === null || props === void 0 || (_props$optionItemValu = props.optionItemValue) === null || _props$optionItemValu === void 0 ? void 0 : _props$optionItemValu.quantity]);
55
+
56
+ // 能选择的最大数量,需要和剩余可选数量比较,取较小值
57
+ var canSelectedMax = useMemo(function () {
58
+ var _props$modalValue3, _props$dataSource;
59
+ // 获取当前选项已选择的数量(编辑场景下有值,新增场景为0)
60
+ var currentQuantity = (props === null || props === void 0 || (_props$modalValue3 = props.modalValue) === null || _props$modalValue3 === void 0 ? void 0 : _props$modalValue3.quantity) || 0;
61
+
62
+ // 实际剩余可选数量 = 传入的剩余可选数量 + 当前选项已选择的数量
63
+ // 编辑场景:当前选项的数量应该被加回可选配额中
64
+ // 新增场景:currentQuantity 为 0,不影响计算
65
+ var effectiveRemainingCount = remainingCount + currentQuantity;
66
+
67
+ // 如果实际剩余可选数量小于等于0,则返回0
68
+ if (effectiveRemainingCount <= 0) return 0;
69
+
70
+ // 获取数据源的最大可选数量
71
+ var _max = (props === null || props === void 0 || (_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 || (_props$dataSource = _props$dataSource.ruleConfig) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.max) || 0;
72
+ // 比较实际剩余可选数量和数据源的最大可选数量,取较小值
73
+ var _effectiveMax = Math.min(effectiveRemainingCount, _max);
74
+ // 如果较小值大于0,则返回较小值,否则返回Infinity
75
+ return _effectiveMax > 0 ? _effectiveMax : Infinity;
76
+ }, [remainingCount, props === null || props === void 0 || (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 || (_props$dataSource2 = _props$dataSource2.ruleConfig) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.max, props === null || props === void 0 || (_props$modalValue4 = props.modalValue) === null || _props$modalValue4 === void 0 ? void 0 : _props$modalValue4.quantity]);
77
+
78
+ // 能选择的最小数量
79
+ var canSelectedMin = useMemo(function () {
80
+ var _props$dataSource3;
81
+ return (props === null || props === void 0 || (_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 || (_props$dataSource3 = _props$dataSource3.ruleConfig) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.min) || 1;
82
+ }, [props === null || props === void 0 || (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 || (_props$dataSource4 = _props$dataSource4.ruleConfig) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.min]);
83
+ var handleConfirm = /*#__PURE__*/function () {
84
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
85
+ var _selectorGroupRef$cur, result;
86
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
87
+ while (1) switch (_context.prev = _context.next) {
88
+ case 0:
89
+ _context.prev = 0;
90
+ _context.next = 3;
91
+ return (_selectorGroupRef$cur = selectorGroupRef.current) === null || _selectorGroupRef$cur === void 0 ? void 0 : _selectorGroupRef$cur.validate();
92
+ case 3:
93
+ result = _context.sent;
94
+ if (result) {
95
+ onConfirm(_objectSpread(_objectSpread({}, modalValue), {}, {
96
+ quantity: stepNumber
97
+ }));
98
+ }
99
+ _context.next = 10;
100
+ break;
101
+ case 7:
102
+ _context.prev = 7;
103
+ _context.t0 = _context["catch"](0);
104
+ console.log('handleConfirm_error>>>>>', _context.t0);
105
+ case 10:
106
+ case "end":
107
+ return _context.stop();
108
+ }
109
+ }, _callee, null, [[0, 7]]);
110
+ }));
111
+ return function handleConfirm() {
112
+ return _ref.apply(this, arguments);
113
+ };
114
+ }();
115
+ return /*#__PURE__*/React.createElement(PisellModal, {
116
+ open: open,
117
+ onCancel: onCancel,
118
+ title: title,
119
+ footer: /*#__PURE__*/React.createElement("div", {
120
+ className: "pisell-plus-sku-options-card-footer"
121
+ }, /*#__PURE__*/React.createElement(NumericStepper, {
122
+ min: canSelectedMin,
123
+ max: canSelectedMax,
124
+ value: stepNumber,
125
+ onChange: function onChange(value) {
126
+ setStepNumber(value);
127
+ },
128
+ showInput: true
129
+ }), /*#__PURE__*/React.createElement(Button, {
130
+ type: "primary",
131
+ onClick: handleConfirm,
132
+ size: "large",
133
+ block: true,
134
+ style: {
135
+ backgroundColor: '#7F56D9',
136
+ borderColor: '#7F56D9'
137
+ }
138
+ }, "\u786E\u5B9A")),
139
+ footerDivider: false,
140
+ destroyOnClose: true,
141
+ bodyStyle: {
142
+ paddingLeft: 0,
143
+ paddingRight: 0,
144
+ overflow: 'hidden',
145
+ display: 'flex',
146
+ flexDirection: 'column'
147
+ },
148
+ width: (customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalWidth) || '480px',
149
+ mobileModalHeight: 'auto'
150
+ }, /*#__PURE__*/React.createElement(SelectorGroup, {
151
+ ref: selectorGroupRef,
152
+ dataSource: props === null || props === void 0 ? void 0 : props.modalDataSource,
153
+ value: (modalValue === null || modalValue === void 0 ? void 0 : modalValue.data) || {},
154
+ onChange: function onChange(value) {
155
+ setModalValue(_objectSpread(_objectSpread({}, modalValue), {}, {
156
+ data: value
157
+ }));
158
+ },
159
+ style: {
160
+ height: '100%',
161
+ padding: '0 24px',
162
+ overflowY: 'auto'
163
+ }
164
+ }));
165
+ };
166
+ export default OptionsModal;
@@ -0,0 +1,46 @@
1
+ import React, { useMemo } from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import "./index.less";
4
+ import { useStore } from "../../hooks";
5
+ import Decimal from 'decimal.js';
6
+ var TitleExtra = function TitleExtra(props) {
7
+ var _ref = props || {},
8
+ values = _ref.values;
9
+ var symbol = useStore(function (s) {
10
+ return s.symbol;
11
+ });
12
+ var transformText = function transformText(textKey, tag, value) {
13
+ var text = locales.getText(textKey);
14
+ return text.replace("{{".concat(tag, "}}"), value);
15
+ };
16
+ var numText = useMemo(function () {
17
+ var quantity = 0;
18
+ if (Array.isArray(values)) {
19
+ quantity = values.reduce(function (sum, i) {
20
+ return sum + ((i === null || i === void 0 ? void 0 : i.quantity) || 0);
21
+ }, 0) || 0;
22
+ } else {
23
+ quantity = (values === null || values === void 0 ? void 0 : values.quantity) || 0;
24
+ }
25
+ return transformText('pisell2.skuOptionsSelection.titleExtra.alreadySelected', 'num', quantity);
26
+ }, [props === null || props === void 0 ? void 0 : props.values]);
27
+ var priceText = useMemo(function () {
28
+ var price = 0;
29
+ if (Array.isArray(values)) {
30
+ price = values === null || values === void 0 ? void 0 : values.reduce(function (sum, i) {
31
+ return sum.plus((i === null || i === void 0 ? void 0 : i.totalPrice) || 0);
32
+ }, new Decimal(0)).toNumber();
33
+ } else {
34
+ price = Number((values === null || values === void 0 ? void 0 : values.totalPrice) || 0);
35
+ }
36
+ return transformText('pisell2.skuOptionsSelection.titleExtra.totalPrice', 'price', "".concat(price >= 0 ? '' : '-').concat(symbol).concat(Math.abs(price)));
37
+ }, [values, symbol]);
38
+ return /*#__PURE__*/React.createElement("div", {
39
+ className: "sku-options-selection-title-extra"
40
+ }, /*#__PURE__*/React.createElement("span", {
41
+ className: "sku-options-selection-title-extra-price"
42
+ }, priceText), /*#__PURE__*/React.createElement("span", {
43
+ className: "sku-options-selection-title-extra-num"
44
+ }, numText));
45
+ };
46
+ export default TitleExtra;
@@ -0,0 +1,23 @@
1
+ .sku-options-selection-title-extra {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: flex-end;
5
+ flex: 1;
6
+ flex-wrap: wrap;
7
+ flex-shrink: 0;
8
+
9
+ &-price {
10
+ color: #d92d20;
11
+ font-size: 14px;
12
+ font-weight: 600;
13
+ white-space: nowrap;
14
+ }
15
+
16
+ &-num {
17
+ margin-left: 10px;
18
+ color: #475467;
19
+ font-size: 14px;
20
+ font-weight: 400;
21
+ white-space: nowrap;
22
+ }
23
+ }