@pisell/private-materials 3.2.9 → 3.2.11

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 (439) 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 +34 -14
  7. package/build/lowcode/render/default/view.js +6 -6
  8. package/build/lowcode/view.js +6 -6
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/booking/components/footer/index.d.ts +1 -0
  11. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  12. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  13. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  14. package/es/components/booking/info/index.d.ts +1 -0
  15. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  16. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  17. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  18. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  19. package/es/components/booking/info/service2/utils.d.ts +1 -1
  20. package/es/components/booking/info/utils.js +1 -1
  21. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  22. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  23. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  24. package/es/components/eftpos/index.d.ts +1 -0
  25. package/es/components/eftposPay/amount.d.ts +1 -1
  26. package/es/components/eftposPay/device.d.ts +1 -1
  27. package/es/components/eftposPay/hooks.d.ts +1 -1
  28. package/es/components/eftposPay/index.d.ts +1 -0
  29. package/es/components/eftposPay/store/index.d.ts +3 -3
  30. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  31. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  32. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  33. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  42. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  43. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  44. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  45. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  46. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  47. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +77 -0
  48. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  49. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  50. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  51. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  53. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  59. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  61. package/es/components/eventBooking/index.d.ts +1 -0
  62. package/es/components/login/index.d.ts +1 -0
  63. package/es/components/parallelResourcBooking/assets/alert-circle.png +0 -0
  64. package/es/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
  65. package/es/components/parallelResourcBooking/assets/compass.svg +13 -0
  66. package/es/components/parallelResourcBooking/assets/image.svg +5 -0
  67. package/es/components/parallelResourcBooking/assets/phone.svg +5 -0
  68. package/es/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
  69. package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
  70. package/es/components/parallelResourcBooking/components/ErrorTip/index.js +14 -0
  71. package/es/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
  72. package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
  73. package/es/components/parallelResourcBooking/components/OpenCard/index.js +65 -0
  74. package/es/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
  75. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
  76. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
  77. package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  78. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
  79. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +46 -0
  80. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
  81. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +63 -0
  82. package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
  83. package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
  84. package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +30 -0
  85. package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
  86. package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
  87. package/es/components/parallelResourcBooking/components/Provider/Content/index.js +65 -0
  88. package/es/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
  89. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
  90. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +34 -0
  91. package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
  92. package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
  93. package/es/components/parallelResourcBooking/components/Provider/Event/index.js +93 -0
  94. package/es/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
  95. package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
  96. package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +76 -0
  97. package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
  98. package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
  99. package/es/components/parallelResourcBooking/components/Provider/Header/index.js +75 -0
  100. package/es/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
  101. package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
  102. package/es/components/parallelResourcBooking/components/Provider/Information/index.js +178 -0
  103. package/es/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
  104. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
  105. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +34 -0
  106. package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
  107. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
  108. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +27 -0
  109. package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
  110. package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
  111. package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
  112. package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
  113. package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +79 -0
  114. package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
  115. package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
  116. package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +90 -0
  117. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  118. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +77 -0
  119. package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
  120. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
  121. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
  122. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
  123. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
  124. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
  125. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
  126. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
  127. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
  128. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
  129. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
  130. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
  131. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
  132. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
  133. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
  134. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
  135. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
  136. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
  137. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
  138. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
  139. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
  140. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
  141. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
  142. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
  143. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
  144. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  145. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
  146. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
  147. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
  148. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
  149. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
  150. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +36 -0
  151. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
  152. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  153. package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
  154. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
  155. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
  156. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
  157. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +33 -0
  158. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
  159. package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +30 -0
  160. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
  161. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +337 -0
  162. package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
  163. package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
  164. package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +52 -0
  165. package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
  166. package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
  167. package/es/components/parallelResourcBooking/components/eventCard/index.js +116 -0
  168. package/es/components/parallelResourcBooking/components/eventCard/index.less +81 -0
  169. package/es/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
  170. package/es/components/parallelResourcBooking/components/productCard/index.js +79 -0
  171. package/es/components/parallelResourcBooking/components/productCard/index.less +60 -0
  172. package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
  173. package/es/components/parallelResourcBooking/components/progressBar/index.js +93 -0
  174. package/es/components/parallelResourcBooking/components/progressBar/index.less +15 -0
  175. package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
  176. package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +148 -0
  177. package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
  178. package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
  179. package/es/components/parallelResourcBooking/components/resourceUsability/index.js +44 -0
  180. package/es/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
  181. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
  182. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
  183. package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
  184. package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
  185. package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +127 -0
  186. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
  187. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +142 -0
  188. package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
  189. package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
  190. package/es/components/parallelResourcBooking/components/selectHolder/index.js +118 -0
  191. package/es/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
  192. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
  193. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +168 -0
  194. package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
  195. package/es/components/parallelResourcBooking/index.d.ts +4 -0
  196. package/es/components/parallelResourcBooking/index.js +58 -0
  197. package/es/components/parallelResourcBooking/index.less +22 -0
  198. package/es/components/parallelResourcBooking/locales.d.ts +216 -0
  199. package/es/components/parallelResourcBooking/locales.js +251 -0
  200. package/es/components/parallelResourcBooking/mock.d.ts +627 -0
  201. package/es/components/parallelResourcBooking/mock.js +1172 -0
  202. package/es/components/parallelResourcBooking/status.d.ts +21 -0
  203. package/es/components/parallelResourcBooking/status.js +51 -0
  204. package/es/components/parallelResourcBooking/type.d.ts +17 -0
  205. package/es/components/parallelResourcBooking/type.js +1 -0
  206. package/es/components/parallelResourcBooking/utils.d.ts +45 -0
  207. package/es/components/parallelResourcBooking/utils.js +99 -0
  208. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  209. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  210. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  211. package/es/components/productExtension/index.d.ts +1 -0
  212. package/es/components/ruleSetting/index.d.ts +1 -0
  213. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  214. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  215. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  216. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  217. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  218. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  219. package/es/components/shoppingCart/index.d.ts +1 -0
  220. package/es/components/taxSelect/index.d.ts +1 -0
  221. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  222. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  223. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  224. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  225. package/lib/components/booking/components/footer/index.d.ts +1 -0
  226. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  227. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  228. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  229. package/lib/components/booking/info/index.d.ts +1 -0
  230. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  231. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  232. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  233. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  234. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  235. package/lib/components/booking/info/utils.js +1 -1
  236. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  237. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  238. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  239. package/lib/components/eftpos/index.d.ts +1 -0
  240. package/lib/components/eftposPay/amount.d.ts +1 -1
  241. package/lib/components/eftposPay/device.d.ts +1 -1
  242. package/lib/components/eftposPay/hooks.d.ts +1 -1
  243. package/lib/components/eftposPay/index.d.ts +1 -0
  244. package/lib/components/eftposPay/store/index.d.ts +3 -3
  245. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  246. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  247. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  248. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  249. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  250. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  251. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  252. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  253. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  254. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  255. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  256. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  257. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  258. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  259. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  260. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  261. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  262. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +69 -0
  263. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  264. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  265. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  266. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  267. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  268. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  269. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  270. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  271. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  272. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  273. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  274. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  275. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  276. package/lib/components/eventBooking/index.d.ts +1 -0
  277. package/lib/components/login/index.d.ts +1 -0
  278. package/lib/components/parallelResourcBooking/assets/alert-circle.png +0 -0
  279. package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +5 -0
  280. package/lib/components/parallelResourcBooking/assets/compass.svg +13 -0
  281. package/lib/components/parallelResourcBooking/assets/image.svg +5 -0
  282. package/lib/components/parallelResourcBooking/assets/phone.svg +5 -0
  283. package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +10 -0
  284. package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +4 -0
  285. package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +30 -0
  286. package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +51 -0
  287. package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +4 -0
  288. package/lib/components/parallelResourcBooking/components/OpenCard/index.js +90 -0
  289. package/lib/components/parallelResourcBooking/components/OpenCard/index.less +52 -0
  290. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +4 -0
  291. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
  292. package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
  293. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
  294. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +82 -0
  295. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +4 -0
  296. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +92 -0
  297. package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +87 -0
  298. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +4 -0
  299. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +59 -0
  300. package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +2 -0
  301. package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +4 -0
  302. package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +90 -0
  303. package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +31 -0
  304. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
  305. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +60 -0
  306. package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +17 -0
  307. package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +4 -0
  308. package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +100 -0
  309. package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +20 -0
  310. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +4 -0
  311. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +87 -0
  312. package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +64 -0
  313. package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +4 -0
  314. package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +80 -0
  315. package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +2 -0
  316. package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +4 -0
  317. package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +151 -0
  318. package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +92 -0
  319. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +4 -0
  320. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +67 -0
  321. package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +27 -0
  322. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +4 -0
  323. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +57 -0
  324. package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +32 -0
  325. package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +3 -0
  326. package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
  327. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +4 -0
  328. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +90 -0
  329. package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +46 -0
  330. package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +3 -0
  331. package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +97 -0
  332. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  333. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +69 -0
  334. package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +131 -0
  335. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
  336. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
  337. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
  338. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +11 -0
  339. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
  340. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
  341. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +4 -0
  342. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
  343. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
  344. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +13 -0
  345. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
  346. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
  347. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
  348. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
  349. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
  350. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
  351. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
  352. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
  353. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
  354. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
  355. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
  356. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
  357. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
  358. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
  359. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  360. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
  361. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
  362. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
  363. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
  364. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
  365. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +70 -0
  366. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +2 -0
  367. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  368. package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
  369. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -0
  370. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
  371. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
  372. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +66 -0
  373. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
  374. package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +69 -0
  375. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +7 -0
  376. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +248 -0
  377. package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +82 -0
  378. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +17 -0
  379. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +79 -0
  380. package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +6 -0
  381. package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +14 -0
  382. package/lib/components/parallelResourcBooking/components/eventCard/index.js +124 -0
  383. package/lib/components/parallelResourcBooking/components/eventCard/index.less +81 -0
  384. package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +16 -0
  385. package/lib/components/parallelResourcBooking/components/productCard/index.js +77 -0
  386. package/lib/components/parallelResourcBooking/components/productCard/index.less +60 -0
  387. package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +16 -0
  388. package/lib/components/parallelResourcBooking/components/progressBar/index.js +100 -0
  389. package/lib/components/parallelResourcBooking/components/progressBar/index.less +15 -0
  390. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +23 -0
  391. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +116 -0
  392. package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +95 -0
  393. package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +12 -0
  394. package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +76 -0
  395. package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +40 -0
  396. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
  397. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
  398. package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
  399. package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
  400. package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +135 -0
  401. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +13 -0
  402. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +125 -0
  403. package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +222 -0
  404. package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +22 -0
  405. package/lib/components/parallelResourcBooking/components/selectHolder/index.js +106 -0
  406. package/lib/components/parallelResourcBooking/components/selectHolder/index.less +70 -0
  407. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +20 -0
  408. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +146 -0
  409. package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +74 -0
  410. package/lib/components/parallelResourcBooking/index.d.ts +4 -0
  411. package/lib/components/parallelResourcBooking/index.js +78 -0
  412. package/lib/components/parallelResourcBooking/index.less +22 -0
  413. package/lib/components/parallelResourcBooking/locales.d.ts +216 -0
  414. package/lib/components/parallelResourcBooking/locales.js +239 -0
  415. package/lib/components/parallelResourcBooking/mock.d.ts +627 -0
  416. package/lib/components/parallelResourcBooking/mock.js +1352 -0
  417. package/lib/components/parallelResourcBooking/status.d.ts +21 -0
  418. package/lib/components/parallelResourcBooking/status.js +70 -0
  419. package/lib/components/parallelResourcBooking/type.d.ts +17 -0
  420. package/lib/components/parallelResourcBooking/type.js +17 -0
  421. package/lib/components/parallelResourcBooking/utils.d.ts +45 -0
  422. package/lib/components/parallelResourcBooking/utils.js +90 -0
  423. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  424. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  425. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  426. package/lib/components/productExtension/index.d.ts +1 -0
  427. package/lib/components/ruleSetting/index.d.ts +1 -0
  428. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  429. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  430. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  431. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  432. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  433. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  434. package/lib/components/shoppingCart/index.d.ts +1 -0
  435. package/lib/components/taxSelect/index.d.ts +1 -0
  436. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  437. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  438. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  439. package/package.json +4 -4
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,28 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ import { CalendarItemProps } from '../../../../../type';
4
+ declare const Item: (props: CalendarItemProps) => JSX.Element;
5
+ export default Item;
@@ -0,0 +1,38 @@
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;
@@ -0,0 +1,87 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Status: (props: any) => JSX.Element;
4
+ export default Status;
@@ -0,0 +1,28 @@
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;
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,269 @@
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, useImperativeHandle, forwardRef, useMemo } from 'react';
8
+ import Dayjs from 'dayjs';
9
+ import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
10
+ import { PisellModal, Iconfont } from '@pisell/materials';
11
+ import { isMobile } from '@pisell/utils';
12
+ Dayjs.extend(isSameOrBefore);
13
+ import { weekListText, statusColor, getStatus, getCallToBookStatus } from "./state";
14
+ import classNames from 'classnames';
15
+ import Status from "./Status";
16
+
17
+ // 引入组件
18
+ // import { useDrawer } from '@/pisell-design/hooks';
19
+
20
+ import "./index.less";
21
+ var CalendarDate = function CalendarDate(props, ref) {
22
+ var cutTime = props.cutTime,
23
+ getLimitData = props.getLimitData,
24
+ dateLimitData = props.dateLimitData,
25
+ loading = props.loading;
26
+ var _useState = useState(''),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ productId = _useState2[0],
29
+ setProductId = _useState2[1];
30
+ var _useState3 = useState(''),
31
+ _useState4 = _slicedToArray(_useState3, 2),
32
+ currentDate = _useState4[0],
33
+ setCurrentDate = _useState4[1];
34
+ // 生成7天的时间列表
35
+ var _useState5 = useState([]),
36
+ _useState6 = _slicedToArray(_useState5, 2),
37
+ dateMonthList = _useState6[0],
38
+ setDateMonthList = _useState6[1];
39
+ // 切换的月份
40
+ var _useState7 = useState(function () {
41
+ return Dayjs();
42
+ }),
43
+ _useState8 = _slicedToArray(_useState7, 2),
44
+ currentMonth = _useState8[0],
45
+ setCurrentMonth = _useState8[1];
46
+ var _useState9 = useState(false),
47
+ _useState10 = _slicedToArray(_useState9, 2),
48
+ open = _useState10[0],
49
+ setOpen = _useState10[1];
50
+
51
+ // 计算开始渲染的列
52
+ var startingColumn = 0 % 7; // 0 表示星期日
53
+ var columns = Array.from({
54
+ length: 7
55
+ }, function (_, index) {
56
+ return (index + 7 - startingColumn) % 7;
57
+ });
58
+
59
+ /**
60
+ * @title: 接口和当前月进行对比
61
+ * @description:
62
+ * @param {*}
63
+ * @return {*}
64
+ * @Author: 严文强
65
+ * @Date: 2024-02-01 20:30
66
+ */
67
+ var calendarDays = function calendarDays(days, list) {
68
+ var index = list === null || list === void 0 ? void 0 : list.find(function (i) {
69
+ return (i === null || i === void 0 ? void 0 : i.day) == days;
70
+ });
71
+ if (!index) {
72
+ return 0;
73
+ } else {
74
+ return index === null || index === void 0 ? void 0 : index.status;
75
+ }
76
+ };
77
+
78
+ /**
79
+ * @title: 获取当前月日期
80
+ * @description:
81
+ * @param {*}
82
+ * @return {*}
83
+ * @Author: 严文强
84
+ * @Date: 2024-02-01 20:30
85
+ */
86
+ var getMonthData = function getMonthData(date) {
87
+ var firstDay = Dayjs("".concat(date, "-01"));
88
+ var startDay = firstDay.day(); // 获取本月1号是星期几
89
+ var daysInMonth = firstDay.daysInMonth(); // 获取本月总天数
90
+ var monthData = [];
91
+ // 填充前面的空白
92
+ for (var i = 0; i < startDay; i++) {
93
+ monthData.push({
94
+ day: -1,
95
+ // 表示前一个月的日期
96
+ date: Dayjs(firstDay).subtract(startDay - i, 'day').toDate()
97
+ });
98
+ }
99
+
100
+ // 填充本月的日期
101
+ for (var _i = 1; _i <= daysInMonth; _i++) {
102
+ monthData.push({
103
+ day: _i,
104
+ date: firstDay.date(_i).format('YYYY-MM-DD')
105
+ });
106
+ }
107
+ return monthData;
108
+ };
109
+
110
+ /**
111
+ * @title: 计算是否已经切换到当前月,如果是则禁止继续点击上一个月
112
+ * @description:
113
+ * @param {*}
114
+ * @return {*}
115
+ * @Author: 严文强
116
+ * @Date: 2024-02-01 19:27
117
+ */
118
+ var lastMonthDisable = function lastMonthDisable() {
119
+ var newCurrentMonth = currentMonth.format('YYYY-MM');
120
+ var lastDate = Dayjs(newCurrentMonth).subtract(1, 'month');
121
+ return lastDate.isBefore(Dayjs(), 'month');
122
+ };
123
+
124
+ /**
125
+ * @title: 切换上个月
126
+ * @description:
127
+ * @param {*}
128
+ * @return {*}
129
+ * @Author: 严文强
130
+ * @Date: 2024-02-01 19:15
131
+ */
132
+ var lastMonth = function lastMonth() {
133
+ var currentLastText = currentMonth.format('YYYY-MM');
134
+ var newLastMonth = Dayjs(currentLastText).subtract(1, 'month');
135
+ setCurrentMonth(newLastMonth);
136
+ setDateMonthList(getMonthData(newLastMonth.format('YYYY-MM')));
137
+ };
138
+
139
+ /**
140
+ * @title: 切换下个月
141
+ * @description:
142
+ * @param {*}
143
+ * @return {*}
144
+ * @Author: 严文强
145
+ * @Date: 2024-02-01 19:15
146
+ */
147
+ var nextMonth = function nextMonth() {
148
+ var currentMonthText = currentMonth.format('YYYY-MM');
149
+ var newNextMonth = Dayjs(currentMonthText).add(1, 'month');
150
+ setCurrentMonth(newNextMonth);
151
+ setDateMonthList(getMonthData(newNextMonth.format('YYYY-MM')));
152
+ };
153
+
154
+ /**
155
+ * @title: 根据当前选择的月份剩余量
156
+ * @description:
157
+ * @return {*}
158
+ * @Author: xiangxiang.shao
159
+ * @Date: 2024-02-07 14:13
160
+ */
161
+ // useEffect(() => {
162
+ // if (productId) {
163
+ // getLimitData(
164
+ // currentMonth.format('YYYY-MM-01'),
165
+ // currentMonth.endOf('month').format('YYYY-MM-DD')
166
+ // );
167
+ // }
168
+ // }, [currentMonth.format('YYYY-MM'), productId]);
169
+
170
+ var CalendarDateContent = useMemo(function () {
171
+ return /*#__PURE__*/React.createElement("div", {
172
+ className: 'calendar-box'
173
+ }, /*#__PURE__*/React.createElement("div", {
174
+ className: 'calendar-header'
175
+ }, /*#__PURE__*/React.createElement("div", {
176
+ className: classNames('calendar-last-month', {
177
+ 'last-month-disabled': lastMonthDisable()
178
+ }),
179
+ onClick: function onClick() {
180
+ if (lastMonthDisable()) return;
181
+ lastMonth();
182
+ }
183
+ }, /*#__PURE__*/React.createElement(Iconfont, {
184
+ type: "pisell2-chevron-left"
185
+ })), /*#__PURE__*/React.createElement("div", {
186
+ className: 'calendar-current-month'
187
+ }, currentMonth.format('MMMM YYYY')), /*#__PURE__*/React.createElement("div", {
188
+ className: 'calendar-next-month',
189
+ onClick: function onClick() {
190
+ nextMonth();
191
+ }
192
+ }, /*#__PURE__*/React.createElement(Iconfont, {
193
+ type: "pisell2-chevron-right"
194
+ }))), /*#__PURE__*/React.createElement("div", {
195
+ className: 'calendar-content'
196
+ }, /*#__PURE__*/React.createElement("div", {
197
+ className: 'calendar-weeks'
198
+ }, columns.map(function (col) {
199
+ return /*#__PURE__*/React.createElement("div", {
200
+ key: col,
201
+ className: 'calendar-weeks-items'
202
+ }, weekListText[Number(col)]);
203
+ })), /*#__PURE__*/React.createElement("div", {
204
+ className: 'calendar-days'
205
+ }, dateMonthList.map(function (day, index) {
206
+ var date = Dayjs(day.date).format('YYYY-MM-DD');
207
+ var _getStatus = getStatus(dateLimitData, date, cutTime),
208
+ status = _getStatus.status,
209
+ disabled = _getStatus.disabled;
210
+ var isShowCallToBook = getCallToBookStatus(date, dateLimitData, cutTime);
211
+ // 在当天和cut-off time的日期之前这段日期,如果某天还存在可预约的商品,才显示Call to book。
212
+ var currentStatus = isShowCallToBook && (status === 'lots_of_space' || status === 'filling_up_fast') ? 'call_to_book' : status;
213
+ return /*#__PURE__*/React.createElement("div", {
214
+ key: index,
215
+ className: classNames('calendar-days-items', {
216
+ disabledDate: disabled || loading,
217
+ disabledSelect: status === 'sold_out',
218
+ selectDate: currentDate === date,
219
+ 'other-month-days': (day === null || day === void 0 ? void 0 : day.day) < 1
220
+ }),
221
+ onClick: function onClick() {
222
+ if (loading) return;
223
+ props.dateChange(date);
224
+ // hideModal();
225
+ }
226
+ }, (day === null || day === void 0 ? void 0 : day.day) >= 1 && /*#__PURE__*/React.createElement("div", {
227
+ style: {
228
+ '--lineColor': !loading ? statusColor[currentStatus] : ''
229
+ },
230
+ className: classNames('day-text', {
231
+ 'day-line': !disabled
232
+ })
233
+ }, (day === null || day === void 0 ? void 0 : day.day) < 1 ? '' : day === null || day === void 0 ? void 0 : day.day));
234
+ }))), /*#__PURE__*/React.createElement(Status, {
235
+ style: {
236
+ margin: 0
237
+ }
238
+ }));
239
+ }, [currentMonth, dateMonthList, getLimitData, currentDate]);
240
+ useImperativeHandle(ref, function () {
241
+ return {
242
+ open: function open(date, id) {
243
+ // setProductId(id);
244
+ // showModal();
245
+ setOpen(true);
246
+ var daysText = Dayjs(date).format('YYYY-MM');
247
+ setCurrentMonth(Dayjs(date));
248
+ setCurrentDate(date);
249
+ setDateMonthList(getMonthData(daysText));
250
+ }
251
+ };
252
+ });
253
+ return /*#__PURE__*/React.createElement(PisellModal, {
254
+ open: open,
255
+ title: 'device',
256
+ mobileModalHeight: 'auto',
257
+ platform: isMobile() ? 'h5' : 'pc',
258
+ bodyStyle: {
259
+ padding: isMobile() ? '16px 24px' : 32
260
+ },
261
+ destroyOnClose: true,
262
+ className: "select-holder-modal",
263
+ footer: null,
264
+ onCancel: function onCancel() {
265
+ return setOpen(false);
266
+ }
267
+ }, CalendarDateContent);
268
+ };
269
+ export default /*#__PURE__*/forwardRef(CalendarDate);
@@ -0,0 +1,119 @@
1
+ .calendar-box {
2
+ display: flex;
3
+ flex-direction: column;
4
+
5
+ .calendar-header {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+
10
+ .calendar-last-month,
11
+ .calendar-next-month {
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ font-size: 20px;
16
+ cursor: pointer;
17
+ }
18
+
19
+ .calendar-current-month {
20
+ text-align: center;
21
+ color: #101828;
22
+ font-weight: 600;
23
+ flex: 1;
24
+ font-size: 16px;
25
+ font-weight: 600;
26
+ line-height: 24px;
27
+ }
28
+ }
29
+
30
+ .calendar-content {
31
+ margin: 10px 0 20px;
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 16px;
35
+
36
+ .calendar-weeks {
37
+ display: grid;
38
+ grid-template-columns: repeat(7, 1fr);
39
+ gap: 8px;
40
+
41
+ .calendar-weeks-items {
42
+ color: #101828;
43
+ text-align: center;
44
+ font-size: 12px;
45
+ font-style: normal;
46
+ font-weight: 400;
47
+ line-height: 18px;
48
+ /* 150% */
49
+ }
50
+ }
51
+
52
+ .calendar-days {
53
+ display: grid;
54
+ grid-template-columns: repeat(7, 1fr);
55
+ gap: 12px;
56
+ }
57
+ }
58
+ }
59
+
60
+ .calendar-days-items {
61
+ position: relative;
62
+ display: flex;
63
+ height: 64px;
64
+ flex-direction: column;
65
+ justify-content: center;
66
+ align-items: center;
67
+ flex: 1 0 0;
68
+ border-radius: 8px;
69
+ border: 1px solid #d0d5dd;
70
+ cursor: pointer;
71
+
72
+ .day-text {
73
+ position: absolute;
74
+ left: 0;
75
+ right: 0;
76
+ bottom: 0;
77
+ top: 0;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ color: #101828;
82
+ text-align: center;
83
+ font-size: 16px;
84
+ font-style: normal;
85
+ font-weight: 500;
86
+ line-height: 24px;
87
+
88
+ &.day-line::before {
89
+ position: absolute;
90
+ bottom: 12px;
91
+ content: '';
92
+ width: 24px;
93
+ height: 4px;
94
+ flex-shrink: 0;
95
+ border-radius: 2px;
96
+ background: var(--lineColor);
97
+ }
98
+ }
99
+
100
+ &.disabledDate {
101
+ // border: 1px solid #eaecf0;
102
+ cursor: pointer;
103
+ background: var(--Gray-100, #f2f4f7);
104
+ border: none;
105
+ }
106
+
107
+ &.disabledSelect {
108
+ cursor: pointer;
109
+ }
110
+
111
+ &.selectDate {
112
+ border: 2px solid var(--Primary-600, #7f56d9);
113
+ }
114
+
115
+ &.other-month-days {
116
+ background: none;
117
+ border: none;
118
+ }
119
+ }