@licklist/design 0.78.5-dev.2 → 0.78.5-dev.23
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/CustomDatePicker/CustomDatePicker.d.ts +10 -0
- package/dist/CustomDatePicker/CustomDatePicker.d.ts.map +1 -0
- package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +5 -4
- package/dist/auth/Layout/UserNavDropDownToggle.js +3 -0
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +11 -7
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.js +5 -4
- package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordComponent.js +5 -4
- package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialCallbackComponent.js +5 -2
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +4 -4
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.js +5 -4
- package/dist/customRadioButton/RadioButton.d.ts +11 -0
- package/dist/customRadioButton/RadioButton.d.ts.map +1 -0
- package/dist/customRadioButton/RadioButton.js +93 -0
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.js +4 -4
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +81 -80
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/modals/dialog/Dialog.d.ts.map +1 -1
- package/dist/modals/dialog/Dialog.js +39 -41
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +1 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +4 -4
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +2 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +2 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/sales/guest-profile/profile/Profile.d.ts.map +1 -1
- package/dist/sales/guest-profile/profile/Profile.js +2 -1
- package/dist/setting/dashboard/payments/payments-modal/PaymentsModal.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 +14 -20
- package/package.json +6 -6
- package/src/CustomDatePicker/CustomDatePicker.tsx +258 -0
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +3 -4
- package/src/auth/Layout/UserNavDropDownToggle.tsx +1 -1
- package/src/auth/Login/LoginComponent.tsx +7 -5
- package/src/auth/Register/RegisterComponent.tsx +3 -4
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +3 -4
- package/src/auth/Social/SocialCallbackComponent.tsx +3 -2
- package/src/auth/Social/SocialFormComponent.tsx +2 -3
- package/src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx +3 -4
- package/src/customRadioButton/RadioButton.tsx +84 -0
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -0
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -0
- package/src/file-upload/FileUpload.tsx +2 -3
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +103 -109
- package/src/index.ts +1 -0
- package/src/modals/dialog/Dialog.tsx +35 -36
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -5
- package/src/notification/email-template/form/EmailTemplateForm.tsx +3 -0
- package/src/recurrence-input/RecurrenceInput.tsx +4 -3
- package/src/sales/guest-profile/profile/Profile.tsx +2 -5
- package/src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx +1 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -9
- package/yarn.lock +528 -576
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CustomDatePickerProps = {
|
|
2
|
+
name: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
showAge?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function CustomDatePicker({ name, error, showAge, required }: CustomDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CustomDatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../src/CustomDatePicker/CustomDatePicker.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAc,EACd,QAAe,EAChB,EAAE,qBAAqB,2CA8OvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ChangePassword/ChangePasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,uBAAuB,
|
|
1
|
+
{"version":3,"file":"ChangePasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ChangePassword/ChangePasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,uBAAuB,4CAkE/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useContext, useState, useEffect } from 'react';
|
|
3
4
|
import Row from 'react-bootstrap/Row';
|
|
4
5
|
import Col from 'react-bootstrap/Col';
|
|
@@ -6,7 +7,6 @@ import { useTranslation } from 'react-i18next';
|
|
|
6
7
|
import { useLocation, useNavigate } from 'react-router-dom';
|
|
7
8
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
8
9
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
9
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
10
10
|
import { ROUTES } from '@licklist/core/dist/Config';
|
|
11
11
|
import { ChangePasswordFormComponent } from './ChangePasswordFormComponent.js';
|
|
12
12
|
import FormCard from '../../static/FormCard.js';
|
|
@@ -189,7 +189,6 @@ function ChangePasswordComponent() {
|
|
|
189
189
|
'App'
|
|
190
190
|
]).t;
|
|
191
191
|
var request = useContext(RequestContext);
|
|
192
|
-
var notification = useNotification();
|
|
193
192
|
var search = useLocation().search;
|
|
194
193
|
var email = new URLSearchParams(search).get('email');
|
|
195
194
|
var token = new URLSearchParams(search).get('token');
|
|
@@ -198,7 +197,8 @@ function ChangePasswordComponent() {
|
|
|
198
197
|
var userApiService = useUserApi(request);
|
|
199
198
|
var handleError = function(error) {
|
|
200
199
|
var _error_response_data, _error_response;
|
|
201
|
-
|
|
200
|
+
showAlert({
|
|
201
|
+
type: 'error',
|
|
202
202
|
title: t('App:error'),
|
|
203
203
|
message: (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message
|
|
204
204
|
});
|
|
@@ -234,7 +234,8 @@ function ChangePasswordComponent() {
|
|
|
234
234
|
2
|
|
235
235
|
];
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
showAlert({
|
|
238
|
+
type: 'success',
|
|
238
239
|
title: 'Success',
|
|
239
240
|
message: t('Notification:passwordChangedSuccessfully')
|
|
240
241
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAqBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAqBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,4CAoHrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
3
4
|
import Row from 'react-bootstrap/Row';
|
|
4
5
|
import Col from 'react-bootstrap/Col';
|
|
5
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
6
7
|
import { useNavigate, Link } from 'react-router-dom';
|
|
7
8
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
8
9
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
9
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
10
10
|
import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth';
|
|
11
11
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
|
|
12
12
|
import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite';
|
|
@@ -194,7 +194,6 @@ var LoginComponent = function(param) {
|
|
|
194
194
|
'User'
|
|
195
195
|
]).t;
|
|
196
196
|
var request = useContext(RequestContext);
|
|
197
|
-
var notification = useNotification();
|
|
198
197
|
var auth = useAuth();
|
|
199
198
|
var user = useUser();
|
|
200
199
|
var invite = useInvite();
|
|
@@ -203,9 +202,11 @@ var LoginComponent = function(param) {
|
|
|
203
202
|
var userApiService = useUserApi(request);
|
|
204
203
|
var handleError = function(error) {
|
|
205
204
|
var _error_response_data, _error_response;
|
|
206
|
-
|
|
205
|
+
showAlert({
|
|
206
|
+
type: 'error',
|
|
207
207
|
title: 'Error',
|
|
208
|
-
message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message
|
|
208
|
+
message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message,
|
|
209
|
+
timeout: 10000
|
|
209
210
|
});
|
|
210
211
|
};
|
|
211
212
|
var storeSecrets = function(secrets) {
|
|
@@ -272,9 +273,12 @@ var LoginComponent = function(param) {
|
|
|
272
273
|
// Store user profile
|
|
273
274
|
user.login(profile.data);
|
|
274
275
|
invite.clearInvitation();
|
|
275
|
-
|
|
276
|
+
showAlert({
|
|
277
|
+
type: 'success',
|
|
276
278
|
title: 'Success',
|
|
277
|
-
message: t('Notification:loggedSuccessfully')
|
|
279
|
+
message: t('Notification:loggedSuccessfully'),
|
|
280
|
+
timeout: 10000,
|
|
281
|
+
mount: 'global'
|
|
278
282
|
});
|
|
279
283
|
navigate('/', {
|
|
280
284
|
replace: true
|
|
@@ -327,7 +331,7 @@ var LoginComponent = function(param) {
|
|
|
327
331
|
"Don't have account? ",
|
|
328
332
|
/*#__PURE__*/ jsx(Link, {
|
|
329
333
|
to: "/register",
|
|
330
|
-
children: "Sign
|
|
334
|
+
children: "Sign uuup"
|
|
331
335
|
}),
|
|
332
336
|
"."
|
|
333
337
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAmBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAmBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,2CA4GxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useContext, useState } from 'react';
|
|
3
4
|
import { useTranslation, Trans } from 'react-i18next';
|
|
4
5
|
import { useNavigate, Link } from 'react-router-dom';
|
|
5
6
|
import { Row, Col } from 'react-bootstrap';
|
|
6
7
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
7
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
8
8
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
|
|
9
9
|
import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth';
|
|
10
10
|
import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite';
|
|
@@ -195,7 +195,6 @@ function RegisterComponent(param) {
|
|
|
195
195
|
var _param_showSocialLinks = param.showSocialLinks, showSocialLinks = _param_showSocialLinks === void 0 ? false : _param_showSocialLinks;
|
|
196
196
|
var t = useTranslation('User').t;
|
|
197
197
|
var request = useContext(RequestContext);
|
|
198
|
-
var notification = useNotification();
|
|
199
198
|
var auth = useAuth();
|
|
200
199
|
var user = useUser();
|
|
201
200
|
var invite = useInvite();
|
|
@@ -212,7 +211,8 @@ function RegisterComponent(param) {
|
|
|
212
211
|
}
|
|
213
212
|
};
|
|
214
213
|
var handleError = function(error) {
|
|
215
|
-
|
|
214
|
+
showAlert({
|
|
215
|
+
type: 'error',
|
|
216
216
|
title: 'Error',
|
|
217
217
|
message: error.message
|
|
218
218
|
});
|
|
@@ -278,7 +278,8 @@ function RegisterComponent(param) {
|
|
|
278
278
|
// Store user profile
|
|
279
279
|
user.login(profile.message);
|
|
280
280
|
invite.clearInvitation();
|
|
281
|
-
|
|
281
|
+
showAlert({
|
|
282
|
+
type: 'success',
|
|
282
283
|
title: 'Success',
|
|
283
284
|
message: t('Notification:registeredSuccessfully')
|
|
284
285
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,sBAAsB,4CAmD9B;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useContext, useState } from 'react';
|
|
3
4
|
import Row from 'react-bootstrap/Row';
|
|
4
5
|
import Col from 'react-bootstrap/Col';
|
|
5
6
|
import { useTranslation } from 'react-i18next';
|
|
6
7
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
7
8
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
8
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
9
9
|
import { ROUTES } from '@licklist/core/dist/Config';
|
|
10
10
|
import { useNavigate } from 'react-router-dom';
|
|
11
11
|
import { ResetPasswordFormComponent } from './ResetPasswordFormComponent.js';
|
|
@@ -189,13 +189,13 @@ function ResetPasswordComponent() {
|
|
|
189
189
|
'App'
|
|
190
190
|
]).t;
|
|
191
191
|
var request = useContext(RequestContext);
|
|
192
|
-
var notification = useNotification();
|
|
193
192
|
var navigate = useNavigate();
|
|
194
193
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
195
194
|
var userApiService = useUserApi(request);
|
|
196
195
|
var handleError = function(error) {
|
|
197
196
|
var _error_response_data, _error_response;
|
|
198
|
-
|
|
197
|
+
showAlert({
|
|
198
|
+
type: 'error',
|
|
199
199
|
title: t('App:error'),
|
|
200
200
|
message: (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message
|
|
201
201
|
});
|
|
@@ -230,7 +230,8 @@ function ResetPasswordComponent() {
|
|
|
230
230
|
2
|
|
231
231
|
];
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
showAlert({
|
|
234
|
+
type: 'success',
|
|
234
235
|
title: 'Success',
|
|
235
236
|
message: t('Notification:passwordResetedSuccessfully')
|
|
236
237
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"AAsBA,iBAAS,uBAAuB,4CA2G/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useState, useContext, useEffect } from 'react';
|
|
3
4
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
4
5
|
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
@@ -203,7 +204,8 @@ function SocialCallbackComponent() {
|
|
|
203
204
|
// Handle social callback
|
|
204
205
|
useEffect(function() {
|
|
205
206
|
var handleError = function(error) {
|
|
206
|
-
|
|
207
|
+
showAlert({
|
|
208
|
+
type: 'error',
|
|
207
209
|
title: 'Error',
|
|
208
210
|
message: error.message
|
|
209
211
|
});
|
|
@@ -252,7 +254,8 @@ function SocialCallbackComponent() {
|
|
|
252
254
|
}
|
|
253
255
|
// Store user profile
|
|
254
256
|
user.login(profile.message);
|
|
255
|
-
|
|
257
|
+
showAlert({
|
|
258
|
+
type: 'success',
|
|
256
259
|
title: 'Success',
|
|
257
260
|
message: t('Notification:loggedSuccessfully')
|
|
258
261
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialFormComponent.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"SocialFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialFormComponent.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA6E3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
3
3
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
4
4
|
import useSocialApi from '@licklist/plugins/dist/hooks/Api/useSocialApi';
|
|
5
5
|
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
@@ -9,7 +9,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
9
9
|
import { LoaderIndicator } from '../../static/loader/LoaderIndicator.js';
|
|
10
10
|
import SocialButton from '../../static/SocialButton.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
13
|
try {
|
|
14
14
|
var info = gen[key](arg);
|
|
15
15
|
var value = info.value;
|
|
@@ -136,13 +136,13 @@ function _ts_generator(thisArg, body) {
|
|
|
136
136
|
function SocialFormComponent(props) {
|
|
137
137
|
var isLoading = props.isLoading, setIsLoading = props.setIsLoading;
|
|
138
138
|
var request = useContext(RequestContext);
|
|
139
|
-
var notification = useNotification();
|
|
140
139
|
var t = useTranslation([
|
|
141
140
|
'App'
|
|
142
141
|
]).t;
|
|
143
142
|
var socialService = useSocialApi(request);
|
|
144
143
|
var handleError = function(error) {
|
|
145
|
-
|
|
144
|
+
showAlert({
|
|
145
|
+
type: 'error',
|
|
146
146
|
title: 'Error',
|
|
147
147
|
message: error.message
|
|
148
148
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAGL,YAAY,EACb,MAAM,2BAA2B,CAAA;AAKlC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW9E,KAAK,mBAAmB,GAAG,iBAAiB,GAAG;IAC7C,YAAY,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAA;IAClD,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;IACpC,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,cAAc,2HASxB,mBAAmB,4CA+MrB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useContext, useState, useEffect, createElement } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { Form, Button } from 'react-bootstrap';
|
|
@@ -7,7 +8,6 @@ import { isEqual } from 'lodash';
|
|
|
7
8
|
import { CUSTOM_FIELD_TYPE_INPUT, CUSTOM_FIELD_TYPE_DROPDOWN } from '@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper';
|
|
8
9
|
import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
9
10
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
10
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
11
11
|
import { CreateSortableListItem } from '../../../../sortable-list/CreateSortableListItem.js';
|
|
12
12
|
import { SORTABLE_ID_KEY } from '../../../../sortable-list/SortableList.js';
|
|
13
13
|
import { SortableTreeItem } from '../../../../sortable-tree/SortableTreeItem.js';
|
|
@@ -271,7 +271,6 @@ var CustomFieldSet = function(param) {
|
|
|
271
271
|
serverErrors,
|
|
272
272
|
setError
|
|
273
273
|
]);
|
|
274
|
-
var notification = useNotification();
|
|
275
274
|
var _useFieldArray = useFieldArray({
|
|
276
275
|
control: control,
|
|
277
276
|
name: CUSTOM_FIELDS
|
|
@@ -295,7 +294,8 @@ var CustomFieldSet = function(param) {
|
|
|
295
294
|
if (!response) return [
|
|
296
295
|
2
|
|
297
296
|
];
|
|
298
|
-
|
|
297
|
+
showAlert({
|
|
298
|
+
type: 'success',
|
|
299
299
|
title: t('App:success'),
|
|
300
300
|
message: t('Notification:createSuccessfully', {
|
|
301
301
|
argument: t('customField')
|
|
@@ -333,7 +333,8 @@ var CustomFieldSet = function(param) {
|
|
|
333
333
|
];
|
|
334
334
|
case 1:
|
|
335
335
|
_state.sent();
|
|
336
|
-
|
|
336
|
+
showAlert({
|
|
337
|
+
type: 'success',
|
|
337
338
|
title: t('App:success'),
|
|
338
339
|
message: t('Notification:theRemovedSuccessfully', {
|
|
339
340
|
argument: t('customField')
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RadioButtonProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const RadioButton: React.FC<RadioButtonProps>;
|
|
10
|
+
export default RadioButton;
|
|
11
|
+
//# sourceMappingURL=RadioButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../src/customRadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuE3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
var RadioButton = function(param) {
|
|
5
|
+
var name = param.name, value = param.value, checked = param.checked, onChange = param.onChange, label = param.label;
|
|
6
|
+
// Generate a stable id so label could be connected if needed
|
|
7
|
+
var id = "".concat(name, "-").concat(value);
|
|
8
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9
|
+
className: "tw-flex tw-items-center tw-space-x-3",
|
|
10
|
+
style: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
gap: 12
|
|
14
|
+
},
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ jsxs("div", {
|
|
17
|
+
className: "tw-relative tw-cursor-pointer",
|
|
18
|
+
style: {
|
|
19
|
+
position: 'relative',
|
|
20
|
+
cursor: 'pointer'
|
|
21
|
+
},
|
|
22
|
+
onClick: function() {
|
|
23
|
+
return onChange(value);
|
|
24
|
+
},
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ jsx("input", {
|
|
27
|
+
id: id,
|
|
28
|
+
type: "radio",
|
|
29
|
+
name: name,
|
|
30
|
+
value: value,
|
|
31
|
+
checked: checked,
|
|
32
|
+
onChange: function() {
|
|
33
|
+
return onChange(value);
|
|
34
|
+
},
|
|
35
|
+
className: "tw-sr-only",
|
|
36
|
+
style: {
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
opacity: 0,
|
|
39
|
+
pointerEvents: 'none',
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 0
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
/*#__PURE__*/ jsx("div", {
|
|
45
|
+
className: "tw-w-[47px] tw-h-[47px] tw-border-[3px] tw-border-black tw-rounded-full tw-bg-white tw-flex tw-items-center tw-justify-center tw-transition-all tw-duration-200 hover:tw-shadow-sm",
|
|
46
|
+
style: {
|
|
47
|
+
width: 52,
|
|
48
|
+
height: 52,
|
|
49
|
+
borderWidth: 3,
|
|
50
|
+
borderStyle: 'solid',
|
|
51
|
+
borderColor: '#000',
|
|
52
|
+
borderRadius: 9999,
|
|
53
|
+
background: '#fff',
|
|
54
|
+
display: 'flex',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
justifyContent: 'center',
|
|
57
|
+
transition: 'all 200ms'
|
|
58
|
+
},
|
|
59
|
+
children: checked && /*#__PURE__*/ jsx("div", {
|
|
60
|
+
className: "tw-w-[30px] tw-h-[30px] tw-bg-slate-900 tw-rounded-full",
|
|
61
|
+
style: {
|
|
62
|
+
width: 30,
|
|
63
|
+
height: 30,
|
|
64
|
+
background: '#0f172a',
|
|
65
|
+
borderRadius: 9999
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
}),
|
|
71
|
+
label && /*#__PURE__*/ jsx("label", {
|
|
72
|
+
htmlFor: id,
|
|
73
|
+
className: "tw-cursor-pointer tw-text-gray-700 tw-select-none tw-flex tw-items-center tw-leading-none",
|
|
74
|
+
style: {
|
|
75
|
+
cursor: 'pointer',
|
|
76
|
+
color: '#374151',
|
|
77
|
+
userSelect: 'none',
|
|
78
|
+
display: 'inline-flex',
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
lineHeight: 1,
|
|
81
|
+
position: 'relative',
|
|
82
|
+
top: 5
|
|
83
|
+
},
|
|
84
|
+
onClick: function() {
|
|
85
|
+
return onChange(value);
|
|
86
|
+
},
|
|
87
|
+
children: label
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { RadioButton as default };
|
|
@@ -33,7 +33,7 @@ import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
|
33
33
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
34
34
|
import 'react-select';
|
|
35
35
|
import '@licklist/plugins';
|
|
36
|
-
import '@licklist/plugins/dist/context/app/
|
|
36
|
+
import '@licklist/plugins/dist/context/app/AlertContext';
|
|
37
37
|
import '../../../../../static/index.js';
|
|
38
38
|
import '../../../../../tiptap-editor/TipTapEditor.js';
|
|
39
39
|
import '@licklist/core/dist/DataMapper/Product/ProductDataMapper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,eAAO,MAAM,gCAAgC;;CAE5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,eAAO,MAAM,gCAAgC;;CAE5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,4CAqG9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAkD1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../src/file-upload/FileUpload.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAQ7G,KAAK,YAAY,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAEtE,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,KAAwB,EACxB,QAAa,EACb,cAAc,EACd,SAAiB,EACjB,QAAgB,EAChB,QAAgB,GACjB,EAAE,eAAe,2CA4FjB;AAED,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,wDAIvB,iBAAiB;
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../src/file-upload/FileUpload.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAQ7G,KAAK,YAAY,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAEtE,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,KAAwB,EACxB,QAAa,EACb,cAAc,EACd,SAAiB,EACjB,QAAgB,EAChB,QAAgB,GACjB,EAAE,eAAe,2CA4FjB;AAED,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,wDAIvB,iBAAiB;0CAqB2B,QAAQ;2BAqB/C,MAAM,GAAG,MAAM,SACZ,MAAM,SACN,MAAM;;;;;CAmBhB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
|
|
2
3
|
import { useEffect, useState } from 'react';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Form } from 'react-bootstrap';
|
|
7
7
|
import '../static/index.js';
|
|
@@ -10,7 +10,7 @@ import { ReactComponent as SvgAddImage } from '../assets/dashboard/addImage.svg.
|
|
|
10
10
|
import { LoaderIndicator } from '../static/loader/LoaderIndicator.js';
|
|
11
11
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
function _array_like_to_array(arr, len) {
|
|
14
14
|
if (len == null || len > arr.length) len = arr.length;
|
|
15
15
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
16
16
|
return arr2;
|
|
@@ -163,7 +163,6 @@ var useFileUpload = function(param) {
|
|
|
163
163
|
var allowMultiple = param.allowMultiple, allowedExtensions = param.allowedExtensions, onFileRemove = param.onFileRemove;
|
|
164
164
|
var _useState = _sliced_to_array(useState(null), 2), files = _useState[0], setFiles = _useState[1];
|
|
165
165
|
var _useState1 = _sliced_to_array(useState(false), 2), isDragged = _useState1[0], setIsDragged = _useState1[1];
|
|
166
|
-
var notification = useNotification();
|
|
167
166
|
var t = useTranslation('Design').t;
|
|
168
167
|
var uploadFile = function(file) {
|
|
169
168
|
var sameFile = files === null || files === void 0 ? void 0 : files.find(function(uploadedFile) {
|
|
@@ -190,7 +189,8 @@ var useFileUpload = function(param) {
|
|
|
190
189
|
if (isExtensionValid) {
|
|
191
190
|
uploadFile(file);
|
|
192
191
|
} else {
|
|
193
|
-
|
|
192
|
+
showAlert({
|
|
193
|
+
type: 'error',
|
|
194
194
|
title: t('fileNotUploaded', {
|
|
195
195
|
fileName: file.name
|
|
196
196
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAK5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA2KtB,CAAA"}
|