@licklist/design 0.44.485-dev.28 → 0.44.485-dev.3
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-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 +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/MapPoint/components/ProductIcon/ProductIcon.js +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/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 +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/CategoryProduct/components/NumberInput/NumberInput.d.ts +0 -1
- 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 +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/index.d.ts +0 -1
- 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/product-set/control/ProductSetControl.d.ts +4 -15
- 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 +0 -1
- 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 +3 -7
- 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/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 +0 -4
- 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/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 -1
- package/dist/sales/filters/SaleFilters.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/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/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/styles/events/EventStatisticModal.scss +37 -0
- package/dist/styles/packages.scss +0 -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 +12 -5
- 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 +2 -3
- 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.stories.tsx +2 -1
- package/src/customers/components/filter/CustomerFilter.tsx +5 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +2 -11
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +4 -5
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -4
- package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +2 -13
- 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/event/event-venue-map/IframeEventVenueMap.stories.tsx +0 -5
- package/src/iframe/order-process/OrderProcess.stories.tsx +0 -1
- 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/BookingSummary/utils/index.ts +2 -6
- 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 +2 -32
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -3
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +2 -3
- 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 -45
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +12 -66
- package/src/index.ts +0 -1
- package/src/product-set/control/ProductSetControl.tsx +33 -38
- package/src/product-set/form/ProductSetForm.stories.tsx +2 -41
- package/src/product-set/form/ProductSetForm.tsx +0 -11
- package/src/product-set/form/ProductsControl.tsx +1 -20
- package/src/product-set/form/StepsControl.tsx +2 -20
- package/src/product-set/product/ProductControl.tsx +10 -25
- package/src/product-set/product/price/ProductPriceControl.tsx +21 -42
- package/src/product-set/utils/index.ts +0 -28
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +2 -0
- package/src/sales/filters/SaleFilters.tsx +1 -1
- 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/sales/manual-booking/select-menu/SelectMenu.tsx +1 -1
- package/src/styles/customers/Filter.scss +4 -23
- package/src/styles/events/EventStatisticModal.scss +37 -0
- package/src/styles/packages.scss +0 -1
- package/src/table/StaticTable.tsx +2 -4
- package/src/typeahead/Typeahead.stories.tsx +6 -9
- package/src/typeahead/Typeahead.tsx +12 -9
- package/src/types/iframe.ts +0 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +0 -9
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +0 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +0 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +0 -2
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +0 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts +0 -7
- package/dist/striped-static-table/StripedStaticTable.d.ts.map +0 -1
- package/dist/striped-static-table/StripedStaticTable.js +0 -1
- package/dist/striped-static-table/index.d.ts +0 -2
- package/dist/striped-static-table/index.d.ts.map +0 -1
- package/dist/styles/striped-static-table/_index.scss +0 -33
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +0 -68
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +0 -1
- package/src/striped-static-table/StripedStaticTable.stories.tsx +0 -71
- package/src/striped-static-table/StripedStaticTable.tsx +0 -63
- package/src/striped-static-table/index.ts +0 -1
- package/src/styles/striped-static-table/_index.scss +0 -33
|
@@ -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,19 +99,6 @@ export const PaymentPage = ({
|
|
|
100
99
|
);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
|
-
const orderTotalAmounByFormValues = cartSumByOrderProducts(
|
|
104
|
-
bookingSummaryProps && bookingSummaryProps?.formValues
|
|
105
|
-
? Object.values(bookingSummaryProps?.formValues)
|
|
106
|
-
: undefined
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
// User can fill promocode only in iframe appcliation.
|
|
110
|
-
// It didn't possible via payment link. This check will
|
|
111
|
-
// be applied when there are no metadata and in case when
|
|
112
|
-
// orderValues sum is greater than amount in order.
|
|
113
|
-
const isCalculatedAmountGreaterThanOrderAmount =
|
|
114
|
-
orderTotalAmounByFormValues > data?.amount;
|
|
115
|
-
|
|
116
102
|
return (
|
|
117
103
|
<Page
|
|
118
104
|
className="payment_link"
|
|
@@ -141,7 +127,7 @@ export const PaymentPage = ({
|
|
|
141
127
|
bottomBlock={
|
|
142
128
|
<BookingSummaryFooter showButton={false}>
|
|
143
129
|
<div className="d-flex flex-column justify-content-between">
|
|
144
|
-
{paymentMetadata
|
|
130
|
+
{paymentMetadata && (
|
|
145
131
|
<>
|
|
146
132
|
<SummaryTotalBlock
|
|
147
133
|
label={t("total")}
|
|
@@ -151,38 +137,12 @@ export const PaymentPage = ({
|
|
|
151
137
|
label={t("paidSum")}
|
|
152
138
|
amount={paymentMetadata.paid || 0}
|
|
153
139
|
/>
|
|
154
|
-
<SummaryTotalBlock
|
|
155
|
-
label={t("remaining")}
|
|
156
|
-
amount={
|
|
157
|
-
paymentMetadata.total - paymentMetadata.paid || 0
|
|
158
|
-
}
|
|
159
|
-
/>
|
|
160
|
-
</>
|
|
161
|
-
) : (
|
|
162
|
-
<>
|
|
163
|
-
{isCalculatedAmountGreaterThanOrderAmount && (
|
|
164
|
-
<SummaryTotalBlock
|
|
165
|
-
label={t("total")}
|
|
166
|
-
amount={
|
|
167
|
-
orderTotalAmounByFormValues +
|
|
168
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
169
|
-
}
|
|
170
|
-
/>
|
|
171
|
-
)}
|
|
172
|
-
|
|
173
|
-
<SummaryTotalBlock
|
|
174
|
-
label={t(
|
|
175
|
-
isCalculatedAmountGreaterThanOrderAmount
|
|
176
|
-
? "totalWithDiscount"
|
|
177
|
-
: "total"
|
|
178
|
-
)}
|
|
179
|
-
amount={
|
|
180
|
-
data?.amount +
|
|
181
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
182
|
-
}
|
|
183
|
-
/>
|
|
184
140
|
</>
|
|
185
141
|
)}
|
|
142
|
+
<SummaryTotalBlock
|
|
143
|
+
label={t(paymentMetadata ? "remaining" : "total")}
|
|
144
|
+
amount={data?.amount || 0}
|
|
145
|
+
/>
|
|
186
146
|
</div>
|
|
187
147
|
</BookingSummaryFooter>
|
|
188
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,22 +65,6 @@ export const PaymentStatusPage = ({
|
|
|
69
65
|
if (isLoading) {
|
|
70
66
|
return <LoaderIndicator isLoaded={false} />;
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
const orderTotalAmounByFormValues = cartSumByOrderProducts(
|
|
74
|
-
bookingSummaryProps && bookingSummaryProps?.formValues
|
|
75
|
-
? Object.values(bookingSummaryProps?.formValues)
|
|
76
|
-
: undefined
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
// User can fill promocode only in iframe appcliation.
|
|
80
|
-
// It didn't possible via payment link. This check will
|
|
81
|
-
// be applied when there are no metadata and in case when
|
|
82
|
-
// orderValues sum is greater than amount in order.
|
|
83
|
-
// For payment status page booking summary props can be empty
|
|
84
|
-
// so we should also check for them
|
|
85
|
-
const isCalculatedAmountGreaterThanOrderAmount =
|
|
86
|
-
bookingSummaryProps && orderTotalAmounByFormValues > totalAmount;
|
|
87
|
-
|
|
88
68
|
return (
|
|
89
69
|
<Page
|
|
90
70
|
className="payment-status-page"
|
|
@@ -118,50 +98,16 @@ export const PaymentStatusPage = ({
|
|
|
118
98
|
<PageBody.RightBlock
|
|
119
99
|
bottomBlock={
|
|
120
100
|
<BookingSummaryFooter showButton={false}>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/>
|
|
132
|
-
<SummaryTotalBlock
|
|
133
|
-
label={t("remaining")}
|
|
134
|
-
amount={
|
|
135
|
-
paymentMetadata.total - paymentMetadata.paid || 0
|
|
136
|
-
}
|
|
137
|
-
/>
|
|
138
|
-
</>
|
|
139
|
-
) : (
|
|
140
|
-
<>
|
|
141
|
-
{isCalculatedAmountGreaterThanOrderAmount && (
|
|
142
|
-
<SummaryTotalBlock
|
|
143
|
-
label={t("total")}
|
|
144
|
-
amount={
|
|
145
|
-
orderTotalAmounByFormValues +
|
|
146
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
147
|
-
}
|
|
148
|
-
/>
|
|
149
|
-
)}
|
|
150
|
-
|
|
151
|
-
<SummaryTotalBlock
|
|
152
|
-
label={t(
|
|
153
|
-
isCalculatedAmountGreaterThanOrderAmount
|
|
154
|
-
? "totalWithDiscount"
|
|
155
|
-
: "total"
|
|
156
|
-
)}
|
|
157
|
-
amount={
|
|
158
|
-
totalAmount +
|
|
159
|
-
(bookingSummaryProps?.transactionFee || 0)
|
|
160
|
-
}
|
|
161
|
-
/>
|
|
162
|
-
</>
|
|
163
|
-
)}
|
|
164
|
-
</div>
|
|
101
|
+
{bookingSummaryProps?.formValues ? (
|
|
102
|
+
<BookingSummary.SummaryTotal
|
|
103
|
+
formValues={bookingSummaryProps?.formValues}
|
|
104
|
+
/>
|
|
105
|
+
) : (
|
|
106
|
+
<SummaryTotalBlock
|
|
107
|
+
label={t("total")}
|
|
108
|
+
amount={totalAmount || 0}
|
|
109
|
+
/>
|
|
110
|
+
)}
|
|
165
111
|
</BookingSummaryFooter>
|
|
166
112
|
}
|
|
167
113
|
>
|
package/src/index.ts
CHANGED
|
@@ -26,19 +26,12 @@ import {
|
|
|
26
26
|
import TutorialGifCard from "./TutorialGifCard";
|
|
27
27
|
import { Step } from "../types";
|
|
28
28
|
import { StepsControl } from "../form/StepsControl";
|
|
29
|
-
import { Typeahead } from "../../typeahead";
|
|
30
29
|
|
|
31
30
|
const OPERATIONAL_COST_TITLES = {
|
|
32
31
|
[OPERATIONAL_COST_PROVIDER]: "operationalCostProvider",
|
|
33
32
|
[OPERATIONAL_COST_CUSTOMER]: "operationalCostCustomer",
|
|
34
33
|
} as const;
|
|
35
34
|
|
|
36
|
-
export interface TemplateItem {
|
|
37
|
-
id: string;
|
|
38
|
-
value: EmailTemplate | SmsTemplate;
|
|
39
|
-
label: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
35
|
export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
43
36
|
name: string;
|
|
44
37
|
type: ProductSetType;
|
|
@@ -48,8 +41,8 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
|
48
41
|
productGroups?: SelectItem[];
|
|
49
42
|
fieldSetId?: number;
|
|
50
43
|
steps?: Step[];
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
emailTemplateId?: number;
|
|
45
|
+
smsTemplateId?: number;
|
|
53
46
|
}
|
|
54
47
|
|
|
55
48
|
export interface ProductSetControlShared {
|
|
@@ -59,17 +52,11 @@ export interface ProductSetControlShared {
|
|
|
59
52
|
smsTemplates?: SmsTemplate[];
|
|
60
53
|
}
|
|
61
54
|
|
|
62
|
-
export interface ProductSetControlProps {
|
|
55
|
+
export interface ProductSetControlProps extends ProductSetControlShared {
|
|
63
56
|
companyName: string;
|
|
64
57
|
isLoading: boolean;
|
|
65
58
|
isEventEditProductSet?: boolean;
|
|
66
59
|
isCreateAction?: boolean;
|
|
67
|
-
emailTemplates?: TemplateItem[];
|
|
68
|
-
smsTemplates?: TemplateItem[];
|
|
69
|
-
fee?: string;
|
|
70
|
-
fieldSets?: FieldSet[];
|
|
71
|
-
showEmailTemplate?: boolean;
|
|
72
|
-
showSmsTemplate?: boolean;
|
|
73
60
|
}
|
|
74
61
|
|
|
75
62
|
export function ProductSetControl({
|
|
@@ -81,8 +68,6 @@ export function ProductSetControl({
|
|
|
81
68
|
smsTemplates = [],
|
|
82
69
|
isEventEditProductSet,
|
|
83
70
|
isCreateAction,
|
|
84
|
-
showEmailTemplate,
|
|
85
|
-
showSmsTemplate,
|
|
86
71
|
}: ProductSetControlProps) {
|
|
87
72
|
const { t } = useTranslation(["Design", "Validation", "Notification"]);
|
|
88
73
|
const {
|
|
@@ -95,6 +80,8 @@ export function ProductSetControl({
|
|
|
95
80
|
} = useFormContext<ProductSetControlValues>();
|
|
96
81
|
|
|
97
82
|
const steps = watch("steps");
|
|
83
|
+
const smsTemplateId = watch("smsTemplateId");
|
|
84
|
+
const emailTemplateId = watch("emailTemplateId");
|
|
98
85
|
|
|
99
86
|
const nameId = useId();
|
|
100
87
|
const termsAndConditionsId = useId();
|
|
@@ -232,16 +219,20 @@ export function ProductSetControl({
|
|
|
232
219
|
<Form.Label className="mt-4">
|
|
233
220
|
{t("Design:emailTemplate")}
|
|
234
221
|
</Form.Label>
|
|
235
|
-
{
|
|
236
|
-
<
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
222
|
+
{emailTemplates.length > 0 ? (
|
|
223
|
+
<Form.Control {...register("emailTemplateId")} as="select">
|
|
224
|
+
<option value="" selected={String(emailTemplateId) === ""}>
|
|
225
|
+
{t("Design:choose")}
|
|
226
|
+
</option>
|
|
227
|
+
{emailTemplates.map((emailTemplate) => (
|
|
228
|
+
<option
|
|
229
|
+
value={Number(emailTemplate.notification.id)}
|
|
230
|
+
key={emailTemplate.id}
|
|
231
|
+
>
|
|
232
|
+
{emailTemplate.notification.name}
|
|
233
|
+
</option>
|
|
234
|
+
))}
|
|
235
|
+
</Form.Control>
|
|
245
236
|
) : (
|
|
246
237
|
<WarningMessage
|
|
247
238
|
message={t("Design:noActiveTemplates", {
|
|
@@ -255,16 +246,20 @@ export function ProductSetControl({
|
|
|
255
246
|
>
|
|
256
247
|
{t("Design:smsTemplate")}
|
|
257
248
|
</Form.Label>
|
|
258
|
-
{
|
|
259
|
-
<
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
249
|
+
{smsTemplates.length > 0 ? (
|
|
250
|
+
<Form.Control {...register("smsTemplateId")} as="select">
|
|
251
|
+
<option value="" selected={String(smsTemplateId) === ""}>
|
|
252
|
+
{t("Design:choose")}
|
|
253
|
+
</option>
|
|
254
|
+
{smsTemplates.map((smsTemplate) => (
|
|
255
|
+
<option
|
|
256
|
+
value={Number(smsTemplate.notification.id)}
|
|
257
|
+
key={smsTemplate.id}
|
|
258
|
+
>
|
|
259
|
+
{smsTemplate.notification.name}
|
|
260
|
+
</option>
|
|
261
|
+
))}
|
|
262
|
+
</Form.Control>
|
|
268
263
|
) : (
|
|
269
264
|
<WarningMessage
|
|
270
265
|
message={t("Design:noActiveTemplates", {
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Meta, Story } from "@storybook/react";
|
|
5
5
|
import { boolean } from "@storybook/addon-knobs";
|
|
6
|
-
import {
|
|
7
|
-
CONFIRMATION_TYPE,
|
|
8
|
-
PAYMENT_LINK_TYPE,
|
|
9
|
-
} from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
|
|
10
|
-
|
|
11
6
|
import {
|
|
12
7
|
OPERATIONAL_COST_CUSTOMER,
|
|
13
8
|
OPERATIONAL_COST_PROVIDER,
|
|
@@ -362,14 +357,12 @@ Default.args = {
|
|
|
362
357
|
body: "",
|
|
363
358
|
meta: "",
|
|
364
359
|
notification: {
|
|
365
|
-
|
|
366
|
-
isActive: true,
|
|
360
|
+
isActive: false,
|
|
367
361
|
isDefault: false,
|
|
368
362
|
name: "Template name 1",
|
|
369
363
|
companyId: 1,
|
|
370
364
|
providerId: 1,
|
|
371
365
|
fieldSetId: 1,
|
|
372
|
-
type: CONFIRMATION_TYPE,
|
|
373
366
|
},
|
|
374
367
|
},
|
|
375
368
|
{
|
|
@@ -378,44 +371,12 @@ Default.args = {
|
|
|
378
371
|
body: "",
|
|
379
372
|
meta: "",
|
|
380
373
|
notification: {
|
|
381
|
-
|
|
382
|
-
isActive: true,
|
|
383
|
-
isDefault: false,
|
|
384
|
-
name: "Tempalte name 2",
|
|
385
|
-
companyId: 1,
|
|
386
|
-
providerId: 1,
|
|
387
|
-
fieldSetId: 1,
|
|
388
|
-
type: CONFIRMATION_TYPE,
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
],
|
|
392
|
-
smsTemplates: [
|
|
393
|
-
{
|
|
394
|
-
id: "1",
|
|
395
|
-
body: "",
|
|
396
|
-
notification: {
|
|
397
|
-
id: 3,
|
|
398
|
-
isActive: true,
|
|
399
|
-
isDefault: false,
|
|
400
|
-
name: "Tempalte name 1",
|
|
401
|
-
companyId: 1,
|
|
402
|
-
providerId: 1,
|
|
403
|
-
fieldSetId: 1,
|
|
404
|
-
type: PAYMENT_LINK_TYPE,
|
|
405
|
-
},
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
id: "2",
|
|
409
|
-
body: "",
|
|
410
|
-
notification: {
|
|
411
|
-
id: 4,
|
|
412
|
-
isActive: true,
|
|
374
|
+
isActive: false,
|
|
413
375
|
isDefault: false,
|
|
414
376
|
name: "Tempalte name 2",
|
|
415
377
|
companyId: 1,
|
|
416
378
|
providerId: 1,
|
|
417
379
|
fieldSetId: 1,
|
|
418
|
-
type: PAYMENT_LINK_TYPE,
|
|
419
380
|
},
|
|
420
381
|
},
|
|
421
382
|
],
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
import { Step } from "../types";
|
|
21
21
|
import { ProductSetContextProvider, ProductSetLoadingContext } from "./context";
|
|
22
22
|
import { SelectItem } from "../../types/generic/SelectItem";
|
|
23
|
-
import { getFilteredTemplates } from "../utils";
|
|
24
23
|
|
|
25
24
|
export interface WithIsLoading {
|
|
26
25
|
isLoading: boolean;
|
|
@@ -134,16 +133,6 @@ export function ProductSetForm({
|
|
|
134
133
|
<>
|
|
135
134
|
<ProductSetControl
|
|
136
135
|
{...shared}
|
|
137
|
-
smsTemplates={getFilteredTemplates(
|
|
138
|
-
shared?.smsTemplates,
|
|
139
|
-
formValues?.smsTemplates
|
|
140
|
-
)}
|
|
141
|
-
emailTemplates={getFilteredTemplates(
|
|
142
|
-
shared?.emailTemplates,
|
|
143
|
-
formValues?.emailTemplates
|
|
144
|
-
)}
|
|
145
|
-
showEmailTemplate={!!shared?.emailTemplates}
|
|
146
|
-
showSmsTemplate={!!shared?.smsTemplates}
|
|
147
136
|
isLoading={isLoading}
|
|
148
137
|
isCreateAction={isCreateAction}
|
|
149
138
|
companyName={companyName}
|
|
@@ -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
|
>
|
|
@@ -28,7 +28,6 @@ export function StepsControl({ isLoading }: StepsControlProps) {
|
|
|
28
28
|
formState: { errors, isSubmitting },
|
|
29
29
|
clearErrors,
|
|
30
30
|
getValues,
|
|
31
|
-
setFocus,
|
|
32
31
|
} = form;
|
|
33
32
|
|
|
34
33
|
const { fields, append, remove } = useFieldArray({
|
|
@@ -58,14 +57,12 @@ export function StepsControl({ isLoading }: StepsControlProps) {
|
|
|
58
57
|
return (
|
|
59
58
|
<>
|
|
60
59
|
{fields.map((step, index) => {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const stepData = getValues(stepFieldName);
|
|
60
|
+
const stepData: any = getValues(`steps.${index}` as const);
|
|
64
61
|
|
|
65
62
|
return (
|
|
66
63
|
<Controller
|
|
67
64
|
key={`step-${step._id}`}
|
|
68
|
-
name={
|
|
65
|
+
name={`steps.${index}.name` as const}
|
|
69
66
|
control={control}
|
|
70
67
|
rules={{
|
|
71
68
|
required: t("Validation:fieldRequired", {
|
|
@@ -107,21 +104,6 @@ export function StepsControl({ isLoading }: StepsControlProps) {
|
|
|
107
104
|
? step.productCategories.map(({ id }) => String(id))
|
|
108
105
|
: []
|
|
109
106
|
}
|
|
110
|
-
validate={() => {
|
|
111
|
-
// @TODO investigate why form return true in case
|
|
112
|
-
// when required field not filled. Looks like
|
|
113
|
-
// we cann't use default hookForm trigger function
|
|
114
|
-
// because we have venueMap outside this form.
|
|
115
|
-
// So before closing we need to check directly by
|
|
116
|
-
// error on name field. Instead of run trugger.
|
|
117
|
-
const error = errors.steps?.[index]?.name;
|
|
118
|
-
|
|
119
|
-
if (error) {
|
|
120
|
-
setFocus(`${stepFieldName}.name` as const);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return Promise.resolve(!error);
|
|
124
|
-
}}
|
|
125
107
|
>
|
|
126
108
|
<ProductCategoriesControl
|
|
127
109
|
isLoading={isLoading}
|