@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.
Files changed (134) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.js +21 -21
  8. package/build/lowcode/view.js +21 -21
  9. package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
  10. package/es/components/appointmentBooking/index.d.ts +1 -2
  11. package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
  12. package/es/components/bigSale/components/TimeBar/index.js +0 -1
  13. package/es/components/bigSale/dialog.d.ts +1 -0
  14. package/es/components/bigSale/dialog.js +29 -4
  15. package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
  16. package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
  17. package/es/components/bigSale/index.js +0 -1
  18. package/es/components/bigSale/templates/Kiosk/index.js +0 -1
  19. package/es/components/booking/deposit/index.d.ts +1 -3
  20. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
  21. package/es/components/booking/info/index.d.ts +1 -2
  22. package/es/components/booking/materiels/contacts/index.d.ts +1 -2
  23. package/es/components/booking/materiels/duration/index.d.ts +1 -2
  24. package/es/components/booking/materiels/startTime/index.d.ts +1 -2
  25. package/es/components/ecocup/cupList/index.d.ts +1 -2
  26. package/es/components/ecocup/customerList/index.d.ts +2 -2
  27. package/es/components/eftpos/index.d.ts +1 -2
  28. package/es/components/eftposPay/index.d.ts +1 -2
  29. package/es/components/eventBooking/index.d.ts +1 -2
  30. package/es/components/kioskSale/index.d.ts +2 -2
  31. package/es/components/kioskSkuDetail/index.d.ts +1 -1
  32. package/es/components/login/index.d.ts +1 -2
  33. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
  34. package/es/components/productExtension/index.d.ts +1 -2
  35. package/es/components/ruleSetting/index.d.ts +1 -2
  36. package/es/components/scanOrder/index.d.ts +2 -2
  37. package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
  38. package/es/components/sharedSecondaryBigSale/index.d.ts +2 -2
  39. package/es/components/shoppingCart/index.d.ts +1 -2
  40. package/es/components/subTotal/index.d.ts +1 -1
  41. package/es/components/taxSelect/index.d.ts +1 -2
  42. package/es/components/ticketBooking/index.d.ts +1 -1
  43. package/es/components/venueBooking/index.d.ts +2 -2
  44. package/es/components/walletList/index.d.ts +1 -2
  45. package/es/index.js +0 -2
  46. package/es/plus/orderList/index.d.ts +1 -1
  47. package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  48. package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  49. package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  50. package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
  51. package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
  52. package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
  53. package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  54. package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  55. package/es/plus/pisellSalesManagement/index.d.ts +1 -1
  56. package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
  57. package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  58. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +5 -7
  59. package/es/plus/saasCreateOrganization/index.d.ts +1 -2
  60. package/es/plus/saleDetail/Base.js +0 -1
  61. package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
  62. package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
  63. package/es/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
  64. package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
  65. package/es/plus/saleDetail/index.js +0 -1
  66. package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
  67. package/es/plus/saleDetail/tmpl/B/index.js +0 -1
  68. package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
  69. package/es/plus/salesSdk/utils/bookingDate.js +1 -1
  70. package/es/plus/salesSdk/utils/customerAuthGate.js +1 -1
  71. package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
  72. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
  73. package/es/plus/walletPassGallery/index.d.ts +1 -2
  74. package/es/pro/Login2.0/AuthModal.d.ts +1 -1
  75. package/es/pro/Login2.0/index.d.ts +1 -2
  76. package/es/pro/Login2.0/shared/types.d.ts +1 -1
  77. package/es/pro/Selector/Item.d.ts +1 -1
  78. package/es/pro/numberKeyboard/index.d.ts +1 -1
  79. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
  80. package/es/pro/skuDetailModal/components/weighing/index.d.ts +1 -2
  81. package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
  82. package/lib/components/appointmentBooking/index.d.ts +2 -2
  83. package/lib/components/bigSale/dialog.d.ts +1 -0
  84. package/lib/components/bigSale/dialog.js +29 -3
  85. package/lib/components/booking/deposit/index.d.ts +2 -3
  86. package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
  87. package/lib/components/booking/info/index.d.ts +2 -2
  88. package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
  89. package/lib/components/booking/materiels/duration/index.d.ts +2 -2
  90. package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
  91. package/lib/components/ecocup/cupList/index.d.ts +2 -2
  92. package/lib/components/ecocup/customerList/index.d.ts +2 -2
  93. package/lib/components/eftpos/index.d.ts +2 -2
  94. package/lib/components/eftposPay/index.d.ts +2 -2
  95. package/lib/components/eventBooking/index.d.ts +2 -2
  96. package/lib/components/kioskSale/index.d.ts +2 -2
  97. package/lib/components/kioskSkuDetail/index.d.ts +1 -1
  98. package/lib/components/login/index.d.ts +2 -2
  99. package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
  100. package/lib/components/productExtension/index.d.ts +2 -2
  101. package/lib/components/ruleSetting/index.d.ts +2 -2
  102. package/lib/components/scanOrder/index.d.ts +2 -2
  103. package/lib/components/sharedSecondaryBigSale/index.d.ts +2 -2
  104. package/lib/components/shoppingCart/index.d.ts +2 -2
  105. package/lib/components/subTotal/index.d.ts +1 -1
  106. package/lib/components/taxSelect/index.d.ts +2 -2
  107. package/lib/components/ticketBooking/index.d.ts +1 -1
  108. package/lib/components/venueBooking/index.d.ts +2 -2
  109. package/lib/components/walletList/index.d.ts +2 -2
  110. package/lib/plus/orderList/index.d.ts +1 -1
  111. package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  112. package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  113. package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  114. package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  115. package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  116. package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
  117. package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
  118. package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  119. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -7
  120. package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
  121. package/lib/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
  122. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
  123. package/lib/plus/walletPassGallery/index.d.ts +2 -2
  124. package/lib/pro/Selector/Item.d.ts +1 -1
  125. package/lib/pro/numberKeyboard/index.d.ts +1 -1
  126. package/lib/pro/pisellPhoneKeyboard/index.d.ts +2 -2
  127. package/lib/pro/skuDetailModal/components/weighing/index.d.ts +2 -2
  128. package/package.json +3 -3
  129. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
  130. package/es/plus/pisellReservation/index.js +0 -17
  131. package/es/plus/salesSdk/index.js +0 -51
  132. package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
  133. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
  134. /package/es/{plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts → private-materials/lowcode/authmodal/meta.d.ts} +0 -0
