@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.
Files changed (113) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.js +21 -21
  8. package/build/lowcode/view.js +21 -21
  9. package/es/components/appointmentBooking/deposit/index.d.ts +1 -2
  10. package/es/components/appointmentBooking/index.d.ts +1 -2
  11. package/es/components/booking/deposit/index.d.ts +1 -3
  12. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -3
  13. package/es/components/booking/info/index.d.ts +1 -2
  14. package/es/components/booking/materiels/contacts/index.d.ts +1 -2
  15. package/es/components/booking/materiels/duration/index.d.ts +1 -2
  16. package/es/components/booking/materiels/startTime/index.d.ts +1 -2
  17. package/es/components/ecocup/cupList/index.d.ts +1 -2
  18. package/es/components/ecocup/customerList/index.d.ts +2 -2
  19. package/es/components/eftpos/index.d.ts +1 -2
  20. package/es/components/eftposPay/index.d.ts +1 -2
  21. package/es/components/eventBooking/index.d.ts +1 -2
  22. package/es/components/kioskSale/index.d.ts +2 -2
  23. package/es/components/kioskSkuDetail/index.d.ts +1 -1
  24. package/es/components/login/index.d.ts +1 -2
  25. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -2
  26. package/es/components/productExtension/index.d.ts +1 -2
  27. package/es/components/ruleSetting/index.d.ts +1 -2
  28. package/es/components/scanOrder/index.d.ts +2 -2
  29. package/es/components/sharedSecondaryBigSale/index.d.ts +2 -2
  30. package/es/components/shoppingCart/index.d.ts +1 -2
  31. package/es/components/subTotal/index.d.ts +1 -1
  32. package/es/components/taxSelect/index.d.ts +1 -2
  33. package/es/components/ticketBooking/index.d.ts +1 -1
  34. package/es/components/venueBooking/index.d.ts +2 -2
  35. package/es/components/walletList/index.d.ts +1 -2
  36. package/es/plus/orderList/index.d.ts +1 -1
  37. package/es/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  38. package/es/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  39. package/es/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  40. package/es/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  41. package/es/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  42. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +27 -1
  43. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +7 -10
  44. package/es/plus/pisellSalesManagement/index.d.ts +1 -1
  45. package/es/plus/pisellTopology/PisellTopology.d.ts +2 -2
  46. package/es/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  47. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +5 -7
  48. package/es/plus/saasCreateOrganization/index.d.ts +1 -2
  49. package/es/plus/saasDevice/appPeripheral/components/ConnectExistingDeviceModal.js +1 -1
  50. package/es/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
  51. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -2
  52. package/es/plus/walletPassGallery/index.d.ts +1 -2
  53. package/es/pro/Selector/Item.d.ts +1 -1
  54. package/es/pro/numberKeyboard/index.d.ts +1 -1
  55. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -2
  56. package/es/pro/skuDetailModal/components/weighing/index.d.ts +1 -2
  57. package/es/pro/skuDetailModal/components/weighing/index.js +2 -1
  58. package/es/pro/skuDetailModal/index.js +5 -4
  59. package/lib/components/appointmentBooking/deposit/index.d.ts +2 -2
  60. package/lib/components/appointmentBooking/index.d.ts +2 -2
  61. package/lib/components/booking/deposit/index.d.ts +2 -3
  62. package/lib/components/booking/info/addServiceVariant/index.d.ts +2 -3
  63. package/lib/components/booking/info/index.d.ts +2 -2
  64. package/lib/components/booking/materiels/contacts/index.d.ts +2 -2
  65. package/lib/components/booking/materiels/duration/index.d.ts +2 -2
  66. package/lib/components/booking/materiels/startTime/index.d.ts +2 -2
  67. package/lib/components/ecocup/cupList/index.d.ts +2 -2
  68. package/lib/components/ecocup/customerList/index.d.ts +2 -2
  69. package/lib/components/eftpos/index.d.ts +2 -2
  70. package/lib/components/eftposPay/index.d.ts +2 -2
  71. package/lib/components/eventBooking/index.d.ts +2 -2
  72. package/lib/components/kioskSale/index.d.ts +2 -2
  73. package/lib/components/kioskSkuDetail/index.d.ts +1 -1
  74. package/lib/components/login/index.d.ts +2 -2
  75. package/lib/components/pisellSelectCustomerModal/index.d.ts +2 -2
  76. package/lib/components/productExtension/index.d.ts +2 -2
  77. package/lib/components/ruleSetting/index.d.ts +2 -2
  78. package/lib/components/scanOrder/index.d.ts +2 -2
  79. package/lib/components/sharedSecondaryBigSale/index.d.ts +2 -2
  80. package/lib/components/shoppingCart/index.d.ts +2 -2
  81. package/lib/components/subTotal/index.d.ts +1 -1
  82. package/lib/components/taxSelect/index.d.ts +2 -2
  83. package/lib/components/ticketBooking/index.d.ts +1 -1
  84. package/lib/components/venueBooking/index.d.ts +2 -2
  85. package/lib/components/walletList/index.d.ts +2 -2
  86. package/lib/plus/orderList/index.d.ts +1 -1
  87. package/lib/plus/pisellProResourcePickerModal/PisellFloorMapPaletteViewAllModal.d.ts +1 -1
  88. package/lib/plus/pisellProResourcePickerModal/PisellProResourcePickerModal.d.ts +2 -2
  89. package/lib/plus/pisellReservation/components/SelectFloorMapResourceDialog.d.ts +1 -1
  90. package/lib/plus/pisellReservation/floorRoomCard/FloorRoomCardFromData.d.ts +1 -1
  91. package/lib/plus/pisellReservation/floorRoomCard/ReservationFloorRoomCard.d.ts +1 -1
  92. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +27 -0
  93. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +6 -9
  94. package/lib/plus/pisellSalesManagement/index.d.ts +1 -1
  95. package/lib/plus/pisellTopology/PisellTopology.d.ts +2 -2
  96. package/lib/plus/pisellTopology/TopologyDeviceCard.d.ts +1 -1
  97. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +6 -7
  98. package/lib/plus/saasCreateOrganization/index.d.ts +2 -2
  99. package/lib/plus/saasDevice/appPeripheral/components/ConnectExistingDeviceModal.js +1 -1
  100. package/lib/plus/saleDetail/components/PromotionWalletPanels/index.d.ts +1 -1
  101. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -2
  102. package/lib/plus/walletPassGallery/index.d.ts +2 -2
  103. package/lib/pro/Selector/Item.d.ts +1 -1
  104. package/lib/pro/numberKeyboard/index.d.ts +1 -1
  105. package/lib/pro/pisellPhoneKeyboard/index.d.ts +2 -2
  106. package/lib/pro/skuDetailModal/components/weighing/index.d.ts +2 -2
  107. package/lib/pro/skuDetailModal/components/weighing/index.js +2 -1
  108. package/lib/pro/skuDetailModal/index.js +5 -4
  109. package/package.json +3 -3
  110. package/es/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
  111. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
  112. package/lib/plus/pisellReservation/floorRoomCard/mapFloorRoomCardViewProps.d.ts +0 -1
  113. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardHeaderView.d.ts +0 -1
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/appointmentBooking/index.d.ts
3
- declare const AppointmentBooking: () => React.JSX.Element;
3
+ declare const AppointmentBooking: () => JSX.Element;
4
4
  //#endregion
