@pisell/private-materials 6.2.24 → 6.2.26

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 (433) 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 +9 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Cart/index.js +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/booking/addons/index.js +4 -1
  16. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  17. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  18. package/es/components/booking/components/actionButtons/index.js +395 -0
  19. package/es/components/booking/components/actionButtons/index.less +148 -0
  20. package/es/components/booking/components/browserSelect/index.js +1 -1
  21. package/es/components/booking/components/clearCartModal/index.js +50 -0
  22. package/es/components/booking/components/clearCartModal/index.less +109 -0
  23. package/es/components/booking/components/customSelect/index.js +1 -0
  24. package/es/components/booking/components/customiseItemModal/index.js +294 -0
  25. package/es/components/booking/components/customiseItemModal/index.less +606 -0
  26. package/es/components/booking/components/footer/amount.d.ts +1 -0
  27. package/es/components/booking/components/footer/amount.js +15 -3
  28. package/es/components/booking/components/footer/index.js +106 -39
  29. package/es/components/booking/components/footer/utils.js +52 -24
  30. package/es/components/booking/components/tabPane/index.js +86 -5
  31. package/es/components/booking/components/tabPane/index.less +75 -1
  32. package/es/components/booking/components/voucher/index.js +19 -8
  33. package/es/components/booking/components/voucher/index.less +1 -1
  34. package/es/components/booking/dashboard/index.js +10 -3
  35. package/es/components/booking/forms/model.js +5 -5
  36. package/es/components/booking/hooks/useClearCart.js +11 -8
  37. package/es/components/booking/hooks/useQuotation.js +17 -7
  38. package/es/components/booking/info/client/index.js +3 -2
  39. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  40. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  41. package/es/components/booking/info/hooks/useInfoHolder.js +15 -7
  42. package/es/components/booking/info/index.less +18 -2
  43. package/es/components/booking/info/main.js +14 -15
  44. package/es/components/booking/info/service/Lists.js +41 -28
  45. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  46. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  47. package/es/components/booking/info/service/editService/constants.js +3 -0
  48. package/es/components/booking/info/service/editService/index.js +15 -10
  49. package/es/components/booking/info/service/like/index.js +1 -1
  50. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  51. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  52. package/es/components/booking/info/service2/utils.d.ts +4 -0
  53. package/es/components/booking/info/service2/utils.js +32 -23
  54. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  55. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  56. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  57. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  58. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  59. package/es/components/booking/info2/index.js +41 -18
  60. package/es/components/booking/info2/service/addService/utils.js +6 -3
  61. package/es/components/booking/info2/service/addTimeModal/index.js +5 -1
  62. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  63. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  64. package/es/components/booking/info2/service/editService/index.js +267 -171
  65. package/es/components/booking/info2/service/index.js +27 -18
  66. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  67. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  68. package/es/components/booking/info2/utilsByBooking.js +26 -3
  69. package/es/components/booking/locales.js +99 -3
  70. package/es/components/booking/materiels/duration/index.js +9 -2
  71. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  72. package/es/components/booking/materiels/startTime/index.js +1 -1
  73. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  74. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  75. package/es/components/booking/notes/addNote/index.js +52 -32
  76. package/es/components/booking/notes/addNote/index.less +53 -0
  77. package/es/components/booking/notes/model.js +5 -5
  78. package/es/components/booking/payments/model.js +5 -5
  79. package/es/components/eftposPay/amount.d.ts +1 -1
  80. package/es/components/eftposPay/device.d.ts +1 -1
  81. package/es/components/eftposPay/hooks.d.ts +2 -2
  82. package/es/components/eftposPay/store/index.d.ts +3 -3
  83. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  90. package/es/components/listComponent/index.js +5 -5
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  93. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  94. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  95. package/es/components/productExtension/card/index.js +3 -3
  96. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  97. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  98. package/es/components/productExtension/fields/Forms/index.js +12 -12
  99. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  100. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  101. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  102. package/es/components/productExtension/server.js +2 -2
  103. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  104. package/es/components/schedules/calendar/index.js +4 -4
  105. package/es/components/schedules/calendar/serve.js +2 -2
  106. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  107. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  108. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  109. package/es/components/schedules/components/ResourceList/index.js +1 -1
  110. package/es/components/schedules/components/Search/index.js +5 -5
  111. package/es/components/schedules/model.js +5 -5
  112. package/es/components/schedules/openHours/index.js +1 -1
  113. package/es/components/schedules/openHours/serve.js +2 -2
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  117. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  118. package/es/components/schedules/products/serve.js +2 -2
  119. package/es/components/schedules/products/utils.js +5 -5
  120. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  121. package/es/components/schedules/resources/detail/index.js +10 -10
  122. package/es/components/schedules/resources/list/index.js +2 -2
  123. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  124. package/es/components/schedules/resources/serve.js +2 -2
  125. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  126. package/es/components/schedules/utils.js +4 -4
  127. package/es/components/selectModal/index.js +2 -2
  128. package/es/components/shoppingCart/components/Cart/Product.js +62 -41
  129. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  130. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  131. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  132. package/es/components/subTotal/index.less +1 -1
  133. package/es/components/ticketBooking/components/addServiceVariant/addService.js +309 -351
  134. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  135. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  136. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  137. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  138. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  139. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  140. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  141. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  142. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  143. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  144. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  145. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  146. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  147. package/es/components/ticketBooking/components/ticketBooking/index.js +208 -33
  148. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  149. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  150. package/es/components/ticketBooking/components/timeBar/index.js +79 -68
  151. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  152. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  153. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  154. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  155. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  156. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  157. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  158. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  159. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  160. package/es/components/ticketBooking/index.js +21 -3
  161. package/es/components/ticketBooking/locales.js +6 -3
  162. package/es/components/ticketBooking/serve.js +11 -11
  163. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  164. package/es/components/ticketBooking/utils/index.js +104 -11
  165. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  166. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  167. package/es/hooks/useComponents.js +1 -1
  168. package/es/hooks/useToast.js +9 -0
  169. package/es/hooks/useTranslationOriginal.js +10 -0
  170. package/es/index.js +5 -1
  171. package/es/plus/clientCard/index.js +452 -0
  172. package/es/plus/clientCard/index.less +539 -0
  173. package/es/plus/clientCard/line/index.js +157 -0
  174. package/es/plus/clientCard/line/index.less +142 -0
  175. package/es/plus/clientCard/locales.js +17 -0
  176. package/es/plus/clientCard/types.js +1 -0
  177. package/es/plus/clientCard/utils.js +59 -0
  178. package/es/plus/clientName/index.js +18 -0
  179. package/es/plus/clientName/index.less +10 -0
  180. package/es/plus/clientName/type.js +1 -0
  181. package/es/plus/clientName/utils.js +18 -0
  182. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  183. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  184. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  185. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  186. package/es/plus/clinetSearch/Add/index.js +212 -0
  187. package/es/plus/clinetSearch/Add/index.less +30 -0
  188. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  189. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  190. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  191. package/es/plus/clinetSearch/index.js +214 -0
  192. package/es/plus/clinetSearch/index.less +91 -0
  193. package/es/plus/clinetSearch/locales.js +101 -0
  194. package/es/plus/clinetSearch/serve.js +31 -0
  195. package/es/plus/clinetSearch/types.js +1 -0
  196. package/es/plus/noteModal/AddTempModal.js +64 -0
  197. package/es/plus/noteModal/index.js +199 -0
  198. package/es/plus/noteModal/index.less +168 -0
  199. package/es/plus/noteModal/locales.js +32 -0
  200. package/es/plus/noteModal/types.js +1 -0
  201. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  202. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  203. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  204. package/es/pro/comprehensiveSearch/index.js +342 -0
  205. package/es/pro/comprehensiveSearch/index.less +323 -0
  206. package/es/pro/comprehensiveSearch/locales.js +17 -0
  207. package/es/pro/comprehensiveSearch/types.js +1 -0
  208. package/es/pro/numberKeyboard/index.js +155 -0
  209. package/es/pro/numberKeyboard/index.less +25 -0
  210. package/es/pro/numberKeyboard/locales.js +11 -0
  211. package/es/pro/pisellNumberSelector/example.js +68 -0
  212. package/es/pro/pisellNumberSelector/index.js +231 -0
  213. package/es/pro/pisellNumberSelector/index.less +193 -0
  214. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  215. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  216. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  217. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  218. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  219. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  220. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  221. package/es/pro/pisellPriceRadio/index.js +113 -0
  222. package/es/pro/pisellPriceRadio/index.less +158 -0
  223. package/es/pro/skuDetailModal/index.js +352 -0
  224. package/es/pro/skuDetailModal/index.less +236 -0
  225. package/es/pro/skuDetailModal/locales.js +47 -0
  226. package/es/pro/skuDetailModal/types.js +1 -0
  227. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  228. package/lib/components/Sales/Cart/index.js +1 -0
  229. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  230. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  231. package/lib/components/booking/addons/index.js +4 -1
  232. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  233. package/lib/components/booking/components/actionButtons/index.js +325 -0
  234. package/lib/components/booking/components/actionButtons/index.less +148 -0
  235. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  236. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  237. package/lib/components/booking/components/customSelect/index.js +1 -0
  238. package/lib/components/booking/components/customiseItemModal/index.js +279 -0
  239. package/lib/components/booking/components/customiseItemModal/index.less +606 -0
  240. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  241. package/lib/components/booking/components/footer/amount.js +5 -3
  242. package/lib/components/booking/components/footer/index.js +93 -23
  243. package/lib/components/booking/components/footer/utils.js +38 -13
  244. package/lib/components/booking/components/tabPane/index.js +78 -4
  245. package/lib/components/booking/components/tabPane/index.less +75 -1
  246. package/lib/components/booking/components/voucher/index.js +18 -7
  247. package/lib/components/booking/components/voucher/index.less +1 -1
  248. package/lib/components/booking/dashboard/index.js +7 -2
  249. package/lib/components/booking/hooks/useClearCart.js +16 -13
  250. package/lib/components/booking/hooks/useQuotation.js +3 -1
  251. package/lib/components/booking/info/client/index.js +5 -4
  252. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  253. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  254. package/lib/components/booking/info/hooks/useInfoHolder.js +16 -9
  255. package/lib/components/booking/info/index.less +18 -2
  256. package/lib/components/booking/info/main.js +12 -5
  257. package/lib/components/booking/info/service/Lists.js +41 -25
  258. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  259. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  260. package/lib/components/booking/info/service/editService/constants.js +31 -0
  261. package/lib/components/booking/info/service/editService/index.js +7 -1
  262. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  263. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  264. package/lib/components/booking/info/service2/utils.d.ts +4 -0
  265. package/lib/components/booking/info/service2/utils.js +31 -19
  266. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  267. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  268. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  269. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  270. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  271. package/lib/components/booking/info2/index.js +30 -9
  272. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  273. package/lib/components/booking/info2/service/addTimeModal/index.js +4 -0
  274. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  275. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  276. package/lib/components/booking/info2/service/editService/index.js +139 -74
  277. package/lib/components/booking/info2/service/index.js +16 -12
  278. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  279. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  280. package/lib/components/booking/info2/utilsByBooking.js +23 -4
  281. package/lib/components/booking/locales.js +93 -3
  282. package/lib/components/booking/materiels/duration/index.js +7 -2
  283. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  284. package/lib/components/booking/notes/addNote/index.js +41 -23
  285. package/lib/components/booking/notes/addNote/index.less +53 -0
  286. package/lib/components/eftposPay/amount.d.ts +1 -1
  287. package/lib/components/eftposPay/device.d.ts +1 -1
  288. package/lib/components/eftposPay/hooks.d.ts +2 -2
  289. package/lib/components/eftposPay/store/index.d.ts +3 -3
  290. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  291. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  292. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  293. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  294. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  295. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  296. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  297. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  298. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  299. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  300. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  301. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  302. package/lib/components/schedules/utils.js +1 -1
  303. package/lib/components/shoppingCart/components/Cart/Product.js +42 -21
  304. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  305. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  306. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  307. package/lib/components/subTotal/index.less +1 -1
  308. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +176 -248
  309. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  310. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  311. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  312. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  313. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  314. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  315. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  316. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  317. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  318. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  319. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  320. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  321. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  322. package/lib/components/ticketBooking/components/ticketBooking/index.js +228 -80
  323. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  324. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  325. package/lib/components/ticketBooking/components/timeBar/index.js +100 -86
  326. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  327. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  328. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  329. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  330. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  331. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  332. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  333. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  334. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  335. package/lib/components/ticketBooking/index.js +31 -4
  336. package/lib/components/ticketBooking/locales.js +6 -3
  337. package/lib/components/ticketBooking/serve.js +11 -11
  338. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  339. package/lib/components/ticketBooking/utils/index.js +71 -10
  340. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  341. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  342. package/lib/hooks/useToast.js +42 -0
  343. package/lib/hooks/useTranslationOriginal.js +42 -0
  344. package/lib/index.js +12 -0
  345. package/lib/plus/clientCard/index.js +442 -0
  346. package/lib/plus/clientCard/index.less +539 -0
  347. package/lib/plus/clientCard/line/index.js +153 -0
  348. package/lib/plus/clientCard/line/index.less +142 -0
  349. package/lib/plus/clientCard/locales.js +41 -0
  350. package/lib/plus/clientCard/types.js +17 -0
  351. package/lib/plus/clientCard/utils.js +75 -0
  352. package/lib/plus/clientName/index.js +53 -0
  353. package/lib/plus/clientName/index.less +10 -0
  354. package/lib/plus/clientName/type.js +17 -0
  355. package/lib/plus/clientName/utils.js +43 -0
  356. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  357. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  358. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  359. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  360. package/lib/plus/clinetSearch/Add/index.js +243 -0
  361. package/lib/plus/clinetSearch/Add/index.less +30 -0
  362. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  363. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  364. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  365. package/lib/plus/clinetSearch/index.js +205 -0
  366. package/lib/plus/clinetSearch/index.less +91 -0
  367. package/lib/plus/clinetSearch/locales.js +125 -0
  368. package/lib/plus/clinetSearch/serve.js +33 -0
  369. package/lib/plus/clinetSearch/types.js +17 -0
  370. package/lib/plus/noteModal/AddTempModal.js +95 -0
  371. package/lib/plus/noteModal/index.js +199 -0
  372. package/lib/plus/noteModal/index.less +168 -0
  373. package/lib/plus/noteModal/locales.js +56 -0
  374. package/lib/plus/noteModal/types.js +17 -0
  375. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  376. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  377. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  378. package/lib/pro/comprehensiveSearch/index.js +259 -0
  379. package/lib/pro/comprehensiveSearch/index.less +323 -0
  380. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  381. package/lib/pro/comprehensiveSearch/types.js +17 -0
  382. package/lib/pro/numberKeyboard/index.js +182 -0
  383. package/lib/pro/numberKeyboard/index.less +25 -0
  384. package/lib/pro/numberKeyboard/locales.js +35 -0
  385. package/lib/pro/pisellNumberSelector/example.js +93 -0
  386. package/lib/pro/pisellNumberSelector/index.js +260 -0
  387. package/lib/pro/pisellNumberSelector/index.less +193 -0
  388. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  389. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  390. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  391. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  392. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  393. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  394. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  395. package/lib/pro/pisellPriceRadio/index.js +130 -0
  396. package/lib/pro/pisellPriceRadio/index.less +158 -0
  397. package/lib/pro/skuDetailModal/index.js +311 -0
  398. package/lib/pro/skuDetailModal/index.less +236 -0
  399. package/lib/pro/skuDetailModal/locales.js +71 -0
  400. package/lib/pro/skuDetailModal/types.js +17 -0
  401. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  402. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  403. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  404. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  405. package/lowcode/client-card/meta.ts +337 -0
  406. package/lowcode/comprehensive-search/meta.ts +261 -0
  407. package/package.json +26 -26
  408. package/es/components/Sales/Cart/index.d.ts +0 -53
  409. package/es/components/booking/addons/index.d.ts +0 -17
  410. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  411. package/es/components/booking/components/voucher/index.d.ts +0 -3
  412. package/es/components/booking/dashboard/index.d.ts +0 -20
  413. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -3
  414. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  415. package/es/components/booking/locales.d.ts +0 -828
  416. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  417. package/es/components/shoppingCart/type.d.ts +0 -48
  418. package/es/components/ticketBooking/locales.d.ts +0 -174
  419. package/es/components/ticketBooking/serve.d.ts +0 -287
  420. package/es/index.d.ts +0 -47
  421. package/lib/components/Sales/Cart/index.d.ts +0 -53
  422. package/lib/components/booking/addons/index.d.ts +0 -17
  423. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  424. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  425. package/lib/components/booking/dashboard/index.d.ts +0 -20
  426. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -3
  427. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  428. package/lib/components/booking/locales.d.ts +0 -828
  429. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  430. package/lib/components/shoppingCart/type.d.ts +0 -48
  431. package/lib/components/ticketBooking/locales.d.ts +0 -174
  432. package/lib/components/ticketBooking/serve.d.ts +0 -287
  433. package/lib/index.d.ts +0 -47
