@licklist/design 0.44.485-dev.5 → 0.44.485-dev.50
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.
- package/dist/affiliate/types/index.d.ts +1 -1
- package/dist/affiliate/types/index.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.js +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts +4 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -2
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +9 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +2 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -2
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
- package/dist/events/event-venue-map/types/index.d.ts +5 -5
- package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/utils/index.d.ts +3 -3
- package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
- package/dist/file-upload/FilePreview.d.ts +2 -2
- package/dist/file-upload/FilePreview.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/header/Header.d.ts +1 -1
- package/dist/header/Header.d.ts.map +1 -1
- package/dist/help/example/Example.d.ts +4 -4
- package/dist/help/example/Example.d.ts.map +1 -1
- package/dist/help/popover/HelpPopover.d.ts +1 -1
- package/dist/help/popover/HelpPopover.d.ts.map +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +5 -6
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +5 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +3 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts +2 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Category/Category.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +2 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +2 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
- package/dist/iframe/page/Page.d.ts +1 -1
- package/dist/iframe/page/Page.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +5 -0
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
- package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
- package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts +6 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts +1 -0
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +5 -3
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts +4 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.js +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +3 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +7 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +1 -1
- package/dist/notification/hooks/useTranslatedParameters.d.ts +7 -0
- package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -0
- package/dist/notification/hooks/useTranslatedParameters.js +1 -0
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts +4 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.js +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +6 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.js +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts +5 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts.map +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +16 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +1 -1
- package/dist/product-set/form/VenueMapSetModal.d.ts +1 -1
- package/dist/product-set/form/VenueMapSetModal.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/context.d.ts +1 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
- package/dist/product-set/types/index.d.ts +5 -5
- package/dist/product-set/types/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +4 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
- package/dist/provider/categories-input/index.d.ts +1 -1
- package/dist/provider/categories-input/index.d.ts.map +1 -1
- package/dist/provider/company/user-form/UserForm.d.ts +2 -2
- package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
- package/dist/provider/location-input/index.d.ts +1 -1
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts +2 -2
- package/dist/provider/provider-details-input/ProviderDetailsInput.d.ts.map +1 -1
- package/dist/provider/provider-details-input/ProviderDetailsInput.js +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts +2 -2
- package/dist/provider/provider-links-input/ProviderLinksInput.d.ts.map +1 -1
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts +1 -1
- package/dist/provider/resources-blocking-modal/ResourcesBlockingModal.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts +1 -1
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/working-hours-input/index.d.ts +1 -1
- package/dist/provider/working-hours-input/index.d.ts.map +1 -1
- package/dist/recurrence-input/utils.d.ts +2 -2
- package/dist/recurrence-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +1 -1
- package/dist/recurring-date-picker-input/utils.d.ts +2 -2
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/resource/form/ResourceForm.d.ts +2 -2
- package/dist/resource/form/ResourceForm.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/NameControl.d.ts +1 -1
- package/dist/resource/form/components/NameControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.d.ts +1 -1
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts +1 -1
- package/dist/resource/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/sales/booking/filter/BookingFilter.d.ts +1 -1
- package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.js +1 -1
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts +1 -1
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/SearchingForSection.js +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts +1 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
- package/dist/sales/filters/SaleFilters.d.ts +2 -3
- package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
- package/dist/sales/manual-booking/create-user/CreateUser.js +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.d.ts +1 -1
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
- package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
- package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/types.d.ts +2 -2
- package/dist/sales/payment-form/types.d.ts.map +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.js +1 -1
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts +2 -2
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.js +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/SnippetTemplate.js +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
- package/dist/snippet/snippet-template/form/SnippetTemplateForm.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/sortable-list/SortableList.d.ts +4 -4
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/Icon.d.ts +1 -1
- package/dist/static/Icon.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/images/DefaultUserImage.d.ts +1 -1
- package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
- package/dist/static/loader/ButtonLoader.d.ts +1 -1
- package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
- package/dist/static/loader/PaymentLoader.d.ts +1 -1
- package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
- package/dist/static/tabs/Tab.d.ts +1 -1
- package/dist/static/tabs/Tab.d.ts.map +1 -1
- package/dist/static/tabs/Tabs.d.ts +1 -1
- package/dist/static/tabs/Tabs.d.ts.map +1 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
- package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
- package/dist/striped-static-table/StripedStaticTable.js +1 -0
- package/dist/striped-static-table/index.d.ts +2 -0
- package/dist/striped-static-table/index.d.ts.map +1 -0
- package/dist/styles/customers/Filter.scss +23 -4
- package/dist/styles/events/EventStatisticModal.scss +0 -37
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
- package/dist/styles/packages.scss +1 -0
- package/dist/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/dist/styles/striped-static-table/_index.scss +33 -0
- package/dist/table/FilterHelperComponent.d.ts.map +1 -1
- package/dist/table/FilterHelperComponent.js +1 -1
- package/dist/table/MenuButton.d.ts +1 -1
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts +2 -2
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/StaticTable.d.ts +3 -3
- package/dist/table/StaticTable.d.ts.map +1 -1
- package/dist/table/StaticTable.js +1 -1
- package/dist/table/types.d.ts +5 -5
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.d.ts +6 -12
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
- package/dist/types/categories.d.ts +2 -2
- package/dist/types/categories.d.ts.map +1 -1
- package/dist/types/currency.d.ts +1 -1
- package/dist/types/currency.d.ts.map +1 -1
- package/dist/types/generic/SelectItem.d.ts +1 -1
- package/dist/types/generic/SelectItem.d.ts.map +1 -1
- package/dist/types/iframe.d.ts +4 -2
- package/dist/types/iframe.d.ts.map +1 -1
- package/dist/types/provider-links.d.ts +2 -2
- package/dist/types/provider-links.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/types/index.d.ts +4 -4
- package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
- package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
- package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.d.ts +2 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
- package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
- package/dist/zone/form/components/NameControl.d.ts +1 -1
- package/dist/zone/form/components/NameControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.d.ts +1 -1
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/customers/components/filter/CustomerFilter.tsx +1 -1
- package/src/events/edit-event-modal/IntervalInput.tsx +21 -1
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -0
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +6 -4
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
- package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +3 -1
- package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +68 -0
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
- package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
- package/src/iframe/order-process/OrderProcess.stories.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
- package/src/iframe/order-process/components/Category/Category.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
- package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
- package/src/iframe/order-process/components/Timer/Timer.stories.tsx +1 -1
- package/src/iframe/order-process/components/Timer/utils/index.ts +4 -4
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
- package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
- package/src/iframe/payment/payment-page/PaymentPage.tsx +46 -6
- package/src/iframe/payment/payment-page/PaymentTimer.tsx +31 -6
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
- package/src/index.ts +1 -0
- package/src/notification/email-template/card/EmailTemplateCard.stories.tsx +4 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +15 -3
- package/src/notification/email-template/control/EmailTemplateControl.tsx +90 -6
- package/src/notification/email-template/form/EmailTemplateForm.stories.tsx +34 -0
- package/src/notification/email-template/form/EmailTemplateForm.tsx +23 -5
- package/src/notification/hooks/useTranslatedParameters.ts +27 -0
- package/src/notification/sms-template/card/SmsTemplateCard.stories.tsx +3 -1
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +13 -3
- package/src/notification/sms-template/control/SmsTemplateControl.tsx +40 -2
- package/src/notification/sms-template/form/SmsTemplateForm.stories.tsx +28 -0
- package/src/notification/sms-template/form/SmsTemplateForm.tsx +6 -1
- package/src/product-set/control/ProductSetControl.tsx +61 -33
- package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
- package/src/product-set/form/ProductSetForm.tsx +11 -0
- package/src/product-set/form/ProductsControl.tsx +20 -1
- package/src/product-set/form/StepsControl.tsx +20 -2
- package/src/product-set/product/ProductControl.tsx +25 -10
- package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +33 -14
- package/src/product-set/utils/index.ts +28 -0
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +0 -2
- package/src/sales/booking/filter/components/AdditionalFIlterSection.tsx +16 -2
- package/src/sales/booking/filter/components/SearchingForSection.tsx +18 -1
- package/src/sales/filters/SaleFilter.stories.tsx +1 -1
- package/src/sales/filters/SaleFilters.tsx +2 -2
- package/src/sales/manual-booking/select-menu/SelectMenu.tsx +3 -1
- package/src/setting/dashboard/snippets/control/SnippetControl.tsx +11 -13
- package/src/setting/dashboard/snippets/form/SnippetForm.tsx +2 -2
- package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.tsx +1 -1
- package/src/snippet/snippet-template/SnippetTemplate.tsx +1 -1
- package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +10 -10
- package/src/snippet/snippet-template/preview/Preview.tsx +4 -4
- package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
- package/src/striped-static-table/StripedStaticTable.tsx +63 -0
- package/src/striped-static-table/index.ts +1 -0
- package/src/styles/customers/Filter.scss +23 -4
- package/src/styles/events/EventStatisticModal.scss +0 -37
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
- package/src/styles/packages.scss +1 -0
- package/src/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/src/styles/striped-static-table/_index.scss +33 -0
- package/src/table/FilterHelperComponent.tsx +1 -0
- package/src/table/StaticTable.tsx +4 -2
- package/src/typeahead/Typeahead.stories.tsx +9 -6
- package/src/typeahead/Typeahead.tsx +19 -12
- package/src/types/iframe.ts +2 -0
- package/tests/Snippets/Snippets.test.tsx +5 -5
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
EventVenueMapContext,
|
|
12
12
|
EventVenueMapContextProps,
|
|
13
13
|
} from "@licklist/plugins/dist/context/event/EventVenueMapContext";
|
|
14
|
+
import { ProductQuantityCheckResponse } from "@licklist/plugins/dist/types/Api/verifyStock";
|
|
14
15
|
import { useImage } from "../../hooks/useImage";
|
|
15
16
|
import { useStageActions } from "../../hooks/useStageActions";
|
|
16
17
|
import { MapPoint } from "../MapPoint";
|
|
@@ -32,6 +33,7 @@ export type VenueMapProps = {
|
|
|
32
33
|
usedInIframe?: boolean;
|
|
33
34
|
choosedProductUuids?: string[];
|
|
34
35
|
errorOnChoosedProductUuids?: string[];
|
|
36
|
+
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
export const VenueMap = forwardRef<VenueMapRef, VenueMapProps>(
|
|
@@ -45,6 +47,7 @@ export const VenueMap = forwardRef<VenueMapRef, VenueMapProps>(
|
|
|
45
47
|
usedInIframe = false,
|
|
46
48
|
choosedProductUuids = [],
|
|
47
49
|
errorOnChoosedProductUuids = [],
|
|
50
|
+
soldOutProducts,
|
|
48
51
|
},
|
|
49
52
|
ref
|
|
50
53
|
) => {
|
|
@@ -112,13 +115,18 @@ export const VenueMap = forwardRef<VenueMapRef, VenueMapProps>(
|
|
|
112
115
|
);
|
|
113
116
|
|
|
114
117
|
if (!currentProduct) return false;
|
|
115
|
-
|
|
118
|
+
const selectedProduct = products.find(
|
|
119
|
+
(product) => product.uuid === currentProduct.productUuid
|
|
120
|
+
);
|
|
116
121
|
return (
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
selectedProduct?.isSoldOut ||
|
|
123
|
+
(selectedProduct &&
|
|
124
|
+
!!soldOutProducts?.find(
|
|
125
|
+
(product) => product?.product_id === selectedProduct?.id
|
|
126
|
+
)) ||
|
|
127
|
+
false
|
|
119
128
|
);
|
|
120
129
|
};
|
|
121
|
-
|
|
122
130
|
return (
|
|
123
131
|
<div className="venue-map" style={{ width, height }}>
|
|
124
132
|
<div className="zone-name">
|
|
@@ -8,25 +8,25 @@ export type SummaryDataType = {
|
|
|
8
8
|
quantity?: number;
|
|
9
9
|
}[];
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export const Summary = ({ data = [] }: { data: SummaryDataType }) => {
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
{data.map(({ name, image, quantity, title }) => {
|
|
15
|
+
const classNames = clsx("name", "mb-4", image && "align-items-center");
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
});
|
|
17
|
+
return (
|
|
18
|
+
<div key={name} className="summary">
|
|
19
|
+
<p className="title mb-1">{title}</p>
|
|
20
|
+
<div className={classNames}>
|
|
21
|
+
{image && <img className="image mr-3" src={image} alt={name} />}
|
|
22
|
+
{quantity && quantity > 1 && (
|
|
23
|
+
<span className="quantity mr-3">{quantity}x</span>
|
|
24
|
+
)}
|
|
25
|
+
{name}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
})}
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
32
|
};
|
|
@@ -6,6 +6,7 @@ import { Page, PageBody, PageHeader } from "../../page";
|
|
|
6
6
|
import { BookingSummaryFooter } from "../../order-process/components/BookingSummaryFooter";
|
|
7
7
|
import { BookingSummary } from "../../order-process/components/BookingSummary";
|
|
8
8
|
import { CalendarSelect } from "../event-calendar/components/CalendarSelect";
|
|
9
|
+
import { Product } from "../../../types";
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
title: "Iframe/Event/IframeEventVenueMap",
|
|
@@ -268,6 +269,10 @@ export function Default() {
|
|
|
268
269
|
pointProducts={MENU_STEPS[0].pointProducts}
|
|
269
270
|
usedInIframe={usedInIframe}
|
|
270
271
|
onPointClick={(pointId) => console.log({ pointId })}
|
|
272
|
+
products={
|
|
273
|
+
MENU_STEPS[0].productCategories[0]
|
|
274
|
+
.products as Partial<Product>[]
|
|
275
|
+
}
|
|
271
276
|
choosedProductUuids={[
|
|
272
277
|
"beb6393c-2fdd-40f7-bb92-8800685b203f",
|
|
273
278
|
"beb6393c-2fdd-40f7-bb92-8800685b203a",
|
|
@@ -49,6 +49,7 @@ const productCategories = [
|
|
|
49
49
|
|
|
50
50
|
price: 5,
|
|
51
51
|
deposit: 3,
|
|
52
|
+
minSub: 10,
|
|
52
53
|
isRequired: true,
|
|
53
54
|
images: IMAGES,
|
|
54
55
|
},
|
|
@@ -197,14 +198,14 @@ export default {
|
|
|
197
198
|
} as Meta;
|
|
198
199
|
|
|
199
200
|
const TimerWrapper = () => {
|
|
200
|
-
const [timer, setTimer] = useState(
|
|
201
|
+
const [timer, setTimer] = useState(120000);
|
|
201
202
|
const updateTimerState = () => {
|
|
202
203
|
setTimer((prevValue) => {
|
|
203
204
|
if (prevValue <= 0) {
|
|
204
205
|
return 0;
|
|
205
206
|
}
|
|
206
207
|
|
|
207
|
-
const nexValue = prevValue -
|
|
208
|
+
const nexValue = prevValue - 1000;
|
|
208
209
|
|
|
209
210
|
return nexValue;
|
|
210
211
|
});
|
|
@@ -25,6 +25,9 @@ export const BookingSummary = ({
|
|
|
25
25
|
const { formatNumber } = useIntl();
|
|
26
26
|
|
|
27
27
|
const orderProducts = useMemo(() => {
|
|
28
|
+
if (!formValues) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
28
31
|
const products = Object.values(formValues).filter(Boolean) as Order[];
|
|
29
32
|
|
|
30
33
|
return products?.filter((prod) => prod?.quantity !== 0);
|
|
@@ -47,7 +50,7 @@ export const BookingSummary = ({
|
|
|
47
50
|
</div>
|
|
48
51
|
<hr />
|
|
49
52
|
|
|
50
|
-
{orderProducts
|
|
53
|
+
{orderProducts?.length > 0 ? (
|
|
51
54
|
<div>
|
|
52
55
|
<div className="cart-items">
|
|
53
56
|
{menuSteps.map((menuStep: MenuStep) => {
|
|
@@ -6,13 +6,13 @@ export const ACCORDION_KEY = "booking-summary";
|
|
|
6
6
|
|
|
7
7
|
export type BookingSummaryProps = {
|
|
8
8
|
date: string;
|
|
9
|
-
menuSteps
|
|
10
|
-
formValues
|
|
9
|
+
menuSteps?: MenuStep[];
|
|
10
|
+
formValues?: {
|
|
11
11
|
[key: string]: Order;
|
|
12
12
|
};
|
|
13
13
|
totalWithDiscount?: number;
|
|
14
14
|
isNotShownPeopleAmount?: boolean;
|
|
15
|
-
eventName
|
|
15
|
+
eventName?: string;
|
|
16
16
|
hasPeopleInput?: boolean;
|
|
17
17
|
transactionFee?: number;
|
|
18
18
|
isFreePayment?: boolean;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { Order } from "../../../../../types";
|
|
2
2
|
|
|
3
|
-
export const cartSumByOrderProducts = (orderProducts
|
|
4
|
-
orderProducts
|
|
3
|
+
export const cartSumByOrderProducts = (orderProducts?: Order[]) => {
|
|
4
|
+
if (!orderProducts || !orderProducts.length) {
|
|
5
|
+
return 0;
|
|
6
|
+
}
|
|
7
|
+
return orderProducts.reduce((prevSumValue: number, product) => {
|
|
5
8
|
return (
|
|
6
9
|
prevSumValue + (product?.deposit || product?.price) * product.quantity
|
|
7
10
|
);
|
|
8
11
|
}, 0);
|
|
12
|
+
};
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
import { Step } from "@licklist/core/dist/DataMapper/Product/StepDataMapper";
|
|
20
20
|
import { useTranslation } from "react-i18next";
|
|
21
21
|
import { Product } from "@licklist/core/dist/DataMapper/Product/ProductDataMapper";
|
|
22
|
+
import { ProductQuantityCheckResponse } from "@licklist/plugins/dist/types/Api/verifyStock";
|
|
22
23
|
import { Category } from "./components/Category";
|
|
23
24
|
import { MenuStep } from "../../../../types";
|
|
24
25
|
import { STEP_FORM_ID } from "../../constants";
|
|
@@ -44,6 +45,7 @@ export interface CalendarStepsFormProps {
|
|
|
44
45
|
onActiveVenueMapChange?: (nextVenueMapId: string) => void;
|
|
45
46
|
title: string;
|
|
46
47
|
menuStepWithVenueMap: Step;
|
|
48
|
+
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
export type StepsFormRef = {
|
|
@@ -67,6 +69,7 @@ export const CalendarStepsForm = forwardRef<
|
|
|
67
69
|
title,
|
|
68
70
|
menuStepWithVenueMap,
|
|
69
71
|
onActiveVenueMapChange,
|
|
72
|
+
soldOutProducts,
|
|
70
73
|
},
|
|
71
74
|
ref
|
|
72
75
|
) => {
|
|
@@ -340,12 +343,14 @@ export const CalendarStepsForm = forwardRef<
|
|
|
340
343
|
ref={canvasRef}
|
|
341
344
|
choosedProductUuids={choosedProductUuids}
|
|
342
345
|
errorOnChoosedProductUuids={errorOnChoosedProductUuids}
|
|
346
|
+
soldOutProducts={soldOutProducts}
|
|
343
347
|
/>
|
|
344
348
|
<Category
|
|
345
349
|
productCategories={step?.productCategories}
|
|
346
350
|
activePointId={activePointId}
|
|
347
351
|
pointProducts={menuStepWithVenueMap.pointProducts}
|
|
348
352
|
onCloseModal={onCloseProductModal}
|
|
353
|
+
soldOutProducts={soldOutProducts}
|
|
349
354
|
/>
|
|
350
355
|
</>
|
|
351
356
|
)}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PointProduct } from "@licklist/core/dist/DataMapper/Product/PointProductDataMapper";
|
|
3
|
+
import { ProductQuantityCheckResponse } from "@licklist/plugins/dist/types/Api/verifyStock";
|
|
3
4
|
import { ProductCategory } from "../../../../../types";
|
|
4
5
|
import { CategoryProductModal } from "./CategoryProductModal";
|
|
5
6
|
|
|
@@ -8,6 +9,7 @@ export type CategoryProps = {
|
|
|
8
9
|
activePointId?: number;
|
|
9
10
|
pointProducts: PointProduct[];
|
|
10
11
|
onCloseModal: () => void;
|
|
12
|
+
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
export const Category = ({
|
|
@@ -15,6 +17,7 @@ export const Category = ({
|
|
|
15
17
|
activePointId,
|
|
16
18
|
pointProducts,
|
|
17
19
|
onCloseModal,
|
|
20
|
+
soldOutProducts,
|
|
18
21
|
}: CategoryProps) => {
|
|
19
22
|
return (
|
|
20
23
|
<>
|
|
@@ -31,6 +34,7 @@ export const Category = ({
|
|
|
31
34
|
activePointId={activePointId}
|
|
32
35
|
pointProducts={pointProducts}
|
|
33
36
|
onCloseModal={onCloseModal}
|
|
37
|
+
soldOutProducts={soldOutProducts}
|
|
34
38
|
/>
|
|
35
39
|
);
|
|
36
40
|
})}
|
package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useMemo } from "react";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { Button } from "react-bootstrap";
|
|
4
4
|
import { PointProduct } from "@licklist/core/dist/DataMapper/Product/PointProductDataMapper";
|
|
5
|
+
import { ProductQuantityCheckResponse } from "@licklist/plugins/dist/types/Api/verifyStock";
|
|
5
6
|
import { ProductCategory, Product } from "../../../../../types";
|
|
6
7
|
import { CategoryProduct } from "../../CategoryProduct";
|
|
7
8
|
import Icon from "../../../../../static/Icon";
|
|
@@ -12,6 +13,7 @@ export type CategoryProductModalProps = {
|
|
|
12
13
|
category: ProductCategory;
|
|
13
14
|
pointProducts: PointProduct[];
|
|
14
15
|
onCloseModal: () => void;
|
|
16
|
+
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export const CategoryProductModal = ({
|
|
@@ -20,6 +22,7 @@ export const CategoryProductModal = ({
|
|
|
20
22
|
category,
|
|
21
23
|
pointProducts,
|
|
22
24
|
onCloseModal,
|
|
25
|
+
soldOutProducts,
|
|
23
26
|
}: CategoryProductModalProps) => {
|
|
24
27
|
const activePointProduct = useMemo(
|
|
25
28
|
() =>
|
|
@@ -42,6 +45,7 @@ export const CategoryProductModal = ({
|
|
|
42
45
|
product={product}
|
|
43
46
|
category={category}
|
|
44
47
|
canExpandDescription={false}
|
|
48
|
+
soldOutProducts={soldOutProducts}
|
|
45
49
|
/>
|
|
46
50
|
<div className="close-modal-button">
|
|
47
51
|
<Button
|
|
@@ -8,6 +8,7 @@ import { StepsFormProps } from "../StepsForm/StepsForm";
|
|
|
8
8
|
interface CategoryProps {
|
|
9
9
|
productCategories: ProductCategory[];
|
|
10
10
|
productsWithErrors?: StepsFormProps["productsWithErrors"];
|
|
11
|
+
soldOutProducts?: StepsFormProps["productsWithErrors"];
|
|
11
12
|
errors?: DeepMap<Record<string, any>, FieldError>;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -15,6 +16,7 @@ export function Category({
|
|
|
15
16
|
productCategories,
|
|
16
17
|
productsWithErrors,
|
|
17
18
|
errors,
|
|
19
|
+
soldOutProducts,
|
|
18
20
|
}: CategoryProps) {
|
|
19
21
|
return (
|
|
20
22
|
<>
|
|
@@ -37,6 +39,7 @@ export function Category({
|
|
|
37
39
|
product={product}
|
|
38
40
|
category={category}
|
|
39
41
|
productsWithErrors={productsWithErrors}
|
|
42
|
+
soldOutProducts={soldOutProducts}
|
|
40
43
|
/>
|
|
41
44
|
);
|
|
42
45
|
})}
|
|
@@ -15,6 +15,7 @@ interface CategoryProductProps {
|
|
|
15
15
|
category: ProductCategory;
|
|
16
16
|
canExpandDescription?: boolean;
|
|
17
17
|
productsWithErrors?: StepsFormProps["productsWithErrors"];
|
|
18
|
+
soldOutProducts?: StepsFormProps["productsWithErrors"];
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export const CategoryProduct = ({
|
|
@@ -22,6 +23,7 @@ export const CategoryProduct = ({
|
|
|
22
23
|
category,
|
|
23
24
|
canExpandDescription = true,
|
|
24
25
|
productsWithErrors,
|
|
26
|
+
soldOutProducts,
|
|
25
27
|
}: CategoryProductProps) => {
|
|
26
28
|
const { formatNumber } = useIntl();
|
|
27
29
|
const { t } = useTranslation(["Design", "Validation"]);
|
|
@@ -49,6 +51,16 @@ export const CategoryProduct = ({
|
|
|
49
51
|
return product.deposit;
|
|
50
52
|
}, [category, product]);
|
|
51
53
|
|
|
54
|
+
const checkIfSoldOutProduct = () => {
|
|
55
|
+
if (!soldOutProducts || product?.isSoldOut) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
const error = soldOutProducts.find(
|
|
59
|
+
(productWithError) => productWithError.product_id === product.id
|
|
60
|
+
);
|
|
61
|
+
return !!error?.message;
|
|
62
|
+
};
|
|
63
|
+
|
|
52
64
|
useEffect(() => {
|
|
53
65
|
if (!productQuantityError) {
|
|
54
66
|
return;
|
|
@@ -71,17 +83,32 @@ export const CategoryProduct = ({
|
|
|
71
83
|
// One case when no value is that we have product,
|
|
72
84
|
// but didn't click on number input.
|
|
73
85
|
// If it will be required then required check fired firstly.
|
|
74
|
-
if (!value) return true;
|
|
75
86
|
|
|
76
|
-
const {
|
|
87
|
+
const {
|
|
88
|
+
isRequired = false,
|
|
89
|
+
maxAmount = 0,
|
|
90
|
+
minAmount = 0,
|
|
91
|
+
minSpend,
|
|
92
|
+
price,
|
|
93
|
+
} = product;
|
|
77
94
|
|
|
78
|
-
const
|
|
95
|
+
const currentQuantity = value?.quantity ?? 0;
|
|
96
|
+
if (minSpend && currentQuantity * price < minSpend) {
|
|
97
|
+
return t("Design:minimumSpendSumValidation", {
|
|
98
|
+
minSpend: formatNumber(minSpend, {
|
|
99
|
+
style: "currency",
|
|
100
|
+
currency: Config.Currency.GBP,
|
|
101
|
+
}),
|
|
102
|
+
}) as string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (!value) return true;
|
|
79
106
|
|
|
80
|
-
if (!
|
|
107
|
+
if (!currentQuantity && !isRequired) {
|
|
81
108
|
return true;
|
|
82
109
|
}
|
|
83
110
|
|
|
84
|
-
if (!
|
|
111
|
+
if (!currentQuantity && isRequired) {
|
|
85
112
|
return t("Design:pleaseSelectAtLeastFrom", {
|
|
86
113
|
min: 1,
|
|
87
114
|
type: "item",
|
|
@@ -89,14 +116,18 @@ export const CategoryProduct = ({
|
|
|
89
116
|
}) as string;
|
|
90
117
|
}
|
|
91
118
|
|
|
92
|
-
if (
|
|
119
|
+
if (currentQuantity < minAmount) {
|
|
93
120
|
return t("Validation:fieldMinNumber", {
|
|
94
121
|
min: product.minAmount,
|
|
95
122
|
attribute: product.name,
|
|
96
123
|
}) as string;
|
|
97
124
|
}
|
|
98
125
|
|
|
99
|
-
if (
|
|
126
|
+
if (
|
|
127
|
+
maxAmount &&
|
|
128
|
+
currentQuantity >= minAmount &&
|
|
129
|
+
maxAmount < currentQuantity
|
|
130
|
+
) {
|
|
100
131
|
return t("Validation:quantityMaxNumber", {
|
|
101
132
|
max: product.maxAmount,
|
|
102
133
|
}) as string;
|
|
@@ -136,7 +167,10 @@ export const CategoryProduct = ({
|
|
|
136
167
|
productInfo={productInfo}
|
|
137
168
|
ref={ref}
|
|
138
169
|
clearErrors={clearErrors}
|
|
139
|
-
product={
|
|
170
|
+
product={{
|
|
171
|
+
...product,
|
|
172
|
+
isSoldOut: product?.isSoldOut || checkIfSoldOutProduct(),
|
|
173
|
+
}}
|
|
140
174
|
category={category}
|
|
141
175
|
invalid={invalid}
|
|
142
176
|
deposit={deposit}
|
package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx
CHANGED
|
@@ -10,6 +10,7 @@ interface NumberInputProps {
|
|
|
10
10
|
onArrowDown?: (value: number) => void;
|
|
11
11
|
min?: number;
|
|
12
12
|
max?: number;
|
|
13
|
+
placeholder?: string;
|
|
13
14
|
defaultValue?: number;
|
|
14
15
|
disabled?: boolean;
|
|
15
16
|
}
|
|
@@ -24,6 +25,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
24
25
|
onArrowUp,
|
|
25
26
|
min,
|
|
26
27
|
max,
|
|
28
|
+
placeholder,
|
|
27
29
|
defaultValue,
|
|
28
30
|
disabled,
|
|
29
31
|
},
|
|
@@ -66,6 +68,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
66
68
|
min={min}
|
|
67
69
|
max={max}
|
|
68
70
|
defaultValue={defaultValue}
|
|
71
|
+
placeholder={placeholder}
|
|
69
72
|
height="5rem"
|
|
70
73
|
disabled={disabled}
|
|
71
74
|
ref={ref}
|
|
@@ -83,7 +83,7 @@ export const ProductQuantityInput = ({
|
|
|
83
83
|
deposit,
|
|
84
84
|
price: product.price,
|
|
85
85
|
productsCategoryId: category.id,
|
|
86
|
-
quantity: val,
|
|
86
|
+
quantity: val || null,
|
|
87
87
|
});
|
|
88
88
|
clearErrors(`${product.id}` as const);
|
|
89
89
|
}}
|
|
@@ -110,8 +110,9 @@ export const ProductQuantityInput = ({
|
|
|
110
110
|
clearErrors(`${product.id}` as const);
|
|
111
111
|
}}
|
|
112
112
|
min={0}
|
|
113
|
+
placeholder="0"
|
|
113
114
|
disabled={product.isSoldOut}
|
|
114
|
-
value={productInfo?.quantity
|
|
115
|
+
value={productInfo?.quantity}
|
|
115
116
|
className={clsx(invalid && "error")}
|
|
116
117
|
/>
|
|
117
118
|
);
|
|
@@ -32,6 +32,7 @@ export interface StepsFormProps {
|
|
|
32
32
|
setFormErrors?: (errors: Record<string, any>) => void;
|
|
33
33
|
id?: string;
|
|
34
34
|
productsWithErrors?: ProductQuantityCheckResponse["products"];
|
|
35
|
+
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export type StepsFormRef = {
|
|
@@ -49,6 +50,7 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
|
|
|
49
50
|
setFormErrors,
|
|
50
51
|
id = STEP_FORM_ID,
|
|
51
52
|
productsWithErrors,
|
|
53
|
+
soldOutProducts,
|
|
52
54
|
},
|
|
53
55
|
ref
|
|
54
56
|
) => {
|
|
@@ -150,6 +152,7 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
|
|
|
150
152
|
productCategories={step?.productCategories}
|
|
151
153
|
productsWithErrors={productsWithErrors}
|
|
152
154
|
errors={errors}
|
|
155
|
+
soldOutProducts={soldOutProducts}
|
|
153
156
|
/>
|
|
154
157
|
|
|
155
158
|
{errors[NO_ORDER_ITEMS_ERROR] && (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const fancyTimeFormat = (
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
export const fancyTimeFormat = (miliseconds: number) => {
|
|
2
|
+
const date = new Date(miliseconds);
|
|
3
|
+
const mins = date.getMinutes();
|
|
4
|
+
const secs = date.getSeconds();
|
|
5
5
|
let timerString = "";
|
|
6
6
|
|
|
7
7
|
timerString += `${mins}:${secs < 10 ? "0" : ""}`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Meta } from "@storybook/react";
|
|
3
3
|
import { boolean } from "@storybook/addon-knobs";
|
|
4
|
+
import { ORDER_FEE_CHARGE_TYPE_CLIENT } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
|
|
4
5
|
import { OrderItemsTable } from "./OrderItemsTable";
|
|
5
6
|
|
|
6
7
|
export default {
|
|
@@ -24,6 +25,7 @@ export function Default(args) {
|
|
|
24
25
|
|
|
25
26
|
Default.args = {
|
|
26
27
|
order: {
|
|
28
|
+
feeChargeType: ORDER_FEE_CHARGE_TYPE_CLIENT,
|
|
27
29
|
products: [
|
|
28
30
|
{
|
|
29
31
|
id: 1,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { OrderItemsTableProps, SummaryItem } from "../types";
|
|
21
21
|
|
|
22
22
|
const CURRENCY_DEFAULT = "GBP";
|
|
23
|
-
const
|
|
23
|
+
export const PAYMENT_TYPE_TRANSLATE_KEYS = {
|
|
24
24
|
[PAYMENT_TYPE_NET_PROFIT]: "netAmount",
|
|
25
25
|
[PAYMENT_TYPE_FEE]: "bookeditFee",
|
|
26
26
|
[PAYMENT_TYPE_VAT]: "vat",
|
|
@@ -128,7 +128,11 @@ export const useTableData = ({
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
const paymentNotProcessedSummary = () => {
|
|
131
|
-
const
|
|
131
|
+
const externalPaymentDetail = paymentDetail
|
|
132
|
+
? getExternalPaymentDetail(paymentDetail)
|
|
133
|
+
: undefined;
|
|
134
|
+
|
|
135
|
+
const total = calculateTotalPrice(order, externalPaymentDetail);
|
|
132
136
|
|
|
133
137
|
const summaryItems: SummaryItem[] = [
|
|
134
138
|
{
|
|
@@ -144,7 +148,7 @@ export const useTableData = ({
|
|
|
144
148
|
});
|
|
145
149
|
}
|
|
146
150
|
|
|
147
|
-
if (
|
|
151
|
+
if (externalPaymentDetail) {
|
|
148
152
|
return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
|
|
149
153
|
}
|
|
150
154
|
|
|
@@ -152,7 +156,18 @@ export const useTableData = ({
|
|
|
152
156
|
};
|
|
153
157
|
|
|
154
158
|
const processedPaymentSummary = () => {
|
|
155
|
-
const
|
|
159
|
+
const externalPaymentDetail =
|
|
160
|
+
paymentDetail && !order.payments.length
|
|
161
|
+
? getExternalPaymentDetail(paymentDetail)
|
|
162
|
+
: Object.keys(PAYMENT_TYPE_TRANSLATE_KEYS).map((key) => {
|
|
163
|
+
return {
|
|
164
|
+
translateKey: PAYMENT_TYPE_TRANSLATE_KEYS[key],
|
|
165
|
+
price: getPaymentValueByType(order.payments, key),
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
const total = calculateTotalPrice(order, externalPaymentDetail);
|
|
170
|
+
|
|
156
171
|
const totalDiscount = calculateTotalDiscount(order.payments);
|
|
157
172
|
const totalWithDiscount = total - Number(totalDiscount);
|
|
158
173
|
let summaryItems: SummaryItem[] = [
|
|
@@ -170,7 +185,7 @@ export const useTableData = ({
|
|
|
170
185
|
}
|
|
171
186
|
|
|
172
187
|
if (paymentDetail && !order.payments.length) {
|
|
173
|
-
return [...summaryItems, ...
|
|
188
|
+
return [...summaryItems, ...externalPaymentDetail];
|
|
174
189
|
}
|
|
175
190
|
|
|
176
191
|
summaryItems.push({
|
|
@@ -180,15 +195,7 @@ export const useTableData = ({
|
|
|
180
195
|
if (totalWithDiscount <= 0) {
|
|
181
196
|
return summaryItems;
|
|
182
197
|
}
|
|
183
|
-
summaryItems = [
|
|
184
|
-
...summaryItems,
|
|
185
|
-
...Object.keys(TRANSLATE_KEYS).map((key) => {
|
|
186
|
-
return {
|
|
187
|
-
translateKey: TRANSLATE_KEYS[key],
|
|
188
|
-
price: getPaymentValueByType(order.payments, key),
|
|
189
|
-
};
|
|
190
|
-
}),
|
|
191
|
-
];
|
|
198
|
+
summaryItems = [...summaryItems, ...externalPaymentDetail];
|
|
192
199
|
|
|
193
200
|
if (totalWithDiscount > order.totalAmount) {
|
|
194
201
|
summaryItems.push({
|