5
5
  export { AppointmentBooking };
@@ -1,6 +1,5 @@
1
- import React from "react";
2
-
1
+ /// <reference types="react" />
3
2
  //#region src/components/booking/deposit/index.d.ts
4
- declare const Deposit: (props: any) => React.JSX.Element;
3
+ declare const Deposit: (props: any) => JSX.Element;
5
4
  //#endregion
6
5
  export { Deposit };
@@ -1,10 +1,9 @@
1
- import React from "react";
2
-
1
+ /// <reference types="react" />
3
2
  //#region src/components/booking/info/addServiceVariant/index.d.ts
4
3
  interface AddServiceVariantProps {
5
4
  globalState: any;
6
5
  setGlobalState: any;
7
6
  }
8
- declare const AddServiceVariant: (props: AddServiceVariantProps) => React.JSX.Element;
7
+ declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
9
8
  //#endregion
10
9
  export { AddServiceVariant };
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from "./main.js";
2
- import React from "react";
3
3
 
4
4
  //#region src/components/booking/info/index.d.ts
5
- declare const APP: (props: InfoProps) => React.JSX.Element;
5
+ declare const APP: (props: InfoProps) => JSX.Element;
6
6
  //#endregion
7
7
  export { APP };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/booking/materiels/contacts/index.d.ts
