@pisell/private-materials 3.2.12 → 3.2.13

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 (444) 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 +14 -18
  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/booking/addons/index.js +7 -5
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/footer/index.d.ts +0 -1
  15. package/es/components/booking/deposit/index.d.ts +0 -1
  16. package/es/components/booking/forms/model.d.ts +1 -10
  17. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  18. package/es/components/booking/info/header/index.d.ts +0 -1
  19. package/es/components/booking/info/index.d.ts +0 -1
  20. package/es/components/booking/info/model.d.ts +1 -10
  21. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  22. package/es/components/booking/info/service/addService/index.js +3 -3
  23. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  24. package/es/components/booking/info/service/editService/index.js +58 -48
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  27. package/es/components/booking/info2/service/addService/index.js +3 -2
  28. package/es/components/booking/info2/service/addService/utils.js +57 -5
  29. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  30. package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
  31. package/es/components/booking/info2/service/editService/index.js +4 -3
  32. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  33. package/es/components/booking/info2/service/editService/utils.js +18 -0
  34. package/es/components/booking/locales.d.ts +3 -0
  35. package/es/components/booking/locales.js +3 -0
  36. package/es/components/booking/model.d.ts +1 -9
  37. package/es/components/booking/notes/model.d.ts +1 -10
  38. package/es/components/booking/payments/model.d.ts +1 -10
  39. package/es/components/booking/utils.d.ts +2 -2
  40. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  41. package/es/components/eftposPay/amount.d.ts +1 -1
  42. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  43. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  45. package/es/components/eftposPay/device.d.ts +1 -1
  46. package/es/components/eftposPay/hooks.d.ts +2 -2
  47. package/es/components/eftposPay/index.d.ts +0 -1
  48. package/es/components/eftposPay/pay.d.ts +0 -1
  49. package/es/components/eftposPay/payo/config.d.ts +0 -1
  50. package/es/components/eftposPay/store/index.d.ts +5 -5
  51. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  52. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  54. package/es/components/eventBooking/index.d.ts +0 -1
  55. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  56. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  57. package/es/components/pay/toC/model.d.ts +1 -9
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  59. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  60. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  61. package/es/components/productExtension/index.d.ts +0 -1
  62. package/es/components/ruleSetting/index.d.ts +0 -1
  63. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  64. package/es/components/schedules/model.d.ts +1 -9
  65. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  66. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  67. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  68. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  69. package/es/components/taxSelect/index.d.ts +0 -1
  70. package/es/components/wallet/Detail/model.d.ts +1 -13
  71. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  72. package/es/components/wallet/PointCard/model.d.ts +1 -13
  73. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  74. package/es/components/wallet/Voucher/model.d.ts +1 -13
  75. package/es/components/wallet/model.d.ts +1 -9
  76. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  77. package/es/index.d.ts +0 -1
  78. package/es/index.js +1 -2
  79. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  80. package/lib/components/booking/addons/index.js +7 -5
  81. package/lib/components/booking/addons/model.d.ts +1 -10
  82. package/lib/components/booking/components/footer/index.d.ts +0 -1
  83. package/lib/components/booking/deposit/index.d.ts +0 -1
  84. package/lib/components/booking/forms/model.d.ts +1 -10
  85. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  86. package/lib/components/booking/info/header/index.d.ts +0 -1
  87. package/lib/components/booking/info/index.d.ts +0 -1
  88. package/lib/components/booking/info/model.d.ts +1 -10
  89. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  90. package/lib/components/booking/info/service/addService/index.js +2 -2
  91. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  92. package/lib/components/booking/info/service/editService/index.js +3 -2
  93. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  94. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  95. package/lib/components/booking/info2/service/addService/index.js +3 -2
  96. package/lib/components/booking/info2/service/addService/utils.js +36 -1
  97. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  98. package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
  99. package/lib/components/booking/info2/service/editService/index.js +3 -2
  100. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  101. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  102. package/lib/components/booking/locales.d.ts +3 -0
  103. package/lib/components/booking/locales.js +3 -0
  104. package/lib/components/booking/model.d.ts +1 -9
  105. package/lib/components/booking/notes/model.d.ts +1 -10
  106. package/lib/components/booking/payments/model.d.ts +1 -10
  107. package/lib/components/booking/utils.d.ts +2 -2
  108. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  109. package/lib/components/eftposPay/amount.d.ts +1 -1
  110. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  111. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  112. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  113. package/lib/components/eftposPay/device.d.ts +1 -1
  114. package/lib/components/eftposPay/hooks.d.ts +2 -2
  115. package/lib/components/eftposPay/index.d.ts +0 -1
  116. package/lib/components/eftposPay/pay.d.ts +0 -1
  117. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  118. package/lib/components/eftposPay/store/index.d.ts +5 -5
  119. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  120. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  121. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  122. package/lib/components/eventBooking/index.d.ts +0 -1
  123. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  124. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  125. package/lib/components/pay/toC/model.d.ts +1 -9
  126. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  127. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  128. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  129. package/lib/components/productExtension/index.d.ts +0 -1
  130. package/lib/components/ruleSetting/index.d.ts +0 -1
  131. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  132. package/lib/components/schedules/model.d.ts +1 -9
  133. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  134. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  135. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  136. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  137. package/lib/components/taxSelect/index.d.ts +0 -1
  138. package/lib/components/wallet/Detail/model.d.ts +1 -13
  139. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  140. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  141. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  142. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  143. package/lib/components/wallet/model.d.ts +1 -9
  144. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  145. package/lib/index.d.ts +0 -1
  146. package/lib/index.js +0 -3
  147. package/package.json +4 -4
  148. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  149. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
  150. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  151. package/es/components/parallelResourceBooking/assets/alert-circle.png +0 -0
  152. package/es/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
  153. package/es/components/parallelResourceBooking/assets/compass.svg +0 -13
  154. package/es/components/parallelResourceBooking/assets/image.svg +0 -5
  155. package/es/components/parallelResourceBooking/assets/phone.svg +0 -5
  156. package/es/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
  157. package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
  158. package/es/components/parallelResourceBooking/components/ErrorTip/index.js +0 -14
  159. package/es/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
  160. package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
  161. package/es/components/parallelResourceBooking/components/OpenCard/index.js +0 -65
  162. package/es/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
  163. package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  164. package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
  165. package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  166. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  167. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -46
  168. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  169. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -63
  170. package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
  171. package/es/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
  172. package/es/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -30
  173. package/es/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
  174. package/es/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
  175. package/es/components/parallelResourceBooking/components/Provider/Content/index.js +0 -65
  176. package/es/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
  177. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  178. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -34
  179. package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  180. package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
  181. package/es/components/parallelResourceBooking/components/Provider/Event/index.js +0 -93
  182. package/es/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
  183. package/es/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
  184. package/es/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -76
  185. package/es/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
  186. package/es/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
  187. package/es/components/parallelResourceBooking/components/Provider/Header/index.js +0 -75
  188. package/es/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
  189. package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
  190. package/es/components/parallelResourceBooking/components/Provider/Information/index.js +0 -178
  191. package/es/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
  192. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  193. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -34
  194. package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  195. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  196. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -27
  197. package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
  198. package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  199. package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
  200. package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
  201. package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -79
  202. package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
  203. package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  204. package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -90
  205. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  206. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -77
  207. package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
  208. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  209. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
  210. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  211. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  212. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
  213. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  214. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  215. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
  216. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  217. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  218. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
  219. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  220. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  221. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
  222. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  223. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  224. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
  225. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  226. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  227. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
  228. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  229. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  230. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
  231. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  232. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  233. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
  234. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  235. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
  236. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  237. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  238. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -36
  239. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  240. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  241. package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  242. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
  243. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
  244. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  245. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -33
  246. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  247. package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -30
  248. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
  249. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -337
  250. package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
  251. package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
  252. package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -52
  253. package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
  254. package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
  255. package/es/components/parallelResourceBooking/components/eventCard/index.js +0 -116
  256. package/es/components/parallelResourceBooking/components/eventCard/index.less +0 -81
  257. package/es/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
  258. package/es/components/parallelResourceBooking/components/productCard/index.js +0 -79
  259. package/es/components/parallelResourceBooking/components/productCard/index.less +0 -60
  260. package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
  261. package/es/components/parallelResourceBooking/components/progressBar/index.js +0 -93
  262. package/es/components/parallelResourceBooking/components/progressBar/index.less +0 -15
  263. package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
  264. package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -148
  265. package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
  266. package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
  267. package/es/components/parallelResourceBooking/components/resourceUsability/index.js +0 -44
  268. package/es/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
  269. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  270. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
  271. package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  272. package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
  273. package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -127
  274. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
  275. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -142
  276. package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
  277. package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
  278. package/es/components/parallelResourceBooking/components/selectHolder/index.js +0 -118
  279. package/es/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
  280. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
  281. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -168
  282. package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
  283. package/es/components/parallelResourceBooking/index.d.ts +0 -3
  284. package/es/components/parallelResourceBooking/index.js +0 -58
  285. package/es/components/parallelResourceBooking/index.less +0 -22
  286. package/es/components/parallelResourceBooking/locales.d.ts +0 -216
  287. package/es/components/parallelResourceBooking/locales.js +0 -251
  288. package/es/components/parallelResourceBooking/mock.d.ts +0 -627
  289. package/es/components/parallelResourceBooking/mock.js +0 -1172
  290. package/es/components/parallelResourceBooking/status.d.ts +0 -21
  291. package/es/components/parallelResourceBooking/status.js +0 -51
  292. package/es/components/parallelResourceBooking/type.d.ts +0 -17
  293. package/es/components/parallelResourceBooking/type.js +0 -1
  294. package/es/components/parallelResourceBooking/utils.d.ts +0 -45
  295. package/es/components/parallelResourceBooking/utils.js +0 -99
  296. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  297. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
  298. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  299. package/lib/components/parallelResourceBooking/assets/alert-circle.png +0 -0
  300. package/lib/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
  301. package/lib/components/parallelResourceBooking/assets/compass.svg +0 -13
  302. package/lib/components/parallelResourceBooking/assets/image.svg +0 -5
  303. package/lib/components/parallelResourceBooking/assets/phone.svg +0 -5
  304. package/lib/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
  305. package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
  306. package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +0 -30
  307. package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
  308. package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
  309. package/lib/components/parallelResourceBooking/components/OpenCard/index.js +0 -90
  310. package/lib/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
  311. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
  312. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
  313. package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  314. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
  315. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -82
  316. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
  317. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -92
  318. package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
  319. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
  320. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -59
  321. package/lib/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
  322. package/lib/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
  323. package/lib/components/parallelResourceBooking/components/Provider/Content/index.js +0 -90
  324. package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
  325. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
  326. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -60
  327. package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
  328. package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
  329. package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +0 -100
  330. package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
  331. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
  332. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -87
  333. package/lib/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
  334. package/lib/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
  335. package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +0 -80
  336. package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
  337. package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
  338. package/lib/components/parallelResourceBooking/components/Provider/Information/index.js +0 -151
  339. package/lib/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
  340. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
  341. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -67
  342. package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
  343. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
  344. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -57
  345. package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
  346. package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
  347. package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
  348. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
  349. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -90
  350. package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
  351. package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  352. package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -97
  353. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  354. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -69
  355. package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
  356. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  357. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
  358. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
  359. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
  360. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
  361. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
  362. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
  363. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
  364. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
  365. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
  366. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
  367. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
  368. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  369. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
  370. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
  371. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  372. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
  373. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
  374. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  375. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
  376. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
  377. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
  378. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
  379. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
  380. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  381. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
  382. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
  383. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
  384. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
  385. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  386. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -70
  387. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
  388. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  389. package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
  390. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
  391. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
  392. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  393. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -66
  394. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  395. package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -69
  396. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
  397. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -248
  398. package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
  399. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
  400. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -79
  401. package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
  402. package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
  403. package/lib/components/parallelResourceBooking/components/eventCard/index.js +0 -124
  404. package/lib/components/parallelResourceBooking/components/eventCard/index.less +0 -81
  405. package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
  406. package/lib/components/parallelResourceBooking/components/productCard/index.js +0 -77
  407. package/lib/components/parallelResourceBooking/components/productCard/index.less +0 -60
  408. package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
  409. package/lib/components/parallelResourceBooking/components/progressBar/index.js +0 -100
  410. package/lib/components/parallelResourceBooking/components/progressBar/index.less +0 -15
  411. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
  412. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -116
  413. package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
  414. package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
  415. package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +0 -76
  416. package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
  417. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  418. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
  419. package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
  420. package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
  421. package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -135
  422. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
  423. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -125
  424. package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
  425. package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
  426. package/lib/components/parallelResourceBooking/components/selectHolder/index.js +0 -106
  427. package/lib/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
  428. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
  429. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -146
  430. package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
  431. package/lib/components/parallelResourceBooking/index.d.ts +0 -3
  432. package/lib/components/parallelResourceBooking/index.js +0 -78
  433. package/lib/components/parallelResourceBooking/index.less +0 -22
  434. package/lib/components/parallelResourceBooking/locales.d.ts +0 -216
  435. package/lib/components/parallelResourceBooking/locales.js +0 -239
  436. package/lib/components/parallelResourceBooking/mock.d.ts +0 -627
  437. package/lib/components/parallelResourceBooking/mock.js +0 -1352
  438. package/lib/components/parallelResourceBooking/status.d.ts +0 -21
  439. package/lib/components/parallelResourceBooking/status.js +0 -70
  440. package/lib/components/parallelResourceBooking/type.d.ts +0 -17
  441. package/lib/components/parallelResourceBooking/type.js +0 -17
  442. package/lib/components/parallelResourceBooking/utils.d.ts +0 -45
  443. package/lib/components/parallelResourceBooking/utils.js +0 -90
  444. package/lowcode/parallel-resource-booking/meta.ts +0 -69