@@ -279,6 +279,7 @@ var locales_default = {
279
279
  "pisell2.booking.dashboard.departed-visitors": "Departed visitors",
280
280
  "pisell2.booking.dashboard.departed-visitors-tip": "Tip: Total number of visitors who checked in and have left the venue today",
281
281
  "pisell2.booking.dashboard.default": "Default",
282
+ "pisell2.booking.info.text.clear": "Clear",
282
283
  "pisell2.booking.info.text.clear-cart": "Clear cart",
283
284
  "pisell2.booking.info.text.clear-all": "Clear all",
284
285
  "pisell2.booking.info.text.create-new": "Create new",
@@ -296,6 +297,33 @@ var locales_default = {
296
297
  "pisell2.text.missing.reservation.content": "You have not selected a reservation type, Please select one before proceeding.",
297
298
  "pisell2.text.confirm": "Confirm",
298
299
  "pisell2.text.cancel": "Cancel",
300
+ // Action Buttons
301
+ "pisell2.action-buttons.clear": "Clear",
302
+ "pisell2.action-buttons.manuel-order": "Manual\nOrder $",
303
+ "pisell2.action-buttons.customise-item": "Customise Item",
304
+ "pisell2.action-buttons.no-items-to-adjust": "No items in cart to adjust price.",
305
+ "pisell2.action-buttons.adjust-order-price": "Adjust Order Price",
306
+ "pisell2.action-buttons.price-adjusted-success": "Order price adjusted successfully.",
307
+ "pisell2.action-buttons.clear-success": "Clear Success",
308
+ "pisell2.text.manual-price-adjustment": "Discount",
309
+ // Customise Item Modal
310
+ "pisell2.customise-item.modal-title": "Create and Add Customise (Once-off) Item",
311
+ "pisell2.customise-item.product-name": "Product Name",
312
+ "pisell2.customise-item.default-product-name": "One-Off Item",
313
+ "pisell2.customise-item.vouchers-applicable": "Vouchers/Discounts Applicable",
314
+ "pisell2.customise-item.sell-price": "Sell Price",
315
+ "pisell2.customise-item.manual-deduction-price": "Manual Deduction Price",
316
+ "pisell2.customise-item.amount-placeholder": "Amount",
317
+ "pisell2.customise-item.save": "Save",
318
+ "pisell2.customise-item.save-success": "Custom item added successfully.",
319
+ "pisell2.customise-item.price-required-error": (priceType) => `Please complete the input for ${priceType}.`,
320
+ // SubTotal
321
+ "pisell2.subtotal.total": "Total",
322
+ // Clear Cart Modal
323
+ "pisell2.clear-cart-modal.title": "Are you sure to clear cart?",
324
+ "pisell2.clear-cart-modal.clear-items-only": "Clear Items Only",
325
+ "pisell2.clear-cart-modal.clear-all-reset": "Clear All &\nReset Cart",
326
+ "pisell2.clear-cart-modal.empty-cart-tip": "Cart is empty",
299
327
  "pisell2.text.change.pet.title": "You have changed the holder information. Do you want to keep the items under their name?",
300
328
  "pisell2.text.change.pet.content": "Selecting “Keep” will move the items to Open Items. Selecting “Discard” will clear all items under the holder’s name.",
301
329
  "pisell2.text.change.pet.content1": "Reservation-type items cannot be added to the Open Items cart and will be removed.",
@@ -334,7 +362,9 @@ var locales_default = {
334
362
  return `Valid through ${str}`;
335
363
  },
336
364
  "pisell2.text.quotation.product.change.title": "Notification",
337
- "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data."
365
+ "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
366
+ // Notes
367
+ "pisell2.booking.notes.placeholder": "Enter a note..."
338
368
  },
339
369
  "zh-CN": {
340
370
  "pisell2.text.refunded-amount": "已退金额",
@@ -586,6 +616,7 @@ var locales_default = {
586
616
  "pisell2.booking.dashboard.departed-visitors": "已离场的游客",
587
617
  "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已检票并离场的游客总人数",
588
618
  "pisell2.booking.dashboard.default": "默认",
619
+ "pisell2.booking.info.text.clear": "清空",
589
620
  "pisell2.booking.info.text.clear-cart": "清空购物车",
590
621
  "pisell2.booking.info.text.clear-all": "清空",
591
622
  "pisell2.booking.info.text.create-new": "新建",
@@ -603,6 +634,33 @@ var locales_default = {
603
634
  "pisell2.text.missing.reservation.content": "您尚未选择预约类型,请在继续操作前选择。",
604
635
  "pisell2.text.confirm": "确定",
605
636
  "pisell2.text.cancel": "取消",
637
+ // Action Buttons
638
+ "pisell2.action-buttons.clear": "清空",
639
+ "pisell2.action-buttons.manuel-order": "手动\n订单 $",
640
+ "pisell2.action-buttons.customise-item": "自定义商品",
641
+ "pisell2.action-buttons.no-items-to-adjust": "购物车中没有商品可调整价格。",
642
+ "pisell2.action-buttons.adjust-order-price": "调整订单价格",
643
+ "pisell2.action-buttons.price-adjusted-success": "订单价格调整成功。",
644
+ "pisell2.action-buttons.clear-success": "清空成功",
645
+ "pisell2.text.manual-price-adjustment": "折扣",
646
+ // Customise Item Modal
647
+ "pisell2.customise-item.modal-title": "创建并添加一次性商品",
648
+ "pisell2.customise-item.product-name": "商品名称",
649
+ "pisell2.customise-item.default-product-name": "一次性商品",
650
+ "pisell2.customise-item.vouchers-applicable": "应用所有优惠 / 折扣",
651
+ "pisell2.customise-item.sell-price": "售价",
652
+ "pisell2.customise-item.manual-deduction-price": "手动减价金额",
653
+ "pisell2.customise-item.amount-placeholder": "金额",
654
+ "pisell2.customise-item.save": "保存",
655
+ "pisell2.customise-item.save-success": "自定义商品添加成功。",
656
+ "pisell2.customise-item.price-required-error": (priceType) => `请完成${priceType}的输入。`,
657
+ // SubTotal
658
+ "pisell2.subtotal.total": "总价",
659
+ // Clear Cart Modal
660
+ "pisell2.clear-cart-modal.title": "确定要清空购物车吗?",
661
+ "pisell2.clear-cart-modal.clear-items-only": "仅清空商品",
662
+ "pisell2.clear-cart-modal.clear-all-reset": "清空所有内容\n并重置购物车",
663
+ "pisell2.clear-cart-modal.empty-cart-tip": "当前购物车为空",
606
664
  "pisell2.text.change.pet.title": "您已变更持有人信息,是否保留该持有人名下的商品?",
607
665
  "pisell2.text.change.pet.content": "选择“保留”将商品添加到未分配商品(公共购物车)中;选择“不保留”将清空该持有人名下的所有商品。",
608
666
  "pisell2.text.change.pet.content1": "预约类商品无法添加到公共购物车,将会被删除。",
@@ -641,7 +699,9 @@ var locales_default = {
641
699
  return `有效期至 ${str} (含当日)`;
642
700
  },
643
701
  "pisell2.text.quotation.product.change.title": "提示",
644
- "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
702
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
703
+ // Notes
704
+ "pisell2.booking.notes.placeholder": "输入备注..."
645
705
  },
646
706
  "zh-HK": {
647
707
  "pisell2.text.refunded-amount": "已退金額",
@@ -893,6 +953,7 @@ var locales_default = {
893
953
  "pisell2.booking.dashboard.departed-visitors": "已離場的遊客",
894
954
  "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已檢票並離場的遊客總人數",
895
955
  "pisell2.booking.dashboard.default": "默认",
956
+ "pisell2.booking.info.text.clear": "清空",
896
957
  "pisell2.booking.info.text.clear-cart": "清空購物車",
897
958
  "pisell2.booking.info.text.clear-all": "清空",
898
959
  "pisell2.booking.info.text.create-new": "新建",
@@ -910,6 +971,33 @@ var locales_default = {
910
971
  "pisell2.text.missing.reservation.content": "您尚未選擇預約類型,請在繼續操作前選擇。",
911
972
  "pisell2.text.confirm": "確定",
912
973
  "pisell2.text.cancel": "取消",
974
+ // Action Buttons
975
+ "pisell2.action-buttons.clear": "清空",
976
+ "pisell2.action-buttons.manuel-order": "手動\n訂單 $",
977
+ "pisell2.action-buttons.customise-item": "自定義商品",
978
+ "pisell2.action-buttons.no-items-to-adjust": "購物車中沒有商品可調整價格。",
979
+ "pisell2.action-buttons.adjust-order-price": "調整訂單價格",
980
+ "pisell2.action-buttons.price-adjusted-success": "訂單價格調整成功。",
981
+ "pisell2.action-buttons.clear-success": "清空成功",
982
+ "pisell2.text.manual-price-adjustment": "折扣",
983
+ // Customise Item Modal
984
+ "pisell2.customise-item.modal-title": "創建並添加一次性商品",
985
+ "pisell2.customise-item.product-name": "商品名稱",
986
+ "pisell2.customise-item.default-product-name": "一次性商品",
987
+ "pisell2.customise-item.vouchers-applicable": "應用所有優惠 / 折扣",
988
+ "pisell2.customise-item.sell-price": "售價",
989
+ "pisell2.customise-item.manual-deduction-price": "手動減價金額",
990
+ "pisell2.customise-item.amount-placeholder": "金額",
991
+ "pisell2.customise-item.save": "保存",
992
+ "pisell2.customise-item.save-success": "自定義商品添加成功。",
993
+ "pisell2.customise-item.price-required-error": (priceType) => `請完成${priceType}的輸入。`,
994
+ // SubTotal
995
+ "pisell2.subtotal.total": "總價",
996
+ // Clear Cart Modal
997
+ "pisell2.clear-cart-modal.title": "確定要清空購物車嗎?",
998
+ "pisell2.clear-cart-modal.clear-items-only": "僅清空商品",
999
+ "pisell2.clear-cart-modal.clear-all-reset": "清空所有內容\n並重置購物車",
1000
+ "pisell2.clear-cart-modal.empty-cart-tip": "當前購物車為空",
913
1001
  "pisell2.text.change.pet.title": "您已變更持有人信息,是否保留該持有人名下的商品?",
914
1002
  "pisell2.text.change.pet.content": "選擇“保留”將商品添加到未分配商品(公共購物車)中;選擇“不保留”將清空該持有人名下的所有商品。",
915
1003
  "pisell2.text.change.pet.content1": "預約類商品無法添加到公共購物車,將會被刪除。",
@@ -948,6 +1036,8 @@ var locales_default = {
948
1036
  return `有效期至 ${str} (含當日)`;
949
1037
  },
950
1038
  "pisell2.text.quotation.product.change.title": "提示",
951
- "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
1039
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
1040
+ // Notes
1041
+ "pisell2.booking.notes.placeholder": "輸入備註..."
952
1042
  }
953
1043
  };
@@ -49,6 +49,7 @@ var Duration = (props) => {
49
49
  timeObj,
50
50
  ...resetProps
51
51
  } = props;
52
+ const startDateStr = (0, import_react.useMemo)(() => (0, import_dayjs.default)(startDate).format("YYYY-MM-DD HH:mm:ss"), [startDate]);
52
53
  const times = (0, import_react.useMemo)(() => {
53
54
  if (timeObj) {
54
55
  return timeObj.durationSlicesBasedOnTime;
@@ -76,7 +77,7 @@ var Duration = (props) => {
76
77
  });
77
78
  }
78
79
  return durationSlicesBasedOnTime;
79
- }, [timeObj, slice, locale, duration, startDate, usableTime]);
80
+ }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
80
81
  (0, import_react.useEffect)(() => {
81
82
  timeObjChange == null ? void 0 : timeObjChange(times);
82
83
  }, [times]);
@@ -88,6 +89,10 @@ var Duration = (props) => {
88
89
  },
89
90
  []
90
91
  );
91
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(times));
92
+ const options = (0, import_react.useMemo)(() => {
93
+ console.log("render form options");
94
+ return renderOptions(times);
95
+ }, [times]);
96
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, options);
92
97
  };