3
3
  type ContactType = {
4
4
  country_calling_code: string;
@@ -12,6 +12,6 @@ type ContactsPropsType = {
12
12
  value: ContactType[];
13
13
  onChange: (value: ContactType[]) => void;
14
14
  };
15
- declare const Contacts: (props: ContactsPropsType) => React.JSX.Element;
15
+ declare const Contacts: (props: ContactsPropsType) => JSX.Element;
16
16
  //#endregion
17
17
  export { Contacts };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { SelectProps } from "antd";
3
3
 
4
4
  //#region src/components/booking/materiels/duration/index.d.ts
@@ -12,6 +12,6 @@ interface DurationProps extends SelectProps {
12
12
  startDate?: any;
13
13
  timeObj?: any;
14
14
  }
15
- declare const Duration: (props: DurationProps) => React.JSX.Element;
15
+ declare const Duration: (props: DurationProps) => JSX.Element;
16
16
  //#endregion
17
17
  export { Duration };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { SelectProps } from "antd";
3
3
 
4
4
  //#region src/components/booking/materiels/startTime/index.d.ts
@@ -8,6 +8,6 @@ interface StartTimeProps extends SelectProps {
8
8
  selectProps?: SelectProps;
9
9
  timeObjChange?: any;
10
10
  }
11
- declare const StartTime: (props: StartTimeProps) => React.JSX.Element;
11
+ declare const StartTime: (props: StartTimeProps) => JSX.Element;
12
12
  //#endregion
13
13
  export { StartTime };
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/ecocup/cupList/index.d.ts
3
3
  interface CupListProps {
4
4
  data: any[];
5
5
  }
6
- declare const CupList: (props: CupListProps) => React.JSX.Element;
6
+ declare const CupList: (props: CupListProps) => JSX.Element;
7
7
  //#endregion
8
8
  export { CupList };
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/ecocup/customerList/index.d.ts
3
3
  interface CustomerListProps {
4
4
  data: any[];
5
5
  }
6
- declare function CustomerList(props: CustomerListProps): React.JSX.Element;
6
+ declare function CustomerList(props: CustomerListProps): JSX.Element;
7
7
  //#endregion
8
8
  export { CustomerList };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceStatus, Eftpos } from "./const.js";
2
- import React from "react";
3
3
  //#region src/components/eftpos/index.d.ts
