@pisell/private-materials 6.3.138 → 6.3.139

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 (309) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +153 -426
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
  13. package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  14. package/es/components/booking/addons/model.d.ts +10 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  20. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  21. package/es/components/booking/deposit/index.d.ts +0 -1
  22. package/es/components/booking/forms/model.d.ts +10 -1
  23. package/es/components/booking/forms/table/index.d.ts +1 -0
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  25. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  26. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  27. package/es/components/booking/info/index.d.ts +0 -1
  28. package/es/components/booking/info/model.d.ts +10 -1
  29. package/es/components/booking/info/service/Lists.d.ts +0 -1
  30. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  31. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  32. package/es/components/booking/info/service/like/index.d.ts +1 -0
  33. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  34. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  35. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  36. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  37. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  38. package/es/components/booking/model.d.ts +9 -1
  39. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  40. package/es/components/booking/notes/model.d.ts +10 -1
  41. package/es/components/booking/payments/model.d.ts +10 -1
  42. package/es/components/booking/utils.d.ts +2 -2
  43. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  44. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  45. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  46. package/es/components/eftpos/form/index.d.ts +1 -0
  47. package/es/components/eftpos/group/index.d.ts +1 -0
  48. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  49. package/es/components/eftpos/icon/device.d.ts +1 -0
  50. package/es/components/eftpos/pos.d.ts +1 -0
  51. package/es/components/eftpos/receipt/index.d.ts +1 -0
  52. package/es/components/eftposPay/app.d.ts +0 -1
  53. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  54. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  55. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  56. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  57. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  58. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  59. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  60. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  61. package/es/components/eftposPay/device.d.ts +0 -1
  62. package/es/components/eftposPay/index.d.ts +0 -1
  63. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  64. package/es/components/eftposPay/pay.d.ts +0 -1
  65. package/es/components/eftposPay/payo/config.d.ts +1 -0
  66. package/es/components/eftposPay/tip.d.ts +1 -0
  67. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  68. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  69. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  76. package/es/components/eventBooking/index.d.ts +0 -1
  77. package/es/components/login/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  82. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  83. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  84. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  85. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  86. package/es/components/productExtension/index.d.ts +0 -1
  87. package/es/components/ruleSetting/index.d.ts +0 -1
  88. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  89. package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
  90. package/es/components/scanOrder/components/Cart/index.js +58 -24
  91. package/es/components/scanOrder/components/Cart/index.less +61 -8
  92. package/es/components/scanOrder/components/Check/index.js +232 -51
  93. package/es/components/scanOrder/components/Check/index.less +30 -0
  94. package/es/components/scanOrder/components/Content/index.js +147 -92
  95. package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
  96. package/es/components/scanOrder/components/Footer/index.js +4 -2
  97. package/es/components/scanOrder/components/Footer/index.less +16 -7
  98. package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  99. package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
  100. package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  101. package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  102. package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
  103. package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  104. package/es/components/scanOrder/context.js +98 -3
  105. package/es/components/scanOrder/locales.d.ts +55 -0
  106. package/es/components/scanOrder/locales.js +55 -0
  107. package/es/components/scanOrder/types.d.ts +23 -0
  108. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  109. package/es/components/schedules/calendar/index.d.ts +1 -0
  110. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  111. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  112. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  113. package/es/components/schedules/model.d.ts +9 -1
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  118. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  119. package/es/components/schedules/products/index.d.ts +1 -0
  120. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  121. package/es/components/schedules/products/list/index.d.ts +1 -0
  122. package/es/components/schedules/resources/index.d.ts +1 -0
  123. package/es/components/schedules/resources/list/index.d.ts +1 -0
  124. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  125. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  126. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  127. package/es/components/schedules/schedules/index.d.ts +1 -0
  128. package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
  129. package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
  130. package/es/components/systemSettings/registry/index.js +3 -1
  131. package/es/components/systemSettings/registry/services.d.ts +2 -0
  132. package/es/components/systemSettings/registry/types.d.ts +3 -0
  133. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  134. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +129 -17
  135. package/es/components/venueBooking/context.js +6 -6
  136. package/es/components/venueBooking/hooks.d.ts +16 -3
  137. package/es/components/venueBooking/hooks.js +16 -4
  138. package/es/components/venueBooking/types.d.ts +19 -2
  139. package/es/hooks/usePaymentLogger.d.ts +1 -0
  140. package/es/index.d.ts +1 -1
  141. package/es/index.js +1 -1
  142. package/es/plus/clientName/index.d.ts +1 -0
  143. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  144. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  145. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  146. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  147. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  148. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  149. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  150. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  151. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  152. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  153. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  154. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  155. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  156. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  157. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  158. package/es/pro/Selector/demo.d.ts +1 -0
  159. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  160. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
  161. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
  162. package/lib/components/booking/addons/model.d.ts +10 -1
  163. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  164. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  165. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  166. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  167. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  168. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  169. package/lib/components/booking/deposit/index.d.ts +0 -1
  170. package/lib/components/booking/forms/model.d.ts +10 -1
  171. package/lib/components/booking/forms/table/index.d.ts +1 -0
  172. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  173. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  174. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  175. package/lib/components/booking/info/index.d.ts +0 -1
  176. package/lib/components/booking/info/model.d.ts +10 -1
  177. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  178. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  179. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  180. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  181. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  182. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  183. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  184. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  185. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  186. package/lib/components/booking/model.d.ts +9 -1
  187. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  188. package/lib/components/booking/notes/model.d.ts +10 -1
  189. package/lib/components/booking/payments/model.d.ts +10 -1
  190. package/lib/components/booking/utils.d.ts +2 -2
  191. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  192. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  193. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  194. package/lib/components/eftpos/form/index.d.ts +1 -0
  195. package/lib/components/eftpos/group/index.d.ts +1 -0
  196. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  197. package/lib/components/eftpos/icon/device.d.ts +1 -0
  198. package/lib/components/eftpos/pos.d.ts +1 -0
  199. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  200. package/lib/components/eftposPay/app.d.ts +0 -1
  201. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  202. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  203. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  204. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  205. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  206. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  207. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  208. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  209. package/lib/components/eftposPay/device.d.ts +0 -1
  210. package/lib/components/eftposPay/index.d.ts +0 -1
  211. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  212. package/lib/components/eftposPay/pay.d.ts +0 -1
  213. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  214. package/lib/components/eftposPay/tip.d.ts +1 -0
  215. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  216. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  217. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  218. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  219. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  220. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  221. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  223. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  224. package/lib/components/eventBooking/index.d.ts +0 -1
  225. package/lib/components/login/index.d.ts +1 -0
  226. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  227. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  228. package/lib/components/pay/toC/model.d.ts +9 -1
  229. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  230. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  231. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  232. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  233. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  234. package/lib/components/productExtension/index.d.ts +0 -1
  235. package/lib/components/ruleSetting/index.d.ts +0 -1
  236. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  237. package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
  238. package/lib/components/scanOrder/components/Cart/index.js +43 -9
  239. package/lib/components/scanOrder/components/Cart/index.less +61 -8
  240. package/lib/components/scanOrder/components/Check/index.js +97 -8
  241. package/lib/components/scanOrder/components/Check/index.less +30 -0
  242. package/lib/components/scanOrder/components/Content/index.js +69 -32
  243. package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
  244. package/lib/components/scanOrder/components/Footer/index.js +2 -2
  245. package/lib/components/scanOrder/components/Footer/index.less +16 -7
  246. package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
  247. package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
  248. package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
  249. package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
  250. package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
  251. package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
  252. package/lib/components/scanOrder/context.js +80 -2
  253. package/lib/components/scanOrder/locales.d.ts +55 -0
  254. package/lib/components/scanOrder/locales.js +55 -0
  255. package/lib/components/scanOrder/types.d.ts +23 -0
  256. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  257. package/lib/components/schedules/calendar/index.d.ts +1 -0
  258. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  259. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  260. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  261. package/lib/components/schedules/model.d.ts +9 -1
  262. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  263. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  264. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  265. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  266. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  267. package/lib/components/schedules/products/index.d.ts +1 -0
  268. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  269. package/lib/components/schedules/products/list/index.d.ts +1 -0
  270. package/lib/components/schedules/resources/index.d.ts +1 -0
  271. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  272. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  273. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  274. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  275. package/lib/components/schedules/schedules/index.d.ts +1 -0
  276. package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
  277. package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
  278. package/lib/components/systemSettings/registry/index.js +3 -1
  279. package/lib/components/systemSettings/registry/services.d.ts +2 -0
  280. package/lib/components/systemSettings/registry/types.d.ts +3 -0
  281. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  282. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +118 -18
  283. package/lib/components/venueBooking/context.js +2 -1
  284. package/lib/components/venueBooking/hooks.d.ts +16 -3
  285. package/lib/components/venueBooking/hooks.js +8 -2
  286. package/lib/components/venueBooking/types.d.ts +19 -2
  287. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  288. package/lib/index.d.ts +1 -1
  289. package/lib/index.js +2 -0
  290. package/lib/plus/clientName/index.d.ts +1 -0
  291. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  292. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  293. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  294. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
  295. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  296. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  297. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  298. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  299. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  300. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  301. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  302. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  303. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  304. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  305. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  306. package/lib/pro/Selector/demo.d.ts +1 -0
  307. package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
  308. package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
  309. package/package.json +1 -1
