@pisell/private-materials 6.12.330 → 6.12.333
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/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/ProductList/index.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/useBigSaleProductListConfig.js +1 -0
- 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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +2 -2
- package/es/components/eventBooking/components/resourceUsability/index.less +5 -5
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/es/index.js +0 -2
- package/es/plus/multiCurrencySettlement/index.js +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/saasDevice/devicePasscodes/model.js +4 -4
- 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/PrintAction.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -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/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +12 -15
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.less +7 -6
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- 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 +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +2 -2
- package/lib/components/eventBooking/components/resourceUsability/index.less +5 -5
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +12 -15
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.less +7 -6
- package/package.json +4 -4
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -54
|
@@ -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
|
|
@@ -14,7 +14,6 @@ import { generateProductTabs } from "../../../ticketBooking/components/ProductDi
|
|
|
14
14
|
import { useSalesSdkBusinessAvailability } from "../../../../plus/salesSdk/context/SalesSdkBusinessAvailabilityContext.js";
|
|
15
15
|
import { showAddToCartToast } from "../../../../plus/salesSdk/components/showAddToCartToast.js";
|
|
16
16
|
import { mergeBookingsForDisplay } from "../../../../plus/salesSdk/utils/mergeBookingsForDisplay.js";
|
|
17
|
-
import "../../../../plus/salesSdk/index.js";
|
|
18
17
|
import { buildBigSaleProductListPreferencesKey, readBigSaleProductListPreferences, readStoredBigSaleProductListPreferences, removeBigSaleProductListPreferences, resolveBigSaleAutoProductListPreferences, writeBigSaleProductListPreferences } from "../../utils/productListPreferences.js";
|
|
19
18
|
import { resolveBigSaleProductDisplayConfig, useBigSaleProductListConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
20
19
|
import locales_default from "../../locales/index.js";
|
|
@@ -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 { getPosWeekStartsOn, resolvePosCountryCode } from "../../../../utils/posDateLocale.js";
|
|
10
9
|
import dayjs from "dayjs";
|
|
@@ -6,7 +6,6 @@ import { buildInitBookingContextParams, collectBookingIdsFromTempOrder } from ".
|
|
|
6
6
|
import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
7
7
|
import { useSalesSdkCart } from "../../plus/salesSdk/hooks/useSalesSdkCart.js";
|
|
8
8
|
import { SalesSdkPrepareOrderSwitchContext, SalesSdkRootRefreshContext } from "../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
9
|
-
import "../../plus/salesSdk/index.js";
|
|
10
9
|
import { isPersistedBigSaleOrderId } from "./utils/orderIdentity.js";
|
|
11
10
|
import { seedDineInReservationToCart } from "../../plus/pisellReservation/utils/seedDineInReservationToCart.js";
|
|
12
11
|
import BigSale from "./index.js";
|
|
@@ -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
|
/**
|
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
3
3
|
import { generateProductTabs, sortProductsByTabOrder } from "../../ticketBooking/components/ProductDisplayAdapter/utils.js";
|
|
4
4
|
import { ProductDisplayPresets } from "../../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
5
|
+
import "../../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
5
6
|
import { mergeBigSaleProductListPreferences } from "../utils/productListPreferences.js";
|
|
6
7
|
import { useMemo, useRef } from "react";
|
|
7
8
|
import isEqual from "lodash/isEqual";
|
|
@@ -3,7 +3,6 @@ import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122
|
|
|
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 { isPersistedBigSaleOrderId } from "../utils/orderIdentity.js";
|
|
8
7
|
import { resolveOrderIdForHostActions } from "../../../plus/pisellReservation/components/bookingDetailModal/bookingDetailHostActions.js";
|
|
9
8
|
import { usePicoCodingOpenData } from "../../../plus/pisellReservation/hooks/usePicoCodingOpenData.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 { resolveCustomerDetailAppearance } from "../../pro/skuDetailModal/customerDetailPolicy.js";
|
|
13
12
|
import { ResponsiveBigSaleBase } from "./Base.js";
|
|
14
13
|
import { isBigSaleProductSelectionFlowScene, resolveBigSaleSelectionFlowConfig } from "./selectionFlowConfig.js";
|
|
@@ -12,7 +12,6 @@ import { useSalesSdkBusinessAvailability } from "../../../../plus/salesSdk/conte
|
|
|
12
12
|
import { collectUnassignedHolderLines } from "../../../../plus/salesSdk/utils/holderSubmitValidation.js";
|
|
13
13
|
import { isFulfillmentTimingBooking } from "../../../../plus/salesSdk/utils/fulfillmentTimingBooking.js";
|
|
14
14
|
import { useSalesSdk } from "../../../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
15
|
-
import "../../../../plus/salesSdk/index.js";
|
|
16
15
|
import { usePickSaleDetailContext } from "../../hooks/usePickSaleDetailContext.js";
|
|
17
16
|
import { resolveBigSaleAutoProductListPreferences } from "../../utils/productListPreferences.js";
|
|
18
17
|
import { resolveBigSaleProductDisplayConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
&.selectDate {
|
|
122
122
|
.calendar-content,
|
|
123
123
|
.day-item-calendar-content {
|
|
124
|
-
border-color: var(--
|
|
125
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
124
|
+
border-color: var(--theme-color, #7f56d9);
|
|
125
|
+
box-shadow: inset 0 0 0 1px var(--theme-color, #7f56d9);
|
|
126
126
|
box-sizing: border-box;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.pisell-event-usability-selected {
|
|
84
|
-
border: 1px solid var(--
|
|
84
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
85
85
|
// PisellCard 的 hover/background 样式可能晚于业务样式加载;明确覆盖,
|
|
86
86
|
// 避免只剩选中白字而卡片仍是白底。
|
|
87
|
-
background: var(--
|
|
87
|
+
background: var(--theme-color, #7f56d9) !important;
|
|
88
88
|
&:hover {
|
|
89
|
-
background: var(--
|
|
89
|
+
background: var(--theme-color, #7f56d9) !important;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.pisell-event-usability-slot,
|
|
@@ -100,6 +100,6 @@
|
|
|
100
100
|
// box-shadow 补出原来的双像素选中效果。
|
|
101
101
|
.pisell-event-usability.pisell-card-wrap-selected {
|
|
102
102
|
border-width: 1px;
|
|
103
|
-
border-color: var(--
|
|
104
|
-
box-shadow: 0 0 0 1px var(--
|
|
103
|
+
border-color: var(--theme-color, #7f56d9);
|
|
104
|
+
box-shadow: 0 0 0 1px var(--theme-color, #7f56d9);
|
|
105
105
|
}
|
|
@@ -2,7 +2,6 @@ import useEngineContext from "../../hooks/useEngineContext.js";
|
|
|
2
2
|
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.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
|
|
@@ -19,6 +19,7 @@ import { useProducts } from "../../hooks/pisellos/useProducts.js";
|
|
|
19
19
|
import { useService } from "../../../booking/info/service/serviceManager/index.js";
|
|
20
20
|
import ProductDisplayAdapter_default from "../ProductDisplayAdapter/ProductDisplayAdapter.js";
|
|
21
21
|
import { resolveProductDisplayConfig } from "../ProductDisplayAdapter/types.js";
|
|
22
|
+
import "../ProductDisplayAdapter/index.js";
|
|
22
23
|
import notAvailable_default from "../notAvailable/index.js";
|
|
23
24
|
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal.js";
|
|
24
25
|
import dayjs from "dayjs";
|
package/es/index.js
CHANGED
|
@@ -89,7 +89,6 @@ import { useSalesSdkProducts } from "./plus/salesSdk/hooks/useSalesSdkProducts.j
|
|
|
89
89
|
import SalesSdkDemo from "./plus/salesSdk/demo/index.js";
|
|
90
90
|
import { useSalesSdkDish } from "./plus/salesSdk/hooks/useSalesSdkDish.js";
|
|
91
91
|
import { useSyncOsModule } from "./plus/salesSdk/hooks/useSyncOsModule.js";
|
|
92
|
-
import "./plus/salesSdk/index.js";
|
|
93
92
|
import BigSaleRightActionPanel from "./components/BigSaleRightActionPanel/index.js";
|
|
94
93
|
import ResponsiveWrapper from "./components/list/ResponsiveWrapper.js";
|
|
95
94
|
import { resolveBigSaleSelectionFlowConfig } from "./components/bigSale/selectionFlowConfig.js";
|
|
@@ -144,7 +143,6 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
144
143
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
145
144
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
146
145
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
147
|
-
import "./plus/pisellReservation/index.js";
|
|
148
146
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
149
147
|
import cupProject_default from "./components/ecocup/cupProject/index.js";
|
|
150
148
|
import CupList from "./components/ecocup/cupList/index.js";
|
|
@@ -280,4 +280,4 @@ function attachSelectedSettlement(item, selectedSettlement) {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
|
-
export { attachSelectedSettlement, buildSettlementPriceRows, createVirtualOnlySkuDisplayProduct,
|
|
283
|
+
export { attachSelectedSettlement, buildSettlementPriceRows, createVirtualOnlySkuDisplayProduct, formatSettlementAmount, formatSettlementSelectionTotal, formatTempOrderSettlementAmount, getSettlementKey, getSettlementOptions, hasSettlementOptions, hasSufficientVirtualCurrencyBalance, isVirtualOnlySettlementProduct, isVirtualSettlementTempOrder, resolveConfiguredUnavailableReason, resolveLegalSettlementAddOnUnitPrice, resolveSettlementOptionEntries, resolveVirtualSettlementErrorMessage, showVirtualSettlementErrorToast };
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import timezone from "dayjs/plugin/timezone";
|
|
4
|
+
import utc from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
dayjs.extend(timezone);
|
|
8
8
|
const INITIAL_DEVICE_PASSCODE_STATE = {
|
|
9
9
|
deviceIds: [],
|
|
10
10
|
devicesById: {}
|
|
@@ -13,7 +13,6 @@ import { useSalesSdkCustomer } from "../salesSdk/hooks/useSalesSdkCustomer.js";
|
|
|
13
13
|
import locales_default from "./locales.js";
|
|
14
14
|
import { useSalesSdkBookingContext } from "../salesSdk/context/SalesSdkBookingContext.js";
|
|
15
15
|
import { useSalesSdkSummary } from "../salesSdk/hooks/useSalesSdkSummary.js";
|
|
16
|
-
import "../salesSdk/index.js";
|
|
17
16
|
import locales_default$1 from "./components/LineItem/locales.js";
|
|
18
17
|
import { SaleOrderActionBoundary } from "./actions/index.js";
|
|
19
18
|
import { SaleDetailTemplateRenderer } from "./tmpl/index.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import useEngineContext from "../../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.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
|
|
@@ -4,7 +4,6 @@ import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
|
4
4
|
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
5
5
|
import useLogger from "../../../../hooks/useLogger.js";
|
|
6
6
|
import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
7
|
-
import "../../../salesSdk/index.js";
|
|
8
7
|
import { invokeLocalReceiptPrint, resolveLocalReceiptPrintModule, resolveSaleDetailOrderIdFromSales } from "./utils.js";
|
|
9
8
|
import { getRemotePrintActions, getWristbandList } from "../../serve.js";
|
|
10
9
|
import { EBizPrintType } from "./types.js";
|
|
@@ -10,7 +10,6 @@ import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
|
10
10
|
import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
|
|
11
11
|
import { useSalesSdkGlobalScanActivity } from "../../../salesSdk/context/SalesSdkGlobalScanActivityContext.js";
|
|
12
12
|
import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
|
|
13
|
-
import "../../../salesSdk/index.js";
|
|
14
13
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
15
14
|
import { getNumericAmount, getSalesHostModule, resolveSaleDetailOrderIdFromSales, resolveSaleDetailOrderIdFromSalesResult, shouldCloseDialogAfterCheckout, updateLocalOrder } from "./utils.js";
|
|
16
15
|
import { deriveSaleOrderSubmitState } from "../../actions/state.js";
|
|
@@ -5,7 +5,6 @@ import { isAppliedPaymentRecord } from "../../../salesSdk/utils/paymentStatus.js
|
|
|
5
5
|
import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
6
6
|
import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
|
|
7
7
|
import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
|
|
8
|
-
import "../../../salesSdk/index.js";
|
|
9
8
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
10
9
|
import React, { memo, useMemo } from "react";
|
|
11
10
|
import { formatAmount, locales } from "@pisell/utils";
|
|
@@ -5,7 +5,6 @@ import { useSalesSdk } from "../salesSdk/hooks/useSalesSdk.js";
|
|
|
5
5
|
import { SalesSdkProvider } from "../salesSdk/context/SalesSdkProvider.js";
|
|
6
6
|
import { SalesSdkDishProvider } from "../salesSdk/context/SalesSdkDishContext.js";
|
|
7
7
|
import { SalesSdkBookingContextProvider } from "../salesSdk/context/SalesSdkBookingContext.js";
|
|
8
|
-
import "../salesSdk/index.js";
|
|
9
8
|
import Base_default from "./Base.js";
|
|
10
9
|
import { resolveSaleDetailOsProps } from "./osProps.js";
|
|
11
10
|
import React, { forwardRef, useImperativeHandle } from "react";
|
|
@@ -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 useEngineContext from "../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.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";
|
|
@@ -31,4 +31,4 @@ function subscribeBookingDateChange(bookingTicket, callback) {
|
|
|
31
31
|
return typeof off === "function" ? off : () => {};
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export { formatBookingDateTime, subscribeBookingDateChange };
|
|
@@ -71,4 +71,4 @@ function buildHolderListRequestKey(params) {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
|
-
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay,
|
|
74
|
+
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, resolveHolderDisplayConfig };
|
|
@@ -24,9 +24,8 @@ const OptionsModal = (props) => {
|
|
|
24
24
|
const renderType = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalRenderType) || (variant === "phone" ? "drawer" : "modal");
|
|
25
25
|
const isDrawer = renderType === "drawer";
|
|
26
26
|
const isTabletVariant = !isDrawer && (variant === "tablet" || variant === "smallTablet");
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const shouldUseLargeModal = isTabletVariant || isPosTabletViewport;
|
|
27
|
+
const shouldUsePrimaryModalLayout = !isDrawer;
|
|
28
|
+
const modalWidth = isDrawer ? "100%" : isTabletVariant ? "95%" : "80%";
|
|
30
29
|
const platform = isDrawer ? "h5" : variant === "tablet" || variant === "smallTablet" ? "ipad" : "pc";
|
|
31
30
|
useEffect(() => {
|
|
32
31
|
if (!open || typeof window === "undefined" || typeof document === "undefined") return;
|
|
@@ -38,21 +37,20 @@ const OptionsModal = (props) => {
|
|
|
38
37
|
const rect = wrapper === null || wrapper === void 0 ? void 0 : wrapper.getBoundingClientRect();
|
|
39
38
|
const computedStyle = wrapper ? window.getComputedStyle(wrapper) : null;
|
|
40
39
|
const viewport = window.visualViewport;
|
|
41
|
-
const expectedWidth =
|
|
40
|
+
const expectedWidth = shouldUsePrimaryModalLayout ? window.innerWidth * (isTabletVariant ? .95 : .8) : window.innerWidth;
|
|
42
41
|
const actualWidth = (_rect$width = rect === null || rect === void 0 ? void 0 : rect.width) !== null && _rect$width !== void 0 ? _rect$width : null;
|
|
43
42
|
logger === null || logger === void 0 || (_logger$addLog = logger.addLog) === null || _logger$addLog === void 0 || _logger$addLog.call(logger, {
|
|
44
|
-
type:
|
|
43
|
+
type: shouldUsePrimaryModalLayout && actualWidth != null && actualWidth < expectedWidth * .9 ? "warning" : "info",
|
|
45
44
|
title: "SKU选项弹窗-布局",
|
|
46
45
|
metadata: {
|
|
47
46
|
reason,
|
|
48
47
|
variant,
|
|
49
48
|
renderType,
|
|
50
49
|
isTabletVariant,
|
|
51
|
-
|
|
52
|
-
shouldUseLargeModal,
|
|
50
|
+
primaryModalLayoutApplied: shouldUsePrimaryModalLayout,
|
|
53
51
|
configuredWidth: (customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalWidth) || "480px",
|
|
54
52
|
expectedWidth,
|
|
55
|
-
expectedHeight:
|
|
53
|
+
expectedHeight: "95%",
|
|
56
54
|
actual: rect ? {
|
|
57
55
|
width: Number(rect.width.toFixed(2)),
|
|
58
56
|
height: Number(rect.height.toFixed(2)),
|
|
@@ -66,7 +64,7 @@ const OptionsModal = (props) => {
|
|
|
66
64
|
maxHeight: computedStyle.maxHeight,
|
|
67
65
|
transform: computedStyle.transform
|
|
68
66
|
} : null,
|
|
69
|
-
|
|
67
|
+
primaryModalSizeApplied: !shouldUsePrimaryModalLayout || actualWidth != null && actualWidth >= expectedWidth * .9,
|
|
70
68
|
window: {
|
|
71
69
|
innerWidth: window.innerWidth,
|
|
72
70
|
innerHeight: window.innerHeight,
|
|
@@ -95,8 +93,8 @@ const OptionsModal = (props) => {
|
|
|
95
93
|
return () => window.clearTimeout(settledTimer);
|
|
96
94
|
}, [
|
|
97
95
|
customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalWidth,
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
isTabletVariant,
|
|
97
|
+
shouldUsePrimaryModalLayout,
|
|
100
98
|
logger,
|
|
101
99
|
open,
|
|
102
100
|
renderType,
|
|
@@ -149,11 +147,10 @@ const OptionsModal = (props) => {
|
|
|
149
147
|
className: classNames("pisell-sku-options-modal", props.appearanceClassName, {
|
|
150
148
|
"pisell-sku-options-modal--drawer": isDrawer,
|
|
151
149
|
"pisell-sku-options-modal--smallTablet": isTabletVariant && variant === "smallTablet",
|
|
152
|
-
"pisell-sku-options-modal--tablet": isTabletVariant && variant === "tablet"
|
|
153
|
-
"pisell-sku-options-modal--pos-tablet": isPosTabletViewport
|
|
150
|
+
"pisell-sku-options-modal--tablet": isTabletVariant && variant === "tablet"
|
|
154
151
|
}),
|
|
155
152
|
style: _objectSpread2(_objectSpread2({}, props.appearanceStyle), {}, { maxHeight: isDrawer ? "95dvh" : void 0 }),
|
|
156
|
-
height:
|
|
153
|
+
height: "95%",
|
|
157
154
|
footer: /* @__PURE__ */ React.createElement("div", { className: "pisell-plus-sku-options-card-footer" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(NumericStepper, {
|
|
158
155
|
min: canSelectedMin,
|
|
159
156
|
max: canSelectedMax,
|
|
@@ -176,7 +173,7 @@ const OptionsModal = (props) => {
|
|
|
176
173
|
display: "flex",
|
|
177
174
|
flexDirection: "column"
|
|
178
175
|
},
|
|
179
|
-
width:
|
|
176
|
+
width: modalWidth,
|
|
180
177
|
placement: isDrawer ? "bottom" : void 0
|
|
181
178
|
}
|
|
182
179
|
}, /* @__PURE__ */ React.createElement(SelectorGroup, {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SKU 二级规格选择弹窗(OptionsModal)
|
|
3
3
|
* - Drawer 限制在可视区 95dvh 内,超长规格由内容区自行滚动
|
|
4
|
-
* - 与 .pisell-sku-detail-modal
|
|
5
|
-
*
|
|
4
|
+
* - 与 .pisell-sku-detail-modal 对齐:非 Drawer 为 80% 宽 + 95% 高;
|
|
5
|
+
* smallTablet / tablet 下放宽到 95% 宽 + 95% 高
|
|
6
6
|
*/
|
|
7
7
|
.pisell-sku-options-modal {
|
|
8
|
+
height: 95% !important;
|
|
9
|
+
max-height: 884px !important;
|
|
10
|
+
|
|
8
11
|
&--drawer {
|
|
9
12
|
.pisell-lowcode-floating-layer-content,
|
|
10
13
|
.pisell-lowcode-modal-content {
|
|
@@ -18,11 +21,9 @@
|
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
&--smallTablet,
|
|
21
|
-
&--tablet
|
|
22
|
-
// iPad WebPOS 当前会注入 variant=pos;仅由组件在横屏平板视口条件下添加。
|
|
23
|
-
&--pos-tablet {
|
|
24
|
+
&--tablet {
|
|
24
25
|
width: 95% !important;
|
|
25
|
-
height: 95% !important;
|
|
26
|
+
max-height: 95% !important;
|
|
26
27
|
|
|
27
28
|
.pisell-lowcode-modal-content {
|
|
28
29
|
height: 100% !important;
|
|
@@ -6,12 +6,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
|
|
|
6
6
|
import { locales } from "@pisell/utils";
|
|
7
7
|
import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
|
|
8
8
|
import { useRequest } from "ahooks";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import timezone from "dayjs/plugin/timezone";
|
|
10
|
+
import utc from "dayjs/plugin/utc";
|
|
11
11
|
import "./index.less";
|
|
12
12
|
//#region src/plus/walletPassGallery/components/timelineSection/index.tsx
|
|
13
|
-
dayjs.extend(
|
|
14
|
-
dayjs.extend(
|
|
13
|
+
dayjs.extend(timezone);
|
|
14
|
+
dayjs.extend(utc);
|
|
15
15
|
const stateTimeUnix = 1723255863;
|
|
16
16
|
const POLL_INTERVAL = 2e3;
|
|
17
17
|
const POLL_MAX_TIMES = 5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthMethodType,
|
|
1
|
+
import { AuthMethodType, VerificationMethod } from "./shared/types.js";
|
|
2
2
|
import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
|
|
3
3
|
import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
|
|
4
|
-
import { AuthModal } from "./AuthModal.js";
|
|
4
|
+
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,
|
|
229
|
+
export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
&.selectDate {
|
|
122
122
|
.calendar-content,
|
|
123
123
|
.day-item-calendar-content {
|
|
124
|
-
border-color: var(--
|
|
125
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
124
|
+
border-color: var(--theme-color, #7f56d9);
|
|
125
|
+
box-shadow: inset 0 0 0 1px var(--theme-color, #7f56d9);
|
|
126
126
|
box-sizing: border-box;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.pisell-event-usability-selected {
|
|
84
|
-
border: 1px solid var(--
|
|
84
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
85
85
|
// PisellCard 的 hover/background 样式可能晚于业务样式加载;明确覆盖,
|
|
86
86
|
// 避免只剩选中白字而卡片仍是白底。
|
|
87
|
-
background: var(--
|
|
87
|
+
background: var(--theme-color, #7f56d9) !important;
|
|
88
88
|
&:hover {
|
|
89
|
-
background: var(--
|
|
89
|
+
background: var(--theme-color, #7f56d9) !important;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.pisell-event-usability-slot,
|
|
@@ -100,6 +100,6 @@
|
|
|
100
100
|
// box-shadow 补出原来的双像素选中效果。
|
|
101
101
|
.pisell-event-usability.pisell-card-wrap-selected {
|
|
102
102
|
border-width: 1px;
|
|
103
|
-
border-color: var(--
|
|
104
|
-
box-shadow: 0 0 0 1px var(--
|
|
103
|
+
border-color: var(--theme-color, #7f56d9);
|
|
104
|
+
box-shadow: 0 0 0 1px var(--theme-color, #7f56d9);
|
|
105
105
|
}
|
|
@@ -27,9 +27,8 @@ const OptionsModal = (props) => {
|
|
|
27
27
|
const renderType = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalRenderType) || (variant === "phone" ? "drawer" : "modal");
|
|
28
28
|
const isDrawer = renderType === "drawer";
|
|
29
29
|
const isTabletVariant = !isDrawer && (variant === "tablet" || variant === "smallTablet");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const shouldUseLargeModal = isTabletVariant || isPosTabletViewport;
|
|
30
|
+
const shouldUsePrimaryModalLayout = !isDrawer;
|
|
31
|
+
const modalWidth = isDrawer ? "100%" : isTabletVariant ? "95%" : "80%";
|
|
33
32
|
const platform = isDrawer ? "h5" : variant === "tablet" || variant === "smallTablet" ? "ipad" : "pc";
|
|
34
33
|
(0, react.useEffect)(() => {
|
|
35
34
|
if (!open || typeof window === "undefined" || typeof document === "undefined") return;
|
|
@@ -41,21 +40,20 @@ const OptionsModal = (props) => {
|
|
|
41
40
|
const rect = wrapper === null || wrapper === void 0 ? void 0 : wrapper.getBoundingClientRect();
|
|
42
41
|
const computedStyle = wrapper ? window.getComputedStyle(wrapper) : null;
|
|
43
42
|
const viewport = window.visualViewport;
|
|
44
|
-
const expectedWidth =
|
|
43
|
+
const expectedWidth = shouldUsePrimaryModalLayout ? window.innerWidth * (isTabletVariant ? .95 : .8) : window.innerWidth;
|
|
45
44
|
const actualWidth = (_rect$width = rect === null || rect === void 0 ? void 0 : rect.width) !== null && _rect$width !== void 0 ? _rect$width : null;
|
|
46
45
|
logger === null || logger === void 0 || (_logger$addLog = logger.addLog) === null || _logger$addLog === void 0 || _logger$addLog.call(logger, {
|
|
47
|
-
type:
|
|
46
|
+
type: shouldUsePrimaryModalLayout && actualWidth != null && actualWidth < expectedWidth * .9 ? "warning" : "info",
|
|
48
47
|
title: "SKU选项弹窗-布局",
|
|
49
48
|
metadata: {
|
|
50
49
|
reason,
|
|
51
50
|
variant,
|
|
52
51
|
renderType,
|
|
53
52
|
isTabletVariant,
|
|
54
|
-
|
|
55
|
-
shouldUseLargeModal,
|
|
53
|
+
primaryModalLayoutApplied: shouldUsePrimaryModalLayout,
|
|
56
54
|
configuredWidth: (customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalWidth) || "480px",
|
|
57
55
|
expectedWidth,
|
|
58
|
-
expectedHeight:
|
|
56
|
+
expectedHeight: "95%",
|
|
59
57
|
actual: rect ? {
|
|
60
58
|
width: Number(rect.width.toFixed(2)),
|
|
61
59
|
height: Number(rect.height.toFixed(2)),
|
|
@@ -69,7 +67,7 @@ const OptionsModal = (props) => {
|
|
|
69
67
|
maxHeight: computedStyle.maxHeight,
|
|
70
68
|
transform: computedStyle.transform
|
|
71
69
|
} : null,
|
|
72
|
-
|
|
70
|
+
primaryModalSizeApplied: !shouldUsePrimaryModalLayout || actualWidth != null && actualWidth >= expectedWidth * .9,
|
|
73
71
|
window: {
|
|
74
72
|
innerWidth: window.innerWidth,
|
|
75
73
|
innerHeight: window.innerHeight,
|
|
@@ -98,8 +96,8 @@ const OptionsModal = (props) => {
|
|
|
98
96
|
return () => window.clearTimeout(settledTimer);
|
|
99
97
|
}, [
|
|
100
98
|
customConfig === null || customConfig === void 0 ? void 0 : customConfig.modalWidth,
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
isTabletVariant,
|
|
100
|
+
shouldUsePrimaryModalLayout,
|
|
103
101
|
logger,
|
|
104
102
|
open,
|
|
105
103
|
renderType,
|
|
@@ -152,11 +150,10 @@ const OptionsModal = (props) => {
|
|
|
152
150
|
className: (0, classnames.default)("pisell-sku-options-modal", props.appearanceClassName, {
|
|
153
151
|
"pisell-sku-options-modal--drawer": isDrawer,
|
|
154
152
|
"pisell-sku-options-modal--smallTablet": isTabletVariant && variant === "smallTablet",
|
|
155
|
-
"pisell-sku-options-modal--tablet": isTabletVariant && variant === "tablet"
|
|
156
|
-
"pisell-sku-options-modal--pos-tablet": isPosTabletViewport
|
|
153
|
+
"pisell-sku-options-modal--tablet": isTabletVariant && variant === "tablet"
|
|
157
154
|
}),
|
|
158
155
|
style: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props.appearanceStyle), {}, { maxHeight: isDrawer ? "95dvh" : void 0 }),
|
|
159
|
-
height:
|
|
156
|
+
height: "95%",
|
|
160
157
|
footer: /* @__PURE__ */ react.default.createElement("div", { className: "pisell-plus-sku-options-card-footer" }, /* @__PURE__ */ react.default.createElement("div", null, /* @__PURE__ */ react.default.createElement(require_index$1.default, {
|
|
161
158
|
min: canSelectedMin,
|
|
162
159
|
max: canSelectedMax,
|
|
@@ -179,7 +176,7 @@ const OptionsModal = (props) => {
|
|
|
179
176
|
display: "flex",
|
|
180
177
|
flexDirection: "column"
|
|
181
178
|
},
|
|
182
|
-
width:
|
|
179
|
+
width: modalWidth,
|
|
183
180
|
placement: isDrawer ? "bottom" : void 0
|
|
184
181
|
}
|
|
185
182
|
}, /* @__PURE__ */ react.default.createElement(SelectorGroup, {
|