4
4
  interface PosProps {
5
5
  /** 厂商类型 */
@@ -43,6 +43,6 @@ interface PosProps {
43
43
  getPosComm: (...agrn: unknown[]) => any;
44
44
  savePos: (...agrn: unknown[]) => any;
45
45
  }
46
- declare const _default: (props: PosProps) => React.JSX.Element;
46
+ declare const _default: (props: PosProps) => JSX.Element;
47
47
  //#endregion
48
48
  export { _default };
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from "./const.js";
2
- import React from "react";
3
3
  //#region src/components/eftposPay/index.d.ts
4
- declare const _default: (props: PosProps) => React.JSX.Element | null;
4
+ declare const _default: (props: PosProps) => JSX.Element | null;
5
5
  //#endregion
6
6
  export { _default };
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/eventBooking/index.d.ts
3
- declare const EventBooking: () => React.JSX.Element;
3
+ declare const EventBooking: () => JSX.Element;
4
4
  //#endregion
5
5
  export { EventBooking };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { BigSaleProps } from "../bigSale/types.js";
2
- import React from "react";
3
3
 
4
4
  //#region src/components/kioskSale/index.d.ts
5
5
  type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' | 'secondaryScreenDisplay' | 'saleDetailTemplate' | 'template' | 'tmpl'> & {
@@ -8,6 +8,6 @@ type KioskSaleProps = Omit<BigSaleProps, 'enableGlobalScanListener' | 'osKey' |
8
8
  /**
9
9
  * 面向顾客的竖屏自助点餐入口;业务数据继续复用 BigSale / SalesSdk。
10
10
  */
11
- declare function KioskSale(props: KioskSaleProps): React.JSX.Element;
11
+ declare function KioskSale(props: KioskSaleProps): JSX.Element;
12
12
  //#endregion
13
13
  export { KioskSale, KioskSaleProps };
@@ -7,7 +7,7 @@ import React from "react";
7
7
  * - 中间区域用 SKUOptionsSelection 做 SKU 选择
8
8
  * - 底部用 PisellNumberSelector 做数量编辑
9
9
  */
10
- declare function KioskSkuDetail(props: KioskSkuDetailProps): React.JSX.Element;
10
+ declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
11
11
  /**
12
12
  * @description 从原生回调 payload 中提取 productId
13
13
  */
@@ -1,10 +1,10 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/login/index.d.ts
3
3
  interface LoginProps {
4
4
  title: string;
5
5
  style: any;
6
6
  onLogin: (values: any, callback: (status: any) => void) => void;
7
7
  }
8
- declare const Login: (props: LoginProps) => React.JSX.Element;
8
+ declare const Login: (props: LoginProps) => JSX.Element;
9
9
  //#endregion
10
10
  export { Login, LoginProps };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { CustomerCardProps } from "./CustomerCard/index.js";
2
- import React from "react";
3
3
  import { PopoverProps } from "antd";
4
4
  //#region src/components/pisellSelectCustomerModal/index.d.ts
5
5
  type CustomerDetail = any;
@@ -12,6 +12,6 @@ interface PisellSelectCustomerModalProps {
12
12
  keyboardProps?: any;
13
13
  virtualKeyInputProps?: any;
14
14
  }
15
- declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => React.JSX.Element;
15
+ declare const PisellSelectCustomerModal: (props: PisellSelectCustomerModalProps) => JSX.Element;
16
16
  //#endregion
17
17
  export { PisellSelectCustomerModal };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/productExtension/index.d.ts
3
3
  interface ProductExtensionProps {
4
4
  onDataChange: any;
@@ -7,6 +7,6 @@ interface ProductExtensionProps {
7
7
  declare const ProductExtension: ({
8
8
  onDataChange,
9
9
  type
10
- }: ProductExtensionProps) => React.JSX.Element;
10
+ }: ProductExtensionProps) => JSX.Element;
11
11
  //#endregion
12
12
  export { ProductExtension };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/ruleSetting/index.d.ts
3
3
  interface RuleSettingProps {
4
4
  value: any;
@@ -6,6 +6,6 @@ interface RuleSettingProps {
6
6
  className: string;
7
7
  style: any;
8
8
  }
9
- declare const RuleSetting: (props: RuleSettingProps) => React.JSX.Element;
9
+ declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
10
10
  //#endregion
11
11
  export { RuleSetting };
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { ScanOrderProps } from "./types.js";
2
- import React from "react";
3
3
  //#region src/components/scanOrder/index.d.ts
4
- declare function ScanOrder(props: ScanOrderProps): React.JSX.Element;
4
+ declare function ScanOrder(props: ScanOrderProps): JSX.Element;
5
5
  //#endregion
6
6
  export { ScanOrder };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { BigSaleProps } from "../bigSale/types.js";
2
- import React from "react";
3
3
 
4
4
  //#region src/components/sharedSecondaryBigSale/index.d.ts
5
5
  interface SharedSecondaryBigSaleProps extends Pick<BigSaleProps, 'className' | 'saleDetailModuleConfig' | 'secondaryScreenDisplay' | 'style'> {
@@ -15,6 +15,6 @@ declare function SharedSecondaryBigSale({
15
15
  secondaryScreenDisplay,
16
16
  className,
17
17
  style
18
- }: SharedSecondaryBigSaleProps): React.JSX.Element;
18
+ }: SharedSecondaryBigSaleProps): JSX.Element;
19
19
  //#endregion
20
20
  export { SharedSecondaryBigSale, SharedSecondaryBigSaleProps };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from "./type.js";
2
- import React from "react";
3
3
 
4
4
  //#region src/components/shoppingCart/index.d.ts
5
5
  declare const shoppingCart: ({
@@ -9,6 +9,6 @@ declare const shoppingCart: ({
9
9
  onAddProduct,
10
10
  onActiveKey,
11
11
  ...props
12
- }: shoppingCartProps) => React.JSX.Element;
12
+ }: shoppingCartProps) => JSX.Element;
13
13
  //#endregion
14
14
  export { shoppingCart };
@@ -20,6 +20,6 @@ interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
20
20
  describe?: string;
21
21
  children?: React.ReactNode;
22
22
  }
