@licklist/design 0.74.0-dev.1 → 0.74.0
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/assets/dashboard/chartBar.svg.js +2 -2
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +1 -2
- 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 +4 -6
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- 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 +1 -2
- 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 +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +11 -4
- 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 +0 -13
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/product-set/control/ProductSetControl.d.ts +1 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +2 -13
- package/dist/product-set/form/ProductCategoriesControl.d.ts +1 -2
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -3
- package/dist/product-set/form/ProductSetForm.d.ts +4 -7
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +3 -5
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/ProductsControl.d.ts +1 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +3 -7
- package/dist/product-set/form/StepsControl.d.ts +1 -2
- package/dist/product-set/form/StepsControl.d.ts.map +1 -1
- package/dist/product-set/form/StepsControl.js +3 -5
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/form/context.d.ts +2 -1
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +2 -6
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -36
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
- package/dist/product-set/utils/index.d.ts +1 -5
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- 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 +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/dist/styles/form/CustomCheckbox.scss +0 -31
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +3 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +7 -15
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +0 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +0 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +13 -5
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +0 -1
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/product-set/control/ProductSetControl.tsx +0 -17
- package/src/product-set/form/ProductCategoriesControl.tsx +0 -3
- package/src/product-set/form/ProductSetForm.tsx +6 -10
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/ProductsControl.tsx +7 -6
- package/src/product-set/form/StepsControl.tsx +3 -4
- package/src/product-set/form/SubProductsControl.tsx +3 -1
- package/src/product-set/form/VenueMapsControl.tsx +3 -0
- package/src/product-set/form/context.tsx +5 -2
- package/src/product-set/product/ProductControl.tsx +18 -57
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
- package/src/resource/form/components/CapacityControl.tsx +0 -1
- package/src/resource/form/components/SortControl.tsx +0 -1
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- package/src/sortable-tree/SortableTreeItem.tsx +6 -1
- package/src/static/CurrencyNumberInput.tsx +0 -1
- package/src/static/form-number-input/FormNumberInput.tsx +0 -1
- package/src/static/number-input/NumberInput.tsx +0 -1
- package/src/styles/form/CustomCheckbox.scss +0 -31
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +3 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +847 -827
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts +0 -12
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts.map +0 -1
- package/dist/product-set/product/scanRange/ProductScanRangeControl.js +0 -153
- package/dist/product-set/product/scanRange/index.d.ts +0 -2
- package/dist/product-set/product/scanRange/index.d.ts.map +0 -1
- package/src/product-set/product/scanRange/ProductScanRangeControl.stories.ts +0 -45
- package/src/product-set/product/scanRange/ProductScanRangeControl.tsx +0 -163
- package/src/product-set/product/scanRange/index.ts +0 -1
|
@@ -8,9 +8,12 @@ import {
|
|
|
8
8
|
} from 'react'
|
|
9
9
|
import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper'
|
|
10
10
|
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper'
|
|
11
|
+
// eslint-disable-next-line max-len
|
|
12
|
+
import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper'
|
|
11
13
|
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper'
|
|
12
14
|
import { SelectItem } from '../../types/generic/SelectItem'
|
|
13
15
|
|
|
16
|
+
|
|
14
17
|
interface LoadingContext {
|
|
15
18
|
isLoading: boolean
|
|
16
19
|
setLoading: (loading: boolean) => void
|
|
@@ -18,7 +21,7 @@ interface LoadingContext {
|
|
|
18
21
|
modifiersSetList?: ModifierSet[] | null
|
|
19
22
|
providerHasMap?: boolean | null
|
|
20
23
|
venueMapSets?: VenueMapSet[]
|
|
21
|
-
providerHasBookingManagement?:
|
|
24
|
+
providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement']
|
|
22
25
|
zones?: Zone[] | null
|
|
23
26
|
expandedProductCategories: Record<string, boolean>
|
|
24
27
|
setExpandedProductCategories: Dispatch<
|
|
@@ -43,7 +46,7 @@ type ProductSetContextProviderProps = PropsWithChildren<
|
|
|
43
46
|
export function ProductSetContextProvider({
|
|
44
47
|
children,
|
|
45
48
|
productGroupList = [],
|
|
46
|
-
modifiersSetList =
|
|
49
|
+
modifiersSetList =[],
|
|
47
50
|
providerHasMap = false,
|
|
48
51
|
venueMapSets = [],
|
|
49
52
|
providerHasBookingManagement,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryType,
|
|
3
3
|
QuantityType,
|
|
4
|
+
QUANTITY_TYPE_CONSTANT,
|
|
5
|
+
QUANTITY_TYPE_LIST_DTO,
|
|
6
|
+
QUANTITY_TYPE_RECHARGING,
|
|
4
7
|
} from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper'
|
|
5
|
-
import {
|
|
6
|
-
PRODUCT_WAIVER_TYPE_ADULT,
|
|
7
|
-
PRODUCT_WAIVER_TYPE_CHILD,
|
|
8
|
-
ProductType,
|
|
9
|
-
ProductWaiverType,
|
|
10
|
-
} from '@licklist/core/dist/DataMapper/Product/ProductDataMapper'
|
|
8
|
+
import { ProductType } from '@licklist/core/dist/DataMapper/Product/ProductDataMapper'
|
|
11
9
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService'
|
|
12
10
|
import clsx from 'clsx'
|
|
13
11
|
import {
|
|
@@ -30,11 +28,13 @@ import {
|
|
|
30
28
|
Controller,
|
|
31
29
|
Path,
|
|
32
30
|
useFormContext,
|
|
31
|
+
useWatch,
|
|
33
32
|
UnpackNestedValue,
|
|
34
33
|
PathValue,
|
|
35
34
|
} from 'react-hook-form'
|
|
36
35
|
import { useTranslation } from 'react-i18next'
|
|
37
36
|
import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages'
|
|
37
|
+
|
|
38
38
|
import {
|
|
39
39
|
Image,
|
|
40
40
|
IMAGE_TYPE_IMAGE,
|
|
@@ -65,7 +65,7 @@ import { MAX_PRODUCT_DESCRIPTION_CHARACTERS_LENGTH } from './constants'
|
|
|
65
65
|
import { ProductZoneControlValues } from '../product-zone'
|
|
66
66
|
import { AdvancedOptions } from './advanced-options'
|
|
67
67
|
import { ProductZonesControl } from '../form/ProductZonesControl'
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
|
|
70
70
|
export interface ModifiersSet {
|
|
71
71
|
id: number
|
|
@@ -87,8 +87,6 @@ export interface ProductControlValues
|
|
|
87
87
|
deposit: number
|
|
88
88
|
minQuantity: number
|
|
89
89
|
maxQuantity: number
|
|
90
|
-
scanRangeStart?: number
|
|
91
|
-
scanRangeEnd?: number
|
|
92
90
|
totalQuantity: number
|
|
93
91
|
isAvailable: boolean
|
|
94
92
|
isSoldOut: boolean
|
|
@@ -108,7 +106,6 @@ export interface ProductControlValues
|
|
|
108
106
|
sort: number | null
|
|
109
107
|
color?: string
|
|
110
108
|
productZones?: ProductZoneControlValues[]
|
|
111
|
-
waiverType?: ProductWaiverType | null
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
export interface ProductControlProps<T>
|
|
@@ -125,7 +122,7 @@ export interface ProductControlProps<T>
|
|
|
125
122
|
hasTicket?: boolean
|
|
126
123
|
categoryType?: CategoryType
|
|
127
124
|
isOverrides?: boolean
|
|
128
|
-
|
|
125
|
+
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
export function ProductControl<T extends FormValues>({
|
|
@@ -139,8 +136,8 @@ export function ProductControl<T extends FormValues>({
|
|
|
139
136
|
productName,
|
|
140
137
|
categoryType,
|
|
141
138
|
isOverrides = false,
|
|
142
|
-
isWaiverEnabled,
|
|
143
139
|
}: ProductControlProps<T>) {
|
|
140
|
+
|
|
144
141
|
const {
|
|
145
142
|
register,
|
|
146
143
|
control,
|
|
@@ -206,6 +203,7 @@ export function ProductControl<T extends FormValues>({
|
|
|
206
203
|
setInitialImages(formImages as Image[])
|
|
207
204
|
}, [getValues, setInitialImages, fieldNamePrefix])
|
|
208
205
|
|
|
206
|
+
|
|
209
207
|
useEffect(() => {
|
|
210
208
|
if (Array.isArray(images)) {
|
|
211
209
|
setValue(
|
|
@@ -301,21 +299,14 @@ export function ProductControl<T extends FormValues>({
|
|
|
301
299
|
isOverrides={isOverrides}
|
|
302
300
|
onFocus={onFocus}
|
|
303
301
|
/>
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
<ProductScanRangeControl<T>
|
|
313
|
-
isLoading={isLoading}
|
|
314
|
-
fieldNamePrefix={fieldNamePrefix}
|
|
315
|
-
isOverrides={isOverrides}
|
|
316
|
-
onFocus={onFocus}
|
|
317
|
-
/>
|
|
318
|
-
|
|
302
|
+
|
|
303
|
+
<ProductQuantityRechargingControl<T>
|
|
304
|
+
isLoading={isLoading}
|
|
305
|
+
fieldNamePrefix={fieldNamePrefix}
|
|
306
|
+
onFocus={onFocus}
|
|
307
|
+
disabled={isUnlimited}
|
|
308
|
+
/>
|
|
309
|
+
|
|
319
310
|
<Form.Group
|
|
320
311
|
controlId={unlimitedQuantityId}
|
|
321
312
|
className='custom-checkbox'
|
|
@@ -420,36 +411,6 @@ export function ProductControl<T extends FormValues>({
|
|
|
420
411
|
name={`${fieldNamePrefix}.isSoldOut` as Path<T>}
|
|
421
412
|
/>
|
|
422
413
|
</Form.Group>
|
|
423
|
-
|
|
424
|
-
{isWaiverEnabled && (
|
|
425
|
-
<Form.Group>
|
|
426
|
-
<Form.Label>{t('Design:waiverType')}</Form.Label>
|
|
427
|
-
<Form.Control
|
|
428
|
-
{...register(`${fieldNamePrefix}.waiverType` as Path<T>)}
|
|
429
|
-
as='select'
|
|
430
|
-
defaultValue={PRODUCT_WAIVER_TYPE_ADULT}
|
|
431
|
-
disabled={isOverrides}
|
|
432
|
-
isInvalid={HookFormService.isInvalid(
|
|
433
|
-
`${fieldNamePrefix}.waiverType` as Path<T>,
|
|
434
|
-
errors,
|
|
435
|
-
)}
|
|
436
|
-
>
|
|
437
|
-
<option value={PRODUCT_WAIVER_TYPE_ADULT}>
|
|
438
|
-
{t('Design:adult')}
|
|
439
|
-
</option>
|
|
440
|
-
<option value={PRODUCT_WAIVER_TYPE_CHILD}>
|
|
441
|
-
{t('Design:child')}
|
|
442
|
-
</option>
|
|
443
|
-
</Form.Control>
|
|
444
|
-
<Form.Control.Feedback type='invalid'>
|
|
445
|
-
{HookFormService.getErrors(
|
|
446
|
-
`${fieldNamePrefix}.waiverType` as Path<T>,
|
|
447
|
-
errors,
|
|
448
|
-
)}
|
|
449
|
-
</Form.Control.Feedback>
|
|
450
|
-
</Form.Group>
|
|
451
|
-
)}
|
|
452
|
-
|
|
453
414
|
<Form.Group controlId={advancedId} className='custom-checkbox'>
|
|
454
415
|
<Form.Check
|
|
455
416
|
custom
|
|
@@ -86,7 +86,6 @@ export function ProductBookingManagementControl<T extends FormValues>(
|
|
|
86
86
|
<Form.Control
|
|
87
87
|
ref={ref}
|
|
88
88
|
type='number'
|
|
89
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
90
89
|
min={0}
|
|
91
90
|
step={1}
|
|
92
91
|
value={value as string}
|
|
@@ -130,7 +129,6 @@ export function ProductBookingManagementControl<T extends FormValues>(
|
|
|
130
129
|
<Form.Control
|
|
131
130
|
ref={ref}
|
|
132
131
|
type='number'
|
|
133
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
134
132
|
min='0'
|
|
135
133
|
step='1'
|
|
136
134
|
value={value as string}
|
|
@@ -91,7 +91,6 @@ export const ProductDurationControl = <T,>({
|
|
|
91
91
|
<Form.Control
|
|
92
92
|
type='number'
|
|
93
93
|
min={0}
|
|
94
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
95
94
|
step={1}
|
|
96
95
|
value={durationHours}
|
|
97
96
|
disabled={disabled}
|
|
@@ -128,7 +127,6 @@ export const ProductDurationControl = <T,>({
|
|
|
128
127
|
type='number'
|
|
129
128
|
min={0}
|
|
130
129
|
step={1}
|
|
131
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
132
130
|
disabled={disabled}
|
|
133
131
|
value={durationMinutes}
|
|
134
132
|
isInvalid={isInvalid}
|
|
@@ -111,7 +111,6 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
111
111
|
type='number'
|
|
112
112
|
min={0}
|
|
113
113
|
step={1}
|
|
114
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
115
114
|
value={value as string}
|
|
116
115
|
isInvalid={HookFormService.isInvalid<T>(
|
|
117
116
|
`${fieldNamePrefix}.totalQuantity` as Path<T>,
|
|
@@ -166,7 +165,6 @@ export function ProductQuantityConstantControl<T extends FormValues>(
|
|
|
166
165
|
type='number'
|
|
167
166
|
min={0}
|
|
168
167
|
step={1}
|
|
169
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
170
168
|
value={value as string}
|
|
171
169
|
onChange={onChange}
|
|
172
170
|
onFocus={onFocus}
|
|
@@ -85,7 +85,6 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
85
85
|
type='number'
|
|
86
86
|
min={0}
|
|
87
87
|
step={1}
|
|
88
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
89
88
|
value={value as string}
|
|
90
89
|
onChange={onChange}
|
|
91
90
|
onFocus={onFocus}
|
|
@@ -144,7 +143,6 @@ export function ProductQuantityControl<T extends FormValues>(
|
|
|
144
143
|
type='number'
|
|
145
144
|
min={0}
|
|
146
145
|
step={1}
|
|
147
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
148
146
|
value={value && (value as string)}
|
|
149
147
|
onFocus={onFocus}
|
|
150
148
|
onChange={onChange}
|
|
@@ -69,7 +69,6 @@ export function ProductQuantityRechargingControl<T extends FormValues>(
|
|
|
69
69
|
type='number'
|
|
70
70
|
min={0}
|
|
71
71
|
step={1}
|
|
72
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
73
72
|
{...register(`${fieldNamePrefix}.totalQuantity` as Path<T>, {
|
|
74
73
|
validate: (value) => {
|
|
75
74
|
if (unlimited) return true
|
|
@@ -221,7 +221,6 @@ export function ProductCategoryControl({
|
|
|
221
221
|
step={1}
|
|
222
222
|
value={value === null ? '' : value}
|
|
223
223
|
onChange={onChange}
|
|
224
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
225
224
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
226
225
|
`${fieldNamePrefix}.minSubItems` as const,
|
|
227
226
|
errors,
|
|
@@ -294,7 +293,6 @@ export function ProductCategoryControl({
|
|
|
294
293
|
name={name}
|
|
295
294
|
value={value === null ? '' : value}
|
|
296
295
|
onChange={onChange}
|
|
297
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
298
296
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
299
297
|
`${fieldNamePrefix}.maxSubItems` as const,
|
|
300
298
|
errors,
|
|
@@ -355,7 +353,6 @@ export function ProductCategoryControl({
|
|
|
355
353
|
min={0}
|
|
356
354
|
step={1}
|
|
357
355
|
type='number'
|
|
358
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
359
356
|
disabled={isOverride}
|
|
360
357
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
361
358
|
`${fieldNamePrefix}.overallQuantity`,
|
|
@@ -546,7 +543,6 @@ export function ProductCategoryControl({
|
|
|
546
543
|
step={1}
|
|
547
544
|
value={value}
|
|
548
545
|
onChange={onChange}
|
|
549
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
550
546
|
isInvalid={HookFormService.isInvalid<ProductSetFormValues>(
|
|
551
547
|
`${fieldNamePrefix}.remainderExpireAfter` as const,
|
|
552
548
|
errors,
|
|
@@ -109,7 +109,6 @@ function RecurrenceEndInput({
|
|
|
109
109
|
type='number'
|
|
110
110
|
min={1}
|
|
111
111
|
max={500}
|
|
112
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
113
112
|
disabled={disabled || !count || count === 500}
|
|
114
113
|
aria-label='Occurrence count'
|
|
115
114
|
value={count ?? defaultOccurrences[frequency]}
|
|
@@ -27,7 +27,6 @@ export const CapacityControl = ({ isLoading }: CapacityControlProps) => {
|
|
|
27
27
|
required: true,
|
|
28
28
|
min: 1,
|
|
29
29
|
})}
|
|
30
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
31
30
|
placeholder={t('Design:capacity')}
|
|
32
31
|
isInvalid={Boolean(errors.capacity)}
|
|
33
32
|
disabled={isLoading}
|
|
@@ -179,7 +179,6 @@ 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()}
|
|
183
182
|
isInvalid={errors.discount !== undefined}
|
|
184
183
|
{...register('discount', {
|
|
185
184
|
required: t('Validation:fieldRequired', {
|
|
@@ -317,7 +316,6 @@ export const CouponFormControl = ({
|
|
|
317
316
|
<Form.Control
|
|
318
317
|
{...register('totalCoupons')}
|
|
319
318
|
type='number'
|
|
320
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
321
319
|
isInvalid={errors.totalCoupons !== undefined}
|
|
322
320
|
disabled={isLoading}
|
|
323
321
|
/>
|
|
@@ -332,7 +330,6 @@ export const CouponFormControl = ({
|
|
|
332
330
|
<Form.Control
|
|
333
331
|
type='number'
|
|
334
332
|
{...register('usesPerUser')}
|
|
335
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
336
333
|
disabled={isLoading}
|
|
337
334
|
/>
|
|
338
335
|
</Form.Group>
|
|
@@ -345,7 +342,6 @@ export const CouponFormControl = ({
|
|
|
345
342
|
<Form.Control
|
|
346
343
|
type='number'
|
|
347
344
|
{...register('useAgain')}
|
|
348
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
349
345
|
disabled={isLoading}
|
|
350
346
|
/>
|
|
351
347
|
<Form.Text className='text-muted'>
|
|
@@ -359,7 +355,6 @@ export const CouponFormControl = ({
|
|
|
359
355
|
<Form.Control
|
|
360
356
|
type='number'
|
|
361
357
|
{...register('usesPerUserDay')}
|
|
362
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
363
358
|
disabled={isLoading}
|
|
364
359
|
/>
|
|
365
360
|
<Form.Text className='text-muted'>
|
|
@@ -375,7 +370,6 @@ export const CouponFormControl = ({
|
|
|
375
370
|
<Form.Control
|
|
376
371
|
type='number'
|
|
377
372
|
{...register('minAmount')}
|
|
378
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
379
373
|
disabled={isLoading}
|
|
380
374
|
/>
|
|
381
375
|
<Form.Text className='text-muted'>
|
|
@@ -389,7 +383,6 @@ export const CouponFormControl = ({
|
|
|
389
383
|
<Form.Control
|
|
390
384
|
type='number'
|
|
391
385
|
{...register('maxAmount')}
|
|
392
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
393
386
|
disabled={isLoading}
|
|
394
387
|
/>
|
|
395
388
|
<Form.Text className='text-muted'>
|
|
@@ -28,34 +28,3 @@
|
|
|
28
28
|
z-index: 2;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
.checkbox-second-column {
|
|
33
|
-
margin-top: 1rem;
|
|
34
|
-
display: flex;
|
|
35
|
-
z-index: 2;
|
|
36
|
-
align-items: center;
|
|
37
|
-
|
|
38
|
-
.custom-checkbox .custom-control-label::before {
|
|
39
|
-
width: 1.5rem;
|
|
40
|
-
height: 1.5rem;
|
|
41
|
-
border-radius: 0.5rem;
|
|
42
|
-
border: 2px solid #0e8ce2;
|
|
43
|
-
margin-top: -0.3rem;
|
|
44
|
-
}
|
|
45
|
-
.custom-checkbox .custom-control-label::after {
|
|
46
|
-
width: 1.5rem;
|
|
47
|
-
height: 1.5rem;
|
|
48
|
-
top: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.custom-control-label {
|
|
52
|
-
padding-left: 0.5rem;
|
|
53
|
-
font-weight: 400;
|
|
54
|
-
font-size: 1rem;
|
|
55
|
-
min-height: 3rem;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.checkbox-input {
|
|
59
|
-
z-index: 2;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -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: 1000000;
|
|
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: 1000001;
|
|
28
28
|
display: none;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.product-set-form {
|
|
2
|
+
|
|
2
3
|
input,
|
|
3
4
|
textarea,
|
|
4
5
|
select,
|
|
@@ -210,8 +211,8 @@
|
|
|
210
211
|
|
|
211
212
|
.sortable-tree-item-toggle {
|
|
212
213
|
.product-zone-badge {
|
|
213
|
-
background-color: #
|
|
214
|
-
color: #
|
|
214
|
+
background-color: #EFE9F5;
|
|
215
|
+
color: #84269B;
|
|
215
216
|
font-size: 0.875rem;
|
|
216
217
|
font-weight: 600;
|
|
217
218
|
}
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
+
|
|
105
106
|
.form-disable-box {
|
|
106
107
|
display: none;
|
|
107
108
|
position: absolute;
|
|
@@ -183,6 +184,7 @@
|
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
@include media-breakpoint-up(md) {
|
|
187
|
+
|
|
186
188
|
.ryft-payment-form,
|
|
187
189
|
.form-disable-box {
|
|
188
190
|
height: 50%;
|
|
@@ -211,4 +213,4 @@
|
|
|
211
213
|
.divider {
|
|
212
214
|
display: none !important;
|
|
213
215
|
}
|
|
214
|
-
}
|
|
216
|
+
}
|