@licklist/design 0.72.72 → 0.72.73-stage.1
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/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +2 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +18 -14
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +1 -2
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +2 -3
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -6
- package/dist/product-set/control/ProductSetControl.d.ts +2 -0
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +11 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +2 -0
- package/dist/product-set/product/ProductControl.d.ts +4 -2
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +8 -50
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts +12 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts.map +1 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.js +153 -0
- package/dist/product-set/product/scanRange/index.d.ts +2 -0
- package/dist/product-set/product/scanRange/index.d.ts.map +1 -0
- package/dist/product-set/utils/index.d.ts +4 -1
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts +2 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
- package/dist/sales/coupon/form/CouponFrom.js +19 -6
- package/dist/setting/index.d.ts +0 -2
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/styles/form/CustomCheckbox.scss +31 -0
- package/package.json +12 -7
- package/src/auth/Authorizer.tsx +1 -0
- package/src/auth/Router.tsx +19 -19
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +4 -12
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/index.ts +0 -1
- package/src/product-set/control/ProductSetControl.tsx +12 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
- package/src/product-set/form/ProductsControl.tsx +2 -0
- package/src/product-set/product/Product.stories.tsx +1 -1
- package/src/product-set/product/ProductControl.tsx +18 -64
- package/src/product-set/product/scanRange/ProductScanRangeControl.stories.ts +45 -0
- package/src/product-set/product/scanRange/ProductScanRangeControl.tsx +163 -0
- package/src/product-set/product/scanRange/index.ts +1 -0
- package/src/sales/coupon/form/CouponFrom.tsx +20 -8
- package/src/setting/index.ts +0 -2
- package/src/sortable-tree/SortableTreeItem.tsx +1 -0
- package/src/styles/form/CustomCheckbox.scss +31 -0
- package/yarn.lock +257 -284
- package/dist/assets/logo/licklist.sm.svg.js +0 -33
- package/dist/assets/logo/licklist.svg.js +0 -16
- package/dist/header/BookeditHeader.d.ts +0 -15
- package/dist/header/BookeditHeader.d.ts.map +0 -1
- package/dist/header/BookeditHeader.js +0 -21
- package/dist/header/Header.d.ts +0 -16
- package/dist/header/Header.d.ts.map +0 -1
- package/dist/header/Header.js +0 -55
- package/dist/header/LicklistHeader.d.ts +0 -15
- package/dist/header/LicklistHeader.d.ts.map +0 -1
- package/dist/header/LicklistHeader.js +0 -23
- package/dist/header/elements/CompanySelector.d.ts +0 -11
- package/dist/header/elements/CompanySelector.d.ts.map +0 -1
- package/dist/header/elements/CompanySelector.js +0 -36
- package/dist/header/elements/index.d.ts +0 -3
- package/dist/header/elements/index.d.ts.map +0 -1
- package/dist/header/index.d.ts +0 -6
- package/dist/header/index.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +0 -25
- package/dist/setting/admin/AdminSettingForm.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.js +0 -220
- package/dist/setting/admin/PaymentFeeForm.d.ts +0 -13
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +0 -1
- package/dist/setting/admin/PaymentFeeForm.js +0 -424
- package/dist/setting/admin/index.d.ts +0 -2
- package/dist/setting/admin/index.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.d.ts +0 -10
- package/dist/setting/system/SystemSettingForm.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.js +0 -95
- package/dist/setting/system/index.d.ts +0 -2
- package/dist/setting/system/index.d.ts.map +0 -1
- package/dist/types/currency.d.ts +0 -5
- package/dist/types/currency.d.ts.map +0 -1
- package/src/header/BookeditHeader.tsx +0 -38
- package/src/header/Header.stories.tsx +0 -123
- package/src/header/Header.tsx +0 -69
- package/src/header/LicklistHeader.tsx +0 -46
- package/src/header/elements/CompanySelector.tsx +0 -47
- package/src/header/elements/Elements.stories.tsx +0 -33
- package/src/header/elements/index.ts +0 -3
- package/src/header/index.ts +0 -7
- package/src/setting/admin/AdminSetting.stories.tsx +0 -52
- package/src/setting/admin/AdminSettingForm.tsx +0 -196
- package/src/setting/admin/PaymentFeeForm.tsx +0 -304
- package/src/setting/admin/index.ts +0 -1
- package/src/setting/system/SystemSetting.stories.tsx +0 -26
- package/src/setting/system/SystemSettingForm.tsx +0 -62
- package/src/setting/system/index.ts +0 -1
- package/src/types/currency.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA2EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/auth/Authorizer.js
CHANGED
|
@@ -98,7 +98,8 @@ function Authorizer(props) {
|
|
|
98
98
|
ROUTES.TERMS_PAGE,
|
|
99
99
|
ROUTES.PRIVACY_FACTS_PAGE,
|
|
100
100
|
ROUTES.CHANGE_PASSWORD,
|
|
101
|
-
ROUTES.FORGOT_PASSWORD
|
|
101
|
+
ROUTES.FORGOT_PASSWORD,
|
|
102
|
+
ROUTES.SSO_LOGIN
|
|
102
103
|
].concat(_to_consumable_array(matchedPathPatternUrls())).includes(RouteService.getCurrentPage())) {
|
|
103
104
|
setIsValidated(function() {
|
|
104
105
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,2CA0BjC;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/auth/Router.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
2
|
import { Router as Router$1 } from 'react-router-dom';
|
|
4
|
-
import App from '@licklist/plugins/dist/services/App/App';
|
|
5
3
|
import history from '@licklist/plugins/dist/services/History/History';
|
|
6
4
|
|
|
7
5
|
function Router(props) {
|
|
8
6
|
var children = props.children;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
// uncomment if necessary to debug history
|
|
8
|
+
// useEffect(() => {
|
|
9
|
+
// if (App.isDevelopment()) {
|
|
10
|
+
// console.info('initial history is: ', JSON.stringify(history, null, 2))
|
|
11
|
+
// history.listen((location, action) => {
|
|
12
|
+
// if (!location) {
|
|
13
|
+
// return
|
|
14
|
+
// }
|
|
15
|
+
// console.info(
|
|
16
|
+
// `The current URL is ${location.pathname}${location.search}${location.hash}`,
|
|
17
|
+
// )
|
|
18
|
+
// console.info(
|
|
19
|
+
// `The last navigation action was ${action}`,
|
|
20
|
+
// JSON.stringify(history, null, 2),
|
|
21
|
+
// )
|
|
22
|
+
// })
|
|
23
|
+
// }
|
|
24
|
+
// }, [])
|
|
21
25
|
// TODO fix issue react router types
|
|
22
26
|
// @ts-expect-error
|
|
23
27
|
return /*#__PURE__*/ jsx(Router$1, {
|
|
@@ -2,10 +2,9 @@ export declare const SALE_DEADLINE_NAME_CATEGORY = "saleDeadlineCategory";
|
|
|
2
2
|
export declare const SALE_DEADLINE_NAME = "saleDeadline";
|
|
3
3
|
export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
|
|
4
4
|
export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
|
|
5
|
-
export declare const SaleDeadline: ({ disabled, onlyBefore,
|
|
5
|
+
export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
onlyBefore?: boolean;
|
|
8
|
-
isProductSet?: boolean;
|
|
9
8
|
deadLineCategory?: string;
|
|
10
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
//# sourceMappingURL=SaleDeadline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,gDAItB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CA8JA,CAAA"}
|
|
@@ -67,7 +67,7 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
|
|
|
67
67
|
}
|
|
68
68
|
];
|
|
69
69
|
var SaleDeadline = function(param) {
|
|
70
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore,
|
|
70
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, deadLineCategory = param.deadLineCategory;
|
|
71
71
|
var _errors_root;
|
|
72
72
|
var t = useTranslation([
|
|
73
73
|
'Design'
|
|
@@ -133,10 +133,9 @@ var SaleDeadline = function(param) {
|
|
|
133
133
|
name: "sale-deadline",
|
|
134
134
|
options: SALE_DEADLINES_EVENT_START_TYPES.map(function(param) {
|
|
135
135
|
var type = param.type;
|
|
136
|
-
var salesDeadlineTitle = type === SALE_DEADLINE_BEFORE_TYPE && isProductSet ? 'beforeProductSet' : type;
|
|
137
136
|
return {
|
|
138
137
|
id: type,
|
|
139
|
-
value: t("Design:".concat(
|
|
138
|
+
value: t("Design:".concat(type))
|
|
140
139
|
};
|
|
141
140
|
}),
|
|
142
141
|
value: deadlineType,
|
|
@@ -29,7 +29,6 @@ import 'react-bootstrap/Button';
|
|
|
29
29
|
import 'react-bootstrap/OverlayTrigger';
|
|
30
30
|
import 'react-bootstrap/Popover';
|
|
31
31
|
import '@licklist/plugins/dist/services/Form/HookFormService';
|
|
32
|
-
import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
33
32
|
import 'react-bootstrap/Collapse';
|
|
34
33
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
35
34
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
@@ -73,6 +72,7 @@ import '../../../../../iframe/payment/payment-status-page/PaymentStatusPage.js';
|
|
|
73
72
|
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
74
73
|
import '../../../../../static/manual-date-picker/constants/index.js';
|
|
75
74
|
import '../../../../../iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js';
|
|
75
|
+
import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
76
76
|
import '../../../../../sortable-tree/SortableTree.js';
|
|
77
77
|
import '@dnd-kit/core';
|
|
78
78
|
import '@dnd-kit/sortable';
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -31,7 +31,6 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
|
|
|
31
31
|
|
|
32
32
|
var ProductWithModifierSetModal = function(param) {
|
|
33
33
|
var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
|
|
34
|
-
var _product_images, _product_images1;
|
|
35
34
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
36
35
|
useOnWindowUnmount({
|
|
37
36
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -58,14 +57,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
58
57
|
className: "right-block",
|
|
59
58
|
id: "select-event-container",
|
|
60
59
|
children: /*#__PURE__*/ jsxs("div", {
|
|
61
|
-
className: clsx('manual-booking-container', !
|
|
60
|
+
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
62
61
|
children: [
|
|
63
62
|
/*#__PURE__*/ jsx("div", {
|
|
64
63
|
className: "manual-booking-header",
|
|
65
64
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
66
65
|
title: product.name,
|
|
67
66
|
description: product.description,
|
|
68
|
-
className: clsx('iframe-event__product-description', !
|
|
67
|
+
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
69
68
|
classNameProductModal: "d-block",
|
|
70
69
|
images: product.images,
|
|
71
70
|
isRequired: product.isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAKrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -29,10 +29,6 @@ export { EventCardSkeleton } from './events/event-card/EventCardSkeleton.js';
|
|
|
29
29
|
export { EventStatisticModal } from './events/event-statistic-modal/EventStatisticModal.js';
|
|
30
30
|
export { EventVenueMap } from './events/event-venue-map/EventVenueMap.js';
|
|
31
31
|
export { FileUpload } from './file-upload/FileUpload.js';
|
|
32
|
-
export { default as BookeditHeader } from './header/BookeditHeader.js';
|
|
33
|
-
export { default as LicklistHeader } from './header/LicklistHeader.js';
|
|
34
|
-
export { default as Header } from './header/Header.js';
|
|
35
|
-
export { default as CompanySelector } from './header/elements/CompanySelector.js';
|
|
36
32
|
export { Example, ExampleContent, ExampleToggle } from './help/example/Example.js';
|
|
37
33
|
export { HelpPopover } from './help/popover/HelpPopover.js';
|
|
38
34
|
export { EventBookingForm } from './iframe/event/event-booking-form/EventBookingForm.js';
|
|
@@ -137,8 +133,6 @@ export { RyftPayment } from './sales/payment-form/components/RyftPayment/RyftPay
|
|
|
137
133
|
export { BookingResults } from './sales/booking/results/BookingResults.js';
|
|
138
134
|
export { BACKGROUND_COLOR_CLASSNAMES } from './sales/booking/results/constants.js';
|
|
139
135
|
export { NotesTable } from './sales/notes/NotesTable.js';
|
|
140
|
-
export { SystemSettingForm } from './setting/system/SystemSettingForm.js';
|
|
141
|
-
export { AdminSettingForm } from './setting/admin/AdminSettingForm.js';
|
|
142
136
|
export { DashboardSettingForm } from './setting/dashboard/DashboardSettingForm.js';
|
|
143
137
|
export { SnippetCard } from './setting/dashboard/snippets/card/SnippetCard.js';
|
|
144
138
|
export { SnippetTemplateCard } from './setting/dashboard/snippet-templates/card/SnippetTemplateCard.js';
|
|
@@ -25,6 +25,7 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
|
|
|
25
25
|
fieldSetId?: number;
|
|
26
26
|
saleDeadline?: number;
|
|
27
27
|
steps: Step[];
|
|
28
|
+
hasGeneralTicket?: boolean;
|
|
28
29
|
emailTemplates?: TemplateItem[];
|
|
29
30
|
smsTemplates?: TemplateItem[];
|
|
30
31
|
localImageBlobURL?: string;
|
|
@@ -50,6 +51,7 @@ export interface ProductSetControlProps {
|
|
|
50
51
|
providerHasBookingManagement?: boolean;
|
|
51
52
|
isOverrides?: boolean;
|
|
52
53
|
saleDeadline?: number;
|
|
54
|
+
hasGeneralTicket?: boolean;
|
|
53
55
|
isCreateNewOverrides?: boolean;
|
|
54
56
|
timeZone: string;
|
|
55
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":"AAIA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAErF,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAG5E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EAEL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAmB/B,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,aAAa,GAAG,WAAW,CAAA;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,mBAAmB,CAAA;IACpC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY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,EACnB,oBAA4B,EAC5B,QAAQ,GACT,EAAE,sBAAsB,2CA+TxB"}
|
|
@@ -184,8 +184,7 @@ function ProductSetControl(param) {
|
|
|
184
184
|
})
|
|
185
185
|
}),
|
|
186
186
|
/*#__PURE__*/ jsx(SaleDeadline, {
|
|
187
|
-
disabled: false
|
|
188
|
-
isProductSet: true
|
|
187
|
+
disabled: false
|
|
189
188
|
}),
|
|
190
189
|
/*#__PURE__*/ jsx("div", {
|
|
191
190
|
className: "divider"
|
|
@@ -277,6 +276,16 @@ function ProductSetControl(param) {
|
|
|
277
276
|
})
|
|
278
277
|
]
|
|
279
278
|
}),
|
|
279
|
+
/*#__PURE__*/ jsx(Form.Group, {
|
|
280
|
+
controlId: "hasGeneralTicket",
|
|
281
|
+
className: "checkbox-second-column mt-4",
|
|
282
|
+
children: /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({
|
|
283
|
+
"data-testid": "save-as-template-checkbox",
|
|
284
|
+
label: t('Design:hasGeneralTicket')
|
|
285
|
+
}, register('hasGeneralTicket')), {
|
|
286
|
+
custom: true
|
|
287
|
+
}))
|
|
288
|
+
}),
|
|
280
289
|
/*#__PURE__*/ jsxs(Form.Group, {
|
|
281
290
|
controlId: termsAndConditionsId,
|
|
282
291
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAC/F,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAI9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;
|
|
1
|
+
{"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAC/F,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAI9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAiCD,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,oBAAoB,2CAkPtB"}
|
|
@@ -22,13 +22,15 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
|
|
|
22
22
|
deposit: number;
|
|
23
23
|
minQuantity: number;
|
|
24
24
|
maxQuantity: number;
|
|
25
|
+
scanRangeStart?: number;
|
|
26
|
+
scanRangeEnd?: number;
|
|
25
27
|
totalQuantity: number;
|
|
26
28
|
isAvailable: boolean;
|
|
27
29
|
isSoldOut: boolean;
|
|
28
30
|
originalProductId: number | null;
|
|
29
31
|
isUnlimited: boolean;
|
|
30
32
|
isRequired: boolean;
|
|
31
|
-
quantitySelector
|
|
33
|
+
quantitySelector?: number;
|
|
32
34
|
hasSpecialNotes: boolean;
|
|
33
35
|
minSpend?: number | null;
|
|
34
36
|
type?: ProductType;
|
|
@@ -54,5 +56,5 @@ export interface ProductControlProps<T> extends IsDeletableEvent, FieldNamePrefi
|
|
|
54
56
|
categoryType?: CategoryType;
|
|
55
57
|
isOverrides?: boolean;
|
|
56
58
|
}
|
|
57
|
-
export declare function ProductControl<T extends FormValues>({ isLoading, fieldNamePrefix, allowDeposits, hasBookingManagement, zoneList, onCopy, onProductNameChange, productName,
|
|
59
|
+
export declare function ProductControl<T extends FormValues>({ isLoading, fieldNamePrefix, allowDeposits, hasBookingManagement, zoneList, onCopy, onProductNameChange, productName, categoryType, isOverrides, }: ProductControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
58
60
|
//# sourceMappingURL=ProductControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAgBd,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MA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x } from 'react/jsx-runtime';
|
|
2
|
-
import { QUANTITY_TYPE_LIST_DTO, QUANTITY_TYPE_CONSTANT, QUANTITY_TYPE_RECHARGING } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
3
2
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { useId } from '@react-aria/utils';
|
|
@@ -8,7 +7,7 @@ import { Form, Button } from 'react-bootstrap';
|
|
|
8
7
|
import Col from 'react-bootstrap/Col';
|
|
9
8
|
import Collapse from 'react-bootstrap/Collapse';
|
|
10
9
|
import Row from 'react-bootstrap/Row';
|
|
11
|
-
import { useFormContext,
|
|
10
|
+
import { useFormContext, Controller } from 'react-hook-form';
|
|
12
11
|
import { useTranslation } from 'react-i18next';
|
|
13
12
|
import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
|
|
14
13
|
import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
@@ -22,13 +21,14 @@ import { ProductSetLoadingContext } from '../form/context.js';
|
|
|
22
21
|
import { ProductBookingManagementControl } from './booking-management/ProductBookingManagementControl.js';
|
|
23
22
|
import { ProductDepositControl } from './deposit/ProductDepositControl.js';
|
|
24
23
|
import { ProductQuantityControl } from './quantity/ProductQuantityControl.js';
|
|
25
|
-
import
|
|
24
|
+
import 'react-bootstrap/InputGroup';
|
|
26
25
|
import { ProductQuantityRechargingControl } from './quantity/ProductQuantityRechargingControl.js';
|
|
27
26
|
import { TipTapEditor } from '../../tiptap-editor/TipTapEditor.js';
|
|
28
27
|
import { ProductPriceControl } from './price/ProductPriceControl.js';
|
|
29
28
|
import { MAX_PRODUCT_DESCRIPTION_CHARACTERS_LENGTH } from './constants.js';
|
|
30
29
|
import { AdvancedOptions } from './advanced-options/AdvancedOptions.js';
|
|
31
30
|
import { ProductZonesControl } from '../form/ProductZonesControl.js';
|
|
31
|
+
import { ProductScanRangeControl } from './scanRange/ProductScanRangeControl.js';
|
|
32
32
|
import { BooleanSwitch } from '../../static/switch/BooleanSwitch.js';
|
|
33
33
|
|
|
34
34
|
function _array_like_to_array(arr, len) {
|
|
@@ -130,7 +130,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
130
130
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
131
131
|
}
|
|
132
132
|
function ProductControl(param) {
|
|
133
|
-
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName,
|
|
133
|
+
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName, categoryType = param.categoryType, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides;
|
|
134
134
|
var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, getValues = _useFormContext.getValues, watch = _useFormContext.watch;
|
|
135
135
|
var _useContext = useContext(ProductSetLoadingContext), setLoading = _useContext.setLoading, modifiersSetList = _useContext.modifiersSetList;
|
|
136
136
|
var t = useTranslation([
|
|
@@ -147,28 +147,13 @@ function ProductControl(param) {
|
|
|
147
147
|
var descriptionId = useId();
|
|
148
148
|
var isAvailableId = useId();
|
|
149
149
|
var isSoldOutId = useId();
|
|
150
|
-
var quantitySelectorId = useId();
|
|
151
150
|
var unlimitedQuantityId = useId();
|
|
152
151
|
var isZoneCategory = checkIfZoneCategory(categoryType);
|
|
153
|
-
var quantitySelectorList = [
|
|
154
|
-
{
|
|
155
|
-
id: 1,
|
|
156
|
-
value: t('quantitySelector')
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: 2,
|
|
160
|
-
value: t('stockControl')
|
|
161
|
-
}
|
|
162
|
-
];
|
|
163
152
|
var handleExpand = useCallback(function() {
|
|
164
153
|
return setExpanded(function(prevExpanded) {
|
|
165
154
|
return !prevExpanded;
|
|
166
155
|
});
|
|
167
156
|
}, []);
|
|
168
|
-
var quantityValue = useWatch({
|
|
169
|
-
control: control,
|
|
170
|
-
name: "".concat(fieldNamePrefix, ".quantitySelector")
|
|
171
|
-
});
|
|
172
157
|
var _useImages = useImages(initialImages), images = _useImages.images, handleImageRemove = _useImages.handleImageRemove, handleImageUploading = _useImages.handleImageUploading, isImageUploading = _useImages.isLoading;
|
|
173
158
|
var onFilesChange = useCallback(function(files) {
|
|
174
159
|
handleImageUploading(files, IMAGE_TYPE_IMAGE);
|
|
@@ -206,8 +191,6 @@ function ProductControl(param) {
|
|
|
206
191
|
fieldNamePrefix,
|
|
207
192
|
setValue
|
|
208
193
|
]);
|
|
209
|
-
var quantitySelector = quantityValue !== null && quantityValue !== void 0 ? quantityValue : '1';
|
|
210
|
-
var quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector];
|
|
211
194
|
var modifierList = convertToTypeaheadOptions(modifiersSetList);
|
|
212
195
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
213
196
|
children: [
|
|
@@ -294,17 +277,17 @@ function ProductControl(param) {
|
|
|
294
277
|
isOverrides: isOverrides,
|
|
295
278
|
onFocus: onFocus
|
|
296
279
|
}),
|
|
297
|
-
|
|
280
|
+
/*#__PURE__*/ jsx(ProductQuantityRechargingControl, {
|
|
298
281
|
isLoading: isLoading,
|
|
299
282
|
fieldNamePrefix: fieldNamePrefix,
|
|
300
283
|
onFocus: onFocus,
|
|
301
284
|
disabled: isUnlimited
|
|
302
285
|
}),
|
|
303
|
-
|
|
286
|
+
/*#__PURE__*/ jsx(ProductScanRangeControl, {
|
|
304
287
|
isLoading: isLoading,
|
|
305
288
|
fieldNamePrefix: fieldNamePrefix,
|
|
306
|
-
|
|
307
|
-
|
|
289
|
+
isOverrides: isOverrides,
|
|
290
|
+
onFocus: onFocus
|
|
308
291
|
}),
|
|
309
292
|
/*#__PURE__*/ jsxs(Form.Group, {
|
|
310
293
|
controlId: unlimitedQuantityId,
|
|
@@ -323,31 +306,6 @@ function ProductControl(param) {
|
|
|
323
306
|
]
|
|
324
307
|
})
|
|
325
308
|
]
|
|
326
|
-
}),
|
|
327
|
-
/*#__PURE__*/ jsxs(Form.Group, {
|
|
328
|
-
controlId: quantitySelectorId,
|
|
329
|
-
children: [
|
|
330
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
331
|
-
children: t('quantitySelectorType')
|
|
332
|
-
}),
|
|
333
|
-
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
334
|
-
as: "select",
|
|
335
|
-
defaultValue: hasTicket ? quantitySelectorList[0].id : undefined
|
|
336
|
-
}, register("".concat(fieldNamePrefix, ".quantitySelector"))), {
|
|
337
|
-
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".quantitySelector"), errors),
|
|
338
|
-
disabled: isLoading || hasTicket || isOverrides,
|
|
339
|
-
children: quantitySelectorList.map(function(selector) {
|
|
340
|
-
return /*#__PURE__*/ jsx("option", {
|
|
341
|
-
value: selector.id,
|
|
342
|
-
children: selector.value
|
|
343
|
-
}, selector.id);
|
|
344
|
-
})
|
|
345
|
-
})),
|
|
346
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
347
|
-
type: "invalid",
|
|
348
|
-
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".quantitySelector"), errors)
|
|
349
|
-
})
|
|
350
|
-
]
|
|
351
309
|
})
|
|
352
310
|
]
|
|
353
311
|
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldNamePrefixPath, FormValues } from '@licklist/plugins/dist/types/services/Form/hook-form-service';
|
|
2
|
+
export interface ProductScanRangeControlValues extends FormValues {
|
|
3
|
+
scanRangeStart: number;
|
|
4
|
+
scanRangeEnd: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ProductScanRangeControlProps<T> extends FieldNamePrefixPath<T> {
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
onFocus?: (e: React.SyntheticEvent) => void;
|
|
9
|
+
isOverrides?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function ProductScanRangeControl<T extends FormValues>(props: ProductScanRangeControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ProductScanRangeControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductScanRangeControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/scanRange/ProductScanRangeControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC7E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,UAAU,EAC1D,KAAK,EAAE,4BAA4B,CAAC,CAAC,CAAC,2CAuIvC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
3
|
+
import { useId } from '@react-aria/utils';
|
|
4
|
+
import { Form } from 'react-bootstrap';
|
|
5
|
+
import Col from 'react-bootstrap/Col';
|
|
6
|
+
import InputGroup from 'react-bootstrap/InputGroup';
|
|
7
|
+
import Row from 'react-bootstrap/Row';
|
|
8
|
+
import { useFormContext, Controller } from 'react-hook-form';
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
10
|
+
import { ReactComponent as SvgIncrement } from '../../../assets/dashboard/increment.svg.js';
|
|
11
|
+
|
|
12
|
+
function ProductScanRangeControl(props) {
|
|
13
|
+
var _props_isLoading = props.isLoading, isLoading = _props_isLoading === void 0 ? false : _props_isLoading, fieldNamePrefix = props.fieldNamePrefix, onFocus = props.onFocus, isOverrides = props.isOverrides;
|
|
14
|
+
var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, watch = _useFormContext.watch;
|
|
15
|
+
var t = useTranslation('Design').t;
|
|
16
|
+
var scanRangeStartId = useId();
|
|
17
|
+
var scanRangeEndId = useId();
|
|
18
|
+
var scanRangeStartValue = watch("".concat(fieldNamePrefix, ".scanRangeStart"));
|
|
19
|
+
var scanRangeEndValue = watch("".concat(fieldNamePrefix, ".scanRangeEnd"));
|
|
20
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
21
|
+
children: [
|
|
22
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
23
|
+
children: t('scanningRange')
|
|
24
|
+
}),
|
|
25
|
+
/*#__PURE__*/ jsxs(Row, {
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx(Col, {
|
|
28
|
+
xs: 12,
|
|
29
|
+
sm: 6,
|
|
30
|
+
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
31
|
+
controlId: scanRangeStartId,
|
|
32
|
+
children: [
|
|
33
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
34
|
+
children: t('beforeEventStart')
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ jsxs(InputGroup, {
|
|
37
|
+
hasValidation: true,
|
|
38
|
+
children: [
|
|
39
|
+
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
40
|
+
className: "arrow-up-btn",
|
|
41
|
+
onClick: function() {
|
|
42
|
+
setValue("".concat(fieldNamePrefix, ".scanRangeStart"), Number(scanRangeStartValue) + 1);
|
|
43
|
+
},
|
|
44
|
+
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
45
|
+
className: "py-0 px-3",
|
|
46
|
+
children: /*#__PURE__*/ jsx(SvgIncrement, {})
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ jsx(Controller, {
|
|
50
|
+
render: function(param) {
|
|
51
|
+
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, ref = _param_field.ref;
|
|
52
|
+
return /*#__PURE__*/ jsx(Form.Control, {
|
|
53
|
+
ref: ref,
|
|
54
|
+
type: "number",
|
|
55
|
+
min: 0,
|
|
56
|
+
step: 1,
|
|
57
|
+
onWheel: function(event) {
|
|
58
|
+
return event.currentTarget.blur();
|
|
59
|
+
},
|
|
60
|
+
value: value,
|
|
61
|
+
onChange: onChange,
|
|
62
|
+
onFocus: onFocus,
|
|
63
|
+
disabled: isLoading || isOverrides
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
control: control,
|
|
67
|
+
name: "".concat(fieldNamePrefix, ".scanRangeStart"),
|
|
68
|
+
rules: {
|
|
69
|
+
min: {
|
|
70
|
+
value: 0,
|
|
71
|
+
message: t('Validation:fieldMinNumber', {
|
|
72
|
+
attribute: t('scanRangeStart'),
|
|
73
|
+
min: 0
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
79
|
+
type: "invalid",
|
|
80
|
+
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".scanRangeStart"), errors)
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/*#__PURE__*/ jsx(Col, {
|
|
88
|
+
xs: 12,
|
|
89
|
+
sm: 6,
|
|
90
|
+
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
91
|
+
controlId: scanRangeEndId,
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
94
|
+
children: t('AfterEventStart')
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ jsxs(InputGroup, {
|
|
97
|
+
hasValidation: true,
|
|
98
|
+
children: [
|
|
99
|
+
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
100
|
+
className: "arrow-up-btn",
|
|
101
|
+
onClick: function() {
|
|
102
|
+
setValue("".concat(fieldNamePrefix, ".scanRangeEnd"), Number(scanRangeEndValue) + 1);
|
|
103
|
+
},
|
|
104
|
+
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
105
|
+
className: "py-0 px-3",
|
|
106
|
+
children: /*#__PURE__*/ jsx(SvgIncrement, {})
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ jsx(Controller, {
|
|
110
|
+
render: function(param) {
|
|
111
|
+
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, ref = _param_field.ref;
|
|
112
|
+
return /*#__PURE__*/ jsx(Form.Control, {
|
|
113
|
+
ref: ref,
|
|
114
|
+
type: "number",
|
|
115
|
+
min: 0,
|
|
116
|
+
step: 1,
|
|
117
|
+
onWheel: function(event) {
|
|
118
|
+
return event.currentTarget.blur();
|
|
119
|
+
},
|
|
120
|
+
value: value && value,
|
|
121
|
+
onFocus: onFocus,
|
|
122
|
+
onChange: onChange,
|
|
123
|
+
disabled: isLoading || isOverrides
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
control: control,
|
|
127
|
+
name: "".concat(fieldNamePrefix, ".scanRangeEnd"),
|
|
128
|
+
rules: {
|
|
129
|
+
min: {
|
|
130
|
+
value: 0,
|
|
131
|
+
message: t('Validation:fieldMinNumber', {
|
|
132
|
+
attribute: t('scanRangeEnd'),
|
|
133
|
+
min: 0
|
|
134
|
+
})
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
139
|
+
type: "invalid",
|
|
140
|
+
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".scanRangeEnd"), errors)
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
})
|
|
144
|
+
]
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export { ProductScanRangeControl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/scanRange/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|