@pisell/private-materials 6.3.159 → 6.3.161

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 (304) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +43 -4
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/index.d.ts +1 -0
  23. package/es/components/appointmentBooking/utils.d.ts +6 -1
  24. package/es/components/appointmentBooking/utils.js +123 -32
  25. package/es/components/booking/addons/model.d.ts +1 -10
  26. package/es/components/booking/components/footer/index.d.ts +1 -0
  27. package/es/components/booking/components/voucher/index.d.ts +1 -0
  28. package/es/components/booking/deposit/index.d.ts +1 -0
  29. package/es/components/booking/forms/model.d.ts +1 -10
  30. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  31. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  32. package/es/components/booking/info/date/index.d.ts +1 -0
  33. package/es/components/booking/info/header/index.d.ts +1 -0
  34. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  35. package/es/components/booking/info/index.d.ts +1 -0
  36. package/es/components/booking/info/model.d.ts +1 -10
  37. package/es/components/booking/info/service/Lists.d.ts +1 -0
  38. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  39. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  41. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  42. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  43. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  44. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  45. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  46. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  47. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  48. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  49. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  50. package/es/components/booking/model.d.ts +1 -9
  51. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  52. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  53. package/es/components/booking/notes/model.d.ts +1 -10
  54. package/es/components/booking/payments/model.d.ts +1 -10
  55. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  56. package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
  57. package/es/components/ecocup/cupList/index.d.ts +1 -0
  58. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  59. package/es/components/eftposPay/amount.d.ts +2 -1
  60. package/es/components/eftposPay/app.d.ts +1 -0
  61. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  62. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  63. package/es/components/eftposPay/device.d.ts +2 -1
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/index.d.ts +1 -0
  66. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  67. package/es/components/eftposPay/pay.d.ts +1 -0
  68. package/es/components/eftposPay/store/index.d.ts +3 -3
  69. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  72. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  80. package/es/components/eventBooking/components/Voucher/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  83. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  84. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  85. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  86. package/es/components/eventBooking/index.d.ts +1 -0
  87. package/es/components/index.d.ts +2 -1
  88. package/es/components/index.js +2 -1
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  93. package/es/components/pay/toC/model.d.ts +1 -9
  94. package/es/components/pisellCashCounting/hooks.d.ts +1 -0
  95. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  96. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  97. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  98. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  99. package/es/components/productExtension/index.d.ts +1 -0
  100. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  101. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  102. package/es/components/productStockCheckModal/index.d.ts +5 -0
  103. package/es/components/productStockCheckModal/index.js +148 -0
  104. package/es/components/productStockCheckModal/index.less +122 -0
  105. package/es/components/productStockCheckModal/locales.d.ts +63 -0
  106. package/es/components/productStockCheckModal/locales.js +62 -0
  107. package/es/components/productStockCheckModal/types.d.ts +26 -0
  108. package/es/components/productStockCheckModal/types.js +1 -0
  109. package/es/components/ruleSetting/index.d.ts +1 -0
  110. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  111. package/es/components/schedules/model.d.ts +1 -9
  112. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  115. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  116. package/es/components/schedules/products/index.d.ts +1 -0
  117. package/es/components/schedules/resources/index.d.ts +1 -0
  118. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  119. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  120. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  121. package/es/components/taxSelect/index.d.ts +1 -0
  122. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  123. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  124. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  125. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  126. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  127. package/es/components/ticketBooking/index.d.ts +1 -0
  128. package/es/components/walletList/index.d.ts +1 -0
  129. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  130. package/es/hooks/useCartProductStockCheck.d.ts +10 -0
  131. package/es/hooks/useCartProductStockCheck.js +153 -0
  132. package/es/index.d.ts +1 -0
  133. package/es/index.js +1 -0
  134. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  135. package/es/plus/orderList/config.d.ts +3 -2
  136. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  137. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
  138. package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  139. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  140. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  141. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +169 -8
  142. package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
  143. package/es/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
  144. package/es/plus/saasDevice/devicePlanning/locales.js +125 -0
  145. package/es/plus/saasLogin/utils.d.ts +5 -5
  146. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  147. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
  148. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  149. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  150. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  151. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  152. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  153. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  154. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  155. package/es/plus/walletPassGallery/index.d.ts +1 -0
  156. package/es/pro/Selector/demo.d.ts +1 -0
  157. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  158. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  159. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  160. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +42 -5
  161. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  162. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  163. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  164. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  165. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  166. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  167. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  168. package/lib/components/appointmentBooking/index.d.ts +1 -0
  169. package/lib/components/appointmentBooking/utils.d.ts +6 -1
  170. package/lib/components/appointmentBooking/utils.js +36 -2
  171. package/lib/components/booking/addons/model.d.ts +1 -10
  172. package/lib/components/booking/components/footer/index.d.ts +1 -0
  173. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  174. package/lib/components/booking/deposit/index.d.ts +1 -0
  175. package/lib/components/booking/forms/model.d.ts +1 -10
  176. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  177. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  178. package/lib/components/booking/info/date/index.d.ts +1 -0
  179. package/lib/components/booking/info/header/index.d.ts +1 -0
  180. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  181. package/lib/components/booking/info/index.d.ts +1 -0
  182. package/lib/components/booking/info/model.d.ts +1 -10
  183. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  184. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  185. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  186. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  187. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  188. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  189. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  190. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  191. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  192. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  193. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  194. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  195. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  196. package/lib/components/booking/model.d.ts +1 -9
  197. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  198. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  199. package/lib/components/booking/notes/model.d.ts +1 -10
  200. package/lib/components/booking/payments/model.d.ts +1 -10
  201. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  202. package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
  203. package/lib/components/ecocup/cupList/index.d.ts +1 -0
  204. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  205. package/lib/components/eftposPay/amount.d.ts +2 -1
  206. package/lib/components/eftposPay/app.d.ts +1 -0
  207. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  208. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  209. package/lib/components/eftposPay/device.d.ts +2 -1
  210. package/lib/components/eftposPay/hooks.d.ts +2 -2
  211. package/lib/components/eftposPay/index.d.ts +1 -0
  212. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  213. package/lib/components/eftposPay/pay.d.ts +1 -0
  214. package/lib/components/eftposPay/store/index.d.ts +3 -3
  215. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  216. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  218. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  219. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  220. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  221. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  223. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  224. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  225. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  226. package/lib/components/eventBooking/components/Voucher/index.d.ts +1 -0
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  228. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  229. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  230. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  231. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  232. package/lib/components/eventBooking/index.d.ts +1 -0
  233. package/lib/components/index.d.ts +2 -1
  234. package/lib/components/index.js +3 -0
  235. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  237. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  239. package/lib/components/pay/toC/model.d.ts +1 -9
  240. package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
  241. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  242. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  243. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  244. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  245. package/lib/components/productExtension/index.d.ts +1 -0
  246. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  247. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  248. package/lib/components/productStockCheckModal/index.d.ts +5 -0
  249. package/lib/components/productStockCheckModal/index.js +134 -0
  250. package/lib/components/productStockCheckModal/index.less +122 -0
  251. package/lib/components/productStockCheckModal/locales.d.ts +63 -0
  252. package/lib/components/productStockCheckModal/locales.js +86 -0
  253. package/lib/components/productStockCheckModal/types.d.ts +26 -0
  254. package/lib/components/productStockCheckModal/types.js +17 -0
  255. package/lib/components/ruleSetting/index.d.ts +1 -0
  256. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  257. package/lib/components/schedules/model.d.ts +1 -9
  258. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  259. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  260. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  261. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  262. package/lib/components/schedules/products/index.d.ts +1 -0
  263. package/lib/components/schedules/resources/index.d.ts +1 -0
  264. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  265. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  266. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  267. package/lib/components/taxSelect/index.d.ts +1 -0
  268. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  269. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  270. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  271. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  272. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  273. package/lib/components/ticketBooking/index.d.ts +1 -0
  274. package/lib/components/walletList/index.d.ts +1 -0
  275. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  276. package/lib/hooks/useCartProductStockCheck.d.ts +10 -0
  277. package/lib/hooks/useCartProductStockCheck.js +97 -0
  278. package/lib/index.d.ts +1 -0
  279. package/lib/index.js +3 -0
  280. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  281. package/lib/plus/orderList/config.d.ts +3 -2
  282. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  283. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
  284. package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  285. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  286. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  287. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +174 -16
  288. package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
  289. package/lib/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
  290. package/lib/plus/saasDevice/devicePlanning/locales.js +125 -0
  291. package/lib/plus/saasLogin/utils.d.ts +5 -5
  292. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  293. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
  294. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  295. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  296. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  297. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  298. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  299. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  300. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  301. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  302. package/lib/pro/Selector/demo.d.ts +1 -0
  303. package/lowcode/product-stock-check-modal/meta.ts +94 -0
  304. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CupListProps {
3
4
  data: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps, PosProps } from './const';
