@licklist/design 0.44.485-dev.17 → 0.44.485-dev.2
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 +3 -2
- package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.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-venue-map/EventVenueMap.d.ts +2 -5
- 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/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/VenueMap/VenueMap.d.ts +2 -4
- 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-card/IframeEventCard.js +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 +6 -5
- 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 +1 -5
- 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/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 +1 -3
- 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 +2 -4
- 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 +2 -4
- 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 +1 -2
- 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 +1 -2
- 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/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 +1 -2
- 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/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 +0 -5
- 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 +1 -6
- 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.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.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 +3 -5
- 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/modals/confirmation/ConfirmModal.d.ts +2 -2
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +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/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.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/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/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/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/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-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/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/guest-profile/previous-bookings/PreviousBookings.d.ts +3 -4
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +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/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/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/system/SystemSettingForm.d.ts +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts.map +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/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/styles/customers/Filter.scss +4 -23
- 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/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 +1 -1
- package/dist/typeahead/Typeahead.d.ts.map +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 +2 -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 +2 -2
- package/src/customers/components/filter/CustomerFilter.stories.tsx +2 -1
- package/src/customers/components/filter/CustomerFilter.tsx +5 -3
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -4
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +4 -12
- package/src/iframe/event/event-card/IframeEventCard.tsx +1 -1
- package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +1 -4
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +0 -1
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +0 -5
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +0 -4
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +0 -4
- package/src/iframe/order-process/components/Category/Category.tsx +0 -3
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +1 -16
- package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +0 -3
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +0 -2
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -21
- package/src/iframe/payment/order-items-table/utils/index.ts +15 -55
- package/src/iframe/payment/payment-page/PaymentPage.tsx +5 -44
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +12 -65
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -4
- package/src/product-set/form/ProductsControl.tsx +1 -20
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.stories.tsx +5 -35
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +3 -11
- package/src/styles/customers/Filter.scss +4 -23
|
@@ -1,6 +1,5 @@
|
|
|
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";
|
|
4
3
|
import { ProductCategory } from "../../../../../types";
|
|
5
4
|
import { CategoryProductModal } from "./CategoryProductModal";
|
|
6
5
|
|
|
@@ -9,7 +8,6 @@ export type CategoryProps = {
|
|
|
9
8
|
activePointId?: number;
|
|
10
9
|
pointProducts: PointProduct[];
|
|
11
10
|
onCloseModal: () => void;
|
|
12
|
-
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
13
11
|
};
|
|
14
12
|
|
|
15
13
|
export const Category = ({
|
|
@@ -17,7 +15,6 @@ export const Category = ({
|
|
|
17
15
|
activePointId,
|
|
18
16
|
pointProducts,
|
|
19
17
|
onCloseModal,
|
|
20
|
-
soldOutProducts,
|
|
21
18
|
}: CategoryProps) => {
|
|
22
19
|
return (
|
|
23
20
|
<>
|
|
@@ -34,7 +31,6 @@ export const Category = ({
|
|
|
34
31
|
activePointId={activePointId}
|
|
35
32
|
pointProducts={pointProducts}
|
|
36
33
|
onCloseModal={onCloseModal}
|
|
37
|
-
soldOutProducts={soldOutProducts}
|
|
38
34
|
/>
|
|
39
35
|
);
|
|
40
36
|
})}
|
package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx
CHANGED
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
import { ProductCategory, Product } from "../../../../../types";
|
|
7
6
|
import { CategoryProduct } from "../../CategoryProduct";
|
|
8
7
|
import Icon from "../../../../../static/Icon";
|
|
@@ -13,7 +12,6 @@ export type CategoryProductModalProps = {
|
|
|
13
12
|
category: ProductCategory;
|
|
14
13
|
pointProducts: PointProduct[];
|
|
15
14
|
onCloseModal: () => void;
|
|
16
|
-
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
17
15
|
};
|
|
18
16
|
|
|
19
17
|
export const CategoryProductModal = ({
|
|
@@ -22,7 +20,6 @@ export const CategoryProductModal = ({
|
|
|
22
20
|
category,
|
|
23
21
|
pointProducts,
|
|
24
22
|
onCloseModal,
|
|
25
|
-
soldOutProducts,
|
|
26
23
|
}: CategoryProductModalProps) => {
|
|
27
24
|
const activePointProduct = useMemo(
|
|
28
25
|
() =>
|
|
@@ -45,7 +42,6 @@ export const CategoryProductModal = ({
|
|
|
45
42
|
product={product}
|
|
46
43
|
category={category}
|
|
47
44
|
canExpandDescription={false}
|
|
48
|
-
soldOutProducts={soldOutProducts}
|
|
49
45
|
/>
|
|
50
46
|
<div className="close-modal-button">
|
|
51
47
|
<Button
|
|
@@ -8,7 +8,6 @@ import { StepsFormProps } from "../StepsForm/StepsForm";
|
|
|
8
8
|
interface CategoryProps {
|
|
9
9
|
productCategories: ProductCategory[];
|
|
10
10
|
productsWithErrors?: StepsFormProps["productsWithErrors"];
|
|
11
|
-
soldOutProducts?: StepsFormProps["productsWithErrors"];
|
|
12
11
|
errors?: DeepMap<Record<string, any>, FieldError>;
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -16,7 +15,6 @@ export function Category({
|
|
|
16
15
|
productCategories,
|
|
17
16
|
productsWithErrors,
|
|
18
17
|
errors,
|
|
19
|
-
soldOutProducts,
|
|
20
18
|
}: CategoryProps) {
|
|
21
19
|
return (
|
|
22
20
|
<>
|
|
@@ -39,7 +37,6 @@ export function Category({
|
|
|
39
37
|
product={product}
|
|
40
38
|
category={category}
|
|
41
39
|
productsWithErrors={productsWithErrors}
|
|
42
|
-
soldOutProducts={soldOutProducts}
|
|
43
40
|
/>
|
|
44
41
|
);
|
|
45
42
|
})}
|
|
@@ -15,7 +15,6 @@ interface CategoryProductProps {
|
|
|
15
15
|
category: ProductCategory;
|
|
16
16
|
canExpandDescription?: boolean;
|
|
17
17
|
productsWithErrors?: StepsFormProps["productsWithErrors"];
|
|
18
|
-
soldOutProducts?: StepsFormProps["productsWithErrors"];
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export const CategoryProduct = ({
|
|
@@ -23,7 +22,6 @@ export const CategoryProduct = ({
|
|
|
23
22
|
category,
|
|
24
23
|
canExpandDescription = true,
|
|
25
24
|
productsWithErrors,
|
|
26
|
-
soldOutProducts,
|
|
27
25
|
}: CategoryProductProps) => {
|
|
28
26
|
const { formatNumber } = useIntl();
|
|
29
27
|
const { t } = useTranslation(["Design", "Validation"]);
|
|
@@ -51,16 +49,6 @@ export const CategoryProduct = ({
|
|
|
51
49
|
return product.deposit;
|
|
52
50
|
}, [category, product]);
|
|
53
51
|
|
|
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
|
-
|
|
64
52
|
useEffect(() => {
|
|
65
53
|
if (!productQuantityError) {
|
|
66
54
|
return;
|
|
@@ -148,10 +136,7 @@ export const CategoryProduct = ({
|
|
|
148
136
|
productInfo={productInfo}
|
|
149
137
|
ref={ref}
|
|
150
138
|
clearErrors={clearErrors}
|
|
151
|
-
product={
|
|
152
|
-
...product,
|
|
153
|
-
isSoldOut: product?.isSoldOut || checkIfSoldOutProduct(),
|
|
154
|
-
}}
|
|
139
|
+
product={product}
|
|
155
140
|
category={category}
|
|
156
141
|
invalid={invalid}
|
|
157
142
|
deposit={deposit}
|
|
@@ -32,7 +32,6 @@ export interface StepsFormProps {
|
|
|
32
32
|
setFormErrors?: (errors: Record<string, any>) => void;
|
|
33
33
|
id?: string;
|
|
34
34
|
productsWithErrors?: ProductQuantityCheckResponse["products"];
|
|
35
|
-
soldOutProducts?: ProductQuantityCheckResponse["products"];
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export type StepsFormRef = {
|
|
@@ -50,7 +49,6 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
|
|
|
50
49
|
setFormErrors,
|
|
51
50
|
id = STEP_FORM_ID,
|
|
52
51
|
productsWithErrors,
|
|
53
|
-
soldOutProducts,
|
|
54
52
|
},
|
|
55
53
|
ref
|
|
56
54
|
) => {
|
|
@@ -152,7 +150,6 @@ export const StepsForm = forwardRef<StepsFormRef, StepsFormProps>(
|
|
|
152
150
|
productCategories={step?.productCategories}
|
|
153
151
|
productsWithErrors={productsWithErrors}
|
|
154
152
|
errors={errors}
|
|
155
|
-
soldOutProducts={soldOutProducts}
|
|
156
153
|
/>
|
|
157
154
|
|
|
158
155
|
{errors[NO_ORDER_ITEMS_ERROR] && (
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
5
4
|
import { OrderItemsTable } from "./OrderItemsTable";
|
|
6
5
|
|
|
7
6
|
export default {
|
|
@@ -25,7 +24,6 @@ export function Default(args) {
|
|
|
25
24
|
|
|
26
25
|
Default.args = {
|
|
27
26
|
order: {
|
|
28
|
-
feeChargeType: ORDER_FEE_CHARGE_TYPE_CLIENT,
|
|
29
27
|
products: [
|
|
30
28
|
{
|
|
31
29
|
id: 1,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { OrderItemsTableProps, SummaryItem } from "../types";
|
|
21
21
|
|
|
22
22
|
const CURRENCY_DEFAULT = "GBP";
|
|
23
|
-
|
|
23
|
+
const TRANSLATE_KEYS = {
|
|
24
24
|
[PAYMENT_TYPE_NET_PROFIT]: "netAmount",
|
|
25
25
|
[PAYMENT_TYPE_FEE]: "bookeditFee",
|
|
26
26
|
[PAYMENT_TYPE_VAT]: "vat",
|
|
@@ -128,11 +128,7 @@ export const useTableData = ({
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
const paymentNotProcessedSummary = () => {
|
|
131
|
-
const
|
|
132
|
-
? getExternalPaymentDetail(paymentDetail)
|
|
133
|
-
: undefined;
|
|
134
|
-
|
|
135
|
-
const total = calculateTotalPrice(order, externalPaymentDetail);
|
|
131
|
+
const total = calculateTotalPrice(order.orderProducts);
|
|
136
132
|
|
|
137
133
|
const summaryItems: SummaryItem[] = [
|
|
138
134
|
{
|
|
@@ -148,7 +144,7 @@ export const useTableData = ({
|
|
|
148
144
|
});
|
|
149
145
|
}
|
|
150
146
|
|
|
151
|
-
if (
|
|
147
|
+
if (paymentDetail) {
|
|
152
148
|
return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
|
|
153
149
|
}
|
|
154
150
|
|
|
@@ -156,18 +152,7 @@ export const useTableData = ({
|
|
|
156
152
|
};
|
|
157
153
|
|
|
158
154
|
const processedPaymentSummary = () => {
|
|
159
|
-
const
|
|
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
|
-
|
|
155
|
+
const total = calculateTotalPrice(order.orderProducts);
|
|
171
156
|
const totalDiscount = calculateTotalDiscount(order.payments);
|
|
172
157
|
const totalWithDiscount = total - Number(totalDiscount);
|
|
173
158
|
let summaryItems: SummaryItem[] = [
|
|
@@ -185,7 +170,7 @@ export const useTableData = ({
|
|
|
185
170
|
}
|
|
186
171
|
|
|
187
172
|
if (paymentDetail && !order.payments.length) {
|
|
188
|
-
return [...summaryItems, ...
|
|
173
|
+
return [...summaryItems, ...getExternalPaymentDetail(paymentDetail)];
|
|
189
174
|
}
|
|
190
175
|
|
|
191
176
|
summaryItems.push({
|
|
@@ -195,7 +180,15 @@ export const useTableData = ({
|
|
|
195
180
|
if (totalWithDiscount <= 0) {
|
|
196
181
|
return summaryItems;
|
|
197
182
|
}
|
|
198
|
-
summaryItems = [
|
|
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
|
+
];
|
|
199
192
|
|
|
200
193
|
if (totalWithDiscount > order.totalAmount) {
|
|
201
194
|
summaryItems.push({
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Order,
|
|
3
|
-
ORDER_FEE_CHARGE_TYPE_CLIENT,
|
|
4
|
-
} from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
|
|
1
|
+
import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
|
|
5
2
|
import { Product } from "@licklist/core/dist/DataMapper/Product/ProductDataMapper";
|
|
6
3
|
import { PAYMENT_TYPE_DISCOUNT } from "@licklist/core/dist/DataMapper/Order/PaymentDataMapper";
|
|
7
4
|
import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
|
|
8
|
-
import { PAYMENT_TYPE_TRANSLATE_KEYS } from "../hooks/useTableData";
|
|
9
5
|
|
|
10
6
|
const TRANSLATE_KEYS = {
|
|
11
7
|
totalAmount: "totalPaid",
|
|
12
8
|
netAmount: "netAmount",
|
|
13
9
|
fee: "bookeditFee",
|
|
10
|
+
remainingToPay: "remainingToPay",
|
|
14
11
|
};
|
|
15
12
|
|
|
16
13
|
export enum PAYMENT_TYPE_TITLES {
|
|
@@ -19,35 +16,14 @@ export enum PAYMENT_TYPE_TITLES {
|
|
|
19
16
|
VAT = "VAT",
|
|
20
17
|
}
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const calculateTotalPrice = (
|
|
28
|
-
order: Order,
|
|
29
|
-
externalPaymentDetails?: ExternalPaymnetDetail[]
|
|
30
|
-
) => {
|
|
31
|
-
const totalPrice =
|
|
32
|
-
order?.orderProducts?.reduce(
|
|
19
|
+
export const calculateTotalPrice = (orderProducts: Order["orderProducts"]) => {
|
|
20
|
+
return (
|
|
21
|
+
orderProducts?.reduce(
|
|
33
22
|
(total: number, product) =>
|
|
34
23
|
total + (product?.quantity ?? 1) * product.price,
|
|
35
24
|
0
|
|
36
|
-
) ?? 0
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
order?.feeChargeType !== ORDER_FEE_CHARGE_TYPE_CLIENT ||
|
|
40
|
-
!externalPaymentDetails
|
|
41
|
-
) {
|
|
42
|
-
return totalPrice;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const fee =
|
|
46
|
-
externalPaymentDetails.find(
|
|
47
|
-
(externalPayment) =>
|
|
48
|
-
externalPayment.translateKey === PAYMENT_TYPE_TRANSLATE_KEYS.fee
|
|
49
|
-
)?.price || 0;
|
|
50
|
-
return totalPrice + fee;
|
|
25
|
+
) ?? 0
|
|
26
|
+
);
|
|
51
27
|
};
|
|
52
28
|
|
|
53
29
|
export const calculateTotalDiscount = (payments: Order["payments"]) => {
|
|
@@ -75,37 +51,21 @@ export const getProductQuantityAndPrice = (
|
|
|
75
51
|
export const getPaymentValueByType = (
|
|
76
52
|
payments: Order["payments"],
|
|
77
53
|
paymentTypeTitle: string
|
|
78
|
-
)
|
|
79
|
-
if (!payments || !payments.length) {
|
|
80
|
-
return 0;
|
|
81
|
-
}
|
|
54
|
+
) => {
|
|
82
55
|
if (paymentTypeTitle === PAYMENT_TYPE_TITLES.FEE) {
|
|
83
56
|
const feeWithoutVatValue =
|
|
84
|
-
payments
|
|
85
|
-
|
|
86
|
-
return sumOfPayments;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return sumOfPayments + (payment?.amount ?? 0);
|
|
90
|
-
}, 0) ?? 0;
|
|
57
|
+
payments.find((payment) => payment.paymentType.title === paymentTypeTitle)
|
|
58
|
+
?.amount ?? 0;
|
|
91
59
|
|
|
92
60
|
const vatValue =
|
|
93
|
-
payments
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
return sumOfPayments + (payment?.amount ?? 0);
|
|
98
|
-
}, 0) ?? 0;
|
|
61
|
+
payments.find(
|
|
62
|
+
(payment) => payment.paymentType.title === PAYMENT_TYPE_TITLES.VAT
|
|
63
|
+
)?.amount ?? 0;
|
|
99
64
|
return feeWithoutVatValue + vatValue;
|
|
100
65
|
}
|
|
101
|
-
|
|
102
66
|
return (
|
|
103
|
-
payments
|
|
104
|
-
|
|
105
|
-
return sumOfPayments;
|
|
106
|
-
}
|
|
107
|
-
return sumOfPayments + (payment?.amount ?? 0);
|
|
108
|
-
}, 0) ?? 0
|
|
67
|
+
payments.find((payment) => payment.paymentType.title === paymentTypeTitle)
|
|
68
|
+
?.amount ?? 0
|
|
109
69
|
);
|
|
110
70
|
};
|
|
111
71
|
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
import { PaymentTimer } from "./PaymentTimer";
|
|
16
16
|
import { Page, PageBody, PageHeader } from "../../page";
|
|
17
17
|
import { BookingSummary, BookingSummaryFooter } from "../../order-process";
|
|
18
|
-
import { cartSumByOrderProducts } from "../../order-process/components/BookingSummary/utils";
|
|
19
18
|
|
|
20
19
|
export interface PaymentMetadata {
|
|
21
20
|
total: number;
|
|
@@ -100,17 +99,6 @@ export const PaymentPage = ({
|
|
|
100
99
|
);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
|
-
const orderTotalAmounByFormValues = cartSumByOrderProducts(
|
|
104
|
-
Object.values(bookingSummaryProps?.formValues)
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
// User can fill promocode only in iframe appcliation.
|
|
108
|
-
// It didn't possible via payment link. This check will
|
|
109
|
-
// be applied when there are no metadata and in case when
|
|
110
|
-
// orderValues sum is greater than amount in order.
|
|
111
|
-
const isCalculatedAmountGreaterThanOrderAmount =
|
|
112
|
-
orderTotalAmounByFormValues > data?.amount;
|
|
113
|
-
|
|
114
102
|
return (
|
|
115
103
|
<Page
|
|
116
104
|
className="payment_link"
|
|
@@ -139,7 +127,7 @@ export const PaymentPage = ({
|
|
|
139
127
|
bottomBlock={
|
|
140
128
|
<BookingSummaryFooter showButton={false}>
|
|
141
129
|
<div className="d-flex flex-column justify-content-between">
|
|
142
|
-
{paymentMetadata
|
|
130
|
+
{paymentMetadata && (
|
|
143
131
|
<>
|
|
144
132
|
<SummaryTotalBlock
|
|
145
133
|
label={t("total")}
|
|
@@ -149,39 +137,12 @@ export const PaymentPage = ({
|
|
|
149
137
|
label={t("paidSum")}
|
|
150
138
|
amount={paymentMetadata.paid || 0}
|
|
151
139
|
/>
|
|
152
|
-
<SummaryTotalBlock
|
|
153
|
-
label={t("remaining")}
|
|
154
|
-
amount={
|
|
155
|
-
data?.amount +
|
|
156
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
157
|
-
}
|
|
158
|
-
/>
|
|
159
|
-
</>
|
|
160
|
-
) : (
|
|
161
|
-
<>
|
|
162
|
-
{isCalculatedAmountGreaterThanOrderAmount && (
|
|
163
|
-
<SummaryTotalBlock
|
|
164
|
-
label={t("total")}
|
|
165
|
-
amount={
|
|
166
|
-
orderTotalAmounByFormValues +
|
|
167
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
168
|
-
}
|
|
169
|
-
/>
|
|
170
|
-
)}
|
|
171
|
-
|
|
172
|
-
<SummaryTotalBlock
|
|
173
|
-
label={t(
|
|
174
|
-
isCalculatedAmountGreaterThanOrderAmount
|
|
175
|
-
? "totalWithDiscount"
|
|
176
|
-
: "total"
|
|
177
|
-
)}
|
|
178
|
-
amount={
|
|
179
|
-
data?.amount +
|
|
180
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
181
|
-
}
|
|
182
|
-
/>
|
|
183
140
|
</>
|
|
184
141
|
)}
|
|
142
|
+
<SummaryTotalBlock
|
|
143
|
+
label={t(paymentMetadata ? "remaining" : "total")}
|
|
144
|
+
amount={data?.amount || 0}
|
|
145
|
+
/>
|
|
185
146
|
</div>
|
|
186
147
|
</BookingSummaryFooter>
|
|
187
148
|
}
|
|
@@ -9,8 +9,6 @@ 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";
|
|
14
12
|
|
|
15
13
|
export const ORDER_STATUS_FAILED = "failed";
|
|
16
14
|
export const ORDER_STATUS_SUCCESS = "success";
|
|
@@ -25,6 +23,7 @@ interface PaymentStatusComponentProps {
|
|
|
25
23
|
onCloseWindow: () => void;
|
|
26
24
|
onBack?: () => void;
|
|
27
25
|
onTryAgain?: () => void;
|
|
26
|
+
totalAmount?: number;
|
|
28
27
|
isLoading?: boolean;
|
|
29
28
|
status: OrderStatusPrefix;
|
|
30
29
|
isAppUsingInIframe?: boolean;
|
|
@@ -32,8 +31,6 @@ interface PaymentStatusComponentProps {
|
|
|
32
31
|
EventCardComponent?: ReactNode;
|
|
33
32
|
showCloseButton?: boolean;
|
|
34
33
|
email?: string;
|
|
35
|
-
totalAmount?: number;
|
|
36
|
-
paymentMetadata?: PaymentMetadata;
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
// @TODO In future think, how to reuse this component in Iframe Pending, Success and Failed Pages
|
|
@@ -41,6 +38,7 @@ export const PaymentStatusPage = ({
|
|
|
41
38
|
onCloseWindow,
|
|
42
39
|
onBack,
|
|
43
40
|
onTryAgain,
|
|
41
|
+
totalAmount,
|
|
44
42
|
isLoading,
|
|
45
43
|
status,
|
|
46
44
|
isAppUsingInIframe,
|
|
@@ -48,8 +46,6 @@ export const PaymentStatusPage = ({
|
|
|
48
46
|
EventCardComponent,
|
|
49
47
|
showCloseButton = false,
|
|
50
48
|
email,
|
|
51
|
-
totalAmount = 0,
|
|
52
|
-
paymentMetadata,
|
|
53
49
|
}: PaymentStatusComponentProps) => {
|
|
54
50
|
const { t } = useTranslation("Design");
|
|
55
51
|
|
|
@@ -69,20 +65,6 @@ export const PaymentStatusPage = ({
|
|
|
69
65
|
if (isLoading) {
|
|
70
66
|
return <LoaderIndicator isLoaded={false} />;
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
const orderTotalAmounByFormValues = cartSumByOrderProducts(
|
|
74
|
-
Object.values(bookingSummaryProps?.formValues)
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
// User can fill promocode only in iframe appcliation.
|
|
78
|
-
// It didn't possible via payment link. This check will
|
|
79
|
-
// be applied when there are no metadata and in case when
|
|
80
|
-
// orderValues sum is greater than amount in order.
|
|
81
|
-
// For payment status page booking summary props can be empty
|
|
82
|
-
// so we should also check for them
|
|
83
|
-
const isCalculatedAmountGreaterThanOrderAmount =
|
|
84
|
-
bookingSummaryProps && orderTotalAmounByFormValues > totalAmount;
|
|
85
|
-
|
|
86
68
|
return (
|
|
87
69
|
<Page
|
|
88
70
|
className="payment-status-page"
|
|
@@ -116,51 +98,16 @@ export const PaymentStatusPage = ({
|
|
|
116
98
|
<PageBody.RightBlock
|
|
117
99
|
bottomBlock={
|
|
118
100
|
<BookingSummaryFooter showButton={false}>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/>
|
|
130
|
-
<SummaryTotalBlock
|
|
131
|
-
label={t("remaining")}
|
|
132
|
-
amount={
|
|
133
|
-
totalAmount +
|
|
134
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
135
|
-
}
|
|
136
|
-
/>
|
|
137
|
-
</>
|
|
138
|
-
) : (
|
|
139
|
-
<>
|
|
140
|
-
{isCalculatedAmountGreaterThanOrderAmount && (
|
|
141
|
-
<SummaryTotalBlock
|
|
142
|
-
label={t("total")}
|
|
143
|
-
amount={
|
|
144
|
-
orderTotalAmounByFormValues +
|
|
145
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
146
|
-
}
|
|
147
|
-
/>
|
|
148
|
-
)}
|
|
149
|
-
|
|
150
|
-
<SummaryTotalBlock
|
|
151
|
-
label={t(
|
|
152
|
-
isCalculatedAmountGreaterThanOrderAmount
|
|
153
|
-
? "totalWithDiscount"
|
|
154
|
-
: "total"
|
|
155
|
-
)}
|
|
156
|
-
amount={
|
|
157
|
-
totalAmount +
|
|
158
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
159
|
-
}
|
|
160
|
-
/>
|
|
161
|
-
</>
|
|
162
|
-
)}
|
|
163
|
-
</div>
|
|
101
|
+
{bookingSummaryProps?.formValues ? (
|
|
102
|
+
<BookingSummary.SummaryTotal
|
|
103
|
+
formValues={bookingSummaryProps?.formValues}
|
|
104
|
+
/>
|
|
105
|
+
) : (
|
|
106
|
+
<SummaryTotalBlock
|
|
107
|
+
label={t("total")}
|
|
108
|
+
amount={totalAmount || 0}
|
|
109
|
+
/>
|
|
110
|
+
)}
|
|
164
111
|
</BookingSummaryFooter>
|
|
165
112
|
}
|
|
166
113
|
>
|
|
@@ -165,10 +165,7 @@ export function ProductCategoriesControl({
|
|
|
165
165
|
return sum + Number(product.price) * Number(product.totalQuantity);
|
|
166
166
|
}, 0);
|
|
167
167
|
const quantity = productCategory.products?.reduce((sum, product) => {
|
|
168
|
-
|
|
169
|
-
? Number(product.totalQuantity)
|
|
170
|
-
: 0;
|
|
171
|
-
return sum + productQuantity;
|
|
168
|
+
return sum + Number(product.totalQuantity);
|
|
172
169
|
}, 0);
|
|
173
170
|
|
|
174
171
|
setProductCategoryState((prevState) => ({
|
|
@@ -85,14 +85,11 @@ export function ProductsControl({
|
|
|
85
85
|
trigger,
|
|
86
86
|
setValue,
|
|
87
87
|
watch,
|
|
88
|
-
getValues,
|
|
89
88
|
} = form;
|
|
90
89
|
|
|
91
90
|
const productControlFieldName =
|
|
92
91
|
`steps.${stepIndex}.productCategories.${productCategoryIndex}.products` as const;
|
|
93
92
|
|
|
94
|
-
const productPointsKey = `steps.${stepIndex}.pointProducts` as const;
|
|
95
|
-
|
|
96
93
|
const { fields, append, remove, move } = useFieldArray({
|
|
97
94
|
name: productControlFieldName,
|
|
98
95
|
control,
|
|
@@ -159,22 +156,6 @@ export function ProductsControl({
|
|
|
159
156
|
});
|
|
160
157
|
};
|
|
161
158
|
|
|
162
|
-
const onProductRemove = (index: number) => {
|
|
163
|
-
const currentProduct = getValues(
|
|
164
|
-
`${productControlFieldName}.${index}` as const
|
|
165
|
-
);
|
|
166
|
-
|
|
167
|
-
const currentPointProducts = getValues(productPointsKey);
|
|
168
|
-
|
|
169
|
-
setValue(
|
|
170
|
-
productPointsKey,
|
|
171
|
-
currentPointProducts?.filter(
|
|
172
|
-
(product) => product.productUuid !== currentProduct.uuid
|
|
173
|
-
) || []
|
|
174
|
-
);
|
|
175
|
-
remove(index);
|
|
176
|
-
};
|
|
177
|
-
|
|
178
159
|
return (
|
|
179
160
|
<>
|
|
180
161
|
<SortableTree
|
|
@@ -238,7 +219,7 @@ export function ProductsControl({
|
|
|
238
219
|
categoryType={categoryType}
|
|
239
220
|
/>
|
|
240
221
|
}
|
|
241
|
-
onDelete={() =>
|
|
222
|
+
onDelete={() => remove(index)}
|
|
242
223
|
validate={() => trigger(`${productControlFieldName}.${index}`)}
|
|
243
224
|
// preItem={<Popover className="d-none d-sm-block" />}
|
|
244
225
|
>
|