@licklist/design 0.78.4 → 0.78.5-dev.1
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/form/AffiliateForm.d.ts.map +1 -1
- package/dist/affiliate/form/AffiliateForm.js +6 -2
- package/dist/auth/AccessDenied/AccessDenied.d.ts.map +1 -1
- package/dist/auth/AccessDenied/AccessDenied.js +4 -3
- package/dist/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +10 -6
- package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +36 -41
- package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Layout/AuthNavComponent.js +2 -3
- package/dist/auth/Layout/UserNavDropDown.d.ts.map +1 -1
- package/dist/auth/Layout/UserNavDropDown.js +8 -9
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +59 -61
- package/dist/auth/Logout/Logout.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +4 -2
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.js +53 -58
- package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordComponent.js +26 -30
- package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialCallbackComponent.js +3 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +5 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +3 -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 +16 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/events/event-card/EventCard.d.ts +4 -3
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +30 -20
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -3
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +1 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +5 -13
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +3 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -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 +13 -0
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.js +3 -3
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +0 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +0 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -3
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/pages/PrivacyComponent.d.ts +3 -0
- package/dist/pages/PrivacyComponent.d.ts.map +1 -0
- package/dist/pages/PrivacyComponent.js +536 -0
- package/dist/pages/TermsComponent.d.ts +3 -0
- package/dist/pages/TermsComponent.d.ts.map +1 -0
- package/dist/pages/TermsComponent.js +682 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +3 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -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.js +2 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +0 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/sales/notes/NotesTableRow.js +0 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.js +1 -3
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +4 -4
- package/dist/snippet/snippet-template/preview/Preview.js +0 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/RestrictedAccess.d.ts.map +1 -1
- package/dist/static/RestrictedAccess.js +3 -2
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/striped-static-table/StripedStaticTable.js +0 -1
- package/dist/styles/events/EditEventModal.scss +7 -0
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.js +3 -3
- package/dist/table/TableHelperComponent.d.ts.map +1 -1
- package/dist/table/TableHelperComponent.js +3 -3
- package/dist/venue-map-sets/card/VenueMapSetCard.d.ts.map +1 -1
- package/dist/venue-map-sets/card/VenueMapSetCard.js +4 -3
- package/dist/zone/card/ZoneCard.d.ts.map +1 -1
- package/dist/zone/card/ZoneCard.js +4 -3
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +11 -9
- package/src/affiliate/form/AffiliateForm.tsx +4 -2
- package/src/auth/AccessDenied/AccessDenied.tsx +4 -3
- package/src/auth/Authorizer.tsx +11 -6
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +21 -26
- package/src/auth/Layout/AuthNavComponent.tsx +2 -3
- package/src/auth/Layout/UserNavDropDown.tsx +6 -7
- package/src/auth/Login/LoginComponent.tsx +43 -47
- package/src/auth/Logout/Logout.stories.tsx +12 -14
- package/src/auth/Logout/Logout.tsx +4 -3
- package/src/auth/Register/RegisterComponent.tsx +35 -41
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +16 -20
- package/src/auth/Social/SocialCallbackComponent.tsx +4 -4
- package/src/events/edit-event-modal/IntervalInput.tsx +4 -0
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +19 -4
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-card/EventCard.stories.tsx +5 -8
- package/src/events/event-card/EventCard.tsx +45 -36
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +5 -13
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +3 -3
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +1 -1
- package/src/iframe/ryft/RyftPaymentForm.tsx +2 -5
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/index.ts +1 -0
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/pages/PrivacyComponent.tsx +318 -0
- package/src/pages/TermsComponent.tsx +306 -0
- package/src/pages/index.ts +2 -0
- package/src/product-set/card/ProductSetCard.tsx +3 -2
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/sales/payment-form/components/RyftPayment/RyftPayment.tsx +1 -3
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -3
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/RestrictedAccess.tsx +3 -6
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/events/EditEventModal.scss +7 -0
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/table/ReactTableHelperComponent.tsx +3 -5
- package/src/table/TableHelperComponent.tsx +3 -3
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -3
- package/src/zone/card/ZoneCard.tsx +4 -3
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +332 -274
|
@@ -10,7 +10,7 @@ import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetD
|
|
|
10
10
|
import { isEqual } from 'lodash'
|
|
11
11
|
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
|
|
12
12
|
import { WorkHour } from '@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper'
|
|
13
|
-
import { transformErrorToMessage } from '@licklist/plugins'
|
|
13
|
+
import { transformErrorToMessage } from '@licklist/plugins/dist/utils/error'
|
|
14
14
|
import { Dialog, useDialogContext } from '../../modals/dialog'
|
|
15
15
|
import {
|
|
16
16
|
ProductSetControl,
|
|
@@ -30,12 +30,16 @@ import { ErrorModal } from '../../iframe/order-process/components/ErrorModal'
|
|
|
30
30
|
export interface WithIsLoading {
|
|
31
31
|
isLoading: boolean
|
|
32
32
|
}
|
|
33
|
+
export interface WithIdOptional {
|
|
34
|
+
id?: number
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
export interface WithId {
|
|
34
38
|
id: number
|
|
35
39
|
}
|
|
36
40
|
export interface ProductSetFormValues
|
|
37
41
|
extends FormValues,
|
|
38
|
-
|
|
42
|
+
WithIdOptional,
|
|
39
43
|
ProductSetControlValues {
|
|
40
44
|
steps: Step[]
|
|
41
45
|
isOverrides?: boolean
|
|
@@ -86,6 +86,7 @@ export function ProductBookingManagementControl<T extends FormValues>(
|
|
|
86
86
|
<Form.Control
|
|
87
87
|
ref={ref}
|
|
88
88
|
type='number'
|
|
89
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
89
90
|
min={0}
|
|
90
91
|
step={1}
|
|
91
92
|
value={value as string}
|
|
@@ -129,6 +130,7 @@ export function ProductBookingManagementControl<T extends FormValues>(
|
|
|
129
130
|
<Form.Control
|
|
130
131
|
ref={ref}
|
|
131
132
|
type='number'
|
|
133
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
132
134
|
min='0'
|
|
133
135
|
step='1'
|
|
134
136
|
value={value as string}
|
|
@@ -91,6 +91,7 @@ export const ProductDurationControl = <T,>({
|
|
|
91
91
|
<Form.Control
|
|
92
92
|
type='number'
|
|
93
93
|
min={0}
|
|
94
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
94
95
|
step={1}
|
|
95
96
|
value={durationHours}
|
|
96
97
|
disabled={disabled}
|
|
@@ -127,6 +128,7 @@ export const ProductDurationControl = <T,>({
|
|
|
127
128
|
type='number'
|
|
128
129
|
min={0}
|
|
129
130
|
step={1}
|
|
131
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
130
132
|
disabled={disabled}
|
|
131
133
|
value={durationMinutes}
|
|
132
134
|
isInvalid={isInvalid}
|
|
@@ -111,6 +111,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
111
111
|
type='number'
|
|
112
112
|
min={0}
|
|
113
113
|
step={1}
|
|
114
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
114
115
|
value={value as string}
|
|
115
116
|
isInvalid={HookFormService.isInvalid<T>(
|
|
116
117
|
`${fieldNamePrefix}.totalQuantity` as Path<T>,
|
|
@@ -165,6 +166,7 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
165
166
|
type='number'
|
|
166
167
|
min={0}
|
|
167
168
|
step={1}
|
|
169
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
168
170
|
value={value as string}
|
|
169
171
|
onChange={onChange}
|
|
170
172
|
onFocus={onFocus}
|
|
@@ -85,6 +85,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
85
85
|
type='number'
|
|
86
86
|
min={0}
|
|
87
87
|
step={1}
|
|
88
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
88
89
|
value={value as string}
|
|
89
90
|
onChange={onChange}
|
|
90
91
|
onFocus={onFocus}
|
|
@@ -143,6 +144,7 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
143
144
|
type='number'
|
|
144
145
|
min={0}
|
|
145
146
|
step={1}
|
|
147
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
146
148
|
value={value && (value as string)}
|
|
147
149
|
onFocus={onFocus}
|
|
148
150
|
onChange={onChange}
|
|
@@ -69,6 +69,7 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
69
69
|
type='number'
|
|
70
70
|
min={0}
|
|
71
71
|
step={1}
|
|
72
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
72
73
|
{...register(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
|
|
73
74
|
validate: (value) => {
|
|
74
75
|
if (unlimited) return true
|
|
@@ -221,6 +221,7 @@ export function ProductCategoryControl({
|
|
|
221
221
|
step={1}
|
|
222
222
|
value={value === null ? '' : value}
|
|
223
223
|
onChange={onChange}
|
|
224
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
224
225
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
225
226
|
`${fieldNamePrefix}.minSubItems` as const,
|
|
226
227
|
errors,
|
|
@@ -293,6 +294,7 @@ export function ProductCategoryControl({
|
|
|
293
294
|
name={name}
|
|
294
295
|
value={value === null ? '' : value}
|
|
295
296
|
onChange={onChange}
|
|
297
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
296
298
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
297
299
|
`${fieldNamePrefix}.maxSubItems` as const,
|
|
298
300
|
errors,
|
|
@@ -353,6 +355,7 @@ export function ProductCategoryControl({
|
|
|
353
355
|
min={0}
|
|
354
356
|
step={1}
|
|
355
357
|
type='number'
|
|
358
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
356
359
|
disabled={isOverride}
|
|
357
360
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
358
361
|
`${fieldNamePrefix}.overallQuantity`,
|
|
@@ -543,6 +546,7 @@ export function ProductCategoryControl({
|
|
|
543
546
|
step={1}
|
|
544
547
|
value={value}
|
|
545
548
|
onChange={onChange}
|
|
549
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
546
550
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
547
551
|
`${fieldNamePrefix}.remainderExpireAfter` as const,
|
|
548
552
|
errors,
|
|
@@ -109,6 +109,7 @@ function RecurrenceEndInput({
|
|
|
109
109
|
type='number'
|
|
110
110
|
min={1}
|
|
111
111
|
max={500}
|
|
112
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
112
113
|
disabled={disabled || !count || count === 500}
|
|
113
114
|
aria-label='Occurrence count'
|
|
114
115
|
value={count ?? defaultOccurrences[frequency]}
|
|
@@ -27,6 +27,7 @@ export const CapacityControl = ({ isLoading }: CapacityControlProps) => {
|
|
|
27
27
|
required: true,
|
|
28
28
|
min: 1,
|
|
29
29
|
})}
|
|
30
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
30
31
|
placeholder={t('Design:capacity')}
|
|
31
32
|
isInvalid={Boolean(errors.capacity)}
|
|
32
33
|
disabled={isLoading}
|
|
@@ -179,6 +179,7 @@ export const CouponFormControl = ({
|
|
|
179
179
|
<Form.Label>{t('Design:discount')}</Form.Label>
|
|
180
180
|
<Form.Control
|
|
181
181
|
type='number'
|
|
182
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
182
183
|
isInvalid={errors.discount !== undefined}
|
|
183
184
|
{...register('discount', {
|
|
184
185
|
required: t('Validation:fieldRequired', {
|
|
@@ -316,6 +317,7 @@ export const CouponFormControl = ({
|
|
|
316
317
|
<Form.Control
|
|
317
318
|
{...register('totalCoupons')}
|
|
318
319
|
type='number'
|
|
320
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
319
321
|
isInvalid={errors.totalCoupons !== undefined}
|
|
320
322
|
disabled={isLoading}
|
|
321
323
|
/>
|
|
@@ -330,6 +332,7 @@ export const CouponFormControl = ({
|
|
|
330
332
|
<Form.Control
|
|
331
333
|
type='number'
|
|
332
334
|
{...register('usesPerUser')}
|
|
335
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
333
336
|
disabled={isLoading}
|
|
334
337
|
/>
|
|
335
338
|
</Form.Group>
|
|
@@ -342,6 +345,7 @@ export const CouponFormControl = ({
|
|
|
342
345
|
<Form.Control
|
|
343
346
|
type='number'
|
|
344
347
|
{...register('useAgain')}
|
|
348
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
345
349
|
disabled={isLoading}
|
|
346
350
|
/>
|
|
347
351
|
<Form.Text className='text-muted'>
|
|
@@ -355,6 +359,7 @@ export const CouponFormControl = ({
|
|
|
355
359
|
<Form.Control
|
|
356
360
|
type='number'
|
|
357
361
|
{...register('usesPerUserDay')}
|
|
362
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
358
363
|
disabled={isLoading}
|
|
359
364
|
/>
|
|
360
365
|
<Form.Text className='text-muted'>
|
|
@@ -370,6 +375,7 @@ export const CouponFormControl = ({
|
|
|
370
375
|
<Form.Control
|
|
371
376
|
type='number'
|
|
372
377
|
{...register('minAmount')}
|
|
378
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
373
379
|
disabled={isLoading}
|
|
374
380
|
/>
|
|
375
381
|
<Form.Text className='text-muted'>
|
|
@@ -383,6 +389,7 @@ export const CouponFormControl = ({
|
|
|
383
389
|
<Form.Control
|
|
384
390
|
type='number'
|
|
385
391
|
{...register('maxAmount')}
|
|
392
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
386
393
|
disabled={isLoading}
|
|
387
394
|
/>
|
|
388
395
|
<Form.Text className='text-muted'>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useTranslation } from 'react-i18next'
|
|
2
2
|
import { Alert, Button } from 'react-bootstrap'
|
|
3
|
-
import { useHistory } from 'react-router-dom'
|
|
4
3
|
import { BlockLoader } from '../../../../static'
|
|
5
4
|
|
|
6
5
|
export type RyftPaymentProps = {
|
|
@@ -15,7 +14,6 @@ export const RyftPayment = ({
|
|
|
15
14
|
ryftInitFailure = false,
|
|
16
15
|
}: RyftPaymentProps) => {
|
|
17
16
|
const { t } = useTranslation(['Design', 'App'])
|
|
18
|
-
const history = useHistory()
|
|
19
17
|
|
|
20
18
|
return (
|
|
21
19
|
<>
|
|
@@ -46,7 +44,7 @@ export const RyftPayment = ({
|
|
|
46
44
|
<Button
|
|
47
45
|
variant='primary'
|
|
48
46
|
onClick={() => {
|
|
49
|
-
|
|
47
|
+
window.location.reload()
|
|
50
48
|
}}
|
|
51
49
|
>
|
|
52
50
|
{t('refresh')}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
5
4
|
import clsx from 'clsx'
|
|
6
5
|
import { OverlayTrigger, Popover, ListGroup } from 'react-bootstrap'
|
|
7
6
|
import { useId } from '@react-aria/utils'
|
|
8
7
|
import { FaEllipsisH, FaEye, FaTrashAlt } from 'react-icons/fa'
|
|
8
|
+
import { useNavigate } from 'react-router-dom'
|
|
9
9
|
import { MenuButton } from '../../../../table'
|
|
10
10
|
import { ConfirmModal } from '../../../../modals'
|
|
11
11
|
|
|
@@ -26,6 +26,7 @@ export function SnippetCard({
|
|
|
26
26
|
const { t } = useTranslation('Design')
|
|
27
27
|
const popoverId = useId()
|
|
28
28
|
const [isOverlayVisibile, setIsOverlayVisible] = useState(false)
|
|
29
|
+
const navigate = useNavigate()
|
|
29
30
|
|
|
30
31
|
const isDeletingAllowed = hasPermission && !isDefault
|
|
31
32
|
|
|
@@ -34,8 +35,8 @@ export function SnippetCard({
|
|
|
34
35
|
className='border-0 product-set-card-wrapper w-100 pb-0'
|
|
35
36
|
role='button'
|
|
36
37
|
tabIndex={0}
|
|
37
|
-
onClick={() =>
|
|
38
|
-
onKeyUp={() =>
|
|
38
|
+
onClick={() => navigate(href)}
|
|
39
|
+
onKeyUp={() => navigate(href)}
|
|
39
40
|
>
|
|
40
41
|
<div className='product-set-card'>
|
|
41
42
|
<div className='product-set-card-link'>{name}</div>
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { Button } from 'react-bootstrap'
|
|
2
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
3
2
|
import { useTranslation } from 'react-i18next'
|
|
4
3
|
import { FaArrowLeft } from 'react-icons/fa'
|
|
4
|
+
import { useNavigate } from 'react-router-dom'
|
|
5
5
|
|
|
6
6
|
function RestrictedAccess() {
|
|
7
7
|
const { t } = useTranslation('Design')
|
|
8
|
+
const navigate = useNavigate()
|
|
8
9
|
|
|
9
10
|
return (
|
|
10
11
|
<>
|
|
11
|
-
<Button
|
|
12
|
-
className='mt-3 ml-3'
|
|
13
|
-
variant='link'
|
|
14
|
-
onClick={() => RouteService.goBack()}
|
|
15
|
-
>
|
|
12
|
+
<Button className='mt-3 ml-3' variant='link' onClick={() => navigate(-1)}>
|
|
16
13
|
<FaArrowLeft size={25} />
|
|
17
14
|
</Button>
|
|
18
15
|
<div className='container d-flex justify-content-center pt-5'>
|
|
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
15
15
|
left: 0;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
z-index:
|
|
18
|
+
z-index: 2147483646;
|
|
19
19
|
background-color: rgba(0, 0, 0, 0.5);
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
z-index:
|
|
27
|
+
z-index: 2147483647;
|
|
28
28
|
display: none;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
-
|
|
106
105
|
.form-disable-box {
|
|
107
106
|
display: none;
|
|
108
107
|
position: absolute;
|
|
@@ -184,7 +183,6 @@
|
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
@include media-breakpoint-up(md) {
|
|
187
|
-
|
|
188
186
|
.ryft-payment-form,
|
|
189
187
|
.form-disable-box {
|
|
190
188
|
height: 50%;
|
|
@@ -213,4 +211,4 @@
|
|
|
213
211
|
.divider {
|
|
214
212
|
display: none !important;
|
|
215
213
|
}
|
|
216
|
-
}
|
|
214
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ReactElement,
|
|
8
8
|
} from 'react'
|
|
9
9
|
import { Col, Row, Table } from 'react-bootstrap'
|
|
10
|
-
import { useLocation } from 'react-router-dom'
|
|
10
|
+
import { useLocation, useNavigate } from 'react-router-dom'
|
|
11
11
|
import { isEqual } from 'lodash'
|
|
12
12
|
import clsx from 'clsx'
|
|
13
13
|
import {
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
ColumnDefResolved,
|
|
16
16
|
getCoreRowModel,
|
|
17
17
|
} from '@tanstack/react-table'
|
|
18
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
19
18
|
import TableService from '@licklist/plugins/dist/services/Table/TableService'
|
|
20
19
|
import { LoaderIndicator } from '../static/loader/LoaderIndicator'
|
|
21
20
|
import { FilterHelperComponent } from './FilterHelperComponent'
|
|
@@ -74,6 +73,7 @@ function WrappedReactTableHelperComponent<T extends object>(
|
|
|
74
73
|
} = props
|
|
75
74
|
|
|
76
75
|
const { pathname } = useLocation()
|
|
76
|
+
const navigate = useNavigate()
|
|
77
77
|
|
|
78
78
|
const {
|
|
79
79
|
sortKey,
|
|
@@ -167,9 +167,7 @@ function WrappedReactTableHelperComponent<T extends object>(
|
|
|
167
167
|
...externalFilters,
|
|
168
168
|
})
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
[pathname, nextUrlSearchParams.toString()].join('?'),
|
|
172
|
-
)
|
|
170
|
+
navigate([pathname, nextUrlSearchParams.toString()].join('?'))
|
|
173
171
|
},
|
|
174
172
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
175
173
|
[pathname, options, externalFilters],
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
2
2
|
import { SetStateAction, useEffect, useState } from 'react'
|
|
3
3
|
import { Col, Row, Table } from 'react-bootstrap'
|
|
4
|
-
import { useLocation } from 'react-router-dom'
|
|
4
|
+
import { useLocation, useNavigate } from 'react-router-dom'
|
|
5
5
|
import { isEqual } from 'lodash'
|
|
6
6
|
import useQuery from '@licklist/plugins/dist/hooks/Query/useQuery'
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
8
7
|
import TableService from '@licklist/plugins/dist/services/Table/TableService'
|
|
9
8
|
import ILengthAwarePaginator from '@licklist/plugins/dist/types/services/Table/ILengthAwarePaginator'
|
|
10
9
|
import ITableHeader from '@licklist/plugins/dist/types/services/Table/ITableHeader'
|
|
@@ -68,6 +67,7 @@ function TableHelperComponent(props: TableHelperComponentProps) {
|
|
|
68
67
|
|
|
69
68
|
const query = useQuery()
|
|
70
69
|
const { pathname } = useLocation()
|
|
70
|
+
const navigate = useNavigate()
|
|
71
71
|
|
|
72
72
|
const page = Number(getFilterOptionsValue(query, initialOptions, 'page'))
|
|
73
73
|
const perPage = Number(
|
|
@@ -113,7 +113,7 @@ function TableHelperComponent(props: TableHelperComponentProps) {
|
|
|
113
113
|
onRefreshFn(options)
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
navigate(
|
|
117
117
|
[
|
|
118
118
|
pathname,
|
|
119
119
|
[
|
|
@@ -4,8 +4,8 @@ import { useId } from '@react-aria/utils'
|
|
|
4
4
|
import { useTranslation } from 'react-i18next'
|
|
5
5
|
import clsx from 'clsx'
|
|
6
6
|
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
8
7
|
import { FaEye, FaEllipsisH, FaTrashAlt } from 'react-icons/fa'
|
|
8
|
+
import { useNavigate } from 'react-router-dom'
|
|
9
9
|
import { MenuButton } from '../../table/MenuButton'
|
|
10
10
|
import { ConfirmModal } from '../../modals'
|
|
11
11
|
|
|
@@ -26,14 +26,15 @@ export function VenueMapSetCard({
|
|
|
26
26
|
const { t } = useTranslation('Design')
|
|
27
27
|
const popoverId = useId()
|
|
28
28
|
const [isOverlayVisibile, setIsOverlayVisible] = useState(false)
|
|
29
|
+
const navigate = useNavigate()
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
32
|
<div
|
|
32
33
|
role='button'
|
|
33
34
|
tabIndex={0}
|
|
34
35
|
className='border-0 venue-map-set-card-wrapper w-100 pb-0'
|
|
35
|
-
onClick={() =>
|
|
36
|
-
onKeyUp={() =>
|
|
36
|
+
onClick={() => navigate(href)}
|
|
37
|
+
onKeyUp={() => navigate(href)}
|
|
37
38
|
>
|
|
38
39
|
<div className={clsx('venue-map-set-card', className)}>
|
|
39
40
|
<div className='venue-map-set-card-link'>{name}</div>
|
|
@@ -4,8 +4,8 @@ import { useTranslation } from 'react-i18next'
|
|
|
4
4
|
import clsx from 'clsx'
|
|
5
5
|
import { useId } from '@react-aria/utils'
|
|
6
6
|
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
8
7
|
import { FaEllipsisH, FaEye, FaTrashAlt } from 'react-icons/fa'
|
|
8
|
+
import { useNavigate } from 'react-router-dom'
|
|
9
9
|
import { ConfirmModal } from '../../modals'
|
|
10
10
|
import { MenuButton } from '../../table/MenuButton'
|
|
11
11
|
|
|
@@ -27,14 +27,15 @@ export function ZoneCard({
|
|
|
27
27
|
const popoverId = useId()
|
|
28
28
|
const ZoneCardClasses = `zone-card ${className}`
|
|
29
29
|
const [isOverlayVisibile, setIsOverlayVisible] = useState(false)
|
|
30
|
+
const navigate = useNavigate()
|
|
30
31
|
|
|
31
32
|
return (
|
|
32
33
|
<div
|
|
33
34
|
role='button'
|
|
34
35
|
tabIndex={0}
|
|
35
36
|
className='border-0 zone-card-wrapper w-100 pb-0'
|
|
36
|
-
onClick={() =>
|
|
37
|
-
onKeyUp={() =>
|
|
37
|
+
onClick={() => navigate(href)}
|
|
38
|
+
onKeyUp={() => navigate(href)}
|
|
38
39
|
>
|
|
39
40
|
<div className={ZoneCardClasses}>
|
|
40
41
|
<div className='zone-card-link'>{name}</div>
|