93
98
  var duration_default = Duration;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -34,39 +34,57 @@ __export(addNote_exports, {
34
34
  module.exports = __toCommonJS(addNote_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
- var import_ahooks = require("ahooks");
37
+ var import_Edit05 = __toESM(require("@pisell/icon/es/Edit05"));
38
38
  var import_index = require("./index.less");
39
39
  var import_utils = require("@pisell/utils");
40
- var AddNote = ({ value, onChange, wait = 200, title, placeholder }) => {
41
- const [_value, _setValue] = (0, import_react.useState)();
42
- const debouncedValue = (0, import_ahooks.useDebounce)(_value, { wait });
43
- (0, import_react.useEffect)(() => {
44
- _setValue(value);
45
- }, [value]);
46
- const _onChange = (e) => {
47
- _setValue(e.target.value);
40
+ var import_noteModal = __toESM(require("../../../../plus/noteModal"));
41
+ var AddNote = ({ value, onChange, title, placeholder }) => {
42
+ const [modalOpen, setModalOpen] = (0, import_react.useState)(false);
43
+ const handleOpenModal = () => {
44
+ setModalOpen(true);
48
45
  };
49
- (0, import_ahooks.useUpdateEffect)(() => {
50
- if (value !== debouncedValue) {
51
- onChange(debouncedValue);
52
- }
53
- }, [debouncedValue]);
54
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-label" }, title), /* @__PURE__ */ import_react.default.createElement(
46
+ const handleConfirm = (newValue) => {
47
+ onChange == null ? void 0 : onChange(newValue);
48
+ setModalOpen(false);
49
+ };
50
+ const handleDelete = () => {
51
+ onChange == null ? void 0 : onChange("");
52
+ setModalOpen(false);
53
+ };
54
+ const handleCancel = () => {
55
+ setModalOpen(false);
56
+ };
57
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-label" }, title), /* @__PURE__ */ import_react.default.createElement(
55
58
  "div",
56
59
  {
57
- className: "pisell-lowcode__booking-notes-input",
58
- style: { marginTop: title ? 8 : 0 }
60
+ className: "pisell-lowcode__booking-notes-input-area",
61
+ style: { marginTop: title ? 8 : 0 },
62
+ onClick: handleOpenModal
59
63
  },
64
+ value ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-content" }, value) : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-notes-placeholder" }, placeholder || import_utils.locales.getText("pisell2.text.add-order-notes")),
60
65
  /* @__PURE__ */ import_react.default.createElement(
61
- import_antd.Input.TextArea,
66
+ import_antd.Button,
62
67
  {
63
- placeholder: placeholder || import_utils.locales.getText("pisell2.text.add-order-notes"),
64
- autoSize: { minRows: 4 },
65
- allowClear: true,
66
- value: _value,
67
- onChange: _onChange
68
+ type: "text",
69
+ icon: /* @__PURE__ */ import_react.default.createElement(import_Edit05.default, null),
70
+ size: "small",
71
+ className: "pisell-lowcode__booking-notes-edit-btn",
72
+ onClick: (e) => {
73
+ e.stopPropagation();
74
+ handleOpenModal();
75
+ }
68
76
  }
69
77
  )
78
+ )), /* @__PURE__ */ import_react.default.createElement(
79
+ import_noteModal.default,
80
+ {
81
+ open: modalOpen,
82
+ title: title || import_utils.locales.getText("pisell2.text.add-order-notes"),
83
+ value,
84
+ onConfirm: handleConfirm,
85
+ onDelete: handleDelete,
86
+ onCancel: handleCancel
87
+ }
70
88
  ));
71
89
  };
