@pisell/private-materials 6.3.159 → 6.3.160

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
@@ -0,0 +1,134 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/productStockCheckModal/index.tsx
30
+ var productStockCheckModal_exports = {};
31
+ __export(productStockCheckModal_exports, {
32
+ default: () => productStockCheckModal_default
33
+ });
34
+ module.exports = __toCommonJS(productStockCheckModal_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
39
+ var import_locales = __toESM(require("./locales"));
40
+ var import_utils2 = require("../../utils");
41
+ var import_index = require("./index.less");
42
+ var MAX_COLLAPSED_ITEMS = 5;
43
+ var ProductStockCheckModal = (props, ref) => {
44
+ var _a, _b, _c, _d, _e, _f, _g;
45
+ const context = (0, import_useEngineContext.default)();
46
+ import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
47
+ import_utils2.request.setRequest((_d = (_c = context == null ? void 0 : context.appHelper) == null ? void 0 : _c.utils) == null ? void 0 : _d.request);
48
+ const isTerminal = (_g = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.isTerminal) == null ? void 0 : _g.call(_f);
49
+ const [visible, setVisible] = (0, import_react.useState)(false);
50
+ const modalParamsRef = (0, import_react.useRef)();
51
+ const [items, setItems] = (0, import_react.useState)([]);
52
+ const [isAllItemsSoldOut, setIsAllItemsSoldOut] = (0, import_react.useState)(false);
53
+ const [listExpanded, setListExpanded] = (0, import_react.useState)(false);
54
+ const onOpen = (0, import_react.useCallback)(
55
+ (params) => {
56
+ var _a2;
57
+ modalParamsRef.current = params;
58
+ setItems((params == null ? void 0 : params.unavailableProducts) ?? []);
59
+ setIsAllItemsSoldOut((params == null ? void 0 : params.isAllItemsSoldOut) ?? false);
60
+ setListExpanded(false);
61
+ setVisible(true);
62
+ (_a2 = props.onOpen) == null ? void 0 : _a2.call(props);
63
+ },
64
+ [props]
65
+ );
66
+ const onClose = (0, import_react.useCallback)(() => {
67
+ var _a2;
68
+ modalParamsRef.current = void 0;
69
+ setItems([]);
70
+ setIsAllItemsSoldOut(false);
71
+ setVisible(false);
72
+ (_a2 = props.onClose) == null ? void 0 : _a2.call(props);
73
+ }, []);
74
+ (0, import_react.useImperativeHandle)(ref, () => ({
75
+ open: onOpen,
76
+ close: onClose
77
+ }));
78
+ const handleReturn = (0, import_react.useCallback)(() => {
79
+ var _a2;
80
+ onClose();
81
+ (_a2 = props.onReturn) == null ? void 0 : _a2.call(props, items);
82
+ }, [props.onReturn, onClose, items]);
83
+ const handleContinue = (0, import_react.useCallback)(() => {
84
+ var _a2;
85
+ onClose();
86
+ if (isAllItemsSoldOut) {
87
+ handleReturn();
88
+ } else {
89
+ (_a2 = props.onContinue) == null ? void 0 : _a2.call(props, items);
90
+ }
91
+ }, [props.onContinue, onClose, isAllItemsSoldOut, items]);
92
+ const showListExpandToggle = (0, import_react.useMemo)(
93
+ () => items.length > MAX_COLLAPSED_ITEMS,
94
+ [items.length]
95
+ );
96
+ const displayItems = (0, import_react.useMemo)(() => {
97
+ if (!showListExpandToggle || listExpanded) {
98
+ return items;
99
+ }
100
+ return items.slice(0, MAX_COLLAPSED_ITEMS);
101
+ }, [items, listExpanded, showListExpandToggle]);
102
+ return /* @__PURE__ */ import_react.default.createElement(
103
+ import_materials.PisellModal,
104
+ {
105
+ platform: isTerminal ? "h5" : void 0,
106
+ visible,
107
+ header: false,
108
+ footer: null,
109
+ maskClosable: false,
110
+ destroyOnClose: true,
111
+ closable: false,
112
+ onClose,
113
+ onCancel: onClose,
114
+ wrapClassName: "product-stock-check-modal",
115
+ style: { zIndex: 1001 }
116
+ },
117
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-inner" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-icon", "aria-hidden": true }, /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-icon-mark" }, "!")), /* @__PURE__ */ import_react.default.createElement("h2", { className: "product-stock-check-modal-title" }, isAllItemsSoldOut ? import_utils.locales.getText(
118
+ "pisell2.product.stock.check.modal.all_items_title"
119
+ ) : import_utils.locales.getText("pisell2.product.stock.check.modal.title")), /* @__PURE__ */ import_react.default.createElement("p", { className: "product-stock-check-modal-subtitle" }, import_utils.locales.getText("pisell2.product.stock.check.modal.subtitle")), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list-items" }, displayItems.map((item, index) => /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: "product-stock-check-modal-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-item-text" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-item-title" }, item.title), /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-item-qty" }, import_utils.locales.getText(
120
+ "pisell2.product.stock.check.modal.item.quantity.prefix"
121
+ ), " ", "x", item.quantity)), /* @__PURE__ */ import_react.default.createElement("span", { className: "product-stock-check-modal-tag" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Tag, { color: "error" }, import_utils.locales.getText(
122
+ "pisell2.product.stock.check.modal.status.sold_out"
123
+ )))))), showListExpandToggle && /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-list-toggle", onClick: () => setListExpanded((v) => !v) }, listExpanded ? import_utils.locales.getText(
124
+ "pisell2.product.stock.check.modal.btn.collapse"
125
+ ) : import_utils.locales.getText(
126
+ "pisell2.product.stock.check.modal.btn.expand"
127
+ ), /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: listExpanded ? "pisell2-chevron-up-double" : "pisell2-chevron-down-double" }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-stock-check-modal-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleContinue }, isAllItemsSoldOut ? import_utils.locales.getText(
128
+ "pisell2.product.stock.check.modal.btn.remove_all_continue"
129
+ ) : import_utils.locales.getText(
130
+ "pisell2.product.stock.check.modal.btn.remove_continue"
131
+ )), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "text", onClick: handleReturn }, import_utils.locales.getText("pisell2.product.stock.check.modal.btn.go_back"))))
132
+ );
133
+ };
134
+ var productStockCheckModal_default = (0, import_react.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
+ }
@@ -0,0 +1,63 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.stock.check.modal.title': string;
4
+ 'pisell2.product.stock.check.modal.all_items_title': string;
5
+ 'pisell2.product.stock.check.modal.subtitle': string;
6
+ 'pisell2.product.stock.check.modal.item.quantity.prefix': string;
7
+ 'pisell2.product.stock.check.modal.status.sold_out': string;
8
+ 'pisell2.product.stock.check.modal.btn.remove_continue': string;
9
+ 'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
10
+ 'pisell2.product.stock.check.modal.btn.go_back': string;
11
+ 'pisell2.product.stock.check.modal.btn.expand': string;
12
+ 'pisell2.product.stock.check.modal.btn.collapse': string;
13
+ };
14
+ 'zh-CN': {
15
+ 'pisell2.product.stock.check.modal.title': string;
16
+ 'pisell2.product.stock.check.modal.all_items_title': string;
17
+ 'pisell2.product.stock.check.modal.subtitle': string;
18
+ 'pisell2.product.stock.check.modal.item.quantity.prefix': string;
19
+ 'pisell2.product.stock.check.modal.status.sold_out': string;
20
+ 'pisell2.product.stock.check.modal.btn.remove_continue': string;
21
+ 'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
22
+ 'pisell2.product.stock.check.modal.btn.go_back': string;
23
+ 'pisell2.product.stock.check.modal.btn.expand': string;
24
+ 'pisell2.product.stock.check.modal.btn.collapse': string;
25
+ };
26
+ 'zh-TW': {
27
+ 'pisell2.product.stock.check.modal.title': string;
28
+ 'pisell2.product.stock.check.modal.all_items_title': string;
29
+ 'pisell2.product.stock.check.modal.subtitle': string;
30
+ 'pisell2.product.stock.check.modal.item.quantity.prefix': string;
31
+ 'pisell2.product.stock.check.modal.status.sold_out': string;
32
+ 'pisell2.product.stock.check.modal.btn.remove_continue': string;
33
+ 'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
34
+ 'pisell2.product.stock.check.modal.btn.go_back': string;
35
+ 'pisell2.product.stock.check.modal.btn.expand': string;
36
+ 'pisell2.product.stock.check.modal.btn.collapse': string;
37
+ };
38
+ ja: {
39
+ 'pisell2.product.stock.check.modal.title': string;
40
+ 'pisell2.product.stock.check.modal.all_items_title': string;
41
+ 'pisell2.product.stock.check.modal.subtitle': string;
42
+ 'pisell2.product.stock.check.modal.item.quantity.prefix': string;
43
+ 'pisell2.product.stock.check.modal.status.sold_out': string;
44
+ 'pisell2.product.stock.check.modal.btn.remove_continue': string;
45
+ 'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
46
+ 'pisell2.product.stock.check.modal.btn.go_back': string;
47
+ 'pisell2.product.stock.check.modal.btn.expand': string;
48
+ 'pisell2.product.stock.check.modal.btn.collapse': string;
49
+ };
50
+ pt: {
51
+ 'pisell2.product.stock.check.modal.title': string;
52
+ 'pisell2.product.stock.check.modal.all_items_title': string;
53
+ 'pisell2.product.stock.check.modal.subtitle': string;
54
+ 'pisell2.product.stock.check.modal.item.quantity.prefix': string;
55
+ 'pisell2.product.stock.check.modal.status.sold_out': string;
56
+ 'pisell2.product.stock.check.modal.btn.remove_continue': string;
57
+ 'pisell2.product.stock.check.modal.btn.remove_all_continue': string;
58
+ 'pisell2.product.stock.check.modal.btn.go_back': string;
59
+ 'pisell2.product.stock.check.modal.btn.expand': string;
60
+ 'pisell2.product.stock.check.modal.btn.collapse': string;
61
+ };
62
+ };
63
+ export default _default;
@@ -0,0 +1,86 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/productStockCheckModal/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ "pisell2.product.stock.check.modal.title": "Some Items Are Unavailable",
28
+ "pisell2.product.stock.check.modal.all_items_title": "All Items Are Unavailable",
29
+ "pisell2.product.stock.check.modal.subtitle": "The following items are out of stock. Please remove them to continue.",
30
+ "pisell2.product.stock.check.modal.item.quantity.prefix": "Selected quantity",
31
+ "pisell2.product.stock.check.modal.status.sold_out": "Sold Out",
32
+ "pisell2.product.stock.check.modal.btn.remove_continue": "Remove & Continue",
33
+ "pisell2.product.stock.check.modal.btn.remove_all_continue": "Cart is empty. Please add items.",
34
+ "pisell2.product.stock.check.modal.btn.go_back": "Go Back",
35
+ "pisell2.product.stock.check.modal.btn.expand": "Expand",
36
+ "pisell2.product.stock.check.modal.btn.collapse": "Collapse"
37
+ },
38
+ "zh-CN": {
39
+ "pisell2.product.stock.check.modal.title": "部分商品已售罄",
40
+ "pisell2.product.stock.check.modal.all_items_title": "全部商品已售罄",
41
+ "pisell2.product.stock.check.modal.subtitle": "以下商品库存不足,请移除后继续下单",
42
+ "pisell2.product.stock.check.modal.item.quantity.prefix": "已选数量",
43
+ "pisell2.product.stock.check.modal.status.sold_out": "已售罄",
44
+ "pisell2.product.stock.check.modal.btn.remove_continue": "移除售罄商品并继续",
45
+ "pisell2.product.stock.check.modal.btn.remove_all_continue": "购物车已空,请重新选择",
46
+ "pisell2.product.stock.check.modal.btn.go_back": "返回修改",
47
+ "pisell2.product.stock.check.modal.btn.expand": "展开",
48
+ "pisell2.product.stock.check.modal.btn.collapse": "收起"
49
+ },
50
+ "zh-TW": {
51
+ "pisell2.product.stock.check.modal.title": "部分商品已售罄",
52
+ "pisell2.product.stock.check.modal.all_items_title": "全部商品已售罄",
53
+ "pisell2.product.stock.check.modal.subtitle": "以下商品庫存不足,請移除後繼續下單",
54
+ "pisell2.product.stock.check.modal.item.quantity.prefix": "已選數量",
55
+ "pisell2.product.stock.check.modal.status.sold_out": "已售罄",
56
+ "pisell2.product.stock.check.modal.btn.remove_continue": "移除售罄商品並繼續",
57
+ "pisell2.product.stock.check.modal.btn.remove_all_continue": "購物車已空,請重新選擇",
58
+ "pisell2.product.stock.check.modal.btn.go_back": "返回修改",
59
+ "pisell2.product.stock.check.modal.btn.expand": "展開",
60
+ "pisell2.product.stock.check.modal.btn.collapse": "收起"
61
+ },
62
+ "ja": {
63
+ "pisell2.product.stock.check.modal.title": "一部の商品が購入不可",
64
+ "pisell2.product.stock.check.modal.all_items_title": "全ての商品が売り切れ",
65
+ "pisell2.product.stock.check.modal.subtitle": "下記の商品は在庫切れです。削除してからご注文を続けてください。",
66
+ "pisell2.product.stock.check.modal.item.quantity.prefix": "選択数量",
67
+ "pisell2.product.stock.check.modal.status.sold_out": "売り切れ",
68
+ "pisell2.product.stock.check.modal.btn.remove_continue": "売り切れ商品を削除して続行",
69
+ "pisell2.product.stock.check.modal.btn.remove_all_continue": "カートが空です。商品を追加してください。",
70
+ "pisell2.product.stock.check.modal.btn.go_back": "戻る",
71
+ "pisell2.product.stock.check.modal.btn.expand": "展開",
72
+ "pisell2.product.stock.check.modal.btn.collapse": "收起"
73
+ },
74
+ "pt": {
75
+ "pisell2.product.stock.check.modal.title": "Alguns itens estão indisponíveis",
76
+ "pisell2.product.stock.check.modal.all_items_title": "Todos os itens estão indisponíveis",
77
+ "pisell2.product.stock.check.modal.subtitle": "Os itens abaixo estão sem estoque. Remova-os para continuar.",
78
+ "pisell2.product.stock.check.modal.item.quantity.prefix": "Quantidade selecionada",
79
+ "pisell2.product.stock.check.modal.status.sold_out": "Esgotado",
80
+ "pisell2.product.stock.check.modal.btn.remove_continue": "Remover e continuar",
81
+ "pisell2.product.stock.check.modal.btn.remove_all_continue": "Carrinho vazio. Adicione itens.",
82
+ "pisell2.product.stock.check.modal.btn.go_back": "Voltar",
83
+ "pisell2.product.stock.check.modal.btn.expand": "Expandir",
84
+ "pisell2.product.stock.check.modal.btn.collapse": "Recolher"
85
+ }
86
+ };
@@ -0,0 +1,26 @@
1
+ export interface ProductStockCheckModalProps {
2
+ onOpen?: () => void;
3
+ onClose?: () => void;
4
+ onReturn?: (data: any) => void;
5
+ onContinue?: (data: any) => void;
6
+ }
7
+ export interface UnavailableProduct {
8
+ title: string;
9
+ quantity?: number;
10
+ cart_id?: number;
11
+ product_id?: number;
12
+ product_variant_id?: number;
13
+ cover?: string;
14
+ specifications?: string;
15
+ reason_code?: 'stock_not_enough' | string;
16
+ reason?: string;
17
+ selected_quantity?: number;
18
+ }
19
+ export interface ProductStockCheckModalRef {
20
+ open: (params: ModalParams) => void;
21
+ close: () => void;
22
+ }
23
+ export interface ModalParams {
24
+ unavailableProducts?: UnavailableProduct[];
25
+ isAllItemsSoldOut?: boolean;
26
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/productStockCheckModal/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ScheduleItem } from '../../../type';
3
4
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
3
4
  export default AddSchedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailDrawer: () => JSX.Element;
