@pisell/private-materials 6.11.664 → 6.11.665
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 +1 -2
- package/es/components/appointmentBooking/index.d.ts +1 -2
- 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.d.ts +1 -0
- package/es/components/bigSale/dialog.js +29 -4
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +0 -1
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/booking/deposit/index.d.ts +1 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
- package/es/components/booking/info/index.d.ts +1 -2
- package/es/components/booking/materiels/contacts/index.d.ts +1 -2
- package/es/components/booking/materiels/duration/index.d.ts +1 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -2
- package/es/components/ecocup/cupList/index.d.ts +1 -2
- package/es/components/ecocup/customerList/index.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +1 -2
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eventBooking/index.d.ts +1 -2
- package/es/components/kioskSale/index.d.ts +2 -2
- package/es/components/kioskSkuDetail/index.d.ts +1 -1
- package/es/components/login/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/index.d.ts +1 -2
- package/es/components/ruleSetting/index.d.ts +1 -2
- 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 +1 -2
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +1 -2
- 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 +1 -2
- 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/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 +5 -7
- package/es/plus/saasCreateOrganization/index.d.ts +1 -2
- 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/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/customerAuthGate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/es/plus/walletPassGallery/index.d.ts +1 -2
- 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 +1 -2
- package/es/pro/skuDetailModal/components/weighing/index.d.ts +1 -2
- package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
- package/lib/components/appointmentBooking/index.d.ts +2 -2
- package/lib/components/bigSale/dialog.d.ts +1 -0
- package/lib/components/bigSale/dialog.js +29 -3
- package/lib/components/booking/deposit/index.d.ts +2 -3
- package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
- 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/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/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 +6 -7
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
- 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/package.json +3 -3
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -51
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
- /package/es/{plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts → private-materials/lowcode/authmodal/meta.d.ts} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import useEngineContext from "../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { subscribeBookingDateChange } from "../../../../plus/salesSdk/utils/bookingDate.js";
|
|
3
|
-
import "../../../../plus/salesSdk/index.js";
|
|
4
3
|
import dayjs from "dayjs";
|
|
5
4
|
import { useCallback, useEffect, useState } from "react";
|
|
6
5
|
//#region src/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.ts
|
|
@@ -4,7 +4,6 @@ import withResponsive from "../../../../responsive/withResponsive.js";
|
|
|
4
4
|
import useInitLocalesOnce from "../../../../hooks/useInitLocalesOnce.js";
|
|
5
5
|
import { subscribeBookingDateChange } from "../../../../plus/salesSdk/utils/bookingDate.js";
|
|
6
6
|
import { useSalesSdkBookingContext } from "../../../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
7
|
-
import "../../../../plus/salesSdk/index.js";
|
|
8
7
|
import locales_default from "../../locales/index.js";
|
|
9
8
|
import dayjs from "dayjs";
|
|
10
9
|
import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
@@ -24,6 +24,7 @@ interface BigSaleDialogProps extends BaseResponsiveProps {
|
|
|
24
24
|
onClose?: () => void;
|
|
25
25
|
callback?: (result: any) => void;
|
|
26
26
|
rulesHooks?: BigSaleProps['rulesHooks'];
|
|
27
|
+
enableGlobalScanListener?: BigSaleProps['enableGlobalScanListener'];
|
|
27
28
|
title?: string;
|
|
28
29
|
/** 常驻 mount BigSale,关闭时不卸载(对齐 CachedEditBookingPlugin 预热)。 */
|
|
29
30
|
preloaded?: boolean;
|
|
@@ -5,7 +5,6 @@ import { buildInitBookingContextParams, collectBookingIdsFromTempOrder } from ".
|
|
|
5
5
|
import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
6
6
|
import { useSalesSdkCart } from "../../plus/salesSdk/hooks/useSalesSdkCart.js";
|
|
7
7
|
import { SalesSdkPrepareOrderSwitchContext, SalesSdkRootRefreshContext } from "../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
8
|
-
import "../../plus/salesSdk/index.js";
|
|
9
8
|
import { seedDineInReservationToCart } from "../../plus/pisellReservation/utils/seedDineInReservationToCart.js";
|
|
10
9
|
import { isPersistedBigSaleOrderId } from "./utils/orderIdentity.js";
|
|
11
10
|
import BigSale from "./index.js";
|
|
@@ -83,7 +82,7 @@ function _prepareFreshOrderForCreateSeed() {
|
|
|
83
82
|
* @example
|
|
84
83
|
* <BigSaleDialogLifecycle open createSeed={null} onCreateSeedReady={() => setReady(true)} />
|
|
85
84
|
*/
|
|
86
|
-
function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onCreateSeedError, onEditReady }) {
|
|
85
|
+
function BigSaleDialogLifecycle({ open, contentActive, openNonce = 0, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onCreateSeedError, onEditReady }) {
|
|
87
86
|
const sales = useSalesSdk();
|
|
88
87
|
const cart = useSalesSdkCart();
|
|
89
88
|
const refreshRoot = React.useContext(SalesSdkRootRefreshContext);
|
|
@@ -114,9 +113,27 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
|
|
|
114
113
|
onCreateSeedErrorRef.current = onCreateSeedError;
|
|
115
114
|
const onEditReadyRef = useRef(onEditReady);
|
|
116
115
|
onEditReadyRef.current = onEditReady;
|
|
116
|
+
const previousContentActiveRef = useRef(contentActive);
|
|
117
|
+
const closeCleanupPromiseRef = useRef(null);
|
|
117
118
|
const createSeedKey = buildBigSaleCreateSeedKey(createSeed);
|
|
118
119
|
const hasBookingTicket = Boolean(sales.bookingTicket);
|
|
119
120
|
/**
|
|
121
|
+
* 缓存弹窗关闭动画完成后再重置整单,避免清理工作影响关闭帧。
|
|
122
|
+
* 极快重开时,后续 load/seed 会等待同一个清理任务,避免覆盖新订单。
|
|
123
|
+
*/
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
const wasContentActive = previousContentActiveRef.current;
|
|
126
|
+
previousContentActiveRef.current = contentActive;
|
|
127
|
+
if (!wasContentActive || contentActive || !salesRef.current.bookingTicket) return;
|
|
128
|
+
const cleanupPromise = salesRef.current.restore().then(() => void 0).catch((error) => {
|
|
129
|
+
console.warn("[BigSaleDialog] close cleanup failed", error);
|
|
130
|
+
});
|
|
131
|
+
closeCleanupPromiseRef.current = cleanupPromise;
|
|
132
|
+
cleanupPromise.finally(() => {
|
|
133
|
+
if (closeCleanupPromiseRef.current === cleanupPromise) closeCleanupPromiseRef.current = null;
|
|
134
|
+
});
|
|
135
|
+
}, [contentActive, hasBookingTicket]);
|
|
136
|
+
/**
|
|
120
137
|
* 每次 open / openNonce / 桌位变化时释放 seed 锁并作废进行中的 async。
|
|
121
138
|
*
|
|
122
139
|
* @example
|
|
@@ -150,6 +167,8 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
|
|
|
150
167
|
_asyncToGenerator(function* () {
|
|
151
168
|
try {
|
|
152
169
|
var _liveSales$bookingTic, _liveSales$bookingTic2, _liveSales$bookingTic3, _liveSales$bookingTic4, _liveSales$bookingTic5, _refreshRootRef$curre, _onEditReadyRef$curre;
|
|
170
|
+
yield closeCleanupPromiseRef.current;
|
|
171
|
+
if (isStaleEditLoad()) return;
|
|
153
172
|
const matchingPreloadedSalesDetail = resolveMatchingPreloadedSalesDetail(preloadedSalesDetailRef.current, orderId);
|
|
154
173
|
yield liveSales.loadDetail(matchingPreloadedSalesDetail ? {
|
|
155
174
|
orderId,
|
|
@@ -202,6 +221,8 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
|
|
|
202
221
|
_asyncToGenerator(function* () {
|
|
203
222
|
try {
|
|
204
223
|
var _salesRef$current$boo4, _salesRef$current$boo5, _salesRef$current$boo6, _salesRef$current$boo7, _salesRef$current$boo8, _refreshRootRef$curre2, _onCreateSeedReadyRef;
|
|
224
|
+
yield closeCleanupPromiseRef.current;
|
|
225
|
+
if (isStaleSeed()) return;
|
|
205
226
|
yield prepareFreshOrderForCreateSeed(salesRef.current);
|
|
206
227
|
if (isStaleSeed()) return;
|
|
207
228
|
if (currentSeed) {
|
|
@@ -287,9 +308,10 @@ function BigSaleDialogHeaderBar({ onClose, fallbackTitle, variant }) {
|
|
|
287
308
|
* @example
|
|
288
309
|
* <BigSaleDialogBootstrap open orderId={123} />
|
|
289
310
|
*/
|
|
290
|
-
function BigSaleDialogBootstrap({ open, openNonce, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onEditReady }) {
|
|
311
|
+
function BigSaleDialogBootstrap({ open, contentActive, openNonce, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onEditReady }) {
|
|
291
312
|
return /* @__PURE__ */ React.createElement(BigSaleDialogLifecycle, {
|
|
292
313
|
open,
|
|
314
|
+
contentActive,
|
|
293
315
|
openNonce,
|
|
294
316
|
orderId,
|
|
295
317
|
preloadedSalesDetail,
|
|
@@ -316,7 +338,7 @@ function BigSaleDialogBootstrap({ open, openNonce, orderId, preloadedSalesDetail
|
|
|
316
338
|
*/
|
|
317
339
|
function BigSaleDialog(props) {
|
|
318
340
|
var _createSeed$row2, _createSeed$row$id2, _createSeed$row3;
|
|
319
|
-
const { open, contentActive = open, onVisualStateSettled, orderId, preloadedSalesDetail, createSeed, onClose, callback, rulesHooks, title, preloaded, destroyOnUnmount, osKey = "cached-dine-in-dialog", mode = "retail", businessCode, bookingConfigParams, productDisplayConfig, productLoadParams, productCatalogReady = true, orderType = "table-order", variant, openNonce = 0 } = props;
|
|
341
|
+
const { open, contentActive = open, onVisualStateSettled, orderId, preloadedSalesDetail, createSeed, onClose, callback, rulesHooks, enableGlobalScanListener, title, preloaded, destroyOnUnmount, osKey = "cached-dine-in-dialog", mode = "retail", businessCode, bookingConfigParams, productDisplayConfig, productLoadParams, productCatalogReady = true, orderType = "table-order", variant, openNonce = 0 } = props;
|
|
320
342
|
const isPhoneVariant = variant === "phone";
|
|
321
343
|
const isEditMode = Boolean(orderId);
|
|
322
344
|
const shouldMoveCloseToActionBar = isEditMode && !isPhoneVariant;
|
|
@@ -433,6 +455,7 @@ function BigSaleDialog(props) {
|
|
|
433
455
|
const lifecycleOpen = open && contentActive;
|
|
434
456
|
const bootstrapSlot = useMemo(() => /* @__PURE__ */ React.createElement(BigSaleDialogBootstrap, {
|
|
435
457
|
open: lifecycleOpen,
|
|
458
|
+
contentActive,
|
|
436
459
|
openNonce,
|
|
437
460
|
orderId,
|
|
438
461
|
preloadedSalesDetail,
|
|
@@ -441,6 +464,7 @@ function BigSaleDialog(props) {
|
|
|
441
464
|
onCreateSeedReady: handleCreateSeedReady
|
|
442
465
|
}), [
|
|
443
466
|
lifecycleOpen,
|
|
467
|
+
contentActive,
|
|
444
468
|
openNonce,
|
|
445
469
|
orderId,
|
|
446
470
|
preloadedSalesDetail,
|
|
@@ -505,6 +529,7 @@ function BigSaleDialog(props) {
|
|
|
505
529
|
destroyOnUnmount,
|
|
506
530
|
selectionFlowScene: "product-selection",
|
|
507
531
|
isActive: contentActive,
|
|
532
|
+
enableGlobalScanListener,
|
|
508
533
|
autoCreate: false,
|
|
509
534
|
autoBootstrap: false,
|
|
510
535
|
autoRestoreOnInit: false,
|
|
@@ -4,7 +4,6 @@ import { useSalesSdkCustomer } from "../../../plus/salesSdk/hooks/useSalesSdkCus
|
|
|
4
4
|
import { useSalesSdkBookingContext } from "../../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
5
5
|
import { useSalesSdkSummary } from "../../../plus/salesSdk/hooks/useSalesSdkSummary.js";
|
|
6
6
|
import { useSalesSdkProducts } from "../../../plus/salesSdk/hooks/useSalesSdkProducts.js";
|
|
7
|
-
import "../../../plus/salesSdk/index.js";
|
|
8
7
|
import { useMemo } from "react";
|
|
9
8
|
//#region src/components/bigSale/hooks/useBigSaleContext.ts
|
|
10
9
|
/**
|
|
@@ -3,7 +3,6 @@ import useEngineContext from "../../../hooks/useEngineContext.js";
|
|
|
3
3
|
import { buildInitBookingContextParams, collectBookingIdsFromTempOrder } from "../../../plus/salesSdk/utils/buildDefaultLoadProductsParams.js";
|
|
4
4
|
import { useSalesSdkUIHosts } from "../../../plus/salesSdk/context/SalesSdkUIHostsContext.js";
|
|
5
5
|
import { SalesSdkRootRefreshContext } from "../../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
6
|
-
import "../../../plus/salesSdk/index.js";
|
|
7
6
|
import { resolveOrderIdForHostActions } from "../../../plus/pisellReservation/components/bookingDetailModal/bookingDetailHostActions.js";
|
|
8
7
|
import { usePicoCodingOpenData } from "../../../plus/pisellReservation/hooks/usePicoCodingOpenData.js";
|
|
9
8
|
import { buildReplacementBookingResourcesFromReservationRow } from "../../../plus/pisellReservation/utils/reservationTicketBookingHostParams.js";
|
|
@@ -8,7 +8,6 @@ import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
|
8
8
|
import { useSalesSdkCustomer } from "../../plus/salesSdk/hooks/useSalesSdkCustomer.js";
|
|
9
9
|
import { SalesSdkProvider } from "../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
10
10
|
import { SalesSdkBookingContextProvider } from "../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
11
|
-
import "../../plus/salesSdk/index.js";
|
|
12
11
|
import { ResponsiveBigSaleBase } from "./Base.js";
|
|
13
12
|
import { isBigSaleProductSelectionFlowScene, resolveBigSaleSelectionFlowConfig } from "./selectionFlowConfig.js";
|
|
14
13
|
import dayjs from "dayjs";
|
|
@@ -6,7 +6,6 @@ import useSalesUserLogin, { isRequireLoginChannel } from "../../../../hooks/useS
|
|
|
6
6
|
import { resolvePaymentResultToastV2ViewModel } from "../../../checkout/components/PaymentResultToastV2/resolve.js";
|
|
7
7
|
import PaymentResultToastV2_default from "../../../checkout/components/PaymentResultToastV2/index.js";
|
|
8
8
|
import { useSalesSdk } from "../../../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
9
|
-
import "../../../../plus/salesSdk/index.js";
|
|
10
9
|
import { usePickSaleDetailContext } from "../../hooks/usePickSaleDetailContext.js";
|
|
11
10
|
import { resolveBigSaleAutoProductListPreferences } from "../../utils/productListPreferences.js";
|
|
12
11
|
import { resolveBigSaleProductDisplayConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
//#region src/components/booking/info/addServiceVariant/index.d.ts
|
|
4
2
|
interface AddServiceVariantProps {
|
|
5
3
|
globalState: any;
|
|
6
4
|
setGlobalState: any;
|
|
7
5
|
}
|
|
8
|
-
declare const AddServiceVariant: (props: AddServiceVariantProps) =>
|
|
6
|
+
declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
|
|
9
7
|
//#endregion
|
|
10
8
|
export { AddServiceVariant };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InfoProps } from "./main.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/info/index.d.ts
|
|
5
|
-
declare const APP: (props: InfoProps) =>
|
|
4
|
+
declare const APP: (props: InfoProps) => JSX.Element;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { APP };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/booking/materiels/contacts/index.d.ts
|
|
3
2
|
type ContactType = {
|
|
4
3
|
country_calling_code: string;
|
|
@@ -12,6 +11,6 @@ type ContactsPropsType = {
|
|
|
12
11
|
value: ContactType[];
|
|
13
12
|
onChange: (value: ContactType[]) => void;
|
|
14
13
|
};
|
|
15
|
-
declare const Contacts: (props: ContactsPropsType) =>
|
|
14
|
+
declare const Contacts: (props: ContactsPropsType) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { Contacts };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/materiels/duration/index.d.ts
|
|
@@ -12,6 +11,6 @@ interface DurationProps extends SelectProps {
|
|
|
12
11
|
startDate?: any;
|
|
13
12
|
timeObj?: any;
|
|
14
13
|
}
|
|
15
|
-
declare const Duration: (props: DurationProps) =>
|
|
14
|
+
declare const Duration: (props: DurationProps) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { Duration };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/materiels/startTime/index.d.ts
|
|
@@ -8,6 +7,6 @@ interface StartTimeProps extends SelectProps {
|
|
|
8
7
|
selectProps?: SelectProps;
|
|
9
8
|
timeObjChange?: any;
|
|
10
9
|
}
|
|
11
|
-
declare const StartTime: (props: StartTimeProps) =>
|
|
10
|
+
declare const StartTime: (props: StartTimeProps) => JSX.Element;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { StartTime };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/ecocup/cupList/index.d.ts
|
|
3
2
|
interface CupListProps {
|
|
4
3
|
data: any[];
|
|
5
4
|
}
|
|
6
|
-
declare const CupList: (props: CupListProps) =>
|
|
5
|
+
declare const CupList: (props: CupListProps) => JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { CupList };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="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):
|
|
6
|
+
declare function CustomerList(props: CustomerListProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CustomerList };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DeviceStatus, Eftpos } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
//#region src/components/eftpos/index.d.ts
|
|
4
3
|
interface PosProps {
|
|
5
4
|
/** 厂商类型 */
|
|
@@ -43,6 +42,6 @@ interface PosProps {
|
|
|
43
42
|
getPosComm: (...agrn: unknown[]) => any;
|
|
44
43
|
savePos: (...agrn: unknown[]) => any;
|
|
45
44
|
}
|
|
46
|
-
declare const _default: (props: PosProps) =>
|
|
45
|
+
declare const _default: (props: PosProps) => JSX.Element;
|
|
47
46
|
//#endregion
|
|
48
47
|
export { _default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PosProps } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
//#region src/components/eftposPay/index.d.ts
|
|
4
|
-
declare const _default: (props: PosProps) =>
|
|
3
|
+
declare const _default: (props: PosProps) => JSX.Element | null;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { _default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
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):
|
|
11
|
+
declare function KioskSale(props: KioskSaleProps): JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { KioskSale, KioskSaleProps };
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
8
|
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
9
|
*/
|
|
10
|
-
declare function KioskSkuDetail(props: KioskSkuDetailProps):
|
|
10
|
+
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* @description 从原生回调 payload 中提取 productId
|
|
13
13
|
*/
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/login/index.d.ts
|
|
3
2
|
interface LoginProps {
|
|
4
3
|
title: string;
|
|
5
4
|
style: any;
|
|
6
5
|
onLogin: (values: any, callback: (status: any) => void) => void;
|
|
7
6
|
}
|
|
8
|
-
declare const Login: (props: LoginProps) =>
|
|
7
|
+
declare const Login: (props: LoginProps) => JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Login, LoginProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CustomerCardProps } from "./CustomerCard/index.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { PopoverProps } from "antd";
|
|
4
3
|
//#region src/components/pisellSelectCustomerModal/index.d.ts
|
|
5
4
|
type CustomerDetail = any;
|
|
@@ -12,6 +11,6 @@ interface PisellSelectCustomerModalProps {
|
|
|
12
11
|
keyboardProps?: any;
|
|
13
12
|
virtualKeyInputProps?: any;
|
|
14
13
|
}
|
|
15
|
-
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) =>
|
|
14
|
+
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { PisellSelectCustomerModal };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/productExtension/index.d.ts
|
|
3
2
|
interface ProductExtensionProps {
|
|
4
3
|
onDataChange: any;
|
|
@@ -7,6 +6,6 @@ interface ProductExtensionProps {
|
|
|
7
6
|
declare const ProductExtension: ({
|
|
8
7
|
onDataChange,
|
|
9
8
|
type
|
|
10
|
-
}: ProductExtensionProps) =>
|
|
9
|
+
}: ProductExtensionProps) => JSX.Element;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { ProductExtension };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/ruleSetting/index.d.ts
|
|
3
2
|
interface RuleSettingProps {
|
|
4
3
|
value: any;
|
|
@@ -6,6 +5,6 @@ interface RuleSettingProps {
|
|
|
6
5
|
className: string;
|
|
7
6
|
style: any;
|
|
8
7
|
}
|
|
9
|
-
declare const RuleSetting: (props: RuleSettingProps) =>
|
|
8
|
+
declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { RuleSetting };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
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):
|
|
4
|
+
declare function ScanOrder(props: ScanOrderProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ScanOrder };
|
|
@@ -2,7 +2,6 @@ import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import useEngineContext from "../../hooks/useEngineContext.js";
|
|
3
3
|
import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
4
4
|
import { getTempOrderSyncPayload, shouldApplySharedTempOrderPayload } from "../../plus/salesSdk/tempOrderSync.js";
|
|
5
|
-
import "../../plus/salesSdk/index.js";
|
|
6
5
|
import { useEffect, useRef } from "react";
|
|
7
6
|
import { useMemoizedFn } from "ahooks";
|
|
8
7
|
//#region src/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
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):
|
|
18
|
+
}: SharedSecondaryBigSaleProps): JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SharedSecondaryBigSale, SharedSecondaryBigSaleProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { shoppingCartProps } from "./type.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/shoppingCart/index.d.ts
|
|
5
4
|
declare const shoppingCart: ({
|
|
@@ -9,6 +8,6 @@ declare const shoppingCart: ({
|
|
|
9
8
|
onAddProduct,
|
|
10
9
|
onActiveKey,
|
|
11
10
|
...props
|
|
12
|
-
}: shoppingCartProps) =>
|
|
11
|
+
}: shoppingCartProps) => JSX.Element;
|
|
13
12
|
//#endregion
|
|
14
13
|
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) =>
|
|
23
|
+
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SubTotal };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
//#region src/components/taxSelect/index.d.ts
|
|
4
3
|
interface TaxSelectProps {
|
|
@@ -8,6 +7,6 @@ interface TaxSelectProps {
|
|
|
8
7
|
tax_title?: string;
|
|
9
8
|
onChange: (value: string) => void;
|
|
10
9
|
}
|
|
11
|
-
declare const TaxSelect: (props: TaxSelectProps) =>
|
|
10
|
+
declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { TaxSelect };
|
|
@@ -27,6 +27,6 @@ interface TicketBookingProps {
|
|
|
27
27
|
/** Rendered at the top of BookingInfo body, before the original body content. */
|
|
28
28
|
bodyTopSlot?: React.ReactNode;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: (props: TicketBookingProps) =>
|
|
30
|
+
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { _default, ticketBookingInitialState };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { VenueBookingProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/venueBooking/index.d.ts
|
|
5
5
|
/** 场地预订主组件 */
|
|
6
|
-
declare function VenueBooking(props: VenueBookingProps):
|
|
6
|
+
declare function VenueBooking(props: VenueBookingProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { VenueBooking };
|
package/es/index.js
CHANGED
|
@@ -85,7 +85,6 @@ import { useSalesSdkProducts } from "./plus/salesSdk/hooks/useSalesSdkProducts.j
|
|
|
85
85
|
import SalesSdkDemo from "./plus/salesSdk/demo/index.js";
|
|
86
86
|
import { useSalesSdkDish } from "./plus/salesSdk/hooks/useSalesSdkDish.js";
|
|
87
87
|
import { useSyncOsModule } from "./plus/salesSdk/hooks/useSyncOsModule.js";
|
|
88
|
-
import "./plus/salesSdk/index.js";
|
|
89
88
|
import BigSaleRightActionPanel from "./components/BigSaleRightActionPanel/index.js";
|
|
90
89
|
import { resolveBigSaleSelectionFlowConfig } from "./components/bigSale/selectionFlowConfig.js";
|
|
91
90
|
import BigSale from "./components/bigSale/index.js";
|
|
@@ -138,7 +137,6 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
138
137
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
139
138
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
140
139
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
141
|
-
import "./plus/pisellReservation/index.js";
|
|
142
140
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
143
141
|
import cupProject_default from "./components/ecocup/cupProject/index.js";
|
|
144
142
|
import CupList from "./components/ecocup/cupList/index.js";
|
|
@@ -23,6 +23,6 @@ interface PisellFloorMapPaletteViewAllModalProps {
|
|
|
23
23
|
/** 容器平台:透传到 PisellProResourcePickerModal,手机请传 'h5' */
|
|
24
24
|
platform?: 'pc' | 'h5' | 'ipad';
|
|
25
25
|
}
|
|
26
|
-
declare function PisellFloorMapPaletteViewAllModal(props: PisellFloorMapPaletteViewAllModalProps):
|
|
26
|
+
declare function PisellFloorMapPaletteViewAllModal(props: PisellFloorMapPaletteViewAllModalProps): JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { PisellFloorMapPaletteViewAllModal };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellProResourcePickerModalProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts
|
|
4
|
-
declare function PisellProResourcePickerModal(props: PisellProResourcePickerModalProps):
|
|
4
|
+
declare function PisellProResourcePickerModal(props: PisellProResourcePickerModalProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { PisellProResourcePickerModal };
|
|
@@ -259,4 +259,4 @@ function bookingListToReservationTableRows(bookings) {
|
|
|
259
259
|
return rows;
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
|
-
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds,
|
|
262
|
+
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds, hostBookingUiPatchFromRecord, mergeBookingsForResourceRecord };
|
|
@@ -78,4 +78,4 @@ function toastFloorPlanLoadError(err) {
|
|
|
78
78
|
PisellToast({ content: err instanceof Error ? err.message : String(err) });
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { PISELL_RESERVATION_FLOOR_PLAN_CODE,
|
|
81
|
+
export { PISELL_RESERVATION_FLOOR_PLAN_CODE, ensureShopFloorPlanByCode, saveViewConfigToShopFloorPlan, shopLayoutToSceneElements$1 as shopLayoutToSceneElements, toastFloorPlanLoadError, toastFloorPlanSaveError, unsubscribeShopFloorPlanCodeQuery };
|
|
@@ -927,4 +927,4 @@ function getReservationDataSourceFormColumns() {
|
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
|
-
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels,
|
|
930
|
+
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellTopologyProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/plus/pisellTopology/PisellTopology.d.ts
|
|
4
|
-
declare function PisellTopology(props: PisellTopologyProps):
|
|
4
|
+
declare function PisellTopology(props: PisellTopologyProps): JSX.Element;
|
|
5
5
|
declare const PisellTopologyCore: typeof PisellTopology;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { PisellTopology, PisellTopologyCore };
|