@licklist/design 0.44.485-dev.6 → 0.44.485-dev.61

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 (605) hide show
  1. package/dist/affiliate/types/index.d.ts +1 -1
  2. package/dist/affiliate/types/index.d.ts.map +1 -1
  3. package/dist/auth/Login/LoginComponent.d.ts +1 -1
  4. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  5. package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
  6. package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
  7. package/dist/auth/Register/RegisterComponent.d.ts +1 -1
  8. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  9. package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
  10. package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
  11. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
  12. package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
  13. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
  14. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  15. package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
  16. package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
  17. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
  18. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  19. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
  20. package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
  21. package/dist/customers/components/filter/CustomerFilter.d.ts +1 -1
  22. package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
  23. package/dist/events/edit-event-modal/IntervalInput.d.ts +4 -1
  24. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  25. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  26. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  27. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
  28. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  29. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
  30. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  31. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  32. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
  33. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  34. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
  35. package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
  36. package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
  37. package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -2
  38. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  39. package/dist/events/event-venue-map/EventVenueMap.js +1 -1
  40. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
  41. package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
  42. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
  43. package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
  44. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
  45. package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
  46. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
  47. package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
  48. package/dist/events/event-venue-map/components/MapPoint/MapPoint.js +1 -1
  49. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
  50. package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
  51. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
  52. package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
  53. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
  54. package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
  55. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
  56. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
  57. package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.js +1 -1
  58. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +9 -0
  59. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -0
  60. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +1 -0
  61. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +2 -0
  62. package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -0
  63. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -2
  64. package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
  65. package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
  66. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
  67. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  68. package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
  69. package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
  70. package/dist/events/event-venue-map/types/index.d.ts +5 -5
  71. package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
  72. package/dist/events/event-venue-map/utils/index.d.ts +3 -3
  73. package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
  74. package/dist/file-upload/FilePreview.d.ts +2 -2
  75. package/dist/file-upload/FilePreview.d.ts.map +1 -1
  76. package/dist/file-upload/FileUpload.d.ts +1 -1
  77. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  78. package/dist/header/Header.d.ts +1 -1
  79. package/dist/header/Header.d.ts.map +1 -1
  80. package/dist/help/example/Example.d.ts +4 -4
  81. package/dist/help/example/Example.d.ts.map +1 -1
  82. package/dist/help/popover/HelpPopover.d.ts +1 -1
  83. package/dist/help/popover/HelpPopover.d.ts.map +1 -1
  84. package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
  85. package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
  86. package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
  87. package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
  88. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
  89. package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
  90. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
  91. package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
  92. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
  93. package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  94. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
  95. package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
  96. package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
  97. package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
  98. package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
  99. package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
  100. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +5 -6
  101. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
  102. package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
  103. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
  104. package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
  105. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
  106. package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
  107. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
  108. package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
  109. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
  110. package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
  111. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +5 -1
  112. package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
  113. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  114. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  115. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
  116. package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
  117. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
  118. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  119. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
  120. package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
  121. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
  122. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
  123. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
  124. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  125. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -1
  126. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  127. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  128. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
  129. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
  130. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +3 -1
  131. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
  132. package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
  133. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +4 -2
  134. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
  135. package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
  136. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +4 -2
  137. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
  138. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
  139. package/dist/iframe/order-process/components/Category/Category.d.ts +2 -1
  140. package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
  141. package/dist/iframe/order-process/components/Category/Category.js +1 -1
  142. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +2 -1
  143. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  144. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  145. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts +1 -0
  146. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  147. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
  148. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  149. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  150. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
  151. package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
  152. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
  153. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
  154. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +2 -1
  155. package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
  156. package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
  157. package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
  158. package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
  159. package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
  160. package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
  161. package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
  162. package/dist/iframe/page/Page.d.ts +1 -1
  163. package/dist/iframe/page/Page.d.ts.map +1 -1
  164. package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
  165. package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
  166. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
  167. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  168. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
  169. package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
  170. package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
  171. package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
  172. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
  173. package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
  174. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +5 -0
  175. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  176. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
  177. package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
  178. package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
  179. package/dist/iframe/payment/order-items-table/utils/index.d.ts +6 -1
  180. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  181. package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
  182. package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
  183. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  184. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  185. package/dist/iframe/payment/payment-page/PaymentTimer.d.ts +1 -0
  186. package/dist/iframe/payment/payment-page/PaymentTimer.d.ts.map +1 -1
  187. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  188. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
  189. package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
  190. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +5 -3
  191. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
  192. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  193. package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
  194. package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
  195. package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
  196. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  197. package/dist/index.d.ts +1 -0
  198. package/dist/index.d.ts.map +1 -1
  199. package/dist/index.js +1 -1
  200. package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
  201. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  202. package/dist/notification/email-template/card/EmailTemplateCard.d.ts +4 -1
  203. package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
  204. package/dist/notification/email-template/card/EmailTemplateCard.js +1 -1
  205. package/dist/notification/email-template/control/EmailTemplateControl.d.ts +3 -0
  206. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  207. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  208. package/dist/notification/email-template/form/EmailTemplateForm.d.ts +7 -1
  209. package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
  210. package/dist/notification/email-template/form/EmailTemplateForm.js +1 -1
  211. package/dist/notification/hooks/useTranslatedParameters.d.ts +7 -0
  212. package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -0
  213. package/dist/notification/hooks/useTranslatedParameters.js +1 -0
  214. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts +4 -1
  215. package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
  216. package/dist/notification/sms-template/card/SmsTemplateCard.js +1 -1
  217. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +6 -1
  218. package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
  219. package/dist/notification/sms-template/control/SmsTemplateControl.js +1 -1
  220. package/dist/notification/sms-template/form/SmsTemplateForm.d.ts +5 -1
  221. package/dist/notification/sms-template/form/SmsTemplateForm.d.ts.map +1 -1
  222. package/dist/notification/sms-template/form/SmsTemplateForm.js +1 -1
  223. package/dist/product-set/control/ProductSetControl.d.ts +16 -4
  224. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  225. package/dist/product-set/control/ProductSetControl.js +1 -1
  226. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
  227. package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
  228. package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
  229. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  230. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  231. package/dist/product-set/form/ProductCategoriesControl.js +1 -1
  232. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  233. package/dist/product-set/form/ProductSetForm.js +1 -1
  234. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  235. package/dist/product-set/form/ProductsControl.js +1 -1
  236. package/dist/product-set/form/StepsControl.d.ts.map +1 -1
  237. package/dist/product-set/form/StepsControl.js +1 -1
  238. package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
  239. package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
  240. package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
  241. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  242. package/dist/product-set/form/context.d.ts +1 -1
  243. package/dist/product-set/form/context.d.ts.map +1 -1
  244. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +11 -0
  245. package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -0
  246. package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -0
  247. package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
  248. package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
  249. package/dist/product-set/product/ProductControl.d.ts +1 -0
  250. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  251. package/dist/product-set/product/ProductControl.js +1 -1
  252. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
  253. package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
  254. package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
  255. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  256. package/dist/product-set/product/price/ProductPriceControl.js +1 -1
  257. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  258. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -1
  259. package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
  260. package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
  261. package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
  262. package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
  263. package/dist/product-set/types/index.d.ts +5 -5
  264. package/dist/product-set/types/index.d.ts.map +1 -1
  265. package/dist/product-set/utils/index.d.ts +4 -0
  266. package/dist/product-set/utils/index.d.ts.map +1 -1
  267. package/dist/product-set/utils/index.js +1 -1
  268. package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
  269. package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
  270. package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
  271. package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
  272. package/dist/provider/categories-input/index.d.ts +1 -1
  273. package/dist/provider/categories-input/index.d.ts.map +1 -1
  274. package/dist/provider/company/user-form/UserForm.d.ts +2 -2
  275. package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
  276. package/dist/provider/constants.d.ts +2 -0
  277. package/dist/provider/constants.d.ts.map +1 -0
  278. package/dist/provider/constants.js +1 -0
  279. package/dist/provider/location-input/index.d.ts +1 -1
  280. package/dist/provider/location-input/index.d.ts.map +1 -1
  281. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
  282. package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
  283. package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
  284. package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
  285. package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
  286. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
  287. package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
  288. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
  289. package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
  290. package/dist/provider/venue-form/VenueForm.d.ts +1 -1
  291. package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
  292. package/dist/provider/working-hours-input/index.d.ts +1 -1
  293. package/dist/provider/working-hours-input/index.d.ts.map +1 -1
  294. package/dist/recurrence-input/utils.d.ts +2 -2
  295. package/dist/recurrence-input/utils.d.ts.map +1 -1
  296. package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
  297. package/dist/recurring-date-picker-input/utils.d.ts +2 -2
  298. package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
  299. package/dist/resource/form/ResourceForm.d.ts +2 -2
  300. package/dist/resource/form/ResourceForm.d.ts.map +1 -1
  301. package/dist/resource/form/components/CapacityControl.d.ts +1 -1
  302. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  303. package/dist/resource/form/components/NameControl.d.ts +1 -1
  304. package/dist/resource/form/components/NameControl.d.ts.map +1 -1
  305. package/dist/resource/form/components/SortControl.d.ts +1 -1
  306. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  307. package/dist/resource/form/components/ZoneControl.d.ts +1 -1
  308. package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
  309. package/dist/sales/booking/filter/BookingFilter.d.ts +5 -2
  310. package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
  311. package/dist/sales/booking/filter/BookingFilter.js +1 -1
  312. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +3 -2
  313. package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
  314. package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
  315. package/dist/sales/booking/filter/components/MainFilterSection.d.ts +2 -2
  316. package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
  317. package/dist/sales/booking/filter/components/MainFilterSection.js +1 -1
  318. package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
  319. package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
  320. package/dist/sales/booking/filter/components/SearchingForSection.d.ts +8 -1
  321. package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +1 -1
  322. package/dist/sales/booking/filter/components/SearchingForSection.js +1 -1
  323. package/dist/sales/booking/results/BookingResults.d.ts +1 -1
  324. package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
  325. package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
  326. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  327. package/dist/sales/booking/tabs/BookingTabs.d.ts +3 -2
  328. package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
  329. package/dist/sales/booking/tabs/BookingTabs.js +1 -1
  330. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  331. package/dist/sales/coupon/control/CouponFormControl.js +1 -1
  332. package/dist/sales/filters/SaleFilters.d.ts +2 -3
  333. package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
  334. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +1 -1
  335. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
  336. package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
  337. package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
  338. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
  339. package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
  340. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
  341. package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
  342. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
  343. package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
  344. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
  345. package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
  346. package/dist/sales/manual-booking/create-user/CreateUser.js +1 -1
  347. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
  348. package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
  349. package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
  350. package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
  351. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
  352. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  353. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
  354. package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
  355. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
  356. package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
  357. package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
  358. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
  359. package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
  360. package/dist/sales/notes/NotesTable.d.ts +1 -1
  361. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  362. package/dist/sales/notes/NotesTableRow.d.ts +1 -1
  363. package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
  364. package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
  365. package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
  366. package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
  367. package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
  368. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
  369. package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
  370. package/dist/sales/payment-form/types.d.ts +2 -2
  371. package/dist/sales/payment-form/types.d.ts.map +1 -1
  372. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
  373. package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
  374. package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
  375. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  376. package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
  377. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  378. package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
  379. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  380. package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
  381. package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
  382. package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
  383. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  384. package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
  385. package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
  386. package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
  387. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  388. package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts.map +1 -1
  389. package/dist/setting/dashboard/snippets/control/SnippetControl.js +1 -1
  390. package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts +2 -2
  391. package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts.map +1 -1
  392. package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.js +1 -1
  393. package/dist/setting/system/SystemSettingForm.d.ts +1 -1
  394. package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
  395. package/dist/snippet/snippet-template/SnippetTemplate.js +1 -1
  396. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
  397. package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
  398. package/dist/snippet/snippet-template/form/SnippetTemplateForm.js +1 -1
  399. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  400. package/dist/sortable-list/SortableList.d.ts +4 -4
  401. package/dist/sortable-list/SortableList.d.ts.map +1 -1
  402. package/dist/sortable-tree/SortableTreeItem.d.ts +5 -2
  403. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  404. package/dist/sortable-tree/SortableTreeItem.js +1 -1
  405. package/dist/static/Icon.d.ts +1 -1
  406. package/dist/static/Icon.d.ts.map +1 -1
  407. package/dist/static/date-range-input/DateRangeInput.d.ts +3 -2
  408. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  409. package/dist/static/date-range-input/DateRangeInput.js +1 -1
  410. package/dist/static/images/DefaultUserImage.d.ts +1 -1
  411. package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
  412. package/dist/static/loader/ButtonLoader.d.ts +1 -1
  413. package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
  414. package/dist/static/loader/PaymentLoader.d.ts +1 -1
  415. package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
  416. package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
  417. package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
  418. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
  419. package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
  420. package/dist/static/tabs/Tab.d.ts +1 -1
  421. package/dist/static/tabs/Tab.d.ts.map +1 -1
  422. package/dist/static/tabs/Tabs.d.ts +1 -1
  423. package/dist/static/tabs/Tabs.d.ts.map +1 -1
  424. package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
  425. package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
  426. package/dist/striped-static-table/StripedStaticTable.js +1 -0
  427. package/dist/striped-static-table/index.d.ts +2 -0
  428. package/dist/striped-static-table/index.d.ts.map +1 -0
  429. package/dist/styles/events/EventStatisticModal.scss +0 -37
  430. package/dist/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
  431. package/dist/styles/iframe-page/PageBody.scss +2 -0
  432. package/dist/styles/packages.scss +1 -0
  433. package/dist/styles/sales/BookingFilter.scss +43 -11
  434. package/dist/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
  435. package/dist/styles/static/DateRangeInput.scss +5 -1
  436. package/dist/styles/striped-static-table/_index.scss +33 -0
  437. package/dist/table/FilterHelperComponent.d.ts.map +1 -1
  438. package/dist/table/FilterHelperComponent.js +1 -1
  439. package/dist/table/MenuButton.d.ts +1 -1
  440. package/dist/table/MenuButton.d.ts.map +1 -1
  441. package/dist/table/ReactTableHelperComponent.d.ts +2 -2
  442. package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
  443. package/dist/table/StaticTable.d.ts +5 -4
  444. package/dist/table/StaticTable.d.ts.map +1 -1
  445. package/dist/table/StaticTable.js +1 -1
  446. package/dist/table/types.d.ts +5 -5
  447. package/dist/table/types.d.ts.map +1 -1
  448. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
  449. package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
  450. package/dist/typeahead/Typeahead.d.ts +6 -12
  451. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  452. package/dist/typeahead/Typeahead.js +1 -1
  453. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
  454. package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
  455. package/dist/types/categories.d.ts +2 -2
  456. package/dist/types/categories.d.ts.map +1 -1
  457. package/dist/types/currency.d.ts +1 -1
  458. package/dist/types/currency.d.ts.map +1 -1
  459. package/dist/types/generic/SelectItem.d.ts +1 -1
  460. package/dist/types/generic/SelectItem.d.ts.map +1 -1
  461. package/dist/types/iframe.d.ts +4 -2
  462. package/dist/types/iframe.d.ts.map +1 -1
  463. package/dist/types/provider-links.d.ts +2 -2
  464. package/dist/types/provider-links.d.ts.map +1 -1
  465. package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
  466. package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
  467. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
  468. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  469. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
  470. package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
  471. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
  472. package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
  473. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
  474. package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
  475. package/dist/venue-map-sets/form/types/index.d.ts +4 -4
  476. package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
  477. package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
  478. package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
  479. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
  480. package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
  481. package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
  482. package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
  483. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  484. package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  485. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
  486. package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
  487. package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
  488. package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
  489. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
  490. package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
  491. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
  492. package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
  493. package/dist/zone/form/ZoneForm.d.ts +2 -2
  494. package/dist/zone/form/ZoneForm.d.ts.map +1 -1
  495. package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
  496. package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
  497. package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
  498. package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
  499. package/dist/zone/form/components/NameControl.d.ts +1 -1
  500. package/dist/zone/form/components/NameControl.d.ts.map +1 -1
  501. package/dist/zone/form/components/SortControl.d.ts +1 -1
  502. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  503. package/dist/zone/form/components/ZoneControl.d.ts +1 -1
  504. package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
  505. package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
  506. package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
  507. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
  508. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  509. package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
  510. package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
  511. package/package.json +4 -4
  512. package/src/events/edit-event-modal/IntervalInput.tsx +21 -1
  513. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -0
  514. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
  515. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +6 -4
  516. package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
  517. package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
  518. package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +4 -2
  519. package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
  520. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +68 -0
  521. package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
  522. package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
  523. package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
  524. package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
  525. package/src/iframe/order-process/OrderProcess.stories.tsx +3 -2
  526. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
  527. package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
  528. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
  529. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
  530. package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
  531. package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
  532. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
  533. package/src/iframe/order-process/components/Category/Category.tsx +3 -0
  534. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
  535. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
  536. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
  537. package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
  538. package/src/iframe/order-process/components/Timer/Timer.stories.tsx +1 -1
  539. package/src/iframe/order-process/components/Timer/utils/index.ts +4 -4
  540. package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
  541. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
  542. package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
  543. package/src/iframe/payment/payment-page/PaymentPage.tsx +46 -6
  544. package/src/iframe/payment/payment-page/PaymentTimer.tsx +31 -6
  545. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
  546. package/src/index.ts +1 -0
  547. package/src/notification/email-template/card/EmailTemplateCard.stories.tsx +4 -2
  548. package/src/notification/email-template/card/EmailTemplateCard.tsx +15 -3
  549. package/src/notification/email-template/control/EmailTemplateControl.tsx +90 -6
  550. package/src/notification/email-template/form/EmailTemplateForm.stories.tsx +34 -0
  551. package/src/notification/email-template/form/EmailTemplateForm.tsx +23 -5
  552. package/src/notification/hooks/useTranslatedParameters.ts +27 -0
  553. package/src/notification/sms-template/card/SmsTemplateCard.stories.tsx +3 -1
  554. package/src/notification/sms-template/card/SmsTemplateCard.tsx +13 -3
  555. package/src/notification/sms-template/control/SmsTemplateControl.tsx +40 -2
  556. package/src/notification/sms-template/form/SmsTemplateForm.stories.tsx +28 -0
  557. package/src/notification/sms-template/form/SmsTemplateForm.tsx +6 -1
  558. package/src/product-set/control/ProductSetControl.tsx +69 -45
  559. package/src/product-set/form/ProductCategoriesControl.tsx +9 -0
  560. package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
  561. package/src/product-set/form/ProductSetForm.tsx +11 -0
  562. package/src/product-set/form/ProductsControl.tsx +30 -1
  563. package/src/product-set/form/StepsControl.tsx +31 -3
  564. package/src/product-set/hooks/useSortableTreeFunctions.ts +37 -0
  565. package/src/product-set/product/ProductControl.tsx +28 -14
  566. package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
  567. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +33 -14
  568. package/src/product-set/utils/index.ts +28 -0
  569. package/src/provider/constants.ts +1 -0
  570. package/src/provider/provider-details-input/ProviderDetailsInput.tsx +17 -3
  571. package/src/sales/booking/filter/BookingFilter.stories.tsx +29 -0
  572. package/src/sales/booking/filter/BookingFilter.tsx +11 -2
  573. package/src/sales/booking/filter/components/AdditionalFIlterSection.tsx +64 -12
  574. package/src/sales/booking/filter/components/MainFilterSection.tsx +4 -1
  575. package/src/sales/booking/filter/components/SearchingForSection.tsx +37 -3
  576. package/src/sales/booking/tabs/BookingTabs.tsx +4 -3
  577. package/src/sales/coupon/control/CouponFormControl.tsx +2 -0
  578. package/src/sales/filters/SaleFilter.stories.tsx +1 -1
  579. package/src/sales/filters/SaleFilters.tsx +2 -2
  580. package/src/sales/manual-booking/select-menu/SelectMenu.tsx +3 -1
  581. package/src/setting/dashboard/snippets/control/SnippetControl.tsx +11 -13
  582. package/src/setting/dashboard/snippets/form/SnippetForm.tsx +2 -2
  583. package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.tsx +1 -1
  584. package/src/snippet/snippet-template/SnippetTemplate.tsx +1 -1
  585. package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +10 -10
  586. package/src/snippet/snippet-template/preview/Preview.tsx +4 -4
  587. package/src/sortable-tree/SortableTreeItem.tsx +27 -6
  588. package/src/static/date-range-input/DateRangeInput.tsx +3 -0
  589. package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
  590. package/src/striped-static-table/StripedStaticTable.tsx +63 -0
  591. package/src/striped-static-table/index.ts +1 -0
  592. package/src/styles/events/EventStatisticModal.scss +0 -37
  593. package/src/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
  594. package/src/styles/iframe-page/PageBody.scss +2 -0
  595. package/src/styles/packages.scss +1 -0
  596. package/src/styles/sales/BookingFilter.scss +43 -11
  597. package/src/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
  598. package/src/styles/static/DateRangeInput.scss +5 -1
  599. package/src/styles/striped-static-table/_index.scss +33 -0
  600. package/src/table/FilterHelperComponent.tsx +1 -0
  601. package/src/table/StaticTable.tsx +14 -8
  602. package/src/typeahead/Typeahead.stories.tsx +9 -6
  603. package/src/typeahead/Typeahead.tsx +19 -12
  604. package/src/types/iframe.ts +2 -0
  605. package/tests/Snippets/Snippets.test.tsx +5 -5
