@licklist/design 0.44.485-dev.6 → 0.44.485-dev.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/types/index.d.ts +1 -1
- package/dist/affiliate/types/index.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts +3 -3
- package/dist/custom-fields/field-set/CustomFieldSets.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts +2 -2
- package/dist/custom-fields/field-set/contexts/useCustomFieldSets.d.ts.map +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts +1 -1
- package/dist/customers/components/filter/CustomerFilter.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts +4 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +3 -3
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/events/event-venue-map/EventVenueMap.d.ts +5 -2
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/ProductsControl/ProductsControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/SelectControl/SelectControl.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/MapPoint.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/DeleteIcon/DeleteIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/EditIcon/EditIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/PointIcon/PointIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.js +1 -1
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts +9 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.js +1 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts +2 -0
- package/dist/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.d.ts.map +1 -0
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts +4 -2
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/VenueMap/VenueMap.js +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts +1 -1
- package/dist/events/event-venue-map/hooks/useStageActions.d.ts.map +1 -1
- package/dist/events/event-venue-map/types/index.d.ts +5 -5
- package/dist/events/event-venue-map/types/index.d.ts.map +1 -1
- package/dist/events/event-venue-map/utils/index.d.ts +3 -3
- package/dist/events/event-venue-map/utils/index.d.ts.map +1 -1
- package/dist/file-upload/FilePreview.d.ts +2 -2
- package/dist/file-upload/FilePreview.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/header/Header.d.ts +1 -1
- package/dist/header/Header.d.ts.map +1 -1
- package/dist/help/example/Example.d.ts +4 -4
- package/dist/help/example/Example.d.ts.map +1 -1
- package/dist/help/popover/HelpPopover.d.ts +1 -1
- package/dist/help/popover/HelpPopover.d.ts.map +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts +1 -1
- package/dist/iframe/custom-fields/components/CustomDateField.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts +1 -1
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts +2 -2
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts +1 -1
- package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts +1 -1
- package/dist/iframe/event/event-details/EventDetails.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts +5 -6
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.d.ts.map +1 -1
- package/dist/iframe/event/event-order-short-summary/components/Summary/Summary.js +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/EventProductSets.d.ts.map +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts +1 -1
- package/dist/iframe/event/event-product-sets/components/EventProductSet.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/EventStepVenueMapZones.d.ts.map +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts +1 -1
- package/dist/iframe/event/event-step-venue-map-zones/components/EventStepVenueMapZone.d.ts.map +1 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts +5 -1
- package/dist/iframe/event/event-venue-map/IframeEventVenueMap.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/BookingSummaryAccordion/BookingSummaryAccordion.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/components/SummaryTotalBlock.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +4 -4
- package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts +3 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/Category.js +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts +4 -2
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +1 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts +2 -1
- package/dist/iframe/order-process/components/Category/Category.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Category/Category.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts +2 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts +1 -0
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts +1 -1
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts +2 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/StepsForm/StepsForm.js +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/Timer.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
- package/dist/iframe/page/Page.d.ts +1 -1
- package/dist/iframe/page/Page.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/PageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/components/RightBlock/RightBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts +1 -1
- package/dist/iframe/page/components/PageBody/types.d.ts.map +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/iframe/page/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +5 -0
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
- package/dist/iframe/payment/order-items-table/types/index.d.ts +2 -2
- package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts +6 -1
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts +1 -0
- package/dist/iframe/payment/payment-page/PaymentTimer.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts +1 -1
- package/dist/iframe/payment/payment-status-header/PaymentStatusHeader.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts +5 -3
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts +1 -1
- package/dist/iframe/powered-by/PoweredBy.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +2 -2
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts +4 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.js +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +3 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +7 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +1 -1
- package/dist/notification/hooks/useTranslatedParameters.d.ts +7 -0
- package/dist/notification/hooks/useTranslatedParameters.d.ts.map +1 -0
- package/dist/notification/hooks/useTranslatedParameters.js +1 -0
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts +4 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.js +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts +6 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.d.ts.map +1 -1
- package/dist/notification/sms-template/control/SmsTemplateControl.js +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts +5 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.d.ts.map +1 -1
- package/dist/notification/sms-template/form/SmsTemplateForm.js +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts +16 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +1 -1
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts +3 -3
- package/dist/product-set/deposit-paid/ProductSetDepositPaidControl.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts +1 -1
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +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/hooks/useSortableTreeFunctions.d.ts +11 -0
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -0
- package/dist/product-set/hooks/useSortableTreeFunctions.js +1 -0
- package/dist/product-set/popover/ProductSetPopover.d.ts +1 -1
- package/dist/product-set/popover/ProductSetPopover.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts +1 -1
- package/dist/product-set/product/fixed-duration-fields/FixedDurationOptions.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.d.ts +7 -3
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTab.d.ts.map +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts +1 -1
- package/dist/product-set/tabs/ProductSetTabs.d.ts.map +1 -1
- package/dist/product-set/types/index.d.ts +5 -5
- package/dist/product-set/types/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +4 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInput.d.ts.map +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts +1 -1
- package/dist/provider/categories-input/CategoriesInputDescription.d.ts.map +1 -1
- package/dist/provider/categories-input/index.d.ts +1 -1
- package/dist/provider/categories-input/index.d.ts.map +1 -1
- package/dist/provider/company/user-form/UserForm.d.ts +2 -2
- package/dist/provider/company/user-form/UserForm.d.ts.map +1 -1
- package/dist/provider/constants.d.ts +2 -0
- package/dist/provider/constants.d.ts.map +1 -0
- package/dist/provider/constants.js +1 -0
- 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 +5 -2
- package/dist/sales/booking/filter/BookingFilter.d.ts.map +1 -1
- package/dist/sales/booking/filter/BookingFilter.js +1 -1
- package/dist/sales/booking/filter/components/AdditionalFIlterSection.d.ts +3 -2
- 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 +2 -2
- package/dist/sales/booking/filter/components/MainFilterSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/MainFilterSection.js +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts +1 -1
- package/dist/sales/booking/filter/components/ResultTagButton.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/SearchingForSection.d.ts +8 -1
- package/dist/sales/booking/filter/components/SearchingForSection.d.ts.map +1 -1
- package/dist/sales/booking/filter/components/SearchingForSection.js +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts +1 -1
- package/dist/sales/booking/results/BookingResults.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/tabs/BookingTabs.d.ts +3 -2
- package/dist/sales/booking/tabs/BookingTabs.d.ts.map +1 -1
- package/dist/sales/booking/tabs/BookingTabs.js +1 -1
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +1 -1
- package/dist/sales/filters/SaleFilters.d.ts +2 -3
- package/dist/sales/filters/SaleFilters.d.ts.map +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts +1 -1
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts +1 -1
- package/dist/sales/guest-profile/profile/components/ImageHolder/ImageHolder.d.ts.map +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts +1 -1
- package/dist/sales/guest-profile/user-metrics/UserMetrics.d.ts.map +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts +1 -1
- package/dist/sales/guest-profile/visited-providers/VisitedProviders.d.ts.map +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts +1 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.d.ts.map +1 -1
- package/dist/sales/manual-booking/create-user/CreateUser.js +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts +1 -1
- package/dist/sales/manual-booking/customer-info/CustomerInfo.d.ts.map +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts +1 -1
- package/dist/sales/manual-booking/final-step/FinalStep.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts +1 -1
- package/dist/sales/manual-booking/select-date-type-control/SelectDateTypeControl.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts +1 -1
- package/dist/sales/manual-booking/select-menu/components/MenuButton.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.d.ts +1 -1
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts +1 -1
- package/dist/sales/notes/NotesTableRow.d.ts.map +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts +1 -1
- package/dist/sales/notes/note-form/NoteForm.d.ts.map +1 -1
- package/dist/sales/payment-form/SalePaymentForm.d.ts +2 -2
- package/dist/sales/payment-form/SalePaymentForm.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/types.d.ts +2 -2
- package/dist/sales/payment-form/types.d.ts.map +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts +1 -1
- package/dist/sales/sales-and-views/SalesAndViewsChart.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +1 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts +2 -2
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/EventSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/EventSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/FinancialDataForm.d.ts +2 -2
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/OtherSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/OtherSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts +2 -2
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/control/SnippetControl.js +1 -1
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts +2 -2
- package/dist/setting/dashboard/snippets/form/SnippetForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/modal/SnippetViewTypeModal.js +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts +1 -1
- package/dist/setting/system/SystemSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/SnippetTemplate.js +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts +1 -1
- package/dist/snippet/snippet-template/context/snippetTemplate.d.ts.map +1 -1
- package/dist/snippet/snippet-template/form/SnippetTemplateForm.js +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/sortable-list/SortableList.d.ts +4 -4
- package/dist/sortable-list/SortableList.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +5 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +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 +3 -2
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +1 -1
- package/dist/static/images/DefaultUserImage.d.ts +1 -1
- package/dist/static/images/DefaultUserImage.d.ts.map +1 -1
- package/dist/static/loader/ButtonLoader.d.ts +1 -1
- package/dist/static/loader/ButtonLoader.d.ts.map +1 -1
- package/dist/static/loader/PaymentLoader.d.ts +1 -1
- package/dist/static/loader/PaymentLoader.d.ts.map +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts +1 -1
- package/dist/static/manual-date-picker/ManualDatePicker.d.ts.map +1 -1
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts +2 -2
- package/dist/static/manual-date-picker/hooks/useManualDatePicker.d.ts.map +1 -1
- package/dist/static/tabs/Tab.d.ts +1 -1
- package/dist/static/tabs/Tab.d.ts.map +1 -1
- package/dist/static/tabs/Tabs.d.ts +1 -1
- package/dist/static/tabs/Tabs.d.ts.map +1 -1
- package/dist/striped-static-table/StripedStaticTable.d.ts +7 -0
- package/dist/striped-static-table/StripedStaticTable.d.ts.map +1 -0
- package/dist/striped-static-table/StripedStaticTable.js +1 -0
- package/dist/striped-static-table/index.d.ts +2 -0
- package/dist/striped-static-table/index.d.ts.map +1 -0
- package/dist/styles/events/EventStatisticModal.scss +0 -37
- package/dist/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
- package/dist/styles/iframe-page/PageBody.scss +2 -0
- package/dist/styles/packages.scss +1 -0
- package/dist/styles/sales/BookingFilter.scss +43 -11
- package/dist/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/dist/styles/static/DateRangeInput.scss +5 -1
- package/dist/styles/striped-static-table/_index.scss +33 -0
- package/dist/table/FilterHelperComponent.d.ts.map +1 -1
- package/dist/table/FilterHelperComponent.js +1 -1
- package/dist/table/MenuButton.d.ts +1 -1
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts +2 -2
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/StaticTable.d.ts +5 -4
- package/dist/table/StaticTable.d.ts.map +1 -1
- package/dist/table/StaticTable.js +1 -1
- package/dist/table/types.d.ts +5 -5
- package/dist/table/types.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/EMOJIS.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.d.ts +6 -12
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts +1 -1
- package/dist/typeahead-helper/TypeaheadHelperComponent.d.ts.map +1 -1
- package/dist/types/categories.d.ts +2 -2
- package/dist/types/categories.d.ts.map +1 -1
- package/dist/types/currency.d.ts +1 -1
- package/dist/types/currency.d.ts.map +1 -1
- package/dist/types/generic/SelectItem.d.ts +1 -1
- package/dist/types/generic/SelectItem.d.ts.map +1 -1
- package/dist/types/iframe.d.ts +4 -2
- package/dist/types/iframe.d.ts.map +1 -1
- package/dist/types/provider-links.d.ts +2 -2
- package/dist/types/provider-links.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/NameControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts +4 -4
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapImageControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapModal.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts +1 -1
- package/dist/venue-map-sets/form/components/VenueMapsControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/types/index.d.ts +4 -4
- package/dist/venue-map-sets/form/types/index.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts +3 -3
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
- package/dist/virtualized/context/VirtualizedContext.d.ts +2 -2
- package/dist/virtualized/context/VirtualizedContext.d.ts.map +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/widgets/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts +1 -1
- package/dist/widgets/ImageRadioInput/ImageRadioInput.d.ts.map +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts +1 -1
- package/dist/widgets/SnippetCode/SnippetCode.d.ts.map +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts +1 -1
- package/dist/widgets/WidgetBuilderForm/WidgetBuilderForm.d.ts.map +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts +1 -1
- package/dist/widgets/WidgetTypeRadio/WidgetTypeRadio.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.d.ts +2 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/components/AvailableTimesControl.d.ts +2 -2
- package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts +1 -1
- package/dist/zone/form/components/DescriptionControl.d.ts.map +1 -1
- package/dist/zone/form/components/NameControl.d.ts +1 -1
- package/dist/zone/form/components/NameControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.d.ts +1 -1
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneImageControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts +1 -1
- package/dist/zone/form/components/ZoneTypeControl.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/events/edit-event-modal/IntervalInput.tsx +21 -1
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -0
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +11 -2
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +6 -4
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-venue-map/EventVenueMap.tsx +4 -0
- package/src/events/event-venue-map/components/MapPoint/MapPoint.tsx +4 -2
- package/src/events/event-venue-map/components/MapPoint/components/ProductIcon/ProductIcon.tsx +13 -2
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/ProductTooltip.tsx +68 -0
- package/src/events/event-venue-map/components/MapPoint/components/ProductTooltip/index.ts +1 -0
- package/src/events/event-venue-map/components/VenueMap/VenueMap.tsx +12 -4
- package/src/iframe/event/event-order-short-summary/components/Summary/Summary.tsx +20 -20
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +5 -0
- package/src/iframe/order-process/OrderProcess.stories.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +4 -1
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +3 -3
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +6 -2
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.stories.tsx +1 -0
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +5 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/Category.tsx +4 -0
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +4 -0
- package/src/iframe/order-process/components/Category/Category.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +42 -8
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -0
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -2
- package/src/iframe/order-process/components/StepsForm/StepsForm.tsx +3 -0
- package/src/iframe/order-process/components/Timer/Timer.stories.tsx +1 -1
- package/src/iframe/order-process/components/Timer/utils/index.ts +4 -4
- package/src/iframe/payment/order-items-table/OrderItemsTable.stories.tsx +2 -0
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +21 -14
- package/src/iframe/payment/order-items-table/utils/index.ts +55 -15
- package/src/iframe/payment/payment-page/PaymentPage.tsx +46 -6
- package/src/iframe/payment/payment-page/PaymentTimer.tsx +31 -6
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +66 -12
- package/src/index.ts +1 -0
- package/src/notification/email-template/card/EmailTemplateCard.stories.tsx +4 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +15 -3
- package/src/notification/email-template/control/EmailTemplateControl.tsx +90 -6
- package/src/notification/email-template/form/EmailTemplateForm.stories.tsx +34 -0
- package/src/notification/email-template/form/EmailTemplateForm.tsx +23 -5
- package/src/notification/hooks/useTranslatedParameters.ts +27 -0
- package/src/notification/sms-template/card/SmsTemplateCard.stories.tsx +3 -1
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +13 -3
- package/src/notification/sms-template/control/SmsTemplateControl.tsx +40 -2
- package/src/notification/sms-template/form/SmsTemplateForm.stories.tsx +28 -0
- package/src/notification/sms-template/form/SmsTemplateForm.tsx +6 -1
- package/src/product-set/control/ProductSetControl.tsx +69 -45
- package/src/product-set/form/ProductCategoriesControl.tsx +9 -0
- package/src/product-set/form/ProductSetForm.stories.tsx +41 -2
- package/src/product-set/form/ProductSetForm.tsx +11 -0
- package/src/product-set/form/ProductsControl.tsx +30 -1
- package/src/product-set/form/StepsControl.tsx +31 -3
- package/src/product-set/hooks/useSortableTreeFunctions.ts +37 -0
- package/src/product-set/product/ProductControl.tsx +28 -14
- package/src/product-set/product/price/ProductPriceControl.tsx +43 -21
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +33 -14
- package/src/product-set/utils/index.ts +28 -0
- package/src/provider/constants.ts +1 -0
- package/src/provider/provider-details-input/ProviderDetailsInput.tsx +17 -3
- package/src/sales/booking/filter/BookingFilter.stories.tsx +29 -0
- package/src/sales/booking/filter/BookingFilter.tsx +11 -2
- package/src/sales/booking/filter/components/AdditionalFIlterSection.tsx +64 -12
- package/src/sales/booking/filter/components/MainFilterSection.tsx +4 -1
- package/src/sales/booking/filter/components/SearchingForSection.tsx +37 -3
- package/src/sales/booking/tabs/BookingTabs.tsx +4 -3
- package/src/sales/coupon/control/CouponFormControl.tsx +2 -0
- package/src/sales/filters/SaleFilter.stories.tsx +1 -1
- package/src/sales/filters/SaleFilters.tsx +2 -2
- package/src/sales/manual-booking/select-menu/SelectMenu.tsx +3 -1
- package/src/setting/dashboard/snippets/control/SnippetControl.tsx +11 -13
- package/src/setting/dashboard/snippets/form/SnippetForm.tsx +2 -2
- package/src/setting/dashboard/snippets/modal/SnippetViewTypeModal.tsx +1 -1
- package/src/snippet/snippet-template/SnippetTemplate.tsx +1 -1
- package/src/snippet/snippet-template/form/SnippetTemplateForm.tsx +10 -10
- package/src/snippet/snippet-template/preview/Preview.tsx +4 -4
- package/src/sortable-tree/SortableTreeItem.tsx +27 -6
- package/src/static/date-range-input/DateRangeInput.tsx +3 -0
- package/src/striped-static-table/StripedStaticTable.stories.tsx +71 -0
- package/src/striped-static-table/StripedStaticTable.tsx +63 -0
- package/src/striped-static-table/index.ts +1 -0
- package/src/styles/events/EventStatisticModal.scss +0 -37
- package/src/styles/iframe-order-process/IframeOrderProcess.scss +5 -2
- package/src/styles/iframe-page/PageBody.scss +2 -0
- package/src/styles/packages.scss +1 -0
- package/src/styles/sales/BookingFilter.scss +43 -11
- package/src/styles/snippet-templates/SnippetTemplateCard.scss +16 -0
- package/src/styles/static/DateRangeInput.scss +5 -1
- package/src/styles/striped-static-table/_index.scss +33 -0
- package/src/table/FilterHelperComponent.tsx +1 -0
- package/src/table/StaticTable.tsx +14 -8
- package/src/typeahead/Typeahead.stories.tsx +9 -6
- package/src/typeahead/Typeahead.tsx +19 -12
- package/src/types/iframe.ts +2 -0
- package/tests/Snippets/Snippets.test.tsx +5 -5
|
@@ -86,6 +86,7 @@ export interface ProductControlValues
|
|
|
86
86
|
isRequired: boolean;
|
|
87
87
|
quantitySelector: number;
|
|
88
88
|
hasSpecialNotes: boolean;
|
|
89
|
+
minSpend?: number | null;
|
|
89
90
|
type?: ProductType;
|
|
90
91
|
weight?: number;
|
|
91
92
|
tierId?: number;
|
|
@@ -157,6 +158,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
157
158
|
const quantitySelectorId = useId();
|
|
158
159
|
const hasSpecialNotesId = useId();
|
|
159
160
|
const unlimitedQuantityId = useId();
|
|
161
|
+
const minSpendId = useId();
|
|
160
162
|
|
|
161
163
|
const quantitySelectorList: SelectItem[] = [
|
|
162
164
|
{ id: 1, value: t("quantitySelector") },
|
|
@@ -189,7 +191,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
189
191
|
|
|
190
192
|
const onImageRemove = useCallback(
|
|
191
193
|
(id, path) => {
|
|
192
|
-
handleImageRemove(id, path);
|
|
194
|
+
handleImageRemove(String(id), path);
|
|
193
195
|
},
|
|
194
196
|
[handleImageRemove]
|
|
195
197
|
);
|
|
@@ -200,7 +202,13 @@ export function ProductControl<T extends FormValues>({
|
|
|
200
202
|
}, [setLoading, isImageUploading]);
|
|
201
203
|
|
|
202
204
|
useEffect(() => {
|
|
203
|
-
|
|
205
|
+
const formImages = getValues(`${fieldNamePrefix}.images` as Path<T>);
|
|
206
|
+
|
|
207
|
+
setInitialImages(formImages as Image[]);
|
|
208
|
+
}, [getValues, setInitialImages, fieldNamePrefix]);
|
|
209
|
+
|
|
210
|
+
useEffect(() => {
|
|
211
|
+
if (Array.isArray(images)) {
|
|
204
212
|
setValue(
|
|
205
213
|
`${fieldNamePrefix}.images` as Path<T>,
|
|
206
214
|
images as UnpackNestedValue<PathValue<T, Path<T>>>
|
|
@@ -208,12 +216,6 @@ export function ProductControl<T extends FormValues>({
|
|
|
208
216
|
}
|
|
209
217
|
}, [images, fieldNamePrefix, setValue]);
|
|
210
218
|
|
|
211
|
-
useEffect(() => {
|
|
212
|
-
const formImages = getValues(`${fieldNamePrefix}.images` as Path<T>);
|
|
213
|
-
|
|
214
|
-
setInitialImages(formImages as Image[]);
|
|
215
|
-
}, [getValues, setInitialImages, fieldNamePrefix]);
|
|
216
|
-
|
|
217
219
|
const quantitySelector = quantityValue ?? "1";
|
|
218
220
|
const quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector as string];
|
|
219
221
|
|
|
@@ -274,7 +276,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
274
276
|
/>
|
|
275
277
|
<ProductPriceControl<T>
|
|
276
278
|
isLoading={isLoading}
|
|
277
|
-
fieldNamePrefix={fieldNamePrefix}
|
|
279
|
+
fieldNamePrefix={`${fieldNamePrefix}.price` as Path<T>}
|
|
278
280
|
title={t("totalPrice")}
|
|
279
281
|
allowDeposits={allowDeposits}
|
|
280
282
|
/>
|
|
@@ -282,7 +284,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
282
284
|
) : (
|
|
283
285
|
<ProductPriceControl<T>
|
|
284
286
|
isLoading={isLoading}
|
|
285
|
-
fieldNamePrefix={fieldNamePrefix}
|
|
287
|
+
fieldNamePrefix={`${fieldNamePrefix}.price` as Path<T>}
|
|
286
288
|
/>
|
|
287
289
|
)}
|
|
288
290
|
|
|
@@ -553,10 +555,22 @@ export function ProductControl<T extends FormValues>({
|
|
|
553
555
|
name={`${fieldNamePrefix}.hasSpecialNotes` as Path<T>}
|
|
554
556
|
/>
|
|
555
557
|
</Form.Group>
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
558
|
+
{[CATEGORY_TYPE_GAME, CATEGORY_TYPE_FIXED_DURATION].includes(
|
|
559
|
+
categoryType
|
|
560
|
+
) && <FixedDurationOptions fieldNamePrefix={fieldNamePrefix} />}
|
|
561
|
+
<Form.Group
|
|
562
|
+
controlId={minSpendId}
|
|
563
|
+
className="advanced-switch-container"
|
|
564
|
+
>
|
|
565
|
+
<ProductPriceControl
|
|
566
|
+
title={t("minSpend")}
|
|
567
|
+
isRequired={false}
|
|
568
|
+
isMoreThanZero
|
|
569
|
+
allowDeposits={false}
|
|
570
|
+
isLoading={isLoading}
|
|
571
|
+
fieldNamePrefix={`${fieldNamePrefix}.minSpend` as Path<T>}
|
|
572
|
+
/>
|
|
573
|
+
</Form.Group>
|
|
560
574
|
</div>
|
|
561
575
|
</Collapse>
|
|
562
576
|
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
|
|
3
|
-
import {
|
|
4
|
-
FieldNamePrefixPath,
|
|
5
|
-
FormValues,
|
|
6
|
-
} from "@licklist/plugins/dist/types/services/Form/hook-form-service";
|
|
3
|
+
import { FormValues } from "@licklist/plugins/dist/types/services/Form/hook-form-service";
|
|
7
4
|
import { useId } from "@react-aria/utils";
|
|
8
5
|
import { Form } from "react-bootstrap";
|
|
9
6
|
import Col from "react-bootstrap/Col";
|
|
@@ -16,10 +13,13 @@ export interface ProductPriceControlValues extends FormValues {
|
|
|
16
13
|
price: number;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
|
-
export interface ProductPriceControlProps<T>
|
|
16
|
+
export interface ProductPriceControlProps<T> {
|
|
20
17
|
isLoading: boolean;
|
|
21
18
|
title?: string;
|
|
22
19
|
allowDeposits?: boolean;
|
|
20
|
+
fieldNamePrefix: Path<T>;
|
|
21
|
+
isRequired?: boolean;
|
|
22
|
+
isMoreThanZero?: boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export function ProductPriceControl<T extends FormValues>({
|
|
@@ -27,13 +27,15 @@ export function ProductPriceControl<T extends FormValues>({
|
|
|
27
27
|
fieldNamePrefix,
|
|
28
28
|
title,
|
|
29
29
|
allowDeposits,
|
|
30
|
+
isRequired = true,
|
|
31
|
+
isMoreThanZero,
|
|
30
32
|
}: ProductPriceControlProps<T>) {
|
|
31
33
|
const {
|
|
32
34
|
control,
|
|
33
35
|
formState: { errors },
|
|
34
36
|
} = useFormContext<T>();
|
|
35
37
|
const { t } = useTranslation("Design");
|
|
36
|
-
|
|
38
|
+
const productTitle = title ?? t("price");
|
|
37
39
|
const priceId = useId();
|
|
38
40
|
|
|
39
41
|
return (
|
|
@@ -43,7 +45,7 @@ export function ProductPriceControl<T extends FormValues>({
|
|
|
43
45
|
className={!allowDeposits && "p-0"}
|
|
44
46
|
>
|
|
45
47
|
<Form.Group controlId={priceId}>
|
|
46
|
-
<Form.Label>{
|
|
48
|
+
<Form.Label>{productTitle}</Form.Label>
|
|
47
49
|
|
|
48
50
|
<InputGroup hasValidation>
|
|
49
51
|
<InputGroup.Prepend>
|
|
@@ -64,38 +66,58 @@ export function ProductPriceControl<T extends FormValues>({
|
|
|
64
66
|
name={name}
|
|
65
67
|
onChange={onChange}
|
|
66
68
|
isInvalid={HookFormService.isInvalid<T>(
|
|
67
|
-
`${fieldNamePrefix}
|
|
69
|
+
`${fieldNamePrefix}` as Path<T>,
|
|
68
70
|
errors
|
|
69
71
|
)}
|
|
70
72
|
disabled={isLoading}
|
|
71
73
|
/>
|
|
72
74
|
)}
|
|
73
75
|
control={control}
|
|
74
|
-
name={`${fieldNamePrefix}
|
|
76
|
+
name={`${fieldNamePrefix}` as Path<T>}
|
|
75
77
|
rules={{
|
|
76
|
-
required:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
required: isRequired
|
|
79
|
+
? (t("Validation:fieldRequired", {
|
|
80
|
+
attribute: productTitle,
|
|
81
|
+
}) as string)
|
|
82
|
+
: false,
|
|
83
|
+
min: !isMoreThanZero
|
|
84
|
+
? {
|
|
85
|
+
value: 0,
|
|
86
|
+
message: t("Validation:fieldMinNumber", {
|
|
87
|
+
attribute: productTitle,
|
|
88
|
+
min: 0,
|
|
89
|
+
}) as string,
|
|
90
|
+
}
|
|
91
|
+
: undefined,
|
|
86
92
|
max: {
|
|
87
93
|
value: 999999.99,
|
|
88
94
|
message: t("Validation:fieldMaxNumber", {
|
|
89
|
-
attribute:
|
|
95
|
+
attribute: productTitle,
|
|
90
96
|
max: 999999.99,
|
|
91
97
|
}) as string,
|
|
92
98
|
},
|
|
99
|
+
|
|
100
|
+
validate: (value) => {
|
|
101
|
+
if (
|
|
102
|
+
!isMoreThanZero ||
|
|
103
|
+
(isMoreThanZero &&
|
|
104
|
+
(value === undefined || value === null || value === "")) ||
|
|
105
|
+
(isMoreThanZero && Number(value) > 0)
|
|
106
|
+
) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return t("Validation:fieldGreaterMinNumber", {
|
|
111
|
+
attribute: productTitle,
|
|
112
|
+
min: 0,
|
|
113
|
+
}) as string;
|
|
114
|
+
},
|
|
93
115
|
}}
|
|
94
116
|
/>
|
|
95
117
|
|
|
96
118
|
<Form.Control.Feedback type="invalid">
|
|
97
119
|
{HookFormService.getErrors<T>(
|
|
98
|
-
`${fieldNamePrefix}
|
|
120
|
+
`${fieldNamePrefix}` as Path<T>,
|
|
99
121
|
errors
|
|
100
122
|
)}
|
|
101
123
|
</Form.Control.Feedback>
|
|
@@ -33,19 +33,49 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
33
33
|
onFocus,
|
|
34
34
|
} = props;
|
|
35
35
|
const {
|
|
36
|
-
trigger,
|
|
37
36
|
control,
|
|
37
|
+
clearErrors,
|
|
38
|
+
setError,
|
|
39
|
+
watch,
|
|
40
|
+
trigger,
|
|
38
41
|
formState: { errors },
|
|
39
42
|
} = useFormContext<T>();
|
|
40
43
|
const { t } = useTranslation("Design");
|
|
41
|
-
|
|
42
44
|
const totalQuantityId = useId();
|
|
43
45
|
|
|
46
|
+
const maxQuantityValue = watch(`${fieldNamePrefix}.maxQuantity` as Path<T>);
|
|
47
|
+
const totalQuantityValue = watch(
|
|
48
|
+
`${fieldNamePrefix}.totalQuantity` as Path<T>
|
|
49
|
+
);
|
|
50
|
+
|
|
44
51
|
// trigger total quantity field's validation if disabled state was changed
|
|
45
52
|
useEffect(() => {
|
|
46
53
|
trigger(`${fieldNamePrefix}.totalQuantity` as Path<T>);
|
|
47
54
|
}, [disabled, fieldNamePrefix, trigger]);
|
|
48
55
|
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (Number(totalQuantityValue) === 0) {
|
|
58
|
+
setError(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
|
|
59
|
+
type: HookFormService.manualErrorType,
|
|
60
|
+
message: t("Validation:fieldMinNumber", {
|
|
61
|
+
attribute: t("totalQuantity"),
|
|
62
|
+
min: 1,
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
} else if (Number(maxQuantityValue) > Number(totalQuantityValue)) {
|
|
66
|
+
setError(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
|
|
67
|
+
type: HookFormService.manualErrorType,
|
|
68
|
+
message: t("Validation:fieldTotalNumber", {
|
|
69
|
+
attribute: t("totalQuantity"),
|
|
70
|
+
max: t("maxOrderQuantity"),
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
} else {
|
|
74
|
+
clearErrors(`${fieldNamePrefix}.totalQuantity` as Path<T>);
|
|
75
|
+
}
|
|
76
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
77
|
+
}, [totalQuantityValue, maxQuantityValue, setError, clearErrors]);
|
|
78
|
+
|
|
49
79
|
return (
|
|
50
80
|
<>
|
|
51
81
|
<Form.Group controlId={totalQuantityId}>
|
|
@@ -83,18 +113,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
83
113
|
required: false,
|
|
84
114
|
min: 0,
|
|
85
115
|
}
|
|
86
|
-
: {
|
|
87
|
-
required: t("Validation:fieldRequired", {
|
|
88
|
-
attribute: t("totalQuantity"),
|
|
89
|
-
}) as string,
|
|
90
|
-
min: {
|
|
91
|
-
value: 1,
|
|
92
|
-
message: t("Validation:fieldMinNumber", {
|
|
93
|
-
attribute: t("totalQuantity"),
|
|
94
|
-
min: 1,
|
|
95
|
-
}) as string,
|
|
96
|
-
},
|
|
97
|
-
}
|
|
116
|
+
: {}
|
|
98
117
|
}
|
|
99
118
|
/>
|
|
100
119
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { EmailTemplate } from "@licklist/core/dist/DataMapper/Notification/EmailTemplateDataMapper";
|
|
2
|
+
import { SmsTemplate } from "@licklist/core/dist/DataMapper/Notification/SmsTemplateDataMapper";
|
|
3
|
+
import { TemplateItem } from "../control/ProductSetControl";
|
|
4
|
+
|
|
1
5
|
export const moveArrayElements = <T>(
|
|
2
6
|
array: T[],
|
|
3
7
|
prevIndex: number,
|
|
@@ -14,3 +18,27 @@ export const moveArrayElements = <T>(
|
|
|
14
18
|
export const sortArrayByIndex = <T>(array: T[]) => {
|
|
15
19
|
return array.map((element: T, index) => ({ ...element, sort: index }));
|
|
16
20
|
};
|
|
21
|
+
|
|
22
|
+
export const getFilteredTemplates = (
|
|
23
|
+
templates?: EmailTemplate[] | SmsTemplate[],
|
|
24
|
+
formTemplates?: TemplateItem[]
|
|
25
|
+
): TemplateItem[] | undefined => {
|
|
26
|
+
if (!templates) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return templates
|
|
31
|
+
?.filter(
|
|
32
|
+
(template) =>
|
|
33
|
+
template.notification.isActive &&
|
|
34
|
+
!formTemplates?.find(
|
|
35
|
+
(formTemplate) =>
|
|
36
|
+
formTemplate.value.notification.type === template.notification.type
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
?.map((template) => ({
|
|
40
|
+
id: template?.id,
|
|
41
|
+
value: template,
|
|
42
|
+
label: template?.notification?.name,
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MAX_DESCRIPTION_CHARACTERS_LENGTH = 25256;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
2
|
import { Form } from "react-bootstrap";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { useId } from "@react-aria/utils";
|
|
6
|
+
import useNotification from "@licklist/plugins/dist/context/app/hooks/useNotification";
|
|
6
7
|
import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
|
|
7
8
|
import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
|
|
8
9
|
import { Typeahead, TypeaheadOptions } from "../../typeahead";
|
|
10
|
+
import { MAX_DESCRIPTION_CHARACTERS_LENGTH } from "../constants";
|
|
9
11
|
import {
|
|
10
12
|
ProviderLinksInput,
|
|
11
13
|
ProviderLinksInputProps,
|
|
@@ -33,10 +35,11 @@ export function ProviderDetailsInput({
|
|
|
33
35
|
}: ProviderDetailsInputProps) {
|
|
34
36
|
const {
|
|
35
37
|
register,
|
|
38
|
+
watch,
|
|
36
39
|
formState: { errors },
|
|
37
|
-
setValue,
|
|
38
40
|
} = useFormContext<ProviderDetailsInputValues>();
|
|
39
41
|
const { t } = useTranslation(["App", "Design", "Validation"]);
|
|
42
|
+
const notification = useNotification();
|
|
40
43
|
|
|
41
44
|
const nameId = useId();
|
|
42
45
|
const descriptionId = useId();
|
|
@@ -45,6 +48,18 @@ export function ProviderDetailsInput({
|
|
|
45
48
|
const websiteId = useId();
|
|
46
49
|
const companyId = useId();
|
|
47
50
|
|
|
51
|
+
const description = watch("description");
|
|
52
|
+
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (MAX_DESCRIPTION_CHARACTERS_LENGTH > description.length) return;
|
|
55
|
+
notification.warning({
|
|
56
|
+
title: t("App:warning"),
|
|
57
|
+
message: t("Validation:descriptionTooManyCharactersMessage", {
|
|
58
|
+
max: MAX_DESCRIPTION_CHARACTERS_LENGTH,
|
|
59
|
+
}) as string,
|
|
60
|
+
});
|
|
61
|
+
}, [description.length]);
|
|
62
|
+
|
|
48
63
|
return (
|
|
49
64
|
<>
|
|
50
65
|
<Form.Group controlId={nameId}>
|
|
@@ -149,7 +164,6 @@ export function ProviderDetailsInput({
|
|
|
149
164
|
<Typeahead
|
|
150
165
|
name="company"
|
|
151
166
|
options={companiesOptions}
|
|
152
|
-
setValue={setValue}
|
|
153
167
|
placeholder={t("App:select")}
|
|
154
168
|
noOptionsMessage={t("App:noMatchesFound")}
|
|
155
169
|
/>
|
|
@@ -10,6 +10,34 @@ export default {
|
|
|
10
10
|
component: BookingFilter,
|
|
11
11
|
} as Meta;
|
|
12
12
|
|
|
13
|
+
const staffMembers = [
|
|
14
|
+
{
|
|
15
|
+
id: 10,
|
|
16
|
+
firstName: "Denys",
|
|
17
|
+
lastName: "Shmahailo",
|
|
18
|
+
email: "shmahailo1337@gmail.com",
|
|
19
|
+
images: null,
|
|
20
|
+
userRoles: [
|
|
21
|
+
{
|
|
22
|
+
id: 1,
|
|
23
|
+
key: "manager",
|
|
24
|
+
title: "Manager",
|
|
25
|
+
weight: 50,
|
|
26
|
+
type_id: 1,
|
|
27
|
+
type: "provider",
|
|
28
|
+
pivot: {
|
|
29
|
+
id: 17,
|
|
30
|
+
roleId: 1,
|
|
31
|
+
userId: 10,
|
|
32
|
+
typeableId: 1,
|
|
33
|
+
typeableType: "provider",
|
|
34
|
+
user: null,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
13
41
|
export const Default: Story<BookingFilterProps> = () => {
|
|
14
42
|
const isFilterOpen = boolean("isFilterOpen", false);
|
|
15
43
|
const autoFocusOnMount = boolean("autoFocusOnMount", true);
|
|
@@ -20,6 +48,7 @@ export const Default: Story<BookingFilterProps> = () => {
|
|
|
20
48
|
<BookingFilter
|
|
21
49
|
isFilterOpen={isFilterOpen}
|
|
22
50
|
autoFocusOnMount={autoFocusOnMount}
|
|
51
|
+
staffMembers={staffMembers}
|
|
23
52
|
/>
|
|
24
53
|
</BookingContextProvider>
|
|
25
54
|
</MemoryRouter>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import { User } from "@licklist/core/dist/DataMapper/User/UserDataMapper";
|
|
2
3
|
import { MainFilterSection } from "./components/MainFilterSection";
|
|
3
4
|
import { AdditionalFilterSection } from "./components/AdditionalFIlterSection";
|
|
4
5
|
import { SearchingForSection } from "./components/SearchingForSection";
|
|
@@ -11,12 +12,16 @@ export type BookingFilterProps = PropsWithChildren<{
|
|
|
11
12
|
isFilterOpen?: boolean;
|
|
12
13
|
autoFocusOnMount?: boolean;
|
|
13
14
|
isFullscreenMode?: boolean;
|
|
15
|
+
staffMembers?: User[] | null;
|
|
16
|
+
isLoading: boolean;
|
|
14
17
|
}>;
|
|
15
18
|
|
|
16
19
|
export const BookingFilter = ({
|
|
17
20
|
isFilterOpen = true,
|
|
18
21
|
autoFocusOnMount = false,
|
|
19
22
|
isFullscreenMode = false,
|
|
23
|
+
staffMembers,
|
|
24
|
+
isLoading,
|
|
20
25
|
children,
|
|
21
26
|
...props
|
|
22
27
|
}: BookingFilterProps) => {
|
|
@@ -24,15 +29,19 @@ export const BookingFilter = ({
|
|
|
24
29
|
<div className="booking-filter">
|
|
25
30
|
<MainFilterSection
|
|
26
31
|
{...props}
|
|
32
|
+
isLoading={isLoading}
|
|
27
33
|
isFilterOpen={isFilterOpen}
|
|
28
34
|
autoFocusOnMount={autoFocusOnMount}
|
|
29
35
|
isFullscreenMode={isFullscreenMode}
|
|
30
36
|
/>
|
|
31
37
|
{isFilterOpen ? (
|
|
32
38
|
<>
|
|
33
|
-
<AdditionalFilterSection
|
|
39
|
+
<AdditionalFilterSection
|
|
40
|
+
isLoading={isLoading}
|
|
41
|
+
staffMembers={staffMembers}
|
|
42
|
+
/>
|
|
34
43
|
<div className="separator-horizontal" />
|
|
35
|
-
<SearchingForSection />
|
|
44
|
+
<SearchingForSection staffMembers={staffMembers} />
|
|
36
45
|
</>
|
|
37
46
|
) : (
|
|
38
47
|
children && (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from "react";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { Form, Button, Row, Col } from "react-bootstrap";
|
|
4
|
-
import { useForm } from "react-hook-form";
|
|
4
|
+
import { Controller, useForm } from "react-hook-form";
|
|
5
5
|
import {
|
|
6
6
|
ORDER_STATUS_PENDING,
|
|
7
7
|
ORDER_STATUS_CANCELLED,
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
BookingContext,
|
|
13
13
|
BookingFilters,
|
|
14
14
|
} from "@licklist/plugins/dist/context/booking/BookingContext";
|
|
15
|
+
import { DateRangeInput } from "../../../../static/date-range-input/DateRangeInput";
|
|
16
|
+
import { FilterSectionProps } from "./SearchingForSection";
|
|
15
17
|
|
|
16
18
|
const ORDER_STATUSES_FOR_UPDATE = [
|
|
17
19
|
ORDER_STATUS_PENDING,
|
|
@@ -28,14 +30,22 @@ export type AdditionalFilterSectionProps = {
|
|
|
28
30
|
isFilterOpen?: boolean;
|
|
29
31
|
};
|
|
30
32
|
|
|
31
|
-
export const AdditionalFilterSection = (
|
|
33
|
+
export const AdditionalFilterSection = ({
|
|
34
|
+
staffMembers,
|
|
35
|
+
isLoading,
|
|
36
|
+
}: FilterSectionProps) => {
|
|
32
37
|
const { t } = useTranslation("Design");
|
|
33
38
|
const { filters, setFilters } = useContext(BookingContext);
|
|
34
39
|
|
|
35
|
-
const { handleSubmit, register, reset } = useForm<
|
|
40
|
+
const { handleSubmit, register, setValue, reset, watch, control } = useForm<
|
|
41
|
+
Partial<BookingFilters>
|
|
42
|
+
>({
|
|
36
43
|
defaultValues: filters,
|
|
37
44
|
});
|
|
38
45
|
|
|
46
|
+
const startDate = watch("order_date_from");
|
|
47
|
+
const endDate = watch("order_date_to");
|
|
48
|
+
|
|
39
49
|
const onFormSubmit = (values: Partial<BookingFilters>) => {
|
|
40
50
|
setFilters(values);
|
|
41
51
|
};
|
|
@@ -47,20 +57,49 @@ export const AdditionalFilterSection = () => {
|
|
|
47
57
|
return (
|
|
48
58
|
<div className="additional-filter-section">
|
|
49
59
|
<Form onSubmit={handleSubmit(onFormSubmit)}>
|
|
50
|
-
<Row>
|
|
60
|
+
<Row className="additional-filter-container">
|
|
51
61
|
<Col md="3">
|
|
52
62
|
<Form.Group>
|
|
53
|
-
<Form.Label>{t("
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
<Form.Label>{t("createdBy")}</Form.Label>
|
|
64
|
+
<Controller
|
|
65
|
+
control={control}
|
|
66
|
+
name="created_by"
|
|
67
|
+
render={({ field }) => {
|
|
68
|
+
const filedValue = String(field?.value);
|
|
69
|
+
return (
|
|
70
|
+
<Form.Control
|
|
71
|
+
as="select"
|
|
72
|
+
value={filedValue}
|
|
73
|
+
disabled={isLoading}
|
|
74
|
+
onChange={field?.onChange}
|
|
75
|
+
>
|
|
76
|
+
<option value="" selected={filedValue === ""}>
|
|
77
|
+
{t("Design:choose")}
|
|
78
|
+
</option>
|
|
79
|
+
{staffMembers?.map((member) => (
|
|
80
|
+
<option
|
|
81
|
+
value={member?.id}
|
|
82
|
+
key={member?.id}
|
|
83
|
+
selected={filedValue === String(member?.id)}
|
|
84
|
+
>
|
|
85
|
+
{member?.firstName} {member?.lastName}
|
|
86
|
+
</option>
|
|
87
|
+
))}
|
|
88
|
+
</Form.Control>
|
|
89
|
+
);
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
57
92
|
</Form.Group>
|
|
58
93
|
</Col>
|
|
59
94
|
|
|
60
95
|
<Col md="3">
|
|
61
96
|
<Form.Group>
|
|
62
97
|
<Form.Label>{t("bookingStatus")}</Form.Label>
|
|
63
|
-
<Form.Control
|
|
98
|
+
<Form.Control
|
|
99
|
+
disabled={isLoading}
|
|
100
|
+
{...register("status")}
|
|
101
|
+
as="select"
|
|
102
|
+
>
|
|
64
103
|
<option value="">{t("Design:choose")}</option>
|
|
65
104
|
{Object.keys(ORDER_STATUSES_FOR_UPDATE).map((key: string) => (
|
|
66
105
|
<option
|
|
@@ -74,16 +113,29 @@ export const AdditionalFilterSection = () => {
|
|
|
74
113
|
</Form.Group>
|
|
75
114
|
</Col>
|
|
76
115
|
|
|
77
|
-
<Col
|
|
116
|
+
<Col className="date-container">
|
|
78
117
|
<Form.Group>
|
|
79
118
|
<Form.Label>{t("date")}</Form.Label>
|
|
80
|
-
<
|
|
119
|
+
<DateRangeInput
|
|
120
|
+
disabled={isLoading}
|
|
121
|
+
placeholder={t("date")}
|
|
122
|
+
startDate={startDate}
|
|
123
|
+
endDate={endDate}
|
|
124
|
+
onDateChange={({ startDate, endDate }) => {
|
|
125
|
+
setValue("order_date_from", startDate);
|
|
126
|
+
setValue("order_date_to", endDate);
|
|
127
|
+
}}
|
|
128
|
+
/>
|
|
81
129
|
</Form.Group>
|
|
82
130
|
</Col>
|
|
83
131
|
|
|
84
132
|
<Col md="3" className="d-flex align-items-end">
|
|
85
133
|
<Form.Group>
|
|
86
|
-
<Button
|
|
134
|
+
<Button
|
|
135
|
+
disabled={isLoading}
|
|
136
|
+
type="submit"
|
|
137
|
+
className="shadow-none"
|
|
138
|
+
>
|
|
87
139
|
{t("apply")}
|
|
88
140
|
</Button>
|
|
89
141
|
</Form.Group>
|
|
@@ -10,7 +10,7 @@ import { ReactComponent as RefreshIcon } from "../../../../assets/dashboard/refr
|
|
|
10
10
|
import { ReactComponent as FullscreenIcon } from "../../../../assets/dashboard/fullscreen.svg";
|
|
11
11
|
import { ReactComponent as MinimizeIcon } from "../../../../assets/dashboard/minimize.svg";
|
|
12
12
|
|
|
13
|
-
export type MainFilterSectionProps = BookingFilterProps
|
|
13
|
+
export type MainFilterSectionProps = Omit<BookingFilterProps, "staffMembers">;
|
|
14
14
|
|
|
15
15
|
const DEBOUNCE_QUERY_TIME = 300;
|
|
16
16
|
|
|
@@ -22,6 +22,7 @@ export const MainFilterSection = ({
|
|
|
22
22
|
onFullscreenButtonClick,
|
|
23
23
|
autoFocusOnMount,
|
|
24
24
|
isFullscreenMode,
|
|
25
|
+
isLoading,
|
|
25
26
|
}: MainFilterSectionProps) => {
|
|
26
27
|
const { t } = useTranslation("Design");
|
|
27
28
|
const { filters, onQueryChange } = useContext(BookingContext);
|
|
@@ -62,6 +63,7 @@ export const MainFilterSection = ({
|
|
|
62
63
|
className="search-icon"
|
|
63
64
|
/>
|
|
64
65
|
<Form.Control
|
|
66
|
+
disabled={isLoading}
|
|
65
67
|
value={queryValue}
|
|
66
68
|
onChange={onSearchQueryChange}
|
|
67
69
|
onBlur={onSearchQueryBlur}
|
|
@@ -113,6 +115,7 @@ export const MainFilterSection = ({
|
|
|
113
115
|
|
|
114
116
|
<Button
|
|
115
117
|
variant="link"
|
|
118
|
+
disabled={isLoading}
|
|
116
119
|
className={clsx(
|
|
117
120
|
"shadow-none",
|
|
118
121
|
!isFullscreenMode && "fullscreen-button",
|