@pisell/private-materials 3.2.22 → 3.2.23

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 (237) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/assets/guests.svg +1 -0
  12. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +83 -104
  13. package/es/components/appointmentBooking/components/Cart/Item/Total.js +1 -0
  14. package/es/components/appointmentBooking/components/Cart/Item/index.js +32 -18
  15. package/es/components/appointmentBooking/components/Cart/Item/index.less +7 -4
  16. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Content/index.js +11 -11
  18. package/es/components/appointmentBooking/components/Date/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Date/index.js +49 -32
  20. package/es/components/appointmentBooking/components/Date/index.less +5 -0
  21. package/es/components/appointmentBooking/components/Guest/index.js +8 -21
  22. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  23. package/es/components/appointmentBooking/components/Header/index.js +44 -7
  24. package/es/components/appointmentBooking/components/Resource/index.d.ts +1 -1
  25. package/es/components/appointmentBooking/components/Resource/index.js +28 -20
  26. package/es/components/appointmentBooking/components/Resource/index.less +5 -0
  27. package/es/components/appointmentBooking/components/Services/index.js +20 -9
  28. package/es/components/appointmentBooking/components/TimeSlicing/index.js +47 -32
  29. package/es/components/appointmentBooking/components/TimeSlicing/index.less +4 -0
  30. package/es/components/appointmentBooking/components/Voucher/index.js +28 -18
  31. package/es/components/appointmentBooking/context.d.ts +2 -0
  32. package/es/components/appointmentBooking/context.js +7 -1
  33. package/es/components/appointmentBooking/hooks.d.ts +45 -9
  34. package/es/components/appointmentBooking/hooks.js +158 -121
  35. package/es/components/appointmentBooking/index.d.ts +0 -1
  36. package/es/components/appointmentBooking/index.js +12 -7
  37. package/es/components/appointmentBooking/locales.d.ts +30 -0
  38. package/es/components/appointmentBooking/locales.js +30 -0
  39. package/es/components/appointmentBooking/utils.d.ts +19 -0
  40. package/es/components/appointmentBooking/utils.js +68 -1
  41. package/es/components/booking/components/footer/utils.js +15 -15
  42. package/es/components/booking/components/voucher/index.d.ts +1 -1
  43. package/es/components/booking/components/voucher/index.js +28 -27
  44. package/es/components/booking/deposit/index.d.ts +0 -1
  45. package/es/components/booking/forms/single/index.d.ts +0 -1
  46. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  47. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  48. package/es/components/booking/hooks/useIsBooking4Shop.js +10 -0
  49. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  50. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  51. package/es/components/booking/info/header/index.d.ts +0 -1
  52. package/es/components/booking/info/index.d.ts +0 -1
  53. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  54. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  55. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  56. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  57. package/es/components/booking/info/service2/utils.d.ts +1 -1
  58. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  59. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  60. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  61. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  62. package/es/components/booking/utils.d.ts +2 -2
  63. package/es/components/eftpos/form/index.d.ts +0 -1
  64. package/es/components/eftpos/hooks.d.ts +0 -1
  65. package/es/components/eftpos/index.d.ts +0 -1
  66. package/es/components/eftpos/pos.d.ts +0 -1
  67. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  68. package/es/components/eftposPay/amount.d.ts +1 -1
  69. package/es/components/eftposPay/app.d.ts +0 -1
  70. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  71. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  72. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  73. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  74. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  75. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  76. package/es/components/eftposPay/device.d.ts +1 -1
  77. package/es/components/eftposPay/hooks.d.ts +1 -1
  78. package/es/components/eftposPay/index.d.ts +0 -1
  79. package/es/components/eftposPay/pay.d.ts +0 -1
  80. package/es/components/eftposPay/store/index.d.ts +3 -3
  81. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  92. package/es/components/eventBooking/index.d.ts +0 -1
  93. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  98. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  99. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  100. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  101. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  102. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  103. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  104. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  108. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  109. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  110. package/es/components/schedules/products/index.d.ts +0 -1
  111. package/es/components/schedules/resources/index.d.ts +0 -1
  112. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  113. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  114. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  115. package/es/components/schedules/schedules/index.d.ts +0 -1
  116. package/es/components/shoppingCart/components/Cart/Product.js +3 -0
  117. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  118. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  119. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  120. package/es/components/shoppingCart/hooks/useClearCart.js +4 -3
  121. package/es/components/shoppingCart/type.d.ts +1 -0
  122. package/es/components/taxSelect/index.d.ts +0 -1
  123. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/assets/guests.svg +1 -0
  125. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +37 -27
  126. package/lib/components/appointmentBooking/components/Cart/Item/Total.js +1 -0
  127. package/lib/components/appointmentBooking/components/Cart/Item/index.js +23 -11
  128. package/lib/components/appointmentBooking/components/Cart/Item/index.less +7 -4
  129. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  130. package/lib/components/appointmentBooking/components/Content/index.js +3 -5
  131. package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -1
  132. package/lib/components/appointmentBooking/components/Date/index.js +53 -47
  133. package/lib/components/appointmentBooking/components/Date/index.less +5 -0
  134. package/lib/components/appointmentBooking/components/Guest/index.js +6 -5
  135. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  136. package/lib/components/appointmentBooking/components/Header/index.js +25 -3
  137. package/lib/components/appointmentBooking/components/Resource/index.d.ts +1 -1
  138. package/lib/components/appointmentBooking/components/Resource/index.js +16 -17
  139. package/lib/components/appointmentBooking/components/Resource/index.less +5 -0
  140. package/lib/components/appointmentBooking/components/Services/index.js +21 -2
  141. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +23 -21
  142. package/lib/components/appointmentBooking/components/TimeSlicing/index.less +4 -0
  143. package/lib/components/appointmentBooking/components/Voucher/index.js +28 -16
  144. package/lib/components/appointmentBooking/context.d.ts +2 -0
  145. package/lib/components/appointmentBooking/context.js +4 -1
  146. package/lib/components/appointmentBooking/hooks.d.ts +45 -9
  147. package/lib/components/appointmentBooking/hooks.js +28 -41
  148. package/lib/components/appointmentBooking/index.d.ts +0 -1
  149. package/lib/components/appointmentBooking/index.js +11 -7
  150. package/lib/components/appointmentBooking/locales.d.ts +30 -0
  151. package/lib/components/appointmentBooking/locales.js +30 -0
  152. package/lib/components/appointmentBooking/utils.d.ts +19 -0
  153. package/lib/components/appointmentBooking/utils.js +39 -1
  154. package/lib/components/booking/components/footer/utils.js +1 -15
  155. package/lib/components/booking/components/voucher/index.d.ts +1 -1
  156. package/lib/components/booking/components/voucher/index.js +28 -17
  157. package/lib/components/booking/deposit/index.d.ts +0 -1
  158. package/lib/components/booking/forms/single/index.d.ts +0 -1
  159. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  160. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  161. package/lib/components/booking/hooks/useIsBooking4Shop.js +51 -0
  162. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  163. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  164. package/lib/components/booking/info/header/index.d.ts +0 -1
  165. package/lib/components/booking/info/index.d.ts +0 -1
  166. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  167. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  168. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  169. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  170. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  172. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  173. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  174. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  175. package/lib/components/booking/utils.d.ts +2 -2
  176. package/lib/components/eftpos/form/index.d.ts +0 -1
  177. package/lib/components/eftpos/hooks.d.ts +0 -1
  178. package/lib/components/eftpos/index.d.ts +0 -1
  179. package/lib/components/eftpos/pos.d.ts +0 -1
  180. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  181. package/lib/components/eftposPay/amount.d.ts +1 -1
  182. package/lib/components/eftposPay/app.d.ts +0 -1
  183. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  184. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  185. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  186. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  187. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  188. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  189. package/lib/components/eftposPay/device.d.ts +1 -1
  190. package/lib/components/eftposPay/hooks.d.ts +1 -1
  191. package/lib/components/eftposPay/index.d.ts +0 -1
  192. package/lib/components/eftposPay/pay.d.ts +0 -1
  193. package/lib/components/eftposPay/store/index.d.ts +3 -3
  194. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  195. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  204. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  205. package/lib/components/eventBooking/index.d.ts +0 -1
  206. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  211. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  212. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  213. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  214. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  215. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  216. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  217. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  218. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  219. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  220. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  221. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  222. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  223. package/lib/components/schedules/products/index.d.ts +0 -1
  224. package/lib/components/schedules/resources/index.d.ts +0 -1
  225. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  226. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  227. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  228. package/lib/components/schedules/schedules/index.d.ts +0 -1
  229. package/lib/components/shoppingCart/components/Cart/Product.js +1 -0
  230. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  231. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  232. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  233. package/lib/components/shoppingCart/hooks/useClearCart.js +3 -2
  234. package/lib/components/shoppingCart/type.d.ts +1 -0
  235. package/lib/components/taxSelect/index.d.ts +0 -1
  236. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  237. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -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" | "windcave" | "payo">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
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 { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "tyro" | "windcave" | "payo" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -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,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,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
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -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,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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -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
  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
  interface valueType {
3
4
  }
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { ScheduleItem } from '../../type';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
4
3
  export default AddSchedules;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Value = number[];
4
3
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -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 ProductDetailDrawer: () => JSX.Element;
4
3
  export default ProductDetailDrawer;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: () => JSX.Element;
4
3
  export default Resources;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from '../../type';
3
2
  import './index.less';
4
3
  declare type AllSchedulesPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DrawerProps } from "antd";