@@ -1,12 +1,10 @@
1
- import React from "react";
2
-
3
1
  //#region src/plus/productSelect/ProductCard/SkuCard/index.d.ts
4
2
  declare const SkuCard: {
5
- (props: any): React.JSX.Element | null;
6
- A1: (props: any) => React.JSX.Element;
7
- A2: (props: any) => React.JSX.Element;
8
- A5: (props: any) => React.JSX.Element;
9
- A9: (props: any) => React.JSX.Element;
3
+ (props: any): JSX.Element | null;
4
+ A1: (props: any) => JSX.Element;
5
+ A2: (props: any) => JSX.Element;
6
+ A5: (props: any) => JSX.Element;
7
+ A9: (props: any) => JSX.Element;
10
8
  };
11
9
  //#endregion
12
10
  export { SkuCard };
@@ -1,6 +1,5 @@
1
1
  import { SCOProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/plus/saasCreateOrganization/index.d.ts
4
- declare const SaasCreateOrganization: (props: SCOProps) => React.JSX.Element;
3
+ declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
5
4
  //#endregion
6
5
  export { SaasCreateOrganization };
@@ -11,7 +11,6 @@ import { useSalesSdkCart } from "../salesSdk/hooks/useSalesSdkCart.js";
11
11
  import { useSalesSdkCustomer } from "../salesSdk/hooks/useSalesSdkCustomer.js";
12
12
  import { useSalesSdkBookingContext } from "../salesSdk/context/SalesSdkBookingContext.js";
13
13
  import { useSalesSdkSummary } from "../salesSdk/hooks/useSalesSdkSummary.js";
14
- import "../salesSdk/index.js";
15
14
  import locales_default from "./locales.js";
16
15
  import locales_default$1 from "./components/LineItem/locales.js";
17
16
  import { SaleOrderActionBoundary } from "./actions/index.js";
@@ -1,7 +1,6 @@
1
1
  import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import useEngineContext from "../../../../../hooks/useEngineContext.js";
3
3
  import { useSalesSdkBookingContext } from "../../../../salesSdk/context/SalesSdkBookingContext.js";
4
- import "../../../../salesSdk/index.js";
5
4
  import { useMemo } from "react";
6
5
  import { useMemoizedFn } from "ahooks";
7
6
  //#region src/plus/saleDetail/components/Client/hooks/useClientSelectorProps.ts
@@ -9,7 +9,6 @@ import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
9
9
  import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
10
10
  import { useSalesSdkGlobalScanActivity } from "../../../salesSdk/context/SalesSdkGlobalScanActivityContext.js";
11
11
  import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
12
- import "../../../salesSdk/index.js";
13
12
  import { getNumericAmount, getSalesHostModule, resolveSaleDetailOrderIdFromSales, resolveSaleDetailOrderIdFromSalesResult, shouldCloseDialogAfterCheckout, updateLocalOrder } from "./utils.js";
14
13
  import { getRemotePrintActions, getWristbandList } from "../../serve.js";
15
14
  import { deriveSaleOrderSubmitState } from "../../actions/state.js";
@@ -1,4 +1,4 @@
1
- import React, { Key, ReactNode, Ref } from "react";
1
+ import { Key, ReactNode, Ref } from "react";
2
2
  //#region src/plus/saleDetail/components/PromotionWalletPanels/index.d.ts
3
3
  type SaleDetailPromotionWalletPanelTone = 'default' | 'success' | 'warning' | 'danger';
4
4
  type PromotionWalletPanelsAppearance = 'dark' | 'light';
@@ -4,7 +4,6 @@ import { isAppliedPaymentRecord } from "../../../salesSdk/utils/paymentStatus.js
4
4
  import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
5
5
  import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
6
6
  import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
7
- import "../../../salesSdk/index.js";
8
7
  import React, { memo, useMemo } from "react";
9
8
  import { formatAmount, locales } from "@pisell/utils";
10
9
  import Decimal from "decimal.js";
@@ -4,7 +4,6 @@ import { useSalesSdk } from "../salesSdk/hooks/useSalesSdk.js";
4
4
  import { SalesSdkProvider } from "../salesSdk/context/SalesSdkProvider.js";
5
5
  import { SalesSdkDishProvider } from "../salesSdk/context/SalesSdkDishContext.js";
6
6
  import { SalesSdkBookingContextProvider } from "../salesSdk/context/SalesSdkBookingContext.js";
7
- import "../salesSdk/index.js";
8
7
  import Base_default from "./Base.js";
9
8
  import React, { forwardRef, useImperativeHandle } from "react";
10
9
  //#region src/plus/saleDetail/index.tsx
@@ -1,7 +1,6 @@
1
1
  import useStableInstanceId from "../../../../../../hooks/useStableInstanceId.js";
2
2
  import { useSalesSdkDish } from "../../../../../salesSdk/hooks/useSalesSdkDish.js";
3
3
  import { useCurrentSalesSdkDish } from "../../../../../salesSdk/hooks/useCurrentSalesSdkDish.js";
4
- import "../../../../../salesSdk/index.js";
5
4
  import { SaleDetailStatusOverview } from "../shared/StatusOverview.js";
6
5
  import { DishGroupView } from "./DishGroupView.js";
7
6
  import dayjs from "dayjs";
@@ -1,7 +1,6 @@
1
1
  import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import useEngineContext from "../../../../hooks/useEngineContext.js";
3
3
  import { useCurrentSalesSdkDish } from "../../../salesSdk/hooks/useCurrentSalesSdkDish.js";
4
- import "../../../salesSdk/index.js";
5
4
  import { getInternalNotesByScheduleEvent } from "../../serve.js";
6
5
  import { TEMPLATE_B_PAY_ACTIONS, TEMPLATE_B_SUMMARY_ACTIONS } from "../../components/DetailActions/configs/index.js";
7
6
  import { DetailActions } from "../../components/DetailActions/index.js";
@@ -340,4 +340,4 @@ function createAddProductWithFlowDebounced(deps) {
340
340
  };
341
341
  }
