@pisell/private-materials 6.3.170 → 6.3.171

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 (203) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +426 -145
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +9 -9
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -7
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  20. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  21. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  22. package/es/components/booking/info/date/index.d.ts +1 -0
  23. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  24. package/es/components/booking/info/notes/index.d.ts +1 -0
  25. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  26. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  27. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  28. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  29. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  30. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  31. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  32. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  33. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  34. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  35. package/es/components/eftpos/form/index.d.ts +0 -1
  36. package/es/components/eftposPay/hooks.d.ts +1 -1
  37. package/es/components/eftposPay/mx51/Action.d.ts +0 -1
  38. package/es/components/eftposPay/payo/config.d.ts +1 -0
  39. package/es/components/eftposPay/store/index.d.ts +1 -1
  40. package/es/components/eftposPay/tip.d.ts +1 -0
  41. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  42. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  43. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  44. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  45. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  46. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  48. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  49. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  51. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  53. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  56. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  57. package/es/components/login/index.d.ts +1 -0
  58. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  59. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  60. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  61. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  62. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  63. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  64. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  65. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  66. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  67. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  68. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  69. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  70. package/es/components/schedules/calendar/index.d.ts +1 -0
  71. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  72. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  73. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  74. package/es/components/schedules/products/index.d.ts +0 -1
  75. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  76. package/es/components/schedules/products/list/index.d.ts +1 -0
  77. package/es/components/schedules/resources/list/index.d.ts +1 -0
  78. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  79. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  80. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  81. package/es/components/shoppingCart/index.d.ts +1 -0
  82. package/es/components/venueBooking/components/Cart/index.js +41 -35
  83. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  84. package/es/hooks/usePaymentLogger.d.ts +1 -0
  85. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  86. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  87. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  88. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  89. package/es/plus/orderList/components/Reset.d.ts +1 -0
  90. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  91. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  92. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  93. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  94. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  95. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  96. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  97. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  98. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  99. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  100. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  101. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  102. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  103. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  104. package/es/utils/buildCartHolderParams.d.ts +34 -0
  105. package/es/utils/buildCartHolderParams.js +60 -0
  106. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Cart/Item/index.js +11 -6
  108. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  109. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  110. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  111. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  112. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  113. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  114. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  115. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  116. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  117. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  118. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  119. package/lib/components/booking/info/date/index.d.ts +1 -0
  120. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  121. package/lib/components/booking/info/notes/index.d.ts +1 -0
  122. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  123. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  124. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  125. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  126. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  127. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  128. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  129. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  130. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  131. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  132. package/lib/components/eftpos/form/index.d.ts +0 -1
  133. package/lib/components/eftposPay/hooks.d.ts +1 -1
  134. package/lib/components/eftposPay/mx51/Action.d.ts +0 -1
  135. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  136. package/lib/components/eftposPay/store/index.d.ts +1 -1
  137. package/lib/components/eftposPay/tip.d.ts +1 -0
  138. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  139. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  140. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  141. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  142. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  143. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  144. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  145. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  146. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  147. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  148. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  149. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  150. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  151. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  152. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  153. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  154. package/lib/components/login/index.d.ts +1 -0
  155. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  156. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  157. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  158. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  159. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  160. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  161. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  162. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  163. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  164. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  165. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  166. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  167. package/lib/components/schedules/calendar/index.d.ts +1 -0
  168. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  169. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  170. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  171. package/lib/components/schedules/products/index.d.ts +0 -1
  172. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  173. package/lib/components/schedules/products/list/index.d.ts +1 -0
  174. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  175. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  176. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  177. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  178. package/lib/components/shoppingCart/index.d.ts +1 -0
  179. package/lib/components/venueBooking/components/Cart/index.js +14 -8
  180. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  181. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  182. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  183. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  184. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  185. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  186. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  187. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  188. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  189. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  190. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  191. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  192. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  193. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  194. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  195. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  196. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  197. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  198. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  199. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  200. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  201. package/lib/utils/buildCartHolderParams.d.ts +34 -0
  202. package/lib/utils/buildCartHolderParams.js +51 -0
  203. package/package.json +1 -1
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "payo" | "windcave" | "linkly" | "mx51">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly" | "mx51">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParsedElement } from './types';
3
2
  /**
4
3
  * @title 渲染动态内容
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {
@@ -299,7 +299,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  amount?: string | number | undefined;
300
300
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
301
301
  order_id?: string | number | undefined;
302
- eftpos?: "stripe" | "tyro" | "payo" | "windcave" | "linkly" | "mx51" | undefined;
302
+ eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | "mx51" | undefined;
303
303
  action?: "amount" | "pay" | "deviceList" | undefined;
304
304
  key?: number | undefined;
305
305
  step?: number | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './tip.less';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 按钮操作区
3
4
  * @description: 仅包含签名
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -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 Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -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 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,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -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
  export interface LoginProps {
3
4
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CustomerListProps {
3
4
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Calendar: () => JSX.Element;
3
4
  export default Calendar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from "../../type";
2
3
  import "./index.less";
3
4
  declare type ScheduleDetailListPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ResourcesModule: ({ product }: {
2
3
  product: any;
3
4
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface ProductListProps {
3
4
  loading: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ResourcesListProps = {
3
4
  list: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (key?: number | undefined) => JSX.Element;
2
3
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -43,6 +43,7 @@ var import_Voucher = __toESM(require("../Voucher"));
43
43
  var import_Deposit = __toESM(require("../Deposit"));
44
44
  var import_context = require("../../context");
45
45
  var import_buildCartHolderParams = require("../../../../utils/buildCartHolderParams");
46
+ var import_buildCartHolderParams2 = require("../../../../utils/buildCartHolderParams");
46
47
  var import_utils2 = require("../../../appointmentBooking/utils");
47
48
  var import_index = require("./index.less");
48
49
  function Cart(props) {
@@ -184,21 +185,26 @@ function Cart(props) {
184
185
  if (type === "add_holder") {
185
186
  const formId = (_a2 = (0, import_buildCartHolderParams.getVenueCartHolderConfig)(item)) == null ? void 0 : _a2.resource_id;
186
187
  if (!formId) return;
188
+ const skuRelationFormId = (0, import_buildCartHolderParams2.getSkuRelationFormId)(holderMap, formId);
187
189
  return (0, import_utils2.openForm)({
188
- form_id: formId,
190
+ form_id: skuRelationFormId || formId,
189
191
  title: import_utils.locales.getText("pisell2.venue.create.form"),
190
192
  utils: (_b2 = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _b2.utils,
191
193
  callback: async (res) => {
192
- var _a3, _b3, _c3, _d3, _e3;
194
+ var _a3, _b3, _c3, _d3;
193
195
  if ((res == null ? void 0 : res.status) === "success") {
194
- venueBookingModule.appendFormRecord({
195
- record: res == null ? void 0 : res.values
196
+ const { formRecordId, formId: holderFormId } = (0, import_buildCartHolderParams2.handleCartHolderFormSuccess)({
197
+ res,
198
+ formId,
199
+ skuRelationFormId,
200
+ utils: (_a3 = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _a3.utils,
201
+ module: venueBookingModule
196
202
  });
197
- const customer = (0, import_utils2.getCustomer)((_a3 = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _a3.utils);
198
- venueBookingModule.setBookingHolder((_c3 = (_b3 = item == null ? void 0 : item._origin) == null ? void 0 : _b3.product) == null ? void 0 : _c3.bookingUuid, {
203
+ const customer = (0, import_utils2.getCustomer)((_b3 = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _b3.utils);
204
+ venueBookingModule.setBookingHolder((_d3 = (_c3 = item == null ? void 0 : item._origin) == null ? void 0 : _c3.product) == null ? void 0 : _d3.bookingUuid, {
199
205
  customer_id: customer == null ? void 0 : customer.id,
200
- form_id: (_d3 = res == null ? void 0 : res.values) == null ? void 0 : _d3.form_id,
201
- form_record: [(_e3 = res == null ? void 0 : res.values) == null ? void 0 : _e3.form_record_id]
206
+ form_id: holderFormId,
207
+ form_record: [formRecordId]
202
208
  });
203
209
  await refreshViewModel();
204
210
  }
@@ -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
  interface LogData {
2
3
  key: string;
3
4
  value: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -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;
@@ -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
  import { SCOProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRStepStatus } from '../types';
2
3
  import '../index.less';
3
4
  declare const VerifyError: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VerifyingEmailLink: (props: {
3
4
  onVerifyLink: () => Promise<void>;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TimelineSectionProps {
3
4
  code: string;
@@ -4,7 +4,6 @@
4
4
  * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
5
  * 包括如何通过 Context 访问父组件配置
6
6
  */