3
4
  export default ProductDetailDrawer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Products: () => JSX.Element;
3
4
  export default Products;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: () => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductProps } from '../../type';
2
3
  declare const Product: (props: ProductProps) => JSX.Element;
3
4
  export default Product;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: () => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceType } from './serve';
2
3
  /**
3
4
  * 过滤项类型定义
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddServiceProps {
3
4
  onEdit?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const index: () => JSX.Element;
3
4
  export default index;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
4
  declare const TicketBooking: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Dayjs } from 'dayjs';
2
3
  import './index.less';
3
4
  interface ITimeBarProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WalletList: (props: any) => JSX.Element;
3
4
  export default WalletList;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './../../index.less';
2
3
  declare const Search: () => JSX.Element;
3
4
  export default Search;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 下单接口商品库存检测逻辑
3
+ * 购物车不可用商品清理 + 返回清空缓存 Hook
4
+ */
5
+ declare const useCartProductStockCheck: () => {
6
+ handleContinue: ({ cartProducts, data, callback, appointmentBooking }: any) => void;
7
+ handleReturn: ({ cartProducts, data, callback, appointmentBooking, setTimes, isSkipClearData }: any) => Promise<void>;
8
+ checkProductStock: (productStockModalRef: any, res: any, cartProducts: any) => any;
9
+ };
10
+ export default useCartProductStockCheck;