@licklist/design 0.78.5-dev.19 → 0.78.5-dev.21
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/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +5 -4
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +12 -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/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +5 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +2 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +3 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +3 -2
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/events/event-card/EventCard.d.ts +1 -1
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- 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 +2 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.js +4 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +4 -11
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- 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 +13 -0
- package/dist/iframe/payment/payment-page/PaymentPage.js +8 -4
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +19 -45
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +6 -3
- package/dist/product-set/control/ProductSetControl.js +2 -1
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- 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/ProductsControl.js +1 -0
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- 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 +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +7 -7
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +3 -4
- package/src/auth/Login/LoginComponent.tsx +8 -6
- 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/events/edit-event-modal/IntervalInput.tsx +4 -0
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +12 -4
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-card/EventCard.tsx +10 -8
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/file-upload/FileUpload.tsx +2 -3
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +1 -5
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -2
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/payment/payment-page/PaymentPage.tsx +6 -6
- package/src/iframe/ryft/RyftPaymentForm.tsx +25 -58
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -6
- package/src/product-set/control/ProductSetControl.tsx +1 -1
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +69 -70
|
@@ -267,6 +267,9 @@ function ProductCategoryControl(param) {
|
|
|
267
267
|
step: 1,
|
|
268
268
|
value: value === null ? '' : value,
|
|
269
269
|
onChange: onChange,
|
|
270
|
+
onWheel: function(event) {
|
|
271
|
+
return event.currentTarget.blur();
|
|
272
|
+
},
|
|
270
273
|
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".minSubItems"), errors),
|
|
271
274
|
disabled: isLoading || isOverride,
|
|
272
275
|
name: name
|
|
@@ -336,6 +339,9 @@ function ProductCategoryControl(param) {
|
|
|
336
339
|
name: name,
|
|
337
340
|
value: value === null ? '' : value,
|
|
338
341
|
onChange: onChange,
|
|
342
|
+
onWheel: function(event) {
|
|
343
|
+
return event.currentTarget.blur();
|
|
344
|
+
},
|
|
339
345
|
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".maxSubItems"), errors),
|
|
340
346
|
disabled: isLoading || isOverride
|
|
341
347
|
});
|
|
@@ -399,6 +405,9 @@ function ProductCategoryControl(param) {
|
|
|
399
405
|
min: 0,
|
|
400
406
|
step: 1,
|
|
401
407
|
type: "number",
|
|
408
|
+
onWheel: function(event) {
|
|
409
|
+
return event.currentTarget.blur();
|
|
410
|
+
},
|
|
402
411
|
disabled: isOverride,
|
|
403
412
|
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".overallQuantity"), errors)
|
|
404
413
|
}, field));
|
|
@@ -576,6 +585,9 @@ function ProductCategoryControl(param) {
|
|
|
576
585
|
step: 1,
|
|
577
586
|
value: value,
|
|
578
587
|
onChange: onChange,
|
|
588
|
+
onWheel: function(event) {
|
|
589
|
+
return event.currentTarget.blur();
|
|
590
|
+
},
|
|
579
591
|
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".remainderExpireAfter"), errors),
|
|
580
592
|
disabled: isLoading || isOverride,
|
|
581
593
|
name: name
|
|
@@ -93,7 +93,7 @@ export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormVa
|
|
|
93
93
|
_id?: number;
|
|
94
94
|
}[];
|
|
95
95
|
isOverrides?: boolean;
|
|
96
|
-
id
|
|
96
|
+
id?: number;
|
|
97
97
|
name: string;
|
|
98
98
|
description?: string;
|
|
99
99
|
image?: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceEndInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceEndInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,kBAAkB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"RecurrenceEndInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceEndInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,kBAAkB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,KAAK,2CAoGP;AAED,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAoBD,eAAe,kBAAkB,CAAA"}
|
|
@@ -161,6 +161,9 @@ function RecurrenceEndInput(param) {
|
|
|
161
161
|
type: "number",
|
|
162
162
|
min: 1,
|
|
163
163
|
max: 500,
|
|
164
|
+
onWheel: function(event) {
|
|
165
|
+
return event.currentTarget.blur();
|
|
166
|
+
},
|
|
164
167
|
disabled: disabled || !count || count === 500,
|
|
165
168
|
"aria-label": "Occurrence count",
|
|
166
169
|
value: count !== null && count !== void 0 ? count : defaultOccurrences[frequency],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceEndInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurrenceEndInput.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,kBAAkB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"RecurrenceEndInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurrenceEndInput.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,kBAAkB,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,QAAgB,EAChB,IAAI,EACJ,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,KAAK,2CAqFP;AA2BD,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CapacityControl.d.ts","sourceRoot":"","sources":["../../../../src/resource/form/components/CapacityControl.tsx"],"names":[],"mappings":"AAOA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,kBAAmB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CapacityControl.d.ts","sourceRoot":"","sources":["../../../../src/resource/form/components/CapacityControl.tsx"],"names":[],"mappings":"AAOA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,kBAAmB,oBAAoB,4CAoClE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/resource/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/resource/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponFormControl.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/control/CouponFormControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAOL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAYhE,OAAO,EAAa,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,KAAK,CAAC,gBAAgB,GAAG,YAAY,CAAC,CAAA;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,eAAe,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,iBAAiB,kCAG3B,eAAe,
|
|
1
|
+
{"version":3,"file":"CouponFormControl.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/control/CouponFormControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAOL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAYhE,OAAO,EAAa,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,KAAK,CAAC,gBAAgB,GAAG,YAAY,CAAC,CAAA;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,eAAe,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,iBAAiB,kCAG3B,eAAe,4CA8VjB,CAAA"}
|
|
@@ -245,6 +245,9 @@ var CouponFormControl = function(param) {
|
|
|
245
245
|
}),
|
|
246
246
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
247
247
|
type: "number",
|
|
248
|
+
onWheel: function(event) {
|
|
249
|
+
return event.currentTarget.blur();
|
|
250
|
+
},
|
|
248
251
|
isInvalid: errors.discount !== undefined
|
|
249
252
|
}, register('discount', {
|
|
250
253
|
required: t('Validation:fieldRequired', {
|
|
@@ -391,6 +394,9 @@ var CouponFormControl = function(param) {
|
|
|
391
394
|
}),
|
|
392
395
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register('totalCoupons')), {
|
|
393
396
|
type: "number",
|
|
397
|
+
onWheel: function(event) {
|
|
398
|
+
return event.currentTarget.blur();
|
|
399
|
+
},
|
|
394
400
|
isInvalid: errors.totalCoupons !== undefined,
|
|
395
401
|
disabled: isLoading
|
|
396
402
|
})),
|
|
@@ -411,6 +417,9 @@ var CouponFormControl = function(param) {
|
|
|
411
417
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
412
418
|
type: "number"
|
|
413
419
|
}, register('usesPerUser')), {
|
|
420
|
+
onWheel: function(event) {
|
|
421
|
+
return event.currentTarget.blur();
|
|
422
|
+
},
|
|
414
423
|
disabled: isLoading
|
|
415
424
|
}))
|
|
416
425
|
]
|
|
@@ -430,6 +439,9 @@ var CouponFormControl = function(param) {
|
|
|
430
439
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
431
440
|
type: "number"
|
|
432
441
|
}, register('useAgain')), {
|
|
442
|
+
onWheel: function(event) {
|
|
443
|
+
return event.currentTarget.blur();
|
|
444
|
+
},
|
|
433
445
|
disabled: isLoading
|
|
434
446
|
})),
|
|
435
447
|
/*#__PURE__*/ jsx(Form.Text, {
|
|
@@ -449,6 +461,9 @@ var CouponFormControl = function(param) {
|
|
|
449
461
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
450
462
|
type: "number"
|
|
451
463
|
}, register('usesPerUserDay')), {
|
|
464
|
+
onWheel: function(event) {
|
|
465
|
+
return event.currentTarget.blur();
|
|
466
|
+
},
|
|
452
467
|
disabled: isLoading
|
|
453
468
|
})),
|
|
454
469
|
/*#__PURE__*/ jsx(Form.Text, {
|
|
@@ -472,6 +487,9 @@ var CouponFormControl = function(param) {
|
|
|
472
487
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
473
488
|
type: "number"
|
|
474
489
|
}, register('minAmount')), {
|
|
490
|
+
onWheel: function(event) {
|
|
491
|
+
return event.currentTarget.blur();
|
|
492
|
+
},
|
|
475
493
|
disabled: isLoading
|
|
476
494
|
})),
|
|
477
495
|
/*#__PURE__*/ jsx(Form.Text, {
|
|
@@ -491,6 +509,9 @@ var CouponFormControl = function(param) {
|
|
|
491
509
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
492
510
|
type: "number"
|
|
493
511
|
}, register('maxAmount')), {
|
|
512
|
+
onWheel: function(event) {
|
|
513
|
+
return event.currentTarget.blur();
|
|
514
|
+
},
|
|
494
515
|
disabled: isLoading
|
|
495
516
|
})),
|
|
496
517
|
/*#__PURE__*/ jsx(Form.Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/dashboard/DashboardSettingForm.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAM3E,OAAO,EAEL,2BAA2B,EAC5B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC,GAAG,2BAA2B,GAC7B,8BAA8B,CAAA;AAYhC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,+BAA+B,KAAK,IAAI,CAAA;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,yEAM9B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"DashboardSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/dashboard/DashboardSettingForm.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAM3E,OAAO,EAEL,2BAA2B,EAC5B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,8BAA8B,EAC/B,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC,GAAG,2BAA2B,GAC7B,8BAA8B,CAAA;AAYhC,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,+BAA+B,KAAK,IAAI,CAAA;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,yEAM9B,yBAAyB,4CAmN3B,CAAA"}
|
|
@@ -194,7 +194,10 @@ var DashboardSettingForm = function(param) {
|
|
|
194
194
|
children: t('metaPixelId')
|
|
195
195
|
}),
|
|
196
196
|
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
197
|
-
type: "number"
|
|
197
|
+
type: "number",
|
|
198
|
+
onWheel: function(event) {
|
|
199
|
+
return event.currentTarget.blur();
|
|
200
|
+
}
|
|
198
201
|
}, register('metaPixelId', {
|
|
199
202
|
minLength: {
|
|
200
203
|
value: 15,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAqC/B,CAAA"}
|
|
@@ -88,6 +88,9 @@ var CurrencyNumberInput = /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
|
88
88
|
disabled: disabled,
|
|
89
89
|
value: value,
|
|
90
90
|
onChange: onChange,
|
|
91
|
+
onWheel: function(event) {
|
|
92
|
+
return event.currentTarget.blur();
|
|
93
|
+
},
|
|
91
94
|
ref: ref
|
|
92
95
|
}, props)),
|
|
93
96
|
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAkEtB,CAAA"}
|
|
@@ -106,6 +106,9 @@ var FormNumberInput = function(param) {
|
|
|
106
106
|
type: "number",
|
|
107
107
|
step: step,
|
|
108
108
|
disabled: disabled,
|
|
109
|
+
onWheel: function(event) {
|
|
110
|
+
return event.currentTarget.blur();
|
|
111
|
+
},
|
|
109
112
|
isInvalid: HookFormService.isInvalid(fieldName, errors)
|
|
110
113
|
}, field), {
|
|
111
114
|
onChange: function(event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,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,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,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,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAoDlB"}
|
|
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
15
15
|
left: 0;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
z-index:
|
|
18
|
+
z-index: 2147483646;
|
|
19
19
|
background-color: rgba(0, 0, 0, 0.5);
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
z-index:
|
|
27
|
+
z-index: 2147483647;
|
|
28
28
|
display: none;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
-
|
|
106
105
|
.form-disable-box {
|
|
107
106
|
display: none;
|
|
108
107
|
position: absolute;
|
|
@@ -184,7 +183,6 @@
|
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
@include media-breakpoint-up(md) {
|
|
187
|
-
|
|
188
186
|
.ryft-payment-form,
|
|
189
187
|
.form-disable-box {
|
|
190
188
|
height: 50%;
|
|
@@ -213,4 +211,4 @@
|
|
|
213
211
|
.divider {
|
|
214
212
|
display: none !important;
|
|
215
213
|
}
|
|
216
|
-
}
|
|
214
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
|
|
@@ -77,6 +77,9 @@ var GameDurationControl = function(param) {
|
|
|
77
77
|
required: false,
|
|
78
78
|
min: 1
|
|
79
79
|
})), {
|
|
80
|
+
onWheel: function(event) {
|
|
81
|
+
return event.currentTarget.blur();
|
|
82
|
+
},
|
|
80
83
|
placeholder: t('Design:duration'),
|
|
81
84
|
isInvalid: Boolean(errors.defaultDuration),
|
|
82
85
|
disabled: isLoading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.21",
|
|
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.36.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.6",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.36.4-
|
|
47
|
+
"@licklist/plugins": "0.36.4-dev.9",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"i18next": "25.3.2",
|
|
50
50
|
"lodash": "4.17.21",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@dnd-kit/utilities": "2.0.0",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
67
|
-
"@licklist/core": "0.36.
|
|
67
|
+
"@licklist/core": "0.36.1-dev.6",
|
|
68
68
|
"@licklist/eslint-config": "0.5.6",
|
|
69
|
-
"@licklist/plugins": "0.36.4-
|
|
69
|
+
"@licklist/plugins": "0.36.4-dev.8",
|
|
70
70
|
"@mantine/core": "6.0.22",
|
|
71
71
|
"@mantine/hooks": "6.0.22",
|
|
72
72
|
"@mdx-js/react": "1.6.22",
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
"@wojtekmaj/react-daterange-picker": "4.1.0",
|
|
98
98
|
"bootstrap": "4.6.0",
|
|
99
99
|
"bootstrap-social": "5.1.1",
|
|
100
|
-
"clsx": "2.1.1",
|
|
101
100
|
"date-fns": "2.29.3",
|
|
102
101
|
"emojibase": "6.1.0",
|
|
103
102
|
"emojibase-data": "7.0.1",
|
|
@@ -209,9 +208,10 @@
|
|
|
209
208
|
"yarn tsc"
|
|
210
209
|
]
|
|
211
210
|
},
|
|
211
|
+
"packageManager": "yarn@4.4.0",
|
|
212
212
|
"volta": {
|
|
213
213
|
"node": "20.9.0",
|
|
214
214
|
"yarn": "4.4.0"
|
|
215
215
|
},
|
|
216
|
-
"stableVersion": "0.71.
|
|
216
|
+
"stableVersion": "0.71.4-dev.1"
|
|
217
217
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
1
2
|
import { useContext, useEffect, useState } from 'react'
|
|
2
3
|
import Row from 'react-bootstrap/Row'
|
|
3
4
|
import Col from 'react-bootstrap/Col'
|
|
@@ -6,7 +7,6 @@ import { useLocation, useNavigate } from 'react-router-dom'
|
|
|
6
7
|
import { ApiServiceError } from '@licklist/core/dist/Api/ApiService'
|
|
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 { UserChangePasswordRequest } from '@licklist/plugins/dist/types/Request/UserChangePasswordRequest'
|
|
11
11
|
import { ROUTES } from '@licklist/core/dist/Config'
|
|
12
12
|
import { ChangePasswordFormComponent } from './ChangePasswordFormComponent'
|
|
@@ -16,7 +16,6 @@ import { LoaderIndicator } from '../../static/loader/LoaderIndicator'
|
|
|
16
16
|
function ChangePasswordComponent() {
|
|
17
17
|
const { t } = useTranslation(['Notification', 'User', 'App'])
|
|
18
18
|
const request = useContext(RequestContext)
|
|
19
|
-
const notification = useNotification()
|
|
20
19
|
const { search } = useLocation()
|
|
21
20
|
const email = new URLSearchParams(search).get('email')
|
|
22
21
|
const token = new URLSearchParams(search).get('token')
|
|
@@ -27,7 +26,7 @@ function ChangePasswordComponent() {
|
|
|
27
26
|
const userApiService = useUserApi(request)
|
|
28
27
|
|
|
29
28
|
const handleError = (error: ApiServiceError<{ message: string }>) => {
|
|
30
|
-
|
|
29
|
+
showAlert({ type: 'error',
|
|
31
30
|
title: t('App:error'),
|
|
32
31
|
message: error.response?.data?.message,
|
|
33
32
|
})
|
|
@@ -45,7 +44,7 @@ function ChangePasswordComponent() {
|
|
|
45
44
|
return
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
showAlert({ type: 'success',
|
|
49
48
|
title: 'Success',
|
|
50
49
|
message: t('Notification:passwordChangedSuccessfully'),
|
|
51
50
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useContext, useEffect, useState } from 'react'
|
|
2
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
2
3
|
import Row from 'react-bootstrap/Row'
|
|
3
4
|
import Col from 'react-bootstrap/Col'
|
|
4
5
|
import { Trans, useTranslation } from 'react-i18next'
|
|
5
6
|
import { Link, useNavigate } from 'react-router-dom'
|
|
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 useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth'
|
|
10
10
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser'
|
|
11
11
|
import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite'
|
|
@@ -30,7 +30,6 @@ const LoginComponent = ({
|
|
|
30
30
|
}: LoginComponentProps) => {
|
|
31
31
|
const { t } = useTranslation(['Notification', 'User'])
|
|
32
32
|
const request = useContext(RequestContext)
|
|
33
|
-
const notification = useNotification()
|
|
34
33
|
const auth = useAuth()
|
|
35
34
|
const user = useUser()
|
|
36
35
|
const invite = useInvite()
|
|
@@ -42,9 +41,10 @@ const LoginComponent = ({
|
|
|
42
41
|
const userApiService = useUserApi(request)
|
|
43
42
|
|
|
44
43
|
const handleError = (error: any) => {
|
|
45
|
-
|
|
44
|
+
showAlert({ type: 'error',
|
|
46
45
|
title: 'Error',
|
|
47
|
-
message: error.message,
|
|
46
|
+
message: error?.response?.data?.message || error.message,
|
|
47
|
+
timeout: 10000,
|
|
48
48
|
})
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -82,9 +82,11 @@ const LoginComponent = ({
|
|
|
82
82
|
user.login(profile.data as IUser)
|
|
83
83
|
invite.clearInvitation()
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
showAlert({ type: 'success',
|
|
86
86
|
title: 'Success',
|
|
87
87
|
message: t('Notification:loggedSuccessfully'),
|
|
88
|
+
timeout: 10000,
|
|
89
|
+
mount: 'global',
|
|
88
90
|
})
|
|
89
91
|
|
|
90
92
|
navigate('/', { replace: true })
|
|
@@ -112,7 +114,7 @@ const LoginComponent = ({
|
|
|
112
114
|
<Trans t={t} i18nKey='loginPromo'>
|
|
113
115
|
{/* TODO fix issue react router types
|
|
114
116
|
@ts-expect-error */}
|
|
115
|
-
Don't have account? <Link to='/register'>Sign
|
|
117
|
+
Don't have account? <Link to='/register'>Sign uuup</Link>.
|
|
116
118
|
</Trans>
|
|
117
119
|
</h6>
|
|
118
120
|
)}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
1
2
|
import { useContext, useState } from 'react'
|
|
2
3
|
import { Trans, useTranslation } from 'react-i18next'
|
|
3
4
|
import { Link, useNavigate } from 'react-router-dom'
|
|
4
5
|
import { Row, Col } from 'react-bootstrap'
|
|
5
6
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext'
|
|
6
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification'
|
|
7
7
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser'
|
|
8
8
|
import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth'
|
|
9
9
|
import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite'
|
|
@@ -26,7 +26,6 @@ function RegisterComponent({
|
|
|
26
26
|
}: RegisterComponentProps) {
|
|
27
27
|
const { t } = useTranslation('User')
|
|
28
28
|
const request = useContext(RequestContext)
|
|
29
|
-
const notification = useNotification()
|
|
30
29
|
const auth = useAuth()
|
|
31
30
|
const user = useUser()
|
|
32
31
|
const invite = useInvite()
|
|
@@ -48,7 +47,7 @@ function RegisterComponent({
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
const handleError = (error: Error) => {
|
|
51
|
-
|
|
50
|
+
showAlert({ type: 'error',
|
|
52
51
|
title: 'Error',
|
|
53
52
|
message: error.message,
|
|
54
53
|
})
|
|
@@ -85,7 +84,7 @@ function RegisterComponent({
|
|
|
85
84
|
|
|
86
85
|
invite.clearInvitation()
|
|
87
86
|
|
|
88
|
-
|
|
87
|
+
showAlert({ type: 'success',
|
|
89
88
|
title: 'Success',
|
|
90
89
|
message: t('Notification:registeredSuccessfully'),
|
|
91
90
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
1
2
|
import { useContext, useState } from 'react'
|
|
2
3
|
import Row from 'react-bootstrap/Row'
|
|
3
4
|
import Col from 'react-bootstrap/Col'
|
|
@@ -5,7 +6,6 @@ import { useTranslation } from 'react-i18next'
|
|
|
5
6
|
import { ApiServiceError } from '@licklist/core/dist/Api/ApiService'
|
|
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 { UserResetPasswordRequest } from '@licklist/plugins/dist/types/Request/UserResetPasswordRequest'
|
|
10
10
|
import { ROUTES } from '@licklist/core/dist/Config'
|
|
11
11
|
import { useNavigate } from 'react-router-dom'
|
|
@@ -16,7 +16,6 @@ import { LoaderIndicator } from '../../static/loader/LoaderIndicator'
|
|
|
16
16
|
function ResetPasswordComponent() {
|
|
17
17
|
const { t } = useTranslation(['Notification', 'User', 'App'])
|
|
18
18
|
const request = useContext(RequestContext)
|
|
19
|
-
const notification = useNotification()
|
|
20
19
|
const navigate = useNavigate()
|
|
21
20
|
|
|
22
21
|
const [isLoading, setIsLoading] = useState<boolean>(false)
|
|
@@ -24,7 +23,7 @@ function ResetPasswordComponent() {
|
|
|
24
23
|
const userApiService = useUserApi(request)
|
|
25
24
|
|
|
26
25
|
const handleError = (error: ApiServiceError<{ message: string }>) => {
|
|
27
|
-
|
|
26
|
+
showAlert({ type: 'error',
|
|
28
27
|
title: t('App:error'),
|
|
29
28
|
message: error.response?.data?.message,
|
|
30
29
|
})
|
|
@@ -40,7 +39,7 @@ function ResetPasswordComponent() {
|
|
|
40
39
|
return
|
|
41
40
|
}
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
showAlert({ type: 'success',
|
|
44
43
|
title: 'Success',
|
|
45
44
|
message: t('Notification:passwordResetedSuccessfully'),
|
|
46
45
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
1
2
|
import { useContext, useEffect, useState } from 'react'
|
|
2
3
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext'
|
|
3
4
|
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification'
|
|
@@ -39,7 +40,7 @@ function SocialCallbackComponent() {
|
|
|
39
40
|
// Handle social callback
|
|
40
41
|
useEffect(() => {
|
|
41
42
|
const handleError = (error: Error) => {
|
|
42
|
-
|
|
43
|
+
showAlert({ type: 'error',
|
|
43
44
|
title: 'Error',
|
|
44
45
|
message: error.message,
|
|
45
46
|
})
|
|
@@ -72,7 +73,7 @@ function SocialCallbackComponent() {
|
|
|
72
73
|
// Store user profile
|
|
73
74
|
user.login(profile.message as IUser)
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
showAlert({ type: 'success',
|
|
76
77
|
title: 'Success',
|
|
77
78
|
message: t('Notification:loggedSuccessfully'),
|
|
78
79
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext'
|
|
1
2
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
3
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
-
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification'
|
|
4
4
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext'
|
|
5
5
|
import useSocialApi from '@licklist/plugins/dist/hooks/Api/useSocialApi'
|
|
6
6
|
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
@@ -20,13 +20,12 @@ function SocialFormComponent(props: SocialFormComponentProps) {
|
|
|
20
20
|
const { isLoading, setIsLoading } = props
|
|
21
21
|
|
|
22
22
|
const request = useContext(RequestContext)
|
|
23
|
-
const notification = useNotification()
|
|
24
23
|
const { t } = useTranslation(['App'])
|
|
25
24
|
|
|
26
25
|
const socialService = useSocialApi(request)
|
|
27
26
|
|
|
28
27
|
const handleError = (error: Error) => {
|
|
29
|
-
|
|
28
|
+
showAlert({ type: 'error',
|
|
30
29
|
title: 'Error',
|
|
31
30
|
message: error.message,
|
|
32
31
|
})
|