@licklist/design 0.69.1-dev.4 → 0.69.2
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 +24 -50
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
- 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/iframe/activity-card/ActivityCard.d.ts +4 -5
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +40 -52
- 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/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 -24
- 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/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
- 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 +2 -3
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +86 -85
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
- package/src/iframe/activity-card/ActivityCard.tsx +24 -35
- 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 +5 -13
- package/src/iframe/ryft/utils/ryft-form.ts +2 -26
- 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/DateInput.tsx +1 -2
- package/src/product-set/control/ProductSetControl.tsx +52 -46
- 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/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
- 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 +32 -58
- 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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CSSObjectWithLabel } from 'react-select';
|
|
2
1
|
export type TypeaheadOptions = {
|
|
3
2
|
id: number | string;
|
|
4
3
|
value: any;
|
|
@@ -9,14 +8,11 @@ export interface TypeaheadProps {
|
|
|
9
8
|
placeholder: string;
|
|
10
9
|
isRequired?: boolean;
|
|
11
10
|
name: string;
|
|
12
|
-
value?: TypeaheadOptions;
|
|
13
11
|
isMultipleChoise?: boolean;
|
|
14
12
|
noOptionsMessage: string;
|
|
15
13
|
isInvalid?: boolean;
|
|
16
14
|
isCouponForm?: boolean;
|
|
17
|
-
containerStyles?: CSSObjectWithLabel;
|
|
18
|
-
onChangeValue?: (value: TypeaheadOptions) => void;
|
|
19
15
|
}
|
|
20
|
-
declare function Typeahead({ options, placeholder, isRequired, isMultipleChoise, name,
|
|
16
|
+
declare function Typeahead({ options, placeholder, isRequired, isMultipleChoise, name, isCouponForm, noOptionsMessage, isInvalid, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
|
|
21
17
|
export { Typeahead };
|
|
22
18
|
//# sourceMappingURL=Typeahead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typeahead.d.ts","sourceRoot":"","sources":["../../src/typeahead/Typeahead.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Typeahead.d.ts","sourceRoot":"","sources":["../../src/typeahead/Typeahead.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,gBAAgB,EAChB,IAAS,EACT,YAAoB,EACpB,gBAAqB,EACrB,SAAS,GACV,EAAE,cAAc,2CA4ChB;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -31,7 +31,7 @@ function _object_spread(target) {
|
|
|
31
31
|
return target;
|
|
32
32
|
}
|
|
33
33
|
function Typeahead(param) {
|
|
34
|
-
var options = param.options, placeholder = param.placeholder, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, isMultipleChoise = param.isMultipleChoise, _param_name = param.name, name = _param_name === void 0 ? '' : _param_name,
|
|
34
|
+
var options = param.options, placeholder = param.placeholder, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, isMultipleChoise = param.isMultipleChoise, _param_name = param.name, name = _param_name === void 0 ? '' : _param_name, _param_isCouponForm = param.isCouponForm, isCouponForm = _param_isCouponForm === void 0 ? false : _param_isCouponForm, _param_noOptionsMessage = param.noOptionsMessage, noOptionsMessage = _param_noOptionsMessage === void 0 ? '' : _param_noOptionsMessage, isInvalid = param.isInvalid;
|
|
35
35
|
var control = useFormContext().control;
|
|
36
36
|
var getStyle = function() {
|
|
37
37
|
var couponFormStyle = isCouponForm ? {
|
|
@@ -53,21 +53,14 @@ function Typeahead(param) {
|
|
|
53
53
|
var field = param.field;
|
|
54
54
|
return /*#__PURE__*/ jsx(Select, {
|
|
55
55
|
placeholder: placeholder,
|
|
56
|
-
value:
|
|
56
|
+
value: field.value,
|
|
57
57
|
isMulti: isMultipleChoise,
|
|
58
58
|
styles: {
|
|
59
|
-
container: function(base) {
|
|
60
|
-
return _object_spread({}, base, containerStyles);
|
|
61
|
-
},
|
|
62
59
|
control: function(base) {
|
|
63
60
|
return _object_spread({}, base, getStyle());
|
|
64
61
|
}
|
|
65
62
|
},
|
|
66
63
|
onChange: function(value) {
|
|
67
|
-
if (onChangeValue) {
|
|
68
|
-
onChangeValue(value);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
64
|
field.onChange(value);
|
|
72
65
|
},
|
|
73
66
|
options: options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CA+B1B,CAAA"}
|
|
@@ -77,9 +77,6 @@ var GameDurationControl = function(param) {
|
|
|
77
77
|
required: false,
|
|
78
78
|
min: 1
|
|
79
79
|
})), {
|
|
80
|
-
onWheel: function(event) {
|
|
81
|
-
return event.currentTarget.blur();
|
|
82
|
-
},
|
|
83
80
|
placeholder: t('Design:duration'),
|
|
84
81
|
isInvalid: Boolean(errors.defaultDuration),
|
|
85
82
|
disabled: isLoading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAmC1D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.30.
|
|
45
|
+
"@licklist/core": "0.30.1",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.33.
|
|
47
|
+
"@licklist/plugins": "0.33.1",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.30.
|
|
64
|
+
"@licklist/core": "0.30.1",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.33.
|
|
66
|
+
"@licklist/plugins": "0.33.1",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -202,10 +202,8 @@
|
|
|
202
202
|
"yarn tsc"
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
|
-
"packageManager": "yarn@4.4.0",
|
|
206
205
|
"volta": {
|
|
207
206
|
"node": "20.9.0",
|
|
208
207
|
"yarn": "4.4.0"
|
|
209
|
-
}
|
|
210
|
-
"stableVersion": "0.69.1-dev.3"
|
|
208
|
+
}
|
|
211
209
|
}
|
|
@@ -76,7 +76,6 @@ export const AffiliateForm = ({
|
|
|
76
76
|
const copyToClipboard = () =>
|
|
77
77
|
// eslint-disable-next-line consistent-return
|
|
78
78
|
window.navigator.clipboard.writeText(formValues.link)
|
|
79
|
-
|
|
80
79
|
return (
|
|
81
80
|
<FormProvider {...form}>
|
|
82
81
|
<Form onSubmit={form.handleSubmit(handleSubmit)}>
|
|
@@ -17,6 +17,7 @@ import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorServ
|
|
|
17
17
|
import { ServerError } from '@licklist/plugins/dist/hooks/Api/useHttpQuery'
|
|
18
18
|
import { scrollToError } from '@licklist/plugins/dist/utils/ScrollUtils'
|
|
19
19
|
import { getFirstErrorKey } from '@licklist/plugins/dist/utils/FormValues'
|
|
20
|
+
|
|
20
21
|
import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
|
|
21
22
|
import { CategoryGroup } from '../../../../types/categories'
|
|
22
23
|
import { SaleDeadline } from '../SaleDeadline/SaleDeadline'
|
|
@@ -30,6 +31,7 @@ import { FileUpload } from '../../../../file-upload'
|
|
|
30
31
|
import { IntervalInput, IntervalInputValues } from '../../IntervalInput'
|
|
31
32
|
import { SelectEventProductSet } from '../SelectEventProductSet'
|
|
32
33
|
import { Dialog, useDialogContext } from '../../../../modals/dialog'
|
|
34
|
+
|
|
33
35
|
import { ProductSetFormValues } from '../../../../product-set/form/ProductSetForm'
|
|
34
36
|
import { isUrlValid } from '../../utils/isUrlValid'
|
|
35
37
|
|
|
@@ -63,7 +65,6 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
63
65
|
setEditProductSetId: (value: string) => void
|
|
64
66
|
isExternalPaymentLinkEnabled?: boolean
|
|
65
67
|
timeZone: string
|
|
66
|
-
eventProductSet?: ProductSet
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
const eventImageTypes = {
|
|
@@ -84,7 +85,6 @@ export const EditEventForm = ({
|
|
|
84
85
|
setEditProductSetId,
|
|
85
86
|
isExternalPaymentLinkEnabled,
|
|
86
87
|
timeZone,
|
|
87
|
-
eventProductSet,
|
|
88
88
|
}: EditEventFormProps) => {
|
|
89
89
|
const { t } = useTranslation(['Design', 'Validation'])
|
|
90
90
|
|
|
@@ -405,7 +405,6 @@ export const EditEventForm = ({
|
|
|
405
405
|
setShowEditProductSet={setShowEditProductSet}
|
|
406
406
|
showEditProductSet={showEditProductSet}
|
|
407
407
|
timeZone={timeZone}
|
|
408
|
-
eventProductSet={eventProductSet}
|
|
409
408
|
/>
|
|
410
409
|
|
|
411
410
|
{hasPermission && !showEditProductSet && (
|
package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx
CHANGED
|
@@ -5,11 +5,9 @@ import { useId } from '@react-aria/utils'
|
|
|
5
5
|
import { Controller, useFormContext } from 'react-hook-form'
|
|
6
6
|
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
|
|
7
7
|
import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
|
|
8
|
-
import { getTypeHeadItemsFromMenus } from '../../../../product-set/utils'
|
|
9
8
|
import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal'
|
|
10
9
|
import { EditEventFormValues } from '../EditEventForm/EditEventForm'
|
|
11
10
|
import { EditEventProductSet } from './component/EditEventProductSet'
|
|
12
|
-
import { Typeahead } from '../../../../typeahead'
|
|
13
11
|
|
|
14
12
|
interface SelectEventProductSetProps extends HasPermissionProp {
|
|
15
13
|
productSets?: ProductSet[]
|
|
@@ -18,22 +16,16 @@ interface SelectEventProductSetProps extends HasPermissionProp {
|
|
|
18
16
|
createProductSet: (props: EditEventFormValues) => void
|
|
19
17
|
setEditProductSetId: (value: string) => void
|
|
20
18
|
timeZone: string
|
|
21
|
-
eventProductSet?: ProductSet
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
export const SelectEventProductSet = ({
|
|
25
|
-
productSets
|
|
22
|
+
productSets,
|
|
26
23
|
createProductSet,
|
|
27
24
|
setEditProductSetId,
|
|
28
25
|
showEditProductSet,
|
|
29
26
|
setShowEditProductSet,
|
|
30
27
|
timeZone,
|
|
31
|
-
eventProductSet,
|
|
32
28
|
}: SelectEventProductSetProps) => {
|
|
33
|
-
const productSets = eventProductSet
|
|
34
|
-
? [..._productSets, eventProductSet]
|
|
35
|
-
: _productSets
|
|
36
|
-
|
|
37
29
|
const { t } = useTranslation(['Design'])
|
|
38
30
|
const form = useFormContext<EditEventFormValues>()
|
|
39
31
|
|
|
@@ -50,17 +42,6 @@ export const SelectEventProductSet = ({
|
|
|
50
42
|
const productSetId = watch('productSetId')
|
|
51
43
|
const editedProductSet = watch('editedProductSet')
|
|
52
44
|
|
|
53
|
-
const typeheadValues = getTypeHeadItemsFromMenus(
|
|
54
|
-
editedProductSet
|
|
55
|
-
? productSets.map((productSet) =>
|
|
56
|
-
productSet.id === editedProductSet.id ? editedProductSet : productSet,
|
|
57
|
-
)
|
|
58
|
-
: productSets,
|
|
59
|
-
)
|
|
60
|
-
const selectedProductSetTypeheadValue = productSetId
|
|
61
|
-
? typeheadValues?.find((typeheadValue) => typeheadValue.id === productSetId)
|
|
62
|
-
: undefined
|
|
63
|
-
|
|
64
45
|
const onEditProductSet = useCallback(
|
|
65
46
|
() => {
|
|
66
47
|
setEditProductSetId(String(productSetId))
|
|
@@ -114,7 +95,6 @@ export const SelectEventProductSet = ({
|
|
|
114
95
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
115
96
|
const onSubmit = (value: EditEventFormValues['editedProductSet']) => {
|
|
116
97
|
setShowEditProductSet(false)
|
|
117
|
-
setValue('productSetId', value.id)
|
|
118
98
|
setValue('editedProductSet', value)
|
|
119
99
|
}
|
|
120
100
|
|
|
@@ -130,72 +110,93 @@ export const SelectEventProductSet = ({
|
|
|
130
110
|
<Controller
|
|
131
111
|
control={control}
|
|
132
112
|
name='productSetId'
|
|
133
|
-
render={() =>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
113
|
+
render={({ field }) => {
|
|
114
|
+
const fieldValue = String(field.value)
|
|
115
|
+
return (
|
|
116
|
+
<>
|
|
117
|
+
<div className='d-flex align-items-center flex-row w-100'>
|
|
118
|
+
<ConfirmModal>
|
|
119
|
+
{(confirm) => (
|
|
120
|
+
<Form.Control
|
|
121
|
+
as='select'
|
|
122
|
+
onChange={(e) =>
|
|
123
|
+
onChangeProductSet(Number(e.target.value), confirm)
|
|
124
|
+
}
|
|
125
|
+
isInvalid={Boolean(errors.productSetId)}
|
|
126
|
+
value={fieldValue}
|
|
127
|
+
>
|
|
128
|
+
<option value='' hidden>
|
|
129
|
+
{t('Design:chooseProductSet')}
|
|
130
|
+
</option>
|
|
131
|
+
{productSets?.map((productSet) => {
|
|
132
|
+
const isCurrentEditedProductSet =
|
|
133
|
+
editedProductSet &&
|
|
134
|
+
editedProductSet?.id === productSet?.id
|
|
135
|
+
return (
|
|
136
|
+
<option key={productSet.id} value={productSet.id}>
|
|
137
|
+
{isCurrentEditedProductSet ||
|
|
138
|
+
productSet.isOverride
|
|
139
|
+
? `[${t('edited')}] ${
|
|
140
|
+
isCurrentEditedProductSet
|
|
141
|
+
? editedProductSet?.name
|
|
142
|
+
: productSet.name
|
|
143
|
+
}`
|
|
144
|
+
: productSet.name}
|
|
145
|
+
</option>
|
|
146
|
+
)
|
|
147
|
+
})}
|
|
148
|
+
</Form.Control>
|
|
149
|
+
)}
|
|
150
|
+
</ConfirmModal>
|
|
151
|
+
|
|
152
|
+
<div className='buttons-container'>
|
|
153
|
+
{!showEditProductSet && !editedProductSet && (
|
|
154
|
+
<Button
|
|
155
|
+
variant=''
|
|
156
|
+
className='btn product-set-button mr-4'
|
|
157
|
+
onClick={handleCreateProductSet}
|
|
158
|
+
>
|
|
159
|
+
{t('addNewProductSet')}
|
|
160
|
+
</Button>
|
|
161
|
+
)}
|
|
162
|
+
{showOverrideProductSet && (
|
|
163
|
+
<Button
|
|
164
|
+
variant=''
|
|
165
|
+
className='btn product-set-button'
|
|
166
|
+
onClick={onEditProductSet}
|
|
167
|
+
>
|
|
168
|
+
{isOverrideProductSet
|
|
169
|
+
? t('editOverrides')
|
|
170
|
+
: t('editProductSet')}
|
|
171
|
+
</Button>
|
|
172
|
+
)}
|
|
173
|
+
{showEditProductSet && (
|
|
174
|
+
<Button
|
|
175
|
+
variant=''
|
|
176
|
+
className='btn product-set-button'
|
|
177
|
+
onClick={revertEditProductSet}
|
|
178
|
+
>
|
|
179
|
+
{t('cancelAndRevert')}
|
|
180
|
+
</Button>
|
|
181
|
+
)}
|
|
182
|
+
{!showEditProductSet && editedProductSet && (
|
|
183
|
+
<Button
|
|
184
|
+
variant=''
|
|
185
|
+
className='btn product-set-button ml-4 text-danger'
|
|
186
|
+
onClick={revertEditProductSet}
|
|
187
|
+
>
|
|
188
|
+
{t('undoChanges')}
|
|
189
|
+
</Button>
|
|
190
|
+
)}
|
|
191
|
+
</div>
|
|
191
192
|
</div>
|
|
192
|
-
</div>
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
<Form.Control.Feedback type='invalid'>
|
|
195
|
+
{errors?.productSetId?.message}
|
|
196
|
+
</Form.Control.Feedback>
|
|
197
|
+
</>
|
|
198
|
+
)
|
|
199
|
+
}}
|
|
199
200
|
/>
|
|
200
201
|
</Form.Group>
|
|
201
202
|
</div>
|
|
@@ -12,8 +12,6 @@ export const getDefaultValues = (
|
|
|
12
12
|
): ProductSetFormValues => ({
|
|
13
13
|
id: productSet?.id ?? 0,
|
|
14
14
|
name: productSet?.name ?? '',
|
|
15
|
-
description: productSet?.description ?? '',
|
|
16
|
-
image: productSet?.image,
|
|
17
15
|
type: productSet?.type ?? DEFAULT_PRODUCT_SET_TYPE,
|
|
18
16
|
termsAndConditions: productSet?.termsAndConditions ?? '',
|
|
19
17
|
operationalCost: productSet?.operationalCost ?? DEFAULT_OPERATIONAL_COST_TYPE,
|
|
@@ -39,6 +37,7 @@ export const getDefaultValues = (
|
|
|
39
37
|
...product,
|
|
40
38
|
subProducts: subProducts?.map(({ ...subProducts }) => ({
|
|
41
39
|
...subProducts,
|
|
40
|
+
originalProductId: null,
|
|
42
41
|
productCategoryId: undefined,
|
|
43
42
|
})),
|
|
44
43
|
productCategoryId: undefined,
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { ReactNode } from 'react'
|
|
2
2
|
import clsx from 'clsx'
|
|
3
|
-
import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
|
|
4
3
|
|
|
5
4
|
export const LAYOUT_GRID = 'grid'
|
|
6
5
|
export const LAYOUT_LIST = 'list'
|
|
7
6
|
|
|
7
|
+
type Layout = typeof LAYOUT_GRID | typeof LAYOUT_LIST
|
|
8
|
+
|
|
8
9
|
export type ActivityCardProps = {
|
|
9
10
|
title: ReactNode
|
|
10
11
|
duration: ReactNode
|
|
11
12
|
price: ReactNode
|
|
12
|
-
description?: ReactNode
|
|
13
13
|
onSelect: () => void
|
|
14
14
|
isSelected: boolean
|
|
15
|
-
layout?:
|
|
15
|
+
layout?: Layout
|
|
16
16
|
availableTimes?: string | null
|
|
17
|
-
image?: Image | null
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
export const ActivityCard = ({
|
|
21
20
|
title,
|
|
22
21
|
duration,
|
|
23
22
|
price,
|
|
24
|
-
description,
|
|
25
23
|
availableTimes,
|
|
26
|
-
image,
|
|
24
|
+
// image,
|
|
27
25
|
onSelect,
|
|
28
26
|
isSelected,
|
|
29
27
|
layout = LAYOUT_GRID,
|
|
@@ -32,48 +30,39 @@ export const ActivityCard = ({
|
|
|
32
30
|
return (
|
|
33
31
|
<button
|
|
34
32
|
type='button'
|
|
35
|
-
className={clsx('activity-card',
|
|
33
|
+
className={clsx('activity-card', isSelected && 'active')}
|
|
36
34
|
onClick={onSelect}
|
|
37
35
|
>
|
|
38
|
-
{
|
|
39
|
-
<img src={image.url} alt={typeof title === 'string' ? title : ''} />
|
|
40
|
-
)}
|
|
41
|
-
|
|
42
|
-
<div>
|
|
36
|
+
<div className={clsx('d-flex', 'flex-column')}>
|
|
43
37
|
<div className='activity-card-title'>{title}</div>
|
|
44
38
|
{duration && <div>{duration}</div>}
|
|
39
|
+
|
|
45
40
|
{price && <div>{price}</div>}
|
|
46
|
-
{description && (
|
|
47
|
-
<div className='mt-2 activity-card-description'>{description}</div>
|
|
48
|
-
)}
|
|
49
41
|
</div>
|
|
50
42
|
</button>
|
|
51
43
|
)
|
|
52
44
|
}
|
|
53
45
|
|
|
54
46
|
return (
|
|
55
|
-
<button
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
<div role='button' onClick={onSelect} onKeyPress={onSelect} tabIndex={0}>
|
|
48
|
+
<div
|
|
49
|
+
className={clsx('list-activity-card', {
|
|
50
|
+
active: isSelected,
|
|
51
|
+
})}
|
|
52
|
+
>
|
|
53
|
+
<div className='description'>
|
|
54
|
+
<div className='title mb-2'>{title}</div>
|
|
55
|
+
{availableTimes && <div>{availableTimes}</div>}
|
|
56
|
+
{duration && (
|
|
57
|
+
<div>
|
|
58
|
+
<p>{duration}</p>
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{availableTimes && <div>{availableTimes}</div>}
|
|
69
|
-
{duration && <div>{duration}</div>}
|
|
70
|
-
{price && <div>{price}</div>}
|
|
71
|
-
{description && (
|
|
72
|
-
<div className='mt-2 activity-card-description'>{description}</div>
|
|
73
|
-
)}
|
|
62
|
+
{price && <div>{price}</div>}
|
|
63
|
+
</div>
|
|
74
64
|
</div>
|
|
75
|
-
|
|
76
65
|
<hr className='list-activity-card-hr' />
|
|
77
|
-
</
|
|
66
|
+
</div>
|
|
78
67
|
)
|
|
79
68
|
}
|
package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx
CHANGED
|
@@ -89,7 +89,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
89
89
|
<FormControl
|
|
90
90
|
type='number'
|
|
91
91
|
onChange={(e) => handleChangeValue(Number(e.target.value))}
|
|
92
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
93
92
|
value={value}
|
|
94
93
|
min={0}
|
|
95
94
|
max={max}
|
|
@@ -102,14 +101,6 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
|
|
|
102
101
|
<button
|
|
103
102
|
type='button'
|
|
104
103
|
onClick={handleArrowUpClick}
|
|
105
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
106
|
-
onFocus={(event) =>
|
|
107
|
-
event.target.addEventListener(
|
|
108
|
-
'wheel',
|
|
109
|
-
(event) => event.preventDefault(),
|
|
110
|
-
{ passive: false },
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
104
|
className={`payment-number-input__btn-up ${
|
|
114
105
|
plusButtonGreyedOut && 'disabled-number-input-button'
|
|
115
106
|
}`}
|
|
@@ -38,7 +38,7 @@ export interface RyftPaymentFormProps {
|
|
|
38
38
|
isCreateLoading: boolean
|
|
39
39
|
isAppUsingInIframe?: boolean
|
|
40
40
|
onApplePayButtonClick?: () => void
|
|
41
|
-
|
|
41
|
+
applePayButtonDisabled?: boolean
|
|
42
42
|
initRyft: (
|
|
43
43
|
onSuccess: () => void,
|
|
44
44
|
onFailure: (error?: string) => void,
|
|
@@ -57,7 +57,6 @@ export const RyftPaymentForm = ({
|
|
|
57
57
|
initRyft,
|
|
58
58
|
resetReferrer,
|
|
59
59
|
onSubmit,
|
|
60
|
-
payButtonDisabled,
|
|
61
60
|
}: RyftPaymentFormProps) => {
|
|
62
61
|
const { t } = useTranslation(['Design', 'Validation', 'Ryft'])
|
|
63
62
|
const formRef = useRef<HTMLFormElement | null>(null)
|
|
@@ -90,6 +89,7 @@ export const RyftPaymentForm = ({
|
|
|
90
89
|
|
|
91
90
|
const handleSubmit = async () => {
|
|
92
91
|
setIsBtnDisabled(true)
|
|
92
|
+
|
|
93
93
|
try {
|
|
94
94
|
const paymentSession = await onSubmit()
|
|
95
95
|
|
|
@@ -142,21 +142,17 @@ export const RyftPaymentForm = ({
|
|
|
142
142
|
t,
|
|
143
143
|
isAppUsingInIframe,
|
|
144
144
|
onApplePayButtonClick,
|
|
145
|
-
isDisableButton: !payButtonDisabled,
|
|
146
145
|
additionalPaymentMethodsEnabled:
|
|
147
146
|
providerPaymentSettings?.additionalPaymentMethodsEnabled,
|
|
148
147
|
})
|
|
149
148
|
},
|
|
150
149
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
151
|
-
[
|
|
152
|
-
formRef.current?.childNodes?.length,
|
|
153
|
-
showApplePayButton,
|
|
154
|
-
payButtonDisabled,
|
|
155
|
-
],
|
|
150
|
+
[formRef.current?.childNodes?.length, showApplePayButton],
|
|
156
151
|
)
|
|
157
152
|
|
|
158
153
|
useEffect(() => {
|
|
159
154
|
if (!accountId.data?.account_id || accountId.isError) return
|
|
155
|
+
|
|
160
156
|
initRyft(
|
|
161
157
|
() => {
|
|
162
158
|
addEventHandler('cardValidationChanged', (e: MessageEvent['data']) => {
|
|
@@ -219,12 +215,8 @@ export const RyftPaymentForm = ({
|
|
|
219
215
|
onSubmit={methods.handleSubmit(handleSubmit)}
|
|
220
216
|
className='ryft-payment-form'
|
|
221
217
|
>
|
|
222
|
-
<div className='form-disable-box' id="form-disable-box"/>
|
|
223
218
|
<div className='submit-button-wrapper mt-4 p-1'>
|
|
224
|
-
<Button
|
|
225
|
-
type='submit'
|
|
226
|
-
disabled={isBtnDisabled || !isValid}
|
|
227
|
-
>
|
|
219
|
+
<Button type='submit' disabled={isBtnDisabled || !isValid}>
|
|
228
220
|
{isBtnDisabled && <ButtonLoader />}
|
|
229
221
|
{t('Design:buyNow')}
|
|
230
222
|
</Button>
|