72
90
  var addNote_default = AddNote;
@@ -1,6 +1,7 @@
1
1
  .pisell-lowcode__booking-notes {
2
2
  padding: 20px 0;
3
3
  }
4
+
4
5
  .pisell-lowcode__booking-notes-label {
5
6
  font-size: 16px;
6
7
  font-weight: 500;
@@ -10,6 +11,58 @@
10
11
  margin-top: 8px;
11
12
  }
12
13
 
14
+ .pisell-lowcode__booking-notes-input-area {
15
+ position: relative;
16
+ min-height: 80px;
17
+ padding: 12px;
18
+ border: 1px solid #d9d9d9;
19
+ border-radius: 6px;
20
+ background-color: #ffffff;
21
+ cursor: pointer;
22
+ transition: all 0.2s;
23
+
24
+ &:hover {
25
+ border-color: #4096ff;
26
+ }
27
+
28
+ &:focus-within {
29
+ border-color: #4096ff;
30
+ box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
31
+ }
32
+ }
33
+
34
+ .pisell-lowcode__booking-notes-content {
35
+ font-size: 14px;
36
+ color: rgba(0, 0, 0, 0.88);
37
+ line-height: 1.5714285714285714;
38
+ white-space: pre-wrap;
39
+ word-break: break-word;
40
+ padding-right: 32px;
41
+ }
42
+
43
+ .pisell-lowcode__booking-notes-placeholder {
44
+ font-size: 14px;
45
+ color: rgba(0, 0, 0, 0.25);
46
+ line-height: 1.5714285714285714;
47
+ padding-right: 32px;
48
+ }
49
+
50
+ .pisell-lowcode__booking-notes-edit-btn {
51
+ position: absolute;
52
+ top: 8px;
53
+ right: 8px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ width: 24px;
58
+ height: 24px;
59
+ color: rgba(0, 0, 0, 0.45);
60
+
61
+ &:hover {
62
+ color: #4096ff;
63
+ }
64
+ }
65
+
13
66
  .pisell-lowcode__booking-notes-desc {
14
67
  margin-top: 8px;
15
68
  }
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
+ request = {};
30
31
  constructor() {
31
- this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -37,6 +37,8 @@ var import_materials = require("@pisell/materials");
37
37
  var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
38
38
  var import_useContext = require("../../hooks/useContext");
39
39
  var import_useAddService = __toESM(require("../../hooks/useAddService"));
40
+ var import_utils = require("../../../booking/info/service2/utils");
41
+ var import_ahooks = require("ahooks");
40
42
  var Product = (props) => {
41
43
  const { id, lists, isAdd = true } = props;
42
44
  const { state, onAction, onChange } = (0, import_useContext.useContext)();
@@ -51,13 +53,14 @@ var Product = (props) => {
51
53
  isShowChangeHolder,
52
54
  isShowHolder,
53
55
  isShowAddHolderButton,
54
- isShowEditProduct
56
+ isShowEditProduct,
57
+ productCardStyleConfig = {}
55
58
  } = state;
56
59
  const clearCart = (0, import_useClearCart.default)(id);
57
- const handleChange = (item, type, other) => {
60
+ const handleChange = (0, import_ahooks.useMemoizedFn)((item, type, other) => {
58
61
  if (disabledEdit && !(other == null ? void 0 : other.disabled)) return;
59
62
  onChange(item, type, other);
60
- };
63
+ });
61
64
  const productParams = (0, import_react.useMemo)(() => {
62
65
  return {
63
66
  isShowNote,
@@ -81,24 +84,42 @@ var Product = (props) => {
81
84
  isShowChangeHolder,
82
85
  isShowEditProduct
83
86
  ]);
84
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
85
- return /* @__PURE__ */ import_react.default.createElement(
86
- import_materials.ProductCard,
87
- {
88
- key: item._id,
89
- dataSource: item,
90
- onAction: (e) => onAction == null ? void 0 : onAction(e),
91
- onDelete: (e) => handleChange(e, "delete", item),
92
- onNote: (e) => handleChange(e, "note", { note: e.note }),
93
- onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
94
- onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
95
- onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
96
- onChangeResource: (e) => handleChange(item, "change_resource", e),
97
- onChangeHolder: (e) => handleChange(item, "change_holder", e),
98
- onAddHolder: (e) => handleChange(item, "add_holder", e),
99
- ...productParams
87
+ const getProductCardStyleProps = (type) => {
88
+ const conf = productCardStyleConfig[`${type}_product_card_style`];
89
+ return {
90
+ isShowImage: conf == null ? void 0 : conf.show_product_image,
91
+ isShowDelete: conf == null ? void 0 : conf.show_remove_button
92
+ };
93
+ };
94
+ return (0, import_react.useMemo)(() => {
95
+ console.log("render cart");
96
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
97
+ let Comp = import_materials.ProductCard;
98
+ let isRetail;
99
+ if (state.scenario === "booking2") {
100
+ isRetail = (0, import_utils.isNormalProductByDurationSchedule)(item == null ? void 0 : item._origin);
101
+ Comp = isRetail ? import_materials.ProductCard.V2 : import_materials.ProductCard;
100
102
  }
101
- );
102
- }), !hideAddBtn && platform !== "h5" && isAdd ? (0, import_useAddService.default)(id, "more") : null);
103
+ return /* @__PURE__ */ import_react.default.createElement(
104
+ Comp,
105
+ {
106
+ type: isRetail ? "a2" : void 0,
107
+ key: item._id,
108
+ dataSource: item,
109
+ onAction: (e) => onAction == null ? void 0 : onAction(e),
110
+ onDelete: (e) => handleChange(e, "delete", item),
111
+ onNote: (e) => handleChange(e, "note", { note: e.note }),
112
+ onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
113
+ onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
114
+ onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
115
+ onChangeResource: (e) => handleChange(item, "change_resource", e),
116
+ onChangeHolder: (e) => handleChange(item, "change_holder", e),
117
+ onAddHolder: (e) => handleChange(item, "add_holder", e),
118
+ ...productParams,
119
+ ...getProductCardStyleProps(isRetail ? "retail" : "appointment")
120
+ }
121
+ );
122
+ }), !hideAddBtn && platform !== "h5" && isAdd ? (0, import_useAddService.default)(id, "more") : null);
123
+ }, [clearCart, lists, productParams, hideAddBtn, isAdd, platform]);
103
124
  };