7
- /// <reference types="react" />
8
7
  export declare const BasicExample: () => JSX.Element;
9
8
  export declare const ChildrenExample: () => JSX.Element;
10
9
  export declare const CustomItemExample: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
@@ -56,3 +56,37 @@ export declare const validateRequiredCartHolders: ({ items, getHolderConfig, }:
56
56
  hasError: boolean;
57
57
  invalidItems: any[];
58
58
  };
59
+ export interface CartHolderFormModule {
60
+ appendFormRecord?: (params: {
61
+ record: any;
62
+ }) => void;
63
+ refreshAllHolderFormRecords?: (params: {
64
+ customer_id?: any;
65
+ }) => void;
66
+ }
67
+ export interface HandleCartHolderFormSuccessOptions {
68
+ res: any;
69
+ formId?: number | string;
70
+ skuRelationFormId: number;
71
+ utils: any;
72
+ module: CartHolderFormModule;
73
+ }
74
+ export interface CartHolderFormSuccessResult {
75
+ formRecordId: any;
76
+ mainField: any;
77
+ formId: any;
78
+ }
79
+ /**
80
+ * 从 holderMap 解析 minors 表单关联的 sku 关系表单 ID(form_to_form 隐藏字段的 linkedTable)。
81
+ */
82
+ export declare const getSkuRelationFormId: (holderMap: Record<string, any>, formId?: number | string) => number;
83
+ /**
84
+ * 从 form_to_form_value 中取最新创建的 form_record_id。
85
+ */
86
+ export declare const getSkuRelationFormRecordId: (res: any) => any;
87
+ /**
88
+ * 处理购物车添加 holder 表单提交成功后的公共逻辑。
89
+ * - minors 关联表单:刷新 holder 列表,取 form_to_form_value 中的 record id
90
+ * - 普通表单:appendFormRecord 并直接使用 form_record_id
91
+ */
92
+ export declare const handleCartHolderFormSuccess: ({ res, formId, skuRelationFormId, utils, module, }: HandleCartHolderFormSuccessOptions) => CartHolderFormSuccessResult;
@@ -21,11 +21,15 @@ var buildCartHolderParams_exports = {};
21
21
  __export(buildCartHolderParams_exports, {
22
22
  buildCartHolderParams: () => buildCartHolderParams,
23
23
  getAppointmentCartHolderConfig: () => getAppointmentCartHolderConfig,
24
+ getSkuRelationFormId: () => getSkuRelationFormId,
25
+ getSkuRelationFormRecordId: () => getSkuRelationFormRecordId,
24
26
  getVenueCartHolderConfig: () => getVenueCartHolderConfig,
27
+ handleCartHolderFormSuccess: () => handleCartHolderFormSuccess,
25
28
  resolveCartItemHolderId: () => resolveCartItemHolderId,
26
29
  validateRequiredCartHolders: () => validateRequiredCartHolders
27
30
  });
