@pisell/private-materials 6.3.145 → 6.3.147

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 (140) 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/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/build/lowcode.zip +0 -0
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.js +12 -6
  12. package/es/components/appointmentBooking/components/Form/index.js +15 -2
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/context.js +18 -11
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/booking/forms/footer.d.ts +1 -0
  17. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  18. package/es/components/booking/info/date/index.d.ts +0 -1
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  21. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  22. package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
  23. package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  24. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  25. package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  26. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  27. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  28. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  29. package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
  30. package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
  31. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  32. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  33. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  42. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  43. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  46. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  47. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  49. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  50. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  51. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  52. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  53. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  54. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  55. package/es/plus/orderList/components/Reset.d.ts +1 -0
  56. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  57. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  58. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  59. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  60. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  61. package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  62. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  63. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  64. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  65. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  66. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  67. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  68. package/es/pro/Login2.0/components/PhoneInput.js +1 -1
  69. package/es/pro/Login2.0/shared/registerFlow.d.ts +3 -2
  70. package/es/pro/Login2.0/steps/CodeInput.js +6 -1
  71. package/es/pro/Login2.0/steps/WaitEmailLink.js +2 -1
  72. package/es/pro/Selector/demo.d.ts +1 -0
  73. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  74. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  75. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  76. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  77. package/lib/components/appointmentBooking/components/Footer/index.js +5 -5
  78. package/lib/components/appointmentBooking/components/Form/index.js +9 -2
  79. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  80. package/lib/components/appointmentBooking/context.js +4 -1
  81. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  82. package/lib/components/booking/forms/footer.d.ts +1 -0
  83. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  84. package/lib/components/booking/info/date/index.d.ts +0 -1
  85. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  86. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  87. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  88. package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
  89. package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  90. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  91. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  92. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  93. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  94. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  95. package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
  96. package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
  97. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  98. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  99. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  100. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  101. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  102. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  103. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  104. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  105. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  106. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  107. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  108. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  109. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  110. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  111. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  112. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  113. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  114. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  115. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  116. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  117. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  118. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  119. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  120. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  121. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  122. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  123. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  124. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  125. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  126. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  127. package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  128. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  129. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  130. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  131. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  132. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  133. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  134. package/lib/pro/Login2.0/components/PhoneInput.js +1 -0
  135. package/lib/pro/Login2.0/shared/registerFlow.d.ts +3 -2
  136. package/lib/pro/Login2.0/steps/CodeInput.js +6 -1
  137. package/lib/pro/Login2.0/steps/WaitEmailLink.js +2 -1
  138. package/lib/pro/Selector/demo.d.ts +1 -0
  139. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  140. package/package.json +1 -1
