@pisell/private-materials 3.3.80 → 3.3.82

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 (547) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/businessModel/SalesModel/Sales/index.js +37 -4
  12. package/es/businessModel/SalesModel/index.d.ts +0 -1
  13. package/es/components/Sales/Resource/index.js +2 -2
  14. package/es/components/Sales/Resource/serve.d.ts +7 -0
  15. package/es/components/Sales/Resource/serve.js +10 -0
  16. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
  18. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  19. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  22. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  23. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  24. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  25. package/es/components/appointmentBooking/components/Header/index.js +8 -14
  26. package/es/components/appointmentBooking/components/Services/index.js +38 -36
  27. package/es/components/appointmentBooking/components/Voucher/index.js +13 -0
  28. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +6 -7
  29. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  30. package/es/components/appointmentBooking/index.js +14 -0
  31. package/es/components/appointmentBooking/index.less +1 -1
  32. package/es/components/appointmentBooking/locales.js +3 -3
  33. package/es/components/booking/addons/index.js +9 -2
  34. package/es/components/booking/addons/model.js +5 -0
  35. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  36. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  37. package/es/components/booking/components/TabProduct/selectProductItem/index.js +3 -1
  38. package/es/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  39. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  40. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  41. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  42. package/es/components/booking/components/footer/amount.js +2 -1
  43. package/es/components/booking/components/footer/index.js +9 -3
  44. package/es/components/booking/components/footer/utils.d.ts +1 -0
  45. package/es/components/booking/components/footer/utils.js +75 -37
  46. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  47. package/es/components/booking/components/voucher/index.js +110 -66
  48. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  49. package/es/components/booking/components/voucher/utils.js +15 -0
  50. package/es/components/booking/deposit/index.d.ts +0 -1
  51. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  52. package/es/components/booking/editBookingModal/index.js +386 -0
  53. package/es/components/booking/editBookingModal/index.less +8 -0
  54. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  55. package/es/components/booking/editBookingModal/locales.js +20 -0
  56. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  57. package/es/components/booking/editBookingModal/mock.js +2993 -0
  58. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  59. package/es/components/booking/editBookingModal/serve.js +288 -0
  60. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  61. package/es/components/booking/editBookingModal/type.js +1 -0
  62. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  63. package/es/components/booking/editBookingModal/utils.js +157 -0
  64. package/es/components/booking/forms/footer.d.ts +0 -1
  65. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  66. package/es/components/booking/forms/single/index.d.ts +0 -1
  67. package/es/components/booking/forms/table/index.d.ts +0 -1
  68. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  69. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  70. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  71. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  72. package/es/components/booking/info/date/index.d.ts +0 -1
  73. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  74. package/es/components/booking/info/header/index.d.ts +0 -1
  75. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  76. package/es/components/booking/info/index.d.ts +0 -1
  77. package/es/components/booking/info/notes/index.d.ts +0 -1
  78. package/es/components/booking/info/service/Lists.d.ts +0 -1
  79. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  80. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  81. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  82. package/es/components/booking/info/service/like/index.d.ts +0 -1
  83. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  84. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  85. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  86. package/es/components/booking/info/service2/utils.js +9 -4
  87. package/es/components/booking/info/utils.js +1 -1
  88. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  89. package/es/components/booking/info2/service/addService/index.js +2 -2
  90. package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
  91. package/es/components/booking/info2/service/addService/utils.js +44 -13
  92. package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
  93. package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
  94. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  95. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
  96. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  97. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
  98. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  99. package/es/components/booking/info2/service/editService/index.js +5 -2
  100. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  101. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  102. package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
  103. package/es/components/booking/info2/utilsByBooking.js +14 -3
  104. package/es/components/booking/locales.d.ts +6 -0
  105. package/es/components/booking/locales.js +9 -3
  106. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  107. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  108. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  109. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  110. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  111. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  112. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  113. package/es/components/booking/utils.d.ts +2 -2
  114. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  115. package/es/components/eftpos/form/index.d.ts +0 -1
  116. package/es/components/eftpos/group/index.d.ts +0 -1
  117. package/es/components/eftpos/hooks.d.ts +0 -1
  118. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  119. package/es/components/eftpos/icon/device.d.ts +0 -1
  120. package/es/components/eftpos/index.d.ts +0 -1
  121. package/es/components/eftpos/pos.d.ts +0 -1
  122. package/es/components/eftpos/receipt/index.d.ts +0 -1
  123. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  124. package/es/components/eftposPay/amount.d.ts +0 -1
  125. package/es/components/eftposPay/app.d.ts +0 -1
  126. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  127. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  128. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  129. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  130. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  131. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  132. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  133. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  134. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  135. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  136. package/es/components/eftposPay/device.d.ts +0 -1
  137. package/es/components/eftposPay/hooks.d.ts +1 -1
  138. package/es/components/eftposPay/index.d.ts +0 -1
  139. package/es/components/eftposPay/pay.d.ts +0 -1
  140. package/es/components/eftposPay/payo/config.d.ts +0 -1
  141. package/es/components/eftposPay/store/index.d.ts +2 -2
  142. package/es/components/eftposPay/tip.d.ts +0 -1
  143. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  144. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  145. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  146. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  147. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  148. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  149. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  150. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  151. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  152. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  153. package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
  154. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  155. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  156. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  157. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  158. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  159. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  160. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  161. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  162. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  163. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  164. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  165. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  166. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  167. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  168. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  169. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  170. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  171. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  172. package/es/components/eventBooking/components/bookingDetailModal/index.js +19 -3
  173. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  174. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  175. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  176. package/es/components/eventBooking/index.js +21 -7
  177. package/es/components/eventBooking/locales.js +3 -3
  178. package/es/components/index.d.ts +3 -1
  179. package/es/components/index.js +3 -1
  180. package/es/components/login/index.d.ts +0 -1
  181. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  182. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  183. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  184. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  185. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  186. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  187. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  188. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  189. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  190. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  191. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  192. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  193. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  194. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  195. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  196. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  197. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  198. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  199. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  200. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  201. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  202. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  203. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  204. package/es/components/productExtension/index.d.ts +0 -1
  205. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  206. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  207. package/es/components/ruleSetting/index.d.ts +0 -1
  208. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  209. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  210. package/es/components/schedules/calendar/index.d.ts +0 -1
  211. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  212. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  213. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  214. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  215. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  216. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  217. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  218. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  219. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  220. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  221. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  222. package/es/components/schedules/products/index.d.ts +0 -1
  223. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  224. package/es/components/schedules/products/list/index.d.ts +0 -1
  225. package/es/components/schedules/resources/index.d.ts +0 -1
  226. package/es/components/schedules/resources/list/index.d.ts +0 -1
  227. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  228. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  229. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  230. package/es/components/schedules/schedules/index.d.ts +0 -1
  231. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  232. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  233. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  234. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  235. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  236. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  237. package/es/components/shoppingCart/index.d.ts +0 -1
  238. package/es/components/stepController/components/Content/index.d.ts +7 -0
  239. package/es/components/stepController/components/Content/index.js +9 -0
  240. package/es/components/stepController/components/Content/index.less +8 -0
  241. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  242. package/es/components/stepController/components/Footer/index.js +15 -0
  243. package/es/components/stepController/components/Footer/index.less +39 -0
  244. package/es/components/stepController/components/Header/index.d.ts +20 -0
  245. package/es/components/stepController/components/Header/index.js +97 -0
  246. package/es/components/stepController/components/Header/index.less +21 -0
  247. package/es/components/stepController/index.d.ts +5 -0
  248. package/es/components/stepController/index.js +64 -0
  249. package/es/components/stepController/index.less +11 -0
  250. package/es/components/stepController/locales.d.ts +27 -0
  251. package/es/components/stepController/locales.js +32 -0
  252. package/es/components/stepController/types.d.ts +23 -0
  253. package/es/components/stepController/types.js +1 -0
  254. package/es/components/taxSelect/index.d.ts +0 -1
  255. package/es/components/ticketBooking/components/addServiceVariant/addService.js +6 -5
  256. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  257. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  258. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  259. package/es/components/ticketBooking/components/ticketBooking/index.js +261 -140
  260. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  261. package/es/components/ticketBooking/index.d.ts +0 -1
  262. package/es/components/ticketBooking/locales.d.ts +164 -146
  263. package/es/components/ticketBooking/locales.js +195 -147
  264. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  265. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  266. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  267. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  268. package/es/components/ticketBooking/utils/index.d.ts +5 -1
  269. package/es/components/ticketBooking/utils/index.js +58 -6
  270. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  271. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  272. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  273. package/es/hooks/useWindowSize.d.ts +5 -0
  274. package/es/hooks/useWindowSize.js +26 -0
  275. package/es/index.d.ts +2 -0
  276. package/es/index.js +3 -1
  277. package/lib/businessModel/SalesModel/Sales/index.js +22 -8
  278. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  279. package/lib/components/Sales/Resource/index.js +1 -1
  280. package/lib/components/Sales/Resource/serve.d.ts +7 -0
  281. package/lib/components/Sales/Resource/serve.js +9 -2
  282. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  283. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -4
  284. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  285. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  286. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  287. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  288. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  289. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  290. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  291. package/lib/components/appointmentBooking/components/Header/index.js +2 -3
  292. package/lib/components/appointmentBooking/components/Services/index.js +19 -18
  293. package/lib/components/appointmentBooking/components/Voucher/index.js +9 -0
  294. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +0 -1
  295. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  296. package/lib/components/appointmentBooking/index.js +11 -0
  297. package/lib/components/appointmentBooking/index.less +1 -1
  298. package/lib/components/appointmentBooking/locales.js +3 -3
  299. package/lib/components/booking/addons/index.js +10 -2
  300. package/lib/components/booking/addons/model.js +3 -0
  301. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  302. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  303. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +5 -1
  304. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
  305. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  306. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  307. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  308. package/lib/components/booking/components/footer/amount.js +2 -1
  309. package/lib/components/booking/components/footer/index.js +10 -5
  310. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  311. package/lib/components/booking/components/footer/utils.js +50 -12
  312. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  313. package/lib/components/booking/components/voucher/index.js +111 -67
  314. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  315. package/lib/components/booking/components/voucher/utils.js +43 -0
  316. package/lib/components/booking/deposit/index.d.ts +0 -1
  317. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  318. package/lib/components/booking/editBookingModal/index.js +363 -0
  319. package/lib/components/booking/editBookingModal/index.less +8 -0
  320. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  321. package/lib/components/booking/editBookingModal/locales.js +44 -0
  322. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  323. package/lib/components/booking/editBookingModal/mock.js +3314 -0
  324. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  325. package/lib/components/booking/editBookingModal/serve.js +178 -0
  326. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  327. package/lib/components/booking/editBookingModal/type.js +17 -0
  328. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  329. package/lib/components/booking/editBookingModal/utils.js +158 -0
  330. package/lib/components/booking/forms/footer.d.ts +0 -1
  331. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  332. package/lib/components/booking/forms/single/index.d.ts +0 -1
  333. package/lib/components/booking/forms/table/index.d.ts +0 -1
  334. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  335. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  336. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  337. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  338. package/lib/components/booking/info/date/index.d.ts +0 -1
  339. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  340. package/lib/components/booking/info/header/index.d.ts +0 -1
  341. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  342. package/lib/components/booking/info/index.d.ts +0 -1
  343. package/lib/components/booking/info/notes/index.d.ts +0 -1
  344. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  345. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  346. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  347. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  348. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  349. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  350. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  351. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  352. package/lib/components/booking/info/service2/utils.js +5 -3
  353. package/lib/components/booking/info/utils.js +2 -1
  354. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  355. package/lib/components/booking/info2/service/addService/index.js +2 -2
  356. package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
  357. package/lib/components/booking/info2/service/addService/utils.js +27 -4
  358. package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
  359. package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
  360. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  361. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
  362. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  363. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
  364. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  365. package/lib/components/booking/info2/service/editService/index.js +5 -2
  366. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  367. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  368. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
  369. package/lib/components/booking/info2/utilsByBooking.js +9 -2
  370. package/lib/components/booking/locales.d.ts +6 -0
  371. package/lib/components/booking/locales.js +9 -3
  372. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  373. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  374. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  375. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  376. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  377. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  378. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  379. package/lib/components/booking/utils.d.ts +2 -2
  380. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  381. package/lib/components/eftpos/form/index.d.ts +0 -1
  382. package/lib/components/eftpos/group/index.d.ts +0 -1
  383. package/lib/components/eftpos/hooks.d.ts +0 -1
  384. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  385. package/lib/components/eftpos/icon/device.d.ts +0 -1
  386. package/lib/components/eftpos/index.d.ts +0 -1
  387. package/lib/components/eftpos/pos.d.ts +0 -1
  388. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  389. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  390. package/lib/components/eftposPay/amount.d.ts +0 -1
  391. package/lib/components/eftposPay/app.d.ts +0 -1
  392. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  393. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  394. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  395. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  396. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  397. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  398. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  399. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  400. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  401. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  402. package/lib/components/eftposPay/device.d.ts +0 -1
  403. package/lib/components/eftposPay/hooks.d.ts +1 -1
  404. package/lib/components/eftposPay/index.d.ts +0 -1
  405. package/lib/components/eftposPay/pay.d.ts +0 -1
  406. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  407. package/lib/components/eftposPay/store/index.d.ts +2 -2
  408. package/lib/components/eftposPay/tip.d.ts +0 -1
  409. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  410. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  411. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  412. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  413. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  414. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  415. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  416. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  417. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  418. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  419. package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
  420. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  421. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  422. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  423. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  424. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  425. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  426. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  427. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  428. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  429. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  430. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  431. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  432. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  433. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  434. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  435. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  436. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  437. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  438. package/lib/components/eventBooking/components/bookingDetailModal/index.js +9 -3
  439. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  440. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  441. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  442. package/lib/components/eventBooking/index.js +11 -7
  443. package/lib/components/eventBooking/locales.js +3 -3
  444. package/lib/components/index.d.ts +3 -1
  445. package/lib/components/index.js +6 -0
  446. package/lib/components/login/index.d.ts +0 -1
  447. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  448. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  449. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  450. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  451. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  452. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  453. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  454. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  455. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  456. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  457. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  458. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  459. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  460. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  461. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  462. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  463. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  464. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  465. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  466. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  467. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  468. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  469. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  470. package/lib/components/productExtension/index.d.ts +0 -1
  471. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  472. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  473. package/lib/components/ruleSetting/index.d.ts +0 -1
  474. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  475. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  476. package/lib/components/schedules/calendar/index.d.ts +0 -1
  477. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  478. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  479. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  480. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  481. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  482. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  483. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  484. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  485. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  486. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  487. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  488. package/lib/components/schedules/products/index.d.ts +0 -1
  489. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  490. package/lib/components/schedules/products/list/index.d.ts +0 -1
  491. package/lib/components/schedules/resources/index.d.ts +0 -1
  492. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  493. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  494. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  495. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  496. package/lib/components/schedules/schedules/index.d.ts +0 -1
  497. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  498. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  499. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  500. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  501. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  502. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  503. package/lib/components/shoppingCart/index.d.ts +0 -1
  504. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  505. package/lib/components/stepController/components/Content/index.js +40 -0
  506. package/lib/components/stepController/components/Content/index.less +8 -0
  507. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  508. package/lib/components/stepController/components/Footer/index.js +49 -0
  509. package/lib/components/stepController/components/Footer/index.less +39 -0
  510. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  511. package/lib/components/stepController/components/Header/index.js +104 -0
  512. package/lib/components/stepController/components/Header/index.less +21 -0
  513. package/lib/components/stepController/index.d.ts +5 -0
  514. package/lib/components/stepController/index.js +89 -0
  515. package/lib/components/stepController/index.less +11 -0
  516. package/lib/components/stepController/locales.d.ts +27 -0
  517. package/lib/components/stepController/locales.js +50 -0
  518. package/lib/components/stepController/types.d.ts +23 -0
  519. package/lib/components/stepController/types.js +17 -0
  520. package/lib/components/taxSelect/index.d.ts +0 -1
  521. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +6 -4
  522. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  523. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  524. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  525. package/lib/components/ticketBooking/components/ticketBooking/index.js +267 -141
  526. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  527. package/lib/components/ticketBooking/index.d.ts +0 -1
  528. package/lib/components/ticketBooking/locales.d.ts +164 -146
  529. package/lib/components/ticketBooking/locales.js +22 -4
  530. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  531. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  532. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  533. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  534. package/lib/components/ticketBooking/utils/index.d.ts +5 -1
  535. package/lib/components/ticketBooking/utils/index.js +48 -5
  536. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  537. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  538. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  539. package/lib/hooks/useWindowSize.d.ts +5 -0
  540. package/lib/hooks/useWindowSize.js +51 -0
  541. package/lib/index.d.ts +2 -0
  542. package/lib/index.js +6 -0
  543. package/lowcode/edit-booking-modal/meta.ts +53 -0
  544. package/lowcode/step-controller/meta.ts +88 -0
  545. package/package.json +4 -4
  546. package/es/components/booking/info/utils.d.ts +0 -50
  547. package/lib/components/booking/info/utils.d.ts +0 -50
