@pisell/private-materials 6.12.175 → 6.12.177
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.js +21 -21
- package/es/components/appointmentBooking/deposit/index.d.ts +2 -1
- package/es/components/appointmentBooking/index.d.ts +2 -1
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/TimeBar/index.js +0 -1
- package/es/components/bigSale/dialog.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +1 -1
- package/es/components/bigSale/templates/Kiosk/index.js +104 -48
- package/es/components/booking/deposit/index.d.ts +3 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +3 -1
- package/es/components/booking/info/index.d.ts +2 -1
- package/es/components/booking/materiels/contacts/index.d.ts +2 -1
- package/es/components/booking/materiels/duration/index.d.ts +2 -1
- package/es/components/booking/materiels/startTime/index.d.ts +2 -1
- package/es/components/ecocup/cupList/index.d.ts +2 -1
- package/es/components/ecocup/customerList/index.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +2 -1
- package/es/components/eftposPay/index.d.ts +2 -1
- package/es/components/eventBooking/index.d.ts +2 -1
- package/es/components/kioskSale/index.d.ts +2 -2
- package/es/components/kioskSale/index.js +1 -1
- package/es/components/kioskSkuDetail/index.d.ts +1 -1
- package/es/components/login/index.d.ts +2 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +2 -1
- package/es/components/productExtension/index.d.ts +2 -1
- package/es/components/ruleSetting/index.d.ts +2 -1
- package/es/components/scanOrder/index.d.ts +2 -2
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/components/sharedSecondaryBigSale/index.d.ts +2 -2
- package/es/components/shoppingCart/index.d.ts +2 -1
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +2 -1
- package/es/components/ticketBooking/index.d.ts +1 -1
- package/es/components/venueBooking/index.d.ts +2 -2
- package/es/components/walletList/index.d.ts +2 -1
- package/es/index.js +0 -2
- package/es/plus/orderList/index.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/es/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +1 -0
- package/es/plus/pisellSalesManagement/index.d.ts +1 -1
- package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +7 -5
- package/es/plus/saasCreateOrganization/index.d.ts +2 -1
- package/es/plus/saleDetail/Base.js +0 -1
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
- package/es/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
- package/es/plus/saleDetail/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/index.js +0 -1
- package/es/plus/salesSdk/bookingEditService/BookingEditHolderField.js +6 -6
- package/es/plus/salesSdk/components/SalesSdkConfirmHolderModal.js +2 -4
- package/es/plus/salesSdk/context/SalesSdkCartContext.js +28 -21
- package/es/plus/salesSdk/context/SalesSdkHolderContext.js +104 -22
- package/es/plus/salesSdk/context/SalesSdkProvider.js +3 -12
- package/es/plus/salesSdk/hosts/ConfirmHolderHostRenderer.js +14 -5
- package/es/plus/salesSdk/normalProductDetail/NormalProductDetailHostRenderer.js +5 -2
- package/es/plus/salesSdk/types.d.ts +16 -1
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/customerAuthGate.js +2 -5
- package/es/plus/salesSdk/utils/enrichCacheItemBeforeAdd.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/salesSdk/utils/ensureCustomerAuthBeforeAdd.js +6 -6
- package/es/plus/salesSdk/utils/holderSubmitValidation.js +3 -4
- package/es/plus/salesSdk/utils/productHolderConfig.js +3 -17
- package/es/plus/salesSdk/utils/runAddProductFlow.js +14 -5
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +2 -1
- package/es/plus/walletPassGallery/index.d.ts +2 -1
- package/es/private-materials/lowcode/authmodal/meta.d.ts +1 -0
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +1 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/pro/Selector/Item.d.ts +1 -1
- package/es/pro/numberKeyboard/index.d.ts +1 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +2 -1
- package/es/pro/skuDetailModal/components/weighing/index.d.ts +2 -1
- package/es/pro/skuDetailModal/flow/modules/holder/index.js +4 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
- package/lib/components/appointmentBooking/index.d.ts +2 -2
- package/lib/components/bigSale/index.js +1 -0
- package/lib/components/bigSale/templates/Kiosk/index.js +104 -47
- package/lib/components/booking/deposit/index.d.ts +3 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +3 -2
- package/lib/components/booking/info/index.d.ts +2 -2
- package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
- package/lib/components/booking/materiels/duration/index.d.ts +2 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
- package/lib/components/ecocup/cupList/index.d.ts +2 -2
- package/lib/components/ecocup/customerList/index.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +2 -2
- package/lib/components/eventBooking/index.d.ts +2 -2
- package/lib/components/kioskSale/index.d.ts +2 -2
- package/lib/components/kioskSale/index.js +1 -1
- package/lib/components/kioskSkuDetail/index.d.ts +1 -1
- package/lib/components/login/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
- package/lib/components/productExtension/index.d.ts +2 -2
- package/lib/components/ruleSetting/index.d.ts +2 -2
- package/lib/components/scanOrder/index.d.ts +2 -2
- package/lib/components/sharedSecondaryBigSale/index.d.ts +2 -2
- package/lib/components/shoppingCart/index.d.ts +2 -2
- package/lib/components/subTotal/index.d.ts +1 -1
- package/lib/components/taxSelect/index.d.ts +2 -2
- package/lib/components/ticketBooking/index.d.ts +1 -1
- package/lib/components/venueBooking/index.d.ts +2 -2
- package/lib/components/walletList/index.d.ts +2 -2
- package/lib/plus/orderList/index.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
- package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +7 -6
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
- package/lib/plus/salesSdk/bookingEditService/BookingEditHolderField.js +5 -5
- package/lib/plus/salesSdk/components/SalesSdkConfirmHolderModal.js +2 -4
- package/lib/plus/salesSdk/context/SalesSdkCartContext.js +28 -21
- package/lib/plus/salesSdk/context/SalesSdkHolderContext.js +104 -22
- package/lib/plus/salesSdk/context/SalesSdkProvider.js +3 -12
- package/lib/plus/salesSdk/hosts/ConfirmHolderHostRenderer.js +14 -5
- package/lib/plus/salesSdk/normalProductDetail/NormalProductDetailHostRenderer.js +5 -2
- package/lib/plus/salesSdk/types.d.ts +16 -1
- package/lib/plus/salesSdk/utils/customerAuthGate.js +1 -4
- package/lib/plus/salesSdk/utils/enrichCacheItemBeforeAdd.js +1 -1
- package/lib/plus/salesSdk/utils/ensureCustomerAuthBeforeAdd.js +6 -6
- package/lib/plus/salesSdk/utils/holderSubmitValidation.js +3 -4
- package/lib/plus/salesSdk/utils/productHolderConfig.js +3 -17
- package/lib/plus/salesSdk/utils/runAddProductFlow.js +14 -5
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
- package/lib/plus/walletPassGallery/index.d.ts +2 -2
- package/lib/pro/Selector/Item.d.ts +1 -1
- package/lib/pro/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +2 -2
- package/lib/pro/skuDetailModal/components/weighing/index.d.ts +2 -2
- package/lib/pro/skuDetailModal/flow/modules/holder/index.js +4 -1
- package/package.json +4 -4
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -51
|
@@ -226,4 +226,4 @@ interface RegisterFormData {
|
|
|
226
226
|
verification_token?: string;
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
export { AuthMethodType, EmailAuthConfig,
|
|
229
|
+
export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig };
|
|
@@ -24,6 +24,6 @@ interface NumberKeyboardProps {
|
|
|
24
24
|
/** 输入框的样式 */
|
|
25
25
|
inputStyle?: React.CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
|
|
27
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => React.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { NumberKeyboard };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { PopoverProps } from "antd";
|
|
2
3
|
//#region src/pro/pisellPhoneKeyboard/index.d.ts
|
|
3
4
|
interface PisellPhoneKeyboardProps {
|
|
@@ -8,6 +9,6 @@ interface PisellPhoneKeyboardProps {
|
|
|
8
9
|
keyboardProps?: any;
|
|
9
10
|
virtualKeyInputProps?: any;
|
|
10
11
|
}
|
|
11
|
-
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
|
|
12
|
+
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => React.JSX.Element;
|
|
12
13
|
//#endregion
|
|
13
14
|
export { PisellPhoneKeyboard };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
|
|
1
|
+
import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
@@ -62,7 +62,8 @@ const HolderFlowModuleComponent = ({ context, module, registerHandle }) => {
|
|
|
62
62
|
const holderIds = context.draft.booking.holderIds;
|
|
63
63
|
const quantity = context.draft.quantity || 1;
|
|
64
64
|
const bookingState = context.hostContext;
|
|
65
|
-
const
|
|
65
|
+
const deferHolderUntilSubmit = (bookingState === null || bookingState === void 0 ? void 0 : bookingState.deferHolderUntilSubmit) === true;
|
|
66
|
+
const required = resolveFlowHolderConfig(productData, bookingState).required && !deferHolderUntilSubmit;
|
|
66
67
|
const unsupportedReason = isMultiDayProduct(productData) ? void 0 : getUnsupportedBookingFlowReason(productData);
|
|
67
68
|
const customerId = getCustomerId(bookingState);
|
|
68
69
|
const [hostError, setHostError] = useState(null);
|
|
@@ -168,9 +169,11 @@ const holderFlowModule = {
|
|
|
168
169
|
"booking.customerId"
|
|
169
170
|
],
|
|
170
171
|
isApplicable: (context) => {
|
|
172
|
+
var _context$hostContext;
|
|
171
173
|
const productData = context.draft.productData;
|
|
172
174
|
if (isNormalProductByDurationSchedule(productData)) return false;
|
|
173
175
|
if (!resolveFlowHolderConfig(productData, context.hostContext).enabled) return false;
|
|
176
|
+
if (((_context$hostContext = context.hostContext) === null || _context$hostContext === void 0 ? void 0 : _context$hostContext.deferHolderUntilSubmit) === true) return false;
|
|
174
177
|
if (!context.hostContext) return true;
|
|
175
178
|
return !isWalkIn(getCustomerId(context.hostContext));
|
|
176
179
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/appointmentBooking/deposit/index.d.ts
|
|
3
|
-
declare const Deposit: (props: any) => JSX.Element;
|
|
3
|
+
declare const Deposit: (props: any) => React.JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { Deposit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/appointmentBooking/index.d.ts
|
|
3
|
-
declare const AppointmentBooking: () => JSX.Element;
|
|
3
|
+
declare const AppointmentBooking: () => React.JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { AppointmentBooking };
|
|
@@ -134,6 +134,7 @@ const BigSale = ({ osKey = DEFAULT_OS_KEY, osModuleName, selectionFlowScene, lif
|
|
|
134
134
|
bookingConfigParams,
|
|
135
135
|
autoInitBookingContext,
|
|
136
136
|
otherParams,
|
|
137
|
+
deferHolderAuthOnClose: resolvedTemplate === "kiosk",
|
|
137
138
|
shouldMergeProductLines,
|
|
138
139
|
rulesHooks,
|
|
139
140
|
legacyOpenProductDetail,
|
|
@@ -6,6 +6,7 @@ const require_SalesSdkHostBridgesContext = require("../../../../plus/salesSdk/co
|
|
|
6
6
|
const require_useSalesUserLogin = require("../../../../hooks/useSalesUserLogin.js");
|
|
7
7
|
const require_resolve = require("../../../checkout/components/PaymentResultToastV2/resolve.js");
|
|
8
8
|
const require_index = require("../../../checkout/components/PaymentResultToastV2/index.js");
|
|
9
|
+
const require_serve = require("../../../Sales/Checkout/serve.js");
|
|
9
10
|
const require_useSalesSdk = require("../../../../plus/salesSdk/hooks/useSalesSdk.js");
|
|
10
11
|
const require_usePickSaleDetailContext = require("../../hooks/usePickSaleDetailContext.js");
|
|
11
12
|
const require_productListPreferences = require("../../utils/productListPreferences.js");
|
|
@@ -38,11 +39,52 @@ function publishKioskCollaborationPreviewStatus(app, status) {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
const KIOSK_VIEW_SESSION_KEY = "bigSale.kiosk.view";
|
|
42
|
+
function toFiniteAmount(value) {
|
|
43
|
+
if (value === void 0 || value === null || value === "") return null;
|
|
44
|
+
const amount = Number(value);
|
|
45
|
+
return Number.isFinite(amount) ? amount : null;
|
|
46
|
+
}
|
|
47
|
+
function resolveKioskAmountDue(summary) {
|
|
48
|
+
var _toFiniteAmount;
|
|
49
|
+
if (!summary) return null;
|
|
50
|
+
const orderPaidAmount = toFiniteAmount(summary.order_paid_amount);
|
|
51
|
+
if (orderPaidAmount !== null && orderPaidAmount > 0) return toFiniteAmount(summary.amount_gap);
|
|
52
|
+
return (_toFiniteAmount = toFiniteAmount(summary.expect_amount)) !== null && _toFiniteAmount !== void 0 ? _toFiniteAmount : toFiniteAmount(summary.total_amount);
|
|
53
|
+
}
|
|
54
|
+
function isH5ZeroAmountCheckout(platform, summary) {
|
|
55
|
+
return isH5ZeroAmountValue(platform, resolveKioskAmountDue(summary));
|
|
56
|
+
}
|
|
57
|
+
function isH5ZeroAmountValue(platform, amount) {
|
|
58
|
+
return String(platform || "").trim().toLowerCase() === "h5" && toFiniteAmount(amount) === 0;
|
|
59
|
+
}
|
|
60
|
+
function shouldSubmitKioskOrderBeforeCheckout(options) {
|
|
61
|
+
return options.shouldUseConsumerPayment || isH5ZeroAmountCheckout(options.platform, options.summary);
|
|
62
|
+
}
|
|
63
|
+
function resolveKioskSubmittedPayableAmount(result, tempOrderSummary, contextSummary) {
|
|
64
|
+
var _result$data, _result$data2, _result$data3;
|
|
65
|
+
return [
|
|
66
|
+
result === null || result === void 0 || (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.order_wait_pay_amount,
|
|
67
|
+
result === null || result === void 0 || (_result$data2 = result.data) === null || _result$data2 === void 0 ? void 0 : _result$data2.expect_amount,
|
|
68
|
+
result === null || result === void 0 || (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.total_amount,
|
|
69
|
+
tempOrderSummary === null || tempOrderSummary === void 0 ? void 0 : tempOrderSummary.expect_amount,
|
|
70
|
+
tempOrderSummary === null || tempOrderSummary === void 0 ? void 0 : tempOrderSummary.total_amount,
|
|
71
|
+
contextSummary === null || contextSummary === void 0 ? void 0 : contextSummary.expect_amount,
|
|
72
|
+
contextSummary === null || contextSummary === void 0 ? void 0 : contextSummary.total_amount
|
|
73
|
+
].find((value) => toFiniteAmount(value) !== null);
|
|
74
|
+
}
|
|
41
75
|
function launchKioskConsumerPaymentAfterReset(_x) {
|
|
42
76
|
return _launchKioskConsumerPaymentAfterReset.apply(this, arguments);
|
|
43
77
|
}
|
|
44
78
|
function _launchKioskConsumerPaymentAfterReset() {
|
|
45
|
-
_launchKioskConsumerPaymentAfterReset = require_asyncToGenerator._asyncToGenerator(function* ({ action, clearCartAndReset, clearSessionStorageOrderSnapshot, onResetError, orderId, persistCatalogView, recalcSummary, replace, totalAmount }) {
|
|
79
|
+
_launchKioskConsumerPaymentAfterReset = require_asyncToGenerator._asyncToGenerator(function* ({ action, clearCartAndReset, clearSessionStorageOrderSnapshot, freePay, onFreePayFailure, onResetError, orderId, persistCatalogView, recalcSummary, redirectZeroAmount, replace, totalAmount }) {
|
|
80
|
+
const shouldRedirectZeroAmount = redirectZeroAmount && Number(totalAmount) === 0;
|
|
81
|
+
if (shouldRedirectZeroAmount) {
|
|
82
|
+
const freePayResult = yield freePay(String(orderId));
|
|
83
|
+
if (!(freePayResult === null || freePayResult === void 0 ? void 0 : freePayResult.status)) {
|
|
84
|
+
onFreePayFailure(freePayResult);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
46
88
|
try {
|
|
47
89
|
yield clearCartAndReset();
|
|
48
90
|
yield recalcSummary();
|
|
@@ -51,7 +93,7 @@ function _launchKioskConsumerPaymentAfterReset() {
|
|
|
51
93
|
onResetError(error);
|
|
52
94
|
}
|
|
53
95
|
persistCatalogView();
|
|
54
|
-
if (
|
|
96
|
+
if (shouldRedirectZeroAmount) {
|
|
55
97
|
replace(`/payment-finish/success?amount=${totalAmount}&order_id=${orderId}`);
|
|
56
98
|
return;
|
|
57
99
|
}
|
|
@@ -155,7 +197,8 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
|
|
|
155
197
|
var _engineContext$appHel, _utils$getApp, _engineContext$appHel2;
|
|
156
198
|
_pisell_utils.locales.init(require_index$1.default, locale || "en");
|
|
157
199
|
const engineContext = require_useEngineContext.default();
|
|
158
|
-
const
|
|
200
|
+
const platform = String(require_useEngineContext.usePlatform() || "").trim().toLowerCase();
|
|
201
|
+
const isH5Platform = platform === "h5";
|
|
159
202
|
const utils = (engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils) || {};
|
|
160
203
|
const app = (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 ? void 0 : _utils$getApp.call(utils);
|
|
161
204
|
const hostChannel = String((engineContext === null || engineContext === void 0 || (_engineContext$appHel2 = engineContext.appHelper) === null || _engineContext$appHel2 === void 0 || (_engineContext$appHel2 = _engineContext$appHel2.constants) === null || _engineContext$appHel2 === void 0 || (_engineContext$appHel2 = _engineContext$appHel2.config) === null || _engineContext$appHel2 === void 0 ? void 0 : _engineContext$appHel2.channel) || "").trim().toLowerCase();
|
|
@@ -462,14 +505,20 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
|
|
|
462
505
|
checkoutOpeningRef.current = true;
|
|
463
506
|
setIsCheckoutLoading(true);
|
|
464
507
|
try {
|
|
465
|
-
var _result$payload$payme, _result$payload, _result$data5;
|
|
466
|
-
if (shouldUseConsumerPayment)
|
|
467
|
-
|
|
468
|
-
|
|
508
|
+
var _ref7, _context$sales$bookin5, _context$sales$bookin6, _context$sales$bookin7, _ref8, _ref9, _result$payload$payme, _result$payload, _result$data5;
|
|
509
|
+
if (shouldUseConsumerPayment && typeof utils.action !== "function") throw new Error("[KioskBigSale] appHelper.utils.action is not available.");
|
|
510
|
+
yield context.cart.waitForCartConsistency();
|
|
511
|
+
const currentTempOrder = (_ref7 = (_context$sales$bookin5 = (_context$sales$bookin6 = context.sales.bookingTicket) === null || _context$sales$bookin6 === void 0 || (_context$sales$bookin7 = _context$sales$bookin6.getTempOrder) === null || _context$sales$bookin7 === void 0 ? void 0 : _context$sales$bookin7.call(_context$sales$bookin6)) !== null && _context$sales$bookin5 !== void 0 ? _context$sales$bookin5 : context.sales.tempOrder) !== null && _ref7 !== void 0 ? _ref7 : null;
|
|
512
|
+
if (shouldSubmitKioskOrderBeforeCheckout({
|
|
513
|
+
platform,
|
|
514
|
+
summary: (_ref8 = (_ref9 = context.summary.summary) !== null && _ref9 !== void 0 ? _ref9 : currentTempOrder === null || currentTempOrder === void 0 ? void 0 : currentTempOrder.summary) !== null && _ref8 !== void 0 ? _ref8 : null,
|
|
515
|
+
shouldUseConsumerPayment
|
|
516
|
+
})) {
|
|
517
|
+
var _ref12, _context$sales$bookin8, _context$sales$bookin9, _context$sales$bookin10;
|
|
469
518
|
const result = yield context.cart.submit();
|
|
470
519
|
if (!require_utils.isSalesOrderSubmitSuccess(result)) {
|
|
471
|
-
var
|
|
472
|
-
showCheckoutFailure(String((
|
|
520
|
+
var _ref10, _ref11, _result$message, _result$data4;
|
|
521
|
+
showCheckoutFailure(String((_ref10 = (_ref11 = (_result$message = result === null || result === void 0 ? void 0 : result.message) !== null && _result$message !== void 0 ? _result$message : result === null || result === void 0 ? void 0 : result.msg) !== null && _ref11 !== void 0 ? _ref11 : result === null || result === void 0 || (_result$data4 = result.data) === null || _result$data4 === void 0 ? void 0 : _result$data4.message) !== null && _ref10 !== void 0 ? _ref10 : _pisell_utils.locales.getText("pisell2.big-sale.kiosk.payment-failure-description")));
|
|
473
522
|
return;
|
|
474
523
|
}
|
|
475
524
|
const orderId = require_utils.resolveSaleDetailOrderIdFromSalesResult(context.sales, result);
|
|
@@ -477,45 +526,53 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
|
|
|
477
526
|
showCheckoutFailure(String(_pisell_utils.locales.getText("pisell2.big-sale.kiosk.payment-failure-description")));
|
|
478
527
|
return;
|
|
479
528
|
}
|
|
480
|
-
const tempOrder = (
|
|
481
|
-
const totalAmount = (
|
|
482
|
-
if (totalAmount ===
|
|
529
|
+
const tempOrder = (_ref12 = (_context$sales$bookin8 = (_context$sales$bookin9 = context.sales.bookingTicket) === null || _context$sales$bookin9 === void 0 || (_context$sales$bookin10 = _context$sales$bookin9.getTempOrder) === null || _context$sales$bookin10 === void 0 ? void 0 : _context$sales$bookin10.call(_context$sales$bookin9)) !== null && _context$sales$bookin8 !== void 0 ? _context$sales$bookin8 : context.sales.tempOrder) !== null && _ref12 !== void 0 ? _ref12 : null;
|
|
530
|
+
const totalAmount = resolveKioskSubmittedPayableAmount(result, tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.summary, context.summary.summary);
|
|
531
|
+
if (toFiniteAmount(totalAmount) === null) {
|
|
483
532
|
showCheckoutFailure(String(_pisell_utils.locales.getText("pisell2.big-sale.kiosk.payment-failure-description")));
|
|
484
533
|
return;
|
|
485
534
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
535
|
+
const shouldRedirectH5ZeroAmount = isH5ZeroAmountValue(platform, totalAmount);
|
|
536
|
+
if (shouldUseConsumerPayment || shouldRedirectH5ZeroAmount) {
|
|
537
|
+
publishKioskCollaborationPreviewStatus(app, "checkout");
|
|
538
|
+
yield launchKioskConsumerPaymentAfterReset({
|
|
539
|
+
action: utils.action,
|
|
540
|
+
clearCartAndReset: context.sales.clearCartAndReset,
|
|
541
|
+
clearSessionStorageOrderSnapshot: () => {
|
|
542
|
+
var _context$sales$bookin11, _context$sales$bookin12;
|
|
543
|
+
(_context$sales$bookin11 = context.sales.bookingTicket) === null || _context$sales$bookin11 === void 0 || (_context$sales$bookin12 = _context$sales$bookin11.clearSessionStorageOrderSnapshot) === null || _context$sales$bookin12 === void 0 || _context$sales$bookin12.call(_context$sales$bookin11);
|
|
544
|
+
},
|
|
545
|
+
freePay: (freePayOrderId) => require_serve.freePayApi(freePayOrderId),
|
|
546
|
+
onFreePayFailure: (freePayResult) => {
|
|
547
|
+
var _freePayResult$messag;
|
|
548
|
+
showCheckoutFailure(String((_freePayResult$messag = freePayResult === null || freePayResult === void 0 ? void 0 : freePayResult.message) !== null && _freePayResult$messag !== void 0 ? _freePayResult$messag : _pisell_utils.locales.getText("pisell2.big-sale.kiosk.payment-failure-description")));
|
|
549
|
+
},
|
|
550
|
+
onResetError: (error) => {
|
|
551
|
+
console.error("[KioskBigSale] 结账跳转前重置本地订单失败,继续当前流程", error);
|
|
552
|
+
},
|
|
553
|
+
orderId,
|
|
554
|
+
persistCatalogView: () => {
|
|
555
|
+
persistKioskSessionView(context.sales.bookingTicket, "catalog");
|
|
556
|
+
},
|
|
557
|
+
recalcSummary: context.cart.recalcSummary,
|
|
558
|
+
redirectZeroAmount: shouldRedirectH5ZeroAmount,
|
|
559
|
+
replace: (path) => {
|
|
560
|
+
var _utils$history, _app$history2;
|
|
561
|
+
if (typeof (utils === null || utils === void 0 || (_utils$history = utils.history) === null || _utils$history === void 0 ? void 0 : _utils$history.replace) === "function") {
|
|
562
|
+
utils.history.replace(path);
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
if (typeof (app === null || app === void 0 || (_app$history2 = app.history) === null || _app$history2 === void 0 ? void 0 : _app$history2.replace) === "function") {
|
|
566
|
+
app.history.replace(path);
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
window.location.replace(path);
|
|
570
|
+
},
|
|
571
|
+
totalAmount
|
|
572
|
+
});
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
517
575
|
}
|
|
518
|
-
yield context.cart.waitForCartConsistency();
|
|
519
576
|
publishKioskCollaborationPreviewStatus(app, "checkout");
|
|
520
577
|
const result = yield context.sales.openCheckout({
|
|
521
578
|
paymentResultDisplayMode: "page",
|
|
@@ -563,10 +620,10 @@ function KioskBigSaleTemplate({ isActive = true, osKey, context, mode, variant,
|
|
|
563
620
|
return (runtimeDiscountList.length > 0 ? runtimeDiscountList : context.cart.discountList || []).some((discount) => require_adapters.isCustomerVoucher(discount) && Boolean(discount === null || discount === void 0 ? void 0 : discount.isSelected));
|
|
564
621
|
};
|
|
565
622
|
const hasAppliedWalletAsset = () => {
|
|
566
|
-
var _context$sales$
|
|
567
|
-
const walletAssetsState = (_context$sales$
|
|
623
|
+
var _context$sales$bookin13, _context$sales$bookin14, _walletAssetsState$se, _walletAssetsState$se2, _walletAssetsState$se3, _walletAssetsState$se4, _walletAssetsState$co, _walletAssetsState$co2, _ref15, _context$sales$bookin15, _context$sales$bookin16, _context$sales$bookin17;
|
|
624
|
+
const walletAssetsState = (_context$sales$bookin13 = context.sales.bookingTicket) === null || _context$sales$bookin13 === void 0 || (_context$sales$bookin14 = _context$sales$bookin13.getWalletAssetsState) === null || _context$sales$bookin14 === void 0 ? void 0 : _context$sales$bookin14.call(_context$sales$bookin13);
|
|
568
625
|
if (((_walletAssetsState$se = walletAssetsState === null || walletAssetsState === void 0 || (_walletAssetsState$se2 = walletAssetsState.selectedIds) === null || _walletAssetsState$se2 === void 0 ? void 0 : _walletAssetsState$se2.length) !== null && _walletAssetsState$se !== void 0 ? _walletAssetsState$se : 0) > 0 || ((_walletAssetsState$se3 = walletAssetsState === null || walletAssetsState === void 0 || (_walletAssetsState$se4 = walletAssetsState.selectedItems) === null || _walletAssetsState$se4 === void 0 ? void 0 : _walletAssetsState$se4.length) !== null && _walletAssetsState$se3 !== void 0 ? _walletAssetsState$se3 : 0) > 0 || ((_walletAssetsState$co = walletAssetsState === null || walletAssetsState === void 0 || (_walletAssetsState$co2 = walletAssetsState.committedIds) === null || _walletAssetsState$co2 === void 0 ? void 0 : _walletAssetsState$co2.length) !== null && _walletAssetsState$co !== void 0 ? _walletAssetsState$co : 0) > 0) return true;
|
|
569
|
-
const tempOrder = (_ref15 = (_context$sales$
|
|
626
|
+
const tempOrder = (_ref15 = (_context$sales$bookin15 = (_context$sales$bookin16 = context.sales.bookingTicket) === null || _context$sales$bookin16 === void 0 || (_context$sales$bookin17 = _context$sales$bookin16.getTempOrder) === null || _context$sales$bookin17 === void 0 ? void 0 : _context$sales$bookin17.call(_context$sales$bookin16)) !== null && _context$sales$bookin15 !== void 0 ? _context$sales$bookin15 : context.sales.tempOrder) !== null && _ref15 !== void 0 ? _ref15 : null;
|
|
570
627
|
return ((tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.payments) || []).some((payment) => {
|
|
571
628
|
const voucherId = payment === null || payment === void 0 ? void 0 : payment.voucher_id;
|
|
572
629
|
return voucherId !== void 0 && voucherId !== null && String(voucherId).trim() !== "" && Number(voucherId) !== 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
2
3
|
//#region src/components/booking/deposit/index.d.ts
|
|
3
|
-
declare const Deposit: (props: any) => JSX.Element;
|
|
4
|
+
declare const Deposit: (props: any) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { Deposit };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
2
3
|
//#region src/components/booking/info/addServiceVariant/index.d.ts
|
|
3
4
|
interface AddServiceVariantProps {
|
|
4
5
|
globalState: any;
|
|
5
6
|
setGlobalState: any;
|
|
6
7
|
}
|
|
7
|
-
declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
|
|
8
|
+
declare const AddServiceVariant: (props: AddServiceVariantProps) => React.JSX.Element;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { AddServiceVariant };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InfoProps } from "./main.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/booking/info/index.d.ts
|
|
5
|
-
declare const APP: (props: InfoProps) => JSX.Element;
|
|
5
|
+
declare const APP: (props: InfoProps) => React.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { APP };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/booking/materiels/contacts/index.d.ts
|
|
3
3
|
type ContactType = {
|
|
4
4
|
country_calling_code: string;
|
|
@@ -12,6 +12,6 @@ type ContactsPropsType = {
|
|
|
12
12
|
value: ContactType[];
|
|
13
13
|
onChange: (value: ContactType[]) => void;
|
|
14
14
|
};
|
|
15
|
-
declare const Contacts: (props: ContactsPropsType) => JSX.Element;
|
|
15
|
+
declare const Contacts: (props: ContactsPropsType) => React.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Contacts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
3
|
|
|
4
4
|
//#region src/components/booking/materiels/duration/index.d.ts
|
|
@@ -12,6 +12,6 @@ interface DurationProps extends SelectProps {
|
|
|
12
12
|
startDate?: any;
|
|
13
13
|
timeObj?: any;
|
|
14
14
|
}
|
|
15
|
-
declare const Duration: (props: DurationProps) => JSX.Element;
|
|
15
|
+
declare const Duration: (props: DurationProps) => React.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Duration };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
3
|
|
|
4
4
|
//#region src/components/booking/materiels/startTime/index.d.ts
|
|
@@ -8,6 +8,6 @@ interface StartTimeProps extends SelectProps {
|
|
|
8
8
|
selectProps?: SelectProps;
|
|
9
9
|
timeObjChange?: any;
|
|
10
10
|
}
|
|
11
|
-
declare const StartTime: (props: StartTimeProps) => JSX.Element;
|
|
11
|
+
declare const StartTime: (props: StartTimeProps) => React.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { StartTime };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/ecocup/cupList/index.d.ts
|
|
3
3
|
interface CupListProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
}
|
|
6
|
-
declare const CupList: (props: CupListProps) => JSX.Element;
|
|
6
|
+
declare const CupList: (props: CupListProps) => React.JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CupList };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/ecocup/customerList/index.d.ts
|
|
3
3
|
interface CustomerListProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
}
|
|
6
|
-
declare function CustomerList(props: CustomerListProps): JSX.Element;
|
|
6
|
+
declare function CustomerList(props: CustomerListProps): React.JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CustomerList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DeviceStatus, Eftpos } from "./const.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/eftpos/index.d.ts
|
|
4
4
|
interface PosProps {
|
|
5
5
|
/** 厂商类型 */
|
|
@@ -43,6 +43,6 @@ interface PosProps {
|
|
|
43
43
|
getPosComm: (...agrn: unknown[]) => any;
|
|
44
44
|
savePos: (...agrn: unknown[]) => any;
|
|
45
45
|
}
|
|
46
|
-
declare const _default: (props: PosProps) => JSX.Element;
|
|
46
|
+
declare const _default: (props: PosProps) => React.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { _default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PosProps } from "./const.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/eftposPay/index.d.ts
|
|
4
|
-
declare const _default: (props: PosProps) => JSX.Element | null;
|
|
4
|
+
declare const _default: (props: PosProps) => React.JSX.Element | null;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BigSaleProps } from "../bigSale/types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/kioskSale/index.d.ts
|
|
5
5
|
type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' | 'secondaryScreenDisplay' | 'saleDetailTemplate' | 'template' | 'tmpl'> & {
|
|
@@ -8,6 +8,6 @@ type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' |
|
|
|
8
8
|
/**
|
|
9
9
|
* 面向顾客的竖屏自助点餐入口;业务数据继续复用 BigSale / SalesSdk。
|
|
10
10
|
*/
|
|
11
|
-
declare function KioskSale(props: KioskSaleProps): JSX.Element;
|
|
11
|
+
declare function KioskSale(props: KioskSaleProps): React.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { KioskSale, KioskSaleProps };
|
|
@@ -108,7 +108,7 @@ function KioskSale(props) {
|
|
|
108
108
|
selectionFlowScene: "product-selection",
|
|
109
109
|
enableGlobalScanListener: true,
|
|
110
110
|
normalProductDetailConfig: resolvedNormalProductDetailConfig,
|
|
111
|
-
mergeBookingLinesForDisplay:
|
|
111
|
+
mergeBookingLinesForDisplay: isH5,
|
|
112
112
|
productLoadParams: resolvedProductLoadParams,
|
|
113
113
|
autoCreate: false,
|
|
114
114
|
bootstrapSlot,
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
8
|
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
9
|
*/
|
|
10
|
-
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
10
|
+
declare function KioskSkuDetail(props: KioskSkuDetailProps): React.JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* @description 从原生回调 payload 中提取 productId
|
|
13
13
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/login/index.d.ts
|
|
3
3
|
interface LoginProps {
|
|
4
4
|
title: string;
|
|
5
5
|
style: any;
|
|
6
6
|
onLogin: (values: any, callback: (status: any) => void) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const Login: (props: LoginProps) => JSX.Element;
|
|
8
|
+
declare const Login: (props: LoginProps) => React.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Login, LoginProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CustomerCardProps } from "./CustomerCard/index.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { PopoverProps } from "antd";
|
|
4
4
|
//#region src/components/pisellSelectCustomerModal/index.d.ts
|
|
5
5
|
type CustomerDetail = any;
|
|
@@ -12,6 +12,6 @@ interface PisellSelectCustomerModalProps {
|
|
|
12
12
|
keyboardProps?: any;
|
|
13
13
|
virtualKeyInputProps?: any;
|
|
14
14
|
}
|
|
15
|
-
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
|
|
15
|
+
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => React.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { PisellSelectCustomerModal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/productExtension/index.d.ts
|
|
3
3
|
interface ProductExtensionProps {
|
|
4
4
|
onDataChange: any;
|
|
@@ -7,6 +7,6 @@ interface ProductExtensionProps {
|
|
|
7
7
|
declare const ProductExtension: ({
|
|
8
8
|
onDataChange,
|
|
9
9
|
type
|
|
10
|
-
}: ProductExtensionProps) => JSX.Element;
|
|
10
|
+
}: ProductExtensionProps) => React.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductExtension };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
//#region src/components/ruleSetting/index.d.ts
|
|
3
3
|
interface RuleSettingProps {
|
|
4
4
|
value: any;
|
|
@@ -6,6 +6,6 @@ interface RuleSettingProps {
|
|
|
6
6
|
className: string;
|
|
7
7
|
style: any;
|
|
8
8
|
}
|
|
9
|
-
declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
|
|
9
|
+
declare const RuleSetting: (props: RuleSettingProps) => React.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { RuleSetting };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ScanOrderProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/scanOrder/index.d.ts
|
|
4
|
-
declare function ScanOrder(props: ScanOrderProps): JSX.Element;
|
|
4
|
+
declare function ScanOrder(props: ScanOrderProps): React.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ScanOrder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BigSaleProps } from "../bigSale/types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sharedSecondaryBigSale/index.d.ts
|
|
5
5
|
interface SharedSecondaryBigSaleProps extends Pick<BigSaleProps, 'className' | 'saleDetailModuleConfig' | 'secondaryScreenDisplay' | 'style'> {
|
|
@@ -15,6 +15,6 @@ declare function SharedSecondaryBigSale({
|
|
|
15
15
|
secondaryScreenDisplay,
|
|
16
16
|
className,
|
|
17
17
|
style
|
|
18
|
-
}: SharedSecondaryBigSaleProps): JSX.Element;
|
|
18
|
+
}: SharedSecondaryBigSaleProps): React.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SharedSecondaryBigSale, SharedSecondaryBigSaleProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { shoppingCartProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/shoppingCart/index.d.ts
|
|
5
5
|
declare const shoppingCart: ({
|
|
@@ -9,6 +9,6 @@ declare const shoppingCart: ({
|
|
|
9
9
|
onAddProduct,
|
|
10
10
|
onActiveKey,
|
|
11
11
|
...props
|
|
12
|
-
}: shoppingCartProps) => JSX.Element;
|
|
12
|
+
}: shoppingCartProps) => React.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shoppingCart };
|
|
@@ -20,6 +20,6 @@ interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
describe?: string;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
-
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
23
|
+
declare const SubTotal: (props: SubTotalProps) => React.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SubTotal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
3
|
//#region src/components/taxSelect/index.d.ts
|
|
4
4
|
interface TaxSelectProps {
|
|
@@ -8,6 +8,6 @@ interface TaxSelectProps {
|
|
|
8
8
|
tax_title?: string;
|
|
9
9
|
onChange: (value: string) => void;
|
|
10
10
|
}
|
|
11
|
-
declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
|
|
11
|
+
declare const TaxSelect: (props: TaxSelectProps) => React.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { TaxSelect };
|