2
3
  import './device.less';
3
4
  /**
@@ -10,7 +11,7 @@ import './device.less';
10
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
12
  api: PayProps['api'];
12
13
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
14
15
  [keys: string]: unknown;
15
16
  } | undefined, other?: any) => void) | undefined;
16
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Linkly: ({ api, onChange }: any) => JSX.Element;
2
3
  export default Linkly;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
176
176
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
177
177
  type: EActionTypes;
178
178
  payload: {
179
- status: "warn" | "success" | "loading" | "fail" | "question";
179
+ status: "loading" | "success" | "warn" | "fail" | "question";
180
180
  };
181
181
  };
182
182
  /**
@@ -299,7 +299,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  amount?: string | number | undefined;
300
300
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
301
301
  order_id?: string | number | undefined;
302
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
302
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
303
303
  action?: "amount" | "pay" | "deviceList" | undefined;
304
304
  key?: number | undefined;
305
305
  step?: number | undefined;
@@ -310,7 +310,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
310
310
  net?: boolean | undefined;
311
311
  component?: string | undefined;
312
312
  form?: string | undefined;
313
- status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
313
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
314
314
  warn?: string | undefined;
315
315
  steps?: {
316
316
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ContinueButton: () => JSX.Element;
3
4
  export default ContinueButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DepositProps {
2
3
  showTitle?: boolean;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const VoucherCard: () => JSX.Element | null;
2
3
  export default VoucherCard;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -18,7 +18,8 @@ import EditBookingModal from './booking/editBookingModal';
18
18
  import StepController from './stepController';
19
19
  import PinModal from './pinModal';
20
20
  import PinVerifyModal from './pinVerifyModal';
21
+ import ProductStockCheckModal from './productStockCheckModal';
21
22
  import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
22
23
  import Registry from './systemSettings/registry';
23
24
  import PisellCashCounting from './pisellCashCounting';
24
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, PisellCashCounting, };
25
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, ProductStockCheckModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, PisellCashCounting, };
@@ -18,7 +18,8 @@ import EditBookingModal from "./booking/editBookingModal";
18
18
  import StepController from "./stepController";
19
19
  import PinModal from "./pinModal";
20
20
  import PinVerifyModal from "./pinVerifyModal";
21
+ import ProductStockCheckModal from "./productStockCheckModal";
21
22
  import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from "./authentication/admin";
22
23
  import Registry from "./systemSettings/registry";
23
24
  import PisellCashCounting from "./pisellCashCounting";
24
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, PisellCashCounting };
25
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, ProductStockCheckModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, PisellCashCounting };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const StripePayment: () => JSX.Element;
2
3
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PageLoading: () => JSX.Element;
2
3
  export default PageLoading;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PaymentRequestForm: () => JSX.Element | null;
2
3
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CashCountingConfirmPayload, PisellCashCountingProps } from './types';
2
3
  import type { PisellCashCountingModalRef } from './components/CashCountingModal/index';
3
4
  export declare function usePisellCashCounting({ value, defaultValue, currencyCode, currencySymbol, amountPrecision, denominations, disabled, countDisabled, onChange, onCountConfirm, onCountCancel, }: PisellCashCountingProps): {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import { CustomerCardProps } from './CustomerCard';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type BoolConfigVal = 0 | 1;
3
4
  export interface ProductCardConfig {
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { ProductStockCheckModalProps, ProductStockCheckModalRef } from './types';
4
+ declare const _default: React.ForwardRefExoticComponent<ProductStockCheckModalProps & React.RefAttributes<ProductStockCheckModalRef>>;
5
+ export default _default;
@@ -0,0 +1,148 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useImperativeHandle, useState, forwardRef, useRef, useCallback, useMemo } from 'react';
8
+ import { PisellModal, Button, Tag, Icon } from '@pisell/materials';
9
+ import { locales } from '@pisell/utils';
10
+ import useEngineContext from "../../hooks/useEngineContext";
11
+ import localeTexts from "./locales";
12
+ import { request } from "../../utils";
13
+ import "./index.less";
14
+ /** 收起时列表最多展示的条目数 */
15
+ var MAX_COLLAPSED_ITEMS = 5;
16
+ var ProductStockCheckModal = function ProductStockCheckModal(props, ref) {
17
+ var _context$engine, _context$appHelper, _context$appHelper2, _context$appHelper2$i;
18
+ var context = useEngineContext();
19
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
20
+ request.setRequest(context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.request);
21
+ var isTerminal = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$i = _context$appHelper2.isTerminal) === null || _context$appHelper2$i === void 0 ? void 0 : _context$appHelper2$i.call(_context$appHelper2);
22
+ var _useState = useState(false),
23
+ _useState2 = _slicedToArray(_useState, 2),
24
+ visible = _useState2[0],
25
+ setVisible = _useState2[1];
26
+ var modalParamsRef = useRef();
27
+ var _useState3 = useState([]),
28
+ _useState4 = _slicedToArray(_useState3, 2),
29
+ items = _useState4[0],
30
+ setItems = _useState4[1];
31
+ var _useState5 = useState(false),
32
+ _useState6 = _slicedToArray(_useState5, 2),
33
+ isAllItemsSoldOut = _useState6[0],
34
+ setIsAllItemsSoldOut = _useState6[1];
35
+ var _useState7 = useState(false),
36
+ _useState8 = _slicedToArray(_useState7, 2),
37
+ listExpanded = _useState8[0],
38
+ setListExpanded = _useState8[1];
39
+ var onOpen = useCallback(function (params) {
40
+ var _params$unavailablePr, _params$isAllItemsSol, _props$onOpen;
41
+ modalParamsRef.current = params;
42
+ setItems((_params$unavailablePr = params === null || params === void 0 ? void 0 : params.unavailableProducts) !== null && _params$unavailablePr !== void 0 ? _params$unavailablePr : []);
43
+ setIsAllItemsSoldOut((_params$isAllItemsSol = params === null || params === void 0 ? void 0 : params.isAllItemsSoldOut) !== null && _params$isAllItemsSol !== void 0 ? _params$isAllItemsSol : false);
44
+ setListExpanded(false);
45
+ setVisible(true);
46
+ (_props$onOpen = props.onOpen) === null || _props$onOpen === void 0 || _props$onOpen.call(props);
47
+ }, [props]);
48
+ var onClose = useCallback(function () {
49
+ var _props$onClose;
50
+ modalParamsRef.current = undefined;
51
+ setItems([]);
52
+ setIsAllItemsSoldOut(false);
53
+ setVisible(false);
54
+ (_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props);
55
+ }, []);
56
+ useImperativeHandle(ref, function () {
57
+ return {
58
+ open: onOpen,
59
+ close: onClose
60
+ };
61
+ });
62
+ var handleReturn = useCallback(function () {
63
+ var _props$onReturn;
64
+ onClose();
65
+ (_props$onReturn = props.onReturn) === null || _props$onReturn === void 0 || _props$onReturn.call(props, items);
66
+ }, [props.onReturn, onClose, items]);
67
+ var handleContinue = useCallback(function () {
68
+ onClose();
69
+ if (isAllItemsSoldOut) {
70
+ handleReturn();
71
+ } else {
72
+ var _props$onContinue;
73
+ (_props$onContinue = props.onContinue) === null || _props$onContinue === void 0 || _props$onContinue.call(props, items);
74
+ }
75
+ }, [props.onContinue, onClose, isAllItemsSoldOut, items]);
76
+ var showListExpandToggle = useMemo(function () {
77
+ return items.length > MAX_COLLAPSED_ITEMS;
78
+ }, [items.length]);
79
+ var displayItems = useMemo(function () {
80
+ if (!showListExpandToggle || listExpanded) {
81
+ return items;
82
+ }
83
+ return items.slice(0, MAX_COLLAPSED_ITEMS);
84
+ }, [items, listExpanded, showListExpandToggle]);
85
+ return /*#__PURE__*/React.createElement(PisellModal, {
86
+ platform: isTerminal ? 'h5' : undefined,
87
+ visible: visible,
88
+ header: false,
89
+ footer: null,
90
+ maskClosable: false,
91
+ destroyOnClose: true,
92
+ closable: false,
93
+ onClose: onClose,
94
+ onCancel: onClose,
95
+ wrapClassName: "product-stock-check-modal",
96
+ style: {
97
+ zIndex: 1001
98
+ }
99
+ }, /*#__PURE__*/React.createElement("div", {
100
+ className: "product-stock-check-modal-inner"
101
+ }, /*#__PURE__*/React.createElement("div", {
102
+ className: "product-stock-check-modal-icon",
103
+ "aria-hidden": true
104
+ }, /*#__PURE__*/React.createElement("span", {
105
+ className: "product-stock-check-modal-icon-mark"
106
+ }, "!")), /*#__PURE__*/React.createElement("h2", {
107
+ className: "product-stock-check-modal-title"
108
+ }, isAllItemsSoldOut ? locales.getText('pisell2.product.stock.check.modal.all_items_title') : locales.getText('pisell2.product.stock.check.modal.title')), /*#__PURE__*/React.createElement("p", {
109
+ className: "product-stock-check-modal-subtitle"
110
+ }, locales.getText('pisell2.product.stock.check.modal.subtitle')), /*#__PURE__*/React.createElement("div", {
111
+ className: "product-stock-check-modal-list"
112
+ }, /*#__PURE__*/React.createElement("div", {
113
+ className: "product-stock-check-modal-list-items"
114
+ }, displayItems.map(function (item, index) {
115
+ return /*#__PURE__*/React.createElement("div", {
116
+ key: index,
117
+ className: "product-stock-check-modal-item"
118
+ }, /*#__PURE__*/React.createElement("div", {
119
+ className: "product-stock-check-modal-item-text"
120
+ }, /*#__PURE__*/React.createElement("span", {
121
+ className: "product-stock-check-modal-item-title"
122
+ }, item.title), /*#__PURE__*/React.createElement("span", {
123
+ className: "product-stock-check-modal-item-qty"
124
+ }, locales.getText('pisell2.product.stock.check.modal.item.quantity.prefix'), ' ', "x", item.quantity)), /*#__PURE__*/React.createElement("span", {
125
+ className: "product-stock-check-modal-tag"
126
+ }, /*#__PURE__*/React.createElement(Tag, {
127
+ color: "error"
128
+ }, locales.getText('pisell2.product.stock.check.modal.status.sold_out'))));
129
+ })), showListExpandToggle && /*#__PURE__*/React.createElement("div", {
130
+ className: "product-stock-check-modal-list-toggle",
131
+ onClick: function onClick() {
132
+ return setListExpanded(function (v) {
133
+ return !v;
134
+ });
135
+ }
136
+ }, listExpanded ? locales.getText('pisell2.product.stock.check.modal.btn.collapse') : locales.getText('pisell2.product.stock.check.modal.btn.expand'), /*#__PURE__*/React.createElement(Icon, {
137
+ type: listExpanded ? 'pisell2-chevron-up-double' : 'pisell2-chevron-down-double'
138
+ }))), /*#__PURE__*/React.createElement("div", {
139
+ className: "product-stock-check-modal-buttons"
140
+ }, /*#__PURE__*/React.createElement(Button, {
141
+ type: "primary",
142
+ onClick: handleContinue
143
+ }, isAllItemsSoldOut ? locales.getText('pisell2.product.stock.check.modal.btn.remove_all_continue') : locales.getText('pisell2.product.stock.check.modal.btn.remove_continue')), /*#__PURE__*/React.createElement(Button, {
144
+ type: "text",
145
+ onClick: handleReturn
146
+ }, locales.getText('pisell2.product.stock.check.modal.btn.go_back')))));
147
+ };
148
+ export default /*#__PURE__*/forwardRef(ProductStockCheckModal);
@@ -0,0 +1,122 @@
1
+ .product-stock-check-modal {
2
+ .pisell-lowcode-modal-body {
3
+ padding: 24px !important;
4
+ }
5
+ }
6
+
7
+ .product-stock-check-modal-inner {
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: stretch;
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+
15
+ .product-stock-check-modal-icon {
16
+ align-self: center;
17
+ width: 44px;
18
+ height: 44px;
19
+ margin-bottom: 16px;
20
+ border-radius: 50%;
21
+ background: #fbf3e0;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ }
26
+
27
+ .product-stock-check-modal-icon-mark {
28
+ font-size: 22px;
29
+ font-weight: 700;
30
+ line-height: 1;
31
+ color: #f9a908;
32
+ }
33
+
34
+ .product-stock-check-modal-title {
35
+ margin: 0 0 8px;
36
+ text-align: center;
37
+ font-size: 18px;
38
+ font-weight: 600;
39
+ line-height: 26px;
40
+ color: #333333;
41
+ }
42
+
43
+ .product-stock-check-modal-subtitle {
44
+ margin: 0 0 20px;
45
+ text-align: center;
46
+ font-size: 14px;
47
+ font-weight: 400;
48
+ line-height: 20px;
49
+ color: #999999;
50
+ }
51
+
52
+ .product-stock-check-modal-list {
53
+ margin: 0 0 20px;
54
+ padding: 0;
55
+ list-style: none;
56
+ max-height: auto;
57
+ overflow-y: auto;
58
+ flex: 1;
59
+ }
60
+
61
+ .product-stock-check-modal-list-toggle {
62
+ margin-top: 20px;
63
+ text-align: center;
64
+ cursor: pointer;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ gap: 6px;
69
+ &:hover {
70
+ color: var(--theme-color);
71
+ }
72
+ }
73
+
74
+ .product-stock-check-modal-item {
75
+ display: flex;
76
+ align-items: flex-start;
77
+ justify-content: space-between;
78
+ gap: 12px;
79
+ padding: 14px 16px;
80
+ margin-bottom: 10px;
81
+ border-radius: 8px;
82
+ background: #f9f9f9;
83
+ box-sizing: border-box;
84
+
85
+ &:last-child {
86
+ margin-bottom: 0;
87
+ }
88
+ }
89
+
90
+ .product-stock-check-modal-item-text {
91
+ flex: 1;
92
+ min-width: 0;
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 2px;
96
+ }
97
+
98
+ .product-stock-check-modal-item-title {
99
+ font-size: 16px;
100
+ font-weight: 600;
101
+ line-height: 22px;
102
+ color: #333333;
103
+ }
104
+
105
+ .product-stock-check-modal-item-qty {
106
+ font-size: 12px;
107
+ line-height: 18px;
108
+ color: #999999;
109
+ }
110
+
111
+ .product-stock-check-modal-tag {
112
+ font-weight: 600;
113
+ .pisell-lowcode-tag{
114
+ border-radius: 40px;
115
+ }
116
+ }
117
+
118
+ .product-stock-check-modal-buttons{
119
+ display: flex;
120
+ gap: 10px;
121
+ flex-direction: column;
122
+ }