@licklist/design 0.71.18-dev.18 → 0.71.18-dev.2
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/events/edit-event-modal/IntervalInput.d.ts +1 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +4 -11
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -3
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +3 -14
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -5
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -5
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -3
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +7 -10
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -5
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -12
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -29
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -95
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
- package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
- package/dist/index.js +2 -2
- package/dist/product-set/form/ProductSetForm.d.ts +1 -3
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +4 -6
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +5 -24
- package/dist/product-set/form/context.d.ts +1 -3
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/form/context.js +1 -2
- package/dist/product-set/product/ProductControl.d.ts +0 -8
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -25
- package/dist/product-set/utils/index.d.ts +0 -88
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -19
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
- package/dist/sales/coupon/utils/index.d.ts +1 -2
- package/dist/sales/coupon/utils/index.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.d.ts +2 -6
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +4 -8
- package/dist/sales/modals/refund-modal/index.d.ts +2 -2
- package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
- package/dist/styles/date-time-button/DateTimeButton.scss +1 -8
- package/dist/styles/events/EditEventModal.scss +0 -2
- package/dist/styles/iframe-page/Page.scss +0 -16
- package/dist/styles/iframe-page/PageBody.scss +0 -4
- package/dist/styles/modals/Modals.scss +0 -16
- package/dist/styles/product-set/EditProductSetElement.scss +0 -1
- package/dist/styles/product-set/ProductSetForm.scss +0 -11
- package/dist/styles/sales/ManualBooking.scss +0 -6
- package/dist/styles/themes/bookedit/index.scss +0 -19
- package/package.json +6 -6
- package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -16
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -9
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/iframe/event/ticket-description/TicketDescription.tsx +4 -11
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -24
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +1 -42
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
- package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
- package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
- package/src/product-set/form/ProductSetForm.tsx +3 -11
- package/src/product-set/form/ProductsControl.tsx +15 -33
- package/src/product-set/form/context.tsx +0 -5
- package/src/product-set/product/ProductControl.tsx +1 -37
- package/src/product-set/utils/index.ts +0 -19
- package/src/recurrence-input/RecurrenceInput.tsx +5 -3
- package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +2 -2
- package/src/sales/coupon/utils/index.ts +3 -5
- package/src/sales/modals/refund-modal/RefundModal.tsx +6 -15
- package/src/sales/modals/refund-modal/index.ts +2 -7
- package/src/styles/date-time-button/DateTimeButton.scss +1 -8
- package/src/styles/events/EditEventModal.scss +0 -2
- package/src/styles/iframe-page/Page.scss +0 -16
- package/src/styles/iframe-page/PageBody.scss +0 -4
- package/src/styles/modals/Modals.scss +0 -16
- package/src/styles/product-set/EditProductSetElement.scss +0 -1
- package/src/styles/product-set/ProductSetForm.scss +0 -11
- package/src/styles/sales/ManualBooking.scss +0 -6
- package/src/styles/themes/bookedit/index.scss +0 -19
- package/yarn.lock +376 -377
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -295
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -90
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
- package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
- package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
- package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
- package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
- package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -76
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/index.ts +0 -1
- package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
- package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
- package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
|
@@ -112,8 +112,6 @@ var getDefaultProductValue = function(sort) {
|
|
|
112
112
|
maxQuantity: null,
|
|
113
113
|
totalQuantity: 0,
|
|
114
114
|
isAvailable: true,
|
|
115
|
-
modifiersSet: [],
|
|
116
|
-
modifiersSetsId: [],
|
|
117
115
|
isSoldOut: false,
|
|
118
116
|
isRequired: false,
|
|
119
117
|
isUnlimited: false,
|
|
@@ -168,12 +166,6 @@ function ProductsControl(param) {
|
|
|
168
166
|
return "".concat(productControlFieldName, ".").concat(index, ".isUnlimited");
|
|
169
167
|
}))
|
|
170
168
|
});
|
|
171
|
-
var modifierSets = useWatch({
|
|
172
|
-
control: control,
|
|
173
|
-
name: _to_consumable_array(fields.map(function(_, index) {
|
|
174
|
-
return "".concat(productControlFieldName, ".").concat(index, ".modifiersSet");
|
|
175
|
-
}))
|
|
176
|
-
});
|
|
177
169
|
var categoryProductErrors = errors === null || errors === void 0 ? void 0 : (_errors_steps = errors.steps) === null || _errors_steps === void 0 ? void 0 : (_errors_steps_stepIndex = _errors_steps[stepIndex]) === null || _errors_steps_stepIndex === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories = _errors_steps_stepIndex.productCategories) === null || _errors_steps_stepIndex_productCategories === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories_productCategoryIndex = _errors_steps_stepIndex_productCategories[productCategoryIndex]) === null || _errors_steps_stepIndex_productCategories_productCategoryIndex === void 0 ? void 0 : _errors_steps_stepIndex_productCategories_productCategoryIndex.products;
|
|
178
170
|
var isFirstProductAdded = fields.length === 1;
|
|
179
171
|
var mouseSensor = useSensor(MouseSensor, {
|
|
@@ -217,10 +209,8 @@ function ProductsControl(param) {
|
|
|
217
209
|
mouseSensor
|
|
218
210
|
],
|
|
219
211
|
children: fields.map(function(product, index) {
|
|
220
|
-
var _modifierSets_index;
|
|
221
212
|
var isOverridesProductSet = isEventEditProductSet ? !!product.id : isOverrides && !!product.originalProductId;
|
|
222
213
|
var isNewProductOverrides = isCreateNewOverrides && !!product.id;
|
|
223
|
-
var modifiersSets = ((_modifierSets_index = modifierSets[index]) === null || _modifierSets_index === void 0 ? void 0 : _modifierSets_index.length) || 0;
|
|
224
214
|
return /*#__PURE__*/ jsx(Controller, {
|
|
225
215
|
control: control,
|
|
226
216
|
name: "".concat(productControlFieldName, ".").concat(index, ".name"),
|
|
@@ -250,22 +240,13 @@ function ProductsControl(param) {
|
|
|
250
240
|
},
|
|
251
241
|
secondaryBadge: getBadgeConfig(categoryType, t(categoryType)),
|
|
252
242
|
subTitle: /*#__PURE__*/ jsxs("div", {
|
|
253
|
-
className: "
|
|
243
|
+
className: "product-set-badges-container",
|
|
254
244
|
children: [
|
|
255
|
-
/*#__PURE__*/
|
|
256
|
-
className: "product-set-
|
|
257
|
-
children: [
|
|
258
|
-
/*#__PURE__*/ jsx("div", {
|
|
259
|
-
className: "product-set-subtitle-dot product-set-subtitle-product-dot"
|
|
260
|
-
}),
|
|
261
|
-
/*#__PURE__*/ jsx("span", {
|
|
262
|
-
children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
|
|
263
|
-
})
|
|
264
|
-
]
|
|
245
|
+
/*#__PURE__*/ jsx("div", {
|
|
246
|
+
className: "product-set-subtitle-dot product-set-subtitle-product-dot"
|
|
265
247
|
}),
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
children: "".concat(modifiersSets, " ").concat(t('modifiersSets'))
|
|
248
|
+
/*#__PURE__*/ jsx("span", {
|
|
249
|
+
children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
|
|
269
250
|
})
|
|
270
251
|
]
|
|
271
252
|
}),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, SetStateAction, Dispatch } from 'react';
|
|
2
2
|
import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper';
|
|
3
|
-
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
|
|
4
3
|
import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper';
|
|
5
4
|
import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper';
|
|
6
5
|
import { SelectItem } from '../../types/generic/SelectItem';
|
|
@@ -8,7 +7,6 @@ interface LoadingContext {
|
|
|
8
7
|
isLoading: boolean;
|
|
9
8
|
setLoading: (loading: boolean) => void;
|
|
10
9
|
productGroupList?: SelectItem[];
|
|
11
|
-
modifiersSetList?: ModifierSet[] | null;
|
|
12
10
|
providerHasMap?: boolean | null;
|
|
13
11
|
venueMapSets?: VenueMapSet[];
|
|
14
12
|
providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement'];
|
|
@@ -18,6 +16,6 @@ interface LoadingContext {
|
|
|
18
16
|
}
|
|
19
17
|
export declare const ProductSetLoadingContext: import("react").Context<LoadingContext>;
|
|
20
18
|
type ProductSetContextProviderProps = PropsWithChildren<Omit<LoadingContext, 'isLoading' | 'setLoading' | 'expandedProductCategories' | 'setExpandedProductCategories'>>;
|
|
21
|
-
export declare function ProductSetContextProvider({ children, productGroupList,
|
|
19
|
+
export declare function ProductSetContextProvider({ children, productGroupList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
20
|
export {};
|
|
23
21
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAE3D,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClD,4BAA4B,EAAE,QAAQ,CACpC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACxC,CAAA;CACF;AAED,eAAO,MAAM,wBAAwB,yCAEpC,CAAA;AAED,KAAK,8BAA8B,GAAG,iBAAiB,CACrD,IAAI,CACF,cAAc,EACZ,WAAW,GACX,YAAY,GACZ,2BAA2B,GAC3B,8BAA8B,CACjC,CACF,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,gBAAqB,EACrB,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,GACN,EAAE,8BAA8B,2CA0BhC"}
|
|
@@ -49,7 +49,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
49
49
|
}
|
|
50
50
|
var ProductSetLoadingContext = /*#__PURE__*/ createContext(null);
|
|
51
51
|
function ProductSetContextProvider(param) {
|
|
52
|
-
var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList,
|
|
52
|
+
var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList, _param_providerHasMap = param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = param.providerHasBookingManagement, zones = param.zones;
|
|
53
53
|
var _useState = _sliced_to_array(useState(undefined), 2), zonesState = _useState[0], setZonesState = _useState[1];
|
|
54
54
|
var _useState1 = _sliced_to_array(useState(false), 2), loading = _useState1[0], setLoading = _useState1[1];
|
|
55
55
|
var _useState2 = _sliced_to_array(useState({}), 2), expandedProductCategories = _useState2[0], setExpandedProductCategories = _useState2[1];
|
|
@@ -63,7 +63,6 @@ function ProductSetContextProvider(param) {
|
|
|
63
63
|
isLoading: loading,
|
|
64
64
|
setLoading: setLoading,
|
|
65
65
|
productGroupList: productGroupList,
|
|
66
|
-
modifiersSetList: modifiersSetList,
|
|
67
66
|
providerHasMap: providerHasMap,
|
|
68
67
|
venueMapSets: venueMapSets,
|
|
69
68
|
providerHasBookingManagement: providerHasBookingManagement,
|
|
@@ -7,12 +7,6 @@ import { ProductBookingManagementControlProps } from './booking-management/Produ
|
|
|
7
7
|
import { ProductDepositControlValues } from './deposit/ProductDepositControl';
|
|
8
8
|
import { IsDeletableEvent } from '../types';
|
|
9
9
|
import { ProductZoneControlValues } from '../product-zone';
|
|
10
|
-
export interface ModifiersSet {
|
|
11
|
-
id: number;
|
|
12
|
-
value?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
}
|
|
16
10
|
export interface ProductControlValues extends FormValues, ProductDepositControlValues {
|
|
17
11
|
name: string;
|
|
18
12
|
productGroupId: number;
|
|
@@ -32,8 +26,6 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
|
|
|
32
26
|
hasSpecialNotes: boolean;
|
|
33
27
|
minSpend?: number | null;
|
|
34
28
|
type?: ProductType;
|
|
35
|
-
modifiersSetsId?: Array<ModifiersSet>;
|
|
36
|
-
modifiersSet?: Array<ModifiersSet>;
|
|
37
29
|
weight?: number;
|
|
38
30
|
tierId?: number;
|
|
39
31
|
images: Image[] | null;
|
|
@@ -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;AAed,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,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,CACpC,SAAQ,gBAAgB,EACtB,mBAAmB,CAAC,CAAC,CAAC,EACtB,oCAAoC,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,OAAO,CAAA;IACtB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,mBAAmB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC/D,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,EACnD,SAAiB,EACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAwWxB"}
|
|
@@ -13,8 +13,6 @@ import { useTranslation } from 'react-i18next';
|
|
|
13
13
|
import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
|
|
14
14
|
import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
15
15
|
import { FaClipboard } from 'react-icons/fa';
|
|
16
|
-
import { Typeahead } from '../../typeahead/Typeahead.js';
|
|
17
|
-
import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
|
|
18
16
|
import { checkIfZoneCategory } from '@licklist/plugins';
|
|
19
17
|
import { FileUpload } from '../../file-upload/FileUpload.js';
|
|
20
18
|
import '../../static/index.js';
|
|
@@ -132,7 +130,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
132
130
|
function ProductControl(param) {
|
|
133
131
|
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, hasTicket = param.hasTicket, categoryType = param.categoryType, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides;
|
|
134
132
|
var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, getValues = _useFormContext.getValues, watch = _useFormContext.watch;
|
|
135
|
-
var
|
|
133
|
+
var setLoading = useContext(ProductSetLoadingContext).setLoading;
|
|
136
134
|
var t = useTranslation([
|
|
137
135
|
'Design',
|
|
138
136
|
'Validation',
|
|
@@ -208,7 +206,6 @@ function ProductControl(param) {
|
|
|
208
206
|
]);
|
|
209
207
|
var quantitySelector = quantityValue !== null && quantityValue !== void 0 ? quantityValue : '1';
|
|
210
208
|
var quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector];
|
|
211
|
-
var modifierList = convertToTypeaheadOptions(modifiersSetList);
|
|
212
209
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
213
210
|
children: [
|
|
214
211
|
/*#__PURE__*/ jsx(Row, {
|
|
@@ -352,27 +349,6 @@ function ProductControl(param) {
|
|
|
352
349
|
]
|
|
353
350
|
})
|
|
354
351
|
}),
|
|
355
|
-
/*#__PURE__*/ jsx(Row, {
|
|
356
|
-
children: /*#__PURE__*/ jsx(Col, {
|
|
357
|
-
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
358
|
-
className: "mb-3",
|
|
359
|
-
children: [
|
|
360
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
361
|
-
children: t('Design:addModifierSet')
|
|
362
|
-
}),
|
|
363
|
-
/*#__PURE__*/ jsx(Typeahead, _object_spread_props(_object_spread({
|
|
364
|
-
name: "modifierList",
|
|
365
|
-
options: modifierList
|
|
366
|
-
}, register("".concat(fieldNamePrefix, ".modifiersSet"))), {
|
|
367
|
-
isMultipleChoise: true,
|
|
368
|
-
isCouponForm: true,
|
|
369
|
-
placeholder: t('Design:choose'),
|
|
370
|
-
noOptionsMessage: t('Design:noSelectedModifier')
|
|
371
|
-
}))
|
|
372
|
-
]
|
|
373
|
-
})
|
|
374
|
-
})
|
|
375
|
-
}),
|
|
376
352
|
/*#__PURE__*/ jsxs(Row, {
|
|
377
353
|
className: "my-4 mx-0 d-flex flex-column",
|
|
378
354
|
children: [
|
|
@@ -20,94 +20,6 @@ export declare const sortArrayByIndex: <T>(array: T[]) => (T & {
|
|
|
20
20
|
sort: number;
|
|
21
21
|
})[];
|
|
22
22
|
export declare const getFilteredTemplates: (templates?: EmailTemplate[] | SmsTemplate[], formTemplates?: TemplateItem[]) => TemplateItem[] | undefined;
|
|
23
|
-
export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormValues) => {
|
|
24
|
-
steps: {
|
|
25
|
-
productCategories: {
|
|
26
|
-
products: {
|
|
27
|
-
modifiersSet: {
|
|
28
|
-
id: number;
|
|
29
|
-
value: string;
|
|
30
|
-
label: string;
|
|
31
|
-
}[];
|
|
32
|
-
id: number;
|
|
33
|
-
name: string;
|
|
34
|
-
productGroupId: number;
|
|
35
|
-
description: string;
|
|
36
|
-
termsAndConditions: string;
|
|
37
|
-
price: number;
|
|
38
|
-
deposit: number;
|
|
39
|
-
minQuantity: number;
|
|
40
|
-
maxQuantity: number;
|
|
41
|
-
totalQuantity: number;
|
|
42
|
-
isAvailable: boolean;
|
|
43
|
-
isSoldOut: boolean;
|
|
44
|
-
originalProductId: number | null;
|
|
45
|
-
isUnlimited: boolean;
|
|
46
|
-
isRequired: boolean;
|
|
47
|
-
quantitySelector: number;
|
|
48
|
-
hasSpecialNotes: boolean;
|
|
49
|
-
minSpend?: number | null;
|
|
50
|
-
type?: import("@licklist/core/dist/DataMapper/Product/ProductDataMapper").ProductType;
|
|
51
|
-
modifiersSetsId?: Array<import("..").ModifiersSet>;
|
|
52
|
-
weight?: number;
|
|
53
|
-
tierId?: number;
|
|
54
|
-
images: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image[] | null;
|
|
55
|
-
uuid: string;
|
|
56
|
-
sort: number | null;
|
|
57
|
-
color?: string;
|
|
58
|
-
productZones?: import("../product-zone").ProductZoneControlValues[];
|
|
59
|
-
subProducts?: import("../types").SubProduct[];
|
|
60
|
-
_id?: number;
|
|
61
|
-
}[];
|
|
62
|
-
id: number;
|
|
63
|
-
uniqueId?: string;
|
|
64
|
-
name: string;
|
|
65
|
-
minSubItems: number | null;
|
|
66
|
-
maxSubItems: number | null;
|
|
67
|
-
overallQuantity?: number | null;
|
|
68
|
-
quantityType: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").QuantityType;
|
|
69
|
-
type: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").CategoryType;
|
|
70
|
-
isTimeRelated: boolean;
|
|
71
|
-
collectUserInfo: boolean;
|
|
72
|
-
hasTicket: boolean;
|
|
73
|
-
allowDeposits: boolean;
|
|
74
|
-
remainderExpireAfter?: number;
|
|
75
|
-
hasBookingManagement: boolean;
|
|
76
|
-
hasSubEvents?: boolean;
|
|
77
|
-
weight?: number;
|
|
78
|
-
isReusable?: boolean;
|
|
79
|
-
saleDeadlineCategory?: number;
|
|
80
|
-
termsAndConditions?: string;
|
|
81
|
-
sort: number | null;
|
|
82
|
-
_id?: number;
|
|
83
|
-
}[];
|
|
84
|
-
id: number;
|
|
85
|
-
name: string;
|
|
86
|
-
weight?: number;
|
|
87
|
-
termsAndConditions?: string;
|
|
88
|
-
hasMap: boolean;
|
|
89
|
-
venueMapSetId: null | number;
|
|
90
|
-
pointProducts?: Partial<import("@licklist/core/dist/DataMapper/Product/PointProductDataMapper").PointProduct>[];
|
|
91
|
-
_id?: number;
|
|
92
|
-
}[];
|
|
93
|
-
isOverrides?: boolean;
|
|
94
|
-
id?: number;
|
|
95
|
-
name: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
image?: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image;
|
|
98
|
-
type: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").ProductSetType;
|
|
99
|
-
termsAndConditions: string;
|
|
100
|
-
thankYouPageUrl: string;
|
|
101
|
-
operationalCost: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").OperationalCostType;
|
|
102
|
-
productGroups?: import("../../types/generic/SelectItem").SelectItem[];
|
|
103
|
-
relyOnPeopleType?: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").RelyOnPeopleType | null;
|
|
104
|
-
fieldSetId?: number;
|
|
105
|
-
saleDeadline?: number;
|
|
106
|
-
emailTemplates?: TemplateItem[];
|
|
107
|
-
smsTemplates?: TemplateItem[];
|
|
108
|
-
localImageBlobURL?: string;
|
|
109
|
-
menuRecurrences?: Partial<import("@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper").ProductSetRecurrence>[];
|
|
110
|
-
};
|
|
111
23
|
export declare const checkAvailableTimesErrors: ({ values, setError, t, }: CheckAvailableTimesErrors) => boolean;
|
|
112
24
|
export declare const getTypeHeadItemsFromMenus: (menus?: (ProductSet | ProductSetFormValues)[]) => MenuTypeheadItem[];
|
|
113
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAC1B,CAAC,EAAE,aACC,MAAM,aACN,MAAM,QAQlB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,EAAE;;IACmB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,eACnB,aAAa,EAAE,GAAG,WAAW,EAAE,kBAC3B,YAAY,EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
|
|
2
1
|
import { checkIfZoneCategory } from '@licklist/plugins';
|
|
3
2
|
|
|
4
3
|
function _array_like_to_array(arr, len) {
|
|
@@ -110,23 +109,6 @@ var getFilteredTemplates = function(templates, formTemplates) {
|
|
|
110
109
|
};
|
|
111
110
|
});
|
|
112
111
|
};
|
|
113
|
-
var updateModifiersSetAtProductSetForm = function(data) {
|
|
114
|
-
return _object_spread_props(_object_spread({}, data), {
|
|
115
|
-
steps: data.steps.map(function(step) {
|
|
116
|
-
return _object_spread_props(_object_spread({}, step), {
|
|
117
|
-
productCategories: step.productCategories.map(function(category) {
|
|
118
|
-
return _object_spread_props(_object_spread({}, category), {
|
|
119
|
-
products: category.products.map(function(product) {
|
|
120
|
-
return _object_spread_props(_object_spread({}, product), {
|
|
121
|
-
modifiersSet: (product === null || product === void 0 ? void 0 : product.modifiersSet) ? convertToTypeaheadOptions(product.modifiersSet) : []
|
|
122
|
-
});
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
})
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
112
|
var checkAvailableTimesErrors = function(param) {
|
|
131
113
|
var values = param.values, setError = param.setError, t = param.t;
|
|
132
114
|
var _values_steps, _values_menuRecurrences;
|
|
@@ -164,4 +146,4 @@ var getTypeHeadItemsFromMenus = function(menus) {
|
|
|
164
146
|
});
|
|
165
147
|
};
|
|
166
148
|
|
|
167
|
-
export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex
|
|
149
|
+
export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CAqEtB"}
|
|
@@ -17,6 +17,6 @@ export type ReportRunnerModalProps = {
|
|
|
17
17
|
reports?: Report[] | null;
|
|
18
18
|
providerId?: number;
|
|
19
19
|
};
|
|
20
|
-
export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId
|
|
20
|
+
export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId }: ReportRunnerModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=ReportRunnerModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAA;AAM9C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAG7F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AASD,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAA;AAM9C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAG7F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AASD,eAAO,MAAM,iBAAiB,qGAU3B,sBAAsB,4CA8KxB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
|
|
2
1
|
import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper';
|
|
3
|
-
export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]
|
|
2
|
+
export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]) => {
|
|
4
3
|
id: number;
|
|
5
4
|
value: string;
|
|
6
5
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAE5F,eAAO,MAAM,yBAAyB,mBAAoB,YAAY,EAAE;;;;GAUvE,CAAA"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { OrderPaymentType } from '@licklist/core/dist/DataMapper/Order/OrderPaymentDataMapper';
|
|
2
|
-
export declare const FULL_REFUND_TYPE = "fullRefund";
|
|
3
|
-
export declare const PARTIAL_REFUND_TYPE = "partialRefund";
|
|
4
|
-
export declare const NET_REFUND_TYPE = "netRefund";
|
|
5
|
-
export type RefundType = typeof FULL_REFUND_TYPE | typeof PARTIAL_REFUND_TYPE | typeof NET_REFUND_TYPE;
|
|
6
2
|
export interface RefundModalProps {
|
|
7
3
|
isVisible: boolean;
|
|
8
|
-
|
|
4
|
+
isFullRefund?: boolean;
|
|
9
5
|
onHide: () => void;
|
|
10
6
|
onSubmit: (amount?: number) => void;
|
|
11
7
|
isLoading?: boolean;
|
|
@@ -13,5 +9,5 @@ export interface RefundModalProps {
|
|
|
13
9
|
defaultValue?: number;
|
|
14
10
|
maxValue?: number;
|
|
15
11
|
}
|
|
16
|
-
export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading,
|
|
12
|
+
export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, isFullRefund, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
13
|
//# sourceMappingURL=RefundModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,
|
|
1
|
+
{"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD,eAAO,MAAM,WAAW,mGASrB,gBAAgB,4CAoGlB,CAAA"}
|
|
@@ -61,17 +61,13 @@ function _object_spread_props(target, source) {
|
|
|
61
61
|
}
|
|
62
62
|
return target;
|
|
63
63
|
}
|
|
64
|
-
var FULL_REFUND_TYPE = 'fullRefund';
|
|
65
|
-
var PARTIAL_REFUND_TYPE = 'partialRefund';
|
|
66
|
-
var NET_REFUND_TYPE = 'netRefund';
|
|
67
64
|
var RefundModal = function(param) {
|
|
68
|
-
var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading,
|
|
65
|
+
var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFullRefund = param.isFullRefund, isFullRefund = _param_isFullRefund === void 0 ? false : _param_isFullRefund, paymentType = param.paymentType, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? 0 : _param_defaultValue, maxValue = param.maxValue;
|
|
69
66
|
var _errors_amount;
|
|
70
67
|
var t = useTranslation([
|
|
71
68
|
'Design',
|
|
72
69
|
'Validation'
|
|
73
70
|
]).t;
|
|
74
|
-
var isInputDisabled = isLoading || refundType === 'fullRefund' || refundType === 'netRefund';
|
|
75
71
|
var _useForm = useForm(), handleSubmit = _useForm.handleSubmit, register = _useForm.register, errors = _useForm.formState.errors, reset = _useForm.reset;
|
|
76
72
|
var onModalSubmit = function(param) {
|
|
77
73
|
var amount = param.amount;
|
|
@@ -101,7 +97,7 @@ var RefundModal = function(param) {
|
|
|
101
97
|
children: [
|
|
102
98
|
/*#__PURE__*/ jsx(ModalTitle, {
|
|
103
99
|
as: "h5",
|
|
104
|
-
children: t(
|
|
100
|
+
children: t(isFullRefund ? 'Design:fullRefund' : 'Design:partialRefund')
|
|
105
101
|
}),
|
|
106
102
|
/*#__PURE__*/ jsx(Button, {
|
|
107
103
|
variant: "danger",
|
|
@@ -154,7 +150,7 @@ var RefundModal = function(param) {
|
|
|
154
150
|
}
|
|
155
151
|
})), {
|
|
156
152
|
step: 0.01,
|
|
157
|
-
disabled:
|
|
153
|
+
disabled: isLoading || isFullRefund,
|
|
158
154
|
isInvalid: !!errors.amount,
|
|
159
155
|
min: 0
|
|
160
156
|
})),
|
|
@@ -190,4 +186,4 @@ var RefundModal = function(param) {
|
|
|
190
186
|
});
|
|
191
187
|
};
|
|
192
188
|
|
|
193
|
-
export {
|
|
189
|
+
export { RefundModal };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { RefundModal
|
|
2
|
-
export type { RefundModalProps
|
|
1
|
+
export { RefundModal } from './RefundModal';
|
|
2
|
+
export type { RefundModalProps } from './RefundModal';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
&.disabled {
|
|
35
35
|
border: 2px solid $snippet-calendar-disabled-button-border-color;
|
|
36
|
-
background-color:
|
|
36
|
+
background-color:transparent;
|
|
37
37
|
border: none;
|
|
38
38
|
color: $snippet-calendar-disabled-button-font-color;
|
|
39
39
|
cursor: not-allowed;
|
|
@@ -105,10 +105,3 @@
|
|
|
105
105
|
font-weight: 300;
|
|
106
106
|
color: $snippet-calendar-button-font-color;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
.modifier-price {
|
|
110
|
-
font-size: 1rem;
|
|
111
|
-
line-height: 1.03rem;
|
|
112
|
-
font-weight: 500;
|
|
113
|
-
color: $snippet-calendar-button-font-color;
|
|
114
|
-
}
|
|
@@ -24,22 +24,6 @@
|
|
|
24
24
|
min-width: auto;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.manual-booking-form-modal {
|
|
28
|
-
width: 40vw !important;
|
|
29
|
-
left: 60vh;
|
|
30
|
-
|
|
31
|
-
.modal-content {
|
|
32
|
-
height: 96vh;
|
|
33
|
-
margin-left: auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@include media-breakpoint-down(sm) {
|
|
37
|
-
width: 100vw !important;
|
|
38
|
-
left: 0;
|
|
39
|
-
top: 10% !important;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
27
|
.header-block {
|
|
44
28
|
margin-bottom: 1rem;
|
|
45
29
|
}
|
|
@@ -6,22 +6,6 @@
|
|
|
6
6
|
z-index: 1080;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.manual-booking-form-modal {
|
|
10
|
-
width: 40vw !important;
|
|
11
|
-
left: 66vw;
|
|
12
|
-
|
|
13
|
-
.modal-content {
|
|
14
|
-
min-height: 95vh;
|
|
15
|
-
margin-left: auto;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@include media-breakpoint-down(sm) {
|
|
19
|
-
width: 100vw !important;
|
|
20
|
-
left: 0;
|
|
21
|
-
top: 10% !important;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
9
|
.confirm-modal {
|
|
26
10
|
z-index: 1081;
|
|
27
11
|
}
|
|
@@ -58,11 +58,6 @@
|
|
|
58
58
|
font-weight: 600;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.modifier-badge {
|
|
62
|
-
font-size: 0.5rem;
|
|
63
|
-
font-weight: 400;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
61
|
.step-badge {
|
|
67
62
|
background-color: #ffdbdb;
|
|
68
63
|
color: #d52902;
|
|
@@ -86,12 +81,6 @@
|
|
|
86
81
|
background-color: #e9f5ea;
|
|
87
82
|
color: #269b36;
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
.modifier-badge {
|
|
91
|
-
background-color: #e9f5ea;
|
|
92
|
-
color: #269b36;
|
|
93
|
-
height: 1rem;
|
|
94
|
-
}
|
|
95
84
|
}
|
|
96
85
|
|
|
97
86
|
.product-set-mobile-footer {
|
|
@@ -51,25 +51,6 @@
|
|
|
51
51
|
border-bottom: 1px solid #f0f0f0;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.modifier-header {
|
|
55
|
-
background-color: color('white');
|
|
56
|
-
padding: 0 2.5rem;
|
|
57
|
-
z-index: 2;
|
|
58
|
-
margin-top: 1rem;
|
|
59
|
-
min-height: 2rem;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.modifier-container {
|
|
63
|
-
background-color: color('white');
|
|
64
|
-
padding-bottom: 1rem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.modifier-set-container {
|
|
68
|
-
background-color: color('white');
|
|
69
|
-
border-bottom: 2px solid #f0f0f0;
|
|
70
|
-
padding-bottom: 1rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
54
|
.header-user-image {
|
|
74
55
|
width: 3rem;
|
|
75
56
|
height: 3rem;
|