@@ -12,8 +12,12 @@ export declare const restoreProductOtherData: (data: any) => {
12
12
  product_variant_id: number;
13
13
  quantity: number;
14
14
  } | undefined;
15
- export declare const addService: (list: any[], addItem: any) => {
15
+ export declare const addService: (list: any[], addItem: any, state: any) => {
16
16
  list: any[];
17
17
  quantity: any;
18
18
  };
19
19
  export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
20
+ export declare const getCartProductOverlay: (state: any) => any;
21
+ export declare const getIsOverlayProduct: (item: any, state: any) => any;
22
+ export declare const getIsShowNumber: (item: any, state: any) => any;
23
+ export declare const genServiceKey: (item: any) => string;
@@ -33,8 +33,12 @@ __export(utils_exports, {
33
33
  addServiceScroll: () => addServiceScroll,
34
34
  formatBookingList: () => formatBookingList,
35
35
  formatDateToStr: () => formatDateToStr,
36
+ genServiceKey: () => genServiceKey,
37
+ getCartProductOverlay: () => getCartProductOverlay,
36
38
  getDefaultStartParam: () => getDefaultStartParam,
37
39
  getDisabledEdit: () => getDisabledEdit,
40
+ getIsOverlayProduct: () => getIsOverlayProduct,
41
+ getIsShowNumber: () => getIsShowNumber,
38
42
  getNextTimeSlice: () => getNextTimeSlice,
39
43
  restoreProductOtherData: () => restoreProductOtherData
40
44
  });
@@ -124,23 +128,29 @@ var restoreProductOtherData = (data) => {
124
128
  };
125
129
  };
