@licklist/design 0.44.486-dev.78 → 0.44.486-dev.8

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 (459) hide show
  1. package/dist/assets/logo/bookedit.svg +11 -9
  2. package/dist/assets/logo/bookedit.svg.js +1 -1
  3. package/dist/assets/logo/licklist.svg +2 -0
  4. package/dist/assets/logo/licklist.svg.js +1 -1
  5. package/dist/date-time-button/DateTimeButton.d.ts +1 -6
  6. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
  7. package/dist/date-time-button/DateTimeButton.js +1 -1
  8. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  9. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  10. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  12. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  13. package/dist/events/event-card/EventCard.js +1 -1
  14. package/dist/events/event-card/utils.d.ts +0 -29
  15. package/dist/events/event-card/utils.d.ts.map +1 -1
  16. package/dist/events/event-card/utils.js +1 -1
  17. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -3
  18. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  19. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  20. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -2
  21. package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
  22. package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -1
  23. package/dist/events/event-statistic-modal/utils/index.d.ts +1 -1
  24. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  25. package/dist/events/event-statistic-modal/utils/index.js +1 -1
  26. package/dist/events/event-venue-map/hooks/useImage.d.ts.map +1 -1
  27. package/dist/events/event-venue-map/hooks/useImage.js +1 -1
  28. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  29. package/dist/file-upload/FileUpload.js +1 -1
  30. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
  31. package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
  32. package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
  33. package/dist/iframe/activity-cards/index.d.ts +3 -0
  34. package/dist/iframe/activity-cards/index.d.ts.map +1 -0
  35. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
  36. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
  37. package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
  38. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +7 -0
  39. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -0
  40. package/dist/iframe/event/event-calendar/EventCalendar.js +1 -0
  41. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
  42. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
  43. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +1 -0
  44. package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +1 -0
  45. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +12 -0
  46. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -0
  47. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +1 -0
  48. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts +3 -0
  49. package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +1 -0
  50. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +7 -0
  51. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
  52. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +1 -0
  53. package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +1 -0
  54. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
  55. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +1 -0
  56. package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +1 -0
  57. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
  58. package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
  59. package/dist/iframe/event/event-calendar/index.d.ts +4 -0
  60. package/dist/iframe/event/event-calendar/index.d.ts.map +1 -0
  61. package/dist/iframe/event/event-calendar/types/index.d.ts +6 -0
  62. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -0
  63. package/dist/iframe/event/event-calendar/utils/index.d.ts +3 -0
  64. package/dist/iframe/event/event-calendar/utils/index.d.ts.map +1 -0
  65. package/dist/iframe/event/event-calendar/utils/index.js +1 -0
  66. package/dist/iframe/event/event-details/EventDetails.d.ts +10 -0
  67. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -0
  68. package/dist/iframe/event/event-details/EventDetails.js +1 -0
  69. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts +9 -0
  70. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.d.ts.map +1 -0
  71. package/dist/iframe/event/event-details/components/category-product/CategoryProduct.js +1 -0
  72. package/dist/iframe/event/event-details/components/category-product/index.d.ts +2 -0
  73. package/dist/iframe/event/event-details/components/category-product/index.d.ts.map +1 -0
  74. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts +26 -0
  75. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.d.ts.map +1 -0
  76. package/dist/iframe/event/event-details/components/event-details-form/EventDetailsForm.js +1 -0
  77. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts +2 -0
  78. package/dist/iframe/event/event-details/components/event-details-form/index.d.ts.map +1 -0
  79. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.d.ts.map +1 -0
  80. package/dist/iframe/event/event-details/components/number-of-people-input/NumberOfPeopleInput.js +1 -0
  81. package/dist/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.d.ts +3 -2
  82. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.d.ts.map +1 -0
  83. package/dist/iframe/event/event-details/components/number-of-people-input/component/RenderNumberOfPeopleInputComponent.js +1 -0
  84. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts +2 -0
  85. package/dist/iframe/event/event-details/components/number-of-people-input/component/index.d.ts.map +1 -0
  86. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts +2 -0
  87. package/dist/iframe/event/event-details/components/number-of-people-input/index.d.ts.map +1 -0
  88. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts +8 -0
  89. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.d.ts.map +1 -0
  90. package/dist/iframe/event/event-details/components/product-category-view/ProductCategoryView.js +1 -0
  91. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts +2 -0
  92. package/dist/iframe/event/event-details/components/product-category-view/index.d.ts.map +1 -0
  93. package/dist/iframe/event/event-details/index.d.ts +2 -0
  94. package/dist/iframe/event/event-details/index.d.ts.map +1 -0
  95. package/dist/iframe/event/event-details/utils/index.d.ts +2 -0
  96. package/dist/iframe/event/event-details/utils/index.d.ts.map +1 -0
  97. package/dist/iframe/event/event-details/utils/routes.d.ts +2 -0
  98. package/dist/iframe/event/event-details/utils/routes.d.ts.map +1 -0
  99. package/dist/iframe/event/event-details/utils/routes.js +1 -0
  100. package/dist/iframe/event/index.d.ts +2 -0
  101. package/dist/iframe/event/index.d.ts.map +1 -1
  102. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  103. package/dist/iframe/event/ticket-description/TicketDescription.js +1 -1
  104. package/dist/iframe/index.d.ts +2 -2
  105. package/dist/iframe/index.d.ts.map +1 -1
  106. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  107. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  108. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  109. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.js +1 -1
  110. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -2
  111. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  112. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  113. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  114. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +1 -1
  115. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  116. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  117. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  118. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  119. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -4
  120. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  121. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  122. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts +1 -2
  123. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.d.ts.map +1 -1
  124. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +1 -1
  125. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  126. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  127. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  128. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +3 -4
  129. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  130. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  131. package/dist/iframe/order-process/constants.d.ts +0 -1
  132. package/dist/iframe/order-process/constants.d.ts.map +1 -1
  133. package/dist/iframe/order-process/constants.js +1 -1
  134. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  135. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  136. package/dist/index.d.ts +0 -3
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js +1 -1
  139. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  140. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  141. package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -5
  142. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  143. package/dist/product-set/control/DateAndRecurrenceInput.js +1 -1
  144. package/dist/product-set/control/ProductSetControl.d.ts +3 -6
  145. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  146. package/dist/product-set/control/ProductSetControl.js +1 -1
  147. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts +1 -2
  148. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  149. package/dist/product-set/control/ProductSetRecurrenceControl.js +1 -1
  150. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  151. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  152. package/dist/product-set/form/ProductSetForm.d.ts +1 -3
  153. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  154. package/dist/product-set/form/ProductSetForm.js +1 -1
  155. package/dist/product-set/form/ProductsControl.d.ts +1 -3
  156. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  157. package/dist/product-set/form/ProductsControl.js +1 -1
  158. package/dist/product-set/product/ProductControl.d.ts +1 -2
  159. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  160. package/dist/product-set/product/ProductControl.js +1 -1
  161. package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
  162. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
  163. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  164. package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
  165. package/dist/product-set/utils/index.d.ts +0 -10
  166. package/dist/product-set/utils/index.d.ts.map +1 -1
  167. package/dist/product-set/utils/index.js +1 -1
  168. package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
  169. package/dist/provider/location-input/LocationInput.js +1 -1
  170. package/dist/provider/location-input/index.d.ts +0 -1
  171. package/dist/provider/location-input/index.d.ts.map +1 -1
  172. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  173. package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
  174. package/dist/provider/provider-form/ProviderForm.js +1 -1
  175. package/dist/provider/venue-form/VenueForm.d.ts +1 -3
  176. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  177. package/dist/provider/venue-form/VenueForm.js +1 -1
  178. package/dist/recurrence-input/RecurrenceEndInput.d.ts +1 -8
  179. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  180. package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
  181. package/dist/recurrence-input/RecurrenceInput.d.ts +1 -2
  182. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  183. package/dist/recurrence-input/RecurrenceInput.js +1 -1
  184. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -4
  185. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
  186. package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
  187. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +0 -1
  188. package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
  189. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  190. package/dist/report/form/ReportForm.d.ts.map +1 -1
  191. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  192. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  193. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  194. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  195. package/dist/sales/filters/SaleFilters.d.ts +0 -1
  196. package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
  197. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -3
  198. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  199. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
  200. package/dist/sales/payment-form/SalePaymentForm.js +1 -1
  201. package/dist/sales/source-of-sales/SourceOfSalesChart.d.ts.map +1 -1
  202. package/dist/sales/source-of-sales/SourceOfSalesChart.js +1 -1
  203. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  204. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  205. package/dist/static/RestrictedAccess.d.ts.map +1 -1
  206. package/dist/static/form-number-input/FormNumberInput.d.ts +1 -2
  207. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  208. package/dist/static/form-number-input/FormNumberInput.js +1 -1
  209. package/dist/styles/events/EventCard.scss +5 -12
  210. package/dist/styles/form/CustomCheckbox.scss +0 -6
  211. package/dist/styles/header/Header.scss +4 -0
  212. package/{src/styles/activity-card/GridActivitiesCard.scss → dist/styles/iframe-customers-journey/ActivitiesCard.scss} +9 -1
  213. package/dist/styles/{activity-card/ListActivitiesCard.scss → iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  214. package/dist/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  215. package/dist/styles/iframe-customers-journey/_index.scss +3 -0
  216. package/dist/styles/iframe-events/Card.scss +0 -1
  217. package/dist/styles/notification/Notification.scss +0 -4
  218. package/dist/styles/packages.scss +1 -3
  219. package/dist/styles/resources-blocking/_index.scss +0 -16
  220. package/dist/styles/sales/BookingResults.scss +6 -14
  221. package/dist/styles/themes/bookedit/_index.scss +0 -1
  222. package/dist/styles/zones/ZoneForm.scss +0 -3
  223. package/dist/types/iframe.d.ts +0 -1
  224. package/dist/types/iframe.d.ts.map +1 -1
  225. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  226. package/dist/virtualized/components/VirtualizedWindowScroller.js +1 -1
  227. package/dist/zone/form/ZoneForm.d.ts +1 -1
  228. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  229. package/dist/zone/form/ZoneForm.js +1 -1
  230. package/dist/zone/form/components/AvailableTimesControl.d.ts +0 -2
  231. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  232. package/dist/zone/form/components/AvailableTimesControl.js +1 -1
  233. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  234. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  235. package/dist/zone/form/components/ZoneControl.js +1 -1
  236. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  237. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  238. package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
  239. package/dist/zone/form/utils/dates.d.ts.map +1 -1
  240. package/dist/zone/form/utils/dates.js +1 -1
  241. package/package.json +3 -3
  242. package/src/assets/logo/bookedit.svg +11 -9
  243. package/src/assets/logo/licklist.svg +2 -0
  244. package/src/date-time-button/DateTimeButton.stories.tsx +0 -17
  245. package/src/date-time-button/DateTimeButton.tsx +22 -24
  246. package/src/events/edit-event-modal/IntervalInput.tsx +0 -3
  247. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.stories.tsx +12 -0
  248. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -1
  249. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +2 -2
  250. package/src/events/event-card/EventCard.tsx +2 -6
  251. package/src/events/event-card/utils.ts +16 -89
  252. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -5
  253. package/src/events/event-statistic-modal/hooks/useTableData.tsx +5 -12
  254. package/src/events/event-statistic-modal/utils/index.ts +34 -39
  255. package/src/events/event-venue-map/hooks/useImage.tsx +8 -17
  256. package/src/file-upload/FileUpload.tsx +1 -3
  257. package/src/iframe/activity-cards/activity-card/ActivityCard.stories.tsx +52 -0
  258. package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
  259. package/src/iframe/activity-cards/index.ts +2 -0
  260. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
  261. package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
  262. package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +36 -0
  263. package/src/iframe/event/event-calendar/EventCalendar.tsx +27 -0
  264. package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/CalendarButtons.tsx +14 -31
  265. package/src/iframe/event/event-calendar/components/CalendarDate/CalendarDate.tsx +51 -0
  266. package/src/iframe/event/event-calendar/components/CalendarDate/index.ts +2 -0
  267. package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/CalendarDates.tsx +19 -24
  268. package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
  269. package/src/iframe/event/event-calendar/index.ts +6 -0
  270. package/src/iframe/event/event-calendar/types/index.ts +6 -0
  271. package/src/iframe/event/event-calendar/utils/index.ts +11 -0
  272. package/src/iframe/event/event-details/EventDetails.stories.tsx +187 -0
  273. package/src/iframe/event/event-details/EventDetails.tsx +92 -0
  274. package/src/iframe/event/event-details/EventDetailsOneStepForm.stories.tsx +123 -0
  275. package/src/iframe/event/event-details/components/category-product/CategoryProduct.tsx +109 -0
  276. package/src/iframe/event/event-details/components/category-product/index.ts +1 -0
  277. package/src/iframe/event/event-details/components/event-details-form/EventDetailsForm.tsx +250 -0
  278. package/src/iframe/event/event-details/components/event-details-form/index.ts +5 -0
  279. package/src/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.tsx +1 -1
  280. package/src/{number-of-people-input/components → iframe/event/event-details/components/number-of-people-input/component}/RenderNumberOfPeopleInputComponent.tsx +3 -3
  281. package/src/iframe/event/event-details/components/number-of-people-input/component/index.ts +1 -0
  282. package/src/iframe/event/event-details/components/number-of-people-input/index.ts +1 -0
  283. package/src/iframe/event/event-details/components/product-category-view/ProductCategoryView.tsx +34 -0
  284. package/src/iframe/event/event-details/components/product-category-view/index.ts +1 -0
  285. package/src/iframe/event/event-details/index.ts +1 -0
  286. package/src/iframe/event/event-details/utils/index.ts +1 -0
  287. package/src/iframe/event/event-details/utils/routes.ts +6 -0
  288. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +2 -1
  289. package/src/iframe/event/index.ts +7 -0
  290. package/src/iframe/event/ticket-description/TicketDescription.stories.tsx +2 -8
  291. package/src/iframe/event/ticket-description/TicketDescription.tsx +2 -7
  292. package/src/iframe/index.ts +3 -1
  293. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +3 -4
  294. package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -2
  295. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +0 -2
  296. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  297. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +8 -17
  298. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +15 -1
  299. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +29 -15
  300. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +9 -12
  301. package/src/iframe/order-process/components/Timer/utils/index.ts +9 -6
  302. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +32 -62
  303. package/src/iframe/order-process/constants.ts +0 -1
  304. package/src/iframe/page/Page.stories.tsx +2 -2
  305. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +6 -13
  306. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  307. package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
  308. package/src/index.ts +0 -3
  309. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -26
  310. package/src/product-set/control/DateAndRecurrenceInput.tsx +2 -73
  311. package/src/product-set/control/ProductSetControl.stories.tsx +2 -0
  312. package/src/product-set/control/ProductSetControl.tsx +10 -44
  313. package/src/product-set/control/ProductSetRecurrenceControl.tsx +5 -14
  314. package/src/product-set/form/ProductCategoriesControl.tsx +1 -2
  315. package/src/product-set/form/ProductSetForm.stories.tsx +12 -9
  316. package/src/product-set/form/ProductSetForm.tsx +3 -19
  317. package/src/product-set/form/ProductsControl.tsx +0 -10
  318. package/src/product-set/product/ProductControl.tsx +1 -28
  319. package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
  320. package/src/product-set/product-category/ProductCategory.stories.tsx +1 -0
  321. package/src/product-set/product-category/ProductCategoryControl.tsx +30 -1
  322. package/src/product-set/utils/index.ts +0 -38
  323. package/src/provider/location-input/LocationInput.tsx +20 -21
  324. package/src/provider/location-input/LocationInputDescription.tsx +2 -2
  325. package/src/provider/location-input/index.ts +1 -1
  326. package/src/provider/provider-details-input/ProviderDetailsInput.tsx +13 -5
  327. package/src/provider/venue-form/VenueForm.stories.tsx +0 -24
  328. package/src/provider/venue-form/VenueForm.tsx +4 -55
  329. package/src/recurrence-input/RecurrenceEndInput.tsx +10 -28
  330. package/src/recurrence-input/RecurrenceInput.tsx +2 -12
  331. package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +11 -21
  332. package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +0 -9
  333. package/src/report/form/ReportForm.tsx +1 -1
  334. package/src/sales/booking/results/BookingResults.stories.tsx +7 -12
  335. package/src/sales/booking/results/components/ResultCard.tsx +3 -24
  336. package/src/sales/coupon/control/CouponFormControl.tsx +0 -5
  337. package/src/sales/filters/SaleFilters.tsx +0 -1
  338. package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +7 -0
  339. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +5 -20
  340. package/src/sales/source-of-sales/SourceOfSalesChart.tsx +28 -31
  341. package/src/snippet/snippet-template/preview/Preview.tsx +2 -14
  342. package/src/static/RestrictedAccess.tsx +1 -1
  343. package/src/static/form-number-input/FormNumberInput.tsx +1 -8
  344. package/src/styles/events/EventCard.scss +5 -12
  345. package/src/styles/form/CustomCheckbox.scss +0 -6
  346. package/src/styles/header/Header.scss +4 -0
  347. package/{dist/styles/activity-card/GridActivitiesCard.scss → src/styles/iframe-customers-journey/ActivitiesCard.scss} +9 -1
  348. package/src/styles/{activity-card/ListActivitiesCard.scss → iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
  349. package/src/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +12 -6
  350. package/src/styles/iframe-customers-journey/_index.scss +3 -0
  351. package/src/styles/iframe-events/Card.scss +0 -1
  352. package/src/styles/notification/Notification.scss +0 -4
  353. package/src/styles/packages.scss +1 -3
  354. package/src/styles/resources-blocking/_index.scss +0 -16
  355. package/src/styles/sales/BookingResults.scss +6 -14
  356. package/src/styles/themes/bookedit/_index.scss +0 -1
  357. package/src/styles/zones/ZoneForm.scss +0 -3
  358. package/src/types/iframe.ts +0 -1
  359. package/src/typings.d.ts +0 -11
  360. package/src/virtualized/components/VirtualizedWindowScroller.tsx +1 -2
  361. package/src/zone/form/ZoneForm.tsx +2 -1
  362. package/src/zone/form/components/AvailableTimesControl.tsx +88 -89
  363. package/src/zone/form/components/ZoneControl.tsx +5 -4
  364. package/src/zone/form/components/ZoneRecurrencesControl.tsx +59 -3
  365. package/src/zone/form/utils/dates.ts +36 -29
  366. package/dist/assets/iframe/available.svg.js +0 -1
  367. package/dist/assets/iframe/limited.svg.js +0 -1
  368. package/dist/assets/iframe/soldOut.svg.js +0 -1
  369. package/dist/assets/logo/favicon.svg +0 -12
  370. package/dist/availability-indicator/AvailabilityIndicator.d.ts +0 -10
  371. package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +0 -1
  372. package/dist/availability-indicator/AvailabilityIndicator.js +0 -1
  373. package/dist/availability-indicator/index.d.ts +0 -2
  374. package/dist/availability-indicator/index.d.ts.map +0 -1
  375. package/dist/calendar/Calendar.d.ts +0 -19
  376. package/dist/calendar/Calendar.d.ts.map +0 -1
  377. package/dist/calendar/Calendar.js +0 -1
  378. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
  379. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
  380. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +0 -1
  381. package/dist/calendar/components/CalendarButtons/index.d.ts.map +0 -1
  382. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +0 -5
  383. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
  384. package/dist/calendar/components/CalendarDates/CalendarDates.js +0 -1
  385. package/dist/calendar/components/CalendarDates/index.d.ts.map +0 -1
  386. package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
  387. package/dist/calendar/components/CalendarSelect/CalendarSelect.js +0 -1
  388. package/dist/calendar/components/CalendarSelect/index.d.ts.map +0 -1
  389. package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
  390. package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
  391. package/dist/calendar/index.d.ts +0 -4
  392. package/dist/calendar/index.d.ts.map +0 -1
  393. package/dist/calendar/utils/index.d.ts +0 -5
  394. package/dist/calendar/utils/index.d.ts.map +0 -1
  395. package/dist/calendar/utils/index.js +0 -1
  396. package/dist/iframe/activity-card/ActivityCard.d.ts +0 -15
  397. package/dist/iframe/activity-card/ActivityCard.d.ts.map +0 -1
  398. package/dist/iframe/activity-card/ActivityCard.js +0 -1
  399. package/dist/iframe/activity-card/index.d.ts +0 -2
  400. package/dist/iframe/activity-card/index.d.ts.map +0 -1
  401. package/dist/number-of-people-input/NumberOfPeopleInput.d.ts.map +0 -1
  402. package/dist/number-of-people-input/NumberOfPeopleInput.js +0 -1
  403. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.d.ts.map +0 -1
  404. package/dist/number-of-people-input/components/RenderNumberOfPeopleInputComponent.js +0 -1
  405. package/dist/number-of-people-input/components/index.d.ts +0 -2
  406. package/dist/number-of-people-input/components/index.d.ts.map +0 -1
  407. package/dist/number-of-people-input/index.d.ts +0 -3
  408. package/dist/number-of-people-input/index.d.ts.map +0 -1
  409. package/dist/provider/location-input/components/FormGroupControll.d.ts +0 -7
  410. package/dist/provider/location-input/components/FormGroupControll.d.ts.map +0 -1
  411. package/dist/provider/location-input/components/FormGroupControll.js +0 -1
  412. package/dist/provider/location-input/components/index.d.ts +0 -2
  413. package/dist/provider/location-input/components/index.d.ts.map +0 -1
  414. package/dist/styles/activity-card/_index.scss +0 -2
  415. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  416. package/dist/styles/availability-indicator/_index.scss +0 -1
  417. package/dist/styles/date-time-button/_index.scss +0 -1
  418. package/dist/zone/form/components/GameDurationControl.d.ts +0 -7
  419. package/dist/zone/form/components/GameDurationControl.d.ts.map +0 -1
  420. package/dist/zone/form/components/GameDurationControl.js +0 -1
  421. package/src/assets/logo/favicon.svg +0 -12
  422. package/src/availability-indicator/AvailabilityIndicator.tsx +0 -67
  423. package/src/availability-indicator/index.ts +0 -1
  424. package/src/calendar/Calendar.stories.tsx +0 -33
  425. package/src/calendar/Calendar.tsx +0 -45
  426. package/src/calendar/index.ts +0 -3
  427. package/src/calendar/utils/index.ts +0 -28
  428. package/src/iframe/activity-card/ActivityCard.stories.tsx +0 -51
  429. package/src/iframe/activity-card/ActivityCard.tsx +0 -66
  430. package/src/iframe/activity-card/index.ts +0 -1
  431. package/src/number-of-people-input/components/RenderNumberOfPeopleInputComponent.stories.tsx +0 -92
  432. package/src/number-of-people-input/components/index.ts +0 -1
  433. package/src/number-of-people-input/index.ts +0 -2
  434. package/src/provider/location-input/components/FormGroupControll.tsx +0 -16
  435. package/src/provider/location-input/components/index.ts +0 -1
  436. package/src/styles/activity-card/_index.scss +0 -2
  437. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -7
  438. package/src/styles/availability-indicator/_index.scss +0 -1
  439. package/src/styles/date-time-button/_index.scss +0 -1
  440. package/src/zone/form/components/GameDurationControl.tsx +0 -46
  441. /package/dist/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  442. /package/dist/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  443. /package/dist/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  444. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.d.ts +0 -0
  445. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.d.ts +0 -0
  446. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
  447. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.d.ts +0 -0
  448. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
  449. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
  450. /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.d.ts +0 -0
  451. /package/dist/{number-of-people-input → iframe/event/event-details/components/number-of-people-input}/NumberOfPeopleInput.d.ts +0 -0
  452. /package/src/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
  453. /package/src/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
  454. /package/src/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
  455. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.ts +0 -0
  456. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.ts +0 -0
  457. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.ts +0 -0
  458. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
  459. /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.ts +0 -0
@@ -5,11 +5,8 @@ import { Form, OverlayTrigger, Popover } from "react-bootstrap";
5
5
  import { useFieldArray, useFormContext } from "react-hook-form";
6
6
  import { useTranslation } from "react-i18next";
7
7
  import { useClickAway } from "react-use";
8
- import { DateTime } from "luxon";
9
- import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
10
8
  import { ProductSetRecurrence } from "@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper";
11
9
  import { DndContext } from "@dnd-kit/core";
12
- import { TIME_FORMAT } from "@licklist/core/dist/Config/Date";
13
10
  import {
14
11
  SortableContext,
15
12
  verticalListSortingStrategy,
@@ -23,11 +20,6 @@ import {
23
20
  RecurringDatePickerInputValues,
24
21
  } from "../../recurring-date-picker-input/RecurringDatePickerInput";
25
22
  import { ProductSetRecurrenceControl } from "./ProductSetRecurrenceControl";
26
- import {
27
- AvailableTimesControl,
28
- AvailableTimesControlRef,
29
- } from "../../zone/form/components/AvailableTimesControl";
30
-
31
23
  // eslint-disable-next-line max-len
32
24
 
33
25
  export interface DateAndRecurrenceInputValues {
@@ -36,16 +28,10 @@ export interface DateAndRecurrenceInputValues {
36
28
 
37
29
  interface DateAndRecurrenceInputProps {
38
30
  isEventEditProductSet?: boolean;
39
- workHours?: WorkHour[];
40
- providerHasBookingManagement: boolean;
41
- isLoading?: boolean;
42
31
  }
43
32
 
44
33
  export const DateAndRecurrenceInput = ({
45
34
  isEventEditProductSet,
46
- providerHasBookingManagement,
47
- workHours,
48
- isLoading,
49
35
  }: DateAndRecurrenceInputProps) => {
50
36
  const {
51
37
  control,
@@ -56,9 +42,6 @@ export const DateAndRecurrenceInput = ({
56
42
  clearErrors,
57
43
  } = useFormContext<DateAndRecurrenceInputValues>();
58
44
 
59
- const [availableTimes, setAvailableTimes] = useState<string[]>([]);
60
- const availableTimesFormRef = useRef<AvailableTimesControlRef>();
61
-
62
45
  const { fields, append, update, move } = useFieldArray({
63
46
  name: "menuRecurrences",
64
47
  control,
@@ -95,44 +78,13 @@ export const DateAndRecurrenceInput = ({
95
78
  const { t } = useTranslation("Design");
96
79
 
97
80
  // in this method we should fulfill the form with a proper data
98
- const handleRecurringDateChange = async (
99
- next: RecurringDatePickerInputValues
100
- ) => {
101
- const isAvailableTimesFormValid =
102
- await availableTimesFormRef.current?.trigger();
103
-
104
- if (next?.startTime && next?.endTime && isAvailableTimesFormValid) {
105
- const startTime = DateTime.fromISO(next.startTime);
106
- const endTime = DateTime.fromISO(next.endTime);
107
- const { availableTimes } = availableTimesFormRef.current.getValues();
108
- const validAvalilableTimes = availableTimes.every((time) => {
109
- const currentAvailableTime = DateTime.fromFormat(time, TIME_FORMAT);
110
-
111
- return (
112
- currentAvailableTime.diff(startTime, "minutes").minutes >= 0 &&
113
- currentAvailableTime.diff(endTime, "minutes").minutes <= 0
114
- );
115
- });
116
- if (!validAvalilableTimes) {
117
- availableTimesFormRef.current.setError("availableTimes", {
118
- message: t("Validation:fieldTimeBetween", {
119
- attribute: t("Design:startTimesSmall"),
120
- min: startTime.toFormat(TIME_FORMAT),
121
- max: endTime.toFormat(TIME_FORMAT),
122
- }),
123
- });
124
-
125
- return;
126
- }
127
- }
128
-
81
+ const handleRecurringDateChange = (next: RecurringDatePickerInputValues) => {
129
82
  const values = {
130
83
  rrule: next.rrule,
131
84
  startDate: next.startDate,
132
85
  endDate: next.endDate,
133
86
  startTime: next.startTime,
134
87
  endTime: next.endTime,
135
- ...availableTimesFormRef?.current?.getValues(),
136
88
  } as Partial<ProductSetRecurrence>;
137
89
 
138
90
  if (editState.values?.id) {
@@ -155,7 +107,6 @@ export const DateAndRecurrenceInput = ({
155
107
  // Hotfix for an issue with Popover close & open actions
156
108
  setTimeout(() => {
157
109
  setEditState({ index, values: next });
158
- setAvailableTimes(next.availableTimes || []);
159
110
  setIsDatePopoverVisible(() => true);
160
111
  }, 100);
161
112
  };
@@ -225,25 +176,7 @@ export const DateAndRecurrenceInput = ({
225
176
  defaultValues={editState.values}
226
177
  onChange={handleRecurringDateChange}
227
178
  onDelete={handleDelete}
228
- >
229
- {providerHasBookingManagement && (
230
- <AvailableTimesControl
231
- workHours={workHours}
232
- isLoading={isLoading}
233
- defaultValues={availableTimes}
234
- ref={availableTimesFormRef}
235
- errorMessage={
236
- errors?.menuRecurrences?.[`${editState?.index}`]
237
- ?.availableTimes?.message
238
- }
239
- clearErrorMessage={() =>
240
- clearErrors(
241
- `menuRecurrences.${editState?.index}.availableTimes`
242
- )
243
- }
244
- />
245
- )}
246
- </RecurringDatePickerInput>
179
+ />
247
180
  </Popover.Content>
248
181
  </Popover>
249
182
  }
@@ -268,10 +201,6 @@ export const DateAndRecurrenceInput = ({
268
201
  key={menuRecurrence._id}
269
202
  menuRecurrence={menuRecurrence}
270
203
  onEdit={() => handleOnEdit(menuRecurrence, index)}
271
- errorMessage={
272
- errors?.menuRecurrences?.[`${index}`]?.availableTimes
273
- ?.message
274
- }
275
204
  />
276
205
  ))}
277
206
  </SortableContext>
@@ -67,6 +67,7 @@ Empty.args = {
67
67
  type: "sale",
68
68
  termsAndConditions: "",
69
69
  operationalCost: OPERATIONAL_COST_CUSTOMER,
70
+ isDefault: false,
70
71
  menuRecurrence: {
71
72
  id: 38,
72
73
  menuId: 257,
@@ -86,6 +87,7 @@ Default.args = {
86
87
  type: "sale",
87
88
  termsAndConditions: "",
88
89
  operationalCost: OPERATIONAL_COST_CUSTOMER,
90
+ isDefault: true,
89
91
  menuRecurrence: {
90
92
  id: 38,
91
93
  menuId: 257,
@@ -7,13 +7,8 @@ import {
7
7
  OPERATIONAL_COST_CUSTOMER,
8
8
  OPERATIONAL_COST_PROVIDER,
9
9
  OPERATIONAL_COST_TYPES,
10
- RELY_ON_PEOPLE_QUANTITY,
11
- RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY,
12
- RELY_ON_PEOPLE_PRODUCT_QUANTITY,
13
10
  OperationalCostType,
14
11
  ProductSetType,
15
- RELY_ON_PEOPLE_TYPES,
16
- RelyOnPeopleType,
17
12
  } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
18
13
  import { useId } from "@react-aria/utils";
19
14
  import { FieldSet } from "@licklist/core/dist/DataMapper/Order/FieldSetDataMapper";
@@ -21,7 +16,6 @@ import { EmailTemplate } from "@licklist/core/dist/DataMapper/Notification/Email
21
16
  import { SmsTemplate } from "@licklist/core/dist/DataMapper/Notification/SmsTemplateDataMapper";
22
17
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
23
18
  import { ruleForUrlWithProtocol } from "@licklist/plugins/dist/validation/Rules/urlRule";
24
- import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
25
19
  import { WarningMessage } from "../../static";
26
20
  import { SelectItem } from "../../types/generic/SelectItem";
27
21
  import {
@@ -40,12 +34,6 @@ const OPERATIONAL_COST_TITLES = {
40
34
  [OPERATIONAL_COST_CUSTOMER]: "operationalCostCustomer",
41
35
  } as const;
42
36
 
43
- const RELY_ON_PEOPLE_TYPE_TITLES = {
44
- [RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY]: "peopleProductCapacityQuantity",
45
- [RELY_ON_PEOPLE_PRODUCT_QUANTITY]: "peopleProductQuantity",
46
- [RELY_ON_PEOPLE_QUANTITY]: "peopleQuantity",
47
- };
48
-
49
37
  export interface TemplateItem {
50
38
  id: string;
51
39
  value: EmailTemplate | SmsTemplate;
@@ -57,9 +45,9 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
57
45
  type: ProductSetType;
58
46
  termsAndConditions: string;
59
47
  thankYouPageUrl: string;
48
+ isDefault: boolean;
60
49
  operationalCost: OperationalCostType;
61
50
  productGroups?: SelectItem[];
62
- relyOnPeopleType?: RelyOnPeopleType | null;
63
51
  fieldSetId?: number;
64
52
  steps?: Step[];
65
53
  emailTemplates?: TemplateItem[];
@@ -84,8 +72,6 @@ export interface ProductSetControlProps {
84
72
  fieldSets?: FieldSet[];
85
73
  showEmailTemplate?: boolean;
86
74
  showSmsTemplate?: boolean;
87
- workHours?: WorkHour[];
88
- providerHasBookingManagement?: boolean;
89
75
  }
90
76
 
91
77
  export function ProductSetControl({
@@ -99,8 +85,6 @@ export function ProductSetControl({
99
85
  isCreateAction,
100
86
  showEmailTemplate,
101
87
  showSmsTemplate,
102
- workHours,
103
- providerHasBookingManagement = false,
104
88
  }: ProductSetControlProps) {
105
89
  const { t } = useTranslation(["Design", "Validation", "Notification"]);
106
90
  const {
@@ -116,7 +100,6 @@ export function ProductSetControl({
116
100
 
117
101
  const nameId = useId();
118
102
  const termsAndConditionsId = useId();
119
- const relyOnPeopleTypeId = useId();
120
103
 
121
104
  return (
122
105
  <Row
@@ -162,9 +145,6 @@ export function ProductSetControl({
162
145
  {isCreateAction && (
163
146
  <DateAndRecurrenceInput
164
147
  isEventEditProductSet={isEventEditProductSet}
165
- workHours={workHours}
166
- isLoading={isLoading}
167
- providerHasBookingManagement={providerHasBookingManagement}
168
148
  />
169
149
  )}
170
150
 
@@ -196,6 +176,15 @@ export function ProductSetControl({
196
176
  </Form.Group>
197
177
  )}
198
178
  /> */}
179
+ {/* <Form.Check
180
+ {...register("isDefault")}
181
+ id="isDefaultId"
182
+ name="isDefault"
183
+ label={t("Design:setAsDraft")}
184
+ custom
185
+ className="is-default-checkbox"
186
+ disabled={isLoading}
187
+ /> */}
199
188
 
200
189
  <Form.Group>
201
190
  <Form.Label className="mb-0">
@@ -231,29 +220,6 @@ export function ProductSetControl({
231
220
  </Form.Control>
232
221
  </Form.Group>
233
222
 
234
- <Form.Group controlId={relyOnPeopleTypeId}>
235
- <Form.Label>{t("peopleQuantityType")}</Form.Label>
236
- <Form.Control
237
- {...register("relyOnPeopleType")}
238
- as="select"
239
- defaultValue={null}
240
- >
241
- <option value="">{t("notRequired")}</option>
242
- {Object.keys(RELY_ON_PEOPLE_TYPES).map((relyOnPeopleType) => (
243
- <option
244
- value={RELY_ON_PEOPLE_TYPES[relyOnPeopleType]}
245
- key={RELY_ON_PEOPLE_TYPES[relyOnPeopleType]}
246
- >
247
- {t(
248
- RELY_ON_PEOPLE_TYPE_TITLES[
249
- RELY_ON_PEOPLE_TYPES[relyOnPeopleType]
250
- ]
251
- )}
252
- </option>
253
- ))}
254
- </Form.Control>
255
- </Form.Group>
256
-
257
223
  <Form.Group controlId={termsAndConditionsId}>
258
224
  <Form.Label>{t("Design:termsAndConditions")}</Form.Label>
259
225
  <Form.Control
@@ -11,13 +11,11 @@ import { Icon } from "../../static";
11
11
  export interface ProductSetRecurrenceControlProps {
12
12
  menuRecurrence?: { _id: string } & Partial<ProductSetRecurrence>;
13
13
  onEdit?: (onEdit: Partial<ProductSetRecurrence>) => void;
14
- errorMessage?: string;
15
14
  }
16
15
 
17
16
  export const ProductSetRecurrenceControl = ({
18
17
  menuRecurrence,
19
18
  onEdit,
20
- errorMessage,
21
19
  }: ProductSetRecurrenceControlProps) => {
22
20
  const { formatDate } = useIntl();
23
21
  const { t } = useTranslation("Design");
@@ -32,7 +30,7 @@ export const ProductSetRecurrenceControl = ({
32
30
 
33
31
  return (
34
32
  <div
35
- className="sortable-tree-root flex-column"
33
+ className="sortable-tree-root"
36
34
  style={{
37
35
  transform: CSS.Translate.toString(transform),
38
36
  transition,
@@ -58,14 +56,10 @@ export const ProductSetRecurrenceControl = ({
58
56
  {formatDate(menuRecurrence.startDate, {
59
57
  dateStyle: "medium",
60
58
  })}{" "}
61
- {menuRecurrence.endDate && (
62
- <>
63
- {"- "}
64
- {formatDate(menuRecurrence.endDate, {
65
- dateStyle: "medium",
66
- })}
67
- </>
68
- )}
59
+ -{" "}
60
+ {formatDate(menuRecurrence.endDate, {
61
+ dateStyle: "medium",
62
+ })}
69
63
  </span>
70
64
 
71
65
  <div
@@ -86,9 +80,6 @@ export const ProductSetRecurrenceControl = ({
86
80
  {getHumanReadableDate(menuRecurrence)}
87
81
  </span>
88
82
  </div>
89
- <div className={`manual-form-error ${!errorMessage && "d-none"}`}>
90
- {errorMessage}
91
- </div>
92
83
  </div>
93
84
  );
94
85
  };
@@ -48,6 +48,7 @@ const getCategoryDefaultValue = (
48
48
  maxSubItems: null,
49
49
  quantityType: QUANTITY_TYPE_STANDARD,
50
50
  type: categoryType,
51
+ isRelyOnPeople: categoryType === CATEGORY_TYPE_TICKETS,
51
52
  isTimeRelated: false,
52
53
  collectUserInfo: false,
53
54
  hasTicket: categoryType === CATEGORY_TYPE_TICKETS,
@@ -71,7 +72,6 @@ export function ProductCategoriesControl({
71
72
  providerHasMap,
72
73
  expandedProductCategories,
73
74
  setExpandedProductCategories,
74
- zones,
75
75
  } = useContext(ProductSetLoadingContext);
76
76
  const form = useFormContext<ProductSetFormValues>();
77
77
  const [isSelectCategoryVisible, setIsSelectCategoryVisible] = useState(false);
@@ -287,7 +287,6 @@ export function ProductCategoriesControl({
287
287
  quantityType={productCategory.quantityType}
288
288
  hasTicket={productCategory?.hasTicket}
289
289
  stepIndex={stepIndex}
290
- zones={zones}
291
290
  productCategoryIndex={index}
292
291
  categoryType={productCategory.type}
293
292
  />
@@ -11,7 +11,6 @@ import {
11
11
  import {
12
12
  OPERATIONAL_COST_CUSTOMER,
13
13
  OPERATIONAL_COST_PROVIDER,
14
- RELY_ON_PEOPLE_PRODUCT_QUANTITY,
15
14
  } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
16
15
  import { FieldSet } from "@licklist/core/dist/DataMapper/Order/FieldSetDataMapper";
17
16
  import { ProductSetForm, ProductSetFormProps } from "./ProductSetForm";
@@ -23,17 +22,13 @@ export default {
23
22
  export const Default: Story<ProductSetFormProps> = (args) => {
24
23
  const providerHasMap = boolean("providerHasMap", true);
25
24
 
26
- return (
27
- <ProductSetForm {...args} providerHasMap={providerHasMap} isCreateAction />
28
- );
25
+ return <ProductSetForm {...args} providerHasMap={providerHasMap} />;
29
26
  };
30
27
 
31
28
  export const Empty: Story<ProductSetFormProps> = (args) => {
32
29
  const providerHasMap = boolean("providerHasMap", true);
33
30
 
34
- return (
35
- <ProductSetForm {...args} providerHasMap={providerHasMap} isCreateAction />
36
- );
31
+ return <ProductSetForm {...args} providerHasMap={providerHasMap} />;
37
32
  };
38
33
 
39
34
  export const Valid: Story<ProductSetFormProps> = (args) => {
@@ -79,7 +74,6 @@ Default.args = {
79
74
  {
80
75
  createdAt: "2023-05-08T15:55:28.000+03:00",
81
76
  deletedAt: null,
82
- defaultDuration: 30,
83
77
  description: "Zone description 2",
84
78
  id: 2,
85
79
  image: null,
@@ -107,8 +101,8 @@ Default.args = {
107
101
  name: "Example",
108
102
  type: "sale",
109
103
  termsAndConditions: "",
104
+ isDefault: true,
110
105
  operationalCost: OPERATIONAL_COST_CUSTOMER,
111
- relyOnPeopleType: RELY_ON_PEOPLE_PRODUCT_QUANTITY,
112
106
  steps: [
113
107
  {
114
108
  id: 1,
@@ -120,6 +114,7 @@ Default.args = {
120
114
  minSubItems: 1,
121
115
  maxSubItems: 10,
122
116
  quantityType: "constant",
117
+ isRelyOnPeople: false,
123
118
  isTimeRelated: false,
124
119
  hasTicket: false,
125
120
  allowDeposits: false,
@@ -188,6 +183,7 @@ Default.args = {
188
183
  minSubItems: 0,
189
184
  maxSubItems: 0,
190
185
  quantityType: "recharging",
186
+ isRelyOnPeople: false,
191
187
  isTimeRelated: false,
192
188
  hasTicket: false,
193
189
  allowDeposits: false,
@@ -206,6 +202,7 @@ Default.args = {
206
202
  minSubItems: 0,
207
203
  maxSubItems: 0,
208
204
  quantityType: "recharging",
205
+ isRelyOnPeople: false,
209
206
  isTimeRelated: false,
210
207
  hasTicket: false,
211
208
  allowDeposits: false,
@@ -291,6 +288,7 @@ Default.args = {
291
288
  minSubItems: 0,
292
289
  maxSubItems: null,
293
290
  quantityType: "recharging",
291
+ isRelyOnPeople: false,
294
292
  isTimeRelated: false,
295
293
  hasTicket: false,
296
294
  allowDeposits: false,
@@ -851,6 +849,7 @@ Empty.args = {
851
849
  name: "Example",
852
850
  type: "sale",
853
851
  termsAndConditions: "",
852
+ isDefault: true,
854
853
  operationalCost: OPERATIONAL_COST_PROVIDER,
855
854
  steps: [],
856
855
  },
@@ -863,6 +862,7 @@ ServerErrors.args = {
863
862
  name: "",
864
863
  type: "sale",
865
864
  termsAndConditions: "",
865
+ isDefault: true,
866
866
  operationalCost: OPERATIONAL_COST_PROVIDER,
867
867
  steps: [],
868
868
  },
@@ -876,6 +876,7 @@ Valid.args = {
876
876
  name: "Example",
877
877
  type: "sale",
878
878
  termsAndConditions: "",
879
+ isDefault: true,
879
880
  operationalCost: OPERATIONAL_COST_CUSTOMER,
880
881
  menuRecurrences: [
881
882
  {
@@ -896,6 +897,7 @@ Valid.args = {
896
897
  minSubItems: 0,
897
898
  maxSubItems: 0,
898
899
  quantityType: "recharging",
900
+ isRelyOnPeople: false,
899
901
  isTimeRelated: false,
900
902
  hasTicket: false,
901
903
  allowDeposits: false,
@@ -1110,6 +1112,7 @@ Valid.args = {
1110
1112
  minSubItems: 0,
1111
1113
  maxSubItems: 0,
1112
1114
  quantityType: "recharging",
1115
+ isRelyOnPeople: false,
1113
1116
  isTimeRelated: false,
1114
1117
  hasTicket: false,
1115
1118
  allowDeposits: false,
@@ -11,7 +11,6 @@ import { isEqual } from "lodash";
11
11
  // eslint-disable-next-line max-len
12
12
  import { ProviderBookingManagementSetting } from "@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper";
13
13
  import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
14
- import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
15
14
  import { Dialog, useDialogContext } from "../../modals/dialog";
16
15
  import {
17
16
  ProductSetControl,
@@ -21,7 +20,7 @@ import {
21
20
  import { Step } from "../types";
22
21
  import { ProductSetContextProvider, ProductSetLoadingContext } from "./context";
23
22
  import { SelectItem } from "../../types/generic/SelectItem";
24
- import { checkAvailableTimesErrors, getFilteredTemplates } from "../utils";
23
+ import { getFilteredTemplates } from "../utils";
25
24
 
26
25
  export interface WithIsLoading {
27
26
  isLoading: boolean;
@@ -50,7 +49,6 @@ export interface ProductSetFormProps
50
49
  providerHasBookingManagement?: ProviderBookingManagementSetting["hasBookingManagement"];
51
50
  zones?: Zone[] | null;
52
51
  isCreateAction?: boolean;
53
- workHours?: WorkHour[];
54
52
  }
55
53
 
56
54
  export function ProductSetForm({
@@ -66,7 +64,6 @@ export function ProductSetForm({
66
64
  providerHasBookingManagement,
67
65
  zones,
68
66
  isCreateAction,
69
- workHours,
70
67
  ...shared
71
68
  }: ProductSetFormProps) {
72
69
  const { t } = useTranslation("Design");
@@ -86,15 +83,6 @@ export function ProductSetForm({
86
83
  const { setError, reset } = form;
87
84
  const formValues = form.watch();
88
85
 
89
- const submitHandler = (onSubmit: (values: ProductSetFormValues) => void) => {
90
- return (values: ProductSetFormValues) => {
91
- if (checkAvailableTimesErrors({ values, setError, t })) {
92
- return;
93
- }
94
- onSubmit(values);
95
- };
96
- };
97
-
98
86
  useEffect(() => {
99
87
  if (!defaultValues || isEqual(defaultValues, formValues)) {
100
88
  return;
@@ -139,7 +127,7 @@ export function ProductSetForm({
139
127
  />
140
128
 
141
129
  <FormProvider {...form}>
142
- <Form onSubmit={form.handleSubmit(submitHandler(onSubmitAndRedirect))}>
130
+ <Form onSubmit={form.handleSubmit(onSubmitAndRedirect)}>
143
131
  <ProductSetLoadingContext.Consumer>
144
132
  {({ isLoading: contextIsLoading }) => {
145
133
  return (
@@ -159,8 +147,6 @@ export function ProductSetForm({
159
147
  isLoading={isLoading}
160
148
  isCreateAction={isCreateAction}
161
149
  companyName={companyName}
162
- workHours={workHours}
163
- providerHasBookingManagement={providerHasBookingManagement}
164
150
  />
165
151
  <Row>
166
152
  <Col md={6} sm={12} />
@@ -172,9 +158,7 @@ export function ProductSetForm({
172
158
  {onSubmitNoRedirect && (
173
159
  <Button
174
160
  className="product-set-save-btn mt-5 ml-5 d-no dne d-md-block"
175
- onClick={form.handleSubmit(
176
- submitHandler(onSubmitNoRedirect)
177
- )}
161
+ onClick={form.handleSubmit(onSubmitNoRedirect)}
178
162
  disabled={
179
163
  isLoading || contextIsLoading || !formValues.name
180
164
  }
@@ -14,7 +14,6 @@ import { generateUuid } from "@licklist/core/dist/Services";
14
14
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
15
15
 
16
16
  import { CategoryType } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
17
- import { Zone } from "@licklist/core/dist/DataMapper/Provider/ZoneDataMapper";
18
17
  import { ProductControl, ProductControlProps, ProductSetFormValues } from "..";
19
18
  import { SortableTree } from "../../sortable-tree";
20
19
  import { CreateProductSetItem } from "../item/CreateProductSetItem";
@@ -33,7 +32,6 @@ interface ProductsControlProps extends WithIsLoading {
33
32
  productCategoryIndex: number;
34
33
  hasTicket?: boolean;
35
34
  categoryType: CategoryType;
36
- zones?: Zone[];
37
35
  }
38
36
 
39
37
  const getDefaultProductValue = (sort: number): Product => ({
@@ -76,7 +74,6 @@ export function ProductsControl({
76
74
  productCategoryIndex,
77
75
  hasTicket,
78
76
  categoryType,
79
- zones,
80
77
  }: ProductsControlProps) {
81
78
  const { t } = useTranslation("Design");
82
79
  const form = useFormContext<ProductSetFormValues>();
@@ -92,12 +89,6 @@ export function ProductsControl({
92
89
  getValues,
93
90
  } = form;
94
91
 
95
- const zoneId = watch(
96
- `steps.${stepIndex}.productCategories.${productCategoryIndex}.zoneId`
97
- );
98
-
99
- const catergoryZone = zones?.find((zone) => zone.id === Number(zoneId));
100
-
101
92
  const productControlFieldName =
102
93
  `steps.${stepIndex}.productCategories.${productCategoryIndex}.products` as const;
103
94
 
@@ -254,7 +245,6 @@ export function ProductsControl({
254
245
  onProductNameChange={onChange}
255
246
  hasTicket={hasTicket}
256
247
  categoryType={categoryType}
257
- zoneDuration={catergoryZone?.defaultDuration}
258
248
  />
259
249
  }
260
250
  onDelete={() => onProductRemove(index)}
@@ -113,7 +113,6 @@ export interface ProductControlProps<T>
113
113
  productName: string;
114
114
  hasTicket?: boolean;
115
115
  categoryType?: CategoryType;
116
- zoneDuration?: number;
117
116
  }
118
117
 
119
118
  export function ProductControl<T extends FormValues>({
@@ -127,7 +126,6 @@ export function ProductControl<T extends FormValues>({
127
126
  productName,
128
127
  hasTicket,
129
128
  categoryType,
130
- zoneDuration,
131
129
  }: ProductControlProps<T>) {
132
130
  const {
133
131
  register,
@@ -192,16 +190,6 @@ export function ProductControl<T extends FormValues>({
192
190
  [handleImageUploading]
193
191
  );
194
192
 
195
- const onChangeGameCapacity = (value: number) => {
196
- if (!zoneDuration) {
197
- return;
198
- }
199
- setValue(
200
- `${fieldNamePrefix}.duration` as Path<T>,
201
- (value * zoneDuration) as UnpackNestedValue<PathValue<T, Path<T>>>
202
- );
203
- };
204
-
205
193
  const onImageRemove = useCallback(
206
194
  (id, path) => {
207
195
  handleImageRemove(String(id), path);
@@ -384,14 +372,6 @@ export function ProductControl<T extends FormValues>({
384
372
  <FormNumberInput
385
373
  fieldName={`${fieldNamePrefix}.capacity`}
386
374
  label={t("capacity")}
387
- rules={{
388
- min: {
389
- value: 1,
390
- message: t("Validation:fieldRequired", {
391
- attribute: t("capacity"),
392
- }) as string,
393
- },
394
- }}
395
375
  />
396
376
  </Col>
397
377
  </Row>
@@ -403,11 +383,7 @@ export function ProductControl<T extends FormValues>({
403
383
  <FormNumberInput
404
384
  fieldName={`${fieldNamePrefix}.capacity`}
405
385
  label={t("capacity")}
406
- onChange={onChangeGameCapacity}
407
386
  rules={{
408
- required: t("Validation:fieldRequired", {
409
- attribute: t("capacity"),
410
- }) as string,
411
387
  min: {
412
388
  value: 1,
413
389
  message: t("Validation:fieldRequired", {
@@ -422,13 +398,10 @@ export function ProductControl<T extends FormValues>({
422
398
  fieldName={`${fieldNamePrefix}.duration`}
423
399
  label={t("durationMinutes")}
424
400
  rules={{
425
- required: t("Validation:fieldRequired", {
426
- attribute: t("capacity"),
427
- }) as string,
428
401
  min: {
429
402
  value: 1,
430
403
  message: t("Validation:fieldRequired", {
431
- attribute: t("capacity"),
404
+ attribute: t("duration"),
432
405
  }) as string,
433
406
  },
434
407
  }}
@@ -66,7 +66,7 @@ export const ProductDurationControl = <T,>({
66
66
  },
67
67
  min: {
68
68
  value: 1,
69
- message: t("Validation:fieldMinNumber", {
69
+ message: t("Validation:fieldMin", {
70
70
  attribute: t("duration"),
71
71
  }),
72
72
  },
@@ -26,6 +26,7 @@ const categoryMock: Partial<ProductCategoryControlValues> = {
26
26
  minSubItems: 0,
27
27
  maxSubItems: 0,
28
28
  quantityType: QUANTITY_TYPE_STANDARD,
29
+ isRelyOnPeople: false,
29
30
  isTimeRelated: false,
30
31
  hasTicket: false,
31
32
  allowDeposits: false,