@pisell/private-materials 6.12.173 → 6.12.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.js +21 -21
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
- package/es/components/appointmentBooking/index.d.ts +1 -2
- package/es/components/booking/deposit/index.d.ts +1 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
- package/es/components/booking/info/index.d.ts +1 -2
- package/es/components/booking/materiels/contacts/index.d.ts +1 -2
- package/es/components/booking/materiels/duration/index.d.ts +1 -2
- package/es/components/booking/materiels/startTime/index.d.ts +1 -2
- package/es/components/ecocup/cupList/index.d.ts +1 -2
- package/es/components/ecocup/customerList/index.d.ts +2 -2
- package/es/components/eftpos/index.d.ts +1 -2
- package/es/components/eftposPay/index.d.ts +1 -2
- package/es/components/eventBooking/index.d.ts +1 -2
- package/es/components/kioskSale/index.d.ts +2 -2
- package/es/components/kioskSkuDetail/index.d.ts +1 -1
- package/es/components/login/index.d.ts +1 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
- package/es/components/productExtension/index.d.ts +1 -2
- package/es/components/ruleSetting/index.d.ts +1 -2
- package/es/components/scanOrder/index.d.ts +2 -2
- package/es/components/sharedSecondaryBigSale/index.d.ts +2 -2
- package/es/components/shoppingCart/index.d.ts +1 -2
- package/es/components/subTotal/index.d.ts +1 -1
- package/es/components/taxSelect/index.d.ts +1 -2
- package/es/components/ticketBooking/index.d.ts +1 -1
- package/es/components/venueBooking/index.d.ts +2 -2
- package/es/components/walletList/index.d.ts +1 -2
- package/es/plus/orderList/index.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +27 -1
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +7 -10
- package/es/plus/pisellSalesManagement/index.d.ts +1 -1
- package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +5 -7
- package/es/plus/saasCreateOrganization/index.d.ts +1 -2
- package/es/plus/saasDevice/appPeripheral/components/ConnectExistingDeviceModal.js +1 -1
- package/es/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
- package/es/plus/walletPassGallery/index.d.ts +1 -2
- package/es/pro/Selector/Item.d.ts +1 -1
- package/es/pro/numberKeyboard/index.d.ts +1 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
- package/es/pro/skuDetailModal/components/weighing/index.d.ts +1 -2
- package/es/pro/skuDetailModal/components/weighing/index.js +2 -1
- package/es/pro/skuDetailModal/index.js +5 -4
- package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
- package/lib/components/appointmentBooking/index.d.ts +2 -2
- package/lib/components/booking/deposit/index.d.ts +2 -3
- package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
- package/lib/components/booking/info/index.d.ts +2 -2
- package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
- package/lib/components/booking/materiels/duration/index.d.ts +2 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
- package/lib/components/ecocup/cupList/index.d.ts +2 -2
- package/lib/components/ecocup/customerList/index.d.ts +2 -2
- package/lib/components/eftpos/index.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +2 -2
- package/lib/components/eventBooking/index.d.ts +2 -2
- package/lib/components/kioskSale/index.d.ts +2 -2
- package/lib/components/kioskSkuDetail/index.d.ts +1 -1
- package/lib/components/login/index.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
- package/lib/components/productExtension/index.d.ts +2 -2
- package/lib/components/ruleSetting/index.d.ts +2 -2
- package/lib/components/scanOrder/index.d.ts +2 -2
- package/lib/components/sharedSecondaryBigSale/index.d.ts +2 -2
- package/lib/components/shoppingCart/index.d.ts +2 -2
- package/lib/components/subTotal/index.d.ts +1 -1
- package/lib/components/taxSelect/index.d.ts +2 -2
- package/lib/components/ticketBooking/index.d.ts +1 -1
- package/lib/components/venueBooking/index.d.ts +2 -2
- package/lib/components/walletList/index.d.ts +2 -2
- package/lib/plus/orderList/index.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
- package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
- package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
- package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +27 -0
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +6 -9
- package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
- package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
- package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -7
- package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
- package/lib/plus/saasDevice/appPeripheral/components/ConnectExistingDeviceModal.js +1 -1
- package/lib/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
- package/lib/plus/walletPassGallery/index.d.ts +2 -2
- package/lib/pro/Selector/Item.d.ts +1 -1
- package/lib/pro/numberKeyboard/index.d.ts +1 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +2 -2
- package/lib/pro/skuDetailModal/components/weighing/index.d.ts +2 -2
- package/lib/pro/skuDetailModal/components/weighing/index.js +2 -1
- package/lib/pro/skuDetailModal/index.js +5 -4
- package/package.json +3 -3
- package/es/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
//#region src/components/booking/info/addServiceVariant/index.d.ts
|
|
4
2
|
interface AddServiceVariantProps {
|
|
5
3
|
globalState: any;
|
|
6
4
|
setGlobalState: any;
|
|
7
5
|
}
|
|
8
|
-
declare const AddServiceVariant: (props: AddServiceVariantProps) =>
|
|
6
|
+
declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
|
|
9
7
|
//#endregion
|
|
10
8
|
export { AddServiceVariant };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InfoProps } from "./main.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/info/index.d.ts
|
|
5
|
-
declare const APP: (props: InfoProps) =>
|
|
4
|
+
declare const APP: (props: InfoProps) => JSX.Element;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { APP };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/booking/materiels/contacts/index.d.ts
|
|
3
2
|
type ContactType = {
|
|
4
3
|
country_calling_code: string;
|
|
@@ -12,6 +11,6 @@ type ContactsPropsType = {
|
|
|
12
11
|
value: ContactType[];
|
|
13
12
|
onChange: (value: ContactType[]) => void;
|
|
14
13
|
};
|
|
15
|
-
declare const Contacts: (props: ContactsPropsType) =>
|
|
14
|
+
declare const Contacts: (props: ContactsPropsType) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { Contacts };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/materiels/duration/index.d.ts
|
|
@@ -12,6 +11,6 @@ interface DurationProps extends SelectProps {
|
|
|
12
11
|
startDate?: any;
|
|
13
12
|
timeObj?: any;
|
|
14
13
|
}
|
|
15
|
-
declare const Duration: (props: DurationProps) =>
|
|
14
|
+
declare const Duration: (props: DurationProps) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { Duration };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
|
|
4
3
|
//#region src/components/booking/materiels/startTime/index.d.ts
|
|
@@ -8,6 +7,6 @@ interface StartTimeProps extends SelectProps {
|
|
|
8
7
|
selectProps?: SelectProps;
|
|
9
8
|
timeObjChange?: any;
|
|
10
9
|
}
|
|
11
|
-
declare const StartTime: (props: StartTimeProps) =>
|
|
10
|
+
declare const StartTime: (props: StartTimeProps) => JSX.Element;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { StartTime };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/ecocup/cupList/index.d.ts
|
|
3
2
|
interface CupListProps {
|
|
4
3
|
data: any[];
|
|
5
4
|
}
|
|
6
|
-
declare const CupList: (props: CupListProps) =>
|
|
5
|
+
declare const CupList: (props: CupListProps) => JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { CupList };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/ecocup/customerList/index.d.ts
|
|
3
3
|
interface CustomerListProps {
|
|
4
4
|
data: any[];
|
|
5
5
|
}
|
|
6
|
-
declare function CustomerList(props: CustomerListProps):
|
|
6
|
+
declare function CustomerList(props: CustomerListProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CustomerList };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DeviceStatus, Eftpos } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
//#region src/components/eftpos/index.d.ts
|
|
4
3
|
interface PosProps {
|
|
5
4
|
/** 厂商类型 */
|
|
@@ -43,6 +42,6 @@ interface PosProps {
|
|
|
43
42
|
getPosComm: (...agrn: unknown[]) => any;
|
|
44
43
|
savePos: (...agrn: unknown[]) => any;
|
|
45
44
|
}
|
|
46
|
-
declare const _default: (props: PosProps) =>
|
|
45
|
+
declare const _default: (props: PosProps) => JSX.Element;
|
|
47
46
|
//#endregion
|
|
48
47
|
export { _default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PosProps } from "./const.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
//#region src/components/eftposPay/index.d.ts
|
|
4
|
-
declare const _default: (props: PosProps) =>
|
|
3
|
+
declare const _default: (props: PosProps) => JSX.Element | null;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { _default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BigSaleProps } from "../bigSale/types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/kioskSale/index.d.ts
|
|
5
5
|
type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' | 'secondaryScreenDisplay' | 'saleDetailTemplate' | 'template' | 'tmpl'> & {
|
|
@@ -8,6 +8,6 @@ type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' |
|
|
|
8
8
|
/**
|
|
9
9
|
* 面向顾客的竖屏自助点餐入口;业务数据继续复用 BigSale / SalesSdk。
|
|
10
10
|
*/
|
|
11
|
-
declare function KioskSale(props: KioskSaleProps):
|
|
11
|
+
declare function KioskSale(props: KioskSaleProps): JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { KioskSale, KioskSaleProps };
|
|
@@ -7,7 +7,7 @@ import React from "react";
|
|
|
7
7
|
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
8
|
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
9
|
*/
|
|
10
|
-
declare function KioskSkuDetail(props: KioskSkuDetailProps):
|
|
10
|
+
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* @description 从原生回调 payload 中提取 productId
|
|
13
13
|
*/
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/login/index.d.ts
|
|
3
2
|
interface LoginProps {
|
|
4
3
|
title: string;
|
|
5
4
|
style: any;
|
|
6
5
|
onLogin: (values: any, callback: (status: any) => void) => void;
|
|
7
6
|
}
|
|
8
|
-
declare const Login: (props: LoginProps) =>
|
|
7
|
+
declare const Login: (props: LoginProps) => JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { Login, LoginProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CustomerCardProps } from "./CustomerCard/index.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { PopoverProps } from "antd";
|
|
4
3
|
//#region src/components/pisellSelectCustomerModal/index.d.ts
|
|
5
4
|
type CustomerDetail = any;
|
|
@@ -12,6 +11,6 @@ interface PisellSelectCustomerModalProps {
|
|
|
12
11
|
keyboardProps?: any;
|
|
13
12
|
virtualKeyInputProps?: any;
|
|
14
13
|
}
|
|
15
|
-
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) =>
|
|
14
|
+
declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { PisellSelectCustomerModal };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/productExtension/index.d.ts
|
|
3
2
|
interface ProductExtensionProps {
|
|
4
3
|
onDataChange: any;
|
|
@@ -7,6 +6,6 @@ interface ProductExtensionProps {
|
|
|
7
6
|
declare const ProductExtension: ({
|
|
8
7
|
onDataChange,
|
|
9
8
|
type
|
|
10
|
-
}: ProductExtensionProps) =>
|
|
9
|
+
}: ProductExtensionProps) => JSX.Element;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { ProductExtension };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
//#region src/components/ruleSetting/index.d.ts
|
|
3
2
|
interface RuleSettingProps {
|
|
4
3
|
value: any;
|
|
@@ -6,6 +5,6 @@ interface RuleSettingProps {
|
|
|
6
5
|
className: string;
|
|
7
6
|
style: any;
|
|
8
7
|
}
|
|
9
|
-
declare const RuleSetting: (props: RuleSettingProps) =>
|
|
8
|
+
declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { RuleSetting };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ScanOrderProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/scanOrder/index.d.ts
|
|
4
|
-
declare function ScanOrder(props: ScanOrderProps):
|
|
4
|
+
declare function ScanOrder(props: ScanOrderProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ScanOrder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BigSaleProps } from "../bigSale/types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sharedSecondaryBigSale/index.d.ts
|
|
5
5
|
interface SharedSecondaryBigSaleProps extends Pick<BigSaleProps, 'className' | 'saleDetailModuleConfig' | 'secondaryScreenDisplay' | 'style'> {
|
|
@@ -15,6 +15,6 @@ declare function SharedSecondaryBigSale({
|
|
|
15
15
|
secondaryScreenDisplay,
|
|
16
16
|
className,
|
|
17
17
|
style
|
|
18
|
-
}: SharedSecondaryBigSaleProps):
|
|
18
|
+
}: SharedSecondaryBigSaleProps): JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SharedSecondaryBigSale, SharedSecondaryBigSaleProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { shoppingCartProps } from "./type.js";
|
|
2
|
-
import React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/shoppingCart/index.d.ts
|
|
5
4
|
declare const shoppingCart: ({
|
|
@@ -9,6 +8,6 @@ declare const shoppingCart: ({
|
|
|
9
8
|
onAddProduct,
|
|
10
9
|
onActiveKey,
|
|
11
10
|
...props
|
|
12
|
-
}: shoppingCartProps) =>
|
|
11
|
+
}: shoppingCartProps) => JSX.Element;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { shoppingCart };
|
|
@@ -20,6 +20,6 @@ interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
describe?: string;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
-
declare const SubTotal: (props: SubTotalProps) =>
|
|
23
|
+
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { SubTotal };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SelectProps } from "antd";
|
|
3
2
|
//#region src/components/taxSelect/index.d.ts
|
|
4
3
|
interface TaxSelectProps {
|
|
@@ -8,6 +7,6 @@ interface TaxSelectProps {
|
|
|
8
7
|
tax_title?: string;
|
|
9
8
|
onChange: (value: string) => void;
|
|
10
9
|
}
|
|
11
|
-
declare const TaxSelect: (props: TaxSelectProps) =>
|
|
10
|
+
declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { TaxSelect };
|
|
@@ -27,6 +27,6 @@ interface TicketBookingProps {
|
|
|
27
27
|
/** Rendered at the top of BookingInfo body, before the original body content. */
|
|
28
28
|
bodyTopSlot?: React.ReactNode;
|
|
29
29
|
}
|
|
30
|
-
declare const _default: (props: TicketBookingProps) =>
|
|
30
|
+
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { _default, ticketBookingInitialState };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { VenueBookingProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/venueBooking/index.d.ts
|
|
5
5
|
/** 场地预订主组件 */
|
|
6
|
-
declare function VenueBooking(props: VenueBookingProps):
|
|
6
|
+
declare function VenueBooking(props: VenueBookingProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { VenueBooking };
|
|
@@ -23,6 +23,6 @@ interface PisellFloorMapPaletteViewAllModalProps {
|
|
|
23
23
|
/** 容器平台:透传到 PisellProResourcePickerModal,手机请传 'h5' */
|
|
24
24
|
platform?: 'pc' | 'h5' | 'ipad';
|
|
25
25
|
}
|
|
26
|
-
declare function PisellFloorMapPaletteViewAllModal(props: PisellFloorMapPaletteViewAllModalProps):
|
|
26
|
+
declare function PisellFloorMapPaletteViewAllModal(props: PisellFloorMapPaletteViewAllModalProps): JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { PisellFloorMapPaletteViewAllModal };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellProResourcePickerModalProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts
|
|
4
|
-
declare function PisellProResourcePickerModal(props: PisellProResourcePickerModalProps):
|
|
4
|
+
declare function PisellProResourcePickerModal(props: PisellProResourcePickerModalProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { PisellProResourcePickerModal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
|
@@ -50,5 +50,31 @@ const formatPhone = (value, countryCallingCode) => {
|
|
|
50
50
|
}
|
|
51
51
|
return "";
|
|
52
52
|
};
|
|
53
|
+
/** 兼容远端预约 contacts_info 与 OS Server 订单 contacts 数组。 */
|
|
54
|
+
const getBookingContactDisplay = (record) => {
|
|
55
|
+
const order = record === null || record === void 0 ? void 0 : record.order;
|
|
56
|
+
const contactsInfo = order === null || order === void 0 ? void 0 : order.contacts_info;
|
|
57
|
+
const contact = Array.isArray(contactsInfo) ? contactsInfo[0] : contactsInfo || (Array.isArray(order === null || order === void 0 ? void 0 : order.contacts) ? order.contacts[0] : null);
|
|
58
|
+
if (!contact) return {
|
|
59
|
+
contact: null,
|
|
60
|
+
phone: "",
|
|
61
|
+
email: "",
|
|
62
|
+
compareValue: "-"
|
|
63
|
+
};
|
|
64
|
+
const phone = formatPhone(contact === null || contact === void 0 ? void 0 : contact.phone, contact === null || contact === void 0 ? void 0 : contact.country_calling_code);
|
|
65
|
+
const email = String(contact.email || "").trim();
|
|
66
|
+
return {
|
|
67
|
+
contact,
|
|
68
|
+
phone,
|
|
69
|
+
email,
|
|
70
|
+
compareValue: [
|
|
71
|
+
contact === null || contact === void 0 ? void 0 : contact.display_name,
|
|
72
|
+
contact === null || contact === void 0 ? void 0 : contact.first_name,
|
|
73
|
+
contact === null || contact === void 0 ? void 0 : contact.last_name,
|
|
74
|
+
phone,
|
|
75
|
+
email
|
|
76
|
+
].filter(Boolean).join("|") || "-"
|
|
77
|
+
};
|
|
78
|
+
};
|
|
53
79
|
//#endregion
|
|
54
|
-
export { Tag$1 as Tag, buildDateTime, formatAmount, formatPhone, getDisplayLines, normalizeList, parseJson, textStyles };
|
|
80
|
+
export { Tag$1 as Tag, buildDateTime, formatAmount, formatPhone, getBookingContactDisplay, getDisplayLines, normalizeList, parseJson, textStyles };
|
|
@@ -6,7 +6,7 @@ import ClientName from "../../clientName/index.js";
|
|
|
6
6
|
import { PAYMENT_STATUS_COLOR_MAP, getPaymentStatusMap } from "../config/order.js";
|
|
7
7
|
import { BOOKING_STATUS_COLOR_MAP, getBookingHeaderLabels, getBookingPlatformMap, getBookingStatusMap, getFilterButtonList, getSortList } from "../config/booking.js";
|
|
8
8
|
import { BUSINESS_COLOR_MAP, getBusinessLabelMap } from "../config/index.js";
|
|
9
|
-
import { Tag as Tag$1, buildDateTime, formatAmount as formatAmount$1, formatPhone, getDisplayLines, normalizeList, parseJson, textStyles } from "./perspectiveUtils.js";
|
|
9
|
+
import { Tag as Tag$1, buildDateTime, formatAmount as formatAmount$1, formatPhone, getBookingContactDisplay, getDisplayLines, normalizeList, parseJson, textStyles } from "./perspectiveUtils.js";
|
|
10
10
|
import BookingNotesPreview_default from "../components/BookingNotesPreview.js";
|
|
11
11
|
import BookingFormsPreview from "../components/BookingFormsPreview.js";
|
|
12
12
|
import React, { useCallback, useMemo } from "react";
|
|
@@ -185,23 +185,20 @@ const useBookingPerspective = (params, options) => {
|
|
|
185
185
|
align: "center",
|
|
186
186
|
width: 150,
|
|
187
187
|
uniformCompare: (_, record) => {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (!contactValue) return "-";
|
|
191
|
-
return contactValue;
|
|
188
|
+
var _getBookingContactDis;
|
|
189
|
+
return (_getBookingContactDis = getBookingContactDisplay(record)) === null || _getBookingContactDis === void 0 ? void 0 : _getBookingContactDis.compareValue;
|
|
192
190
|
},
|
|
193
191
|
render: (_, record) => {
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const lines = getDisplayLines([formatPhone(contactValue === null || contactValue === void 0 ? void 0 : contactValue.phone), contactValue === null || contactValue === void 0 ? void 0 : contactValue.email]);
|
|
192
|
+
const { contact, phone, email } = getBookingContactDisplay(record);
|
|
193
|
+
if (!contact) return "-";
|
|
194
|
+
const lines = getDisplayLines([phone, email]);
|
|
198
195
|
return /* @__PURE__ */ React.createElement("div", { style: {
|
|
199
196
|
display: "flex",
|
|
200
197
|
flexDirection: "column",
|
|
201
198
|
alignItems: "center",
|
|
202
199
|
textAlign: "center"
|
|
203
200
|
} }, /* @__PURE__ */ React.createElement(ClientName, {
|
|
204
|
-
dataSource:
|
|
201
|
+
dataSource: contact,
|
|
205
202
|
style: { fontSize: 14 }
|
|
206
203
|
}), lines.map((line, index) => /* @__PURE__ */ React.createElement("div", {
|
|
207
204
|
key: `${line}-${index}`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellTopologyProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/plus/pisellTopology/PisellTopology.d.ts
|
|
4
|
-
declare function PisellTopology(props: PisellTopologyProps):
|
|
4
|
+
declare function PisellTopology(props: PisellTopologyProps): JSX.Element;
|
|
5
5
|
declare const PisellTopologyCore: typeof PisellTopology;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { PisellTopology, PisellTopologyCore };
|
|
@@ -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):
|
|
6
|
-
A1: (props: any) =>
|
|
7
|
-
A2: (props: any) =>
|
|
8
|
-
A5: (props: any) =>
|
|
9
|
-
A9: (props: any) =>
|
|
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) =>
|
|
3
|
+
declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { SaasCreateOrganization };
|
|
@@ -147,7 +147,7 @@ const ConnectExistingDeviceModal = ({ open, mode, connectionType, targetStructur
|
|
|
147
147
|
})));
|
|
148
148
|
return /* @__PURE__ */ React.createElement(PisellModal, {
|
|
149
149
|
open,
|
|
150
|
-
width: isPhoneVariant ? "100%" : step === "pick" ? "
|
|
150
|
+
width: isPhoneVariant ? "100%" : step === "pick" ? "80%" : "860px",
|
|
151
151
|
okVisible: step === "config",
|
|
152
152
|
okText: getText("pisell2.saas.device-planning.add.save"),
|
|
153
153
|
cancelText: getText("pisell2.saas.device-planning.add.cancel"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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';
|
|
@@ -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) =>
|
|
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) =>
|
|
9
|
+
declare const WalletPassGallery: (props: WalletPassGalleryProps) => JSX.Element;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { WalletPassGallery };
|
|
@@ -24,6 +24,6 @@ interface NumberKeyboardProps {
|
|
|
24
24
|
/** 输入框的样式 */
|
|
25
25
|
inputStyle?: React.CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
declare const NumberKeyboard: (props: NumberKeyboardProps) =>
|
|
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) =>
|
|
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";
|
|
@@ -11,13 +11,14 @@ import { MAX_RETAIL_SCALE_WEIGHT_KG, STANDARD_WEIGHT_UNIT, UNIT_PRICE_PRECISION,
|
|
|
11
11
|
import { AutoResizeText, Iconfont } from "@pisell/materials";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
//#region src/pro/skuDetailModal/components/weighing/index.tsx
|
|
14
|
+
const EMPTY_TARE_OPTIONS = [];
|
|
14
15
|
const Weighing = (props) => {
|
|
15
16
|
var _context$engine, _context$appHelper, _context$appHelper$ge, _context$appHelper$ge2, _initialValue$mode, _initialTare$value, _initialValue$weight, _ref, _scale$connectionStat, _scale$rawData;
|
|
16
17
|
const context = useEngineContext();
|
|
17
18
|
locales.init(locales_default, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || "en");
|
|
18
19
|
const getText = (key, fallback) => locales.getText(key) || fallback;
|
|
19
20
|
const noTareLabel = getText("pisell2.text.sku.detail.modal.weighing.none.tare", "No Tare");
|
|
20
|
-
const { isEditMode: isEditModeProp, tareOptions: tareOptionsProp =
|
|
21
|
+
const { isEditMode: isEditModeProp, tareOptions: tareOptionsProp = EMPTY_TARE_OPTIONS, initialValue, unit: scaleUnit = STANDARD_WEIGHT_UNIT, currencySymbol = "$", scalePriceProduct, onChange } = props;
|
|
21
22
|
/**
|
|
22
23
|
* 从宿主注入的 plugins 中取出 nativeScaleTools(硬件监听 + 单位换算 + 称重计价)。
|
|
23
24
|
* 开发阶段不做兼容:若未注入则直接抛错,由宿主侧保证插件存在。
|
|
@@ -1526,6 +1526,10 @@ const SkuDetailModal = ({ onConfirm, onRemove, onClose, variant }, ref) => {
|
|
|
1526
1526
|
}, [productTitle]);
|
|
1527
1527
|
const isRemoveDisabled = !!(productData === null || productData === void 0 || (_productData$_extend4 = productData._extend) === null || _productData$_extend4 === void 0 || (_productData$_extend4 = _productData$_extend4.metadata) === null || _productData$_extend4 === void 0 ? void 0 : _productData$_extend4.product_add_schedule_time);
|
|
1528
1528
|
const productDescription = (productData === null || productData === void 0 ? void 0 : productData.description) || "";
|
|
1529
|
+
const handleWeighingChange = useCallback((value) => {
|
|
1530
|
+
setWeighingData(value);
|
|
1531
|
+
updateCustomFlowDraft({ weighing: value }, ["weighing"]);
|
|
1532
|
+
}, [updateCustomFlowDraft]);
|
|
1529
1533
|
/**
|
|
1530
1534
|
* 商品详情区域展示的是当前商品的单价,而不是「单价 x 数量」后的订单总价。
|
|
1531
1535
|
* 这里复用 Modal 原有的 SKU / 套餐 / 手动改价计算结果,避免详情价格与底部价格栏口径不一致。
|
|
@@ -1548,10 +1552,7 @@ const SkuDetailModal = ({ onConfirm, onRemove, onClose, variant }, ref) => {
|
|
|
1548
1552
|
scalePriceProduct,
|
|
1549
1553
|
currencySymbol: symbol,
|
|
1550
1554
|
initialValue: weighingData !== null && weighingData !== void 0 ? weighingData : void 0,
|
|
1551
|
-
onChange:
|
|
1552
|
-
setWeighingData(value);
|
|
1553
|
-
updateCustomFlowDraft({ weighing: value }, ["weighing"]);
|
|
1554
|
-
}
|
|
1555
|
+
onChange: handleWeighingChange
|
|
1555
1556
|
});
|
|
1556
1557
|
};
|
|
1557
1558
|
const renderLoadingPanel = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
//#region src/components/appointmentBooking/deposit/index.d.ts
|
|
3
|
-
declare const Deposit: (props: any) =>
|
|
3
|
+
declare const Deposit: (props: any) => JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { Deposit };
|