@licklist/design 0.70.10-dev.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +9 -9
- package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.js +3 -2
- package/dist/calendar/utils/index.d.ts +2 -8
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +21 -9
- package/dist/date-time-button/DateContent.d.ts.map +1 -1
- package/dist/date-time-button/DateContent.js +3 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -2
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/product-set/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 -1
- 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/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/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/availability-indicator/AvailabilityIndicator.scss +1 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +0 -1
- package/dist/styles/iframe-events/Calendar.scss +13 -10
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/iframe-page/PageBody.scss +0 -1
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +7 -9
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +1 -2
- package/src/calendar/components/CalendarWeekdays/CalendarWeekdays.tsx +2 -2
- package/src/calendar/utils/index.ts +26 -17
- package/src/date-time-button/DateContent.tsx +3 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +2 -6
- 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/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/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/availability-indicator/AvailabilityIndicator.scss +1 -1
- package/src/styles/date-time-button/DateTimeButton.scss +0 -1
- package/src/styles/iframe-events/Calendar.scss +13 -10
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/iframe-page/PageBody.scss +0 -1
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +146 -135
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA8FpB,CAAA"}
|
|
@@ -203,10 +203,9 @@ var LoginComponent = function(param) {
|
|
|
203
203
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
204
204
|
var userApiService = useUserApi(request);
|
|
205
205
|
var handleError = function(error) {
|
|
206
|
-
var _error_response_data, _error_response;
|
|
207
206
|
notification.danger({
|
|
208
207
|
title: 'Error',
|
|
209
|
-
message:
|
|
208
|
+
message: error.message
|
|
210
209
|
});
|
|
211
210
|
};
|
|
212
211
|
var storeSecrets = function(secrets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDates.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDates/CalendarDates.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,aAAa,EACX,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,wBAAwB,GACxB,oBAAoB,CACvB,CAAA;AAED,eAAO,MAAM,aAAa,6GAOvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"CalendarDates.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDates/CalendarDates.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,aAAa,EACX,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,wBAAwB,GACxB,oBAAoB,CACvB,CAAA;AAED,eAAO,MAAM,aAAa,6GAOvB,kBAAkB,4CA6CpB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { DateTimeButton, Variant } from '../../../date-time-button/DateTimeButton.js';
|
|
4
4
|
import { CalendarWeekdays } from '../CalendarWeekdays/CalendarWeekdays.js';
|
|
@@ -74,13 +74,13 @@ var CalendarDates = function(param) {
|
|
|
74
74
|
}, [
|
|
75
75
|
calendarDates
|
|
76
76
|
]);
|
|
77
|
-
return /*#__PURE__*/
|
|
77
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
78
78
|
className: "calendar-dates-wrapper",
|
|
79
|
-
children:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
fillCalendarDates.map(function(date) {
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ jsx(CalendarWeekdays, {}),
|
|
81
|
+
/*#__PURE__*/ jsx("div", {
|
|
82
|
+
className: "calendar-dates",
|
|
83
|
+
children: fillCalendarDates.map(function(date) {
|
|
84
84
|
if (date === null) return /*#__PURE__*/ jsx("div", {});
|
|
85
85
|
var props = getDateTimeButtonProps(date);
|
|
86
86
|
return /*#__PURE__*/ jsx(DateTimeButton, _object_spread({
|
|
@@ -94,8 +94,8 @@ var CalendarDates = function(param) {
|
|
|
94
94
|
availabilityFormat: availabilityFormat
|
|
95
95
|
}, props), +date);
|
|
96
96
|
})
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
101
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
|
|
4
4
|
var WEEKDAYS = [
|
|
@@ -26,7 +26,8 @@ var WEEKDAYS = [
|
|
|
26
26
|
];
|
|
27
27
|
var CalendarWeekdays = function() {
|
|
28
28
|
var t = useTranslation('Design').t;
|
|
29
|
-
return /*#__PURE__*/ jsx(
|
|
29
|
+
return /*#__PURE__*/ jsx("div", {
|
|
30
|
+
className: "calendar-weekdays",
|
|
30
31
|
children: WEEKDAYS.map(function(param) {
|
|
31
32
|
var key = param.key;
|
|
32
33
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { TimeZone } from '@licklist/core/dist/DataMapper/Common/TimeZoneDataMapper';
|
|
2
1
|
import { DateTime } from 'luxon';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
timeZone: TimeZone['name'];
|
|
6
|
-
}) => DateTime[];
|
|
7
|
-
export declare const getMonthCalendarDates: Builder;
|
|
8
|
-
export declare const getWeekCalendarDates: Builder;
|
|
9
|
-
export {};
|
|
2
|
+
export declare const getMonthCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
|
|
3
|
+
export declare const getWeekCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
|
|
10
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAA;AAE1C,eAAO,MAAM,qBAAqB,gBACnB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAeV,CAAA;AAED,eAAO,MAAM,oBAAoB,gBAClB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAcV,CAAA"}
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Interval } from 'luxon';
|
|
2
2
|
|
|
3
|
-
var getMonthCalendarDates = function(
|
|
4
|
-
var _initialDate = param.initialDate, timeZone = param.timeZone;
|
|
5
|
-
var initialDate = _initialDate || DateTime.now().setZone(timeZone);
|
|
3
|
+
var getMonthCalendarDates = function(initialDate, timeZone) {
|
|
6
4
|
var startOfMonth = initialDate.startOf('month');
|
|
7
5
|
var endOfMonth = initialDate.endOf('month');
|
|
8
|
-
|
|
6
|
+
var dateTimes = Interval.fromDateTimes(startOfMonth, endOfMonth).splitBy({
|
|
9
7
|
day: 1
|
|
10
8
|
}).map(function(d) {
|
|
11
9
|
return d.start;
|
|
12
10
|
});
|
|
11
|
+
if (timeZone) {
|
|
12
|
+
return dateTimes.map(function(date) {
|
|
13
|
+
return date.setZone(timeZone, {
|
|
14
|
+
keepLocalTime: true
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return dateTimes;
|
|
13
19
|
};
|
|
14
|
-
var getWeekCalendarDates = function(
|
|
15
|
-
var timeZone = param.timeZone;
|
|
16
|
-
var initialDate = DateTime.now().setZone(timeZone);
|
|
20
|
+
var getWeekCalendarDates = function(initialDate, timeZone) {
|
|
17
21
|
var lastDay = initialDate.plus({
|
|
18
22
|
days: 7
|
|
19
23
|
});
|
|
20
|
-
|
|
24
|
+
var dateTimes = Interval.fromDateTimes(initialDate, lastDay).splitBy({
|
|
21
25
|
day: 1
|
|
22
26
|
}).map(function(d) {
|
|
23
27
|
return d.start;
|
|
24
28
|
});
|
|
29
|
+
if (timeZone) {
|
|
30
|
+
return dateTimes.map(function(date) {
|
|
31
|
+
return date.setZone(timeZone, {
|
|
32
|
+
keepLocalTime: true
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return dateTimes;
|
|
25
37
|
};
|
|
26
38
|
|
|
27
39
|
export { getMonthCalendarDates, getWeekCalendarDates };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateContent.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateContent.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateContent.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,mBAAmB,EAAW,MAAM,kBAAkB,CAAA;AAE/D,KAAK,gBAAgB,GAAG,IAAI,CAC1B,mBAAmB,EACnB,YAAY,GAAG,YAAY,GAAG,SAAS,CACxC,GAAG;IACF,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAED,eAAO,MAAM,WAAW,+CAKrB,gBAAgB,4CA6BlB,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { TIME_FORMAT, DAY_NUMBER, DAY_NUMBER_WITH_MONTH, DAY_OF_WEEK } from '@licklist/core/dist/Config';
|
|
3
3
|
import { getDayWithOrdinal } from '@licklist/plugins/dist/utils/formatDate';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { isToday, isTomorrow } from 'date-fns';
|
|
5
6
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { isToday, isTomorrow } from '@licklist/plugins/dist';
|
|
7
7
|
import { Variant } from './DateTimeButton.js';
|
|
8
8
|
|
|
9
9
|
function _array_like_to_array(arr, len) {
|
|
@@ -81,8 +81,8 @@ var DateContent = function(param) {
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
83
|
var getDate = function(date) {
|
|
84
|
-
if (isToday(date)) return 'today';
|
|
85
|
-
if (isTomorrow(date)) return 'tomorrow';
|
|
84
|
+
if (isToday(date.toJSDate())) return 'today';
|
|
85
|
+
if (isTomorrow(date.toJSDate())) return 'tomorrow';
|
|
86
86
|
return date.toFormat(DAY_OF_WEEK);
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -22,7 +22,7 @@ import 'react-bootstrap/Col';
|
|
|
22
22
|
import 'react-bootstrap/InputGroup';
|
|
23
23
|
import 'react-bootstrap/Row';
|
|
24
24
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
25
|
-
import '@licklist/plugins
|
|
25
|
+
import '@licklist/plugins';
|
|
26
26
|
import { ProductSetContextProvider } from '../../../../../product-set/form/context.js';
|
|
27
27
|
import { getFilteredTemplates } from '../../../../../product-set/utils/index.js';
|
|
28
28
|
import 'react-bootstrap/Button';
|
|
@@ -33,7 +33,6 @@ import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
|
33
33
|
import 'react-bootstrap/Collapse';
|
|
34
34
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
35
35
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
36
|
-
import '@licklist/plugins';
|
|
37
36
|
import '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
38
37
|
import '../../../../../static/index.js';
|
|
39
38
|
import '../../../../../tiptap-editor/TipTapEditor.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,
|
|
1
|
+
{"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAuCD,CAAA"}
|
|
@@ -135,6 +135,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
|
|
|
135
135
|
subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
|
|
136
136
|
var subProducts = _extends({}, _object_destructuring_empty(_param));
|
|
137
137
|
return _object_spread_props(_object_spread({}, subProducts), {
|
|
138
|
+
originalProductId: null,
|
|
138
139
|
productCategoryId: undefined
|
|
139
140
|
});
|
|
140
141
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventVenueMap.d.ts","sourceRoot":"","sources":["../../../src/events/event-venue-map/EventVenueMap.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAG7D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,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,IAAI;eACvC,OAAO;eACP,OAAO,CAAC,OAAO,CAAC,EAAE;oBACb,OAAO,CAAC,YAAY,CAAC,EAAE;4BACf,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI;sBAC/C,wBAAwB,EAAE;0EAiD7C,CAAA"}
|
|
@@ -58,7 +58,6 @@ function _object_spread_props(target, source) {
|
|
|
58
58
|
}
|
|
59
59
|
var EventVenueMap = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
60
60
|
var url = param.url, points = param.points, _param_editMode = param.editMode, editMode = _param_editMode === void 0 ? false : _param_editMode, name = param.name, onPointsChange = param.onPointsChange, products = param.products, pointProducts = param.pointProducts, onPointProductsChange = param.onPointProductsChange, width = param.width, height = param.height, onPointClick = param.onPointClick, _param_usedInIframe = param.usedInIframe, usedInIframe = _param_usedInIframe === void 0 ? false : _param_usedInIframe, _param_choosedProductUuids = param.choosedProductUuids, choosedProductUuids = _param_choosedProductUuids === void 0 ? [] : _param_choosedProductUuids, _param_errorOnChoosedProductUuids = param.errorOnChoosedProductUuids, errorOnChoosedProductUuids = _param_errorOnChoosedProductUuids === void 0 ? [] : _param_errorOnChoosedProductUuids, soldOutProducts = param.soldOutProducts;
|
|
61
|
-
// TODO fix often updating of canvasSizes, which leads to flashing poingts
|
|
62
61
|
var canvasSizes = useCanvasSize({
|
|
63
62
|
width: width,
|
|
64
63
|
height: height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;
|
|
1
|
+
{"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;CAUjB,CAAA"}
|
|
@@ -3,17 +3,7 @@ import { useWindowDimensions } from '@licklist/plugins/dist/hooks/Media/useWindo
|
|
|
3
3
|
|
|
4
4
|
var useCanvasSize = function(param) {
|
|
5
5
|
var componentWidth = param.width, componentHeight = param.height;
|
|
6
|
-
// TODO Fix often updating of width and height
|
|
7
6
|
var _useWindowDimensions = useWindowDimensions(), width = _useWindowDimensions.width, height = _useWindowDimensions.height;
|
|
8
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9
|
-
var memoizedDimensions = useMemo(function() {
|
|
10
|
-
return {
|
|
11
|
-
width: width,
|
|
12
|
-
height: height
|
|
13
|
-
};
|
|
14
|
-
}, [
|
|
15
|
-
width
|
|
16
|
-
]);
|
|
17
7
|
var memoedComponentParameters = useMemo(function() {
|
|
18
8
|
if (!componentWidth && !componentHeight) return null;
|
|
19
9
|
return {
|
|
@@ -24,7 +14,10 @@ var useCanvasSize = function(param) {
|
|
|
24
14
|
componentWidth,
|
|
25
15
|
componentHeight
|
|
26
16
|
]);
|
|
27
|
-
return memoedComponentParameters ||
|
|
17
|
+
return memoedComponentParameters || {
|
|
18
|
+
width: width,
|
|
19
|
+
height: height
|
|
20
|
+
};
|
|
28
21
|
};
|
|
29
22
|
|
|
30
23
|
export { useCanvasSize };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+GAgGvB,CAAA"}
|
package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js
CHANGED
|
@@ -54,9 +54,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
54
54
|
onChange: function(e) {
|
|
55
55
|
return handleChangeValue(Number(e.target.value));
|
|
56
56
|
},
|
|
57
|
-
onWheel: function(event) {
|
|
58
|
-
return event.currentTarget.blur();
|
|
59
|
-
},
|
|
60
57
|
value: value,
|
|
61
58
|
min: 0,
|
|
62
59
|
max: max,
|
|
@@ -69,16 +66,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
69
66
|
/*#__PURE__*/ jsx("button", {
|
|
70
67
|
type: "button",
|
|
71
68
|
onClick: handleArrowUpClick,
|
|
72
|
-
onWheel: function(event) {
|
|
73
|
-
return event.currentTarget.blur();
|
|
74
|
-
},
|
|
75
|
-
onFocus: function(event) {
|
|
76
|
-
return event.target.addEventListener('wheel', function(event) {
|
|
77
|
-
return event.preventDefault();
|
|
78
|
-
}, {
|
|
79
|
-
passive: false
|
|
80
|
-
});
|
|
81
|
-
},
|
|
82
69
|
className: "payment-number-input__btn-up ".concat(plusButtonGreyedOut && 'disabled-number-input-button'),
|
|
83
70
|
disabled: disabled,
|
|
84
71
|
children: "+"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;AA2FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA6E5B,CAAA"}
|
|
@@ -39,17 +39,17 @@ var injectComponentsInRyftForm = function(param) {
|
|
|
39
39
|
divider.id = 'mobile-pay-divider';
|
|
40
40
|
container.id = 'mobile-pay-divider-container';
|
|
41
41
|
container.append(dividerText, divider);
|
|
42
|
-
var payIframe = document.getElementById(
|
|
42
|
+
var payIframe = document.getElementById("ryft-pay-iframe");
|
|
43
43
|
if (payIframe) {
|
|
44
44
|
var formBox = document.getElementById('form-disable-box');
|
|
45
45
|
if (formBox) {
|
|
46
|
-
formBox.style.display = isDisableButton ?
|
|
46
|
+
formBox.style.display = isDisableButton ? "block" : "none";
|
|
47
47
|
}
|
|
48
48
|
var googleButton = document.getElementById('gpay-button-online-api-id');
|
|
49
|
-
var appleButton = document.getElementById(
|
|
49
|
+
var appleButton = document.getElementById("ryft-pay-apple-pay-button");
|
|
50
50
|
if (googleButton) {
|
|
51
51
|
googleButton.disabled = isDisableButton;
|
|
52
|
-
googleButton.style.opacity =
|
|
52
|
+
googleButton.style.opacity = isDisableButton ? '1' : '0.6';
|
|
53
53
|
}
|
|
54
54
|
if (appleButton) {
|
|
55
55
|
appleButton.disabled = isDisableButton;
|
|
@@ -60,6 +60,7 @@ var injectComponentsInRyftForm = function(param) {
|
|
|
60
60
|
var applePayButton = document.createElement('button');
|
|
61
61
|
applePayButton.id = 'apple-pay';
|
|
62
62
|
applePayButton.type = 'button';
|
|
63
|
+
applePayButton.style.opacity = !isDisableButton ? '1' : '0.6';
|
|
63
64
|
applePayButton.className = 'bg-dark btn btn-primary apple-pay-button';
|
|
64
65
|
applePayButton.textContent = t('Events:payWithApple');
|
|
65
66
|
applePayButton.onclick = onApplePayButtonClick;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface Props {
|
|
3
2
|
children?: React.ReactNode | React.ReactNode[];
|
|
4
3
|
style?: any;
|
|
5
4
|
className?: any;
|
|
6
5
|
'aria-laballedby'?: any;
|
|
7
6
|
}
|
|
8
|
-
declare const DropDown:
|
|
7
|
+
declare const DropDown: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
|
9
8
|
export default DropDown;
|
|
10
9
|
//# sourceMappingURL=DropDown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,2FAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAqahC,CAAA"}
|
|
@@ -631,9 +631,6 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
631
631
|
}),
|
|
632
632
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register("templateOptionValues.".concat(option === null || option === void 0 ? void 0 : option.id, ".value"))), {
|
|
633
633
|
type: "number",
|
|
634
|
-
onWheel: function(event) {
|
|
635
|
-
return event.currentTarget.blur();
|
|
636
|
-
},
|
|
637
634
|
placeholder: t("Design:".concat(option.name)),
|
|
638
635
|
id: option.name + option.id,
|
|
639
636
|
defaultValue: option.selectedValue || ''
|
|
@@ -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"],"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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
|
|
8
|
+
import { transformErrorToMessage } from '@licklist/plugins';
|
|
9
9
|
import { Dialog } from '../../modals/dialog/Dialog.js';
|
|
10
10
|
import { useDialogContext } from '../../modals/dialog/DialogContext.js';
|
|
11
11
|
import { ProductSetControl } from '../control/ProductSetControl.js';
|
|
@@ -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
|