@licklist/design 0.69.3-dev.7 → 0.69.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- 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 +28 -31
- 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 +2 -14
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +2 -3
- package/dist/events/event-card/utils.d.ts +0 -1
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-card/utils.js +2 -6
- package/dist/iframe/activity-card/ActivityCard.d.ts +4 -7
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +40 -59
- 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/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +2 -8
- package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +1 -20
- package/dist/index.js +0 -1
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +8 -172
- 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/card/ProductSetCard.d.ts +2 -6
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +11 -30
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +3 -4
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- package/dist/product-set/control/ProductSetControl.d.ts +0 -4
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +3 -30
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -48
- package/dist/product-set/form/ProductSetForm.d.ts +1 -4
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -64
- 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.js +0 -1
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- 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/index.d.ts +0 -1
- package/dist/product-set/form/index.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- 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 +0 -7
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -10
- 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/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +1 -16
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +0 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- 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/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
- package/dist/styles/activity-card/ListActivitiesCard.scss +42 -12
- package/dist/styles/activity-card/_index.scss +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/typeahead/Typeahead.d.ts +1 -5
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +2 -9
- 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 +0 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +85 -88
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +1 -11
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
- package/src/events/event-card/utils.ts +1 -5
- package/src/iframe/activity-card/ActivityCard.tsx +24 -41
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/ryft/RyftPaymentForm.tsx +4 -9
- package/src/iframe/ryft/utils/ryft-form.ts +2 -28
- package/src/layout/DropDown.tsx +1 -1
- package/src/modals/confirmation/ConfirmModal.tsx +3 -19
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/product-set/card/ProductSetCard.tsx +8 -47
- package/src/product-set/control/DateAndRecurrenceInput.tsx +1 -3
- package/src/product-set/control/DateInput.tsx +1 -2
- package/src/product-set/control/ProductSetControl.tsx +52 -52
- package/src/product-set/form/MobileFooter.tsx +3 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +2 -24
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +3 -0
- package/src/product-set/form/VenueMapsControl.tsx +3 -0
- package/src/product-set/form/index.ts +0 -1
- package/src/product-set/product/ProductControl.tsx +1 -0
- 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/product-set/utils/index.ts +0 -11
- 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/admin/PaymentFeeForm.tsx +0 -5
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- 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/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
- package/src/styles/activity-card/ListActivitiesCard.scss +42 -12
- package/src/styles/activity-card/_index.scss +1 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/typeahead/Typeahead.tsx +1 -15
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +47 -73
- package/dist/product-set/control/ProductSetImageControl.d.ts +0 -2
- package/dist/product-set/control/ProductSetImageControl.d.ts.map +0 -1
- package/dist/product-set/control/ProductSetImageControl.js +0 -279
- package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
- package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
- package/dist/product-set/form/ProductSetNameControl.js +0 -35
- package/src/product-set/control/ProductSetImageControl.tsx +0 -97
- package/src/product-set/form/ProductSetNameControl.tsx +0 -27
|
@@ -14,7 +14,6 @@ import TutorialGifCard from './TutorialGifCard.js';
|
|
|
14
14
|
import { StepsControl } from '../form/StepsControl.js';
|
|
15
15
|
import { Typeahead } from '../../typeahead/Typeahead.js';
|
|
16
16
|
import { DateInput } from './DateInput.js';
|
|
17
|
-
import { ProductSetImageControl } from './ProductSetImageControl.js';
|
|
18
17
|
import WarningMessage from '../../static/WarningMessage.js';
|
|
19
18
|
|
|
20
19
|
function _define_property(obj, key, value) {
|
|
@@ -73,10 +72,9 @@ var _obj;
|
|
|
73
72
|
var OPERATIONAL_COST_TITLES = (_obj = {}, _define_property(_obj, OPERATIONAL_COST_PROVIDER, 'operationalCostProvider'), _define_property(_obj, OPERATIONAL_COST_CUSTOMER, 'operationalCostCustomer'), _obj);
|
|
74
73
|
var _obj1;
|
|
75
74
|
var RELY_ON_PEOPLE_TYPE_TITLES = (_obj1 = {}, _define_property(_obj1, RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY, 'peopleProductCapacityQuantity'), _define_property(_obj1, RELY_ON_PEOPLE_PRODUCT_QUANTITY, 'peopleProductQuantity'), _define_property(_obj1, RELY_ON_PEOPLE_QUANTITY, 'peopleQuantity'), _obj1);
|
|
76
|
-
var MAX_DESCRIPTION_LENGTH = 100;
|
|
77
75
|
function ProductSetControl(param) {
|
|
78
76
|
var companyName = param.companyName, isLoading = param.isLoading, _param_fee = param.fee, fee = _param_fee === void 0 ? '5%' : _param_fee, _param_fieldSets = param.fieldSets, fieldSets = _param_fieldSets === void 0 ? [] : _param_fieldSets, _param_emailTemplates = param.emailTemplates, emailTemplates = _param_emailTemplates === void 0 ? [] : _param_emailTemplates, _param_smsTemplates = param.smsTemplates, smsTemplates = _param_smsTemplates === void 0 ? [] : _param_smsTemplates, isEventEditProductSet = param.isEventEditProductSet, isCreateAction = param.isCreateAction, showEmailTemplate = param.showEmailTemplate, showSmsTemplate = param.showSmsTemplate, workHours = param.workHours, _param_providerHasBookingManagement = param.providerHasBookingManagement, providerHasBookingManagement = _param_providerHasBookingManagement === void 0 ? false : _param_providerHasBookingManagement, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides, _param_isCreateNewOverrides = param.isCreateNewOverrides, isCreateNewOverrides = _param_isCreateNewOverrides === void 0 ? false : _param_isCreateNewOverrides, timeZone = param.timeZone;
|
|
79
|
-
var _errors_name
|
|
77
|
+
var _errors_name;
|
|
80
78
|
var t = useTranslation([
|
|
81
79
|
'Design',
|
|
82
80
|
'Validation',
|
|
@@ -85,7 +83,6 @@ function ProductSetControl(param) {
|
|
|
85
83
|
var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, watch = _useFormContext.watch, setError = _useFormContext.setError, clearErrors = _useFormContext.clearErrors;
|
|
86
84
|
var steps = watch('steps');
|
|
87
85
|
var nameId = useId();
|
|
88
|
-
var descriptionId = useId();
|
|
89
86
|
var termsAndConditionsId = useId();
|
|
90
87
|
var relyOnPeopleTypeId = useId();
|
|
91
88
|
var showSmsTemplateSelector = showSmsTemplate && !isOverrides;
|
|
@@ -144,31 +141,6 @@ function ProductSetControl(param) {
|
|
|
144
141
|
})
|
|
145
142
|
]
|
|
146
143
|
}),
|
|
147
|
-
/*#__PURE__*/ jsxs(Form.Group, {
|
|
148
|
-
controlId: descriptionId,
|
|
149
|
-
children: [
|
|
150
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
151
|
-
children: t('Design:description')
|
|
152
|
-
}),
|
|
153
|
-
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register('description', {
|
|
154
|
-
maxLength: {
|
|
155
|
-
value: MAX_DESCRIPTION_LENGTH,
|
|
156
|
-
message: t('Validation:fieldMaxLength', {
|
|
157
|
-
attribute: t('description'),
|
|
158
|
-
max: MAX_DESCRIPTION_LENGTH
|
|
159
|
-
})
|
|
160
|
-
}
|
|
161
|
-
})), {
|
|
162
|
-
as: "textarea",
|
|
163
|
-
isInvalid: Boolean(errors.description)
|
|
164
|
-
})),
|
|
165
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
166
|
-
type: "invalid",
|
|
167
|
-
children: (_errors_description = errors.description) === null || _errors_description === void 0 ? void 0 : _errors_description.message
|
|
168
|
-
})
|
|
169
|
-
]
|
|
170
|
-
}),
|
|
171
|
-
/*#__PURE__*/ jsx(ProductSetImageControl, {}),
|
|
172
144
|
showDateSelector ? /*#__PURE__*/ jsx(DateInput, {
|
|
173
145
|
workHours: isZoneAdded ? workHours : undefined,
|
|
174
146
|
isLoading: isLoading,
|
|
@@ -336,6 +308,7 @@ function ProductSetControl(param) {
|
|
|
336
308
|
name: "fieldSetId",
|
|
337
309
|
render: function(param) {
|
|
338
310
|
var field = param.field;
|
|
311
|
+
var fieldValue = Number(field.value);
|
|
339
312
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
340
313
|
children: [
|
|
341
314
|
/*#__PURE__*/ jsx(Form.Label, {
|
|
@@ -343,7 +316,7 @@ function ProductSetControl(param) {
|
|
|
343
316
|
}),
|
|
344
317
|
/*#__PURE__*/ jsxs(Form.Control, {
|
|
345
318
|
onChange: field.onChange,
|
|
346
|
-
value:
|
|
319
|
+
value: fieldValue,
|
|
347
320
|
as: "select",
|
|
348
321
|
disabled: isOverrides,
|
|
349
322
|
isInvalid: HookFormService.isInvalid('fieldSetId', errors),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileFooter.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/MobileFooter.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"MobileFooter.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/MobileFooter.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,4CAY3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAYA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAA;AAQzE,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAStE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AA0BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,6BAA6B,2CAoT/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAczC,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
3
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
4
4
|
import { uniqueId } from 'lodash';
|
|
5
5
|
import { Badge } from 'react-bootstrap';
|
|
6
6
|
import { useFormContext, useFieldArray, useWatch, Controller } from 'react-hook-form';
|
|
7
|
-
import { FaTicketAlt, FaCalendar, FaBars, FaBowlingBall } from 'react-icons/fa';
|
|
8
7
|
import { useTranslation } from 'react-i18next';
|
|
9
8
|
import { useSensor, MouseSensor } from '@dnd-kit/core';
|
|
10
9
|
import { CATEGORY_TYPE_GAME, CATEGORY_TYPE_FIXED_DURATION, QUANTITY_TYPE_STANDARD, CATEGORY_TYPE_TICKETS } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
@@ -14,7 +13,7 @@ import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js'
|
|
|
14
13
|
import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
|
|
15
14
|
import { ProductCategoryControl } from '../product-category/ProductCategoryControl.js';
|
|
16
15
|
import { ProductsControl } from './ProductsControl.js';
|
|
17
|
-
import {
|
|
16
|
+
import { SelectCategoryModal } from './SelectCategoryModal.js';
|
|
18
17
|
import { ProductSetLoadingContext } from './context.js';
|
|
19
18
|
import { VenueMapSetModal } from './VenueMapSetModal.js';
|
|
20
19
|
import { sortArrayByIndex, moveArrayElements } from '../utils/index.js';
|
|
@@ -118,40 +117,6 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
118
117
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
119
118
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
120
119
|
}
|
|
121
|
-
var _obj;
|
|
122
|
-
// @TODO not for first release
|
|
123
|
-
// import Popover from "./ProductSetFormPopover";
|
|
124
|
-
var CATEGORIES_TYPE = (_obj = {}, _define_property(_obj, CATEGORY_TYPES_NAMES.tickets, {
|
|
125
|
-
label: 'tickets',
|
|
126
|
-
icon: /*#__PURE__*/ jsx(FaTicketAlt, {
|
|
127
|
-
color: "#0e8ce2",
|
|
128
|
-
size: 10
|
|
129
|
-
})
|
|
130
|
-
}), _define_property(_obj, CATEGORY_TYPES_NAMES.bookings, {
|
|
131
|
-
label: 'bookings',
|
|
132
|
-
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
133
|
-
color: "#0e8ce2",
|
|
134
|
-
size: 10
|
|
135
|
-
})
|
|
136
|
-
}), _define_property(_obj, CATEGORY_TYPES_NAMES.menuItems, {
|
|
137
|
-
label: 'menuItems',
|
|
138
|
-
icon: /*#__PURE__*/ jsx(FaBars, {
|
|
139
|
-
color: "#0e8ce2",
|
|
140
|
-
size: 10
|
|
141
|
-
})
|
|
142
|
-
}), _define_property(_obj, CATEGORY_TYPES_NAMES.game, {
|
|
143
|
-
label: 'game',
|
|
144
|
-
icon: /*#__PURE__*/ jsx(FaBowlingBall, {
|
|
145
|
-
color: "#0e8ce2",
|
|
146
|
-
size: 10
|
|
147
|
-
})
|
|
148
|
-
}), _define_property(_obj, CATEGORY_TYPES_NAMES.fixedDuration, {
|
|
149
|
-
label: 'fixedDuration',
|
|
150
|
-
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
151
|
-
color: "#0e8ce2",
|
|
152
|
-
size: 10
|
|
153
|
-
})
|
|
154
|
-
}), _obj);
|
|
155
120
|
var getCategoryDefaultValue = function(categoryType, sort) {
|
|
156
121
|
return {
|
|
157
122
|
id: null,
|
|
@@ -285,7 +250,6 @@ function ProductCategoriesControl(param) {
|
|
|
285
250
|
var onSetIsExpanded = function() {
|
|
286
251
|
setIsExpanded(productCategoryId);
|
|
287
252
|
};
|
|
288
|
-
var categoryType = CATEGORIES_TYPE[productCategory.type];
|
|
289
253
|
return /*#__PURE__*/ jsx(Controller, {
|
|
290
254
|
name: "".concat(productCategoriesFieldName, ".").concat(index, ".name"),
|
|
291
255
|
control: control,
|
|
@@ -335,16 +299,6 @@ function ProductCategoriesControl(param) {
|
|
|
335
299
|
secondaryBadge: getBadgeConfig(productCategory.type, t(productCategory.type)),
|
|
336
300
|
modalClass: ProductSetModalClasses.category,
|
|
337
301
|
isNewAdded: showCategoryModal,
|
|
338
|
-
itemButton: /*#__PURE__*/ jsxs("div", {
|
|
339
|
-
className: "btn-outline-primary item-icon sm border border-primary rounded-sm",
|
|
340
|
-
children: [
|
|
341
|
-
categoryType.icon,
|
|
342
|
-
/*#__PURE__*/ jsx("span", {
|
|
343
|
-
className: "ml-2",
|
|
344
|
-
children: t(categoryType.label)
|
|
345
|
-
})
|
|
346
|
-
]
|
|
347
|
-
}),
|
|
348
302
|
body: /*#__PURE__*/ jsx(ProductCategoryControl, {
|
|
349
303
|
isLoading: isLoading,
|
|
350
304
|
onCategoryNameChange: onChange,
|
|
@@ -10,13 +10,10 @@ import { SelectItem } from '../../types/generic/SelectItem';
|
|
|
10
10
|
export interface WithIsLoading {
|
|
11
11
|
isLoading: boolean;
|
|
12
12
|
}
|
|
13
|
-
export interface WithIdOptional {
|
|
14
|
-
id?: number;
|
|
15
|
-
}
|
|
16
13
|
export interface WithId {
|
|
17
14
|
id: number;
|
|
18
15
|
}
|
|
19
|
-
export interface ProductSetFormValues extends FormValues,
|
|
16
|
+
export interface ProductSetFormValues extends FormValues, WithId, ProductSetControlValues {
|
|
20
17
|
steps: Step[];
|
|
21
18
|
isOverrides?: boolean;
|
|
22
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAK3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAErF,OAAO,EAEL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAG3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AACD,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,MAAM,EACN,uBAAuB;IACzB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,mBAAmB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC3D,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,mBAAmB,2CAiJrB"}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
3
|
import { Form, Row, Col, Button } from 'react-bootstrap';
|
|
4
4
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
7
7
|
import { isEqual } from 'lodash';
|
|
8
|
-
import { transformErrorToMessage } from '@licklist/plugins/dist/utils/error';
|
|
9
8
|
import { Dialog } from '../../modals/dialog/Dialog.js';
|
|
10
9
|
import { useDialogContext } from '../../modals/dialog/DialogContext.js';
|
|
11
10
|
import { ProductSetControl } from '../control/ProductSetControl.js';
|
|
12
11
|
import { ProductSetContextProvider, ProductSetLoadingContext } from './context.js';
|
|
13
12
|
import { getFilteredTemplates, checkAvailableTimesErrors } from '../utils/index.js';
|
|
14
|
-
import { ErrorModal } from '../../iframe/order-process/components/ErrorModal/ErrorModal.js';
|
|
15
13
|
|
|
16
|
-
function _array_like_to_array(arr, len) {
|
|
17
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
18
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
19
|
-
return arr2;
|
|
20
|
-
}
|
|
21
|
-
function _array_with_holes(arr) {
|
|
22
|
-
if (Array.isArray(arr)) return arr;
|
|
23
|
-
}
|
|
24
14
|
function _define_property(obj, key, value) {
|
|
25
15
|
if (key in obj) {
|
|
26
16
|
Object.defineProperty(obj, key, {
|
|
@@ -34,33 +24,6 @@ function _define_property(obj, key, value) {
|
|
|
34
24
|
}
|
|
35
25
|
return obj;
|
|
36
26
|
}
|
|
37
|
-
function _iterable_to_array_limit(arr, i) {
|
|
38
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
39
|
-
if (_i == null) return;
|
|
40
|
-
var _arr = [];
|
|
41
|
-
var _n = true;
|
|
42
|
-
var _d = false;
|
|
43
|
-
var _s, _e;
|
|
44
|
-
try {
|
|
45
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
46
|
-
_arr.push(_s.value);
|
|
47
|
-
if (i && _arr.length === i) break;
|
|
48
|
-
}
|
|
49
|
-
} catch (err) {
|
|
50
|
-
_d = true;
|
|
51
|
-
_e = err;
|
|
52
|
-
} finally{
|
|
53
|
-
try {
|
|
54
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
55
|
-
} finally{
|
|
56
|
-
if (_d) throw _e;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return _arr;
|
|
60
|
-
}
|
|
61
|
-
function _non_iterable_rest() {
|
|
62
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
63
|
-
}
|
|
64
27
|
function _object_spread(target) {
|
|
65
28
|
for(var i = 1; i < arguments.length; i++){
|
|
66
29
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -127,17 +90,6 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
127
90
|
}
|
|
128
91
|
return target;
|
|
129
92
|
}
|
|
130
|
-
function _sliced_to_array(arr, i) {
|
|
131
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
132
|
-
}
|
|
133
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
134
|
-
if (!o) return;
|
|
135
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
136
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
137
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
138
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
139
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
140
|
-
}
|
|
141
93
|
function ProductSetForm(_param) {
|
|
142
94
|
var companyName = _param.companyName, isLoading = _param.isLoading, defaultValues = _param.defaultValues, onSubmitAndRedirect = _param.onSubmitAndRedirect, onSubmitNoRedirect = _param.onSubmitNoRedirect, productGroupList = _param.productGroupList, serverErrors = _param.serverErrors, _param_providerHasMap = _param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = _param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = _param.providerHasBookingManagement, zones = _param.zones, isCreateAction = _param.isCreateAction, workHours = _param.workHours, isOverrides = _param.isOverrides, isCreateNewOverrides = _param.isCreateNewOverrides, timeZone = _param.timeZone, shared = _object_without_properties(_param, [
|
|
143
95
|
"companyName",
|
|
@@ -159,7 +111,6 @@ function ProductSetForm(_param) {
|
|
|
159
111
|
]);
|
|
160
112
|
var t = useTranslation('Design').t;
|
|
161
113
|
var _useDialogContext = useDialogContext(), isShownDialog = _useDialogContext.isShownDialog, onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState, onApproveDialog = _useDialogContext.onApproveDialog, onDeclineDialog = _useDialogContext.onDeclineDialog;
|
|
162
|
-
var _useState = _sliced_to_array(useState(''), 2), errorMessage = _useState[0], setErrorMessage = _useState[1];
|
|
163
114
|
var form = useForm({
|
|
164
115
|
defaultValues: defaultValues,
|
|
165
116
|
mode: 'onChange'
|
|
@@ -191,13 +142,6 @@ function ProductSetForm(_param) {
|
|
|
191
142
|
if (!serverErrors) {
|
|
192
143
|
return;
|
|
193
144
|
}
|
|
194
|
-
if (!Array.isArray(serverErrors)) {
|
|
195
|
-
setErrorMessage(transformErrorToMessage(serverErrors));
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
if (Array.isArray(serverErrors) && serverErrors[0]) {
|
|
199
|
-
setErrorMessage(serverErrors[0]);
|
|
200
|
-
}
|
|
201
145
|
FormErrorService.handleServerErrors(serverErrors, setError);
|
|
202
146
|
}, [
|
|
203
147
|
serverErrors,
|
|
@@ -227,13 +171,6 @@ function ProductSetForm(_param) {
|
|
|
227
171
|
onApprove: onApproveDialog,
|
|
228
172
|
onDecline: onDeclineDialog
|
|
229
173
|
}),
|
|
230
|
-
/*#__PURE__*/ jsx(ErrorModal, {
|
|
231
|
-
message: errorMessage,
|
|
232
|
-
isOpen: !!errorMessage,
|
|
233
|
-
onClose: function() {
|
|
234
|
-
return setErrorMessage('');
|
|
235
|
-
}
|
|
236
|
-
}),
|
|
237
174
|
/*#__PURE__*/ jsx(FormProvider, _object_spread_props(_object_spread({}, form), {
|
|
238
175
|
children: /*#__PURE__*/ jsx(Form, {
|
|
239
176
|
onSubmit: form.handleSubmit(submitHandler(onSubmitAndRedirect)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductZonesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductZonesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductZonesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductZonesControl.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAG/F,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAQrE,UAAU,wBAAwB,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAClE,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAaD,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,UAAU,mDAIrD,wBAAwB,CAAC,CAAC,CAAC,4CAqI7B,CAAA"}
|
|
@@ -11,6 +11,8 @@ import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
|
|
|
11
11
|
import { SortableTree } from '../../sortable-tree/SortableTree.js';
|
|
12
12
|
import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js';
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15
|
+
// @ts-nocheck
|
|
14
16
|
function _array_like_to_array(arr, len) {
|
|
15
17
|
if (len == null || len > arr.length) len = arr.length;
|
|
16
18
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -23,7 +23,6 @@ import 'react-bootstrap/Col';
|
|
|
23
23
|
import 'react-bootstrap/InputGroup';
|
|
24
24
|
import 'react-bootstrap/Row';
|
|
25
25
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
26
|
-
import '@licklist/plugins/dist/utils/error';
|
|
27
26
|
import '@licklist/plugins';
|
|
28
27
|
import 'react-bootstrap/Button';
|
|
29
28
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
1
|
import { CategoryType } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
3
|
-
export declare const CATEGORY_TYPES_NAMES: {
|
|
4
|
-
readonly menuItems: "menuItems";
|
|
5
|
-
readonly tickets: "tickets";
|
|
6
|
-
readonly bookings: "bookings";
|
|
7
|
-
readonly game: "game";
|
|
8
|
-
readonly fixedDuration: "fixedDuration";
|
|
9
|
-
};
|
|
10
|
-
export type CategoryConfig = {
|
|
11
|
-
label: string;
|
|
12
|
-
icon: ReactElement;
|
|
13
|
-
};
|
|
14
2
|
export interface SelectCategoryModalProps {
|
|
15
3
|
isVisible: boolean;
|
|
16
4
|
onHide: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAML,YAAY,EACb,MAAM,kEAAkE,CAAA;AAoDzE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;CACnD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,EACN,gBAAgB,GACjB,EAAE,wBAAwB,2CAyH1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAIvD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAIvD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,2CA0DzB"}
|
|
@@ -108,6 +108,9 @@ function SubProductsControl(param) {
|
|
|
108
108
|
images: (_subProducts_index = subProducts[index]) === null || _subProducts_index === void 0 ? void 0 : _subProducts_index.images
|
|
109
109
|
});
|
|
110
110
|
// @ts-expect-error TS2345
|
|
111
|
+
// @TODO fix prod type error
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
+
// @ts-ignore
|
|
111
114
|
append(subProductCopy);
|
|
112
115
|
}
|
|
113
116
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAG5F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAG5F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,4CA8DvB,CAAA"}
|
|
@@ -35,6 +35,9 @@ var VenueMapsControl = function(param) {
|
|
|
35
35
|
url: image.url,
|
|
36
36
|
name: name,
|
|
37
37
|
points: points,
|
|
38
|
+
// @TODO fix prod type error
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
40
|
+
// @ts-ignore
|
|
38
41
|
products: products,
|
|
39
42
|
pointProducts: pointProducts,
|
|
40
43
|
onPointProductsChange: onPointProductsChange
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAgBd,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,CACpC,SAAQ,gBAAgB,EACtB,mBAAmB,CAAC,CAAC,CAAC,EACtB,oCAAoC,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,mBAAmB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC/D,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,EACnD,SAAiB,EACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAwWxB"}
|
package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBookingManagementControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/booking-management/ProductBookingManagementControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAOrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAE9D,MAAM,WAAW,qCAAsC,SAAQ,UAAU;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oCAAoC,CAAC,CAAC,CACrD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,UAAU,EAClE,KAAK,EAAE,oCAAoC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductBookingManagementControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/booking-management/ProductBookingManagementControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAOrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAE9D,MAAM,WAAW,qCAAsC,SAAQ,UAAU;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oCAAoC,CAAC,CAAC,CACrD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,UAAU,EAClE,KAAK,EAAE,oCAAoC,CAAC,CAAC,CAAC,2CAyJ/C"}
|
|
@@ -128,9 +128,6 @@ function ProductBookingManagementControl(props) {
|
|
|
128
128
|
return /*#__PURE__*/ jsx(Form.Control, {
|
|
129
129
|
ref: ref,
|
|
130
130
|
type: "number",
|
|
131
|
-
onWheel: function(event) {
|
|
132
|
-
return event.currentTarget.blur();
|
|
133
|
-
},
|
|
134
131
|
min: 0,
|
|
135
132
|
step: 1,
|
|
136
133
|
value: value,
|
|
@@ -177,9 +174,6 @@ function ProductBookingManagementControl(props) {
|
|
|
177
174
|
return /*#__PURE__*/ jsx(Form.Control, {
|
|
178
175
|
ref: ref,
|
|
179
176
|
type: "number",
|
|
180
|
-
onWheel: function(event) {
|
|
181
|
-
return event.currentTarget.blur();
|
|
182
|
-
},
|
|
183
177
|
min: "0",
|
|
184
178
|
step: "1",
|
|
185
179
|
value: value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductDepositControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/deposit/ProductDepositControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC3E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EACxD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductDepositControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/deposit/ProductDepositControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC3E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,UAAU,EACxD,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,2CA2ErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/duration/ProductDurationControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAOlG,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,kCAGrC,2BAA2B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/duration/ProductDurationControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAOlG,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,kCAGrC,2BAA2B,CAAC,CAAC,CAAC,4CAqIhC,CAAA"}
|
|
@@ -87,9 +87,6 @@ var ProductDurationControl = function(param) {
|
|
|
87
87
|
/*#__PURE__*/ jsx(Form.Control, {
|
|
88
88
|
type: "number",
|
|
89
89
|
min: 0,
|
|
90
|
-
onWheel: function(event) {
|
|
91
|
-
return event.currentTarget.blur();
|
|
92
|
-
},
|
|
93
90
|
step: 1,
|
|
94
91
|
value: durationHours,
|
|
95
92
|
disabled: disabled,
|
|
@@ -137,9 +134,6 @@ var ProductDurationControl = function(param) {
|
|
|
137
134
|
type: "number",
|
|
138
135
|
min: 0,
|
|
139
136
|
step: 1,
|
|
140
|
-
onWheel: function(event) {
|
|
141
|
-
return event.currentTarget.blur();
|
|
142
|
-
},
|
|
143
137
|
disabled: disabled,
|
|
144
138
|
value: durationMinutes,
|
|
145
139
|
isInvalid: isInvalid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductPriceControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/price/ProductPriceControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAc,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AAIlE,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,EACxD,SAAiB,EACjB,eAAe,EACf,KAAK,EACL,aAAa,EACb,UAAiB,EACjB,cAAc,GACf,EAAE,wBAAwB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductPriceControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/price/ProductPriceControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAKzF,OAAO,EAAc,IAAI,EAAkB,MAAM,iBAAiB,CAAA;AAIlE,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,EACxD,SAAiB,EACjB,eAAe,EACf,KAAK,EACL,aAAa,EACb,UAAiB,EACjB,cAAc,GACf,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CAgG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductQuantityConstantControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityConstantControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAiBrE,MAAM,WAAW,oCAAqC,SAAQ,UAAU;IACtE,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mCAAmC,CAAC,CAAC,CACpD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,UAAU,EACjE,KAAK,EAAE,mCAAmC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductQuantityConstantControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityConstantControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAiBrE,MAAM,WAAW,oCAAqC,SAAQ,UAAU;IACtE,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mCAAmC,CAAC,CAAC,CACpD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,UAAU,EACjE,KAAK,EAAE,mCAAmC,CAAC,CAAC,CAAC,2CAkL9C"}
|
|
@@ -67,9 +67,6 @@ function ProductQuantityConstantControl(props) {
|
|
|
67
67
|
type: "number",
|
|
68
68
|
min: 0,
|
|
69
69
|
step: 1,
|
|
70
|
-
onWheel: function(event) {
|
|
71
|
-
return event.currentTarget.blur();
|
|
72
|
-
},
|
|
73
70
|
value: value,
|
|
74
71
|
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".totalQuantity"), errors),
|
|
75
72
|
disabled: true
|
|
@@ -123,9 +120,6 @@ function ProductQuantityConstantControl(props) {
|
|
|
123
120
|
type: "number",
|
|
124
121
|
min: 0,
|
|
125
122
|
step: 1,
|
|
126
|
-
onWheel: function(event) {
|
|
127
|
-
return event.currentTarget.blur();
|
|
128
|
-
},
|
|
129
123
|
value: value,
|
|
130
124
|
onChange: onChange,
|
|
131
125
|
onFocus: onFocus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductQuantityControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,UAAU,EACzD,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductQuantityControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,UAAU,EACzD,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,2CAsJtC"}
|
|
@@ -65,9 +65,6 @@ function ProductQuantityControl(props) {
|
|
|
65
65
|
type: "number",
|
|
66
66
|
min: 0,
|
|
67
67
|
step: 1,
|
|
68
|
-
onWheel: function(event) {
|
|
69
|
-
return event.currentTarget.blur();
|
|
70
|
-
},
|
|
71
68
|
value: value,
|
|
72
69
|
onChange: onChange,
|
|
73
70
|
onFocus: onFocus,
|
|
@@ -126,9 +123,6 @@ function ProductQuantityControl(props) {
|
|
|
126
123
|
type: "number",
|
|
127
124
|
min: 0,
|
|
128
125
|
step: 1,
|
|
129
|
-
onWheel: function(event) {
|
|
130
|
-
return event.currentTarget.blur();
|
|
131
|
-
},
|
|
132
126
|
value: value && value,
|
|
133
127
|
onFocus: onFocus,
|
|
134
128
|
onChange: onChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductQuantityRechargingControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityRechargingControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,sCAAuC,SAAQ,UAAU;IACxE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,qCAAqC,CAAC,CAAC,CACtD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,UAAU,EACnE,KAAK,EAAE,qCAAqC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductQuantityRechargingControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/quantity/ProductQuantityRechargingControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AASrE,MAAM,WAAW,sCAAuC,SAAQ,UAAU;IACxE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,qCAAqC,CAAC,CAAC,CACtD,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,UAAU,EACnE,KAAK,EAAE,qCAAqC,CAAC,CAAC,CAAC,2CAkGhD"}
|
|
@@ -97,10 +97,7 @@ function ProductQuantityRechargingControl(props) {
|
|
|
97
97
|
ref: ref,
|
|
98
98
|
type: "number",
|
|
99
99
|
min: 0,
|
|
100
|
-
step: 1
|
|
101
|
-
onWheel: function(event) {
|
|
102
|
-
return event.currentTarget.blur();
|
|
103
|
-
}
|
|
100
|
+
step: 1
|
|
104
101
|
}, register("".concat(fieldNamePrefix, ".totalQuantity"), {
|
|
105
102
|
validate: function(value) {
|
|
106
103
|
if (unlimited) return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCategoryControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product-category/ProductCategoryControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAEzF,OAAO,EACL,YAAY,EACZ,YAAY,EAKb,MAAM,kEAAkE,CAAA;AAGzE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,UAAU,CAAA;AAG5D,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IAEpB,oBAAoB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAQD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACT,UAAkB,GACnB,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"ProductCategoryControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product-category/ProductCategoryControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAEzF,OAAO,EACL,YAAY,EACZ,YAAY,EAKb,MAAM,kEAAkE,CAAA;AAGzE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,UAAU,CAAA;AAG5D,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IAEpB,oBAAoB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAQD,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACT,UAAkB,GACnB,EAAE,2BAA2B,2CA4e7B"}
|