@@ -71,7 +71,7 @@ function extractEntryPaxNumber(payload) {
71
71
  return null;
72
72
  }
73
73
  function ReadyState() {
74
- var _a, _b, _c, _d;
74
+ var _a, _b, _c, _d, _e;
75
75
  const {
76
76
  currentStep,
77
77
  prevStep,
@@ -82,7 +82,16 @@ function ReadyState() {
82
82
  refreshViewModel,
83
83
  footerActionText,
84
84
  setFooterActionText,
85
- cartValidation
85
+ cartValidation,
86
+ setTableName,
87
+ entryMode,
88
+ setEntryMode,
89
+ submitDisabledTips,
90
+ setSubmitDisabledTips,
91
+ scanOrderModule,
92
+ isCacheHydrated,
93
+ markGate,
94
+ isGatePassed
86
95
  } = (0, import_context.useScanOrderContext)();
87
96
  const { isLogin, openLoginModal } = (0, import_hooks.useScanOrderLogin)();
88
97
  const utils = (0, import_hooks.contextUtils)();
@@ -100,7 +109,6 @@ function ReadyState() {
100
109
  content: null
101
110
  });
102
111
  const [pendingFormPayload, setPendingFormPayload] = (0, import_react.useState)(null);
103
- const [entryMode, setEntryMode] = (0, import_react.useState)("default");
104
112
  const requestEntryPaxRef = (0, import_react.useRef)(0);
105
113
  const requestPaxMinRef = (0, import_react.useRef)(1);
106
114
  const requestPaxMaxRef = (0, import_react.useRef)(1);
@@ -110,6 +118,12 @@ function ReadyState() {
110
118
  const currentLocale = import_utils.locales.getLocale();
111
119
  return nameMap[currentLocale] || nameMap.original || nameMap.en || "";
112
120
  };
121
+ const resolveLocalizedText = (value) => {
122
+ if (value == null) return "";
123
+ if (typeof value === "string") return value;
124
+ if (typeof value !== "object") return String(value);
125
+ return getLocalizedName(value);
126
+ };
113
127
  const normalizeFormPayload = (formPayload, partyroomBookingPayload) => {
114
128
  const sourcePayload = formPayload ?? partyroomBookingPayload;
115
129
  if (!sourcePayload) return null;
@@ -125,11 +139,20 @@ function ReadyState() {
125
139
  setting: sourceDetail == null ? void 0 : sourceDetail.setting
126
140
  };
127
141
  };
142
+ const app = (_a = utils == null ? void 0 : utils.getApp) == null ? void 0 : _a.call(utils);
128
143
  const handleOrderDetail = (order_id) => {
144
+ var _a2, _b2;
129
145
  const link = `/order/details?id=${order_id}`;
130
- location.replace(link);
146
+ if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
147
+ app.history.replace(link);
148
+ } else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
149
+ app.history.push(link);
150
+ } else {
151
+ location.replace(link);
152
+ }
131
153
  };