23
- declare const SubTotal: (props: SubTotalProps) => React.JSX.Element;
23
+ declare const SubTotal: (props: SubTotalProps) => JSX.Element;
24
24
  //#endregion
25
25
  export { SubTotal };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { SelectProps } from "antd";
3
3
  //#region src/components/taxSelect/index.d.ts
4
4
  interface TaxSelectProps {
@@ -8,6 +8,6 @@ interface TaxSelectProps {
8
8
  tax_title?: string;
9
9
  onChange: (value: string) => void;
10
10
  }
11
- declare const TaxSelect: (props: TaxSelectProps) => React.JSX.Element;
11
+ declare const TaxSelect: (props: TaxSelectProps) => JSX.Element;
12
12
  //#endregion
13
13
  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) => React.JSX.Element;
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): React.JSX.Element;
6
+ declare function VenueBooking(props: VenueBookingProps): JSX.Element;
7
7
  //#endregion
8
8
  export { VenueBooking };
@@ -1,5 +1,5 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/components/walletList/index.d.ts
3
- declare const WalletList: (props: any) => React.JSX.Element;
3
+ declare const WalletList: (props: any) => JSX.Element;
4
4
  //#endregion
5
5
  export { WalletList };
@@ -6,6 +6,6 @@ interface OrderListProps {
6
6
  style?: React.CSSProperties;
7
7
  __id?: string;
8
8
  }
9
- declare const OrderList: (props: OrderListProps) => React.JSX.Element;
9
+ declare const OrderList: (props: OrderListProps) => JSX.Element;
10
10
  //#endregion
11
11
  export { OrderList };
@@ -23,6 +23,6 @@ interface PisellFloorMapPaletteViewAllModalProps {
23
23
  /** 容器平台:透传到 PisellProResourcePickerModal,手机请传 'h5' */
24
24
  platform?: 'pc' | 'h5' | 'ipad';
25
25
  }
26
- declare function PisellFloorMapPaletteViewAllModal(props: PisellFloorMapPaletteViewAllModalProps): React.JSX.Element;
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): React.JSX.Element;
4
+ declare function PisellProResourcePickerModal(props: PisellProResourcePickerModalProps): JSX.Element;
5
5
  //#endregion
6
6
  export { PisellProResourcePickerModal };
