@licklist/design 0.72.2 → 0.72.4
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/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +1 -0
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +2 -0
- package/dist/calendar/utils/index.d.ts +1 -1
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts +3 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +11 -4
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +3 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +20 -6
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +5 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +5 -3
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +1 -1
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -3
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -0
- package/dist/index.js +2 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +7 -3
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -0
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +1 -0
- package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -0
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -0
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -0
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +3 -1
- package/dist/static/date-range-input/utils/index.d.ts +1 -1
- package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
- package/dist/static/loader/FullScreenLoader.d.ts +8 -0
- package/dist/static/loader/FullScreenLoader.d.ts.map +1 -0
- package/dist/static/loader/FullScreenLoader.js +41 -0
- package/dist/static/loader/LoaderIndicator.d.ts +2 -3
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +4 -2
- package/dist/static/loader/index.d.ts +1 -0
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +1 -4
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/dist/styles/static/Loader.scss +9 -0
- package/package.json +5 -5
- package/src/auth/Layout/AuthNavComponent.tsx +4 -0
- package/src/auth/Login/LoginComponent.tsx +2 -0
- package/src/auth/Login/LoginFormComponent.tsx +2 -0
- package/src/auth/Register/RegisterComponent.tsx +2 -0
- package/src/auth/Register/RegisterFormComponent.tsx +4 -0
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +4 -0
- package/src/auth/Router.tsx +2 -0
- package/src/calendar/Calendar.stories.tsx +2 -2
- package/src/calendar/utils/index.ts +1 -1
- package/src/events/edit-event-modal/IntervalInput.tsx +13 -3
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +24 -2
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +9 -7
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +9 -1
- package/src/events/event-card/utils.ts +10 -9
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -0
- package/src/events/event-statistic-modal/utils/index.ts +2 -1
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +13 -11
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -2
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +1 -2
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +19 -20
- package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +2 -0
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +3 -4
- package/src/product-set/form/VenueMapsControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceInput.tsx +10 -6
- package/src/setting/admin/AdminSettingForm.tsx +4 -0
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +1 -2
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/loader/FullScreenLoader.tsx +16 -0
- package/src/static/loader/LoaderIndicator.tsx +6 -3
- package/src/static/loader/index.ts +1 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +1 -4
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/src/styles/static/Loader.scss +9 -0
- package/yarn.lock +175 -175
|
@@ -5,6 +5,7 @@ import 'react-loader';
|
|
|
5
5
|
import { BlockLoader } from '../../../static/loader/BlockLoader.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
8
|
+
import 'clsx';
|
|
8
9
|
import { MenuButton } from './components/MenuButton.js';
|
|
9
10
|
|
|
10
11
|
var SelectMenu = function(param) {
|
|
@@ -10,6 +10,7 @@ import 'react-loader';
|
|
|
10
10
|
import { BlockLoader } from '../../../static/loader/BlockLoader.js';
|
|
11
11
|
import 'react';
|
|
12
12
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
13
|
+
import 'clsx';
|
|
13
14
|
|
|
14
15
|
var ManualBookingSummary = function(param) {
|
|
15
16
|
var eventName = param.eventName, orders = param.orders, ordersSum = param.ordersSum, orderSumIncludingFee = param.orderSumIncludingFee, isFeeFetching = param.isFeeFetching, orderDate = param.orderDate, relyOnPeopleType = param.relyOnPeopleType, hasBookingCategory = param.hasBookingCategory, isMobileView = param.isMobileView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAE7F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAA;IAC9B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAA;IACpC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAA;IAC/C,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAA;CAC3C,GAAG,yBAAyB,CAAA;AAE7B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAC5B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,YAAY,CAAC,EAAE,cAAc,CAAA;KAC9B,CAAA;CACF;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAE7F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAA;IAC9B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAA;IACpC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAA;IAC/C,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAA;CAC3C,GAAG,yBAAyB,CAAA;AAE7B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAC5B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,YAAY,CAAC,EAAE,cAAc,CAAA;KAC9B,CAAA;CACF;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,4CAsJvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetTemplateCard.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAItF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,MAAW,EACX,IAAI,EACJ,QAAQ,EACR,aAAoB,EACpB,SAAiB,GAClB,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"SnippetTemplateCard.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAItF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,MAAW,EACX,IAAI,EACJ,QAAQ,EACR,aAAoB,EACpB,SAAiB,GAClB,EAAE,wBAAwB,2CAmC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAkCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,2CAgWd"}
|
|
@@ -125,7 +125,9 @@ function Preview(param) {
|
|
|
125
125
|
};
|
|
126
126
|
var _useState2 = _sliced_to_array(useState(defaultStartDay), 2), currentDate = _useState2[0], setCurrentDate = _useState2[1];
|
|
127
127
|
var _useState3 = _sliced_to_array(useState(null), 2), selectedDate = _useState3[0], setSelectedDate = _useState3[1];
|
|
128
|
-
var calendarDates = getMonthCalendarDates(
|
|
128
|
+
var calendarDates = getMonthCalendarDates({
|
|
129
|
+
initialDate: currentDate
|
|
130
|
+
});
|
|
129
131
|
return /*#__PURE__*/ jsx("div", {
|
|
130
132
|
className: "w-100 h-100 snippet-template-preview",
|
|
131
133
|
children: /*#__PURE__*/ jsxs(Page, {
|
|
@@ -14,5 +14,5 @@ export declare const stringDatesToInputValue: ({ startDate, endDate, }: {
|
|
|
14
14
|
startDate?: string;
|
|
15
15
|
endDate?: string;
|
|
16
16
|
}) => string;
|
|
17
|
-
export declare const getDateParams: (date: Date) => number
|
|
17
|
+
export declare const getDateParams: (date: Date) => [number, number, number];
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/date-range-input/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAKxC,eAAO,MAAM,oBAAoB,4BAG9B;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;;;CAaA,CAAA;AAED,eAAO,MAAM,uBAAuB,WAAW,KAAK,EAAE;;;CAYrD,CAAA;AAED,eAAO,MAAM,uBAAuB,4BAGjC;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,WAWA,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/static/date-range-input/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAKxC,eAAO,MAAM,oBAAoB,4BAG9B;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;;;CAaA,CAAA;AAED,eAAO,MAAM,uBAAuB,WAAW,KAAK,EAAE;;;CAYrD,CAAA;AAED,eAAO,MAAM,uBAAuB,4BAGjC;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,WAWA,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,IAAI,KAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAKjE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LoaderIndicatorProps } from './LoaderIndicator';
|
|
2
|
+
interface FullScreenLoaderProps {
|
|
3
|
+
containerClassName?: string;
|
|
4
|
+
indicatorProps?: LoaderIndicatorProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const FullScreenLoader: ({ containerClassName, indicatorProps, }: FullScreenLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=FullScreenLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullScreenLoader.d.ts","sourceRoot":"","sources":["../../../src/static/loader/FullScreenLoader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAEzE,UAAU,qBAAqB;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC;AAED,eAAO,MAAM,gBAAgB,4CAG1B,qBAAqB,4CAIvB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { LoaderIndicator } from './LoaderIndicator.js';
|
|
4
|
+
|
|
5
|
+
function _define_property(obj, key, value) {
|
|
6
|
+
if (key in obj) {
|
|
7
|
+
Object.defineProperty(obj, key, {
|
|
8
|
+
value: value,
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true
|
|
12
|
+
});
|
|
13
|
+
} else {
|
|
14
|
+
obj[key] = value;
|
|
15
|
+
}
|
|
16
|
+
return obj;
|
|
17
|
+
}
|
|
18
|
+
function _object_spread(target) {
|
|
19
|
+
for(var i = 1; i < arguments.length; i++){
|
|
20
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
21
|
+
var ownKeys = Object.keys(source);
|
|
22
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
23
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
24
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
ownKeys.forEach(function(key) {
|
|
28
|
+
_define_property(target, key, source[key]);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
}
|
|
33
|
+
var FullScreenLoader = function(param) {
|
|
34
|
+
var containerClassName = param.containerClassName, indicatorProps = param.indicatorProps;
|
|
35
|
+
return /*#__PURE__*/ jsx("div", {
|
|
36
|
+
className: clsx('fullscreen-loader', containerClassName),
|
|
37
|
+
children: /*#__PURE__*/ jsx(LoaderIndicator, _object_spread({}, indicatorProps))
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { FullScreenLoader };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import ILoaderOptions from '../../types/static/ILoaderOptions';
|
|
3
3
|
export interface LoaderIndicatorProps {
|
|
4
|
-
children?: ReactNode | ReactNode[];
|
|
5
4
|
isLoaded?: boolean;
|
|
6
5
|
options?: ILoaderOptions;
|
|
7
6
|
className?: string;
|
|
8
7
|
}
|
|
9
|
-
export declare function LoaderIndicator(props: LoaderIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function LoaderIndicator(props: PropsWithChildren<LoaderIndicatorProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//# sourceMappingURL=LoaderIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderIndicator.d.ts","sourceRoot":"","sources":["../../../src/static/loader/LoaderIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LoaderIndicator.d.ts","sourceRoot":"","sources":["../../../src/static/loader/LoaderIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,cAAc,MAAM,mCAAmC,CAAA;AAE9D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,2CAsC/C"}
|
|
@@ -49,12 +49,14 @@ function LoaderIndicator(props) {
|
|
|
49
49
|
position: 'absolute'
|
|
50
50
|
};
|
|
51
51
|
var mergedOptions = _object_spread({}, defaultOptions, options);
|
|
52
|
-
return
|
|
52
|
+
return(// TODO Remove this library, it's deprecated and even removed from npm packages
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
/*#__PURE__*/ jsx(ReactLoader.default, {
|
|
53
55
|
loaded: isLoaded,
|
|
54
56
|
options: mergedOptions,
|
|
55
57
|
className: "spinner ".concat(className),
|
|
56
58
|
children: children
|
|
57
|
-
});
|
|
59
|
+
}));
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
export { LoaderIndicator };
|
|
@@ -5,4 +5,5 @@ export { ButtonLoader } from './ButtonLoader';
|
|
|
5
5
|
export { SnippetLoader } from './SnippetLoader';
|
|
6
6
|
export { PaymentLoader } from './PaymentLoader';
|
|
7
7
|
export type { PaymentLoaderProps } from './PaymentLoader';
|
|
8
|
+
export { FullScreenLoader } from './FullScreenLoader';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/static/loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/static/loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 0.5rem;
|
|
6
6
|
font-weight: 300;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
width: 100%;
|
|
9
8
|
|
|
10
9
|
.indicator-label {
|
|
11
10
|
text-overflow: ellipsis;
|
|
@@ -25,8 +24,6 @@
|
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
27
|
.activity-card {
|
|
31
28
|
.availability-indicator {
|
|
32
29
|
margin-top: 0.5rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.32.
|
|
45
|
+
"@licklist/core": "0.32.12",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.35.
|
|
47
|
+
"@licklist/plugins": "0.35.10",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.32.
|
|
64
|
+
"@licklist/core": "0.32.12",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.35.
|
|
66
|
+
"@licklist/plugins": "0.35.10",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -8,11 +8,15 @@ function AuthNavComponent() {
|
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
10
|
<Router>
|
|
11
|
+
{/* TODO fix issue react router types
|
|
12
|
+
@ts-expect-error */}
|
|
11
13
|
<Link to='/login'>
|
|
12
14
|
<StyledButton size='sm' className='rounded-pill mr-2'>
|
|
13
15
|
{t('login')}
|
|
14
16
|
</StyledButton>
|
|
15
17
|
</Link>
|
|
18
|
+
{/* TODO fix issue react router types
|
|
19
|
+
@ts-expect-error */}
|
|
16
20
|
<Link to='/register'>
|
|
17
21
|
<StyledButton
|
|
18
22
|
size='sm'
|
|
@@ -112,6 +112,8 @@ const LoginComponent = ({
|
|
|
112
112
|
{!hideSignUpLink && (
|
|
113
113
|
<h6 className='text-center'>
|
|
114
114
|
<Trans t={t} i18nKey='loginPromo'>
|
|
115
|
+
{/* TODO fix issue react router types
|
|
116
|
+
@ts-expect-error */}
|
|
115
117
|
Don't have account? <Link to='/register'>Sign up</Link>.
|
|
116
118
|
</Trans>
|
|
117
119
|
</h6>
|
|
@@ -147,6 +147,8 @@ function LoginFormComponent(props: LoginFormComponentProps) {
|
|
|
147
147
|
<p className='text-center mb-0 mt-3'>
|
|
148
148
|
<Trans t={t} i18nKey='User:resetPromo'>
|
|
149
149
|
Forgot your password?{' '}
|
|
150
|
+
{/* TODO fix issue react router types
|
|
151
|
+
@ts-expect-error */}
|
|
150
152
|
<Link
|
|
151
153
|
to='/forgot-password'
|
|
152
154
|
className={[isLoading && 'disabled'].join(' ')}
|
|
@@ -105,6 +105,8 @@ function RegisterComponent({
|
|
|
105
105
|
<h6 className='text-center'>
|
|
106
106
|
<Trans t={t} i18nKey='registerPromo'>
|
|
107
107
|
Fill out the form below to sign up for {{ name: t('bookedit') }}
|
|
108
|
+
{/* TODO fix issue react router types
|
|
109
|
+
@ts-expect-error */}
|
|
108
110
|
. Already signed up? Then just <Link to='/login'>Log in</Link>.
|
|
109
111
|
</Trans>
|
|
110
112
|
</h6>
|
|
@@ -400,10 +400,14 @@ function RegisterFormComponent({
|
|
|
400
400
|
<Trans t={t} i18nKey='User:agreementsPromo'>
|
|
401
401
|
By creating an account, I agree to {{ name: t('User:bookedit') }}
|
|
402
402
|
's{' '}
|
|
403
|
+
{/* TODO fix issue react router types
|
|
404
|
+
@ts-expect-error */}
|
|
403
405
|
<Link to='/terms' className={[isLoading && 'disabled'].join(' ')}>
|
|
404
406
|
terms of service
|
|
405
407
|
</Link>{' '}
|
|
406
408
|
and{' '}
|
|
409
|
+
{/* TODO fix issue react router types
|
|
410
|
+
@ts-expect-error */}
|
|
407
411
|
<Link to='/privacy' className={[isLoading && 'disabled'].join(' ')}>
|
|
408
412
|
privacy policy
|
|
409
413
|
</Link>
|
|
@@ -97,6 +97,8 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
97
97
|
<p className='text-center mb-0 mt-3'>
|
|
98
98
|
<Trans t={t} i18nKey='User:signinPromo'>
|
|
99
99
|
Already a user?{' '}
|
|
100
|
+
{/* TODO fix issue react router types
|
|
101
|
+
@ts-expect-error */}
|
|
100
102
|
<Link to='/login' className={[isLoading && 'disabled'].join(' ')}>
|
|
101
103
|
Sign in
|
|
102
104
|
</Link>
|
|
@@ -106,6 +108,8 @@ function ResetPasswordFormComponent(props: ResetPasswordFormComponentProps) {
|
|
|
106
108
|
<p className='text-center mb-0 mt-3'>
|
|
107
109
|
<Trans t={t} i18nKey='User:loginPromo'>
|
|
108
110
|
Don't have an account?{' '}
|
|
111
|
+
{/* TODO fix issue react router types
|
|
112
|
+
@ts-expect-error */}
|
|
109
113
|
<Link
|
|
110
114
|
to='/register'
|
|
111
115
|
className={[isLoading && 'disabled'].join(' ')}
|
package/src/auth/Router.tsx
CHANGED
|
@@ -28,7 +28,7 @@ Default.args = {
|
|
|
28
28
|
fromPrice: 'from £10',
|
|
29
29
|
selectedDate: null,
|
|
30
30
|
setSelectedDate: () => null,
|
|
31
|
-
calendarDates: getMonthCalendarDates(now),
|
|
31
|
+
calendarDates: getMonthCalendarDates({ initialDate: now }),
|
|
32
32
|
currentDate: now,
|
|
33
33
|
getDateTimeButtonProps: () => ({
|
|
34
34
|
resources: [],
|
|
@@ -50,7 +50,7 @@ Loading.args = {
|
|
|
50
50
|
fromPrice: 'from £10',
|
|
51
51
|
selectedDate: null,
|
|
52
52
|
setSelectedDate: () => null,
|
|
53
|
-
calendarDates: getMonthCalendarDates(now),
|
|
53
|
+
calendarDates: getMonthCalendarDates({ initialDate: now }),
|
|
54
54
|
currentDate: now,
|
|
55
55
|
getDateTimeButtonProps: () => ({
|
|
56
56
|
resources: [],
|
|
@@ -17,6 +17,8 @@ interface IntervalInputProps {
|
|
|
17
17
|
productSets?: ProductSet[]
|
|
18
18
|
productSetId?: number
|
|
19
19
|
disabled?: boolean
|
|
20
|
+
disabledRecurrent?: boolean
|
|
21
|
+
isCopyCreate?: boolean
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface IntervalInputValues {
|
|
@@ -30,6 +32,8 @@ export function IntervalInput({
|
|
|
30
32
|
editedProductSet,
|
|
31
33
|
productSetId,
|
|
32
34
|
productSets,
|
|
35
|
+
disabledRecurrent = false,
|
|
36
|
+
isCopyCreate = false
|
|
33
37
|
}: IntervalInputProps) {
|
|
34
38
|
const { t } = useTranslation(['Design', 'Validation'])
|
|
35
39
|
const {
|
|
@@ -54,7 +58,6 @@ export function IntervalInput({
|
|
|
54
58
|
const endDateInput = useRef<HTMLInputDateElement | null>(null)
|
|
55
59
|
|
|
56
60
|
const updateEndDate = ({ target: { value: nextStartDate } }) => {
|
|
57
|
-
setRecurrent(false)
|
|
58
61
|
setValue('start', nextStartDate)
|
|
59
62
|
|
|
60
63
|
if (
|
|
@@ -72,6 +75,13 @@ export function IntervalInput({
|
|
|
72
75
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
73
76
|
}, [editedProductSet])
|
|
74
77
|
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (!isCopyCreate) return
|
|
80
|
+
setRecurrent(false)
|
|
81
|
+
setValue('rrule', null)
|
|
82
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
83
|
+
}, [isCopyCreate])
|
|
84
|
+
|
|
75
85
|
useEffect(() => {
|
|
76
86
|
if (!productSets) return
|
|
77
87
|
|
|
@@ -153,7 +163,7 @@ export function IntervalInput({
|
|
|
153
163
|
onChange={({ target: { checked } }) => {
|
|
154
164
|
onChangeRecurrent(checked)
|
|
155
165
|
}}
|
|
156
|
-
disabled={disabled || Boolean(editedProductSet)}
|
|
166
|
+
disabled={disabled || Boolean(editedProductSet) || disabledRecurrent}
|
|
157
167
|
/>
|
|
158
168
|
{!recurrent && (
|
|
159
169
|
<Form.Text muted>
|
|
@@ -178,7 +188,7 @@ export function IntervalInput({
|
|
|
178
188
|
minDate={DateTime.fromISO(start)
|
|
179
189
|
.plus({ day: 1 })
|
|
180
190
|
.toFormat('yyyy-MM-dd')}
|
|
181
|
-
disabled={disabled}
|
|
191
|
+
disabled={disabled || disabledRecurrent}
|
|
182
192
|
/>
|
|
183
193
|
)}
|
|
184
194
|
/>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
} from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
|
|
9
9
|
import { useId } from '@react-aria/utils'
|
|
10
10
|
import { Accordion, Button, Form, Modal } from 'react-bootstrap'
|
|
11
|
+
import { isEqual } from 'lodash'
|
|
11
12
|
import { FormProvider, useForm, Controller } from 'react-hook-form'
|
|
12
13
|
import { DateTime } from 'luxon'
|
|
13
14
|
import { useTranslation } from 'react-i18next'
|
|
@@ -65,6 +66,8 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
65
66
|
timeZone: string
|
|
66
67
|
eventProductSet?: ProductSet
|
|
67
68
|
overrideNameError?: string
|
|
69
|
+
disabledRecurrent?: boolean
|
|
70
|
+
isCopyCreate?: boolean
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
const eventImageTypes = {
|
|
@@ -87,6 +90,8 @@ export const EditEventForm = ({
|
|
|
87
90
|
timeZone,
|
|
88
91
|
eventProductSet,
|
|
89
92
|
overrideNameError,
|
|
93
|
+
disabledRecurrent = false,
|
|
94
|
+
isCopyCreate = false,
|
|
90
95
|
}: EditEventFormProps) => {
|
|
91
96
|
const { t } = useTranslation(['Design', 'Validation'])
|
|
92
97
|
|
|
@@ -126,7 +131,7 @@ export const EditEventForm = ({
|
|
|
126
131
|
const visible = watch('visible')
|
|
127
132
|
const editedProductSet = watch('editedProductSet')
|
|
128
133
|
const productSetId = watch('productSetId')
|
|
129
|
-
|
|
134
|
+
const rrule = watch('rrule')
|
|
130
135
|
const {
|
|
131
136
|
images,
|
|
132
137
|
handleImageRemove,
|
|
@@ -135,6 +140,8 @@ export const EditEventForm = ({
|
|
|
135
140
|
isCoverImagesLoading,
|
|
136
141
|
} = useMultipleImages(initialImages)
|
|
137
142
|
|
|
143
|
+
const watchedValues = watch()
|
|
144
|
+
|
|
138
145
|
const onErrorSubmit = (submitErrors) => {
|
|
139
146
|
scrollToError(getFirstErrorKey(submitErrors))
|
|
140
147
|
}
|
|
@@ -179,6 +186,18 @@ export const EditEventForm = ({
|
|
|
179
186
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
180
187
|
}, [])
|
|
181
188
|
|
|
189
|
+
const defaultExDate = defaultEventValues?.rrule?.includes('EXDATE')
|
|
190
|
+
? defaultEventValues?.rrule?.split(';EXDATE=')[1]
|
|
191
|
+
: ''
|
|
192
|
+
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
if (!defaultExDate || rrule?.includes('EXDATE')) return
|
|
195
|
+
rrule && setValue('rrule', rrule?.concat(`;EXDATE=${defaultExDate}`))
|
|
196
|
+
}, [defaultExDate, rrule])
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
const isChanged = !isEqual(watchedValues, sanitizeDefaultValues(defaultEventValues));
|
|
200
|
+
|
|
182
201
|
return (
|
|
183
202
|
<>
|
|
184
203
|
<Dialog
|
|
@@ -273,7 +292,9 @@ export const EditEventForm = ({
|
|
|
273
292
|
disabled={disabled}
|
|
274
293
|
productSetId={productSetId}
|
|
275
294
|
productSets={productSets}
|
|
295
|
+
disabledRecurrent={disabledRecurrent}
|
|
276
296
|
editedProductSet={editedProductSet}
|
|
297
|
+
isCopyCreate={isCopyCreate}
|
|
277
298
|
/>
|
|
278
299
|
{categories.length !== 0 && (
|
|
279
300
|
<Form.Group>
|
|
@@ -416,6 +437,7 @@ export const EditEventForm = ({
|
|
|
416
437
|
disabled={
|
|
417
438
|
disabled ||
|
|
418
439
|
formState.isSubmitting ||
|
|
440
|
+
!isChanged ||
|
|
419
441
|
isImagesLoading ||
|
|
420
442
|
isCoverImagesLoading
|
|
421
443
|
}
|
|
@@ -462,7 +484,7 @@ const sanitizeDefaultValues = (
|
|
|
462
484
|
visible: values?.visible ?? '',
|
|
463
485
|
externalPaymentLink: values?.externalPaymentLink ?? '',
|
|
464
486
|
productSetId: values?.productSetId,
|
|
465
|
-
images: values?.images,
|
|
487
|
+
images: values?.images ?? [],
|
|
466
488
|
saleDeadline: values?.saleDeadline,
|
|
467
489
|
integrationUrl: values?.integrationUrl ?? '',
|
|
468
490
|
recurrenceEndAt: values?.recurrenceEndAt ?? undefined,
|
|
@@ -28,11 +28,13 @@ export const DEADLINE_NAME = [
|
|
|
28
28
|
|
|
29
29
|
export type DeadLineNameType = (typeof DEADLINE_NAME)[number]
|
|
30
30
|
|
|
31
|
-
type SaleDeadlineType =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
type SaleDeadlineType =
|
|
32
|
+
| {
|
|
33
|
+
saleDeadline: null | number
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
[key: string]: null | number
|
|
37
|
+
}
|
|
36
38
|
|
|
37
39
|
export const SaleDeadline = ({
|
|
38
40
|
disabled = false,
|
|
@@ -52,8 +54,8 @@ export const SaleDeadline = ({
|
|
|
52
54
|
const [deadlineType, setDeadlineType] = useState<DeadlineType>(
|
|
53
55
|
SALE_DEADLINE_BEFORE_TYPE,
|
|
54
56
|
)
|
|
55
|
-
|
|
56
|
-
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
57
|
+
|
|
58
|
+
const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
|
|
57
59
|
|
|
58
60
|
useEffect(() => {
|
|
59
61
|
if (onlyBefore) return
|
|
@@ -21,6 +21,10 @@ export const RECURRENT_MODE_TYPES_LIST = {
|
|
|
21
21
|
[MODE_ALL_EVENTS]: 3,
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export const RECURRENT_MODE_TYPES_WITHOUT_ALL = {
|
|
25
|
+
[MODE_THIS_EVENT]: 1,
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
export type RecurrentEventMode = (typeof MODES)[number]
|
|
25
29
|
|
|
26
30
|
export type EditRecurrentEventModalValues = {
|
|
@@ -33,6 +37,7 @@ export type EditRecurrentEventModalProps = {
|
|
|
33
37
|
onHide: () => void
|
|
34
38
|
title: string
|
|
35
39
|
onSubmit: (values: EditRecurrentEventModalValues) => void
|
|
40
|
+
isDateWasChanged?: boolean
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
export const EditRecurrentEventModal = ({
|
|
@@ -41,6 +46,7 @@ export const EditRecurrentEventModal = ({
|
|
|
41
46
|
onHide,
|
|
42
47
|
title,
|
|
43
48
|
onSubmit,
|
|
49
|
+
isDateWasChanged = false
|
|
44
50
|
}: EditRecurrentEventModalProps) => {
|
|
45
51
|
const { t } = useTranslation('Design')
|
|
46
52
|
|
|
@@ -50,6 +56,8 @@ export const EditRecurrentEventModal = ({
|
|
|
50
56
|
},
|
|
51
57
|
})
|
|
52
58
|
|
|
59
|
+
const recurrentListMode = isDateWasChanged? RECURRENT_MODE_TYPES_WITHOUT_ALL : RECURRENT_MODE_TYPES_LIST
|
|
60
|
+
|
|
53
61
|
return (
|
|
54
62
|
<Modal
|
|
55
63
|
show={isOpen}
|
|
@@ -75,7 +83,7 @@ export const EditRecurrentEventModal = ({
|
|
|
75
83
|
<Controller
|
|
76
84
|
render={({ field: { value, onChange } }) => (
|
|
77
85
|
<>
|
|
78
|
-
{Object.keys(
|
|
86
|
+
{Object.keys(recurrentListMode).map((option) => (
|
|
79
87
|
<Form.Check
|
|
80
88
|
type='radio'
|
|
81
89
|
id={option}
|
|
@@ -2,24 +2,25 @@ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
|
|
|
2
2
|
import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
|
|
3
3
|
import { DateTime } from 'luxon'
|
|
4
4
|
|
|
5
|
-
export const MIN_EVENT_DESCRIPTION_SIZE = 150
|
|
6
|
-
export const EVENT_DESCRIPTION_SIZE = 350
|
|
7
|
-
export const EMOJI_REGEX =
|
|
5
|
+
export const MIN_EVENT_DESCRIPTION_SIZE = 150
|
|
6
|
+
export const EVENT_DESCRIPTION_SIZE = 350
|
|
7
|
+
export const EMOJI_REGEX =
|
|
8
|
+
/<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g
|
|
8
9
|
|
|
9
10
|
export const formatContent = (content, maxLength = EVENT_DESCRIPTION_SIZE) => {
|
|
10
|
-
if (!content) return ''
|
|
11
|
+
if (!content) return ''
|
|
11
12
|
|
|
12
|
-
const replacedContent = replaceEmojiImagesWithText(content)
|
|
13
|
+
const replacedContent = replaceEmojiImagesWithText(content)
|
|
13
14
|
|
|
14
15
|
if (replacedContent.length <= maxLength) {
|
|
15
|
-
return replacedContent
|
|
16
|
+
return replacedContent
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
return replacedContent.slice(0, maxLength).concat('...')
|
|
19
|
-
}
|
|
19
|
+
return replacedContent.slice(0, maxLength).concat('...')
|
|
20
|
+
}
|
|
20
21
|
|
|
21
22
|
function replaceEmojiImagesWithText(text) {
|
|
22
|
-
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
|
|
23
|
+
return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText)
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -23,7 +23,7 @@ export const EventStatisticModal = ({
|
|
|
23
23
|
}: EventStatisticModalProps) => {
|
|
24
24
|
const { t } = useTranslation('Design')
|
|
25
25
|
|
|
26
|
-
const data = useTableData(date, eventStatistic)
|
|
26
|
+
const data = useTableData(date, eventStatistic, eventId)
|
|
27
27
|
const handleClose = () => {
|
|
28
28
|
setIsOpen(false)
|
|
29
29
|
}
|
|
@@ -11,6 +11,7 @@ import { StaticTableData } from '../../../table'
|
|
|
11
11
|
export const useTableData = (
|
|
12
12
|
date: Event['startAt'] | null,
|
|
13
13
|
eventStatistic: EventStatistic | null,
|
|
14
|
+
eventId: string,
|
|
14
15
|
) => {
|
|
15
16
|
const { t } = useTranslation('Design')
|
|
16
17
|
const { formatNumber } = useIntl()
|