Binary file
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DepositProps {
3
4
  showTitle?: boolean;
@@ -21,13 +21,16 @@ var Footer = function Footer(_ref) {
21
21
  carts = _ref2.carts,
22
22
  currentStep = _ref2.currentStep,
23
23
  isErrorHolder = _ref2.isErrorHolder,
24
- setIsErrorHolder = _ref2.setIsErrorHolder;
24
+ setIsErrorHolder = _ref2.setIsErrorHolder,
25
+ cartDrawerOpen = _ref2.cartDrawerOpen,
26
+ setCartDrawerOpen = _ref2.setCartDrawerOpen;
25
27
  var _useState = useState(false),
26
28
  _useState2 = _slicedToArray(_useState, 2),
27
29
  open = _useState2[0],
28
30
  setOpen = _useState2[1];
29
31
  useEffect(function () {
30
- setOpen(isErrorHolder || false);
32
+ // setOpen(isErrorHolder || false);
33
+ setCartDrawerOpen(isErrorHolder || false);
31
34
  }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key, isErrorHolder]);
32
35
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionFooters, {
33
36
  className: "section-footer-wrap",
@@ -40,9 +43,11 @@ var Footer = function Footer(_ref) {
40
43
  }, /*#__PURE__*/React.createElement(Badge, {
41
44
  count: (carts === null || carts === void 0 ? void 0 : carts.length) || 0
42
45
  }, /*#__PURE__*/React.createElement(Button, {
43
- size: "large",
46
+ size: "large"
47
+ // onClick={() => setOpen(true)}
48
+ ,
44
49
  onClick: function onClick() {
45
- return setOpen(true);
50
+ return setCartDrawerOpen(true);
46
51
  },
47
52
  className: "section-footer-btn"
48
53
  }, /*#__PURE__*/React.createElement(Image, {
@@ -52,9 +57,10 @@ var Footer = function Footer(_ref) {
52
57
  onNext: onNext
53
58
  }))
54
59
  }), /*#__PURE__*/React.createElement(Cart, {
55
- open: open,
60
+ open: cartDrawerOpen,
56
61
  onCancel: function onCancel() {
57
- setOpen(false);
62
+ // setOpen(false);
63
+ setCartDrawerOpen(false);
58
64
  setIsErrorHolder(false);
59
65
  },
60
66
  onNext: onNext
@@ -27,7 +27,9 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
27
27
  appointmentBooking = _ref.appointmentBooking,
28
28
  setLoading = _ref.setLoading,
29
29
  currentStepParams = _ref.currentStepParams,
30
- carts = _ref.carts;
30
+ carts = _ref.carts,
31
+ cartDrawerOpen = _ref.cartDrawerOpen,
32
+ setCartDrawerOpen = _ref.setCartDrawerOpen;
31
33
  var _useAppointmentBookin = useAppointmentBookingResource(),
32
34
  getResourceList = _useAppointmentBookin.getResourceList;
33
35
  var _useAppointmentBookin2 = useAppointmentBookingSetting(),
@@ -120,8 +122,19 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
120
122
  */
121
123
  var updateFormStatus = function updateFormStatus(status) {
122
124
  if (status === 'error') {
123
- nextStepLog(utils, '表单内部错误');
124
125
  setLoading(false);
126
+ nextStepLog(utils, '表单内部错误, 请填写完整表单', [{
127
+ key: 'isMobile',
128
+ value: JSON.stringify(utils === null || utils === void 0 ? void 0 : utils.isMobile())
129
+ }, {
130
+ key: 'cartDrawerOpen',
131
+ value: JSON.stringify(cartDrawerOpen)
132
+ }]);
133
+ console.log('isErrorHolder11', utils, utils === null || utils === void 0 ? void 0 : utils.isMobile(), cartDrawerOpen);
134
+ // 如果表单错误,则关闭当前购物车
135
+ if (cartDrawerOpen) {
136
+ setCartDrawerOpen(false);
137
+ }
125
138
  }
126
139
  };
127
140
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -60,20 +60,25 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
60
60
  _useState22 = _slicedToArray(_useState21, 2),
61
61
  isErrorHolder = _useState22[0],
62
62
  setIsErrorHolder = _useState22[1];
63
+ /** 底部购物车抽屉是否展开(与 isErrorHolder 解耦,便于表单校验失败时仅关闭抽屉) */
64
+ var _useState23 = useState(false),
65
+ _useState24 = _slicedToArray(_useState23, 2),
66
+ cartDrawerOpen = _useState24[0],
67
+ setCartDrawerOpen = _useState24[1];
63
68
  // 初始化 TasksManager
64
- var _useState23 = useState(function () {
69
+ var _useState25 = useState(function () {
65
70
  return new TasksManager();
66
71
  }),
67
- _useState24 = _slicedToArray(_useState23, 1),
68
- tasksManager = _useState24[0];
69
- var _useState25 = useState(null),
70
- _useState26 = _slicedToArray(_useState25, 2),
71
- policyParams = _useState26[0],
72
- setPolicyParams = _useState26[1];
73
- var _useState27 = useState(),
72
+ _useState26 = _slicedToArray(_useState25, 1),
73
+ tasksManager = _useState26[0];
74
+ var _useState27 = useState(null),
74
75
  _useState28 = _slicedToArray(_useState27, 2),
75
- currentSelectedResources = _useState28[0],
76
- setCurrentSelectedResources = _useState28[1];
76
+ policyParams = _useState28[0],
77
+ setPolicyParams = _useState28[1];
78
+ var _useState29 = useState(),
79
+ _useState30 = _slicedToArray(_useState29, 2),
80
+ currentSelectedResources = _useState30[0],
81
+ setCurrentSelectedResources = _useState30[1];
77
82
  var _useEngineContext = useEngineContext(),
78
83
  appHelper = _useEngineContext.appHelper;
79
84
  var symbolic = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.getSymbolic();
@@ -222,7 +227,9 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
222
227
  closePolicy: closePolicy,
223
228
  currentStepParams: currentStepParams,
224
229
  currentSelectedResources: currentSelectedResources,
225
- setCurrentSelectedResources: setCurrentSelectedResources
230
+ setCurrentSelectedResources: setCurrentSelectedResources,
231
+ cartDrawerOpen: cartDrawerOpen,
232
+ setCartDrawerOpen: setCartDrawerOpen
226
233
  };
227
234
  return /*#__PURE__*/React.createElement(AppointmentBookingContext.Provider, {
228
235
  value: value
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ECupActionType, ICup, ICustomer } from '../../types';
2
3
  import './index.less';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICustomer, ICup, ECupActionType } from '../../types';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  type: 'rentInfo' | 'markInfo' | 'belongInfo' | 'otherBelongInfo';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ECupScanStatus, ICup } from '../../types';
2
3
  import './index.less';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICup, ICustomer } from '../../types';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICustomer } from '../../types';
3
4
  interface IProps extends Partial<ICustomer> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MoreDropdownProps {
2
3
  locales: any;
3
4
  onClick?: (key: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface SearchBarProps {
3
4
  scanListenerKey: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  interface IProps {
3
4
  onClickAction: (type: string, record: any) => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  export declare const useSummary: (locales: any, staticsData: any, isPartner?: boolean) => () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DepositProps {
2
3
  showTitle?: boolean;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EmptyHolderModal: (props: any) => JSX.Element;
3
4
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const OrderProductModal: (props: any) => JSX.Element;
3
4
  export default OrderProductModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
2
3
  export default RemoveOptionConfirmModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CustomerListProps {
3
4
  value: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
2
3
  export default useAddService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const HandleActions: (props: {
2
3
  locales: any;
3
4
  __id?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const QuickFilter: (props: {
2
3
  locales: any;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Reset: (props: {
2
3
  locales: any;
3
4
  setValueType: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Toolbar: (props: {
2
3
  locales: any;
3
4
  clearSelectedData: () => void;
@@ -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?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
10
- export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
9
+ export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
10
+ export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<any>;
11
11
  export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
12
12
  export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
13
13
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { FloorMapViewConfig } from '@pisell/materials';
2
3
  export declare function useReservationFloorPlan(options: {
3
4
  resolvedFloorPlanId: number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const IconClock: () => JSX.Element;
2
3
  export declare const IconUsers: () => JSX.Element;
3
4
  export declare const IconWarn: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ReservationScheduleBandValue } from '@pisell/materials';
2
3
  /**
3
4
  * @returns `schedule` 绑定日程带 UI;`debouncedSchedule` 绑定 sales / patch / 外部 onSearch。
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const getBookingStatusMap: () => Record<string, string>;
2
3
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
3
4
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MembersField: (props: {
3
4
  id?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VertifyEmail: (props: {
3
4
  email: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
+ /// <reference types="react" />
4
5
  import { RenderItemProps } from '../../../../pro/Selector/types';
5
6
  import './index.less';
6
7
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TitleExtra: (props: any) => JSX.Element;
3
4
  export default TitleExtra;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TimelineSectionProps {
3
4
  code: string;
@@ -225,7 +225,7 @@ function PhoneInput(_ref) {
225
225
  // 将输入值标准化为字符串格式(内部统一使用字符串)
226
226
  var normalizedValue = useMemo(function () {
227
227
  if (!value) return '';
228
-
228
+ console.log('value', value);
229
229
  // 如果是对象格式,转换为字符串
230
230
  if (_typeof(value) === 'object' && 'phone' in value) {
231
231
  var phone = value.phone,
@@ -2,6 +2,7 @@
2
2
  * 注册流程配置和状态管理
3
3
  * 支持多种验证方式的不同步骤流程
4
4
  */
5
+ import type { PhoneValueObject } from './types';
5
6
  /** 注册步骤类型 */
6
7
  export declare enum RegisterStep {
7
8
  /** 初始表单 - 输入账号密码 */
@@ -66,8 +67,8 @@ export interface RegisterStepDefinition {
66
67
  export interface RegisterFlowData {
67
68
  /** 当前步骤 */
68
69
  currentStep: RegisterStep;
69
- /** 账号(邮箱或手机号) */
70
- account: string;
70
+ /** 账号(邮箱字符串或手机号对象) */
71
+ account: string | PhoneValueObject;
71
72
  /** 账号类型 */
72
73
  accountType: 'email' | 'phone';
73
74
  /** 密码(如果在第一步就输入了) */
@@ -16,6 +16,11 @@ import React, { useState, useRef, useEffect } from 'react';
16
16
  import { Button } from '@pisell/materials';
17
17
  import { locales } from '@pisell/utils';
18
18
  import IconFont from '@pisell/materials/src/components/iconfont';
19
+ function formatDisplayAccount(account) {
20
+ if (!account) return '';
21
+ if (typeof account === 'string') return account;
22
+ return "+".concat(account.country_calling_code).concat(account.phone);
23
+ }
19
24
  function CodeInput(_ref) {
20
25
  var flowData = _ref.flowData,
21
26
  _ref$codeLength = _ref.codeLength,
@@ -160,7 +165,7 @@ function CodeInput(_ref) {
160
165
  // 根据账号类型显示不同的标题和描述
161
166
  var title = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-title') : locales.getText('pisell-register2-check-phone-title');
162
167
  var description = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-desc') : locales.getText('pisell-register2-check-phone-desc');
163
- var displayAccount = flowData.account;
168
+ var displayAccount = formatDisplayAccount(flowData.account);
164
169
 
165
170
  // 根据账号类型显示不同的"没有收到"提示
166
171
  var noReceiveText = flowData.accountType === 'email' ? locales.getText('pisell-register2-no-email-received') : locales.getText('pisell-register2-no-message-received');
@@ -13,6 +13,7 @@ function WaitEmailLink(_ref) {
13
13
  countdown = _ref$countdown === void 0 ? 0 : _ref$countdown,
14
14
  verificationMethod = _ref.verificationMethod;
15
15
  var canResend = countdown === 0;
16
+ var displayEmail = typeof flowData.account === 'string' ? flowData.account : '';
16
17
  return /*#__PURE__*/React.createElement("div", {
17
18
  className: "register-step-container"
18
19
  }, onBack && /*#__PURE__*/React.createElement("button", {
@@ -31,7 +32,7 @@ function WaitEmailLink(_ref) {
31
32
  className: "register-email-display"
32
33
  }, /*#__PURE__*/React.createElement("span", {
33
34
  className: "email-text"
34
- }, flowData.account), onEditEmail && /*#__PURE__*/React.createElement("button", {
35
+ }, displayEmail), onEditEmail && /*#__PURE__*/React.createElement("button", {
35
36
  className: "edit-email-btn",
36
37
  onClick: onEditEmail,
37
38
  "aria-label": "Edit email"
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectorDemo: () => JSX.Element;
2
3
  export default SelectorDemo;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DepositProps {
3
4
  showTitle?: boolean;