126
130
  var isSameProduct = (a, b) => {
127
- var _a, _b, _c, _d;
128
- return ((_b = (_a = a._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.rowKey) === ((_d = (_c = b._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.rowKey);
131
+ var _a, _b, _c, _d, _e, _f, _g, _h;
132
+ if ((0, import_utils.isNormalProductByDurationSchedule)(a) && (0, import_utils.isNormalProductByDurationSchedule)(b)) {
133
+ return ((_b = (_a = a._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.rowKey) === ((_d = (_c = b._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.rowKey);
134
+ }
135
+ return ((_f = (_e = a._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.rowKey) === ((_h = (_g = b._extend) == null ? void 0 : _g.other) == null ? void 0 : _h.rowKey) && a._serviceKey === b._serviceKey;
129
136
  };
130
- var addService = (list, addItem) => {
137
+ var addService = (list, addItem, state) => {
131
138
  let value = list;
132
139
  let count;
133
- if (!(0, import_utils.isNormalProductByDurationSchedule)(addItem)) {
140
+ if (!(0, import_utils.isNormalProductByDurationSchedule)(addItem) && !getIsOverlayProduct(addItem, state)) {
134
141
  value.push(addItem);
135
142
  count = addItem._extend.quantity;
136
143
  } else {
137
144
  let isNotSame = true;
145
+ let isSetCount = false;
138
146
  value = list.map((item) => {
139
147
  var _a, _b, _c;
140
- if (isSameProduct(item, addItem)) {
148
+ const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
149
+ if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct) {
141
150
  isNotSame = false;
142
151
  const quantity = (((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1);
143
152
  count = quantity;
153
+ isSetCount = true;
144
154
  return {
145
155
  ...item,
146
156
  _extend: {
@@ -183,14 +193,47 @@ var addServiceScroll = (rowKey, cacheItem) => {
183
193
  }
184
194
  });
185
195
  };
196
+ var getCartProductOverlay = (state) => {
197
+ var _a, _b, _c;
198
+ return ((_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.cart_product_overlay) || { type: "product_all" };
199
+ };
200
+ var getIsOverlayProduct = (item, state) => {
201
+ const { type, product_ids } = getCartProductOverlay(state);
202
+ if (type === "product_all") {
203
+ return true;
204
+ }
205
+ return product_ids.includes(item.product_id || item.id);
206
+ };
207
+ var getIsShowNumber = (item, state) => {
208
+ const isBookingTicket2 = state.isBookingTicket2;
209
+ return (0, import_utils.isNormalProductByDurationSchedule)(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
210
+ };
211
+ var genServiceKey = (item) => {
212
+ var _a, _b, _c;
213
+ const product_id = item.product_id;
214
+ const durationKey = (_a = item._extend) == null ? void 0 : _a.duration;
215
+ const start_time = (_b = item._extend) == null ? void 0 : _b.start_time;
216
+ const total = (_c = item._extend) == null ? void 0 : _c.total;
217
+ let resourceKey = "";
218
+ Object.values(item._extend.resource).forEach((resources) => {
219
+ resources.forEach((resource) => {
220
+ resourceKey += `${resource.relation_id}`;
221
+ });
222
+ });
223
+ return `${product_id}-${durationKey}-${resourceKey}-${start_time}-${total}`;
224
+ };
186
225
  // Annotate the CommonJS export names for ESM import in node:
187
226
  0 && (module.exports = {
188
227
  addService,
189
228
  addServiceScroll,
190
229
  formatBookingList,
191
230
  formatDateToStr,
231
+ genServiceKey,
232
+ getCartProductOverlay,
192
233
  getDefaultStartParam,
193
234
  getDisabledEdit,
235
+ getIsOverlayProduct,
236
+ getIsShowNumber,
194
237
  getNextTimeSlice,
195
238
  restoreProductOtherData
196
239
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -0,0 +1,5 @@
1
+ interface UseWindowSizeOptions {
2
+ debounceMs?: number;
3
+ }
4
+ export declare const useWindowSize: (options?: UseWindowSizeOptions) => void;
5
+ export {};
@@ -0,0 +1,51 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/hooks/useWindowSize.ts
20
+ var useWindowSize_exports = {};
21
+ __export(useWindowSize_exports, {
22
+ useWindowSize: () => useWindowSize
23
+ });
24
+ module.exports = __toCommonJS(useWindowSize_exports);
25
+ var import_react = require("react");
26
+ var useWindowSize = (options = {}) => {
27
+ const {
28
+ debounceMs = 100
29
+ } = options;
30
+ (0, import_react.useEffect)(() => {
31
+ let timeoutId;
32
+ const setRealVH = () => {
33
+ const vh = window.innerHeight * 0.01;
34
+ document.documentElement.style.setProperty("--vh", `${vh}px`);
35
+ };
36
+ const debouncedHandleResize = () => {
37
+ clearTimeout(timeoutId);
38
+ timeoutId = setTimeout(setRealVH, debounceMs);
39
+ };
40
+ debouncedHandleResize();
41
+ window.addEventListener("resize", debouncedHandleResize);
42
+ return () => {
43
+ window.removeEventListener("resize", debouncedHandleResize);
44
+ clearTimeout(timeoutId);
45
+ };
46
+ }, [debounceMs]);
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ useWindowSize
51
+ });
package/lib/index.d.ts CHANGED
@@ -43,3 +43,5 @@ export { default as AppointmentBooking } from './components/appointmentBooking';
43
43
  export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
44
44
  export { default as TicketBooking } from './components/ticketBooking';
45
45
  export { default as SubTotal } from './components/subTotal';
46
+ export { default as StepController } from './components/stepController';
47
+ export { default as EditBookingModal } from './components/booking/editBookingModal';
package/lib/index.js CHANGED
@@ -43,6 +43,7 @@ __export(src_exports, {
43
43
  BookingPayment: () => import_payments.default,
44
44
  BookingResources: () => import_resources.default,
45
45
  BookingStartTime: () => import_startTime.default,
46
+ EditBookingModal: () => import_editBookingModal.default,
46
47
  Eftpos: () => import_eftpos.default,
47
48
  EftposPay: () => import_eftposPay.default,
48
49
  EventBooking: () => import_eventBooking.default,
@@ -63,6 +64,7 @@ __export(src_exports, {
63
64
  RuleSetting: () => import_ruleSetting.default,
64
65
  Schedules: () => import_schedules.default,
65
66
  ShoppingCart: () => import_shoppingCart.default,
67
+ StepController: () => import_stepController.default,
66
68
  SubTotal: () => import_subTotal.default,
67
69
  TaxSelect: () => import_taxSelect.default,
68
70
  TicketBooking: () => import_ticketBooking.default,
@@ -122,6 +124,8 @@ var import_appointmentBooking = __toESM(require("./components/appointmentBooking
122
124
  var import_deposit2 = __toESM(require("./components/appointmentBooking/deposit"));
123
125
  var import_ticketBooking = __toESM(require("./components/ticketBooking"));
124
126
  var import_subTotal = __toESM(require("./components/subTotal"));
127
+ var import_stepController = __toESM(require("./components/stepController"));
128
+ var import_editBookingModal = __toESM(require("./components/booking/editBookingModal"));
125
129
  import_dayjs.default.extend(import_weekday.default);
126
130
  import_dayjs.default.extend(import_localeData.default);
127
131
  // Annotate the CommonJS export names for ESM import in node:
@@ -140,6 +144,7 @@ import_dayjs.default.extend(import_localeData.default);
140
144
  BookingPayment,
141
145
  BookingResources,
142
146
  BookingStartTime,
147
+ EditBookingModal,
143
148
  Eftpos,
144
149
  EftposPay,
145
150
  EventBooking,
@@ -160,6 +165,7 @@ import_dayjs.default.extend(import_localeData.default);
160
165
  RuleSetting,
161
166
  Schedules,
162
167
  ShoppingCart,
168
+ StepController,
163
169
  SubTotal,
164
170
  TaxSelect,
165
171
  TicketBooking,
@@ -0,0 +1,53 @@
1
+ import {
2
+ IPublicTypeComponentMetadata,
3
+ IPublicTypeSnippet,
4
+ } from '@alilc/lowcode-types';
5
+
6
+ const EditBookingModalMeta: IPublicTypeComponentMetadata = {
7
+ componentName: 'EditBookingModal',
8
+ title: 'EditBookingModal',
9
+ docUrl: '',
10
+ screenshot: '',
11
+ devMode: 'proCode',
12
+ npm: {
13
+ package: '@pisell/private-materials',
14
+ version: '1.0.4',
15
+ exportName: 'EditBookingModal',
16
+ main: 'src/index.ts',
17
+ destructuring: true,
18
+ subName: '',
19
+ },
20
+ configure: {
21
+ props: [],
22
+ supports: {
23
+ events: [
24
+ {
25
+ name: 'onOk',
26
+ template:
27
+ "onOk(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onOk', event);}",
28
+ },
29
+ {
30
+ name: 'onCancel',
31
+ template:
32
+ "onCancel(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onCancel', event);}",
33
+ },
34
+ ],
35
+ },
36
+ component: {},
37
+ },
38
+ };
39
+ const snippets: IPublicTypeSnippet[] = [
40
+ {
41
+ title: 'EditBookingModal',
42
+ screenshot: '',
43
+ schema: {
44
+ componentName: 'EditBookingModal',
45
+ props: {},
46
+ },
47
+ },
48
+ ];
49
+
50
+ export default {
51
+ ...EditBookingModalMeta,
52
+ snippets,
53
+ };
@@ -0,0 +1,88 @@
1
+
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
+
4
+ const StepControllerMeta: ComponentMetadata = {
5
+ "componentName": "StepController",
6
+ "title": "StepController",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@pisell/private-materials",
12
+ "version": "1.0.4",
13
+ "exportName": "StepController",
14
+ "main": "src/index.ts",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ props: [
20
+ {
21
+ name: 'steps',
22
+ title: { label: '步骤列表', tip: 'steps | 步骤列表' },
23
+ setter: 'JsonSetter',
24
+ defaultValue: [],
25
+ },
26
+ {
27
+ name: 'currentStep',
28
+ title: { label: '当前步骤', tip: 'currentStep | 当前步骤' },
29
+ setter: 'StringSetter',
30
+ },
31
+ {
32
+ name: 'children',
33
+ title: { label: '内容', tip: 'leftChildren | 内容' },
34
+ setter: 'SlotSetter',
35
+ },
36
+ {
37
+ name: 'confirmCloseProps',
38
+ title: { label: '关闭流程确认弹窗内容', tip: 'confirmCloseProps | 关闭流程确认弹窗内容' },
39
+ setter: 'JsonSetter',
40
+ },
41
+ {
42
+ name: 'showFooter',
43
+ title: { label: '是否显示底部', tip: 'showFooter | 是否显示底部' },
44
+ setter: 'BoolSetter',
45
+ },
46
+ {
47
+ name: 'footerContent',
48
+ title: { label: '底部内容', tip: 'footerContent | 底部内容' },
49
+ setter: 'SlotSetter',
50
+ condition(target) {
51
+ return !!target.getProps().getPropValue("showFooter");
52
+ },
53
+ },
54
+ ],
55
+ "supports": {
56
+ style: true,
57
+ events: [
58
+ {
59
+ name: "onBack",
60
+ template:
61
+ "onBack(key){\n//console.log('返回上一步',key);}",
62
+ },
63
+ {
64
+ name: "onClose",
65
+ template:
66
+ "onClose(){\n//console.log('关闭流程');}",
67
+ },
68
+ ],
69
+ },
70
+ "component": {}
71
+ }
72
+ };
73
+ const snippets: Snippet[] = [
74
+ {
75
+ "title": "StepController",
76
+ "screenshot": "",
77
+ "schema": {
78
+ "componentName": "StepController",
79
+ "props": {
80
+ }
81
+ }
82
+ }
83
+ ];
84
+
85
+ export default {
86
+ ...StepControllerMeta,
87
+ snippets
88
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.80",
3
+ "version": "3.3.82",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/icon": "0.0.11",
63
- "@pisell/date-picker": "3.0.2",
64
62
  "@pisell/utils": "1.0.42",
65
- "@pisell/materials": "3.3.28"
63
+ "@pisell/icon": "0.0.11",
64
+ "@pisell/materials": "3.3.29",
65
+ "@pisell/date-picker": "3.0.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,50 +0,0 @@
1
- export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
- export declare const uniqueByField: (arr: any[], field: string) => any[];
3
- export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
- /**
5
- * @title: 判断两个时间是否在同一个时间段内
6
- * @description:
7
- * @param {number} time1 开始时间
8
- * @param {number} time2 结束时间
9
- * @param {number} interval 时间间隔
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-08-13 19:37
13
- */
14
- export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
- /**
16
- * @title: 根据时间间隔格式化服务列表
17
- * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
- * @param {any} list 服务列表
19
- * @return {*}
20
- * @Author: zhiwei.Wang
21
- * @Date: 2024-08-13 19:36
22
- */
23
- export declare const formatServiceListByTime: (list: any[]) => any[];
24
- export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
25
- declare type DataEntry = {
26
- total: number;
27
- origin_total: number;
28
- num: number;
29
- quotation_id: number;
30
- start_date: string;
31
- end_date: string;
32
- };
33
- declare type ResultStructure = Record<string, Record<string, any>>;
34
- export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
- /**
36
- * @title: 是否是跨日预约
37
- * @description:
38
- * @param {number} shopId
39
- * @return {*}
40
- * @Author: WangHan
41
- * @Date: 2024-11-29 11:19
42
- */
43
- export declare const isDayBooking: (shopId: number) => boolean;
44
- export declare const isOpenAddTime: (state: any) => boolean;
45
- export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
- export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
- duration: any;
48
- start_time: any;
49
- } | undefined;
50
- export {};
@@ -1,50 +0,0 @@
1
- export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
- export declare const uniqueByField: (arr: any[], field: string) => any[];
3
- export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
- /**
5
- * @title: 判断两个时间是否在同一个时间段内
6
- * @description:
7
- * @param {number} time1 开始时间
8
- * @param {number} time2 结束时间
9
- * @param {number} interval 时间间隔
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-08-13 19:37
13
- */
14
- export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
- /**
16
- * @title: 根据时间间隔格式化服务列表
17
- * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
- * @param {any} list 服务列表
19
- * @return {*}
20
- * @Author: zhiwei.Wang
21
- * @Date: 2024-08-13 19:36
22
- */
23
- export declare const formatServiceListByTime: (list: any[]) => any[];
24
- export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
25
- declare type DataEntry = {
26
- total: number;
27
- origin_total: number;
28
- num: number;
29
- quotation_id: number;
30
- start_date: string;
31
- end_date: string;
32
- };
33
- declare type ResultStructure = Record<string, Record<string, any>>;
34
- export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
- /**
36
- * @title: 是否是跨日预约
37
- * @description:
38
- * @param {number} shopId
39
- * @return {*}
40
- * @Author: WangHan
41
- * @Date: 2024-11-29 11:19
42
- */
43
- export declare const isDayBooking: (shopId: number) => boolean;
44
- export declare const isOpenAddTime: (state: any) => boolean;
45
- export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
- export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
- duration: any;
48
- start_time: any;
49
- } | undefined;
50
- export {};