28
31
  module.exports = __toCommonJS(buildCartHolderParams_exports);
32
+ var import_utils = require("../components/appointmentBooking/utils");
29
33
  var toHolderRecordId = (value) => {
30
34
  if (value == null || value === "") return void 0;
31
35
  const id = Number(value);
@@ -106,11 +110,58 @@ var validateRequiredCartHolders = ({
106
110
  invalidItems
107
111
  };
108
112
  };
113
+ var getSkuRelationFormId = (holderMap, formId) => {
114
+ var _a, _b, _c, _d, _e;
115
+ if (!formId) return 0;
116
+ const formData = holderMap == null ? void 0 : holderMap[formId];
117
+ if (((_b = (_a = formData == null ? void 0 : formData.form) == null ? void 0 : _a.form) == null ? void 0 : _b.form_type) !== "minors") return 0;
118
+ const detail = (_d = (_c = formData == null ? void 0 : formData.form) == null ? void 0 : _c.field) == null ? void 0 : _d.find(
119
+ (item) => item.filed_type === "form_to_form" && item.status === "hide"
120
+ );
121
+ return ((_e = detail == null ? void 0 : detail.setting) == null ? void 0 : _e.linkedTable) || 0;
122
+ };
123
+ var getSkuRelationFormRecordId = (res) => {
124
+ var _a, _b;
125
+ const formToFormValue = (_b = (_a = res == null ? void 0 : res.values) == null ? void 0 : _a.form_to_form_value) == null ? void 0 : _b[0];
126
+ const formDataValue = (formToFormValue == null ? void 0 : formToFormValue.form_data_value) || [];
127
+ return formDataValue[formDataValue.length - 1];
128
+ };
129
+ var handleCartHolderFormSuccess = ({
130
+ res,
131
+ formId,
132
+ skuRelationFormId,
133
+ utils,
134
+ module: module2
135
+ }) => {
136
+ var _a, _b, _c, _d, _e;
137
+ let formRecordId = (_a = res == null ? void 0 : res.values) == null ? void 0 : _a.form_record_id;
138
+ let resolvedFormId = (_b = res == null ? void 0 : res.values) == null ? void 0 : _b.form_id;
139
+ if (formId && skuRelationFormId) {
140
+ const customer = (0, import_utils.getCustomer)(utils);
141
+ (_c = module2 == null ? void 0 : module2.refreshAllHolderFormRecords) == null ? void 0 : _c.call(module2, {
142
+ customer_id: customer == null ? void 0 : customer.id
143
+ });
144
+ formRecordId = getSkuRelationFormRecordId(res);
145
+ resolvedFormId = formId;
146
+ } else if (formId) {
147
+ (_d = module2 == null ? void 0 : module2.appendFormRecord) == null ? void 0 : _d.call(module2, {
148
+ record: res == null ? void 0 : res.values
149
+ });
150
+ }
151
+ return {
152
+ formRecordId,
153
+ mainField: (_e = res == null ? void 0 : res.values) == null ? void 0 : _e.main_field,
154
+ formId: resolvedFormId
155
+ };
156
+ };
109
157
  // Annotate the CommonJS export names for ESM import in node:
110
158
  0 && (module.exports = {
111
159
  buildCartHolderParams,
112
160
  getAppointmentCartHolderConfig,
161
+ getSkuRelationFormId,
162
+ getSkuRelationFormRecordId,
113
163
  getVenueCartHolderConfig,
164
+ handleCartHolderFormSuccess,
114
165
  resolveCartItemHolderId,
115
166
  validateRequiredCartHolders
116
167
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.170",
3
+ "version": "6.3.171",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",