@@ -37,6 +37,6 @@ declare function SelectFloorMapResourceDialog({
37
37
  dataSources,
38
38
  floorMap,
39
39
  title
40
- }: SelectFloorMapResourceDialogProps): React.JSX.Element;
40
+ }: SelectFloorMapResourceDialogProps): JSX.Element;
41
41
  //#endregion
42
42
  export { SelectFloorMapResourceDialog };
@@ -1 +1 @@
1
- import React from "react";
1
+ export { };
@@ -1 +1 @@
1
- import React from "react";
1
+ export { };
@@ -51,11 +51,38 @@ const formatPhone = (value, countryCallingCode) => {
51
51
  }
52
52
  return "";
53
53
  };
54
+ /** 兼容远端预约 contacts_info 与 OS Server 订单 contacts 数组。 */
55
+ const getBookingContactDisplay = (record) => {
56
+ const order = record === null || record === void 0 ? void 0 : record.order;
57
+ const contactsInfo = order === null || order === void 0 ? void 0 : order.contacts_info;
58
+ const contact = Array.isArray(contactsInfo) ? contactsInfo[0] : contactsInfo || (Array.isArray(order === null || order === void 0 ? void 0 : order.contacts) ? order.contacts[0] : null);
59
+ if (!contact) return {
60
+ contact: null,
61
+ phone: "",
62
+ email: "",
63
+ compareValue: "-"
64
+ };
65
+ const phone = formatPhone(contact === null || contact === void 0 ? void 0 : contact.phone, contact === null || contact === void 0 ? void 0 : contact.country_calling_code);
66
+ const email = String(contact.email || "").trim();
67
+ return {
68
+ contact,
69
+ phone,
70
+ email,
71
+ compareValue: [
72
+ contact === null || contact === void 0 ? void 0 : contact.display_name,
73
+ contact === null || contact === void 0 ? void 0 : contact.first_name,
74
+ contact === null || contact === void 0 ? void 0 : contact.last_name,
75
+ phone,
76
+ email
77
+ ].filter(Boolean).join("|") || "-"
78
+ };
79
+ };
54
80
  //#endregion
55
81
  exports.Tag = Tag;
56
82
  exports.buildDateTime = buildDateTime;
57
83
  exports.formatAmount = formatAmount;
58
84
  exports.formatPhone = formatPhone;
85
+ exports.getBookingContactDisplay = getBookingContactDisplay;
59
86
  exports.getDisplayLines = getDisplayLines;
60
87
  exports.normalizeList = normalizeList;
61
88
  exports.parseJson = parseJson;