@@ -9,6 +9,8 @@ import { BookingSummary, BookingSummaryFooter } from "../../order-process";
9
9
  import { PaymentStatusHeader } from "../payment-status-header/PaymentStatusHeader";
10
10
  import { SummaryTotalBlock } from "../../order-process/components/BookingSummary/components/SummaryTotal";
11
11
  import { BookingSummaryProps } from "../../order-process/components/BookingSummary/types";
12
+ import { PaymentMetadata } from "../payment-page/PaymentPage";
13
+ import { cartSumByOrderProducts } from "../../order-process/components/BookingSummary/utils";
12
14
 
13
15
  export const ORDER_STATUS_FAILED = "failed";
14
16
  export const ORDER_STATUS_SUCCESS = "success";
@@ -23,7 +25,6 @@ interface PaymentStatusComponentProps {
23
25
  onCloseWindow: () => void;
24
26
  onBack?: () => void;
25
27
  onTryAgain?: () => void;
26
- totalAmount?: number;
27
28
  isLoading?: boolean;
28
29
  status: OrderStatusPrefix;
29
30
  isAppUsingInIframe?: boolean;
@@ -31,6 +32,8 @@ interface PaymentStatusComponentProps {
31
32
  EventCardComponent?: ReactNode;
32
33
  showCloseButton?: boolean;
33
34
  email?: string;
35
+ totalAmount?: number;
36
+ paymentMetadata?: PaymentMetadata;
34
37
  }
35
38
 
36
39
  // @TODO In future think, how to reuse this component in Iframe Pending, Success and Failed Pages
@@ -38,7 +41,6 @@ export const PaymentStatusPage = ({
38
41
  onCloseWindow,
39
42
  onBack,
40
43
  onTryAgain,
41
- totalAmount,
42
44
  isLoading,
43
45
  status,
44
46
  isAppUsingInIframe,
@@ -46,6 +48,8 @@ export const PaymentStatusPage = ({
46
48
  EventCardComponent,
47
49
  showCloseButton = false,
48
50
  email,
51
+ totalAmount = 0,
52
+ paymentMetadata,
49
53
  }: PaymentStatusComponentProps) => {
50
54
  const { t } = useTranslation("Design");
51
55
 
@@ -65,6 +69,22 @@ export const PaymentStatusPage = ({
65
69
  if (isLoading) {
66
70
  return <LoaderIndicator isLoaded={false} />;
67
71
  }
72
+
73
+ const orderTotalAmounByFormValues = cartSumByOrderProducts(
74
+ bookingSummaryProps && bookingSummaryProps?.formValues
75
+ ? Object.values(bookingSummaryProps?.formValues)
76
+ : undefined
77
+ );
78
+
79
+ // User can fill promocode only in iframe appcliation.
80
+ // It didn't possible via payment link. This check will
81
+ // be applied when there are no metadata and in case when
82
+ // orderValues sum is greater than amount in order.
83
+ // For payment status page booking summary props can be empty
84
+ // so we should also check for them
85
+ const isCalculatedAmountGreaterThanOrderAmount =
86
+ bookingSummaryProps && orderTotalAmounByFormValues > totalAmount;
87
+
68
88
  return (
69
89
  <Page
70
90
  className="payment-status-page"
@@ -98,16 +118,50 @@ export const PaymentStatusPage = ({
98
118
  <PageBody.RightBlock
99
119
  bottomBlock={
100
120
  <BookingSummaryFooter showButton={false}>
101
- {bookingSummaryProps?.formValues ? (
102
- <BookingSummary.SummaryTotal
103
- formValues={bookingSummaryProps?.formValues}
104
- />
105
- ) : (
106
- <SummaryTotalBlock
107
- label={t("total")}
108
- amount={totalAmount || 0}
109
- />
110
- )}
121
+ <div className="d-flex flex-column justify-content-between">
122
+ {paymentMetadata ? (
123
+ <>
124
+ <SummaryTotalBlock
125
+ label={t("total")}
126
+ amount={paymentMetadata.total || 0}
127
+ />
128
+ <SummaryTotalBlock
129
+ label={t("paidSum")}
130
+ amount={paymentMetadata.paid || 0}
131
+ />
132
+ <SummaryTotalBlock
133
+ label={t("remaining")}
134
+ amount={
135
+ paymentMetadata.total - paymentMetadata.paid || 0
136
+ }
137
+ />
138
+ </>
139
+ ) : (
140
+ <>
141
+ {isCalculatedAmountGreaterThanOrderAmount && (
142
+ <SummaryTotalBlock
143
+ label={t("total")}
144
+ amount={
145
+ orderTotalAmounByFormValues +
146
+ (bookingSummaryProps?.transactionFee || 0)
147
+ }
148
+ />
149
+ )}
150
+
151
+ <SummaryTotalBlock
152
+ label={t(
153
+ isCalculatedAmountGreaterThanOrderAmount
154
+ ? "totalWithDiscount"
155
+ : "total"
156
+ )}
157
+ amount={
158
+ totalAmount +
159
+ (bookingSummaryProps?.transactionFee || 0)
160
+ }
161
+ />
162
+ </>
163
+ )}
164
+ </div>
111
165
  </BookingSummaryFooter>
112
166
  }
113
167
  >
package/src/index.ts CHANGED
@@ -33,3 +33,4 @@ export * from "./zone";
33
33
  export * from "./resource";
34
34
  export * from "./virtualized";
35
35
  export * from "./customers";
36
+ export * from "./striped-static-table";
@@ -14,8 +14,10 @@ export const Default: Story<EmailTemplateCardProps> = (args) => (
14
14
 
15
15
  Default.args = {
16
16
  href: "#",
17
- name: "Default Email Template",
18
- subject: "Confirmation",
17
+ name: "Default Email Template with very long name",
18
+ subject: "Confirmation with looong subject text",
19
19
  hasPermission: true,
20
20
  isDefault: true,
21
+ templateType: "confirmation",
22
+ isActive: true,
21
23
  };
@@ -2,16 +2,19 @@ import React from "react";
2
2
  import { Link } from "react-router-dom";
3
3
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
4
4
  import { useTranslation } from "react-i18next";
5
-
5
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
6
6
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
7
7
  import { Icon } from "../../../static";
8
+ import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
8
9
 
9
10
  export interface EmailTemplateCardProps extends HasPermissionProp {
10
11
  name: string;
11
12
  subject: string;
12
13
  href: string;
13
14
  isDefault: boolean;
15
+ isActive: boolean;
14
16
  onRemove: () => void;
17
+ type: NotificationType;
15
18
  }
16
19
 
17
20
  export function EmailTemplateCard({
@@ -20,10 +23,14 @@ export function EmailTemplateCard({
20
23
  subject,
21
24
  onRemove,
22
25
  isDefault = false,
26
+ isActive = false,
23
27
  hasPermission = true,
28
+ type,
24
29
  }: EmailTemplateCardProps) {
25
30
  const { t } = useTranslation(["Design"]);
26
31
 
32
+ const texts = useTranslatedParameters({ isDefault, isActive });
33
+
27
34
  return (
28
35
  <>
29
36
  <div className="snippet-template-card">
@@ -53,8 +60,13 @@ export function EmailTemplateCard({
53
60
  )}
54
61
  </div>
55
62
  <div className={`mt-${isDefault ? "3" : "4"}`}>
56
- {Boolean(isDefault) && <p className="mb-1">{t("Design:default")}</p>}
57
- <span>{subject}</span>
63
+ {!!texts.length && <p className="mb-1">{texts}</p>}
64
+ <div className="d-flex flex-column">
65
+ <span className="snippet-template-card-subject">{subject}</span>
66
+ <p className="mb-0">
67
+ {t(`Design:type`)}:&nbsp;{t(`Design:${type}`)}
68
+ </p>
69
+ </div>
58
70
  </div>
59
71
  </div>
60
72
  </>
@@ -1,4 +1,3 @@
1
- /* eslint-disable react/display-name */
2
1
  import React, { useState, useEffect } from "react";
3
2
  import { Col, Row, Form } from "react-bootstrap";
4
3
  import { useFormContext } from "react-hook-form";
@@ -16,6 +15,7 @@ import {
16
15
  PERMANENT_IMAGE_TYPE_TEMP,
17
16
  } from "@licklist/core/dist/DataMapper/Media/UploadPermanentImageDataMapper";
18
17
 
18
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
19
19
  import { FileUpload } from "../../../file-upload";
20
20
  import { EmailTemplateValues } from "../form";
21
21
 
@@ -26,6 +26,8 @@ export interface EmailTemplateControlProps {
26
26
  setIsLoading: (isLoading: boolean) => void;
27
27
  meta: string;
28
28
  defaultAttachments?: Attachment[];
29
+ notificationTypes?: NotificationType[];
30
+ getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
29
31
  }
30
32
 
31
33
  export const EmailTemplateControl = React.forwardRef(
@@ -35,6 +37,8 @@ export const EmailTemplateControl = React.forwardRef(
35
37
  meta,
36
38
  options = [],
37
39
  defaultAttachments = [],
40
+ notificationTypes = [],
41
+ getDefaultTemplateMetaByType,
38
42
  }: EmailTemplateControlProps,
39
43
  ref: any
40
44
  ) => {
@@ -48,6 +52,8 @@ export const EmailTemplateControl = React.forwardRef(
48
52
  setValue,
49
53
  formState: { errors },
50
54
  getValues,
55
+ watch,
56
+ reset,
51
57
  } = useFormContext<EmailTemplateValues>();
52
58
  const [isIncludePDF, setIsIncludePDF] = useState(false);
53
59
 
@@ -64,12 +70,29 @@ export const EmailTemplateControl = React.forwardRef(
64
70
  handlePermanentImageUploading,
65
71
  } = usePermanentImage();
66
72
 
73
+ const type = watch("type");
74
+ const id = watch("id");
75
+
76
+ useEffect(() => {
77
+ if (id || !getDefaultTemplateMetaByType || !type) return;
78
+
79
+ const formValues = getValues();
80
+
81
+ const nextMeta = getDefaultTemplateMetaByType(type);
82
+
83
+ reset({ ...formValues, meta: nextMeta });
84
+
85
+ ref.current?.loadDesign(JSON.parse(nextMeta));
86
+ // eslint-disable-next-line react-hooks/exhaustive-deps
87
+ }, [type]);
88
+
67
89
  useEffect(() => {
68
90
  setValue("attachmentMetadata", attachments);
69
91
  }, [attachments, setValue]);
70
92
 
71
93
  useEffect(() => {
72
94
  if (!permanentImages.length) return;
95
+
73
96
  setValue("imagesMetadata", permanentImages);
74
97
  }, [permanentImages, setValue]);
75
98
 
@@ -85,13 +108,15 @@ export const EmailTemplateControl = React.forwardRef(
85
108
  }, [defaultAttachments]);
86
109
 
87
110
  useEffect(() => {
88
- if (!options.length) return;
111
+ if (!options?.length) return;
112
+
89
113
  const fileSelectorOptions = options.find(
90
114
  (option) => option.type === OPTION_TYPE.files_selector
91
115
  );
92
- if (fileSelectorOptions.selectedValue) {
93
- setIsIncludePDF(true);
94
- }
116
+
117
+ if (!fileSelectorOptions?.selectedValue) return;
118
+
119
+ setIsIncludePDF(true);
95
120
  }, [options]);
96
121
 
97
122
  const handleDeleteEmailImage = (content) => {
@@ -175,6 +200,42 @@ export const EmailTemplateControl = React.forwardRef(
175
200
 
176
201
  return (
177
202
  <>
203
+ <Row>
204
+ <Form.Group
205
+ as={Col}
206
+ controlId="type"
207
+ xs
208
+ sm={12}
209
+ md={8}
210
+ lg={10}
211
+ xl={12}
212
+ >
213
+ <Form.Label>{t("type")}</Form.Label>
214
+ <Form.Control
215
+ as="select"
216
+ {...register("type", {
217
+ required: t("Validation:fieldRequired", {
218
+ attribute: t("type"),
219
+ }) as string,
220
+ })}
221
+ name="type"
222
+ required
223
+ isInvalid={Boolean(errors.type)}
224
+ placeholder={t("Design:type")}
225
+ disabled={!!id}
226
+ >
227
+ <option value="">{t("Design:choose")}</option>
228
+ {notificationTypes.map((key) => (
229
+ <option key={key} value={key}>
230
+ {t(`Design:${key}`)}
231
+ </option>
232
+ ))}
233
+ </Form.Control>
234
+ <Form.Control.Feedback type="invalid">
235
+ {errors.type?.message}
236
+ </Form.Control.Feedback>
237
+ </Form.Group>
238
+ </Row>
178
239
  <Row>
179
240
  <Form.Group
180
241
  as={Col}
@@ -279,7 +340,7 @@ export const EmailTemplateControl = React.forwardRef(
279
340
  isLoading={isAttachmentLoading}
280
341
  />
281
342
  </Row>
282
- {options.length > 0 && (
343
+ {options?.length > 0 && (
283
344
  <Row>
284
345
  <Form.Group as={Col}>
285
346
  {options.map((option) => {
@@ -347,6 +408,27 @@ export const EmailTemplateControl = React.forwardRef(
347
408
  </>
348
409
  );
349
410
  }
411
+
412
+ if (option.type === OPTION_TYPE.days_reminder) {
413
+ return (
414
+ <>
415
+ <Form.Label className="mt-4">
416
+ {t(`Design:${option.name}`)}
417
+ </Form.Label>
418
+ <Form.Control
419
+ {...register(
420
+ `templateOptionValues.${option?.id}.value` as any
421
+ )}
422
+ type="number"
423
+ placeholder={t(`Design:${option.name}`)}
424
+ id={option.name + option.id}
425
+ defaultValue={option.selectedValue || ""}
426
+ />
427
+ <Form.Text>{option.description}</Form.Text>
428
+ </>
429
+ );
430
+ }
431
+
350
432
  return null;
351
433
  })}
352
434
  </Form.Group>
@@ -356,3 +438,5 @@ export const EmailTemplateControl = React.forwardRef(
356
438
  );
357
439
  }
358
440
  );
441
+
442
+ EmailTemplateControl.displayName = "EmailTemplateControl";
@@ -185,6 +185,7 @@ Default.args = {
185
185
  notificationType: "confirmation",
186
186
  type: "checkbox",
187
187
  defaultValue: "true",
188
+ descrption: "",
188
189
  },
189
190
  {
190
191
  id: 12,
@@ -192,6 +193,7 @@ Default.args = {
192
193
  notificationType: "confirmation",
193
194
  type: "checkbox",
194
195
  defaultValue: "false",
196
+ descrption: "",
195
197
  },
196
198
  {
197
199
  selectedValue: "invoice",
@@ -201,6 +203,17 @@ Default.args = {
201
203
  type: "files_selector",
202
204
  defaultValue:
203
205
  '{"confirmation":"Confirmation / Function Sheet","invoice":"Invoice"}',
206
+ descrption: "",
207
+ },
208
+ {
209
+ id: 13,
210
+ name: "days_reminder",
211
+ notificationType: "confirmation",
212
+ type: "days_reminder",
213
+ defaultValue: "",
214
+ description: `N.B. Add positive integer for days before the event, or negative for days after the event.
215
+ E.g. if you want this remainder to be send 2 days before the event, enter 2.
216
+ If you want this to be send 3 days after the event enter -3.`,
204
217
  },
205
218
  ],
206
219
  defaultValues: {
@@ -219,6 +232,13 @@ Default.args = {
219
232
  attachableType: "mail",
220
233
  },
221
234
  ],
235
+ type: "confirmation",
236
+ notificationTypes: [
237
+ "confirmation",
238
+ "paymentLink",
239
+ "afterBooking",
240
+ "preliminaryMail",
241
+ ],
222
242
  },
223
243
  };
224
244
 
@@ -248,10 +268,24 @@ ServerErrors.args = {
248
268
  body: "",
249
269
  meta: JSON.stringify(DefaultEmailTemplate),
250
270
  },
271
+ type: "confirmation",
272
+ notificationTypes: [
273
+ "confirmation",
274
+ "paymentLink",
275
+ "afterBooking",
276
+ "preliminaryMail",
277
+ ],
251
278
  };
252
279
 
253
280
  Empty.args = {
254
281
  onSubmit: (data) => console.log(data),
255
282
  isLoading: true,
256
283
  placeholders: [],
284
+ type: "confirmation",
285
+ notificationTypes: [
286
+ "confirmation",
287
+ "paymentLink",
288
+ "afterBooking",
289
+ "preliminaryMail",
290
+ ],
257
291
  };
@@ -13,12 +13,13 @@ import { ServerError } from "@licklist/plugins/dist/hooks/Api/useHttpQuery";
13
13
  import FormErrorService from "@licklist/plugins/dist/services/Form/FormErrorService";
14
14
  import { AttachmentsWithHash } from "@licklist/plugins/dist/hooks/Media/useAttachments";
15
15
  import { UploadPermanentImage } from "@licklist/core/dist/DataMapper/Media/UploadPermanentImageDataMapper";
16
-
16
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
17
17
  import { NotificationPlaceholders } from "../../components/NotificationPlaceholders";
18
18
  import { EmailTemplateControl } from "../control/EmailTemplateControl";
19
19
  import { BlockLoader } from "../../../static";
20
20
 
21
21
  export interface EmailTemplateValues extends FormValues {
22
+ id?: number | string;
22
23
  name: string;
23
24
  subject: string;
24
25
  isActive: boolean;
@@ -29,6 +30,7 @@ export interface EmailTemplateValues extends FormValues {
29
30
  attachments?: Attachment[];
30
31
  templateOptionValues?: TemplateOptionValue[];
31
32
  imagesMetadata?: UploadPermanentImage[];
33
+ type?: NotificationType;
32
34
  }
33
35
 
34
36
  export interface EmailTemplateProps extends HasPermissionProp {
@@ -39,9 +41,12 @@ export interface EmailTemplateProps extends HasPermissionProp {
39
41
  placeholders?: NotificationPlaceholder[];
40
42
  options?: TemplateOption[];
41
43
  serverErrors?: ServerError;
44
+ notificationTypes?: NotificationType[];
45
+ getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
46
+ onTypeChange?: (type?: NotificationType | null) => void;
42
47
  }
43
48
 
44
- export function EmailTemplateForm({
49
+ export const EmailTemplateForm = ({
45
50
  defaultValues,
46
51
  onSubmitSave,
47
52
  onSubmitSaveAndSend,
@@ -49,7 +54,10 @@ export function EmailTemplateForm({
49
54
  placeholders = [],
50
55
  options = [],
51
56
  serverErrors,
52
- }: EmailTemplateProps) {
57
+ notificationTypes = [],
58
+ getDefaultTemplateMetaByType,
59
+ onTypeChange,
60
+ }: EmailTemplateProps) => {
53
61
  const { t } = useTranslation("Design");
54
62
  const [isLoading, setIsLoading] = useState(false);
55
63
  const emailEditorRef = useRef(null);
@@ -59,12 +67,20 @@ export function EmailTemplateForm({
59
67
  defaultValues,
60
68
  });
61
69
 
62
- const { setError } = form;
70
+ const { setError, watch } = form;
71
+ const type = watch("type");
63
72
 
64
73
  useEffect(() => {
65
74
  FormErrorService.handleServerErrors(serverErrors, setError);
66
75
  }, [serverErrors, setError]);
67
76
 
77
+ useEffect(() => {
78
+ if (!onTypeChange) return;
79
+
80
+ onTypeChange(type);
81
+ // eslint-disable-next-line react-hooks/exhaustive-deps
82
+ }, [type]);
83
+
68
84
  return (
69
85
  <FormProvider {...form}>
70
86
  {isLoading && <BlockLoader />}
@@ -81,6 +97,8 @@ export function EmailTemplateForm({
81
97
  meta={defaultValues?.meta || null}
82
98
  defaultAttachments={defaultValues?.attachments || []}
83
99
  options={options}
100
+ notificationTypes={notificationTypes}
101
+ getDefaultTemplateMetaByType={getDefaultTemplateMetaByType}
84
102
  />
85
103
  <NotificationPlaceholders placeholders={placeholders} />
86
104
  {/* update email template */}
@@ -106,4 +124,4 @@ export function EmailTemplateForm({
106
124
  </Form>
107
125
  </FormProvider>
108
126
  );
109
- }
127
+ };
@@ -0,0 +1,27 @@
1
+ import { useTranslation } from "react-i18next";
2
+
3
+ type UseTranslatedParametersProps = {
4
+ isDefault: boolean;
5
+ isActive: boolean;
6
+ };
7
+
8
+ export const useTranslatedParameters = ({
9
+ isActive,
10
+ isDefault,
11
+ }: UseTranslatedParametersProps) => {
12
+ const { t } = useTranslation(["Design"]);
13
+
14
+ const translatedParameters = () => {
15
+ const texts: string[] = [];
16
+ if (isDefault) {
17
+ texts.push(t("Design:default"));
18
+ }
19
+ if (isActive) {
20
+ texts.push(t("Design:active"));
21
+ }
22
+
23
+ return texts.join(", ");
24
+ };
25
+
26
+ return translatedParameters();
27
+ };
@@ -14,7 +14,9 @@ export const Default: Story<SmsTemplateCardProps> = (args) => (
14
14
 
15
15
  Default.args = {
16
16
  href: "#",
17
- name: "Default Sms Template",
17
+ name: "Default Sms Template with Long name",
18
18
  hasPermission: true,
19
19
  isDefault: true,
20
+ templateType: "confirmation",
21
+ isActive: true,
20
22
  };
@@ -1,16 +1,19 @@
1
1
  import React from "react";
2
2
  import { Link } from "react-router-dom";
3
- import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
4
3
  import { useTranslation } from "react-i18next";
5
-
4
+ import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
5
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
6
6
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
7
7
  import { Icon } from "../../../static";
8
+ import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
8
9
 
9
10
  export interface SmsTemplateCardProps extends HasPermissionProp {
10
11
  name: string;
11
12
  href: string;
12
13
  onRemove: () => void;
13
14
  isDefault: boolean;
15
+ isActive: boolean;
16
+ type: NotificationType;
14
17
  }
15
18
 
16
19
  export function SmsTemplateCard({
@@ -19,9 +22,13 @@ export function SmsTemplateCard({
19
22
  onRemove,
20
23
  hasPermission = true,
21
24
  isDefault = false,
25
+ isActive = false,
26
+ type,
22
27
  }: SmsTemplateCardProps) {
23
28
  const { t } = useTranslation(["Design"]);
24
29
 
30
+ const texts = useTranslatedParameters({ isActive, isDefault });
31
+
25
32
  return (
26
33
  <div className="snippet-template-card">
27
34
  <div className="snippet-template-card-header">
@@ -50,7 +57,10 @@ export function SmsTemplateCard({
50
57
  )}
51
58
  </div>
52
59
  <div className="mt-2">
53
- {Boolean(isDefault) && <p className="mb-1">{t("Design:default")}</p>}
60
+ {!!texts.length && <p className="mb-1">{texts}</p>}
61
+ <p className="mb-0">
62
+ {t(`Design:type`)}:&nbsp;{t(`Design:${type}`)}
63
+ </p>
54
64
  </div>
55
65
  </div>
56
66
  );
@@ -4,12 +4,18 @@ import { Col, Row, Form } from "react-bootstrap";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
7
-
7
+ import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
8
8
  import { SmsTemplateValues } from "../form";
9
9
 
10
10
  const MAX_SMS_LENGTH = 300;
11
11
 
12
- export const SmsTemplateControl = () => {
12
+ type SmsTemplateControlProps = {
13
+ notificationTypes: NotificationType[];
14
+ };
15
+
16
+ export const SmsTemplateControl = ({
17
+ notificationTypes = [],
18
+ }: SmsTemplateControlProps) => {
13
19
  const { t } = useTranslation(["Design"]);
14
20
  const {
15
21
  register,
@@ -20,9 +26,39 @@ export const SmsTemplateControl = () => {
20
26
  } = useFormContext<SmsTemplateValues>();
21
27
 
22
28
  const smsBody = watch("body");
29
+ const id = watch("id");
23
30
 
24
31
  return (
25
32
  <>
33
+ <Row>
34
+ <Form.Group as={Col} controlId="type" xs sm={12} md={8} lg={10} xl={12}>
35
+ <Form.Label>{t("type")}</Form.Label>
36
+
37
+ <Form.Control
38
+ as="select"
39
+ {...register("type", {
40
+ required: t("Validation:fieldRequired", {
41
+ attribute: t("type"),
42
+ }) as string,
43
+ })}
44
+ name="type"
45
+ required
46
+ isInvalid={Boolean(errors.type)}
47
+ placeholder={t("Design:type")}
48
+ disabled={!!id}
49
+ >
50
+ <option value="">{t("Design:choose")}</option>
51
+ {notificationTypes.map((key) => (
52
+ <option key={key} value={key}>
53
+ {t(`Design:${key}`)}
54
+ </option>
55
+ ))}
56
+ </Form.Control>
57
+ <Form.Control.Feedback type="invalid">
58
+ {errors.type?.message}
59
+ </Form.Control.Feedback>
60
+ </Form.Group>
61
+ </Row>
26
62
  <Row>
27
63
  <Form.Group
28
64
  as={Col}
@@ -62,6 +98,8 @@ export const SmsTemplateControl = () => {
62
98
  <Form.Label>{t("Design:smsBody")}</Form.Label>
63
99
  <Form.Control
64
100
  isInvalid={Boolean(errors.body)}
101
+ as="textarea"
102
+ rows={3}
65
103
  {...register("body", {
66
104
  required: true,
67
105
  maxLength: MAX_SMS_LENGTH,