@licklist/design 0.70.5-dev.2 → 0.70.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/assets/iframe/available.svg +4 -4
- package/dist/assets/iframe/available.svg.js +18 -16
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/availability-indicator/AvailabilityIndicator.d.ts +1 -3
- package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -1
- package/dist/availability-indicator/AvailabilityIndicator.js +18 -112
- package/dist/calendar/Calendar.d.ts +0 -2
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +2 -3
- 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/date-time-button/DateTimeButton.d.ts +1 -3
- package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
- package/dist/date-time-button/DateTimeButton.js +1 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -3
- 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/iframe/activity-card/ActivityCard.d.ts +1 -3
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +3 -5
- 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/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +12 -25
- 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/advanced-options/AdvancedOptions.js +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 +3 -11
- 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 +0 -9
- package/dist/styles/date-time-button/DateTimeButton.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 +3 -1
- package/dist/styles/sales/BookingFilter.scss +3 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/BookingTabs.scss +29 -26
- 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/assets/iframe/available.svg +4 -4
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/availability-indicator/AvailabilityIndicator.tsx +16 -91
- package/src/calendar/Calendar.tsx +0 -2
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +0 -3
- package/src/calendar/utils/index.ts +26 -17
- package/src/date-time-button/DateContent.tsx +3 -3
- package/src/date-time-button/DateTimeButton.tsx +0 -4
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/iframe/activity-card/ActivityCard.tsx +2 -15
- 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/RyftPaymentForm.tsx +3 -14
- 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 +5 -13
- 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 +0 -9
- package/src/styles/date-time-button/DateTimeButton.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 +3 -1
- package/src/styles/sales/BookingFilter.scss +3 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/BookingTabs.scss +29 -26
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +88 -97
|
@@ -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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
4
|
-
<rect x="
|
|
1
|
+
<svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.943939" y="1.03658" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
|
|
3
|
+
<rect x="0.943939" y="4.10976" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
|
|
4
|
+
<rect x="0.943939" y="7.18292" width="5.25188" height="3.04878" rx="1.5" fill="#4CF973" stroke="white"/>
|
|
5
5
|
</svg>
|
|
@@ -4,31 +4,33 @@ var _rect, _rect2, _rect3;
|
|
|
4
4
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
5
|
const SvgAvailable = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
width: 7,
|
|
8
|
+
height: 11,
|
|
9
|
+
fill: "none"
|
|
9
10
|
}, props), _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
12
|
-
x:
|
|
11
|
+
width: 5.252,
|
|
12
|
+
height: 3.049,
|
|
13
|
+
x: 0.944,
|
|
14
|
+
y: 1.037,
|
|
13
15
|
fill: "#4CF973",
|
|
14
16
|
stroke: "#fff",
|
|
15
|
-
rx:
|
|
17
|
+
rx: 1.5
|
|
16
18
|
})), _rect2 || (_rect2 = /*#__PURE__*/React.createElement("rect", {
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
19
|
-
x:
|
|
20
|
-
y:
|
|
19
|
+
width: 5.252,
|
|
20
|
+
height: 3.049,
|
|
21
|
+
x: 0.944,
|
|
22
|
+
y: 4.11,
|
|
21
23
|
fill: "#4CF973",
|
|
22
24
|
stroke: "#fff",
|
|
23
|
-
rx:
|
|
25
|
+
rx: 1.5
|
|
24
26
|
})), _rect3 || (_rect3 = /*#__PURE__*/React.createElement("rect", {
|
|
25
|
-
width:
|
|
26
|
-
height:
|
|
27
|
-
x:
|
|
28
|
-
y:
|
|
27
|
+
width: 5.252,
|
|
28
|
+
height: 3.049,
|
|
29
|
+
x: 0.944,
|
|
30
|
+
y: 7.183,
|
|
29
31
|
fill: "#4CF973",
|
|
30
32
|
stroke: "#fff",
|
|
31
|
-
rx:
|
|
33
|
+
rx: 1.5
|
|
32
34
|
})));
|
|
33
35
|
|
|
34
36
|
export { SvgAvailable as ReactComponent };
|
|
@@ -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,11 +1,9 @@
|
|
|
1
1
|
import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper';
|
|
2
|
-
import { AvailabilityFormat } from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
3
2
|
type AvailabilityIndicatorProps = {
|
|
4
3
|
resources: ZoneResourcesAvailability;
|
|
5
4
|
isUnavailable?: boolean;
|
|
6
5
|
isSoldOut?: boolean;
|
|
7
|
-
availabilityFormat?: AvailabilityFormat | null;
|
|
8
6
|
};
|
|
9
|
-
export declare const AvailabilityIndicator: ({ resources, isUnavailable, isSoldOut
|
|
7
|
+
export declare const AvailabilityIndicator: ({ resources, isUnavailable, isSoldOut, }: AvailabilityIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
8
|
export {};
|
|
11
9
|
//# sourceMappingURL=AvailabilityIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvailabilityIndicator.d.ts","sourceRoot":"","sources":["../../src/availability-indicator/AvailabilityIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;
|
|
1
|
+
{"version":3,"file":"AvailabilityIndicator.d.ts","sourceRoot":"","sources":["../../src/availability-indicator/AvailabilityIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;AAiCpH,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,yBAAyB,CAAA;IACpC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,qBAAqB,6CAI/B,0BAA0B,4CAc5B,CAAA"}
|
|
@@ -1,117 +1,40 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { AVAILABILITY_FORMAT_NUMBER } from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
4
|
-
import { useWindowDimensions } from '@licklist/plugins';
|
|
5
3
|
import { ReactComponent as SvgAvailable } from '../assets/iframe/available.svg.js';
|
|
6
4
|
import { ReactComponent as SvgLimited } from '../assets/iframe/limited.svg.js';
|
|
7
5
|
import { ReactComponent as SvgSoldOut } from '../assets/iframe/soldOut.svg.js';
|
|
8
|
-
import { TAB_WIDTH } from '../iframe/page/components/PageBody/constants.js';
|
|
9
6
|
|
|
10
|
-
function _define_property(obj, key, value) {
|
|
11
|
-
if (key in obj) {
|
|
12
|
-
Object.defineProperty(obj, key, {
|
|
13
|
-
value: value,
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true
|
|
17
|
-
});
|
|
18
|
-
} else {
|
|
19
|
-
obj[key] = value;
|
|
20
|
-
}
|
|
21
|
-
return obj;
|
|
22
|
-
}
|
|
23
|
-
function _object_spread(target) {
|
|
24
|
-
for(var i = 1; i < arguments.length; i++){
|
|
25
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
26
|
-
var ownKeys = Object.keys(source);
|
|
27
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
28
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
29
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
ownKeys.forEach(function(key) {
|
|
33
|
-
_define_property(target, key, source[key]);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return target;
|
|
37
|
-
}
|
|
38
|
-
function ownKeys(object, enumerableOnly) {
|
|
39
|
-
var keys = Object.keys(object);
|
|
40
|
-
if (Object.getOwnPropertySymbols) {
|
|
41
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
42
|
-
if (enumerableOnly) {
|
|
43
|
-
symbols = symbols.filter(function(sym) {
|
|
44
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
keys.push.apply(keys, symbols);
|
|
48
|
-
}
|
|
49
|
-
return keys;
|
|
50
|
-
}
|
|
51
|
-
function _object_spread_props(target, source) {
|
|
52
|
-
source = source != null ? source : {};
|
|
53
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
54
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
55
|
-
} else {
|
|
56
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
57
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return target;
|
|
61
|
-
}
|
|
62
7
|
var LOTS_OF_SPACE_LIMIT = 0.2;
|
|
63
8
|
var LIMITED_LIMIT = 0.8;
|
|
64
|
-
var
|
|
65
|
-
var bookedResources = param.bookedResources, totalResources = param.totalResources
|
|
66
|
-
|
|
67
|
-
if (availabilityFormat !== AVAILABILITY_FORMAT_NUMBER) {
|
|
9
|
+
var getIconsAndLabels = function(param) {
|
|
10
|
+
var bookedResources = param.bookedResources, totalResources = param.totalResources;
|
|
11
|
+
if (bookedResources === totalResources) {
|
|
68
12
|
return {
|
|
69
|
-
label:
|
|
13
|
+
label: 'soldOut',
|
|
14
|
+
Icon: SvgSoldOut
|
|
70
15
|
};
|
|
71
16
|
}
|
|
72
|
-
return availableResources === 1 ? {
|
|
73
|
-
label: 'availableSingleResource'
|
|
74
|
-
} : {
|
|
75
|
-
label: 'availableMultipleResources',
|
|
76
|
-
argument: availableResources
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
var getIconsAndLabelsWithArgument = function(param) {
|
|
80
|
-
var bookedResources = param.bookedResources, totalResources = param.totalResources, availabilityFormat = param.availabilityFormat;
|
|
81
17
|
// lots of space if less than 80% booked
|
|
82
18
|
if (bookedResources / totalResources <= LOTS_OF_SPACE_LIMIT) {
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
totalResources: totalResources,
|
|
86
|
-
availabilityFormat: availabilityFormat,
|
|
87
|
-
label: 'lotsOfSpace'
|
|
88
|
-
})), {
|
|
19
|
+
return {
|
|
20
|
+
label: 'lotsOfSpace',
|
|
89
21
|
Icon: SvgAvailable
|
|
90
|
-
}
|
|
22
|
+
};
|
|
91
23
|
}
|
|
92
24
|
if (bookedResources / totalResources >= LIMITED_LIMIT) {
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
totalResources: totalResources,
|
|
96
|
-
availabilityFormat: availabilityFormat,
|
|
97
|
-
label: 'limited'
|
|
98
|
-
})), {
|
|
25
|
+
return {
|
|
26
|
+
label: 'limited',
|
|
99
27
|
Icon: SvgLimited
|
|
100
|
-
}
|
|
28
|
+
};
|
|
101
29
|
}
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
totalResources: totalResources,
|
|
105
|
-
availabilityFormat: availabilityFormat,
|
|
106
|
-
label: 'available'
|
|
107
|
-
})), {
|
|
30
|
+
return {
|
|
31
|
+
label: 'available',
|
|
108
32
|
Icon: SvgAvailable
|
|
109
|
-
}
|
|
33
|
+
};
|
|
110
34
|
};
|
|
111
35
|
var AvailabilityIndicator = function(param) {
|
|
112
|
-
var resources = param.resources, isUnavailable = param.isUnavailable,
|
|
36
|
+
var resources = param.resources, isUnavailable = param.isUnavailable, isSoldOut = param.isSoldOut;
|
|
113
37
|
var t = useTranslation('Design').t;
|
|
114
|
-
var isSoldOut = _isSoldOut || resources.bookedResources === resources.totalResources;
|
|
115
38
|
if (isUnavailable) {
|
|
116
39
|
return /*#__PURE__*/ jsx(Indicator, {
|
|
117
40
|
Icon: SvgSoldOut,
|
|
@@ -124,36 +47,19 @@ var AvailabilityIndicator = function(param) {
|
|
|
124
47
|
label: t('soldOut')
|
|
125
48
|
});
|
|
126
49
|
}
|
|
127
|
-
var
|
|
128
|
-
availabilityFormat: availabilityFormat
|
|
129
|
-
})), Icon = _getIconsAndLabelsWithArgument.Icon, label = _getIconsAndLabelsWithArgument.label, argument = _getIconsAndLabelsWithArgument.argument;
|
|
50
|
+
var _getIconsAndLabels = getIconsAndLabels(resources), Icon = _getIconsAndLabels.Icon, label = _getIconsAndLabels.label;
|
|
130
51
|
return /*#__PURE__*/ jsx(Indicator, {
|
|
131
52
|
Icon: Icon,
|
|
132
|
-
label: t(label
|
|
133
|
-
argument: argument
|
|
134
|
-
} : undefined)
|
|
53
|
+
label: t(label)
|
|
135
54
|
});
|
|
136
55
|
};
|
|
137
56
|
var Indicator = function(param) {
|
|
138
57
|
var Icon = param.Icon, label = param.label;
|
|
139
|
-
var width = useWindowDimensions().width;
|
|
140
|
-
var iconSizes = width > TAB_WIDTH ? {
|
|
141
|
-
height: 15,
|
|
142
|
-
width: 11
|
|
143
|
-
} : {
|
|
144
|
-
height: 11,
|
|
145
|
-
width: 7
|
|
146
|
-
};
|
|
147
58
|
return /*#__PURE__*/ jsxs("div", {
|
|
148
59
|
className: "availability-indicator",
|
|
149
60
|
children: [
|
|
150
|
-
/*#__PURE__*/ jsx(Icon, {
|
|
151
|
-
height: iconSizes.height,
|
|
152
|
-
width: iconSizes.width,
|
|
153
|
-
viewBox: "auto"
|
|
154
|
-
}),
|
|
61
|
+
/*#__PURE__*/ jsx(Icon, {}),
|
|
155
62
|
/*#__PURE__*/ jsx("div", {
|
|
156
|
-
className: "indicator-label",
|
|
157
63
|
children: label
|
|
158
64
|
})
|
|
159
65
|
]
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
|
2
2
|
import { DateTime } from 'luxon';
|
|
3
|
-
import { AvailabilityFormat } from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
4
3
|
import { DateTimeButtonProps } from 'src/date-time-button';
|
|
5
4
|
export declare const defaultStartDay: DateTime<true>;
|
|
6
5
|
export type CalendarProps = {
|
|
@@ -12,7 +11,6 @@ export type CalendarProps = {
|
|
|
12
11
|
fromPrice?: string | ReactElement | null;
|
|
13
12
|
isLoading?: boolean;
|
|
14
13
|
initialDate?: DateTime;
|
|
15
|
-
availabilityFormat?: AvailabilityFormat | null;
|
|
16
14
|
getDateTimeButtonProps: (date: DateTime) => Pick<DateTimeButtonProps, 'resources' | 'showResources' | 'isDisabled'>;
|
|
17
15
|
};
|
|
18
16
|
export declare const Calendar: (props: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAK1D,eAAO,MAAM,eAAe,gBAK1B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,QAAQ,CAAA;IACrB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAA;IAClD,aAAa,EAAE,QAAQ,EAAE,CAAA;IACzB,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC7B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAA;IAC1D,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,sBAAsB,EAAE,CACtB,IAAI,EAAE,QAAQ,KACX,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,eAAe,GAAG,YAAY,CAAC,CAAA;CAC7E,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAW5C,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CalendarProps } from '../../Calendar';
|
|
2
|
-
export type CalendarDatesProps = Pick<CalendarProps, 'calendarDates' | 'selectedDate' | 'setSelectedDate' | 'fromPrice' | 'getDateTimeButtonProps'
|
|
3
|
-
export declare const CalendarDates: ({ calendarDates, selectedDate, setSelectedDate, fromPrice,
|
|
2
|
+
export type CalendarDatesProps = Pick<CalendarProps, 'calendarDates' | 'selectedDate' | 'setSelectedDate' | 'fromPrice' | 'getDateTimeButtonProps'>;
|
|
3
|
+
export declare const CalendarDates: ({ calendarDates, selectedDate, setSelectedDate, fromPrice, getDateTimeButtonProps, }: CalendarDatesProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=CalendarDates.d.ts.map
|
|
@@ -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,
|
|
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,CAC3B,CAAA;AAED,eAAO,MAAM,aAAa,yFAMvB,kBAAkB,4CA4CpB,CAAA"}
|
|
@@ -57,7 +57,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
57
57
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
58
58
|
}
|
|
59
59
|
var CalendarDates = function(param) {
|
|
60
|
-
var calendarDates = param.calendarDates, selectedDate = param.selectedDate, setSelectedDate = param.setSelectedDate, fromPrice = param.fromPrice,
|
|
60
|
+
var calendarDates = param.calendarDates, selectedDate = param.selectedDate, setSelectedDate = param.setSelectedDate, fromPrice = param.fromPrice, getDateTimeButtonProps = param.getDateTimeButtonProps;
|
|
61
61
|
var fillCalendarDates = useMemo(function() {
|
|
62
62
|
var _calendarDates_;
|
|
63
63
|
var _calendarDates__weekday;
|
|
@@ -90,8 +90,7 @@ var CalendarDates = function(param) {
|
|
|
90
90
|
return setSelectedDate(date);
|
|
91
91
|
},
|
|
92
92
|
price: fromPrice,
|
|
93
|
-
variant: Variant.month
|
|
94
|
-
availabilityFormat: availabilityFormat
|
|
93
|
+
variant: Variant.month
|
|
95
94
|
}, props), +date);
|
|
96
95
|
})
|
|
97
96
|
})
|
|
@@ -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
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { DateTime } from 'luxon';
|
|
3
3
|
import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper';
|
|
4
|
-
import { AvailabilityFormat } from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
5
4
|
export declare enum Variant {
|
|
6
5
|
week = "week",
|
|
7
6
|
month = "month",
|
|
@@ -17,7 +16,6 @@ export type DateTimeButtonProps = {
|
|
|
17
16
|
resources?: ZoneResourcesAvailability | null;
|
|
18
17
|
showResources?: boolean;
|
|
19
18
|
variant: Variant;
|
|
20
|
-
availabilityFormat?: AvailabilityFormat | null;
|
|
21
19
|
};
|
|
22
|
-
export declare const DateTimeButton: ({ date, isDisabled: _isDisabled, isSelected, isSoldOut: _isSoldOut, onSelect, price, resources, showResources, variant,
|
|
20
|
+
export declare const DateTimeButton: ({ date, isDisabled: _isDisabled, isSelected, isSoldOut: _isSoldOut, onSelect, price, resources, showResources, variant, }: DateTimeButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
21
|
//# sourceMappingURL=DateTimeButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeButton.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateTimeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;
|
|
1
|
+
{"version":3,"file":"DateTimeButton.d.ts","sourceRoot":"","sources":["../../src/date-time-button/DateTimeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;AAIpH,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,CAAA;IAC7C,SAAS,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAA;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,cAAc,8HAUxB,mBAAmB,4CA2CrB,CAAA"}
|
|
@@ -11,7 +11,7 @@ var Variant;
|
|
|
11
11
|
Variant["time"] = "time";
|
|
12
12
|
})(Variant || (Variant = {}));
|
|
13
13
|
var DateTimeButton = function(param) {
|
|
14
|
-
var date = param.date, _isDisabled = param.isDisabled, isSelected = param.isSelected, _isSoldOut = param.isSoldOut, onSelect = param.onSelect, price = param.price, resources = param.resources, showResources = param.showResources, _param_variant = param.variant, variant = _param_variant === void 0 ? "week" : _param_variant
|
|
14
|
+
var date = param.date, _isDisabled = param.isDisabled, isSelected = param.isSelected, _isSoldOut = param.isSoldOut, onSelect = param.onSelect, price = param.price, resources = param.resources, showResources = param.showResources, _param_variant = param.variant, variant = _param_variant === void 0 ? "week" : _param_variant;
|
|
15
15
|
var isSoldOut = _isSoldOut || resources && resources.bookedResources >= resources.totalResources;
|
|
16
16
|
var isTimeVariant = variant === "time";
|
|
17
17
|
var isPast = variant === "time" ? isPastTime(date) : isPastDate(date);
|
|
@@ -36,7 +36,6 @@ var DateTimeButton = function(param) {
|
|
|
36
36
|
children: price
|
|
37
37
|
}),
|
|
38
38
|
showResources && resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
|
|
39
|
-
availabilityFormat: availabilityFormat,
|
|
40
39
|
resources: resources,
|
|
41
40
|
isUnavailable: _isDisabled || isPast,
|
|
42
41
|
isSoldOut: isSoldOut
|
|
@@ -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,13 +33,13 @@ 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';
|
|
40
39
|
import '@licklist/core/dist/DataMapper/Product/ProductDataMapper';
|
|
41
40
|
import '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper';
|
|
42
41
|
import 'react-color';
|
|
42
|
+
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
43
43
|
import '../../../../../calendar/Calendar.js';
|
|
44
44
|
import 'luxon';
|
|
45
45
|
import 'react-intl';
|
|
@@ -69,7 +69,6 @@ import '@licklist/plugins/dist';
|
|
|
69
69
|
import '../../../../../iframe/order-process/components/BookingSummary/BookingSummary.js';
|
|
70
70
|
import '../../../../../iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js';
|
|
71
71
|
import '../../../../../iframe/payment/payment-status-page/PaymentStatusPage.js';
|
|
72
|
-
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
73
72
|
import '../../../../../static/manual-date-picker/constants/index.js';
|
|
74
73
|
import '../../../../../iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js';
|
|
75
74
|
import '../../../../../sortable-tree/SortableTree.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,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
3
3
|
import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper';
|
|
4
|
-
import { AvailabilityFormat } from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
5
4
|
export declare const LAYOUT_GRID = "grid";
|
|
6
5
|
export declare const LAYOUT_LIST = "list";
|
|
7
6
|
export type ActivityCardProps = {
|
|
@@ -15,7 +14,6 @@ export type ActivityCardProps = {
|
|
|
15
14
|
availableTimes?: string | null;
|
|
16
15
|
image?: Image | null;
|
|
17
16
|
resources?: ZoneResourcesAvailability;
|
|
18
|
-
availabilityFormat?: AvailabilityFormat | null;
|
|
19
17
|
};
|
|
20
|
-
export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout,
|
|
18
|
+
export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout, resources, }: ActivityCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
19
|
//# sourceMappingURL=ActivityCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;
|
|
1
|
+
{"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;AAGpH,eAAO,MAAM,WAAW,SAAS,CAAA;AACjC,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,CAAA;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,YAAY,6GAWtB,iBAAiB,4CAmDnB,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { AvailabilityIndicator } from '../../availability-indicator/Availability
|
|
|
5
5
|
var LAYOUT_GRID = 'grid';
|
|
6
6
|
var LAYOUT_LIST = 'list';
|
|
7
7
|
var ActivityCard = function(param) {
|
|
8
|
-
var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout,
|
|
8
|
+
var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout, resources = param.resources;
|
|
9
9
|
if (layout === LAYOUT_GRID) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("button", {
|
|
11
11
|
type: "button",
|
|
@@ -35,8 +35,7 @@ var ActivityCard = function(param) {
|
|
|
35
35
|
children: description
|
|
36
36
|
}),
|
|
37
37
|
resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
|
|
38
|
-
resources: resources
|
|
39
|
-
availabilityFormat: availabilityFormat
|
|
38
|
+
resources: resources
|
|
40
39
|
})
|
|
41
40
|
]
|
|
42
41
|
})
|
|
@@ -75,8 +74,7 @@ var ActivityCard = function(param) {
|
|
|
75
74
|
children: description
|
|
76
75
|
}),
|
|
77
76
|
resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
|
|
78
|
-
resources: resources
|
|
79
|
-
availabilityFormat: availabilityFormat
|
|
77
|
+
resources: resources
|
|
80
78
|
})
|
|
81
79
|
]
|
|
82
80
|
}),
|
|
@@ -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":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAML,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAML,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CA+KtB,CAAA"}
|