342
342
  //#endregion
343
- export { createAddProductWithFlowDebounced, shouldBypassAddProductDebounce };
343
+ export { createAddProductWithFlowDebounced };
@@ -31,4 +31,4 @@ function subscribeBookingDateChange(bookingTicket, callback) {
31
31
  return typeof off === "function" ? off : () => {};
32
32
  }
33
33
  //#endregion
34
- export { BOOKING_CONTEXT_DATE_EVENT, formatBookingDateTime, subscribeBookingDateChange };
34
+ export { formatBookingDateTime, subscribeBookingDateChange };
@@ -62,4 +62,4 @@ function normalizeCustomerAuthCustomer(value) {
62
62
  return null;
63
63
  }
64
64
  //#endregion
65
- export { isHolderRequiredProduct, isKioskRuntime, isValidOrderCustomerId, normalizeCustomerAuthCustomer, resolveCustomerAuthCurrentCustomerId, shouldPromptCustomerAuthForProduct };
65
+ export { isValidOrderCustomerId, normalizeCustomerAuthCustomer, resolveCustomerAuthCurrentCustomerId, shouldPromptCustomerAuthForProduct };
@@ -71,4 +71,4 @@ function buildHolderListRequestKey(params) {
71
71
  });
72
72
  }
73
73
  //#endregion