@@ -1,65 +0,0 @@
1
- import { useMemo } from 'react';
2
- import { Iconfont } from '@pisell/materials';
3
- import classNames from 'classnames';
4
- // import { useShallowEqualSelector } from '@/hooks';
5
- // import { getText } from '@/utils/formatMessage';
6
- import styles from "./index.less";
7
- // import { callPhone, sendEmail } from '@/utils/index';
8
-
9
- export var defaultBookingConfig = {
10
- booking_mode_after_cut_off: 'booking_closed'
11
- };
12
- var CallToBook = function CallToBook(props) {
13
- var show = props.show,
14
- type = props.type,
15
- shop = props.shop;
16
- // const { shop }: any = useShallowEqualSelector(({ global }: any) => global);
17
- // const { customPageData }: any = useShallowEqualSelector(
18
- // ({ bookingOrder }: any) => bookingOrder
19
- // );
20
-
21
- // const type = useMemo(() => {
22
- // let _setting = customPageData?.block?.find((d) => d.type === 'product_list')
23
- // ?.setting?.bookingConfig;
24
- // _setting = {
25
- // ...defaultBookingConfig,
26
- // ..._setting,
27
- // };
28
- // return _setting.booking_mode_after_cut_off;
29
- // }, [customPageData]);
30
-
31
- var message = useMemo(function () {
32
- if (type === 'booking_closed') {
33
- return null;
34
- }
35
- if (type === 'call_to_book' && shop.phone) {
36
- return /*#__PURE__*/React.createElement("div", {
37
- className: styles['sales-close-tip']
38
- }, "\u5173\u95ED", /*#__PURE__*/React.createElement("a", {
39
- className: styles['sales-close-tel']
40
- // onClick={() => {
41
- // callPhone(`+${shop.country_calling_code}${shop.phone}`);
42
- // }}
43
- }, "+", shop.country_calling_code, " ", shop.phone));
44
- }
45
- if (type === 'email_to_book' && shop.contact_email) {
46
- return /*#__PURE__*/React.createElement("div", {
47
- className: styles['sales-close-tip']
48
- }, "4", /*#__PURE__*/React.createElement("a", {
49
- className: styles['sales-close-tel']
50
- // onClick={() => {
51
- // sendEmail(shop.contact_email);
52
- // }}
53
- }, shop.contact_email));
54
- }
55
- return null;
56
- }, [type]);
57
- return show ? /*#__PURE__*/React.createElement("div", {
58
- className: styles['sales-close']
59
- }, /*#__PURE__*/React.createElement(Iconfont, {
60
- className: classNames('iconshangjia', styles['sales-icon'])
61
- }), /*#__PURE__*/React.createElement("div", {
62
- className: styles['sales-close-tip']
63
- }, "6"), message) : null;
64
- };
65
- export default CallToBook;
@@ -1,32 +0,0 @@
1
- .sales-close {
2
- width: 100%;
3
- margin-bottom: 12px;
4
- border-radius: 8px;
5
- background: #fafafa;
6
- display: flex;
7
- flex-direction: column;
8
- align-items: center;
9
- height: 92px;
10
- justify-content: center;
11
- user-select: text;
12
-
13
- .sales-icon {
14
- font-size: 22px;
15
- }
16
-
17
- .sales-close-tip {
18
- color: #1b1b1b;
19
- font-family: Inter;
20
- font-size: 14px;
21
- font-style: normal;
22
- font-weight: 400;
23
- line-height: 20px;
24
- }
25
-
26
- .sales-close-tel {
27
- cursor: pointer;
28
- color: #0b5fdb;
29
- font-weight: bold;
30
- user-select: text;
31
- }
32
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const WeekItem: (props: any) => JSX.Element;
3
- export default WeekItem;
@@ -1,69 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { useState, useEffect } from 'react';
8
- import { Iconfont } from '@pisell/materials';
9
- import { Space } from 'antd';
10
- import { weekListText } from "../../state";
11
- import Item from "../../Item";
12
- import { getMonthIndex, getCurrentStatus, formatDate } from "../../../../utils";
13
- import "./index.less";
14
- var WeekItem = function WeekItem(props) {
15
- var weekList = props.weekList,
16
- currentDate = props.currentDate,
17
- setCurrentDate = props.setCurrentDate,
18
- isActive = props.isActive,
19
- productId = props.productId,
20
- dateLimitData = props.dateLimitData,
21
- getLimitData = props.getLimitData,
22
- cutTime = props.cutTime;
23
-
24
- // 显示月份的位置
25
- var _useState = useState([]),
26
- _useState2 = _slicedToArray(_useState, 2),
27
- monthIndex = _useState2[0],
28
- setMonthIndex = _useState2[1];
29
- useEffect(function () {
30
- if (isActive && productId) {
31
- // getLimitData(weekList[0], weekList[6]);
32
- }
33
- }, [isActive, productId, weekList]);
34
- useEffect(function () {
35
- var arr = getMonthIndex(weekList);
36
- setMonthIndex(arr);
37
- }, [weekList]);
38
- return /*#__PURE__*/React.createElement("div", {
39
- className: "week-item-wrap"
40
- }, /*#__PURE__*/React.createElement("div", {
41
- className: "week-item-content"
42
- }, /*#__PURE__*/React.createElement(Iconfont, {
43
- type: "pisell2-arrow-left",
44
- className: "week-item__icon"
45
- }), /*#__PURE__*/React.createElement(Space, {
46
- size: 8
47
- }, weekList === null || weekList === void 0 ? void 0 : weekList.map(function (item, index) {
48
- var _getCurrentStatus = getCurrentStatus(dateLimitData, item, cutTime),
49
- disabled = _getCurrentStatus.disabled,
50
- currentStatus = _getCurrentStatus.currentStatus;
51
- return /*#__PURE__*/React.createElement(Item, {
52
- key: index,
53
- date: formatDate(item, 'DD'),
54
- week: weekListText[index],
55
- dateText: item,
56
- disabled: disabled,
57
- status: currentStatus,
58
- select: currentDate === item,
59
- showMonth: monthIndex.includes(index),
60
- onClick: function onClick(e) {
61
- setCurrentDate(item);
62
- }
63
- });
64
- })), /*#__PURE__*/React.createElement(Iconfont, {
65
- type: "pisell2-arrow-right",
66
- className: "week-item__icon"
67
- })));
68
- };
69
- export default WeekItem;
@@ -1,12 +0,0 @@
1
- .week-item-wrap {
2
- .week-item-content {
3
- display: flex;
4
- align-items: center;
5
- gap: 4px;
6
- .week-item__icon {
7
- font-size: 24px;
8
- color: #101828;
9
- cursor: pointer;
10
- }
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- import './index.less';
2
- declare type CalenDateWeekProps = {
3
- currentDate: string;
4
- dateChange: (date: string) => void;
5
- productId: string;
6
- timeList: any;
7
- getLimitData: (start_date: string, end_date: string) => void;
8
- dateLimitData: any;
9
- cutTime: any;
10
- };
11
- declare const CalenDateWeek: (props: CalenDateWeekProps) => JSX.Element;
12
- export default CalenDateWeek;
@@ -1,152 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { useState, useRef, useEffect } from 'react';
8
- import dayjs from 'dayjs';
9
- import { Iconfont } from '@pisell/materials';
10
- import classNames from 'classnames';
11
- import WeekItem from "./WeekItem/index";
12
- import { getCallToBookStatus, getStatus } from "../state";
13
- import CallToBook from "./CallToBook";
14
- import "./index.less";
15
- var CalenDateWeek = function CalenDateWeek(props) {
16
- var currentDate = props.currentDate,
17
- dateChange = props.dateChange,
18
- productId = props.productId,
19
- timeList = props.timeList,
20
- dateLimitData = props.dateLimitData,
21
- getLimitData = props.getLimitData,
22
- cutTime = props.cutTime;
23
- var _useState = useState([]),
24
- _useState2 = _slicedToArray(_useState, 2),
25
- weekList = _useState2[0],
26
- setWeekList = _useState2[1];
27
- var _useState3 = useState(false),
28
- _useState4 = _slicedToArray(_useState3, 2),
29
- showCallToBook = _useState4[0],
30
- setShowCallToBook = _useState4[1];
31
- // const { shop }: any = useShallowEqualSelector(({ global }: any) => global);
32
- var weekListRef = useRef(null);
33
- var _useState5 = useState(''),
34
- _useState6 = _slicedToArray(_useState5, 2),
35
- selectStatus = _useState6[0],
36
- setSelectStatus = _useState6[1];
37
- var _useState7 = useState(false),
38
- _useState8 = _slicedToArray(_useState7, 2),
39
- selectDisabled = _useState8[0],
40
- setSelectDisabled = _useState8[1];
41
-
42
- /**
43
- * @title: 根据时间生成本周数据
44
- * @description:
45
- * @return {*}
46
- * @Author: xiangxiang.shao
47
- * @Date: 2024-02-07 15:13
48
- */
49
- var initCurrentWeekData = function initCurrentWeekData(dateText) {
50
- // 设置周日为一周的开始
51
- // dayjs.locale('en', {
52
- // weekStartsOn: 0, // 周日为0,周一为1,以此类推
53
- // });
54
-
55
- // 获取当前日期的moment对象
56
- var currentMoment = dayjs(dateText);
57
-
58
- // 调整当前日期,使其为本周的周日
59
- var startOfWeek = currentMoment.startOf('week');
60
-
61
- // 如果当前日期不是周日,则向前调整到本周的周日
62
- if (startOfWeek.day() !== 0) {
63
- startOfWeek.subtract(startOfWeek.day(), 'days');
64
- }
65
-
66
- // 创建一个数组来存储本周的所有日期
67
- var weekDates = [];
68
-
69
- // 循环7天,获取本周的所有日期
70
- for (var i = 0; i < 7; i++) {
71
- var _date = startOfWeek.clone().add(i, 'days');
72
- weekDates.push(_date.format('YYYY-MM-DD'));
73
- }
74
- return weekDates;
75
- };
76
-
77
- /**
78
- * @title: 构造初始化周数据
79
- * @description:
80
- * @return {*}
81
- * @Author: xiangxiang.shao
82
- * @Date: 2024-02-07 15:13
83
- */
84
- var initWeekData = function initWeekData() {
85
- var list = initCurrentWeekData(currentDate);
86
- setWeekList(list);
87
- };
88
-
89
- /**
90
- * @title: 判断是否重新生成还是滚动到指定位置
91
- * @description:
92
- * @return {*}
93
- * @Author: xiangxiang.shao
94
- * @Date: 2024-02-07 15:13
95
- */
96
- var init = function init() {
97
- initWeekData();
98
- };
99
- useEffect(function () {
100
- init();
101
- }, [currentDate]);
102
-
103
- // 判断是否显示电话预定
104
- useEffect(function () {
105
- var _getStatus = getStatus(dateLimitData, currentDate, cutTime),
106
- status = _getStatus.status,
107
- disabled = _getStatus.disabled;
108
- var isShow = getCallToBookStatus(currentDate, dateLimitData, cutTime);
109
- if (isShow && (status === 'lots_of_space' || status === 'filling_up_fast')) {
110
- setShowCallToBook(true);
111
- } else {
112
- setShowCallToBook(false);
113
- }
114
- setSelectStatus(status);
115
- setSelectDisabled(disabled);
116
- }, [currentDate, timeList, cutTime]);
117
- useEffect(function () {
118
- var index = weekList.findIndex(function (date) {
119
- return date === currentDate;
120
- });
121
- if (weekListRef !== null && weekListRef !== void 0 && weekListRef.current && index !== -1) {
122
- weekListRef.current.scrollLeft = (index - 1) * 50;
123
- }
124
- }, [currentDate, weekList]);
125
- return /*#__PURE__*/React.createElement("div", {
126
- className: "calendar-week-wrap"
127
- }, /*#__PURE__*/React.createElement("div", {
128
- ref: weekListRef,
129
- className: "calendar-week-list"
130
- }, /*#__PURE__*/React.createElement(WeekItem, {
131
- weekList: weekList,
132
- currentDate: currentDate,
133
- dateChange: dateChange,
134
- isActive: true,
135
- productId: productId,
136
- setCurrentDate: dateChange,
137
- timeList: timeList,
138
- dateLimitData: dateLimitData
139
- // getLimitData={getLimitData}
140
- ,
141
- cutTime: cutTime
142
- })), selectStatus === 'sold_out' || selectDisabled ? /*#__PURE__*/React.createElement("div", {
143
- className: 'disabled-status'
144
- }, /*#__PURE__*/React.createElement(Iconfont, {
145
- className: classNames('disabled-icon', 'iconhourglass_disabled_wght300_24px')
146
- }), /*#__PURE__*/React.createElement("div", {
147
- className: 'disabled-status-text'
148
- }, selectDisabled ? 2 : 5)) : null, /*#__PURE__*/React.createElement(CallToBook, {
149
- show: showCallToBook
150
- }));
151
- };
152
- export default CalenDateWeek;
@@ -1,35 +0,0 @@
1
- .calendar-week-wrap {
2
- .calendar-week-list {
3
- width: 100%;
4
- padding: 6px 8px 16px;
5
- overflow-x: auto;
6
- }
7
- }
8
-
9
- .calendar-icon {
10
- cursor: pointer;
11
- }
12
-
13
- .disabled-status {
14
- display: flex;
15
- padding: 14px 0px;
16
- flex-direction: column;
17
- justify-content: center;
18
- align-items: center;
19
- align-self: stretch;
20
- border-radius: 8px;
21
- background: #fafafa;
22
- margin-bottom: 10px;
23
- .disabled-icon {
24
- font-size: 24px;
25
- color: #919191;
26
- }
27
- .disabled-status-text {
28
- color: #1b1b1b;
29
- text-align: center;
30
-
31
- /* Text sm/Regular */
32
- font-size: 14px;
33
- font-weight: 400;
34
- }
35
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DayItem: (props: any) => JSX.Element;
3
- export default DayItem;
@@ -1,20 +0,0 @@
1
- import { statusColor } from "../../state";
2
- import "./index.less";
3
- var DayItem = function DayItem(props) {
4
- var week = props.week,
5
- date = props.date,
6
- status = props.status;
7
- return /*#__PURE__*/React.createElement("div", {
8
- className: "day-item-calendar-content"
9
- }, week ? /*#__PURE__*/React.createElement("span", {
10
- className: 'week'
11
- }, week) : null, /*#__PURE__*/React.createElement("div", {
12
- className: "date"
13
- }, date), /*#__PURE__*/React.createElement("span", {
14
- className: "line",
15
- style: {
16
- backgroundColor: statusColor[status]
17
- }
18
- }));
19
- };
20
- export default DayItem;
@@ -1,28 +0,0 @@
1
- .day-item-calendar-content {
2
- display: flex;
3
- padding: 8px;
4
- flex-direction: column;
5
- justify-content: center;
6
- align-items: center;
7
- gap: 4px;
8
- flex: 1 0 0;
9
- color: var(--Gray-900, #101828);
10
- text-align: center;
11
- font-size: 14px;
12
- font-weight: 400;
13
- line-height: 20px;
14
- align-self: stretch;
15
- border: 1px solid var(--Gray-300, #d0d5dd);
16
- cursor: pointer;
17
- border-radius: 8px;
18
-
19
- .date {
20
- font-weight: 600;
21
- }
22
-
23
- .line {
24
- width: 28px;
25
- height: 4px;
26
- border-radius: 2px;
27
- }
28
- }
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { CalendarItemProps } from '../../../../../type';
3
- declare const Item: (props: CalendarItemProps) => JSX.Element;
4
- export default Item;
@@ -1,38 +0,0 @@
1
- import Dayjs from 'dayjs';
2
- import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
3
- import classNames from 'classnames';
4
- import "./index.less";
5
- import { formatDate } from "../../../utils";
6
- import DayItem from "./DayItem";
7
- Dayjs.extend(isSameOrBefore);
8
- var Item = function Item(props) {
9
- var date = props.date,
10
- status = props.status,
11
- disabled = props.disabled,
12
- select = props.select,
13
- _onClick = props.onClick,
14
- showMonth = props.showMonth,
15
- dateText = props.dateText,
16
- week = props.week;
17
- return /*#__PURE__*/React.createElement("div", {
18
- className: classNames('calendar-date-item', {
19
- disabledDate: disabled,
20
- disabledSelect: status === 'sold_out',
21
- selectDate: select
22
- }),
23
- onClick: function onClick() {
24
- return _onClick && _onClick(date);
25
- }
26
- }, showMonth && /*#__PURE__*/React.createElement("div", {
27
- className: "calendar-header-wrap"
28
- }, /*#__PURE__*/React.createElement("div", {
29
- className: classNames('current-month', 'current-year')
30
- }, formatDate(dateText, 'YYYY')), /*#__PURE__*/React.createElement("div", {
31
- className: 'current-month'
32
- }, formatDate(dateText, 'MMM'))), /*#__PURE__*/React.createElement(DayItem, {
33
- week: week,
34
- date: date,
35
- status: status
36
- }));
37
- };
38
- export default Item;
@@ -1,87 +0,0 @@
1
- .calendar-date-item {
2
- // position: relative;
3
- // display: flex;
4
- // height: 52px;
5
- // width: 48px;
6
- // flex-direction: column;
7
- // justify-content: center;
8
- // align-items: center;
9
- // flex: 1 0 0;
10
- border-radius: 8px;
11
- // border: 1px solid #d0d5dd;
12
- // cursor: pointer;
13
- // margin: 0 auto;
14
-
15
- .calendar-header-wrap {
16
- display: flex;
17
- align-items: center;
18
- }
19
-
20
- // .current-month {
21
- // position: absolute;
22
- // bottom: 54px;
23
- // left: 0;
24
- // font-family: Inter;
25
- // font-size: 12px;
26
- // font-style: normal;
27
- // font-weight: 600;
28
- // line-height: 20px;
29
- // min-width: 70px;
30
- // text-wrap: nowrap;
31
- // }
32
-
33
- // .current-year {
34
- // position: absolute;
35
- // bottom: 74px;
36
- // left: 0;
37
- // }
38
-
39
- .day-text {
40
- position: absolute;
41
- left: 0;
42
- right: 0;
43
- bottom: 0;
44
- top: 10px;
45
- display: flex;
46
- align-items: center;
47
- justify-content: center;
48
- color: #101828;
49
- text-align: center;
50
- /* Text md/Medium */
51
- font-size: 16px;
52
- font-style: normal;
53
- font-weight: bold;
54
- line-height: 24px;
55
- /* 150% */
56
-
57
- // &.day-line::before {
58
- // position: absolute;
59
- // bottom: 6px;
60
- // content: '';
61
- // width: 28px;
62
- // height: 4px;
63
- // flex-shrink: 0;
64
- // border-radius: 2px;
65
- // background: var(--lineColor);
66
- // }
67
- }
68
-
69
- &.disabledSelect {
70
- cursor: pointer;
71
- }
72
-
73
- &.other-month-days {
74
- background: none;
75
- border: none;
76
- }
77
-
78
- &.disabledDate {
79
- background: var(--Gray-100, #f2f4f7);
80
- }
81
-
82
- &.selectDate {
83
- .calendar-content {
84
- border: 2px solid var(--Primary-600, #7f56d9);
85
- }
86
- }
87
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Status: (props: any) => JSX.Element;
3
- export default Status;
@@ -1,28 +0,0 @@
1
- import Dayjs from 'dayjs';
2
- import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
3
- import { statusList, statusMessage } from "../../../../../status";
4
- import "./index.less";
5
- Dayjs.extend(isSameOrBefore);
6
- var Status = function Status(props) {
7
- var _props$type = props.type,
8
- type = _props$type === void 0 ? 'call_to_book' : _props$type,
9
- style = props.style;
10
- return /*#__PURE__*/React.createElement("div", {
11
- className: "event-calendar-status",
12
- style: style
13
- }, statusList.map(function (i) {
14
- return /*#__PURE__*/React.createElement("div", {
15
- className: "item",
16
- key: i.status
17
- }, /*#__PURE__*/React.createElement("div", {
18
- style: {
19
- height: i.status == 0 ? '20px' : '4px',
20
- background: i.color
21
- },
22
- className: "item-icon"
23
- }), /*#__PURE__*/React.createElement("span", {
24
- className: "item-text"
25
- }, i.status === 2 ? statusMessage(type) : i.text));
26
- }));
27
- };
28
- export default Status;
@@ -1,25 +0,0 @@
1
- .event-calendar-status {
2
- display: flex;
3
- flex-wrap: wrap;
4
- margin: 10px 30px;
5
-
6
- .item {
7
- display: flex;
8
- align-items: center;
9
- flex-shrink: 1;
10
- width: 50%;
11
- margin-bottom: 12px;
12
- .item-icon {
13
- margin-right: 10px;
14
- width: 20px;
15
- border-radius: 4px;
16
- }
17
- .item-text {
18
- color: #101828;
19
- font-size: 14px;
20
- font-style: normal;
21
- font-weight: 400;
22
- line-height: 20px;
23
- }
24
- }
25
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const _default: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
4
- export default _default;