@@ -187,23 +187,20 @@ const useBookingPerspective = (params, options) => {
187
187
  align: "center",
188
188
  width: 150,
189
189
  uniformCompare: (_, record) => {
190
- const value = record.order;
191
- const contactValue = value === null || value === void 0 ? void 0 : value.contacts_info;
192
- if (!contactValue) return "-";
193
- return contactValue;
190
+ var _getBookingContactDis;
191
+ return (_getBookingContactDis = require_perspectiveUtils.getBookingContactDisplay(record)) === null || _getBookingContactDis === void 0 ? void 0 : _getBookingContactDis.compareValue;
194
192
  },
195
193
  render: (_, record) => {
196
- const value = record.order;
197
- const contactValue = value === null || value === void 0 ? void 0 : value.contacts_info;
198
- if (!contactValue) return "-";
199
- const lines = require_perspectiveUtils.getDisplayLines([require_perspectiveUtils.formatPhone(contactValue === null || contactValue === void 0 ? void 0 : contactValue.phone), contactValue === null || contactValue === void 0 ? void 0 : contactValue.email]);
194
+ const { contact, phone, email } = require_perspectiveUtils.getBookingContactDisplay(record);
195
+ if (!contact) return "-";
196
+ const lines = require_perspectiveUtils.getDisplayLines([phone, email]);
200
197
  return /* @__PURE__ */ react.default.createElement("div", { style: {
201
198
  display: "flex",
202
199
  flexDirection: "column",
203
200
  alignItems: "center",
204
201
  textAlign: "center"
205
202
  } }, /* @__PURE__ */ react.default.createElement(require_index.default, {
206
- dataSource: contactValue,
203
+ dataSource: contact,
207
204
  style: { fontSize: 14 }
208
205
  }), lines.map((line, index) => /* @__PURE__ */ react.default.createElement("div", {
209
206
  key: `${line}-${index}`,
@@ -42,6 +42,6 @@ interface IProps {
42
42
  record: any;
43
43
  }) => void;
44
44
  }
45
- declare const PisellSalesManagement: (props: IProps) => React.JSX.Element;
45
+ declare const PisellSalesManagement: (props: IProps) => JSX.Element;
46
46
  //#endregion
47
47
  export { PisellSalesManagement };
@@ -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): React.JSX.Element;
4
+ declare function PisellTopology(props: PisellTopologyProps): JSX.Element;
5
5
  declare const PisellTopologyCore: typeof PisellTopology;
6
6
  //#endregion
7
7
  export { PisellTopology, PisellTopologyCore };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { FloorMapEdgeStatus, FloorMapMergedItem } from "@pisell/materials";
3
3
  //#region src/plus/pisellTopology/TopologyDeviceCard.d.ts
4
4
  interface TopologyDeviceRow {
@@ -1,12 +1,11 @@
1
- import React from "react";
2
-
1
+ /// <reference types="react" />
3
2
  //#region src/plus/productSelect/ProductCard/SkuCard/index.d.ts
4
3
  declare const SkuCard: {
5
- (props: any): React.JSX.Element | null;
6
- A1: (props: any) => React.JSX.Element;
7
- A2: (props: any) => React.JSX.Element;
8
- A5: (props: any) => React.JSX.Element;
9
- A9: (props: any) => React.JSX.Element;
4
+ (props: any): JSX.Element | null;
5
+ A1: (props: any) => JSX.Element;
6
+ A2: (props: any) => JSX.Element;
7
+ A5: (props: any) => JSX.Element;
8
+ A9: (props: any) => JSX.Element;
10
9
  };
11
10
  //#endregion
12
11
  export { SkuCard };
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from "./types.js";
2
- import React from "react";
3
3
  //#region src/plus/saasCreateOrganization/index.d.ts
4
- declare const SaasCreateOrganization: (props: SCOProps) => React.JSX.Element;
4
+ declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
5
5
  //#endregion
6
6
  export { SaasCreateOrganization };
@@ -150,7 +150,7 @@ const ConnectExistingDeviceModal = ({ open, mode, connectionType, targetStructur
150
150
  })));
151
151
  return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellModal, {
152
152
  open,
153
- width: isPhoneVariant ? "100%" : step === "pick" ? "80vw" : "860px",
153
+ width: isPhoneVariant ? "100%" : step === "pick" ? "80%" : "860px",
154
154
  okVisible: step === "config",
155
155
  okText: getText("pisell2.saas.device-planning.add.save"),
156
156
  cancelText: getText("pisell2.saas.device-planning.add.cancel"),
@@ -1,4 +1,4 @@
1
- import React, { Key, ReactNode, Ref } from "react";
1
+ import { Key, ReactNode, Ref } from "react";
2
2
  //#region src/plus/saleDetail/components/PromotionWalletPanels/index.d.ts
3
3
  type SaleDetailPromotionWalletPanelTone = 'default' | 'success' | 'warning' | 'danger';
4
4
  type PromotionWalletPanelsAppearance = 'dark' | 'light';
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/plus/walletPassGallery/components/passDetail/index.d.ts
3
3
  interface PassDetailProps {
4
4
  dataSource?: any | null;
@@ -8,6 +8,6 @@ interface PassDetailProps {
8
8
  showTimeLine?: boolean;
9
9
  onListRefresh?: () => void;
10
10
  }
11
- declare const PassDetail: (props: PassDetailProps) => React.JSX.Element | null;
11
+ declare const PassDetail: (props: PassDetailProps) => JSX.Element | null;
12
12
  //#endregion
13
13
  export { PassDetail };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  //#region src/plus/walletPassGallery/index.d.ts
3
3
  interface WalletPassGalleryProps {
4
4
  hideTitle: boolean;
@@ -7,6 +7,6 @@ interface WalletPassGalleryProps {
7
7
  platform?: 'pc' | 'h5';
8
8
  [key: string]: any;
9
9
  }
10
- declare const WalletPassGallery: (props: WalletPassGalleryProps) => React.JSX.Element;
10
+ declare const WalletPassGallery: (props: WalletPassGalleryProps) => JSX.Element;
11
11
  //#endregion
12
12
  export { WalletPassGallery };
@@ -17,6 +17,6 @@ interface IItemProps {
17
17
  */
18
18
  onClick?: React.MouseEventHandler<HTMLDivElement>;
19
19
  }
20
- declare const Item: (props: IItemProps) => React.JSX.Element;
20
+ declare const Item: (props: IItemProps) => JSX.Element;
21
21
  //#endregion
22
22
  export { Item };
@@ -24,6 +24,6 @@ interface NumberKeyboardProps {
24
24
  /** 输入框的样式 */
25
25
  inputStyle?: React.CSSProperties;
26
26
  }
27
- declare const NumberKeyboard: (props: NumberKeyboardProps) => React.JSX.Element;
27
+ declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
28
28
  //#endregion
29
29
  export { NumberKeyboard };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { PopoverProps } from "antd";
3
3
  //#region src/pro/pisellPhoneKeyboard/index.d.ts
4
4
  interface PisellPhoneKeyboardProps {
@@ -9,6 +9,6 @@ interface PisellPhoneKeyboardProps {
9
9
  keyboardProps?: any;
10
10
  virtualKeyInputProps?: any;
11
11
  }
12
- declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => React.JSX.Element;
12
+ declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
13
13
  //#endregion
14
14
  export { PisellPhoneKeyboard };
@@ -1,2 +1,2 @@
1
- import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
2
- import React from "react";
1
+ /// <reference types="react" />
2
+ import { ScaleConnectionState, WeighingMode, WeighingValue } from "./types.js";
@@ -13,13 +13,14 @@ let _pisell_utils = require("@pisell/utils");
13
13
  let _pisell_materials = require("@pisell/materials");
14
14
  require("./index.less");
15
15
  //#region src/pro/skuDetailModal/components/weighing/index.tsx
16
+ const EMPTY_TARE_OPTIONS = [];
16
17
  const Weighing = (props) => {
17
18
  var _context$engine, _context$appHelper, _context$appHelper$ge, _context$appHelper$ge2, _initialValue$mode, _initialTare$value, _initialValue$weight, _ref, _scale$connectionStat, _scale$rawData;
18
19
  const context = require_useEngineContext.default();
19
20
  _pisell_utils.locales.init(require_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");
20
21
  const getText = (key, fallback) => _pisell_utils.locales.getText(key) || fallback;
21
22
  const noTareLabel = getText("pisell2.text.sku.detail.modal.weighing.none.tare", "No Tare");
22
- const { isEditMode: isEditModeProp, tareOptions: tareOptionsProp = [], initialValue, unit: scaleUnit = _pisell_utils.STANDARD_WEIGHT_UNIT, currencySymbol = "$", scalePriceProduct, onChange } = props;
23
+ const { isEditMode: isEditModeProp, tareOptions: tareOptionsProp = EMPTY_TARE_OPTIONS, initialValue, unit: scaleUnit = _pisell_utils.STANDARD_WEIGHT_UNIT, currencySymbol = "$", scalePriceProduct, onChange } = props;
23
24
  /**
24
25
  * 从宿主注入的 plugins 中取出 nativeScaleTools(硬件监听 + 单位换算 + 称重计价)。
25
26
  * 开发阶段不做兼容:若未注入则直接抛错,由宿主侧保证插件存在。