104
125
  var Product_default = Product;
@@ -66,20 +66,23 @@ var Cart = () => {
66
66
  };
67
67
  });
68
68
  }, [carts, platform]);
69
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__shopping-cart") }, isProductList ? /* @__PURE__ */ import_react.default.createElement(import_Product.default, { id: void 0, lists: state == null ? void 0 : state.products }) : /* @__PURE__ */ import_react.default.createElement(
70
- import_materials.Collapse,
71
- {
72
- items: cartsMap,
73
- showHeader: true,
74
- panelBackground: "#ffffff",
75
- collapsible: platform !== "shop" ? "disabled" : "-",
76
- accordion: platform === "shop",
77
- onChange: (key) => {
78
- updateState({ activeKey: key });
79
- onActiveKey(key);
80
- },
81
- ...collapseParams
82
- }
83
- ));
69
+ return (0, import_react.useMemo)(() => {
70
+ console.log("render cart 22222");
71
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__shopping-cart") }, isProductList ? /* @__PURE__ */ import_react.default.createElement(import_Product.default, { id: void 0, lists: state == null ? void 0 : state.products }) : /* @__PURE__ */ import_react.default.createElement(
72
+ import_materials.Collapse,
73
+ {
74
+ items: cartsMap,
75
+ showHeader: true,
76
+ panelBackground: "#ffffff",
77
+ collapsible: platform !== "shop" ? "disabled" : "-",
78
+ accordion: platform === "shop",
79
+ onChange: (key) => {
80
+ updateState({ activeKey: key });
81
+ onActiveKey(key);
82
+ },
83
+ ...collapseParams
84
+ }
85
+ ));
86
+ }, [isProductList, cartsMap, platform, collapseParams, state == null ? void 0 : state.products]);
84
87
  };
85
88
  var Cart_default = Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;