@pisell/private-materials 6.11.218 → 6.11.220
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/ecocup/cupList/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useSkuModal.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/orderList/config.d.ts +0 -1
- package/es/plus/pisellReservation/PisellReservation.js +0 -2
- package/es/plus/pisellReservation/components/blockTimeModal/demo.d.ts +0 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/es/plus/pisellReservation/floorRoomCard/mapRowToFloorRoomCardData.d.ts +13 -2
- package/es/plus/pisellReservation/floorRoomCard/mapRowToFloorRoomCardData.js +46 -26
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/useFloorMapBookingInteraction.d.ts +1 -8
- package/es/plus/pisellReservation/hooks/useFloorMapBookingInteraction.js +25 -28
- package/es/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +2 -3
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/pisellSalesGrid/PisellSalesGrid.js +7 -2
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -2
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.js +18 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/plus/walletPassGallery/index.d.ts +0 -1
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/es/pro/skuDetailModal/components/weighing/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/ecocup/cupList/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useSkuModal.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/orderList/config.d.ts +0 -1
- package/lib/plus/pisellReservation/PisellReservation.js +0 -2
- package/lib/plus/pisellReservation/components/blockTimeModal/demo.d.ts +0 -1
- package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/lib/plus/pisellReservation/floorRoomCard/mapRowToFloorRoomCardData.d.ts +13 -2
- package/lib/plus/pisellReservation/floorRoomCard/mapRowToFloorRoomCardData.js +32 -26
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/useFloorMapBookingInteraction.d.ts +1 -8
- package/lib/plus/pisellReservation/hooks/useFloorMapBookingInteraction.js +13 -37
- package/lib/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +2 -3
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +7 -2
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -2
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.js +11 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/index.d.ts +0 -1
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/lib/pro/skuDetailModal/components/weighing/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -110,4 +111,11 @@ export declare const walkInData: {
|
|
|
110
111
|
id: number;
|
|
111
112
|
nickname: string;
|
|
112
113
|
};
|
|
113
|
-
export declare const Provider: any, Context:
|
|
114
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
115
|
+
state: FormState;
|
|
116
|
+
} & {
|
|
117
|
+
dispatch: (params: {
|
|
118
|
+
type: string;
|
|
119
|
+
payload: any;
|
|
120
|
+
}) => void;
|
|
121
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
|
|
|
175
175
|
export declare const getDuration: (duration: number | {
|
|
176
176
|
type: string;
|
|
177
177
|
value: number;
|
|
178
|
-
}) => number | {
|
|
178
|
+
}) => number | "flexible" | {
|
|
179
179
|
type: string;
|
|
180
180
|
value: number;
|
|
181
|
-
}
|
|
181
|
+
};
|
|
182
182
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
183
183
|
export declare const getIsEdit: (state: any) => boolean;
|
|
184
184
|
export {};
|
|
@@ -18,7 +18,7 @@ export declare const useWalletPass: (props: {
|
|
|
18
18
|
cardData: any;
|
|
19
19
|
handleSelectWallet: (value: number[]) => void;
|
|
20
20
|
selectedWalletIds: any[];
|
|
21
|
-
expiredWalletIds: any;
|
|
21
|
+
expiredWalletIds: any[];
|
|
22
22
|
expiredWalletData: any;
|
|
23
23
|
disabledWalletData: any[];
|
|
24
24
|
clearAllSelectedWallet: () => void;
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PosProps, RouteType } from './const';
|
|
3
2
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
3
|
action: RouteType;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "init" | "fail" | "reject" | "pedding" | "resove" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
|
|
|
176
176
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
177
177
|
type: EActionTypes;
|
|
178
178
|
payload: {
|
|
179
|
-
status: "
|
|
179
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
/**
|
|
@@ -297,20 +297,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
name?: string | undefined;
|
|
298
298
|
symbol?: string | undefined;
|
|
299
299
|
amount?: string | number | undefined;
|
|
300
|
-
mode?: "
|
|
300
|
+
mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
|
|
301
301
|
order_id?: string | number | undefined;
|
|
302
302
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
|
|
303
|
-
action?: "amount" | "
|
|
303
|
+
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
304
304
|
key?: number | undefined;
|
|
305
305
|
step?: number | undefined;
|
|
306
306
|
title?: string | undefined;
|
|
307
307
|
subTitle?: string | undefined;
|
|
308
|
-
type?: "
|
|
308
|
+
type?: "unset" | "step" | undefined;
|
|
309
309
|
render?: boolean | undefined;
|
|
310
310
|
net?: boolean | undefined;
|
|
311
311
|
component?: string | undefined;
|
|
312
312
|
form?: string | undefined;
|
|
313
|
-
status?: "
|
|
313
|
+
status?: "loading" | "warn" | "success" | "init" | "fail" | "reject" | "pedding" | "resove" | "question" | undefined;
|
|
314
314
|
warn?: string | undefined;
|
|
315
315
|
steps?: {
|
|
316
316
|
/** 用于重置当前步骤 */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -30,4 +31,11 @@ export interface PayGroup {
|
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
orderDetail: any;
|
|
32
33
|
}
|
|
33
|
-
export declare const Provider: any, Context:
|
|
34
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
35
|
+
state: FormState;
|
|
36
|
+
} & {
|
|
37
|
+
dispatch: (params: {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: any;
|
|
40
|
+
}) => void;
|
|
41
|
+
}>;
|
|
@@ -22,7 +22,7 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
|
22
22
|
order_id: string;
|
|
23
23
|
payment_group_id: number;
|
|
24
24
|
payments: {
|
|
25
|
-
amount: string | number
|
|
25
|
+
amount: string | number;
|
|
26
26
|
wallet_pass_use_value: any;
|
|
27
27
|
voucher_id: any;
|
|
28
28
|
tag: any;
|
|
@@ -51,7 +51,7 @@ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
53
53
|
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
54
|
-
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number
|
|
54
|
+
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number;
|
|
55
55
|
export declare const clientPayment: (params: {
|
|
56
56
|
order_id: number;
|
|
57
57
|
type: "aliPay" | "wxPay" | 'google_pay';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -637,8 +637,6 @@ var PisellReservationCore = (props) => {
|
|
|
637
637
|
onFloorMapBookingClick,
|
|
638
638
|
dataSources,
|
|
639
639
|
mergedTableRows: tables,
|
|
640
|
-
reservationRuleProduct,
|
|
641
|
-
associated_menu_list_ids: reservationAssociatedMenuListIds,
|
|
642
640
|
reservationBiz: BIZ,
|
|
643
641
|
resourceSelectMode
|
|
644
642
|
});
|
|
@@ -6,8 +6,8 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
|
|
|
6
6
|
export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
|
|
7
7
|
export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
|
|
8
8
|
export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
|
|
9
|
-
export declare const getShopFloorPlanByCode: (code: string, subscribe?:
|
|
10
|
-
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<
|
|
9
|
+
export declare const getShopFloorPlanByCode: (code: string, subscribe?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
|
|
10
|
+
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
|
|
11
11
|
export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
|
|
12
12
|
export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
|
|
13
13
|
/**
|
|
@@ -43,7 +43,18 @@ export declare function resolveBookingStripIdForUi(raw: Record<string, unknown>)
|
|
|
43
43
|
*/
|
|
44
44
|
export declare function resolveBookingIdForHeader(raw: Record<string, unknown>): string;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* `
|
|
46
|
+
* 预约详情弹窗:完全基于「这一条 booking raw」(`sales.getResourceBookingItem` 返回的元素,
|
|
47
|
+
* 与平面图传入的 `floorMapSourceBookings` 子项格式同源)构造 RoomCard 数据。
|
|
48
|
+
*
|
|
49
|
+
* 设计原则:
|
|
50
|
+
* - `bookings` 始终为 `[rawToBooking(raw, 0)]`,**不**再走 `mapPisellReservationRowToFloorRoomCardData`
|
|
51
|
+
* 里基于 `tableRow.cardStatus` / `floorMapSourceBookings` status 的判定,避免「completed /
|
|
52
|
+
* canceled / no_show 等非 occupied/reserved」状态导致 `bookings` 退化为空数组。
|
|
53
|
+
* - `status` 严格按 `raw.status`:`occupied` → `occupied`,其余(含 `reserved` / 历史完成 /
|
|
54
|
+
* 取消等)→ `reserved`,让小条始终展示,且历史记录以中性预约色呈现。
|
|
55
|
+
* - `sub_status` 由 booking 自身字段(`timeoutTime` / `lateTime` / `order_payment_status`)推导,
|
|
56
|
+
* 不依赖 `tableRow` 上派生过的 host 进度状态,与「完全依赖接口数据」一致。
|
|
57
|
+
* - `main_field` / `capacity` 取自 `tableRow`(桌位属性,raw 不一定带);视觉上 Modal 透传
|
|
58
|
+
* `hideHeader` / `hideHeaderCapacity`,二者主要参与数据完整性而非 header 渲染。
|
|
48
59
|
*/
|
|
49
60
|
export declare function buildDetailModalRoomCardData(raw: Record<string, unknown>, tableRow: PisellReservationTableRow | null | undefined): FloorRoomCardData;
|
|
@@ -557,38 +557,44 @@ function resolveBookingIdForHeader(raw) {
|
|
|
557
557
|
return pick(raw.booking_id) || pick(raw.booking_uid) || pick(raw.id) || "—";
|
|
558
558
|
}
|
|
559
559
|
function buildDetailModalRoomCardData(raw, tableRow) {
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
|
|
560
|
+
const cap = (tableRow == null ? void 0 : tableRow.capacityLabel) != null && String(tableRow.capacityLabel).trim() !== "" ? tableRow.capacityLabel : "—";
|
|
561
|
+
const stripTitle = resolveBookingStripIdForUi(raw).trim();
|
|
562
|
+
const main_field = stripTitle || (tableRow == null ? void 0 : tableRow.code) || "";
|
|
563
|
+
const booking = rawToBooking(raw, 0);
|
|
564
|
+
const rawStatus = String(raw.status ?? "").trim().toLowerCase();
|
|
565
|
+
const status = rawStatus === "occupied" ? "occupied" : "reserved";
|
|
566
|
+
let sub_status;
|
|
567
|
+
if (status === "occupied") {
|
|
568
|
+
if (booking.timeoutTime != null && booking.timeoutTime > 0) {
|
|
569
|
+
sub_status = "timeout";
|
|
570
|
+
} else if (booking.order_payment_status === "unpaid") {
|
|
571
|
+
sub_status = "payment_required";
|
|
572
|
+
} else {
|
|
573
|
+
sub_status = "payed";
|
|
574
|
+
}
|
|
575
|
+
} else if (booking.lateTime != null && booking.lateTime > 0) {
|
|
576
|
+
sub_status = "late";
|
|
577
|
+
} else {
|
|
578
|
+
sub_status = "not_arrived";
|
|
579
|
+
}
|
|
578
580
|
const order = raw.order ?? {};
|
|
579
581
|
const orderDisplayNumber = order.shop_full_order_number != null && String(order.shop_full_order_number).trim() !== "" ? String(order.shop_full_order_number).trim() : "";
|
|
580
582
|
const summary = order.summary;
|
|
581
583
|
const currencySymbol = order.currency_symbol != null && String(order.currency_symbol).trim() !== "" ? String(order.currency_symbol).trim() : "$";
|
|
582
584
|
const totalAmount = (summary == null ? void 0 : summary.total_amount) != null && String(summary.total_amount).trim() !== "" ? String(summary.total_amount).trim() : "";
|
|
583
585
|
const inlineTotal = totalAmount ? `${import_utils.locales.getText("pisell-reservation.booking-detail.total")}: ${totalAmount.startsWith(currencySymbol) ? totalAmount : `${currencySymbol}${totalAmount}`}` : "";
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
586
|
+
const finalBooking = {
|
|
587
|
+
...booking,
|
|
588
|
+
items_summary_suffix: inlineTotal || booking.items_summary_suffix,
|
|
589
|
+
order_display_number: orderDisplayNumber || booking.order_display_number
|
|
590
|
+
};
|
|
591
|
+
return {
|
|
592
|
+
main_field,
|
|
593
|
+
capacity: cap,
|
|
594
|
+
status,
|
|
595
|
+
sub_status,
|
|
596
|
+
bookings: [finalBooking]
|
|
597
|
+
};
|
|
592
598
|
}
|
|
593
599
|
// Annotate the CommonJS export names for ESM import in node:
|
|
594
600
|
0 && (module.exports = {
|
|
@@ -22,16 +22,9 @@ export declare function useFloorMapBookingInteraction(options: {
|
|
|
22
22
|
* 已打开的「预约详情」弹窗的 raw / 行数据。
|
|
23
23
|
*/
|
|
24
24
|
mergedTableRows: PisellReservationTableRow[];
|
|
25
|
-
/**
|
|
26
|
-
* 预约规则(fulfillment.enabled_resource_rules type=link)命中的第一个有效时长商品;
|
|
27
|
-
* 点击空桌时用它回填新建弹窗的 service.value[0]。为 null 时空桌点击不做处理。
|
|
28
|
-
*/
|
|
29
|
-
reservationRuleProduct?: any | null;
|
|
30
|
-
/** pico menu 关联餐牌 ID,传入 TicketBooking 覆盖 getProducts 的 menu_list_ids */
|
|
31
|
-
associated_menu_list_ids?: number[];
|
|
32
25
|
/**
|
|
33
26
|
* 与场控 `getPicoCodingOpenData` target 中的 BIZ 一致(如 `dine_in`)。
|
|
34
|
-
* `dine_in`
|
|
27
|
+
* 旧店铺(id=2155)非 `dine_in` 时点击有效 booking 走宿主结账抽屉。
|
|
35
28
|
*/
|
|
36
29
|
reservationBiz?: string;
|
|
37
30
|
/** 资源选择模式:点击资源时只把资源信息回传给调用方 */
|