3
2
  import { ScheduleItem } from "../../type";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SchedulesConnect: () => JSX.Element;
3
2
  export default SchedulesConnect;
@@ -80,6 +80,7 @@ var Product = (props) => {
80
80
  onNote: (e) => handleChange(e, "note", { note: e.note }),
81
81
  onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
82
82
  onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
83
+ onChangeResource: (e) => handleChange(item, "change_resource", e),
83
84
  ...productParams
84
85
  }
85
86
  );
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: () => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -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;
@@ -39,7 +39,8 @@ var import_useContext = require("./useContext");
39
39
  var import_utils = require("@pisell/utils");
40
40
  var useClearCart = (key) => {
41
41
  const { state, updateState, onChange } = (0, import_useContext.useContext)();
42
- const { isProductList, disabledEdit, holders } = state;
42
+ const { isProductList, disabledEdit, holders, isHideClearCart } = state;
43
+ console.log(state, "wh978968");
43
44
  const handleClear = () => {
44
45
  let products = [...(state == null ? void 0 : state.products) || []];
45
46
  if (typeof key === "undefined") {
@@ -51,7 +52,7 @@ var useClearCart = (key) => {
51
52
  products = products.filter((item) => (item == null ? void 0 : item.holder_id) !== key);
52
53
  }
53
54
  };
54
- return !disabledEdit && (holders == null ? void 0 : holders.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(
55
+ return !disabledEdit && (holders == null ? void 0 : holders.length) > 0 && !isHideClearCart ? /* @__PURE__ */ import_react.default.createElement(
55
56
  "span",
56
57
  {
57
58
  className: (0, import_classnames.default)("pisell-lowcode__shopping-cart-clear-btn", {
@@ -27,6 +27,7 @@ export interface shoppingCartProps {
27
27
  isShowDelete?: boolean;
28
28
  collapseParams?: CollapseProps;
29
29
  productParams?: productProps;
30
+ isHideClearCart?: boolean;
30
31
  }
31
32
  /**
32
33
  * @title: 商品卡片
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  import "./index.less";
4
3
  interface TaxSelectProps {
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.2.22",
3
+ "version": "3.2.23",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
- "@pisell/materials": "3.2.21",
64
- "@pisell/date-picker": "3.0.2",
65
- "@pisell/icon": "0.0.11"
63
+ "@pisell/icon": "0.0.11",
64
+ "@pisell/materials": "3.2.22",
65
+ "@pisell/date-picker": "3.0.2"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",