132
154
  const handleBack = () => {
155
+ var _a2, _b2;
133
156
  if (currentStep !== "product") {
134
157
  prevStep();
135
158
  return;
@@ -138,7 +161,13 @@ function ReadyState() {
138
161
  handleOrderDetail(entryContext.order_id);
139
162
  return;
140
163
  }
141
- location.replace("/");
164
+ if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
165
+ app.history.replace("/");
166
+ } else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
167
+ app.history.push("/");
168
+ } else {
169
+ location.replace("/");
170
+ }
142
171
  };
143
172
  const enterProductStep = async () => {
144
173
  try {
@@ -147,7 +176,7 @@ function ReadyState() {
147
176
  } catch (error) {
148
177
  console.warn("[scanOrder] applyItemRulePrefill failed", error);
149
178
  } finally {
150
- goToStep("product");
179
+ if (currentStep !== "check") goToStep("product");
151
180
  }
152
181
  };
153
182
  const runEntryPaxGateThenEnterProduct = async () => {
@@ -155,6 +184,10 @@ function ReadyState() {
155
184
  await enterProductStep();
156
185
  return;
157
186
  }
187
+ if (isGatePassed("paxEntered")) {
188
+ await enterProductStep();
189
+ return;
190
+ }
158
191
  const pax = await new Promise((resolve) => {
159
192
  var _a2;
160
193
  if (typeof (utils == null ? void 0 : utils.action) !== "function") {
@@ -179,6 +212,7 @@ function ReadyState() {
179
212
  }
180
213
  try {
181
214
  await runModuleAction("setEntryPaxNumber", pax);
215
+ markGate("paxEntered");
182
216
  } catch (error) {
183
217
  console.warn("[scanOrder] setOtherParams failed", error);
184
218
  }
@@ -216,6 +250,7 @@ function ReadyState() {
216
250
  content: null
217
251
  });
218
252
  setPendingFormPayload(null);
253
+ markGate("formSubmitted");
219
254
  void runEntryPaxGateThenEnterProduct();
220
255
  };
221
256
  const handleFormConfirm = () => {
@@ -229,7 +264,8 @@ function ReadyState() {
229
264
  open: false,
230
265
  content: null
231
266
  });
232
- if (pendingFormPayload) {
267
+ markGate("policyAccepted");
268
+ if (pendingFormPayload && !isGatePassed("formSubmitted")) {
233
269
  openFormModal(pendingFormPayload);
234
270
  return;
235
271
  }
@@ -262,12 +298,13 @@ function ReadyState() {
262
298
  requestPaxMinRef.current = Number(requestPaxMin) || 1;
263
299
  requestPaxMaxRef.current = Number(requestPaxMax) || 1;
264
300
  tableFormRecordRef.current = table_form_record || {};
301
+ setTableName(getLocalizedName(table_form_record == null ? void 0 : table_form_record.name));
265
302
  const normalizedFormPayload = normalizeFormPayload(form, partyroom_booking);
266
303
  const isAdditionalOrder = mode === "additional_order" || mode === "additional_order_with_code";
267
304
  setEntryMode(isAdditionalOrder ? "additional_order" : "default");
268
305
  if (mode === "idle") {
269
306
  const normalizedPolicyPayload = typeof policy === "object" && policy !== null ? policy : { id: policy };
270
- if (normalizedPolicyPayload == null ? void 0 : normalizedPolicyPayload.id) {
307
+ if ((normalizedPolicyPayload == null ? void 0 : normalizedPolicyPayload.id) && !isGatePassed("policyAccepted")) {
271
308
  setPendingFormPayload(normalizedFormPayload);
272
309
  setPolicyModal({
273
310
  open: true,
@@ -275,29 +312,25 @@ function ReadyState() {
275
312
  });
276
313
  return;
277
314
  }
278
- if (normalizedFormPayload) {
315
+ if (normalizedFormPayload && !isGatePassed("formSubmitted")) {
279
316
  openFormModal(normalizedFormPayload);
280
317
  return;
281
318
  }
282
319
  await runEntryPaxGateThenEnterProduct();
283
320
  } else if (isAdditionalOrder) {
284
- await enterProductStep();
285
- } else if (mode === "resource_busy") {
286
- if (!isLogin) {
287
- openLoginModal({
288
- callback: (status) => {
289
- if (status === "success") {
290
- handleOrderDetail(order_id);
291
- }
292
- }
293
- });
321
+ if (hasOrderId) {
322
+ await enterProductStep();
294
323
  } else {
295
324
  handleOrderDetail(order_id);
296
325
  }
326
+ } else if (mode === "submit_disabled") {
327
+ const tips = resolveLocalizedText(errorTips) || String(import_utils.locales.getText("pisell2.scan.order.submit.disabled.default") || "");
328
+ setSubmitDisabledTips(tips);
329
+ await enterProductStep();
297
330
  } else {
298
- let content = errorTips || "";
331
+ let content = resolveLocalizedText(errorTips);
299
332
  if (!content) {
300
- if (mode === "resource_block") {
333
+ if (mode === "resource_busy") {
301
334
  content = String(
302
335
  import_utils.locales.getText("pisell2.scan.order.resource.status.exception") || ""
303
336
  );
@@ -318,8 +351,9 @@ function ReadyState() {
318
351
  });
319
352
  }
320
353
  };
354
+ if (!isCacheHydrated) return;
321
355
  checkResourceAvailable();
322
- }, []);
356
+ }, [isCacheHydrated]);
323
357
  (0, import_react.useEffect)(() => {
324
358
  window.scrollTo({
325
359
  top: 0,
@@ -386,6 +420,10 @@ function ReadyState() {
386
420
  return highlighted;
387
421
  };
388
422
  const gotoCheckOrder = async () => {
423
+ if (submitDisabledTips) {
424
+ import_antd.message.warning(submitDisabledTips, 2);
425
+ return;
426
+ }
389
427
  const firstFailure = Array.isArray(cartValidation == null ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
390
428
  if ((cartValidation == null ? void 0 : cartValidation.passed) === false) {
391
429
  const failedProductIds = getFirstFailedProductIds();
@@ -393,10 +431,7 @@ function ReadyState() {
393
431
  scrollAndHighlightProductsByIds(failedProductIds);
394
432
  }
395
433
  const failureTips = String((firstFailure == null ? void 0 : firstFailure.validationMessage) || "").trim();
396
- (0, import_materials.PisellToast)({
397
- content: failureTips,
398
- duration: 2
399
- });
434
+ import_antd.message.warning(failureTips, 2);
400
435
  return;
401
436
  }
402
437
  const otherParams = await runModuleAction("getOtherParams");
@@ -451,7 +486,8 @@ function ReadyState() {
451
486
  },
452
487
  onNext: gotoCheckOrder,
453
488
  items: (viewModel == null ? void 0 : viewModel.cartItems) || [],
454
- summary: (viewModel == null ? void 0 : viewModel.summary) || {}
489
+ summary: (viewModel == null ? void 0 : viewModel.summary) || {},
490
+ disabled: !!submitDisabledTips
455
491
  }
456
492
  )) : null
457
493
  ), isShowFooter ? /* @__PURE__ */ import_react.default.createElement(
@@ -460,7 +496,8 @@ function ReadyState() {
460
496
  cartItems: (viewModel == null ? void 0 : viewModel.cartItems) || [],
461
497
  summary: (viewModel == null ? void 0 : viewModel.summary) || {},
462
498
  actionText: footerActionText,
463
- onAction: () => gotoCheckOrder()
499
+ onAction: () => gotoCheckOrder(),
500
+ disabled: !!submitDisabledTips
464
501
  }
465
502
  ) : null, policyModal.open ? /* @__PURE__ */ import_react.default.createElement(
466
503
  import_PolicyModal.default,
@@ -478,7 +515,7 @@ function ReadyState() {
478
515
  open: formModal.open,
479
516
  platform: isMobileView ? "h5" : "pc",
480
517
  onCancel: closeFormModalAndBack,
481
- title: ((_a = formModal.content) == null ? void 0 : _a.title) || import_utils.locales.getText("pisell2.appointment.fill-form") || "填写信息",
518
+ title: ((_b = formModal.content) == null ? void 0 : _b.title) || import_utils.locales.getText("pisell2.appointment.fill-form") || "填写信息",
482
519
  mobileModalHeight: "90vh",
483
520
  width: isMobileView ? "100%" : 900,
484
521
  className: "pisell-scan-order-form-modal",
@@ -497,10 +534,10 @@ function ReadyState() {
497
534
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-form-modal-body" }, FormCard ? /* @__PURE__ */ import_react.default.createElement(
498
535
  FormCard,
499
536
  {
500
- id: ((_b = formModal.content) == null ? void 0 : _b.id) || 0,
537
+ id: ((_c = formModal.content) == null ? void 0 : _c.id) || 0,
501
538
  ref: formModalRef,
502
539
  isGetLastData: false,
503
- setting: ((_c = formModal.content) == null ? void 0 : _c.setting) || { isHidden: 1 },
540
+ setting: ((_d = formModal.content) == null ? void 0 : _d.setting) || { isHidden: 1 },
504
541
  formWrapStyle: { padding: "16px" },
505
542
  isV2API: true,
506
543
  isShowSkeleton: true,
@@ -512,7 +549,7 @@ function ReadyState() {
512
549
  },
513
550
  onFormValueChange: () => {
514
551
  },
515
- defaultValues: ((_d = formModal.content) == null ? void 0 : _d.defaultValues) || {},
552
+ defaultValues: ((_e = formModal.content) == null ? void 0 : _e.defaultValues) || {},
516
553
  isClearData: false
517
554
  }
518
555
  ) : null)
@@ -5,6 +5,8 @@ interface FooterProps {
5
5
  summary: Record<string, any>;
6
6
  actionText: string;
7
7
  onAction: () => void;
8
+ /** 视觉禁用:按钮仍会触发 onAction,由父级自行拦截(用于弹 toast 等反馈) */
9
+ disabled?: boolean;
8
10
  }
9
11
  export default function Footer(props: FooterProps): JSX.Element;
10
12
  export {};
@@ -39,7 +39,7 @@ var import_Cart = __toESM(require("../Cart"));
39
39
  var import_shopping_cart = __toESM(require("../../../appointmentBooking/assets/shopping-cart.svg"));
40
40
  var import_index = require("./index.less");
41
41
  function Footer(props) {
42
- const { cartItems, summary, actionText, onAction } = props;
42
+ const { cartItems, summary, actionText, onAction, disabled = false } = props;
43
43
  const [cartOpen, setCartOpen] = (0, import_react.useState)(false);
44
44
  const totalAmount = (0, import_react.useMemo)(() => {
45
45
  const rawAmount = (summary == null ? void 0 : summary.total_amount) ?? (summary == null ? void 0 : summary.expect_amount) ?? (summary == null ? void 0 : summary.amount) ?? (summary == null ? void 0 : summary.total) ?? (summary == null ? void 0 : summary.totalAmount) ?? (summary == null ? void 0 : summary.payable_amount) ?? 0;
@@ -60,7 +60,7 @@ function Footer(props) {
60
60
  {
61
61
  type: "primary",
62
62
  size: "large",
63
- className: "pisell-scan-order-footer-btn",
63
+ className: `pisell-scan-order-footer-btn${disabled ? " pisell-scan-order-footer-btn-disabled" : ""}`,
64
64
  onClick: onAction
65
65
  },
66
66
  actionText
@@ -6,10 +6,12 @@
6
6
  justify-content: space-between;
7
7
  align-items: center;
8
8
  gap: 12px;
9
- padding: 16px;
9
+ box-sizing: border-box;
10
+ height: 70px;
11
+ padding: 0 16px;
10
12
  border-top: 1px solid #eaecf0;
11
13
  background: #f9fafb;
12
- border-radius: 16px 16px 0 0;
14
+ border-radius: 0;
13
15
  }
14
16
 
15
17
  .pisell-scan-order-footer-left {
@@ -33,8 +35,13 @@
33
35
 
34
36
  .pisell-scan-order-footer-btn {
35
37
  min-width: 128px;
36
- height: 56px;
37
- border-radius: 18px;
38
+ height: 48px;
39
+ border-radius: 12px;
40
+ }
41
+
42
+ .pisell-scan-order-footer-btn-disabled {
43
+ opacity: 0.45;
44
+ cursor: not-allowed;
38
45
  }
39
46
 
40
47
  .pisell-scan-order-footer-right {
@@ -57,8 +64,10 @@
57
64
  right: 0;
58
65
  bottom: 0;
59
66
  z-index: 30;
60
- border-radius: 16px 16px 0 0;
61
- padding-bottom: calc(16px + constant(safe-area-inset-bottom));
62
- padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
67
+ height: calc(70px + constant(safe-area-inset-bottom));
68
+ height: calc(70px + env(safe-area-inset-bottom, 0px));
69
+ padding-bottom: constant(safe-area-inset-bottom);
70
+ padding-bottom: env(safe-area-inset-bottom, 0px);
71
+ border-radius: 0;
63
72
  }
64
73
  }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ /**
4
+ * FulfillmentMode
5
+ *
6
+ * 通过 scanOrder module 读取 getFulfillmentModes() 返回的 { enableTableService, enablePickup }:
7
+ * - 两个都开启:渲染可切换的 Radio.Group,默认 Table service,挂载即同步一次 setPickupReferenceMode。
8
+ * - 只开启一个:仅渲染单行文案提示当前取餐方式,并同步一次 setPickupReferenceMode。
9
+ * - 都未开启:不渲染。
10
+ */
11
+ export default function FulfillmentMode(): JSX.Element | null;
@@ -0,0 +1,96 @@
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/scanOrder/components/FulfillmentMode/index.tsx
30
+ var FulfillmentMode_exports = {};
31
+ __export(FulfillmentMode_exports, {
32
+ default: () => FulfillmentMode
33
+ });
34
+ module.exports = __toCommonJS(FulfillmentMode_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_context = require("../../context");
39
+ var import_index = require("./index.less");
40
+ function FulfillmentMode() {
41
+ const { scanOrderModule } = (0, import_context.useScanOrderContext)();
42
+ const [modes, setModes] = (0, import_react.useState)({});
43
+ const [mode, setMode] = (0, import_react.useState)("table_service");
44
+ (0, import_react.useEffect)(() => {
45
+ if (!scanOrderModule) return;
46
+ const next = (typeof scanOrderModule.getFulfillmentModes === "function" ? scanOrderModule.getFulfillmentModes() : void 0) || {};
47
+ setModes(next);
48
+ const onlyTable = !!next.enableTableService && !next.enablePickup;
49
+ const onlyPickup = !next.enableTableService && !!next.enablePickup;
50
+ const initial = onlyPickup ? "counter_pickup" : onlyTable ? "table_service" : "table_service";
51
+ setMode(initial);
52
+ if ((next.enableTableService || next.enablePickup) && typeof scanOrderModule.setPickupReferenceMode === "function") {
53
+ scanOrderModule.setPickupReferenceMode(initial);
54
+ }
55
+ }, [scanOrderModule]);
56
+ const { enableTableService, enablePickup } = modes;
57
+ const labelTitle = (0, import_react.useMemo)(
58
+ () => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.title")),
59
+ []
60
+ );
61
+ const tableServiceText = (0, import_react.useMemo)(
62
+ () => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.table_service")),
63
+ []
64
+ );
65
+ const pickupText = (0, import_react.useMemo)(
66
+ () => String(import_utils.locales.getText("pisell2.scan.order.fulfillment.pickup")),
67
+ []
68
+ );
69
+ if (!enableTableService && !enablePickup) return null;
70
+ if (!enableTableService || !enablePickup) {
71
+ const singleLabel = enablePickup ? pickupText : tableServiceText;
72
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment pisell-scan-order-fulfillment-single" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-fulfillment-title" }, labelTitle), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-fulfillment-value" }, singleLabel));
73
+ }
74
+ const handleChange = (next) => {
75
+ if (next === mode) return;
76
+ setMode(next);
77
+ if (typeof (scanOrderModule == null ? void 0 : scanOrderModule.setPickupReferenceMode) === "function") {
78
+ scanOrderModule.setPickupReferenceMode(next);
79
+ }
80
+ };
81
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-fulfillment-title" }, labelTitle), /* @__PURE__ */ import_react.default.createElement(
82
+ import_antd.Radio.Group,
83
+ {
84
+ className: "pisell-scan-order-fulfillment-group",
85
+ optionType: "button",
86
+ buttonStyle: "solid",
87
+ value: mode,
88
+ onChange: (event) => {
89
+ var _a;
90
+ return handleChange((_a = event == null ? void 0 : event.target) == null ? void 0 : _a.value);
91
+ }
92
+ },
93
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Button, { value: "table_service" }, tableServiceText),
94
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Button, { value: "counter_pickup" }, pickupText)
95
+ ));
96
+ }
@@ -0,0 +1,40 @@
1
+ .pisell-scan-order-fulfillment {
2
+ padding: 4px 16px;
3
+ margin-bottom: 12px;
4
+ background: #fff;
5
+ border-radius: 12px;
6
+
7
+ .pisell-scan-order-fulfillment-title {
8
+ color: #101828;
9
+ font-size: 16px;
10
+ font-weight: 500;
11
+ margin-bottom: 8px;
12
+ }
13
+
14
+ .pisell-scan-order-fulfillment-group {
15
+ display: flex;
16
+ width: 100%;
17
+
18
+ .pisell-lowcode-radio-button-wrapper {
19
+ flex: 1;
20
+ text-align: center;
21
+ }
22
+ }
23
+ }
24
+
25
+ .pisell-scan-order-fulfillment-single {
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: space-between;
29
+ gap: 12px;
30
+
31
+ .pisell-scan-order-fulfillment-title {
32
+ margin-bottom: 0;
33
+ }
34
+
35
+ .pisell-scan-order-fulfillment-value {
36
+ color: #344054;
37
+ font-size: 14px;
38
+ font-weight: 500;
39
+ }
40
+ }
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ interface ManualPickupRefModalProps {
4
+ open: boolean;
5
+ confirmLoading?: boolean;
6
+ onCancel: () => void;
7
+ onConfirm: (value: string) => void;
8
+ }
9
+ /**
10
+ * ManualPickupRefModal
11
+ *
12
+ * 当 scanOrder.checkManualPickupRef() 返回 enabled=true 时,弹出让用户输入
13
+ * 昵称/buzzer 的弹窗。确认时回调 onConfirm(value),由外部负责 setPickupRef 与下单。
14
+ */
15
+ export default function ManualPickupRefModal({ open, confirmLoading, onCancel, onConfirm, }: ManualPickupRefModalProps): JSX.Element;
16
+ export {};
@@ -0,0 +1,116 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/scanOrder/components/ManualPickupRefModal/index.tsx
30
+ var ManualPickupRefModal_exports = {};
31
+ __export(ManualPickupRefModal_exports, {
32
+ default: () => ManualPickupRefModal
33
+ });
34
+ module.exports = __toCommonJS(ManualPickupRefModal_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_materials = require("@pisell/materials");
38
+ var import_utils = require("@pisell/utils");
39
+ var import_index = require("./index.less");
40
+ function ManualPickupRefModal({
41
+ open,
42
+ confirmLoading = false,
43
+ onCancel,
44
+ onConfirm
45
+ }) {
46
+ const [value, setValue] = (0, import_react.useState)("");
47
+ (0, import_react.useEffect)(() => {
48
+ if (open) setValue("");
49
+ }, [open]);
50
+ const title = (0, import_react.useMemo)(
51
+ () => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.title")),
52
+ []
53
+ );
54
+ const heading = (0, import_react.useMemo)(
55
+ () => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.heading")),
56
+ []
57
+ );
58
+ const description = (0, import_react.useMemo)(
59
+ () => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.description")),
60
+ []
61
+ );
62
+ const placeholder = (0, import_react.useMemo)(
63
+ () => String(import_utils.locales.getText("pisell2.scan.order.pickup.ref.placeholder")),
64
+ []
65
+ );
66
+ const confirmText = (0, import_react.useMemo)(
67
+ () => String(import_utils.locales.getText("pisell2.event.confirm") || "Confirm"),
68
+ []
69
+ );
70
+ const trimmed = value.trim();
71
+ const canConfirm = !!trimmed && !confirmLoading;
72
+ const handleConfirm = () => {
73
+ if (!canConfirm) return;
74
+ onConfirm(trimmed);
75
+ };
76
+ return /* @__PURE__ */ import_react.default.createElement(
77
+ import_antd.Modal,
78
+ {
79
+ open,
80
+ title,
81
+ footer: null,
82
+ onCancel,
83
+ maskClosable: false,
84
+ destroyOnClose: true,
85
+ centered: true,
86
+ className: "pisell-scan-order-pickup-ref-modal"
87
+ },
88
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-heading" }, heading), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-pickup-ref-desc" }, description), /* @__PURE__ */ import_react.default.createElement(
89
+ import_antd.Input,
90
+ {
91
+ size: "large",
92
+ placeholder,
93
+ value,
94
+ onChange: (event) => {
95
+ var _a;
96
+ return setValue(((_a = event == null ? void 0 : event.target) == null ? void 0 : _a.value) || "");
97
+ },
98
+ onPressEnter: handleConfirm,
99
+ className: "pisell-scan-order-pickup-ref-input",
100
+ maxLength: 32,
101
+ allowClear: true
102
+ }
103
+ ), /* @__PURE__ */ import_react.default.createElement(
104
+ import_materials.Button,
105
+ {
106
+ type: "primary",
107
+ block: true,
108
+ size: "large",
109
+ disabled: !canConfirm,
110
+ loading: confirmLoading,
111
+ onClick: handleConfirm
112
+ },
113
+ confirmText
114
+ ))
115
+ );
116
+ }
@@ -0,0 +1,61 @@
1
+ .pisell-scan-order-pickup-ref-modal {
2
+ .pisell-lowcode-modal-content {
3
+ border-radius: 16px;
4
+ padding: 0;
5
+ }
6
+
7
+ .pisell-lowcode-modal-header {
8
+ padding: 16px 20px;
9
+ border-bottom: 1px solid #eaecf0;
10
+ margin-bottom: 0;
11
+ }
12
+
13
+ .pisell-lowcode-modal-title {
14
+ font-size: 16px;
15
+ font-weight: 600;
16
+ color: #101828;
17
+ }
18
+
19
+ .pisell-lowcode-modal-body {
20
+ padding: 24px 20px 28px;
21
+ }
22
+
23
+ .pisell-lowcode-modal-close {
24
+ top: 14px;
25
+ inset-inline-end: 16px;
26
+ }
27
+ }
28
+
29
+ .pisell-scan-order-pickup-ref-body {
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 12px;
33
+ align-items: stretch;
34
+
35
+ .pisell-scan-order-pickup-ref-heading {
36
+ text-align: center;
37
+ color: #101828;
38
+ font-size: 24px;
39
+ font-weight: 700;
40
+ line-height: 1.3;
41
+ margin-top: 4px;
42
+ }
43
+
44
+ .pisell-scan-order-pickup-ref-desc {
45
+ text-align: center;
46
+ color: #667085;
47
+ font-size: 14px;
48
+ font-weight: 400;
49
+ margin-bottom: 12px;
50
+ }
51
+
52
+ .pisell-scan-order-pickup-ref-input {
53
+ height: 48px;
54
+ border-radius: 10px;
55
+
56
+ input {
57
+ text-align: center;
58
+ font-size: 16px;
59
+ }
60
+ }
61
+ }