74
- export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, pickHolderIdFromBooking, resolveHolderDisplayConfig };
74
+ export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, resolveHolderDisplayConfig };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/plus/walletPassGallery/components/passDetail/index.d.ts
3
2
  interface PassDetailProps {
4
3
  dataSource?: any | null;
@@ -8,6 +7,6 @@ interface PassDetailProps {
8
7
  showTimeLine?: boolean;
9
8
  onListRefresh?: () => void;
10
9
  }
11
- declare const PassDetail: (props: PassDetailProps) => React.JSX.Element | null;
10
+ declare const PassDetail: (props: PassDetailProps) => JSX.Element | null;
12
11
  //#endregion
13
12
  export { PassDetail };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/plus/walletPassGallery/index.d.ts
3
2
  interface WalletPassGalleryProps {
4
3
  hideTitle: boolean;
@@ -7,6 +6,6 @@ interface WalletPassGalleryProps {
7
6
  platform?: 'pc' | 'h5';
8
7
  [key: string]: any;
9
8
  }
10
- declare const WalletPassGallery: (props: WalletPassGalleryProps) => React.JSX.Element;
9
+ declare const WalletPassGallery: (props: WalletPassGalleryProps) => JSX.Element;
11
10
  //#endregion
12
11
  export { WalletPassGallery };
@@ -14,4 +14,4 @@ interface AuthModalProps {
14
14
  */
15
15
  declare const AuthModal: React.FC<AuthModalProps>;
16
16
  //#endregion
17
- export { AuthModal };
17
+ export { AuthModal, AuthModalProps };
@@ -1,4 +1,3 @@
1
- import { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LoginFormData, OAuthConfig, PhoneAuthConfig, RegisterFormData, UIConfig, VerificationMethod } from "./shared/types.js";
2
1
  import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
3
2
  import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
4
- import { AuthModal } from "./AuthModal.js";
3
+ import { AuthModal, AuthModalProps } from "./AuthModal.js";
@@ -226,4 +226,4 @@ interface RegisterFormData {
226
226
  verification_token?: string;
227
227
  }
228
228
  //#endregion
229
- export { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
229
+ export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig };
@@ -17,6 +17,6 @@ interface IItemProps {
17
17
  */
18
18
  onClick?: React.MouseEventHandler<HTMLDivElement>;
19
19
  }
20
- declare const Item: (props: IItemProps) => React.JSX.Element;
20
+ declare const Item: (props: IItemProps) => JSX.Element;
21
21
  //#endregion
22
22
  export { Item };
@@ -24,6 +24,6 @@ interface NumberKeyboardProps {
24
24
  /** 输入框的样式 */
25
25
  inputStyle?: React.CSSProperties;
26
26
  }
27
- declare const NumberKeyboard: (props: NumberKeyboardProps) => React.JSX.Element;
27
+ declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
28
28
  //#endregion
29
29
  export { NumberKeyboard };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { PopoverProps } from "antd";
3
2
  //#region src/pro/pisellPhoneKeyboard/index.d.ts
4
3
  interface PisellPhoneKeyboardProps {
@@ -9,6 +8,6 @@ interface PisellPhoneKeyboardProps {
9
8
  keyboardProps?: any;
10
9
  virtualKeyInputProps?: any;
11
10
  }
12
- declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => React.JSX.Element;
11
+ declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
13
12
  //#endregion
14
13
  export { PisellPhoneKeyboard };
@@ -1,2 +1 @@
1
- import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
2
- import React from "react";
1
+ import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/appointmentBooking/deposit/index.d.ts
3
- declare const Deposit: (props: any) => React.JSX.Element;
3
+ declare const Deposit: (props: any) => JSX.Element;
4
4
  //#endregion
5
5
  export { Deposit };
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/appointmentBooking/index.d.ts
3
- declare const AppointmentBooking: () => React.JSX.Element;
3
+ declare const AppointmentBooking: () => JSX.Element;
4
4
  //#endregion
5
5
  export { AppointmentBooking };
@@ -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;
@@ -86,7 +86,7 @@ function _prepareFreshOrderForCreateSeed() {
86
86
  * @example
87
87
  * <BigSaleDialogLifecycle open createSeed={null} onCreateSeedReady={() => setReady(true)} />
88
88
  */
89
- function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onCreateSeedError, onEditReady }) {
89
+ function BigSaleDialogLifecycle({ open, contentActive, openNonce = 0, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onCreateSeedError, onEditReady }) {
90
90
  const sales = require_useSalesSdk.useSalesSdk();
91
91
  const cart = require_useSalesSdkCart.useSalesSdkCart();
92
92
  const refreshRoot = react.default.useContext(require_SalesSdkProvider.SalesSdkRootRefreshContext);
@@ -117,9 +117,27 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
117
117
  onCreateSeedErrorRef.current = onCreateSeedError;
118
118
  const onEditReadyRef = (0, react.useRef)(onEditReady);
119
119
  onEditReadyRef.current = onEditReady;
120
+ const previousContentActiveRef = (0, react.useRef)(contentActive);
121
+ const closeCleanupPromiseRef = (0, react.useRef)(null);
120
122
  const createSeedKey = buildBigSaleCreateSeedKey(createSeed);
121
123
  const hasBookingTicket = Boolean(sales.bookingTicket);
122
124
  /**
125
+ * 缓存弹窗关闭动画完成后再重置整单,避免清理工作影响关闭帧。
126
+ * 极快重开时,后续 load/seed 会等待同一个清理任务,避免覆盖新订单。
127
+ */
128
+ (0, react.useEffect)(() => {
129
+ const wasContentActive = previousContentActiveRef.current;
130
+ previousContentActiveRef.current = contentActive;
131
+ if (!wasContentActive || contentActive || !salesRef.current.bookingTicket) return;
132
+ const cleanupPromise = salesRef.current.restore().then(() => void 0).catch((error) => {
133
+ console.warn("[BigSaleDialog] close cleanup failed", error);
134
+ });
135
+ closeCleanupPromiseRef.current = cleanupPromise;
136
+ cleanupPromise.finally(() => {
137
+ if (closeCleanupPromiseRef.current === cleanupPromise) closeCleanupPromiseRef.current = null;
138
+ });
139
+ }, [contentActive, hasBookingTicket]);
140
+ /**
123
141
  * 每次 open / openNonce / 桌位变化时释放 seed 锁并作废进行中的 async。
124
142
  *
125
143
  * @example
@@ -153,6 +171,8 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
153
171
  require_asyncToGenerator._asyncToGenerator(function* () {
154
172
  try {
155
173
  var _liveSales$bookingTic, _liveSales$bookingTic2, _liveSales$bookingTic3, _liveSales$bookingTic4, _liveSales$bookingTic5, _refreshRootRef$curre, _onEditReadyRef$curre;
174
+ yield closeCleanupPromiseRef.current;
175
+ if (isStaleEditLoad()) return;
156
176
  const matchingPreloadedSalesDetail = resolveMatchingPreloadedSalesDetail(preloadedSalesDetailRef.current, orderId);
157
177
  yield liveSales.loadDetail(matchingPreloadedSalesDetail ? {
158
178
  orderId,
@@ -205,6 +225,8 @@ function BigSaleDialogLifecycle({ open, openNonce = 0, orderId, preloadedSalesDe
205
225
  require_asyncToGenerator._asyncToGenerator(function* () {
206
226
  try {
207
227
  var _salesRef$current$boo4, _salesRef$current$boo5, _salesRef$current$boo6, _salesRef$current$boo7, _salesRef$current$boo8, _refreshRootRef$curre2, _onCreateSeedReadyRef;
228
+ yield closeCleanupPromiseRef.current;
229
+ if (isStaleSeed()) return;
208
230
  yield prepareFreshOrderForCreateSeed(salesRef.current);
209
231
  if (isStaleSeed()) return;
210
232
  if (currentSeed) {
@@ -290,9 +312,10 @@ function BigSaleDialogHeaderBar({ onClose, fallbackTitle, variant }) {
290
312
  * @example
291
313
  * <BigSaleDialogBootstrap open orderId={123} />
292
314
  */
293
- function BigSaleDialogBootstrap({ open, openNonce, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onEditReady }) {
315
+ function BigSaleDialogBootstrap({ open, contentActive, openNonce, orderId, preloadedSalesDetail, createSeed, bookingConfigParams, onCreateSeedReady, onEditReady }) {
294
316
  return /* @__PURE__ */ react.default.createElement(BigSaleDialogLifecycle, {
295
317
  open,
318
+ contentActive,
296
319
  openNonce,
297
320
  orderId,
298
321
  preloadedSalesDetail,
@@ -319,7 +342,7 @@ function BigSaleDialogBootstrap({ open, openNonce, orderId, preloadedSalesDetail
319
342
  */
320
343
  function BigSaleDialog(props) {
321
344
  var _createSeed$row2, _createSeed$row$id2, _createSeed$row3;
322
- 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;
345
+ 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;
323
346
  const isPhoneVariant = variant === "phone";
324
347
  const isEditMode = Boolean(orderId);
325
348
  const shouldMoveCloseToActionBar = isEditMode && !isPhoneVariant;
@@ -436,6 +459,7 @@ function BigSaleDialog(props) {
436
459
  const lifecycleOpen = open && contentActive;
437
460
  const bootstrapSlot = (0, react.useMemo)(() => /* @__PURE__ */ react.default.createElement(BigSaleDialogBootstrap, {
438
461
  open: lifecycleOpen,
462
+ contentActive,
439
463
  openNonce,
440
464
  orderId,
441
465
  preloadedSalesDetail,
@@ -444,6 +468,7 @@ function BigSaleDialog(props) {
444
468
  onCreateSeedReady: handleCreateSeedReady
445
469
  }), [
446
470
  lifecycleOpen,
471
+ contentActive,
447
472
  openNonce,
448
473
  orderId,
449
474
  preloadedSalesDetail,
@@ -508,6 +533,7 @@ function BigSaleDialog(props) {
508
533
  destroyOnUnmount,
509
534
  selectionFlowScene: "product-selection",
510
535
  isActive: contentActive,
536
+ enableGlobalScanListener,
511
537
  autoCreate: false,
512
538
  autoBootstrap: false,
513
539
  autoRestoreOnInit: false,
@@ -1,6 +1,5 @@
1
- import React from "react";
2
-
1
+ /// <reference types="react" />
3
2
  //#region src/components/booking/deposit/index.d.ts
4
- declare const Deposit: (props: any) => React.JSX.Element;
3
+ declare const Deposit: (props: any) => JSX.Element;
5
4
  //#endregion
6
5
  export { Deposit };
@@ -1,10 +1,9 @@
1
- import React from "react";
2
-
1
+ /// <reference types="react" />
3
2
  //#region src/components/booking/info/addServiceVariant/index.d.ts
4
3
  interface AddServiceVariantProps {
5
4
  globalState: any;
6
5
  setGlobalState: any;
7
6
  }
8
- declare const AddServiceVariant: (props: AddServiceVariantProps) => React.JSX.Element;
7
+ declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
9
8
  //#endregion
10
9
  export { AddServiceVariant };
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  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) => React.JSX.Element;
5
+ declare const APP: (props: InfoProps) => JSX.Element;
6
6
  //#endregion
7
7
  export { APP };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
15
+ declare const Contacts: (props: ContactsPropsType) => JSX.Element;
16
16
  //#endregion
17
17
  export { Contacts };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
15
+ declare const Duration: (props: DurationProps) => JSX.Element;
16
16
  //#endregion
17
17
  export { Duration };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
11
+ declare const StartTime: (props: StartTimeProps) => JSX.Element;
12
12
  //#endregion
13
13
  export { StartTime };
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
6
+ declare const CupList: (props: CupListProps) => JSX.Element;
7
7
  //#endregion
8
8
  export { CupList };
@@ -1,8 +1,8 @@
1
- import React from "react";
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): React.JSX.Element;
6
+ declare function CustomerList(props: CustomerListProps): JSX.Element;
7
7
  //#endregion
8
8
  export { CustomerList };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  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) => React.JSX.Element;
46
+ declare const _default: (props: PosProps) => JSX.Element;
47
47
  //#endregion
48
48
  export { _default };
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  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) => React.JSX.Element | null;
4
+ declare const _default: (props: PosProps) => JSX.Element | null;
5
5
  //#endregion
6
6
  export { _default };
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/eventBooking/index.d.ts
3
- declare const EventBooking: () => React.JSX.Element;
3
+ declare const EventBooking: () => JSX.Element;
4
4
  //#endregion
5
5
  export { EventBooking };
@@ -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): React.JSX.Element;
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): React.JSX.Element;
10
+ declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
11
11
  /**
12
12
  * @description 从原生回调 payload 中提取 productId
13
13
  */
@@ -1,10 +1,10 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
8
+ declare const Login: (props: LoginProps) => JSX.Element;
9
9
  //#endregion
10
10
  export { Login, LoginProps };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  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) => React.JSX.Element;
15
+ declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
16
16
  //#endregion
17
17
  export { PisellSelectCustomerModal };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
10
+ }: ProductExtensionProps) => JSX.Element;
11
11
  //#endregion
12
12
  export { ProductExtension };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
9
+ declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
10
10
  //#endregion
11
11
  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): React.JSX.Element;
4
+ declare function ScanOrder(props: ScanOrderProps): JSX.Element;
5
5
  //#endregion
6
6
  export { ScanOrder };
@@ -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): React.JSX.Element;
18
+ }: SharedSecondaryBigSaleProps): JSX.Element;
19
19
  //#endregion
20
20
  export { SharedSecondaryBigSale, SharedSecondaryBigSaleProps };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  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) => React.JSX.Element;
12
+ }: shoppingCartProps) => 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) => React.JSX.Element;
23
+ declare const SubTotal: (props: SubTotalProps) => JSX.Element;
24
24
  //#endregion
25
25
  export { SubTotal };